Using javascript's RegExp exec method

The exec method off the RegExp object in javascript can cause some confusion if you're not used to it. Let's say we had the following simple regex: var regex = /the/i; So we're looking for the word "the" with the case-insensitive flag enabled so it will match "the", "THE", "The"…

Read this article

jQuery Expected

Long time no write. Work has been crazy busy and life is pretty good. Here's a quick plugin I wrote to help defensive programming when using jquery selectors. jQuery Expected is inspired by .NET's Enumerable.Single. It takes in an expected value and returns the collection if the number of…

Read this article

jQuery Listerine Plugin

I've been helping a friend with his site, www.thehardwareproject.org, for the past couple of months. It was a good chance to rework a lot of my php CMS and one thing I noticed was that there were a lot of pages where all I was doing was displaying…

Read this article

making bossam (bo ssam)

This weekend, I finally got around to making bossam (bo ssam), the Korean version of boiled pork and cabbage, at home. Using the instructions I found on this great korean food blog, it didn't come out half bad. Some adjustments I made to the recipe are not using an onion,…

Read this article

Disable Script Debugging in Visual Web Developer 2010 Express

This little registry hack will disable javascript debugging in Visual Web Developer 2010 Express. You should really be using something like Chrome Dev Tools or Firebug when debugging javascript anyways. reg add HKLM\SOFTWARE\Microsoft\VWDExpress\10.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f…

Read this article

happy new years 2012

Happy new years! For this first post of the new year, I thought I'd take a look at last year's resolutions and see how I fared. Play MORE video games.  Try and beat them too since I have a nasty habit of just dropping them midway through. Learn Python and…

Read this article

jquery-querystring

Just published a plugin that extends jquery to give access to querystring params easily. For the longest time, I was just copy/pasting one function into all my projects to do this, but finally decided to make it a jquery plugin for future use. Here's how to use it: $.querystring(…

Read this article

Steve Jobs has died

Steve Jobs has died at age 56. The internet has gone insane with everyone and their mother trying to eulogize Jobs. I even read an article where the author said he was "Moses in a turtleneck." That's just crazy, but whatever. While I didn't agree with his business practices or…

Read this article

ShibalBot - A Python IRC Bot using the Twisted library

I used to use eggdrops back in the day when we would idle in IRC channels for counterstrike and used to write custom TCL scripts to do all that annoying IRC bot stuff (like listing scrim availabilities, cs clan rosters, etc). So while I'm learning Python, I figured I'd try…

Read this article

Script to sync friends list across multiple reddit accounts

While teaching myself Python, I wanted to try and write something that I would actually use. Since I have multiple reddit accounts, a script that would sync settings across them seemed like it would be useful. So far, the only thing being synced is friends, but I'll soon have something…

Read this article

Github

Finally decided to do something with my Github account and actually set up a repository for some reddit utility scripts. This is really just a way for me to learn and improve my python skills for the future. Pro tip: Git is really meant to be used on linux. Using…

Read this article

Back

I'm back from the depths of hell. Hopefully I can explain further soon.…

Read this article

foodie mementos

Posting some pics of food that I've made lately.…

Read this article

April Update

It's been a while since my last post so I thought I'd just give a quick update. I got a new laptop to do some work on -- a flashy new Lenovo Thinkpad T510. It is quite sexy and reminds me of how long it's been since I've gotten anything…

Read this article

mentally mutilated

"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." -Edsger W.Dijkstra This quote ran through my head today after I realized (after 5 minutes of head scratching) why this…

Read this article

regex vs parsing

Jeff Atwood wrote a really good blog post about the perils of abusing regular expressions a while back which you can read here. The basic gist was that you shouldn't rely on using regexes for the solution to every problem (which languages like perl encourage you to do). I agree…

Read this article

Keep It Simple Stupid

Keep It Simple Stupid (KISS) - the old adage impressed onto all computer science students their freshmen year. I was reminded of it just now when I finally figured out a problem that was hounding me for a while on one of my test development sites. I'm trying to delve…

Read this article

Review: Red Dead Redemption

Overview GTA4 in the wild wild west. That is essentially the entire game summed up in a nutshell. If you didn't like GTA4, I seriously doubt you would like RDR, but who knows. It's an open world 3rd person action game with a main quest line and optional side quests.…

Read this article

Happy New Year 2011

Happy New Years!  Everyone has lame resolutions that all revolve around health and food.  Since I don't really need to lose any weight and I've already quit smoking, my 2011 resolutions are as follows: Play MORE video games.  Try and beat them too since I have a nasty habit of…

Read this article

Thoughts on the Gawker hack fiasco

So if you haven't heard about this massive fiasco yet, read this article for a quick summary.  We were talking about this in my wow guild chat and someone said "that's why my password is complex with a lot of 1's and o's."  The ones of us who are computer…

Read this article