Geeks With Blogs
Alex's Blog-o-monium August 2012 Entries
Auto-Suggest via ‘Trie’ (Pre-fix Tree)
Auto-Suggest (Auto-Complete) “thing” has been around for a few years. Here’s my little snippet on the subject. For one of my projects, I had to deal with a non-trivial set of items to be pulled via auto-suggest used by multiple concurrent users. Simple, dumb iteration through a list in local cache or back-end access didn’t quite cut it. Enter a nifty little structure, perfectly suited for storing and matching verbal data: “Trie” ( also known as a Pre-fix Tree: “Unlike a binary ......

Posted On Thursday, August 23, 2012 11:19 AM

Asynchronous timer threading, TimerCallback.
There’re frequent times when I need to perform some sort of periodic tasks within the application: refresh in-memory shared data from the backend, status checks, emitting a health beat (pulse) with some sort of statistics to a log or UDP broadcast, and so on. As a bonus, it’d be nice if such tasks were to be non-blocking and thread-safe. Since, the calls should be to non-blocking, asynchronous processes – they will require a separate thread to run on, in order to avoid interfering with the main process. ......

Posted On Monday, August 20, 2012 12:01 PM

AppFabric DataCacheFactory pooling.
For one of my projects I've been using Windows Server AppFabric Caching (on-premise) ( I've setup a simple cluster: 2 nodes, with 4 Gigabytes in total, running in a high-availability mode – data is auto-replicated, so I can take down one node for maintenance (or allow for one-node asteroid strike) and client applications will still keep on trucking. After a couple days of tweaking settings it all started working out nicely: (at worst) double-digit millisecond read times, ......

Posted On Friday, August 17, 2012 8:40 AM

Modify .NET configuration in run-time.
Being able to change file-based configuration settings in runtime is a nice facet in the ASP.NET world. Low-friction and seamless, this little feature allows for traffic to go on uninterrupted and helps avoid flushing AppDomain memory just to reload config. settings. It's a different story when dealing with Console or Service applications, though. One has to restart the application/service to load up new config. settings. To avoid losing data or interrupting a running process: one work-around is ......

Posted On Wednesday, August 15, 2012 5:18 PM

Geeks Anonymous, lol.
I’ve been a frequent to SoCal Code Camps (if you’re in the area, check ‘em out: they’re held couple times a year). The next one coming up just posted the schedule – with an addition to a new session “Geeks Anonymous”. Anyway, I thought it hilarious. Kthxbai ......

Posted On Wednesday, August 15, 2012 4:13 PM

Copyright © Strenium | Powered by: