Blog

  • 11 Best Web Developer tools for Firefox and Internet Explorer

    Here are 11 web developer tools & add-ons that i personally use and find them very useful. These are the tools that i need whenever i am doing any web application development, In their absence i feel i have become a handless person.

    This list is in priority order of my usage or in other words, their importance to my work.

    1. Firebug
    2. Measure It
    3. ColorZilla
    4. Web developer Tool bar
    5. Del.icio.us Bookmarks
    6. YSlow
    7. Screengrab & FireShot
    8. IE Developer Tool bar
    9. Delicious Button for Internet Explorer
    10. DebugBar
    11. Nikhil’s Web development Helper

    (more…)

  • How to stop regedit, taskmanager or msconfig from closing automatically

    Since i published my “How to remove new folder exe or regsvr exe or autorun inf virus” article many readers have asked me about how to prevent regedit, taskmanger, msconfig etc from closing withing second of it’s opening.

    Now i have to say as i have yet to face this issue personally myself, i am not really able to suggest anything but to recommend people to do a boot time scan from avast, and hope that fixes their problem.

    But after receiving a repeated request to fix this issue, i decided to write about the approach that i would take if i face this problem and to collaborate with you to solve your problem and in the process create a workable solution to fix this problem, once and for all.

    Symptoms of the problem that we are tying to solve,

    1. you open regedit, the regedit window flickers and closes again,
    2. you open taskmanager, window opens and immediately closes.
    3. you try to open msconfig, window closes the moment it opens.

    (more…)

  • Pangea Day : Wish To Reality

    Jehane Noujaim, wanted to use films and photographs to create a powerful emotions in the heart of people watching them, and entice them to do something together to achieve world peace.

    So in Nov 2006, on TED platform she wished for a day in which the world will come together through films, she named it Pangea day. She was granted $100,000 TED Prize to fulfill her wish.
    She called it Pangea because, Pangea means entire earth in ancient Greek, was super continent that existed before it was split into current continents .

    I wish to bring the world together for one day a year through the power of film.

    Her acceptance speech at TED
    [utube]QCFSrb6B5nw[/utube]

    On Saturday, May 10 her wish will become a reality. On this day live events in Cairo, Kigali, London, Los Angeles, Mumbai, and Rio de Janeiro will be converted into a 4 hour program that will be broadcast live to millions of people worldwide via internet, television and mobile phones.

    Starting at 18:00 GMT(23:30 IST), the event will be broadcasted with subtitles in Arabic, English, French, German, Hindi, Portuguese and Spanish.

    During the four hours we will see 24 short films(out of 2500 submissions) , Queen Noor of Jordan, Christiane Amanpour of CNN, Bob Geldof an musician and Hypernova an Iranian rock band.

    Pangea Day will be broadcasted by following Broadcasters

    • Canal +/Planete – France
    • City TV – Colombia
    • Current TV – USA
    • DigiTurk – Turkey
    • Globosat – Brazil
    • KW Networks – Mexico
    • Mediacorp – Singapore
    • Metro TV – Indonesia
    • MGM Networks Latin America – Latin America
    • TVNZ – New Zealand
    • OnceTV – Mexico
    • Rwanda TV – Rwanda
    • Sky Indie – UK
    • Star TV – 60 countries in Asia
    • Tanzania Broadcasting Corporation – Tanzania
    • TVR Televiziunea Româna – Romania
    • V-Me TV – US Hispanic

    Pangea Day will be broadcast live from:

    • The Pyramids, Cairo, Egypt
    • Jali Gardens, Kigali, Rwanda
    • Somerset House, London, United Kingdom
    • Sony Pictures Studios, Los Angeles, USA
    • National Center for Performing Arts, Mumbai, India
    • Morro da Urca, Rio de Janeiro, Brazil

    Note: you can email pangeadaytickets@gmail.com to get the a free ticket to one of these locations.

    After Pangea Day, organizers of pangea day will connect inspired people to other inspired activists and organizations, so that they can work together to solve the challenges that we face. A Pangea Day documentary will also be created to catalyze future activities.
    I just wanted to end this post with,

    Movies can’t change the world. But the people who watch them can.

    In other words, we can change the world around us, and Pangea day is one such event, from one such person’s dream.

    Let’s Do Something.

  • Pangea Day, Saturday May 10

    I am reproducing the Newsletter that i received from TED regarding Pangea Day. This is my way of letting people know about it.

    Dear Friends of TED,

    Wherever you will be on Saturday May 10, Pangea Day, you are warmly invited to join me and countless others around the world for a powerful, first-of-its kind experience.

    Gathered in homes, movie theaters and larger venues, we will participate in a remarkable program of films and talks — a kind of super-charged, marathon TED session — celebrating our common humanity. If you think of yourself as something of a global soul, it could be one of the year’s highlights. And in fact you could play an invaluable role in helping it realize its full potential…

    If you don’t have time to read this now, please just calendar Pangea Day for Saturday, May 10th (11am-3pm US West Coast, 2-6pm US East Coast, 7-11pm in UK, 8pm-midnight in Europe and much of Africa, 9pm-1am in the Mideast, 11.30pm-3.30am India, etc.).

    On that day, we invite you to gather around a screen with your family, friends and neighbors, preferably from more than one country. Pangea Day will be available on TV in many areas of the world. In the US, the full four-hour program is being carried live on Current TV, available in 40m homes on cable, DirecTV and Dish Network. Current TV pioneered the vision of citizen-empowered media, and we’re delighted to be partnering with them. We have similar agreements with the massive satellite network Star TV in China/India/Asia, with MGM in Latin America, with Sky in the UK, several partners in the Mid-East, not to mention Indonesia, Mexico, New Zealand and many more. Full details will be posted on our website next week.

    And thanks to partnerships with Akamai and MSN, we will also be available on a live, full-screen web-stream everywhere with a broadband Internet connection.

    The best way to watch Pangea Day is not just as a normal TV show or web-stream. It should be watched as a community event. We want the sense of the great global village gathering around a campfire. We already know of more than a thousand self-organized screenings taking place in homes, clubs, and movie theaters. We expect thousands more come May 10.

    As many of you know, the day is the result of the combined efforts of countless TED supporters around the world, inspired by the TED Prize wish of film-maker Jehane Noujaim. She dreamed of a day when people around the world could share the the same film experience at the same time. The idea has grown into a giant global project… thanks to you. To get a sense of the scale of ambition, please take a minute to watch this beautiful trailer.

    (more…)

  • flickr Uploadr open sourced

    Flickr has opened their image uploader and it’s source code is open for all to see.

    check out : http://code.flickr.com/blog/2008/04/16/flickr-uploadr-start-to-finish-now/  by rcrowley

    also do not forget to explore Code Flickr  website itself

    great isn’t it?

  • akModal: simplest alternative to thickbox

    For those in hurry, download the plugin from jquery plugin page [download#11#nohits]

    It is a modal pop up box. It can be used to display any url as popup box.

    It’s simplicity lies in the fact that, we can use it to display forms etc, and then submit the forms, something like I used it for thesoko login box.

    Here is an screenshot of akModal in action.

    akModal: simplest alternative to thickbox

    I had created this when I didn’t know enough javascript to use AJAX etc, for submitting a form. I also didn’t want to write very complex javascript for something that can be easily handled using a simple iframe.

    Anatomy of akModal Box

    Anatomy of akModal

    Features
    • Easy to create popup box
    • No AJAX required for submitting forms

    Dependencies
    DimScreen plugin(for blacking the background)
    Dimensions plugin(for center alignment)
    • Interface plugin (for puff effect)

    How to create it
    This is the simplest process of all; you need to include all the dependencies along with akmodal.js file. Then just call
    $.showAkModal(navurl,title,box_width,box_height) function onclick event.

    navurl: it is the url to show in the popup box.
    title: is the title to show for pop up box.
    box_width & box_height: it is width and height of the pop up box that you want to show.

    For example,

    <a href='test.htm' id='ak_sign_in' onclick="$.showAkModal(this.href,'Sign In',230,170);return false;"> sign in</a>

    (more…)

  • Simplified AJAX For WordPress Plugin Developers using Jquery

    I am assuming you know how to write a WordPress plugin, and now you are wondering how to use ajax to add that sexy feature that will make your plugin look a bit kool.

    I faced the same problem, with my akWpUploder plugin. I googled but could not find anything interesting, or should I say, simple way of adding ajax to my plugin. So I dig into the WordPress code base for solution, as auto-saving feature of WordPress was one such thing that I wanted to use.

    There I found what I was really looking for, a very simple way of using Ajax to get things done.

    Problem: How to use WordPress functions in your plugin when using ajax

    Are you satisfied with your knowledge? No, then spent 15 minutes every day on PHPCamp a knowledge-sharing website for our own PHP community

    Let me explain the problem first, while I was working on my plugin I needed to insert the photo data into the database. To do this I needed to use WordPress database functions, but the way I knew to use ajax(i.e. creating a separate PHP file that handles the ajax request), it was bit difficult and messy. It would have involved either making a direct connection with the database or including the WordPress config file.

    I was not happy with either of these options, I needed a simpler solution.

    (more…)

  • Drupal Form API : An Introduction

    Update : this article is only relevant to Drupal 5.x, with coming of Drupal 7 this is completely out dated.

    I am guessing you must have created lot’s of html forms before, now you have started using Drupal and wondering how to create forms in Drupal and process them. If this is so then read on….

    What is Drupal Form API?

    Drupal form api, is nothing but a set of functions(off-course, that’s what api means) provided by Drupal as part of core functionality, since version 4.7, for us Drupal developers to create, validate and process our html forms, in a secure manner. When i say secure, i mean that you form data is almost free from injection attacks, but you do need to validate this data as per your own application requirements.

    It essentially means we will be creating arrays with relevant data and Drupal’s form generation engine will generate the html form for us.

    Ok, so what?

    I can create my own forms using html, why should i care about Drupal’s form api?

    Simple, if you want to extend the forms provided by other Drupal modules or Drupal itself(which you will have too, most of the time), with out actually modifying their code, then use Drupal’s form api.

    See if we want to use the benefits of modularity Drupal provides we should be able to modify the forms created by others to suit our needs.

    Well you must be wondering, this can be done by editing the code provided by the module. Sure you can do that, but in the process you loose the ability to upgrade that module when a new version comes along, because upgrading means porting all those changes again, now you are stuck.

    On the other hand if you have your own module, using form api, then all you need to it is just modify in you source files, while you can simple upgrade the module without worrying about loosing your changes.

    This also means you can split you form in many usable components and the piece them together for end user. This will give you reusability benefits that we programmers strive for.

    Not yet convinced…

    Let me see what i can do about that.. Ok let’s try this line of thought, when you used to create html forms of similar types, one after other from one project to other did you ever thought their should be a form generator, where you specify the parameter and it automatically generates the form for you. If yes then, consider your wish granted as Drupal’s Form API is one such thing that makes form creation an easy task.

    Ok, now i am assuming that you understood the importance of form api, then next thing to do is to understand how Drupal process the forms. When you understand the flow, you can control it. So let’s get on to it.

    Drupal Form process flow

    Drupal Form Api

    (more…)

  • ADS: Automatic Deployment Script

    Automatic Deployment

    Note for lazy people : download ADS from Source forge now.

     

    Description

    Automatic Deployment Script is a tool to help web developers who use SVN for version control. It automatically updates the demo server with changes as soon as they commit changes to repository.

    It makes our life easier as web developer, when we have to give demo to clients frequently, and more then one person working on project, it is very hard to keep track of all the changes. To solve these, ADS employs svn hook’s to execute itself when an commit is detected by svn repository. It also sends emails to developers and testers when it successfully uploads files to server.

    Even if it fails to upload the files for some reason, we still have a place where all the files that has been changed are exported so one can easily upload the files manually.

    After successful upload

    Features

    • Exports only those files that has been changed during a commit.
    • FTP the file to demo server.
    • sends emails to developers and testers, or anyone you wish to.
    • it sends list of files that has been exported as attachment.
    • it sends two mails, one before deployment and other after deployment.
    • it keeps a detailed log of all the activity it does.
    • Easy to backtrack the steps.
    • Exports changes in only those repository which are set for use with ADS.

    (more…)

  • akWpUploader: Alternative WordPress Image Uploader

    For those in hurry, download the latest version of [download#2#nohits] from wordpress plugin page.

    UPDATE (25 August 2009): I have released the version 1.1.0 and made it comaptible with WordPress 2.8.

    UPDATE: I have released 0.7.1 of this plugin, with this i consider it to be good enough for general uses, Please help me test it so that we can together release version 1.0 of this plugin soon.

    I was fed up with the wordpress image uploader’s inability to properly resize the images. I was posting pictures of Rangpanchami in my office blog but image would just not resize properly.

    So i decided to create this akWpUploader: alternative image uploader for wordpress which uses Flickr.com’s web services to attach images on the blog post. Initially i wanted to use rss feed that Flickr provides, but found it very restrictive so i went ahead to use flickr Api, which has been simplified by Dan Coulter who wrote easy to use phpFlickr wrapper class. This plugin is not meant to replace the original uploader but to complement it by providing additional missing functionalities. Their was a need for some such plugin as is evident from following wordpress feature enhancement request Idea:Image Handling.

    How it works?

    All you need to do is type your Flickr user id and it will fetch all the photographs that you have published on the Flickr, you click on the image that you want to insert into the editor, select the option for image size to include in the editor. It will take the title, description form Flickr and attach image from Flickr in the editor. Simple isn’t ? 😉
    akWpUploader

    I have cheated here 😉 Cheating, No More 🙂

    Update : their is one more additional step involved now, you first select type the username, akWpuploader will fetch the tags and photo sets that you have created, once you select the option you can get the images from the Flickr.

    How to install

    This is very simple task, just upload the “akwpuploader-alternative-wordpress-image-uploader” folder to “wp-content/plugins/” folder, care must be taken to ensure that folder name is kept as it is.

    Then go to plugins section of the website and activate the plugin and you are done.

    This plugin shows itself when you create new post, just below the editor in wordpress 2.3 and below, It shows itself between Advanced options and categories in wordpress 2.5.

    Limitations

    As it is a Beta release it may have bugs, it still lacks some features and it may crash.

    To Do

    1. To choose the size that we want to display in blog instead of just small thumbnail that is currently being used
    2. Similar to wordpress uploader, ability to choose whether to link or not, and also to take user to wordpress blog page or directly to image.
    3. Ability to select image sets from Flickr.
    4. Ability to select images based on tags.
    5. Pagination.
    6. Ability to clear the images from the selection
    7. Ability to specify your own details like title and description for a photo instead of using the one on Flickr.
    8. Ability to Upload the images to Flickr itself.

    If you have any ideas that you want to see with this plugin please let me know.

    Fixed : Just released a new version to fix the issues mentioned by matthew and kimharding in comments please help me test it further so that i can release a stable version soon.

    Fixed : With release of 0.7.1, i have fixed the issue mentioned by kimchi39 in comments.

    Update(5th July 2008) : Released 1.0.0 a stable version after lot’s of testing.

    Update (25 August 2009): I have released the version 1.1.0 and made it comaptible with WordPress 2.8.