Just My Random Stuff Just some hopefully useful, yet random posts from my own experiences, that nobody ever told me about before.

21Aug/100

Get rid of engine hum and whine when mobile device is plugged into car stereo

Do you have an Android, or any music player enabled mobile device, and have you ever wanted to plug the headphone jack into your car stereo radio, but everytime you do, you hear the car's engine hum, or whine?  Well, for those of you who can't figure out how to fix, it's simple.  Grab one of the products below.  My Moto Droid 2 sounds perfect now when its plugged into the car.

21Aug/100

Motorola Droid 2 gets an Over The Air update

I just manually went to Menu -> About Phone -> System Updates and it did the check and asked if I wanted to run the update.  This is at 10:30am Sat Aug 21 PST, in San Diego.  It downloaded just fine, then it asked if I wanted to run the install now or later.  I selected now.  I let the phone do its thing, it did a power cycle, then installed, took a long time on 1st boot, but came back everything fine.  Went back to About Phone and System Version is 2.2.20.A955.Verizon.en.US.  Does anyone know what the features of this update are?

20Jun/100

Disable Autosave in WordPress when adding and editing posts – the right way

So, I have been following everyone's recommendations when trying to disable the autosave feature in WordPress and yet it would still load the functionality when adding or editing posts.  So, I took the time and figured out why the fixes didn't work, and now, here is the way to truly disable the autosave functionality in WordPress.  As always, this works for me, if it does not work for you, please don't email me, yell at me, call me names, or whatever else.  And, this may or may not be the best way to do it, but like I said, it works for me.

It is pretty easy to disable the autosave.  If you have a plugin you are writing, you can include it in the plugin, or if not, you can add it to your themes functions.php file.

function myDisableAutosave() {
    wp_deregister_script('autosave');
}
add_action('admin_footer','myDisableAutosave');
7Jun/102

How to Use New WordPress 3.0 Features That Will Save You Tons of Time

Well there is a ton of buzz about WordPress 3.0, but I realized that not to much documentation is out yet about how to use the fun and easy stuff, so here goes.  But first, some disclaimers so I don't get yelled at by.

  • Even though the attached file is in WordPress plugin format, I did not release this as a plugin.
  • I did not include stuff like validation, sanitation, etc. on user input fields, only because I wanted to show the new features and save on the time to write this.  Always validate and sanitize your inputs.
  • As with everything, there is usually more than 1 way to go about it.  The methods I list below WORK FOR ME in a custom blog I am about to launch and follow the WordPress functions documentation.  Don't flame me if you don't like the way I did it, please stay constructive.
  • I did not include code comment on the source code, since, I more than did the job here in this article.
  • I did not add any localization.
  • I apologize in advance if the source highlighter looks funky, please download the zip file for a nicely formatted PHP code file
26Apr/100

Better Health Plan

I got this joke passed to me today in email.  I thought it was hilarious, so here you all go.
A wealthy woman was being shown around the hospital. During her tour she passed a room where a male patient was masturbating furiously.
"Oh my GOD!" screamed the woman. "That's disgraceful! Why is he doing that?"
The doctor who was leading the tour calmly explained, "I'm very sorry that you were exposed to that, but this man has a serious condition where his testicles rapidly fill with semen, and if he doesn't do that at least five times a day, he'll be in extreme pain and his testicles could easily rupture."
"Oh, well in that case, I guess it's okay" said the woman.
As they passed by the very next room, they saw a male patient lying in bed while a nurse performed oral sex on him. Again, the woman screamed, "Oh my GOD! Now tell me how that can be justified?"
The doctor spoke very calmly, "Same illness, better health care plan."