<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>@magcamit - tool</title>
    <subtitle>Researcher in Computational Trust, Privacy, Security and Artificial Intelligence</subtitle>
    <link rel="self" type="application/atom+xml" href="https://www.magcamit.com/tags/tool/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://www.magcamit.com"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-05-12T00:00:00+00:00</updated>
    <id>https://www.magcamit.com/tags/tool/atom.xml</id>
    <entry xml:lang="en">
        <title>BibTera</title>
        <published>2026-04-22T00:00:00+00:00</published>
        <updated>2026-05-12T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Michael Intal Magcamit
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://www.magcamit.com/projects/bibtera/"/>
        <id>https://www.magcamit.com/projects/bibtera/</id>
        
        <content type="html" xml:base="https://www.magcamit.com/projects/bibtera/">&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;anirbanbasu&#x2F;bibtera&quot; target=&quot;_blank&quot;&gt;&lt;button&gt;Code repository&lt;&#x2F;button&gt;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The BibTeX format is a widely used format for managing bibliographic references in LaTeX documents. BibTeX is also a software program that processes these references to generate formatted bibliographies. Originally created by Oren Patashnik in 1985, the purpose of BibTeX was to provide a simple way to manage citations in LaTeX documents.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;a-bit-of-background&quot;&gt;A bit of background&lt;a class=&quot;post-anchor&quot; href=&quot;#a-bit-of-background&quot; aria-label=&quot;Anchor link for: a-bit-of-background&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
&lt;&#x2F;h2&gt;
&lt;section class=&quot;alert info&quot; role=&quot;note&quot; aria-labelledby=&quot;w7lSJQ9q&quot;&gt;
    &lt;div class=&quot;alert-icon alert-icon-info&quot;&gt;&lt;&#x2F;div&gt;
    &lt;div class=&quot;alert-content&quot; role=&quot;presentation&quot;&gt;
        &lt;strong id=&quot;w7lSJQ9q&quot; class=&quot;alert-title&quot; aria-hidden=&quot;true&quot;&gt;TLDR; want to install BibTera right away!&lt;&#x2F;strong&gt;
        &lt;p&gt;If you have the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;rust-lang.org&#x2F;tools&#x2F;install&#x2F;&quot;&gt;Rust toolchain installed&lt;&#x2F;a&gt;, run the following command in your terminal to install BibTera.&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #A6E22E;&quot;&gt;cargo&lt;&#x2F;span&gt;&lt;span style=&quot;color: #E6DB74;&quot;&gt; install bibtera&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;details&gt;
&lt;summary&gt;Important notes&lt;&#x2F;summary&gt;
&lt;p&gt;BibTera is meant to work on Linux, including Windows Subsystem for Linux (WSL), and macOS. It may also work on Windows but there are no guarantees.&lt;&#x2F;p&gt;
&lt;p&gt;Always check the project&#x27;s GitHub repository for the latest installation instructions and updates.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;BibTera is still in an early stage of development. It may have bugs making it unsuitable for production use yet. Use it at your own risk and please report any issues you encounter.&lt;&#x2F;strong&gt;&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;details&gt;
    &lt;&#x2F;div&gt;
&lt;&#x2F;section&gt;
&lt;p&gt;My older website generated using the Hugo static site generator and the academic theme had an add-on of sorts that could generate a list of publications from a BibTeX file containing one or more entries. However, the current theme of this website and the Zola static site generator does not have such a feature. Indeed, it is a feature that is not expected to be intrinsic to either the theme or the static site generator, and is better implemented as a separate tool that can be used with any static site generator or even in other contexts.&lt;&#x2F;p&gt;
&lt;p&gt;Hence, I decided to develop a command-line tool called BibTera that can parse a BibTeX file and generate formatted output using the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Keats&#x2F;tera&quot;&gt;Tera templating engine&lt;&#x2F;a&gt;. The tool is written in Rust for performance and reliability. The use of Tera allows one to output nearly any type of text format, Markdown being one of them, which can be used by the static site generator.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;more-information&quot;&gt;More information&lt;a class=&quot;post-anchor&quot; href=&quot;#more-information&quot; aria-label=&quot;Anchor link for: more-information&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;You can find the following links related to the BibTera project.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;anirbanbasu&#x2F;bibtera&quot; target=&quot;_blank&quot;&gt;GitHub repository&lt;&#x2F;a&gt; for the BibTera project.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Some of the use-cases of BibTera include but are not limited to the following.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Generating a list of Markdown files corresponding to the entries in a BibTeX file.&lt;&#x2F;li&gt;
&lt;li&gt;Generating a formatted bibliography in a specific style, such as APA, MLA, Chicago, and so on, from a BibTeX file.&lt;&#x2F;li&gt;
&lt;li&gt;Converting a BibTeX file to another format, such as JSON, XML, and so on.&lt;&#x2F;li&gt;
&lt;li&gt;Cleaning up a messy BibTeX file and outputting a well-formatted BibTeX file.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Ollama Downloader in Rust (ODIR)</title>
        <published>2026-02-16T00:00:00+00:00</published>
        <updated>2026-04-24T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Michael Intal Magcamit
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://www.magcamit.com/projects/odir/"/>
        <id>https://www.magcamit.com/projects/odir/</id>
        
        <content type="html" xml:base="https://www.magcamit.com/projects/odir/">&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;anirbanbasu&#x2F;odir&quot; target=&quot;_blank&quot;&gt;&lt;button&gt;Code repository&lt;&#x2F;button&gt;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;ollama.com&#x2F;&quot;&gt;Ollama&lt;&#x2F;a&gt; is an open-source tool that faciliates the user to download and run large language models (LLMs) such as Llama 3, Mistral, and Gemma on a local computer. It acts as a lightweight runtime and model manager, making it easy to use artificial intelligence (AI) models without relying on cloud services. It has the capability to run some models on the Ollama cloud too.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;a-bit-of-background&quot;&gt;A bit of background&lt;a class=&quot;post-anchor&quot; href=&quot;#a-bit-of-background&quot; aria-label=&quot;Anchor link for: a-bit-of-background&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
