<?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>P0L0&#039;s Blog</title>
	<atom:link href="http://p0l0.binware.org/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://p0l0.binware.org</link>
	<description></description>
	<lastBuildDate>Thu, 08 Oct 2009 08:00:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vlogin &#8211; Roundcube Plugin</title>
		<link>http://p0l0.binware.org/index.php/2009/10/02/vlogin-roundcube-plugin/</link>
		<comments>http://p0l0.binware.org/index.php/2009/10/02/vlogin-roundcube-plugin/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 04:04:26 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[roundcube]]></category>
		<category><![CDATA[sourceforge]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=427</guid>
		<description><![CDATA[I just released the first version of my Vlogin Plugin for Roundcube. This plugin is based on the Vlogin for Squirrelmail.
For now the only implemented function is that you can login using only "user" and roundcube will authenticate against IMAP using the domain extracted from the webmail URL.
You can get download the plugin from the [...]]]></description>
			<content:encoded><![CDATA[<p>I just released the first version of my Vlogin Plugin for Roundcube. This plugin is based on the <a href="http://www.squirrelmail.org/plugin_view.php?id=47" target="_blank">Vlogin </a>for Squirrelmail.</p>
<p>For now the only implemented function is that you can login using only "user" and roundcube will authenticate against IMAP using the domain extracted from the webmail URL.</p>
<p>You can get download the plugin from the <a href="http://sourceforge.net/projects/roundcubevlogin/" target="_blank">Vlogin sourceforge</a> project page.</p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2009/10/02/vlogin-roundcube-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix+Amavisd-new+Spamassasin+Clamav</title>
		<link>http://p0l0.binware.org/index.php/2009/08/08/postfixamavisd-newspamassasinclamav/</link>
		<comments>http://p0l0.binware.org/index.php/2009/08/08/postfixamavisd-newspamassasinclamav/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 18:50:24 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[amavis]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[binware]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassasin]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=384</guid>
		<description><![CDATA[Since I had to disable the PTR check in Postfix at Binware because in Spain 90% of mail servers are badly configured and they were all rejected, and now we have lot of spam.
So I decided to install Spamassassin and Clamav to detect and reject some of this spam.
First of all, we need to install [...]]]></description>
			<content:encoded><![CDATA[<p>Since I had to disable the PTR check in Postfix at <a href="http://binware.org">Binware</a> because in Spain 90% of mail servers are badly configured and they were all rejected, and now we have lot of spam.</p>
<p>So I decided to install Spamassassin and Clamav to detect and reject some of this spam.</p>
<p>First of all, we need to install needed packages:</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> spamassassin amavisd-new clamav clamav-daemon</pre></div></div>

<p>We will begin configuring amavisd-new, the configuration files are at <strong>/etc/amavis/conf.</strong></p>
<p>In file <strong>20-debian_default</strong>s I changed the header that will be added to each mail processed:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #0000ff;">$X_HEADER_LINE</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;AntiSpam/Antivirus Scanner at $mydomain&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>We need to activate antispam and antivirus check in amavis, this is found in file <strong>15-content_filter_mode</strong>. We need to uncomment @bypass_virus_checks_maps and @bypass_spam_checks_maps. The file will look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># You can modify this file to re-enable SPAM checking through spamassassin</span>
<span style="color: #666666; font-style: italic;"># and to re-enable antivirus checking.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Default antivirus checking mode</span>
<span style="color: #666666; font-style: italic;"># Please note, that anti-virus checking is DISABLED by</span>
<span style="color: #666666; font-style: italic;"># default.</span>
<span style="color: #666666; font-style: italic;"># If You wish to enable it, please uncomment the following lines:</span>
&nbsp;
&nbsp;
<span style="color: #0000ff;">@bypass_virus_checks_maps</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>
   <span style="color: #0000ff;">\%bypass_virus_checks</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">\@bypass_virus_checks_acl</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">\$bypass_virus_checks_re</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Default SPAM checking mode</span>
<span style="color: #666666; font-style: italic;"># Please note, that anti-spam checking is DISABLED by</span>
<span style="color: #666666; font-style: italic;"># default.</span>
<span style="color: #666666; font-style: italic;"># If You wish to enable it, please uncomment the following lines:</span>
&nbsp;
&nbsp;
<span style="color: #0000ff;">@bypass_spam_checks_maps</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>
   <span style="color: #0000ff;">\%bypass_spam_checks</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">\@bypass_spam_checks_acl</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">\$bypass_spam_checks_re</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;"># ensure a defined return</span></pre></div></div>

<p>By default, amavis will use the hostname for <strong><em>$mydomain</em></strong>, but thats not what I want, so I edited file <strong>05-domain_id</strong>, setting <strong><em>$mydomain</em></strong> to <strong>binware.org</strong></p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># $mydomain is used just for convenience in the config files and it is not</span>
<span style="color: #666666; font-style: italic;"># used internally by amavisd-new except in the default X_HEADER_LINE (which</span>
<span style="color: #666666; font-style: italic;"># Debian overrides by default anyway).</span>
&nbsp;
<span style="color: #0000ff;">$mydomain</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'binware.org'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># amavisd-new needs to know which email domains are to be considered local</span>
<span style="color: #666666; font-style: italic;"># to the administrative domain.  Only emails to &quot;local&quot; domains are subject</span>
<span style="color: #666666; font-style: italic;"># to certain functionality, such as the addition of spam tags.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Default local domains to $mydomain and all subdomains.  Remember to</span>
<span style="color: #666666; font-style: italic;"># override or redefine this if $mydomain is changed later in the config</span>
<span style="color: #666666; font-style: italic;"># sequence.</span>
&nbsp;
<span style="color: #0000ff;">@local_domains_acl</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #ff0000;">&quot;.$mydomain&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;"># ensure a defined return</span></pre></div></div>

<p>Next step is to add the <strong>clamav</strong> user to the <strong>amavis</strong> group, so that amavis can call clamav</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser clamav amavis</pre></div></div>

<p>Now it's time to configure postfix. The first file to edit is <strong>main.cf</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># Amavisd-new</span>
content_filter = amavis:<span class="br0">&#91;</span>127.0.0.1<span class="br0">&#93;</span>:<span style="color: #cc66cc;">10024</span></pre></div></div>

<p>And in <strong>master.conf</strong> add this at the end of file:</p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;">amavis unix - - - - <span style="color: #cc66cc;">2</span> smtp
  -o smtp_data_done_timeout=<span style="color: #cc66cc;">1200</span>
  -o smtp_send_xforward_command=yes
&nbsp;
127.0.0.1:<span style="color: #cc66cc;">10025</span> inet n - - - - smtpd
  -o content_filter=
  -o local_recipient_maps=
  -o relay_recipient_maps=
  -o smtpd_restriction_classes=
  -o smtpd_client_restrictions=
  -o smtpd_helo_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks=127.0.0.0/<span style="color: #cc66cc;">8</span>
  -o strict_rfc821_envelopes=yes
  -o smtpd_bind_address=127.0.0.1</pre></div></div>

<p>That's all! Now restart services:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>clamav-daemon restart
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>clamav-freshclam restart
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>amavis restart
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>postfix restart</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2009/08/08/postfixamavisd-newspamassasinclamav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse Configuration for Web Development</title>
		<link>http://p0l0.binware.org/index.php/2009/07/28/eclipse-configuration-for-web-development/</link>
		<comments>http://p0l0.binware.org/index.php/2009/07/28/eclipse-configuration-for-web-development/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 19:11:17 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[epic]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[pydev]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[subversive]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svnkit]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=326</guid>
		<description><![CDATA[After trying very different IDE and many Eclipse IDE flawors, this is the best configuration I have found, and all the components are free.
First of all we need to download Eclipse Classic from the Eclipse website.
One of the first things we need to do is to change eclipse.ini, we will make it start faster and [...]]]></description>
			<content:encoded><![CDATA[<p>After trying very different IDE and many Eclipse IDE flawors, this is the best configuration I have found, and all the components are free.</p>
<p>First of all we need to download <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse Classic</a> from the Eclipse website.</p>
<p>One of the first things we need to do is to change eclipse.ini, we will make it start faster and increase the memory limit</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="ini" style="font-family:monospace;">--launcher.XXMaxPermSize
256m
-vm
/usr/bin/java
-vmargs
-Xms40m
-Xmx1024m</pre></td></tr></table></div>

<p>The path to Java VM depends on your installation and system, in windows you must search for "javaw.exe". Setting the path to Java VM makes that Eclipse stops searching for the Java VM every start, which makes the start faster.</p>
<p>Now we can start installing the required Plugins. In "Help->Install New Software..." we will add the following Update Sites.</p>
<ul>
<li>Aptana - http://update15.aptana.org/studio/25914/
<p style="text-align: center"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-install.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-install-300x94.png" alt="Aptana Install" title="Aptana Install" width="300" height="94" class="alignnone size-medium wp-image-339" /></a></p>
</li>
<li>Mylyn - http://download.eclipse.org/tools/mylyn/update/e3.4
<p style="text-align: center"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-mylyn-install.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-mylyn-install-300x161.png" alt="Mylyn Install" title="Mylyn Install" width="300" height="161" class="alignnone size-medium wp-image-366" /></a></p>
</li>
<li>Mylyn Extras - http://download.eclipse.org/tools/mylyn/update/extras
<p style="text-align: center"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-mylyn_extras-install1.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-mylyn_extras-install1-300x95.png" alt="Mylyn Extra Install" title="Mylyn Extra Install" width="300" height="95" class="alignnone size-medium wp-image-368" /></a></p>
</li>
<li>SVNKit - http://community.polarion.com/projects/subversive/download/eclipse/2.0/galileo-site/
<p style="text-align:center"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-svnkit-install.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-svnkit-install-300x131.png" alt="SVNKit Install" title="SVNKit Install" width="300" height="131" class="alignnone size-medium wp-image-370" /></a></p>
</li>
<li>EPIC (Perl) - http://e-p-i-c.sourceforge.net/updates/testing <em>optional, only if you need Perl</em>
<p style="text-align:center;"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-epic-install.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-epic-install-300x78.png" alt="EPIC Install" title="EPIC Install" width="300" height="78" class="alignnone size-medium wp-image-372" /></a></p>
</li>
</ul>
<p>You have noticed that at each start a Window Asking for Installing Addiontal Features. Now that we can start installing this features. For me the most important are:</p>
<ul>
<li>Aptana PHP
<p style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-php-install.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-php-install-300x153.png" alt="Aptana PHP Install" title="Aptana PHP Install" width="300" height="153" class="alignnone size-medium wp-image-373" /></a></p>
</li>
<li>Aptana PyDev <em>optional, only if you need Python</em>
<p style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-pydev-install.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-pydev-install-300x192.png" alt="Aptana PyDev Install" title="Aptana PyDev Install" width="300" height="192" class="alignnone size-medium wp-image-374" /></a></p>
</li>
<li>Ajax Libraries <em>You can select all or just the one you need</em>
<p style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-ajax-libraries-install.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-aptana-ajax-libraries-install-300x296.png" alt="Aptana Ajax Libraries Install" title="Aptana Ajax Libraries Install" width="300" height="296" class="alignnone size-medium wp-image-375" /></a></p>
</li>
</ul>
<p>After installing all needed plugins we can start with the configuration.</p>
<ol>
<li>General\Workspace
<ul>
<li>Text file encoding -> UTF-8</li>
<li>New text file line delimiter -> Unix</li>
</ul>
</li>
<li>General\Editors\Text Editors
<ul>
<li>Displayed tab width -> 4</li>
<li>Insert spaces for tabs -> True</li>
<li>Show line number -> True</li>
<li>Show print margin -> True</li>
<li>Print margin column -> 80</li>
</ul>
</li>
<li>General\Keys
<ul>
<li>Show Whitespace Characters (Text Editing) -> Binding: Ctrl+Alt+Space -> When: Editing Text</li>
</ul>
</li>
<li>
Aptana\Editors</p>
<ul>
<li>Formattings -> Insert selected proposal with 'Tab' key as well as 'Enter' key -> True</li>
<li>Tab Insertion -> Use spaces (current width is 4)</li>
</ul>
</li>
<li>Aptana\Editors\PHP
<ul>
<li>Create project file in new PHP project -> False</li>
</ul>
</li>
<li>Aptana\Editors\PHP\Formatting
<ul>
<li>Edit... -></p>
<ul>
<li>Profile Name -> ZendStandards</li>
<li>Control Statemets ->
<ul>
<li>Insert new line before 'else' in an 'if' statement -> False</li>
<li>Insert new line before 'catch' in an 'try' statement -> False</li>
<li>Insert new line before 'while' in an 'do' statement -> False</li>
<li>'if else' - Keep 'then' statement on same line -> False</li>
</ul>
</li>
<li>Braces ->
<ul>
<li>Method declaration -> Next line</li>
<li>Blocks -> Same line</li>
<li>Blocks in case statement -> Same line</li>
<li>'switch' statement -> Same line</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Install/Update\Automatic Updates
<ul>
<li>Automatically find new updates and notify me -> True</li>
</ul>
</li>
<li>Team\SVN - SVN Client
<ul>
<li>SVN Client -> SVN Kit</li>
<li>SVN Client -> Use SVN Merge View -> True</li>
</ul>
</li>
<li>Team\SVN\Automatic Properties
<ul>
<li>Add: * -> svn:keywords=Id</li>
</ul>
</li>
</ol>
<p>I use the Aptana Perspective with this views:</p>
<ul>
<li>Right Top
<ul>
<li>Aptana Standard Views\Project</li>
</ul>
</li>
<li>Right Bottom
<ul>
<li>General\Outline</li>
<li>Aptana Standard Views\PHP Elements Views</li>
<li>Aptana Standard Views\References</li>
</ul>
</li>
<li>Bottom
<ul>
<li>General\Tasks</li>
<li>Aptana Standard Views\Validation</li>
<li>General\Console</li>
<li>Team\History</li>
<li>Team\SVN Properties</li>
<li>EPIC\RegExp <em>only if you installed EPIC</em></li>
</ul>
</li>
<li>Left
<ul>
<li>Tasks\Task List</li>
</ul>
</li>
</ul>
<p>I like that the Oultine is automatically expanded, so that I have an overview of the file at every moment, but Aptana does not autoexpand the Outline. I use the following workaround:</p>
<ul>
<li>Create a new <em>General Project</em> called "_Monkey"</li>
<li>Create a folder called <em>scripts</em></li>
<li>Create a javascript file called <em>autoExpandOutline.js</em> with the following content

<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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/* 
 * 
 * Menu: EHU &amp;gt; HandlerService (Auto expand outline)
 * Kudos: Ingo Muschenetz &amp;amp; Kevin Lindsey &amp;amp; Steve Daniels
 * License: EPL 1.0
 * Listener: getPartService().addPartListener(this);
 * DOM: http://localhost/com.aptana.ide.scripting
 * DOM: http://download.eclipse.org/technology/dash/update/org.eclipse.eclipsemonkey.lang.javascript
 * 
 * 
*/</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> getPartService<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> workbench <span style="color: #339933;">=</span> Packages.<span style="color: #660066;">org</span>.<span style="color: #660066;">eclipse</span>.<span style="color: #660066;">ui</span>.<span style="color: #660066;">PlatformUI</span>.<span style="color: #660066;">getWorkbench</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>workbench<span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> window <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
        runOnUIThread<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            window <span style="color: #339933;">=</span> workbench.<span style="color: #660066;">getActiveWorkbenchWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
                result <span style="color: #339933;">=</span> window.<span style="color: #660066;">getPartService</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #006600; font-style: italic;">//out.println(&quot;result set to &quot; + result);</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000066; font-weight: bold;">else</span>
            <span style="color: #009900;">&#123;</span>
                <span style="color: #006600; font-style: italic;">//out.println(&quot;window is not defined&quot;);</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000066; font-weight: bold;">else</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">//out.println(&quot;workbench is not defined&quot;);</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">//out.println(&quot;getPartService() is returning &quot; + result);</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">return</span> result<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> partBroughtToTop<span style="color: #009900;">&#40;</span>part<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//out.println(&quot;part*()\n&quot;);</span>
<span style="color: #009900;">&#125;</span>  
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> partClosed<span style="color: #009900;">&#40;</span>part<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//out.println(&quot;part*()\n&quot;);</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> partDeactivated<span style="color: #009900;">&#40;</span>part<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//out.println(&quot;part*()\n&quot;);</span>
<span style="color: #009900;">&#125;</span>  
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> partOpened<span style="color: #009900;">&#40;</span>part<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//out.println(&quot;part*()\n&quot;);</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> partActivated<span style="color: #009900;">&#40;</span>part<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>part.<span style="color: #660066;">getEditorInput</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    expandOutline<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: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> partVisible<span style="color: #009900;">&#40;</span>part<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//out.println(&quot;part*()\n&quot;);</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> partHidden<span style="color: #009900;">&#40;</span>part<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//out.println(&quot;part*()\n&quot;);</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> expandOutline<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//out.println(&quot;expandOutline()\n&quot;);</span>
  <span style="color: #000066; font-weight: bold;">try</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//out.println(&quot;try\n&quot;);</span>
    <span style="color: #003366; font-weight: bold;">var</span> editor <span style="color: #339933;">=</span> editors.<span style="color: #660066;">activeEditor</span>.<span style="color: #660066;">textEditor</span><span style="color: #339933;">;</span>
&nbsp;
    editor.<span style="color: #660066;">getOutlinePage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTreeViewer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">expandAll</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: #000066; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//out.println(&quot;catch\n&quot;);</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

</li>
</ul>
<p>Each new project that you create must use this project as reference, and now every time you open a file the Outline will be expanded automatically when you enter into the Editor</p>
<p style="text-align:center;">
<a href="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-layout.png" rel="lightbox[326]"><img src="http://p0l0.binware.org/wp-content/uploads/2009/07/eclipse-layout-300x230.png" alt="Eclipse Layout" title="Eclipse Layout" width="300" height="230" class="alignnone size-medium wp-image-378" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2009/07/28/eclipse-configuration-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooStepForm</title>
		<link>http://p0l0.binware.org/index.php/2009/01/29/moostepform/</link>
		<comments>http://p0l0.binware.org/index.php/2009/01/29/moostepform/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 09:58:50 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[anieto2k]]></category>
		<category><![CDATA[MooStepForm]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=293</guid>
		<description><![CDATA[Hoy repasando los RSS, he visto que anieto2k ha publicado un script para jQuery que convertia un formulario en varios pasos. Lo que ha hecho tener la idea de hacer lo mismo pero con Mootools.
El funcionamiento es el mismo que el script de anieto2k, busca por defecto un formulario (estoy preparandolo para que funcione con [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy repasando los RSS, he visto que <a href="http://www.anieto2k.com/2009/01/28/divide-formularios-en-pasos-con-jquery/" target="_blank">anieto2k</a> ha publicado un script para jQuery que convertia un formulario en varios pasos. Lo que ha hecho tener la idea de hacer lo mismo pero con Mootools.</p>
<p>El funcionamiento es el mismo que el script de anieto2k, busca por defecto un formulario (estoy preparandolo para que funcione con mas de uno...) con la class <strong>stepMe</strong> y lo divide por <strong>fieldsets</strong>.</p>
<p>Se puede personalizar al crear la clase:</p>
<ul>
<li>strBack: 'string de volver'</li>
<li>strNext: 'string de siguiente'</li>
<li>blockEl: 'tag para usar en la division'</li>
<li>className: 'class del formulario'</li>
</ul>
<p>He adjuntado un pequeño fichero HTML para verlo en funcionamiento (AVISO: no tiene CSS!!)</p>
<p>Lo podeis descargar aqui: <a href="http://p0l0.binware.org/wp-content/uploads/2009/01/moostepform-01.zip">MooStepForm v.0.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2009/01/29/moostepform/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CNET Mootools libraries</title>
		<link>http://p0l0.binware.org/index.php/2008/08/28/cnet-mootools-libraries/</link>
		<comments>http://p0l0.binware.org/index.php/2008/08/28/cnet-mootools-libraries/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 12:54:27 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[cnet libraries]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=277</guid>
		<description><![CDATA[Mootools para mi es uno de los frameworks javascript que mas me gustan y que estoy utilizando bastante ultimamente. El otro dia estaba buscando unas librerias interesantes para Mootols y me tope con las CNET Libraries, que son unas librerias OpenSource compatibles con Mootools 1.2
Las librerias cuentan con una buena documentacion y ejemplos, estan divididas [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mootools.net" target="_blank">Mootools</a> para mi es uno de los frameworks javascript que mas me gustan y que estoy utilizando bastante ultimamente. El otro dia estaba buscando unas librerias interesantes para Mootols y me tope con las <a href="http://clientside.cnet.com/wiki/cnet-libraries/" target="_blank">CNET Libraries</a>, que son unas librerias OpenSource compatibles con Mootools 1.2</p>
<p>Las librerias cuentan con una buena documentacion y ejemplos, estan divididas en varias categorias:</p>
<ul>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/01-core" target="_blank">Core</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/02-browser" target="_blank">Browser Extensions</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/03-native" target="_blank">Native Extensions</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/04-element" target="_blank">Element Extensions</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/05-fx" target="_blank">FX Extensions</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/06-request" target="_blank">Request Extensions</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/07-ui" target="_blank">UI</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/08-layout" target="_blank">Layout</a></li>
<li><a href="http://clientside.cnet.com/wiki/cnet-libraries/09-forms" target="_blank">Forms</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2008/08/28/cnet-mootools-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recompilar MAMP</title>
		<link>http://p0l0.binware.org/index.php/2008/08/11/recompilar-mamp/</link>
		<comments>http://p0l0.binware.org/index.php/2008/08/11/recompilar-mamp/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 11:50:41 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=275</guid>
		<description><![CDATA[El soporte de LDAP en MAMP 1.7.1 esta roto asi que tube que recompilar el PHP, lo cual me obligo a recompilar todas sus dependencias, pero como no encontre ninguna guia de como realizarlo correctamente, aqui esta como lo hice yo.
Lo primero es descargarse el codigo fuente proporcionado por la gente de MAMP, y su [...]]]></description>
			<content:encoded><![CDATA[<p>El soporte de LDAP en MAMP 1.7.1 esta roto asi que tube que recompilar el PHP, lo cual me obligo a recompilar todas sus dependencias, pero como no encontre ninguna guia de como realizarlo correctamente, aqui esta como lo hice yo.</p>
<p>Lo primero es descargarse el codigo fuente proporcionado por la gente de MAMP, y su version compilada.</p>
<p>Codigo fuente: <a href="http://download.living-e.com/MAMP/releases/1.7.1/MAMP_1.7.1_src.zip">MAMP 1.7.1 (src)</a></p>
<p>Version Intel: <a href="http://download.living-e.com/MAMP/releases/1.7.1/MAMP_1.7.1_intel_full.dmg">MAMP 1.7.1 (intel)</a></p>
<p>Version PPC: <a href="http://download.living-e.com/MAMP/releases/1.7.1/MAMP_1.7.1_ppc_full.dmg">MAMP 1.7.1 (ppc)</a></p>
<p>Una vez que tengamos esto, hay que instalar MAMP la version compilada en /Applications y asi ya tenemos toda la estructura correcta lista para solo recompilar lo necesario.</p>
<p>Ahora descomprimimos el codigo fuente y vamos compilando las diferentes librerias:</p>
<p><strong>CURL</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf curl-7.16.2.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> curl-7.16.2
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library
<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><strong>Freetype</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf freetype-2.3.4.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> freetype-2.3.4
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--configure</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>
<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><strong>Gettext</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf gettext-0.16.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> gettext-0.16.1
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library
<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><strong>IMAP (Parche para osx: <a href="http://p0l0.binware.org/wp-content/uploads/2008/08/imap-2006i-osx.patch">imap-2006i-osx.patch</a>)</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf imap-2006i.tar.Z
<span style="color: #7a0874; font-weight: bold;">cd</span> imap-2006i
<span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-p1</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt; imap-2006i-osx.patch
<span style="color: #c20cb9; font-weight: bold;">make</span> oxp
<span style="color: #c20cb9; font-weight: bold;">cp</span> c-client<span style="color: #000000; font-weight: bold;">/*</span>.h <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>imap-2006i<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> c-client<span style="color: #000000; font-weight: bold;">/*</span>.c <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>imap-2006i<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> c-client<span style="color: #000000; font-weight: bold;">/</span>c-client.a <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>imap-2006i<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libc-client.a</pre></div></div>

<p><strong>JPEG</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf jpegsrc.v6b.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> jpeg-6b
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">which</span> glibtool<span style="color: #000000; font-weight: bold;">`</span> .<span style="color: #000000; font-weight: bold;">/</span>libtool
<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><strong>libiconv</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libiconv-1.11.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> libiconv-<span style="color: #000000;">1.11</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library
<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><strong>LibIdn</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz libidn-0.6.14.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> libidn-0.6.14
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>
<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><strong>libmcrypt</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libmcrypt-2.5.8.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> libmcrypt-2.5.8
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>
<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><strong>libpng</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libpng-1.2.18.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> libpng-1.2.18
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library
<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><strong>libxml</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libxml2-2.6.29.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> libxml2-2.6.29
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library
<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><strong>libxst</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libxslt-1.1.21.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> libxslt-1.1.21
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-libxml-prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>
<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><strong>t1lib</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf t1lib-5.1.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> t1lib-5.1.1
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> without_doc
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><strong>libexpat</strong></p>
<p>Esta libreria es necesaria y no esta incluida, asi que hay que bajarla de<a title="libexpat" href="http://sourceforge.net/projects/expat/"> http://sourceforge.net/projects/expat/</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf expat-2.0.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> expat-2.0.1
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>
<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><strong>MySQL</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz mysql-5.0.41.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mysql-5.0.41
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-unix-socket-path</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>mysql.sock <span style="color: #660033;">--with-tcp-port</span>=<span style="color: #000000;">9999</span> <span style="color: #660033;">--localstatedir</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>db<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>
<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><strong>Apache2</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf httpd-2.0.59.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> httpd-2.0.59
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--sysconfdir</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>apache <span style="color: #660033;">--enable-nonportable-atomics</span> <span style="color: #660033;">--enable-so</span> <span style="color: #660033;">--enable-cgid</span> <span style="color: #660033;">--enable-auth-anon</span> <span style="color: #660033;">--enable-auth-dbm</span> <span style="color: #660033;">--enable-auth-digest</span> <span style="color: #660033;">--enable-file-cache</span> <span style="color: #660033;">--enable-echo</span> <span style="color: #660033;">--enable-charset-lite</span> <span style="color: #660033;">--enable-cache</span> <span style="color: #660033;">--enable-disk-cache</span> <span style="color: #660033;">--enable-mem-cache</span> <span style="color: #660033;">--enable-example</span> <span style="color: #660033;">--enable-ext-filter</span> <span style="color: #660033;">--enable-case-filter</span> <span style="color: #660033;">--enable-case-filter-in</span> <span style="color: #660033;">--enable-deflate</span> <span style="color: #660033;">--enable-mime-magic</span> <span style="color: #660033;">--enable-cern-meta</span> <span style="color: #660033;">--enable-expires</span> <span style="color: #660033;">--enable-headers</span> <span style="color: #660033;">--enable-usertrack</span> <span style="color: #660033;">--enable-unique-id</span> <span style="color: #660033;">--enable-proxy</span> <span style="color: #660033;">--enable-proxy-connect</span> <span style="color: #660033;">--enable-proxy-ftp</span> <span style="color: #660033;">--enable-proxy-http</span> <span style="color: #660033;">--enable-bucketeer</span> <span style="color: #660033;">--enable-http</span> <span style="color: #660033;">--enable-info</span> <span style="color: #660033;">--enable-cgid</span> <span style="color: #660033;">--enable-vhost-alias</span> <span style="color: #660033;">--enable-speling</span> <span style="color: #660033;">--enable-rewrite</span> <span style="color: #660033;">--enable-so</span> <span style="color: #660033;">--with-ssl</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--enable-dav</span> <span style="color: #660033;">--enable-dav-fs</span> <span style="color: #660033;">--enable-ssl</span>=shared <span style="color: #660033;">--enable-mods-shared</span>=most <span style="color: #660033;">--with-mpm</span>=prefork <span style="color: #660033;">--without-berkeley-db</span>
<span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

<p>Si al compilar nos aparece este error:</p>
<blockquote><p>endrecv.c:965:2: error: #error APR has detected sendfile on your system, but nobody has written a<br />
sendrecv.c:966:2: error: #error version of it for APR yet. To get past this, either write apr_sendfile<br />
sendrecv.c:967:2: error: #error or change APR_HAS_SENDFILE in apr.h to 0.</p></blockquote>
<p>Entonces tenemos que editar el fichero <strong><em>srclib/apr/include/apr.h </em><span style="font-weight: normal;">y cambiar la linea <em><strong>#define APR_HAS_SENDFILE 1</strong></em> por <strong><em>#define APR_HAS_SENDFILE 0</em></strong></span></strong></p>
<p>Y finalmente para instalar</p>

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

<p><strong>PHP</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf php-5.2.5.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> php-5.2.5
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-mysql</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-apxs2</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apxs <span style="color: #660033;">--with-gd</span> <span style="color: #660033;">--with-jpeg-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-png-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-zlib</span> <span style="color: #660033;">--with-freetype-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php5 <span style="color: #660033;">--exec-prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php5 <span style="color: #660033;">--sysconfdir</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>php5 <span style="color: #660033;">--with-soap</span> <span style="color: #660033;">--with-config-file-path</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>php5 <span style="color: #660033;">--enable-track-vars</span> <span style="color: #660033;">--enable-bcmath</span> <span style="color: #660033;">--enable-ftp</span> <span style="color: #660033;">--enable-gd-native-ttf</span> <span style="color: #660033;">--with-bz2</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--with-ldap</span> <span style="color: #660033;">--with-mysqli</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql_config <span style="color: #660033;">--with-sqlite</span> <span style="color: #660033;">--with-ttf</span> --with-t1<span style="color: #007800;">lib</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--enable-mbstring</span>=all <span style="color: #660033;">--with-curl</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--enable-dbx</span> <span style="color: #660033;">--enable-sockets</span> <span style="color: #660033;">--enable-bcmath</span> <span style="color: #660033;">--with-imap</span>=shared,<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>imap-2006i <span style="color: #660033;">--enable-soap</span> <span style="color: #660033;">--with-kerberos</span> <span style="color: #660033;">--enable-calendar</span> <span style="color: #660033;">--with-pgsql</span>=shared,<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>pg <span style="color: #660033;">--enable-dbase</span> <span style="color: #660033;">--enable-exif</span> <span style="color: #660033;">--with-libxml-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-gettext</span>=shared,<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-xsl</span>=<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-pdo-mysql</span>=shared,<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-pdo-pgsql</span>=shared,<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>pg <span style="color: #660033;">--with-mcrypt</span>=shared,<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library <span style="color: #660033;">--with-openssl</span> <span style="color: #660033;">--with-iconv</span>=shared,<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>MAMP<span style="color: #000000; font-weight: bold;">/</span>Library
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Y con esto ya tenemos recompilado el MAMP y listos para funcionar. En cualquiera de las opciones se puede aprovechar para cambiar opciones, añadir o quitar modules, etc...</p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2008/08/11/recompilar-mamp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Misexta.tv Download (Firefox Addon)</title>
		<link>http://p0l0.binware.org/index.php/2008/07/24/misextatv-download-firefox-addon/</link>
		<comments>http://p0l0.binware.org/index.php/2008/07/24/misextatv-download-firefox-addon/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 14:06:57 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[la sexta]]></category>
		<category><![CDATA[misexta.tv]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=263</guid>
		<description><![CDATA[Bueno, he estado mirando un poco como funciona el desarrollo de extensions para Firefox, y la verdad es que en developer.mozilla.org hay bastante informacion util. Por lo que aqui tengo la primera beta, que es capaz de descargar los videos en HD.
Las cosas que faltan por implementar son:

Descarga de videos cortos (descargar por medio del [...]]]></description>
			<content:encoded><![CDATA[<p>Bueno, he estado mirando un poco como funciona el desarrollo de extensions para Firefox, y la verdad es que en developer.mozilla.org hay bastante informacion util. Por lo que aqui tengo la primera beta, que es capaz de descargar los videos en HD.</p>
<p>Las cosas que faltan por implementar son:</p>
<ul>
<li>Descarga de videos cortos (descargar por medio del protocolo RTMP)</li>
<li>Deteccion de videos con partes, con opcion de descargar las diferentes partes</li>
<li>Limpieza de la lista de videos (timeout y numero maximo)</li>
<li>Y lo que surja...</li>
</ul>
<p>El funcionamiento es bastante sencillo, cuando instaleis la extension, tendreis un icono en la barra de estado:</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/statusbar-icon.png" rel="lightbox[263]"><img class="alignnone size-medium wp-image-265 aligncenter" title="statusbar-icon" src="http://p0l0.binware.org/wp-content/uploads/2008/07/statusbar-icon.png" alt="" width="99" height="55" /></a></div>
<p>Vais a la pagina de misexta.tv y elegis un video en HD480p:</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/hd480p.png" rel="lightbox[263]"><img class="alignnone size-medium wp-image-267 aligncenter" title="hd480p" src="http://p0l0.binware.org/wp-content/uploads/2008/07/hd480p-300x219.png" alt="" width="300" height="219" /></a></div>
<p>Una vez que le deis al play, si vais al icono de la barra de estado vereis que os aparece "HD Video":</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/downloadvideo.png" rel="lightbox[263]"><img class="alignnone size-medium wp-image-266 aligncenter" title="downloadvideo" src="http://p0l0.binware.org/wp-content/uploads/2008/07/downloadvideo.png" alt="" width="229" height="92" /></a></div>
<p>Le dais encima y os dejara guardar el video. Como aun no detecta las partes, debereis saltar de una parte a otra para que aparezcan en el menu (por ahora todos se llaman "HD Video", pero van en orden de arriba a abajo)</p>
<p>Podeis descargar el addon aqui (Solo Firefox 3.0.*):</p>
<ul>
<li><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misextatvdownload-01.xpi">Misexta.tv Download v.0.1</a></li>
<li><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misextatvdownload-02.xpi">Misexta.tv Download v.0.2</a>
<ul>
<li>Se ha añadido la opcion de autoupdate</li>
<li>Se han quitado los videos SD de la lista</li>
<li>Ahora aparece el nombre del fichero en vez de "HD Video"</li>
</ul>
</li>
</ul>
<p><strong>Actualizacion:</strong> Por cambios en misexta.tv el Addon ha dejado de funcionar, estoy trabajando en una nueva version que funcione correctamente.</p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2008/07/24/misextatv-download-firefox-addon/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>&#8216;La historia de las cosas&#8217; (The story of stuff)</title>
		<link>http://p0l0.binware.org/index.php/2008/07/18/la-historia-de-las-cosas-the-story-of-stuff/</link>
		<comments>http://p0l0.binware.org/index.php/2008/07/18/la-historia-de-las-cosas-the-story-of-stuff/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 18:01:09 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[calentamiento global]]></category>
		<category><![CDATA[critica]]></category>
		<category><![CDATA[industria]]></category>
		<category><![CDATA[informacion]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=262</guid>
		<description><![CDATA[Hoy mirando yonkis me he encontrado con este video super interesante. Merece mucho la pena verlo, la version doblada al español es esta:
 
 
 
]]></description>
			<content:encoded><![CDATA[<p>Hoy mirando <a href="http://www.yonkis.com" target="_new">yonkis</a> me he encontrado con este video super interesante. Merece mucho la pena verlo, la version doblada al español es esta:</p>
<p> </p>
<div style="text-align: center;"><embed id="VideoPlayback" style="width:400px;height:326px" allowFullScreen="true" src="http://video.google.com/googleplayer.swf?docid=-5645724531418649230&#038;hl=en&#038;fs=true" type="application/x-shockwave-flash"> </embed></div>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2008/07/18/la-historia-de-las-cosas-the-story-of-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AEAT+Firefox = &#8220;ha generado una firma no valida&#8221;</title>
		<link>http://p0l0.binware.org/index.php/2008/07/18/aeatfirefox-ha-generado-una-firma-no-valida/</link>
		<comments>http://p0l0.binware.org/index.php/2008/07/18/aeatfirefox-ha-generado-una-firma-no-valida/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 06:37:12 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[aeat]]></category>
		<category><![CDATA[certificado]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fnmt]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=258</guid>
		<description><![CDATA[Como cada trimestre, toca presentar las declaraciones del IVA, por lo que me decido a arrancar VMware para hacerlo desde windows como siempre, pero por alguna razon extraña, IE7 no me deja elegir el certificado, asi que decido probarlo con Firefox3 y cual es mi sorpresa al ver que ya puedo acceder sin problemas a [...]]]></description>
			<content:encoded><![CDATA[<p>Como cada trimestre, toca presentar las declaraciones del IVA, por lo que me decido a arrancar VMware para hacerlo desde windows como siempre, pero por alguna razon extraña, IE7 no me deja elegir el certificado, asi que decido probarlo con Firefox3 y cual es mi sorpresa al ver que ya puedo acceder sin problemas a las pantallas de presentacion de declaracion, pero cuando le doy a "FIRMAR Y ENVIAR", me sale un bonito mensaje que dice "ha genereado una firma no valida" y no me deja continuar.</p>
<p>Despues de buscar un poco por google me encuentro con <a href="http://www.reparacion-informatica.es/archives/520.html" target="_blank">este</a> articulo que explica como hacer funcionar el certificado en Linux con Firefox. Asi que me puse a mirarlo con Firefox3, el cual ya tiene el certificado de FNMT instalado.</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/aeat-fnmt_ca.png" rel="lightbox[258]"><img class="alignnone size-medium wp-image-261 aligncenter" title="FNMT CA" src="http://p0l0.binware.org/wp-content/uploads/2008/07/aeat-fnmt_ca-300x162.png" alt="" width="300" height="162" /></a></div>
<p>Asi que lo unico que necesitamos hacer es ir a <strong>about:config</strong> aceptar el mensaje de aviso que nos sale</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/aeat-about_config_warning.png" rel="lightbox[258]"><img class="alignnone size-medium wp-image-260 aligncenter" title="about:config Firefox3 warning" src="http://p0l0.binware.org/wp-content/uploads/2008/07/aeat-about_config_warning-300x87.png" alt="" width="300" height="87" /></a></div>
<p style="text-align: left;">Y buscar el string <strong>signed.applets.codebase_principal_support</strong> y dandole doble-click dejarlo en <strong>true</strong></p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/aeat-about_config.png" rel="lightbox[258]"><img class="alignnone size-medium wp-image-259 aligncenter" title="about:config" src="http://p0l0.binware.org/wp-content/uploads/2008/07/aeat-about_config-300x35.png" alt="" width="300" height="35" /></a></div>
<p style="text-align: left;">Con esto listo, simplemente reiniciamos Firefox y ya podemos empezar a presentar nuestras declaraciones sin tener que arrancar VMware ;o)</p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2008/07/18/aeatfirefox-ha-generado-una-firma-no-valida/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Descargar los videos de misexta.tv</title>
		<link>http://p0l0.binware.org/index.php/2008/07/04/descargar-los-videos-de-misextatv/</link>
		<comments>http://p0l0.binware.org/index.php/2008/07/04/descargar-los-videos-de-misextatv/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 08:20:21 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[sexta]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/?p=251</guid>
		<description><![CDATA[Cuando acabas hasta las narices que se cuelguen los videos desde misexta.tv porque las fantasticas lineas que tenemos en España no valen nada, aqui os pongo un metodo de como descargarse los ficheros flv y poder ver tranquilamente los videos en local.
Lo primero que necesitamos es:
- tcpdump (para capturar las peticiones HTTP)
- Orbit o cualquier [...]]]></description>
			<content:encoded><![CDATA[<p>Cuando acabas hasta las narices que se cuelguen los videos desde <a href="http://www.misexta.tv" target="_blank">misexta.tv</a> porque las fantasticas lineas que tenemos en España no valen nada, aqui os pongo un metodo de como descargarse los ficheros flv y poder ver tranquilamente los videos en local.</p>
<p>Lo primero que necesitamos es:</p>
<p>- <a href="http://www.tcpdump.org" target="_blank">tcpdump</a> (para capturar las peticiones HTTP)<br />
- <a href="http://www.orbitdownloader.com" target="_blank">Orbit</a> o cualquier otro programa para descargar FLV por el protocolo <a href="http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol" target="_blank">rtmp</a></p>
<p><strong>Metodo SD</strong></p>
<p>Una vez que tenemos estos programas, vamos a misexta.tv y elegimos el video que queremos descargar. Ejecutamos en una consola tcpdump (teneis que cambiar en el parametro '-i en0', el valor 'en0' por vuestra interfaz, en linux sera 'eth0' seguramente y en windows no se como va, pero seguro que por google se encuentra):</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-001.png" rel="lightbox[251]"><img class="alignnone size-medium wp-image-252 aligncenter" title="tcpdump" src="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-001-300x70.png" alt="" width="300" height="70" /></a></div>
<p>Y le damos play al video, y pause, lo justo para que se transfieran datos.</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-002.png" rel="lightbox[251]"><img class="alignnone size-medium wp-image-253 aligncenter" title="Misexta - video SD" src="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-002-300x252.png" alt="" width="300" height="252" /></a></div>
<p>Abrimos el fichero "captura" con un editor</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-003.png" rel="lightbox[251]"><img class="alignnone size-medium wp-image-254 aligncenter" title="Misexta - vi captura" src="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-003-300x103.png" alt="" width="300" height="103" /></a></div>
<p>y buscamos <em>cgi-bin</em>, y encontraremos algo parecido a:</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-004.png" rel="lightbox[251]"><img class="alignnone size-medium wp-image-255 aligncenter" title="Misexta - SD tcpdump" src="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-004-300x143.png" alt="" width="300" height="143" /></a></div>
<p>De aqui podemos ver que la peticion que se hace es:</p>
<blockquote><p>http://62.189.244.254/cgi-bin/m?ci=es-lasexta-dav&amp;tl=dav0-S%E9%20lo%20que%20hicisteis...%20Martes%208%20de%20julio%20bloque1SD&amp;si=rtmp%3A//fl.interoute.com/streamrt/%7Beaf7a24f-6a00-4707-8d5c-56f38f6cb4f1%7D/%7B9bd7cb2d-9140-4ede-86c6-64ab7769252a%7D/SLQH_08_07_08_02.flv&amp;cg=misexta-3X3-711-SD&amp;rp=http%3A//www.misexta.tv&amp;cc=1&amp;rnd=991605055</p></blockquote>
<p>Analizando esta peticion nos encontramos con:</p>
<blockquote><p>rtmp%3A//fl.interoute.com/streamrt/%7Beaf7a24f-6a00-4707-8d5c-56f38f6cb4f1%7D/%7B9bd7cb2d-9140-4ede-86c6-64ab7769252a%7D/SLQH_08_07_08_02.flv</p></blockquote>
<p>Y aqui tenemos la URL que desde la que podemos descargar el fichero FLV para luego verlo ofline tranquilamente.</p>
<blockquote><p>rtmp://fl.interoute.com/streamrt/{eaf7a24f-6a00-4707-8d5c-56f38f6cb4f1}/{9bd7cb2d-9140-4ede-86c6-64ab7769252a}/SLQH_01_07_08_02.flv</p></blockquote>
<p>Metodo <strong>HD </strong><strong>480p</strong></p>
<p>Para los videos en HD 480p, el metodo es similar, solo que esta vez elegimos el video HD 480p en vez de el SD.</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-005.png" rel="lightbox[251]"><img class="alignnone size-medium wp-image-256 aligncenter" title="Misexta - HD 480p" src="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-005-300x239.png" alt="" width="300" height="239" /></a></div>
<p>Una vez echa la captura miramos en el fichero de captura y buscamos <em>mp4 </em>hasta que encotraremos lo siguiente:</p>
<div style="text-align: center;"><a href="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-006.png" rel="lightbox[251]"><img class="alignnone size-medium wp-image-257 aligncenter" title="Misexta - HD 480p tcpdump" src="http://p0l0.binware.org/wp-content/uploads/2008/07/misexta-006-300x73.png" alt="" width="300" height="73" /></a></div>
<p>Aqui podemos ver la peticion a un fichero .mp4, que nos lo podemos descargar con wget o cualquier otro programa de descargas.</p>
<blockquote><p>
wget http://212.23.58.125/{eaf7a24f-6a00-4707-8d5c-56f38f6cb4f1}/{9bd7cb2d-9140-4ede-86c6-64ab7769252a}/SLQH_08_07_08_02_qtp.mp4
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2008/07/04/descargar-los-videos-de-misextatv/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
