Thursday, December 27, 2007

sysobjects and Object Types in SQL Server

Object type. Can be one of these object types:

C = CHECK constraint
D = Default or DEFAULT constraint
F = FOREIGN KEY constraint
L = Log
FN = Scalar function
IF = Inlined table-function
P = Stored procedure
PK = PRIMARY KEY constraint (type is K)
RF = Replication filter stored procedure
S = System table
TF = Table function
TR = Trigger
U = User table
UQ = UNIQUE constraint (type is K)
V = View
X = Extended stored procedure

Sunday, December 23, 2007

Slashdot English

"Re:English anyone?? (Score:5, Funny)

by flyingfsck (986395) on Sunday December 23, @02:58PM (#21799764)
Slashdot Engrish is to be informating and not to be laughful at."

Wednesday, December 19, 2007

Open Source XML Diff Written in Java

From http://www.manageability.org/blog/stuff/open-source-xml-diff-in-java:

"Jon Udell has a column about "Structured Change Detection" where he mentions some XML diff tools that exist. The tools that he mentioned are proprietary implementations, so I was curious if I could find some open source ones. Well fortunately, I've found a whole bunch of them:

  1. VMTools - The toolkit contains tools for automatically generating differences between two XML documents. The difference document generated is optimized for minimal size. Supports mark-up style documents in addition to data documents.
  2. 3DM - The 3DM tool is a tool for performing 3-way merging and differencing of XML files. Unlike line-based tools, such as diff and diff3, 3DM is aware of the structure of the processed XML documents. 3DM is not limited to update/insert/delete operations, it also handles moves and copies of entire subtrees. 3DM is not reliant on edit histories; the only input needed are the XML files.
  3. diffxml - Standard UNIX tools exist for comparing (diff) and patching (patch) files, which operate on a line by line basis using well-studied methods for computing the longest common subsequence (LCS). This project contains XML diff and patch utilities. Also contains an implementation of a Delta Update Language or DUL.
  4. diffmk - Converts the documents into two lists of nodes (text and/or element nodes) and attempts to find the longest common subsequence of nodes. Phrased another way, it finds the smallest number of additions and deletions to each list that are required to make the two lists the same.
  5. XMLUnit - XMLUnit for Java provides two JUnit extension classes, XMLAssert and XMLTestCase, and a set of supporting classes (e.g. Diff, DetailedDiff ) that allow assertions to be made about the differences between two pieces of XML. XMLUnit for Java can also treat HTML content (even badly-formed HTML) as valid XML to allow these assertions to be made about the content of web pages too.
  6. OpenSHORE XML Merger - ool to insert XML tags from differnt sources into one or more text files. The Java program reads a very simple file format (*.xmlm files) with one XML command per line. XMLM sorts these commands, removes duplicates, ensures correct tag structure and generate XML files from listed files.
  7. XOperator - XOperator is a scriptable command-line tool and library to compare, merge and synchronize XML documents, a framework to formulate and evaluate algebraic expressions on XML trees and a framework to express object-oriented inheritance (and more) in pure XML.
  8. JXyDiff - JXyDiff is a based on XyDiff. It was originally developed at INRIA. It employs a novel Change Model tailored to XML data. It is a tree oriented algorithm that is fast and can detect if a node has been moved or updated.
  9. DiffX - DiffX is an open source Java API for comparing XML documents by analyzing the sequence of XML events. When processing XML data for comparison it more interesting to know that a word in the text of chapter X, paragraph Y has been changed rather than knowing that line Z is different. DiffX can ignorethe order of the attributes and white space for indentation or namespace prefixes.
  10. XMLPatch - XMLPatch, developed at Nokia, is a framework utilizing XML Path language (XPath) selectors for the use in applying a set of patches to a document. The framework includes a simple xml-diff utility.
  11. XMerge - The XMerge SDK provides a framework for converting documents between different formats using conversion plugins to read and write each format. In addition to format conversion, the XMerge SDK provides a framework for merging changes in one document format into an original document. XMerge provides plugins that are designed to support the OpenOffice.org XML file format. The framework is able to support "chaining" of conversions, also known as an "Any-to-Any" conversion, eg. convert from a Palm document to a PocketPC document through the intermediate OpenOffice.org XML file format."

Tuesday, December 18, 2007

"Could not load file or assembly or one of its dependencies. Access is denied" when compiling .NET assembly

Compiling with a reference to a third-party, licensed control. (UltraGrid-something-something.) Encountered the error: "Could not load file or assembly or one of its dependencies. Access is denied"

The problem was that the directories in which the source files existed had weird permissions. (I think the root cause was using a cygwin version of git to create the subdirectories.) I changed the permissions using the "Advanced" button of the Security tab. When done properly, the "Inherited From" column showed "C:\" as where the privileges were inherited from. The broken version had the "inherited from" as inheriting from nothing.

I believe I had to check the "Inherit" box to get this to work properly, and then click the "Remove" button in the Advanced view to remove the permission entries which did not inherit from C:\.

Correct permissions look like this:

Friday, December 14, 2007

Case sensitivity in bash

Case sensitivity in bash: How to turn off case sensitivity in the bash shell.

And, "to turn off the annoying beep each time you make a typo on a Unix terminal (Linux, cygwin etc.), just add the line
    set bell-style none
to the file .inputrc under your home directory."

Friday, November 16, 2007

EasyVMX!: Virtual Machine Creator

EasyVMX!: Virtual Machine Creator: "EasyVMX! is the simple and failsafe way to create complete virtual machines for VMware Player on the web. You can install any Windows, Linux, BSD or Solaris, and test LiveCDs in a safe environment."

Tuesday, November 13, 2007

Danger! Lousy Employer Ahead

Danger! Lousy Employer Ahead: "Danger! Lousy Employer Ahead If a potential employer wants proof of your previous salary and gives vague answers to specific questions, bolt for the exit"

Wednesday, October 24, 2007

How Bush wrecked conservatism | Salon.com

How Bush wrecked conservatism | Salon.com: "In the age of Bush, even the conservatives' much-vaunted moral clarity does not always bear close inspection. A Pew poll taken in March found that only 18 percent of self-described conservative Republicans believed that torture was never justified. Who was it who said, 'Do not repay anyone evil for evil, but take thought for what is noble in the sight of all ... Do not be overcome by evil, but overcome evil with good'? It must be one of those damn liberals.*

*Romans 12:17, 21"

Tuesday, October 23, 2007

15 Answers to Creationist Nonsense: Scientific American

15 Answers to Creationist Nonsense: Scientific American: "Opponents of evolution want to make a place for creationism by tearing down real science, but their arguments don't hold up"

Wednesday, October 17, 2007

Occasionally Connected Systems Architecture: Concurrency

Occasionally Connected Systems Architecture: Concurrency: "The problem of concurrency is a familiar one in the development of multi-user systems. Most of the time, optimistic locking is preferred because it results in better throughput. However, pessimistic locking has its place as well for those cases where only one user should be allowed to work on the data. Both of these solutions break down once users start working offline and try to synchronize their updates with the server later."

Thursday, October 04, 2007

How Toyota and Linux Keep Collaboration Simple - HBS Working Knowledge

How Toyota and Linux Keep Collaboration Simple - HBS Working Knowledge: "The Toyota and Linux communities illustrate time-tested techniques for collaboration under pressure: Share knowledge widely, frequently, and in small increments, and use universally available tools to do it. From Harvard Business Review."

Lean Manufacturing Blog, Kaizen Articles and Advice | Gemba Panta Rei

Lean Manufacturing Blog, Kaizen Articles and Advice | Gemba Panta Rei:

Nine Rules for Fighting Endless Meetings

I've heard that at Toyota the meetings are 60 minutes long, with 50 minutes of actual meeting time and 10 minutes to get to the next meeting. The use of the standardize A3 size one-page format to communicate the progress on PDCA problem solving keeps meetings on time. This is truly impressive, but we won't all get there in one leap.

Here are nine rules for fighting endless meetings:

#1 Start on time. You don't arrive 15 minutes late for a school examination. You don't arrive 15 minutes late for your flight. If you do, you don't fly. You don't arrive 15 minutes late for a job interview. Yet once we pass the test, make the flight and get the job, we think nothing of making others wait for meetings at work. Why?

#2 Have clear objectives. Meetings will be more productive when you start with an agenda that answers the questions: Why am I at this meeting? Who requires that I be here? When does this meeting end? How will we know if the meeting is successful?

#3 Be prepared. Review the agenda or other background information ahead of time. Know where the meeting will be held and how long it takes to get to and from that meeting place so you can be on time.

#4 Be engaged. This starts with turning off your cell phones or blackberries. Ideally, put them all on the table where they are visible to all. Make reaching to answer them is a visible offense. Pay $1 towards charity if you reach for your phone, unless it's an emergency. As long as meetings are kept short, you can get back to people who call you in a reasonable amount of time. Stand up rather than sit, it will keep you more aware.

#5 Communicate visually. Humans process more than 80% of information through their sense of sight. Psychologists say most of communication happens through body language, then tone of voice and a smaller portion through the actual content of speech. Give and read visual cues. Use images to tell a story and anchor your communication, rather than talking on and on about something without structure.

#6 Solve problems. If everything is going well, why meet? Ideally meetings should help solve problems. If there is a clear objective and a problem to solve, the meeting can end either when the problem is solved or everyone knows what to do to start solving the problem. Problem solving is engaging, and in that is what we are all here to do.

#7 Practice genchi gembutsu. Whenever possible hold the meetings at the location where the particular problem or issue being discussed has occurred. This is more visual, engaging, and improves direct access to the facts. This speeds up problem resolution by taking away opportunities for conjecture and blurring of the actual condition.

#8 End on time. You need to get to the next meeting on time.

#9 Avoid the Three Evils of Meetings as taught by Takeshi Kawabe, former executive of Showa Manufacturing Co. and student of Taiichi Ohno:

1. Meet but don’t discus
2. Discuss but don’t decide
3. Decide but don’t do

These nine rules will develop the behaviors to support more effective meetings.

By Jon Miller - March 15, 2007 5:21 PM

Friday, September 14, 2007

This was useful when I was looking for the key to view the next error in Visual Studio 2005 C# profile (Ctrl-Alt-F12, by the way):

[PDF]

Microsoft Visual C# Default Keybindings

File Format: PDF/Adobe Acrobat - View as HTML
shortcuts, warnings, and error. messages. ... Notes: These key bindings are only available through the Visual C# Development. Settings. ...
download.microsoft.com/download/e/7/9/e79cce22-b196-4b9f-9ea7-b1a21f5342e9/VCSharp_2005_color.pdf - Similar pages - Note this
[PDF]

Microsoft Visual Basic Default Keybindings

File Format: PDF/Adobe Acrobat - View as HTML
keyboard shortcuts and detailed descriptions, see ... for Visual Basic 2005 is a free application that you can download to. help do this. ...
download.microsoft.com/download/d/6/5/d65efda0-cf25-4720-8013-b3080586c5bb/VB_2005_color.pdf - Similar pages - Note this

Xona.com - Visual Studio .NET Keyboard Shortcuts Macro

Xona.com - Visual Studio .NET Keyboard Shortcuts Macro: "This article describes how to create and run a macro, from within Visual Studio .NET, which produces an HTML table showing all of your current keyboard mappings (shortcuts). It is useful for finding key bindings, and provide a much easier way to merely browse through them, rather than using Visual Studio's ridiculously small browse window (which shows 4 and a half listings at once)."

Wednesday, September 12, 2007

Re: Inner workings of RDA - MSDN Forums

Re: Inner workings of RDA - MSDN Forums:

"These 7 columns are used for tracking inserts and updates in the table. The tracking is required to identify the data that has changed for synchronization with the data in SQL Server. These are system columns and used only for replication of data. The description of the columns is as given below:

Col Name

Type

Description

__sysIG

INTEGER

The local generation at which the row has been inserted.

__sysCG

BIGINT

The generation of the change

__sysCD

DATETIME

The time and date the change occurred.

__sysP1

VARBINARY

Custom Property

__sysMC

VARBINARY

The bitmap of the changed columns

__sysMCS

VARBINARY

The bitmap of the changed columns, saved for change forwarding between sync partners.

__sysSR

VARBINARY

Server Reference

Apart from the 7 systems columns that are added to each SQL Mobile table which has data replicating with SQL Server, there are 3 systems tables - __sysTrackedObjects, __sysRowTrack, __sysDeletedRows. The systems tables are used as following:

__sysTrackedObjects : Holds information about various tracking related objects, such as sync partners, tracked tables, tracked columns, properties etc.

__sysRowTrack : Contains change information about rows and columns currently, it only contains information about rows deleted from user tables.

__sysDeletedRows : Contains temporary information about deleted rows. This information is merged into the __sysRowTrack table upon beginning of a sync

The __sysDeletedRows table holds the information about the deleted rows

Thanks

Ambrish"

Friday, August 31, 2007

The Joel Test: 12 Steps to Better Code - Joel on Software

The Joel Test: 12 Steps to Better Code - Joel on Software: "Have you ever heard of SEMA? It's a fairly esoteric system for measuring how good a software team is. No, wait! Don't follow that link! It will take you about six years just to understand that stuff. So I've come up with my own, highly irresponsible, sloppy test to rate the quality of a software team. The great part about it is that it takes about 3 minutes. With all the time you save, you can go to medical school.

The Joel Test
1. Do you use source control?
2. Can you make a build in one step?
3. Do you make daily builds?
4. Do you have a bug database?
5. Do you fix bugs before writing new code?
6. Do you have an up-to-date schedule?
7. Do you have a spec?
8. Do programmers have quiet working conditions?
9. Do you use the best tools money can buy?
10. Do you have testers?
11. Do new candidates write code during their interview?
12. Do you do hallway usability testing?"

Thursday, August 30, 2007

Patrick Labatut's personal page - FAQ

Patrick Labatut's personal page - FAQ: "How do I disable the internal PC speaker under Windows XP ? Go into the 'Device Manager', enable the 'Show hidden devices' option in the 'View' menu. Then open 'Non-Plug and Play devices' and disable the 'Beep' device."

Tuesday, August 28, 2007

Diceware Passphrase Home Page: "This page offers a better way to create a strong, yet easy to remember passphrase for use with encryption and security programs. Weak passwords and passphrases are one of the most common flaws in computer security. Take a few minutes and learn how to do it right. The information presented here can be used by anyone. No background in cryptography or mathematics is required. Just follow the simple steps below."

Here's the word list, and a PDF version of the word list.

Here's a list of easy-to-type words, i.e. that alternate between left and right keys on the keyboard: http://flamebox.narod.ru/lrwords.txt. It's mirrored here: http://brink.st/config/files/docs/lrwords.txt

Here's a password tester to test the results: http://www.securepassword.info/index.php

PasswordSafe is a good password generator.

Thursday, August 23, 2007

Enterprise Library problem solved!

I was unable to create custom handlers in the Enterprise Library. The key is this. Note in particular the code in bold and italic.

The key is the constructor. It requires a signature of (NameValueCollection ignore).
using System;
using System.Collections.Specialized;
using System.IO;
using System.Text;
using System.Diagnostics;
using System.Windows.Forms;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration;

namespace CustomExceptionHandling
{
[Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationElementType(
typeof(Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.CustomHandlerData))]
public class MyCustomExceptionHandler : IExceptionHandler
{
public MyCustomExceptionHandler(NameValueCollection ignore) { }

#region IExceptionHandler Members
//...
#endregion
}
}

Tuesday, August 21, 2007

How to: Launch the Debugger Automatically

How to: Launch the Debugger Automatically:

"Sometimes, you may need to debug the startup code for an application that is launched by another process. Examples include services and custom setup actions. In these scenarios, you can have the debugger launch and automatically attach when your application starts.

To setup an application to launch the debugger automatically

  1. Start the Registry Editor (regedit).

  2. In the Registry Editor, open the HKEY_LOCAL_MACHINE folder.

  3. Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options.

  4. In the Image File Execution Options folder, locate the name of the application you want to debug, such as myapp.exe. If you cannot find the application you want to debug:

    1. Right-click the Image File Execution Options folder, and on the shortcut menu, click New Key.

    2. Right-click the new key, and on the shortcut menu, click Rename.

    3. Edit the key name to the name of your application; myapp.exe, in this example.

  5. Right-click the myapp.exe folder, and on the shortcut menu, click New String Value.

  6. Right-click the new string value, and on the shortcut menu, click Rename.

  7. Change the name to debugger.

  8. Right-click the new string value, and on the shortcut menu, click Modify.

    The Edit String dialog box appears.

  9. In the Value data box, type vsjitdebugger.exe.

  10. Click OK.

  11. From the Registry menu, click Exit.

  12. The directory containing vsjitdebugger.exe must be in your system path. To add it to the system path, follow these steps:

    1. Open the Control Panel in Classic view, and double-click System.

    2. In System Properties, click the Advanced tab.

    3. On the Advanced tab, click Environment Variables.

    4. In the Environment Variables dialog box, under System variables, select Path, then click the Edit button.

    5. In the Edit System Variable dialog box, add the directory to Variable value. Use a semicolon to separate it from other entries in the list.

    6. Click OK to close the Edit System Variable dialog box.

    7. Click OK to close the Environment Variables dialog box.

    8. Click OK to close the System Properties dialog box.

    Now, use any method to start your application. Visual Studio will start and load the application."

Thursday, August 16, 2007

If the Freakonomics guys and Malcolm Gladwell hosted This American Life... - (37signals)

If the Freakonomics guys and Malcolm Gladwell hosted This American Life... - (37signals):

radio lab"Radio Lab (iTunes podcast link) is what you’d get if you put Freakonomics, Malcolm Gladwell, and This American Life in a blender.

"Each episode of the folksy science show is “a patchwork of people, sounds, stories and experiences centered around One Big Idea.” The banter between hosts Jad Abumrad & Robert Krulwich can be slightly grating at times, but, overall, they do a great job of boiling down complex subjects and keeping things interesting. The way they use sound is intriguing too."

Tuesday, July 24, 2007

.NET Security Blog : What Happens When My Application Throws An Unhandled Exception

.NET Security Blog : What Happens When My Application Throws An Unhandled Exception: "What Happens When My Application Throws An Unhandled Exception

There are several different behaviors that can occur when a managed application throws an unhandled exception. The two most common are to bring up an error dialog box, or to pop up the Visual Studio Just In Time Debugger dialog box.

The first behavior is the default when you install the CLR, but don't install Visual Studio. Installing VS modifies the default to pop up the select-a-debugger dialog. How does the CLR figure out what behavior to use? It checks a registry key, located at HKLM\Software\Microsoft\.NetFramework\DbgJITDebugLaunchSetting. The value of this key lets the CLR know what to do when it encounters an unhandled exception."

Andrew Coates ::: MSFT : Learning Online with Virtual Labs - Microsoft Visual Studio Team System Virtual Labs

Andrew Coates ::: MSFT : Learning Online with Virtual Labs - Microsoft Visual Studio Team System Virtual Labs: "Learning Online with Virtual Labs - Microsoft Visual Studio Team System Virtual Labs

Today, Microsoft Visual Studio Team System Virtual Labs (from the MSDN Suite of Virtual Labs)

What's new in Visual Studio Team System
Virtual Lab Express is the fastest and easiest way to test drive Microsoft products and the Virtual Lab environment. These are 30-minute hands-on overviews of some of your favorite Microsoft products and developer tools. Try them out online now - no need to download full trial versions or dedicate test machines.
VSTS Virtual Labs

* Express: What’s New in Visual Studio Team System
* Visual Studio Team Edition for Software Testers New!
* Visual Studio Team Edition for Software Testers - Tips and Tricks for ASP.NET
* Microsoft Visual Studio Team System Project Manager-Focused Scenarios
* Visual Studio Team System Reports
* Change Management with Team Foundation Server
* Writing Secure Native Code with Visual C++ and Visual Studio Team System
* Writing Secure Managed Code with Visual Studio Team System

Connected Systems Virtual Labs

* Architecting Connected Systems: XML Inside of SQL Server"

Welcome to the MSDN Virtual Labs

Welcome to the MSDN Virtual Labs: "Welcome to the MSDN Virtual Labs! Quickly evaluate or learn how to build great applications for Windows and the Web through a series of guided, hands-on labs which can be completed in 90 minutes or less. The best part is, the MSDN Virtual Labs don’t require any installation and are available to you immediately for FREE. Start by selecting the lab you’re interested in from the list below."

Sunday, July 15, 2007

Film Techniques of Alfred Hitchcock - suspense, camera angles, style, editing, basics

Film Techniques of Alfred Hitchcock - suspense, camera angles, style, editing, basics: "How to turn your boring movie into a Hitchcock thriller...

Borgus.com - We've put together a list of the most significant film techniques that were used by Alfred Hitchcock. This information comes out of many books and interviews from the man himself and his been simplified for your consideration.

This page is mostly for filmmakers who are sad and depressed because their movie is so average that nobody will watch it. Stop crying and pay attention. What is written here will save your career (at least until tomorrow morning.) However there is no cure for a bad producer - there may be no help for you!"

Smashing The Clock

Smashing The Clock: "Smashing The Clock
No schedules. No mandatory meetings. Inside Best Buy's radical reshaping of the workplace

One afternoon last year, Chap Achen, who oversees online orders at Best Buy Co. (BBY ), shut down his computer, stood up from his desk, and announced that he was leaving for the day. It was around 2 p.m., and most of Achen's staff were slumped over their keyboards, deep in a post-lunch, LCD-lit trance. 'See you tomorrow,' said Achen. 'I'm going to a matinee.'"

Friday, July 13, 2007

SequenceViz :: generate sequence diagrams from .NET assembly file - Nauman Leghari's Blog

This sequence diagram tool is excellent. I think the resources used in constructing it might be very useful, or at least interesting.

SequenceViz :: generate sequence diagrams from .NET assembly file - Nauman Leghari's Blog: "The following tools are used in making SequenceViz.

Cecil for reading IL by Jb Evain
Excellent PHTree control from CodeProject by Peter Chen
GNU Plot utilities - Win32 Port (There is a treasure in there waiting to be utilized)
PIC File macros for Sequence Diagrams from UMLGraph by Diomidis D. Spinellis (blog)
Log4Net for logging"

Wednesday, July 11, 2007

Occasionally Connected Systems Architecture

Occasionally Connected Systems Architecture: "By employing the publish/subscribe pattern between clients and an application server, as well as durable subscriptions when clients get connected they get pushed only the updates since the last time they were connected. This pattern improves scalability in that it prevents the scenario of many client connecting and performing costly queries against the database at the same time. Another difference between this (messaging-based) pattern and the more common database-level synchronization is that it maintains the discrete units-of-work (pattern) that were performed. While this isn’t very important for updates being pushed from the server to the client, it is absolutely critical for changes the client wants to send the server. These are the relevant architectural characteristics:

· “Automatic or semi-automatic push of cached data to the server (two-tier) or data service (n-tier) when connected to the network”

· “A process to enable the client to resolve data update and deletion concurrency conflicts; alternatively, to notify the client of the action taken by a business rule”

· “A process to enable the client to resolve insert and other conflicts with multiple rows of child tables, such as order or medication line items”"

Thursday, July 05, 2007

Dr. Dobb's | Survey Says...Agile Has Crossed the Chasm | July 2, 2007

Dr. Dobb's | Survey Says...Agile Has Crossed the Chasm | July 2, 2007: "When the Agile Manifesto was published in 2001, it gave name to a collection of methodologies that had been growing in popularity for several years. These methods, many of which are now in common usage worldwide, had strange names such as Scrum, Pinball, Extreme Programming (XP), and Dynamic System Development Method (DSDM). My 2007 Agile adoption survey (see sidebar) shows that agile techniques have been successfully adopted within a majority of organizations and often at scale. So now, six years later, I think that it's clear that Agile has successfully crossed Moore's technology-adoption chasm."

Saturday, June 30, 2007

Manage It!

Manage It!: "Your project can't fail. That's a lot of pressure on you, and yet you don't want to buy into any one specific process, methodology, or lifecycle.

Your project is different. It doesn't fit into those neat descriptions.

Manage It! will show you how to beg, borrow, and steal from the best methodologies to fit your particular project. It will help you find what works best for you and not for some mythological project that doesn't even exist."

Dr. Dobb's | Pragmatic Software Testing | June 28, 2007

Dr. Dobb's | Pragmatic Software Testing | June 28, 2007: "There are a number of philosophies that drive testers these days. Do you test based upon a catalog of risks, automated everything in unit tests, employ a model? In the risk-based camp, few are authors are more influential or prolific as Rex Black. In his new book, Pragmatic Software Testing: Becoming an Effective and Efficient Test Professional, Black explains his approach to risk-based testing and the techniques needed to accomplish it."

Friday, June 29, 2007

Coding Horror: Supporting Open Source Projects in the Microsoft Ecosystem

Coding Horror: Supporting Open Source Projects in the Microsoft Ecosystem: "In my company's commercial application we depend upon DotNetNuke, Nant, log4net, NUnit and other open source tools. Those open source projects help support us. In fact, without DNN, we would probably be out of business because our developments costs would be too high. In turn, my company helps support Microsoft through the purchase of licenses and MSDN subscriptions. Yet Microsoft does not complete the circle by financially supporting any of those open source projects."

Wednesday, June 27, 2007

Two Fixes for Bad Backs - TIME

Two Fixes for Bad Backs - TIME: "In your own hands exercises to stretch and strengthen, plus rest and anti-inflammatories may fix a bad back, without having to go under the knife."

An Earth Without People -- [ environment ]: Scientific American

An Earth Without People -- [ environment ]: Scientific American: "It’s a common fantasy to imagine that you’re the last person left alive on earth. But what if all human beings were suddenly whisked off the planet? That premise is the starting point for The World without Us, a new book by science writer Alan Weisman, an associate professor of journalism at the University of Arizona. In this extended thought experiment, Weisman does not specify exactly what finishes off Homo sapiens; instead he simply assumes the abrupt disappearance of our species and projects the sequence of events that would most likely occur in the years, decades and centuries afterward."

Tuesday, June 12, 2007

How to Write a Software Specification

How to Write a Software Specification: "This document provides a format or checklist for writing a technical specification, particularly for computer software, although the format may be suitable for any number of similar uses.

The material presented here can be of help to both the software contractor and his or her client. It is not technical, but is sufficiently precise to aid a common understanding between client and contractor.

The specification is divided into two parts.

* Part I - Concepts and requirements
* Part II - Methods and details of implementation"

Painless Functional Specifications - Part 2: What's a Spec? - Joel on Software

Painless Functional Specifications - Part 2: What's a Spec? - Joel on Software: "This series of articles is about functional specifications, not technical specifications. People get these mixed up. I don't know if there's any standard terminology, but here's what I mean when I use these terms.

1. A functional specification describes how a product will work entirely from the user's perspective. It doesn't care how the thing is implemented. It talks about features. It specifies screens, menus, dialogs, and so on.
2. A technical specification describes the internal implementation of the program. It talks about data structures, relational database models, choice of programming languages and tools, algorithms, etc."

Painless Functional Specifications - Part 1: Why Bother? - Joel on Software

Painless Functional Specifications - Part 1: Why Bother? - Joel on Software: "The most important function of a spec is to design the program. Even if you are working on code all by yourself, and you write a spec solely for your own benefit, the act of writing the spec -- describing how the program works in minute detail -- will force you to actually design the program."

Painless Software Schedules - Joel on Software

Painless Software Schedules - Joel on Software: "Use Microsoft Excel. Don't use anything fancy like Microsoft Project. The trouble with Microsoft Project is that it assumes that you want to spend a lot of time worrying about dependencies. A dependency is when you have two tasks, one of which must be completed before the next one can begin. I've found that with software, the dependencies are so obvious that it's just not worth the effort to formally keep track of them."

Wednesday, June 06, 2007

Kanban in Action

Kanban in Action: "Earlier when I described my approach to managing and leading software engineering at Corbis, I mentioned that I was introducing a kanban system for our sustaining engineering activity. Since we introduced it, we've released new versions of our IT systems and business application software twice per month. However, sustaining doesn't run on a traditional agile two week iteration (or sprint) type system. It uses a kanban system to pipeline change requests (CRs). When a CR is complete it sits in the Release Ready state until a scheduled release happens on every second Wednesday."

InfoQ: Incremental Software Development without Iterations

InfoQ: Incremental Software Development without Iterations: "David Anderson described how his team is using a kanban system for their sustaining engineering (maintenance and bug fixing) activities. Iterations have been dropped although software is still released every two weeks. Work is scheduled, monitored, and run via a 'kanban board' and daily stand-up meetings. "

Monday, June 04, 2007

Códice Software: Linus Torvalds on GIT and SCM

Códice Software: Linus Torvalds on GIT and SCM: "I just finished watching the speech Linus Torvalds gave some days ago at Google, basically talking about GIT and Source Control Management. He has really strong opinions but I think the video is really worth watching.

To be honest I was very shocked by some of the statements he made, like the following:
  • Subversion has been the most pointless project ever started. Well, I'm not a big Subversion fan either, but I find it a bit rude.
  • Subversion used to say CVS done right: with that slogan there is nowhere
    you can go. There is no way to do cvs right.
    No comments.
  • If you like using cvs, you should be in some kind of mental institution or
    somewhere else.
    Again I think he is playing the showman role...
  • Get rid of perforce, it is sad, but it is so, so true.... No comments."

Dr. Dobb's | Dynamic Programming In Action | June 2, 2007

Dr. Dobb's Dynamic Programming In Action June 2, 2007: "A problem-solving technique a LISP programmer learns is divide-and-conquerA problem-solving technique a LISP programmer learns is divide-and-conquer"

Sunday, June 03, 2007

Dr. Dobb's | The Power of LISP for C Programmers | June 3, 2007

Dr. Dobb's The Power of LISP for C Programmers June 3, 2007: "The two best-known LISP properties are symbolic processing and list processing. Both concepts can be developed in other languages with a set of generic functions or procedures that operate on appropriate data structures and by developing a proper mental attitude concerning the abstraction.
In this article, I address generic list-processing procedures in C. The same concepts can be adapted for other high-level languages and assembly language. "

Friday, June 01, 2007

Network Connections folder empty

Network Connections folder empty: This problem afflicted my machine. Following is a fix:

"Fix
Start, Run. cmd.exe

regsvr32 netshell.dll
regsvr32 netcfgx.dll
regsvr32 netman.dll

Hitting enter after each one. That should do it.
The dynamic libraries are hashed, likely due to some 'Free' spyware search or crap program.
Enjoy!"

Thursday, April 19, 2007

Erlang

Erlang: "Blogs

There's a lot of activity in the blogsphere; go to Google search and search for Erlang blogs. Also, here's some articles you might enjoy:

Web sites

Now go and look in this directory: http://www.erlang.org/doc/doc-5.5.3/pdf/. You'll find 50 odd PDF files here.

I've chosen a few of these for you to look at:

Each one of these represents a book that is just waiting to be written :-)

