Archive for the ‘Google’ Category

discussionNotes: Google AppEngine and AmazonWeb Services as main actors

December 12, 2010 Leave a comment

It’s question which one choose for startUP project ? It’s fair to mention you want to run on Java Virtual Machine (JVM).  I guess you have three choices: Google AppEngine, Amazon Web Services or rent your own Server.  Which one is better ? Good question … I think it always good is to follow your knowledge base and your pocket ( money you have assigned for the project ) and comfort…

My Friend Fraktalek has published the new post “Google AppEngine vs. Amazon Web Service” so I don’t want to writing about similar things, you can read it.

Amazon has announced ONE YEAR free package to give you ability of using AWS Free Tier ( 613 MB of memory and 32-bit and 64-bit platform support). Management console allows you to set up your tier (t1.micro is that one for free).  You can choose op. system image to have installed there … and Amazon command line tools EC2 to connect to your new virtual system.  You can for example install Tomcat Server and use SimpleDB as main database …. What I want to note is that you have full administration rules. That means freedom.  In this way I’m very glad for Cloud Computing … You don’t have to care about hardware or something like this only choose what you want to use or install it.  I have also tested building small farm inside AWS  Cloud (IPs setups and firewalls etc. ).   I’m not able to say the economic payload (have to do calculation).  At the first look I think it’s good invest time to study AWS closer … example user could be WikiLeaks (no comment ) 🙂

Compare to GAE, which is the platform, AWS needs more time to read how it works. You are also forced to get better understanding around (Is it really bad ?). What you gain is the freedom.  GAE you could simply integrate to your IDE and don’t care how it’s working. Google engineers are too smart to make it works. You have to follow only restrictions which are everywhere especially in “FREE” cases 😉

The third choice is your own server… nice and cool but I think you need to have more money even for system upgrades …  it’s up to you!

Categories: Google, JAVA

AdWords API and Python

January 17, 2010 Leave a comment

Google has uploaded this new video couple days before.  It should introduce library which  allows Python client to access to AdWords.  One of its main features is that it hides the SOAP layer from the end user and makes it easier to interact with the API.  My comment is only about operating system 🙂

Categories: Google

jQuery 1.4 Released: to 14 days of jQuery

January 17, 2010 Leave a comment

Well jQuery 1.4 has been released and brings to you couple of important and very useful changes … Although there were many speculation about jQuery maintenance new Release 1.4 became to be surprised … Now just I go through couple of them in GeeCON intent …

1.  Control a Function context …

Query 1.4 release provides the  proxy” function under the jQuery name space. This function takes two arguments  (a “scope” and a method name or a function and the defined “scope“).  JavaScript  “this” keyword can be quite tricky to keep a hold of.

As we have an example of  “conSPACE” object which contains two properties, “clickHandler” method and a config object:

