Posts Tagged ‘Twitter’

Configured Winamp v5.57 and website to use new Now Playing plug-in.

Saturday, December 19th, 2009

After upgrading Winamp to its latest version (5.57), the Now Playing v2.1.2 plug-in I was using would cause Winamp to crash every time I closed Winamp which caused none of its settings to be saved. After some googling around I came across Brandon Fuller’s Now Playing: A Winamp Plugin which seemed to do what I needed. It would allow me to FTP a XML file containing information about the last X number of songs I played and would also let me send a HTTP post request to run a PHP script with the current song’s information contained within the $_POST variable. It calls this HTTP request a “ping”.

When this “ping” is sent, my PHP script parses the newly uploaded XML file to create the now playing images and song history (as seen on my Entertainment page), as well as a prepared Twitter message in a separate file should I choose to send a tweet out.

You can also send Twitter and Facebook updates using this plug-in. I’ve only tested it with Twitter and it seems to work; however, I use a separate PHP script to manually Tweet the song I’m currently listening to so I don’t fill my Twitter stream with song spam. I may enable it to send tweets out using my @mrheadrick_np account.

This plug-in does lack a couple things that the older one would do:

  1. Send an album cover image along with the rest of the song’s information in a $_POST variable such as a folder.jpg located in the same directory as the song; however, it will send a link to an Amazon album image if the information matches (sometimes it doesn’t match correctly or just can’t find one). I am working on a mechanism to get around some of these pitfalls by uploading album images and having my script check for the existence of the local album image first.
  2. Work with Shoutcast streams to extract out song information.

Even so, I will continue to use this plug-in for its compatibility and continuing support by the developer. It also seems to be a bit more reliable and stable than what I was using. Yes, I did purchase a license key. :)

How I got LongURL Mobile Expander 2.0.0 to Show Tooltips Again.

Thursday, July 2nd, 2009

After updating to LongURL Mobile Expander v2.0.0 it stopped showing Tooltips with the destination when I would move the mouse over a short URL. I would also get “current domain is NULL” errors when browsing locally (I have a local copy of Apache installed for development). The problem existed in both Firefox 3.0.11 and 3.5.

I got it working after seeing a comment here: https://addons.mozilla.org/en-US/firefox/addon/8636 so all the credit goes to Matthias Jansen.

Edit the file: C:\Documents and Settings\(user)\Application Data\Mozilla\Firefox\Profiles\(your profile)\extensions\{a7101e54-830c-4d33-a3ed-bedc17ec44da}\content\longurlmobileexpander.js

I am using Windows XP so your location might be different.

Around line 79, change

var current_domain = document.location.href.match(/^https?:\/\/(?:www\.)?([^\.]+\.[^\/]+)/i);

To:

var current_domain = document.location.href.match(/^https?:\/\/(?:www\.)?([^\.]+(\.[^\/]+)?)/i);

Update: I’ve been told here that the following change is also needed. Around line 89, change

if ((domain !== current_domain[1]) && (typeof(this.known_services[domain]) !== 'undefined')) {

To:

if ((current_domain != null) && (domain !== current_domain[1]) && (typeof(this.known_services[domain]) !== 'undefined')) {

After doing this and re-enabling the extension.. it started working. I can now see the tooltip pop-ups and it’s supposed to fix the current_domain is null problem. Hopefully this will help anyone else that ran into this issue. :)

My URL Shortening Service now has a preview mode.

Monday, June 29th, 2009

My URL shortening service at http://mhurl.com, that I mainly use with my blog to create Short URLs for new posts to be tweeted about, now has a preview option you can enable that will show the destination URL, which you can then decide if you wish to click on or not rather than automatically being redirected to the destination. In order for this to work your browser must be set to accept cookies. If you are like me and have 3rd-party cookies disabled, that is fine.

Once you have it set, you can test it with this Short URL which should be created after I publish the post: http://mhurl.com/2.

Even though I will not send anyone to a questionable site, I understand many would want this ability. :)

Testing my own shortening service, post 1

Wednesday, June 17th, 2009

Hopefully this works correctly on my production blog the first try LOL.

Publish!

Update: It Worked! http://mhurl.com/1 links to this post now. The Longurl.org website and DestroyTwitter Twitter client are able to preview the link without any problem.  TweetDeck v0.26.1 and TwitterFox 1.8.1 are not able to.

I modified the WordPress Twitter-Tools plug-in to create the short-urls using my shortener before sending the tweet out about the post. :)

Updated my NASCAR and Weather pages, and it’s June 6th

Saturday, June 6th, 2009

Just a real quick note to mention that I’ve updated my NASCAR and Weather pages to include some additional links and Twitter resources.

June 6th.. well, not only is today D-Day, it’s also my B-Day. I turn 40 today! ACK! 8-O

The following music video also mentions the date June 6th:

Convoy

Yeah.. that’s about all I have to say for now LOL. I’m tired. :)