Have a good read.

Copyright © 2007 Joe Armstrong"

Friday, April 13, 2007

Virtualization with coLinux

Virtualization with coLinux: "Virtualization with VmWare, Xen, and Kernel-based Virtual Machine (KVM) are all the rage these days. But did you know that you can run Linux® cooperatively with Microsoft® Windows®? This article explores Cooperative Linux (coLinux), starting with a quick introduction to virtualization and then looking at the approach taken by coLinux. You'll also see how to get coLinux up and running on Windows."

InfoQ: .NET Memory Leaks

InfoQ: .NET Memory Leaks: "A problem with .NET that isn't talked about is the problems caused by using dynamic code generation. In a nut shell, dynamic code generation, which is used in XML Serialization, Regular Expressions, and XSLT transformations, can lead to memory leaks.

While the Common Language Runtime (CLR) can unload whole App Domains, it cannot unload individual assemblies. Code generation relies on creating temporary assemblies. These assemblies are often loaded into the primary app domain, meaning that cannot be unloaded until the application exits.

For libraries like XML Serialization, this isn't much of a problem. Usually the serialization code for a given type is cached, which limits the application to one temporary assembly per type. But there are XMLSerializer overloads that don't use caching. If a developer uses one of these without providing some sort of application-level cache, memory can be slowly leaked as new instances of essentially the same code is loaded into memory. For more information specifically on XML, see .NET Memory Leak: XmlSerializing your way to a Memory Leak.

