Just a bunch of links to stuff that’s helped me while learning. They are in the order that helped me have those “kerklunk” moments that always happen when you “get it” for the first time when learning something new.
PowerShell Magazine Launched Last Week
For the script-minded geeks out there and if you like doing 30 things in one line of code, head on over and check it out…
Windows 8 Links
Now that the Build conference is under way, I thought I’d start a list of good links that come out of it and also links related to Windows 8 itself and how we are going to develop for it. They are in order or priority (for me) as going forward, I’m going to use this as a reference list for myself…
Windows 8 – Gimme some of that HTML5 goodness!
From Mary Jo Foley:
“Sinofsky’s newest blog post also makes it clear (to me, at least) that the new HTML5/JavaScript/Metro apps are going to be the new, cool showcase apps from Microsoft’s perspective.”
Can’t wait to see what MS announces at the Build conference in a couple of weeks…
Good looking code, or fast performing Code? Choose Wisely…
Right around the time that C# 3.0 came out, I was working on a project that required me to count the occurrences of a given character in a string. This was being done within a highly repetitive loop so it was imperative that it be as efficient as possible. I’ve always wanted to do performance testing on this and I finally got around to it recently and thought I’d post the results here.
There isn’t anything in the string class that gives us the functionality to count how many times an individual character occurs. I really hadn’t looked at Lambda expressions and someone at work suggested the following:
string testStr = "this,string,has,commas,in,it" ; int howMany = testStr.ToCharArray().Count(x => x == ',');
I thought, OK, nice and compact (all on one line) but I really didn’t understand it at the time and so went with a brute force way of doing it:
string testStr = "this,string,has,commas,in,it"; int howMany = 0 ; for (int j = 0; j < testStr.Length; ++j) { if (testStr[j] == ',') { ++howMany; } }
And I’m glad I did. Here’s why…
Using Notepad++ To Quickly Format XML
My favorite way to quickly format a given chunk of XML is to use Notepad++ and the XML Tools plugin. You can get Notepad++ here. And the XML Tools plugin is here (you’ll have to wait a few seconds before the download starts).
Installing Notepad
(the following instructions are based on Notepad++ v5.9.4 and my differ in later versions)
1) Chose your language:
Crap User Interface Design
I don’t get it. We’ve had big monitors for the better part of 10 years now and resolutions have steadily increased over time. People, we’re not all running 640 x 480 anymore! I just bought a Logitech Harmony 700 universal remote. I love the remote. Super comfortable, great button layout but their software really isn’t that intuitive to use. And whoever designed the interface really fell short.
Here’s the screen to customize the buttons on the remote:
You can see there’s a scrollbar on the right hand side to show more buttons when you scroll down. The dialog above doesn’t take up even half my laptop screen so the first thing I did was expand the dialog to fill the height of the screen. What do you think happened? Did the controls resize properly? Oh no…
Visual Studio 2008 Breakpoints – Writing To The Output Window
One of the things I really love to use when debugging in VS2008 is the ability to have breakpoints write messages to the Output window. This doesn’t sound like much but there are several advantages to this. You can have messages printed to the Output window without having to re-compile or add any code. And you can also have execution continue without stopping on the breakpoint.
So let’s start with the following code (actual text is at the end of this post):
For Sale: BMW R1200GS Adventure
After 2 glorious years of driving the beast, it’s time to sell it to someone who can appreciate it much more than I have. Having this baby do a 15kms commute every day/night just isn’t fair and it deserves to run wild and free in the mud and sand…