Friday, RegEx, IDataReader and C#...

by Codewiz51 October 31, 2008 19:38

This has been an interesting week. I've been working on the implementation of IDataReader and IEnumerable for a couple of classes in C#. The classes parse some complicated text files using regular expressions.

I've learned more about the .Net class that implements regex than I would care to know. (I am happy to have learned about the class.) I've also run into some minor cases where a regex I worked out in perl didn't work the same way in the Microsoft component. However, the MS component has many strong points that made implementing the parsing method simpler. This isn't a Microsoft bash, it's just there are some minor differences when it comes to handling /r/n sequences. (I was able to work around them without issue.) I can say that learning regular expressions is a requirement for programming. You can accomplish your parsing task without using regex, but you can't do it in six or seven lines of code. My advice is to obtain a regex editor and start learning.

More...

Experience Internet Censorship, the Communist Chinese Way...

by Codewiz51 October 28, 2008 20:18

I was interested when I came across this article on a financial web site: Quick Hits: Scaling the Great Firewall of China

A little searching popped up the original web site: China Channel Firefox Add-on

I tried the add on, after thoroughly examining the file. I am astounded at what real censorship looks like. It reminds me why I don't trust my own government. Bureaucrats in China aren't a lot different from bureaucrats in the U.S.S.A. Neither one answers to the people.

Setting up a VPN client

by Codewiz51 October 27, 2008 21:23

Our satellite office finally has a VPN installed. Simple enough eh? Not if you are me:

  1. Friday afternoon, before leaving office, copy VPN client software to flash drive. 
  2. Place installation instructions in book satchel, leave flash drive plugged into office computer and drive home.
  3. Saturday evening, sit down at home computer, remove installation instructions from book satchel.
  4. Spend 30 minutes looking for flash drive before realizing it is back at the office.
  5. Give up and enjoy rest of weekend.
  6. Monday, place flash drive in satchel first thing in morning.
  7. Hurry home and install software.
  8. Software installation is successful.
  9. Try to connect to office computer, but fail.
  10. Realize that remote access is disabled on office computer.
  11. Realize that I cannot connect to office computer with computer name, I need an ip address.
  12. Mutter foul tasting words under breath.
  13. Wonder if bringing work home on flash drive isn't easier.
  14. Start new adventure on Tuesday to complete VPN software connection.

Tags: ,

Life

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen | Modified by Mooglegiant




Disclaimer

This blog represents my personal hobby, observations and views. It does not represent the views of my employer, clients, especially my wife, children, in-laws, clergy, the dog, the cats or my daughter's horse. In fact, I am not even sure it represents my views when I take the time to reread postings.

© Copyright 2008