Mostrando las entradas con la etiqueta English. Mostrar todas las entradas
Mostrando las entradas con la etiqueta English. Mostrar todas las entradas

jueves, 2 de junio de 2016

Installation of MathGL 2.3.5 In Debian

Installation of MathGL 2.3.5 In Debian

Motivation

Despite that MathGL is included in the official Debian repositories, It is not the latest version, and the installed, library includes a lot of wrappers and features I'm unlikely to use.

What is MathGL?

As the official website states, MathGL is,

  • a library for making high-quality scientific graphics under Linux and Windows.
  • a library for the fast data plotting and data processing of large data arrays.
  • a library for working in window and console modes and for easy embedding into other programs.
  • a library with large and growing set of graphics.

Here you can see a gallery with MathGL graphics

I've used this library several times from long time ago (like in this project of Hodgking-Huxley action potential) and I think is a very nice library to generate graphics from your final binaries. For example, I've used it when my code is up and running and I want it to generate graphic output directly (png,pdf,...)


Installation

First of all, download the latest source from here, and then proceed to get the required prerequisistes.

Prerequisites

The list of prerequisites depends a lot on what you'd like to do with MathGL. I wanted to be able to work with Qt5 widgets, pdf output,gsl support (GNU Scientifical library),OpenMP, MPI, HDF5, and wxWidget support. I've installed the required libraries as root by,


To see the complete list of supported features you can read the CMakeLists.txt and look for every line containing option(enable-XYZ) so you add -D enable-XYZ when you call cmake.

Building MathGL

Once you've installed the prerequisites, you can build MathGL at the root directory of the source or simply a build directory. I like more the build approach since keeps the source directory clean.


Any errors during the cmake phase can be related to the lack of any prerequisite so keep an eye on the errors, they often say what needs to get installed or fixed.

If everything goes fine, you finally install MathGL as root by,

make install

And that's it.

Resources


lunes, 25 de abril de 2016

Updating all pip/pip3 installed packages

Motivation

I've been looking for several options to upgrade my local python packages installed via pip. I've read some posts at stackoverflow and some github.com issues addressing different ways to upgrade them, but I was not very satisfied. I tried to make things on my own and here's how I did it.


Updating pip/pip3 packages

I knew that the command list of pip/pip3 consoles return the list of locally installed python packages. Just needed to take that output, process it and use it to feed pip/pip3 itself in order to get the packages updated.



I hope you find this useful!

sábado, 9 de abril de 2016

Script for automated text translation in Linux*

* I'm working with GNU/Linux Debian, but it should work ;)

Motivation

Some times you are reading stuff on books, documents, or simply the web. I know it sucks to keep opening new tabs on your browser in order to get translations for some words you don't understand. A Friend of mine told me about some script that can be bound to a keystroke combination, popping out the meaning of the highlighted text.

There are several of such scripts on the web, so making one by myself wouldn't be smart righ? Wrong!. I've tried some of them and all of them lack of features like checking that the clipboard is not empty or setting some limit for the size of the text to be translated or something like checking the languages involved in the translation(It could be useful every now and then). Besides it proved to be a good bash excercise for me.


How it works?

The operation steps are:

  • Check the contents of the primary clipboard. This clipboard always stores the text selected with thw mouse pointer at X sessions.
  • Queries a translation of the contents to google translator api
  • Formats result and makes a call to notify-send to deal with notifications daemon who shows the translation

Take a look at the script here

Making things work

Download the script and place it somewhere like /usr/local/bin give it execution permissions and bind the executable to some key combination that you will press each time you need to translate a selection of text :D

sábado, 28 de febrero de 2015

Open source tools to document your software projects. Part 2: Pandoc

This is the second part of Open source tools to document your software projects if you want to read the fist part reviewing Markdown follow this link.

PANDOC

If you need to convert files from one markup format into another, pandoc is your swiss-army knife.[1]
Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki markup, OPML, Emacs Org-Mode, Txt2Tags, Microsoft Word docx, EPUB, or Haddock markup to HTML formats ( XHTML, HTML5, and HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides), Word processor  (Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML), Ebooks (EPUB version 2 or 3, FictionBook2), Documentation (DocBook, GNU TexInfo, Groff man pages, Haddock markup), Page layout formats(InDesign ICML), TeX formats(LaTeX, ConTeXt, LaTeX Beamer slides), PDF (via LaTeX), and Lightweight markup formats (Markdown, reStructuredText, AsciiDoc, MediaWiki markup, DokuWiki markup, Emacs Org-Mode, Textile), among others.

Getting pandoc

For Debian users pandoc is available from the official repositories. Get it with standard software applications
$ apt-get install pandoc -y

Using pandoc[2]

If the markdown formatted text is "pandoc.md" the following commands can be tested:

