<?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>brunotavares.net: ScrapBook &#187; Uncategorized</title>
	<atom:link href="https://blog.brunotavares.net/?cat=1&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://blog.brunotavares.net</link>
	<description>Notes. tech and a few thoughs</description>
	<lastBuildDate>Sun, 25 Nov 2018 17:59:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>EOS: Create account paying with paypal</title>
		<link>https://blog.brunotavares.net/?p=297</link>
		<comments>https://blog.brunotavares.net/?p=297#comments</comments>
		<pubDate>Sun, 25 Nov 2018 17:58:56 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[crypto]]></category>
		<category><![CDATA[eos]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=297</guid>
		<description><![CDATA[I recently had to create a new EOS account and, as a new user, it was hard to find a simple method that would require no crypto to complete. You currently have 3 ways of creating an EOS account: Asking an existing user to create an account for you Use an exchange to send a [...]]]></description>
				<content:encoded><![CDATA[<p>I recently had to create a new EOS account and, as a new user, it was hard to find a simple method that would require no crypto to complete.</p>
<p>You currently have 3 ways of creating an EOS account:</p>
<ol>
<li>Asking an existing user to create an account for you</li>
<li>Use an exchange to send a recommended 2-3 EOS to signupeoseos smart-contract/dApp. In the transaction memo you must include  your desired account name followed by a dash and then your desired EOS public key.</li>
<li>Use an an account generator service</li>
</ol>
<p>Since i&#8217;m a new user and i wouldn&#8217;t want to make crypto payments in the process, i opted for option 3. Most of the services require the payment in crypto.</p>
<p>I found this one: <a href="https://create-eos-account-for.me/">https://create-eos-account-for.me/</a></p>
<p>It accepts Paypal, and the service cost is about 2$</p>
<p>The only thing you need to prepare in advance is a set of two pairs of keys. You can generate those using this online tool: <a href="https://nadejde.github.io/eos-token-sale/">https://nadejde.github.io/eos-token-sale/</a></p>
<p>Keep the submitted keys somewhere safe (both public and private) because this is the only piece of data that will allow you to both use and recover your account.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=297</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fine-grain SVN repository permissions over HTTP (DAV)</title>
		<link>https://blog.brunotavares.net/?p=207</link>
		<comments>https://blog.brunotavares.net/?p=207#comments</comments>
		<pubDate>Mon, 29 Sep 2008 00:01:25 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=207</guid>
		<description><![CDATA[I use svn+apache2 to give access to all my repos. This is acomplished with dav_svn_module that allows you to give DAV SVN acess to one directory on your file system. I drop all my projects in /servers/svn/rep/ so, for a while, giving DAV access to /servers/svn/rep/ did the trick. The problem arises when you need [...]]]></description>
				<content:encoded><![CDATA[<p>I use svn+apache2 to give access to all my repos. This is acomplished with dav_svn_module that allows you to give DAV SVN acess to one directory on your file system.</p>
<p>I drop all my projects in /servers/svn/rep/ so, for a while, giving DAV access to /servers/svn/rep/ did the trick. The problem arises when you need to give different permissions to each repository ( and i really didn&#8217;t want to write one <code>&lt;Directory&gt;</code> directive for each repository ).</p>
<p>Well, fine-grain permissions ( r/w) per repository using DAV can be accomplished using the SVN AUTHZ. You can allow or deny read or write access to one user or user group by repository.</p>
<p>I&#8217;ll post a quick walktrough by my setup, it assumes you already have apache2 rolling with dav_svn_module and authz_svn_module.</p>
<h4>Apache Configuration</h4>
<p>First of all create a vhost/location for your SVN repo:</p>
<pre><code>

&lt;VirtualHost *&gt;
  ServerName    svn.yourhost.com

  &lt;Location /&gt;
        DAV svn
        # path to the directory holding your projects repositories.
        SVNParentPath /servers/svn/reps

        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /servers/svn/etc/svn-auth-file
        AuthzSVNAccessFile /servers/svn/etc/svn-authz-file

        require valid-user
  &lt;/Location&gt;

&lt;/VirtualHost&gt;

</code></pre>
<p>This above configuration will provide DAV access to /servers/svn/reps, mapping / to /servers/svn/reps. So, if you have a project called app1 you can acess app1 repository by pointing your browser to http://svn.yourhost.com/app1.</p>
<h4>Authentication</h4>
<p>We autenticate the users using apache builtin basic auth module. Just create the users file /servers/svn/etc/svn-auth-file using htpasswd command line util.<br />
Let&#8217;s add three users to illustrate our example: an app1 coder named Ruth, the server admin &#8220;bat&#8221; and a guest user.<br />
( Well, unfortunatelly the guest user will also have to have a password )</p>
<p><code>htpasswd -c /servers/svn/etc/svn-auth-file bat</code><br />
<code>htpasswd /servers/svn/etc/svn-auth-file ruth</code><br />
<code>htpasswd /servers/svn/etc/svn-auth-file guest</code></p>
<h4>Authorization</h4>
<p>Now we need to limit certain users to certain repositories .This is accomplished by adding some rules to the /servers/svn/etc/svn-authz-file file.<br />
First of all state your user groups by adding the following block to the file:</p>
<pre><code>
[groups]
admin=bat
others=guest
coders=ruth

</code></pre>
<p>As a fail safe, let&#8217;s deny read acess to the base dir to anyone except admins</p>
<pre><code>

[/]
* =
@admin = rw

</code></pre>
<p>Finally, lets give our coder, Ruth, rw acess to our app1 repository.<br />
Since our app1 is open source, let&#8217;s also allow our guest to read from the repository to checkout the latest developments.</p>
<pre><code>

[app1:/]
@coders = rw
@others = r
@admin = rw

</code></pre>
<p>Just restart your apache and checkout app1 by typing:<br />
<code>$ svn co http://svn.yourhost.com/app1/trunk</code></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=207</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl modules distributions</title>
		<link>https://blog.brunotavares.net/?p=175</link>
		<comments>https://blog.brunotavares.net/?p=175#comments</comments>
		<pubDate>Wed, 24 Sep 2008 16:34:00 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=175</guid>
		<description><![CDATA[All over the year&#8217;s i&#8217;ve made several perl module distributions. I&#8217;ve used a diversity of tools to package the modules and create a cpan ready distribution. I&#8217;ve bumped into several issues with the makefiles and the packaging itself but, for sometime now, i&#8217;ve a recipe to create a fully cpan compliant distribuition without any manual [...]]]></description>
				<content:encoded><![CDATA[<p>All over the year&#8217;s i&#8217;ve made several perl module distributions. I&#8217;ve used a diversity of tools to package the modules and create a cpan ready distribution.</p>
<p>I&#8217;ve bumped into several issues with the makefiles and the packaging itself but, for sometime now, i&#8217;ve a recipe to create a fully cpan compliant distribuition without any manual editing of the non-code distribution files.</p>
<p>First of all create the skeleton of the distro using Module::Starter</p>
<p><PRE><code>module-starter -mb -module=Foo::Bar --author="your name" --email=your@email</code></PRE></p>
<p>This will create your distro structure in the Foo-Bar directory.<br />
Your code will live in the Foo-Bar/lib dir, and the tests in the Foo-Bar/t</p>
<p>Note: the -mb option tells module-starter to use Module::Build instead of ExtUtils::MakeMaker. This materializes in you ending up with a Build.PL script instead of the traditional Makefile.PL. Just remove -mb option if you want a Makefile.PL but ExtUtils::MakeMaker has some quirks that i personaly don&#8217;t like so i use Module::Build</p>
<p>Edit Build.PL file in the Foo-Bar directory, it should be similar to this:</p>
<pre><code>
#!/usr/bin/perl

use strict;
use warnings;

use Module::Build;

Module::Build->new(
        module_name => 'Foo::Bar',
        license => 'perl',
        requires => {
                'Other::Module' => '0',
        },
        build_requires => {
                'Test::More' => 0,
        },
        create_makefile_pl => 'traditional',
        sign => 0,
)->create_build_script;
</code></pre>
<p>The important bits are the &#8216;requires&#8217; key, wich states all the depencies for you module and the &#8216;build_requires&#8217; that states extra dependencies  to build the module ( including running the tests you ship with the distro )</p>
<p>You can also sign the distro with pgp (which i recommend), just flip the &#8216;sign&#8217; value to 1.</p>
<p>Now you just have to create the buld script</p>
<p><code>
<pre>$ perl Build.PL</pre>
<p></code></p>
<p>and create the first distribution package</p>
<p><code>
<pre>$ ./Build dist </pre>
<p></code></p>
<p>You should have the Foo-Bar-0.01.tar.gz ready to drop on cpan.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=175</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site remake</title>
		<link>https://blog.brunotavares.net/?p=170</link>
		<comments>https://blog.brunotavares.net/?p=170#comments</comments>
		<pubDate>Wed, 24 Sep 2008 13:13:21 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=170</guid>
		<description><![CDATA[Well, did a complete remake on the brunotavares.net site. I&#8217;m now using a completely new set of tools. The design also took a revamp, it&#8217;s a simpler, css based, layout which makes it simpler to distribute to all the different pieces of the site.]]></description>
				<content:encoded><![CDATA[<p>Well, did a complete remake on the brunotavares.net site.</p>
<p>I&#8217;m now using a completely new set of tools. The design also took a revamp, it&#8217;s a simpler, css based, layout which makes it simpler to distribute to all the different pieces of the site.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=170</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;time-machine&#8221; &#8482; with rsync</title>
		<link>https://blog.brunotavares.net/?p=199</link>
		<comments>https://blog.brunotavares.net/?p=199#comments</comments>
		<pubDate>Tue, 23 Sep 2008 11:46:38 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=199</guid>
		<description><![CDATA[The apple&#8217;s time-machine concept is precisely what i want for my laptop &#8220;backups&#8221; For the information sitting in my laptop i don&#8217;t want traditional disaster and recovery backups, i want to be able to, quickly, search and restore any version of ( virtually ) any file. Tthe problem? i don&#8217;t own a mac. The principle [...]]]></description>
				<content:encoded><![CDATA[<p>The apple&#8217;s time-machine concept is precisely what i want for my laptop &#8220;backups&#8221;</p>
<p>For the information sitting in my laptop i don&#8217;t want traditional disaster and recovery backups, i want to be able to, quickly, search and restore any version of ( virtually ) any file.</p>
<p>Tthe problem? i don&#8217;t own a mac.</p>
<p>The principle of the thing:</p>
<p>Incremental backup of all the files that changed in a short period of time ( let&#8217;s say 5 minutes, apple&#8217;s time machine does it every hour ).<br />
Create a snapshot of your laptop at the backup time, this implies being able to browse the laptop the exact same way that you browse your current file structure</p>
<p><strong>My current setup:</strong></p>
<pre><code>
BACKUPDIR="/backups"
DIRSTOBACKUP="/home /data"
date=`date "+%Y-%m-%dT%H:%M:%S"`
rsync -aP --exclude-from=~/backup.exceptions \
     --link-dest=$BACKUPDIR/current $BACKUPDIR/back-$date $DIRSTOBACKUP

cd $BACKUPDIR; rm -f current ;ln -s back-$date current
<code></pre>
<p>This rsync command line will backup all the files in DIRSTOBACKUP to $BACKUPDIR/back-$date .</p>
<p>The <code>-a</code> will ensure all the files are copied and their attributes preserved.</p>
<p><code>-P</code> justs add the ability to resume interrupted backups.</p>
<p><code>--link-dest </code>is really the core option. With this option, rsync will hard-link all the unchanged files to <code>--link-dest.</code> So, in you backup dir you'll end-up with all the changed files and bunch of hard-links to the unchanged files saving you a lot of storage space.</p>
<p>After that just updates the current symlink to the newest backup.</p>
<p>Now, in $BACKUP_DIR you have accurate snapshots of your laptop in all the backup times.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=199</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computer Desktop meets real world</title>
		<link>https://blog.brunotavares.net/?p=167</link>
		<comments>https://blog.brunotavares.net/?p=167#comments</comments>
		<pubDate>Mon, 03 Jul 2006 10:48:19 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=167</guid>
		<description><![CDATA[Impressive http://www.youtube.com/watch?v=M0ODskdEPnQ]]></description>
				<content:encoded><![CDATA[<p>Impressive</p>
<p><a href="http://http://www.youtube.com/watch?v=M0ODskdEPnQ">http://www.youtube.com/watch?v=M0ODskdEPnQ</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=167</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build RPMs</title>
		<link>https://blog.brunotavares.net/?p=32</link>
		<comments>https://blog.brunotavares.net/?p=32#comments</comments>
		<pubDate>Mon, 09 Feb 2004 16:34:08 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=32</guid>
		<description><![CDATA[Bom .. andei o dia todo de volta de spec files. Para quem precisar de fazer o mesmo aqui ficam dois links que ajudam a entrar nisto: http://www.redhat.com/docs/books/max-rpm/max-rpm-html/s1-rpm-inside-files-list-directives.html Este na realidade é um livro, está um bocadinho desactualizado (foi escrito para a versão 2 do RPM, vamos na 4) mas o essencial está lá. http://www.rpm.org/RPM-HOWTO/ [...]]]></description>
				<content:encoded><![CDATA[<p>Bom .. andei o dia todo de volta de spec files.<br />
Para quem precisar de fazer o mesmo aqui ficam dois links que ajudam a entrar nisto:</p>
<p>http://www.redhat.com/docs/books/max-rpm/max-rpm-html/s1-rpm-inside-files-list-directives.html</p>
<p>Este na realidade é um livro, está um bocadinho desactualizado (foi escrito para a versão 2 do RPM, vamos na 4) mas o essencial está lá.</p>
<p>http://www.rpm.org/RPM-HOWTO/</p>
<p>Este ém quick how-to que nos ensina (rapidamente) a construir um RPM</p>
<p>divirtam-se.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=32</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl tutorials &#8230;.</title>
		<link>https://blog.brunotavares.net/?p=41</link>
		<comments>https://blog.brunotavares.net/?p=41#comments</comments>
		<pubDate>Tue, 13 Jan 2004 15:33:22 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=41</guid>
		<description><![CDATA[Andava á procura de alguma informação sobre Class::DBI quando fui aqui dar. (ainda tabelei aqui pelo caminho) Depois de ler o que me interessava reparei que este site tem uma base de dados consideravel de tutorials de perl, mas atenção que nem todos sao para newbies. Tambem dá jeito como cookbook.]]></description>
				<content:encoded><![CDATA[<p>Andava á procura de alguma informação sobre Class::DBI quando fui <a href="http://www.perlmonks.org/index.pl?node_id=279077">aqui</a> dar. (ainda tabelei <a href="http://www.perl.com/pub/a/2002/11/27/classdbi.html"> aqui </a> pelo caminho)</p>
<p>Depois de ler o que me interessava reparei que <a href="http://www.perlmonks.org/index.pl?node=Tutorials">este site</a> tem uma base de dados consideravel de tutorials de perl, mas atenção que nem todos sao para newbies. </p>
<p>Tambem dá jeito como cookbook.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=41</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
