Browsing posts in: Featured

12 Things That Would Make You A Better Software Developer

Disclaimer (2017): This post was written a few years ago when I was relatively new to programming, so take with a grain of salt.

12 valuable lessons I learned from my two years experience as a developer. Some are bits I picked up along the way, but some are hard learned tidbits of wisdom I learned from my own mistakes.

The 12 points discussed in the post are the following:-

1. Know your tools
2. Modularize
3. Error messages are your friends
4. Plan, Plan, Plan
5. Maintain predictability in code
6. Write beautiful code
7. Refactor
8. Central location for configuration/settings
9. Push towards automation
10. Keep the comments updated
11. Write jokes in comments
12. Choose the right team

 

1. Know your tools

Programming is no longer just typing code out of the air into your text editor and compiling it after you are done. Programming is more of an interactive process now.

Lots of tools are available now, that can boost developer efficiency. Most programming languages have rich IDE’s with features such as “intellisense”, auto-complete, realtime syntax checking, profiling and debugging assistance, source control integration etc built-in. Knowing these various tools and features are not a must to be a great programmer, but, without a question, better tools can boost your efficiency as one.
Continue Reading


25 Incredibly Useful and Cool Firefox Addons for Geeks and Web Developers

Hey guys, a lot of people (well, not so much 🙂 ) have asked me what Firefox addons am I using. Here I’m compiling a list of my 25 favorite Firefox addons. I cannot even think of surviving a day without most of them.

1. AdBlock Plus adblock-plus-icon

This is the first addon I always install when I freshly installs Firefox. AdBlock blocks annoying advertisements from websites and emails. Some people says blocking advertisements in websites is un-ethical and thereby we are attacking the ability of website owners to earn revenue from their efforts. Well, it is another whole talk, so it’s up to you. (Anyway I love it)

2. Web Developer ToolbarWeb-Developer-icon

An incredible MUST HAVE for all web developers. This addon is like a Swiss knife and has a lot of functions. Believe me, if you have never used it before, you will thank me once you install it and feel it. It enables you to manage cookies, images, java, javascript.. No no, I cannot even list them. Try yourself.

3. Firebugfirebug-icon

Another incredible one. This one is a little difficult to get used to. But once you get used to it, you will bow to it. Incredible tool for debugging your layout, analyzing and optimizing your sites performance etc etc.

4. Zoterozotero-icon

Like firebug, you may not like this addon on first bite, but if you are inclined to learning new stuff and taking notes, you will never again part with this addon. Very easy to save web pages, links and stuff. Every student who uses the internet for academic purposes in any way MUST have this. Once I downgraded my Firefox to an older version, just because Zotero was not working in the newer version of Firefox. (Now it is updated and works with the latest releases till date)

5. TryAgain addon

(Not compatible with Firefox 3.6)

This is a simple but very useful addon. If a page fails to load, this addon will keep trying until the page is loaded. Very very useful if you have a slow or not-so-good internet connection. This one was my fav with AdBlock, but this addon is not compatible with Firefox 3.6. I’m just hoping the author will update the addon soon.

6. Firesomethingaddon

Firesomething is not very useful, like the addons we discussed above. But I keep it for mere geek pleasure. This addon will let you change the name of your Mozilla Firefox to something else you like. It also has a set of preset random names. Right now, as of we speaking, the title of my Firefox reads – Mozilla SulpherMonkey. Isn’t that hilarious? (watever, I love it). You can also change the Firefox logo in the About box.

7. YSlowyslow-icon

Another pretty useful addon for web developers. Useful for analyzing your website’s performance based on several criteria. The best part is, it is developed by Yahoo!

8. User Agent SwitcherUser-Agent-Switcher-icon

A cool geeky addon. This addon can be used to fake your browser’s user agent. S’pose if a website is allowing access to only Internet Explorer users, then this addon can help you. I have narrated another cool use of this addon in my previous post.

9. FEBEFEBE-icon

FEBE Stands for Firefox Environment Backup Extension. With this addon, you can all your addons, preferences, saved passwords and a lot more. Also you can restore your backups at a later time. I recommend this addon very much. I owe so much to this addon for saving me a lot of time, work and data. (You can also export all your installed addons as a single installable addon)

10. Fissionfission-icon

fission

Fission is another geeky addon. Using this addon, you can combine your address bar and loading/progress bar, as in windows 7 and vista. Very geeky.

