vote up
0
vote down

Java Neuroph tutorial – The code classifier

The Neuroph API can be used to train neural networks in java. This experiment tries to use the API to enable automatic classification of source code based on the programming language it belongs to
 
CertPal
Jul 27 2010 10:56 AM
vote up
0
vote down

A code review of PewPew by Mike Chambers

A very rare event has occurred - the chance to look at, discuss and play with the full source for a Flash game! I've worked with the source to dozens of games by different developers, but I'm normally under a non-disclosure agreement so I cannot divulge
Jul 24 2010 05:07 AM
vote up
0
vote down

Throttling function calls

If you've written any kind of validation on user input, like onkeypress then you'll know that sometimes you want to throttle the amount of times your function runs. A good example of this is Ajax based username validation - you don't want to hit the
 
Remy Sharp
Jul 22 2010 05:42 AM
vote up
0
vote down

Getting Started With MongoDB and NoRM

I just realised – I hate writing SQL. I hate it, I hate it, I hate it. I have also recently noticed a growing trend in SQL alternatives or “nosql” with open source C# drivers. Today I put one and one together and decided to try out one of these –
 
Luke Lowrey
Jul 09 2010 10:34 PM
vote up
0
vote down

Finding High-Impact Areas for Refactoring

At Rally, we’ve stayed committed for the last 7 years to never telling the business that the product has to halt active development to pay down technical debt. For us, the “big rewrite in the sky” has always been off the table. Instead,
 
Rod Hilton
Jul 07 2010 01:49 PM
vote up
0
vote down

Geocoding using Silverlight

  Last night I was reading through the Vision and Scope document for a project that we are involved in with the British Library, one of the requirements was to geocode a search term. If you are not familiar with the term geocoding then
Jun 28 2010 06:43 PM
vote up
0
vote down

Shrink, Damn’d Log! Shrink, I Say!

Ever have a database log file grow to epic proportions on the weekend? I have. Ever forget to set up job monitoring on that server? I have. Ever get so pissed off that you decided to write a job to automatically shrink the log files whenever they grow? I
Jun 17 2010 02:43 PM
vote up
0
vote down

Should Web Designers Code?… The Poll Results

Should designers have good coding skills? Should programmers have good design skills? Craig discusses our recent poll and the feedback. Related PostsShould Designers Have Coding Skills?Best web designers and developers I’ve worked withPoll: Should
 
Craig Buckler
Jun 14 2010 10:03 PM
vote up
0
vote down

IP to Geo Location in Asp.Net MVC

IP address to Geo location in Asp.net MVC. Uses the free Max Mind Geo City database and Subgrim Google Maps control to access it.
 
admin
Jun 12 2010 05:56 AM
vote up
0
vote down

How To Display Just The HTTP Response Code In CLI Curl

Today, I was looking for a quick way to see HTTP response codes of a bunch of urls. Naturally, I turned to the curl command, which I would usually use like this: curl -IL "URL" This command would send a HEAD request (-I), follow through all
 
Artem Russakovskii
Jun 11 2010 08:40 AM
vote up
0
vote down

How to improve your programming skills

Everyone introduces bugs into their code, whether they like it or not. Here are a few ways through which you can reduce the number of bugs in your code. Or at least, try ;)
 
CertPal
Jun 07 2010 07:40 PM
vote up
0
vote down

Presenting Code-Persona - Having Some Serious Fun With Code And Technology.

I love writing on this blog. For me this blog is more of an opportunity to stand back, evaluate the experiences of my life and write about these, by adding a little bit of myself to this blog. The very fact that I post multiple times a week, turns this
Jun 07 2010 06:06 PM
vote up
0
vote down

Mars Rover in Java

Sometime back, when Arun posted a Python version of Mars Rover problem, I tried the same in Java. Btw, if you haven’t heard about Mars Rover problem before, here’s the text for you (Ctrl+C & Ctrl+V’ed from Arun’s post). Mars
Jun 06 2010 09:36 PM
vote up
0
vote down

Push Ups and String Concatenation

SQL sucks at string manipulation. It’s not just SQL Server, it’s the SQL language in general. I’ve mentioned this before on Stack Overflow in answer to the question “What are five things you hate about your favorite
Jun 01 2010 03:07 PM
vote up
0
vote down

