Contents tagged with Code Snippets
-
Code to easily create zip files on the fly
The other day I posted about a free .NET library for creating zip files on the fly:
-
Nested sub-queries always elude me
Tonight I was writing the stored procedure which will return lists of data to the Codewise nighly updates. Basically, each night, Codewise will call a webservice and you need to return a list of all GUID's which have been either ADDED, UPDATED or REMOVED since the last time they called your service. The return Xml will look something like this:
-
Zip'ping files
Tonight I was using the ICSharpCode zip library to zip files for my Codewise implementation. Basically, when users nominate to make a Relase visible to Codeshare, I create a manifest file and package it and the Release file into a Codewise package.
-
Koders - searchable repository of code snippets
Found this site via Mitch's blog:
-
Using metadata and reflection to dynamically manage message routing
Most routing systems have a transformation phase where, based on its current state, a message is transformed into a document and routed to an endpoint. Systems such as BizTalk provide GUI's and designers to remove the need for cumbersome coding by making the rules and subsequent transformations configurable; here's an example of a switch statement in a listener class where the rules of the routing engine are hard-coded:
-
Prototype of a small trackback system
Last night I prototyped a small trackback system:
-
A couple of Windows Services resources
I've had a couple of Windows Services snippets that I've been meaning to "rip-to-blog" for a while now...
-
Some golden rules to adhere by when thinking about features
When we started doing a spec for ProjectDistributor Justin and I had some long chats about what features we wanted in and how they would be implemented. In fact, there were dozens of features that we discussed and, as we progressed we found that we needed a better methodology for quickly deciding whether features would be winners or losers. Additionally, we needed a better way to describe new features to one another so that we didn't waste cycles trying to understand what the other person was trying to say.
-
ProjectDistributor - online storage for tools and code snippets
ProjectDistributor is now pretty stable and nearly feature complete for iteration 1. This application was created as a place to store small or trivial pieces of code. Either code which was expensive to create - such as a prototype - or code which will be useful again in the future - such as a macro, server control or stored procedure.
-
Project Distributor - new features uploaded.
http://markitup.aspxconnection.com/
There are 2 cool new features that weren't present previously.
1) When you create an account (option available via the Login page) you have the ability to add "Bookmarks" and categorize them. Bookmarks are intended to be a store of all your favourite online tools and widgets. You can bookmark both internal and external projects. When you view an internal project and you are signed in, you will see a "Add to Bookmarks" link. To add external bookmarks and categories, go to your user profile page and add them from there.
2) You can now mark Groups/Projects/Releases as "private" and they will only be available to members of your Group. This is a great option if you have a Group which you've made public but you might have a certain project that you only want to be visible to yourself (such as a special Sql script or something).
You can start with the Bookmarks immediately by going to the site and creating a User account. To get setup with a Group (which allows you to upload your own projects), create a User account and send me an e-mail requesting a Group.