<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" 
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" 
   xmlns:html="http://www.w3.org/1999/html" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
   <title>Baruch Even's blog</title>
   <link>http://baruch.ev-en.org/blog</link>
   <description>A geeks blog</description>
   <language>en</language>
   <copyright>Copyright 2004-2007 Baruch Even</copyright>
   <ttl>60</ttl>
   <pubDate>Mon, 25 Jun 2007 21:55 GMT</pubDate>
   <managingEditor>baruch@ev-en.org</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.2 8/16/2007</generator>
<item>
   <title>WebSec ASCII Markers</title>
   <guid isPermaLink="false">Dev/websec-ascii-marker</guid>
   <link>http://baruch.ev-en.org/blog/Dev/websec-ascii-marker.html</link>
   <description><![CDATA[
<p>
Joey <a href="http://www.infodrom.org/~joey/log/?200706232041">reported</a>
that websec failed him for reading modifications in web pages when reading the
generated mails in a text mail agent. I wanted to point out that websec has
ASCII marker support to highlight changes in text for this purpose exactly.
This feature was implemented by Javier M. Mora.
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Dev</category>
   <pubDate>Mon, 25 Jun 2007 21:55 GMT</pubDate>
</item>
<item>
   <title>The Easy Way to have ATI in Debian</title>
   <guid isPermaLink="false">Debian/The-Easy-Way-to-have-ATI-in-Debian</guid>
   <link>http://baruch.ev-en.org/blog/Debian/The-Easy-Way-to-have-ATI-in-Debian.html</link>
   <description><![CDATA[
<p>
Unfortunately I have an ATI display card in my laptop, it is a wide screen laptop and so far I used the 1024x768 resolution instead of the native 1280x768. Some girl (sorry, forgot your name and you're not in mugshots) prodded me to fix that since my screen looked pretty warped. Today I finally got to do it and install fglrx to get my native resolution working and boy, is it a change!
</p>

<p>
The ingredients for this recipe:
</p>
<ol>
  <li>A computer with ATI display driver</li>
  <li>Debian unstable (though testing and etch should work as well)</li>
  <li>A network connection</li>
</ol>

<p>Instructions:</p>
<ol>
  <li><tt>su -</tt></li>
  <li><tt>aptitude install fglrx-control fglrx-driver fglrx-driver-dev fglrx-kernel-src modula-assistant linux-headers-2.6-686</tt></li>
  <li><tt>m-a -t auto-install fglrx</tt></li>
  <li><tt>aticonfig -f --install</tt></li>
  <li>Restart X, you can do it with Ctrl-Alt-Backspace, or just restart the computer</li>
  <li>Enjoy the beautiful new look of your desktop!</li>
</ol>

<p>
If you are using an AMD machine replace the linux-headers-2.6-686 with linux-headers-2.6-k7.
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Debian</category>
   <pubDate>Tue, 19 Jun 2007 15:18 GMT</pubDate>
</item>
<item>
   <title>MSI S420 sound</title>
   <guid isPermaLink="false">Contribs/msi-s420-sound</guid>
   <link>http://baruch.ev-en.org/blog/Contribs/msi-s420-sound.html</link>
   <description><![CDATA[

<p>
A while ago I bought an MSI laptop, model S420. The sound didn't work but
normally I don't really need it anyway so it was never an important issue. A
few days ago I started using <a href="http://linuxpowertop.org/">powertop</a>
to understand why my laptop can live on battery for less than two hours. One
problem I have with powertop is that I don't get enough information on the
C-states of the CPU, they are controlled by the BIOS so I went to the MSI
website to hunt for a BIOS upgrade. During the course of this hunt I found an
old patch for sound drivers for other models of MSI laptops and in them I found
hints for my own sound card. Some guesswork and a single try and I found a
patch that makes the sound work me.
</p>

<p>
I didn't find an explanation or a changelog for the bios upgrades so I didn't try them yet but the patch to get the sound working is following. It is for kernel 2.6.22-rc2 but it should easily be adapted to other kernels, it's just a one-liner. The patch was accepted (in variation) into the ALSA repository and will probably show up in kernel 2.6.23.
</p>

<pre>
--- 2.6-rc2/sound/pci/hda/patch_realtek.c	2007-05-19 13:56:54.000000000 +0300
+++ 2.6.22-rc2/sound/pci/hda/patch_realtek.c	2007-05-25 00:42:42.000000000 +0300
@@ -6389,6 +6389,7 @@
 	SND_PCI_QUIRK(0x1462, 0x4314, "MSI", ALC883_TARGA_DIG),
 	SND_PCI_QUIRK(0x1462, 0x4319, "MSI", ALC883_TARGA_DIG),
 	SND_PCI_QUIRK(0x1462, 0x4324, "MSI", ALC883_TARGA_DIG),
+	SND_PCI_QUIRK(0x1462, 0x3729, "MSI", ALC883_TARGA_DIG),
 	SND_PCI_QUIRK(0x1462, 0xa422, "MSI", ALC883_TARGA_2ch_DIG),
 	SND_PCI_QUIRK(0x1025, 0, "Acer laptop", ALC883_ACER),
 	SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_MEDION),
</pre>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Contribs</category>
   <pubDate>Fri, 25 May 2007 17:07 GMT</pubDate>
</item>
<item>
   <title>KVM in Debian</title>
   <guid isPermaLink="false">Debian/kvm-in-debian</guid>
   <link>http://baruch.ev-en.org/blog/Debian/kvm-in-debian.html</link>
   <description><![CDATA[

<p>

<a href="http://kvm.sourceforge.net/">KVM</a> is a Kernel-based Virtual
Machine for Linux, it has a kernel module that enables a modified Qemu to use
the Intel VT extension for full virtualisation, with the benefit of making the
virtualisation very fast. In the future it will also support the SVM extension
of AMD.

</p>

<p>

It will be available in Debian once the ftp-masters clear the backlog, and
is currently available in <a href="http://people.debian.org/~baruch/kvm/">a
temporary location</a>. The manpage is missing but the instructions to get it
to work are:

</p>

<ul>
  <li>sudo apt-get install kvm kvm-source</li>
  <li>sudo m-a build kvm</li>
  <li>sudo m-a install kvm</li>
  <li>sudo modprobe kvm</li>
</ul>

<p>
At this stage you have KVM ready for usage, simply use the kvm program as if it was the Qemu program, to boot a Debian Live CD use: <tt>kvm -cdrom live.iso -boot d</tt>
</p>

<p>
In the future the KVM patches will be merged into both the kernel and Qemu and these packages will be gone, but for now, that's the easiest way to use KVM.
</p>

<p><b>Update:</b> KVM entered the archive, instructions above were updated.</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Debian</category>
   <pubDate>Sun, 19 Nov 2006 16:45 GMT</pubDate>
</item>
<item>
   <title>IDE Roundup</title>
   <guid isPermaLink="false">Dev/ide-roundup</guid>
   <link>http://baruch.ev-en.org/blog/Dev/ide-roundup.html</link>
   <description><![CDATA[
<p>
<a href="http://www.minds.may.ie/~dez/serendipity/">Des Traynor</a> made a very nice
<a href="http://www.minds.may.ie/~dez/serendipity/index.php?url=archives/97-Play-the-field,-see-what-IDEs-are-out-there.html">roundup of various IDEs and development environments</a>. These were collected from friends of his and it was quite a shock to find Notepad in there!
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Dev</category>
   <pubDate>Thu, 21 Sep 2006 05:31 GMT</pubDate>
</item>
<item>
   <title>The making of a Planet</title>
   <guid isPermaLink="false">Misc/the-making-of-a-planet</guid>
   <link>http://baruch.ev-en.org/blog/Misc/the-making-of-a-planet.html</link>
   <description><![CDATA[

<p>
<a href="http://planetplanet.org">Planets</a> are a fairly common method to aggregate blogs.
They are especially pervasive in the <acronym title="Free/Open-Source Software">FOSS</acronym>
world, with planets for
<a href="http://planet.Debian.org/">Debian</a>,
<a href="http://planet.Gnome.org/">Gnome</a>,
<a href="http://planet.KDE.org/">KDE</a>,
and many others.
</p>

<p>
I find planets as a useful resource for a community to give a single place for
the communication and to check for updates. The usual method of communication
in blogs is a reply in a post, the planet makes the replies come in the same
page for the reader with little context loss.
</p>

<p>
For this reason I'm also fond of setting up planets myself for those
communities that lack them, and so I setup planets for
<a href="http://planet.linux.org.il">FOSS-IL</a>  for Israeli blogs about FOSS
issues (mostly in Hebrew),
<a href="http://advogato.ev-en.org">Planet (former) Advogato</a> for former
Advogato bloggers and the latest one is
<a href="http://planetmicroisv.com/">Planet MicroISV</a> for MicroISVs.
</p>

<p>
I was <a
href="http://discuss.joelonsoftware.com/default.asp?biz.5.232958#discussTopic233513">asked</a>
to provide some (tutorial|help|something) on setting up a planet, and this
post is the answer to that request.
</p>

BREAK
<hr/>

<p>
The PlanetPlanet program is a very common RSS feed aggregator, it works with
most feeds and is fairly tolerant to non-standard-conforming feeds. It is also
relatively low maintenance, which is why I chose it for my aggregators. 
</p>

<h2>Prerequisites</h2>
<p>
The first thing you'll need is to make sure you have Python 2.2 or better
installed. If you're on a sane OS, you can just do <code>apt-get install
python2.3</code> otherwise you are left to fend for yourself. For the Windows
folks there is <a
href="http://www.activestate.com/Products/ActivePython/">ActivePython</a>.
</p>

<p>
Another would be prerequisite is <a
href="http://www.gnu.org/software/gnu-arch/>GNU Arch</a> or <a
href="http://bazaar.canonical.com/">Bazaar</a>, two implementations for the
<a
href="http://www.google.ie/search?q=distributed+revision+control">Distributed
Revision Control</a> algorithm which was pioneered in GNU Arch. Bazaar would
be more user friendly, but both
<acronym title="In My Not So Humble Opinion">IMNSHO</acronym> are horrendous
user-interface wise. Which is why I provide a <a
href="http://baruch.ev-en.org/files/planetplanet-2005-10-22.tar.gz">snapshot
of the latest revision</a> for your benefit.
</p>

<h2>Install</h2>

<p>
Installation would be fairly simple, just unpack the <a
href="http://baruch.ev-en.org/files/planetplanet-2005-10-22.tar.gz">tar.gz</a>
and it's installed, nothing else needs to be done, except configuring it.
</p>

<a
href="http://baruch.ev-en.org/files/planet-install/downloaded-and-extracted.png"><img
src="http://baruch.ev-en.org/files/planet-install/downloaded-and-extracted.png"/></a>

<p>
The snapshot I provided is just a raw dump of the arch repository, it is
useful as is since you can update the installation as needed by just updating
and merging with Arch/Bazaar. This will <b>not</b> be covered here. Too much
of a trouble for now, and the PlanetPlanet development is at the pace of a
snail carrying an elephant, don't expect updates in the near future.
</p>

<h2>Configure</h2>

<p>
I assume you have in mind the list of blogs you want to put on the planet. It
need not be comprehensive, a few blogs to start would be good enough. It's
trivial to add more as you go.
</p>

<p>
In the planet directory you should copy the <code>examples</code> directory to a new one,
say <code>myplanet</code>, copy the <code>output</code> directory to
<code>myplanet-output</code> and edit the <code>myplanet/config.ini</code> file.
</p>

<a
href="http://baruch.ev-en.org/files/planet-install/copied.png"><img
src="http://baruch.ev-en.org/files/planet-install/copied.png"/></a>

<p>
At the minimum you should change the following variables:
<ul>
 <li>name &ndash; The name of your planet</li>
 <li>link &ndash; The URL where you planet will live, used inside the feeds
                  the planet exports</li>
 <li>owner_name and owner_email &ndash; obvious isn't it?</li>
 <li>output_dir &ndash; that should be <code>myplanet-output</code> according to
                  the instructions above</li>
 <li>template_files &ndash; change and replace <code>examples</code> with
                  <code>myplanet</code></li>
</ul>
</p>

<p>
The next stage would be to replace the existing blog listed in the config.ini
file with your own list. The example is there and is trivial to follow, the
entry for a blog looks like:
<pre>
[http://baruch.ev-en.org/blog/index.rss2]
name = Baruch Even
</pre>
</p>
<p>
Where the feed URL is in square brackets and the name of the blog is the name.
There are various games that are possible with the templates but we'll ignore
them for now and let you learn them from the examples provided by the authors.
</p>

<a
href="http://baruch.ev-en.org/files/planet-install/config.png"><img
src="http://baruch.ev-en.org/files/planet-install/config.png"/></a>

<p>
The next stage is just to run the planet on the new files, we will use the
defaults for the rest.
<pre>
python planet.py myplanet/config.ini
</pre>
</p>
<p>
The planet will work for a while, churn out various uninteresting messages and
generate the files we asked it for in the <code>myplanet-output</code>. You
can now inspect the files in the output directory, load them in a browser and
enjoy.
</p>

<a
href="http://baruch.ev-en.org/files/planet-install/browser.png"><img
src="http://baruch.ev-en.org/files/planet-install/browser.png"/></a>

<h2>Tweaks</h2>

<p>
So you haven't left yet? Want some more info?
</p>

<p>
One obvious question is now that we have the files, how do we serve them to
the world so everyone can enjoy our creation? First, you should ask yourself
if the world really cares... you do, ah?! OK. If the world cares enough it
will find a way to show you how to do it. Since it depends on your OS, web
server and various configurations, I can't help you on this. This is left as
an exercise to the reader.
</p>

<p>
The configuration in <code>config.ini</code> should be fairly obvious and is
well commented. The look of the site depends on two factors, the HTML that is
generated, which is a clean HTML version 4.01 and has all formatting
controlled by the CSS file which was kindly provided in the outputs directory.
</p>

<p>
The templating code is very simple, it has two operations, TMPL_LOOP and
TMPL_VAR. TMPL_LOOP will loop over a variable, usually the Channels variable.
And the TMPL_VAR operator will emit that variable, there are the global vars
and the loop vars. The best way to figure it out is to use the existing
templates as a building block, they are fairly easy to understand.
</p>

<p>
Enjoy your new Planet!
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Misc</category>
   <pubDate>Wed, 19 Jul 2006 02:31 GMT</pubDate>
</item>
<item>
   <title>Head is up</title>
   <guid isPermaLink="false">Debian/heads-up</guid>
   <link>http://baruch.ev-en.org/blog/Debian/heads-up.html</link>
   <description><![CDATA[
<p>
My graphical skills are known to be poor but I still managed to use the gimp to create a hackergotchi for myself out of the ugly image from my
<a href="http://hamilton.ie/baruch_even.htm">student web page</a>. The hackergotchi was quickly added to the Debian Planet, before I regret that move.
</p>

<p>
I probably should raid my digital photos for a better picture, if a skilled
hackergotchi maker is interested in making something more palatable I'd be
happy to privately offer some other possible pictures for the conversion.
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Debian</category>
   <pubDate>Wed, 07 Jun 2006 16:42 GMT</pubDate>
</item>
<item>
   <title>Debian in Google Summer of Code 2006</title>
   <guid isPermaLink="false">Debian/google-summer-of-code-2006-projects-selected</guid>
   <link>http://baruch.ev-en.org/blog/Debian/google-summer-of-code-2006-projects-selected.html</link>
   <description><![CDATA[
<p>
Congratulations to all whose projects were accepted, Debian received 60
eligible proposals, many of those were great projects which we would have loved
to accept but we only had 10 slots that are paid for by Google so the
competition was tough.
</p>
<p>
The accepted projects are:
</p>
<ul>
	<li>"Improve the boot system" by Carlos Villegas</li>
	<li>"Translation Coordination System" by Gintautas Miliauskas</li>
	<li>"BTS GUI front-end" by Philipp Kern</li>
	<li>"debian-cd-ng" by Carlos Parra Camargo</li>
	<li">Debtags, using AI classifiers for automating the tagging of Debian packages" by Alex de Landgraaf</li>
	<li>"Distribution wide-tracker tools (DWTT) and collaborative repository of meta-informations about source packages (CRMI)" by Arnaud Fontaine</li>
	<li>"Automation of Debian Based live-cd creation process" by Robert Pickel</li>
	<li>"Improve Britney, the scripts used to update testing" by FABIO TRANCHITELLA </li>
	<li>"Debian installer on Debian GNU/Hurd" by Matheus Eduardo B. Morais </li>
	<li>"BitTorrent Extensions" by Matthew Wronka</li>
</ul>

<p>
All the accepted projects received email to them and their mentor, if you are a student whose project wasn't accepted, we'd still be happy if you will do the project even without the funding, if you need a helping hand or a mentor we will surely be happy to help you out, contact me at <a href="mailto:baruch@debian.org">baruch@debian.org</a>.
</p>

<p>
The plan is that students who have a blog or setup one for the Summer of Code will be added to <a href="http://planet.debian.org/">Planet Debian</a> so everyone can follow their progress on their quest to help Debian improve.
</p>

<p>
Cheers and thanks to everyone who helped make this happen!<br/>
Baruch Even<br/>
Debian SoC coordinator
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Debian</category>
   <pubDate>Wed, 24 May 2006 13:57 GMT</pubDate>
</item>
<item>
   <title>Debian in the Google Summer of Code 2006</title>
   <guid isPermaLink="false">Debian/google-summer-of-code-2006</guid>
   <link>http://baruch.ev-en.org/blog/Debian/google-summer-of-code-2006.html</link>
   <description><![CDATA[
<p>
Debian is 
<a href="http://code.google.com/soc/debian/about.html">officially</a>
in the Google Summer of Code 2006 program, we already
<a href="http://wiki.debian.org/SummerOfCode2006">have some projects</a>. If you have more ideas/requests add them to the
<a href="http://wiki.debian.org/SummerOfCode2006">wiki</a>, if you are willing to be a mentor the details were sent to -private.
</p>

<p>
If you are a student and have a project that you want to do for Debian, add it to the wiki.
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Debian</category>
   <pubDate>Wed, 19 Apr 2006 14:49 GMT</pubDate>
</item>
<item>
   <title>Vi/ViM tutorial</title>
   <guid isPermaLink="false">Misc/vim-tutorial</guid>
   <link>http://baruch.ev-en.org/blog/Misc/vim-tutorial.html</link>
   <description><![CDATA[
<p>
A cool <a
href="http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html">Vi/ViM
tutorial</a> is available from a developer of a
<a href="http://www.viemu.com/index.html">Vi plugin for Visual Studio</a>.
I don't know about the plugin, but the tutorial is very nicely done and the resulting cheatsheet graphics is excellent!
</p>

]]></description>
   <category domain="http://baruch.ev-en.org/blog">/Misc</category>
   <pubDate>Wed, 29 Mar 2006 13:10 GMT</pubDate>
</item>
</channel>
</rss>
