Archive for the ‘Uncategorized’ Category

DNS glue record

What Is A Glue Record – Domainmonster FAQ Glue records are required when you wish to set the name servers of a domain name to a hostname under the domain name itself.

MongoDB

Just had a really interesting and exaustive discussion about MongoDB with Dereck at the PHP London meetup. It seems like a candidate for the next db refactor of the activity stream I’m working on for bravenewtalent.com. I didn’t know that many websites (fuorsquare, github, craiglist) were already using it and interesting talk about unicode by richard [...]

Find Out Linux Distribution Name and Version

To find out what version of Linux (distro) you are running, enter the following command at the shell prompt: $ cat /etc/*-release

Install GIT on CentOS server

Git 1.7.6.1 on CentOS 5.6 | Webtatic.com If you haven’t set up the Webtatic repository in yum, then add it in the command-line as following: rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm Now install git: yum install –enablerepo=webtatic git-all

Netbeans Codesniffer plugin

Just found an article explaing how to use a Netbeans plugin for Code sniffer The github repository is here

Formatting/coloring log files on the fly with tail and sed

I often monitor MySQL queries for some complex application components that use an ORM (Doctrine). I’ve just made a special logger that re-runs all the quries with an EXPLAIN and log the “Extra” column of the explain query, in order to spot queries that can be improved. From the log, I pipe the result to [...]

When NOT to use a mysql subqueries

MySQL optimizer rewrites uncorrelated subqueries (when the inner query does NOT use fields of the outer query) as correlated query, with perrformances of quadratic order rather than linear. If the inner query does not use a WHERE with fields on the outer query, rewrite it as a JOIN Source: MySQL :: MySQL 5.5 Reference Manual :: [...]

Markdown, markup language

Markdown – Wikipedia, the free encyclopedia Markdown is a lightweight markup language, originally created by John Gruber and Aaron Swartz allowing people “to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML)”.[1] The language takes many cues from existing conventions for marking up plain text in email.

Usage statistics and market share data of PHP on the web

Usage Statistics and Market Share of PHP for Websites, January 2012 This report shows the usage statistics and market share data of PHP on the web

How to create phpunit mock objects from namespaced classes

If the autoloader is enabled: $mock = $this->getMockBuilder(‘MyNamespace\sub\ClassToMock’)                    ->setMethods(array(‘methodToMock’, ‘methodToMock2′))                    //->disableOriginalConstructor()                    ->getMock(); works in phpunit 3.6.7, with or without a namespace specified at the top of the test [...]