Playing Last.FM radio on Squeezebox outside UK, US and Germany
Due to usage rights Last.FM only supports music streaming on Squeezebox in United Kingdom, United States and Germany. For the rest of us this is a real hassle!
As a paying customer I never settled with this idea, and have struggled to find a way around these limitations, and with some extra testing I finally discovered how I can trick this
Installing updates on Ubuntu & Linux Mint
Update Manager is a program that updates all installed software and their associated packages, with important software updates for security or recommended patches. The Update Manager checks for updates regularly and gives you much of the same advatadges as the loved and hated Windows Update functionality in W7.
I see however that a lot of users are troubling with the Update Manager lately! What every you try to update you always get the same error:
Could not apply changes! Fix broken packages first.
Debugging an application hang or freeze
A sudden freeze in an application can in some cases be a rather cumbersome problem to solve. Many times we don't have any indications why the application freezes no matter if is a Java, C# or C++ application, web site or dll. In some cases we might have a log file to help us look for the source of the hang or freeze, but in many cases we don't have any indications of problem until we suddenly run in Release mode and far from our dev env!
Here I will try to give some guidelines on how to attack this problem.
LightWord compatibility with IE 9
The LightWord Theme for WordPress has some compaitiblity issues with IE 9. When you try to view a page using the LightWord them, all headers so for half a second, and then disappears. This happens both on single-page and main-page view. Luckily the solution is a quick fix!
The problem is a JavaScript file called cufon-yui.js located in:
wp-content/themes/lightword/js
Download the latest cufon-yui.js from GitHub:
https://github.com/sorccu/cufon/raw/master/js/cufon.js
And save it as cufon-yui.js in
wp-content/themes/lightword/js
Thats it!
Code segments and syntax highlighting in Confluence
Yesterday during a documentation session I wanted to add several SQL-queries in a Confluence post. Of course Confluence supports code segments with highlighting etc through the Confluence New Code Macro. It's easy enough to get started with the macro, but specifying parameters turned out to be very poorly documented. This post will hopefully help fill some of the gap!
How to succeed with WPF and Silverlight (Slides from NNUG)
View more presentations from Pål Eie.
Linq performance, Count() vs Any()
I just came across some very interesting information. Every used the following statement:
if (mysequenece.Count() > 0)
{
//Do something
}
The problem here is the Count() statement which can potentially be very inefficient, as it traverse the whole list to calculate a value. But we reallly don't need the exact count, in most cases we just need to know if there are any values, and hence, we can rather use Any() which is another extension method from Linq.