Nov 242016
 
 November 24, 2016  Posted by at 1:32 pm C# & F#, Dev Environment 2 Responses »
Weather API in five minutes

I have been working on my wardrobe application and added the weather feature a few days ago. I try to find time to finish the application, but it’s going slower than I wish it did. Last Saturday I moved to a new apartment and as I have been unpacking I have also sorted my clothes […]

Aug 222016
 
 August 22, 2016  Posted by at 11:14 am C# & F#, Random 1 Response »
When North Korea and Vatican City really wanted Britain to undo the Brexit. A closer look at the petition signatures

After the surprising Brexit- the day Britain decided to leave the EU- a petition for a re-vote made headlines as it overnight grew from 25 votes to over a million. I kept an eye on the petition page over that weekend and watched the number of signatures/votes climb to well over 3 million votes. I […]

Sep 212015
 
 September 21, 2015  Posted by at 3:11 pm C# & F#, Windows Forms Comments Off on GeoLocation .NET 4 and up- requested WinForms example
GeoLocation .NET 4 and up- requested WinForms example

Here comes a quick and dirty post based of a question I got on Twitter today on how to fetch geolocation in a WinForms app. I haven’t done this in a while, but if I remember correctly you can do this: First add the System.Device assembly (Add Reference => Search for ‘Device’) And make sure […]

Mar 072015
 
 March 7, 2015  Posted by at 11:38 am C# & F# 1 Response »
A simple annotation example with PDFSharp

Because the world needs another one hehe. I’m joking, I’m sure there are plenty but the blog is very much a way for me to tuck away things I’ve done, learned or found. And maybe somebody else can benefit from it or tell me I’m horrible wrong (I’ve learned a lot from comments). Today, more […]

Dec 082014
 
 December 8, 2014  Posted by at 4:44 pm C# & F#, Optical Character Recognition, Universal Apps, WinRT, WP 1 Response »
Adding contacts in a Universal Store App (Windows Store and Windows Phone)

It’s getting rather cold in UK and I am dreading the winter and the darkness. However, on the positive side it is cozier to sit and code in front of the computer with a lovely cup of tea or coffee. And here is some code. I was asked on Twitter to post about adding contacts […]

Nov 112014
 
 November 11, 2014  Posted by at 5:39 pm C# & F#, Dev Environment No Responses »
Error: Access denied when running SpeechSynthesizer().SynthesizeTextToStreamAsync(text)

Today I encountered a problem I haven’t seen since the Windows 8 RTM, on a fresh install of Windows 8.1 and VS 2013 with update 3. I was doing some work with Optical Character Recognition, actually a blog post for tomorrow. However, whenever I was trying to use await new SpeechSynthesizer().SynthesizeTextToStreamAsync(text); I kept getting an […]

Jul 162014
 
 July 16, 2014  Posted by at 5:23 pm C# & F#, JS & TS Tagged with: , ,  4 Responses »
Edge.js tutorial part 4: Setting up Mac OSX environment

I’ve had some hectic weeks of travel and haven’t been able to record and edit until now, so expect several Edge.js videos and posts the next couple of weeks as I empty my backlog. First post out it’s setting up your environment on a Mac. Windows was covered in the first video, and Ubuntu week […]

Jun 032014
 
 June 3, 2014  Posted by at 7:09 am Angular, C# & F#, HTML & CSS, JS & TS, Universal Apps, WinRT, WP No Responses »
Windows Phone 8.1 with WinJS, Angular.js using a WinRT Component in C# (cross language component)

I’m at NDC- Norwegian Developer Conference and this year I have only one session, and I decided to be here all week. Kjersti and Jacob, two of the organizers from Programmutvikling let’s speakers attend workshops for free so this year I was able to take advantage of that and have attended the two-day workshop on […]

May 052014
 
 May 5, 2014  Posted by at 3:05 pm C# & F#, Universal Apps, WinRT, WP, XAML 2 Responses »
(video) Sharing views (XAML) using Portable Class Libraries

After another PCL debate on Twitter I realized many were unaware of the fact that PCLs have undergone a lot of improvements, and for example fully supports sharing views and XAML resources between Windows Store Apps and Windows Phone (WinRT) apps. Here is a demo and some rambling. Happy coding! Big thank you to David […]

Apr 302014
 
 April 30, 2014  Posted by at 3:33 pm C# & F#, Uncategorized, Windows, WPF Tagged with:  No Responses »
Windows Desktop Development Platform Advancements: Notes BUILD 2014

Got in an another hour of cardio today watching this session, here are the notes. Enjoy! Session: Windows Desktop Development Platform Advancements Before you read on, make sure you check out this repo by Paul betts (thank you for telling me about this Paul!). This simplifies handling per monitor DPI in WPF(one of the the main topics […]

Mar 252014
 
 March 25, 2014  Posted by at 9:01 am C# & F#, WinRT No Responses »
More on Search in WInRT: Search history

More on Search in WInRT: Search history A few weeks back I asked on Twitter if you preferred to have search history on or off when doing searches in an application. The majority said off, some said a limited history and some preferred to have a button allowing them to toggle history on or off. […]

Mar 022014
 
 March 2, 2014  Posted by at 9:43 pm C# & F#, WinRT, WP 2 Responses »
6 ways of setting design time data in Windows Store Apps (XAML and C#)

Design time data is data that you use for your application while working on the design without the application running. When the application is running this data is often replaced with the real data. Grab the application here: Without any sort of data to fill in the controls and templates designing the user interface becomes […]

Jan 312014
 
 January 31, 2014  Posted by at 11:04 am C# & F#, PowerShell 3 Responses »
Tray notifications in C# and PowerShell

I’m working on a Pluralsight course on continuous integration and to demonstrate the process in the introduction module I made a make believe CI system in PowerShell, When a build step failed I wanted notifications, and tray notifications can be quite handy (emails as well of course).   This is how you create a tray […]

Jul 262013
 
 July 26, 2013  Posted by at 3:33 pm C# & F#, Not So Stupid Questions 2 Responses »
Ask me (Q224): What are some applications you would recommend to create to learn C#?

A question I’ve gotten quite a few times is which applications I recommend a developer to create to learn C#. I don’t think there are any specific applications that will do that, but I can share with you the projects I’ve done in school, how I’ve learned from them, and how they challenged me (and […]

Jul 152013
 
 July 15, 2013  Posted by at 6:09 pm C# & F#, Uncategorized 16 Responses »
Stupid Question 219: In C# should you use braces on one line if-statements? And are one-liners on the same line considered a bad practice?

Now here are two questions I’ve had for a while, as I’ve seen both ways by good developers and I’m a bit unsure what the most popular rule is. If an if-statement only executes one line then you can omit the braces, I tend to do that as the braces add too much noise. I […]