11. ColorfulTabscolorfultabs-icon

colorfultabs

Another super-geeky addon. This addon will give different colors to different tabs. Will look really attractive if you work with a lot of tabs open. (After installing this addon, I even thought the default tab color is boring)

12. MeasureITaddon

measureit

A useful and handy tool for web and layout designers. This addon will enable you to measure the the dimensions of objects in a webpage.

13. CookieSwapcookieswap-icon

This tab will enable you to have and easily manage multiple profile in Firefox. Has other uses too. Suppose you have 50 tabs open in your browser and you have logged in you your GMail account. payPal account, blog and a few other sites. Suppose if you want to go out for a quick bite or something. It won’t be wise to leave the browser open and leave the computer if you are logged into many important site. And if you close all the tabs of just log out of those sites, it will be a chore to log back into each one of them when you come back. In that case use this addon and just switch to a different profile when you go out and you will be automatically logged out of all the sites. When you come back, just switch back to the previous profile, and you are logged in.

14. FoxTabfoxtab-icon

FoxTab is a cool addon that will let you flip through your Firefox tabs in 3D. The addon is highly customizable and stylish, and sure geeky.

15. View Source Chartview-source-chart-icon

This addon lets us view the source of web pages in an easy to understand manner. Different regions – head, body, divs etc are given in different, easily distinguishable colors. Handy. (No, it doesn’t highlight syntax)

16. xclearaddon

xclear

xclear comes in handly when you want to quickly clear your address bar or search box. Give it a try, you will like it.

17. ColorZillacolorzilla-icon

ColorZilla is very useful for web designers. It comes with a color picker (eye dropper), with which you can find the hexadecimal color code of any element in a page.

18. Total validatortotal-validator-icon

Total validator is a one-stop all-in-one validator comprising a HTML validator, an accessibility validator, a spelling validator, a broken links validator, and the ability to take screenshots with different browsers to see what your web pages really look like. It is very easy to use too. The only problem is that it needs an internet connection to function.

19. TabRenamizerTabRenamizer-icon

This is an incredibly useful addon. It can be used to change the title and favicon of tabs opened in your Firefox window. You can rename all tabs with a shortcut. Comes in totally handy if you want to quickly hide what sites you have opened.

20. Locationbar 2locationbar-icon

Locationbar 2 will can segment the url in your address bar for easier navigation to other parts of the same site. I have described a use of this addon in another post – 7 Points to Stay safe in the Social Web.

21. Leet Keyaddon

1337

A cool geeky addon with which you can easily type in 1337, ROT13, Hexadecimal, Morse, Binary etc (and more) and type and encrypt text using DES and AES. This one is incredibly geeky and can be used to surprise your friends by quickly type in reverse or in 1337 (h4x0r) when you are chatting.

22. ReminderFoxReminderFox-icon

Easily manage your schedule and set remainders and alarms in your browser. This one is also a featured Firefox addon.

23. ScreenGrabScreenGrab-icon

ScreenGrab enables you to quickly takes screenshots of web pages. The best feature is that we can even decide whether to take the screenshot of only the visible portion or whether the whole page.

24. <
a href=”https://addons.mozilla.org/en-US/firefox/addon/4664″>TwitterBarTwitterBar-icon

Post tweets directly from your browser. Minimal user interface and clean.

25. FireFTPfireftp-icon

A full featured FTP explorer right inside your browser. Comes in handy for web devs.

Now tell me what you think and what your favorite addons are. Also, give some love by using the social bookmark icons below.


7 Points to Stay Safe in the Social Web

Facebook Population

How many of those people you know doesn’t have a Facebook account, or an Orkut or MySpace account? I won’t be surprised if you say your 90yr old grandmother is tweeting or your 3yr old brother is playing mafia wars in Facebook 🙂 With the ever increasing participation of people in social networking sites, the more vulnerable their security is being. As this Mashable post says, a guy named Israel Hyman posted this status message in his twitter account saying he’s enjoying his excursion to Kansas city. Later, he returned home to see that his house had been burglarized.

Ok, now let me tell you how to stay (relatively) safe on the social web.

1. Use Strong Passwords

