Real WordPress Cron Jobs

WP cron is one of the greatest features of WordPress. However, it’s irritating when your site is low traffic, or for whatever reason, wp cron refuses to work properly. You…WP cron is one of the greatest features of WordPress. However, it’s irritating when your site is low traffic, or for whatever reason, wp cron refuses […]

Change mysql collation from latin to utf8 – all tables and all columns

Change mysql collation from latin* to utf8 can be done by simply stop being a lazy bastard and, take the time to change the default mysql collation for the new…Change mysql collation from latin* to utf8 can be done by simply stop being a lazy bastard and, take the time to change the default mysql […]

Batch Watermark photos with imageMagick script

ImageMagick is an awesome image manipulation tool. It provides an command-line API for literally hundreds of functionalities related to image editing. Every now and then I need to apply watermarks…ImageMagick is an awesome image manipulation tool. It provides an command-line API for literally hundreds of functionalities related to image editing. Every now and then I […]

Handlebars ifequal helper

Handlebars.js  {{#if}} helper lacks of equality condition. In cases where some logic should be put inside the template, some folks prefer to override it. But instead of overriding {{#if}} helper, and taking my chances to break…Handlebars.js  {{#if}} helper lacks of equality condition. In cases where some logic should be put inside the template, some folks prefer to override it. But instead of overriding {{#if}} helper, and taking […]

Vagrant repackaging box from existing one #vagrant

This entry is part 1 of 1 in the series Vagrant

Vagrant repackaging is a hacky way to create a new vagrant box from an existing one, which is already configured and well tested. In this article, scope is not to…Vagrant repackaging is a hacky way to create a new vagrant box from an existing one, which is already configured and well tested. In this article, […]

Javascript

prefix console.log without affecting the line number #Javascript

Prefixing the console.log while keeping its ability to inform you about the code line wherefrom it was called is little hacky but useful to use in your own javascript applications….Prefixing the console.log while keeping its ability to inform you about the code line wherefrom it was called is little hacky but useful to use in […]

Javascript

Javascript dynamic method initiation for fallback-ing

You can follow this  way of dynamic method initiation when you needed to run dynamically all the object methods or providesome fallbacks to any given function. The code is more or less self…You can follow this  way of dynamic method initiation when you needed to run dynamically all the object methods or providesome fallbacks to any given function. The code is […]

How to install emmet on Sublime Text 2 via Package Control

Emmet and sublime text 2 (or 3, 3 is Alpha version yet) might be one of the best combos to boost your work flow when writing an application. Sublime text…Emmet and sublime text 2 (or 3, 3 is Alpha version yet) might be one of the best combos to boost your work flow when writing […]

Specktator’s #RegEx Cheat Sheet

This is my regular expression cheat sheet. Anchors ^    Start of string or line \A    Start of string $    End of string or line \Z    End of string \b    Word…This is my regular expression cheat sheet. Anchors ^    Start of string or line \A    Start of string $    End of string or line \Z    End […]

jQuery Tutorials – Hide/protect mailto: links from spam bots and email harvesters #3

This entry is part 3 of 3 in the series Spambot Protection

Here is a jQuery snippet that can protect email addresses from email harvesters. All you need to do is to inlcude .mail class to your “mailto:” html links like the…Here is a jQuery snippet that can protect email addresses from email harvesters. All you need to do is to inlcude .mail class to your “mailto:” […]