Markdown to HTML:
pandoc pandoc.md -o my_parsed_html.html
Markdown to an standalone HTML
pandoc -s pandoc.md -o my_parsed_html.html
Markdown to an standalone HTML with table of contents
pandoc -s --toc pandoc.md -o my_parsed_html.html
Markdown to  Latex
pandoc -s README -o example4.tex
Latex to Markdown
pandoc -s example4.tex -o example5.text
Markdown to PDF
pandoc -s example4.tex -o example5.text
To see more examples go to [2] or read the man page of pandoc. You can download the README file[3] and parse it to any other format by invoking pandoc and see the fancy output.

References

  1. from the creator of Pandoc at Pandoc webpage
  2. http://johnmacfarlane.net/pandoc/demos.html
  3. http://johnmacfarlane.net/pandoc/demo/README

martes, 24 de febrero de 2015

Open source tools to document your software projects. Part 1: Markdown

In the past weeks I've been preparing a set of three posts on tools for document your software projects. The main goal is to introduce the tool and not to make a complete wiki, so don't expect any detailed descriptions.

Do you document your software?


Most of the scientist when asked for their software project's documentation [1]

As a wannabe scientist I'm aware of the need of having reliable registers about all the work related to any scientific task, such as experiments, simulations, math, results, and so on. Most of the logs are taken either in paper or by type writting to digital documents (LaTex or equivalents). When the project involves software most of the scientist are not so familiar with tools as Doxygen or Sphinx(to mention a couple) due to the needed learning curve: "Ain't nobody got time for that!!". And all the "documenting" lies on tons of commented code lines which rarely will be seen when using the libraries and stuff. In the process of developing and documenting my software I became aware of several tools which could come in handy to other scientist/programmers. That is the motivation to review three tools

  1. Markdown
  2. Pandoc
  3. Doxygen

MARKDOWN  [2][3]


Markdown is intended to be as easy-to-read and easy-to-write as is feasible,and is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).[3]
Created in 2004 by John Gruber and Aaron Swartz[2] Markdown provides a easy way to create HTML formatted filesout of plain text. Once the markdown file is parsed, one obtains a pretty good looking html wich can be embeded or distributed with your software in order to make more friendly the project, (or uploaded to your blog ;) ).
Every markdown file consist of plain text file with extension .md or .mkd (or without any extension since the processor that receives the plaintext file detects the markdown format. But is good to have an extension).

Markdown basics [4][5]

A good summary of Markdown syntax is [5]

Headers

# This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tag

Emphasis

*This text will be italic*
_This will also be italic_

**This text will be bold**
__This will also be bold__

*You **can** combine them*

Lists

Unordered

* Item 1
* Item 2
  * Item 2a
  * Item 2b

Ordered

1. Item 1
2. Item 2
3. Item 3
   * Item 3a
   * Item 3b

Links

