<?xml version="1.0"?>
<rss version="2.0.">
  <channel>
    <title>Advogato blog for arauzo</title>
    <link>http://www.advogato.org/person/arauzo/</link>
    <description>Advogato blog for arauzo</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Thu, 24 Jul 2008 19:49:31 GMT</pubDate>
    <item>
      <pubDate>Fri, 28 Jul 2006 12:44:26 GMT</pubDate>
      <title>28 Jul 2006</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=20</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=20</guid>
      <description>&lt;b&gt;How to print a PDF user manual in an appropriate size&lt;/b&gt;

&lt;p&gt; &lt;p&gt; Usually the user manual of the tech gadgets we buy comes on a CD in PDF format. Sometimes there is also a printed copy included. This was my case, but it came in the wrong language.  If I wanted the spanish manual, I would have needed to return the camera and wait longer to have it again. So that was not an acceptable option. I have tried to understand portuguese, but unsuccessfull. I have tried without the manual and it was ok for standard features, but... ok, let's print the manual. 

&lt;p&gt; &lt;p&gt; The size of the manual is such that four pages fit well on an a4 paper. I have used:

&lt;p&gt; &lt;p&gt; &lt;pre&gt;
pdf2ps Manual.pdf
psselect -p3-185 Manual.ps sel.ps 
psbook sel.ps | pstops 8:0,1,4,5,2,3,6,7 | psnup -4 -pa4 -b-5cm &amp;gt;out.ps
&lt;/pre&gt;

&lt;p&gt; &lt;p&gt; &lt;ol&gt;
&lt;li&gt;First line converts it to postscript.

&lt;p&gt; &lt;p&gt; &lt;li&gt;Second line removes some problematic unusefull pages.

&lt;p&gt; &lt;p&gt; &lt;li&gt;Third line:
  &lt;ul&gt;
  &lt;li&gt; psbook arranges pages to be folded when printed two on each side of paper.