This is the most basic rule. A complex password may be difficult to remember, but it is worth it, believe me. If you know your dad’s high school sweetheart’s name, try it as password in his mail account or Facebook account. You have good chances. Personally my mother still uses my dad’s nickname as her Gmail password. Using simple, easily guessable passwords is most common in less tech savvy people, like your parents, uncles or high school principal. Recently, a social media website called TeensInTech was hacked and a lot of confidential information were compromised. Later after investigating the issue, the company said that their easily guessable password is what gave them in.

2. Avoid easily guessable Security Questions.

Almost all websites including social networking sites rely on security questions for the purpose of retrieving account access incase if password is forgotten. Using easy to guess security questions is a more common scenario than that of using simple passwords. There was this guy in my college I had a grudge against. I found out his email id from his Orkut profile page. It was a Gmail account. I tried the ‘forgot password’ option in Gmail. I was presented with the security question he had set – “What is my college?” 😀 You guess what happened next. There was another guy whose security question was “What is my country?”. I searched for his name in Google and found that most of the results were related to brazil. So I could easily guess that he was Brazilian. Even if that is not the case, any stupid can see that there are less than 300 countries in the world and it is only a matter of time before guessing the correct one.

Avoid questions like these:

  • My mother’s maiden name? – your relatives may know that.
  • What is my pet? – Your neighbors may know that.
  • My first teacher? – Some of your friends may know that.
  • Where did I first meet my boyfriend/spouse? – At least your boyfriend knows that 😀

There are loads more.  Besides these guessable questions, avoid questions which can have only a limited set of answers, like these:

  • Which month am I born in? – It is only a matter of trying the 12 possibilities.
  • My favorite flavor of ice cream?- It is more than easy to guess, unless you are some weird Eskimo chef 🙂

3. Share less / Share wisely

The main agenda of social networking sites is to make you feel like sharing the most. These sites will make you think that it is a good thing to share everything. You will be even given option to marks some of these information as ‘private’, so that only those in your friends list will be able to see it. Believe me, you can trust no one. You won’t believe if I tell you the number of guys who have asked me to crack their girlfriends’ mail id. I regret to say that I once cracked one of my best friend’s email account, just for fun. I felt terrible after doing so, so I confessed – after a few months!

Your personal information like zip code/postal code, mobile number, birthday etc can be used to retrieve your accounts if forget your password. So it is very important to to share wisely.

Try not to share the following information in social networking sites:

  • zip code
  • address/exact location
  • email address
  • mobile number
  • birthday
  • And other similar information.

4. Add people only  you thoroughly know as your friends

Increasing our friends is one of the thing social networking sites have been doing all these days. Even 5th grade kids seem to have 999 friends. To increase our connections, these sites present several options – importing email contacts, friend suggestions etc. It is not rare getting friend requests from people we hardly know. Most of the time, we accept all the requests, just because we don’t want to say no, and appear to an anti-social jerk. Sometimes you get friend requests from total strangers, and you will accept them just because he is from your state or district. Don’t Do That.

There is this new kind of attack method crackers/hackers are using, called Social Engineering, where hackers gather your personal information and use it to access your online accounts, reset passwords etc. So as I said, when you get a friend request, examine his profile thoroughly and accept the request only if you are fully satisfied. Never accept the request if you have at least a lil bit doubt left.

No, it’s not done with yet.

Even if the friend request is from a close friend or a person you know very well, there is a good chance that you are being manipulated. It is easy for a hacker to create a copy of one of your friend’s profile and send the request. So when you get a friend’s request, first check whether he’s already in your friends list. If you already have the same friend in your list, bet one of them is fraud. If possible, call the friend and ask him whether he just send you a friend request.

5. Do not Over-Tweet.

Twitter is the most trendy social web service now. Every cat, cow and corporation now has twitter account. When it comes to posting status updates in twitter, people seem to think that it is okay to post anything. And they post information which would’ve been kept confidential otherwise.

Know your audience (followers)

If you plan to tweet about utterly personal things, it is better to keep your tweets private. If you set your tweets to be private, your status updates won’t appear in the public timeline as you post them and will not be searchable. If your friend or brother wants to follow you, you will be asked to approve first and then only they will start getting your tweets.

Even if you are just comfortable with keeping your tweets public and wants to keep them so, then it is okay, but keep an eye on what you are posting.

6. Use the address bar to visit the site.

Trust the address bar.

Do not trust links.You may receive emails, saying ‘you have one friend request, click this link to accept’ or anything like that which can be extremely convincing. Do not click on links you receive in email to log into your social networking sites. These links may lead to bogus log in pages that may exactly look like the original login page. And once you enter your username and password into it, hoping to log into the original site, rest in peace.

