Monday, August 23, 2010

Hilarious review of Windows 7

A bit late, but I ran across this hilarious review of 'Windows 7'.

http://www.cracked.com/blog/using-windows-7-may-lead-to-murder/

Check out what windows he has open in the task bar and also read the comments. Very funny. Enjoy! :)

Saturday, July 24, 2010

Sending images in MMS messages with Froyo on Nexus One

Upgraded to Android 2.2 Froyo and suddenly can't send images in MMS messages? (Mine just said Sending in the message view and never changed to Sent)
The problem could likely be that the images are too large to be sent (carriers usually have a max limit on image size or upload is so slow the it can't finish with a large image) and Froyo dosen't resize the image like 2.1 Eclair did.

To send images you need to crop them first. This will create a new image from a subsection of the original. (Not destroy the image being cropped tho). Do like this:

Open Gallery and open the image you want to send. Press the More button and choose Crop. Select the portion of the image you want and press Save.
You will now have the original plus a new smaller image.

Then, for the new image, do like usual, press Share and Messaging or choose Menu and Attach from inside a message.

Friday, July 16, 2010

Disabling spellchecker in NetBeans

I started using NetBeans and quickly encountered the annoying red underlining of all words in my code. Disabling the spellchecker feature in NetBeans 6.9 is NOT done by deselecting all files in the Options -> Miscellaneous -> 'Spellchecker' tab.

For NetBeans to really understand that you don't want spellchecker, do the following:
Go to Tools -> Plugins -> Installed tab -> select the spellchecker plugin -> press Deactivate -> restart NetBeans

Alternatively try adding the file type you are working on (if NetBeans doesn't recognize it) by following this post: http://www.herikstad.net/2010/07/filetypes-in-netbeans.html#links

Filetypes in NetBeans

Working with ex. .tpl files? Getting NetBeans to recognize most of the code (at least the HTML, JS, and CSS), and do code highlighting on it, is as easy as adding 'tpl' as an associated file type:

Follow http://www.waltervos.com/news/adding-filetypes-to-netbeans/.

Alternative to Eclipse IDE

So, getting tired of eclipse's infinite number of program/system halting tasks?

Maybe you should try Netbeans, it's not just for Java development. There are also plugins for PHP, Ruby, C/C++, and Groovy (whatever that is).

Check it out at:
http://netbeans.org/

Saturday, July 10, 2010

Opera icon in ubuntu gone

Did you have a shortcut to launching Opera and have it's icon disappear when upgrading your Opera installation? (e.g. to 10.60).

No worries, just open the shortcut properties (use http://www.herikstad.net/2010/05/setting-ubunutu-menu-item-icon.html if it is a menu or panel shortcut). The location you want to look for the icon is:
/usr/share/opera/styles/images.
Select the Opera_256x256.png file.

Voila. :)

Friday, June 25, 2010

Accessing elements cross-frame (HTML)

I know it is a hassle, but sometimes you need to maintain legacy code and come across someone using frames. To access elements in other frames you need to go to the top and 'back down into the frame you want':

<name of parent frame>.<name of sibling frame>.element
parent.mainframe.location.href = 'next.html'

Remember javascript variables that should be accessible cross-frame need to be global (not declared with var (var variablename)). Also for jQuery you use the document as a root to get elements from. e.g.:
parent.mainframe.document.myVar = 5;

Check out these pages for more information: http://forum.jquery.com/topic/jquery-getting-to-a-variable-in-the-parent-frame-stumped, http://anothertechnicalblog.blogspot.com/2009/08/seleccion-de-elementos-dentro-de-un.html