<?xml version="1.0" encoding="UTF-8"?>
<!-- name="generator" content="pyblosxom/1.4.1 7/27/2007" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
<channel>
<title>Блогчетање   </title>
<link>https://danilo.segan.org/blog</link>
<description>Данилово блогче</description>
<language>en</language>
<item>
  <title>A failure?</title>
  <link>https://danilo.segan.org/blog/razvoj/dark-patents</link>
  <description><![CDATA[
<a href="http://wiki.ffii.org/Cons050307En">Software patents in EU.</a>

]]></description>
</item>

<item>
  <title>Accept-language and PHP</title>
  <link>https://danilo.segan.org/blog/razvoj/php-accept-language</link>
  <description><![CDATA[
<p>
<a href="http://primates.ximian.com/~dobey/index.php?date=2004-11-27&month=11&year=2004">Rodney</a>,
below is a function I use to test if visitor prefers Croatian (hr)
over Serbian (sr) when she visits <a
href="http://Prevod.org/">Prevod.org</a> web pages to provide Latin
transcription of the pages.</p>

<pre>
function header_language_compare($default = 'sr', $comparewith = 'hr') {
  $languages=split(',',$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
  $qdefault=0;
  $qcompare=0;
  foreach ($languages as $lang) {
    if (ereg("^$default$",$lang,$regs)) {
      $qdefault=1;
    } elseif (ereg("^$comparewith$",$lang,$regs)) {
      $qcompare=1;
    } elseif (ereg("^$default;[ ]*q=([0-9.]+)$",$lang,$regs)) {
      $qdefault=$regs[1];
    } elseif (ereg("^$comparewith;[ ]*q=([0-9.]+)$",$lang,$regs)) {
      $qcompare=$regs[1];
    }
  }

  if ($qcompare>$qdefault) return 1;
  else return 0;
}
</pre>

<p>If "hr" is more desireable than "sr" (i.e. there's no "sr" at all,
or it has lower "quality" than "hr") according to "Accept-Language"
header, this function will return 1, otherwise 0.  You might want to
use something similar to compare 'en' and 'sq', letting most people
default to 'en' for your blog.</p>

]]></description>
</item>

<item>
  <title>Fancy quoting from Gnus</title>
  <link>https://danilo.segan.org/blog/razvoj/gnus-attribution</link>
  <description><![CDATA[
<p><a href="http://kvota.net/hacks/dotgnus">Here</a>'s my fancy quoting function for <a href="http://gnus.org">Gnus</a>.</p>
<p>It supports two languages (Serbian/Serbian transcription in Latin
  script and English), and I use the "current-group-language" as a
  group parameter to set the language per-group (so, for instance,
  gnom@prevod,org has it set to "sr", lugy@linux,org,yu set to
  "sr@Latn", and Gnome lists to "en").</p>
<p>As you might notice, I'm using local time for quoting, which makes
  sense since I don't want to put a timezone in the time.  Also, it
  makes it easier to see how much time difference there was between
  a post and an answer (I find relative time measurements much easier,
  others may disagree ;).</p>
<p>So, <strong>no</strong> need to worry about quoting any more.</p>

]]></description>
</item>

<item>
  <title>Version control systems</title>
  <link>https://danilo.segan.org/blog/razvoj/version-control-systems</link>
  <description><![CDATA[
<p>Take a look at <a href="http://www.dwheeler.com/essays/scm.html">this</a> comparison of basic features between <a href="http://www.nongnu.org/cvs/">CVS</a> (mostly as a reference point, it's not explained — it's assumed that reader is familiar with it), <a href="https://subversion.apache.org/">Subversion</a> and <a href="https://www.gnu.org/software/gnu-arch/">GNU arch</a>.</p><p>
And it comes down to: <strong>use <a href="https://www.gnu.org/software/gnu-arch/">GNU Arch</a></strong>.</p>

<p><strong>Update on 2016-10-05:</strong> fix links (reported by Marilyn Shaw—thanks!)</p>


]]></description>
</item>

</channel>
</rss>
