mihkeltt.blogspot.com
Mihkel's blog: Progress timer
http://mihkeltt.blogspot.com/2009/11/progress-timer.html
My life on the interwebs - programming, photography, 3D art and Saabs. I know - it's been too long since my last post and i feel ashamed. So here goes. I have put together a neat progress timer class for such occasions when you have a long running process looping over a bunch of items and doing its thing. The timer keeps track of the recent times and remaining time. Enough of the chit-chat - to the code. And here's a sample of how to put it all to good use. Var timer = new ProgressTimer(2); timer.Ini...
mihkeltt.blogspot.com
Mihkel's blog: Some handy String extension methods
http://mihkeltt.blogspot.com/2009/03/some-handy-string-extension-methods.html
My life on the interwebs - programming, photography, 3D art and Saabs. Some handy String extension methods. Extension methods - don't we all just love them. If you've been out of the .Net 3.5 loop, here's some catching up - Extension Methods (C# Programming Guide). I thought i'd share some handy string extension methods i've come to love during my experience with C# 3.0. I've never been quite fond of the static. I have two methods for strings that are quite similar to yours:. EmptyIfNull { return source?
mihkeltt.blogspot.com
Mihkel's blog: Debugging made easy
http://mihkeltt.blogspot.com/2009/04/debugging-made-easy.html
My life on the interwebs - programming, photography, 3D art and Saabs. I know that debugging and how it's done is a very personal thing. Still - I'd like to share some of my experiences and tips I've gathered during my years of programming. Here goes. I've set it under the F8 key so it's close to all the rest of the debugging keys. What it does is runs the code and breaks the debugger at the line where the caret is positioned - no need for temporary breakpoints etc. Cool, huh? Next on the list - the.
mihkeltt.blogspot.com
Mihkel's blog: 3D - a thing of wizardry and black magic
http://mihkeltt.blogspot.com/2009/03/3d-thing-of-wizardry-and-black-magic.html
My life on the interwebs - programming, photography, 3D art and Saabs. 3D - a thing of wizardry and black magic. How many times have I had to explain to someone how to create and render 3D imagery? Now, whenever someone asks how this 3D stuff works, I simply send them this link. There - one less thing to worry about :). Subscribe to: Post Comments (Atom). Some handy String extension methods. Discovering ReSharper live templates. 3D - a thing of wizardry and black magic. My shared blog finds.
mihkeltt.blogspot.com
Mihkel's blog: April 2009
http://mihkeltt.blogspot.com/2009_04_01_archive.html
My life on the interwebs - programming, photography, 3D art and Saabs. Public static class DamerauLevenshtein { public static int DamerauLevenshteinDistanceTo(this string @string, string targetString) { return DamerauLevenshteinDistance(@string, targetString); } public static int DamerauLevenshteinDistance(string string1, string string2) { if (String.IsNullOrEmpty(string1) { if (! String.IsNullOrEmpty(string2) return string2.Length; return 0; } if (String.IsNullOrEmpty(string2) { if (! On the same awesom...
mihkeltt.blogspot.com
Mihkel's blog: Modeling a car - a quick run-through
http://mihkeltt.blogspot.com/2009/03/modeling-car-quick-run-through.html
My life on the interwebs - programming, photography, 3D art and Saabs. Modeling a car - a quick run-through. I wrote this little instructional how-to at CGSociety on the topic of modeling a car in a poly-modeling fashion and thought it might be a good idea to make it a blog post. This question get's asked quite ofter - what is your modeling workflow like, so here's how I do it. Extrude inward or do a negative smooth shift of about 1,5mm. Delete the cloned polygons. I hope this gives a little more insight...
mihkeltt.blogspot.com
Mihkel's blog: November 2009
http://mihkeltt.blogspot.com/2009_11_01_archive.html
My life on the interwebs - programming, photography, 3D art and Saabs. I know - it's been too long since my last post and i feel ashamed. So here goes. I have put together a neat progress timer class for such occasions when you have a long running process looping over a bunch of items and doing its thing. The timer keeps track of the recent times and remaining time. Enough of the chit-chat - to the code. And here's a sample of how to put it all to good use. Var timer = new ProgressTimer(2); timer.Ini...
mihkeltt.blogspot.com
Mihkel's blog: February 2009
http://mihkeltt.blogspot.com/2009_02_01_archive.html
My life on the interwebs - programming, photography, 3D art and Saabs. Here's another DIY project i undertook - an Orbis. Inner diameter - 85 mm. Outer diameter - 235 mm. Depth - 60 mm. Neck length - 95 mm. Ventilation pipe - 110 x 55 mm. A rectangular ventilation pipe for the neck. A flower pot for the inner surface. A fruit bowl for the outer surface. White tape for covering the inner surface. Wire for tying the parts together. Use of a dremel type of mini drill strongly suggested. Rosco filter applied...
mihkeltt.blogspot.com
Mihkel's blog: March 2009
http://mihkeltt.blogspot.com/2009_03_01_archive.html
My life on the interwebs - programming, photography, 3D art and Saabs. Some handy String extension methods. Extension methods - don't we all just love them. If you've been out of the .Net 3.5 loop, here's some catching up - Extension Methods (C# Programming Guide). I thought i'd share some handy string extension methods i've come to love during my experience with C# 3.0. I've never been quite fond of the static. Discovering ReSharper live templates. Let me start this off by saying - ReSharper live templa...