Blog Archives

Regex Flickr Parser

Today’s Regex is used to parse a string for Flickr links and extract the Photo_ID. Once we have the Photo_ID we’re able to create a standard embed code from nearly any Flickr URL. Supported Links: The following Regex supports these

Posted in Computers, PHP, Programming, Regex Tagged with: , ,

Regex Vimeo Parser

Today’s Regex is used to parse a string for Vimeo links and extract the Video_ID. Once we have the Video_ID we’re able to create a standard embed code from Vimeo links. Supported Links: The following Regex supports these Vimeo links

Posted in Computers, PHP, Programming, Regex Tagged with: , ,

Regex YouTube Parser

Over the next several days I’m going to post a series of Regex strings. These Regex strings can be used to parse input for different links. I’m using PHP in my examples (you may need to tweak the Regex to

Posted in Computers, PHP, Programming, Regex Tagged with: , ,

PHP Date in Human Readable Format

I’m working on a PHP project that requires human readable, relative date formatting. Below is the PHP function I’m using. The function handles past and future dates. Sample Future Output : 30 seconds to go 1 minute to go 5

Posted in Computers, Programming Tagged with: ,

Super Simple WCF Caching

The other day I had an interesting problem at work. My new project had a web service call that was pulling metadata off an MS SQL cube. When I started to the the project the call had 6 nested loops

Posted in Computers, Programming Tagged with: , ,

Hide Multiple Upload link in SharePoint 2010

I had a request to hide the multiple file upload links in SharePoint 2010. After an hour or two of searching for a configuration setting, I got tired and did a simple CSS hack. Granted this doesn’t disable the functionality

Posted in Computers, Hacking, Programming Tagged with: , ,

Dealing with Silverlight InitParms

I’ve found the best way access initParams throughout your Silverlight Application is to put them in a global static dictionary. This is how I setup my initParms dictionary. First we need to set an initParams in our ASPX Page: 1

Posted in Computers, Programming, Silverlight Tagged with: ,

Ch Ch Changes

After more than 3 years on the same team I’ve accepted a Senior Developer job offer from Extended Results. I will be starting my new job September 7th. Extended Results was founded in 2006 and specializes in business intelligence software

Posted in Computers Tagged with: , ,

Expand URL

The popularity of short URL services, like tinyurl.com and bit.ly, has grown due to the character limits of Twitter. These services pose a security risk because they could be used to conceal the addresses malicious sites. Users are being taught

Posted in Computers, Hacking, Security Tagged with: ,

Problem Step Recorder in Windows 7

Problem Step Recorder is a neat new tool built into Windows 7. On a Windows 7 machine type PSR in the search box and Problem Step Recorder will open.  Click “Start Record” and reproduce the problem/error/step. Once PSR is running you can add comments

Posted in Computers Tagged with: ,