ZooPHP – a PHP wrapper for Zootool

Zootool is fast becoming the most practical and funkiest way to bookmark online. With the recent addition of an API, I've created a PHP wrapper to ease embedding of Zootool data.
 
Adam Hopkinson
May 22 2010 05:04 AM
vote up
0
vote down

Compiling HLSL into GLSL in 2010

Realtime shader languages these days have settled down into two camps: HLSL (or Cg, which for all practical reasons is the same) and GLSL (or GLSL ES, which is sufficiently similar). HLSL/Cg is used by Direct3D and the big consoles (Xbox 360, PS3).
 
Aras Pranckevičius
May 22 2010 04:57 AM
vote up
0
vote down

MongoDB as in huMONGOus, not retarded

Unlike the rest of the known world, I won't write anything on the iPad. Yet. While pondering life's great mysteries, such as how you can evade paying your bills, I felt it was time to write something about databases. You see the connection, right? Good,
 
william
May 22 2010 04:56 AM
vote up
0
vote down

Spanish MEF Video

Spanish Video from Microsoft LATAM Virtual Event ("La eficiencia en tus manos") exploring MEF by Julian Dominguez and Ezequiel Jadib.Check anothers sessions in Event Map.
 
Salvador Gascon
tags: code
May 16 2010 11:06 PM
vote up
0
vote down

Architecture Documentation

Tommy Norman has publisehd an article describing how to describe the design or implementation of your application.Tommy describe some practices and principles :Emergent DesignDesign as a TeamThe YAGNI PrincipleSelf Documenting Code
 
Salvador Gascon
tags: code
May 14 2010 11:22 PM
vote up
0
vote down

Geometry Wars in 25 lines of ActionScript source code

I recently noticed that Keith Peters' 25 lines competition and all the entries have been purged from the internet, so in case you missed it first time, here's my port of a Geometry Wars style game, with source code below.Here's the source, under free for
May 13 2010 01:03 PM
vote up
0
vote down

F# Unit Testing with Visual Studio 2010

In Visual Studio 2010, you can now get your F# unit tests loaded by the IDE. First, create your F# test project. This is just a normal library referencing Microsoft.VisualStudio.QualityTools.UnitTestFramework and having test classes and so on. The only
May 07 2010 08:36 AM
vote up
0
vote down

HTML5 Unleashed: Tips, Tricks and Techniques

This article provides some basic guidelines and easy to follow code templates to get you started with HTML5. If you are familiar with the basics and want to take things to the next level, you will also find several useful resources providing more tips,
 
W3Avenue Team
May 07 2010 03:00 AM
vote up
0
vote down

Command line tool for DPAPI

Using the data protection API, I found I needed to be able to generate values by hand that my apps can work with later. So I wrote a small command line utility to help out with that process. Example: dpapicmd [/user] [/decrypt] [/utf8]
May 06 2010 08:54 PM
vote up
0
vote down

Mac Address in Silverlight 4

A few weeks ago I was discussing way to Get A Mac Address in Silverlight 4 with James Forage. I was looking to see  if there was a managed way of doing this, sadly there isn’t. However James discovered a rather interesting Unmanaged way using
May 04 2010 08:38 PM
vote up
0
vote down

Help! How do I generate classes for a new project?

Ok readers, I gave you my indispensable Gamepad class, now I need something back: Whenever I start a new game, I make a whole bunch of classes that extend my base classes, so:com.blah.Game extends com.iainlobb.Game and has some setup codecom.blah.Player
May 04 2010 02:29 PM
vote up
0
vote down

How do I accept files to be opened via IDropTarget instead of on the command line?

Commenter Yaron wants to know how to use the new IDropTarget mechanism for receiving a list of files to open. (Also asked by Anthony Wieser as a comment to an article.) The MSDN documentation on Verbs and File Assocations mentions that DDE has been
 
oldnewthing
tags: code
May 03 2010 04:30 PM
vote up
0
vote down

T4 in Visual Studio 2010

Gareth Jones has published an article describing changes and new features using T4 in Vs2010.Hightlights changes :Runtime error handling is improvedInclude directives and Assembly directives now support both Windows environment variables and VS Macro
 
Salvador Gascon
tags: code
May 01 2010 07:05 PM
vote up
0
vote down

If it's not yours, then don't mess with it without permission from the owner