The potential problems are far worse for code that habitually rewrites itself at runtime such as those written in LISP. For that sort of language, either the code has to be run entirely interpreted, that is never being compiled to IL code, or placed in separate AppDomains that can be purged fr"

Monday, April 09, 2007

Re: ICMP Ping

Re: ICMP Ping: "Look at http://home.uninet.ee/~taavi/files/erlang/

contains port driver for ICMP ping (freebsd ping program was used as start).

best regards,
taavi

> I am trying to write a very simple network monitoring tool. Not trying
> to replace any of the commercial products/open source, but as a nice
> example to try and learn about erlang features (concurrency and
> Mnesia) in a real scenario."

Thursday, April 05, 2007

There Are Only Four Software Licenses: "Jeff Atwood writes a great summary of Open Source Licenses. As far as I’m concerned, there’s really only four software licenses to worry about (open source or otherwise).

1. Proprietary - The code is mine! You can’t look at it. You can’t reverse engineer it. Mine Mine Mine!
2. GPL - You can do whatever you want with the code, but if you distribute the code or binaries, you must make your changes open via the GPL license.
3. New BSD - Use at your own risk. Do whatever the hell you want with the code, just keep the license intact, credit me, and never sue me if the software blows your foot off. The MIT license is a notable alternative to the New BSD and is very very similar.
4. Public Domain - Do whatever you want with the code. Period. No need to mention me ever again. You can forget I ever existed."

