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;

type
  THelloWorld = class
    procedure Put;
  end;

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

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

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

  for i:=0 to 99999 do begin
    Hello2World.Put;
  end;

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

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/v4l1compat.so skype

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

LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so 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…) http://mozilla.debian.net/

A %d blogueros les gusta esto: