<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: debian]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=debian</link>
<description></description>
<pubDate>Sat, 05 Sep 2009 13:29:16 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[DNS-323]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?dns_323</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: debian, hardware, howto</div><hr/><div class="wiki">
<p>
D-Link DNS-323 network attached storage</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#overview">Dobrica Pavlinušić's random unstructured stuff (Overview)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Overview} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#raid">Dobrica Pavlinušić's random unstructured stuff (RAID)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] RAID} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#debian">Dobrica Pavlinušić's random unstructured stuff (Debian)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Debian} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#2_6_26_2_orion5x">Dobrica Pavlinušić's random unstructured stuff (2.6.26-2-orion5x)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] 2.6.26-=2-=orion5x} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#raid0">Dobrica Pavlinušić's random unstructured stuff (raid0)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] raid0} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#2_6_30">Dobrica Pavlinušić's random unstructured stuff (2.6.30)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] 2.6.30} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#updates">Dobrica Pavlinušić's random unstructured stuff (updates)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] updates} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="overview">Overview</h1>
<span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/dmesg.txt?action=attachments_download;page_name=dns_323;id=20090905093846-0-5361">dmesg.txt</a><!-- wiki: {file: dmesg.txt} --></span><br /><br /><pre>
dlink-DFDADE:~# uname -a
Linux dlink-DFDADE 2.6.12.6-arm1 #30 Mon Aug 18 14:19:14 CST 2008 armv5tejl GNU/Linux

dlink-DFDADE:~# free
            total      used      free    shared   buffers    cached
Mem:        61904     54808      7096         0     11824     30592
-/+ buffers/cache:     12392     49512
Swap:     1060208         0   1060208

dlink-DFDADE:~# cat /proc/cpuinfo 
Processor      : ARM926EJ-Sid(wb) rev 0 (v5l)
BogoMIPS       : 331.77
Features       : swp half thumb fastmult edsp java 
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant    : 0x0
CPU part       : 0x926
CPU revision   : 0
Cache type     : write-back
Cache clean    : cp15 c7 ops
Cache lockdown : format C
Cache format   : Harvard
I size         : 32768
I assoc        : 1
I line length  : 32
I sets         : 1024
D size         : 32768
D assoc        : 1
D line length  : 32
D sets         : 1024

Hardware       : MV-88fxx81
Revision       : 0000
Serial         : 0000000000000000
</pre>
<br /><h1 id="raid">RAID</h1>
<pre>
Personalities : [linear] [raid0] [raid1] 
md0 : active raid0 sda2[0] sdb2[1]
      2925532672 blocks 64k chunks
      
unused devices: &lt;none&gt;
dlink-DFDADE:~# hdparm -tT /dev/sda /dev/sdb /dev/md0

/dev/sda:
 Timing cached reads:   210 MB in  2.01 seconds = 104.48 MB/sec
 Timing buffered disk reads:   72 MB in  3.00 seconds =  24.00 MB/sec

/dev/sdb:
 Timing cached reads:   212 MB in  2.01 seconds = 105.47 MB/sec
 Timing buffered disk reads:  104 MB in  3.03 seconds =  34.32 MB/sec

/dev/md0:
 Timing cached reads:   208 MB in  2.01 seconds = 103.48 MB/sec
 BLKGETSIZE failed: File too large

dlink-DFDADE:~# dd_rescue /dev/sda /dev/null
dd_rescue: (info): ipos:   1044480.0k, opos:   1044480.0k, xferd:   1044480.0k
                   errs:      0, errxfer:         0.0k, succxfer:   1044480.0k
             +curr.rate:    37169kB/s, avg.rate:    32123kB/s, avg.load: 60.7%

dlink-DFDADE:~# dd_rescue /dev/md0 /dev/null
dd_rescue: (info): ipos:    729536.0k, opos:    729536.0k, xferd:    729536.0k
                   errs:      0, errxfer:         0.0k, succxfer:    729536.0k
             +curr.rate:    37176kB/s, avg.rate:    37502kB/s, avg.load: 76.5%
