Archive

Posts Tagged ‘Tips’

IE “Object doesn’t support this action”

March 9th, 2009 Rev 2 comments

I ran into this little bundle of awesome while trying to work with JSON and jQuery. In FireFox (as always) everything worked wonderfully. But as soon as I opened it up in IE it quickly turned into anything Microsoft is involved in, a huge cluster.

After hunting and hunting I found the issue with this bit of javascript:

for(item in ResultsArray.items){….

Turns out in IE ‘item’ is a reserved word. So watch out for that.

Ugg I hate IE. I hate how it makes me scream and complain.

Damn you MS!

Thanks for the pointer from Johannes Fahrenkrug’s site.

Can’t log into gmail on iphone or gchat on pidgin

October 20th, 2008 Rev No comments

I’m getting this occasionally.  Where I can’t log into my gmail in the mail client on the iphone or into google chat with pidgin.  Though, oddly enough I’m still perfectly capable of logging into my gmail account via the browser. I believe it most often occurs when I have something set incorrectly and it repeatedly tries the incorrect password for an account.

In this case I had just restored my iPhone backup to the new phone I got over the weekend ( had dust behind the screen so they gave me a new one). When it restores it doesn’t fill in your passwords for you and apprently this can result in several failed attempts to connect.  I don’t know why it didn’t prompt me for the correct password, even though my Exchange account at work popped up an invalid password notice.

Anywho, like I said I’ve had this happen a few times now and it’s always really annoying and I tend to forget how to clear the issue. But since, like I said, this just happened.  I’m going to go ahead and post the solution here. For you. And for myself.

Simply go to https://www.google.com/accounts and log into your account.  It should prompt you again to login but this time present you with a captcha.  Login one more time, filling in the captcha, and tada!  All done!

In a time of phising attacks and the like, I wouldn’t blame you for not wanting to just follow my link.  So here is the link to the Google knowledge base article.

And if that doesn’t make you feel secure, just google for “How do I unlock my Google Account”

Good, now let’s hope I remember to look here first next time.

Poll-a-pallooza: Behind the scenes

September 9th, 2008 Rev No comments

Today, on “Where Are They Now”: the story of a drug crazed.. who wait.. wrong post…

So, plenty of people, throngs even - okay one - have asked, “Rev! How DO you do those snazy polls for Poll-a-pallooza!?” The answer is simple,  wp-polls.

Hell, I’ll even throw in a free tip! If you create a poll and put it in your post, don’t also display it in the side bar widget. This confuses the javascript running the poll and it will fail to register the votes properly. (Learned this one the hard way.)

Okay, have fun rockin’ out to Poll-a-pallooza!  More polls coming to the second stage soon!

Was this post helpful?

View Results

Loading ... Loading ...
Tags: , ,

wp-hascash error solution

September 9th, 2008 Rev 1 comment

I’ve been using wp-hascash for a while not and it was a bit of a pain in the ass to setup at first.  There’s making sure you have the wp_head called before the closing </head> tag and comment_form called before the closing </form> tag in comments. But I started running into another error that was visibly manifesting itself as my other scripts on the page failing to fire and thus some visuals all out of whack.

After digging around a bit in the debugger and google I found this little bit of info that has fixed every issue I’ve had with wp-hashcash in the last few version of WordPress and wp-hashcash.

Error: document.getElementById(”wphc_value”) is null

so as to avoid this, it’d better to check beforehand if it’s null. So to say:
change line 372 from
echo “addLoadEvent(function(){document.getElementById(’wphc_value’).el.value=wphc();});\n”;

to:
echo “addLoadEvent(function(){var notNullWphc= document.getElementById(’wphc_value’); if(notNullWphc){notNullWphc.value=wphc();}});\n”;

Hopefully this will help folks out there suffering form the same “WTF?!” situation.

P.S. wp-hashcash works very well.

Reset passwords in OS X

September 9th, 2008 Rev No comments

WARNING: Doing this with FileVault on will lock you out of the files in the user directory.  Pretty much for ever.  Double check.  It’s not on by default.  But you never know.  And access to the key chain can be a littel fowled up.  Just nuke it and start over.

I recently picked up a PowerBook from a friend.  Oh how long I have lusted after the PowerBook.  And let me tell you.  It’s SO sexy. I mean, I have a BlackBook, technically a superior machine.  But this… this is like race car sexy….aaaany who.  That’s not the point.  Point is he gave it to me and didn’t give me the password.  After some googling around I found the answer, as follows:

  • Reboot the system and hold down Command(Apple key) - S
  • At the prompt type: /sbin/fsck -y
  • and then: /sbin/mount -uw /
  • and finally: passwd <username>

What this does is reboot into single user mode (Oh Noes!  Command Line!  Text!!!).  Then the next two commands (Listed above the prompt in Leopard) will mount in read/write mode the file system (You really don’t need to know this) and lastly typing passwd followed by the user whose password you want to change will prompt you for a new password and ask you to verify it.

Reboot and you’re done!

Tags: ,

Killing tasks/procs in vista from the command line

August 14th, 2008 Rev No comments

I’ve been having issues with Vista, of course.  It can get into a state where SOMETHING on the system freaks out and I can’t even pull task manager up.  I can see it’s icon in the dock going all crazy, but I can’t bring up the task list window and try and fix problems.

What I really wanted was top for windows.  But I couldn’t find that, sometimes being all graphical is a bad thing. But I did manage to find something close enough to what i was looking for: taskkill.  Use it thusly,

taskkill /IM taskmgr.exe

This should kill off that pesky process/app gone mad.  As it was I ran it on task manager and my system returned to normal. So next time you need to kill something like firefox and task manager just won’t come up - how likely is that, really? - try taskkill.

P.S. I have a Core 2 Duo T7300 2.0Ghz system with 2 Gigs of RAM and my experience “Rating” is 3.4.

I loath you, Vista.

Tags: , ,

Vista and Screen Refreshing at Unlock

March 24th, 2008 Rev 1 comment

If you’re like me and you have to use Vista (sorry) you might be running into an annoyance. If you’re running multiple monitors - might happen on singles, don’t know - when you wake the system up, unlock it, or just basically log in the screen(s) will tend to blank out and rebuild themselves. This has the annoying effect of (at least for me) shoving everything I had on my external monitor back onto the main monitor. This forces me to find all the windows I’d had on the other monitor and shuffle them back over.

After weeks of doing this I just gave up as it wasted lots of time and eventually I had a second monitor that was never used. Vista just oozes fail. Anywho. I tracked down the solution and here it is for your enjoyment.

Bring up the Task Scheduler (found under Administrative Tools). Go down the Task scheduler tree on the left to Task Scheduler -> TaskScheduler Library -> Microsoft -> Windows -> MobilePC. There you’ll find TMM. Go ahead and disable that. This supposedly allows windows to detect and configure newly added monitors on the fly. It frankly hasn’t worked properly for me in the past - I run an external as a main monitor on my setup and when I slept my laptop and took it home it still thought the main was there and so displayed the menu bar and all on some non-existent monitor. DOH!

Anywho, disable this task. And then remember to the Task Scheduler Summary (Task Scheduler in the tree on the left) and select “Display All Running Tasks”. Find TMM, it’ll be running, it was for me. And then stop it.

Since then I’ve had no problems with my screen cleaning up all my windows and sweeping them away. This is also supposed to keep you refresh rates and resolutions from being reset. Though I only had that happen once or twice.

Good luck with your further pains of working with Vista. And remember, you’re not alone. Though, in a perfect world…

Speed Download 5 not so speedy?

March 19th, 2008 Rev No comments

If you’ve upgraded to Speed Download 5 from 4 and you notice that it’s not as snappy as you remember 4 being, you’re not alone. I was wondering what was going on and a did a little poking around. At least for me the download speed was throttled by default to 64k.

Click that little bar graph icon in the lower left of the window and adjust it there. I went for unlimited, if I’m going to download something let’s get it down as soon as possible and get it over with.

Tags: ,

Javascript trim

March 14th, 2008 Rev 1 comment

This is your friend when you need to trim whitespace in javascript:

replace(/^\s*|\s*$/g,”)

Tags: ,