Tag Archives: install

Setup the NetBeans IDE and Android SDK .

NetBeans IDE is free and open source IDE (Integrated Development Environment).

I tested the latest version a few days ago and I am very pleased with him.

The main reason is that it integrates very well the android SDK (Software Development Kit).

Let’s try to use this. First we need to download it with JAVA EE from here.

We have all of java : NetBeans Platform SDK, Java SE, Java SE, Java FX, Java FX, Java EE .

If you don’t know what is all of JAVA’s then you must read about JAVA technologies.

After I download it , run the sh script and will find one icon named NetBeans IDE 7.2.

Click it and will start the NetBeans IDE 7.2 and we see the spash of the IDE.

netbeans 2012 tutorial

Next , we will see the first windows of the IDE.

In the next image we see some links to help us.

netbeans 2012 tutorial

Let’s begin to install the android plugin.Go to Tools -> Plugins and click on this.

netbeans 2012 tutorial

In the new window go to Settings tab and the link.

NOTE: the IDE will ask you to restart when he want to make some settings.

netbeans 2012 tutorial

Search android in the Available Plugins. You need to check it and after install or update the android plugin.

netbeans 2012 tutorial

Start a new project using File -> New Project or using the keys : Ctr+Shift+N.

The IDE will give you one dialog to set the project.

Select the type of the project: Android and Android Project and press Next button. See the next image:

netbeans 2012 tutorial

The next step is to set Manage Android SDK. To do this you need to have the Android SDK on your computer.

You can download it from here.

netbeans 2012 tutorial

You need to select the type of Android SDK … this will be used in the project.

netbeans 2012 tutorial

Now you can start to programming your first android project.

Don’t forget to learn first, how android applications work and how to programming in java.

This has to be your main goals.

You can read more about NetBeans IDE 7.2 here.

Posted in Android, Linux. Tagged with , , .

python 3.2 and django 1.4 – installation

Although most of us prefer the python version 2.6, today I tried to install the latest version of django and python 2.3.2 .

Make a new folder , named test-dj .

On the official site, I got the two archives:

I will start with the installation of python.
We unzip the archive:

We execute the following commands to install python:

Let’s see what we have.

As you see it’s …

In accordance with the PEP-3149 we can got this:

Python implementations MAY include additional flags in the file name tag as appropriate.
For example, on POSIX systems these flags will also contribute to the file name:

Now we need to install django.

Go to the django folder:

Now , we can test it:

I will make another tutorial about how to configure the django to have one website.

See more about python here.

Posted in Django, Linux, Programming, Python. Tagged with , , , , .

Bluefish editor – create your new snippet

Go to the snippet tab (see 1) and add a new snippet (see 2), like in the image show below:

bluefish snippet

Add Insert string and press Forward button.

bluefish snippet

Give the name of the snippet.

bluefish snippet

Add the text before and after the text or cursor position. See my example below:

bluefish snippet

Select the new snippet, press right click and select: Set Snippet Accelerator.

bluefish snippet

The next windows tell us to press the keys for this new snippet.

bluefish snippet

Next image show us the result of my new snippet:

bluefish snippet

This settings help us to use the bluefish editor.

Posted in Linux. Tagged with , .

The Minitube software : the new YouTube desktop

Minitube 1.7 is released, but Fedora 16 come with 1.6 verssion.

First, the Minitube is a YouTube desktop application with it you can watch YouTube videos.

A nice second option, you can type a keyword and Minitube gives you an endless video stream.

You can read more about this software on official website.

Installation on Fedora 16 is this:

Use the root user to search the software using yum:

Loaded plugins: langpacks, presto, refresh-packagekit
updates/pkgtags | 42 kB 00:00
============================ N/S Matched: Minitube =============================
minitube.i686 : A YouTube desktop client

Name and summary matches only, use “search all” for everything.

Just install the package with the command:

The result of all packages for dependencies is show us below.

Bellow image is show the first time when I use it…

minitube software

Posted in Linux. Tagged with , .

Setting up Django with nginx on Windows XP

To use Django need to know some basic things.

  1. What is Django, where you take and how to install.
  2. How it works Django and how it tested.
  3. What additional softwares and settings you should do to work properly.

