Quantcast
Channel: Ash Searle’s Blog
Browsing latest articles
Browse All 13 View Live

Concatenating arrays in PHP

Just a quick post so I know where to look the next time I forget how to concatenate arrays in PHP. Use array_merge to concatenate two numerically-indexed arrays; not array_push and not the array union...

View Article



The MacBook Pro’s not so bad…

Two years after moaning about my MacBook Pro I figure it’s time for an update: It’s not so bad… Thanks to various blog comments I managed to solve most of the niggles I had with the laptop: muted the...

View Article

Bloody hosting providers

Choosing a hosting provider can be a difficult process, especially when you’re on a budget. I’m heavily involved with ewelike, a product information and price-comparison site that we’re slowly...

View Article

Google: Where art thou time conversion?

I love the fact you can use Google to perform basic calculations and conversions. Once you know your currency codes, currency conversion couldn’t be simpler: 100 USD in GBP And Maths? As well as your...

View Article

Refactoring vs Rewriting (preamble)

The say the path to recovery starts with admitting you have a problem. I wish our problem was code-rot, or a simple case of a good design gone horribly wrong through bodged maintenance and hacks. (If...

View Article


SVN log message encoding problem

It’s good practice to put useful commentary in the log message whenever you commit code to a repository. Today, I wrote a log message about centigrade and farenheit conversions, using the proper degree...

View Article

PHP Session Management (grievance 2)

Sometimes PHP surprises you with an easy-to-use feature, like sessions. Sessions are quite easy to use in PHP. One call to @session_start(), and you have a magic global called $_SESSION to store data...

View Article

Getting git to work on OS X Tiger

If you haven’t heard of git yet, it’s quickly becoming the preferred version-control system for tons of open-source projects, including the twin suns of ruby on rails and prototype. In fact, if you...

View Article


All-in-one cookie function

Users stumbling across jQuery may notice the API’s designed so a method’s behaviour varies depending on the number and type of arguments passed in a call (have a look at the jQuery method!). In the...

View Article


AppleScript – a frustrating beginning

Academia and professional work has exposed me to a few different programming paradigms: functional, logical, procedural and object-orientated. I usually get along fine with a new paradigm, starting off...

View Article
Browsing latest articles
Browse All 13 View Live




Latest Images