Feb 03

How can I get application’s directory in a WPF application?

string appPath = AppDomain.CurrentDomain.BaseDirectory;

Jan 26

Cannot convert lambda expression to type ‘string’ because it is not a delegate type

When you get the “Cannot convert lambda expression to type ‘string’ because it is not a delegate type” error in Visual Studio 2010, all you have to do is add

using System.Linq;

to the top of the source file.

Jan 20

Unhandled Error in Silverlight Application 2104

When you get the error 

Message: Unhandled Error in Silverlight Application 
Code: 2104    
Category: InitializeError       
Message: Could not download the Silverlight application. 
Check web server settings

when you try to deploy your Silverlight application you have to register MIME type in your IIS 7:

Extension: .xap
MIME Type: application/octet-stream

At least that is what it worked for me.

Dec 28

Look What I Found #5

PDFsharp: .NET library for creating and processing PDF documents on the fly.
SSH.NET: .NET 4.0 library for SSH client protocol.
MailSystem.NET: suite of .NET components with support for SMTP, POP3, IMAP4, NNTP, MIME, S/MIME, OpenPGP, DNS, vCard, vCalendar, Anti-Spam (Bayesian , RBL, DomainKeys), Queueing, Mail Merge and WhoIs.
Json.NET: makes working with JSON formatted data in .NET simple.


PunyPNG: Free website optimization tool that dramatically reduces the file size of images without loss of quality.
Smush.it: Remove unnecessary bytes from image files.

Dec 28

Free books from Microsoft Press

Microsoft Press offers several e-books free of charge.

For developers

Programming Windows Phone 7, by Charles Petzold
Moving to Microsoft Visual Studio 2010, by Patrice Pelland, Pascal Paré, and Ken Haines
Parallel Programming with Microsoft .NET, by Colin Campbell, Ralph Johnson, Ade Miller and Stephen ToubIntroducing Microsoft SQL Server 2008 R2, by Ross Mistry and Stacia Misner
Microsoft Application Architecture Guide, 2nd Edition, by Microsoft Patterns & Practices Team

For administrators

Deploying Windows 7, Essential Guidance, by Mitch Tulloch, Tony Northrup, Jerry Honeycutt, Ed Wilson, and the Windows 7 Team at Microsoft

For end users

First Look Microsoft Office 2010, by Katherine Murray

Dec 09


Spalnica: JUMIX NCS S 2050-R4OB.

Dnevna soba: JUMIX NCS S 2040-R.

Dec 06

Management vs. Motivation

Antoine de Saint-Exupéry (author of "The Little Prince”): “If you want to build a ship, don’t drum up people to gather wood, divide the work, and give them orders. Instead, teach them to yearn for the vast and endless sea."

Dec 06

How can I tell if Silverlight application is running out of browser?

Application.Current.IsRunningOutOfBrowser indicates whether application was launched as an out-of-browser application.

Application.Current.HasElevatedPermissions indicates if application is running as an out-of-browser application with elevated permissions. Elevated permissions give you direct access to clipboard, user folder and COM enabled applications.

Oct 22

Code Kata

A code kata is an exercise in programming which helps hone your skills through practice and repetition. Here is a list of some of code katas I found:

How to Become a Better Programmer
Project Euler: Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve.
15 Exercises to Know A Programming Language: Part 1
15 Exercises to Know a Programming Language: Part 2, Data Structures
15 Exercises to Know a Programming Language: Part 3, Libraries, Frameworks, and Mashups
Improve your coding skills by playing with challenging exercises
CodingBat: Python and Java practice problems.
TopCoder: Examples of the types of problems you can expect from a TopCoder competition.
TDD Kata: An exercise in coding, refactoring and test-first by Roy Osherove.

Oct 22

How can I change temperature scale from Celsius to Fahrenheit for Braun Thermoscan?

Note: this tip works for Braun Thermoscan Type 6013.

  • Turn on the thermometer. (If it is already turned on, make sure it is not in memory mode.) 
  • Press the “power/mem” button and keep it pressed. Then press and release the activation button to switch over to the “change temperature scale” mode.
  • By pressing the activation button again, the Celsius scale is activated.  Each further pressing of the activation button toggles the scale between Celsius and Fahrenheit.
  • Release the “power/mem” button to return to the ready symbol .

Older posts «

» Newer posts