</pre>
<br /><h1 id="debian">Debian</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.cyrius.com/debian/orion/d-link/dns-323/install.html">http://www.cyrius.com/debian/orion/d-link/dns-323/install.html</a></li>
</ul>
<h2 id="2_6_26_2_orion5x">2.6.26-2-orion5x</h2>
<h3 id="raid0">raid0</h3>
<pre>
Linux dlink-DFDADE 2.6.26-2-orion5x #1 Thu Aug 20 05:04:03 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid6] [raid5] [raid4] [raid0] 
md1 : active raid0 dm-1[1] dm-0[0]
      2097024 blocks 64k chunks
      
md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]
      
unused devices: &lt;none&gt;

/dev/sda:
 Timing cached reads:   212 MB in  2.01 seconds = 105.39 MB/sec
 Timing buffered disk reads:   72 MB in  3.05 seconds =  23.58 MB/sec

/dev/sdb:
 Timing cached reads:   218 MB in  2.01 seconds = 108.26 MB/sec
 Timing buffered disk reads:   88 MB in  3.00 seconds =  29.33 MB/sec

/dev/md1:
 Timing cached reads:   208 MB in  2.01 seconds = 103.46 MB/sec
 Timing buffered disk reads:   60 MB in  3.07 seconds =  19.57 MB/sec
</pre>
<br /><pre>
Linux dlink-DFDADE 2.6.26-2-orion5x #1 Thu Aug 20 05:04:03 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid6] [raid5] [raid4] [raid0]
md1 : active (auto-read-only) raid1 dm-1[1] dm-0[0]
      1048512 blocks [2/2] [UU]
        resync=PENDING

md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]

unused devices: &lt;none&gt;

/dev/sda:
 Timing cached reads:   220 MB in  2.00 seconds = 109.73 MB/sec
 Timing buffered disk reads:   82 MB in  3.01 seconds =  27.22 MB/sec

/dev/sdb:
 Timing cached reads:   216 MB in  2.02 seconds = 107.12 MB/sec
 Timing buffered disk reads:   90 MB in  3.09 seconds =  29.14 MB/sec

/dev/md1:
 Timing cached reads:   208 MB in  2.02 seconds = 103.19 MB/sec
 Timing buffered disk reads:   52 MB in  3.05 seconds =  17.06 MB/sec
</pre>
<br /><h2 id="2_6_30">2.6.30</h2>
<p>
<a target="_blank" title="(external link)" href="http://www.cyrius.com/journal/debian/orion/d-link/dns-323/dns-323-fan-control">http://www.cyrius.com/journal/debian/orion/d-link/dns-323/dns-323-fan-control</a></p>
<pre>
dlink-DFDADE:~/mdadm# ./test.sh 
+ ./remove.md1.sh
+ mdadm --manage --stop /dev/md1
mdadm: error opening /dev/md1: No such file or directory
+ mdadm --manage --remove /dev/md1
mdadm: error opening /dev/md1: No such file or directory
+ yes
+ mdadm --create --verbose /dev/md1 --level=0 --raid-devices=2 --force /dev/vga/raid.a /dev/vgb/raid.b
mdadm: chunk size defaults to 64K
mdadm: /dev/vga/raid.a appears to be part of a raid array:
    level=raid1 devices=2 ctime=Sat Sep  5 14:54:52 2009
mdadm: /dev/vgb/raid.b appears to be part of a raid array:
    level=raid1 devices=2 ctime=Sat Sep  5 14:54:52 2009
Continue creating array? mdadm: array /dev/md1 started.
+ ./hdparm-test.sh
+ test -d out
+ uname -a
+ cat /proc/mdstat
+ hdparm -tT /dev/sda /dev/sdb /dev/md1
++ date +%Y%m%d_%H%M%S
+ tee out/20090905_151032
Linux dlink-DFDADE 2.6.30-1-orion5x #1 Tue Aug 18 04:19:30 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid0] 
md1 : active raid0 dm-0[1] dm-1[0]
      2097024 blocks 64k chunks
      
