New look and feel

ПодаръциканализацияAs you’re already noticing, the website now has a new look and feel! The previous theme that we were using for the website was woefully incompatible with WordPress 3.0, so we’ve upgraded to the Atahualpa theme, which has an incredible number of configuration options, and should provide better support for …

Database Corruption / Site Issues

We experienced a massive site failure yesterday evening, with the database corrupted. Those of you familiar with the intricate workings of WordPress will know that the database holds everything — all the content, all the comments, all the configuration data. When the database goes, the site goes. Fortunately, the database …

22.7 — std::string inserting

Inserting Inserting characters into an existing string can be done via the insert() function. Here’s a crazy version of insert() that allows you to insert a substring into a string at an arbitrary index: There is a flavor of insert() that inserts the first portion of a C-style string: There’s …

22.6 — std::string appending

Appending Appending strings to the end of an existing string is easy using either operator+=, append(), or push_back(). There’s also a flavor of append() that can append a substring: Operator+= and append() also have versions that work on C-style strings: There is an additional flavor of append() that works on …

22.4 — std::string character access and conversion to C-style arrays

Character access There are two almost identical ways to access characters in a string. The easier to use and faster version is the overloaded operator[]: There is also a non-operator version. This version is slower since it uses exceptions to check if the nIndex is valid. If you are not …