Showing posts with label google apps. Show all posts
Showing posts with label google apps. Show all posts

My first Google engine application


Yesterday I've created my first application using Google App Engine.

I've been thinking about the possibilities of using a cloud computing environment for quite some time now. Google brings the advantage that you can use their services for free up to a given threshold of resources.

When I first heard about google app engine, it was some years ago and it was only supported on Python. At the time, phyton didn't exactly rock my world so I just walked away and kept on doing other things.

A few months ago, Java support was announced. My wild guess is that Phyton was not exactly a popular choice amongst many developers but Java is a whole different case.

So, I went on with my trial of their (free) service.

The Java environment that is officially supported by Google is based on the Eclipse IDE, since my preferences on coding fall more on the NetBeans side of life, I've "googled" for this alternative.

It turns out to be a quite simple process of configuration.

The first step is downloading and unpacking the Google App Engine SDK to some folder inside your disk - http://code.google.com/intl/en/appengine/downloads.html

No fancy install involved, just unzip and place it somewhere nice.

-------------------

Then, we open NetBeans. Google support is added as a plugin for the NetBeans IDE. There is a very good page that details these steps: http://kenai.com/projects/nbappengine/pages/NBInstall

When configuring the google plugin, I didn't selected the Hibernate Support and didn't seemed to matter much in either case.

After all said and done, you're only missing to add google app engine as a server inside your environment and this is also a simple task.

Click on the "Services" tab (that is next to "Projects" and "Files" on the right side of the IDE) and right click on the "Servers" item.

All that is missing is add a new server - select the "Google App Engine".

---------------

You should now have everything set up.

To start a web project, create a new project and select "Java Web" --> "Web Application". It will create you a template project that will be saying "Hello world!"

When you're ready to publish the project on the cloud computing environment, just right click on the project and choose "Deploy to google app engine".


Don't forget that you need to have a project already configured on the side of the google app website. After this you should be able to visit your URL and try out the results.

You can also view a full video of all these steps at the following location: http://kenai.com/projects/nbappengine/pages/Home

---------

Hope you have fun with cloud computing, this is a really simple and interesting concept at a very affordable cost.

:)

Email robustness


Ever since I've first got my own personal domain as http://nunobrito.eu some years ago it became possible to use my official email address as mail@nunobrito.eu

Instead of having several mailboxes I've decided to concentrate them all at my gmail account using email redirection.

It's simple, worked well.

However, the server where my domain is hosted would often become offline for several days in a row due to the sheer amount of people trying to access the other services hosted there.

This brought me for the first time to a fragile situation because I would no longer be receiving emails while the server remained offline.

I've devised a manner to provide email robustness at no extra costs and without requiring a server.

It's very simple.

- The first step is registering your domain with goddady. If you've already registered with their service then it's fine, otherwise I'd seriously recommend moving to this particular registrar.

- Then register for google apps standard edition: http://www.google.com/apps/intl/en/group/index.html
Input your domain as the domain that will host the apps, don't worry because this won't mix with your site in case you already have it developed.

- After registering your domain with google apps, look on this page regarding how to configure the mx records at godaddy: http://www.google.com/support/a/bin/answer.py?hl=en&answer=33353

But my favorite part is this automatic tool to do it quickly: https://www.godaddy.com/gdshop/google/gmail_login.asp

The above link will automatically configure your domain to use gmail as the mail service.

- At this point the email is handled by google apps, let's manage your site:
https://www.google.com/a/cpanel/example.com (change example.com with your domain)

- After login, click on "Email"

- Click on "Change URL" and select the URL that is hosted by google so that you don't need to use your own domain to log onto the webmail service.

- Click "Email addresses" and then add a user.

- Select a user listed there and add "nicknames" to the user. This means the possible email addresses that will be used to route the messages.

- Log onto the webmail service and set the routing of all messages onto anywhere you want, just like you would do with a normal gmail account.

- Done!

You are now routing all your messages sent to your official email address onto anywhere else you need.

Good luck.

--------------------

Now my official email is robust and no longer depending on any server.

:)