Archive
How to setup __MyCompanyName__ in Xcode
By default, Xcode inserts a company name something similar to the following in all new source files (.m .h etc):
Copyright (c) 2011 __MyCompanyName__. All rights reserved.
Want to know how I know aliens exist?
How to mount ext2/ext3 filesystems with Snow Leopard
The ext2 and ext3 filesystems are very popular in the Linux world, often I receive data on pen drives formatted with this type of filesystems.
Snow Leopard doesn't have native support for these two filesystems, but it is very simple to add the management of them. It is a two step procedure:
A useless trick for Mac OS X: The Desktop Background
It is possible to use a screensaver as background image in Mac OS X. Simply follow the following steps:
- Set your screen saver to something cool
- Open a new Terminal window
- Type the following command:
# /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
that's all, now your desktop will show your screensaver.
Customizing the login window on Mac OS X
It is possible adding a text string to the login window, for example you can add a welcome message, simply open a new terminal window and type the following command:
# sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Hi man”
Mac OS X Terminal trasparency
In Mac OS X you can make the Terminal windows transparent simply issuing the following command:
# defaults write com.apple.terminal TerminalOpaqueness 'value'
Where value can assume values between 0.0 and 1.0
With value=1 your terminal will be completely opaque.
How to convert an NSString to Char and vice versa
I have a lot of code written in C, since I'm writing code for the iPhone the need of reusing this old code has arisen.
One of the first thing to do is the conversion between NSString and char *
you can convert NSString to char* simply using the following line of code:
iOS 4.1: Apple has just released its SDK
This morning Apple has released the iOS 4.1 for the iPhone.
Good news from this firmware:
- Some bugs have been solved.
- HDR is now available for iPhone 4
- Game Center is now available.
- The Ping social network is now integrated in iTunes.
New platforms for RTI DDS 4.5c
The latest version of RTI DDS (4.5c) adds support for the following new platforms:
- Windows 7 (32/64-bit) and Windows Server 2008 R2 (64-bit) with Visual Studio® 2010 support
- Mac OS® X on x64
- VxWorks® 6.7
- Fedora™ 9 on Cell BE
- SELinux on PowerPC
Latest Comments