Archive | enero 2013

Hello world Delphi

Delphi, also know as Object Pascal is a imperative programming language.

There are few free compilers like FreePascal, IDEs like Lazarus and decompilers like DeDe 3.50.02

This is an example of hello world program runable under Lazarus.

program project1;

  THelloWorld = class
    procedure Put;

procedure THelloWorld.Put;
  Writeln('Hello, World!');

  i: integer;
  Hello2World: THelloWorld;               { this is an implicit pointer }

  Hello2World := THelloWorld.Create;      { constructor returns a pointer to an object of type THelloWorld }

  for i:=0 to 99999 do begin

  Hello2World.Free;                       { this line deallocates the THelloWorld object pointed to by HelloWorld }

Solve black screen camera Skype Linux. Solucionar imagen negra camara Skype

The solution under Debian and Ubuntu and all easy-package-system distros is easy, install libv4l-0.
La solución es facil, instalar libv4l-0.

apt-get install libv4l-0

After that we must launch skype with the next command (you can change the launcher in the menu of the system)
Depues, tan solo debemos lanzar Skype con el siguiente comando (tambien puedes cambiar el lanzador en el menú del sistema)

LD_PRELOAD=/usr/lib/libv4l/ skype

If it shows something like “ERROR: object ‘/usr/lib/libv4l/’ from LD_PRELOAD cannot be preloaded: ignored.” we must search the location of the library:
Si nos muestra algo como “ERROR: object can not be preloaded” debemos buscar cual es la ruta de la librería:

LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/ skype

How to install last version Iceweasel

How to install last version of Iceweasel (Mozilla Firefox) in Debian whatever version of both (testing, unstable, stable, beta, alfa, release…)

A %d blogueros les gusta esto: