7.14.2009
Fusion Can Explode
4.07.2009
I Love Shortcuts!
All Caps - CTRL+SHIFT+A
Annotation - ALT+CTRL+M
Auto Format - ALT+CTRL+K
Auto Text - F3 or ALT+CTRL+V
Bold - CTRL+B or CTRL+SHIFT+B
Bookmark - CTRL+SHIFT+F5
Copy - CTRL+C or CTRL+INSERT
Copy Format - CTRL+SHIFT+C
Copy Text - SHIFT+F2
Create Auto Text - ALT+F3
Date Field - ALT+SHIFT+D
Delete Back Word - CTRL+BACKSPACE
Delete Word - CTRL+DELETE
Dictionary - ALT+SHIFT+F7
Do Field Click - ALT+SHIFT+F9
Doc Maximize - CTRL+F10
Doc Move - CTRL+F7
Doc Restore - CTRL+F5
Doc Size - CTRL+F8
Grow Font - CTRL+SHIFT+.
Grow Font One Point - CTRL+]
Hanging Indent - CTRL+T
Header Footer Link - ALT+SHIFT+R
Help - F1
Hidden - CTRL+SHIFT+H
Hyperlink - CTRL+K
Indent - CTRL+M
Italic - CTRL+I or CTRL+SHIFT+I
Justify Para - CTRL+J
Left Para - CTRL+L
Line Up Extend - SHIFT+UP
List Num Field - ALT+CTRL+L
Outline - ALT+CTRL+O
Outline Collapse - ALT+SHIFT+- or ALT+SHIFT+NUM -
Outline Demote - ALT+SHIFT+RIGHT
Outline Expand - ALT+SHIFT+=
Outline Expand - ALT+SHIFT+NUM +
Outline Move Down - ALT+SHIFT+DOWN
Outline Move Up - ALT+SHIFT+UP
Outline Promote - ALT+SHIFT+LEFT
Outline Show First Line - ALT+SHIFT+L
Lock Fields - CTRL+3 or CTRL+F11
Web Go Back - ALT+LEFT
Web Go Forward - ALT+RIGHT
Word Left - CTRL+LEFT
Word Left Extend - CTRL+SHIFT+LEFT
Word Right - CTRL+RIGHT
Annotation - ALT+CTRL+M
Auto Format - ALT+CTRL+K
Auto Text - F3 or ALT+CTRL+V
Bold - CTRL+B or CTRL+SHIFT+B
Bookmark - CTRL+SHIFT+F5
Copy - CTRL+C or CTRL+INSERT
Copy Format - CTRL+SHIFT+C
Copy Text - SHIFT+F2
Create Auto Text - ALT+F3
Date Field - ALT+SHIFT+D
Delete Back Word - CTRL+BACKSPACE
Delete Word - CTRL+DELETE
Dictionary - ALT+SHIFT+F7
Do Field Click - ALT+SHIFT+F9
Doc Maximize - CTRL+F10
Doc Move - CTRL+F7
Doc Restore - CTRL+F5
Doc Size - CTRL+F8
Grow Font - CTRL+SHIFT+.
Grow Font One Point - CTRL+]
Hanging Indent - CTRL+T
Header Footer Link - ALT+SHIFT+R
Help - F1
Hidden - CTRL+SHIFT+H
Hyperlink - CTRL+K
Indent - CTRL+M
Italic - CTRL+I or CTRL+SHIFT+I
Justify Para - CTRL+J
Left Para - CTRL+L
Line Up Extend - SHIFT+UP
List Num Field - ALT+CTRL+L
Outline - ALT+CTRL+O
Outline Collapse - ALT+SHIFT+- or ALT+SHIFT+NUM -
Outline Demote - ALT+SHIFT+RIGHT
Outline Expand - ALT+SHIFT+=
Outline Expand - ALT+SHIFT+NUM +
Outline Move Down - ALT+SHIFT+DOWN
Outline Move Up - ALT+SHIFT+UP
Outline Promote - ALT+SHIFT+LEFT
Outline Show First Line - ALT+SHIFT+L
Lock Fields - CTRL+3 or CTRL+F11
Web Go Back - ALT+LEFT
Web Go Forward - ALT+RIGHT
Word Left - CTRL+LEFT
Word Left Extend - CTRL+SHIFT+LEFT
Word Right - CTRL+RIGHT
4.01.2009
SSH through SOCKS proxy
compile connect source and put to any bin
add to ssh config file:
Host * ProxyCommand connect -S socks.proxy.la %h %p2.24.2009
Clippy! I miss thou!!
I thought it was a restriction or expired evaluation time but its NOT!
They have replaced the way to show copy & paste button to by holding
[123] even for copying an sms, you need to hold them. Thank God Clippy
is back!
Sent from my iPhone
They have replaced the way to show copy & paste button to by holding
[123] even for copying an sms, you need to hold them. Thank God Clippy
is back!
Sent from my iPhone
2.02.2009
backup-sms.sh
I always have the feeling that huge sms.db will slow down SMS application startup. So I created a script to be run in Terminal and I wish I can do an application for this.
#!/bin/sh
# backup-sms.sh
#
#
# Created by amanyus on 2/2/09.
# Copyright 2009 __MyCompanyName__. All rights reserved.
DATE=`date +%y%m%d`
echo "${DATE}"
if test -f /var/mobile/Library/SMS/sms.db.$DATE
then echo "Today's backup already exists."; exit; fi
if ! test -f /var/mobile/Library/SMS/sms.db.$DATE
then cp -npv /var/mobile/Library/SMS/sms.db /var/mobile/Library/SMS/sms.db.$DATE; fi
ls -lrt /var/mobile/Library/SMS/
if test -f /var/mobile/Library/SMS/sms.db.$DATE
then echo "Today's backup successful"; fi
2.01.2009
Aperture: A tiny thing that saves a lot of time.

