Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
And a now, word on the log.php maintenance script that comes with Magento 1.4 which has one major shortcoming.
It doesn’t maintain your dataflow_batch_* tables, said tables have been seen hiding in the wild at over a Gigabyte in size.
php -f...
0
745
posted 13 years ago by TheJasonParker
This fixes the way Magento imports data as it just keeps adding ‘straight join’ to the array which uses a lot of memory if your importing a lot of products and will kill the import.
Replace this function in /lib/Varien/Db/Select.php
This h...
0
684
posted 13 years ago by TheJasonParker
WP Functions
Step 1: Upload the logo you want into the theme images folder
Step 2: Add the following code to your theme functions.php file
3
840
posted 13 years ago by silentpro
Useful for when you want to move all mp3 files in sub directories into the current dir
0
685
posted 13 years ago by studioevoque
Useful for syncing only MP3 or PDF files which are nested in a deep directory tree
0
1260
posted 13 years ago by studioevoque
Uploading multiple files at once used to be strictly in the realm of flash or required javascript to crate multiple upload forms as needed. The first method has the problems with the general incompatibility of flash. The second, well, it's a very low...
0
1138
posted 13 years ago by FatFolderDesigner
This function will interpolate the points on a line. When tracking mouse movements, not every point is captured. This is especially true the faster the mouse moves. This function will allow you to fill in the gap of points between two recorded pos...
0
1582
posted 13 years ago by parkerkrhoyt
1. You'll need the perl-based rename script http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal
2. I'm using Terminal on mac so you might need to change some of your flags
0
930
posted 13 years ago by timberjorge