Note to self: Digest hashing and crytpological hashing are birds of a different feather

Over decades of enhancements in computer science, there's always a revolution going on in cryptography and hashing, MD5, SHA1 yesterday, SHA256/512 today.As a programmer, it's sometimes hard to avoid the back and forth talk about how algorithm A is inferior to algorithm B, and forget how hashing can be used...
Read More

Worthy of distribution: Google vs. Facebook – paid ads

This is certainly no surprise to me; Not only is Facebook less economical from initial impressions, the performance is a dead giveaway.Here's a sweet and to the point rundown of how they bat heads. If you had to pick one to dump money into, it should always be Google (for...
Read More

NoSQL: stretttcch – pop!

You know the noise you hear when something is stretched close to it's breaking point, like a balloon? In the context of the NoSQL bandwagon bubble: here's some of that noise. A detailed account of jumping on a bandwagon with an immature scene of products.Although admittedly I have my eye...
Read More

Zend Studio + PHPUnit upgrade: A faster method

As a counterpart and refinement of my previous how-to, this update shows how to update the PHPUnit library faster than using the symlink method: View in HD!  Subscribe in a reader ...
Read More

Mercurial (hg) checkstyle hook, at last!

As far as I can tell, there's not much in the lane of check style hooks for Mercurial.There's a lot of hits for git and SVN, but not much for Mercurial.Check it out in my 'hg-checkstyle-hook' bitbucket repo.I thought I'd share my (imperfect) rendition of a Mercurial checkstyle hook. It's...
Read More

MySQL 5.6 – InnoDB (innodb_file_per_table) and recovery

All I can say is rejoice!.There's a lot of fluff out there that beat around the bush or contain a regurgitated process for recovery using the 5.6 LAB edition of MySQL.So instead, here's the info straight from the horses mouth: http://blogs.innodb.com/wp/2012/04/innodb-transportable-tablespaces/  . This will make a huge difference in the...
Read More

PHP’s APC – Don’t back yourself into a corner

We heavily rely on running multiple instances of code where I work. At any given time several of us have several copies/branches of the site code configured to run from various spots on our development server.A path we have gone down with APC's user variable caching is merely one of...
Read More

MySQL – multibyte cheat sheet for conditionals

This is basically a short cheat sheet to launch some ideas for comparisons/matching with multibyte characters.Connection collation of utf8_unicode_ci and charset of utf8 - Table + data and server: [crayon-5b02533d5f1ce649038320/][crayon-5b02533d5f1d5388194874/][crayon-5b02533d5f1d7904626850/][crayon-5b02533d5f1d9221199690/]Check out the behavior of the following queries:[crayon-5b02533d5f1db736646752/][crayon-5b02533d5f1dd247615016/]Other resources:MySQL's character sets and collations demystifiedMySQL charset documentationCharsets and joins (good gotcha to...
Read More

GitHub hacked, and private repositories

And this is precisely why albeit 'nifty', storing your private/proprietary code in a 'private repository' on the likes of GitHub / Bitbucket is a generally poor idea. - Keeping your code in SCM behind closed doors isn't difficult. I find it very troublesome (annoying) to see how many people can't...
Read More

Disable PHP 5.4’s built-in web server, while keeping CLI …

Administrators: Don't get blind-sided by PHP 5.4's CLI web server!I've gone over a similar issue like this before regarding the likes of git/hg. While those are developer tools and are less likely to be present on a production machine.PHP 5.4 is jumping on the bandwagon to include a 'cute' little...
Read More

Observations: Google’s new Terms of Service

The new TOS and Privacy Policy documents from Google are a welcome change, reducing 60 individual ones into a standard, global set is a much better idea for understanding's sake. Observation 1:We may review content to determine whether it is illegal or violates our policies, and we may remove...
Read More

PHP Vulnerability – DJBX33A – Hash table collisions

Trickling through my RSS feeds this morning was an article with quite the topic "PHP Vulnerability May Halt Millions of Servers". In a nutshell: A modest size POST to almost all PHP versions in the wild (Sans 5.3.9+) are in danger of an extremely simple DoS. The vulnerability exploits the PHP internal...
Read More

Why I won’t (can’t) adopt Google Chrome yet…

Privacy aside, simply put: in my role, I do my fair share of design work, AJAX debugging, CSS, you name it -  I need tools at my fingertips to quickly do more than just rip apart the DOM of a page, these are my deal breaker extensions/capabilities that aren't in...
Read More

If you’re not off of Godaddy yet …

You should be. The Godaddy girls are stupid. The commercials are worse. Bob Parsons is kinda creepy (not just the elephant thing). The ads are terrible. The site is terrible.Do you need another excuse to move your registrar needs to another company such as Gandi or Namecheap?You need another excuse?...
Read More

/bin/false – Report false bugs to …

While sifting through the manpages for /bin/false (looking for crafty uses for this oddball command) - I just had to share a funny line from within the manpage:[crayon-5b02533d5fe8c038334942/]Maybe it's been a long day =| Subscribe in a reader...
Read More

ab – Apache Bench, understanding and getting tangible results.

Apache Bench (AB) is a very powerful tool when used right. I use it as a guideline for how to set up my apache2/httpd.conf files. All too often I see people boasting that they can get an outrageous number of RPS in AB (the Apace Bench tool). "OMG, I totally get 3,000...
Read More

Grepping extremely large files

So you forgot to set up logrotate on an active log eh? You've got a many gigabyte file to weed through and you need to extract a chunk of time from it?Here's a quick cheat sheet to help you get by, quickly and sanely.It's about byte offsets!Get the byte offset...
Read More

Worthy of distribution: Cloud analogy

This post on Beyond Bandwidth seems to summarize some of my feelings about cloud computing - it's best thought of as an outsourcing task for the most part; Although the benefits of something like an extra DNS server are a bit more than an 'outsource benefit'; but you get the...
Read More

Is there a hacking campaign against open source?

Linux.com, kernel.org, mysql(twice this year), wordpress and php have all reported breaches of some sort this year. Is there some sort of campaign against these 'high profile' open source projects? It's starting to feel like it, to me.The more hands you get in the pot, the more nervous you should...
Read More

The inherent risks of ‘daemonize’ features in developer tools – Git, Mercurial (hg)

A handful of tools such as mercurial, git, (soon PHP - which chances are will be it's own binary) have their own 'daemonize' functionality.Whatever your reasons - if you want to disable these; there's little to no help in figuring out how... til now...If you want to disable Mercurial's hg...
Read More