Just for expressing an excitement. A new thing I just discovered and love about Aperture.
I have a lot of pictures and my last trip to Langkawi produced more than 1700 shots - and my mother wants them ALL! So as I started to export hundreds of pictures, I went through one by one to reject bad photos - even the exporting is still running (right now). Suddenly I came to a photo that attracts me. After a simple edit, I decided to upload it to Flickr and this is the good part. I don't have to wait for the earlier exporting process to complete before exporting a new picture. It really saves my time.
What a good software design in customer point of view!
11.18.2008
Leopard Re Installation: Part 2
I reformat using the same filesystem my external hard drive uses. Then set UID to 1000 in the System Preferences > Accounts > Advanced Options (right click on username). After that chown whole home directory.
Leopard Re Installation: Backup & Restore Issue
I wanted to replace my OS X Server because of lack of Internet Sharing feature. So I do both Time Machine backup and manual backup before making a fresh OS X installation. These are the issue that I faced.
Restoring using Time Machine right after Leopard Installation is not as I expected. There will be folders like 'System (from old mac)', 'Applications (from old mac)'. For me, this is not neat.
Your OSX filesystem must have the same format as your Time Machine backup filesystem. I'm using HFS Journaled with Case Sensitive, but my external hard disk is using HFS Journaled NOT with Case Sensitive. I have to reformat either my OS X partition, or my external hard disk.
Restoring files from Time Machine is strict because of UID. My user uses 501 as UID but my last Server system was using 1000 as UID. So restoring could get complicated.
Right now I'm going to change my UID and reboot and see what will happen.
Restoring using Time Machine right after Leopard Installation is not as I expected. There will be folders like 'System (from old mac)', 'Applications (from old mac)'. For me, this is not neat.
Your OSX filesystem must have the same format as your Time Machine backup filesystem. I'm using HFS Journaled with Case Sensitive, but my external hard disk is using HFS Journaled NOT with Case Sensitive. I have to reformat either my OS X partition, or my external hard disk.
Restoring files from Time Machine is strict because of UID. My user uses 501 as UID but my last Server system was using 1000 as UID. So restoring could get complicated.
Right now I'm going to change my UID and reboot and see what will happen.
9.27.2008
Phone Number Fix on iPhone (localization)
Problem is iPhone doesn't recognize callers. Although they exist in the address book, iPhone only show their number with extra country code prefix.
Replace PhoneNumberTemplates.plist
in the /System/Library/PrivateFrameworks/AppSupport.framework
*Best to just backup/rename than to remove.
Replace PhoneNumberTemplates.plist
in the /System/Library/PrivateFrameworks/AppSupport.framework
*Best to just backup/rename than to remove.
Custom Ringtones on iPhone
Convert audio file to use AAC codec and change the extension to m4r. Must not exceed 40 seconds.
Fix Youtube on iPhone
Unzip unlock.zip
to /private/var/root/Library/Lockdown and remove pair_records folder.
*Best to just backup/rename than to remove.
to /private/var/root/Library/Lockdown and remove pair_records folder.
*Best to just backup/rename than to remove.
7.16.2008
Unresponsive Dock and Finder
I can't access Dock just now. No respond. And I'm unable to go through Finder too, so I can't get a touch on Terminal. I forced quit some applications, but there's only TextEdit which I left because there's work which wasn't saved yet. Then how do I rescue this without force quitting the TextEdit which I'm not even sure if it is the cause of all this? But I'm pretty sure that it was about the hung Dock. I really wanted to avoid logging out or reboot.
But user fast switch is enabled. I logged in as administrator and used terminal to kill other's Dock process.
PS=`ps aux | awk '{if($1="amanyus") print}' | grep -i dock`; kill $PS
PS is temporary shell variable to hold a value. This value is coming from a ps command after few filtering with awk and grep. Awk only print lines that match the first column with user amanyus, which result in all amanyus' processes. Next with grep, only match insensitive case dock rather that all processes under user amanyus because we only want to find Dock process and put in the PS variable. Up to this point, PS variable will hold the process number of amanyus' Dock. After the semicolon, the process will be killed.
Silly is you just can simply use
p/s: Hey, I forgot about spotlight at the first time to search Terminal, but not sure if it would work.
But user fast switch is enabled. I logged in as administrator and used terminal to kill other's Dock process.
PS=`ps aux | awk '{if($1="amanyus") print}' | grep -i dock`; kill $PS
PS is temporary shell variable to hold a value. This value is coming from a ps command after few filtering with awk and grep. Awk only print lines that match the first column with user amanyus, which result in all amanyus' processes. Next with grep, only match insensitive case dock rather that all processes under user amanyus because we only want to find Dock process and put in the PS variable. Up to this point, PS variable will hold the process number of amanyus' Dock. After the semicolon, the process will be killed.
Silly is you just can simply use
ps aux | grep amanyus | grep Dock and kill the Dock's process without bothering with awk command =pp/s: Hey, I forgot about spotlight at the first time to search Terminal, but not sure if it would work.
6.04.2008
6.03.2008
5.26.2008
Screwed Up: Open Directory Part 3
drwx------+ 6 diradmin staff 204 May 25 16:36 Desktop
drwx------+ 22 diradmin staff 748 May 19 09:45 Documents
drwx------+ 109 diradmin staff 3706 May 25 18:52 Downloads
drwx------+ 42 diradmin staff 1428 May 19 09:18 Library
drwx------+ 9 diradmin staff 306 May 25 17:13 Movies
drwx------+ 5 diradmin staff 170 May 13 13:00 Music
drwx------+ 11 diradmin staff 374 May 25 15:40 Pictures
drwxr-xr-x+ 5 diradmin staff 170 May 14 08:58 Public
drwxr-xr-x+ 11 diradmin staff 374 May 23 00:06 Sites
drwxr-xr-x@ 314 diradmin staff 10676 May 26 09:47 mp3The owner of my original home folder gave me a clue. They are all owned by directory admin. And I remember last time when I changed the Open Directory role to the Directory Master, we need to set password and verified it. There is also a username already written there as diradmin. So what I did is I set the role to standalone and set it back again to Directory Master. This time I replace the diradmin as my original account name. I backed up before commit to prevent any loss or the potential of my home folder be overwritten. Fortunately it doesn't. No files affected. The owner also automatically changed. And once again, the day is saved thanks to the powerpuff mac :-P
drwx------+ 6 amanyus staff 204 May 25 16:36 Desktop
drwx------+ 22 amanyus staff 748 May 19 09:45 Documents
drwx------+ 109 amanyus staff 3706 May 25 18:52 Downloads
drwx------+ 42 amanyus staff 1428 May 19 09:18 Library
drwx------+ 9 amanyus staff 306 May 25 17:13 Movies
drwx------+ 5 amanyus staff 170 May 13 13:00 Music
drwx------+ 11 amanyus staff 374 May 25 15:40 Pictures
drwxr-xr-x+ 5 amanyus staff 170 May 14 08:58 Public
drwxr-xr-x+ 11 amanyus staff 374 May 23 00:06 Sites
drwxr-xr-x@ 314 amanyus staff 10676 May 26 09:47 mp3
Screwed Up: Open Directory Part 2
amanyus:log root# host amanyus.puj52
;; connection timed out; no servers could be reachedAfter few smacks on the head lol, I played around with DNS service on the Server. I created a zone, named it and added machine record in it. That solved my problem.
amanyus:log root# nslookup amanyus.puj52
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: amanyus.puj52
Address: 192.168.1.14
amanyus:log root# host amanyus.puj52
amanyus.puj52 has address 192.168.1.14
Since the DNS is clean, Kerberos finally running. But the my usual login still doesn't show up :-(
Subscribe to:
Posts (Atom)





