Feb 22, 2012 ·
1 minute read
magento
When creating use input forms in Magento it’s important to do as much validation on the client side as possible to make the user experience as smooth as possible. When validating that one of a group of radio buttons is selected all you should need to do is add the class “validate-one-required-by-name” to one or more of your radio buttons. The message “Please select one of the options.” will appear under every radio button that has the class on it if one of them is not selected, so use it strategically.
Feb 22, 2012 ·
1 minute read
link building
Very comprehensive list of link building strategies, some great inspiration for anyone looking to boost their SEO. Mostly common sense though a few interesting ideas you may not gave thought of. http://pointblankseo.com/link-building-strategies
Feb 21, 2012 ·
2 minute read
zend framework
I have recently been working on a Magento project that required a custom API integration with Zen Desk. Magento is based on Zend Framework which is nice because it means we can use the Zend_Rest_Client object to handle the API integration which provides a nice layer of abstraction and sorts out a lot of the heavy lifting required. However I came across a terminal issue trying to get it working properly with HTTP Basic Authentication which the Zen Desk API uses.
Read On →
Feb 15, 2012 ·
1 minute read
android
https://market.android.com/details?id=com.cewan.spotify Nice android Spotify remote that works, with Linux Download the server component then extract. Then open folder in terminal and run install. Finally run the SpotifyController script and you are away
Feb 15, 2012 ·
1 minute read
magento
If you have a controller action that is designed to be accessed by AJAX requests or perhaps as part of a custom API system then you might like this snippet. If you are working with the above scenario you likely would like to return pure JSON without any HTML etc. Also serving up the correct content type headers is going to be helpful, its not HTML, its JSON. public function
Read On →
Feb 14, 2012 ·
1 minute read
php
What can be true and false at the same time? $a = "a"; $b = 0; if($a == true && $b == false && $a == $b) { echo "Passed"; } This is because PHP tries to convert “a” to a numeric, as there is no numeric value it gets changed to zero. So 0 == 0 is true. At the same time the string “a” converted to boolean evaluates to true.
Read On →