RSS
 

Archive for the ‘Programming’ Category

Develop Your Apps for Ubuntu 11.10

30 Sep

In the Ubuntu 11.10 Oneiric Ocelot, a lot of work has been done to ease how users can create apps for Ubuntu and how they can get their own apps in the Ubuntu Software Center and available to millions of Ubuntu users. Part of delivering this vision is to provide a wide variety and selection of apps; people love and need apps to do their work. Fortunately this a stunning developer platform to harness, there is a need to improve the awareness, accessibility, usability, and delivery of this platform.

Read the rest of this entry »

 

Starting with Python On Eclipse in Ubuntu

22 Sep

Eclipse is a universal toolset for development and is used in many of the companies for software development . Originally created back in November 2001 by IBM Eclipse supports development in many languages one of which is but not limited to Python. For this purpose Eclipse uses plugins that extends its functionality and makes it much more usable for that particular language.One such plugin is pydev which is makes Eclipse more like IDE for Python Development

Read the rest of this entry »

 

ns2 Simulator On Ubuntu

04 Apr

ns‘ is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. ns-2 is a packet-level simulator and essentially a centric discrete event scheduler to schedule the events such as packet and timer expiration. Centric event scheduler cannot accurately emulate “events handled at the same time” in real world, that is, events are handled one by one. However, this is not a serious problem in most network simulations, because the events here are often transitory. Beyond the event scheduler, ns-2 implements a variety of network components and protocols.

Read the rest of this entry »

 

Geany – A basic programming IDE for Linoobs

09 Jun

While learning Programming we do need tools to make our work simpler. One such tool is Geany which is basically a text editor with IDE like features, and focuses on simplicity rather than features. It supports a variety of languages which include (but not limited to) C, Java, JavaScript, PHP, HTML, CSS, Python, Perl, Ruby, Pascal and Haskell.

Installing Geany

Geany is in Ubuntu repos and can be easily installed via Synaptic, Software Center, and obviously through terminal.

sudo apt-get install geany

The Interface

As it can be seen from the screen shot, Geany has a pretty basic interface and new users won’t really be lost as it is like any other text editor in terms of simplicity.

How it works

Geany works on the file extension principle. When you save a text file of a program code with an extension, Geany corresponds to the appropriate compiler and interpreter and thus serves multiple languages. For example for .c extension it corresponds to gcc, .py for Python, .rb for Ruby, .pl for Perl, etc.
It does not have the advanced features of IDEs like Eclipse or Code::Blocks, but it serves perfectly for learning programming.
Also note that it’s only an IDE and does not have the corresponding compiler or interpreter. For that you need to download and set that separately. For instance you can install C/C++ compiler by:

sudo apt-get install build-essential

Geany having a very simple interface can be easily used for practicing programming or creating basic programs. For instance, you can create a C program like this:

#include<stdio.h>
int main()
{
    printf("Hello, World!");
    return 0;
}

Now you have to save the file with a .c extension, and compile the code by going to Build->Compile or simply pressing F8. To link the code you have to go to Build->Build or press F9. If your program has been compiled and linked correctly, you can simply execute it as Build->Execute or pressing F5.

And in case of Python:

#!/usr/bin/env python
print "Hello, World!"
#

Now in case of Python you simply execute the code by pressing F5, since Python is an interpreted language. You can also “compile” which basically checks for few syntax errors.

Similarly Geany works in plenty of languages and saves a lot of time particularly for beginner programmers since they don’t really have to change to a particular directory and invoke compiler by terminal.

Happy Programming.