Google API for iPhone

Google released a OS X Objective-C library for interfacing with some of its services.
This library should works for iPhone too…

Link here.

Advertisements

Installing OSX Drivers without rebooting

A step by step guide about a way to installing Os X drivers without rebooting:

1. Download the driver you want to install, for example <ExtensioneName>
2. Extract the contents onto the desktop
3. Open the Terminal application in the Applications/Utilities folder
4. Type “tail -f /var/log/system.log” to obtain debugging output for the first run.
5. Use the menu bar to open up a new Terminal window.
6. In this new window, type “cd ~/Desktop/<YourSoftwareName>/build/Release”
7. sudo chown -R root:wheel <ExtensioneName>.kext
8. sudo chmod -R 755 <ExtensioneName>.kext
9. sudo kextload -v <ExtensioneName>.kext
10. Observe in the log window what happens.
11. Test out the driver by using it…
12. If there were any problems in steps 10 or 11, type “sudo kextunload <ExtensioneName>.kext”
13. To install the driver, type “sudo cp -R <ExtensioneName>.kext /System/Library/Extensions”
14. Lastly, update the extensions cache with “sudo kextcache -k /System/Library/Extensions”
The old way needs to delete “Extensions.kextcache” and “Extensions.mkext”, located in “/System/Library/” and then enter the following commands:

sudo chown -R root:wheel /System/Library/Extensions
sudo chmod -R 755 /System/Library/Extensions
Atfer these commands you have to repair disk file permissions with Disk Utilities and reboot.

Much better the new way!!

Mounting OSX .DMG images from shell

This is an easy way to mount OS X installer packages (.dmg files) from the command line tool.

First of all, you must have your .DMG file, or you can download it still using the shell.

To download with command line use the curl command:

MacMini>curl http://web.address.pointing.to/the/file/to/download.dmg > myFile.dmg

Then to mount the image use the following command:

MacMini> hdid myFile.dmg

That’s all!

MacMini: enabling deep sleep

If you want to enable the windows-like “hibernation” feature on your mac mini, this is your post.

  1. Go to http://deepsleep.free.fr/ and download the .dmg
  2. Double click on the .dmg file.
  3. Double click on the “Deep Sleep” icon and install it.
  4. Launch Terminal application, located in the Utilities folder in the Application folder
  5. Now you have to execute some commands:
    1. With an administrator user type:
      sudo pmset -a hibernatemode 3
    2. Check if the file located in /private/var/vm/sleepimage exists, if not repeat command 1 again.
    3. Now, you have to fix a little issue.
      Go to your home folder, the to Library folder and then Widgets one.
    4. Select “Deep Sleep” and right-click on it. Choose “Package Contents”.
    5. In the terminal window type: cd /Library/Widgets/Deep\ Sleep.wdg/
    6. Now fix the issue: chown root:wheel deepsleep
    7. And again: chmod 4755 deepsleep
    8. At this point, everything should works.

Click on the widgets icon on the toolbar, then click on Deep sleep.
To wake up your mini, click on the power button on the back side.