My Writings. My Thoughts.

Simple Java singleton example

// May 26th, 2009 // 5 Comments // Programming

public class SimpleSingleton {
  private static SimpleSingleton singleInstance =  new SimpleSingleton();

  //Marking default constructor private
  //to avoid direct instantiation.
  private SimpleSingleton() {}

  //Get instance for class SimpleSingleton
  public static SimpleSingleton getInstance() {

  return singleInstance;
  }
}

Ubuntu One: The next Ubuntu

// May 22nd, 2009 // 4 Comments // News

Ubuntu One

Ubuntu One

Some of you may know that Ubuntu has recently launched a beta version of the storage service online called “Ubuntu One”. This service is very similar to what other service online storage dropbox as already, except that Ubuntu One (Corporate Service) is more expensive than dropbox and the fact that dropbox client already supports Linux very well that it makes little sense to use Ubuntu as a service for online storage. Unless we consider these facts:

  1. More than just backup: Although still at the initial stage, online storage and file synchronization is an aspect of what will be on Ubuntu, ultimately the goal of Ubuntu is to be able to integrate with applications so that you can save / store / retrieve application specific information and share with other computers (or users) if you wish. Something very similar to what already does with OSX MobileME.
  2. Cloud is the future: RMS May not this, but the future of the desktop OS will be a form of collaboration between the cloud and the desktop clients. There is little sense for the popular Linux distributions like Ubuntu to be on the sidelines of this change in evolution of other operating systems that will eventually be a major kiss. We need more ways to appeal to new Linux distributions, users and taking proactive measures to be consistent with the ways people use computers.
  3. Fund for the future development of Ubuntu: Ubuntu As grows in popularity as the cost of keeping things working well. Perhaps the most important (for me) is that Canonical is seeking ways to generate funds for the future development of Ubuntu. You can collect as much money by selling mugs, t-shirts and gifts paid or provide support services. If Ubuntu is a service paid enough members, it will generate a source of funds for future development of Ubuntu. If you ask me it’s a win-win for everyone.Ubuntu is still supported by funds from Mark Shuttleworth, an initial “emergency” funds of 10 million.

What do you think of Ubuntu One? Are you willing to pay $ 10 per month (10 GB) for Ubuntu, which will also fund the future of Ubuntu?

Jquery framework for dummies

// May 22nd, 2009 // 8 Comments // Design, Programming

So you’ve heard of this wonderful JavaScript library called jQuery. What exactly is jQuery?

How can I make my life easier as a developer? How do I start? Well, writing Javascript jQuery is fun again and you can really enjoy some of the most difficult aspects of Javascript with relative ease. Today we take a look at how to start with jQuery and writing your first script!

What is jQuery?

jQuery is a lightweight Javascript library (some call it a framework), which makes most of the headaches from writing pure Javascript in your applications. It has many powerful features, some of which include: easily through the DOM, adding animations and effects to elements slick, and super simple Ajax techniques and methods. Perhaps the homepage of  jQuery described more precisely:

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animation, and Ajax interactions for rapid web development. jQuery is designed to change the way you write JavaScript.

How do I start?

The first thing you need to do to start with jQuery jQuery is to visit the home page and download the latest version of jQuery. Once you’ve downloaded the jQuery library, just load the library to your server and link to the <head> section of your document, as shown in the code below.

<script type="text/javascript" src="/jquery.js"></script>

In addition, you can let google host your jQuery code for you, which can result in faster loading times for the end user, especially if the version of jQuery is already cached by their browser. To learn more about letting google host your code, visit the Google Ajax libraries.

Continue Reading

Hello world!

// May 18th, 2009 // 3 Comments // Programming

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!