Viewing posts about Optimization.

Handling Static Content

As of a few weeks ago my website used PHP to route static assets. That is, every time a request hit my server for css, js, or the like, a PHP process would kick up to process and stream the response back. This was done to handle versioning and compiling of different assets, which was very helpful…

  • Category Web Development
  • Posted January 16, 2016
  • read more

Optimizing Regex

Many people avoid using regex in their application because of speed issues. When you're developing a site and are looking for sub-second response times a regex that takes a few hundred milliseconds is not very appealing. Especially when that slow pattern is being matched against several dozen…

  • Category Web Development
  • Posted July 10, 2014
  • read more

Keeping Things Simple with Sculpin

Earlier this week I had the pleasure of learning about Sculpin, a sweet PHP tool, from Ben Benesh at the local PHP meetup. Sculpin is a static site generator that takes a bunch of Twigs and/or Markdowns and compiles them into a set of static HTML files for easy deployment. There are some rather cool…

  • Category Web Development
  • Posted November 14, 2013
  • read more

Client vs Server Analytics

Client-side analytics communication

Site analytics is an important tool for web developers and stakeholders alike. Knowing where visitors are coming from, how they're interacting with your content, and why they're leaving can provide valuable information on how to better serve your audience both on- and off-line. There are several…

  • Category Web Development
  • Posted September 17, 2013
  • read more

Resizing Images with PHP

Of all the memory-intensive processes that you can do with PHP image resizing is one of the most abused. It may be tempting to have the power of requesting any image in any size, passing the parameters in to a script and boom, having a custom fitted image, but it's not a great idea. There are…

  • Category Web Development
  • Posted June 25, 2013
  • read more

Midwest PHP Conference 2013

I haven't been too many conferences. DealerFire only pushed vendor conferences, fancy get-togethers in cities like Miami and Las Vegas where we all rubbed elbows with industry leaders and vied for customer attention. When I found out that Blue Door Consulting, my current place of employment, wanted…

  • Category Web Development
  • Posted March 8, 2013
  • read more

Web Crawlers are Difficult

In my last post I explained what a web crawler was and some of the basic steps that someone could break up the logic into. I also dived into some of the difficulties I had when building out my own crawler. Granted, some of the difficulties were self-imposed: I was using PHP, had a limited timeframe,…

  • Category Web Development
  • Posted March 1, 2013
  • read more

Building a Web Crawler

A web crawler is a script that goes out and crawls the web. Pretty surprising, eh? There are many crawlers out there, including the famous GoogleBot that attempts to index every site it bumps into and nefarious spambots that look for and exploit vulnerabilities. The logic behind them seems simple:…

  • Category Web Development
  • Posted February 27, 2013
  • read more

A Year of Hits and Spiders

Right around this time last year I set up a simple hit logger on my server. Nothing complex, just a dump of the server superglobal with some extra metadata. This is something that is partially captured by the server itself in access logs: what file was requested, who was requesting it (user agent…

  • Category Web Development
  • Posted February 15, 2013
  • read more

Blog Updates: It's Responsive!

There's been a lot of changes to a few of my websites lately, including this blog. Inspired by the whole idea of responsive web design I've been going through and refactoring the front end logic. This involves more than just updating CSS. Removing jQuery, adding some HTML5, and cleaning up the…

  • Category Web Development
  • Posted December 21, 2012
  • read more

Activity Stream

  • Pushed some code at jacobemerick/lifestream-service.
  • Pushed some code at jacobemerick/lifestream-service.
  • Pushed some code at jacobemerick/lifestream-service.
  • Pushed some code at jacobemerick/lifestream-service.
  • Blogged about hiking | Descent to Fossil Creek.
View more activities…