saliences.com : Webln

Limit Break: System.Timers.Timer
May 21, 2012 @ 3:32 PM
Music: Adele - Set Fire to the Rain

.NET’s built in Timer class System.Timers.Timer has a limit of int.MaxValue on the Interval property. This means that you cannot simply use the Timer class to schedule a task more than roughly 27 days into the future. While this is not a deal-breaker in 99.9% of the situations that Timer is used, it does present itself as a critical flaw when using the class for Scheduling purposes.

I have written a simple drop in replacement for the System.Timers.Timer class which boosts the limit of the Interval property to double.MaxValue effectively removing the restriction entirely. You can grab the library from GitHub

Categories:
updated: Voronoi Stippler
February 26, 2012 @ 9:16 PM
Music: Austra - The Future

Thanks to some modifications made by Davin Potts, Voronoi Stippler now works on Linux. I will not be maintaining binary versions for the Linux version, but they can be compiled from source easily enough using the provided makefile. In addition, these changes should allow the application to be compiled under Mac OS X, but since I do not have a Mac, I cannot verify this (anybody interested in verifying this?)

Enjoy.

Categories:
updated: Voronoi Stippler
January 6, 2012 @ 10:38 PM
Music: Florence + the Machine - No Light, No Light
Rocks: OpenMP

I’ve completed an update to the Voronoi Stippler application that greatly speeds up the generation of stippled renderings regardless of the number of stipples. It does this by removing the usage of OpenGL across the application, and being smarter about the resolution of the numerical integration of Voronoi centroids. It also uses OpenMP to parallelize the rendering algorithm. Much much much faster than the previous release. Check it out.

Enjoy.

DSGrab v1.5.0
December 18, 2011 @ 2:47 PM
Music: Bright Eyes - Middleman

A long needed update to the DSGrab applet is available. The biggest change for v1.5.0 is that it now supports YU* colour modes for capture devices, which should make the program a lot more compatible. I’ve also made it a little more user friendly by having the applet choose sensible defaults wherever possible (and removed some questionable options like choice of colour bit depth). The update fixes the following issues which are outlined on the GitHub project page:

  • Issue #1: Implement YUV -> RGB filtering
  • Issue #2: (Programmer’s Pride): Release AM_MEDIA_TYPE structures
  • Issue #3: Use Boost for Command Line parsing
  • Issue #4: More intelligent device selection
  • Issue #5: (Programmer’s Pride): Uninitialize GdiPlus when finished
  • Issue #6: Always default to 24-bit colour depth.

Project Page GitHub Page Direct Source Code download Direct Executable download (may require VS 2010 SP1 run-time)

Enjoy.

updated: mustache.js improved
October 10, 2011 @ 9:33 PM
Music: Alfh Lyra - Theme of World Champions

A new version of my implementation of Mustache.js which implements Dot Notation support from the mustache specification is now available.

Try it out.

Show 5 earlier entries.
Show 5, 10, or 20 entries at a time.