http://github.com - automatic!
[GitHub](http://github.com)

Blockquotes

As Kanye West said:

> We're living the future so
> the present is our past.

Inline code

I think you should use an
`<addr>` element here instead.

A good markdown how-to is provided by github


A good example of a Markdown text is
Heading
 =======

 Sub-heading
 -----------

 ### Another deeper heading

 Paragraphs are separated
 by a blank line.

 Let 2 spaces at the end of a line to do a
 line break

 Text attributes *italic*, **bold**,
 `monospace`, ~~strikethrough~~ .

 A [link](http://example.com).
 <<<   No space between ] and (  >>>

 Shopping list:

   * apples
   * oranges
   * pears

 Numbered list:

   1. apples
   2. oranges
   3. pears

 The rain---not the reign---in
 Spain.

The parsed output is

Heading
Sub-heading
Another deeper heading
Paragraphs are separated by a blank line.
Let 2 spaces at the end of a line to do a
line break
Text attributes italicboldmonospacestrikethrough.
link.
Shopping list:
  • apples
  • oranges
  • pears
Numbered list:
  1. apples
  2. oranges
  3. pears
The rain—not the reign—in Spain.

Parsing the document


To parse markdown formatted text you need to have markdown installed on your system. Debian based should have markdown on their official repositories (Debian Jessie - Testing has it)

# apt-get install markdown

Should do the job (obviously as root user).

To parse the text

$ markdown mymark.md > mymarkparsed.html
The html file can be opened with your favorite web browser.

Some remarks

  • Given that Markdown does not count with any standard[2] several software organizations have developed markdown versions adding new features. One example is the git-flavoured markdown syntax as decribed on [5]
  • Once the markdown is parsed, one obtains a pretty good looking html wich can be embeded or distributed with your software in order to make more friendly the project.

References

  1. "Ain't no body got time for that"
  2. http://en.wikipedia.org/wiki/Markdown
  3. http://daringfireball.net/projects/markdown/
  4. http://daringfireball.net/projects/markdown/syntax
  5. https://guides.github.com/features/mastering-markdown/
  6. http://en.wikipedia.org/wiki/Markdown#Example

martes, 17 de febrero de 2015

Set the application to open magnet links on Google-Chrome

Motivation

As a Google-chrome user I wanted to know a way to set up the system to open the magnet links.
Firefox/Iceweasel users know that Firefox handles the default applications by itself, but Google-Chrome (and i think that Chromium) lies on xdg-open. So we need to tell xdg-open how to deal with magnet links

Finding your torrent application

To find your favorite torrent application you must go to 
/usr/share/applications/
And look for a file like 
your_favorite_torrent_app.desktop
In my case It was 
transmission-gtk.desktop
You must check that the file contains the following lines (for my case, transmission-gtk)

...
Exec=transmission-gtk %U
Icon=transmission
Terminal=false
TryExec=transmission-gtk
Type=Application
StartupNotify=true
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
Categories=Network;FileTransfer;P2P;GTK;
X-Ubuntu-Gettext-Domain=transmission
X-AppInstall-Keywords=torrent
Actions=Pause;Minimize;
...

The lines in bold are the important.

Configuring xdg-open

If everything is alright you can call xdg-mime command as root
# xdg-mime default transmission-gtk.desktop x-scheme-handler/magnet
wich tells xdg-open that magnet links should be opened with transmission-gtk.

That's it, all you have to do is test that everything went ok by opening a fancy legal torrent magnet link.

References

lunes, 16 de febrero de 2015

Youtube and HTML5 with no sound on Google Chrome

Youtube video players were switched to use HTML5 instead of the old known flashplayer plugin (more infomation here).
I don't know why it seems that the sound works if you use PulseAudio as your sound layer, but if you use only ALSA (as me, cuz PulseAudio s*cks and wraps around ALSA which I consider unnecessary), the sound migth not work well (In my case it was working very nice but then was gone).

The solution for google-chrome is to start the browser with the option

--try-supported-channel-layouts

So call google-chrome as

$ google-chrome --try-supported-channel-layouts

And play a nice youtube video, if that works for you, Nice!!, You can edit the menu entries and links to google-chrome adding the mentioned command option.

Sound resampling 

Resampling can be another issue (I can not tell about that but google product forum talks about it), some forums suggest to add the option --disable-audio-output-resampler, so another solution could be calling google-chrome as

$ google-chrome --disable-audio-output-resampler --try-supported-channel-layouts 

If that does not help you... Well... F*ck... 

Remarks


  • By the time i tested the solutions my google-chrome version was 40.0.2214.94 (64-bit).
  • I choose to use ALSA system only cuz is more resources efficient and allows the use of very fancy plugins like alsa-equal (reviewed on an earlier post)

sábado, 14 de febrero de 2015

Desktop notifications with notify-send - a mini how-to

Sometimes is useful to put pop-up messages on running scripts, for example when running a back up or anything else, in order to get informed about the progress. The command discussed here is

notify-send

A nice notify-send pop-up message


Display pop-up messages as ordinary user

Supposing that you have an script for make a back-up of your personal documents as

#!/bin/bash
cp -r /home/user/documents /home/user/backups/

And you want to know when the backup has finished without checking the console.

All you have to do is adding a line such as

notify-send "BackUp Completed!" "Hi peasant, the back up process is done"

So the new script looks like

#!/bin/bash
cp -r /home/user/documents /home/user/backups/
notify-send "BackUp Completed!" "Hi peasant, the back up process is done"

To see more options read the man page for notify-send.


Display pop-up messages as root

Supposing that you run the script as root and your wall username is user, yo can add this line to your script

export DISPLAY=:0.0 && sudo -u user notify-send "MsgTitle" "Message"



martes, 11 de marzo de 2014

Invictus, A poem for crossing storms

Invictus

Out of the night that covers me,
Black as the pit from pole to pole,
I thank whatever gods may be
For my unconquerable soul.

In the fell clutch of circumstance
I have not winced nor cried aloud.
Under the bludgeonings of chance
My head is bloody, but unbowed.

Beyond this place of wrath and tears
Looms but the Horror of the shade,
And yet the menace of the years
Finds and shall find me unafraid.

It matters not how strait the gate,
How charged with punishments the scroll,
I am the master of my fate:
I am the captain of my soul.
William Ernest Henley (written on 1875)

domingo, 23 de febrero de 2014

On the unexpected

There will be times in life when unexpected things will happen. Some people can't cope with the fact that every little detail can't be controlled, the fact that life brings his own surprises, unexpected events, unexpected situations, unexpected choices... the unexpected makes this life as dynamical as it is, and I strongly believe that unexpected things make this life worth living.
The good of the unexpected is that always represents challenges, and every challenge brings is own lesson, even if you can't endure the challenge.
The next time you confront unexpected situations, be thankful of having a dynamical life, be thankful for the opportunity of learning, when learning means growing, and growing means evolving to a better version of yourself.

jueves, 15 de agosto de 2013

Dropbox on a multiboot system with Debian

Motivation

Many Linux users might have problems when using the cloud synchronization tool known as Dropbox on a multiboot system. The problem arises when trying to have a Dropbox set-up on both Windows and Linux OS arising "syncronization issues", if you tried this before, you'll understand.
So i searched for solutions to this "issue", but all the proposed ways to solve it were... well, not so elegant for me.

The way i got dropbox working both on Debian GNU/Linux and Windows (same PC)

A little 'bout context

I've already have a Windows-7 OS installed, with a working Dropbox installation at

D:\Daniel\Dropbox

Without having a working installation of Dropbox at Debian.

Making symbolic links on Linux

On Debian, I've the "D:\" windows partition as "/dev/sda5", and is mounted on

/media/Disco-Local/

I wanted to have my Linux-Dropbox folder at

/home/damejia/Dropbox

So work with those locations. Given the context, boot Debian and open a terminal, to login as superuser type

$ su

It will ask you the "root" password. Then, do the following

# ln -s  /media/Disco-Local/Daniel/Dropbox  /home/damejia/Dropbox

This will create a link between both paths, so, the /home/damejia/Dropbox points to  /media/Disco-Local/Daniel/Dropbox

Change the group and the owner of the link created (in my case, the user is damejia)

# chown -R damejia  /home/damejia/Dropbox
# chgrp -R damejia  /home/damejia/Dropbox

We are ready to install Dropbox

Intalling Dropbox on Debian

Then, download the latest version of Dropbox for Debian (they have the .deb), and, from the console install the packe using dpkg (as root, is worth noting that you must be on the same directory as the package)

# dpkg -i dropbox-x.x.x-amd64.deb

On the first run of Dropbox on Debian, it will ask you for the folder to store the syched files. choose

/home/damejia/Dropbox

That is, choosing the link we created before. And... that's it, the Dropbox must appear as synched, since you haven't added files, you will have the same Dropbox path on either Windows or Linux.

jueves, 8 de agosto de 2013

System sound equalized with ALSA for Debian - Get-yo-self equalized!

(Still working on 2015. See workarounds at the end)

Motivation

Like many people, i really enjoy listening music, an, as many would know, having an equalizer can make a really big difference between "the ordinary experience" of listening music.
It's clear that many media players include plugins for audio enhancing, but, whan happens when you listen a music video on youtube, or just simply using grooveshark cloud music service?. For Windows machines the solution could be installing audio-enhancing software like DFX (A really good one, i can tell). But that kind of "stuff" isn't available for Linux. Maybe 'cause we have other kind of solutions, i have found one that works amazing, but you must have ALSA installed on your Linux distribution.

What is the ALSA System?

Many of you may wonder, hows that your Linux Distro communicates with your speakers/headphones/microphon/any-sound-device. Well, there are many ways to get the task donde, but, for Debian distributions (So, for the wide set of Debian-based distros like Ubunty, Mint, and so on) the ALSA system do the job. In words of Wikipedia [1]:
Advanced Linux Sound Architecture (known by the acronym ALSA) is a free, open source software framework released under the GNU GPL and the GNU LGPL[4] that provides an API for sound carddevice drivers. It is part of the Linux kernel. Some of the goals of the ALSA project at its inception were automatic configuration of sound-card hardware and graceful handling of multiple sound devices in a system, goals which it has largely met. A couple of different frameworks, such as JACK, use ALSA to allow performing low-latency professional-grade audio editing and mixing.
So

ALSA Equalizer

Getting the equalizer installed

Installing from repos (Debian Testing and Sid)

In the Debian Testing repositories we have the package libasound2-plugin-equal

The plugin on my Debian repository

In order to have the equalizer installed, as root, do:
# aptitude install libasound2-plugin-equal alsamixergui

  • libasound2-plugin-equal - The equalizer itself
  • alsamixergui - A GUI To control de plugin, but it's optional, cause you can use the command-line alsamixer. Unfortunatetly the only way to control the equalizer is to make use of the alsamixer utility

Manual Installing

For other linux distros, download the latest version of the plugin from here (look for "download")
Then, choose a folder and do

tar xvjf alsaequal-x.x.tar.bz2
cd alsaequal-x.x
make
sudo make install
You should read carefuly the reference [2]

Getting the equalizer to work

Single user

Into your "home" directory ("/home/user" for instance) create a file called ".asoundrc" and paste this code onto it (for more information see [2] and [3] from the references section below)
ctl.equal {
  type equal;
}
pcm.plugequal {
  type equal;
  # Modify the line below if you don't
  # want to use sound card 0.
  slave.pcm "plughw:0,0";
  # or if you want to use with multiple applications output to dmix
  # slave.pcm "plug:dmix"
}
# pcm.equal {
  # Or if you want the equalizer to be your
  # default soundcard uncomment the following
  # line and comment the above line.
 pcm.!default {
  type plug;
  slave.pcm plugequal;
}
Then, as root, you must do

# alsa force-reload

So the sound daemon restarts and loads the plugin. The equalizer should be working now.

Whole system (all users)

You must create the file

/etc/asound.conf

And paste this code onto it (for more information see [2] and [3] from the references section below, take a look at [4] too)
ctl.equal {
  type equal;
}
pcm.plugequal {
  type equal;
  # Modify the line below if you don't
  # want to use sound card 0.
  slave.pcm "plughw:0,0";
  # or if you want to use with multiple applications output to dmix
  # slave.pcm "plug:dmix"
}
# pcm.equal {
  # Or if you want the equalizer to be your
  # default soundcard uncomment the following
  # line and comment the above line.
 pcm.!default {
  type plug;
  slave.pcm plugequal;
}
Then, as root, you must do

# alsa force-reload

So the sound daemon restarts and loads the plugin. The equalizer should be working now.

Using the equalizer

The plugin installs a "virtual" audio device. This device is called "equal" (for obvious reasons).
If you followed the steps above, you shouln't have problems now.
To change the equalizer configuration, you must tell ALSA that you want to work with the "equal" device, so open a terminal and write either

$ alsamixer -D equal


This is how it looks on command line
or

$ alsamixergui -D equal


This is how it looks using alsamixergui

And choose your best audio configuration, and enjoy your audio-enhanced linux distro.

Some Workarounds (edit: 2015-Feb-04)


The above instructions still worked for me (I've resintalled Debian Testing on my PC on January of 2015), but I've noticed two little workarounds that might be of importance if you have more than a sound card or you have been experiencing no sound with web pages as youtube using google-chrome.

More than a soundcard

I've changed my motherd board and has two different sound cards which caused my system to direct the equalized sound stream to the "wrong" sound card.

Thanks to this post [7] I became aware of the need of tweaking the file /usr/share/alsa/alsa.conf in order to get ALSA using the "right" sound card.
If the working sound card is hw:0,1 and the "bad" sound card is hw:0,0, and you used hw:0,1 on your asound.conf as stated on the sections above, but still without equalized sound, you need to tell ALSA that start using sound card 1 (i.e. hw:0,1 in our example) on the file /usr/share/alsa/alsa.conf by changing the following lines:
defaults.ctl.card 0 to defaults.ctl.card 1
defaults.pcm.card 1 to defaults.pcm.card 1
defaults.rawmidi.card 1 to defaults.rawmidi.card 1
defaults.hwdep.card 1 to defaults.hwdep.card 1
defaults.timer.card 1 to defaults.timer.card 1

Youtube and HTML5 on google-chrome

Youtube video players were switched to use HTML5 (google it for more information). I don't know why the sound layer works if you use PulseAudio but if you have only ALSA, the sound migth not work (for me it was working anddd... the sound was gone).

The solution for google-chrome is to start the browser with the option

--try-supported-channel-layouts
So call google-chrome as

google-chrome --try-supported-channel-layouts

And play a nice youtube video, if that works for you, you can edit the menu entries and links to google-chrome adding the mentioned command option.
Resampling can be another issue (I can not tell about that but google product forum talks about it), some forums suggest to add the option --disable-audio-output-resampler, so another solution could be calling google-chrome as

google-chrome --disable-audio-output-resampler --try-supported-channel-layouts 
If that does not help you... Well... F*ck. 

References

  1. http://es.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture
  2. http://www.thedigitalmachine.net/alsaequal.html
  3. http://wiki.linuxmce.org/index.php/Equalizer_for_ALSA
  4. http://www.alsa-project.org/main/index.php/Asoundrc
  5. http://packages.debian.org/source/sid/alsaequal
  6. Download my asound.conf 
  7. https://coderwall.com/p/wajiaq/replacing-pulseaudio-with-alsa-linux

viernes, 26 de abril de 2013

At the beginning: we were boring physicists - A Science Instrumentation Project

Recently, a Friend (a colleage) and Me are engaging a science intrumentation project as part of our formation as Physicist.


Basically, will make an experimental approach to the building of a Bioreactor system for the culture of microalgae. Our main goal is design a method to measure the microalgae concentration inside the bioreactor without opening it, which avoids the risk of contamine the microalgae culture. We detected this as an unsolved problem (at least locally) and that was highly motivating for us, so bad that we made a blog about it: 
http://bioarduino.blogspot.com/


The interesting part is, that we will be using a Arduino Uno32 chipkit to automate stuff, (measurements basically) and a RaspberryPi to monitor and control all the processes, of course this involves circuit designing and building, also lots of programming, so we will be releasing code and maybe designs (licensed under GPL V3) in order to contribute to the community of free software and hardware.

domingo, 21 de abril de 2013

Book: Metro 2033 by Dmitry Glukhovsky


Metro 2033 is a novel written by Dmitry Glukhovsky, released (freely) near the year 2002 (On the web).

Non spoiled Summary

The novel is set in the city of Moscow on the year 2033, 20 years after a nuclear world war that devastated  all cities and countries around the world. The nuclear winter, the high levels of radiation, the emerging dangerous species and  the toxic gases on the surface, forced the survivors to get shelter under the soil. On a post-apocalyptic theme, the novel relates the adventures and thoughts of Artyom, the main character who tries to save his home the VDNKh station from a new hazardous species: the Dark Ones. With particular habilites and an lots of luck, Artyom seems to be destined to save the last refuge of humanity from this threat... or thats how it looks like.

Metro 2033 - Map of locations, factions and more

My opinion

I highly recommend this book. If I could summarize this book with one word, that word would be meaning. In a phrase: the search of meaning.
Along each metro tunels, we appreciate the transformations of a man and the way he sees the world, we see his search for a meaning to life in such a rude environment where life itself is a miracle.The autor explores different searches of meaning among sects and cults, sometimes of political nature, sometimes of spiritual nature, exposing many sorts of life style, showing how te people holds to beliefs in a search of hope, hope of a meaning. The meaning of things is a topic that the author addresses very well.

Interesting facts I've learned

  • Moscow's metro has 188 stations along 12 metro lines, with a total lenght of about 313 km.
  • The deepest metro station is about 85 m under the surface, Moscow's metro is one of the deepest metro systems on earth.
  • The Ostankino tower is one of the tallest buildings on earth, having a height of about 540 m.

Favourite quotations

"Who has the courage and perseverance needed to spend his life searching the darkness, will also be the first to recognize the break of day."

At the begining of the book

"At that time, Artyom thought he understood the essence of the human being and the meaning of life: saw the human being as a complex machine for removing food and shit production. A machine that worked without hindrance for most of life, and whose existence no sense whatsoever, and is that 'sense' meant an end. His end was the process itself: eat as much food as he could, process and release stool, all that remained of the smoky pork ribs, mushroom stews and delicious cakes of flour. The men who passed by were transformed, in the eyes of Artyom, faceless machines, which only served to destroy the beautiful and the useful, engendered only fetid mass and useless. Was angry with them, and watched in disgust as they watched him in disgust."
Chapter 10

 "At all times he sounded in final complaint Dron. His despair, his disappointment, his inability to believe the man to be alone in this scary world full of darkness and had spread to Artyom. Oddly enough, it was the cry of the barbarian, helpless pregnant with nostalgia for a divinity ugly and invented what he did begin to understand the cosmic loneliness that fed the beliefs of men."
Chapter 17

viernes, 12 de abril de 2013

Flash Player plugin problems in Google-Chrome under Debian GNU/Linux

SOME CONTEXT


I'm using Debian GNU/Linux. Some day on the month of February(2013), the flash player plugin suddenly stopped working in the google-chrome web browser. I've noticed the glitch when I used some web pages as groveshark.com and youtube.com, they suggest me the use of HTML5 given the “lack” of a flash player plugin


FACTS


The package flashplugin-nonfree was installed (yeah, i know about Gnash, but i still prefer the non-free version)

No system update were performed, so the problem was not caused by package conflicts.


FINDINGS


Given the facts above, the search begun, i found that Google Chrome uses his own flashplugin version (named flashpepperplugin), independent of the system installed version (flashplugin-nonfree for the Non-free case).
A way to check the plugins, is type chrome://plugins/ in the search/url bar of the browser, then activate the option “Details” (a + on the left-top corner) and allow a version to execute  (system version 11.2 series, and chrome version 11.5 series. at February 2013). a Sensitive path is ~/.config/google-chrome/ the chrome plugin is located at the path PepperFlash

SOLVING THE PROBLEM

I think that the problem was that both flash versions available (system version 11.2 series, and chrome version 11.5 series. at February 2013) so I choose the system version as activated, and deactivated the chrome version. That made flash player plugin work fine.
But, another solution is to use the Chromium browser instead of Google Chrome. That was the solution of my choice, not only solved the problem, I really feel tha Chromium is much faster with an efficient system resources consumption.

To install chromium, just use aptitude as root (su)

# aptitude install chromium
Or by any other package manager, look for chromium.

viernes, 5 de abril de 2013

Thoughts on Linux distributions and Free software community

Linux and GNU/Linux distributions are becoming very popular these days. Maybe a clue on that are the facts that the company Valve has launched a beta testing version of Steam for linux, and there are rumors of Blizzard games for linux to be launched this year, just to mention some cases.
It's worth to ask, ¿how did Linux OS get to this point of popularity?. The main reason could be a combination of: the effort of open-source communities to spread the word while making things more accesible to inexperienced people, the fact that the internet allows the fast interchange of information, and the improvement or, if you prefer, the more user-friendly Linux distributions available as the Ubuntu distro by Canonical.
The first Linux distro i've used was CentOS as part of a computing course at my carreer's pensum. Unsatisfied, the first distro I successfully installed on my Desktop PC was Knoppix (by Klaus Knopper) a Debian based distro. I was amazed by the idea of using software without paying for it (as a Windows user, i knew very well this issue, and the need to pay for licenses and software use), but then, I gradually became aware of the free philosophy behind the free software, and understood that this was a great way to be followed ( in part at least, given some "by-practical-reasons" exceptions) then migrated to Ubuntu and then Kubuntu(a KDE desktop version of Ubuntu) and so on until I got Debian Testing installed about 3 years ago.
Since then, I use to make jokes about Ubuntu users (like the [1] here), or the emmerging Linux Mint (They have the Debian edition, a Debian testing based version of Linux Mint, but, still don't get the point of make a Debian-edition distro if you actually have The Debian GNU/Linux distrubution working) but just for fun, I really think that few people can say that their dive into Linux world and open-source programs was smooth and easy. That brings me again to the point of the user-friendly systems, may be the best way of getting to people is let them know that Linux systems are not too difficult to use/manage/mantain. I think that some of us must say "thanks" by that. Even stigmatized (of being too difficult) distros as Debian need to be acompanied of documentations, community forums, bug-reports, mail-listings, and the most important: The Debian Wiki (must take a look on that), and many of Debian users (as in my case) own their installed systems to those resources (or "recipes" some cases :P). It's worth to think that all those resources were made by more experienced users that took the time to do them, ¿what if they didn't? if they think that newbies do not deserve such guides?, This questions are directed to those who thinks that, by getting some "basic" Linux skills, feel like hackers or something alike, and treat the newbies as if they weren't one of them before.

Given a hypotetical law of "the software improvement is proportional to available users", I think the call is to make the free software and open-source community grow by helping others learn how to get the best of their machines and distros, and not scare them wanting to feel superior or something, that kind of selfish acts doesn't bring you to any higher level (Actually, helping others does it)

Maybe using linux could demand you some learning curve, but it really worths every minute spent.

If you are new to linux and want to choose a distribution, I really think that one of the best documented is The Debian GNU/Linux distrubution, they have the InstallingDebianOn project, so maybe your laptop (or PC) has is own how-to-install debian page.


domingo, 24 de marzo de 2013

Unison: a way of keeping PCs synced


Many of us have a Desktop PC and a Laptop (or Netbook as my case) and always have the problem of keeping our devices synced. Think of you, working on a project and having copies on your Netbook and Desktop. Doing manual synchronizations can mess up things, and risk invaluable data.
We always have the Dropbox option, but thats not possible when you deal with huge sized directories and files. (cuz dropbox only stores 2 Gb in free plan. You can increase this space, but sometimes Dropbox is not a clever option)
I dedicated some time in finding a good syncing application, and found Unison, in the words of the official webpage:

The Unison logo

The advantages of this program is that works in almost any platform, also supports cross-platform syncing (say Linux to Windows) and deals very well with versions (controls the file versions, gives you the option to choice the file to keep, in case is needed)

I been testing this program for about 2 months, and i can tell that works very well, If you need to sync two or more directories, you must give it a try. Some of the uses i give are
  • Keep both Netbook and Desktop with actually the same information on the selected directories.
  • Back-Up tool, cuz you can configure a profile for backing up your flash drive, so, if you need to make some space on your USB flash drive,(for instance, when preparing a hybrid Debian ISO) you can delete information because you can restore it completely and automatically
  • Can have many syncing profiles son can use them when needed
  • Can use SSH, so you just need a LAN (or WLAN) which are pretty common those days
The manuals and tutorials are avaible at here so I won't put that information here.

If you have any questions on configuring, running, or anything else, feel free to leave a comment.

viernes, 22 de marzo de 2013

Starting a bilingual blog - Iniciando un blog bilingüe



(ENG)
Keeping a blog in a different language from native isn't an easy task. In fact, is a complex task. More if you dont have the proper capabilities on the language you want to write.
When i started the blog, i thought that it would be a great idea to write on english, so I could get to a broader audience thanks to the popularity of the language. Despite of that, keeping contents only on english excludes a very broad field of topics and contents that also i would like to share in the blog. In addition, i'm not a very skilled translator, so it would be a shame to lose the essence of some topics very tied to spanish language.
For those and other reasons this blog will be filled with both english an spanish contents.
Thank you reader.


(ES)
Llevar un blog en un idioma distinto al nativo es una tarea más o menos compleja. Tanto más si no se tiene un dominio total del idioma en el cual se piensa a escribir.
Al embarcarme en la empresa de llevar un blog, pensé que sería buena idea escribir en inglés, permitiéndome abarcar un público mucho mayor, esto, debido a la popularidad del idioma. Empero, llevar un blog netamente en inglés excluye ciertos contenidos que guardan un vínculo profundo con el español y que, dadas mis cualidades como traductor, me es imposible traducir. Añado además que sería una pena hacerlo puesto que perderían su esencia.
Por estas y otras razones este blog compartirá publicaciones en inglés y en español.
Muchas gracias lector.

lunes, 18 de marzo de 2013

Book: Twenty Thousand Leagues Under the Sea


About two weeks ago i finished reading Twenty thousand leagues under the sea by Jules Verne. 
It's one of the classics on the science fiction genre, so there must be a lot of reviews and summarys of the book. One thing that i liked most is Verne's style, the mistery atmosphere that he puts around captain Nemo, and his ability to caught attention of the reader is an experience that i recommend you, reader.

The thing I want to bring about the Twenty thousand leagues under the sea and the journey aboard of the Nautilus, is the fact that Jules Verne was very precise about the scientifical data, he speaks about many existing animal species of the seas, also, he mentions natural phenomena as bioluminiscence, submarine volcaninc eruptions, oceanic streams (as that of Gulf), the iceberg phenomena and much more, simply outstanding. To express my point better, think of yourself today, you have internet wich means access to information, in addition put a very prolific scientific environtment(in comparison at least), with just few minutes in front of your laptop, you can get enough scientifical accurate information, so you can try to write some science fiction history. But now, think of yourself in the 1860 decade ('till 1870) and write that book.
It's worth to mention that the book has a lot of historical remarks wich reveals a writer with a huge literacy.



The Nautilus path along the seven seas
Interesting Phenomena
Maelstrom
Near the ending of the book, Verne mentions a phenomenon known as maelstrom (or maelström), a very strong whirlpool current near some Norwegian islands (near Lofoten island) is not considerated as a great harm for modern ships. See the video to get the idea



The phenomenom is caused by the encounter of currents flowing in opposite direction

Sargasso sea
Other interesting phenomena is the Sargasso Sea, a debris zone (my words) due to a circular loop of the Gulf Stream. A NOAA web page says 
The Sargasso Sea is a vast patch of ocean named for a genus of free-floating seaweed called Sargassum. While there are many different types of algae found floating in the ocean all around world, the Sargasso Sea is unique in that it harbors species of sargassum that are 'holopelagic' — this means that the algae not only freely floats around the ocean, but it reproduces vegetatively on the high seas. Other seaweeds reproduce and begin life on the floor of the ocean.

Sargaso Sea due to the Gulf Stream
Sargaso Sea due to the Gulf Stream

Sargasso sea debris

jueves, 7 de marzo de 2013

A commentary on a Nobel peace prize nominee

At the official Nobel prize web page one reads
“The said interest shall be divided into five equal parts, which shall be apportioned as follows: /- - -/ one part to the person who shall have done the most or the best work for fraternity between nations, the abolition or reduction of standing armies and for the holding and promotion of peace congresses.”
(Excerpt from the will of Alfred Nobel)
I put this excerpt, cause the private Bradley Manning is in the list of Nobel Peace Prize nominees.
To put some context, Bradley Manning, is the soldier who starred the scandal of sending classified material of the U.S.A. to the Wikileaks agency (a video of an U.S.A. helicopter  killing civilians and two iraki journalists of the Reuters agency. Also is imputed of sending several compromising docuements concerning the wars at Irak and Afghanistan). Today, private Bradley faces a sentence of 52 years in prison, the imputed charges: treason.
I still wondering how in the world, to worry about innocent human lives is a matter of criminals and traitors, or if Bradley's actions must be qualified as "treason", but my conclusion is always the same. To express my thoughts, I'll borrow a post seen on the official Wikileaks facebook page
The question is not whether Bradley Manning deserves the Nobel Prize. The question is whether the Nobel Prize deserves Bradley Manning.
He probably won't win the prize, and given the conditions, i would consider it as a superficial fact. I really hope that history gives him the reconnaissance that he really deserves, i guess, as a martyr. Perhaps, in some decades, an academic institution gives the Bradley prize on human rights.