Bu
t if you want to log into your Facebook account or Twitter account, use your browser’s address bar to type in the address of the site. Also before entering your login details in the site, make sure the address in the url is Facebook itself. Phishers (hackers) can employ addresses similar to the original site. So it is good to double check the address. For instance, I can create a fake Facebook login page in the address www.facebook.com.login.devildesigns.net. The address looks like a genuine one (www.facebook.com) in first look. But it is actually a sub-domain, which anyone can easily create. Only careful look can make out the difference. Tip: There is this Firefox addon which highlights the original root domain. See the screenshot below.

location-bar

You can see the root domain (mozilla.com) is highlighted.

7. ..And finally, Trust No One.

Just keep in mind that everyone you meet online has a good chance of being a malicious user. Trust no one (even if he’s claiming to be ur dad. no no, uncle. okay?). The world wide web is a magical world where anyone can be everyone and everywhere. One can easily disguise as someone else. When next time you get a tempting friend request from a hot young lady, just keep in mind that probably it is some fat, balding guy with his …h…d…hangin s… e … w c (guess it is enough 😉 )

Let me know your opinions/ideas through the comments.

Lighter Side

Identity Theft

Image Source: Flickr


The most funny police warrant!! For sending email and using Linux

I usually do not post about news events. But this one here made it irresistible for me to keep from blogging on it.

I got this news from the EFF Blog. A Boston University student’s computer, cell phone and other properties were seized by the police as a part of an investigation to find who send an email to the college mailing list saying that another student is a gay.

hacker1

Though there is no indication of any crime he has committed, the police has issued a very stupid and funny warrant. Some of the supposedly suspicious activities listed include: the student being seen with “unknown laptop computers,” which he says he was given by Boston College for field testing or he was “fixing” them for other students; the student uses multiple names to log on to his computer; and the student uses two different operating systems, including one that is not the “regular BC operating system”(I think BC stands for Boston College. And BC operating system is some customized version of Windows) but instead has “a blackscreen with white font (I cannot stop laughing… they should have sepcified the font  size too..) which he uses prompt commands on.”

During their search, the police seized (among other things) the student’s computers, storage drives, cell phone, iPod Touch, flash drives, digital camera, and Ubuntu Linux CD ( Oh, I never knew u can send email from iPod Touch or Ubundu CD). None of these items have been returned to him.

To strengthen their arguments, the police also says the (computer science major) student is considered a computer genius by other students (Oh my god, they are hunting down geniuses,.. I must be careful 😀 😀 😀 ).

The student who was employed by college IT department was suspended from job. EFF has filed an emergency motion to quash and for the return of seized property on behalf of a Boston College computer science student Riccardo Calixte.

[poll id=”2″]

cya. bye.

Reference: Computer science student challenges tech seizure – CNET News


Retrieve flv videos (and other files) from firefox cache.

Yesterday my friend sent me a link to a video in his site. I saw the video as streaming and I liked it. I just wanted to keep a copy of it in my collection. So as usual I went to keepvid, my favourite YouTube grabber site. But I couldn’t download the video because the site was not supported. Well these grabber sites do not support the majority of the streaming video sites, coz they are so many of them using different encoding  methods. It was then I thought of it – prior to playing the file, firefox (or any other browser) keeps a copy of the video in its local cache. So I googled to see if there is an option to save cached files, and came up with these..

Tool: Go to http://www.nirsoft.net/utils/video_cache_view.html, there you can download ‘Download VideoCacheView’. This tool will allow you to see all flv videos in your cache..Remember again – you can browse only flv videos using this tool. It is a freeware.

Screenshot

Or click here to download the file directly.

Trick: Ok here is a neat trick to save any file from your cache. If you are using firefox, in the address type about:cache and hit enter. The resultant page will display various information about your cache. On that page click on the link List Cache Entries, and you will get a detailed list of all files that are currently in firefox cache. If you want to save any of those files just browse to the cache folder – it is given at the bottom of the first page (about:cache). It looks something like this 'C:\Documents and Settings\copzz\Local Settings\Application Data\Mozilla\Firefox\Profiles\j1l44nro.default\OfflineCache'. Now browse to this folder and copy and save the file you need into another location and change its extention to whatever it is, like .jpg .flv etc.

And you are done. Happy caching.