&lt;&#x2F;h2&gt;
&lt;section class=&quot;alert info&quot; role=&quot;note&quot; aria-labelledby=&quot;ZwHwx4Yv&quot;&gt;
    &lt;div class=&quot;alert-icon alert-icon-info&quot;&gt;&lt;&#x2F;div&gt;
    &lt;div class=&quot;alert-content&quot; role=&quot;presentation&quot;&gt;
        &lt;strong id=&quot;ZwHwx4Yv&quot; class=&quot;alert-title&quot; aria-hidden=&quot;true&quot;&gt;TLDR; want to install ODIR right away!&lt;&#x2F;strong&gt;
        &lt;p&gt;If you have the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;rust-lang.org&#x2F;tools&#x2F;install&#x2F;&quot;&gt;Rust toolchain installed&lt;&#x2F;a&gt;, run the following command in your terminal to install ODIR.&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #A6E22E;&quot;&gt;cargo&lt;&#x2F;span&gt;&lt;span style=&quot;color: #E6DB74;&quot;&gt; install odir&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Alternatively, if you have &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;brew.sh&#x2F;&quot;&gt;Homebrew&lt;&#x2F;a&gt; installed, you can run the following command to install ODIR.&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #A6E22E;&quot;&gt;brew&lt;&#x2F;span&gt;&lt;span style=&quot;color: #E6DB74;&quot;&gt; install anirbanbasu&#x2F;tap&#x2F;odir&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;details&gt;
&lt;summary&gt;Important notes&lt;&#x2F;summary&gt;
&lt;p&gt;ODIR is meant to work on Linux, including Windows Subsystem for Linux (WSL), and macOS. It may also work on Windows but there are no guarantees.&lt;&#x2F;p&gt;
&lt;p&gt;Always check the project&#x27;s GitHub repository for the latest installation instructions and updates.&lt;&#x2F;p&gt;
&lt;&#x2F;details&gt;
    &lt;&#x2F;div&gt;
&lt;&#x2F;section&gt;
&lt;p&gt;While &lt;code&gt;ollama pull &amp;lt;model:tag&amp;gt;&lt;&#x2F;code&gt; mostly works, there is a documented problem, see &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;ollama&#x2F;ollama&#x2F;issues&#x2F;941&quot;&gt;issue 941&lt;&#x2F;a&gt;. The crux of the problem is that Ollama fails to pull a model with an error message as follows.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;Error: digest mismatch, file must be downloaded again: want sha256:1a640cd4d69a5260bcc807a531f82ddb3890ebf49bc2a323e60a9290547135c1, got sha256:5eef5d8ec5ce977b74f91524c0002f9a7adeb61606cdbdad6460e25d58d0f454&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;This is particularly frequent on corporate networks, which typically have man-in-the-middle (MITM) proxies for HTTPS traffic with self-signed certificates.&lt;&#x2F;p&gt;
&lt;p&gt;My solution in August 2025 was to write a command-line tool in Python that downloads the model file directly from the registry, bypassing Ollama&#x27;s own method of downloading. This led to the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;anirbanbasu&#x2F;ollama-downloader&quot;&gt;Ollama Downloader&lt;&#x2F;a&gt; project. In February 2026, I wanted to port it in Rust for better performance and support more features, such as parallel downloads and resume capability. This led to the creation of Ollama Downloader in Rust or ODIR, pronounced as &lt;em&gt;oh dear&lt;&#x2F;em&gt;!&lt;&#x2F;p&gt;
&lt;h2 id=&quot;more-information&quot;&gt;More information&lt;a class=&quot;post-anchor&quot; href=&quot;#more-information&quot; aria-label=&quot;Anchor link for: more-information&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;You can find the following links related to the ODIR project.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;anirbanbasu&#x2F;odir&quot; target=&quot;_blank&quot;&gt;GitHub repository&lt;&#x2F;a&gt; for the Ollama Downloader in Rust (ODIR) project.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;odir&quot; target=&quot;_blank&quot;&gt;Rust crate on Crates.io&lt;&#x2F;a&gt; for ODIR.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;anirbanbasu&#x2F;ollama-downloader&quot; target=&quot;_blank&quot;&gt;GitHub repository&lt;&#x2F;a&gt; of the original Python Ollama Downloader project, &lt;em&gt;now deprecated&lt;&#x2F;em&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        
    </entry>
</feed>