var conSPACE = {
 config: {
  clickMessage: 'GeeCON Planet is here!'
  clickHandler: function() {

The “clickHandler” method, when called like “conSPACE.clickHandler()” will have “conSPACE” as its context, meaning that the “this” keyword will allow it access to “conSPACE“.  Actually this works very simply:

app.clickHandler(); // " GeeCON Planet is here!!" is displayed

Do try to  bind it as an event handler:

jQuery('a').bind('click', conSPACE.clickHandler);

When we click an anchor it doesn’t appear to work (nothing is alerted). That’s because jQuery (and most sane event models) will, by default, set the context of the handler as the target element, which is that the element that’s  been clicked will be accessible via “this“. But we don’t want that, we want “this” to be set to “conSPACE“. Achieving such intent is  in jQuery 1.4 simple:

    jQuery.proxy(conSPACE, 'clickHandler')

This is it, whenever an archor is clicked, just GeeCON Planet is here! gonna be displayed … for more read about jQuery.proxy() here

2. Binding Multiple Event Handlers together …

This feature is really cool because instead of chaining couple of methods together, you can do just as one call and bind them by using .bing()

   click: function() {
   // do something
   mouseover: function() {
   // do something
   mouseout: function() {
   // do something

3. Passing Attributes to jQuery1.4 …

Before rel. 1.4  jQuery supported adding attributes to an element collection via the useful “attr” method, which can be passed both an attribute name and value, or an object specifying several attributes. jQuery 1.4 adds support for passing an attributes object as the second argument to the jQuery function itself, upon element creation.

jQuery('<a/>', {
 id: 'GeeCON',
 href: '',
 title: 'Become a GeeCON attendant',
 rel: 'external',
 text: 'Join GeeCON !'

attribute “text” is utilized by jQuery 1.4 where jQuery causes to call “.text()” method, passing “Join GeeCON” as its only an argument of.  Other similar example  where “id” is added as regular attribute:

jQuery('<div/>', {
  id: 'GeeCON',
  css: {
    fontWeight: 222,
    color: 'Yellow'
  click: function(){
    alert('GeeCON has been reached!');

There are lot of other new features (17) which all are interesting in making jQuery 1.4 usage more easier … Have a look here for more Version 1.4 . Do not forget about GeeCON conference ..

Categories: brief news, GeeCON, Google

Google search results

October 2, 2009 Leave a comment

Topic from title is closely connected with one lesson I have on CVUT faculty focused on basic knowledge. I’m pretty sure that one of task of every student is to search, analyze and working with information. One of the best search engine in the current world is Google and only few of all students I have met know how to use it. Here are several basic and useful information around.

1. Using basic operators in google search engine
Google supports powerful operators which can be special characters or words that modify the search query. In this section we’ll look at the basic–not to be confused with weak–operators which include the OR operator and the special character operators:

  • OR word or “|” character
[Audi OR Skoda]  ~    [Audi | Skoda]
  • Double Quotation Marks (” “) – Double Quotation Marks for Exact Phrase Search
[Skoda Octavia] => much better results by ["Skoda Octavia"]
  • Plus sign (+) – Using the “+” Sign to Force a Search on a Word
[Skoda Octavia II] => much better results by [Skoda Octavia +II]
  • Minus sign (-) – Omitting Pages with Certain Keywords by using the “-” Sign
  • Tilde (~) character- Powerful Synonym Search with the “~” Sign
["car engine" ~alternative]
  • Asterisk (*) character – Wildcard Search with the Asterisk
["skoda * +II"]
  • Double Periods (..)
  • Parenthesis (())
[(silver | gold | platinum) (dimes | quarter)]
Categories: Google

The first Android application in IntelliJ

September 1, 2009 Leave a comment

Google Android Developer

Yesterday I bloged about Android 1.5 SDK installation on my Ubuntu 9.04. Today after my daily duties I found time to continue and create my the first Android App. Here it is. I did nothing special because I’m still a beginner but maybe it’s interesting.

I used ‘Hello world tutorial’ provided by Google. Issue is there is no notes about IntelliJ and advantage is similarity to Eclipse. Before start you have to create your AVD file  ( Andriod Virtual Device) which is simple. When you have mapped SDK correctly our command is navigated to SDK folder tools/.  Only execute following

android create avd --target 2 --name my_avd

Press  ‘Return’ to skip the question (“no” is the right). After I move back to my IDE and start New Andriod Project via main menu

Start new Android project

I had to assign appropriate Android SDK 1.5 folder. After Android Build Target was changed to Android 1.5.

Application name: Hello Android
Package name: com.example.helloandroid
Activit name: HelloAndroid

What is Activity here:
This is the name for the class stub that will be generated by the plugin. This will be a subclass of Android’s Activity class. An Activity is simply a class that can run and do work. It can create a UI if it chooses, but it doesn’t need to. As the checkbox suggests, this is optional, but an Activity is almost always used as the basis for an application.

My Android project was ready. I had opened my inside my IntelliJ and I started to editing it. After the source looks like this:

package com.example.helloandroid;

import android.os.Bundle;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        TextView tv = new TextView(this);
        tv.setText("Welcome to Android world! by mirage");

Time to start my project (Run->Run -> Select our AVD file for deployment – > Press Run button ).  Then I was very nicely surprised by design of the emulator. (process running on  the background is named ’emulator’) . It looks nicely but be aware you can confirm to providing statistics data to Mr. Google .


After while ( depends on your system ) our application gonna be displayed. And this it’s the end for todays story.

Android App

Categories: Google

Downloading Android and installing on Ubuntu 9.04

August 31, 2009 Leave a comment

Google Android Developer

Since first time Google announced its platform Android I was excited. It was similar as with PalmOS 5 in the past as I do remember. I have my Treo 680 still and I love it but I have a feeling that time to change is comming 🙂 as day D.  I love smartphones because I have to remember lot of things and it’s not so easy for brain. It’s better to have any free space inside. Anyway today I decide to install Android SDK  and its additional plugin to my IDEA development environment.  With IntelliJ IDEA I hadn’t any issue, very easy to install via plugin Manager.

IntelliJ IDEA and Plugin Manager

So the first step I did I just downloaded Android 1.5 SDK, Release 3 from official sites.  Package for Linux because I’m Ubuntu 9.04 user.

2. unpack downloaded file in your home directory.

3. Define your environment variable. Add full path to the tools/ directory.  Eedit your ~/.bash_profile or ~/.bashrc file. You can also add it to your /etc/environment file. To your ~/.bashrc only add this line on the end

export PATH=${PATH}:<your_sdk_dir>/tools 

Note do not forget to install also Java SDK.  You could use this command:

# sudo  apt-get install sun-java6-bin

Now I have everything installed and prepared. So tomorrow I’ll start to play with…sweet dreams about Android…


Categories: Google