Made to Order Software Corporation Logo

line

PostgreSQL and Drupal conflict

We have been running Drupal for some time now and we have noticed that it generates a very large amount of warnings in our log files.

The warning is in link with improperly formatted strings. PostgreSQL tries to follow the SQL specification to the letter and that means you cannot use the backslash character to escape special character sequences (such as \n for a newline character.)

I knew that in most cases the error was generated because of the function saving a full page or some other content in the cache. In that case, the system includes the characters: \012 and \015 (\n and \r.) That ...

Terms & Conditions

Made to Order Software Corporation
Terms and Conditions for the Online Services
offered by Made to Order Software Corporation

This Agreement ("Agreement") is by and between Made to Order Software Corporation ("m2osw") a Californian Corporation and You, your heirs, your agents, successors and assigns ("You" and "Your"), and is made effective as of the date of electronic execution, which is when you register for an electronic account to use the Web site of m2osw. This Agreement sets forth the terms and conditions of Your use of the Online Services ...

Press Kit

Find high quality Made to Order Software Corporation logos and pictures below. Feel free to contact us if there is anything that you need and you cannot find it on this page.

Our latest press releases are available in our online press room.

Note: whenever the image is not marked with Alpha, there is a solid color background, usually white.

CuteMenu Common Problems

WYSIWYG Editors

If you are using a WYSIWYG editor, it is not unlikely to add a <p> tag at the bottom with a &nbsp; character to make sure that you can place your cursor on that last line. The problem with that is it also adds a lot of space at the bottom of your header and footer in the CuteMenu.

The best is to turn off your WYSIWYG editor whenever you edit these nodes. Since only the administrator is likely to change the header and footer of the menus, it should be just fine.

Drupal Modules, Themes, Docs

Made to Order Software has chosen Drupal for its web presence, and extends this robust open source web software system as a benefit to its customers.

Using Drupal allows us to very quickly develop attractive yet very complex websites. Doing so has allows M2OSW to create custom modules designed specifically for Drupal for the benefit of our customer and the general public. We are proud to present to you our line of Drupal modules for you to enjoy:

Made to Order Software releasing Order Made!® v1.11

In October 2007, Made to Order Software released the first version of Order Made!®, an ordering system that adapts to any restaurant menu for their customers to order their food online.

"Back in 1999, I came up with the concept for Order Made!® I actually wrote a first version but stopped there thinking that it was too soon and no one would want it. Papa John's Pizza actually started their own system two years later, in 2001," says Alexis Wilke, the CEO of Made to Order Software. "And in May 2008, they announced that they had reached $1 billion in online sales. Then ...

Made to Order Software Corporation

The Logo of Made to Order Software Corporation.

Made to Order Software Corporation specializes in corporate consulting, analysis and development services, as well as cutting-edge professional developer tools, libraries, training, and support. Our team of passionate developers are dedicated to uncovering your perfect software solution to analyze, enhance, or improve your critical computer systems—large or small.

Change the encoding of a Postgres database

Ever wondered how you could change the encoding of one of your Postgres database?

I have had that problem several times, and in most cases people tell you to:

  1. Dump your database, may have to use –encoding on the command line
  2. Drop the existing database (or rename it)
  3. Create a new database with the proper encoding
  4. Restore the database

The problem is that there is no support for altering the encoding of a database. The ALTER DATABASE does not include that option. And since it should be really rare, it makes sense.

Now, there is an easier way ...

RPATH not working in wxWidget

At my company we have the sandbox. This uses different free libraries that we compile within a specific directory (to not have problems with the system installation of a customer.) This means you need to include an RPATH in the binary (.ELF) files.

Most of the libraries that we use have a modern configure script that uses libtool. libtool knows how to automatically add the RPATH information to the libraries and binaries generated in a project.

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 ...