Setting up sharded mongodb cluster in localhost

I have been playing around with MongoDb, thanks to the M101J Course offered by Mongodb University. These NoSQL datastores are gaining popularity due to a number of reasons and one among them being the ease with which they can be scaled out i.e horizontal scaling. This horizontal scaling in MongoDB can be achieved by creating a sharded cluster of mongodb instances.

You might want to understand the concept of sharding before continuing. The MongoDB reference has a very clear explanation for the same here.

Read more

What it takes to participate in Open source projects?

There was a query on Javaranch regarding participating in Open Source projects and I made an attempt to provide somewhat elaborate reply to it. I thought of putting up  the reply on my blog as well and may be update it further for the help of others.

Participating in Open Source projects would take a lot of effort and dedication. Its because one has to:

  1. understand how the code works,
  2. play around with it,
  3. explore the documentation,
  4. understand the code and not get bogged down by the volume of code
  5. be active on the mailing list,
  6. go through the bug list to see if something you can fix,
  7. submit a patch for the bug, hope it gets accepted,
  8. repeat 6-7 until core members of the project start recognizing you and possibly trust you with the permission to directly merge the fixes to the codebase.

Read more

Coming back to Ubuntu after a long break :) and the Ubuntu days :)

So I have finally decided to start using Ubuntu once again. Its been 7 months since I stopped using Ubuntu and switched to Windows and its since I left college. One of the reasons I started using Windows was that I was developing a Java ME app then (7 months back) and had everything configured … Read more

Execute external process from within JVM using Apache Commons Exec library

Executing external command from within JVM often causes problems- be it in terms of the code to write and manage or in the ease of implementation. I had similar requirement in my Major project for my Under Graduate Degree, where in I had to launch a C program from the Java code. I ran into different issues like- the Main thread getting blocked, the GUI freezing, or reading the output streams and so on. Finally I had to give up the idea and stick with launching the external command externally 😛 Had I found the Exec library from Apache Commons then, my work would have been lot easier. Anyways better late then never. I will quickly go through how one can use  Exec library to launch external programs from JVM- Its a wrapper over Java’s ProcessBuilder, Runtime.getRuntime().exe().

Read more

Restart/Shutdown problem in Ubuntu 8.10

I spent lots of time configuring my Ubuntu 8.10 installation, installing all the required softwares. The best thing i could do was to install Prozilla- the download manager which is really awesome. Also i installed all the IDEs, RDBMS that i use. But when i tried to shutdown my system it used to hang. This used to annoy me like hell. I then googled for this problem and came across the following solution which worked for me:

Read more

Ubuntu 8.10 Desktop Edition Available Now!!!!

UbuntuCanonical Ltd. announced the upcoming availability of Ubuntu® 8.10 Desktop Edition for free download on 30 October. In related news, Canonical also announced the simultaneous release of Ubuntu 8.10 Server Edition.

Ubuntu 8.10 Desktop Edition is designed for the pervasively connected digital lifestyle. With new 3G network support, users can move smoothly from wired and WiFi networks onto 3G cellphone networks while traveling. Ubuntu 8.10 is also built to be shared – users can start a quick “guest session” on the fly and let someone use their computer to surf the web or check email, while maintaining the security and integrity of their own data. And if that person really enjoys their brief session as an Ubuntu guest, they can put Ubuntu on any USB key and take it home to install on their own computer rather than having to burn a CD.

Read more

RefCardz: Essential MySQL

RefCardz: Essential MySQL MySQL is the world’s most popular open source database, sporting a barrier of entry low enough to attract novice developers yet powerful enough to power some of the world’s most popular websites, among them Yahoo!, BBC News, the U.S. Census Bureau, and Craigslist. Recently acquired by Sun Microsystems, MySQL’s future is indeed … Read more

NetBeans IDE Certification Exam!!!

Are you a Programmer who is responsible for developing Java desktop and Java web applications using the NetBeans IDE? If so, this is your opportunity to get involved in the creation of the Netbeans IDE exam! As a beta tester, you officially test the test and will be able to provide Sun with valuable comments … Read more

Software Freedom Day- September 20

Software Freedom Day (SFD) is a worldwide celebration of Free and Open Source Software (FOSS). Their goal in this celebration is to educate the worldwide public about of the benefits of using high quality FOSS in education, in government, at home, and in business — in short, everywhere! The non-profit company Software Freedom International coordinates … Read more

NetBeans IDE 6.5 Beta Released!!!!

Netbeans.org is proud to announce the availability of NetBeans IDE 6.5 Beta.Netbeans

NetBeans IDE 6.5 Beta introduces several new features, including a robust IDE for PHP, JavaScript debugging for Firefox and IE, and support for Groovy and Grails. This release also includes a number of enhancements for Java, Ruby and Rails, and C/C++ development. Java feature highlights include: built-in support for Hibernate, Eclipse project import, and compile on save.

NetBeans IDE 6.5 Beta Highlights:

PHP

  • Code Completion
  • Quick Fixes and Semantic Checks
  • FTP Support
  • Debugging with Xdebug
  • Support for popular Web Services

Read more

%d bloggers like this: