By Rupert
Posts tagged mac
Mac Softwares and CheatSheet
Aug 26th
1. iTerm – terminal with tabs.
2. MarsEdit- Blog Software. Im doing a local post on a local wordpress then copying and pasting to a remote wordpress.
3. Mac Shortcuts from http://www.danrodney.com/mac/index.html. Here’s a local post and another one.
4. How to create an ISO?
hdiutil makehybrid -o CS3v1.iso CS3
5. chmOX – CHM Viewer in OSX.
6. Git for OS X from google code.
7. Open a finder from terminal
open .
8. Keychain Access asking on passwordless ssh?
ssh-add Enter passphrase: ****** ssh-add -l <To list your identities>
Firefox crashes on my Mac caused by Java Applet VM
Dec 17th
After manually updating to Java MacOSX10.5 Update 2 two months ago, I noticed something weird with my Firefox. At first, I ignored it, “heh must be a screwed-up page Im trying to open…” But lately, I noticed that most of the pages I am opening with Java applets crashes consistently. So here is the culprit, try to delete java caches if there are any…
Trying to figure out which version of the java applet being used by FF


Deleting the cache.. Go to
/Application/Utilities/Java/ and launch Java Preferences.app or you could seach for “java preferences” in spotlight.

If the problem still persist, I bet we can trim down which java versions to use…

Rails Note #12: Oracle on Intel Mac
Dec 5th
2. Install Oracle Instant Client on Mac.
a. Instant Client Package – Basic: All files required to run OCI, OCCI, and JDBC-OCI applications
- instantclient-basic-macosx-10.2.0.4.0.zip (34,020,719 bytes)
b. *Instant Client Package – SDK: Additional header files and an example makefile for developing Oracle applications with Instant Client
instantclient-sdk-macosx-10.2.0.4.0.zip (603,493 bytes)
OR download the whole bundle (10.2.0.4.zip) with sqlplus installed from my installers.
3. Put this on your sudo vim ~/.bash_profile.
export ORACLE_HOME=/Library/Oracle/instantclient/10.2.0.4 export TNS_ADMIN=$ORACLE_HOME export LD_LIBRARY_PATH=$ORACLE_HOME export DYLD_LIBRARY_PATH=$ORACLE_HOME export PATH=$PATH:$ORACLE_HOME
4. Make a symbolic link
cd /Library/Oracle/instantclient/10.2.0.4 ln -s libclntsh.dylib.10.1 libclntsh.dylib
5. Go to /Library/Oracle/instantclient/10.2.0.4 and edit tnsnames.ora. Point the Oracle SID to the IP where you installed Oracle.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.155)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
ORCL_2_11 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.11)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)6. Install the oracle-adapter for rails
sudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org
7. In your database.yml file
development: adapter: oracle database: orcl username: youzhu_mobile_dev password: your_password
or browse the contents of a sample rails project youzhumobile.tar.gz
8. If you ever encounter an encoding problem, then we need to set the NLS_LANG environment variable before running script/server.
# export NLS_LANG=American_America.UTF8 # script/server
or I prefer setting it in the environment.rb
Rails::Initializer.run do |config| ENV['NLS_LANG']='American_America.UTF8' # Settings in config/environments/* take precedence over those specified here.
Note: If you don’t know your database encoding, then read this post.
How to present your nokia screen to your computer?
Dec 3rd
I’ve found this tool which could display my Symbian phone in my Mac using WLAN. It supports BT, WLAN, and USB. So far, WLAN works for me so I sticked with it.
1. Download the software from http://www.digia.com/
2. Install the sis to your Nokia phone. Mine is an E61 so I paired it using BT on my mac.
3. Once installed, fill up the options on your phone… then try to ‘CONNECT’
Connection: TCP/IP
Access Point: Ofc (or Define an access point)
TCP/IP Host: 192.168.1.150 (IP address of my mac)

Fig 1 Trial mode lets you use it for the next two minutes with a big ‘TRIAL’ display on screen.

Fig 2. Sample USSD Message
Mac Tip Of the Day: Viewing CHM + iTerm Bookmarks
Nov 9th
1. http://chmox.sourceforge.net/ – Let me view CHM files in OSX.
2. iTerm Bookmarks

Example:
1. Pressing [CTRL] + [COMMAND] + [R] goes to “/opt/ruby” directory
2. Pressing [CTRL] + [COMMAND] + [s], opens up an SSH terminal by specifying the PORT and IP.


Comments