Blog     Résumé     Software     About     Contact     CP
   Page: 1 | 2
Friday, March 12, 2010
UNC and Absolute path regular expression

So, it\'s been a long time. Basically, most of my projects were scrapped (well, I\'d still like to do the file renamer, but that\'s definitely not gonna happen right now). I have two more projects added to the Software page.

SysPad is getting a huge overhaul on the FolderPad side of things. XML backend for saving folders and a filtering system for those of you (like me) that may have more folders than vertical screen space. And, as a result, a few other things will change, but all for the good.

Now for the real reason of this blog post: Regular Expressions. While working on this overhaul of FolderPad, I decided to use regular expressions to verify new folder additions that were being custom added. Since UNC paths are a valid input, I wanted a single regex to handle both. It was hard enough to find a decent regex just for absolute paths, let alone absolute and UNC together, so, here is what I came up with:

(([A-Z]:{1}\\\\)|\\\\{2})[(\\w~`!@#$%^&\\(\\)+=\\{\\}\\[\\];\',.\\\\)]+

Posted at 3:55 PM EST by Robert Burke       0 Comments
Tuesday, October 27, 2009
Project updates

Well, I have an update for SysPad ready to go to \"hopefully\" fix a bug. The problem is, I haven\'t had access to my desktop in almost a month. so, I haven\'t been able to roll it out. Soon. Hopefully this week. Furthermore, I\'ve put the file renamer and backup utility on hold; for now.

But, on my notebook, I\'ve been working on a new project; a Gmail notification program that supports multiple accounts and lets you delete/mark as read new emails.
This is my first foray into C# and custom controls (because I\'ll need one or two), and maybe even WPF (for a nicer UI). The custom controls pretty much need to be done; the WPF might not come till sometime after the launch of the software. Also, it will be using IMAP for it\'s connection protocol.

I\'ve seen several notifier programs. All have shortcomings. One, for instance, crashes too many times even though it is only built for the Windows7 platform. Another only allows 5 accounts and has the most awful layout ever They even made a custom titlebar and stuck their website link in it and made custom abilities for the minimize/maximize buttons which goes against programming convention and bugs the heck out of me.

So, I\'ve decided to make my own. I\'m hoping to get it done soon. Making custom controls may take me a bit but I really need this program for my own personal use so I would like to see it done quickly.

Posted at 4:03 PM EST by Robert Burke       0 Comments
Monday, September 28, 2009
SysPad 4.6.5 launched

SysPad 4.6.5 has been launched. This is one of the biggest updates ever. It has fixed several bugs, added a few features and now comes with an Automatic Updater so that you don\'t have to monitor the download site.

Whenever SysPad is restarted, it will check for new versions. Or, by clicking Updates on the TrayIcon menu, it will check through the updater right then.

There are still many features I want to add so this project is definitely not dead yet!!!

Posted at 12:13 PM EST by Robert Burke       0 Comments
Thursday, August 27, 2009
Being Lazy

Well, time for a small update I guess about my programs I suppose.

I have made some progress on both my File Renamer and File Transfer programs. The File Renamer is my favorite one to be working on right now since it will be the most useful to me at work.

But, sadly, I\'ve been lazy and not working on any of my programs lately. SysPad ran into a major bug I had planned for version 4.0 and I\'ve been too lazy to address the issue and get 4.0 out.

Mostly, I\'ve been playing EVE Online I guess with my free time. It\'s a fun game :)

Not much really going on. I think when I get SysPad 4.0 rolled out, I\'m gonna try to get LifeHacker to review it.

Posted at 5:39 PM EST by Robert Burke       0 Comments
Wednesday, August 5, 2009
My.Settings data types and bindings workaround

In many cases, you can\'t assign an object of one type to that of another (say String to ListViewItem). It just won\'t work.

However, the numeric System data types, such as Integer and Double can be assigned to properties such as the .Text of a TextBox or used in the first expression in MessageBox.Show().

However, what can\'t be done is bind an Integer or Double variable, that is defined in the My.Settings namespace, to the .Text of a TextBox. It\'s sort of annoying because if you need a variable in numeric data type but also want a TextBox bound to it so that it updates My.Settings with user input, you can\'t do it. You would have to actually assign the values to the variable then Save() My.Settings.

Here\'s the way around it. Set all the variables as String that you want bound to TextBoxes. Bind them to the TextBoxes but go back and change them to the desired data type. Even though it is illegal to assign a My.Settings variable that is Integer to a String-based property of a Textbox, you won\'t lose the binding just because you changed data types after the fact. Now, the data in the TextBoxes will update to My.Settings automatically as if those variables were Strings.

Posted at 2:48 PM EST by Robert Burke       0 Comments
RSS Feed [Subscribe]

Latest Posts
UNC and Absolute path regular expression
Project updates
SysPad 4.6.5 launched
Being Lazy
My.Settings data types and bindings workaround

Recent Tweets [Twitter.com]


Blog Archive
March 2010
October 2009
September 2009
August 2009
July 2009
June 2009