Skip to main content

Posts

A bug in the Microsoft ReportViewer control

I found a bug in the Microsoft Report Viewer 2005 control. When used in LocalMode in an application that does not have a strongName signature, the reportViewer control saves temporary files to IsolatedStorage folder and does not ever delete the temporary files that it creates. So the result of this is that it takes up a lot of harddrive space, about 240k per page of the report. And when a report has 900 pages, this is a problemo. The problem is solved simply by making sure that your application has a strong name key (see the “signing” tab of project properties).   Nevertheless, this untidy habit of not cleaning up after itself caused me a lot of problems, several customer servers where this application is installed almost ran out of hard drive space because of this bug. Not good!     -Joseph  

Joseph's programming tidbit #1 - scope in .NET

No, I'm not talking about mouthwash. There are five scopes in Visual Basic.NET Private Friend Protected Public Protected Friend An important thing that I learned about scope in the context of inheritance:It is important that the parent class of a child class be public, otherwise the child class won't be able to be instantiated. There is however, an instance when this is Ok. And that is when a class factory method is available to instantiate the class. A factory method is a static method that instantiates members of a separate class. Another sly nuance exception to scope arrises from nested classes. Private class level variables of a class that is nested within another can be accessed by the parent class. Ah ha! There not so private after all! Kinda like the neighbor who has a view into your living room from theirs. Like my neighbor for example. Singelton class: A class designed such that only one instance of that class exists at any one time. I typically accomplish this in my c...

I've started creating an artificially intelligent program.

I've always wanted to create an artificially intelligent software application. So today I have begun this endevor. I have affectionatly named it HAL, after the 2001 Space Odessy HAL. So far it can answer questions like "What will the weather be today." and "Am I pregnant?" My goals in building this program are: Create a program that is intelligent. The criteria for success is that my friend Ilijits Bos will judge this program to be intelligent. If he uses it, interacts with it and after using it says "it is intelligent", then I will have achieved this goal. He will determine his criteria for success at his sole discretion. The only caveat is that I can't bribe him to say yes, or drug him or blackmail him into saying yes. learn new programming techniques In the near future, you will be able to download HAL from Fluckiger.org. HAL will be written in C# .NET, deployed via click-once, and will run as a low-permissions desktop application (security fri...

China log number 1

This is Joseph’s first travel China log from, er Tampa. I was quite heart-broken to arrive and find out that they changed the flight to 6am instead of 10am. I didn’t realized how excited I was to get to China until I heard I was going to have to wait a whole additional day to go to China and see my fam. The other funny thing, is that I will miss my birthday. I will cross the international date line while flying to China, so I will skip ahead 24 hours on September 11th thereby mostly missing my birthday. I leave Detroit at 2:25 pm Central Time Sept 10th and arrive at 8:45 pm Sept 11. Crazy. I guess I’ll just stay 30. I thought it was only possible to miss your birthday if your birthday was on February 29th. But I have now, by fortunate misfortune, found a new way. I will start a stay-young-by-skipping-your-birthday airline. Well, maybe at least they’ll give me special treatment on the flight. One question I hope to answer while I am in China. Perhaps one of the most important questions ...

Identity Theft

A relative asked me if I was concerned about identity theft. Anyone in the world can access my blog which has pictures and descriptions of my life. So, I have decided to post this agreement which you must accept before continuing: I promise not to use any information on this blog to steal Joseph Fluckiger's Identity. [I accept] [I decline] Ok, so that's probably as effective as the Microsoft software agreement which no one I know has ever read, not even my dad who is a lawyer. Seriously, identity theft is real and I don't want it to happen to me or you. So I'll tell you what I know about it and how to prevent it and also identify it early so you can mitigate the consequences if it does happen. Identity theft I think can be summed up as: Someone taking out a loan with your social security number . That's it, that is what identity theft is. If someone has a picture of me, or knows what my son's name, or knows that I used WD-40 over a camp fire last summer, it does...

I passed a Microsoft Certification Test!

I passed the first test of 3 for my Microsoft MCAD Certification! I passed the test called "Developing Windows Based Applications with Microsoft Visual Basic.NET and Microsoft Visual Studio" yippeee!yahooooo! It has been a longtime goal of mine to get the Microsoft Certification for Programmers, so it is a great personal victory for me to have passed the first test. I didn't actually think that I would pass it, I was taking it to see how hard the test was and how hard I would have to study to pass it because I got a take-it-again-for-free coupon. :) But I did in fact pass it on my first try. I scored a 775, while the minimum score to pass is a 700, so I passed by a margin of 3 questions on a 38 question test. I was certainly happy coming out of the test. Now I think I will stop having those nagging nightmares where I'm in school again and can't find my class. Something that didn't bother me conciously, but something - perhaps in retrospect humerously - that bu...