By default, Safari 5 will open links with a target _blank attribute in a new Safari window. I don’t like this as I prefer to browse in one window. Many of you might have the preference of opening links in a new instead of a new window. To do this, go to Safari > Preferences [...]
Continue reading...19. January 2012
Using special, regular expression characters in regular expressions require you to escape them in the regular expression pattern. I had an issue with dynamically getting an array of URLs from HREF attribute from links using PHP preg_match_all and then wanted to replace this array of URLs dynamically in a loop again with their Bit.ly links [...]
Continue reading...14. January 2012
For some reason, you might be submitting Ajax requests to the same URL for the same purpose and returning the same results but it happens that there are multiple Ajax requests just being redundant. Possibly a user interface where a user is making multiple selections on a page, one after the other and running multiple [...]
Continue reading...5. January 2012
Are you having problems with images not displaying in DomPDF generated PDFs? The probable reason is because you’re linking your images in HTML with a path from the script or with an absolute URL like this: <img src="images/myimage.jpg" /> OR <img src="http://domain.com/images/myimage.jpg" /> The solution is to change the image SRC to the absolute path [...]
Continue reading...5. January 2012
If you are getting a ‘statusCode‘ as “-3001″ and a ‘statusMessage‘ as “Destination Postal Code/State Name/ Country is illegal.” from the Canada Post API, it means that the city/state/country is causing problems. At this stage, you’re obviously getting an XML response so the credentials, port, etc… should be perfectly fine. Ensure that your XML request [...]
Continue reading...29. August 2011
New jQuery delay() method. More information and examples of the jQuery delay() function/method. Here is a quick example: jQuery(‘#mydiv’).attr(‘value’, "Button Text").delay(1500).queue(function() { alert(‘button text was changed’); });
Continue reading...18. July 2011
Are web users able to browse the directories on your website and server and see all the files like folders with images in them and sub-folders?
Continue reading...22. June 2011
You can sell anything online with WordPress and the WordPress Shopping Cart plugin! Whether you are selling tangible/physical products, digital products, affiliate products, services are you are accepting donations through your website, it can be done in a few easy steps. Let’s not waste any time and get into this!
Continue reading...6. February 2011
SVN users and their hashed (encrypted) passwords is stored in a file on your server. The name of the file could be dav_svn.passwd for example. In order to add more SVN users to this file so that they can login to the repositories, you need to execute HTPASSWD command on this file with the username [...]
Continue reading...30. December 2010
Chances are that you are having difficulties with scrobbling music from Windows Media Player to Last.fm. You should check your Windows media player plugins.
Continue reading...22. November 2010
By default, WordPress doesn’t parse WordPress or other 3rd party shortcodes in text widgets. I often see people putting shortcodes into text widgets and wonder why nothing is displayed.
Continue reading...
27. January 2012
0 Comments