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
Install easy Install for Python on Ubuntu
by admin on 02. Aug, 2010 in programming, server
To install python easy install on Ubuntu run the command: sudo apt-get install python-setuptools python-dev build-essential
How to get the disk usage and file count in a directory using Ubuntu?
by admin on 02. Aug, 2010 in Uncategorized
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 [...]
How to reload your .bash_profile from the terminal command-line?
by admin on 04. Jul, 2010 in mac, server
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. [...]
How do you extract (tar) a .gz file?
by admin on 02. Jul, 2010 in mac, server
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). [...]
Creating a terminal alias for the Mac
by admin on 27. Jun, 2010 in 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, [...]
Objective-C quick start programming guide
by admin on 09. Jun, 2010 in programming
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 [...]
How to start learning iPhone programming?
by admin on 09. Jun, 2010 in Uncategorized
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 [...]
How can I reduce the icon size in Windows 7?
by admin on 08. Jun, 2010 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 [...]
Should I buy a 16gb, 32gb or 64gb iPad?
by admin on 08. Jun, 2010 in 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 [...]