Made to Order Software Corporation Logo

Alexis Wilke's blog

Server Switch!

For the last few days, Doug and I have been working on switching from our old server to our new server. The new one is with JohnCompanies.com that offers VPS (Virtual Private Servers). It was a nice surprise, the computer we have access to has 8 processors running at 3Ghz (”proven” by the Linux Bogomips computation: 5985.31) And so far, I’ve seen about 0.8% of one processor being used. The rest is 100% idle most of the time!

The assert() macro in C/C++

 

This is a subject that comes back all the time in C/C++ boards.

Should you use assertions?

The answer is clearly yes. But the C/C++ assert() function is usually defined using a macro. Macros have several problems. The most common ones are: they offer no type checking, they do not warn you about weird side effects, they have a different syntax than the C/C++ language itself.

One good thing: for a fast program, the debug code used to check parameters, results, etc. is gone.

One really bad thing: if the expression in the macro has a side effect, the release program is different from ...

HTML Forms and the action attribute

Today I had to debug a set of HTML pages. One feature of a website would not work with Internet Explorer. The code was like this:

WordPress at Made to Order Software!

Welcome on Alexis’ Blog at Made to Order Software Corporation.

This is my first blog! I’m glad I got WordPress to work with the m2osw style sheet. It is quite different from the default blogging board setup! Also I needed to make it work for several people on the same website without duplicating the code each time.

I did make changes to the code in order to achieve this feat. First, I had to access a specific database for each person to have its own blog (this may be just me who did not know how to use all the available features of WordPress, though.)

The following function ...

Syndicate content Syndicate content