Regular Expression Code Snippets

January 29, 2009 18:57 by daub815

I will continually update this post with various regular expression code snippets.

  • Find any number in a string: \d*\d

Also, you should definitely use this online regular expressions tester: http://www.gskinner.com/RegExr/

Last Updated: January 29, 2009


White House Technology

January 24, 2009 11:36 by daub815

I recently ran across a Wired article about technology at the White House.  I know that technology moves extremely rapidly and the latest/greatest is never that for very long.  But I felt I needed to point out how far out of touch Wired is from the government and corporate world. 

I know that Windows XP is Windows 7 or even Windows Vista, but apparently people do not understand corporate or government.  According to the article, "The White House's computers are running 6-year-old versions of Microsoft software."  Yes, they may be 6 years old, but it is PROVEN technology.  They are updated every time Microsoft issues a patch.  Everything is as locked down as reasonably possible.

Apparently, people have not worked in a large company with custom applications where the latest (Vista) breaks that application.  In addition, upgrading and transferring information from one computer to another may seem like a simple task, but multiple that by the number of people working at the White House.  Let's also not forget that most of the people in the White House are not as young as most Wired writers.  They do not need the latest/greatest.  They just want to get their job done.

Lastly, this is probably an unknown point, but the White House is working with a whole new set of information most Americans will never touch.  The White House has classified information that needs to be protected.  That is hard to do with a wireless network, which is easily hacked.  In addition, that information needs to be classified into various types of classifications.

In addition, I know things are easily transferred with Macs from one to another, but you must also realize that Apple did not start gaining ground until 2000 at the earliest.  So Windows had a leg up to in trench itself in the United States government.  In addition, Windows hardware is much, much cheaper than most Apple PC's.  The government needs to go with the lowest bidder almost all the time.  So unless Apple is willing to cut the price for the government, Windows will usually win.

I know that viruses are horrible things, but people have to realize that the White House is not on the same type of network most Americans enjoy at work.  They will NOT get access to Facebook, MySpace, or even Gmail (the horror).  They will have their tracks traced and stored (or in the case of Bush: deleted later, but that's a different story).  Either way, the White House is a totally different animal than small businesses.  They have national security to protect.  They do not get the fun job of updating your status on Facebook or posting on people's walls.  Working in corporate America or the government is totally different than most of the freedoms Americans receive at their jobs.

The downloading of music at work makes sense, but why couldn't Bush do it in his spare time is beyond me.  But having iPod's or cell phones in the White House is okay.  But you need to remember that there are parts of the White House like briefing rooms that people are not allowed to bring anything.  Most of the workers at the White House need to be cleared to enter certain areas.  And when you are in those certain areas, there are rules to be followed

Overall, I find the comments and article to be terribly 1-sided.  No thought was put into the various aspects that are unseen by the general public.  People need to realize that the White House is place of highly sensitive and critical information.  Putting the latest/greatest might be nice, but those items need to  protect that sensitive and critical information.  At least one commenter, made a bit of sense: "Honestly, I think all that "tired" technology is pretty much common sense." (Anonymous)  But on a second glance, seems like Wired was hammered a bit for not thinking outside of the proverbial box :)


Stupid Questions With Simple Answers

January 20, 2009 22:44 by daub815

Working in the IT field can be frustrating.  Especially when users do not want to help themselves.  It's funny that most IT people are paid to read the manuals and figure out the issues people do not want to figure out for themselves.  Thus, someone came up with the best service for IT's canned responses: LetMeGoogleThatForYou.com

Go ahead and give it a try: Kevin Daub

Now that wasn't too hard was it?  Actually, I should probably take some of my own medicine because I am guilty of asking before Googling, but live and learn.  Then ask Google.


New Theme

January 16, 2009 22:26 by daub815

Creating my own theme was going pretty well, but I am not much of a designer.  I am more of a programmer; therefore, I stopped and choose my favorite theme  in the recently released Theme Pack.  So in the recent weeks expect new programming items and modifications to this theme.  First, I need to remove that flower in the upper-left.


SNL: Neil Patrick Harris

January 14, 2009 22:05 by daub815

Probably one of the best actors of his time and has some of the best comedic timing.  And who else is willing to point back at themselves and laugh:


Google Reader Faves

January 11, 2009 19:52 by daub815

I was happy with Juan's Google Reader Picks, but I am not a huge fan of a  massive amount of javascript (removal of faviconizing is nearing).  So I went about creating a server side version.

Although I could have used the Twitter widget's code (didn't notice until I was done), I decided to try out XML to Linq.  Therefore, you will need to update your Web.Config to .Net 3.5.  However, future updates will remove that requirement due to BlogEngine.Net's current dependency on .Net 2.0.  Read on to find out how to install my widget.

More...

Google Reader Picks Widget

January 10, 2009 17:51 by daub815

Like most people, I don't like to reinvent the wheel.  I wanted to add my Google Reader shared items to my blog via the BlogEngine.Net widget framework.  I found a great widget.  So I installed the widget and followed his instructions.  Unfortunately, I ran into a few issues.

More...

Huge Update

January 9, 2009 22:11 by daub815

After about 6 hours, I have a very nice looking website.  I still have some more updates before I can submit the theme, but it is getting there.  Most of my time was spent debugging my issues with the Syntax Highlighter.  Most of the errors were my own fault, but BlogEngine.Net and  jQuery sometimes doesn't play nice together especially with paths.  In addition, I added faviconizing script, but I do not know how much of a fan I am of it.  Either way, this is a great start.  In addition, my old website has been replaced because I was confident in this update and path issues.


BlogEngine 1.4.5 RSS Issue

January 8, 2009 20:42 by daub815

I tried to add FeedBurner with my new blog website.  However, there was a big error: Specified argument was out of the range of valid values. Parameter name: utcDate.  How nice?  Well, I did some googling and found this answer (Thanks krishnan).  However, the answer was a bit vague as to when the bug fix occurred, so I did some investigating.

The error usually occurs when the hosting server is not in the same time zone as the blogger (i.e. me = East Coast and GoDaddy = West Coast).  That means the server offset time is usually +2, so the posts appear right to the blogger. 

More...

Minor Updates

January 8, 2009 19:54 by daub815

I added some minor updates to some images (opml and rss icons).  In addition, I have added some people to my blogroll: Bill and Scott.  In addition, I have added some styling to the recent posts and comments widgets.  However, I do not have those widgets displayed.  Once I am complete with the theme (aka skin everything), I plan on posting it to BlogEngine.Net and hopefully get it included in the theme pack.  Then I will heavily modify the code behind because there are a number of annoyances:

  • RecentComments and RecentPosts - both need a space
  • Change the output of some of the widgets
  • Move the rss links around

Until next time.