The amazing adventures of Doug Hughes

Archive for November, 2005

Model-Glue .NET

Earlier this year, as Joe was working furiously on Model-Glue, I ported the .8 version of MG to .NET. Now, I’ve never actually used it for anything, but I few people have requested the source code and I thought it couldn’t hurt to publicly oblige.

So, for all those who have requested the source it can now be downloaded (see below). If I remember, I’ll see if Joe minds if I add it under the MG bleeding edge Subversion repository.

Model-Glue .NET is an implementation of the Front Controller MVC design pattern (as explained here by Microsoft .)

Now, to be honest, it’s been many, many months since I looked at this last. I don’t remember what the heck I did or how well it worked. I don’t remember much of anything. (I worked at ASI then, I blocked most of that time period out.) So, if you’ve got a question, there’s a good chance I can’t answer it.

The zip I uploaded is made up of these projects:

ModelGlue This is the Model-Glue framework for .NET. This is roughly equal to the .8 version of the ColdFusion version. If I remember correctly you’ll need to refer to this project any apps you create. There are some other useful documents under this project. Look at them!

ModelGlueApplicationTemplate This is a web project which is intended to mimic the application template that comes with the CF version. Chances are you’ll need to create a new web project and then copy stuff from this. Make note: you’ll want to take a close look at the web.config file. There’s a line or two in there which set the path to the config file and that the Index.aspx file is supposed to be handled by ModelGlue.

NameUpperCaser This is a sample web project. Use this to see a sample implementation of Model-Glue .NET.

Sorry, but there’s no documentation. I’m not sure there ever will be. It depends on if I ever get motivated to move beyond what I’ve done so far.

If anyone actually uses this and has any material feedback, please add a comment or two.

Improving your BitTorrent Download Speed

We’ve all heard people ranting about how great BitTorrent is. Until a few days ago, I was in the dark as to why people were so excited. I had never seen download speeds greater than about 10k. Limitless bandwidth? Ha!

That was true, until last week when I had a burning need to download a particular file via BitTorrent. Unwillingly, I started the download and frowned at the 24 hour estimated download time and the abysmal speed. On a whim I decided to ask Google how I could improve BitTorrent download speeds. Google, obligingly, returned this page.

The solution, as it turns out, is rather simple. Basically, BitTorrent uses the ports between 6881 and 6889 for high speed transfers. If your firewall has these blocked you’re not going to see very high transfer speeds.

I happened to be behind a Linksys router. After pestering the owner a bit I was able to extract the logon information and open the ports up. Subsequent downloads were much faster. I was seeing 100k and higher download speeds. This brought my download time to under an hour. Woo hoo!

So, if you’re seeing slow BitTorrent download speeds, you need to open these ports up on your firewall.

Reactor Refactored / Reactor 0.5 Alpha

I just wanted to make a very quick post to indicate that the Reactor has been updated, but not yet published. The latest version can be downloaded from the BER. A lot has changed and I just don’t have time to go into it. If you’re using the earlier alphas a lot has changed. Sorry!

I hope to get the time to write a blog entry about what’s changed and what’s new this weekend. In the meantime, those who are not week of heart can introspect the public objects and take a look at the testDb.cfm file to get some ideas as to where to start.

Next up: MySQL (just around the corner!) support and official documentation (this is going to take forever to write!).

Tag Cloud