Setting up multi web site developer testbeds/sandboxes on localhost

Scenario —————————————————————— You are maintaining several web-sites (site1.com, site2.org, etc…). Having just one web-site at localhost with all files (DocumentRoot) at /var/www/html is not an option for you. You need to be able to test all of them and to access them in a convenient way. Solution Setup apache with Virtual Hosts, give your sites […]

Continue reading


How to find ioctl callback function inside the driver source

How can you see which code a module executes when your app calls an ioctl system call? Consider this situation: You app gets to the point where it executes an ioctl syscall and returns an error, e.g. if (ioctl(fd, STVMIX_IOC_DISCONNECTLAYERS, &STVMIX_Ioctl_DisconnectLayers) != 0) { /* IOCTL failed */ ErrorCode = ST_ERROR_BAD_PARAMETER; printf (” STVMIX_DisconnectLayers():Ioctl error […]

Continue reading


cups localhost port

Most portable way to administer your printers under Linux is via CUPS’ web interface (CUPS stands for Common Unix Priniting System btw). Every cups server provides this interface, just point your browser to: http://localhost:631 The beauty of this solution: Being a web-bassed interface it available on every Linux distribution is completely independent of your desktop […]

Continue reading