Blog Archives

Stripe Bundle for Laravel

I’ve been learning the ins and outs of Laravel for a little over a week. Last night I decided I should create a quick bundle. I created a simple API bundle for Stripe because I will need it for a

Posted in PHP, Programming Tagged with: ,

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: , ,

JQuery DataTable Birthday Sort

I’m working on a project that uses DataTables a JQuery plug-in that turns ordinary table into dynamic tables. One of the columns includes a list of birthdays. We didn’t want the standard date sorting. We wanted the birthdays to sort

Posted in JavaScript, JQuery, Programming Tagged with: , ,

Silverlight Binding Linear Order

I stumbled across this Silverlight “feature” today. Silverlight’s binding works in a linear order. 1 <ComboBox SelectedValue="{Binding SelectedHour, Mode=TwoWay}" ItemsSource="{Binding Hours}" /> In the above code, selected value isn’t being set on page load. When I change the ComboBox my

Posted in Programming, Silverlight 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: ,