Android - Installation - On Windows OS and Eclipse

Let’s get started with the installation of Android on Windows 7. First of all, you must have a JDK (Java Development Kit) on your OS, the version 6 is the most secure one, so I recommand it. If you do not have one, let’s download it on the official website of Oracle: http://www.oracle.com/technetwork/java/javase/downloads/index.html Then download the Android SDK (Software Development Kit) on the official website of Android: http://developer.android.com/sdk/index.html Once installed on your computer, launch the SDK Manager on the Android SDK directory if it does not start automatically. On the left panel, select the Available packages and select all packages you want. Then click Install Selected > Accept All. ...

September 3, 2011

Eclipse - Python - Installation of PyDev with a Python Hello World tutorial

Once you finished your installation of Python on your Windows OS, GNU/Linux or Mac OS, let me tell you how to install it on your favorite IDE, Eclipse. First of all, you have to download Eclipse on the official website. I suggest you to choose the JavaScript version. Let’s go. Open Eclipse then: Help > Eclipse Marketplace. On the Find input, type PyDev and click the search icon. PyDev - Python IDE for Eclipse appears. Click the Install button on the right. ...

September 2, 2011

Symfony 1 - Helper - UrlHelper

Symfony UrlHelpers add some features to the URL management. In this Symfony UrlHelpers tutorial, we will see how to use them with some examples. Let’s start with the link_to UrlHelper: php echo link_to( 'My page', 'level/index', array('confirm' = 'go?', 'absolute' => true, 'query_string' => 'foo=32', 'anchor' => 'hello', 'post' => true, )); ?> This PHP code will produce this HTML one: [My page](http://myproject/frontend_dev.php/level?foo=32#hello) It will ask you if you accept to continue or not. You have to use the right syntax such as “module/action”, otherwise this will not work correctly. As you can see, it will create a lot of JavaScript code. You will have less code if you remove the post option and will can add the popup option and set it to true to open a new window when clicking. ...

August 14, 2011

Symfony 1 - Routing - Creating a URL with dashes (manually)

A great way to display URLs is to using dashes. Indeed, it is always better for an human being to see a reading URL instead of a succession of symbols. That is what we will see in this Symfony 1 tutorial about routing. Let’s take an example. We want to create a module that represents a tutorial for beginners. Our application is named Badprog. Our model might be called : BadprogBeginnerTutorial. So the module might be called : beginnnertutorial. ...

August 9, 2011

Symfony 1 - Security - Authentication

Symfony 1 uses the YAML files to secure the application. For example, in this tutorial, we can see with the backend side how to secure the entire application. But we can also secure only the index of a module or all others webpages excepted the index. This, with an authenfication. By default, in your backend side, you have a security.yml file: // apps/backend/config/security.yml default: is_secure: false Change the boolean false into true and save it. ...

August 1, 2011

PHP 5 - PEAR - Installation

In this tutorial, we will see how to install PEAR with PHP 5 on Windows 7. We, of course, assume that you already installed PHP. For example, the PHP path installation is: C:\Program Files (x86)\PHP\php-5 Inside there is a file named: go-pear.bat Double click it. A black window appears asking you what installation do you prefer. Write: system A suggestion appears asking you if the default directories for the PEAR installation. ...

July 31, 2011

Symfony 1 - Test Unit - With Doctrine and a database

In this test unit tutorial of the Symfony 1 framework, we will take examples to show how it works with Doctrine and a database. First of all, you have to set up a database to test and create some fixtures. If you have not done it yet, take a look at this tutorial: Then we can create a special database for tests. For this new test database, we can either copy/paste all fixture files from /data/fixtures/* in /test/fixtures/* or use directly the fixtures of the /data/fixtures/*. ...

July 31, 2011

PHP 5 - Installation - On Windows

I made a tutorial with examples for the installation of Apache HTTP, PHP, MySQL, phpMyAdmin and some virtual host explanations, for Windows. You can find this tutorial by following this link: Enjoy

July 27, 2011

Symfony 1 - Routing - Creating a basic route

In this tutorial of the Symfony 1 framework, we will see how to create a new easy basic route. The url_for() method will help us to create this routing. In the layout, let’s first add a link to our new page, called BapdroG and its corresponding route, called routingBadprog. // frontend/templates/layout.php- [BadproG](<?php echo url_for('routingBadprog') ?>) If you try to refresh your webpage, you will have a 500 error, saying that the route “routingBadprog” does not exist. ...

July 21, 2011

Eclipse - Indigo - PHP installation with PHP Development Tools (PDT)

With the last Eclipse version, Indigo, there is no special IDE for PHP. So you have either to install the Helios PDT version or install Indigo and then install PDT. I love innovation, so I will show you how to install, in this tutorial, the new Indigo version and then PDT within. First of all, download the Indigo Eclipse version on the official website: http://www.eclipse.org Ckick Download and choose the right version you want. I suggest you the Eclipse IDE for JavaScript Web Developers. Once downloaded and installed, open Eclipse and click: ...

July 17, 2011