avatar

Andres Jaimes

Two ways to create a Hello World application with Wt (Witty)

Let’s start by talking a little bit about some elements and methods you will find in the code. Inheriting from WApplication or WContainerWidget are the most common ways to start an application using Wt. A WApplication instance will be in charge of creating your html, head and body tags. A WContainerWidget is usually a div tag (it can also be turned into a ul or ol by using its setList method).

Where does Windows Live Writer store themes

Windows Live Writer makes a local copy of your website images and style sheets everytime you click on the Update Theme button located in the Blog Account ribbon. You can find your local CSS file(s) in the following folder on Windows 7: C:UsersYour NameAppDataRoamingWindows Live Writerblogtemplates If you only have one blog, you are lucky. Get into the only folder you find there. If you have many blogs it will be a trial and error process to find out the right folder where your CSS files are located.

How to install Wt (Witty) on Windows

Installing Wt can be a challenging task if you don’t have the right tools. I spent many days trying to make it work with MinGW and Visual Studio 2005. No luck. Here are some of my results: MinGW I was never able to make a full compile. It was interrupted by this or that reason. I could never get any of the examples to work. Visual C++ Express 2005 Some of the examples worked, however only in “Release” mode.

How to install the C++ Boost Libraries on Windows

Boost is a set of high-quality libraries that speed up C++ development. They are included in most linux distributions and some of them are already part of the C++ Standard Library. In the Windows environment, you have to install them in order to take advantage of them. If you are using Microsoft Visual Studio, you can avoid the following steps by downloading a binary version from http://www.boostpro.com/download/and skip to the Testing section in this document.

One-liner to minimize your CSS files

The following one-liner will help you remove comments, spaces, and more from your CSS files. Suggestions are always welcomed. Important: Before running this command, create a copy of your original file. Try the resulting CSS in a test environment before releasing it. cat style.css | sed -e ' s/^[ t]*//g; # leading spaces s/[ t]*$//g; # trailing spaces s/([:{;,]) /1/g; # spaces after a colon, brace, semicolon, or comma s/ {/{/g; # spaces before a brace /^$/d # blank lines ' | sed -e :a -e '$!

Installing gcc/g++ using MinGW and NetBeans in Windows

C and C++ languages are everywhere. All operating systems use them. People usually choose them because of their limitless power, velocity of execution, great portability and much more. In this tutorial I will show you how to install a C/C++ development environment under Windows. By the way, MinGW includes other compilers for languages like c, c++, objective c fortran and ada.  Install MinGW Go to the MinGW websiteand look for the download link.

Switch from Debug to Release build options in Delphi

Unlike Microsoft’s Visual Studio, the option to switch from Debug to Release in Delphi is kind of hidden. However, it is very easy to use. Go to the Project menu and select Configuration Manager Now select your project, Choose a new configuration and Press the “play” button.  The following picture shows you how the Configuration Manager looks: By default, the difference between the Debug and the Release options include: