<?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>Jkx@home &#187; Web</title>
	<atom:link href="http://www.larsen-b.com/topics/web/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Sat, 21 Aug 2010 14:29:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DivShare automatic upload script (with twill)</title>
		<link>http://www.larsen-b.com/Article/249.html</link>
		<comments>http://www.larsen-b.com/Article/249.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[DivShare is the latest share website a la mode ;) I started to use it quickly, and like it a lot. You can upload files really fast, and without any loging or password. It sound usefull no ?
The only issue is that you need a web browser on the desk, and waste some time to [...]]]></description>
			<content:encoded><![CDATA[<p><a class="reference" href="http://www.divshare.com">DivShare</a> is the latest share website a la mode ;) I started to use it quickly, and like it a lot. You can upload files really fast, and without any loging or password. It sound usefull no ?</p>
<p>The only issue is that you need a web browser on the desk, and waste some time to find the file. We can do a lot of better with command line no ?</p>
<p>So, I decided to use <a class="reference" href="http://twill.idyll.org/">Twill</a> to build a small tool to do the automatic-login, and file upload. (You can use anonymous login too, simply add <em>-a</em> to the command line)</p>
<p>Of course, a little example is better no ;)</p>
<pre class="literal-block">
jkx&#64;localhost /tmp&gt; divshare.py ./divshare.py
=[ DivShare uploader script ]=
   * Already logged
http://www.divshare.com/download/21679-c72
</pre>
<p>You can upload up to 5 files at one time, and on course you can script it .. (everybody love find ?)</p>
<p>In the way of, eating it&#8217;s own dog food, I decided to host the script <a class="reference" href="http://www.divshare.com/download/21679-c72">divshare.py</a> on<br />
<a class="reference" href="http://www.divshare.com">DivShare</a> :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/249.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Firefox 2.0 on Debian</title>
		<link>http://www.larsen-b.com/Article/242.html</link>
		<comments>http://www.larsen-b.com/Article/242.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As everybody knows the mozilla team just released the latest version of Firefox (ver: 2.0). This will take a little time until, it will fall in the Debian. But you can find an optimized build for here called Swiftfox in debian package. So let&#8217;s go ;)
