Hot Koehls
  • Email
  • Feedburner
  • Linkedin
  • Twitter
  • Home
  • About
  • Archives
  • Contact
  • Software
    • S3imple Backup
    • Twitter Feed Archiver
    • FileTime
    • Flickr API Demo
Search
Home» Posts tagged "programming"

Posts tagged "programming"

jQuery 1.4 released

Posted by Frank - January 20, 2010 - For techies
0

The latest and greatest version of jQuery, version 1.4, was released on January 14, the birthday of jQuery’s original launch. Bugfixes and improvements abound! The jQuery team has put together a site devoted to the new version, called the 14 days of jQuery, covering the major version changes as well as infrastructure updates coinciding with [...]

Read More ajax, handy functions, jquery, open source, programming, software development, standards, usability

Get domain out of any URL string (yes, really)

Posted by Frank - October 27, 2009 - For techies
0

It’s a common problem with no single right answer: extract the top domain (e.g. example.com) from a given string, which may or may not be a valid URL. I had need of such functionality recently and found answers around the web lacking. So if you ever “just wanted the domain name” out of a string, [...]

Read More coding theory, crappy coding, php, programming, regular expressions, software development

Build a slick Twitter feed on your site

Posted by Frank - July 14, 2009 - For techies
0

A few months ago I published an article describing how to output a Twitter stream on a page using PHP, and later followed up with two more to polish the display. The article content and code examples have since been tweaked based on feedback and my own debugging. If you haven’t already had a look, [...]

Read More lifestream, php, programming, regular expressions, social networking, Twitter

Find the second (or third, or fourth) occurence in a string

Posted by Frank - March 30, 2009 - For techies
1

PHP includes some handy functions to find the first or last occurrence of a given string token in a string: strpos and strrpos. However these functions are limited to just the first occurrence; what if I want to know the location of the second token’s position, or the third? These problems usually result in some [...]

Read More handy functions, php, programming

Extract email addresses from tags

Posted by Frank - January 15, 2009 - For techies
1

Ran into another cool hurdle today for my Fwd:Vault development. When I grab the message content to archive it in the system, first thing I do is scrub it out to ensure that (a) it displays properly, and (b) there are no misbehaving characters. I grab both plain text and HTML email formats (if present), [...]

Read More email, fwdvault, php, programming, regular expressions, security, usability

Versatile random string generator

Posted by Frank - December 18, 2008 - For techies
4

A cursory glance around the web will reveal a ton of PHP-based random string generators. With enough looking you’ll find generators that do any of the following: Strings with letters Strings with numbers Strings with letters and numbers Uppercase, lowercase Fixed, variable length strings Option to include symbols Problem is, none of them ever incorporated [...]

Read More extension, programming, security

Easily calculate dates and times in different timezones

Posted by Frank - November 25, 2008 - For techies
2

Building off my last post, where I showed you how to easily display any public Twitter feed on your site, I ran into another problem: the dates that are delivered by the Twitter API all reflect Greenwich Mean Time (GMT). Now I thought about going the old route and doing some convoluted math using date(), [...]

Read More extension, fwdvault, programming, standards

Format a RFC2822 date for mysql datetime fields

Posted by Frank - September 30, 2008 - For techies
1

I was crash-coursing myself on PHP’s IMAP functionality recently, one of the first questions I came across was how I might store the date from an e-mail header in a MySQL DATETIME field. I was afraid I was going to have to parse out the string using a bunch of calls to substr(), but then [...]

Read More mysql, php, programming, standards

Automating SSH or SFTP in scripts

Posted by Frank - September 29, 2008 - For techies
4

Recently I needed to automate copying a MySQL database to a backup server. We keep a copy of our site and DB on this box in the event that our main systems go down, or there’s a problem with our internet connection. It’s kind of like a poor man’s colocation setup. I actually prefer the [...]

Read More mysql, programming, security

Using SQL computations in WHERE clause

Posted by Frank - August 8, 2008 - For techies
2

When writing SQL statements, sometimes I want to filter the result set based on a value that must be computed out of the stored data. Here’s an example: I want to see which widgets have been sold more than once, and how many times each of those remaining widgets have sold. Obviously we could pass [...]

Read More mysql, programming
  • 1
  • 2

Categories

  • For entrepreneurs
  • For everyone
  • For techies

Latest Tweets

  • The word traps planners plan themselves into | Life. Then strategy http://t.co/iANAdASb
    May 8, 2012 - 2:43 pm
  • Random network security tip for those about to appear on TV - Boing Boing http://t.co/tC1lXFQ4
    May 8, 2012 - 1:42 pm
  • A Picture http://t.co/H846Uy69
    April 27, 2012 - 12:25 pm
  • The Broken "Buy-One, Give-One" Model: 3 Ways to Save Toms Shoes | Co.Exist: World changing ideas and innovation http://t.co/RI0sVMW6
    April 10, 2012 - 12:23 pm

Recent Comments

  • whiz on What 255 characters looks like
  • Andrew on Find the second (or third, or fourth) occurence in a string
  • IanArcher on Get number of message parts in an email using PHP
  • Usama on Remove parent directories from tar archives
  • Frank on It’s dangerous to go alone

Recent Posts

  • It’s dangerous to go alone
  • Create Self-Signed Wildcard SSL Certificate
  • What comes after the yottabyte?
  • Write code like they do in Hollywood
  • Brian Rolle machine gun celebration
(c) 2012 Frank Koehl. All Rights Reserved.
  • Contact Us
  • Sitemap