<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Albertux~# ./Blog &#187; tool</title>
	<atom:link href="http://albertux.ayalasoft.com/es/tag/tool/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertux.ayalasoft.com</link>
	<description>61 20 64 65 76 65 6c 6f 70 65 72 20 6c 69 66 65</description>
	<lastBuildDate>Thu, 01 Jul 2010 16:23:33 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.3" -->
	<copyright>2008 </copyright>
	<managingEditor>albertoi7@gmail.com (Albertux~# ./Blog)</managingEditor>
	<webMaster>albertoi7@gmail.com (Albertux~# ./Blog)</webMaster>
	<category>posts</category>
	<ttl>1440</ttl>
	<image>
		<url>http://ayalasoft.com/img/podcast02.jpg</url>
		<title>Albertux~# ./Blog &#187; tool</title>
		<link>http://albertux.ayalasoft.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>After three days without programming, life becomes meaningless.</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
	</itunes:category>
	<itunes:category text="Technology">
		<itunes:category text="Podcasting" />
	</itunes:category>
	<itunes:author>Albertux~# ./Blog</itunes:author>
	<itunes:owner>
		<itunes:name>Albertux~# ./Blog</itunes:name>
		<itunes:email>albertoi7@gmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://ayalasoft.com/img/podcast01.jpg" />
		<item>
		<title>win-get apt-get for windows</title>
		<link>http://albertux.ayalasoft.com/es/2009/04/09/win-get-apt-get-for-windows/</link>
		<comments>http://albertux.ayalasoft.com/es/2009/04/09/win-get-apt-get-for-windows/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 19:18:52 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[develop]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=1883</guid>
		<description><![CDATA[win-get apt-get for windows One thing I love of Debian is apt-get command, so why not have not the same, ok not the same but something similar run on Windows?, I search some projects on sf.net but don&#8217;t work or are not updated, so I made my own project and works fine: You can download [...]<p><a href="http://albertux.ayalasoft.com/es/2009/04/09/win-get-apt-get-for-windows/">win-get apt-get for windows</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>win-get apt-get for windows</strong></p>
<p>One thing I love of Debian is apt-get command, so why not have not the same, ok not the same but something similar run on Windows?, I search some projects on <a href="http://sf.net" target="_blank">sf.net</a> but don&#8217;t work or are not updated, so I made my own project and works fine:</p>
<p><a href="http://ayalasoft.com/img/win-get-run.jpg" rel="shadowbox"><img src="http://ayalasoft.com/img/win-get-run-thumb.jpg"></a></p>
<p>You can download executable file and source file (perl script) on:<br />
<a href="http://win-get.ayalasoft.com" target="_blank">http://win-get.ayalasoft.com</a></p>
<p><a href="http://albertux.ayalasoft.com/es/2009/04/09/win-get-apt-get-for-windows/">win-get apt-get for windows</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2009/04/09/win-get-apt-get-for-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Easy Host Fake Win32</title>
		<link>http://albertux.ayalasoft.com/es/2008/12/27/easy-host-fake-win32/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/12/27/easy-host-fake-win32/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 04:04:58 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=1366</guid>
		<description><![CDATA[Easy Host Fake Win32 Algunas veces nosotros queremos redireccionar un host a otra direccion de ip, la forma mas rapida es editar el archivo hosts. Bueno hice esta utileria que hace eso. Java Desktop Application, necesitas Java Runtime: Easy Host Fake Java Setup Es mi primera aplicacion Java de escritorio en NetBeans PHP5 script, necesitas [...]<p><a href="http://albertux.ayalasoft.com/es/2008/12/27/easy-host-fake-win32/">Easy Host Fake Win32</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Easy Host Fake Win32</strong></p>
<p>Algunas veces nosotros queremos redireccionar un host a otra direccion de ip, la forma mas rapida es editar el archivo hosts.</p>
<p>Bueno hice esta utileria que hace eso.</p>
<p><strong>Java Desktop Application, necesitas Java Runtime:</strong></p>
<p><a href="http://ayalasoft.com/img/ehf-java.jpg" rel="shadowbox"><img src="http://ayalasoft.com/img/ehf-java-thumb.jpg"></a></p>
<p><a href="http://ayalasoft.com/codes/easyhostfake-java-1.0.exe">Easy Host Fake Java Setup</a></p>
<p>Es mi primera aplicacion Java de escritorio en <a href="http://www.netbeans.org" target="_blank">NetBeans</a></p>
<p><strong>PHP5 script, necesitas el Console Getopt Pear Package</strong> (la function <a href="http://www.php.net/getopt" target="_blank">getopt</a> no sirve en Windows, en el siguiente php 5.3.0 parece ser que si)</p>
<p>necesitas pear? ejecuta go-pear.bat en el directorio de php5</p>
<p>c:\>pear install Console_Getopt</p>
<p>Windows Batch file:</p>

<div class="wp_syntax"><div class="code"><pre class="winbatch" style="font-family:monospace;"><span style="color: #FF1010; font-weight: bold;">:save this ehf.cmd on your %windir%</span>
<span style="color: #FF1010; font-weight: bold;">:set php-cli to your php.exe path</span>
<span style="color: #66cc66;">@</span>set php<span style="color: #66cc66;">-</span>cli=c<span style="color: #FF1010; font-weight: bold;">:\php5\php.exe</span>
<span style="color: #FF1010; font-weight: bold;">:set ehf script path</span>
<span style="color: #66cc66;">@</span>set ehf=c<span style="color: #FF1010; font-weight: bold;">:\develop\php\scripts\ehf.php</span>
<span style="color: #66cc66;">@%</span>php<span style="color: #66cc66;">-</span>cli<span style="color: #66cc66;">%</span> <span style="color: #66cc66;">%</span>ehf<span style="color: #66cc66;">%</span> <span style="color: #66cc66;">%</span>1 <span style="color: #66cc66;">%</span>2 <span style="color: #66cc66;">%</span>3 <span style="color: #66cc66;">%</span>4</pre></div></div>

<p>Script ehf.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">/* Script: Easy Host Fake
  * Author: Albertux (Alberto Isaac Ayala Esquivias)
  * WebSite: http://Albertux.AyalaSoft.com
  * FeedBack: &lt;albertoi7@gmail.com&gt;
  * License: GPLv3 (http://www.gnu.org/licenses/gpl.txt)
  * Note: you need Pear Package Console Getopt
  */</span>
<span style="color: #000088;">$ip_default</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'127.0.0.1'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// default ip</span>
<span style="color: #000088;">$hosts_file</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'c:/windows/system32/drivers/etc/hosts'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// default hosts file</span>
&nbsp;
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Console/Getopt.php'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> Console_Getopt<span style="color: #339933;">::</span><span style="color: #990000;">getopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;argv&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;a:e:r:&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> about<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;
Easy Host Fake (version 1.0.1) [2008-12-27]
&nbsp;
Usage: ehf [OPTIONS]
&nbsp;
Mandatory: <span style="color: #000099; font-weight: bold;">\&quot;</span>-r<span style="color: #000099; font-weight: bold;">\&quot;</span> or <span style="color: #000099; font-weight: bold;">\&quot;</span>-e<span style="color: #000099; font-weight: bold;">\&quot;</span> [host]
&nbsp;
Options:
&nbsp;
  -r [host] [redirect host to 127.0.0.1 (or other ip address)]
  -e [host] [erase host on hosts file]
  -a [ip address]
&nbsp;
Examples:
&nbsp;
  ewf -r google.com -a 192.168.1.1
  ewf -e google.com
&nbsp;
More info [http://Albertux.AyalaSoft.com/2008/12/28/easy-host-fake-win32/]
&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> AddHost<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$hosts_file</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hosts_file</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #006699; font-weight: bold;">$ip</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #006699; font-weight: bold;">$host</span><span style="color: #000099; font-weight: bold;">\t</span># Easy Host Fake&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> removeHost<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$hosts_file</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hosts_file</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;r&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$contents</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #339933;">,</span> <span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hosts_file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$pattern</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/\\r\\n(\d+)\.(\d+)\.(\d+)\.(\d+)\t'</span><span style="color: #339933;">.</span><span style="color: #000088;">$host</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\t# Easy Host Fake/'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$replacement</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$newcontents</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pattern</span><span style="color: #339933;">,</span> <span style="color: #000088;">$replacement</span><span style="color: #339933;">,</span> <span style="color: #000088;">$contents</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hosts_file</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;w&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #339933;">,</span><span style="color: #000088;">$newcontents</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #339933;">,</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$var</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">message</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> about<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> getValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;r&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> getValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> getValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;e&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> about<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> about<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	removeHost<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> about<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$ip_default</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
addHost<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><a href="http://ayalasoft.com/codes/easyhostfake-php-1.0.1.zip">Download php script + batch cmd</a></p>
<p>Nota: en Windows Vista tu necesitas algunos permisos en el archivo hosts, y recuerda que todos los navegadores cuentan con cache.</p>
<p><a href="http://albertux.ayalasoft.com/es/2008/12/27/easy-host-fake-win32/">Easy Host Fake Win32</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/12/27/easy-host-fake-win32/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Win32 Installers</title>
		<link>http://albertux.ayalasoft.com/es/2008/12/21/win32-installers/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/12/21/win32-installers/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 15:09:56 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[develop]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=1208</guid>
		<description><![CDATA[Win32 Installers Sometimes you need to distribute your program to another computers one option is make a installer Nullsoft Scriptable Installer System (WebSite) You are Delphi/Pascal developer ? Inno setup Compiler (WebSite) You want quick and easy installer, without scripting language ? Little Install Builder (WebSite) If you are on Visual Studio you can use [...]<p><a href="http://albertux.ayalasoft.com/es/2008/12/21/win32-installers/">Win32 Installers</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Win32 Installers</strong></p>
<p>Sometimes you need to distribute your program to another computers one option is make a installer</p>
<p>Nullsoft Scriptable Installer System (<a href="http://nsis.sourceforge.net/Main_Page" target="_blank">WebSite</a>)</p>
<p>You are Delphi/Pascal developer ?</p>
<p>Inno setup Compiler (<a href="http://www.jrsoftware.org/isinfo.php" target="_blank">WebSite</a>)</p>
<p>You want quick and easy installer, without scripting language ?</p>
<p>Little Install Builder (<a href="http://www.pablosoftwaresolutions.com/html/install_builder.html" target="_blank">WebSite</a>)</p>
<p>If you are on Visual Studio you can use publish wizard on build menu.</p>
<p><a href="http://albertux.ayalasoft.com/es/2008/12/21/win32-installers/">Win32 Installers</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/12/21/win32-installers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instant Boot (ASRock Inc)</title>
		<link>http://albertux.ayalasoft.com/es/2008/11/12/instant-boot-asrock-inc/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/11/12/instant-boot-asrock-inc/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 00:21:07 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[win32]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=937</guid>
		<description><![CDATA[Instant Boot (ASRock Inc) Instant Boot is a pretty cool product of ASRock Inc, you can boot on Windows Vista only in 4 seconds. See the video: Download (see the model of the motherboard). Instant Boot (ASRock Inc) is a post from: Albertux~# ./Blog<p><a href="http://albertux.ayalasoft.com/es/2008/11/12/instant-boot-asrock-inc/">Instant Boot (ASRock Inc)</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Instant Boot (ASRock Inc)</strong></p>
<p>Instant Boot is a pretty cool product of <a href="http://www.asrock.com/" target="_blank">ASRock Inc</a>, you can boot on Windows Vista only in 4 seconds.</p>
<p>See the video:</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/BucIjXZVxXo&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BucIjXZVxXo&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><a href="http://www.asrock.com/feature/instantboot/download.asp" target="_blank">Download</a> (see the model of the motherboard).</p>
<p><a href="http://albertux.ayalasoft.com/es/2008/11/12/instant-boot-asrock-inc/">Instant Boot (ASRock Inc)</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/11/12/instant-boot-asrock-inc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QEMU Emulator</title>
		<link>http://albertux.ayalasoft.com/es/2008/11/01/qemu-emulator/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/11/01/qemu-emulator/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 21:51:58 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[emulation]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=835</guid>
		<description><![CDATA[QEMU Emulator QEMU is a great emulator, like VMware or VirtualBox you can use to manage many guest operating system on your computer of course you need a lot of RAM Install on Debian: apt-get install qemu wget http://bellard.org/qemu/kqemu-1.3.0pre11.tar.gz tar xvzf kqemu-1.3.0pre11.tar.gz cd kqemu-1.3.0pre11 ./configure make make install To load kqemu on Windows: net start [...]<p><a href="http://albertux.ayalasoft.com/es/2008/11/01/qemu-emulator/">QEMU Emulator</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>QEMU Emulator</strong></p>
<p><a href="http://bellard.org/qemu/" target="_blank">QEMU</a> is a great emulator, like <a href="http://www.vmware.com/" link="_blank">VMware</a> or <a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a> you can use to manage many guest operating system on your computer of course you need a lot of RAM</p>
<p>Install on Debian:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> qemu
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>bellard.org<span style="color: #000000; font-weight: bold;">/</span>qemu<span style="color: #000000; font-weight: bold;">/</span>kqemu-1.3.0pre11.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf kqemu-1.3.0pre11.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> kqemu-1.3.0pre11
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>To load kqemu on Windows:</p>

<div class="wp_syntax"><div class="code"><pre class="winbatch" style="font-family:monospace;">net start kqemu</pre></div></div>

<p>To load kqemu on GNU/Linux:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">modprobe kqemu</pre></div></div>

<p>Port redirection use the flag option &#8220;-redir&#8221; some examples:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">-redir</span> tcp:<span style="color: #000000;">8000</span>::<span style="color: #000000;">80</span>  <span style="color: #666666; font-style: italic;"># redirect host port 8000 to port 80 on the guest.</span>
<span style="color: #660033;">-redir</span> tcp:<span style="color: #000000;">22</span>::<span style="color: #000000;">22</span> <span style="color: #666666; font-style: italic;"># ssh server on the guest</span></pre></div></div>

<p>Note: I have a little trouble to install kqemu.inf on Windows Vista Bussiness i need to download the setup file on &#8220;Accelerators&#8221; section on <a href=" http://www.h7.dion.ne.jp/~qemu-win/index.html" target="_blank">QEMU for Win32</a></p>
<p><a href="http://www.damnsmalllinux.org/" target="_blak">Damn Small Linux</a> is a light distro use old kernel but run very wheel on old computer systems, you can run on CD-Rom, USB or <a href="http://www.damnsmalllinux.org/usb-qemu.html" target="_blank">Embedded System</a> (using QEMU emulator)</p>
<p><a href="http://ayalasoft.com/img/qemu_dsl.jpg" rel="shadowbox[c]"><img src="http://ayalasoft.com/img/thumb_qemu_dsl.jpg"></a></p>
<p><a href="http://ayalasoft.com/img/qemu_dsl_port.jpg" rel="shadowbox[c]"><img src="http://ayalasoft.com/img/thumb_qemu_dsl_port.jpg"></a></p>
<p>Some times you need test some software but you want to install on your personal computer system, emulate and test the software is the best solution</p>
<p><a href="http://albertux.ayalasoft.com/es/2008/11/01/qemu-emulator/">QEMU Emulator</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/11/01/qemu-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resize Multiple Images</title>
		<link>http://albertux.ayalasoft.com/es/2008/10/20/resize-multiple-images/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/10/20/resize-multiple-images/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 23:44:14 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[develop]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=755</guid>
		<description><![CDATA[Resize Multiple Images En mi caso tengo que cambir el tama&#241;o de mas de 1,000 fotografias asi que si utilizo gimp y las escalo cada una no es una buena soluci&#243;n. Necesitas ImageMagick y Bash. Subfolders: script.sh: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #!/bin/bash [...]<p><a href="http://albertux.ayalasoft.com/es/2008/10/20/resize-multiple-images/">Resize Multiple Images</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Resize Multiple Images</strong></p>
<p>En mi caso tengo que cambir el tama&ntilde;o de mas de 1,000 fotografias asi que si utilizo <a href="http://gimp.org/" target="_blank">gimp</a> y las escalo cada una no es una buena soluci&oacute;n.</p>
<p>Necesitas <a href="http://www.imagemagick.org/" target="_blank">ImageMagick</a> y Bash.</p>
<p>Subfolders:<br />
<img src="http://ayalasoft.com/img/pictures_subfolders.jpg"></p>
<p>script.sh:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># fotos</span>
<span style="color: #007800;">IFS</span>=$<span style="color: #ff0000;">'\t\n'</span>; <span style="color: #666666; font-style: italic;"># Algunas fotos puede que tengan espacios</span>
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #000000; font-weight: bold;">for</span> j <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #666666; font-style: italic;"># fotos/098-001/ fotos/098-002/ fotos/097-001/ etc...</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$j</span>&quot;</span> = <span style="color: #ff0000;">&quot;Thumbs.db&quot;</span>  <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>  <span style="color: #666666; font-style: italic;"># garbage file on win32</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Nothing to do...&quot;</span>
    <span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$j</span>&quot;</span> = <span style="color: #ff0000;">&quot;script.sh&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #666666; font-style: italic;"># this script file :D</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Nothing to do...&quot;</span>
    <span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Working ...&quot;</span> <span style="color: #666666; font-style: italic;"># do the job</span>
        <span style="color: #666666; font-style: italic;">#convert &quot;$i/$j&quot; -resize 500 &quot;$i/new_$j&quot;</span>
        <span style="color: #666666; font-style: italic;">#mv &quot;$i/new_$j&quot; &quot;$i/$j&quot;</span>
        mogrify <span style="color: #660033;">-resize</span> <span style="color: #000000;">500</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$i</span>/<span style="color: #007800;">$j</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
    <span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>Ahora todas las imagenes tienen width: 500.</p>
<p>Ahora supongamos que se tienen multiples sub directorios, puedes utilizar este script:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">IFS</span>=$<span style="color: #ff0000;">'\t\n'</span>
<span style="color: #007800;">EXTS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> jpg gif png JPG GIF PNG <span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">for</span> EXT <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #800000;">${EXTS[@]}</span>;
<span style="color: #000000; font-weight: bold;">do</span>
	<span style="color: #000000; font-weight: bold;">for</span> f <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;*.<span style="color: #007800;">$EXT</span>&quot;</span> <span style="color: #660033;">-type</span> f<span style="color: #000000; font-weight: bold;">`</span>;
	<span style="color: #000000; font-weight: bold;">do</span>
		<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">dir</span></span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dirname</span> <span style="color: #007800;">$f</span><span style="color: #000000; font-weight: bold;">`</span>
		<span style="color: #007800;">ff</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">basename</span> <span style="color: #007800;">$f</span><span style="color: #000000; font-weight: bold;">`</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Working ...&quot;</span>
		<span style="color: #666666; font-style: italic;">#convert &quot;$f&quot; -resize 500 &quot;$dir/new_$ff&quot;</span>
		<span style="color: #666666; font-style: italic;">#mv &quot;$dir/new_$ff&quot; &quot;$f&quot;</span>
                mogrify  <span style="color: #660033;">-resize</span> <span style="color: #000000;">500</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$f</span>&quot;</span>
	<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>[thanks for the advice CyX]</p>
<p><a href="http://albertux.ayalasoft.com/es/2008/10/20/resize-multiple-images/">Resize Multiple Images</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/10/20/resize-multiple-images/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GeoIP PHP Script</title>
		<link>http://albertux.ayalasoft.com/es/2008/10/01/geoip-php-script/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/10/01/geoip-php-script/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 05:49:55 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[geoip]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=684</guid>
		<description><![CDATA[GeoIP PHP Script I made this script utility to check what country is some ip, you need GeoIP Database I hope you have PHP in your path: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [...]<p><a href="http://albertux.ayalasoft.com/es/2008/10/01/geoip-php-script/">GeoIP PHP Script</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>GeoIP PHP Script</strong></p>
<p>I made this script utility to check what country is some ip, you need <a href="http://albertux.ayalasoft.com/2008/08/08/geoip-database-mysql/">GeoIP Database</a></p>
<p>I hope you have <span style="color:blue">PHP</span> in your path:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">#!/usr/bin/php -q
<span style="color: #000000; font-weight: bold;">&lt;?</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'argv'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;use: geoip xxx.xxx.xxx.xxx<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$ip</span><span style="color: #339933;">=</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'argv'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$out</span><span style="color: #339933;">=</span><span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #009933; font-weight: bold;">%u</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">ip2long</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// don't ask why, you need this line	</span>
&nbsp;
	<span style="color: #000088;">$sql</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SELECT country_name FROM geoip WHERE (<span style="color: #006699; font-weight: bold;">$out</span> BETWEEN ip_begin AND ip_end)&quot;</span><span style="color: #339933;">;</span>	
&nbsp;
	<span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'root'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// HOST, USER, PASS</span>
	<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'GEOIP'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// DATABASE</span>
&nbsp;
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #339933;">,</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span>MYSQL_ASSOC<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>	
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'country_name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Unknown<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Examples:</p>
<pre>
~$ geoip 79.130.90.12
Greece
~$ geoip 207.33.11.33
United States
~$ geoip 148.234.13.23
Mexico
</pre>
<p>I think i made a good tool.</p>
<p><a href="http://albertux.ayalasoft.com/es/2008/10/01/geoip-php-script/">GeoIP PHP Script</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/10/01/geoip-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Toshiba Fan On Ubuntu</title>
		<link>http://albertux.ayalasoft.com/es/2008/09/28/toshiba-fan-on-ubuntu/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/09/28/toshiba-fan-on-ubuntu/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 21:09:15 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[toshiba]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=611</guid>
		<description><![CDATA[Toshiba Fan On Ubuntu You need to install toshset include on toshutils (do you have lm-sensors ?) sudo apt-get install toshutils This script make the fan run high, low or normal #!/bin/bash case $1 in h&#41; sudo toshset -fan 4 # high ;; n&#41; sudo toshset -fan 5 # normal ;; l&#41; sudo toshset -fan [...]<p><a href="http://albertux.ayalasoft.com/es/2008/09/28/toshiba-fan-on-ubuntu/">Toshiba Fan On Ubuntu</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Toshiba Fan On Ubuntu</strong></p>
<p><img src="http://ayalasoft.com/img/cputemp.jpg"></p>
<p>You need to install toshset include on toshutils (do you have lm-sensors ?)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> toshutils</pre></div></div>

<p>This script make the fan run high, low or normal</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">case</span> $<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">in</span>
	h<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> toshset <span style="color: #660033;">-fan</span> <span style="color: #000000;">4</span> <span style="color: #666666; font-style: italic;"># high</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
	n<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> toshset <span style="color: #660033;">-fan</span> <span style="color: #000000;">5</span> <span style="color: #666666; font-style: italic;"># normal</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
	l<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> toshset <span style="color: #660033;">-fan</span> <span style="color: #000000;">6</span> <span style="color: #666666; font-style: italic;"># low</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></div></div>

<p>If you live in warn places, &#8220;~$ script.sh h&#8221; could be help you a little don&#8217;t use all time this option, to normalize your fan run &#8220;~$script.sh n&#8221;.</p>
<p>There are other tools on toshset &#8220;man toshset&#8221;.</p>
<p><a href="http://albertux.ayalasoft.com/es/2008/09/28/toshiba-fan-on-ubuntu/">Toshiba Fan On Ubuntu</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/09/28/toshiba-fan-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>MySQL Workbench (Linux)</title>
		<link>http://albertux.ayalasoft.com/es/2008/09/24/mysql-workbench-linux/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/09/24/mysql-workbench-linux/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 18:16:48 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=604</guid>
		<description><![CDATA[MySQL Workbench (Linux) What is MySQL Workbench ? MySQL Workbench is a cross-platform, visual database design tool developed by MySQL. It is the highly anticipated successor application of the DBDesigner4 project. MySQL Workbench will be available as a native GUI tool on Window, Linux and OS X. For Ubuntu (8.04) users i made this install [...]<p><a href="http://albertux.ayalasoft.com/es/2008/09/24/mysql-workbench-linux/">MySQL Workbench (Linux)</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>MySQL Workbench (Linux)</strong></p>
<p>What is MySQL Workbench ?</p>
<blockquote><p>MySQL Workbench is a cross-platform, visual database design tool developed by MySQL. It is the highly anticipated successor application of the DBDesigner4 project. MySQL Workbench will be available as a native GUI tool on Window, Linux and OS X.</p></blockquote>
<p><a href="http://ayalasoft.com/img/mysql-workbench.jpg" rel="shadowbox"><img src="http://ayalasoft.com/img/mysql-workbench-thumb.jpg"></a></p>
<p>For Ubuntu (8.04) users i made this install script (run as root):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># This script tested only on Ubuntu 8.04 (32 bits)</span>
<span style="color: #666666; font-style: italic;"># You need some extra libs to run MySQL Workbench</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> liblua5.1-<span style="color: #000000;">0</span> libzip1 libmysqlclient15off
<span style="color: #666666; font-style: italic;"># Download MySQL Workbench Ubuntu 8.04 Bin Files</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.mysql.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>gui-tools<span style="color: #000000; font-weight: bold;">/</span>mysql-workbench-5.1.2-alpha-ubuntu8-i386.tar.gz
<span style="color: #666666; font-style: italic;"># Download the md5 checksum file</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.mysql.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>gui-tools<span style="color: #000000; font-weight: bold;">/</span>mysql-workbench-5.1.2-alpha-ubuntu8-i386.tar.gz.md5
<span style="color: #666666; font-style: italic;"># Check md5sum</span>
<span style="color: #007800;">real</span>=<span style="color: #000000; font-weight: bold;">`</span>md5sum mysql-workbench-5.1.2-alpha-ubuntu8-i386.tar.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">confirm</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> mysql-workbench-5.1.2-alpha-ubuntu8-i386.tar.gz.md5 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$real</span>&quot;</span> = <span style="color: #ff0000;">&quot;<span style="color: #007800;">$confirm</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #666666; font-style: italic;"># Extract (/usr/local/bin/ /usr/local/lib/mysql-workbench/ /usr/local/share/mysql-workbench/)</span>
	<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf mysql-workbench-5.1.2-alpha-ubuntu8-i386.tar.gz <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Wrong MD5, run the script again.&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>Note: MySQL Workbench is alpha on Linux</p>
<p>More information about <a href="http://dev.mysql.com/workbench/" target="_blank">MySQL Workbench</a></p>
<p><a href="http://albertux.ayalasoft.com/es/2008/09/24/mysql-workbench-linux/">MySQL Workbench (Linux)</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/09/24/mysql-workbench-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Acerca de NetCat</title>
		<link>http://albertux.ayalasoft.com/es/2008/09/11/about-netcat/</link>
		<comments>http://albertux.ayalasoft.com/es/2008/09/11/about-netcat/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 21:34:15 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=523</guid>
		<description><![CDATA[Acerca de NetCat NetCat es una herramienta para la red, mira algunos ejemplos: Crea un peque&#241;o Servidor Web: while true; do nc -l -p 80 -q 1 &#60; error.html; done Transporta archivos: nc -lp $PORT &#62; $FILE cat $FILE &#124; nc -w 1 $HOST $PORT Servidor de Chat: nc -lp $PORT nc $HOST $PORT Spoof [...]<p><a href="http://albertux.ayalasoft.com/es/2008/09/11/about-netcat/">Acerca de NetCat</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Acerca de NetCat</strong></p>
<p>NetCat es una herramienta para la red, mira algunos ejemplos:</p>
<p>Crea un peque&ntilde;o Servidor Web:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>; <span style="color: #000000; font-weight: bold;">do</span> nc <span style="color: #660033;">-l</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">80</span> <span style="color: #660033;">-q</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&lt;</span> error.html; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Transporta archivos:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #660033;">-lp</span> <span style="color: #007800;">$PORT</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$FILE</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$FILE</span> <span style="color: #000000; font-weight: bold;">|</span> nc <span style="color: #660033;">-w</span> <span style="color: #000000;">1</span> <span style="color: #007800;">$HOST</span> <span style="color: #007800;">$PORT</span></pre></div></div>

<p>Servidor de Chat:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #660033;">-lp</span> <span style="color: #007800;">$PORT</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #007800;">$HOST</span> <span style="color: #007800;">$PORT</span></pre></div></div>

<p>Spoof Headers:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;GET / HTTP/1.1<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> nc <span style="color: #660033;">-v</span> <span style="color: #007800;">$HOST</span> <span style="color: #000000;">80</span></pre></div></div>

<p>Sistema de Respaldo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #660033;">-lp</span> <span style="color: #007800;">$HOST</span> <span style="color: #000000; font-weight: bold;">&gt;</span> backup.tar.gz</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> cf - <span style="color: #007800;">$DIR</span>  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span>  <span style="color: #000000; font-weight: bold;">|</span> nc <span style="color: #660033;">-w</span> <span style="color: #000000;">1</span> <span style="color: #007800;">$HOST</span> <span style="color: #007800;">$PORT</span></pre></div></div>

<p>Shell Remota:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #660033;">-lp</span> <span style="color: #007800;">$PORT</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$CMD</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #007800;">$HOST</span> <span style="color: #007800;">$PORT</span></pre></div></div>

<p>Clonaci&oacute;n de disco duro:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #660033;">-l</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$PORT</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda <span style="color: #000000; font-weight: bold;">|</span> nc <span style="color: #007800;">$HOST</span> <span style="color: #007800;">$PORT</span></pre></div></div>

<p>Scanner de Puertos:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nc <span style="color: #660033;">-vz</span> <span style="color: #007800;">$HOST</span> <span style="color: #000000;">21</span>-<span style="color: #000000;">80</span></pre></div></div>

<p>Web: <a href="http://netcat.sourceforge.net/" target="_blank">http://netcat.sourceforge.net/</a></p>
<p><a href="http://albertux.ayalasoft.com/es/2008/09/11/about-netcat/">Acerca de NetCat</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2008/09/11/about-netcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
