Categories

 

February 2012
M T W T F S S
« Oct    
 12345
6789101112
13141516171819
20212223242526
272829  

What I'm Doing...

PlaytimePriya and KunalIMG00015.jpgIMG00017.jpgFallColors.jpgSpring

Time Machine backup to an SMB share

If you wanted Time Machine to work with a SMB share you will notice that it doesn’t work. To get it to work run the following command on the terminal

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Now mount your SMB share. The best way to do this is to click on Go->connect to server in the finder [...]

Share

terminal tips and tricks for Mac OS X

Some interesting tips and tricks for Mac OS X
http://apple.stackexchange.com/questions/5435/terminal-tips-and-tricks-for-mac-os-x

Share

Mac Book Pro terminal prompt keeps changing

It got really annoying for me to see how my terminal prompt kept changing when I connected my Macbook from work. I know I can easily fix this by setting my prompt in my .profile file, but I wanted to find out why this was happening.

It turns out the culprit is DHCP. By Default the [...]

Share

Convert uploaded file with windows line ending to unix line ending using php

I was working on a php project which involved in uploading a tab delimited file and then processing it with php on a unix webserver to insert data into a database. The file was produced on a windows machine and so it had windows line endings. I used this trick to strip off the carriage [...]

Share

Argument list too long

Ever tried to copy or move a bunch of files on unix/linux from one location to another and see this error message spit out back at you??

$ cp /var/www/* /var/tmp
-bash: /bin/cp: Argument list too long

UNIX find to the rescue…

$ find /var/www -type f -name ‘*’ -exec cp {} /var/tmp/. \;

problem solved!

Share

MAMP - mysqlcheck: Got error: 1045

I started seeing the following error every time I started MAMP. This began after I changed the root password for my MAMP installation on my MBP.

/Applications/MAMP/Library/bin/mysqlcheck: Got error: 1045: Access denied for user ‘root’@'localhost’ (using password: YES) when trying to connect

It turns out that the default password is hard coded in different scripts under ‘/Applications/MAMP/bin’. [...]

Share

Join multiple mpg files into one file

I did not realize how easy it is to join mpeg files with just the windows copy command or unix cat command.

On windows the trick is to copy the files while preserving the binary format. Here is how you would do it -

copy files1.mpg /b + files2.mpg /b joinedfile.mpg

You could also do the following [...]

Share

SSH aliases

I constantly connect to linux or unix machines using ssh and it can get a little bothersome typing out the IP address repeatedly. Here is the typical syntax to connect to a linux box (random IP address)

ssh username@111.11.11.1

Now imagine typing this again and again. Thats where the ssh config file comes to the rescue. You [...]

Share

Unix tar tricks

One of the most common programs on Linux systems for packaging files is the venerable tar. tar is short for tape archive, and originally, it would archive your files to a tape device. Now, you’re more likely to use a file to make your archive. To use a tarfile, use the command-line option -f . [...]

Share

Windows registry repair

I found this wonderful free tool to repair registry problems.. It’s just simply called registry repair! Saw some good reviews and it is dead simple to use.. Just scan your registry and you will see a list of potential problems. You can then fix and repair the problem right there. Here is a link for [...]

Share