andrevdm.blogspot.com
Andre Van Der Merwe: Parsing s-expressions in Clojure
http://andrevdm.blogspot.com/2014/02/parsing-s-expressions-in-clojure.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Sunday, 16 February 2014. Parsing s-expressions in Clojure. This is a quick look at parsing in clojure. First using instaparse and then writing the lexer and parser by hand. The comparison should illustrate how great instaparse is but also show that writing a simple lexer and parser is not as complex as some would think. To demonstrate instaparse I'll be implementing a simple external DSL. The DSL should have the following characteristics.
andrevdm.blogspot.com
Andre Van Der Merwe: Capturing multiple channels of digital data on a two channel digital oscilloscope
http://andrevdm.blogspot.com/2015/01/capturing-multiple-channels-of-digital.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Monday, 12 January 2015. Capturing multiple channels of digital data on a two channel digital oscilloscope. In my last post. I showed how I parsed the CSV data to do some basic logic analysis. The problem is that I have a two channel scope and need to capture three channels for SPI (i.e. clock MOSI MISO). Here is the circuit diagram. I'm working at 3 volts, so the levels I'm going to see are. Andre Van Der Merwe. Using F# on a Raspberry Pi.
andrevdm.blogspot.com
Andre Van Der Merwe: Learning AngularJs
http://andrevdm.blogspot.com/2013/02/learning-angularjs.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Monday, 25 February 2013. I recently had to build a simple HTML application and decided to use AngularJS. I’ve used KnockOut in the past and found it easy to use. AngularJS is a little more opinionated than KO so there is a bit more that needs to be done to get a basic app working. However it is still simple and easy to follow and the end result definitely justifies the tiny bit of extra work. Pushing back the magic. The other thing that greatl...
andrevdm.blogspot.com
Andre Van Der Merwe: July 2014
http://andrevdm.blogspot.com/2014_07_01_archive.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Friday, 25 July 2014. Unit testing embedded C projects with seatest. Fortunately not everyone agrees with this sentiment and in the end it was relatively easy to get unit tests working thanks to SeaTest. Https:/ code.google.com/p/seatest/). SeaTest is simple and specifically designed for embedded-c projects. To get it working for a Microchip MPLabX project I did this. Created a test directory in my main projects directory. Bin/sh gcc -std=c99 -...
andrevdm.blogspot.com
Andre Van Der Merwe: Efficiently Tracking Response Time Percentiles (in C#)
http://andrevdm.blogspot.com/2013/03/efficiently-tracking-response-time.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Friday, 29 March 2013. Efficiently Tracking Response Time Percentiles (in C#). When looking for a better way to track response times than a simple min/max/average statistic recently I found a great article. The original code is in Java but I needed it in .NET so I’ve created a .net version on github. I chose to do a complete rewrite rather than porting the Java code so the class names etc will be different. The idea however is the same.
andrevdm.blogspot.com
Andre Van Der Merwe: Unit testing embedded C projects with seatest
http://andrevdm.blogspot.com/2014/07/unit-testing-embedded-c-projects-with.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Friday, 25 July 2014. Unit testing embedded C projects with seatest. Fortunately not everyone agrees with this sentiment and in the end it was relatively easy to get unit tests working thanks to SeaTest. Https:/ code.google.com/p/seatest/). SeaTest is simple and specifically designed for embedded-c projects. To get it working for a Microchip MPLabX project I did this. Created a test directory in my main projects directory. Bin/sh gcc -std=c99 -...
andrevdm.blogspot.com
Andre Van Der Merwe: Accurate clock with any frequency oscillator (e.g. embedded PIC projects)
http://andrevdm.blogspot.com/2015/01/accurate-clock-with-any-frequency.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Monday, 5 January 2015. Accurate clock with any frequency oscillator (e.g. embedded PIC projects). When I created an electric timer using a PIC one of the things I needed was an accurate clock. The PIC I was using did not have a built in real-time clock (RTC) and I did not want to use an external one. After some searching I found two popular suggestions to create an accurate clock. I did not like either of these solutions. Imagine you have an o...
andrevdm.blogspot.com
Andre Van Der Merwe: Using F# on a Raspberry Pi
http://andrevdm.blogspot.com/2015/01/using-f-on-raspberry-pi.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Monday, 5 January 2015. Using F# on a Raspberry Pi. This is how I got F# working on a Raspberry Pi. The demo shows how to communicate with a Nokia 5110 LCD (PCD8544). While simple it does show how to use the wiringPi library, GPIO and SPI. Installing mono on the latest Raspbian is easy. Just run the following Command. Sudo apt-get install mono-complete. That should get everything you need. I prefer to work on my main computer, its just faster.
andrevdm.blogspot.com
Andre Van Der Merwe: February 2014
http://andrevdm.blogspot.com/2014_02_01_archive.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Sunday, 16 February 2014. Parsing s-expressions in Clojure. This is a quick look at parsing in clojure. First using instaparse and then writing the lexer and parser by hand. The comparison should illustrate how great instaparse is but also show that writing a simple lexer and parser is not as complex as some would think. To demonstrate instaparse I'll be implementing a simple external DSL. The DSL should have the following characteristics.
andrevdm.blogspot.com
Andre Van Der Merwe: November 2014
http://andrevdm.blogspot.com/2014_11_01_archive.html
Andre Van Der Merwe. Blog moved to http:/ www.andrevdm.com/. Tuesday, 18 November 2014. F# FunScript with NancyFx and Ractive. I just started with FunScript and got stuck with a few of the basics. Here is how I got it all working. Is a library that compiles F# to JavaScript. This lets you write strongly typed client side code in F#. It takes advantage of many of the F# features, async workflows (no callback) etc. Take a look at the FunScript. Page for more information. Serving data as JSON with NancyFx.