&lt;p&gt; &lt;p&gt;   &lt;li&gt; pstops arranges pages to have 4 on each side (cutted on the middle and folded each pair.

&lt;p&gt; &lt;p&gt;   &lt;li&gt; psnup effectively puts 4 pages on each final a4 page with '-b-5cm' used to remove the excesive individual margins of original pages.
  &lt;/ul&gt;
&lt;/ol&gt;

&lt;p&gt; More advanced info on &lt;a href="http://wiki.scribus.net/index.php/How_to_make_impositions_with_pstops" &gt;making impositions with pstops&lt;/a&gt;.</description>
    </item>
    <item>
      <pubDate>Thu, 27 Jul 2006 12:29:04 GMT</pubDate>
      <title>27 Jul 2006</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=19</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=19</guid>
      <description>&lt;b&gt;Babel package makes latex indent first paragraph&lt;/b&gt;

&lt;p&gt; Latex standard styles, like article or book, do not indent first paragraph, but babel package change this behaviour. For example, it indents all paragraphs when using spanish, even those after a heading.

&lt;p&gt; If you want the first paragraph not being indented,  you can comment out these two lines at your language file:

&lt;p&gt; &lt;pre&gt;
/usr/share/texmf/tex/generic/babel/spanish.ldf
...
%  \let\@afterindentfalse\@afterindenttrue
%  \@afterindenttrue
&lt;/pre&gt;

&lt;p&gt; Of course, you can always manually remove indent starting any paragraph with '\noindent', or disable all paragraph indentation with '\parindent=0cm'.</description>
    </item>
    <item>
      <pubDate>Mon, 24 Jul 2006 13:11:08 GMT</pubDate>
      <title>24 Jul 2006</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=18</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=18</guid>
      <description>&lt;b&gt;Have you ever created thousands of files in /tmp?&lt;/b&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; We have created up to 2 million files: &#xD;
&lt;pre&gt;&#xD;
arauzo@brain:/tmp $ ls | wc&#xD;
2099630 2099630 43839565&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; It was by mistake. You know, that&#xD;
commented line that did not get uncommented, when it should&#xD;
have. I'm starting to think I do &lt;a href="http://mail.python.org/pipermail/python-list/2006-June/388660.html" &gt;&#xD;
very strange things&lt;/a&gt;, and they are becomming very strong&#xD;
stress test for Linux.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; Anyway, it is not so simple to delete a&#xD;
big bunch of files. The first you probably think of is:&#xD;
&lt;pre&gt;&#xD;
arauzo@neuron2:/tmp$ rm *.net&#xD;
-bash: /bin/rm: Argument list too long&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; Yes, I know it is long, but I NEED to&#xD;
remove those files. Let's try another thing:&#xD;
&lt;pre&gt;&#xD;
arauzo@neuron2:/tmp$ for f in *.net; do rm -f $f; done&#xD;
removed `mlp85_57_24-NI6MxY.net'&#xD;
removed `mlp85_57_24-NbyBLS.net'&#xD;
removed `mlp85_57_24-Nc7WVw.net'&#xD;
...&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; Nice! This works for thousands of files.&#xD;
But now, what happends with our 2 million files?:&#xD;
&lt;pre&gt;&#xD;
arauzo@brain:/tmp $ rm *.net&#xD;
Connection to brain closed.&#xD;
...&#xD;
arauzo@brain:/tmp $ for f in *.net; do rm -f $f; done&#xD;
Connection to brain closed.&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; It crashes! :-( Looks like a 'bug' on&#xD;
bash... :-? &#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; Finally, we have managed to remove the 2&#xD;
million files in groups by their prefix 32*.net 33*.net&#xD;
34*.net ...&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; PD. A more intelligent solution (as it does&#xD;
not need to store the list of files anywhere), suggested by&#xD;
&lt;a href="http://www.advogato.org/person/wtanaka/" &gt;wtanaka&lt;/a&gt;&#xD;
and &lt;a href="http://www.advogato.org/person/redi/" &gt;redi&lt;/a&gt;:&#xD;
&lt;pre&gt;&#xD;
find /tmp -name "*.net" -print0 | xargs -0 rm -f&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; Can be 'simplyfied' to:&#xD;
&lt;pre&gt;&#xD;
find -name "*.net" -exec rm -f \{\} \;&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; PD2. The simplification has an overhead of creating one&#xD;
process per file, while xargs creates a process for a group&#xD;
of files.</description>
    </item>
    <item>
      <pubDate>Thu, 20 Jul 2006 10:28:59 GMT</pubDate>
      <title>20 Jul 2006</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=17</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=17</guid>
      <description>&lt;b&gt;How to print short-edge duplex when short-edge duplex does not work in your printer&lt;/b&gt;

&lt;p&gt; &lt;ol&gt;
&lt;li&gt;Everything you print in Linux use to get the form of a postscript document. Just use "print to file" in your  application, or pdf2ps and get your file.ps.

&lt;p&gt; &lt;li&gt;Then you can convert your file.ps to another .ps with even pages turned upside-down with this command (using a4 paper, change size to fit your paper):

&lt;p&gt; &lt;pre&gt; pstops "2:0,1U(21cm,29.7cm)" file.ps &amp;gt;fileTurned.ps &lt;/pre&gt;


&lt;p&gt; &lt;li&gt;You can see the results with ggv or print it with lp, xpp...
&lt;/ol&gt;</description>
    </item>
    <item>
      <pubDate>Wed, 10 May 2006 16:49:05 GMT</pubDate>
      <title>10 May 2006</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=16</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=16</guid>
      <description>I do not have a blog in spanish, so I write this here though probably it is not interesting to those who do not read spanish.

&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; On this Sunday, 14th of May there is an &lt;a href="http://www.escolar.net/wiki/index.php/Sentada_por_una_vivienda_digna" &gt;email convocated demostration&lt;/a&gt; on all mayor cities of Spain to ask for decent homes. Against the &lt;a href="http://en.wikipedia.org/wiki/Real_estate_bubble" &gt; real estate bubble&lt;/a&gt;.

&lt;p&gt; &lt;p&gt; &lt;p&gt; &lt;p&gt; It is time to think, what we are asking for in these demos. I think we should &lt;a href="http://www.viviendadigna.org/?foros/viewtopic.php?t=2488" &gt; ask for more fiscal help on taxes to those who buy a house to live in&lt;/a&gt;.</description>
    </item>
    <item>
      <pubDate>Fri, 3 Jun 2005 17:06:48 GMT</pubDate>
      <title>3 Jun 2005</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=15</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=15</guid>
      <description>Demostrations are being been done in Europe against software patents. Among them, we have the &lt;a href="http://noepatents.eu.org/photodemo/list.php" &gt; photo demostration&lt;/a&gt;, where more than 2800 people appear, and the &lt;a href="http://wiki.noepatents.eu.org/webdemo/list.php" &gt;web demostration&lt;/a&gt;, where more than 320 sites are registered (and many others unregistered but following the demo).

&lt;p&gt; We need more help. Are US citizens doing something to make people see how &lt;a href="http://swpats.ffii.org/" &gt;bad are software patents&lt;/a&gt;? Is anybody trying to change US law?</description>
    </item>
    <item>
      <pubDate>Sat, 7 May 2005 00:27:31 GMT</pubDate>
      <title>7 May 2005</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=14</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=14</guid>
      <description>What do you expect to find, if you search for an &lt;a href="http://www.google.com/search?q=orange+diagram" &gt;"orange diagram"&lt;/a&gt;?

&lt;p&gt; Wrong! You find my module to use SNNS neural networks from Orange data mining software. These are the strange things that you discover by looking at the web logs.

&lt;p&gt; By the way, I forgot to post that &lt;a href="http://ax5.com/antonio/orangesnns" &gt;this fantastic piece of software (OrangeSNNS)&lt;/a&gt; was available. ;-)

</description>
    </item>
    <item>
      <pubDate>Sat, 26 Mar 2005 02:28:12 GMT</pubDate>
      <title>26 Mar 2005</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=13</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=13</guid>
      <description>Late at night, waiting for my script to finish... Well, I did not have a more stupid thing to do, so I found that &lt;a href="http://www.wxplotter.com/ft_weird.php?im" &gt; my weird quotient was 86 &lt;/a&gt;.

</description>
    </item>
    <item>
      <pubDate>Tue, 22 Mar 2005 01:52:59 GMT</pubDate>
      <title>22 Mar 2005</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=12</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=12</guid>
      <description>Long time without writing here... I hope I can avoid this in future. Now just a short note to break the ice.

&lt;p&gt; I have found that blogs can be really useful. My today's personal discovery is a simple and fast implementation of the &lt;a href="http://www.daniel-lemire.com/blog/archives/2004/11/25/computing-argmax-fast-in-python/" &gt;argmax function in python&lt;/a&gt; from Daniel Lemire's blog.
 </description>
    </item>
    <item>
      <pubDate>Sat, 1 May 2004 18:47:49 GMT</pubDate>
      <title>1 May 2004</title>
      <link>http://www.advogato.org/person/arauzo/diary.html?start=11</link>
      <guid>http://www.advogato.org/person/arauzo/diary.html?start=11</guid>
      <description>What I called host spam blocking lists are better known as Realtime Blackhole Lists (RBLs). Here there is a &lt;a href="http://theory.whirlycott.com/~phil/antispam/rbl-bad/rbl-bad.html" &gt;
deeply studied text against RBL
&lt;/a&gt;
from someone that also had problems with RBLs.

&lt;p&gt; There is also a &lt;a href="http://www.eff.org/Spam_cybersquatting_abuse/Spam/position_on_junk_email.html" &gt; public statement against RBL's&lt;/a&gt; from the &lt;a href="http://www.eff.org/" &gt;Electronic Frontier Foundation (EFF)&lt;/a&gt;, an organization that I trust. To know that they also agree on this with me makes me happy. ;-)</description>
    </item>
  </channel>
</rss>