Wednesday, April 04, 2007

Making it stick.: Systems: "Would you rather your body attempt to act as one 'logical' cell, or are you happy to survive as a system of cooperating cells with billions dying off and being replaced each day?

Steve Loughran reminding us of a Note on Distributed Computing. From the note...
We look at a number of distributed systems that have attempted to paper over the distinction between local and remote objects, and show that such systems fail to support basic requirements of robustness and reliability. These failures have been masked in the past by the small size of the distributed systems that have been built. In the enterprise-wide distributed systems foreseen in the near future, however, such a masking will be impossible.
A favorite quote from elsewhere by Jim Waldo, one of the authors...
I've been known to claim that there are two kinds of reliable message systems. The first kind are those that come with an asterisk; following the asterisk leads you to the small print, where you find out when the messaging system can fail and so it is not, therefore, reliable. The second kind are those systems that simply lie – they are no more reliable, but they don't tell you that there are circumstances where they can fail.
posted by Patrick Logan # 9:21 PM

Distributed Systems in Practice: The Human Body
Patrick has noticed the parallels as has Werner Vogels. There’s an awful lot of stuff to be learnt about building distributed systems from the human body including how control isn’t centralized, how reliability is achieved and how the ..."

Monday, April 02, 2007

Create an Eclipse-based application using the Graphical Editing Framework: "Graphical Modeling Framework (GMF)

