Category: "Programming"

Pages: 1 3

03/08/12

  12:02:02 pm, by Nimble   , 217 words  
Categories: Programming

JavaScript Script Tags Violate Normal Tag Rules

You know how you can - for just about every HTML tag - combine the start and end tags, XML-style, into just one node? For example, you need not go <img src="mypig.jpg"></img> - you can simply go <img src="mypig.jpg"/>. It turns out… more »

12/16/11

  04:06:42 pm, by Nimble   , 236 words  
Categories: Programming

Running Out Of Memory Without Using Much Memory In C#

Few things are more dreadful for an application than a recurring "out of memory" error. You ask for memory graphs for the past hours or days and scan them... and you don't find anything untoward. Now, you're really confused. One thing about the memory… more »

03/10/11

  01:41:56 pm, by Nimble   , 102 words  
Categories: Programming

Converting TDateTimes to System.DateTimes and back

It's not straight-up obvious how to convert the Borland and Microsoft formats back and forth in code, but it does end up being pretty easy. TDateTimes are in "OA" format, which is OLE/COM-compatible. The functions that convert back and forth to the OLE… more »
  11:41:25 am, by Nimble   , 185 words  
Categories: Programming

E2328 Linker error while emitting metadata

There are few things more fun than topping off a righteously sweaty code refactoring session with a particularly rare and un-to-underdocumented linker error. I ran into this in CodeGear RAD Studio 2007 on the Delphi for .NET side. It was different than… more »

01/03/11

  05:08:37 pm, by Nimble   , 115 words  
Categories: Programming

DCPIL Insanity

If you are using one of the CodeGear Delphis for .NET and are using an assembly made elsewhere, perhaps in C#, and something in that assembly has changed, say the visibility of a method, you may occasionally run into a case where no matter what you do,… more »

12/03/10

  02:34:19 pm, by Nimble   , 1047 words  
Categories: Announcements [A], Programming

Microsoft Totally One-Ups Me After Eight Years

Eight or nine years ago, I embarked on a small project to make non-blocking concurrent programming easier. There was a fair bit of code out there on semaphores and mutexes and getting threads to just wait, also known as blocking. The threads in this… more »

11/16/10

  02:41:58 pm, by Nimble   , 136 words  
Categories: Programming

"Started and then stopped" Service Error

This is a quickie. I was having one heck of a time trying to figure out what was going on with a legacy service an old coworker had written in Delphi. It kept saying "{X} service on Local Computer started and then stopped". There seemed to be nothing… more »

06/15/09

  12:14:11 pm, by Nimble   , 151 words  
Categories: Programming

Passing By Reference To SQL Server Stored Procedures

This is pretty simple to accomplish, though how exactly to do it can be hard to find. Quite simply, you add OUTPUT to your parameter lists, on both your procedure definition and your actual call, like so: Defining: CREATE PROCEDURE dbo.TestValue… more »

08/20/08

  01:38:29 pm, by Nimble   , 341 words  
Categories: Programming

IIS6 to IIS7 Handler Migration

We had one big hiccup moving from IIS 6.0 to the 7.0 version. In the Web.Config, IIS 7.0 no longer likes to have an httpHandlers section. We had: <system.web>   <httpHandlers>    <remove verb="*"… more »

07/23/08

  12:14:05 am, by Nimble   , 225 words  
Categories: Reviews, Games, Programming, Science

FoldIt!

For a fan of biology, as well as of puzzle games in general, this is one of the most amazing things I have seen in a long time. Now, we already have things like Folding@Home, which is a distributed project that attempts to find low-energy conformations… more »

07/14/08

  12:06:32 am, by Nimble   , 608 words  
Categories: Thoughts, Programming

Upgrading But Keeping Customizations

Imagine this scenario: you have downloaded a particular project that has source code, and it's almost exactly what you want, but it's missing a few things, and it's not under version control (for example, the projects on SourceForge) So, you go off and… more »

06/07/08

  01:06:14 am, by Nimble   , 267 words  
Categories: Thoughts, Common Sense, Programming

Hit By Zoo Data Migration Errors

I took a half-day holiday to go to the Calgary Zoo with my wife, my baby and some friends. At the gate, when I presented our three membership cards, I and I alone was hit with my card 'coming up with an error'. Apparently, when the zoo switched its… more »

04/30/08

  03:08:17 pm, by Nimble   , 268 words  
Categories: Thoughts, Programming

ORA-06575: Package or function X is in an invalid state

If you go throw a function into Oracle, and it's wrong, e.g. CREATE OR REPLACE FUNCTION Banana IS -- Oops, no return! BEGIN RETURN SUBSTUR('Banana',2,5); -- Oops, misspelled! END; You will get no warnings about this in most tools until it comes… more »

04/18/08

  04:04:52 pm, by Nimble   , 266 words  
Categories: Thoughts, Programming

String To Time In C#

If you are trying to get a time into a DateTime from a string, it's relatively easy: DateTime dt = DateTime.Parse(inputText,CultureInfo.CurrentCulture, DateTimeStyles.NoCurrentDateDefault); The NoCurrentDateDefault is pretty important. Otherwise,… more »

12/19/07

  05:23:51 am, by Nimble   , 938 words  
Categories: Distractions, Internet, Programming

Javascript Swirlies

I wish I had an original cite for this bit of Javascript that my wife found posted in a Fark forum, but it's fantastic fun, so I'm posting about it regardless. To operate it, you copy the entire paragraph below, navigate to a web page (Fark works… more »

1 3

July 2017
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Ritchie Annand's blog of everything except sports (...and who knows? I may break that rule some day)

Search

  XML Feeds

powered by b2evolution