Search Ali's Blog

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

[MAC OS] Fix "open with" Duplicate Entries

OS X version: 10.8.x
Issue: "Open With" menu has duplicate entries
Fix: Rebuild the Launch Services database
Reference: Apple Support Communities #4250905
  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, gGo to the folder that contains the script e.g. "cd ~/Downloads"
  4. Run: "sudo sh mac-os-rebuild-launch-db.sh" (type root password if needed)
  5. Relaunch the finder: ctrl+option+click-on-finder-icon, then select "relaunch"
  6. "open with" menu should be fixed now


Wednesday, January 30, 2013

ويحك يا دنيا رميت سهماً - اصبت من بين صفوفنا خطيبها
وان كان اوان المنيه مستقدراً -لا اصنفت حين ظفرت سليمها
الم تصغ وقت دعينا سراً - رب لا تهمد ذي الدار سراجها
وان عصينا, فلنا فيها امـاً - لا تعص والداً ولا تقطر بدمعها
رضينا ربنا بالديجور داراً - راجيك ان ينير الجنان فردوسها