avatar

Andres Jaimes

How many bytes does an "int" have in c++?

Well, that depends on several things, like your current processor and compiler. The best way to know it, is by using the sizeof operator. Copy the following code, compile it and run it:

#include <iostream>

using namespace std;

int main() { …

A simple Makefile

Learning how to create a Makefile is one of those tasks every C/C++ programmer has to do. Since there are many good make tutorials on the web, I’m only going to share a simplistic makefile that you can use for your projects.

CFLAGS=-c -Wall -Iinclude …

Create a DNS zone file

by FreeBSD.org

An example master zone file for example.org (existing within /etc/namedb/master/example.org) is as follows:

$TTL 3600        ; 1 hour default TTL
example.org.    IN      SOA      ns1.example.org. admin.example.org. ( …

Installing a PDF print server on Ubuntu Server

This article was originally written for Ubuntu 7, but we now know it works for Ubuntu 10 as well. Thanks Shooda!

  1. To start, install the CUPS service and CUPS-PDF files:
sudo apt-get install cupsys sudo apt-get install cups-pdf
  1. Now configure CUPS …