New Year
- Wednesday Jan 13,2010 06:02 PM
- By wmensah
- In Uncategorized
Happy New Year. myDiary is 2 years old. Unbelievable!
Happy New Year. myDiary is 2 years old. Unbelievable!
For some reason, when you create an array inside a HTML form and pass it to a javascript function, the 1st element in the array turns out to be undefined when it is the only element in the array.
This can occur, for example, in the case where you have a group of checkboxes and want to pass an array of them to a javascript function to, lets say, check/uncheck all of them. If there is only one checkbox, don’t blow your brains out wondering why it’s not working. Do an alert inside the javascript function and try to print out the value of the first element. You’ll find out that it’s undefined.
I’ve Googled/Binged (can we make that a term now?) around and haven’t found any legit solution, so my suggestion is to use a hidden checkbox field and assign it a value (that will be stored in the array) that would never be used when being processed by your javascript function – like a negative number if your array is storing only positive numbers.
That should save you some headache. If there’s a better solution/workaround, please comment on this.
For the record, the attributes (values) of each instance have to be replaced by their respective bin numbers after running infogain on the columns.
when u want to share stuff with the general public – you tweet or update your facebook status. When you want to keep it personal, you use myDiary. New version available: http://www.wilmens.net/downloads/myDiary-4.5-Beta3-Setup.exe
So I finally download Palm’s mojo SDK hoping it will be a quick and glorious download and install operation – but boy was I wrong! I run into quite a number of problems before finally getting it to work.
First, installing on my 64-bit copy of Windows 7 was a no-no! Installation will begin and progress to the end only to roll back everything and tell me it was interrupted. Wow, really? Interrupted by what? Retired a 2nd and 3rd time (and even a 4th time, i think) only to get the same error. Strange.
Okay, well I booted into my Windows Vista (64-bit) partition and repeated the installation process. As usual, I went with all the default setup options and ended up installing the SDK to C:\Program Files (x86). It was after that I found out online that the SDK doesn’t do too well with the parentheses in the path – ugh!
Looking for a way out, I thought to myself……..hmm, maybe 64-bit Windows is really out of the question (because Palm claim’s it’s not currently supported, or kind of), and decided to attempt installing it on Ubuntu 8.04 which I have set up in VirtualBox on Windows Vista (see sweetness of Sun xVM VirtualBox). Doing so, installation went well and I didn’t encounter any errors/problems starting up the emulator. The splash screen showed up for a few seconds and then an instance of VirtualBox was started but with a blank screen. The blank screen just sat there and stared me in the face like “what do you expect me to do? load some kind an interface?” Why I was getting a blank screen? I have no idea! Fine, forget the SDK on Linux via VirtualBox. What in the world am I doing wrong here? Everyone in every forum online seems to have happily installed the SDK.
Several forums recommended installing the SDK to a path such as C:\Palm, which I humbly followed later on, hoping I’d come across the remedy; oh but now guess what? The SDK can’t figure out where I have VirtualBox installed and thinks I might have an older version installed. I got the error:
“Palm emulator requires that virtualbox 2.2.0 or higher is installed”
Wow, really? Umm, now what?
Googling didn’t help much. So after playing around for a bit, I remembered that I have 2 Program Files directories. One is simply “Program Files” and the other is “Program Files (x86)”. I also realized that the “Program Files” directory also contained a subdirectory (…\Program Files\Sun) where virtualbox was installed. Hmm, that might work.
Not feeling like going through the whole process of uninstalling and reinstalling the SDK in Program Files, I simply copied and pasted the entire Palm directory from C:\Program Files (x86) to C:\Program Files and then double-clicked on palm-emulator.exe (inside the bin folder) – AND THAT’S WHEN IT WORKED!
Here’s a screenshot.
By the way, I came across a solution to the Windows 7 RC (64-bit) installation issue here. I haven’t gone through with it to verify that it works though.
Love the background at www.wilmens.net? Well now you can download it and set it as your desktop wallpaper for free.
Supposing you have a string in your xml file that contains html tags for whatever reason (perhaps you want the content of the string to be displayed in html format at some point), be sure to replace all ‘<’ with ‘<’ and all ‘>’ with ‘>’ .
So basically, a string such as “<b>Hello World!</b><br>Now what?” would have to be changed to “<b>Hello World!</b><br>Now what?”
Ugly? You bet!! but it’s your best bet! To avoid getting dizzy, you might want to select the string and perform a find & replace on this kind of stuff. Otherwise you might spent hours trying to figure out why your xml script is not working.
Provided is a bunch of words (1000+) that you might encounter on the GRE/GMAT. You’ll need (or can use) Flash Card Manager to use the attached file.
Big ups to the creators of Flash Card Manager – that is one handy software!!!
Best search tool you can ever award your computer with!
Clueless about what ECM or Web 2.0 is? Check out these great videos I came across on YouTube – the first explaining what ECM is, the second explaining what Web 2.0 is and how it came about and the last video explaining how the 2 are (or might be) integrated.