The GMF project was born out of the frustration in creating graphical editors manually (especially in the context of using the Eclipse Modeling Framework). GMF allows you to effectively map (see Figure 5) your semantic (business logic) model to a notional (graphical) model. Once this mapping is complete using a few configuration files, GMF will generate a fully functional graphical editor for you.

Figure 5. GMF development flow
GMF development flow

If your use cases have you using the Eclipse Modeling Framework for your model, it is highly recommend that you use GMF instead of GEF directly. Read Chris Aniszczyk's 'Learn Eclipse GMF in 15 minutes' for more information (see Resources).

Zest

Zest is a lightweight visualization toolkit (see Figure 6) that provides a JFace-like wrapping on top of traditional GEF editors. Zest has been modeled after JFace, and all the Zest views conform to the same standards and conventions as existing Eclipse views (think label and content providers). This means that the providers, actions, and listeners used within existing applications can be leveraged within Zest. Also, Zest has reusable layouts that can be applied to your visualizations with ease.

Figure 6. Sample Zest Visualizations
Sample Zest Visualiz"

Monday, March 26, 2007

Creating Passionate Users: Crash course in learning theory: "Crash course in learning theory

One formula (of many) for a successful blog is to create a 'learning blog'. A blog that shares what you know, to help others. Even--or especially--if that means giving away your 'secrets'. Teaching people to do what you do is one of the best ways we know to grow an audience--an audience of users you want to help."

