Monthly Archives: martie 2011

How to convert a mutable array to an immutable array

Really, how do you do this quickly ? Find here.

How to convert an immutable array to a mutable array

Part II of the mutable transformation „saga”. Find here how to quickly convert from immutable to mutable arrays.

How to create Arduino brush for Syntax Highlighter

For my Arduino lessons I needed to add WordPress support for Arduino syntax highlighting. A custom brush for SyntaxHighlighter plugin that would format and color my Arduino syntax similar to the application (see here an example). This is what I did.

Globals and Singletons

My preferred approach to creation and maintaing global variables/ constants is by singletons and singleton instance[s]. Not only is an elegant method that adds compliance to a very important Cocoa design pattern, but also provides you a lot of flexibility.

Code for Weather Station prototype

I took some steps in learning the capabilities of Arduino Platforms. Below is the code of my Bluetooth-enabled temperature reader with OS X integration.