Aug 31

Reflexió: Simulador de Vol de $1.7m sobre Linux

Llegeixo a Slashdot la següent notícia: Australian Defence Force Builds $1.7m Linux-Based Flight Simulator

Aquest post va dirigit als Linux-escèptic que hi ha arreu. Aquest és un molt gran projecte dut a terme sobre linux i crec que les raons que els han portat a triar aquest sistema operatiu van més enllà del TCO que pot tenir sobre el projecte.

Un sistema d’aquesta envergadura necessita de tecnologia puntera, àgil i innovadora per poder treballar al nivell que ho fa.

Està bastant clar que muntar aquest monstre sobre un cluster windows no té massa sentit i més quan pots veure que més d’un 78% dels sistemes del top500 de superordinadors usen aquest sistema operatiu, només un 1% sobre Windows HPC, la resta sobre algún flavor de Unix. Quan es parla de sistemes d’alta potència de càlcul, d’alta eficiència, d’alt rendiment es parla de sistemes corrent amb linux.

Passem a tocar de peus a terra. La majoria de nosaltres no tindrem cap ocasió de poder treballar amb sistemes d’aquest nivell per al nostre ús diari, però tot i així si que tenim la possibilitat de treballar amb els sistemes operatius que s’usen en aquests entorns en el nostre propi ordinador i de nou podrem parlar de sistemes potents, robusts i d’alt rendiment.

Només era una petita reflexió…

Aug 27

Put awk to work

At Atlas we love documentation, as all of you must too! Every system and service is documented into a wiki.

The first time you are told to document a system, you log into that system and start typing commands to get what you need and copy it to a wiki, then apply the appropiate format.

The second time you apply some pipe magic with the awk magic dust, and voila! the info you need as formatted as possible ;)

Some useful commands you will appreciate:

  • Getting partition table formatted, with size (change ext3 to get other fs types):
    df -P -h -t ext3 | grep -v Filesystem | awk '{print "| "$1" | "$6" | "$2" |"}'
  • Getting NFS partition mappings formatted:

    cat /etc/fstab | grep nfs | grep -v '#' | awk '{print "| "$1" | "$2" |"}'
  • Getting apache virtual host configuration:

    cat your-vhost.conf | egrep "ServerName|ServerAlias|RewriteRule|DocumentRoot|ErrorLog|CustomLog|ErrorDocument|VirtualHost|SSL" | awk '{print "| | "$1" | "$2$3$4$5$6" |"}'
    This one needs to be polished a little to get rid of those virtual hosts lines and put its info on the first column.

Put this post to your favourites as it will be updated as more info is needed to format.

Aug 21

Redescobrint el món geek

El nou curru m’està redescobrint aquest vell conegut i mai suficientment explorat.

Deixo un parell de links que us poden agradar:

Que vagin de gust!

Aug 20

Tocava update!

Carai amb el update de wordpress, quantes coses noves!! jaja
De bones m’ha agradat el QuickPress que estic fent servir ara…

Aug 19

Ben tornat!

Després de molts mesos de total inactivitat al blog, crec que és un bon moment per recuperar-lo!

He estat uns quants mesos treballant en el cantó fosc de la força i m’ha servit, molt! Sobretot per poder ser ambidestre en quant SO es refereix.

Ara torno a començar de nou, al costat clar, envoltat de gent molt bona! 1 mes i ja he aprés unes quantes coses!! I com no, les compartiré amb vatrus! els 2  o 3 que em seguiu i el sr. google clar! xD

Som’hi doncs!!

Sep 17

Why not to use a un-twisted pair unshielded ethernet cable

This story is real, it actually happened to me and I wanted to warn anybody who reads this dead blog.

I went a couple of days to Madrid in order to do some networking tasks and try to clean the mess that our office in Madrid was suffering.

All went smooth, and the internet connection was working. I wanted to move our router to another place to leave it all clean, I needed a 5meter long ethernet cable, couldn’t find one so I grabbed a spare cable I found on the floor that was used by the telephone company to move the telephone line. It was a 4-pair cable so for me should be ok, but the pairs were untwisted and the cable wasn’t shielded, didn’t mind for me, it had 8 wires ;) I crimped it correctly, it worked with the only load of me testing out some web pages while chatting a little, so I leave it as good.

After a couple of days without a problem, some users there started to notice that the internet connection was slow and buggy. I could manage to connect to the internal server there from Barcelona and everything seemed ok. I couldn’t figure out what was wrong. Users could ping each other, but some of them couldn’t access the internet. They config was OK taken through dhcp.

Errors randomly popped. I didn’t figure it out to be this fucking cable, no clue about that, from the server I was connected to, from the router I couldn’t ping the outside, like I did a week before, no config changed. It was really wierd!

Finally I ask to get a new ethernet cable for the router to the wall plug. After that all went smooth!! OMFG it was this fucking cable!

So lesson learned… kids use at least a cat5-utp cable for your nets.

Jun 26

2n intent!

En el post anterior, com en altres més antics, hem vaig proposar d’actualitzar més sovint. Fins i tot vaig pensar que una eina com scribefire m’ajudaria, bé no ha estat així. La bona notícia és que ja sé per què!

El scribefire el tinc en el meu pc personal que últimament l’engego ben poc! Així que he instal·lat aquest magnífic addon en el pc de la feina, per poder escriure despres de dinar per exemple…

A veure si es veritat, ara que s’ha acabat el quadri potser que tingui més temps per aquestes coses.

