<?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>AlferSoft Blog &#187; Software Applications</title>
	<atom:link href="http://www.alfersoft.com.ar/blog/category/apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alfersoft.com.ar/blog</link>
	<description>Explaining this blog in a few words since 1999</description>
	<lastBuildDate>Sun, 29 Aug 2010 13:55:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Firefox add-on: UploadProgress</title>
		<link>http://www.alfersoft.com.ar/blog/2010/08/26/firefox-add-on-uploadprogress/</link>
		<comments>http://www.alfersoft.com.ar/blog/2010/08/26/firefox-add-on-uploadprogress/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 22:37:48 +0000</pubDate>
		<dc:creator>fvicente</dc:creator>
				<category><![CDATA[Software Applications]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[meter]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.alfersoft.com.ar/blog/?p=145</guid>
		<description><![CDATA[This Firefox add-on adds a new option to the Tools menu called &#8220;Uploads&#8221; that displays a small window, similar to the downloads, but displaying only current uploads in progress. The uploads are automatically removed from the window after they finish. The idea is to have a way to know the progress of your file uploads [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="UploadProgress add-on" src="http://www.alfersoft.com.ar/files/upload.png" title="UploadProgress add-on" class="alignleft" width="200" height="136" /> This Firefox add-on adds a new option to the Tools menu called &#8220;Uploads&#8221; that displays a small window, similar to the downloads, but displaying only current uploads in progress. The uploads are automatically removed from the window after they finish. The idea is to have a way to know the progress of your file uploads and an estimated remaining time to finish.</p>
<p>Useful for sites that does not shows the upload progress like youtube.</p>
<p>This is my first add-on, so if you find something wrong please let me know.<br />
I&#8217;ve submitted it to <a href="https://addons.mozilla.org/en-US/firefox/addon/221510/">AMO</a> but since it takes time to get released to the general public, I&#8217;ve decided to put it here in our blog if you want to give it a try.</p>
<p><a href="http://www.alfersoft.com.ar/files/uploadprogress.xpi">Download it here</a>, enjoy!</p>
<p><span id="more-145"></span><br />
Tested in Linux, MacOS X and Windows, this small add-on is 100% JavaScript, no dlls no native XPCOMs. I&#8217;ve read in some forums that once upon a time (2004) Firefox already included an upload progress indicator but since then till today is broken. Today other modern browsers like Chrome already provides an upload percent indicator.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alfersoft.com.ar/blog/2010/08/26/firefox-add-on-uploadprogress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create two wired virtual serial ports on Linux?</title>
		<link>http://www.alfersoft.com.ar/blog/2010/02/19/how-to-create-two-wired-virtual-serial-ports-on-linux/</link>
		<comments>http://www.alfersoft.com.ar/blog/2010/02/19/how-to-create-two-wired-virtual-serial-ports-on-linux/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 18:18:32 +0000</pubDate>
		<dc:creator>fvicente</dc:creator>
				<category><![CDATA[Linux FAQ]]></category>
		<category><![CDATA[Programming FAQ]]></category>
		<category><![CDATA[bridged]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[null-modem]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[rs-232]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[wired]]></category>

		<guid isPermaLink="false">http://www.alfersoft.com.ar/blog/?p=134</guid>
		<description><![CDATA[To create two bridged virtual serial ports use the following command: socat -d -d pty,raw,echo=0 pty,raw,echo=0 The output will show you which are the virtual ports (or pseudo terminals) created, e.g.: 2010/02/19 16:16:33 socat[9662] N PTY is /dev/pts/3 2010/02/19 16:16:33 socat[9662] N PTY is /dev/pts/4 2010/02/19 16:16:33 socat[9662] N starting data transfer loop with FDs [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="FAQ" src="http://www.alfersoft.com.ar/files/question.png" alt="" width="48" height="48" /></p>
<p>To create two bridged virtual serial ports use the following command:<br />
<code><br />
socat -d -d pty,raw,echo=0 pty,raw,echo=0<br />
</code></p>
<p>The output will show you which are the virtual ports (or pseudo terminals) created, e.g.:<br />
<code><br />
2010/02/19 16:16:33 socat[9662] N PTY is /dev/pts/3<br />
2010/02/19 16:16:33 socat[9662] N PTY is /dev/pts/4<br />
2010/02/19 16:16:33 socat[9662] N starting data transfer loop with FDs [3,3] and [5,5]<br />
</code></p>
<p>Note: if you are using Ubuntu and you do not have this command, try:<br />
<code><br />
sudo apt-get install socat<br />
</code></p>
<h6><a title="Lock" href="http://commons.wikimedia.org/wiki/File:Gnome-dialog-question.svg" target="_blank">Image source</a></h6>
]]></content:encoded>
			<wfw:commentRss>http://www.alfersoft.com.ar/blog/2010/02/19/how-to-create-two-wired-virtual-serial-ports-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to calculate the space used by files in Linux?</title>
		<link>http://www.alfersoft.com.ar/blog/2010/02/19/how-to-calculate-the-space-used-by-files-in-linux/</link>
		<comments>http://www.alfersoft.com.ar/blog/2010/02/19/how-to-calculate-the-space-used-by-files-in-linux/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 18:09:26 +0000</pubDate>
		<dc:creator>fvicente</dc:creator>
				<category><![CDATA[Linux FAQ]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[calculate]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[occupied]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[sum]]></category>
		<category><![CDATA[used]]></category>

		<guid isPermaLink="false">http://www.alfersoft.com.ar/blog/?p=131</guid>
		<description><![CDATA[Suppose that you want to calculate the space used by all the png files in current directory and all its subdirectories. From a terminal type: find . -name '*.png' -exec du -ab {} \; &#124; awk '{total+=$0}END{print total}' Image source]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="FAQ" src="http://www.alfersoft.com.ar/files/question.png" alt="" width="48" height="48" /></p>
<p>Suppose that you want to calculate the space used by all the png files in current directory and all its subdirectories. From a terminal type:<br />
<code><br />
find . -name '*.png' -exec du -ab {} \; | awk '{total+=$0}END{print total}'<br />
</code></p>
<h6><a title="Lock" href="http://commons.wikimedia.org/wiki/File:Gnome-dialog-question.svg" target="_blank">Image source</a></h6>
]]></content:encoded>
			<wfw:commentRss>http://www.alfersoft.com.ar/blog/2010/02/19/how-to-calculate-the-space-used-by-files-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I compare two binary files on Linux?</title>
		<link>http://www.alfersoft.com.ar/blog/2010/02/19/how-do-i-compare-two-binary-files-on-linux/</link>
		<comments>http://www.alfersoft.com.ar/blog/2010/02/19/how-do-i-compare-two-binary-files-on-linux/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 17:51:00 +0000</pubDate>
		<dc:creator>fvicente</dc:creator>
				<category><![CDATA[Linux FAQ]]></category>
		<category><![CDATA[Programming FAQ]]></category>
		<category><![CDATA[binaries]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[hexdump]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[meld]]></category>

		<guid isPermaLink="false">http://www.alfersoft.com.ar/blog/?p=128</guid>
		<description><![CDATA[The easiest way I found is dumping the binaries into text files using hexdump and then comparing them with your favourite program (diff, Meld, etc.). E.g.: hexdump -C a.bin >a.txt hexdump -C b.bin >b.txt diff a.txt b.txt Image source]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="FAQ" src="http://www.alfersoft.com.ar/files/question.png" alt="" width="48" height="48" /></p>
<p>The easiest way I found is dumping the binaries into text files using hexdump and then comparing them with your favourite program (diff, Meld, etc.). E.g.:<br />
<code><br />
hexdump -C a.bin >a.txt<br />
hexdump -C b.bin >b.txt<br />
diff a.txt b.txt<br />
</code></p>
<h6><a title="Lock" href="http://commons.wikimedia.org/wiki/File:Gnome-dialog-question.svg" target="_blank">Image source</a></h6>
]]></content:encoded>
			<wfw:commentRss>http://www.alfersoft.com.ar/blog/2010/02/19/how-do-i-compare-two-binary-files-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I add VNC to Terminal Server Client in Ubuntu?</title>
		<link>http://www.alfersoft.com.ar/blog/2010/02/19/how-do-i-add-vnc-to-terminal-server-client-in-ubuntu/</link>
		<comments>http://www.alfersoft.com.ar/blog/2010/02/19/how-do-i-add-vnc-to-terminal-server-client-in-ubuntu/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 17:45:14 +0000</pubDate>
		<dc:creator>fvicente</dc:creator>
				<category><![CDATA[Linux FAQ]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal server client]]></category>
		<category><![CDATA[tsc]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.alfersoft.com.ar/blog/?p=123</guid>
		<description><![CDATA[From a terminal type: sudo apt-get install xtightvncviewer Image source]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="FAQ" src="http://www.alfersoft.com.ar/files/question.png" alt="" width="48" height="48" /></p>
<p>From a terminal type:<br />
<code><br />
sudo apt-get install xtightvncviewer<br />
</code></p>
<h6><a title="Lock" href="http://commons.wikimedia.org/wiki/File:Gnome-dialog-question.svg" target="_blank">Image source</a></h6>
]]></content:encoded>
			<wfw:commentRss>http://www.alfersoft.com.ar/blog/2010/02/19/how-do-i-add-vnc-to-terminal-server-client-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asterisk PBX with X100P Clone (Part 1: Installation)</title>
		<link>http://www.alfersoft.com.ar/blog/2008/11/01/asterisk-pbx-with-x100p-clone-part-1-installation/</link>
		<comments>http://www.alfersoft.com.ar/blog/2008/11/01/asterisk-pbx-with-x100p-clone-part-1-installation/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 23:08:54 +0000</pubDate>
		<dc:creator>alf</dc:creator>
				<category><![CDATA[Software Applications]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[x100p]]></category>

		<guid isPermaLink="false">http://www.alfersoft.com.ar/blog/?p=28</guid>
		<description><![CDATA[Introduction Here you have the first part of my experience on installing Asterisk PBX with an Intel X100P clone FXO to allow my extensions to make (and receive) phone calls to the telco line. Hardware Though Digium (the Asterisk developer) recommends a Pentium 3 based PC as the minimum requirements to run a home PBX, [...]]]></description>
			<content:encoded><![CDATA[<h2><a href="http://www.alfersoft.com.ar/blog/wp-content/uploads/2008/11/asterisk_logo1.png"><img class="size-full wp-image-78 alignnone" style="margin: 10px 0px;" title="asterisk_logo1" src="http://www.alfersoft.com.ar/blog/wp-content/uploads/2008/11/asterisk_logo1.png" alt="" width="162" height="91" /></a></h2>
<h2>Introduction</h2>
<p>Here you have the first part of my experience on installing Asterisk PBX with an Intel X100P clone FXO to allow my extensions to make (and receive) phone calls to the telco line.</p>
<p><span id="more-28"></span></p>
<h2>Hardware</h2>
<p>Though Digium (the Asterisk developer) recommends a Pentium 3 based PC as the minimum requirements to run a home PBX, I did it using a really old AMD K6-2 500 with 128Mb DIMM and a 4200rpm 3.5Gb hard disk, and it seems to do the job just fine considering the ultra-low traffic I&#8217;m having (only 4 extensions and they&#8217;re not using it all the time). If you&#8217;re planning to use it as a full PBX with dozens of extensions, be more generous on hardware.</p>
<p>If you&#8217;re just starting on Asterisk and you&#8217;re wondering about if your old modem would work to connect your PBX to the telco, let me explain you some basic things before move on.</p>
<p>To connect your PBX to the telco line you&#8217;ll need an <a href="http://en.wikipedia.org/wiki/FXO">FXO</a> card. As Asterisk is a free and open-source project, one of Digium&#8217;s ways to get funds is selling propietary cards to do this job, but when the project started they were using some standard 56K modem/fax and they are still supported, but not every modem will work.</p>
<p><a href="http://www.voip-info.org/wiki/view/X100P+clone">As stated here</a>, to use a modem as a FXO you&#8217;ll need one of these chipsets:</p>
<ul>
<li>Intel 537PG and 537PU</li>
<li>Ambient MD3200</li>
<li>Motorola 62802</li>
</ul>
<p>I&#8217;m using one with the Ambient MD3200 chipset, and works pretty good. These modems will provide you with a single port to connect it to a single line, but if you need more lines you could add more cheap modems, or just buy a real <a href="http://www.digium.com/en/products/analog/">FXO multiline analog card</a> or even an <a href="http://www.digium.com/en/products/digital/">E1/T1 card</a> which supports digital telephony channels, but these boards are out of the scope of this tutorial.</p>
<h2>Choosing the right installation</h2>
<p>You have two options to install Asterisk on your hardware: install everything separately by hand, or just download AsteriskNOW. <a href="http://www.asterisknow.org/">AsteriskNOW</a> is a Linux distribution which installs by default an Asterisk PBX along with its GUI. I&#8217;ve installed Asterisk by hand, as AsteriskNOW refused to install on my K6-2 because my &#8220;CPU too old for this kernel&#8221;.</p>
<p>I&#8217;ve tried this installation procedure on both <a href="http://www.debian.org/">Debian 4 rc3</a> and <a href="http://www.ubuntu.com/">Ubuntu 8.04</a> desktop, and worked the same on both.</p>
<p>First of all, install the Linux of your choice. If you got old hardware as I do, then I&#8217;ll recommend you Debian 4 NetInstall, because it will install just the software you want and will not fill your system memory with unused daemons. If your hardware is new (say an Intel Core2Duo or such) then go for Ubuntu, as it got more hardware support than Debian.</p>
<p>Once you&#8217;ve your server up and running, open a console and do <code>lspci </code>(if you don&#8217;t have it installed, do &#8220;<code>aptitude install pciutils</code>&#8221; as root), and you will see something like:</p>
<p><code>00:0a.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface</code></p>
<p>If everything is OK, then move on to the next step.</p>
<h2>Installing Asterisk</h2>
<p>This guide was taken from <a href="http://blog.chadwollenberg.com/2008/08/26/asterisk-on-hardy-server/">Chad&#8217;s Blog</a>, and is a great step-by-step guide to install Asterisk from source. If you do copy+paste of the following code lines inside a terminal window you&#8217;ll have almost a zero-effort installation.</p>
<p>First of all, you need to be root. Do &#8220;<code>sudo su</code>&#8220;, insert your password, and then install the compiler packages:<br />
<code><br />
apt-get install linux-headers-$(uname -r) build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev subversion</code></p>
<p>Now it&#8217;s time to download Asterisk, Zaptel (X100P driver) and Asterisk&#8217;s libraries LibPri:</p>
<p><code>wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.21.2.tar.gz<br />
wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.12.tar.gz<br />
wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.7.tar.gz<br />
tar xfvz zaptel-1.4.12.tar.gz -C /usr/src/<br />
tar xfvz asterisk-1.4.21.2.tar.gz -C /usr/src/<br />
tar xfvz libpri-1.4.7.tar.gz -C /usr/src/</code></p>
<p>Start the compilation scripts of the three packages:</p>
<p><code>cd /usr/src/zaptel-1.4.12<br />
./configure<br />
make</code><code><br />
make install<br />
</code><code>make config<br />
cd ../libpri-1.4.7<br />
make<br />
make install<br />
cd ../asterisk-1.4.21.2/<br />
./configure<br />
make<br />
make install<br />
make samples</code></p>
<p>And finally it&#8217;s time to install Asterisk GUI. This GUI will make your Asterisk configuration a piece of cake, and you&#8217;ll need it to follow the part 2 of this tutorial:</p>
<p><code>cd /usr/src/<br />
svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui<br />
cd asterisk-gui<br />
./configure<br />
make<br />
make install</code></p>
<h2>Basic configuration</h2>
<p>Once you have everything compiled and installed, you can do &#8220;<code>make checkconfig</code>&#8221; at the prompt. You&#8217;ll see some warnings, because you need to make a couple changes in the configuration files to start Asterisk.</p>
<p>Always as root, go to <code>/etc/asterisk </code>and make sure these lines exists and are uncommented:</p>
<p>In <code>http.conf</code>:<br />
<code>enabled = yes<br />
enablestatic = yes<br />
bindaddr=0.0.0.0</code></p>
<p>In <code>manager.conf</code>:<br />
<code>enabled = yes<br />
webenabled = yes<br />
bindaddr=0.0.0.0</code></p>
<p>Also in <code>manager.conf </code>you should create an admin account to access the GUI:</p>
<p><code>[admin]<br />
secret = yourpasswordhere<br />
read = system,call,log,verbose,command,agent,config<br />
write = system,call,log,verbose,command,agent,config</code></p>
<p>Finally, add the following to your <code>/etc/rc.local</code> file to load Zaptel driver and Asterisk at startup:</p>
<p><code>modprobe zaptel<br />
modprobe ztdummy<br />
asterisk –g</code></p>
<p>Now it&#8217;s time to run Asterisk for the first time. Reboot your server to make sure everything is loaded and working. If there were no FXO port detected, do:</p>
<p>ztscan &gt; /etc/asterisk/ztscan.conf</p>
<p>And reboot again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alfersoft.com.ar/blog/2008/11/01/asterisk-pbx-with-x100p-clone-part-1-installation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
