Tuesday, May 31, 2011

How to post blackberry OTA files on your website!

When posting files on your website for OTA downloads, you will need to either modify the .htaccess file (for Linux servers) or MIME Types (for Windows servers.)

Linux & modifying the .htaccess file:
Place the following information into a notepad file named ".htaccess"

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType application/vnd.rim.cod cod


Windows & adding MIME Types:
Add the following information to the MIME Types on your host site

Extension: jad
MIME type: text/vnd.sun.j2me.app-descriptor

Extension: cod
MIME type: application/vnd.rim.cod

http://forums.crackberry.com/f3/how-post-ota-files-your-website-177967/

Wednesday, May 25, 2011

Mac sleep mode and freeze issue

From http://forums.macrumors.com/showthread.php?t=290091

I had the same freezing problems after closing the lid and going to sleep mode in my maxed up MacBook Pro (17" 2.93GHz Intel Core 2 Duo, 8GB 1067 MHz DDR3 RAM, 250GB OCZ Vertex SSD). Very annoying! Nonetheless, after googling a lot, I apparently solved this proble by changing the sleeping mode modality from "3" (default in the newest machines) to "0" (older modality).

Here is a more detailed explanation:

After you launch Terminal, the first step is to determine which sleep mode your Mac is currently using (in case you wish to go back to it). You can both view and change the sleep mode using the Unix program pmset. To see your current settings, type pmset -g | grep hibernatemode. You should see something like this:

pmset -g | grep hibernatemode hibernatemode 3

Great, so your machine is using mode 3, whatever that might be. Well, thanks to the documentation for the handy Deep Sleep Dashboard widget, which puts your machine immediately into hibernation mode (so you don’t have to yank all the power sources to invoke it), we can tell exactly which mode is which:

0 - Old style sleep mode, with RAM powered on while sleeping, safe sleep disabled, and super-fast wake.
1 - Hibernation mode, with RAM contents written to disk, system totally shut down while “sleeping,” and slower wake up, due to reading the contents of RAM off the hard drive.
3 - The default mode on machines introduced since about fall 2005. RAM is powered on while sleeping, but RAM contents are also written to disk before sleeping. In the event of total power loss, the system enters hibernation mode automatically.

To change your sleep mode, you use pmset again, providing the variable and value you wish to assign. So to return to the old style sleep mode (which is mode 0 from the above list), enter this command:

sudo pmset -a hibernatemode 0

Press Return, and you’ll be asked for your password. Provide it, and your sleep mode has been changed. Note that restarting is not required for these changes to take effect.

Recover some drive space
If your machine was previously set to mode 3 (or 7 ) and you’ve reverted to the old style sleep mode, you’ve got one more step to take: recover the drive space used up by the copy of your system’s RAM, which was created the last time you slept the machine prior to making the switch. In Terminal, enter these two commands, pressing Return after each and providing your password when asked (in my case it didn't ask for my password again after changing the sleep mode)

cd /var/vm
sudo rm sleepimage

In my case it released almost 8GB of disc space. I guess it will closely amount the amount of RAM your system has. Ironically, by trying to make a "super system" by paying $2,000 for 8GB RAM plus the SSD drive, it might have been to much RAM to copy and recover to the SSD every time the system goes to sleep and wakes up...as they say "the best is sometimes enemy of the good".

Good luck!

JR Mora