“Small minds try to form religions, the great ones just want better routes up the mountain.”
-Alan Kay

The above quote is from Alan Kay’s HOPL II paper – The early history of Smalltalk. Wonderful quote from a brilliant man. Genius like Kay I’m surely not, still, we can all contribute, however small, to build a better route, even forge new ones. This blog is my small contribution; jostling for space along with the other millions like me around the digital landscape. It’s a digital habitat for me to post articles, tutorials, and comments on subjects that I find interesting and useful, and hopefully to other web professionals. The ideas are about software in general and php/mysql in particular.


I currently work as a freelance back-end developer, primarily in PHP/MySQL. I also provide integration services for various opensource applications, web scrapping projects, and I’m available for consulting if you have any requirements. You can view my consulting rates here.

Tools I use

IDE/Editors: ActiveState Komodo, Notepad++
Version Control: Subversion, TortoiseSVN
Database: phpMyAdmin, MySQL Workbench
Testing: PHPUnit, Selenium

RSS Feeds

If you are interested in keeping up with the contents of this site you can subscribe to Codediesels RSS feed.


Regarding any comments or suggestions you may have for this site or any of the sites content, or you have any questions you want to ask me; please contact me at metapix [at] gmail.com. Please do not send emails to request help in debugging code. I get a large number of emails and it is difficult to attend to them all.

26 Responses



July 16th, 2009 at 3:16 pm

Hello Sameer,

What is your cost structure(Hourly,Project) ? I am located in the US and need a couple of sited built.



August 18th, 2009 at 7:49 pm


I like the theme/template of your blog. Do you mind to share it with us? Thank you.


August 18th, 2009 at 8:41 pm

The theme is ‘Composito’, provided free by the wonderful people from designDisease.



Web Scripting » QR-Code – Two-dimensional Bar Code

October 8th, 2009 at 7:40 pm

[…] read this at the website of Sameer Borate, who is a developer and […]



February 15th, 2010 at 10:46 pm

hi sammer,

i am new in selenium , i have completed the installed the selinun as per ur instraction, thus i want to know how to use data driven testing in selenium PHP code.
means login checking with multiple user name & password,
for invalid user name & password

please if u have some useful command related to fetch data from combo box or list box , also how to use random number random string

please help me as soon as possible


Rajeev Tripathi

February 21st, 2010 at 9:59 am

Sorry for too late.
Thanx a lot. I visited your BLOG site and feeling happy to see your experience, knowledge and wisdom. You are a great talented Indian guy.

You can’t think that but I was search for this script on select menus from a month. But even on Google there is no such good tutorial site linked who really explain the simple job. I sending you another script which I found interesting but it does a great work in coding and on Result end it complete its task but checking out the source code it fails to print selected=”selected”/SELECTED in option tags which are really select by user.

Its my request to you as a friend that Please seo of your site more on this topic and linked this tutorial example in Google on for SELECT MENU DATA PERSISTENCE and/or some others keywords.

I think it is helpful and very important tutorial and maximum number of websites I don’t know why but skips to explain data persistence in SELECT MENUS during teaching “PHP Form Data Persistence”.


Christian Ander

February 24th, 2010 at 10:51 am


i’m looking for someone to work with, am using wordpress and want to develop my skills together with someone. Are you intreressted in some kind of coworking?

I live in Sweden by the way and was in Pune a couple of years ago.

best wishes,



June 5th, 2010 at 5:04 am

Hi, Nice work…
I visit Pune Often maybe grat to read this



September 28th, 2011 at 8:39 pm

Amazon Product API is requiring AssociateTag now or very soon. How does this affect your Amazon Product API example. I use a modified version of your code. Ultimately everything goes to aws_signed_request which is where the public and private key are added. Is this no long sufficient? I think adding the AssociateTag there would be the simplest change but I wonder if I have to pass teh AssociateTag in as part of $parameters every time…

Gotta look at it more, but I thought since it was your original design you might have some thoughts too.



October 4th, 2011 at 7:37 am

Hi Sameer,

I’m a beginner QA, I need to learn and fully understand Selenium. I’m working on Linux operating system.

I read the documentation to Selenium but still need help, please advice me what to do.



October 4th, 2011 at 12:29 pm

Here is the simplest fix I came up with:

* Query Amazon with the issued parameters
* @param array $parameters parameters to query around
* @return simpleXmlObject xml query response
private function queryAmazon($parameters)
$parameters[“AssociateTag”] = myInfo::MY_AMAZON_ASSOCIATE_ID;

return aws_signed_request(“com”, $parameters, $this->public_key, $this->private_key);



November 3rd, 2011 at 7:25 am

Thanks for your post about Link List! very useful!!

