Archive | Varios RSS for this section

Photorec file recovery

photorec from testdisk utilities is a great tool available in debian package system to recover files from damaged/deleted disks.

Use Facebook messenger with Pidgin

Facebook said that after some point after April 30 2015, they will shut down Facebook XMPP API — Facebook said API deprecation may take a few weeks — trying to connect to Facebook Chat using an application like Pidgin or Empathy will no longer work and will throw a connection error.

Today was the day when Facebook in Empathy stopped working in my Debian 8 Jessie.

How did I solve it?

I have installed pidgin and https://github.com/jgeboski/purple-facebook and also the gnome extension for Pidgin https://github.com/kagesenshi/gnome-shell-extensions-pidgin

Summarizing the installation of Pidgin, I just had to add a new line to /etc/apt/sources.list

deb http://download.opensuse.org/repositories/home:/jgeboski/Debian_8.0/ /

And then run:

apt-get update
apt-get install pidgin purple-facebook

And for installing the plugin I just run in a command line:

mkdir -p $HOME/.local/share/gnome-shell/extensions
cd $HOME/.local/share/gnome-shell/extensions
git clone git://github.com/muffinmad/pidgin-im-gnome-shell-extension.git pidgin@muffinmad

Then I pressed Alt+F2 and r (to restart gnome shell). Pidgin was then ready to add my new Facebook account under the protocol “Facebook” (don’t use “Facebook XMPP”)

Everything works perfect now (well, at least as good as before with Empathy, but now I’m using Pidgin)

Cursos (promocionado)

Cursos de castellano al mejor precio. CourseTicket es el lider del mercado austríaco ofreciendo cursos y seminarios de todo tipo, desde cursos de cocina, clases de fitness o cursos de idiomas. Tras varios años en Austria y Alemania, Courseticket busca entrar en el mercado español ofreciendo cursos de castellano para extranjeros. Tanto si quieres comprar un curso como vender tus propios cursos, entra en courseticket.com

También disponibles cursos técnicos como medicina y ecografía doppler.

My color prompt in Debian Wheezy

This is my new full color prompt for my user.

Just edit ~/.bashrc where PS1 is defined and add this:

PS1='${debian_chroot:+($debian_chroot)}\[33[01;32m\]\u@\[33[01;33m\]\h\[33[0;32m\]<\[33[0;31m\]${?#0}\[33[32m\]>\[33[0;36m\]\w \$\[33[00m\] '

GNU Screen

Full screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).

Debian package: screen

Info: http://www.debian-administration.org/articles/34

Quick command list:

screen
Run a new screen session
screen -DRA Reattach to a previously detatched session adapting the size of the windows
screen -ls List sessions
screen -wipe <session> Delete a session
Ctrl-a c Create a new window.
Ctrl-a k Kill the current window – after confirmation
Ctrl-a Ctrl-a Switch to the other window
Ctrl-a S Split the current window in two.
Ctrl-a TAB Move between split sections of the screen.
Ctrl-a A Give the the current window a name.
Ctrl-a ” List all windows – move around to change the window with the arrow keys

Install Dropbox In An Entirely Text-Based Linux Environment

Install Dropbox in an small server (like a netbook or a raspberryPI) can make fast and easy automatic file transfer between your computer and your server.
To do it, follow the instructions in:  http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment

Leer Más…

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.
A %d blogueros les gusta esto: