Fizzbuzz Strikes Back!

Posted by: Jeremy - 05/15/12

So today in a technical interview, I was asked to solve the "fizzbuzz" problem slightly different than the usual way I've heard the problem. I was tasked with printing "fizz" for multiples of 3, "buzz" for multiples of 5 and for other numbers print out the number itself.

So I solved the problem, and then I thought I was asked to "do it with only 2 conditionals" which after minutes of failing to come up with the solution it had turned out to be a misunderstanding. However, of course my brain didn't shut down after that. After it was... more...

None

Restored Old Blog Posts!

Posted by: Jeremy - 04/21/12

In an exciting turn of events I was able to save the text of my old blog posts. That in and of itself is pretty awesome.

The downside being that all of the formatting that worked in the old blog no longer works or exists. So a lot of the old content will look pretty screwed up.I will take some time going back over the old stuff to reformat it and make them readable again.

Another plus is I was able to restore the posts to their old URLs so Google links will continue to work. Three posts actually broke... more...

None

Improved editing, a feature you all will never see

Posted by: Jeremy - 04/20/12

Finally added Markdown editting to my posts so now I can actually get paragraphs and the like.

A sad but important change for me. It's the little things in life...

fml

Caps win!

Posted by: Jeremy - 04/20/12

C-A-P-S CAPS CAPS CAPS. Another great game in the Caps v. Bruins series. Unfortunately for my website that means more time I didn't spend working on getting it functioning again :O ruh roh. Anyway, hopefully make some more progress tomorrow.

Woops! I broke it...

Posted by: Jeremy - 04/20/12

Seriously, I did.

fml

Amazon SNS CFC

Posted by: Jeremy - 10/23/11

Since I am using Amazon Web Services more and more these days I figured I'd write a ColdFusion wrapped for the one I am currently working with, Simple Notifications Service. Ironically as I wrote the API wrapper I realized that SNS probably isn't going to meet my needs for any current project but, I decided to finish it anyway. I still need to add some comments in and make the style a bit more consistent (I wrote this over a few sessions and changed style slightly in a few places) but most importantly it works :P I'll put up some... more...

None

Simple jQuery Plugin for Popping Hidden Content

Posted by: Jeremy - 09/22/11

I had to put a quick jQuery plugin today for creating and overlay and displaying forms hidden on a page today, so I made this jquery.popup.js. Usage is pretty simple:

There is a bind on the overlay that is created that will hide the pop and close the overlay by default, you can comment that out if you only want the popup to close by your explicit calling.

A quick full example:

You can get the code here: popup plugin download

I got yelled at by a friend for not posting a demo, so here is a demo

None

Selecting Random IDs for a Subquery in MSSQL

Posted by: Jeremy - 09/21/11

Yesterday I needed to move some data between a table in an old version of a database and a new version of a database for testing, just some records to play around with. This is usually just as simple linking the databases and doing an INSERT with a SELECT statement to populate the table. For example:

However, the users table for this old version were specific to the application. The new version of the application hooks to a users table that is used by multiple applications. So running this will give an error about FK constraints because the User Ids... more...

None

Faux Single Use URLs with ColdFusion and Amazon S3

Posted by: Jeremy - 09/16/11

Every now and then I come up with some code that while very simple, solves a problem quickly and easily for me. Recently we were asked to secure some files behind CF to control who can download them. This is simple enough, usually we would just store the files off of the webroot and use cfcontent to make a download for the logged in user.

However, these files were 1.5GB+. Obviously a web server wouldn't be the ideal place to host these files. And to be perfectly honest, when files are this large I prefer to push them out to... more...

None

C++ I'm Coming Back for More

Posted by: Jeremy - 09/11/11

A few months ago I was taking a class on programming languages. C++ was the language of choice for the class, which I think was an appropriate selection. It was a good class but was slightly interrupted when our professor decided to go and have his 3rd kid, so missed a good portion of the 2nd half. Obviously I was happy for him, but our TA couldn't exactly step in and fill the void. So while I have a cursory overview of the language I have no illusions of actually "knowing" the language. A good friend of mine is what... more...

None