Tag Archives: linux

Verify PostgreSQL Backups using Python and LXC

|

It’s well understood that backing up your database is, arguably, the single most important step in preventing data loss and building redundancy into your application. A thoroughly redundant backup plan will include having replica servers on standby and filesystem level backups for disaster recovery. The second most important step is verifying those same backups. Unfortunately, […]

Five Linux Commands Every Web Developer Should Know

|

The prevalence of code frameworks has benefited web developers greatly. Web developers can focus in on the application layer of the software stack and churn out web sites with unprecedented quality and speed. Meanwhile, the database layer and operating system are largely unaffected by the application. That is, until something goes wrong. In my 20 years as […]

Htop, a Web Developer’s Best Friend

|

Every web developer has had the unfortunate experience of their code going rogue and wreaking havoc on a server. An error in the code chewed up all the RAM. An ill-planned query maxed out the CPU and disk I/O, pushing load up too high. The server squawks and we have to do something to fix […]

Configure Your Web-based Application to Receive Email Using Wildcard Virtual Subdomains, Postfix and Linux

|

Many web-based applications, including online project management software, feature the ability to accept and process emails. For example, an incoming email may be tweeted, posted to flickr, or appended to a task. The online abundance of productivity tools has helped us get out of our inboxes, but they haven’t replaced email entirely. In fact, many […]

Calculate the number of lines in a CSV file using PHP and Linux

|

When parsing large text files, particularly CSV files, web developers often need to know the number of lines contained in the file up front. Knowing the CSV line count is useful for a number of reasons, for example, displaying a progress meter while parsing the large file, or estimating how long the parsing process might […]

Netbook Linux Distros for Web Designers and Developers

|

A review of various Linux distros running on the Asus 901 eeePC. Us web designers and developers have grown accustomed to working with Linux on development and production servers. Most of the web sites and web-based applications we build run on some flavor of Linux. Whether it’s PHP, Python, or Rails, Linux is serving it […]