Monthly Archives: October 2015

Remove unwanted spaces from text

Source: http://textmechanic.com/Remove-Extra-Spaces.html http://www.textfixer.com/html/compress-html-compression.php Very useful!

Posted in HTML | Tagged | Comments Off on Remove unwanted spaces from text

Database: MySQL Split value from one field to two

Source: http://stackoverflow.com/questions/2696884/split-value-from-one-field-to-two Unfortunately MySQL does not feature a split string function. However you can create a user defined function for this, such as the one described in the following article: MySQL Split String Function by Federico Cargnelutti With that function, … Continue reading

Posted in database | Tagged | Comments Off on Database: MySQL Split value from one field to two

Prestashop: Additional field in product attributes

Added an additional field for product attributes Files updated and added to override folder override/classes Attribute.php line 36    public $barcode; line 50            ‘barcode’ =>             array(‘type’ => self::TYPE_STRING, ‘validate’ => ‘isAnything’, ‘size’ => 3), … Continue reading

Posted in database, ecommerce | Tagged | Comments Off on Prestashop: Additional field in product attributes

HTML/CSS: Styling form buttons

source: http://jsfiddle.net/2RYyD/ Great example there but if you’re styling the button which is a form submit button, remember to change the button type to “submit” instead or the variables won’t get posted. <div class=”button”> <input type=”button” value=”TELL ME MORE” onClick=”document.location.reload(true)”> … Continue reading

Posted in CSS | Tagged , | Comments Off on HTML/CSS: Styling form buttons

Translation: music genre (english, chinese)

source: http://www.douban.com/note/494973282/ Abstract Hip Hop 抽象嘻哈 Acid Rock 酸性摇滚 Acoustic Blues 原声蓝调 Acoustic Rock 原声摇滚 Afrobeat 非洲节奏 Alternative Dance 另类舞曲 Alternative Metal 另类金属 Alternative Rock 另类摇滚 Ambient 氛围音乐 Ambient Pop 氛围流行 Ambient Techno 氛围科技舞曲 Americana 美式乡村 Anarcho-Punk 无政府朋克 Art Pop … Continue reading

Posted in Translation | Tagged , | Comments Off on Translation: music genre (english, chinese)