Add scheduled task and run even if on battery power
Just wanted to share a little helpful snippet in case anyone needs it. To add a scheduled task and make sure it starts even when on battery power do this: using (var taskService = new TaskService()) {...
View ArticleJust another brainfuck interpreter
Why? Honestly, why not? The entry point Not much to tell: static void Main(string[] args) { var parser = new...
View ArticleFixing “Calling LoadLibraryEx on ISAPI filter v4.0.30319 aspnet_filter.dll...
Calling LoadLibraryEx on ISAPI filter "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\aspnet_filter.dll" failed I ran into this adding a new site to my 64 bit machine, and because I haven’t had my...
View ArticleMerging two immutable dictionaries in F#
If you ever need to merge two immutable dictionaries (maps) that may share the same key, here is how I did it let mapMerge group1 group2 appender = group1 |> Seq.fold(fun (acc:Map<'a,'b>)...
View ArticleImages, memory leaks, GDI+, and the aggregate function
I ran into a neat C# memory leak today that I wanted to share. It’s not often you get a clear undeniable leak in C# and so I really had fun figuring this one out. Look at this and see if you can spot...
View ArticleSeparation of concerns in node.js
I’ve been playing with typescript and node.js and I wanted to talk a little about how I’ve broken up my app source. It’s always good to modularize an application into smaller bits, and while node lets...
View ArticleDebugging Serialization Exception: The constructor to deserialize an object...
Today I was debugging an exception that was occuring when remoting a data object between two .NET processes. I kept getting System.Runtime.Serialization.SerializationException: The constructor to...
View ArticleCapturing union values with fparsec
I just started playing with fparsec which is a parser combinatorics library that lets you create chainable parsers to parse DSL’s. After having built my own parser, lexer, and interpreter, playing with...
View ArticleStreaming video to ios device with custom httphandler in asp.net
I ran into an interesting tidbit just now while trying to dynamically stream a video file using a custom http handler. The idea here is to bypass the static handler for a file so that I can perform...
View ArticleDetermining 64bit or 32 bit .NET assemblies
I work on a 64 bit machine but frequently deploy to 32 bit machines. The code I work on though has native hooks so I always need to deploy assembly entry points at 32 bit. This means I am usually...
View ArticleBad image format “Invalid access to memory location”
Wow, two bad image format posts in one day. So, the previous post talked about debugging 64bit vs 32 bit assemblies. But after that was solved I ran into another issue. This time with the message:...
View ArticleWhy \d is slower than [0-9]
I learned an interesting thing today about regular expressions via this stackoverflow question. \d, commonly used as a shorthand for digits (which we usually think of as 0-9) actually checks against...
View ArticleSignalR on ios and a single domain
Safari on ios has a limitation that you can only have one concurrent request to a particular domain at a time. Normally this is fine, since once a request completes the next one that is queued up fires...
View ArticleTrees and continuation passing style
For no reason in particular I decided to revisit tree traversal as a kind of programming kata. There are two main kinds of tree traversal: Depth first – This is where you go all the way down a tree’s...
View ArticleF# class getter fun
I was playing with Neo4J (following a recent post I stumbled upon by Sergey Tihon), and had everything wired up and ready to test out, but when I tried running my code I kept getting errors saying that...
View ArticleTill functions
Just wanted to share a couple little functions that I was playing with since it made my code terse and readable. At first I needed a way to fold a function until a predicate. This way I could stop and...
View ArticleF# utilities in haskell
Slowly I am getting more familiar with Haskell, but there are some things that really irk me. For example, a lot of the point free functions are right to left, instead of left to right. Coming from an...
View ArticlePulling back all repos of a github user
I recently had to relinquish my trusty dev machine (my work laptop) since I got a new job, and as such am relegated to using my old mac laptop at home for development until I either find a new personal...
View ArticleLogitech mx mouse zoom button middle click on Ubuntu
Any good engineer has their own tools of their trade: keyboard, mouse, and licenses to their favorite editors (oh and a badass chair). I work now on an Ubuntu box and I wanted to get my logitech MX...
View ArticleShort and sweet powershell prompt with posh-git
My company has fully switched to git and it’s been great. Most people at work use SourceTree as a gui to manage their git workflow, some use only command line, and I use a mixture of posh-git in...
View Article
More Pages to Explore .....