Skip to main content

New Programming Tip Section

New Programming Tip Section

You would have seen a new series of posts in this category and the posts being tagged as 'programming tips'. We are glad to introduce this new section to share with everyone about valuable programming tips and best programming practices that we come across in every day life.

The following are the reasons of launch of this label (category):

  1. For beginners/starting programmers, this would be a very useful guidance in ensuring that their programming styles are corrected at tender age and they are trained to write rock-solid code.
  2. We learn a lot of programming tips everyday from various sources and from our experiences too. We can not just keep remembering everything. This would serve as a record.
  3. Each one learns programming tips differently. One candle lights another to make the entire atmosphere still brighter. This would be a great way of learning and sharing the knowledge with one another.
  4. The inspiration of this section was the Tamil Sindhu Bhairavi. In Sindhu Bhairavi, the singer JKB used to tell like this "I am getting irritated by people who can not understand and appreciate the greatness of music. Now with your (Sindhu) sayings, I realise that they are not at fault. They are to be sympathised for their inability to understand and appreciate because of language in which the musical songs are there. It is our (singers) responsibility to ensure that message in music reaches the masses in their language".  I think this message applies to our programming too. It is our responsibility to ensure that next generation and peer developers are guided properly to best programming practices and to harness the benefits of the programming frameworks for world class products in business solutions for everyone.

Comments

Popular posts from this blog

Google NCR

Google NCRMost of you would be knowing about this trick in navigating to Google generic website. But I just came to know only a few days before and hence thought I would share the information with others too.
Whenever you type http://www.google.com/, Google automatically tries to redirect you to your country-specific website. For me, it always redirects to http://www.google.co.in/ (Google India). But when we specifically want to navigate to Google Generic website for some reason, there are two ways to accomplish the same.Click the 'Go to Google.com' link at the bottom of the webpage that is displayed from http://www.google.co.in/To prevent this redundant click, you can opt to type http://www.google.com/ncr/ which would prevent the redirect from happening. The NCR stands for No Country Redirect. There is a brief discussion about this NCR over this forum.You may also like to check out Google help documentation regarding the country redirections from here.

Elegant 'MailTo' Replacement

Elegant 'MailTo' Replacement

MailTo tags have become a bane to all websites since spammers run spam robots which crawl the web to capture the email addresses, add to their catalogs and send spams to them. I just thought of sharing with others a simple JavaScript function which would trigger open the default email client instead of having mailto: embedded in the HTML Page.

Just have the following function included in your webpage

<script language='Javascript'>
function WriteMailTo(user,domain)
{
location.replace ('mailto:'+user+'@'+domain);
}
</script>

And whereever you want to invoke the mailto, just called WriteMailTo('user','example.com') and the user's default email client should be launching (if configured) without any hassles.

Contacts import utility from Web2Project to Addressbook

I have been using Web2Project for planning my personal and professional tasks for a few years now. Now I have bifurcated the tools into the following:

Project PierAddress Book The only issue I had was to import my addressbook from Web2Project to AB. PP is a different animal. It does not serve as a comprehensive candidate for addressbook and hence I needed this bifurcation. 
I wrote up a following simple script to import the contacts to AB. The pre-requisite for this script is to hop on to PhpMyAdmin, export the contacts as a PHP array and then  modify the path in our import script to whatever you downloaded from PhpMyAdmin.
Our import script would explode the entries as SQL scripts into the browser window. Copy them and execute into PhpMyAdmin AB database to have the contacts imported.

Script URL: https://gist.github.com/lavanyadeepak/5177500#file-import-php