Skip to main content

Install Raspbian OS on Raspberry Pi

Here’s the instructions to install your SD card ready for the Raspberry Pi. 1. Download and install Win32 Disk Imager from this link: http://sourceforge.net/projects/win32diskimager/files/latest/download Unzip it. 2. Download Raspbian here: https://www.raspberrypi.org/downloads/raspbian/ Unzip it (this may take a while as its a large file to match the size of the SD card) 3. Plug the SD […]

Awesome charts with High Charts

This is a simple demo of the great High Charts. You can find all the files needed for High Charts and jQuery. <!doctype html> <html lang=”en”> <head> </head> <body> <script src=”jquery.js”></script> <script src=”highcharts.js”></script> <script src=”exporting.js”></script> <div id=”container”></div> <script> $(function () { $(‘#container’).highcharts({ title: { text: ‘Monthly Average Temperature’, x: -20 //center }, subtitle: { text: […]

Configure WebStorm for AngularJS

1. Go to the JetBrains website, download and install WebStorm (a free trial is available for 30 days if you don’t have a licence). 2. Go to the AngularJS website. Here you can find the library and a useful documentation. 3. Download the latest version of AngularJS (the UNCOMPRESSED file otherwise WebStorm will not be able to use […]

How to connect to LocalDB in Visual Studio Server Explorer

Steps to connect LocalDB to Visual Studio Server Explorer Open command prompt Run SqlLocalDB.exe start v11.0 Run SqlLocalDB.exe info v11.0 Copy the Instance pipe name that starts with np:\… In Visual Studio select TOOLS > Connect to Database… For Server Name enter (localdb)\v11.0. If it didn’t work, use the Instance pipe name that you copied earlier. You can also use this to […]

Generate a PDF with Scryber

Today we will generate a PDF with the open source Scryber. The best way to work with Scryber is to use a template (PDFX file) for the style, the layout and the static content, then insert the dynamic content with C#. Full documentation at this link. Good example at this link. Create a new XML […]

Open a file with the default application

If you double click on a PDF file, it will be opened by the default application linked to that extension. So if Acrobad Reader is installed it will be opened with that application. In .Net, we have Process.Start which can start an executable. So if we start a PDF file, it will be openend by […]

StopWatch – measure your perf.

So let’s say you have a few operations to run and it takes a while to finish the execution. You would like to know which step is taking so long and how to improve the performance of the application. First, you could simply put a break point in each methods, but what if you want […]

Install your SD card with NOOBS

First of all I use a 32 GB class 10 to be sure I have enough space and speed for all my tests. HOW TO INSTALL NOOBS ON AN SD CARD Once you’ve downloaded the NOOBS zip file, you’ll need to copy the contents to a formatted SD card on your computer. To set up […]

Singleton

Multi threaded Singleton: using System; public sealed class Singleton { private static volatile Singleton instance; private static object syncRoot = new Object(); private Singleton() {} public static Singleton Instance { get { if (instance == null) { lock (syncRoot) { if (instance == null) instance = new Singleton(); } } return instance; } } }