Geeks With Blogs


Path Notes of a Kodefu Master blog July 2009 Entries
Automating KiGG Submission
This is part 3 of a series on KiGG Automation. Code in this article may be dependent on previous entries. Part 1: Automating KiGG Publishing Part 2: KiGG’s Story Summary Part 3: Automating KiGG Submission When you’re first starting a KiGG site and your user base is low, creating a bot can ease the pain of obtaining content. However, in the default install of KiGG there is no way to automate this. You can search blogs and news sites, but submitting articles from those sites is a manual process; even ......

Posted On Thursday, July 30, 2009 5:38 PM

Free PowerShell EBook
Looking for something to do this weekend? Looking to master PowerShell? Windows PowerShell MVP Dr. Tobias Weltner has released a free book just for you, Mastering Powershell! This isn’t a little cheatsheet; it’s 567 pages long. Here’s a linked chapter list if you want to jump directly into a topic. Chapter 1. The PowerShell Console Chapter 2. Interactive PowerShell Chapter 3. Variables Chapter 4. Arrays and Hashtables Chapter 5. The PowerShell Pipeline Chapter 6. Using Objects Chapter 7. Conditions ......

Posted On Friday, July 24, 2009 3:24 PM

Basic Unit Testing Guidelines
When I recently started looking through a certain project’s tests, I was struck by how difficult it was for me to read and understand. The tests were laid out haphazardly, and the code contained enough logic to make me wonder if it would be easier to analyze the functional code. Tests don’t do anyone good if they require that much analysis. In contrast, one of my favorite open source projects contains tests that allow me to learn the functionality of the system without looking at any functional code. ......

Posted On Thursday, July 23, 2009 3:26 PM

2009 Silverlight Control Builder Contest
A week ago, I posted a few summer contests to partake in during those lazy weekends we all experience (yea right). Since that time, another contest was announced by Silverlight MVP, Page Brooks. This contest is all about building a Silverlight control. The boundaries are rather loose. You can make it practical, you can make it cool, but most importantly have fun making it! The deadline for the contest is September 19, leaving just 66 days to get your entry in. If you win, you’ll receive tons of goodies ......

Posted On Wednesday, July 15, 2009 3:46 PM

Response to CRUD is bad for REST
Arnon Rotem-Gal-Oz wrote an article for Architect Zone where he makes the claim that CRUD is bad for REST. I couldn’t disagree more, so I felt it important to respond to his criticism. CRUD which stands for Create, Read, Update and Delete, are the four basic database operations. Some of the HTTP verbs, namely POST, GET, PUT and DELETE (there are others like OPTIONS or HEAD) seem to have a 1-1 mapping to CRUD. As I said earlier they don’t. The table below briefly contrast HTTP verbs and CRUD Actually, ......

Posted On Wednesday, July 15, 2009 11:31 AM

Automating KiGG Publishing
When I set up my first KiGG site, I was surprised to discover that I had to manually publish articles. I assumed it would be an automated process that would run once a day. Since there are times I may not be able to log into my website, I set about figuring out how to automate the process. I should note that during this process, I didn’t use best practices. I had one requirement: make a program that I can schedule to publish stories on KiGG. I wasn’t really sure what I would need to go about doing ......

Posted On Tuesday, July 14, 2009 6:18 PM

WCF from CLR Functions
I don’t approve of calling a WCF server from SQL Server, but there was a business requirement that had to be met. It concerned regulations regarding the safeguarding of certain data elements. Due to performance issues and the application’s infrastructure, calling the service from the application itself wasn’t an option. Coding the CLR functions were the easy part. To do this, reference the Microsoft.SqlServer.Server and System.Data.SqlTypes namespaces (contained in System.Data.dll) and set the appropriate ......

Posted On Monday, July 13, 2009 5:16 PM

4 Cool Summer Coding Competitions
I never seem to have the time to enter coding competitions. It’s a shame, because they look like a lot of fun! I do usually bookmark these contests just in case I find myself with a free weekend, and I want to share those with the community. It may mean more competition in case I do enter, but it also means more cool community applications that I get to play with. For example, Twtri is great for updating Twitter or Facebook with your flight status, and it won the grand prize in the new CloudApp() ......

Posted On Tuesday, July 7, 2009 12:23 PM

Refactor ForEach to Join
Have you ever noticed the goofy logic that must be used to do simple things like creating a comma-delimited string? public string CommaDelimit(ICollection<... strings) { StringBuilder sb = new StringBuilder(); bool first = true; foreach (string s in strings) { if (first) first = false; else sb.Append(','); sb.Append(s); } return sb.ToString(); } This method should be hidden away in a static method, and in fact this kind of logic is hidden away in a static method. String.Join() will create ......

Posted On Monday, July 6, 2009 6:09 PM

Convert Class Library to Database Project
I’ve had this tendency to deploy CLR Functions manually by providing the dll and scripts to the data management team. This has generally worked out great, and I’ve always thought I’d have a dba available to perform the database duties. Imagine my surprise when I could not contact anyone today. Apparently database administrators take their holidays and vacations seriously (it’s Independence Day weekend for my non-American readers). Another developer asked me why I couldn’t deploy my clr functions ......

Posted On Thursday, July 2, 2009 3:41 PM

Copyright © Chris Eargle | Powered by: