Archive for the ‘Programming’ Category

Vici CoolStorage ported to MonoTouch

Tuesday, February 23rd, 2010

Philippe ported Vici CoolStorage to MonoTouch over the weekend. This makes Vici CoolStorage available for iPhone development using the MonoTouch framework.

Due to the lack of reflection on MonoTouch class declarations are not abstract. Classes have to be declared as concrete classes with getters and setters.

SQLite is the only supported relational database on iPhone, so Vici CoolStorage for MonoTouch only supports SQLite.

The port is still in beta, but is more or less functional. Input from beta testers is highly appreciated!

Check out the beta at the Vici CoolStorage webpage.

Vici Project support has moved to StackExchange

Wednesday, November 18th, 2009

We all love Stack Overflow, so when Joel Spolsky told the world that the platform would be made publicity available we move the Vici Project support to StackExchange.

All questions regarding Vici MVC, Vici CoolStorage, Vici Parser, Vici WinService and all other future Vici projects can be viewed and answered on http://vici.stackexchange.com.

The old http://support.viciproject.com URL will redirect you to the new support location.

iPhone development books

Sunday, June 21st, 2009

Just a list of books regarding iPhone development. It’s just for personal use. Please leave a comment with your experiences of a book (what do you like/dislike about one of the books) or when a book seems to be missing from the list.

Addison-Wesley Professional

Apress

Manning Publications Co.

O’Reilly

Wrox

Currently I’m reading “iPhone in Action” (Manning) and  I’ve had a look into “Beginning iPhone Develoment” (Apress) in the bookstore. “iPhone in Action” doesn’t seem to be a hands-on book like “Beginning iPhone Development”. I’m considering buying the PDF version of the latter, so I can switch between books/style while getting my hands dirty.

I’m looking out for the upcoming Apress books (“iPhone Games Projects” and “More iPhone 3 Development“) as they seems to cover my areas of interest.

Of course I’ve still a lot to read of the Apple documentation at the iPhone Dev Center.

Holidays are coming up. Lots of time to read or lots of time to spend outside? We’ll see what Belgian weather brings…

PS: I’ll update this post with more info, e.g. Objective-C development books. This is just a small wrap-up of some Googling about iPhone development books.

Improve website page loading with Page Speed

Friday, June 12th, 2009

Thanks to a colleague I discovered Google’s Firefox add-on Page Speed. It helps you determine what you can do to improve the loading speed of you web pages.

Page Speed needs to be used in combination with the well known Firebug add-on.

You want ASP.NET MVC? Choose Vici MVC!

Sunday, May 31st, 2009

Yesterday, Philippe Leybaert released Vici MVC 2.0. This full-blown MVC framework for building ASP.NET web applications without using WebForms is now part of the open-source Vici Project.

Philippe describes Vici Project as follows: “The idea of the Vici Project is to provide .NET developers with a collection of lightweight libraries and frameworks, and at the same time get the community involved in the development and support of these libraries.”

The first sub-project of the Vici Project to be released is Vici MVC, formerly known as ProMesh.NET. Later this week, 2 other projects will be released as well: Vici Parser (formerly LazyParser.NET/SharpTemplate.NET) and Vici CoolStorage (formerly CoolStorage.NET).

I personally use Promesh.NET/Vici.Mvc with Coolstorage.NET/Vici.CoolStorage for some months now and I really enjoy developing web applications using this powerful framework.
After getting tired of using WebForms I’m happy that I now again have full control of my application! No more ViewState’s, no more “wanna-be-events”, …

Are you a .NET web developer? Get your ass over there and try out this wonderful products!

MonoDevelop 2.0 and Mono 2.4 officially released

Wednesday, April 1st, 2009

The Mono project has announced the official release of Mono 2.4 and MonoDevelop 2.0. The new version of MonoDevelop introduces support for a long-awaited integrated debugging tool.

Full article at Ars Technica

Release notes

Wanna test it right away? Download VMWare images, LiveCD or packages at the Mono website.

Internet Explorer 8 and ASP.NET MVC 1.0 released on MIX09

Friday, March 20th, 2009

Well, well, well… Microsoft has released two new “things”…

First, you can all enjoy the official 1.0 release of ASP.NET MVC by downloading it from the Microsoft Download Center.

I must say that I’m not really thrilled about it, because I’m already enjoyng an excellent MVC framework for ASP.NET called ProMesh.NET. It’s lightweight, open source and a perfect match with the open source ORM CoolStorage.NET. Both projects will become part of the Vici Project collection of free tools.

Of course I’ll try out ASP.NET MVC, but I must say I expect it to be “too much, too heavy”. I like it to be no-nonsense and lightweight.

Second… The horror of Internet Explorer continues… Microsoft released the 8.0 version of their web browser. As a real opposer to Internet Explorer I will not install it to use as my daily web browser, but I need it to test my web applications. You want to download it and install it out of free will, please visit the Internet Explorer homepage.

GetHashCode() on a 32-bit vs a 64-bit platform

Friday, February 20th, 2009

If you compile your .NET application with the standard “Any CPU” option, it will run as a 32-bit process on a 32-bit OS and as a 64-bit process on a 64-bis process.

When you use GetHashCode() the generated hashes on the 32-bit platform will differ from the hashes on the 64-bit platform…

The solution is either to not use the GetHashCode() the way you do it, or if you can’t change the way your program works you can run it in 32-bit mode by setting the 32-bit flag in the executable’s headers using CorFlags.exe.

Set the 32-bit flag:CorFlags.exe YourApplication.exe /32BIT+

Remove the 32-bit flag:CorFlags.exe YourApplication.exe /32BIT-

More info about CoreFlags.exe on MSDN: http://msdn.microsoft.com/en-us/library/ms164699(VS.80).aspx

GetHashCode() in .NET 1.1 vs .NET 2.0

Thursday, February 19th, 2009

notepadd

When migrating GarageTV from .NET 1.1 to .NET 3.5 I ran in a “strange” problem.

It seems that there is a SearchBarrel table containing the links between keywords and posts (and some other info like keyword weight etc), so when a search is made you simply do a select using this table.

But… the keyword is hashed using String.GetHashCode() and that’s stored in the DB. Not clever it seems, because the GetHashCode() in .NET 2.0+ differs from the .NET 1.1 version.

Quote from MSDN: Prior to the .NET Framework version 2.0, the hash code provider was based on the System.Collections.IHashCodeProvider interface. Starting with version 2.0, the hash code provider is based on the System.Collections.IEqualityComparer interface.”

And for your information I’ve found an implementation of the GetHashCode() of the .NET 1.1 version, so you can use this method in .NET 2.0 projects.


Int32 HashString(String szStr)
{
ulong hash = 5381;

foreach (int ch in szStr)
{
hash = ((hash << 5) + hash) ^ (ulong)ch;
}

return (Int32)hash;
}

So… enjoy.

RegexBuddy is no longer my buddy

Monday, November 10th, 2008

I’ve replaced my install of RegexBuddy with a free alternative: Expresso. Some years ago I tried both and RegexBuddy had more features… But last week a colleague demoed Expresso and I was convinced. So let’s give it a try.