Saturday, March 24, 2007

evan_tech -- code review is great: "code review is great
At Google, all code must be reviewed before you can check it in. This means that another engineer needs to look over your change and give it their approval. Traditionally we've done it via email and some wrapper scripts, but more recently people have been switching to Guido's fancy tool."
bzr, again - The Changelog: "bzr, again
I've talked a lot lately about different VCSs.

I got some interesting comments in reply to my most recent post. One person took issue with my complaint that nobody really understood how to specify a revision to git format-patch, and proceeded to issue an incorrect suggestion. And a couple of people complained about my comments about bzr, which generally came down to the released version of bzr didn't have anything compelling and also didn't support tags.

So I went into #bzr, asked them what bzr has that git, Mercurial, and darcs don't. And gave bzr the benefit of the doubt that 0.15 will be out soon and will be stable. What I got back were these general items:

1. Renaming of directories (not in hg, git)
2. 2-way sync with Subversion (not in hg, darcs)
3. Checkouts (not in any others by default)
4. No server-side push requirement

Let's look at these in more detail."
Cyclopedia Square: Cutting Edge Revision Control: "After reading a lot of comparisons like the above, I concluded that of all those revision control choices, the ones that are being actively developed and used by fairly big and/or prominent projects are Bazaar (AKA bazaar-ng), Mercurial, Darcs, and git. And actually I’ll state right here that it’s somewhat questionable whether Darcs meets my criteria (though I wanted it to, really). What follows is my comparison of these four systems. I compared them for speed and ease of use, the two things I cared about most. I also briefly looked at how they work over a network and their windoze support, but not to a great amount of detail. That would be a good sequel to this review."