What is Django, where you take and how to install.

Django is an open source web application framework. It is written in Python.

Django is available open-source under the BSD license and you can get from here.

Installation is simple, download the archive, unpack and execute the command:

How it works Django and how it tested.

Django follows the model-template-view architectural pattern.

Django focuses on automating.You can define your data models.Also, you can use Django without a database, because it comes with an object-relational mapper in which you describe your database layout in Python code.

Django has a template system, models system, system for processing requests, automatic admin interface,web templating system and more.

After installing the module can test if the module works. See picture below:

django nginx

What additional softwares and settings you should do to work properly.

To work, Django requires Python and Web server. You’ll need also setooptools and flup modules.

The web server can be Apache or nginx, or other web servers.

Setting up Django with nginx.

Web server installation and configuration.

Installing nginx is simple, just download and unpack it on disk. I use version 1.0.5 without any problems taken from here. The operating system was Windows XP.

After extraction of nginx, three folders are significant: conf, html and logs .

In the html folder, we find an index file. I preferred to put here Django project.

In the conf folder, we find the configuration files. I used only nginx.conf file.

In the logs folder, we find the data created by Web server.

Here are the contents of the nginx folder:

The commands to use nginx as shown below:

You will use these commands to start, stop and restart nginx web server.

You will use these commands to start, stop and restart nginx web server.

Nginx has only a few command-line parameters.

The html folder are two files: 50x and index.

50x file displays something like this:

Here is content of nginx.conf my configuration file.

Installing and configuring Django framework.

After I installed Python 2.7 (this version of python I will use in this tutorial).

We will proceed with installing modules in this order: Django, setuptools and flup.

Installation went without any problems in Python 2.7 with the following modules: django – version 1.3.0 , sqlite3, setuptools-0.6c11.win32-py2.7 and flup – version 1.0.2.

Using Django involves creating a project and an application.

Django project is a collection of settings for an instance of Django

Also , Django auto-generate code to create project and applications.

Use the following command to generate project:

Here in the picture below, the necessary elements:

The Scripts folder path where is django-admin.py, then the option to create project – startproject and finally the project name – mysite.

This command generates the following files:

django nginx

The official site says that you should put Django-admin.py script in the variable system.

I did but did not work. I had to use way to them when I run.

See, I added the system variable PYTHONPATH, these paths

django nginx

I executed the following command:

Here the picture below that worked well.

django nginx

I tested to see if I installed python sqlite module.

django nginx

I modify the settings.py file to work with SQLite and I added database test.

django nginx

I run the following command to set and synchronize with the database.

This command looks at the INSTALLED_APPS setting and creates any necessary database tables according to the database settings in your settings.py file.

django nginx

I verified the SQLite to connect to the database.

django nginx

I create my application, make sure you’re in the mysite directory and type this command:

This command create a directory testapp, which is laid out like in image below.

django nginx

I added my application in the file settings.py

django nginx

To invoke the Python shell, use this command:

Next you need to activate the admin site for your installation uncomment the lines from settings.py and urls.py. See image…

django nginx

Run this command to login on admin.

This is admin web interface. Login with the password and username created in the first part of this tutorial.

django nginx

After you login you will see the following interface:

django nginx

You can create another super user with the command:

Here is finally content of settings.py configuration file.

As you can see we made changes in settings.py file.

Beware any settings in settings.py ,also read the documentation. For example:

“When specifying the path, always use forward slashes, even on Windows.”

There are changes to static directory, a directory that keeps images and other files.

Run the command shown below:

django nginx

Finally you see the files copied in the folder. Look …

django nginx

Otherwise You can see something like this:

django nginx

When you run the following command with nginx.conf and setting.py settings presented, you will see that everything works correctly as web site.

Run the command:

You should see something like the image below:

django nginx

Because we have not created anything in addition, any HTML content. You will see something like at 127.0.0.1:

django nginx

With this tutorial I tried to present the main steps for setting up Django with nginx’s in Windows XP.

Since this tutorial was written experiencing may not be too accurate.

However, this tutorial contains all the information you need to do something functional.

Posted in Django, Programming, Windows XP. Tagged with , , , .