And last, but not least the optimized version, go quite [...]]]></description>
			<content:encoded><![CDATA[<p>As everybody knows the mozilla team just released the latest version of <a class="reference" href="http://www.mozilla.com/en-US/">Firefox</a> (ver: 2.0). This will take a little time until, it will fall in the <a class="reference" href="http://www.debian.org/">Debian</a>. But you can find an optimized build for here called <a class="reference" href="http://getswiftfox.com/debian.htm">Swiftfox</a> in debian package. So let&#8217;s go ;)</p>
<p>And last, but not least the optimized version, go quite really fast ;)</p>
<p><strong>Enjoy</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/242.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exalead beta test</title>
		<link>http://www.larsen-b.com/Article/234.html</link>
		<comments>http://www.larsen-b.com/Article/234.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;ve selected to beta-test the latest Exalead web search tool. The previous version, isn&#8217;t very user friendly (lot of jscript and colors). This beta looks really well. I like the simple webpage, and the nested search is really cool, and usefull.
The only lack (for me) right now is the orthograph checker &#8230; perhaps for the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve selected to beta-test the latest <a class="reference" href="http://preview.exalead.fr/">Exalead</a> web search tool. The previous version, isn&#8217;t very user friendly (lot of jscript and colors). This beta looks really well. I like the simple webpage, and the nested search is really cool, and usefull.</p>
<p>The only lack (for me) right now is the orthograph checker &#8230; perhaps for the next step ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/234.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Howto recover MoinMoin password</title>
		<link>http://www.larsen-b.com/Article/198.html</link>
		<comments>http://www.larsen-b.com/Article/198.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I just forget my moinmoin password.. loosely i&#8217;m .. Ok to change it:


add a user w/ a new login/password.
just edit the old login account file (in users/)
change the password w/ the SHA key of the new user
login :)


]]></description>
			<content:encoded><![CDATA[<p>I just forget my moinmoin password.. loosely i&#8217;m .. Ok to change it:</p>
<blockquote>
<ul class="simple">
<li>add a user w/ a new login/password.</li>
<li>just edit the old login account file (in users/)</li>
<li>change the password w/ the SHA key of the new user</li>
<li>login :)</li>
</ul>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/198.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Choosing a webmail</title>
		<link>http://www.larsen-b.com/Article/126.html</link>
		<comments>http://www.larsen-b.com/Article/126.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[On this dedicated host, i&#8217;m looking for a webmail. There is a couple of system right now:

IMP[1]
Squirrelmail[2]
IlohaMail[3]

Let&#8217;s give them a try. After a little fight w/ horde i discovered that IMP is really hard to install, and some people say it&#8217;s a cpu ogre. Squirrelmail is really easy to install, and works quit fine with [...]]]></description>
			<content:encoded><![CDATA[<p>On this dedicated host, i&#8217;m looking for a webmail. There is a couple of system right now:</p>
<ul class="simple">
<li>IMP[1]</li>
<li>Squirrelmail[2]</li>
<li>IlohaMail[3]</li>
</ul>
<p>Let&#8217;s give them a try. After a little fight w/ horde i discovered that IMP is really hard to install, and some people say it&#8217;s a cpu ogre. Squirrelmail is really easy to install, and works quit fine with courier-imap. The only trouble is that themes are really awfull, and pages load slowly ..</p>
<p>Last week i decided to test IlohaMail and it&#8217;s really what i&#8217;m looking for. Despite it doesn&#8217;t have advanced theming, the look&amp;feel is fine, and pages are fast to load.<br />
One feature i really like: &#8216;identities switching&#8217;</p>
<p>Everybody likes screenshot ? :)</p>
<p><img alt="http://jkx.larsen-b.com/photos/blog/ilohamail.sized.jpg" src="http://jkx.larsen-b.com/photos/blog/ilohamail.sized.jpg" /></p>
<ul class="simple">
<li>[1] IMP: <a class="reference" href="http://www.horde.org/imp/">http://www.horde.org/imp/</a></li>
<li>[2] IlohaMail: <a class="reference" href="http://ilohamail.org/">http://ilohamail.org/</a></li>
<li>[3] Squirrelmail: <a class="reference" href="http://squirrelmail.org/">http://squirrelmail.org/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/126.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>moving resPyre player</title>
		<link>http://www.larsen-b.com/Article/111.html</link>
		<comments>http://www.larsen-b.com/Article/111.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I spent about 1 hours to rebuild the resPyre website. Now it&#8217;s an old fashion plain html (despite it use ZPT and reST to buld them.
]]></description>
			<content:encoded><![CDATA[<p>I spent about 1 hours to rebuild the <a class="reference" href="http://www.resPyre.org">resPyre</a> website. Now it&#8217;s an old fashion plain html (despite it use ZPT and reST to buld them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/111.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Supybot &amp; pisg</title>
		<link>http://www.larsen-b.com/Article/101.html</link>
		<comments>http://www.larsen-b.com/Article/101.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Perl is back ? :)
In a previous life, i used Perl for a while. So tonight when i found that &#60;a href=http://pisg.sourceforge.net/&#62;pisg&#60;/a&#62; doesn&#8217;t support Supybot log file, i decided to give it a look. To adapt it, it&#8217;s only a matter of regex. Beside i&#8217;m not a regex guru, i managed to make it work [...]]]></description>
			<content:encoded><![CDATA[<p>Perl is back ? :)<br />
In a previous life, i used Perl for a while. So tonight when i found that &lt;a href=http://pisg.sourceforge.net/&gt;pisg&lt;/a&gt; doesn&#8217;t support Supybot log file, i decided to give it a look. To adapt it, it&#8217;s only a matter of regex. Beside i&#8217;m not a regex guru, i managed to make it work without too much pain so :</p>
<ul class="simple">
<li>feel free to download <a class="reference" href="http://larsen-b.com/~ircbot/supy.pm">http://larsen-b.com/~ircbot/supy.pm</a>, i wrote to add supy log format to pisg.</li>
<li>and check out <a class="reference" href="http://larsen-b.com/~ircbot/">http://larsen-b.com/~ircbot/</a>&gt; #finix ircstat :)</li>
</ul>
<p>&#8211; Enjoy perl ? not really regex yeah !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/101.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>P2P filesystem</title>
		<link>http://www.larsen-b.com/Article/96.html</link>
		<comments>http://www.larsen-b.com/Article/96.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Yesterday i dreamed about a P2P filesystem. I found AVFS, a virtual file system, that enable the use of normal file like .tar.gz as normal file system. You can cd in and edit files like they are on the fs. And now i&#8217; wondering how it will be to use bitorent and a Fuse python [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday i dreamed about a P2P filesystem. I found <a class="reference" href="href=http://www.inf.bme.hu/~mszeredi/avfs/">AVFS</a>, a virtual file system, that enable the use of normal file like .tar.gz as normal file system. You can cd in and edit files like they are on the fs. And now i&#8217; wondering how it will be to use bitorent and a Fuse python binding (fuse is a part of AVFS), to do something like this. At Finix (french Lug), there is a some community and sharing file between us is a bit paintfull. We need to put it somewhere and send a email over the list, as files are usually big (mainly photos collections), we can&#8217;t put it on ADSL. (making a host unreachable to since the 30 members download the file is not a good way. And doing something like cd /mnt/finix/ to access the shared space will be really great. Of course this won&#8217;t work for M$ users but we are a Lug so we don&#8217;t use M$ :)</p>
<p>Of course we can to this w/ python-LUFS to, but i find fuse more stable and easy to use .. so anybody want to give it a try ? Is there some cheap bounties (i don&#8217;t have a lot of bulks, but i can pay a little for the fuse python binding..)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/96.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cheap python hosting</title>
		<link>http://www.larsen-b.com/Article/95.html</link>
		<comments>http://www.larsen-b.com/Article/95.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[So now, it get to much hits to keep this website on my ADSL line. I don&#8217;t want to block users while i&#8217;m downloading files (have you try the last Unreal Tournament ?) with bitorent. As i&#8217;m searching for something cheap, and enable to host some python (and w/ ssh acces will be wonderfull) i [...]]]></description>
			<content:encoded><![CDATA[<p>So now, it get to much hits to keep this website on my ADSL line. I don&#8217;t want to block users while i&#8217;m downloading files (have you try the last Unreal Tournament ?) with bitorent. As i&#8217;m searching for something cheap, and enable to host some python (and w/ ssh acces will be wonderfull) i run into trouble. There is a lot hoster in the place, but having python is another thing. And look for webware is really a pitty. So i decided to rent a dedicated server, but this isn&#8217;t really cheap. After looking on other weblogs i discover that some of you use &#8216;a virtula server&#8217;. This things is just a User Mode Linux that run on a remote host, so can have root access do want you want without to much pain (no install fee, not so expensive..). So let&#8217;s go .. I have a lot os things to put on the new server, but it has a good bandwith and cost only 15Euro / months for a 128Mo ram / 4 Go disk space. Alinea is not ready for the migration, but  i guess i will do that quikly ..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/95.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>ZPT metal:use-macro: the un-natural way</title>
		<link>http://www.larsen-b.com/Article/94.html</link>
		<comments>http://www.larsen-b.com/Article/94.html#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As i&#8217;m looking for a way to build page by &#8216;piece&#8217; in Zope Page Templates, macros come to my mind. But macros are usually used with the &#8217;slot&#8217; behaviour. This is really a nice design, but it&#8217;s too hard to maintain for a small app like, i wan to write.
Let&#8217;s take a example:

&#60;html metal:use-macro=&#34;here/main_template/macros/main&#34;&#62;
 &#60;body&#62;
 [...]]]></description>
			<content:encoded><![CDATA[<p>As i&#8217;m looking for a way to build page by &#8216;piece&#8217; in Zope Page Templates, macros come to my mind. But macros are usually used with the &#8217;slot&#8217; behaviour. This is really a nice design, but it&#8217;s too hard to maintain for a small app like, i wan to write.<br />
Let&#8217;s take a example:</p>
<pre>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">html</font> <font color="#2040a0">metal:use-macro=</font><font color="#008000">&quot;here/main_template/macros/main&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
 <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">body</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
   <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">span</font> <font color="#2040a0">metal:fill-slot=</font><font color="#008000">&quot;content&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
   This is the content ..
   <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/span</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/body</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/html</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
</pre>
<p>This will call the main_template page template for the general look and feel, and simply insert the &#8217;slot&#8217; content in, at the rendering call. </p>
<p>So if you have all pages w/ the same layout this can be really a simple way to do this. </p>
<p>But if you want to have a lot a different layout in the website, this can give you some headhache, because you will need to write a lot of template and fill slot in. </p>
<p>Another way to do this is to call a PT in another one:</p>
<pre>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">span</font> <font color="#2040a0">tal:replace=</font><font color="#008000">&quot;here/templates/menu&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font> menu go here<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/span</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
</pre>
<p>This is really more easily to build pages with different layout, but we need to understand how it works. It will __call__ the rendering on all parts of the template, so you can heat a lot of cpu with that. In a previous review, i discover that Nuxeo CPS use this kind of integration, and the results are really bad: calling 15 times pt.render() in a single page give me 5 seconds to render it. </p>
<p>After a little talk with other project developpers i went to the third way, the un-natural one, but the one that is simple and give me good performance too.<br />
The main idea is to use the macros to build to parts of the page and to include them at the rendering call. (think as a include() in php).<br />
I put all the parts in a file slots_template.pt </p>
<pre>
<font color="#444444">&lt;!-- Banner --&gt;</font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">div</font> <font color="#2040a0">metal:define-macro=</font><font color="#008000">&quot;banner&quot;</font> <font color="#2040a0">id=</font><font color="#008000">&quot;banner&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
 <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">div</font> <font color="#2040a0">class=</font><font color="#008000">&quot;site_name&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
  <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">a</font> <font color="#2040a0">href=#</font> <font color="#2040a0">tal:attributes=</font><font color="#008000">&quot;href config/site_url&quot;</font> <font color="#2040a0">tal:content=</font><font color="#008000">&quot;config/site_name&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>Site Name<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/a</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
 <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/div</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/div</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#444444">&lt;!-- side --&gt;</font>  ....
</pre>
<p>And not to include it in a page: i simply call </p>
<pre>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">div</font> <font color="#2040a0">metal:use-macro=</font><font color="#008000">&quot;here/slots/macros/banner&quot;</font> <font color="#2040a0">/</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
</pre>
<p>So now i can build page w/ only a couple of macros call, and too much pain. There is a drawback of course, you can&#8217;t call in slots methods that the current page don&#8217;t know. so writing thrue slot can be included in a page without knowing the page context (like in method 2) but this isn&#8217;t a big deal, and you can simply use a aq_parent to do that. ( or play w/ getattr ) </p>
<p>Importante note: I use this stuff in Webware, but in Zope you can do the same things.. the major difference is that Zope have aq_parent and can cache (without any code) the pt.render() so second way can be use without too much drawback.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/94.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