Ask Reddit: What's Your Favorite Source Control Program, and Why ...

"But my home projects I switched to Darcs or Mercurial, because they are ... to me like the hip-geeks don't like svn much. Are they using Darcs? Bazaar? ...
programming.reddit.com/info/apb7/comments - 36k - Cached - Similar pages"

Should I take a look at revision control software other than ...

"Converts to/from Darcs, Subversion, Monotone, CVS, Bazaar, Mercurial and Git ... I'm in the process of writing my own svn -> darcs migration tool which can ...
programming.reddit.com/info/15zzs/comments/c016020 - 69k - Cached - Similar pages
[ More results from programming.reddit.com ] "

versioncontrol on SWiK.net

"Bazaar is a distributed version control system available under the GPL that aids ... "Darcs is a revision control system. Darcs is simple to learn and use, ...
xml.swik.net/versioncontrol - 68k - Cached - Similar pages

Friday, February 09, 2007

NetPing util

NetPing util: "NetPing
Jeff Key
January 24, 2003
Updated August 24, 2003

<24jan2003>I recently got myself into a situation where I was away from the office on the VPN and, changed a machine's IP address, rebooted it and realized I forgot to note the new address. Since the only access I had to the machine was via Remote Desktop over the VPN, I was in a sticky situation. Rather than ping all 255 addresses on our subnet to figure out what its new address was, I wrote this little util.

