<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7639304458537256473</id><updated>2011-08-06T01:55:42.619+02:00</updated><category term='ruby'/><category term='PhP'/><category term='comment'/><category term='tcpdump'/><category term='client'/><category term='independencia'/><category term='socks'/><category term='gnu'/><category term='command'/><category term='sqlite3'/><category term='test'/><category term='catalunya'/><category term='política'/><category term='delete'/><category term='configuration'/><category term='sound'/><category term='wicked_pdf'/><category term='plugin'/><category term='rails'/><category term='wrap'/><category term='openvpn'/><category term='mdadm'/><category term='raid'/><category term='debootstrap'/><category term='hardware'/><category term='examen'/><category term='linux'/><category term='virtualbox'/><category term='consulta'/><category term='ACTIC'/><category term='vmware'/><category term='cucumber'/><category term='ssh'/><category term='fall'/><category term='links'/><category term='apache2'/><category term='tic'/><category term='xorg'/><category term='errors'/><category term='tunnel'/><category term='ssl'/><category term='gencat'/><category term='samba'/><category term='server'/><category term='català'/><category term='model'/><category term='serialize'/><category term='remove'/><category term='google'/><title type='text'>Software is like sex: it's better when it's free!</title><subtitle type='html'>Apunts i descripcions del dia a dia contra les màquines!!!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tu.llegeix.me/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-3142977773531222892</id><published>2010-11-08T09:31:00.000+01:00</published><updated>2010-11-08T09:31:42.462+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='links'/><title type='text'>Ruby &amp;&amp; Rails interesting sites</title><content type='html'>The Ruby Toolbox &lt;a href="http://ruby-toolbox.com/"&gt;http://ruby-toolbox.com/&lt;/a&gt;&lt;br /&gt;Rails Hispano &lt;a href="http://railshispano.es/"&gt;http://railshispano.es&lt;/a&gt;&lt;br /&gt;Ruby on rails screencasts &lt;a href="http://rubyonrails.org/screencasts%20"&gt;http://rubyonrails.org/screencasts &lt;/a&gt;&lt;br /&gt;Railscasts &lt;a href="http://railscasts.com/"&gt;http://railscasts.com&lt;/a&gt;&lt;br /&gt;Ruby5 &lt;a href="http://ruby5.envylabs.com/"&gt;http://ruby5.envylabs.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-3142977773531222892?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/3142977773531222892/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=3142977773531222892' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/3142977773531222892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/3142977773531222892'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2010/11/ruby-rails-interesting-sites.html' title='Ruby &amp;&amp; Rails interesting sites'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-2904228110608013121</id><published>2010-04-26T12:03:00.003+02:00</published><updated>2010-04-26T12:03:43.645+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='catalunya'/><category scheme='http://www.blogger.com/atom/ns#' term='política'/><category scheme='http://www.blogger.com/atom/ns#' term='consulta'/><category scheme='http://www.blogger.com/atom/ns#' term='independencia'/><title type='text'>Carta a la Comissió Organitzadora del Referèndum d'Independència de Catalunya</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: 'courier new', monospace; font-size: 13px;"&gt;Hola bones, soc informàtic especialitzat en desenvolupament&lt;br /&gt;d'aplicacions web amb programari lliure i administrador de sistemes&lt;br /&gt;GNU/Linux. He estat responsable informàtic de la consulta per el&lt;br /&gt;municipi de Canet d'Adri aquest 25 d'Abril.&lt;br /&gt;&lt;br /&gt;Crec que s'ha fet una bona feina però que hi ha molts punts a&lt;br /&gt;millorar, i així doncs em permeto enviar una valoració i propostes de&lt;br /&gt;millora.&lt;br /&gt;&lt;br /&gt;Primer de tot vull apuntar un tema més aviat filosòfic, doncs estem&lt;br /&gt;fent una consulta per d'independència de Catalunya i emprem un&lt;br /&gt;programari (incloent servidors dels portals web, programari de&lt;br /&gt;votacions, ...) que corre sobre un sistema operatiu privatiu, M.S.&lt;br /&gt;Windows. Això va ser una de les causes que va provocar que ahir el&lt;br /&gt;sistema caigués i dones un toc de poca serietat a les consultes.&lt;br /&gt;&lt;br /&gt;Jo opino que s'haurien de redisenyar i reimplementar aquests sistemes&lt;br /&gt;optant per programari lliure, que ens donaria més eficiència, eficàcia&lt;br /&gt;i fiabilitat cares a les properes consultes.&lt;br /&gt;&lt;br /&gt;Dubto que si es fa servir el mateix sistema informàtic per "Barcelona&lt;br /&gt;decideix", no tornem a trobar-nos en un cas de saturació i caiguda&lt;br /&gt;dels sistemes.&lt;br /&gt;&lt;br /&gt;Quan al programari de votació, la idea de funcionament es bona, però&lt;br /&gt;crec que s'hauria de fer una millora que consistiria en canviar la&lt;br /&gt;tecnologia de programació, passar a una aplicació web amb capacitat de&lt;br /&gt;treball en xarxa i desconnectat d'aquesta, però sincronitzant&lt;br /&gt;bidireccionalment l'informació de votants per poder treballar amb mes&lt;br /&gt;fiabilitat desconnectat de la xarxa. Aquest procés consistiria en&lt;br /&gt;enviar des dels servidors els dni's del servidor als clients quan es&lt;br /&gt;connectin així assegurar millor el no haver botat dos cops. Obviament&lt;br /&gt;aquesta novetat s'hauria de fer exclusivament sota demanda per no&lt;br /&gt;saturar les connexions mes febles.&lt;br /&gt;&lt;br /&gt;Per altre costat hi ha el tema dels dissenys dels portals web, des de&lt;br /&gt;&lt;a href="http://referendumindependencia.cat/" target="_blank"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;http://&lt;wbr&gt;&lt;/wbr&gt;referendumindependencia.cat&lt;/span&gt;&lt;/a&gt;&amp;nbsp;als portals de les votacions que&lt;br /&gt;tenen greus problemes de disseny i de suport multi plataforma (Safari,&lt;br /&gt;Firefox, GoogleChrome, IExplorer, Android, Iphone, ...) i fa que no es&lt;br /&gt;vegin correctament i doni sensació de pocs seriositat. Així també no&lt;br /&gt;es pot navegar de manera lleugera amb dispositius mòbils doncs hi ha&lt;br /&gt;animacions i altres imatges de gran pes que saturen una mica l'escassa&lt;br /&gt;memòria que tenen.&lt;br /&gt;&lt;br /&gt;S'hauria de redisenyar i reimplementar aquests portals i pensar en&lt;br /&gt;totes les plataformes des de les que s'ha d'accedir i tenir més d'un&lt;br /&gt;disseny si cal.&lt;br /&gt;&lt;br /&gt;Per tot això m'ofereixo amb el que faci falta per col·laborar a&lt;br /&gt;millorar tot el sistema informàtic per a les futures consultes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Moltes gràcies&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-2904228110608013121?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/2904228110608013121/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=2904228110608013121' title='3 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2904228110608013121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2904228110608013121'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2010/04/carta-la-comissio-organitzadora-del.html' title='Carta a la Comissió Organitzadora del Referèndum d&apos;Independència de Catalunya'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-2543042488319434340</id><published>2009-12-29T09:32:00.001+01:00</published><updated>2009-12-29T09:39:54.901+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='serialize'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='model'/><category scheme='http://www.blogger.com/atom/ns#' term='errors'/><title type='text'>ActiveRecord::SerializationTypeMismatch: xxx was supposed to be a Hash, but was a String</title><content type='html'>Having a migration like this&lt;br /&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;code&gt;class CreateAs &amp;lt; ActiveRecord::Migration&lt;br /&gt;class CreateAs &amp;lt; ActiveRecord::Migration&lt;br /&gt;&amp;nbsp;def self.up&lt;br /&gt;&amp;nbsp;&amp;nbsp; create_table :as do |t|&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; #...&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; t.string :data, :null =&amp;gt; false&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; t.timestamps&lt;br /&gt;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;def self.down&lt;br /&gt;&amp;nbsp;&amp;nbsp; drop_table :as&lt;br /&gt;&amp;nbsp;end&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;and a model like this&lt;br /&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;code&gt;class A &amp;lt; ActiveRecord::Base&lt;br /&gt;&amp;nbsp;&amp;nbsp;serialize :readable_data, Hash&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;while I was doing something like this using the console an error&amp;nbsp;occurred&lt;br /&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;code&gt;&amp;gt;&amp;gt; A.create :data =&amp;gt; {:a =&amp;gt; "aa"}&lt;br /&gt;&amp;gt;&amp;gt; A.first&lt;br /&gt;ActiveRecord::SerializationTypeMismatch: data was supposed to be a Hash, but was a String&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;This&amp;nbsp;happens&amp;nbsp;when "data" column is too small, the solution is doing a new migration to increment the column's size, like&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;code&gt;class UpdateAs &amp;lt; ActiveRecord::Migration&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;def self.up&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;change_column :as, :data, :string, :limit =&amp;gt; 3000&amp;nbsp;, :null =&amp;gt; false&lt;br /&gt;&amp;nbsp;&amp;nbsp;end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;def self.down&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;change_column :as, :data, :string, :null =&amp;gt; false&lt;br /&gt;&amp;nbsp;&amp;nbsp;end&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-2543042488319434340?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/2543042488319434340/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=2543042488319434340' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2543042488319434340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2543042488319434340'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/12/activerecordserializationtypemismatch.html' title='ActiveRecord::SerializationTypeMismatch: xxx was supposed to be a Hash, but was a String'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-2138545182096060328</id><published>2009-12-24T08:17:00.000+01:00</published><updated>2009-12-24T08:17:57.693+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlite3'/><category scheme='http://www.blogger.com/atom/ns#' term='wicked_pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='plugin'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='test'/><title type='text'>Rails + Sqlite3 "uninitialized constant Encoding"</title><content type='html'>Today I was playing with Rails doing some tests in &lt;a href="http://github.com/lleirborras/wicked_pdf"&gt;wicked_pdf&lt;/a&gt;'s&amp;nbsp;plugin. First of all I created a test project, just executing&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;# rails test&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After that I installed the plugin and started adding some code on tests. Once I was ready to execute them, I started creating the database&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;#rake db:migrate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and this error just apeared&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;rake aborted!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;uninitialized constant Encoding&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;so I started googling a little and nothing was found. After that I traced the command to see some extra debug info&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;#rake db:migrate --trace&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;** Invoke db:test:prepare (first_time)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;** Invoke db:abort_if_pending_migrations (first_time)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;** Invoke environment (first_time)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;** Execute environment&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;** Execute db:abort_if_pending_migrations&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;rake aborted!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;uninitialized constant Encoding&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;/usr/lib/ruby/gems/1.8/gems/sqlite3-0.0.5/lib/sqlite3/encoding.rb:9:in `find'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;/usr/lib/ruby/gems/1.8/gems/sqlite3-0.0.5/lib/sqlite3/database.rb:69:in `initialize'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can see that sqlite3 has some missing libraries, maybe the ruby connector is missing? I tried to install the missing components and everything started running perfectly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;sudo apt-get install libdbd-sqlite3-ruby libsqlite3-ruby&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-2138545182096060328?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/2138545182096060328/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=2138545182096060328' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2138545182096060328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2138545182096060328'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/12/rails-sqlite3-uninitialized-constant.html' title='Rails + Sqlite3 &quot;uninitialized constant Encoding&quot;'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-4276237643598941079</id><published>2009-12-23T09:24:00.001+01:00</published><updated>2009-12-23T09:24:11.286+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gencat'/><category scheme='http://www.blogger.com/atom/ns#' term='ACTIC'/><category scheme='http://www.blogger.com/atom/ns#' term='examen'/><category scheme='http://www.blogger.com/atom/ns#' term='errors'/><category scheme='http://www.blogger.com/atom/ns#' term='tic'/><title type='text'>Errors a les proves de l'ACTIC - Segona part</title><content type='html'>&lt;div style="text-align: justify;"&gt;Després de la primera reflexió en calent sobre les proves de nivell de l'ACTIC, i havent-hi donat unes quantes voltes he vist que hi ha un problema més gros que els que vaig comentar ahir.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Per tal de poder presentar-se a les proves, hom primer ha de &lt;a href="https://actic.gencat.cat/actic/AppJava/usuari.do?reqCode=acces"&gt;registrar-se al portal de l'ACTIC&lt;/a&gt;. Un cop completat el procés es procedeix a &lt;a href="https://actic.gencat.cat/actic/AppJava/zonaPrivada.do?reqCode=inici"&gt;entrar a la zona privada&lt;/a&gt;, es demana dia i lloc i a esperar tot estudiant (o no ;-) ).&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;El dia de la prova es va al lloc escollit on et fan entrar a la prova d'avaluació dins la zona privada del mateix portal. Per tal de pode començar s'ha d'introduir un codi únic i aleatori que l'examinador/a dona imprès en un paper després de comprovar físicament el teu DNI.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Tot sembla molt bonic i molt idíl·lic, sense la possibilitat que cap malèvola persona pugui dissenyar un pla il·legal i immoral per a fer trampes en aquest procés tant seriós... jo diria que no és així...&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Suposo que no cal dir que la reflexió següent no s'ha d'utilitzar en cap cas per cometre actes il·legals o per falsificar proves d'avaluació, només les escric per mostrar un error de disseny de les proves i no em faig responsable de l'us i/o abús que qualsevol persona en pugui fer.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Tornat al tema, i fent servir la tècnica d'actualitzar la pantalla &lt;f5&gt; que ja vaig detallar en l'&lt;a href="http://lleirborras.blogspot.com/2009/12/errors-les-proves-de-lactic-certificat.html"&gt;entrada anterior del blog&lt;/a&gt;, resulta evident que una persona sense els coneixements necessaris per a superar la prova es pot presentar i enviar mitjançant un missatge de text el codi a una persona externa que li pugui fer la prova. El primer només ha d'anar actualitzant la prova &lt;f5&gt; mentre el segon va responent.&amp;nbsp;&lt;/f5&gt;&lt;/f5&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I ara el lector es pregunta, com es pot enviar el codi amb un missatge de text, correu electrònic, ... des de l'aula sense ser vist, molt fàcil. El codi son uns 8 o 10 caràcters (números i lletres majúscules i minúscules). Es dediquen 30 segons a memoritzar-lo i es demanar anar a pixar.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Per altre costat, faltaria descobrir si les preguntes són sempre les mateixes o van canviant, doncs la farsa seria encara major, doncs es podria memoritzar entre varies persones les preguntes i aquestes ser publicades i/o distribuïdes tal i com passa amb els testos dels permisos de conduir.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Com a detall final comentar que el portal de la generalitat està desenvolupat amb Java, però el codi del servidor que interactua amb l'aplicació flaix de les proves és PhP.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-4276237643598941079?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/4276237643598941079/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=4276237643598941079' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4276237643598941079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4276237643598941079'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/12/errors-les-proves-de-lactic-segona-part.html' title='Errors a les proves de l&apos;ACTIC - Segona part'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-4450285741966766378</id><published>2009-12-22T11:37:00.004+01:00</published><updated>2009-12-23T09:15:33.211+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gencat'/><category scheme='http://www.blogger.com/atom/ns#' term='ACTIC'/><category scheme='http://www.blogger.com/atom/ns#' term='examen'/><category scheme='http://www.blogger.com/atom/ns#' term='errors'/><category scheme='http://www.blogger.com/atom/ns#' term='tic'/><title type='text'>Errors a les proves de l'ACTIC - Certificat d'acreditació de competències en tecnologies de la informació i la telecomunicació</title><content type='html'>&lt;div style="text-align: justify;"&gt;Per aquells qui no conegueu que és ACTIC &amp;lt;&lt;a href="http://actic.gencat.cat/"&gt;http://actic.gencat.cat&lt;/a&gt;&amp;gt;, mirem la definició oficia:&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote&gt;... L’ACTIC és el certificat acreditatiu de la competència digital, entesa com la combinació de coneixements, habilitats i actituds en l’àmbit de les tecnologies de la informació i la comunicació que les persones despleguen en situacions reals per assolir objectius determinats amb eficàcia i eficiència. ...&lt;br /&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A la pregunta "perquè et servirà això?" jo no us poc donar resposta, mai se sap si me'l demanen i així ja el tinc tret. Coneixent les institucions públiques catalanes mes val fer aquests&amp;nbsp;examens&amp;nbsp;aviat ja que al cap d'un temps s'adonen dels errors comeses, els arreglen i compliquen les coses!&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Demagògies&amp;nbsp;a part, dir que hi ha 3 nivells, dels quals fins a la tardor del 2010 només et pots avaluar dels dos primers.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;L'examen dels dos primers nivells consisteix en un flaix&amp;nbsp;immens&amp;nbsp;que amorra el navegador i que es penja. Podeu veure el vídeo explicatiu dels examens, o guia de la prova aquí &amp;lt;&lt;a href="http://punttic.cat/actic/"&gt;http://punttic.cat/actic/&lt;/a&gt;&amp;gt;. Aquesta prova depenent del nivell té una durada diferent, marcada per un cronòmetre a la part dreta que va marcant el temps&amp;nbsp;restant.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Aquesta aplicació es penja reiteradament quant finalitza una pregunta i n'ha de començar una de nova, fent que s'hagi d'actualitzar el navegador amb el resultat nefast de navegador penjat! Sort que les preguntes ja respostes es guarden. En aquest moment un examinat despert descobreix els ERRORS GARRAFALS:&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: justify;"&gt;&lt;li&gt;Cada cop que actualitzem el navegador &lt;f5&gt; les preguntes ja respostes es mantenen però el temps restant per finalitzar la prova torna a començar!! O sigui si us veieu apurats de temps ja saveu.&lt;/f5&gt;&lt;/li&gt;&lt;li&gt;Hi ha unes preguntes que consisteixen a fer una seqüència de&amp;nbsp;clics&amp;nbsp;en una simulació d'aplicació ofimàtica,&amp;nbsp;sistema&amp;nbsp;operatiu o altres. A cada acció que has de realitzar l'aplicació et deixa fer un nombre limitat de clics, si el superes salta al següent pas tota sola i t'invalida o&amp;nbsp;suspèn&amp;nbsp;aquella part de la pregunta. Si us passa això i voleu respondre correctament la pregunta, torneu a aplicar el truc anterior, actualitzem el navegador &lt;f5&gt; i tornem a començar la pregunta, i de regal el temps restant torna a iniciar-se!!!!&lt;/f5&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: justify;"&gt;En el meu cas, després de fer això varis cops els examinadors m'han increpat, però sempre queda la resposta "els errors de disseny i/o implementació d'un programari no són culpa del client!"&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Per altre costat, hi ha moltes preguntes inexactes, o que indueixen a error. Si et queixes als examinadors et miren amb cara de lluç sense poder fer res més que dir "tu fes servir la lògica". La meva resposta ha sigut "la lògica em mana queixar-me, enviar un mail a qui toqui i/o publicar un post de denúncia".&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-4450285741966766378?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/4450285741966766378/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=4450285741966766378' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4450285741966766378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4450285741966766378'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/12/errors-les-proves-de-lactic-certificat.html' title='Errors a les proves de l&apos;ACTIC - Certificat d&apos;acreditació de competències en tecnologies de la informació i la telecomunicació'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-6886956060205421575</id><published>2009-06-18T11:23:00.004+02:00</published><updated>2009-06-18T11:25:44.660+02:00</updated><title type='text'>Coordinates converter plugin for Ruby on Rails</title><content type='html'>I uploaded a new rails plugin to convert between coordinates utm and latlng http://github.com/lleirborras/coordinates_converter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-6886956060205421575?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/6886956060205421575/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=6886956060205421575' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6886956060205421575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6886956060205421575'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/06/coordinates-converter-plugin-for-ruby.html' title='Coordinates converter plugin for Ruby on Rails'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-2578397079389365557</id><published>2009-06-01T16:28:00.001+02:00</published><updated>2009-06-01T16:28:46.593+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><title type='text'>Show partitions UUID</title><content type='html'>&lt;pre&gt;# ls /dev/disk/by-uuid/ -alh&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-2578397079389365557?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/2578397079389365557/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=2578397079389365557' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2578397079389365557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2578397079389365557'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/06/show-partitions-uuid.html' title='Show partitions UUID'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-5358205039847788125</id><published>2009-05-21T17:26:00.001+02:00</published><updated>2009-05-21T17:27:26.312+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='comment'/><title type='text'>multi-line comments with ruby</title><content type='html'>&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;=begin&lt;/span&gt;&lt;br /&gt;commented code&lt;br /&gt;also commented&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;=end&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-5358205039847788125?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/5358205039847788125/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=5358205039847788125' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/5358205039847788125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/5358205039847788125'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/05/multi-line-comments-with-ruby.html' title='multi-line comments with ruby'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-687540486502018030</id><published>2009-05-20T09:05:00.003+02:00</published><updated>2009-05-20T09:15:38.903+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='català'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='cucumber'/><title type='text'>cucumber, rails, català</title><content type='html'>&lt;pre&gt;# git clone git://github.com/aslakhellesoy/cucumber.git&lt;br /&gt;# cd cucumber&lt;br /&gt;# rake install_gem&lt;br /&gt;&lt;br /&gt;# script/generate cucumber&lt;br /&gt;# echo "default: -l cat --format pretty" &gt; cucumber.yml&lt;br /&gt;# vi lib/tasks/cucumber.rake&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;t.cucumber_opts  = "-p default"&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-687540486502018030?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/687540486502018030/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=687540486502018030' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/687540486502018030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/687540486502018030'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/05/cucumber-rails-catala.html' title='cucumber, rails, català'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-2057514115639840486</id><published>2009-05-19T15:07:00.000+02:00</published><updated>2009-05-19T15:08:45.811+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='sound'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><title type='text'>reload alsa</title><content type='html'>&lt;pre&gt;# sudo /sbin/alsa force-reload&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-2057514115639840486?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/2057514115639840486/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=2057514115639840486' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2057514115639840486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/2057514115639840486'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/05/reload-alsa.html' title='reload alsa'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-9193369339965312267</id><published>2009-05-09T09:43:00.002+02:00</published><updated>2009-05-26T00:19:29.193+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ssl'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='tunnel'/><category scheme='http://www.blogger.com/atom/ns#' term='socks'/><title type='text'>SSh + socks tunnel</title><content type='html'>&lt;pre&gt;# ssh -v -D PORT USER@SERVER&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-9193369339965312267?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/9193369339965312267/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=9193369339965312267' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/9193369339965312267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/9193369339965312267'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/05/ssh-socks.html' title='SSh + socks tunnel'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-5945508171831698440</id><published>2009-04-29T13:19:00.000+02:00</published><updated>2009-04-29T13:54:12.568+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><title type='text'>Firefox scrolling up -&gt; history back</title><content type='html'>&lt;pre&gt;# xmodmap -e "pointer = 1 2 3 4 5 6 7 10 11 8 9"&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- Permanent method&lt;br /&gt;-- Edit .Xmodmap and add&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;pointer = 1 2 3 4 5 6 7 10 11 8 9&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-5945508171831698440?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/5945508171831698440/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=5945508171831698440' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/5945508171831698440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/5945508171831698440'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/firefox-scrolling-up-history-back.html' title='Firefox scrolling up -&gt; history back'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-6286773457781852382</id><published>2009-04-21T09:27:00.000+02:00</published><updated>2009-04-21T09:51:14.057+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><title type='text'>VirtualBox form console</title><content type='html'>&lt;pre&gt;# VBoxManage createvm -name "MACHINE_NAME" -register&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- Create new hd&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# VBoxManage createhd --filename &amp;lt;filename&amp;gt; --size &amp;lt;megabytes&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- or clone existing one&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# VBoxManage clonehd "EXISTING_DISK.vdi" NEW_DISK.vdi&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;# VBoxManage modifyvm "MACHINE_NAME" -memory 1024MB -acpi on \ &lt;br /&gt;  -hwvirtex on -pae on -hda "NEW_DISK.vdi" -vrdp on -vrdpport 3390 \ &lt;br /&gt;  -nic1 hostif -hostifdev1 ETHERNET_INTERFACE&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- ready to start?&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# VBoxManage list vms&lt;br /&gt;# VBoxManage showvminfo "MACHINE_NAME"&lt;br /&gt;# VBoxHeadless -s "MACHINE_NAME" &amp;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-6286773457781852382?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/6286773457781852382/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=6286773457781852382' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6286773457781852382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6286773457781852382'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/virtualbox-form-console.html' title='VirtualBox form console'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-6352703438099140108</id><published>2009-04-17T16:16:00.001+02:00</published><updated>2009-04-21T09:34:54.154+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><title type='text'>Discover your hardware</title><content type='html'>&lt;pre&gt;# lshw&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-6352703438099140108?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/6352703438099140108/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=6352703438099140108' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6352703438099140108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6352703438099140108'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/discover-your-hardware.html' title='Discover your hardware'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-7432025152608086932</id><published>2009-04-16T16:11:00.000+02:00</published><updated>2009-04-16T16:13:00.912+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='remove'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><title type='text'>The final command</title><content type='html'>&lt;span style="font-style:italic;"&gt;-- shred - overwrite a file to hide its contents, and optionally delete it&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# shred -z -u archivo-a-borrar&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-7432025152608086932?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/7432025152608086932/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=7432025152608086932' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/7432025152608086932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/7432025152608086932'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/final-command.html' title='The final command'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-996516248646696848</id><published>2009-04-14T16:45:00.000+02:00</published><updated>2009-04-14T16:53:04.942+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='ssl'/><category scheme='http://www.blogger.com/atom/ns#' term='apache2'/><title type='text'>apache2 openssl</title><content type='html'>&lt;pre&gt;mkdir /root/apache2-ssl&lt;br /&gt;cd /root/apache2-ssl&lt;br /&gt;sudo a2enmod ssl&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- with key&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;openssl genrsa -des3 -out server.key 1024&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- without key&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;openssl genrsa -out server.key 1024&lt;br /&gt;&lt;br /&gt;openssl rsa -in server.key -out server.key.insecure&lt;br /&gt;openssl req -new -key server.key -out server.csr&lt;br /&gt;openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt&lt;br /&gt;sudo cp server.crt /etc/ssl/certs&lt;br /&gt;sudo cp server.key /etc/ssl/private&lt;br /&gt;&lt;br /&gt;vi /etc/apache2/ports.conf&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;IfModule mod_ssl.c&amp;gt;&lt;br /&gt;    Listen 443&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;vi /etc/apache2/sites-available/default&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;    SSLEngine on&lt;br /&gt;&lt;br /&gt;    SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire&lt;br /&gt;&lt;br /&gt;    SSLCertificateFile /etc/ssl/certs/server.crt&lt;br /&gt;    SSLCertificateKeyFile /etc/ssl/private/server.key&lt;br /&gt;&lt;br /&gt;    RedirectMatch (.*) https://www.aierimux.org$1&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;sudo /etc/init.d/apache2 restart&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-996516248646696848?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/996516248646696848/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=996516248646696848' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/996516248646696848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/996516248646696848'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/apache2-openssl.html' title='apache2 openssl'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-8222776956595478890</id><published>2009-04-14T15:58:00.000+02:00</published><updated>2009-04-14T16:54:01.436+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='ssl'/><category scheme='http://www.blogger.com/atom/ns#' term='openvpn'/><category scheme='http://www.blogger.com/atom/ns#' term='client'/><title type='text'>openvpn ssl 1 server N clients howto</title><content type='html'>&lt;pre&gt;# apt-get install openvpn openssl&lt;br /&gt;# cp -r /usr/share/doc/openvpn/examples/easy-rsa /root&lt;br /&gt;# cd /root/easy-rsa&lt;br /&gt;# vi vars&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;pre&gt;export KEY_COUNTRY="XY"&lt;br /&gt;export KEY_PROVINCE="ASD"&lt;br /&gt;export KEY_CITY="DAS"&lt;br /&gt;export KEY_ORG="XXXXX"&lt;br /&gt;export KEY_EMAIL="abc@def.com&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# ./vars&lt;br /&gt;# ./clean-all&lt;br /&gt;# ./build-ca&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- yes to all&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# ./build-key-server server&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- foreach client&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# ./build-key clientX&lt;br /&gt;&lt;br /&gt;# ./build-dh&lt;br /&gt;# cd keys&lt;br /&gt;# openvpn --genkey --secret ta.key&lt;br /&gt;# cp ca.crt dh1024.pem server.crt server.key /etc/openvpn&lt;br /&gt;# vi /etc/openvpn/server.conf&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1&gt;SERVER.CONF&lt;/h1&gt;&lt;br /&gt;&lt;pre&gt;#################################################&lt;br /&gt;# Sample OpenVPN 2.0 config file for            #&lt;br /&gt;# multi-client server.                          #&lt;br /&gt;#                                               #&lt;br /&gt;# This file is for the server side              #&lt;br /&gt;# of a many-clients &lt;-&gt; one-server              #&lt;br /&gt;# OpenVPN configuration.                        #&lt;br /&gt;#                                               #&lt;br /&gt;# OpenVPN also supports                         #&lt;br /&gt;# single-machine &lt;-&gt; single-machine             #&lt;br /&gt;# configurations (See the Examples page         #&lt;br /&gt;# on the web site for more info).               #&lt;br /&gt;#                                               #&lt;br /&gt;# This config should work on Windows            #&lt;br /&gt;# or Linux/BSD systems.  Remember on            #&lt;br /&gt;# Windows to quote pathnames and use            #&lt;br /&gt;# double backslashes, e.g.:                     #&lt;br /&gt;# "C:\\Program Files\\OpenVPN\\config\\foo.key" #&lt;br /&gt;#                                               #&lt;br /&gt;# Comments are preceded with '#' or ';'         #&lt;br /&gt;#################################################&lt;br /&gt;&lt;br /&gt;# Which local IP address should OpenVPN&lt;br /&gt;# listen on? (optional)&lt;br /&gt;;local a.b.c.d&lt;br /&gt;&lt;br /&gt;# Which TCP/UDP port should OpenVPN listen on?&lt;br /&gt;# If you want to run multiple OpenVPN instances&lt;br /&gt;# on the same machine, use a different port&lt;br /&gt;# number for each one.  You will need to&lt;br /&gt;# open up this port on your firewall.&lt;br /&gt;port 1194&lt;br /&gt;&lt;br /&gt;# TCP or UDP server?&lt;br /&gt;;proto tcp&lt;br /&gt;proto udp&lt;br /&gt;&lt;br /&gt;# "dev tun" will create a routed IP tunnel,&lt;br /&gt;# "dev tap" will create an ethernet tunnel.&lt;br /&gt;# Use "dev tap0" if you are ethernet bridging&lt;br /&gt;# and have precreated a tap0 virtual interface&lt;br /&gt;# and bridged it with your ethernet interface.&lt;br /&gt;# If you want to control access policies&lt;br /&gt;# over the VPN, you must create firewall&lt;br /&gt;# rules for the the TUN/TAP interface.&lt;br /&gt;# On non-Windows systems, you can give&lt;br /&gt;# an explicit unit number, such as tun0.&lt;br /&gt;# On Windows, use "dev-node" for this.&lt;br /&gt;# On most systems, the VPN will not function&lt;br /&gt;# unless you partially or fully disable&lt;br /&gt;# the firewall for the TUN/TAP interface.&lt;br /&gt;;dev tap&lt;br /&gt;dev tun&lt;br /&gt;&lt;br /&gt;# Windows needs the TAP-Win32 adapter name&lt;br /&gt;# from the Network Connections panel if you&lt;br /&gt;# have more than one.  On XP SP2 or higher,&lt;br /&gt;# you may need to selectively disable the&lt;br /&gt;# Windows firewall for the TAP adapter.&lt;br /&gt;# Non-Windows systems usually don't need this.&lt;br /&gt;;dev-node MyTap&lt;br /&gt;&lt;br /&gt;# SSL/TLS root certificate (ca), certificate&lt;br /&gt;# (cert), and private key (key).  Each client&lt;br /&gt;# and the server must have their own cert and&lt;br /&gt;# key file.  The server and all clients will&lt;br /&gt;# use the same ca file.&lt;br /&gt;#&lt;br /&gt;# See the "easy-rsa" directory for a series&lt;br /&gt;# of scripts for generating RSA certificates&lt;br /&gt;# and private keys.  Remember to use&lt;br /&gt;# a unique Common Name for the server&lt;br /&gt;# and each of the client certificates.&lt;br /&gt;#&lt;br /&gt;# Any X509 key management system can be used.&lt;br /&gt;# OpenVPN can also use a PKCS #12 formatted key file&lt;br /&gt;# (see "pkcs12" directive in man page).&lt;br /&gt;ca ca.crt&lt;br /&gt;cert server.crt&lt;br /&gt;key server.key  # This file should be kept secret&lt;br /&gt;&lt;br /&gt;# Diffie hellman parameters.&lt;br /&gt;# Generate your own with:&lt;br /&gt;#   openssl dhparam -out dh1024.pem 1024&lt;br /&gt;# Substitute 2048 for 1024 if you are using&lt;br /&gt;# 2048 bit keys. &lt;br /&gt;dh dh1024.pem&lt;br /&gt;&lt;br /&gt;# Configure server mode and supply a VPN subnet&lt;br /&gt;# for OpenVPN to draw client addresses from.&lt;br /&gt;# The server will take 10.8.0.1 for itself,&lt;br /&gt;# the rest will be made available to clients.&lt;br /&gt;# Each client will be able to reach the server&lt;br /&gt;# on 10.8.0.1. Comment this line out if you are&lt;br /&gt;# ethernet bridging. See the man page for more info.&lt;br /&gt;server 10.8.0.0 255.255.255.0&lt;br /&gt;&lt;br /&gt;# Maintain a record of client &lt;-&gt; virtual IP address&lt;br /&gt;# associations in this file.  If OpenVPN goes down or&lt;br /&gt;# is restarted, reconnecting clients can be assigned&lt;br /&gt;# the same virtual IP address from the pool that was&lt;br /&gt;# previously assigned.&lt;br /&gt;ifconfig-pool-persist ipp.txt&lt;br /&gt;&lt;br /&gt;# Configure server mode for ethernet bridging.&lt;br /&gt;# You must first use your OS's bridging capability&lt;br /&gt;# to bridge the TAP interface with the ethernet&lt;br /&gt;# NIC interface.  Then you must manually set the&lt;br /&gt;# IP/netmask on the bridge interface, here we&lt;br /&gt;# assume 10.8.0.4/255.255.255.0.  Finally we&lt;br /&gt;# must set aside an IP range in this subnet&lt;br /&gt;# (start=10.8.0.50 end=10.8.0.100) to allocate&lt;br /&gt;# to connecting clients.  Leave this line commented&lt;br /&gt;# out unless you are ethernet bridging.&lt;br /&gt;;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100&lt;br /&gt;&lt;br /&gt;# Push routes to the client to allow it&lt;br /&gt;# to reach other private subnets behind&lt;br /&gt;# the server.  Remember that these&lt;br /&gt;# private subnets will also need&lt;br /&gt;# to know to route the OpenVPN client&lt;br /&gt;# address pool (10.8.0.0/255.255.255.0)&lt;br /&gt;# back to the OpenVPN server.&lt;br /&gt;;push "route 192.168.10.0 255.255.255.0"&lt;br /&gt;;push "route 192.168.20.0 255.255.255.0"&lt;br /&gt;&lt;br /&gt;# To assign specific IP addresses to specific&lt;br /&gt;# clients or if a connecting client has a private&lt;br /&gt;# subnet behind it that should also have VPN access,&lt;br /&gt;# use the subdirectory "ccd" for client-specific&lt;br /&gt;# configuration files (see man page for more info).&lt;br /&gt;&lt;br /&gt;# EXAMPLE: Suppose the client&lt;br /&gt;# having the certificate common name "Thelonious"&lt;br /&gt;# also has a small subnet behind his connecting&lt;br /&gt;# machine, such as 192.168.40.128/255.255.255.248.&lt;br /&gt;# First, uncomment out these lines:&lt;br /&gt;;client-config-dir ccd&lt;br /&gt;;route 192.168.40.128 255.255.255.248&lt;br /&gt;# Then create a file ccd/Thelonious with this line:&lt;br /&gt;#   iroute 192.168.40.128 255.255.255.248&lt;br /&gt;# This will allow Thelonious' private subnet to&lt;br /&gt;# access the VPN.  This example will only work&lt;br /&gt;# if you are routing, not bridging, i.e. you are&lt;br /&gt;# using "dev tun" and "server" directives.&lt;br /&gt;&lt;br /&gt;# EXAMPLE: Suppose you want to give&lt;br /&gt;# Thelonious a fixed VPN IP address of 10.9.0.1.&lt;br /&gt;# First uncomment out these lines:&lt;br /&gt;;client-config-dir ccd&lt;br /&gt;;route 10.9.0.0 255.255.255.252&lt;br /&gt;# Then add this line to ccd/Thelonious:&lt;br /&gt;#   ifconfig-push 10.9.0.1 10.9.0.2&lt;br /&gt;&lt;br /&gt;# Suppose that you want to enable different&lt;br /&gt;# firewall access policies for different groups&lt;br /&gt;# of clients.  There are two methods:&lt;br /&gt;# (1) Run multiple OpenVPN daemons, one for each&lt;br /&gt;#     group, and firewall the TUN/TAP interface&lt;br /&gt;#     for each group/daemon appropriately.&lt;br /&gt;# (2) (Advanced) Create a script to dynamically&lt;br /&gt;#     modify the firewall in response to access&lt;br /&gt;#     from different clients.  See man&lt;br /&gt;#     page for more info on learn-address script.&lt;br /&gt;;learn-address ./script&lt;br /&gt;&lt;br /&gt;# If enabled, this directive will configure&lt;br /&gt;# all clients to redirect their default&lt;br /&gt;# network gateway through the VPN, causing&lt;br /&gt;# all IP traffic such as web browsing and&lt;br /&gt;# and DNS lookups to go through the VPN&lt;br /&gt;# (The OpenVPN server machine may need to NAT&lt;br /&gt;# the TUN/TAP interface to the internet in&lt;br /&gt;# order for this to work properly).&lt;br /&gt;# CAVEAT: May break client's network config if&lt;br /&gt;# client's local DHCP server packets get routed&lt;br /&gt;# through the tunnel.  Solution: make sure&lt;br /&gt;# client's local DHCP server is reachable via&lt;br /&gt;# a more specific route than the default route&lt;br /&gt;# of 0.0.0.0/0.0.0.0.&lt;br /&gt;;push "redirect-gateway"&lt;br /&gt;&lt;br /&gt;# Certain Windows-specific network settings&lt;br /&gt;# can be pushed to clients, such as DNS&lt;br /&gt;# or WINS server addresses.  CAVEAT:&lt;br /&gt;# http://openvpn.net/faq.html#dhcpcaveats&lt;br /&gt;;push "dhcp-option DNS 10.8.0.1"&lt;br /&gt;;push "dhcp-option WINS 10.8.0.1"&lt;br /&gt;&lt;br /&gt;# Uncomment this directive to allow different&lt;br /&gt;# clients to be able to "see" each other.&lt;br /&gt;# By default, clients will only see the server.&lt;br /&gt;# To force clients to only see the server, you&lt;br /&gt;# will also need to appropriately firewall the&lt;br /&gt;# server's TUN/TAP interface.&lt;br /&gt;;client-to-client&lt;br /&gt;&lt;br /&gt;# Uncomment this directive if multiple clients&lt;br /&gt;# might connect with the same certificate/key&lt;br /&gt;# files or common names.  This is recommended&lt;br /&gt;# only for testing purposes.  For production use,&lt;br /&gt;# each client should have its own certificate/key&lt;br /&gt;# pair.&lt;br /&gt;#&lt;br /&gt;# IF YOU HAVE NOT GENERATED INDIVIDUAL&lt;br /&gt;# CERTIFICATE/KEY PAIRS FOR EACH CLIENT,&lt;br /&gt;# EACH HAVING ITS OWN UNIQUE "COMMON NAME",&lt;br /&gt;# UNCOMMENT THIS LINE OUT.&lt;br /&gt;;duplicate-cn&lt;br /&gt;&lt;br /&gt;# The keepalive directive causes ping-like&lt;br /&gt;# messages to be sent back and forth over&lt;br /&gt;# the link so that each side knows when&lt;br /&gt;# the other side has gone down.&lt;br /&gt;# Ping every 10 seconds, assume that remote&lt;br /&gt;# peer is down if no ping received during&lt;br /&gt;# a 120 second time period.&lt;br /&gt;keepalive 10 120&lt;br /&gt;&lt;br /&gt;# For extra security beyond that provided&lt;br /&gt;# by SSL/TLS, create an "HMAC firewall"&lt;br /&gt;# to help block DoS attacks and UDP port flooding.&lt;br /&gt;#&lt;br /&gt;# Generate with:&lt;br /&gt;#   openvpn --genkey --secret ta.key&lt;br /&gt;#&lt;br /&gt;# The server and each client must have&lt;br /&gt;# a copy of this key.&lt;br /&gt;# The second parameter should be '0'&lt;br /&gt;# on the server and '1' on the clients.&lt;br /&gt;;tls-auth ta.key 0 # This file is secret&lt;br /&gt;&lt;br /&gt;# Select a cryptographic cipher.&lt;br /&gt;# This config item must be copied to&lt;br /&gt;# the client config file as well.&lt;br /&gt;;cipher BF-CBC        # Blowfish (default)&lt;br /&gt;;cipher AES-128-CBC   # AES&lt;br /&gt;;cipher DES-EDE3-CBC  # Triple-DES&lt;br /&gt;&lt;br /&gt;# Enable compression on the VPN link.&lt;br /&gt;# If you enable it here, you must also&lt;br /&gt;# enable it in the client config file.&lt;br /&gt;comp-lzo&lt;br /&gt;&lt;br /&gt;# The maximum number of concurrently connected&lt;br /&gt;# clients we want to allow.&lt;br /&gt;;max-clients 100&lt;br /&gt;&lt;br /&gt;# It's a good idea to reduce the OpenVPN&lt;br /&gt;# daemon's privileges after initialization.&lt;br /&gt;#&lt;br /&gt;# You can uncomment this out on&lt;br /&gt;# non-Windows systems.&lt;br /&gt;;user nobody&lt;br /&gt;;group nobody&lt;br /&gt;&lt;br /&gt;# The persist options will try to avoid&lt;br /&gt;# accessing certain resources on restart&lt;br /&gt;# that may no longer be accessible because&lt;br /&gt;# of the privilege downgrade.&lt;br /&gt;persist-key&lt;br /&gt;persist-tun&lt;br /&gt;&lt;br /&gt;# Output a short status file showing&lt;br /&gt;# current connections, truncated&lt;br /&gt;# and rewritten every minute.&lt;br /&gt;status openvpn-status.log&lt;br /&gt;&lt;br /&gt;# By default, log messages will go to the syslog (or&lt;br /&gt;# on Windows, if running as a service, they will go to&lt;br /&gt;# the "\Program Files\OpenVPN\log" directory).&lt;br /&gt;# Use log or log-append to override this default.&lt;br /&gt;# "log" will truncate the log file on OpenVPN startup,&lt;br /&gt;# while "log-append" will append to it.  Use one&lt;br /&gt;# or the other (but not both).&lt;br /&gt;;log         openvpn.log&lt;br /&gt;;log-append  openvpn.log&lt;br /&gt;&lt;br /&gt;# Set the appropriate level of log&lt;br /&gt;# file verbosity.&lt;br /&gt;#&lt;br /&gt;# 0 is silent, except for fatal errors&lt;br /&gt;# 4 is reasonable for general usage&lt;br /&gt;# 5 and 6 can help to debug connection problems&lt;br /&gt;# 9 is extremely verbose&lt;br /&gt;verb 3&lt;br /&gt;&lt;br /&gt;# Silence repeating messages.  At most 20&lt;br /&gt;# sequential messages of the same message&lt;br /&gt;# category will be output to the log.&lt;br /&gt;;mute 20&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1&gt;CLIENT.CONF&lt;/h1&gt;&lt;br /&gt;&lt;pre&gt;##############################################&lt;br /&gt;# Sample client-side OpenVPN 2.0 config file #&lt;br /&gt;# for connecting to multi-client server.     #&lt;br /&gt;#                                            #&lt;br /&gt;# This configuration can be used by multiple #&lt;br /&gt;# clients, however each client should have   #&lt;br /&gt;# its own cert and key files.                #&lt;br /&gt;#                                            #&lt;br /&gt;# On Windows, you might want to rename this  #&lt;br /&gt;# file so it has a .ovpn extension           #&lt;br /&gt;##############################################&lt;br /&gt;&lt;br /&gt;# Specify that we are a client and that we&lt;br /&gt;# will be pulling certain config file directives&lt;br /&gt;# from the server.&lt;br /&gt;client&lt;br /&gt;&lt;br /&gt;# Use the same setting as you are using on&lt;br /&gt;# the server.&lt;br /&gt;# On most systems, the VPN will not function&lt;br /&gt;# unless you partially or fully disable&lt;br /&gt;# the firewall for the TUN/TAP interface.&lt;br /&gt;;dev tap&lt;br /&gt;dev tun&lt;br /&gt;&lt;br /&gt;# Windows needs the TAP-Win32 adapter name&lt;br /&gt;# from the Network Connections panel&lt;br /&gt;# if you have more than one.  On XP SP2,&lt;br /&gt;# you may need to disable the firewall&lt;br /&gt;# for the TAP adapter.&lt;br /&gt;;dev-node MyTap&lt;br /&gt;&lt;br /&gt;# Are we connecting to a TCP or&lt;br /&gt;# UDP server?  Use the same setting as&lt;br /&gt;# on the server.&lt;br /&gt;;proto tcp&lt;br /&gt;proto udp&lt;br /&gt;&lt;br /&gt;# The hostname/IP and port of the server.&lt;br /&gt;# You can have multiple remote entries&lt;br /&gt;# to load balance between the servers.&lt;br /&gt;remote my-server-1 1194&lt;br /&gt;;remote my-server-2 1194&lt;br /&gt;&lt;br /&gt;# Choose a random host from the remote&lt;br /&gt;# list for load-balancing.  Otherwise&lt;br /&gt;# try hosts in the order specified.&lt;br /&gt;;remote-random&lt;br /&gt;&lt;br /&gt;# Keep trying indefinitely to resolve the&lt;br /&gt;# host name of the OpenVPN server.  Very useful&lt;br /&gt;# on machines which are not permanently connected&lt;br /&gt;# to the internet such as laptops.&lt;br /&gt;resolv-retry infinite&lt;br /&gt;&lt;br /&gt;# Most clients don't need to bind to&lt;br /&gt;# a specific local port number.&lt;br /&gt;nobind&lt;br /&gt;&lt;br /&gt;# Downgrade privileges after initialization (non-Windows only)&lt;br /&gt;;user nobody&lt;br /&gt;;group nobody&lt;br /&gt;&lt;br /&gt;# Try to preserve some state across restarts.&lt;br /&gt;persist-key&lt;br /&gt;persist-tun&lt;br /&gt;&lt;br /&gt;# If you are connecting through an&lt;br /&gt;# HTTP proxy to reach the actual OpenVPN&lt;br /&gt;# server, put the proxy server/IP and&lt;br /&gt;# port number here.  See the man page&lt;br /&gt;# if your proxy server requires&lt;br /&gt;# authentication.&lt;br /&gt;;http-proxy-retry # retry on connection failures&lt;br /&gt;;http-proxy [proxy server] [proxy port #]&lt;br /&gt;&lt;br /&gt;# Wireless networks often produce a lot&lt;br /&gt;# of duplicate packets.  Set this flag&lt;br /&gt;# to silence duplicate packet warnings.&lt;br /&gt;;mute-replay-warnings&lt;br /&gt;&lt;br /&gt;# SSL/TLS parms.&lt;br /&gt;# See the server config file for more&lt;br /&gt;# description.  It's best to use&lt;br /&gt;# a separate .crt/.key file pair&lt;br /&gt;# for each client.  A single ca&lt;br /&gt;# file can be used for all clients.&lt;br /&gt;ca ca.crt&lt;br /&gt;cert client.crt&lt;br /&gt;key client.key&lt;br /&gt;&lt;br /&gt;# Verify server certificate by checking&lt;br /&gt;# that the certicate has the nsCertType&lt;br /&gt;# field set to "server".  This is an&lt;br /&gt;# important precaution to protect against&lt;br /&gt;# a potential attack discussed here:&lt;br /&gt;#  http://openvpn.net/howto.html#mitm&lt;br /&gt;#&lt;br /&gt;# To use this feature, you will need to generate&lt;br /&gt;# your server certificates with the nsCertType&lt;br /&gt;# field set to "server".  The build-key-server&lt;br /&gt;# script in the easy-rsa folder will do this.&lt;br /&gt;;ns-cert-type server&lt;br /&gt;&lt;br /&gt;# If a tls-auth key is used on the server&lt;br /&gt;# then every client must also have the key.&lt;br /&gt;;tls-auth ta.key 1&lt;br /&gt;&lt;br /&gt;# Select a cryptographic cipher.&lt;br /&gt;# If the cipher option is used on the server&lt;br /&gt;# then you must also specify it here.&lt;br /&gt;;cipher x&lt;br /&gt;&lt;br /&gt;# Enable compression on the VPN link.&lt;br /&gt;# Don't enable this unless it is also&lt;br /&gt;# enabled in the server config file.&lt;br /&gt;comp-lzo&lt;br /&gt;&lt;br /&gt;# Set log file verbosity.&lt;br /&gt;verb 3&lt;br /&gt;&lt;br /&gt;# Silence repeating messages&lt;br /&gt;;mute 20&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-8222776956595478890?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/8222776956595478890/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=8222776956595478890' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/8222776956595478890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/8222776956595478890'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/openvpn-ssl-1-server-n-clients-howto.html' title='openvpn ssl 1 server N clients howto'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-4458854394926143992</id><published>2009-04-14T15:00:00.001+02:00</published><updated>2009-05-20T09:14:30.138+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mdadm'/><category scheme='http://www.blogger.com/atom/ns#' term='raid'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='fall'/><title type='text'>MDADM few things</title><content type='html'>Mirroring /dev/sda* and /dev/sdb* , sdb falls&lt;br /&gt;&lt;pre&gt;# cat /proc/mdstat&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- remove broken disk from raid&lt;br /&gt;-- repeat foreach partition&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# mdadm --manage /dev/md0 --fail /dev/sdb*&lt;br /&gt;# mdadm --manage /dev/md0 --remove /dev/sdb*&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- clone disk partition table from current working disk to the new one&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# sfdisk -d /dev/sda | sfdisk /dev/sdb&lt;br /&gt;# fdisk -l &lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- add new disk to raid&lt;br /&gt;-- repeat foreach partition&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# mdadm --manage /dev/md0 --add /dev/sdb*&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-4458854394926143992?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/4458854394926143992/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=4458854394926143992' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4458854394926143992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4458854394926143992'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/mdadm-few-things.html' title='MDADM few things'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-3746201257589059627</id><published>2009-04-14T14:56:00.000+02:00</published><updated>2009-04-29T20:02:51.236+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gnu'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><title type='text'>Rapid Samba with user</title><content type='html'>&lt;pre&gt;# apt-get install samba&lt;br /&gt;# adduser compartit --home /Compartit&lt;br /&gt;# smbpasswd compartit&lt;br /&gt;# vi /etc/samba/smb.conf&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;pre&gt;[compartit]&lt;br /&gt;comment = Compartit&lt;br /&gt;path = /Compartit/dades&lt;br /&gt;public = no&lt;br /&gt;writable = yes&lt;br /&gt;create mask = 0777&lt;br /&gt;directory mask = 0777&lt;br /&gt;force user = compartit&lt;br /&gt;force group = compartit&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# /etc/init.d/samba restart&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-3746201257589059627?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/3746201257589059627/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=3746201257589059627' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/3746201257589059627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/3746201257589059627'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2009/04/rapid-samba-with-user.html' title='Rapid Samba with user'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-8542183653115054647</id><published>2008-03-12T14:24:00.000+01:00</published><updated>2009-04-14T15:08:34.807+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='wrap'/><category scheme='http://www.blogger.com/atom/ns#' term='debootstrap'/><title type='text'>Debootstrap</title><content type='html'>&lt;pre&gt;# fdisk /dev/sdX&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;--Minim 1 particio tipus linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;# mkfs.ext3 -j /dev/sdXX&lt;br /&gt;&lt;br /&gt;# mount /dev/sdXX /MOUNT/POINT&lt;br /&gt;&lt;br /&gt;# debootstrap --arch=i386 --include=ssh,udev,vim,grub sarge /MOUNT/POINT/ http://mirrors.kernel.org/debian&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-8542183653115054647?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/8542183653115054647/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=8542183653115054647' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/8542183653115054647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/8542183653115054647'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2008/03/debootstrap.html' title='Debootstrap'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-6180785054027204704</id><published>2008-03-11T18:50:00.001+01:00</published><updated>2009-04-14T15:09:09.406+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tcpdump'/><title type='text'>Tcpdump</title><content type='html'>&lt;pre&gt;$ tcpdump -i ethX -XX -xxx -vvv -s 9000 port P and dst host aaa.bbb.ccc.ddd&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-6180785054027204704?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/6180785054027204704/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=6180785054027204704' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6180785054027204704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6180785054027204704'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2008/03/tcpdump.html' title='Tcpdump'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-6042331275719892977</id><published>2008-03-10T12:25:00.001+01:00</published><updated>2009-04-14T15:09:47.153+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='xorg'/><title type='text'>Aixecar vmware remot</title><content type='html'>&lt;span style="font-style:italic;"&gt;-- Baixar kdm&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# /etc/init.d/kdm stop&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- Aixecar les 'X'&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# X&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- Engegar el vmware&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;# DISPLAY=:0.0 vmplayer /PATH/VMWARE/NomMaquina.vmx&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-6042331275719892977?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/6042331275719892977/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=6042331275719892977' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6042331275719892977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/6042331275719892977'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2008/03/aixecar-vmware-remot.html' title='Aixecar vmware remot'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7639304458537256473.post-4903774875672372632</id><published>2008-03-07T09:28:00.000+01:00</published><updated>2009-04-14T15:10:18.197+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='PhP'/><title type='text'>Google maps</title><content type='html'>&lt;pre&gt;&lt;a href="http://khorne.aierimux.org/grn-google"&gt;http://khorne.aierimux.org/grn-google&lt;/a&gt;&lt;br /&gt;    &amp;lt;?php&lt;br /&gt;    &lt;br /&gt;       // Your Google Maps API key&lt;br /&gt;      $key = &amp;quot;ABQIAAAAQ2A_oD8DKq2r5VxyrzHy8xQjF7oGr5rgvS02uznMrMRkczqiUhQ1V0GTiiXMHI4VG9v_ufZJdPP0dQ&amp;quot;;&lt;br /&gt;    &lt;br /&gt;      $adresa = utf8_encode(str_replace(&amp;quot; &amp;quot;, &amp;quot;+&amp;quot;,$_REQUEST[\'adresa\']));&lt;br /&gt;    &lt;br /&gt;       // Desired address&lt;br /&gt;      $google_address = &amp;quot;http://maps.google.com/maps/geo?q={$adresa}&amp;amp;output=xml&amp;amp;ie=UTF&amp;amp;ie=UTF88&amp;amp;key=$key&amp;quot;;&lt;br /&gt;       // Retrieve the URL contents&lt;br /&gt;      $page = utf8_encode(file_get_contents($google_address));&lt;br /&gt;       // Parse the returned XML file&lt;br /&gt;      $xml = new SimpleXMLElement($page);&lt;br /&gt;       // Retrieve the desired XML node&lt;br /&gt;      list( $x, $y, $z ) = split(\',\',$xml-&amp;gt;Response-&amp;gt;Placemark-&amp;gt;Point-&amp;gt;coordinates);&lt;br /&gt;      $nom = $xml-&amp;gt;Response-&amp;gt;name;&lt;br /&gt;    ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;es&amp;quot; lang=&amp;quot;es&amp;quot;&amp;gt;&lt;br /&gt;  &amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html;charset=UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;script src=&amp;quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=&amp;lt;?=$key?&amp;gt;&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt; //&amp;lt;![CDATA[&lt;br /&gt;  function loadGoogle() {&lt;br /&gt;      var map = new GMap2(document.getElementById(&amp;quot;map&amp;quot;));&lt;br /&gt;   map.addControl(new GLargeMapControl());&lt;br /&gt;   map.addControl(new GMapTypeControl());&lt;br /&gt;   map.setCenter(new GLatLng(&amp;lt;?=$y?&amp;gt;,&amp;lt;?=$x?&amp;gt;), 17);&lt;br /&gt;   &lt;br /&gt;   map.setMapType(G_SATELLITE_TYPE);&lt;br /&gt;   &lt;br /&gt;   // Create a base icon for all of our markers that specifies the&lt;br /&gt;   // shadow, icon dimensions, etc.&lt;br /&gt;   var baseIcon = new GIcon();&lt;br /&gt;   baseIcon.shadow = &amp;quot;http://www.google.com/mapfiles/shadow50.png&amp;quot;;&lt;br /&gt;   baseIcon.iconSize = new GSize(20, 34);&lt;br /&gt;   baseIcon.shadowSize = new GSize(37, 34);&lt;br /&gt;   baseIcon.iconAnchor = new GPoint(9, 34);&lt;br /&gt;   baseIcon.infoWindowAnchor = new GPoint(9, 2);&lt;br /&gt;   baseIcon.infoShadowAnchor = new GPoint(18, 25);&lt;br /&gt;   &lt;br /&gt;   // Creates a marker whose info window displays the letter corresponding&lt;br /&gt;   // to the given index.&lt;br /&gt;   function createMarker(point) {&lt;br /&gt;     // Create a lettered icon for this point using our icon class    &lt;br /&gt;     var icon = new GIcon(baseIcon);&lt;br /&gt;     icon.image = &amp;quot;http://www.google.com/mapfiles/marker.png&amp;quot;;&lt;br /&gt;     var marker = new GMarker(point, icon);&lt;br /&gt;   &lt;br /&gt;     GEvent.addListener(marker, &amp;quot;click&amp;quot;, function() {&lt;br /&gt;    marker.openInfoWindowHtml(&amp;quot;&amp;lt;b&amp;gt;&amp;lt;?=$nom?&amp;gt;&amp;lt;/b&amp;gt;&amp;quot;);&lt;br /&gt;     });        &lt;br /&gt;     return marker;&lt;br /&gt;   }&lt;br /&gt;       &lt;br /&gt;   var point = new GLatLng(&amp;lt;?=$y?&amp;gt;,&amp;lt;?=$x?&amp;gt;);&lt;br /&gt;   var marker = createMarker(point);&lt;br /&gt;   &lt;br /&gt;   map.addOverlay(marker);&lt;br /&gt;   marker.openInfoWindowHtml(&amp;quot;&amp;lt;b&amp;gt;&amp;lt;?=$nom?&amp;gt;&amp;lt;/b&amp;gt;&amp;quot;);&lt;br /&gt;  }&lt;br /&gt; //]]&amp;gt;&lt;br /&gt; &amp;lt;/script&amp;gt;&lt;br /&gt; &amp;lt;script src=&amp;quot;http://www.google-analytics.com/urchin.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;  _uacct = &amp;quot;UA-2096439-1&amp;quot;;&lt;br /&gt;  urchinTracker();&lt;br /&gt; &amp;lt;/script&amp;gt;&lt;br /&gt;  &amp;lt;/head&amp;gt;&lt;br /&gt;  &amp;lt;body onload=&amp;quot;javascript:loadGoogle()&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;form action=&amp;quot;index.php&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&lt;br /&gt;      &amp;lt;p&amp;gt;Adre&amp;amp;ccedil;a&amp;lt;/p&amp;gt;&lt;br /&gt;      &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;adresa&amp;quot; id=&amp;quot;adresa&amp;quot; style=&amp;quot;width:100%&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;      &amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;enviar&amp;quot; id=&amp;quot;enviar&amp;quot; value=&amp;quot;enviar&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt;    &amp;lt;hr /&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;X =&amp;gt; &amp;lt;/b&amp;gt;&amp;lt;?=$x?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Y =&amp;gt; &amp;lt;/b&amp;gt;&amp;lt;?=$y?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Z =&amp;gt; &amp;lt;/b&amp;gt;&amp;lt;?=$z?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;hr /&amp;gt;&lt;br /&gt;    &amp;lt;div id=&amp;quot;map&amp;quot; style=&amp;quot;width: 700px; height: 400px; margin-top: 15px;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7639304458537256473-4903774875672372632?l=tu.llegeix.me' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tu.llegeix.me/feeds/4903774875672372632/comments/default' title='Comentaris del missatge'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7639304458537256473&amp;postID=4903774875672372632' title='0 comentaris'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4903774875672372632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7639304458537256473/posts/default/4903774875672372632'/><link rel='alternate' type='text/html' href='http://tu.llegeix.me/2008/03/google-maps.html' title='Google maps'/><author><name>Lleïr Borràs Metje</name><uri>http://www.blogger.com/profile/16756551161110189966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_xEfqJzcl63g/SzMrdQLfxXI/AAAAAAAAANw/SEjdwrGRR3c/S220/lleir.jpg'/></author><thr:total>0</thr:total></entry></feed>
