This chestnut can drive developer crazy. In Google Chrome hitting “save as” or “view source” will reload the page. On pages where sessions or cookies are cleared (shop checkouts for example), form data is submitted, or the like, then the reloaded source may no-longer be the same as the page you were just looking at. Argh. Here is my solution to the issue. Continue reading Saving the page HTML in Chrome without reloading
So, you have a service running on server startup that you need to stop running. Here is how I stop a service from running on startup on Centos (Red Hat) using chkconfig. Continue reading Centos: remove service from running at server startup
As a web developer I use Chrome a lot. The dev tools are good and, in general, it is a good browser. Sometimes, though, I find some odd behaviour like the browser has cached some DNS settings that I have since changed, or I want to switch the experimental features on or off for some testing. Here is how you get to access those settings and then the page to see all the available option/settings URLs.
Ok, for reasons of general simplicity and familiarity I like to develop my php applications in a Windows environment using WAMP. However, this can be problematic when needing to apply SUPEE patches to development instances of Magento projects.
Ok, so your webserver has crashed. You reboot it and…and…nothing. No website. Your apache / httpd and mysqld services have not restarted along with the server. Here is how to check if they should and make them do so if they aren’t.
The MySQL error “28 from storage engine” basically means “not enough disk space”.
Short and sweet.
Just a quick one this. When exporting columns of text for .csv files you will probably want to have the text blocks encased in double quotes. To do this in excel, before saving as .csv, simply
- highlight the cells you want to quote-up
- right-click on them and choose “format cells”
- choose custom from the “Category” list (under the number tab)
- in the “Type” box type the following: \”@\”
- hit ok
The backslash is the escape character used to say “use the symbol that comes next” and the @ can be considered to be the wildcard or placeholder for the current contents.
Saves having to use your code/text editor to add in all the quotes.
So you have got your site all nicely working with your ssl certificate ready for your site to run fully in https:// to appease Google but your padlock never stays green. I traced this down to the various form submission URLs such as “add to cart”. Here is how I finally solved it.
When your Magento installation has multiple sites set up within it, you will probably want to change which site shows based on domain or subdomain URL. You can do this via .htaccess or your httpd virtual hosts config. Continue reading Set Magento website based on URL
You can add a couple of tags to your page html to instruct Google to not index certain parts of your content or to not use certain bits of your content for the snippets shown in the SERPs.