How times have changed!

Thanks to several good folks, Adam Cogan and Scott Hanselman in particular, NetPing has grown into quite a beast.

Here is the current feature set:

* Pings range of ip addresses.
* Two types of AddIns supported: Column and Action."

Tuesday, January 09, 2007

erlware - next generation distributed software: Building an OTP Application: "Erlang is a clean, simple language, and it is easy to learn. That's Erlang, now lets talk OTP. The learning curve goes up significantly when getting into OTP. Questions arise, such as; how do I start an application, what is the function of a supervisor, and how do I make use of gen_server? That is just the beginning it gets far more confusing... 'what is a .app file, what is a release, and can someone please tell me what .script and .boot files do?'"

Sunday, January 07, 2007

Concurrency stuff from Lambda The Ultimate:

The Joins Concurrency Library. Claudio Russo.
Comega extended C# 1.x with a simple, declarative and powerful model of concurrency - join patterns - applicable both to multithreaded applications and to the orchestration of asynchronous, event-based distributed applications. With Generics available in C# 2.0, we can now provide join patterns as a library rather than a language feature. The Joins library extends its clients with an embedded, type-safe and mostly declarative language for expressing synchronization patterns. The library has some advantages over Comega: it is language neutral, supporting other languages like Visual Basic; its join patterns are more dynamic, allowing solutions difficult to express with Comega; its code is easy to modify, fostering experimentation.

E Thesis: Robust Composition
Mark S. Miller's PhD thesis on Robust Composition: Towards a Unified Approach to Access Control and Concurrency Control is now online.
When separately written programs are composed so that they may cooperate, they may instead destructively interfere in unanticipated ways. These hazards limit the scale and functionality of the software systems we can successfully compose. This dissertation presents a framework for enabling those interactions between components needed for the cooperation we intend, while minimizing the hazards of destructive interference.
Great progress on the composition problem has been made within the object paradigm, chiefly in the context of sequential, single-machine programming among benign components. We show how to extend this success to support robust composition of concurrent and potentially malicious components distributed over potentially malicious machines. We present E, a distributed, persistent, secure programming language, and CapDesk, a virus-safe desktop built in E, as embodiments of the techniques we explain.E rates as a (very) important language for anyone interested in ideas of messaging, distribution and security. The nice thing about a thesis (such as this one and Joe Armstrong's) is that it gives a nice historical account of the related work and influences.

Haskell vs. Erlang, Reloaded
Erlang and Haskell compared... Want to know the conclusion?
I was able to finish the Erlang version 10 times faster and with 1/2 the code. Even if I cut the 10-11 weeks spent on the Haskell version in half to account for the learning curve, I would still come out way ahead with Erlang.

Erlang tutorial
Seems like a nice tutorial.
Includes the expected chapters on concurrent programming and robustness, of course.

Joe Armstrong PhD thesis on Erlang.
And his blog: http://armstrongonsoftware.blogspot.com/

Friday, January 05, 2007

defmacro - Erlang Style Concurrency -- very good article on Erlang Style Concurrency, summarizing the benefits of Erlang specifically and message-passing concurrency-oriented programming generally.