It's surprising how many principles of real life also apply to computer programming. For example, one of the rules of thumb for real life is that is that if something doesn't belong to you, then you shouldn't mess with it unless you have permission from
 
oldnewthing
tags: code
Apr 30 2010 04:30 PM
vote up
0
vote down

A short puzzle about heap expansion

At the 2008 PDC, somebody stopped by the Ask the Experts table with a question about the heap manager. I don't understand why the heap manager is allocating a new segment. I allocated a bunch of small blocks, then freed nearly all of them. And then
 
oldnewthing
tags: code
Apr 29 2010 11:11 PM
vote up
0
vote down

FluentNHibernate FSharp update for RTM

type ProductMap() as m = inherit ClassMapQ<Product>() do     let x = m.DefaultX     m.Not.LazyLoad()     (m.IdQ <@ x.Id @>).Done     (m.MapQ <@ x.Name @>).Done
Apr 29 2010 01:12 AM
vote up
0
vote down

Why can't I get my regular expression pattern to match words that begin with %?

A customer asked for help writing a regular expression that, in the customer's words, matched the string %1 when it appeared as a standalone word. MatchNo match %1%1b :%1:x%1 One of the things that people often forget to do when asking a question is to
 
oldnewthing
tags: code
Apr 23 2010 04:30 PM
vote up
0
vote down

10 reasons to use MEF

Jeremy Likness has published an article describing ten reasons to use MEF (Managed Extensibility Framework)It's out of the boxDependency injection and inversion of controlLifetime managementConfigurationFactories with dependency
 
Salvador Gascon
tags: code
Apr 19 2010 09:56 PM
vote up
0
vote down

Spec Explorer

Spec Explorer (from DevLabs) is a Visual Studio Add-in to generate visual models from code.See also Video from Channel9.
 
Salvador Gascon
tags: code
Apr 19 2010 03:47 PM
vote up
0
vote down

A “FizzBuzz” Faux Pas

A little while ago while writing this post, I came across the post by Jeff Atwood where he talks about the FizzBuzz test (originally found here). I remember seeing that post for the first time a couple of years ago and thinking that I would be a little
 
Alan Skorkin
Apr 18 2010 04:42 PM
vote up
0
vote down

The mysterious stock bitmap: There's no way to summon it, but it shows up in various places

A number of stock GDI objects are made available by the Get­Stock­Object function, but one stock GDI object that is mysteriously missing is the stock bitmap. You can't summon the stock bitmap, but it manages to show up in various places, some of
 
oldnewthing
tags: code
Apr 16 2010 09:37 PM
vote up
0
vote down

When you create an object with constraints, you have to make sure everybody who uses the object understands those constraints

Here's a question that came from a customer. This particular example involves managed code, but don't let that distract you from the point of the exercise. I am trying to create a FileStream object using the constructor that takes an IntPtr as input. In
 
oldnewthing
tags: code
Apr 14 2010 09:32 PM
vote up
0
vote down

Google Weather API with RestSharp

Guest post by DK! The Google Weather API is a grand service for developers to get weather data for any location with ease. RestSharp is a open source .NET REST Client… Been doing some work getting weather information from Google Weather and I thought I
 
DK
Apr 14 2010 02:45 AM
vote up
0
vote down

How do I switch a window between normal and fullscreen?

Frederic Delhoume wants to know if there is a simple example of code that switches an application from windowed to fullscreen. He then included a code fragment that did some crazy things with parent windows and hiding and showing. You're making it way,
 
oldnewthing
tags: code
Apr 12 2010 09:31 PM
vote up
0
vote down

Fluent Email in .NET

An Open Source Fluent Email class for .Net. Uses System.Net.Mail to send emails either synchronously or asynchronously.
 
admin
Apr 11 2010 11:03 AM
vote up
0
vote down

Why can't you use WM_CTLCOLORSTATIC to change the color of a SS_BLACKRECT?

If you specify one of the static control styles which draw a frame or rectangle SS_BLACKRECTSS_BLACKFRAME SS_GRAYRECTSS_GRAYFRAME SS_WHITERECTSS_WHITEFRAME the control will be drawn with the corresponding color (which, as we saw last time, isn't actually
 
oldnewthing
tags: code
Apr 09 2010 09:42 PM