If you’re using
electron-builderto publish your applications, then electron-auto-update provides you with a user-friendly simple auto update mechanism with one method call.
Use Keybase to setup and manage GPG, and start signing your git commits
A week long trip out in Spain with the need for CPU power back home
With only a handful of commands, tmux can still be your new best friend on the terminal
Get those code snippets embedded easily
Automated and repeatable WordPress deploys with Composer
The new, cool provisioning kid on the block
Get around those evil firewalls and secure your net connection
Leave behind the millions of plugins, and slowness, and just use Fish
Maybe don’t waste your time reporting it in future…
One server to rule them all
Be a ninja with EC2 using the CLI
It’s not as difficult as it may first seem
Keeping the core separate, but easy to update
Puppet can change your life
Writing custom definitions
Some quick setup instructions on getting rbenv installed on Lion
A quick introduction on setting up Behat and writing your first test
Getting started with a Jekyll powered site and migrating from WordPress
When you sit down and start work on a new project, what hoops do you have to jump through before you get your app running in your browser?
I just setup a new Linode to host my new twitter app, lists dj and wanted to lock it down to basically Apache and SSH.
Not much more than a few hours have passed since I posted my APF setup howto, but I’ve found something even simpler.
Having a reliable and easy to use developer environment on my Mac is essential for my work, and the odd project I work on.
mkvmerge -o merged_file.mkv file1.mkv + file2.mkv
Rewrite rules in an htaccess file don’t need to leading slash, otherwise they won’t work.
I’ve started using CodeIgniter again recently, and have noticed that my how-to on implementing basic authentication could do with an upgrade for version 2.
Sorry, I promised a blog post, but instead you get a link to bitbucket with the source of a basic chat app written using WebSockets.
Here’s an example setup to create SSH host shortnames. On you local computer, add the following to ~/.
Fed up with having to type your password in each time you log into a server over SSH?
We have a few production servers at work, and we have a central bitbucket repository to store our core code.
Our internet connection via our landline has been dead since Tuesday afternoon, so I’ve needed an alternative connection in the meantime to give me my twitter fix!
Here’s a simple solution to redirect users to a maintenance page in Apache. This rewrite rule can stay in your config (<VirtualHost> or .
We’ve finally moved to Mercurial at work (well, we didn’t exactly move from anywhere, but that’s another story…).
MongoDB (from “humongous”) is a scalable, high-performance, open source, schema-free, document-oriented database. There’s a lot of buzz brewing about it, so I wanted to give it a try with PHP on my development Mac.
sudo update-rc.d -f script_name remove
Ensure that the mercurial convert extension is enabled: nano ~/.hgrc Inside that file add:
In php.ini: display_errors = Off log_errors = On error_log = /var/log/php-errors.log Make the log file, and writable by www-data:
I’ve now changed my slice from running lighttpd to nginx. Here’s the simplest way, in around 6 commands, to get PHP up and running via FastCGI.
Here’s how I do some basic authentication for a controller in CodeIgniter. It basically consists of creating a new class that extends the default Controller class.
<?php $username = 'your_username'; $password = 'your_password'; $url = "https://$username:$email@example.com/v1/posts/recent"; $request = new HttpRequest($url, HTTP_METH_GET); $response = $request->send(); print $response->getBody(); ?
You will probably want to ensure that curl supports https before getting underway: curl -V Check that the output contains https:
It’s a little tricky getting a nice clean install of PHP5 for OS X 10.5. The packages that I always used to depend on over at Entropy don’t seem to work anymore.
Here’s a quick run down on getting lighttpd and php running on CentOS 5. yum install lighttpd lighttpd-fastcgi php mkdir /var/run/lighttpd touch /var/run/lighttpd/php-fastcgi.
I just found out that HFS+, the preferred file system for Mac OS X, is case-insensitive when it comes to files and directories.
To merge video files together with mencoder is simple: mencoder -oac copy -ovc copy file1.avi file2.
Having got my keyboard shortcut working to launch my batch file, next was to actually make it quit the emulator program when invoked.
You won’t find me writing about Windows too much on here I promise. I’ve been forced to use Windows XP on my arcade machine due to the lack of a decent Sega Mega Drive (Genesis for anyone in the US) emulator on Linux.
For the last month, I’ve been teaching myself vim. So here’s an explanation for anyone interested in the commands I used for this post.
My search for an open source, Ubuntu alternative for EyeTV on OS X is nearly over.
As a follow up to yesterday’s post, here is a quick run through of how to use Mplayer to view DVB channels.
Watching TV on my desktop. What do I want to be able to do? Watch all Freeview (DVB-T) channels.
A really frustrating issue I had when writing my project report, was that of dealing with source code formatting.
It was very frustrating installing a fresh Wordpress on my Mac and finding that the permalinks didn’t work.
This semester at University, I’m taking ‘Compiler Design & Techniques’ as a module. The second coursework involves drawing Finite State Machines diagrams that represent regular expressions.
I just bought a new Linksys router for my home network and wanted to set-up my Ubuntu Web Server with a static IP address so that I could port-forward a few things.
A very handy command to see the total size of a directory on a Unix-based computer.
I’ve had a bit more time recently to play around with Ubuntu and am finding the ‘Ubuntu versions’ of apps that I’ve grown to love on Mac OS X.
Here’s a great Mac screen saver to get you in the Christmas spirit–LotsaSnow. It generates unique snow flakes that then gently fall down from the top of your screen.
Fancy a change from the default prompt you get in your Terminal? Want to mimic the Terminal prompt used in Lost?
I’ve made a brand new spare PC that I’m hoping my parents can use in their spare room/study.
Two reasons you might want to do this. You want to host a Rails application using Mongrel via Apache and mod_proxy_balancer.
This howto assumes you’ve already followed my Building Apache 2.2 from source article. Now we’re going to install Subversion 1.
It’s finally here, my updated how-to on how to get Ubuntu Dapper up and running as a home web server.
It was very annoying to find out that the brand spanking new installer for Typo wasn’t going to install over rubygems.
Note: Didn’t have time to really write this article up - maybe some time I will - but I’m posting it here just in case it comes in handy for someone.
I’m now really loving Ant for compiling my Java projects together. It really has solved the problem of figuring out what to update, or going through countless commands to compile each package etc.
My group project at University now consists of three smaller projects that provide an overall RSS service.
Download the ‘Core’ .tar.gz version of Tomcat (as of this writing 5.5.15) from http://tomcat.apache.org/download-55.cgi. Extract and move the folder:
Mac menu-bar? Set this before you initiate your JFrame in your main class: System.setProperty("apple.laf.useScreenMenuBar", "true"); Other systems will just ignore this and the menu-bar will appear as normal for that system.
If your one of my regular readers (ha!), then you’ll know I’m starting a Group Project for University.
At University, they’ve blocked ports for all IM applications, including IRC. This sucks, because IRC can actually be really helpful for asking for advice on things such as C++ or C.
I reinstalled my home server today (well, I actually started yesterday, but today I finished from scratch again) and wrote down what I did.
Coming from a PHP background, it’s always annoyed me that I can’t use something as simple as a foreach() loop in my C++/Java applications.
I just finished setting up a spare PC I had with Ubuntu on it. Thing is, it’s damn noisy so I want it stuffed up in the loft out of the way.
Collections.sort() allows you to sort a Collections framework that is inherited from the List class. The Vector class is, so that’s great!