<?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</title>
	<atom:link href="https://blog.brunotavares.net/?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>Raspbmc and Edimax EW-7811Un wifi dongle</title>
		<link>https://blog.brunotavares.net/?p=275</link>
		<comments>https://blog.brunotavares.net/?p=275#comments</comments>
		<pubDate>Tue, 08 Jan 2013 17:40:28 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[raspberrypi]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=275</guid>
		<description><![CDATA[Just bough a Edimax EW-7811Un wifi dongle to use on my RaspberryPi. It´s a media center so its running Raspbmc ( which is based on rasbian ). First of all, from my experience, raspberry needs to be powered by an ( at least ) 1A power source for the dongle to work as expected. No drivers needed [...]]]></description>
				<content:encoded><![CDATA[<p>Just bough a <a href="http://www.edimax.co.uk/en/produce_detail.php?pd_id=328&amp;pl1_id=1&amp;pl2_id=44">Edimax EW-7811Un wifi dongle</a> to use on my RaspberryPi. It´s a media center so its running Raspbmc ( which is based on rasbian ).</p>
<p>First of all, from my experience, raspberry needs to be powered by an ( at least ) 1A power source for the dongle to work as expected.</p>
<p>No drivers needed if your using RC4/Rc5. Since its a realtek chipset you can update the firmware drivers by typing:</p>
<pre>sudo apt-get install -y firmware-realtek</pre>
<p>Prepare your raspbmc by installing some helper packages:</p>
<pre>sudo apt-get install -y wireless-tools wpasupplicant</pre>
<p>Raspbmc uses NetworkManager to manage all your connections, the easiest way i found to configure the dongle was:</p>
<ul>
<li>Install the Network-Manager XMBC plugin</li>
<li>Go to main menu and enter &#8220;Programs&#8221;</li>
<li>Start Network-Manager program</li>
<li>Select your network</li>
</ul>
<p>Since i have a strange setup on my router this didn&#8217;t work ( authentication with the AP failed ) so, here is an alternate manual method:</p>
<p>Create a file a new file called /etc/NetworkManager/system-connections/Wireless</p>
<p>Paste the following as content of the new file</p>
<pre>[connection]
id=Wireless
uuid=de997907-591e-11e2-8e39-359453556e75
type=802-11-wireless

[802-11-wireless]
ssid="YOUR NETWORK SSID"
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=none
wep-key0="YOUR WEP ASCCI PASSPHRASE"

[ipv4]
method=auto

[ipv6]
method=ignore</pre>
<p>Edit according to your wireless network setup, you can find settings reference here: <a href="http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html">http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html</a></p>
<p><strong>Important</strong>: the uuid setting must be unique amongst all your connections, choose an unused one</p>
<p>Restart your raspberry and then:</p>
<pre>$ tail -F /var/log/syslog</pre>
<p>Check if the interface is connecting.</p>
<p>If its failling just edit the config file ( /etc/NetworkManager/system-connections/Wireless ) and adjust your connection settings. As soon as you save the file NetworkManager will update the connection and tries to reconnect.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=275</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick http server for static files ( for development )</title>
		<link>https://blog.brunotavares.net/?p=271</link>
		<comments>https://blog.brunotavares.net/?p=271#comments</comments>
		<pubDate>Tue, 08 Jan 2013 13:31:13 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=271</guid>
		<description><![CDATA[If you have python installed, change to your static file directory and $ cd /files/html/ $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ... This will start an http server on port 8000 that serves all files in the current directory. All the debug is written to console including incomming requests and the [...]]]></description>
				<content:encoded><![CDATA[<p>If you have python installed, change to your static file directory and</p>
<pre>
$ cd /files/html/
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...

</pre>
<p>This will start an http server on port 8000 that serves all files in the current directory.<br />
All the debug is written to console including incomming requests and the server reponse to them.</p>
<p>If you want a different port just pass it as argument:</p>
<pre>
$ python -m SimpleHTTPServer 9595
Serving HTTP on 0.0.0.0 port 9595 ...

</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=271</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test network throughput between two machines</title>
		<link>https://blog.brunotavares.net/?p=269</link>
		<comments>https://blog.brunotavares.net/?p=269#comments</comments>
		<pubDate>Tue, 08 Jan 2013 13:19:23 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=269</guid>
		<description><![CDATA[Recently i needed to test the network troughput between my file server and one of the file server clients. I came across iperf, its a client-server command line utility that sends data between the server ( one of the machines of the pair you want to test ) and the client ( the other machine [...]]]></description>
				<content:encoded><![CDATA[<p>Recently i needed to test the network troughput between my file server and one of the file server clients.</p>
<p>I came across <a href="http://iperf.sourceforge.net/">iperf</a>, its a client-server command line utility that sends data between the server ( one of the machines of the pair you want to test ) and the client ( the other machine of the pair )</p>
<p>The usage is pretty simple, in one of the machines ( that will work as server ):</p>
<pre>iperf -s -p 65000</pre>
<p>On the other machine ( the client ):</p>
<pre>iperf -c &lt;ip of the server&gt; -p 65000</pre>
<p>After a few seconds:</p>
<pre>...
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec  8.88 MBytes  7.34 Mbits/sec
...</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=269</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Analytics data from multiple profiles</title>
		<link>https://blog.brunotavares.net/?p=265</link>
		<comments>https://blog.brunotavares.net/?p=265#comments</comments>
		<pubDate>Tue, 20 Jul 2010 14:20:06 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[analytics]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=265</guid>
		<description><![CDATA[If you ever need to get a integrated data report for multiple profiles you can get one here: http://gaevolution.appspot.com Simple webinterface that aggregates multiple profiles from your GA account and produces a tabular report. .. or you can always script arround the Data API]]></description>
				<content:encoded><![CDATA[<p>If you ever need to get a integrated data report for multiple profiles you can get one here: <a href="http://gaevolution.appspot.com">http://gaevolution.appspot.com</a></p>
<p>Simple webinterface that aggregates multiple profiles from your GA account and produces a tabular report.</p>
<p>.. or you can always script arround the <a href="http://code.google.com/apis/analytics/docs/gdata/gdataDeveloperGuide.html">Data API</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=265</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Finding your Ubuntu version</title>
		<link>https://blog.brunotavares.net/?p=255</link>
		<comments>https://blog.brunotavares.net/?p=255#comments</comments>
		<pubDate>Tue, 11 May 2010 19:30:00 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=255</guid>
		<description><![CDATA[$ cat /etc/lsb-release]]></description>
				<content:encoded><![CDATA[<p><code><br />
$ cat /etc/lsb-release<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=255</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloning VirtualBox disk images</title>
		<link>https://blog.brunotavares.net/?p=252</link>
		<comments>https://blog.brunotavares.net/?p=252#comments</comments>
		<pubDate>Tue, 09 Dec 2008 14:43:57 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=252</guid>
		<description><![CDATA[If you hope that a simple copy will make it.. it doesn&#8217;t. Apparently the unique disk indentifier (UUID) is embbeded in the image file. $ VBoxManage clonevdi sourceimage.vdi destimage.vdi]]></description>
				<content:encoded><![CDATA[<p>If you hope that a simple copy will make it.. it doesn&#8217;t. Apparently the unique disk indentifier (UUID) is embbeded in the image file.</p>
<pre><code>
$ VBoxManage clonevdi sourceimage.vdi destimage.vdi
</code></pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=252</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Diffs</title>
		<link>https://blog.brunotavares.net/?p=245</link>
		<comments>https://blog.brunotavares.net/?p=245#comments</comments>
		<pubDate>Tue, 02 Dec 2008 22:48:49 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=245</guid>
		<description><![CDATA[For some time now i started to notice the amount of time i wasted in solving version conflicts. The GNU diff works great with small change sets, but having a visual diff tool helps a lot when you&#8217;re dealing with long files with lots of diffs. I used several visuall-diff-editors whit the several version-control software [...]]]></description>
				<content:encoded><![CDATA[<p>For some time now i started to notice the amount of time i wasted in solving version conflicts. The GNU diff works great with small change sets, but having a visual diff tool helps a lot when you&#8217;re dealing with long files with lots of diffs. </p>
<p>I used several visuall-diff-editors whit the several version-control software and i currently use Meld: it&#8217;s gtk, has in-line edition ( let&#8217;s you change the working copy with a real-time diff computing ) and its &#8220;command line diff&#8221; and diff3 compatible which makes it work smoothly with version-control software.</p>
<p>So, for the both version-control systems that i use currently here is my setup</p>
<h4>SVN</h4>
<p>For a quick diff using meld just run:</p>
<p><code>$ svn diff--diff-cmd meld</code></p>
<p>For a permanent setup edit <code>~/.subversion/config</code> and set the <code>diff-cmd</code> to <code>meld</code></p>
<h4>GIT</h4>
<p>Write a small wrapper:</p>
<pre>
<code>
#!/usr/bin/env sh
meld $2 $5
</code>
</pre>
<p>and the just configure svn to use the wrapper as diff tool</p>
<p><code>git config --global diff.external /path/to/wrapper </code></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=245</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pikeo::API 1.00</title>
		<link>https://blog.brunotavares.net/?p=239</link>
		<comments>https://blog.brunotavares.net/?p=239#comments</comments>
		<pubDate>Mon, 13 Oct 2008 12:56:01 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=239</guid>
		<description><![CDATA[It&#8217;s now on CPAN: http://search.cpan.org/~bmavt/Pikeo-API-1.00/lib/Pikeo/API.pm Project page still available: http://projects.brunotavares.net/projects/show/pikeoperlapi]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s now on CPAN: <a href="http://search.cpan.org/~bmavt/Pikeo-API-1.00/lib/Pikeo/API.pm">http://search.cpan.org/~bmavt/Pikeo-API-1.00/lib/Pikeo/API.pm</a></p>
<p>Project page still available: <a href="http://projects.brunotavares.net/projects/show/pikeoperlapi">http://projects.brunotavares.net/projects/show/pikeoperlapi</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=239</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maintaining your namespace clean in Perl</title>
		<link>https://blog.brunotavares.net/?p=234</link>
		<comments>https://blog.brunotavares.net/?p=234#comments</comments>
		<pubDate>Fri, 10 Oct 2008 08:01:32 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=234</guid>
		<description><![CDATA[Some modules like XML::Simple export some functions by default into your namespace. Normally you don&#8217;t want this functions since the module has a OO interface; so, how to avoid the auto-export from taint your namespace ? You can, at include time, be careful and explicitly tell the module not to export anything by doing this: [...]]]></description>
				<content:encoded><![CDATA[<p>Some modules like <code>XML::Simple</code> export some functions by default into your namespace. Normally you don&#8217;t want this functions since the module has a OO interface; so, how to avoid the auto-export from taint your namespace ?</p>
<p>You can, at include time, be careful and explicitly tell the module not to export anything by doing this:</p>
<pre><code>
use XML::Simple qw();
</code></pre>
<p>But what if you are using a bunch of modules and you aren&#8217;t really sure of everything each one of them exports? You can either tell each one to export nothing ( <code> qw() </code>) or you can use <code>use namespace::clean</code>.</p>
<p><a href="http://search.cpan.org/~phaylon/namespace-clean-0.08/lib/namespace/clean.pm">namespace::clean</a> defines a pragma that cleans up your namespace from exported functions. When you use the pragma all the exported functions to that point are cleaned-out from your namespace.</p>
<p>So if your using a lot of modules you can use it like this:</p>
<pre><code>
use strict;

use Foo;
use Bar;

use namespace::clean; #all Foo and Bar exported functions are cleaned out from your namespace

use Carp; #croak is available on your namespace

...
</code></pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=234</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
