Geeks With Blogs


Viktor Bergman .Net für alles April 2007 Entries
Detecting overlapping datetime ranges
So, I was working on this method for detecting overlapping time periods for approx 11 hours. The objective was at first simple: take two timeranges and compare them. If they overlap then shout out loud, if not swallow and get on with your miserable life. I must say that this was MUCH more complex than I first thought. You cannot simply check if (dtmOrigEnd > dtmNewStart ) And (dtmOrigStart < dtmNewEnd ). What happens if the new startdate actually is lower than the old startdate, aswell as the ......

Posted On Thursday, April 26, 2007 12:39 AM

Shipment anxiety
Tonight we are shipping the new RSBC (the national operations center) for the Swedish Customs Service, which is a BIG system.I have developed, amongst other stuff on the system, mainly the Intranet and GPS localization systems. My first really huge deliverysince I started here…so Im a BIT nervous right now. Hope everything will work out though. Not sure why Im blogging this, I should be down helping my colleagues…just had run up and fix some bugs and get some candy haha :D ......

Posted On Tuesday, April 24, 2007 6:19 AM

Ricky Gervais at Microsoft

Posted On Monday, April 23, 2007 9:30 AM

Overloading operators in VB.Net
Firstly I must note that this could mess things up pretty bad in your code so keep that in mind before getting all to excited.I am talking about custom operators for classes and structures, that if done with grace can help you a lot. I will begin with introducing the concept of operators first for those of you who might have forgotten about it and then I'll show you how to create your own. What is an operator anyway?The recognition of operators is universal, in maths as well as in programming. The ......

Posted On Monday, April 16, 2007 9:42 PM

The Discovery crew visited Gothenburg
Yesterday the Discovery crew launched the Science Festival in Gothenburg, mainly because Christer Fuglesang is a national hero here in Sweden. So the majority of the crew is travelling around Sweden for various seminars and interviews, I can't help myself wondering what the rest of the crew is thinking about the trip: P. For us Swedes he is a hero, but it is not like he's the only astronaut in the world…it's just a job like anything else. Except it is really hard to get the job :P. But I am big space ......

Posted On Sunday, April 15, 2007 6:50 PM

WPF/E beta released as Silverlight
Today Microsoft announced that WPF/E will be named Silverlight in the future. Honestly Windows Presentation Foundation / Everywhere is much cooler as a name, not that it really matters. I think Silverlight actually will be a strong competitor to Adobe Flash. It has some neater features unlike Flash, like native 3D support most of the WPF features that's come with XAML. Another strong reason is that Microsoft will push really hard on this, it would be kind of embarrassing for them to release another ......

Posted On Sunday, April 15, 2007 6:25 PM

I thought mainframes were dead
I have learned something new today (good god ;-)). I have always thought that mainframes were dying dinosaurs on its way out off the market; sure you have supercomputers (but are that really the same thing?). What's cool is that IBM is still manufacturing mainframes (like the Z System) and the demand is increasing incredibly especially in banking and other areas with a high demand of reliability, security and accuracy. What is even COOLER than the fact that these giant machines are still in production ......

Posted On Saturday, April 14, 2007 3:28 AM

The only reason why it can be fun to pay taxes
I hate the tax agencies, all of my life I have always owed them money (before my employment at my current employer I had my own company…if you're a swede you know that that means being in constant struggle with the authorities ;-)). But now the table has turned and I actually enjoy finding ways of getting more money back. The way things work normally is that you get your papers in February and are allowed to make adjustments until they need to be sent back in may for approval. If your subtractions ......

Posted On Saturday, April 14, 2007 3:08 AM

Custom selectionbehaviour in Mozilla
I found this cool Mozilla CSS modifier that allows you to change the style of textselection in a page ( hard to explain in English for a swede…but ya know when you left-click and select text :P…is there a real verb for it? :P). *::-moz-selection { background-color:#FF3C00; color:white; } Don't know if there is an equivalent for Internet Explorer, but if you do…please give me a shout =) ......

Posted On Friday, April 13, 2007 9:42 AM

Referencetypes… for dummies
As I've mentioned in an earlier post; one of my aims with this blog is NOT to talk about really advanced topics but instead I will try and reach out to all you beginners. Surely I will write about advanced stuff as I go along but now it is MY blog so I will write whatever the heck I want to :D. So, referencetypes is the meal for the night.The concept of referencetypes was fascinating for me back when I actually realized the definition of it, since it has such an impact on the quality of your code ......

Posted On Monday, April 2, 2007 7:08 PM

Copyright © Viktor Bergman | Powered by: