Updates from August, 2012 Toggle Comment Threads | Keyboard Shortcuts

  • Subinkrishna Gopi 10:43 am on August 24, 2012 Permalink |
    Tags: , , , jquery, , ,   

    Today’s read: Useful jQuery Function Demos For Your Projects 

    Smashing Magazine

    This one is a real good one. This article from Smashing Magazine gives you a very high level view of what jQuery can do. A real good starter for those who want to try out the possibilities of jQuery in their projects.

    Every aspiring Web developer should know about the power of JavaScript and how it can be used to enhance the ways in which people see and interact with Web pages. Fortunately, to help us be more productive, we can use the power of JavaScript libraries, and in this article we will take a good look at jQuery in action.

    Source: Smashing Magazine / Useful jQuery Function Demos For Your Projects

    Have a good read and make your hands dirty.

    Advertisements
     
  • Subinkrishna Gopi 8:17 pm on July 2, 2012 Permalink |
    Tags: , input, io, , , output,   

    My most favorite methods – part 2 

    Okay, here’s the second one. And it took me a few months to write this one 😛

    /**
     * Copies from an {@link InputStream} to an {@link OutputStream}
     *
     * @param from
     * @param to
     */
    public static void copyStream(InputStream from, OutputStream to)
    {
    	byte[] contents = null;
    	int count = -1;
    
    	if ((null != from) && (null != to))
    	{
    		try
    		{
    			contents = new byte[1024];
    			while (-1 != (count = from.read(contents)))
    			{
    				to.write(contents, 0, count);
    			}
    		}
    		catch (Exception e)
    		{
    			e.printStackTrace();
    		}
    		finally
    		{
    			contents = null;
    		}
    	}
    }
    

    This method copies the contents from the input stream to the output stream. Do I need to explain more?

     
    • Andy Res 9:14 pm on July 2, 2012 Permalink

      It’s funny the way how you write the condition in the if and while loop, like you are checking the “null” and “-1” against your variables, which seems unusual for me. 🙂
      I would write instead if(from!=null), and while((count=from.read(contents))!=-1) ..

    • Subinkrishna G 11:09 am on July 3, 2012 Permalink

      This is one practice that I follow from beginning 😉

  • 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.

     
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