SCP to your server on amazon – Secure Copy Command example

I am going to show you how to scp into a linux (ubuntu) server that is running on amazon’s AWS cloud platform (ec2 instance): scp -i ~/path/to/keypair.pem file_to_upload.sql ubuntu@ec2-255-255-255-255.compute-1.amazonaws.com:/home/ubuntu Please modify the command above with your instance IP address, user and path to where you want to save the file. scp SourceFile user@host:directory/TargetFile

Read full storyComments { 0 }

Install easy Install for Python on Ubuntu

To install python easy install on Ubuntu run the command: sudo apt-get install python-setuptools python-dev build-essential

Read full storyComments { 0 }

How to get the disk usage and file count in a directory using Ubuntu?

So you are running Ubuntu, and you have a directory that you want: 1. The total disk usage for that folder? i.e how much disk space does this folder utilize du -h /path 2. You want to count the number of files in a directory ls -A | wc -l (note that the above command [...]

Read full storyComments { 0 }

How to reload your .bash_profile from the terminal command-line?

So you just updated your .bash_profile and you are too lazy to close your terminal and re-open it in order for your changes to be reloaded. Is there a command that will reload your .bash_profile changes without having to close/re-open the terminal? Yes there is! Just type: source .bash_profile Your changes will now be reflected. [...]

Read full storyComments { 0 }

How do you extract (tar) a .gz file?

To extract a .gz file, type the following: tar -xzvf file.tar.gz -x      Extract to disk from the archive.  If a file with the same name appears more than once in the archive, each copy will be extracted, with later copies overwriting (replacing) earlier copies. -z (c mode only) Compress the resulting archive with gzip(1). [...]

Read full storyComments { 0 }

Creating a terminal alias for the Mac

If you want to create an alias for a command in terminal on your mac, here is what you do: type: alias la=’ls -la’ You can also update your .bash_profile with this command so that you get this functionality every time you use terminal. The above is if you are using bash as your shell, [...]

Read full storyComments { 0 }

Objective-C quick start programming guide

In 1981, Brad Cox created ObjC, around the same time as C++. C++ is fast, but static in nature.  Little runtime flexibility. Objective-C is very dynamic, it has dynamic message dispatch.  Runtime decision making and class extensions. So to call a method: c++:  someObject -> doSometing(); java: someObject.doSomething(); Objective-c: [someObject doSomething]; Some more examples: [Employee [...]

Read full storyComments { 0 }

How to start learning iPhone programming?

So you wan to learn how to program for the iPhone.  There are a few concepts you have to understand before you get started. 1.  To distribute your phone on Apple’s appstore, you have to sign your application. 2.  The iPhone can only run a single application at a time, this means whenever someone clicks [...]

Read full storyComments { 0 }

How can I reduce the icon size in Windows 7?

If you find that the icon sizes on too large on your windows 7 machine, don’t loose hope there is actually a way to reduce the size of the icons to make them smaller. Try hovering over a blank space on your desktop, then hold down the Control key and scroll down using the mouse [...]

Read full storyComments { 0 }

Should I buy a 16gb, 32gb or 64gb iPad?

If you are in the market for a iPad, you have a choice between buying a 16gb, 32gb or a 64 gb hard drive (along with a wifi option). It really depends on how you will be using the iPad, and more specifically what kind of files you plan on saving to the iPad’s hard [...]

Read full storyComments { 0 }