An Idea For Old Computer Case

clock February 29, 2008 14:04 by author csmith12

I got this in email today and though it was funny. Also went well with the subject matter in the IRC channel I hang out in.

 

clip_image001

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Fun with Regex

clock December 6, 2007 00:15 by author csmith12

Sometimes when coding applications, your run into problems that seem to be easy to fix but end up being very difficult to fix in a standard way. Now here was my situation.

  1. One stock web form
  2. One stock asp.net textbox control
  3. One stock asp.net regular expression validator
  4. One stock asp.net button

Problem: This textbox was for number data entry. It should accept number values such as 1, 50, 897, or 2,309. Now initial thoughts say that this should be a easy regular expression.

Solution: After a lot of trial and error I finally end up with this regular expression: -?([1-9][0-9]{0,2}(,[0-9]{3,3})*|0|[1-9]{1}[0-9]*)

And finally for the funny part of this post. I pasted my regex in a chat with my body and got this response. HAHAHAHAHAHAHAH!

reactor:     -?([1-9][0-9]{0,2}(,[0-9]{3,3})*|0|[1-9]{1}[0-9]*)  
reactor:     look at that nugget   
k00k|wrk:     lol 
k00k|wrk:     jeez 
k00k|wrk:     good work 
k00k|wrk:     you just got the combination to my luggage 
reactor:      lol 

Aren't friends great for a laugh?

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Redneck Software Development

clock November 25, 2007 14:26 by author csmith12

After writing code for as long as I have, and living in KY, you get to use little sayings that make your day a little more enjoyable. I will list just a few that I use;

1. This program runs like a scalded dog.
2. Sure boss, we can beat it to fit and paint it to match.
3. Use C# it will put hair on your chest and lead in your pencil.

Feel free to add your own in the comments. We all need a good laugh every now and then anyway.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


QOTD

Have you ever needed a Captain Crunch Decoder Keyring to figure out code before? I have.....

- Reactor

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Sign in