Archive for May, 2007

try to catch … access violation

Did you know that try { } catch(…) catching Access Violation exceptions is actually a bug ? Starting from Visual C++ 2005 it doesn’t catch windows-based exceptions no more, only C++ exceptions.

Problems with ASP.NET

ASP.NET is cool when seen from above, it’s structure and design are excellent and were very innovative when it was launched (the visual controls that build the page by rendering recursively, very cool, I’m not sure however if they were the first that invented that).

One of the major issues is that there are lots of ways to do something :) it doesn’t force you to do it the correct way. You may so easily screw up by taking the wrong way or writing unnecessary code for what you want to accomplish. Another major issue is that, while some basic things are very simple to do, some are not :) .

4 months 3 weeks 2 days wons Palme d’Or at Cannes !

Wow ! The movie has just won the top prize at this Festival de Cannes 2007 – this is absolutely incredible, I’m very happy and can’t wait to see it !

Installing a SQL Server database with your program

If you want to deploy a database as MDF along with your setup, there’s a big problem you will get with: where you copy the files so that SQL Server is able to read/write them ?

One method is to copy them in SQL Server’s data folder, something like C:\Program Files\Microsoft SQL Server\MSSQL\Data. However, under Vista that folder is a protected area and, nevermind that, it’s not very nice to copy files in SQL Server’s folders.

The best method is thus to copy the MDF to your program’s folder and then give read/write rights to the user SQL Server is running under. You can use EnumServicesStatus to find the SQL Server service, then QueryServiceConfig to find the user account and then the AddAccessRights from here to set the actual permissions.

Windows Server 2008 console only ?

Adrian points to me an excerpt from Windows Server 2008 product overview:

While the Server Core installation option is a fully functioning mode
of the operating system supporting one of the designate roles, it does
not include the server graphic user interface
(GUI). Because Server
Core installations include only what is required for the designated
roles, a Server Core installation will typically require less
maintenance and fewer updates as there are fewer components to manage.

I can bet remote access to manage the services will be possible via MMC, however – there will be no UI on the server or will we have a console UI similar to Linux or what ?

Starcraft 2 !!!

Yes it’s official !

Gibibytes

Did you know that 230 bytes is not called a gigabyte but rather a gibibyte ? WTF ?

New Microsoft development practices

Pretty dissapointed by the OMGWTF contest

I haven’t participated as I somewhat misunderstood the rules – I thought the code should be realistic and not implement a calculator the weirdest way possible, however this is interesting also :) . You can inspect some pre-release code from the participants here.

Digg has serious problems

The site has been down for like 12 hours, there are no explanations on their blog. I really hope they were not hacked or having backup problems.