by suleski | Dec 23, 2013 | Reference, Technical
Ever see code like this? function my_special_function() { global $wpdb; $wpdb->get_results( “select * from tbl_blah” ); } There’s a special variable that WordPress sets up called $wpdb. It is a window into the database – something that a...
by suleski | Dec 23, 2013 | Reference, Technical
At the top of the gmail screen is a textbox that acts as a filter against all existing email. Typically, you might use this textbox to search for emails with specific terms found in the body. However, this textbox has a whole lot more to filter against. Here’s...
by suleski | Dec 7, 2013 | Reference, Technical
If you are creating banners for your site, you can create whichever shapes/sizes you wish. But, if you want to put advertisements up supplied by a place like Google’s Adsense, you want to probably follow some sizes that are supported (all listed in pixels and...
by suleski | Nov 10, 2013 | Technical, Walkthroughs
If you are trying to use LESS files in Eclipse, you will notice that those files are viewed as plain text – no indenting, no color-coding, no outlining, etc. If you want to fix this up so that these LESS files behave like CSS files, do the following: Install...
by suleski | Nov 8, 2013 | Reference, Technical
Setting up regular expressions in code can sometimes be a pain. Maybe you want to test that your regex is correct before decorating it to meet your language’s needs. Well, there is a useful tool that I’ve used that does just that...
by suleski | Nov 8, 2013 | Technical, Walkthroughs
Regular expressions are generally not intuitive. Regular expressions in PHP are especially not intuitive. In short, there are some special rules to writing regular expressions using PHP. Here are some differences: Delimiters // Traditional – no delimiters...