Search This Blog


PostgreSQL over SSH tunnel

17.9. Secure TCP/IP Connections with SSH Tunnels

ssh -L 3333:localhost:5432
psql -h localhost -p 3333 postgres

Magic numbers...

And our debian server installation size at the moment is:

6291456 - (3808624 - (286884 + 2788684)) = 5558400


how do you keep http service running as a non privileged user and bound to port 80?

1. get the server running on 8080
2. in the startup script before the actual server start command add:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080


Sweet Home 3D

Sweet Home 3D is a free interior design application that helps you place your furniture on a house 2D plan, with a 3D preview.

Very easy to use.



Stratego/XT is a language and toolset for program transformation.

Step-By-Step: Moving Your Server To Linux

Step-By-Step: Moving Your Server To Linux


Programming language similar to JavaScript, but with full-featured type system and generics. The command-line compiler can generate Flash SWF files for client-side use, Neko bytecode for server-side use on Apache, or JavaScript using Browser DHTML API to create AJAX web applications.


Yola free Webhosting small review...

Yola | Build a Free Website

.Free styles suck and are few, and that would be Ok but....
.You cannot build your own style.
.U must have to their logo on the page...
But what's really bad is that the logo appears badly formated (at least in my firefox).
. If you wish to use your domain name it must be instead of allowing you to use

. You may download the site in a zip file to be published in a server with (at least) php support.
. Their site tool is simple and rigid, but seams to work nice.


codepad is an online compiler/interpreter, and a simple collaboration tool.


HOWTO: CPU Frequency Scaling w/ Kernel Module

C++ fails on my logic...

union u1 {

union u2 {

union u3 {

union u4 {

union u5 {

// i can undesrtand these...
sizeof(u1); // 0
sizeof(u2); // 1
sizeof(u3); // 8

// but these do not make sense to me...
sizeof(u4); // 8... not 1?
sizeof(u5); // 8... not 1?

// found this when trying to code this:

template <unsigned int unitSize = 1, unsigned int length = 1>
union Bytes {
char c[length * (unitSize / sizeof(char))];
bool b[length * (unitSize / sizeof(bool))];
short s[length * (unitSize / sizeof(short))];
int i[length * (unitSize / sizeof(int))];
long l[length * (unitSize / sizeof(long))];
float f[length * (unitSize / sizeof(float))];
double d[length * (unitSize / sizeof(double))];
long double ld[length * (unitSize / sizeof(long double))];


Enabling Rich Text Editing in your web page...

Midas Specification
Given a document, you can add the attribute "designMode" and set it to "on" to get an editable document. For example, in JavaScript, if you have an iframe with an id of 'edit', you can get its contentDocument and set designMode to "on" like this:


Electronic whiteboard for Linux (ubuntu)

Linux Tips: Electronic whiteboard for Linux (ubuntu)
How to convert our computer screen on to a digital electronic whiteboard, under Linux, could not be simpler. Only need a knob for Wii (Nintendo Console), an infrared emitter (such as a remote control), and the software for it...

Wii Remote