Getting Started with Android Studio

Android Studio is a new Android development environment based on IntelliJ IDEA. Similar to Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging. On top of the capabilities you expect from IntelliJ, Android Studio offers:

  • Gradle-based build support.
  • Android-specific refactoring and quick fixes.
  • Lint tools to catch performance, usability, version compatibility and other problems.
  • ProGuard and app-signing capabilities.
  • Template-based wizards to create common Android designs and components.
  • A rich layout editor that allows you to drag-and-drop UI components, preview layouts on multiple screen configurations, and much more.

 

read more and download: http://developer.android.com/sdk/installing/studio.html#download

Advertisements

Netbeans IDE 7.3 Beta released

The NetBeans IDE is an award-winning integrated development environment available for Windows, Mac, Linux, and Solaris. The NetBeans project consists of an open-source IDE and an application platform that enable developers to rapidly create web, enterprise, desktop, and mobile applications using the Java platform, as well as PHP, JavaScript, Ajax, Groovy and Grails, and C/C++.

The NetBeans project is supported by a vibrant developer community and offers extensive documentation and training resources as well as a diverse selection of third-party plugins.

NetBeans IDE 7.3 Beta empowers developers to create and debug rich Web and mobile applications using the latest HTML5, JavaScript, and CSS standards. Developers can expect state of the art rich web development experience with a page inspector and CSS style editor, completely revamped JavaScript editor, new JavaScript debugger, and more. Additional highlights available in 7.3 Beta include continued enhancements to the IDE’s support for Groovy, PHP, JavaFX and C/C++.

NetBeans IDE 7.3 Beta is available in English, Brazilian Portuguese, Japanese, Russian, and Simplified Chinese.

Read more about this release: http://netbeans.org/community/releases/73/

Download the Beta:http://dlc.sun.com.edgesuite.net/netbeans/7.3/beta/

Enjoy, 🙂

PHP Project with Aptana Studio

Hello everybody.

Today I am going to show you how you can start a php project with aptana studio.

Aptana Studio is an open source integrated development environment (IDE) for building Ajax web applications. It includes support for JavaScript, HTML, DOM, and CSS with code-completion, outlining, JavaScript debugging, error and warning notification and integrated documentation. Additional plugins allow Aptana Studio to be extended to support Ruby on Rails, PHP, Python, Perl, Adobe AIR, Apple iPhone and Nokia WRT (Web Runtime). Aptana Studio is based on Eclipse and is available as standalone on Microsoft Windows, Mac OS X and Linux, or as a plug-in for Eclipse. [1]

You can download Aptana studio from http://aptana.com/

Now lets get started. I am not going to build something huge in this tutorial. Let us consider the following requirement.

In this tutorial, there will be a page where user will be asked to give his name, there will be a send button also. After pressing the send button, the line “Hello <user name> to php tutorial”. Note that there will be one page, not more then one page.

Easy,dah ….

I hope you have downloaded aptana studio. So why not you just open aptana studio and see what is it really!

I hope you are seeing the following window:-

Well, so lets create a project.

Open File -> New -> Project

Now you will get a wizard. From here select php project.

Ok then, why are you waiting? Click next. J

Now you are asking to give a project name. so let we give it php_tutorial_2 .

Lets see, there is a default path. But we need to store our project in www path, or our local server (which we installed in the last post) will not get it.

So point the location to your wwwroot path. Check out the check box and set the location by your self.

(no,aptana is not dumb, he can give you a lot more flexibility which I will discuss with you later.)

Well, click finish then.

Now in left panel, go to application explorer.

(why master ???? I made a git repository in the last post, remember! Aptana has build in git support J )

In the white blank space in application explorer, click right button. Point to new from template, then point php, and then PHP Template. Just like the picture below.

Now select the project we are working on, and then give the file name index.php. (don’t give the last dot J just kidding ! )

Click finish and we got a php file with …. phpinfo() ??????? L

Remove phpinfo() . but don’t remove the php tag. We will need it. (Actually, I place most of my php code in top, if and only if I don’t have another good option. Usually I take the php code in another file and call the necessary variable and objects from there. But we will go for it later, won’t us? J)

Now we need to add a textbox where user can give his name. as requirement says, so let us make a form.

<?php

?>

<html>

    <head>

        <title>PHP Tutorial 2</title>

    </head>

    <body>

        <form method=“post”>

            Enter your name: <input type=“text” name=“name” />

            <br/>

            <input type=“submit” value=“send”/>

            

        </form>

        

    </body>

</html>

Open your web browser and open the php page (not directly, using localhost, my one is http://localhost/project/php_tutorials/php_tutorial_2/) and I hope you will see something like

Please don’t tell me about the design, I am a very bad designer.

Anyways, we will take the design issue later. What happens when you click on the button? Why not you give a try?

Now it is coding time. Our form uses post method, so we can get the value from $_POST variable. The predefined $_POST variable is used to collect values from a form sent with method=”post”.

Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send.[2]

Lets recode the page,

<?php


if ($_POST)

{

    echo
“Hello “. $_POST[‘name’].
” to php tutorial<br/>”;

}

?>

<html>

    <head>

        <title>PHP Tutorial 2</title>

    </head>

    <body>

        <form method=“post”>

            Enter your name: <input type=“text” name=“name” />

            <br/>

            <input type=“submit” value=“send”/>

            

        </form>

        

    </body>

</html>

Here I am using a if condition to look that $_POST exist or not, and if it exists, I will echo the text in there. Note that the text input in form has a name=”name” , so we will get its value from $_POST[‘name’].

Just see the page in your browser then. J

There are a lot of thing we will do in the future….. with php of course J

(to commit the code to github, assume you done all completely on the last post, see the workspace tab in the left, next to application explorer. Right click on your project, then click team, then commit first, and the last one will be push. I will write more details in future.)

Good night everybody J

Reference:

[1] Aptana Wikipedia page http://en.wikipedia.org/wiki/Aptana#Aptana_Studio

[2] w3schools (one of my favorites) http://www.w3schools.com/php/php_post.asp