md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]
      
unused devices: &lt;none&gt;

/dev/sda:
 Timing cached reads:   246 MB in  2.01 seconds = 122.14 MB/sec
 Timing buffered disk reads:  132 MB in  3.00 seconds =  43.93 MB/sec

/dev/sdb:
 Timing cached reads:   242 MB in  2.01 seconds = 120.27 MB/sec
 Timing buffered disk reads:  138 MB in  3.01 seconds =  45.87 MB/sec

/dev/md1:
 Timing cached reads:   234 MB in  2.01 seconds = 116.15 MB/sec
 Timing buffered disk reads:  130 MB in  3.03 seconds =  42.85 MB/sec
</pre>
<br /><pre>
+ ./remove.md1.sh
+ mdadm --manage --stop /dev/md1
mdadm: stopped /dev/md1
+ mdadm --manage --remove /dev/md1
+ yes
+ mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 --spare-devices=0 --force /dev/vga/raid.a /dev/vgb/raid.b
mdadm: /dev/vga/raid.a appears to be part of a raid array:
    level=raid0 devices=2 ctime=Sat Sep  5 15:10:31 2009
mdadm: /dev/vgb/raid.b appears to be part of a raid array:
    level=raid0 devices=2 ctime=Sat Sep  5 15:10:31 2009
mdadm: size set to 1048512K
Continue creating array? mdadm: array /dev/md1 started.
+ ./hdparm-test.sh
+ test -d out
+ uname -a
++ date +%Y%m%d_%H%M%S
+ cat /proc/mdstat
+ hdparm -tT /dev/sda /dev/sdb /dev/md1
+ tee out/20090905_151114
Linux dlink-DFDADE 2.6.30-1-orion5x #1 Tue Aug 18 04:19:30 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid0] 
md1 : active (auto-read-only) raid1 dm-0[1] dm-1[0]
      1048512 blocks [2/2] [UU]
        resync=PENDING
      
md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]
      
unused devices: &lt;none&gt;

/dev/sda:
 Timing cached reads:   116 MB in  2.01 seconds =  57.84 MB/sec
 Timing buffered disk reads:  118 MB in  3.00 seconds =  39.32 MB/sec

/dev/sdb:
 Timing cached reads:   114 MB in  2.01 seconds =  56.79 MB/sec
 Timing buffered disk reads:  140 MB in  3.03 seconds =  46.27 MB/sec

/dev/md1:
 Timing cached reads:   234 MB in  2.02 seconds = 116.07 MB/sec
 Timing buffered disk reads:  110 MB in  3.01 seconds =  36.49 MB/sec
</pre>
<br /><h2 id="updates">updates</h2>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
  
  
 <div class="fetchrss_title">
   <a href="https://www.cyrius.com/">Martin Michlmayr</a>
 </div>


  </div>
  
 <ul class="fetchrss_items">
  
  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/foss/foss-foundation-research/">Research on FOSS foundations</a>
    
      <p class="fetchrss_description">
        <p>I worked on research on FOSS foundations and published two reports:</p>
