July 2003 - Posts

So how's about a project I haven't goofed up yet?

I started to make a little headway on the UI of Miny, my first WinForms project. Miny is the name given to the project because a change in the data structure requires a "one to miny" relationship, whatever that is<G>.

All I really have to say at this point is wow - the MagicLibrary is a must-have if you're developing WinForms. It comes with sample source code, and thanks to that and a helpful Example by Lutz Roeder (sp?) with a similar library, I hit the ground running with some VS.NET - style menus including images.

nice.

Okay, I'm about to show a little of my ignorance here, but that's okay - at least I'm blogging again.

I just tracked down a bug in some software I wrote that was actually my fault (this time). It had to do with DataSets, their disconnected behavior, and a corresponding method ".AcceptChanges()". When I had originally added this cute little method to my app, I figured that it would fire off a message to the underlying database telling it the changes I've made are accepted.

Wrong. According to MSDN:

When AcceptChanges is called, any DataRow object still in edit mode successfully ends its edits. The DataRowState also changes: all Added and Modified rows become Unchanged; Deleted rows are removed.

and it goes on to say:

The AcceptChanges method is generally called on a DataTable after you attempt to update the DataSet using the DbDataAdapter.Update method.

which, of course, I didn't bother to read the first time 'round. Basically, I was "accepting changes" before the update/insert was made - the bug was not discovered, however, until I tried to put in a new record into the database...I was testing on records which were already entered, and the last method with a straggling .AcceptChanges() method was never called, hence the call was never removed.

The worst part is that I recognized the rush of adrenaline as someone told me something live is "broken" - heh, that could mean just about anything. Thankfully, I knew where the problem child of this beast was - in a monolithic page with too many controls for its own good. Bug found, targeted, searched, destroyed.

HAND.

Yesterday I picked up my first Windows Forms project.

I think it should be pretty lightweight -> it's going to be a data entry app for "API Headers", which is descriptive information about Oil/Gas Well logs. The hardest part I think will be converting the FoxPro Database over to Sql Server - not the data itself, but figuring out where to change what is basically a monolithic table (in spreadsheet fashion) to more normal data. Who knows? Maybe it'll be fun. heh.

In the meantime, I decided to write a front-end to a nice little gem embedded into aspNetDns, WhoIs. I found myself wanting to do whois queries, and sometimes if you use an online search too often, the server will get bogged down - not a fun chore, for me or the server admin. The component makes it extremely easy to do a whois query - it took me 2 lines of code to accomplish it. If you want some more information on that and other utilities like it, ping Dave Wanta.

I haven't blogged for a while, I'm on an extended Monday <g>...but anyhoo I just ordered by upgrade to VS.NET Ent. Architect 2003. It sucks that they're sending it thru USmail only, but for $29, I'm really not complaining that much. 

I just made it to Redmond. Big thanks to Jim Ross, MVP for giving me a ride to my hotel. gotta go!

NYT: Hackers Hijack PC's for Sex Sites

...since the hijacked machines download the pornographic ads from a single Web server. According to the computer investigators, that machine apparently is owned by Everyones Internet, a large independent Internet service company in Houston that also offers Web hosting services to a large number of companies.

Wow, close to home, even.  In ev1's defense, they also own RackShack (for servers) and their *very* competitive priced package includes ~300Mb of free-for-all web space. They have disclaimers and such, but if a handful of their ~100,000 users (of which I am one) uses their space for less than honorable content, how would you track that down?

Andrew : Ya just had to post that, didn't ya! 

Of course I did! First, Quake II is one of my favorite games (right up there with Duke Nukem:)...I haven't caught up with the times yet<G>

More importantly, I'm going to be working with some C/C++ code in the very near future, and the example shows both the old and new (I think) source as a means to show how "easy" it is to port from unmanaged to managed code (in C++); there4 I'm very interested in it.

Now, if you'll excuse me, I have some monsters to kill.;)

Nice. ...Must...focus...on work...

From Brad. Interesting… 

The thing that sold Windows as a viable gaming platform for most people was the appearance of WinQuake (and then later GLQuake and QuakeWorld). Taking a cue from past days, Vertigo Software has ported the now GPL'd Quake II engine to .NET (using Managed C++, of course).

[The .NET Guy]

 

Frans Says, in comments:

You can buy the upgrade for vs.net 2003 for 29$ even if you have a vs.net 2002 you got with an MSDN subscription that is no longer valid. The license of that vs.net 2002 is still valid thus you are entitled to buy the upgrade.

Thanks Frans. This would seem like a good idea, except that I'm in the middle of a couple of projects being built w/ VS.NET 2002. Would an upgrade mean that I will now have only 2003? I'm not sure, so I'm not going to upgrade just yet.

Thanks for the tip, tho!

I just installed v1.1.4322 of the dotnetfx today, bacause it's looking like the nifty tools that I'm starting to see are all being built with this version of the framework. Thanks to Larkware News for providing links to a couple of the tools that I've been using since the install - 2002 to 2003 (and back) Project converter   and ASPNETVersion Switcher.

The former is pretty neat in the fact that I no longer have an MSDN subscription :'( so I can effectively use and view Examples written with the newer, bluer(?) VS.NET 2003. The only problem(s) was (were)

  • written w/ v1.1 dotnetfx, so I had to install that.
  • source code provided, but also written (um,) at v1.1, so I couldn't use the proggie on isself
  • rar'ed. I had to download winrar to extract the files.

wah-wah.:'(

The latter, well, that's just cool. Quite useful little utility, kudos Denis

More Posts Next page »