DirectoryInfo is really very fast to iterate through. While working on some software, I’ve been experimenting with different approaches to find the most efficient and fastest ways to get things done. Here are two different methods that achieve the same result, but in different ways and with radically different speeds: The next method takes a… Continue reading Iterating Over a DirectoryInfo is Fast!
Copying Collapsed Rows/Columns in Excel Excludes Hidden Data
Excel doesn’t copy collapsed columns or rows, which can be excruciatingly painful to figure out. When copying Excel data into a text editor (or other program), if you have a collapsed row or column, the data will not paste properly. So, imagine you have 51 rows of data. That’s what Excel tells you anyways like… Continue reading Copying Collapsed Rows/Columns in Excel Excludes Hidden Data
if (false) { behave nice; } else { freak out; }
Using “false” in a conditional causes all variables in the else clause to return nothing while debugging. Huh? Yep. Here’s a screenshot of inside an else clause: The “comparisons” variable is declared outside the conditional and shows up as does “comparisonIndex” which is also defined outside the conditional. However, the “singleComparison” shows “The name “singleComparison”… Continue reading if (false) { behave nice; } else { freak out; }
Boxing and Unboxing in C#
While working on some threading stuff, I came across an excellent article on boxing and unboxing in C#. The author goes into great detail showing performance along with IL. Boxing and Unboxing in C# It was somewhat comforting to see that I’m already coding in a way that doesn’t need boxing or unboxing. Some things… Continue reading Boxing and Unboxing in C#
Street Kids in Toorak?
Like WTF? Toorak is one of the best neighborhoods in Melbourne. And there are kids living in the alleys here. I just got back after hearing some kid screaming, and there’s no helping there. Well, not for me anyways. I can only extend my hand, but I can’t force help on anyone. The kid is… Continue reading Street Kids in Toorak?
Pakistanis Helping Racist Crap
How can I not hate so many of the people in Pakistan. How can anyone not revile in disgust at so many of the Pakistani people? If there is any force furthering racism against Pakistani people, it’s got to include a lot of Pakistanis. The assassination of Salman Taseer is a travesty. He stood up… Continue reading Pakistanis Helping Racist Crap
How to Update ListViewItems in a Listview
Here are 2 ways to update values in a ListView with C#: You can download the project here: ListViewExample
Basic Tools in English
Well, that’s a big topic, and I really only want to consider a few things that pertain to globalization. Specifically, those in RFC 2119: 1. MUST This word, or the terms “REQUIRED” or “SHALL”, mean that the definition is an absolute requirement of the specification. 2. MUST NOT This phrase, or the phrase “SHALL NOT”,… Continue reading Basic Tools in English
US Gov’t on Wikileaks: The Sky is Falling!
The latest media frenzy is all about how Wikileaks is going to cause mass exterminations of human rights activists around the world, and how the dim light of freedom is being extinguished by Julian Assange. Oh bother! The number of news articles on the topic in the last couple days is staggering. It’s like the… Continue reading US Gov’t on Wikileaks: The Sky is Falling!
This is Not the United States of Planet Earth
Arrogance and idiocy have champions world wide, but none more so than in the United States of America, where the Rule of Law is a total joke. American political and legal responses to Julian Assange and Wikileaks demonstrate a flagrant disregard for established conventions such as the Rule of Law, and reveal American politicians and… Continue reading This is Not the United States of Planet Earth