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 Flickr links and embed code snippets.
Normal URL : http://www.flickr.com/photos/gambort/6501997531/ Short URL : http://flic.kr/p/aUyrkH Embed [...]
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 and embed code snippets.
Normal URL: http://vimeo.com/9669721 Group URL: http://vimeo.com/groups/tvc/videos/32626014 New Embed: <iframe src=”http://player.vimeo.com/video/9669721?title=0 &byline=0&portrait=0&color=ffffff” [...]
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 work in another language).
Today’s Regex is used to parse a string for YouTube links [...]
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 hours to go Tomorrow at 2:25pm June 30, 2022 5:34pm
Sample Past Output : [...]
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 that it processing twice. A poster child for inefficiency. Unfortunately looping seems the be the [...]
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 it only hides links. So users could still work around this if they know the [...]
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 2 3 4 5 6 7 8 9 10 11 12 13 <div id="silverlightControlHost"> <object [...]
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 solutions, a huge market in this economy. I think I’ll be able to [...]
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 to trust all URLs and just blindly click. Sites like Twitter should offer users the [...]
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 by clicking “Add Comments” . When the issue has been reproduced click “Stop [...]
My Twitter
- Why is the Logitech Harmony software so painfully bad? 2012/02/05
- Fun with programming and toys... http://t.co/2fQ5dHIS 2012/02/02
- @elementdave which model did you get? 2012/01/31
- @elementdave Nice... 3 mins with my small helicopter and you just had to get one? 2012/01/31
- RT @5marks: @patricktalmadge and I will be spending some time in the lab tonight putting some finishing touches on Agora. 2012/01/30
- Thank you @INGDIRECT for shafting me with a $50 fee for a early redemption fee on 30 shares out of a 1070 I sold. #whymutualfundssuck #IRA 2012/01/27
- RT @newsycombinator: Hackers have a twisted sense of humor. Watch this: if you laugh, you're one http://t.co/RdHxFVHq 2012/01/27
- RT @andrewchen: The Secret To Pinterest's Astounding Success: A Brilliant Sign-Up Process You Should Copy http://t.co/AsGi9pBx 2012/01/25
- 2 year old + Headlamp = nighttime play with out power #snowpocolypse #2012 2012/01/21
- Took a break from work to play in the snow with my son. #goodtimes #workingfromhome 2012/01/18
Archives
- December 2011
- October 2011
- August 2011
- June 2011
- April 2011
- March 2011
- February 2011
- December 2010
- November 2010
- October 2010
- August 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- September 2007
- July 2007
- June 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