May 24

Showcase: ScribeFire – Fire up your blogging

Ostres! Una actualització! Que estrany tot plegat no?? xD

La veritat és que el blog últimament s’ha quedat en un últim terme total, masses coses i massa poc temps per fer-les.

Ara bé, s’ha de ressuscitar… i ves per on m’he trobat aquesta extensió del Firefox, ScribeFire. És genial.

L’extensió et permet postejar a qualsevol blog que configuris des de un entorn integrat en el mateix firefox. Per a mi això és un doble avantatge. Per una banda s’usen el ui gràfic d’un programa d’escriptori no javascripts-consumidors-de-cpu-per-un-portàtil cosa que el fa molt més ràpid i lleuger. A més, publicar una entrada ara és qüestió de pitjar la icona de la barra d’estat i començar a escriure! Fantàstic!!

Total, espero, distjo, vull que aquesta eina m’ajudi a ser un escriptor més prolífic mentre es manté l’eficiència.

Ho anireu veient…

Mar 8

Evolving

As you might have seen, there has been a long time since a fresh post, let’s change right now!

First of all, timestamp is correct… I don’t feel well this days and couldn’t sleep much… there’s nothing interesting on tv so I’ve been tweaking my blog and post the changes.

Until today I didn’t had an antispam solution for my comments and every couple of days I logged in and marked the spam as needed. What I’ve done now is installing a plugin called WP Captcha Free. It seems promising. It uses an ajax call to the server to get a hash token to make the post, since most bots doesn’t understand javascript, they try to comment directly and if no token is provided the comment is considered spam. I’ll come back and tell you if it works ;)

I also have deactivated the “AddThis” plugin for the sharing icons and so, because most of you don’t even share at all or may be you do it through Menéame. So no chance for me to add the ones I want.

I really want to have those little icons to social-bookmark this, they are cool! I’ve found a way! Yeah, you are right another plugin, this its call obsocialbookmarker. At this point I wanted to add my own social bookmarks site to the plugin so I can handle all of them through it. La Tafanera, Fresqui and Menéame were missing so I have added them. On the next post I’ll explain all my tweaks!

Finally, I thought it would be nice to route my feeds through feedburner. I now most of you are feed readers, and I wanted to know how many of you are out there! Another plugin to do the job, recommended by the startup guide from feedburner.

Because evolution happens…

Feb 16

Jornada Guifi.net – Anoia

Avui s’ha celebrat la Jornada guifi.net de l’Anoia. Per aquells que encara no ho sapigueu guifi.net es una iniciativa que crea xarxa lliure sense fils. Això es tradueix en una xarxa realment extensa a Osona on tothom hi és benvingut a col·laborar i a unir-s’hi.

A l’Anoia guifi.net podríem dir que ha estat al peu del canó des del primer moment, però sempre hi han faltat mans, ganes i sobre tot, el més important, una implicació de les administracions locals.

En aquestes jornades hem pogut comprovar com  molts municipis de l’Anoia ja estan fent xarxa, o tenen ganes de fer-ne, per als seus ciutadans, per millorar la seva qualitat de vida, la seva productivitat, la seva comunicació amb la resta de món. Les cases aïllades, les masies on la gent de pagès hi viu i hi desenvolupen les seves feines molts cops, masses queden fora de l’accés a les noves tecnologies, és en aquest punt i entre altres quan es produeix l’anomenada fractura digital.

Guifi.net pretén dotar als ciutadans d’una plataforma on es puguin coordinar les nombroses iniciatives per fer xarxa ciutadana, xarxa per a la gent, en definitiva una xarxa de debò.

En aquesta jornada ha quedat ben palès que a la comarca hi ha ganes de tirar endavant projectes per apropar les noves tecnologies a la gent que per a les grans operadores en queda al marge.

És hora de fer Xarxa i fer-la LLIURE!

Per a mi podem veure el cas contrari justament a Igualada. Signen un conveni amb Localret per tal de fer un estudi i passar fibra òptica entre les diferents seus de les administracions… Otres de puta mare! L’alcalde podrà baixar porno a una velocitat impressionant! I els de l’oficina de l’altre banda de carrer ho podran descarregar dels seus fitxers compartits… No no no per mi això és un mal enfocament de les coses… El conveni s’ha signat amb 18000€ (prou bé) s’ha m’acut que es podria muntar alguns nodes wireless ben parits amb un trocal amb força ampla de banda i si, tirar cable al telecentre i penjar allí un proxy, óstia! una xarxa guifi de puta mare! Però ei! nono volem una cosa segura que només hi pugui accedir l’ajuntament i prou, no fos cas que els ciutadans en sortíssim beneficiats i no poguéssim prometre coses a les següents eleccions… Per cert teniu la notícia de l’acord aquí i aquí. Això de localret segurament té les seves bones intencions i tal però penso que s’està enfocant malament, hi ha altres vies que serien més beneficioses pels ciutadans, més econòmiques, més accessibles, més justes.

De la manera com som a Igualada… No crec pas que ho proposin i suposo que als de localret ja els va una cosa d’aquest estil, sense gaires preocupacions, tirant pel dret.

Desitjo de debò que guifi.net tiri endavant a la comarca, amb els ajuntaments que pensen amb els seus ciutadans i amb gent com l’Aleix que ho fan possible. Per la meva part, ja hi ha un supernode a igualda!! xD Fora conyes com més gent siguem, millor xarxa tindrem (m’ho he fet anar bé e!)