The Ghastly Headset v0.0.2

clock February 24, 2010 03:44 by author Jordan

I've decided to release an interim version of TGH to help those in desperate need to switch phone audio modes in addition to media audio modes. For those who haven't kept up, the previous version was only able to toggle the media audio output.

You can only toggle between headset (non-bluetooth) and front speaker at the moment. Also, note that after one phone call, the audio mode will RESET to whatever mode it was at before. I'm still trying to work out why this is happening and to see if there's anything non-intrusive that I can do to prevent this.

com.palm.futurepr0n.theghastlyheadset_0.0.2_all.ipk (32.87 kb)



webOS Application: The Ghastly Headset BETA

clock February 18, 2010 03:04 by author Jordan

If you're one of the many (including me) who struggle daily with having their phones get stuck in headset mode, this may be your lucky day. After a final frustrating encounter with this problem, which required me to once again clean out the headset with alcohol, I decided to do something about it. Long story short, I created an app.

 

The Ghastly Headset (derived from the fact the Pre thinks there's a headset that isn't there... a ghost headset) is fairly limited and approximately 3 hours in its infancy. It has three main functions:

 

  1. Show the current audio mode (either speaker, headset or headset w/ mic)
  2. Force headset mode
  3. Force speaker mode
I've tested the application and the forcing of the audio seems to persist across applications (thank god), however I'm unable to fully test with a stuck Pre because I just fixed mine! So that's where I need you, loyal beta testers. I need people with stuck Pre handsets to see if forcing speaker mode will actually work. Toggling the headset (if it's not stuck) will reset the audio mode to whichever you want it to be.



 

Please download and let me know any feedback you have either here or on the PreCentral official forum post!


 

com.palm.futurepr0n.theghastlyheadset_0.0.1_all.ipk (32.38 kb)



FIXED - Galleria with new jQuery versions

clock February 5, 2010 14:54 by author Jordan

As part of one of my latest projects, I had to venture into the land of jQuery. It wasn't long before I realized how powerful the platform was, and even shorter before I started browsing for plugins that I could leverage to add that extra layer of polish to my project.

This is when I found Galleria, a powerful gallery plugin, with the extra-sexy feature of creating thumbnails for you. "Great," I thought, "this will fit perfectly into my website!" Wrong.

"Exception thrown and not caught, Line: 2799" - AGHHHHH!

Due to my ignorance about jQuery, I struggled trying to get it to work. I'm not a newcomer to javascript, even with complex javascript thanks to webOS, but this plugin was just NOT working. It took me a good hour or two before I realized there was probably some incompatibility between jQuery versions, and shortly after I discovered the plugin only worked with up to 1.2.6. This was a problem for me, because a lot of my plugins required 1.3.X, and the newest version was 1.4.1. Googling the interwebs, I also found that other people suffered from the same problem as me but no working solution was ever created.

Fear no more! I have fixed Galleria to work with jQuery 1.4.1. I used the underrated javascript debugger built in Visual Studio 2005 to locate the incompatibilities and resolve them. Those were:

  • @rel need to be changed to rel (no @)
  • The thumbnail preview was attempting to parse an image that didn't exist, so now a check is made to ensure a URL is present
  • There was an extra quotation mark on the same line

All in all, very simple changes. I think this goes without saying, but I'll say it anyway: I take no responsibility for any problems you may have with the jQuery I have attached. Any charity you wish to show for the plugin should be directed at the official developers for their hard work. I want none of it!

If you are lazy like me, and I suspect you are, you probably just skipped to the end of this article to find the download link. Well here you go:

FIXED jquery.galleria.zip (4.46 kb)



Sign in