<h2>Growing Open Source Projects with a Stable Foundation</h2>
<p>This primer covers non-technical aspects that the majority of projects will have to consider at some point.  It also explains how FOSS foundations can help projects grow and succeed.</p>
<p>This primer explains:</p>
<ul>
<li>What issues and areas to consider</li>
<li>How other projects and foundations have approached these topics</li>
<li>What FOSS foundations bring to the table</li>
<li>How to choose a FOSS foundation</li>
</ul>
<p>You can download <a href="https://www.cyrius.com/foss-foundations/growing-open-source-projects.pdf">Growing Open Source Projects with a Stable Foundation</a>.</p>
<h2>Research report</h2>
<p>The research report describes the findings of the research and aims to help understand the operations and challenges FOSS foundations face.</p>
<p>This report covers topics such as:</p>
<ul>
<li>Role and activities of foundations</li>
<li>Challenges faced and gaps in the service offerings</li>
<li>Operational aspects, including reasons for starting an org and choice of jurisdiction</li>
<li>Trends, such as the "foundation in a foundation" model</li>
<li>Recommendations for different stakeholders</li>
</ul>
<p>You can download the <a href="https://www.cyrius.com/foss-foundations/foss-foundations-research.pdf">research report</a>.</p>
<h2>Acknowledgments</h2>
<p>This research was sponsored by Ford Foundation and Alfred P. Sloan Foundation.  The research was part of their <a href="https://www.fordfoundation.org/campaigns/critical-digital-infrastructure-research/">Critical Digital Infrastructure Research</a> initiative, which investigates the role of open source in digital infrastructure.</p>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/ledger2beancount26/">ledger2beancount 2.6 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 2.6 of <a href="https://github.com/beancount/ledger2beancount">ledger2beancount</a>, a ledger to beancount converter.</p>
<p>Here are the changes in 2.6:</p>
<ul>
<li>Round calculated total if needed for <code>price==cost</code> comparison</li>
<li>Add <code>narration_tag</code> config variable to set narration from metadata</li>
<li>Retain unconsummated payee/payer metadata</li>
<li>Ensure UTF-8 output and assume UTF-8 input</li>
<li>Document UTF-8 issue on Windows systems</li>
<li>Add option to move posting-level tags to the transaction itself</li>
<li>Add support for the <code>alias</code> sub-directive of <code>account</code> declarations</li>
<li>Add support for the <code>payee</code> sub-directive of <code>account</code> declarations</li>
<li>Support configuration file called <code>.ledger2beancount.yaml</code></li>
<li>Fix uninitialised value warning in hledger mode</li>
<li>Print warning if account in assertion has sub-accounts</li>
<li>Set commodity for commodity-less balance assertion</li>
<li>Expand path name of <code>beancount_header</code> config variable</li>
<li>Document handling of buckets</li>
<li>Document pre- and post-processing examples</li>
<li>Add <code>Dockerfile</code> to create Docker image</li>
</ul>
<p>Thanks to Alexander Baier, Daniele Nicolodi, and GitHub users bratekarate, faaafo and mefromthepast for various bug reports and other input.</p>
<p>Thanks to Dennis Lee for adding a Dockerfile and to Vinod Kurup for fixing a bug.</p>
<p>Thanks to Stefano Zacchiroli for testing.</p>
<p>You can get <a href="https://github.com/beancount/ledger2beancount">ledger2beancount from GitHub</a>.</p>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/beancount2ledger13/">beancount2ledger 1.3 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 1.3 of <a href="https://beancount2ledger.readthedocs.io/">beancount2ledger</a>, the beancount to ledger converter that was moved from <code>bean-report ledger</code> into a standalone tool.</p>
<p>You can get <a href="https://github.com/beancount/beancount2ledger">beancount2ledger from GitHub</a> or via <a href="https://pypi.org/project/beancount2ledger/">pip install</a>.</p>
<p>Here are the changes in 1.3:</p>
<ul>
<li>Add rounding postings only when required (<a href="https://github.com/beancount/beancount2ledger/issues/9">issue #9</a>)</li>
<li>Avoid printing too much precision for a currency (<a href="https://github.com/beancount/beancount2ledger/issues/21">issue #21</a>)</li>
<li>Avoid creating two or more postings with null amount (<a href="https://github.com/beancount/beancount2ledger/issues/23">issue #23</a>)</li>
<li>Add price to cost when needed by ledger (<a href="https://github.com/beancount/beancount2ledger/issues/22">issue #22</a>)</li>
<li>Preserve posting order (<a href="https://github.com/beancount/beancount2ledger/issues/18">issue #18</a>)</li>
<li>Add config option <code>indent</code></li>
<li>Show metadata with hledger output</li>
<li>Support setting auxiliary dates and posting dates from metadata (<a href="https://github.com/beancount/beancount2ledger/issues/14">issue #14</a>)</li>
<li>Support setting the code of transactions from metadata</li>
<li>Support mapping of account and currency names (<a href="https://github.com/beancount/beancount2ledger/issues/24">issue #24</a>)</li>
<li>Improve documentation:<ul>
<li>Add user guide</li>
<li>Document limitations (<a href="https://github.com/beancount/beancount2ledger/issues/12">issue #12</a>)</li>
</ul>
</li>
</ul>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/ledger2beancount25/">ledger2beancount 2.5 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 2.5 of <a href="https://github.com/beancount/ledger2beancount">ledger2beancount</a>, a ledger to beancount converter.</p>
<p>Here are the changes in 2.5:</p>
<ul>
<li>Don't create negative cost for lot without cost</li>
<li>Support complex implicit conversions</li>
<li>Handle typed metadata with value <code>0</code> correctly</li>
<li>Set per-unit instead of total cost when cost is missing from lot</li>
<li>Support commodity-less amounts</li>
<li>Convert transactions with no amounts or only <code>0</code> amounts to notes</li>
<li>Fix parsing of transaction notes</li>
<li>Keep tags in transaction notes on same line as transaction header</li>
<li>Add beancount config options for non-standard root names automatically</li>
<li>Fix conversion of fixated prices to costs</li>
<li>Fix removal of price when <code>price==cost</code> but when they use different number formats</li>
<li>Fix removal of price when <code>price==cost</code> but per-unit and total notation mixed</li>
<li>Fix detection of tags and metadata after posting/aux date</li>
<li>Use <code>D</code> directive to set default commodity for hledger</li>
<li>Improve support for postings with commodity-less amounts</li>
<li>Allow empty comments</li>
<li>Preserve leading whitespace in comments in postings and transaction headers</li>
<li>Preserve indentation for tags and metadata</li>
<li>Preserve whitespace between amount and comment</li>
<li>Refactor code to use more data structures</li>
<li>Remove dependency on <code>Config::Onion</code> module</li>
</ul>
<p>Thanks to input from Remco Rĳnders, Yuri Khan, and Thierry. Thanks to Stefano Zacchiroli and Kirill Goncharov for testing my changes.</p>
<p>You can get <a href="https://github.com/beancount/ledger2beancount">ledger2beancount from GitHub</a></p>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/ledger2beancount24/">ledger2beancount 2.4 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 2.4 of <a href="https://github.com/beancount/ledger2beancount">ledger2beancount</a>, a ledger to beancount converter.</p>
<p>There are two notable changes in this release:</p>
<ol>
<li>I fixed two regressions introduced in the last release.  Sorry about the breakage!</li>
<li>I improved support for hledger.  I believe all syntax differences in hledger are supported now.</li>
</ol>
<p>Here are the changes in 2.4:</p>
<ul>
<li>Fix regressions introduced in version 2.3<ul>
<li>Handle price directives with comments</li>
<li>Don't assume implicit conversion when price is on second posting</li>
</ul>
</li>
<li>Improve support for hledger<ul>
<li>Fix parsing of hledger tags</li>
<li>Support commas as decimal markers</li>
<li>Support digit group marks through <code>commodity</code> and <code>D</code> directives</li>
<li>Support <code>end aliases</code> directive</li>
<li>Support regex aliases</li>
<li>Recognise total balance assertions</li>
<li>Recognise sub-account balance assertions</li>
</ul>
</li>
<li>Add support for <code>define</code> directive</li>
<li>Convert all uppercase metadata tags to all lowercase</li>
<li>Improve handling of ledger lots without cost</li>
<li>Allow transactions without postings</li>
<li>Fix parsing issue in commodity declarations</li>
<li>Support commodities that contain quotation marks</li>
<li>Add <code>--version</code> option to show version</li>
<li>Document problem of mixing <code>apply</code> and <code>include</code></li>
</ul>
<p>Thanks to Kirill Goncharov for pointing out one regressions, to Taylor R Campbell for for a patch, to Stefano Zacchiroli for some input, and finally to Simon Michael for input on hledger!</p>
<p>You can get <a href="https://github.com/beancount/ledger2beancount">ledger2beancount from GitHub</a></p>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/beancount2ledger11/">beancount2ledger 1.1 released</a>
    
      <p class="fetchrss_description">
        <p>Martin Blais recently <a href="https://groups.google.com/forum/#!topic/beancount/kM4s4raf1y4">announced that he'd like to re-organize the beancount code</a> and split out some functionality into separate projects, including the beancount to ledger/hledger conversion code previously provided by bean-report.</p>
<p>I agreed to take on the maintenance of this code and I've now released <a href="https://github.com/beancount/beancount2ledger/">beancount2ledger, a beancount to ledger/hledger converter</a>.</p>
<p>You can install beancount2ledger with pip:</p>
<div class="code"><pre class="code literal-block">pip3 install beancount2ledger
</pre></div>

<p>Please <a href="https://github.com/beancount/beancount2ledger/issues">report issues to the GitHub tracker</a>.</p>
<p>There are a number of outstanding issues I'll fix soon, but please report any other issues you encounter.</p>
<p>Note that I'm not very familiar with hledger.  I intend to sync up with hledger author Simon Michael soon, but please file an issue if you notice any problems with the hledger conversion.</p>
<p>Version 1.1 contains a number of fixes compared to the latest code in bean-report:</p>
<h2>1.1 (2020-07-24)</h2>
<ul>
<li>Preserve metadata information (<a href="https://github.com/beancount/beancount2ledger/issues/3">issue #3</a>)</li>
<li>Preserve cost information (lot dates and lot labels/notes) (<a href="https://github.com/beancount/beancount2ledger/issues/5">issue #5</a>)</li>
<li>Avoid adding two prices in hledger (<a href="https://github.com/beancount/beancount2ledger/issues/2">issue #2</a>)</li>
<li>Avoid trailing whitespace in account open declarations (<a href="https://github.com/beancount/beancount2ledger/issues/6">issue #6</a>)</li>
<li>Fix indentation issue in postings (<a href="https://github.com/beancount/beancount2ledger/issues/8">issue #8</a>)</li>
<li>Fix indentation issue in price entries</li>
<li>Drop time information from price (<code>P</code>) entries</li>
<li>Add documentation</li>
<li>Relicense under GPL-2.0-or-later (<a href="https://github.com/beancount/beancount2ledger/issues/1">issue #1</a>)</li>
</ul>
<h2>1.0 (2020-07-22)</h2>
<ul>
<li>Split ledger and hledger conversion from <code>bean-report</code> into a standalone tool</li>
<li>Add man page for <code>beancount2ledger</code>(1)</li>
</ul>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/ledger2beancount23/">ledger2beancount 2.3 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 2.3 of <a href="https://github.com/zacchiro/ledger2beancount">ledger2beancount</a>,
a ledger to beancount converter.</p>
<p>There are three notable changes with this release:</p>
<ol>
<li>Performance has significantly improved.  One large, real-world test case has gone from around 160 seconds to 33 seconds.  A smaller test case has gone from 11 seconds to ~3.5 seconds.</li>
<li>The documentation is <a href="https://ledger2beancount.readthedocs.io/">available online now</a> (via Read the Docs).</li>
<li>The <a href="https://github.com/beancount/ledger2beancount">repository has moved</a> to the beancount GitHub organization.</li>
</ol>
<p>Here are the changes in 2.3:</p>
<ul>
<li>Improve speed of ledger2beancount significantly</li>
<li>Improve parsing of postings for accuracy and speed</li>
<li>Improve support for inline math</li>
<li>Handle lots without cost</li>
<li>Fix parsing of lot notes followed by a virtual price</li>
<li>Add support for lot value expressions</li>
<li>Make parsing of numbers more strict</li>
<li>Fix behaviour of dates without year</li>
<li>Accept default ledger date formats without configuration</li>
<li>Fix implicit conversions with negative prices</li>
<li>Convert implicit conversions in a more idiomatic way</li>
<li>Avoid introducing trailing whitespace with hledger input</li>
<li>Fix loading of config file</li>
<li>Skip ledger directive <code>import</code></li>
<li>Convert documentation to <code>mkdocs</code></li>
</ul>
<p>Thanks to Colin Dean for some feedback.  Thanks to Stefano Zacchiroli for prompting me into investigating performance issues (and thanks to the developers of the Devel::NYTProf profiler).</p>
<p>You can get <a href="https://github.com/beancount/ledger2beancount">ledger2beancount from GitHub</a></p>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/ledger2beancount22/">ledger2beancount 2.2 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 2.2 of <a href="https://github.com/zacchiro/ledger2beancount">ledger2beancount</a>,
a ledger to beancount converter.</p>
<p>Here are the changes in 2.2:</p>
<ul>
<li>Show warning for unknown <code>apply</code> directive</li>
<li>Recognize <code>apply rate</code> directive (an alias of <code>apply fixed</code>)</li>
<li>Don't convert meta-data on ignored virtual postings but keep as comments</li>
<li>Update location of beancount repository</li>
</ul>
<p>You can get <a href="https://github.com/zacchiro/ledger2beancount">ledger2beancount from GitHub</a>.</p>
<p>Thanks to GitHub user MarinBernard for reporting a bug with virtual
postings!</p>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/ledger2beancount21/">ledger2beancount 2.1 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 2.1 of <a href="https://github.com/zacchiro/ledger2beancount">ledger2beancount</a>,
a ledger to beancount converter.</p>
<p>Here are the changes in 2.1:</p>
<ul>
<li>Handle postings with posting dates and comments but no amount</li>
<li>Show transactions with only one posting (without <code>bucket</code>)</li>
<li>Adding spacing between automatic declarations</li>
<li>Preserve preliminary info at the top</li>
</ul>
<p>You can get <a href="https://github.com/zacchiro/ledger2beancount">ledger2beancount from GitHub</a>.</p>
<p>Thanks to Thierry (thdox) for reporting a bug and for fixing some
typos in the documentation.  Thanks to Stefano Zacchiroli for
some good feedback.</p>
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="https://www.cyrius.com/blog/beancount/ledger2beancount20/">ledger2beancount 2.0 released</a>
    
      <p class="fetchrss_description">
        <p>I released version 2.0 of <a href="https://github.com/zacchiro/ledger2beancount">ledger2beancount</a>,
a ledger to beancount converter.</p>
<p>Here are the changes in 2.0:</p>
<ul>
<li>Handle comments in <code>account</code> and <code>commodity</code> declarations</li>
<li>Handle transactions with a single posting (without <code>bucket</code>)</li>
<li>Handle empty metadata values</li>
<li>Rewrite Emacs modeline</li>
</ul>
<p>You can get <a href="https://github.com/zacchiro/ledger2beancount">ledger2beancount from GitHub</a>.</p>
      </p>
    
  </li>

  
 </ul>

</div>
















<!-- wiki: {fetchatom: http://www.cyrius.com/journal/index.atom full}
--></div><br /></div>
<hr/><div>Attachments: dmesg.txt</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>debian, hardware, howto</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?dns_323</guid>
<pubDate>Sat, 05 Sep 2009 13:29:16 -0000</pubDate>
</item>
</channel>
</rss>