PHP Optimization – Using A Timer To Benchmark Code And Increase Speed

One of the best parts about being a programmer is that there’s seemingly always a better way to do things. A simple code tweak can drastically improve the execution time of your web application. The faster your application executes the quicker you release precious server resources. The first step in optimizing your existing PHP-based web […]

Introducing Springboard › Minimal JavaScript / CSS / HTML Project Template

Introducing Springboard 4 comments Lab : Minimal JavaScript / CSS / HTML Project Template I love HTML5 Boilerplate and use it a lot as a basis for web projects. Sometimes however, I find it still does a little bit too much for my needs and I end up removing a lot before I can get started. […]

HTTP API « WordPress Codex

HTTP API Contents [hide] 1 HTTP API 2 Helper Functions 3 Other Arguments 4 External References HTTP API Within PHP, there are five different ways to send an HTTP request. For simplicity, the five different ways are called ‘transports’ and will be used from now on. The purpose for the HTTP API is to support […]

Get a URL Google+ Count Via PHP

<?php $ch = curl_init(); $encUrl = “https://plusone.google.com/u/0/_/+1/fastbutton?url=”.urlencode($url).”&count=true”; $options = array( CURLOPT_RETURNTRANSFER => true, // return web page CURLOPT_HEADER => false, // don’t return headers CURLOPT_FOLLOWLOCATION => true, // follow redirects CURLOPT_ENCODING => “”, // handle all encodings CURLOPT_USERAGENT => ‘spider’, // who am i CURLOPT_AUTOREFERER => true, // set referer on redirect CURLOPT_CONNECTTIMEOUT => 5, […]

Introducing the Nest Learning Thermostat

I got to get me one of these! Find out more: http://www.nest.com/

Bikers in Cinema

Python for the Web – Gun.io

This article will give an extremely high level overview of how to use python for the web. There are many ways you can interact with the web using python, and this post will cover all of them. This includes python web scraping, interacting with APIs (Application Programming Interfaces) and running your own python web site […]

Setting up Drupal in Rackspace Centos 5.5 in 3 minutes or less

The boring part: Log in to Rackspace and spin a new server with Centos 5.5 and most basic settings. We will be doing this with root so this setup will be for testing only and no production. The fun part: $ yum install httpd php php-mysql mysql-server unzip nano php-xml php-gd (NOTE: php-xml and php-gd […]

Untitled

via DestroyTwitter

How do you install Vim plugins? – Wikianswers – Find and edit the best answers. How to? What? Is it? Can I? Where is?

The “plugin” directory is for plugins that should always be loaded whenever Vim starts. These define global commands, interface tweaks, or new functionality useful for all or many file types. The “ftplugin” directory is for filetype-specific plugins, such as autocompletion or highlight-errors-as-you-edit plugins. The “syntax” directory is for updated syntax highlighting rules specific to a […]