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/.

UPDATE 24.03.2011: NetBeans have had a Smarty (.tpl) plugin for a while, but it hasn't been very good. Now it's getting much better. You can download it from withing NetBeans, go to Tools > Plugins > Available Plugins, search for smarty, check the checkbox beside the plugin and press Install.

(Make sure you have NetBeans Beta Update Center (See Settings tab of Plugins window URL: http://updates.netbeans.org/netbeans/updates/6.9/uc/final/beta/catalog.xml.gz for NetBeans 6.9))

NetBeans' blog posts about Smarty plugin: http://blogs.sun.com/netbeansphp/entry/initial_support_for_smarty_available and http://blogs.sun.com/netbeansphp/entry/smarty_update_custom_delimiters

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. :)