<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pintant... &#187; carles</title>
	<atom:link href="http://pintant.cat/author/carles/feed/" rel="self" type="application/rss+xml" />
	<link>http://pintant.cat</link>
	<description>amb teclat qwerty</description>
	<lastBuildDate>Sat, 19 May 2012 08:17:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Pintant (i altres coses) a un nou servidor</title>
		<link>http://pintant.cat/2012/05/19/pintant-i-altres-coses-a-un-nou-servidor/</link>
		<comments>http://pintant.cat/2012/05/19/pintant-i-altres-coses-a-un-nou-servidor/#comments</comments>
		<pubDate>Sat, 19 May 2012 08:17:47 +0000</pubDate>
		<dc:creator>carles</dc:creator>
				<category><![CDATA[Tecnologia]]></category>

		<guid isPermaLink="false">http://pintant.cat/?p=1241</guid>
		<description><![CDATA[Ara fa dos setmanes vaig moure aquest blog, Pintant, varis dominis de mail (com ara el meu principal), altres pàgines Webs, sistemes varis com ara Jabber/XMPP, etc. a un servidor nou a Gandi VPS. Des de gener 2002 aproximadament que tenia dominis, webs, etc. a un servidor sota la taula connectat amb ADSL de Telefonica [...]]]></description>
			<content:encoded><![CDATA[<p>Ara fa dos setmanes vaig moure aquest blog, Pintant, varis dominis de mail (com ara el meu principal), altres pàgines Webs, sistemes varis com ara Jabber/XMPP, etc. a un servidor nou a Gandi VPS.</p>
<p>Des de gener 2002 aproximadament que tenia dominis, webs, etc. a un servidor sota la taula connectat amb ADSL de Telefonica amb IP fixe. En serio! (això sí, amb un SAI per la llum, RAID els discs per si un fallava, com va passar dos cops en els 8 anys, etc).</p>
<p>El desembre 2007 vaig canviar el servidor destartatalat per un ordinador decent. Es pot <a href="http://pintant.cat/2008/01/15/canviant-el-sistema-de-servidor-i-arquitectura/">llegir aquí</a>. Llàstima que no vaig fer fotos del primer ordinador, que al final era força impresionant.<br />
<span id="more-1241"></span><br />
Ara, maig 2012, ho he portat a un servidor <a href="https://www.gandi.net/hosting/">Gandi VPS</a>. Tenia dubtes de com aniria el blog amb només 256 MB de memòria RAM (tinc el més petit-econòmic de Gandi) però jo diria que va més ràpid que abans: les imatges van més ràpid, no tinc queixes de l&#8217;entrada/sortida de disc. </p>
<p>Per fer una avaluació digne diria que haig d&#8217;esperar un any: per veure l&#8217;estabilitat que ofereix i com solucionen possibles problemes.</p>
<p>Doncs això, si heu notat canvis a la velocitat no és casualitat <img src='http://pintant.cat/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Així que ara enlloc d&#8217;anar a buscar la Web a Manresa aneu a París! Però en general està molt millor connectat.</p>
<p>En un altre apunt parlaré potser de canviar de lloc el servidor.</p>
]]></content:encoded>
			<wfw:commentRss>http://pintant.cat/2012/05/19/pintant-i-altres-coses-a-un-nou-servidor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Power off a USB device</title>
		<link>http://pintant.cat/2012/05/12/power-off-usb-device/</link>
		<comments>http://pintant.cat/2012/05/12/power-off-usb-device/#comments</comments>
		<pubDate>Sat, 12 May 2012 08:11:02 +0000</pubDate>
		<dc:creator>carles</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Programari Lliure]]></category>
		<category><![CDATA[Tecnologia]]></category>

		<guid isPermaLink="false">http://pintant.cat/?p=1232</guid>
		<description><![CDATA[I wanted to power off a USB device. Searching in Google for &#8220;power off usb&#8221; returns different results but I didn&#8217;t succeed with any of the suggestions (Linux version 3.2.0). I asked in the linux-usb mailing list (question, see one of the relevant answers (from Alan Stern). In short: not possible. Using a USB hub [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to power off a USB device. Searching in Google for &#8220;power off usb&#8221; returns different results but I didn&#8217;t succeed with any of the suggestions (Linux version 3.2.0).</p>
<p>I asked in the <a href="http://www.linux-usb.org/">linux-usb mailing list</a> (<a href="http://marc.info/?l=linux-usb&#038;m=133517101616417&#038;w=2">question</a>, see <a href="http://marc.info/?l=linux-usb&#038;m=133519454726017&#038;w=2">one of the relevant answers</a> (from Alan Stern). In short: not possible. Using a USB hub it&#8217;s then maybe possible -some models only-. The answer includes a link to a small program to try to disable the port. I could disable the port, but the device had still power.<br />
<span id="more-1232"></span><br />
I still didn&#8217;t want to give up. I remembered that I bought, 2 years ago, a USB relay. Actually that one could be used it says with 220VAC/10A, so I could power on a heating or some big device.</p>
<p>I did a bit of very bad-done hardware work: I &#8220;broke&#8221; a USB cable, got the red inner-cable to pass through the relay. Then using one USB port I control the relay and I can switch on and off the other USB device like I wanted initially.</p>
<p>As you can see in the photo I broke too much the shield -because a confussion not directly related with the project-. Still, it works well with my dumb device and other devices.</p>
<p><a href="http://pintant.cat/wp-content/uploads/usb-relay.jpg"><img src="http://pintant.cat/wp-content/uploads/usb-relay.jpg" alt="" title="usb-relay" width="502" height="377" class="aligncenter size-full wp-image-1234" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://pintant.cat/2012/05/12/power-off-usb-device/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Comunitats virtuals: Meetup.com</title>
		<link>http://pintant.cat/2012/05/05/comunitats-virtuals-meetup-com/</link>
		<comments>http://pintant.cat/2012/05/05/comunitats-virtuals-meetup-com/#comments</comments>
		<pubDate>Sat, 05 May 2012 09:33:08 +0000</pubDate>
		<dc:creator>carles</dc:creator>
				<category><![CDATA[Tecnologia]]></category>

		<guid isPermaLink="false">http://pintant.cat/?p=1177</guid>
		<description><![CDATA[No sóc una persona que estigui a moltes comunitats virtuals. De fet, en aquests moments m&#8217;adono que a les dues comunitats que fa anys que estic no són en sí «comunitats virtuals» sinó «comunitats de desvirtualització»: llocs per fer trobades fora d&#8217;Internet. Aquest cop parlaré breument de Meetup.com: és una Web on un es pot [...]]]></description>
			<content:encoded><![CDATA[<p>No sóc una persona que estigui a moltes comunitats virtuals. De fet, en aquests moments m&#8217;adono que a les dues comunitats que fa anys que estic no són en sí «comunitats virtuals» sinó «comunitats de desvirtualització»: llocs per fer trobades fora d&#8217;Internet.</p>
<p>Aquest cop parlaré breument de Meetup.com: és una Web on un es pot donar d&#8217;alta, posar els seus interessos (per exemple: excursionisme, ping pong, python, programari lliure, etc.) i posar una ciutat (Barcelona, Londres o llocs més petits, junt amb una distància).<br />
<span id="more-1177"></span><br />
Quan hi ha activitats de grups etiquetats que coincideixen amb els interessos que s&#8217;han posat a certa distància s&#8217;ens notifica.</p>
<p>Cada grup hi ha un llistat de gent, calendari, propers Meetups, es pot dir si s&#8217;hi anirà o no, gestiona pagaments (en cas que la trobada requereixi algun pagament), votacions de què tal ha anat, etc.</p>
<p>A Londres cada setmana hi ha unes 700 activitats. A vegades va bé fer una ullada, no per anar-hi però per tenir idees. Per exemple, anar al «chocolate festival»: bé, no cal anar-hi amb més gent, un hi pot anar sol (i menjar més xocolata?).</p>
<p>Com a grups curiosos, fa temps havia vist alguns com:</p>
<ul>
<li>Excursionisme per tímids. Deia que si un no s&#8217;havia atrevit a anar a altres grups d&#8217;excursionisme per ser massa tímid, aquest era el bo. No sé si la gent no es mira els ulls, van amb silenci, etc.
<li>Speed-dating (cites ràpides) en silenci. La gent seu a la taula i es mira uns minuts, i passen a la següent persona. Això sí, després parlen i socialitzen.
</ul>
<p>(i més)</p>
<p>Python-Meetup-Barcelona s&#8217;organitza a aquesta Web. HackerNews Londres també, un grup de Ping pong de Londres que havia anat també, molts grups d&#8217;excursionisme. Així que si voleu fer alguna activitat o tan sols mirar és una bona Web.</p>
]]></content:encoded>
			<wfw:commentRss>http://pintant.cat/2012/05/05/comunitats-virtuals-meetup-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copies de seguretat</title>
		<link>http://pintant.cat/2012/04/28/copies-de-seguretat-2/</link>
		<comments>http://pintant.cat/2012/04/28/copies-de-seguretat-2/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 10:15:03 +0000</pubDate>
		<dc:creator>carles</dc:creator>
				<category><![CDATA[Societat]]></category>
		<category><![CDATA[Tecnologia]]></category>

		<guid isPermaLink="false">http://pintant.cat/?p=1179</guid>
		<description><![CDATA[Cal fer copies de seguretat. És un tema que ja vaig escriure fa anys (el 2007). Fa unes setmanes vaig veure aquest cartell al metro: Em sap greu per la persona. Però diu que el portàtil hi té tot el seu projecte final de carrera i tota la seva feina! És fàcil perdre el portàtil, [...]]]></description>
			<content:encoded><![CDATA[<p>Cal fer copies de seguretat. És un tema que ja vaig <a href="http://pintant.cat/2007/02/28/copies-de-seguretat/">escriure fa anys</a> (el 2007).</p>
<p>Fa unes setmanes vaig veure aquest cartell al metro:<br />
<a href="http://pintant.cat/wp-content/uploads/backup2.jpg"><img src="http://pintant.cat/wp-content/uploads/backup2.jpg" alt="" title="backup2" class="aligncenter size-full wp-image-1180" /></a><br />
<span id="more-1179"></span><br />
<a href="http://pintant.cat/wp-content/uploads/backup1.jpg"><img src="http://pintant.cat/wp-content/uploads/backup1.jpg" alt="" title="backup" class="aligncenter size-full wp-image-1188" /></a></p>
<p>Em sap greu per la persona.<br />
Però diu que el portàtil hi té tot el seu projecte final de carrera i tota la seva feina!</p>
<p>És fàcil perdre el portàtil, que el robin, que caigui i s&#8217;espatlli el disc, borrar sense voler, etc.</p>
<p>Si us plau: feu copies de seguretat! La manera més fàcil: un disc USB i copiar tot de tant en tant. O automatitzar-ho una mica.</p>
<p>Curiositat: fa mesos vaig somniar que em deixava el meu portàtil al tren. Tristament no m&#8217;el podien tornar: no hi tinc cap enganxina amb el nom o número de telèfon. Ho faré aviat! Em vaig despertar ben esverat. Això sí, estava tranquil al somni perquè tenia les copies de seguretat.</p>
]]></content:encoded>
			<wfw:commentRss>http://pintant.cat/2012/04/28/copies-de-seguretat-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wood Green to Farringdon travel duration</title>
		<link>http://pintant.cat/2012/04/21/wood-green-to-farringdon-travel-duratio/</link>
		<comments>http://pintant.cat/2012/04/21/wood-green-to-farringdon-travel-duratio/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 10:20:02 +0000</pubDate>
		<dc:creator>carles</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Societat]]></category>
		<category><![CDATA[Tecnologia]]></category>

		<guid isPermaLink="false">http://pintant.cat/?p=1216</guid>
		<description><![CDATA[Every working day (except holidays) I go to work. So I leave home and walk to my local tube station: Wood Green. Then I get a train to Kings Cross where I change the train to Farringdon. Some days, if Piccadilly Line has delays, I change in Finsbury Park. For some weeks, 1 or 2 [...]]]></description>
			<content:encoded><![CDATA[<p>Every working day (except holidays) I go to work. So I leave home and walk to my local tube station: Wood Green. Then I get a train to Kings Cross where I change the train to Farringdon.</p>
<p>Some days, if Piccadilly Line has delays, I change in Finsbury Park. For some weeks, 1 or 2 years ago, I used to always change to Victoria line but I decided that it&#8217;s not worth. Now I change in case of delays or if I&#8217;m standing up and squeezed in the Piccadilly Line and/or the Victoria Line train is just there.</p>
<p>The TFL webpage allows to download the last month or two months travels using a CSV file (I&#8217;ll check for some API, etc.).</p>
<p>I did some quick stats to find the distribution of the time. The most interesting result of that period of time (between 15th February and 5th April, but I was 2 weeks away from London) is:<br />
<span id="more-1216"></span><br />
<code><br />
Duration	Times	%<br />
00:23	2	7,69%<br />
00:24	3	11,54%<br />
00:25	4	15,38%<br />
00:26	11	42,31%<br />
00:27	19	73,08%<br />
00:28	19	73,08%<br />
00:29	20	76,92%<br />
00:30	22	84,62%<br />
00:31	24	92,31%<br />
00:32	24	92,31%<br />
00:33	25	96,15%<br />
00:34	25	96,15%<br />
00:35	25	96,15%<br />
00:36	25	96,15%<br />
00:37	25	96,15%<br />
00:38	25	96,15%<br />
00:39	26	100,00%<br />
00:40	26	100,00%</p>
<p>Min	00:23<br />
Max	00:39<br />
Avg	00:27<br />
Sample	26<br />
</code><br />
So, during that period:</p>
<ul>
<li>I did the travel in 23 minutes 2 times. Record time!
<li>Hard to read in that table, but the most common commuting time is 26 minutes.
<li>Once it took 39 minutes. Something was very screwed&#8230; (and another day it took longer because I used a bus, since Piccadilly Line was not working in my zone)
<li>I arrive 92% of the times in 31 minutes or less
<li>I could achieve a good punctuality mark planning 33 minutes of commuting time (96%!). More than that it&#8217;s really screwed and not worth planning for a standard day.
</ul>
<p>This is the final result&#8230; the frequency table for so short period of time is not a standard normal distribution as I was expecting, probably if I&#8217;d do during a longer period of time would look more standard.</p>
]]></content:encoded>
			<wfw:commentRss>http://pintant.cat/2012/04/21/wood-green-to-farringdon-travel-duratio/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

