Thursday, April 15, 2010

Silver Lining


Hey Guys!

Get started with cloud computing 'cause now it's there for you. Despite all the problems the new computing is rising and Ubuntu is offering you much space online to get into the cloud so why not give it a try with Ubuntu One.



The process is really simple get an account on ubuntu one. Yeah with Ubuntu 9.10 Karmic Koala we already have an ubuntu one folder in home. So after the account been created and activated for your PC the system will automatically get connected for synchronization. And the cloud on the is pretty cool too. So let's get started.

Things you can do:

  • Shares your files online
  • Synchronization on notes taken using Tomboy
  • Synchronization of contacts from evolution

Web interface of Ubuntu One.

Yeah ubuntu one is able to do that. I really liked the contacts and notes part. See the web interface screenshot to check out the addition of contacts.

Monday, April 5, 2010

Interesting coding bug in C++ and JAVA

Hey while creating classes there are some interesing thing that may come up to you :)
Consider you are creating a class object inside the same class constructor. The program will surely eat up your stack. Let's see some code.

C++ let's call it Test.cpp:
class Test {
public:
Test() {
Test obj;
}
}

int main()
{
Test o;
}


When I compiled and ran the code it soon ended in a Segmentation fault :) you know why.

The "secure(cliche)" JAVA also not restricts the creation of object in the same class constructor so I also experimented with it so the results are

JAVA (say Test.java);
class Test {
Test() {
Test obj=new Test();
}

public static void main(String[] args)
{
Test o;
}
}


Compile and run come with with Exception StackOverflowError

On my machine when i checked C++ managed to create 163698 object then Segmentation fault
JAVA created 5818 objects and then Stack Overflow exception Oh my...
COOL
Which one is awesome?
comments