Search Ali's Blog

Loading...

Thursday, April 03, 2014

[MAC OS] Fix Home/End keys



OS X version: 10.8.x
Issue: If you're used to get to the begining/end of the line by hitting home/end keys, you might already noticed that this is not the way it works on MAC


Fix: Open terminal window:

mkdir -p ~/Library/KeyBindings/
copy and paste the following:
{
/* Remap Home / End keys to be correct */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */
}


Save and restart.
Credit goes to:
http://mwholt.blogspot.com/2012/09/fix-home-and-end-keys-on-mac-os-x.html

Thursday, February 27, 2014

[MAC OS] "VMWare Tools has modified the user Interface size Settings. You must log off ..."

If you use VMware fusion, and got the error message:
"VMWare Tools has modified the user Interface size Settings. You must log off ..."

The problem can be fixed by reinstalling VMWARE SVGA 3D" driver


Sunday, October 20, 2013

Linux boot process

A nice article about Linux boot process:
http://www.ibm.com/developerworks/library/l-initrd/

Thursday, August 22, 2013

[Linux] Online tool to add prefix into each line

If you need to copy/paste some text for a Linux-like Email reply, you may need an online tool to add the prefix ">" before each line. This online tool makes it possible:


Sunday, July 07, 2013

[MAC OS] Google Drive "Retrying X files"

OS X version: 10.8.x
Issue: Google drive Version 1.10.4769.0632 keeps retrying to syncup files and fails. Right click on the Google drive icon shows "Retrying X files" (e.g. Retrying 2 files), it doesn't show up the reason of the failure, or what files fail to sync.

Fix: First, locate the log file on your mac OS:
/Users/ali/Library/Application Support/Google/Drive/sync_log.log

Look for the lines that include the string "Retry Timestamps", you'll find the filename in the same line after the string "CloudEntry(file:XXX,YYY)"

Quite Google Drive, rename the file(s) on your local machine, go to your google drive online and delete the file online (if exists), then launch Google drive again.


Thursday, July 04, 2013

[MAC OS] Java VPN Failure: "An error occurred while extracting one of the Network Connect components"

OS X version: 10.8.x
Issue: While installing Java-based web VPN client on Safari, you get the error message "An error occurred while extracting one of the Network Connect components".
Fix: Open the terminal, and run the command below, then try to reconnect:
sudo keytool -storepasswd -new changeit -keystore /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts -storepass changeme




Update:
Along with Mavericks‘ update, Safari no longer works (even with the work around above). But Fireforx seems to work, as well as launching Network Connect directly from the Application folder. I personally will use the latter from now on.

Thanks to this post (and the comments).




Monday, July 01, 2013

[MAC OS] control vs. command buttons

If you're using VNC or a Windows/Linux Virtual machine within MAC OS, you probably noticed the confusion coming from the fact the MAC OS command button is equivalent to Linux/Windows Control button. To align the buttons between the VNC/VM and MAC, you can modify the key in MAC to "swap" between command and control buttons:

System Preferences > Keyboard > Modifier Key

Another option:
System Preferences > Keyboard > Application Shortcut > All Applications, then use the settings below:
Add shortcut
Copy ^C
Undo ^Z
Cut ^X
Paste ^V
Select All ^A


Sunday, June 02, 2013

[MAC OS] Enable/Disable SPOTLIGHT

OS X version: 10.8.x
Issue: SPOTLIGHT consumes too much resource
Fix: Disable MAC OS indexing
  1. Download the script
    If the browser shows the script as a text file, right-click on the script content, then "save as".On Safari: "save page as", then select "Format: Page Source" and keep the file name as is.
  2. Open mac os terminal: Applications/Terminal
  3. In the Terminal window, go to the folder that contains the script e.g. "cd ~/Downloads"
  4. Run: "sudo sh mac-os-spotlight.sh off" (type root password if needed)
    If you wish to re-enable spotlight indexing, run same command above with "on" flag
  5. Note: after reboot, the configuration is remembered