Saturday 27 October 2012

How to Install Aptana Studio 3 on Ubuntu 12.04 LTS (Precise Pangolin)




1. Install the prerequisites

 In order to  access the Sun JDK, do the following:
sudo apt-get install libjpeg62 libwebkitgtk-1.0-0 git-core
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Note:
libjpeg62 is very important and without it you will encounter errors like this:

An internal error has occurred.
No more handlesNative code library failed to load. (java.lang.UnsatisfiedLinkError: /opt/Aptana_Studio_3/plugins/com.aptana.swt.webkitbrowser.linux.x86_64_1.0.0.1295409059/os/linux/x86_64/libcefjni.so: libjpeg.so.62: cannot open shared object file: No such file or directory)
2. Download Aptana Studio

 You can download Aptana Studio 3 here. Select the "Standalone Version" if not selected and click download.

3. Extract Aptana Studio


sudo unzip [name of Aptana Studio ZIP file here].zip -d /opt


4. Add the menu shortcut



wget http://www.samclarke.com/wp-content/uploads/2012/04/AptanaStudio3.desktop
sudo mv AptanaStudio3.desktop /usr/share/applications/AptanaStudio3.deskto
 For all of you who are security conscious, you can check the contents of
AptanaStudio3.desktop .

Hope this article is of help to you who is reading.


Wednesday 17 October 2012

What is Python? Beginning Python

How I Learned About Python
After hearing about this word, "Python", I set out to discover what it was all
about and how different it is from other programming languages. Created by Guido van Rossum in 1996 .

What is Python
Python is generally a general-purpose, interpreted high level programming language whose design philosophy demands code readability. It is open source and can run on all platforms i.e  Windows, Linux and MacOS X and has been ported to the Java and .NET virtual machines

Python is Like
Python at most times has been compared to languages like Ruby,
Perl . It is popular for its said to be clear and expressive syntax. Like Java it also comprises of a large and comprehensive standard library.

Versions of Python
Currently Python2 is the one mostly used, Python3 is still in the development phase. To install it to your machine you can download it from The Python website.

Why am Learning Python
So we have talked about what python is and how you can download it. the reason why i have to learn Python is so that use one of its framework, Django
which is popularly know for its dynamicity in the development of web application.

How Do you Learn Python
This brings me to the question that may be in many of your minds, How do i learn Python, since i have it installed in my machine. For me I am using the book Learn Python the Hardway by Zed. A . Shaw. I find this book very good for beginners since it helps one learn the language in a short time and simultaneously giving you the  feel of what programming is and how it should be done.

When you Get Stuck
If you think you are stuck in anyway while doing Python you can always join the Google Group comp.lang.python and post and am sure you may get answers that may help you.

Punchline
Until next time. I hope this post was of help to all those who read it .

Remember Programming is a skill its just like riding a walking, the first time a baby starts to walk, the baby usually falls but with time, the baby learns to walk and walking becomes part of the child's, same to Programming, ensure you practice at least 2 hours a day and withing some time you will become a better programmer.