Updates from November, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • Subinkrishna Gopi 4:17 pm on November 24, 2011 Permalink |
    Tags: , groovy, hello world, , scripting   

    Hello, Groovy! 

    My new job demands me to learn a lot of new things that I never wanted to! Today I wrote my first ever Groovy script. And it compiled and run! Awesome 🙂

    package subin.groovy;
    
    /**
     * Hello, World!
     *
     * @author Subinkrishna Gopi
     */
    class HelloWorld
    {
    	static def aString = "Hello, World!"
    	static void main(args)
    	{
    		println("${aString.toUpperCase()} it's a nice day today :)")
    	}
    }
    
    Advertisements
     
  • Subinkrishna Gopi 8:49 pm on November 10, 2011 Permalink |
    Tags: lessons, life, work   

    Things I learned in the past 6 years! 

    And finally I decided to change the first job I ever had! The last six years taught me a lot of lessons – good, bad & ugly ones.

    Note: The characters/incidents in this story are almost real.

    So, here it goes:

    • If you are not an expert in multitasking, hmm… better you learn it. You are supposed learn how to zip your pants while tying your shoes!
    • There are three ways to solve a problem. A simple way, a difficult way & a stupid way.
    • Communication is always two-way. If someone mails you for a help, replying “Go to hell!” is much better than not replying at all.
    • A Jailor can never be a Florist, and vice versa.
    • Be cool or pretend to be cool. No one can tell the difference, almost every time.
    • Spend more time with family, not in office. After all we all are human beings & social animals.
    • Submit your financial claims properly, you will end up paying for official trips otherwise. Well… I’m paying the EMIs, still.
    • Listen to your wife/girl friend(s), they do talk sense… sometimes.

    Okay. If you are person who thinks python is a big scary snake & looking at eclipse is a taboo, you can stop reading. Because the following is for those who loves to tame the python with eclipse.

    • Respect NullPointerException. They can pop up anytime in your code, even if you are James Gosling or Joshua Bloch.
    • Try to write code that humans can understand.
    • Java != JavaScript. Many “technical” managers will not agree it though.
    • If your Hello, World! program don’t run, don’t expect your space-ship program to compile. (Courtesy: Vasu)
     
    • tsafwat 5:14 am on July 29, 2012 Permalink

      these notes really made my day 🙂

  • Subinkrishna Gopi 12:00 pm on October 10, 2011 Permalink
    Tags: , , repost, success,   

    Repost from fastcompany.com: 5 Things to Do Every Day for Success 

    5 Things to Do Every Day for Success

    BY FC EXPERT BLOGGER DAYNA STEELE
    Tue Mar 1, 2011

    This blog is written by a member of our expert blogging community and expresses that expert’s views alone.

    “You get up at what time?” I hear that a lot along with “you are so lucky.” So, I’m going to help out here and let you in on the secrets of my success. Well, not all of them but enough to show you the foundation I build on every day.

    1. Wake up early. For the next week, get up a half an hour earlier that you normally do–and get going. If you get a few more things done, then get up even earlier the next week. Early in the morning is a great time to get work done because most of your associates have not started emailing, tweeting, IMing or posting yet.
    2. Read the headlines and watch the news. Not only should you know what is going on in the world, you will also be the first to recognize opportunities (if you followed #1) for you and your business–long before the competition has even had their first cup of coffee.
    3. Send something to one person who can hire you or buy your product–something you promised to follow-up with, a quick email with a link to something relevant or a “hey just checking in to see how thing are going” email.
    4. Touch base with an old friend or associate you haven’t talked to in ages. Ask how they are, what are they working on and ask or suggest how you might help. You’ll make their day.
    5. Write a handwritten note to someone. Seriously. It is a lost art and makes quite an impression. There is always someone you can send a thank you note to–or you aren’t doing things correctly.

    A simple yet highly effective list. Try all five every weekday for a month. Then, tell me I’m right. If I’m wrong, I’ll buy you a cup of coffee. When you finally wake up …

    Dayna Steele is a serial entrepreneur and author who travels the country creating rock stars with her “Rock Star Principles of Success.” Follow her on Twitter @daynasteele. You can listen to the podcast version of herFast CompanyLeader blogs on iTunes.

    Source: http://www.fastcompany.com/1733248/5-things-to-do-every-day-for-success

     
  • Subinkrishna Gopi 6:11 pm on October 8, 2011 Permalink |
    Tags: , readability, , , ,   

    Today’s read: 16 Pixels For Body Copy. Anything Less Is A Costly Mistake. 

    Smashin Magazine

    16 Pixels For Body Copy. Anything Less Is A Costly Mistake

    A very good article on why we should keep bigger (and better) font sizes. I totally agree with the author. I hate the small font size Facebook uses. That gives me a bad head ache and I always use the browser zoom for better readability.

    I know what you’re thinking. “Did he just say 16 pixels? For body copy? Obnoxiously big! 12 pixels is ideal for most websites.”

    I’d like to persuade you otherwise.

    Have a nice read.

     
  • Subinkrishna Gopi 2:41 pm on October 5, 2011 Permalink |
    Tags: , database, db2,   

    An encounter with DB2 – How to apply “limit” to queries? 

    My new assignment wanted me to experiment with DB2. And like everyone else who is new to DB2, I couldn’t find a way to limit the result set! After a lot of googling and phone calls I ended up with a stupid solution – but it works.

    The solution looks like this:

    SELECT * FROM
    	( SELECT ROW_NUMBER() OVER (ORDER BY column_to_be_sorted) AS rownumber, col1, col2, other_cols
    	  FROM my_db2_table WHERE col1 = ‘something’ )
    AS tmp_table
    WHERE rownumber BETWEEN start_index AND end_index
    

    I hope this helps. But I really wish if there was some better ways.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel