Posts

Showing posts from 2012

Why I love to be a programmer ?

                       Usually I have seen people getting bored with programming after 5-7 years in their career. And then I ask myself a question, will the same thing will happen with me ? I started taking interest in programming in college not because it was a subject and I have to pass it, but I fond it appealing and addictive in nature. Due to some absence of guidance during my college and due to some really bad teachers I am not able to get hold on Data Structures. Some times I feel I could have been better in programming if I have takes DS seriously. Now while I am doing a regular job as a iOS developer I daily spend 2-3 hours studying DS or some programming language.                        For me programming is not about making handsome money, its just about self satisfaction that I have created something that people are using and are loving it. I have continuously heard people saying "Live your own life, don't think what others are saying"  and blah blah, but t

21 Life Lessons from Steve Jobs

Image
Steve Jobs will be remembered as a digital visionary — the man who brought poetry to the microchip. But before he was a legend, he was a person. We can’t all be Steve Jobs, but we can all learn from his extraordinary life. #1 Skate to Where the Puck is Going to Be In 2007, Steve Jobs said, “There’s an old Wayne Gretzky quote that I love. ‘I skate to where the puck is going to be, not where it has been.’ And we’ve always tried to do that at Apple. Since the very, very  beginning. And we always will.” Steve’s ability to anticipate future trends helped Apple dominate now-burgeoning markets like digital music sales (through the iPod and iTunes Store). #2 Accentuate the Positive Steve started life out on the wrong foot. He was given up for adoption at birth because his mother had wanted a daughter. Tough break? Young Jobs didn’t think so: he was thankful for his loving adoptive parents — who happened to live in Palo Alto, California (which would eventually become Silicon Va

Python .. Y r u so beautifull ....

I have started with Python finally. It is fun. Presently I am just learning the basics syntaxof this wonderfull language and how OOPS concepts are implemented in it. Last year in September 2011 I attended a talk given by UIET students on Open Source where I saw the power of Python, but never got since then to take this language seriously. I am highly impressed by the easy syntax and of Python. It just like u r reading plain english. I am planning to work on PyQt after I get familiar with Python and its Standard Library and after that some web development to with Python. But after all this too my main aim will be to become a good game developer for the Android platform. And one funny thing is I haven't started with Android development yet. Who has the time to learn so many things at once . But I will definately learn Android development soon and will make market changing games in it. At present I have no idea what game I will be developing in Android when ever I start. Bye for n

toString() method in Java

The  toString()  method returns a  textual  representation of an object. A basic implementation is already included in  java.lang.Object  and so because all objects inherit from  java.lang.Object it is guaranteed that every object in Java has this method. Overriding the method is always a good idea, especially when it comes to debugging, because debuggers often show objects by the result of the  toString()  method. So use a meaningful implementation but use it for  technical  purposes. ===============================ToStringClass ====================================== public class ToStringClass { public String toString() { return "Hello I am ToStringClass\n"; } public ToStringClass() { System.out.println(this); } } =====================================MainClass==================================== public class MainClass { public static void main(String[] args) { ToStringClass toStringObject = new ToStringClass();

Setting Up Java 7 , Netbeans , MySQL and a JDBC Connection in Linux -3

Image
Hi friends, I think this will be the last post on Setting Up Java , Netbeans , MySQL and JDBC Connection . The only part you are left with is setting up your JDBC connection . So what things you need to setup your JDBC connection -: 1 . MySQL Connector/J ( http://www.mysql.com/downloads/connector/j/ ) Download either or the .zip or .tar.gz file because both are platform independent files . After downloading it extract it and and find the mysql-connector.bin.jar . 2 . Now you have to copy this file in the Java directory . Here is a command to copy from your download folder to your jvm directory ----------------------------------------------------------------------------------------------------------------------- sudo cp /home/Downloads/jassi/mysql-connector-java-5.1.6-bin.jar /usr/lib/jvm/java-6-openjdk/jre/lib/ext/mysql-connector-java-5.1.6-bin.jar ----------------------------------------------------------------------------------------------------------------------- In this

Setting Up Java 7 , Netbeans , MySQL and a JDBC Connection in Linux -2

Image
Hi folks, this is the next part of setting up your Java environment on your cool Linux Machines . I hope you were successful in setting up Java . Now in this tutorial I am gonna tell you how install the MySQL client , server and admin . Yes you will install three things in just one post . But don't worry , this post is not lengthy at all . You just have to write three commands in your terminal and tadaaaa you will be successful in setting up MySQL . Just go to terminal and write -: ------------------------------------------------------------------------------------------------------------------------ sudo apt-get install mysql-server -------------------------------------------------------------------------- ---------------------------------------------- You will be prompted in the terminal once or twice to answer yes/no and enter the password for ur MySQL . Just enter any password you want but tell me because then I my try that password on you email id to hack your account (jus

Setting Up Java , Netbeans , MySQL and a JDBC Connection in Linux - 1

Hi everyone in this post I am gonna tell you , how you can setup a complete environment for Java Desktop and Web development in Ubuntu Linux with a complete Database Connectivity . As I am also a beginner in Java and Linux if anyone find any mistake in this blog feel free to correct it and let me know and simran5590@gmail.com . I will be more than happy to correct my self next time when I am using the same thing . First of all u need a Java-JDK to get started with Java development . In Linux there are mainly 2 option by which u can install JDK . Its either by downloading the Sun Java from there website (I think my audience is enough smart to google the link yourself :-] ) or the Open-JDK which also provides the essential Java Development environment in Linux . Following are the steps u have to follow to install Java in your Linux Machine (I am telling about Open JDK) . 1 . Type javac in your terminal . If Java is already installed in your machine will get a l