It’s important to know base Magento directory structure to customize Magento installation or development Magento extensions.
Great ruby on rails tutorial video on youtube
I’ve just met tutorial on youtube by Andrew Perkins.
If you just started to learn ruby-on-rails this video would be great for your entry point:
Continue reading
PHP Survey Script
Hi folks,
I’m back and glad to present you script written on PHP for survey. I posted it on github. I appreciate if you will add issues, comments on Github and also fill free to make pull requests.
I’m going to make doc page for the script as well.
UPDATE 03 Dec 2012: I added basic info about the script on github’s readme
To make container wrap elements with “float: left” (CSS)
Hey! How are you guys (girls?)?
I want to tell you a bit about ways to make container that can wrap included elements. Huh, you’ve already read about it in title? (:
I’m talking about next simple example:
<div style="background: red; padding: 5px;"> <div style="background: green; float: left; padding: 5px;">First</div> <div style="background: yellow; float: left; padding: 5px;">Second</div> </div>
Deleting redirect from google search pages
Hi to all,
you can find my new script for deleting redirects in google search pages here – http://userscripts.org/scripts/show/90395
Changing all links styles on webpages
Hello,
I’ve added the simplest script to userscripts.org that can change all styles of links on pages. Take a look – maybe you’ll like it.
Script for opennig all google results’ pages in same tab or in new one
fgetcsv() is more slow than file_get_content()/explode()
Hi guys, and girls for sure;)
I tried to parse huge csv file a little before and found interesting thing: Continue reading
Get timestamp in javascript
Sometimes you need operate timestamp, so there is how you can get it:
Date.prototype.getTimestamp = function() { return parseInt((this.getTime()-Date.UTC(1970,0,1))/1000); }
after this you are able to use this method:
var d = new Date(); alert(d.getTimestamp());
and that’s it, cheers.
Update:
There is another way to get timestamp if you use jQuery:
alert($.now());
You can find detailed info about this method here.
PHP: be careful with exit()/die()
These functions show messages passed as param, but(!) if this param is number then php interpreter thinks that param is error code and doesn’t show it. So be careful again – convert param to string before you pass something to these functions.