Feb 13, 2013 ·
2 minute read
magento
Sometimes Magento will some times return no results with the message “Your search returns no results” for terms that you would expect it to return many results for. This can happen for a number of reasons including misconfiguration of search or attributes. Unfortunately the way Magento speeds up search queries suffers from a race condition that can lead Magento to think it has cached a query when it has not and at the same time believes there are no products for that search because the cache for that query was dropped.
Read On →
Feb 12, 2013 ·
1 minute read
mysql
I have recently been running some MySql scripts that wrote to a file. These worked fine locally, but as soon as I deployed them I started to get the error above. After much looking around I came across this solution. When I was developing locally, I was connecting with a user that had global privileges. When I was running the code on the server I was connecting with a user that only had privileges for the database I was using.
Read On →
Feb 8, 2013 ·
1 minute read
programming
JSON is a well structure interoperable way of passing data between systems. It’s a good way of passing large amount of data into a web page for JavaScript to process and between system on the internet regardless of there architecture or programming language. JSON is one of the hardest data structure to read directly as a human in it’s RAW format compared to other formal grammars such as XML, YAML or ini.
Read On →
Feb 1, 2013 ·
1 minute read
magento
Users of Opera might find that mousing down menus makes them disappear from underneath the cursor, making for a very frustrating experience. From searching round the internet I understand the problem to be around the onmousevent on the li elements. So instead of using these events to show and hide menus we can just use CSS (as it should be) to show and hide the menus. Methods to add the CSS include a custom user stylesheet (Right-click > Edit Site Preferences > Display tab), or the Stylish extension.
Read On →
Feb 1, 2013 ·
2 minute read
security
Sending confidential information across the Internet is always risky as you never really know who or what may intentionally or accidentally look at a copy of your communication at some points. Various tactics can be used to reduce the risk when sending confidential information. The current approach accepted by most people is the use of PGP or GPG. PGP and GPG are commercial and open source (respectively) implementations of asymmetric encryption system specifically designed to work with visible text communication.
Read On →
Jan 24, 2013 ·
3 minute read
git
Using sub modules in git is incredibly useful and allows for easier and more flexible working when working on component based large projects. In a nut shell the use of sub modules (as the name suggests) allows you to include a git repository as a part of another git repository in order to allow you to use the sub modules code without having to duplicate it’s content in to your repository.
Read On →