Apr 12
My Sites: My Blog | My Tech Blog | Follow me on Twitter
—-

Everyone wants to make a name for himself. Everyone wants to do something new and extra-ordinary. People like me (read software engineers) want to develop “something” cool. BUT, the stage where most of them go wrong is the very first one. Most of them think that the road to develop something cool starts from a particular “language” or a tool. But I beg to differ. I say the first stage is “The Idea”.

Most of my friends and others around me think that having a particular skill set is very important to develop something the world hasn’t seen till now. And for this they end up reading through piles of books, which claim to make them a master in C, C++, PHP, Python, Web 2.0 and what not. This is all OK, but the problem is, when they have gone through the books, done all the exercises, made all the samle projects, then they have a question in their minds “Now What”?

What I think is that this question should have been asked in the very beginning of the journey. And it should have been answered by the occurrence of a new idea.

Don’t get me wrong. I’m all for reading books, developing skill sets, learning new technologies, etc. But the only point I want to make is that all this is a “means” to give your “idea” a shape. They are not where your story begins. What if you spent a lot of time acquiring perl skills and then when (and if) you get your brilliant idea, you find out that the best way to implement it would be using C. Are you back to square one? No. Skills acquired are never a waste. “Concepts” developed can easily be applied to the new tool that you have to use.

But one more thing, its again not a hard rule that now you should just sit in your chair all day long and keep thinking. I bet its much harder to get the idea stream flowing that way. Ideas don’t have a pattern that they follow while coming into your mind. They may come to you any place unexpected (I get most of mine while bathing ;-) ).

But there is something you can do to ensure that your brain gets accustomed to recognize an idea when you do get it. So, while you are reading through that book on C programming, don’t just get engrossed in typing out the exact source code that’s fed to you. “Think” about whether is that enough? Can you make some modification to it so that it becomes more efficient? Can you tweak it a bit to do more than its already doing?

Keep your eyes open when you go around your daily chores. Think when you open your door whether wouldn’t it be nice if the door could recognize you are there and open itself. There’s your idea. And while you are at it, think wouldn’t it be even nicer if your home would have poured you a cool drink itself when you enter it?

Now, tell me whether you would like to wait to think about these ideas till you read the book’s epilogue, or do you want to start thinking now?


—-
If you liked this post, then you can Subscribe to my feed
Quote of the day: “There’s a time and a place for everything, and it’s called college.” — Chef

written by Shantanu Goel \\ tags: , , , ,

Mar 09
My Sites: My Blog | My Tech Blog | Follow me on Twitter
----

I’m back from my vacation and this is a smallish post before we return to our regular programming (I’m full of puns  ).

Rahul (my friend and guest author on this blog) introduced me to an old-but-useful trick a few days ago that I didn’t know about. It’s about customizing nautilus to display a context menu that has a few of your chosen scripts to weave their magic on the selected object. And the procedure to do this is summarized in just two steps:

  1. Write your script.
  2. Save it in ~/.gnome2/nautilus-scripts and make it executable (chmod +x <script name>).

Of course, if you don’t know scripting the first step itself is quite daunting, but you can get a lot of pre-cooked scripts on the internet by searching for “nautilus scripts”. e.g. take a look at g-scripts homepage.

To get you started immediately, here is a crude example to open a terminal/console window in any folder/path through right-click menu:


Step 1) Write your script (any scripting language: shell, perl, python, etc):

CODE:
  1. #!/bin/bash
  2. gnome-terminal --working-directory="$1"

Step 2) Save it in ~/.gnome2/nautilus-scripts, name it as “Terminal” and make it executable.

CODE:
  1. chmod +x Terminal

Step 3) Now, you should see a “Scripts” option in your right-click menu as shown below. Clicking on “Terminal” will open a new terminal window with the present working directory being set to the selected folder.

Nautilus_scripts

Note: If you don’t see the “scripts” menu option (or your script name in the extended menu), then just run

CODE:
  1. sudo killall nautilus

Let me know if you face any problems with this or have any other questions.


----
If you liked this post, then you can Subscribe to my feed
Quote of the day: Trust no one. Question Everything. - Deus Ex

written by Shantanu Goel \\ tags: , , , , , , ,

Mar 06
My Sites: My Blog | My Tech Blog | Follow me on Twitter
----

Admin Note: Rahul is a long time friend of mine, and is a well known geek amongst his friends and colleagues. I'm happy to announce that he will be enriching this site from time-to-time as a guest editor/author. First up is a small tid-bit of a script that he wrote to ease up his life between installations and reinstallations of everyone's favourite OS: Ubuntu. Over to his post..

Have you ever had to reinstall your ubuntu installation, and then bear the pain of manually installing the applications you've come to love (i mean use :)) everyday? If yes, then cheer up buddy, because all you really need is some magic (read scripting), some typing and spend some time digging the package names of your favourite applications.

To get started, you'll need to type the package information in a configuration file. The format of the file is really simple

  • Any line starting with a # is ignored
  • Blank lines are ignored
  • Any other line, the first word is taken as the package name you want to install

Next, download this script, and make it executable

CODE:
  1. chmod +x rapt-client-install-packages.sh

Continue reading »


----
If you liked this post, then you can Subscribe to my feed
Quote of the day: "You will be who you will be. We are our choices. And we can choose to lead humanity away from this... darkness." - Icarus/Helios

written by Rahul Gupta \\ tags: , , , , , , , , , , , , , ,