Feb 16

How do I use the Grep command with regular expressions under Linux operating systems?

http://www.cyberciti.biz/faq/grep-regular-expressions/

Print
Nov 24

apple-logo

This item is related to :

Time Machine with Network drive

Problem:

Every time you shut down your Mac, you lose your connection to a network drive.

Solution:

Preferences->Accounts->Login Items and adding the icon of your already mounted network volume. Mac OSX will mount it every time you log in.

Print
Nov 23

apple-logo

1. Mount your network drive (check step-5 if you are getting error in mounting)

2. Change the preferences by running following command (open iTerm or other shell)
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

3. Now activate the time machine

4. You will now be able to select your network drive.

5. In case, you loose your network mount, you will need to reset the preference set in step-2, by running following command (open iTerm or other shell)
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 0

For more detail, read this

Completely copied from http://smangal.wordpress.com/2007/12/10/time-machine-with-network-drive/

Print
Nov 21

deleting mail in Unix

type mail

d * will remove all mail

d 1 3 deletes the 1st and 3rd messages
d 1-3 deletes messages 1 through 3
d deletes the current message

Print
Nov 08

flash_builder_logo-250x250

Launching Adobe products on Mac OS X after system upgrade, migration or restore, results in error “Licensing for this product has stopped working”

Solution 1: Delete the FLEXnet Publisher folder

1. Quit all Adobe applications.
2. On your startup disk locate and delete the following folder:
/Library/Preferences/FLEXnet Publisher
3. Launch your Adobe application(s).

Note: There is also a folder named FLEXnet Publisher folder in the /Library/Application Support folder. You must not rename this one; all of your Adobe applications will stop working. Make sure you are in the /Library/Preferences folder.

This worked fine for me!
More details: http://kb2.adobe.com/cps/512/cpsid_51260.html

Print
Nov 01

the disc permissions are set like this:
me custom
staff custom
everyone custom

also there is a lock icon on the left hand side of the drive icon…

ls -aldeO /Volumes/”drive-name”

Put the name of the drive in the above and keep the quotes. This will list all permissions, ACLs and flags on the drive.

Output:
drw-rw-r-T 46 root admin uchg 1632 Jun 30 16:30 /Volumes/Vault

Actions:
sudo chflags nouchg /Volumes/”drive-name”
chmod 755 /Volumes/”drive-name”

And fixed!

taken from: http://discussions.apple.com/thread.jspa?threadID=1590482

Print
Oct 23

VirtualBox can run VMs created by VMware Workstation or Server for this you need to import vmdk files using the following procedure

* Start Virtual Box

* Goto File > Virtual Disk Manager

* Click Add. Locate and select the copied .vmdk file. Click OK.

* Create a New VM as usual using the added vmdk file

* Boot the VM

Print
Aug 27

If you need to include single quotes inside a single quoted string you might try adding a backslash like most programming languages but that doesn’t work.

In the end the actual “escaping” is: ‘”‘”‘ (five quotes).

To make sure you get it ‘ ” ‘ ” ‘ without the spaces.

To take it apart:

* The first single quote ends the current single quoted string
* The double quote starts a double quoted string
* The second single quote is the one we’re escaping
* And the end of the double quoted string
* And reopening the origional single quoted string

Found on http://laptop006.livejournal.com/43340.html

Print
Aug 06

Dump a jvm configuration using jython
server = AdminConfig.getid(‘/Server:yourServerName/’)
jvm = AdminConfig.list(‘JavaVirtualMachine’,server)
print AdminConfig.show(jvm)
or
print AdminConfig.showall(jvm)
or
print AdminConfig.showAttribute(jvm,’systemProperties’)

Print
Jul 24

Print