Here some add-ons:

// por Pablo
public function rewind(){
$this->lastNode = $this->firstNode;

// por Pablo
public function current(){
return $this->lastNode->data;

// por Pablo
public function next(){
$out = $this->lastNode->data;
$this->lastNode = $this->lastNode->next;
return $out;



November 3rd, 2011 at 10:02 pm

Hi Sameer,

Keep up the Good work…

Its very helpfull for the beginners.

Best Regards,



November 9th, 2011 at 11:42 pm

So fan of your article.
Its very helpfull for the beginners.

Just a litle note about your article “Accessing Amazon Product Advertising API”, there is a wrong space before ‘&’ in the final request building which included signature.
/* create request */
$request = “http://”.$host.$uri.”?”.$canonicalized_query.”

=> it creates problem for usage



November 16th, 2011 at 12:05 pm

I would like to thank you for updating your Amazon API Class for the new associate_tag
Now everything works fine again



November 20th, 2011 at 10:53 am


This is related to your post on Mir Books.
Check out my attempt to redeem them:





March 19th, 2012 at 3:45 am

In regards to your post “Transferring large PSD files quickly using Diff-Patch” –
You can use dropbox to share files with your customers. Dropbox keeps synchronizing only the diffs.



September 16th, 2012 at 10:42 pm

grt stuffs…keep it up!!


Tony C

October 10th, 2012 at 8:15 am

I hired Sameer for a web scraping project after viewing his tutorial. It was an awesome experience. The code is well organized and commented for me to learn from. The turn-around time was very fast and he gave me extra tips on usage on a skype session. This was my first experience hiring a programmer and I was a little nervous sending payment and that type of thing but hey, I’m a noob.

I’m ready for more powerful scripts from you Sameer, thanks!



November 29th, 2012 at 10:22 pm

Hi Alan Kay,

I’m a huge fan of your blog. I know you typically write about programmes but thought I’d see if you’d consider posting about an organization I’m currently working with, More Than Me, that works to lift girls off the street and into school in Liberia, West Africa.

Over 1,000 blogs are posting on November 29 for one of their girls.

More Than Me, an education and girls’ empowerment non-profit is gaining notoriety through its guerrilla-style marketing, inspiring hundreds of people to write “I am Abigail” on their foreheads and post the photos on Facebook.

This really begs the question, “Who the heck is Abigail?”

Abigail was an orphan in West Point, Liberia. You may have read her in a previous article here on the Huffington Post. At six, she was left with prostitutes. She learned to work the streets in order to get access to drinking water and food. Education was not an option.

Then Abigail met Katie Meyler, the founder of More Than Me, an organization dedicated to getting girls off the streets and into schools. Katie and Abigail became fast friends, and More Than Me has raised the money to put Abigail through school. She is learning to bake, and aspires to one day be a Senator, so she can, in turn, help other girls like her.

So, why are all these people also “Abigail”?

Abigail could be you. Abigail could be your sister, your niece, your student, or your neighbor. Remember, we live in a global community; there is no “me” without “we”, Abigail is because you are, and you are because Abigail is.

Join the community. When you’ve done that, help the community grow by spreading our story. And most of all, get inspired by checking out http://www.voteabigail.org.

Thank you
Mini Verma



December 14th, 2012 at 4:35 am

Hi I need a bit of help here,I have set up a wordpress affiliate site with amazon and I am having problems with the products connecting to amazon,I can load them onto my website but the image is blank and it gives a message:Product Details:blank and message unable to connect to amazon.Anyone else out there have this problem as well and have you got any solutions.

Awaiting feedback and thanks in advance.


Creating an album cover gallery – Muskblog

January 18th, 2013 at 4:28 pm

[…] name is Sameer Borate and he seems to get Object Oriented Development, PHP, and writing sensible, reuse-able (by others) […]


Where is Area Code 662

February 14th, 2013 at 12:07 am

I really like what you guys are usually up too. This sort
of clever work and reporting! Keep up the amazing works guys I’ve included you guys to our blogroll.



May 13th, 2014 at 11:37 am

Have you tried using PhpStorm? I’ve never used Komodo, but PhpStorm has blown me away since I started using it. I could never go back to anything else now!


make money fast gta 5 online

February 23rd, 2015 at 6:17 am

Hey there would you mind letting me know which hosting company you’re using?

I’ve loaded your blog in 3 different browsers and I must say this
blog loads a lot faster then most. Can you suggest a good
internet hosting provider at a fair price? Cheers, I appreciate it!


premium wordpress theme

March 10th, 2015 at 1:03 pm

Great information. Lucky me I came across your website by chance (stumbleupon).
I have bookmarked it for later!

Your thoughts