<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Aigarius Blog</title><link>http://aigarius.com/</link><description>Mindblogging the world to itself</description><atom:link href="http://aigarius.com/feeds/rss/rss.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:aigarius@gmail.com"&gt;Aigars Mahinovs&lt;/a&gt; </copyright><lastBuildDate>Sun, 30 Aug 2026 19:00:12 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Half a year with iX3</title><link>http://aigarius.com/blog/2026/08/30/half-a-year-with-iX3/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;div&gt;&lt;h2&gt;Jumping a generation of electric cars&lt;/h2&gt;
&lt;p&gt;This February (2026) marks a full 10 years since I started working for BMW, and
a key employment bonus is the ability to drive a company car on special two-year
leasing terms. Just before the new year 2026 started, I said &lt;a href="https://aigarius.com/blog/2026/01/07/sedan-experience/"&gt;goodbye to my
latest company car&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Now this spring I was able to pick a new car, a car that I have been waiting for
and working on for the past ~5 years - the BMW iX3 Neue Klasse. It is a &lt;em&gt;very&lt;/em&gt;
special car for BMW and also for electromobility in general.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://aigarius.com/blog/2026/08/30/half-a-year-with-iX3/"&gt;Read more…&lt;/a&gt; (9 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>blog</category><category>car</category><category>Debian-planet</category><category>hardware</category><category>Ubuntu.lv-planet</category><category>work</category><guid>http://aigarius.com/blog/2026/08/30/half-a-year-with-iX3/</guid><pubDate>Sun, 30 Aug 2026 10:00:00 GMT</pubDate></item><item><title>Optimistic take on AI</title><link>http://aigarius.com/blog/2026/08/22/optimistic-take-on-ai/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;p&gt;As I am writing this, there is a &lt;a href="https://www.debian.org/vote/2026/vote_002"&gt;vote&lt;/a&gt; ongoing in the Debian
project on how to deal with AI in general and AI-assisted contributions to Debian specifically. Massive discussions
have happened in &lt;a href="https://lists.debian.org/debian-vote/"&gt;debian-vote&lt;/a&gt; and other locations. I have also asked
questions there and offered my perspective. IMHO now is the time to summarize that, after all the discussions
that I've had with people on multiple sides of this debate both online and offline, and explain how I will be
voting and why. Hopefully that will be helpful to someone else as well. None of this has been compiled with AI
assistance, but only because I think that forming opinions is not something where AI can really be helpful.
Spellcheck was used though.&lt;/p&gt;
&lt;p&gt;So, first I will describe how I see each of the 8 proposals, then what my vote will be, and then a bit more
detail on the reasoning and thinking behind this. WARNING - this went &lt;em&gt;long&lt;/em&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Proposal A(1) - Action: ban all AI-assisted contributions via Social Contract amendment, except from upstreams
 (so not rolling back the Linux kernel and other software to "pure", pre-AI state). Claims that copyright/licensing
 status is unclear, quality is bad, community is being destroyed, web resources see extra load and that training
 consumes "staggering" resources. Needs 2/3rd majority to pass. - IMHO worst and most inconsistent. If copyright
 and licensing of AI products &lt;em&gt;is&lt;/em&gt; unclear, then be consistent - ban ALL software with AI contributions, fork Linux
 kernel and other software from pre-AI versions, reject all security fixes of issues found with AI. Quality section
 lists problems that have not existed in the real world since at least a year of rapid AI coding development. Community
 section assumes that now all Debian contributions will be drive-by AI slop and no one will learn anything anymore.
 Ethics section mixes up effects of badly configured systems (AI web load is no different from load from a badly
 configured Perl script) with claimed "resource" usage without any context, taking on trust project ambitions of
 startups and assuming exponential growth. And then concludes that delivering less is in the interest of our
 users somehow.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proposal B(2) - Action: allow AI-assisted contributions, with conditions of: legality, accountability, disclosure,
  no uncoordinated bulk actions, privacy. Concerns on quality and legal status as well as environmental impact
  and scraper load are noted, but not really addressed beyond labelling them as concerns. - IMHO it is an ok starting
  position as it establishes that each contributing &lt;em&gt;person&lt;/em&gt; must still be fully responsible for &lt;em&gt;their&lt;/em&gt;
  contribution (both legally and technically) and for that has to also understand (and review) what they submit.
  Disclosure lets others know to watch out for other classes of problems when code was changed with AI assistance.
  Prior discussion for bulk changes just says that the (already established) practice should not be neglected
  just because now large changes are easier to do. And the privacy part warns against accidentally sending private or
  confidential data (like a not yet published security bug) to a public service where it could become public.
  Personally I would have liked a stronger statement to encourage use of environmentally responsible AI services
  and local AI tools. Possibly a preference for open-weight models with a clear path forward to preferring truly
  free AI models, when such a category of products could be clearly delineated and established.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proposal C(3) - Action: reject AI-assisted contributions at Code of Conduct level. Claims all the world's evils come
  from LLMs and that "Ethical and safe use of this technology is almost impossible". Goes as far as banning any
  use of LLMs even in Debian mailing list emails and Debian Planet blog posts - if you do, it's a CoC violation
  and may result in exclusion from the project. Additionally &lt;em&gt;mandates&lt;/em&gt; the disclosure of the usage ... presumably
  to ban you more efficiently for it. - IMHO truly a dictatorial nightmare option. Zero actual reasoning or
  basis for such a decision. Zero sources. Nothing claimed in this option's rationale is even close to reality and
  nothing claimed there is in any way related to the actual technology being discussed. Like, an "LLM" does not
  automagically commit "fraud" when you use it, like this proposal claims, as if that was a well-known fact.
  LLMs are not all "owned by horrible people and companies". Even if some include a (prominent Debian user,
  long-time supporter and sponsor) Google into "horrible companies" (which is what this proposal implies!),
  there are plenty of LLMs owned by all kinds of companies all over the world and there are plenty of open-weight
  LLMs that are not really owned by anyone. Most invasive and dishonest option on the ballot.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proposal D(4) - Action: allow AI-assisted contributions, with conditions of: legality, accountability,
  disclosure, privacy. IMHO same as B, just shorter. Adds a "we don't recommend" towards others developing software
  with AI assistance. Seems pretty weird to add that and then immediately accept Debian contributors doing so.
  Assumes that the bulk change bit of B is implied as AI is just tooling, so bulk changes should be pre-discussed
  just like today - so no change and thus no point in mentioning that. Fair. D is a bit more explicit on expected
  technical details - like that the "person" submitting the change is supposed to sign it, not AI. Notable is
  the complete absence of resource usage or the environment from concerns. IMHO it would be better to have that
  and also recommendations on how to avoid causing environmental damage when using AI.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proposal E(5) - Action: no action as such - AI-assisted contributions must follow the same rules as all other
  contributions and those rules are sufficient. IMHO despite its length this is a very well-worded position
  statement that describes how and why AI-assisted contributions already work perfectly fine in the Debian context
  when &lt;em&gt;all&lt;/em&gt; the same rules that apply to all contributions are also consistently applied to AI-assisted
  contributions. It describes how the same legality, accountability, no bulk change and privacy requirements
  are already in place and still apply and how AI-assisted contributions can and must still satisfy them. I could
  add again that some guidance would be nice here for both legal and environmental decisions when using AI,
  but in this case it does not really belong in this proposal itself. We as Debian do not have a document that
  requires that our non-AI-assisted contributions be made with only sustainably sourced electricity, for example.
  So why should AI be special one way or another? IMHO Debian &lt;em&gt;should&lt;/em&gt; have a datacenter sustainability policy,
  regardless of the AI discussion.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proposal F(6) - Action: discourage AI, but allow it based on existing processes (similar idea to E). Dances a bit
  around the question of disclosure of AI use (as a courtesy) and accepting that some people may still ban
  all contributions where any AI was involved in any way. Which in turn discourages disclosure to avoid pointless
  rejection of valuable contributions (like security patches). IMHO this option is ok, but so watered down that
  it is bound to bring up further discussions and conflicts on details.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proposal G(7) - Action: ban non-humans from &lt;em&gt;directly&lt;/em&gt; contributing to Debian. IMHO - another bizarre and
  self-contradictory option. It bans &lt;em&gt;all&lt;/em&gt; Debian interactions with AI assistance, including email messages to
  Debian mailing lists and (supposedly) blog posts on Planet Debian. It "reminds" people who "use such tools
  assistively" of the DFSG and Social Contract - isn't that a threat of a ban and expulsion similar to C? The
  proposal does take pains to delineate where a contribution comes from AI as output (bad) vs when you are
  assisted by AI in the process of exploring, researching or maybe even reviewing the code, but you
  actually type all the code yourself and use the AI just as a taskmaster with a whip (good). And just like A
  or C it completely ignores how this inherently evil and unstable AI-generated code becomes perfectly fine and
  good as soon as someone develops that &lt;em&gt;outside&lt;/em&gt; of the Debian project. Even if the same person then packages
  it for Debian the next day. It is hypocritical, unsustainable and ignores the needs of our users. Just like
  C it also bans someone writing an email or bug report in their native language and using a modern translation
  tool or service (that uses LLMs nowadays for better grammatical clarity) to translate that to English before
  sending it to a Debian mailing list or BTS. Heavy-handed and invasive. And the only reasoning provided
  for this is some unnamed "concerns" of "extra work" being borne by "other people"? Kind of does not feel
  right to bear such draconian restrictions for some unspecified concerns.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proposal H(8) - Action: &lt;em&gt;condemn&lt;/em&gt; usage, but not &lt;em&gt;actually&lt;/em&gt; ban anything. And then it goes on to claim
  (without any evidence or elaboration) that LLM usage accelerates the destruction of "planet earth" (sic).
  IMHO this proposal is at the same time the loudest ("The planet is burning") and also the one that demands the
  &lt;em&gt;least&lt;/em&gt; action. It dances a really twisty line between raising "significant" concerns in all areas and even
  claiming that use of LLMs destroys the planet, flies by explicit condemnation of LLM usage and then suddenly
  collapses with not condemning LLM users and swinging to lamentations that it is actually impossible to impose
  policies on LLM usage or even detect when an LLM was used (which kind of directly contradicts bad quality
  claims from A, C and G) and lands on "encouraging" contributors not to use LLMs (where practical) and otherwise
  do nothing else. It's like this is a 5th draft that started off with the rationale and total ban like in C,
  but then got defanged so far that its action side no longer matches the rationale stated.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With all the above considered I will vote like this (earlier options are preferred over later options):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Proposal E(5) - solid &lt;em&gt;hack&lt;/em&gt; of integrating AI into already existing Debian rules and conventions&lt;/li&gt;
&lt;li&gt;Proposal B(2) - explicit and detailed&lt;/li&gt;
&lt;li&gt;Proposal D(4) - lower because of discouragement to others on what we agreed to do ourselves&lt;/li&gt;
&lt;li&gt;Proposal F(6) - I am not a fan of dancing around with disclosures&lt;/li&gt;
&lt;li&gt;Further discussion(9) - I do not want any option below this to succeed as they would do more harm than good&lt;/li&gt;
&lt;li&gt;Proposal H(8) - loud, but not doing anything actually&lt;/li&gt;
&lt;li&gt;Proposal A(1) - at least this one does not set rules for emails&lt;/li&gt;
&lt;li&gt;Proposal G(7) - at least this one allows an AI overseer to tell you what to write with your own fingers&lt;/li&gt;
&lt;li&gt;Proposal C(3) - the most draconic and invasive one that explicitly wants to kick people out of the project&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Details on rationale&lt;/p&gt;
&lt;p&gt;Hypocrisy - I find &lt;em&gt;any&lt;/em&gt; proposal that would ban AI-assisted contributions to Debian, but at the same time &lt;em&gt;not&lt;/em&gt;
ban including AI-assisted contributions from upstream projects to be inherently hypocritical. If LLMs
and AI are the very incarnation of evil (a puppy-killing machine, as the analogy went in some emails), then
any rational proposal would involve excluding any and &lt;em&gt;ALL&lt;/em&gt; code contaminated by this evil from the project. What
does it matter if puppies were killed in writing the debian subfolder of the source code or the src subfolder?
No proposals went there because everyone knows that such a ban would be the death of the relevance of the project
for the future. Debian would be frozen on some old version of the Linux kernel forever and other software would be
falling to the same problem too, for example as projects on GitHub start enabling AI-supported reviews with patch
suggestions. Soon the "development" of Debian could just be stopped as there is nothing to develop without any
upstreams.&lt;/p&gt;
&lt;p&gt;Assumptions - a lot of proposals mention various "concerns" with at most one word, like "practical" or "community"
without an explanation of what &lt;em&gt;exactly&lt;/em&gt; they mean by that. The proposers assumed that everyone lives in the same info
bubble as they do and already know everything that they mean and already agree to that. That is false.
Proposal A was a positive stand-out in this area. Debian has contributors all over the world with very different
exposure to different information sources and very different world views. If you want to convince the project as a
whole that LLMs are bad because of "ethics", then you &lt;em&gt;do&lt;/em&gt; really need to explain what you mean by that and give
links to sources, at least as well as Proposal A did. All other proposals were really weak in this area.&lt;/p&gt;
&lt;p&gt;Copyright - the question on how copyright law interacts with training LLMs and their outputs is still not settled
law. The closest legal statements we have so far are that - just because an LLM is trained on copyrighted material
does &lt;em&gt;not&lt;/em&gt; make that LLM itself be a derivative work of the training data (you, however, cannot just create and
distribute a "library" of copyrighted materials just because you plan to train LLMs on it). The output of the LLM
&lt;em&gt;might&lt;/em&gt; not be subject to copyright law at all, like a photo taken by a monkey. It would then be public domain and
thus can be modified and then licensed by the user of the LLM. It &lt;em&gt;might&lt;/em&gt; also be a derived work of the &lt;em&gt;context&lt;/em&gt;
of the inference (so for software - if you refactor a GPL project, the refactoring itself is likely GPL too).
Any stricter interpretations would break a lot of existing copyright doctrine, such as raising questions like:
"does the output of any programmer now become a derived work of the programming manual books they read in college?".
In any case it is really not up to Debian to legislate the nuances of copyright law. And I strongly disagree with
the concept that an author can tell me how I am allowed to use the learnings that I gained by reading their work.
That is not how either copyright or society works. I can look at 10 pictures of a sunset and draw my own,
inspired by the ones I saw. No one can forbid me that expression. The same must be true for a machine learning and
replicating patterns.&lt;/p&gt;
&lt;p&gt;Ethics - I've re-read all proposals and emails and the only real specifically ethical concern I could find was
the complaint that some LLMs (or their training farms) are running their web scrapers too aggressively and that
causes extra load on services. Like that is not an LLM problem. Scraping the web is not an inherent part of
the LLM training or inference process. It's just a few misconfigured scripts. We saw the exact same thing in the
early days of web search engine proliferation. Then we banned/blocked the misconfigured engines and the
survivors learned that obeying robots.txt is one of the rules for surviving. Literally the exact same problem
and it will be solved the same way. Did we ban all search engines back then just because some of them were
misconfigured? No.&lt;/p&gt;
&lt;p&gt;Some claims (like in Proposal C) are just bombastic hyperbole ("hazards to users' mental health", "fraud", ...)
and on top of that have zero relevance to the topic at hand - AI-assisted contributions to Debian. What
"hazard to users' mental health" is created when a Coderabbit spots that a lock is not taken before accessing
a resource in a particular function and suggests an AI-generated patch to fix it? What "fraud" is committed by
this? There is no sane answer. I get that some people are very busy fighting some culture wars and sometimes,
some AI-bros happen to be on the other side of one such war, so it is useful to label everything coming
from the AI sphere as "bad" in all possible and impossible ways. You do you. In private. Why pull Debian into
that? Why force your position on everyone else in the project? Why deny everyone in the project access to
useful tooling, just because you have strong feelings about some of the people promoting some of those tools?&lt;/p&gt;
&lt;p&gt;This seems to me a repeating pattern here - blaming the technology as a whole or blaming &lt;em&gt;all&lt;/em&gt; providers
of this type of technology for failings (ethical or technical) of &lt;em&gt;some&lt;/em&gt; of those providers. Like refusing
to wear &lt;em&gt;all&lt;/em&gt; shoes and condemning all shoemakers and sellers, just because &lt;em&gt;some&lt;/em&gt; American billionaires figured
out a way to make and sell cheap shoes by killing puppies. Not refusing and condemning &lt;em&gt;those&lt;/em&gt; providers,
but condemning &lt;em&gt;all&lt;/em&gt; for the actions of a &lt;em&gt;few&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Resource usage - this is a big topic for many and it has reasonable points to it. The LLM and AI technology
has no &lt;em&gt;inherent&lt;/em&gt; need to be damaging to the environment in any way for it to function. It does not need to
burn oil or dig up cobalt. It does not need to sacrifice a ton of water to the Gods. It is perfectly
possible to run AI (both inference and training) purely from green, electrical energy and cool data centers
in equally sustainable ways, like with simple air-source heat pumps (also known as air conditioning) or even
use it beneficially (many data centers are used for heating surrounding buildings via district heating).
However, &lt;em&gt;some&lt;/em&gt; AI companies &lt;em&gt;do&lt;/em&gt; use non-green power for their data centers, some do use locally-limited
fresh water for evaporative cooling (evaporated water still rains down as rain, it is not really lost, but
that may happen in another location so lack of water can still happen locally). Some even run unlicensed
natural gas turbines in their data centers to provide them with power. And those specific providers can
and should be shunned and condemned. Not the other ones, who are doing the right things. Not the technology
or its users or its outputs.&lt;/p&gt;
&lt;p&gt;There is a &lt;em&gt;very&lt;/em&gt; wide spectrum of options on how an AI system could be powered: starting from local execution
on already existing private hardware powered by one's own local solar power (good), to a data center stuffed with
borrowed AI-only cards powered by a gas turbine or coal power station that operates &lt;em&gt;solely&lt;/em&gt; to supply this
data center (bad). Proposals that talk about ecological impact, but do not even consider where on that (very
wide) spectrum to draw the line between "good", "acceptable", "discouraged" and "bad" — well, I cannot see
those proposals being &lt;em&gt;actually&lt;/em&gt; serious about the environment to begin with. It feels like they just refer
to it for points.&lt;/p&gt;
&lt;p&gt;And if we go into the power question deeper, well the grid dynamics and economics become very, very complex and
often also non-intuitive. Like, all large software companies with data centers (that also happen to provide
AI services), like Google, Meta, Apple, Microsoft and others do actually care about sustainability (in part
because their customers care and vote with their wallets) and so all of them use 100% green energy for their
data centers (including AI data centers) .... "on an annual scale". Wait, what does &lt;em&gt;that&lt;/em&gt; mean?
Well, the electrical grid is special - the amount of electricity produced and consumed on the whole electrical
grid together has to match almost exactly every &lt;em&gt;second&lt;/em&gt;. If there is just a single second where there is
significantly more energy consumed from the grid than is produced, the frequency will plummet and you get
a brownout and risk a grid collapse. The same is true in reverse - that causes a voltage swell. So grid operators
manage energy flows every second and command power stations to increase and decrease generation all the time.
Some power stations are easier to regulate dynamically than others. In the end, all that means is that
even if your data center has a contract for 100% green energy with your power company, at &lt;em&gt;some&lt;/em&gt; seconds
across the year there might not be enough green energy in the grid to fully supply ALL people and companies
that have 100% green energy contracts. This gets compensated in other seconds, so that across the year
("on an annual scale") for each kWh that your data center pulled from the grid, the same amount of kWh of
100% green energy flows into the grid. But it &lt;em&gt;might&lt;/em&gt; not happen at the exact same second. Pedantic
companies, like Google, take that discrepancy and count that as CO2 emissions for themselves. And then
they and the power companies (they have contracts with) invest billions into new green energy projects,
better grids and better batteries so that &lt;em&gt;eventually&lt;/em&gt; this discrepancy goes down to zero. In this way
green AI data centers with their increasing consumption of green energy are &lt;em&gt;actually&lt;/em&gt; doing a lot
of good work in making our electrical grid &lt;em&gt;more&lt;/em&gt; green. They are making more resources than they are
consuming. And that is just the tip of the iceberg. This is a &lt;em&gt;deep&lt;/em&gt; topic that really abhors generalizations
like "more consumption = bad".&lt;/p&gt;
&lt;p&gt;I've heard similar discussions in the context of electric cars - "so you got an electric car? you'd have fewer
emissions if you drove no car at all!". That might be so. And I would also reduce my emissions to zero
if I stopped breathing, but I &lt;em&gt;really&lt;/em&gt; do not want that kind of thinking to be propagated further, especially
when impressionable young people are around who may take it to its logical (but wrong!) conclusion. Instead
I talk about how early adopters use electric cars to gather experience and achieve volume to start the
network effects working. Once network effects of many electric cars on the roads are sufficient, it becomes
an economically logical choice to get an electric car. People who &lt;em&gt;cannot&lt;/em&gt; avoid having a car start
to switch over. And at the point of mass switchover the reduction of emissions is so massive that those
early adopters failing to go all the way to riding a bicycle becomes a rounding error.&lt;/p&gt;
&lt;p&gt;But surely that does not apply to LLMs? They are only increasing consumption and bring no benefit?&lt;/p&gt;
&lt;p&gt;Benefit - and here we have to actually talk about benefits. Because you cannot make any cost-benefit
analysis if you do not &lt;em&gt;actually&lt;/em&gt; fully investigate the benefits. Are there environmental benefits from
running those AI models? Yes, in a lot of very diverse ways. Hard to measure, however. There are projects
that are easy to quantify - like that Google AI project on contrail avoidance. An advanced, special model
trained and executed in Google AI data centers was able to predict where in the air contrails would be
produced and could generate proposed course adjustments to commercial flights to avoid specific heights
in specific locations at specific times. This stopped these aircraft from creating contrails and those
contrails did not make a further contribution to global warming. That benefit in a year was many times higher than
the environmental cost of training and running that AI model. And it can keep running for many years
accumulating further benefits.&lt;/p&gt;
&lt;p&gt;On a personal scale, I've had problems that I bashed my head (and computer
and CI resources) against without much success years ago solved with a few minutes of compute. Having
a good enough candidate solution quickly is &lt;em&gt;much&lt;/em&gt; cheaper from a resource perspective than spending days
trying different things, running my PC for it, trying different patches on CI executions, doing different
rebuilds. I've seen very significant benefits in AI-assisted development in enterprise environments
where code way more complex than what is in Debian (especially in Debian tools and packaging) gets
analysed, reviewed, modified or even refactored or rewritten in another language with AI assistance.
And it generally works. The commonly mentioned "hallucinations" are a thing of last year in the coding
context. Nowadays the AIs work in special coding harnesses and use real tools as foundational facts.
You cannot "hallucinate" an API call or parameter if you have to run and pass the unit tests and
integration tests by your harness before you can return "success" to the caller. I've personally
seen high-level AI models read very complex software projects across multiple repositories and point
out a very specific design consideration that was encoded in the code logic, but never mentioned in
comments or documentation. It was so obscure that even I did not immediately know what it was
talking about (and I wrote that code). Only on close inspection of code interaction across three repos
did I remember that there was indeed that bug 2 years ago that I fixed by doing the change that
this AI picked up (it wasn't in the history of this git repo due to repo migration). It mentioned
this because it was very relevant to the task I initially gave it to review.&lt;/p&gt;
&lt;p&gt;These LLMs in a proper harness with proper system instructions and usage approach are not just fancy
spell checkers or auto-complete. They function more like very advanced pattern matchers. They have learned
millions of patterns from training data. When they look at the code, they see hundreds or thousands of
overlapping patterns. When you ask them to make or change something, they pull out a pattern (or ten)
from their training and apply those patterns to the context of your program. You get something that
looks just like the surrounding code, same style choices, same language, same comment voice, but it
implements something new there, based on other patterns learned. If you've studied design patterns
in your CS class, this will be familiar. But people can learn and remember maybe 20-30 patterns, while
an LLM can have a million patterns and can combine them when needed. So it takes a pattern of
Python code, pattern of standalone script, pattern of parsing command line parameters, pattern of
classes, pattern for background threads, pattern for file tree traversing, pattern for pipes, ... and
squishes them together to make a solution for your query. And then tries to debug it with compilation,
tests and execution until it works as expected. Even if there is zero LLM development going forward, it
will take many years to fully appreciate the benefits we can extract from the already trained models.
They don't even have to be retrained - for existing languages they just keep working. For new
language variations, like a new Python version, you can feed the changelog into context and they will
be able to work with a Python version that they never saw in training. And patterns are mostly abstract,
so not really specific to any language - human or programming.&lt;/p&gt;
&lt;p&gt;This is another big enabler that LLMs have created that we have not really explored yet. LLMs have
created &lt;em&gt;really&lt;/em&gt; free software. People can &lt;em&gt;actually&lt;/em&gt; create software that is perfectly suited just
for them and no one else. They don't even have to know how to program and don't even need to speak
English. I've seen people writing prompts in their native language and LLMs creating and then adjusting
web apps or Android/iPhone apps and deploying them to the user's own phone. It was too buggy to work last
year, but this year it is actually very functional for simpler use-cases. And the code looks just
fine too - I've seen external contractors in a business setting deliver far worse. If you start with
a good initial system prompt, the project will have architecture documentation, use-case documentation,
unit tests, integration tests, deployment harness, testing and production deployments, audit logs,
monitoring, clear git commits, CI validation on commit, ... Modern AI systems have the capabilty
to deliver software freedom to people who are not coders. I really can not overstate the consequences
this may have on the world.&lt;/p&gt;
&lt;p&gt;Community - I find the concerns that new people will be using LLMs so much that they will no longer
be understanding the actual code they are contributing a bit regressive. I don't see any significant
difference between this and people relying on compilers, on high-level languages or on debhelper.
Writing modern debhelper packaging feels more like writing configuration and not writing code. It
takes really significant effort to dig down through layers of abstraction to find what &lt;em&gt;actually&lt;/em&gt;
is being executed in debian/rules. AI does not really make this worse. In fact, I find that AI
can make it much easier to understand arcane syntax because you can ask an LLM to &lt;em&gt;explain&lt;/em&gt; what is
happening in any part of the code and it will do a pretty good job of it, digging down through
the layers of abstraction for you. All the pro-AI proposals include the requirement that each
&lt;em&gt;human&lt;/em&gt; contributor needs to understand and stand behind their AI-assisted contribution and I
believe that is a good requirement and also a sufficient requirement. Modern LLMs not only produce
clear and concise code, but they are also capable of producing good comments explaining why the
code is how it is, good commit messages explaining the change and reason behind it and also
making corresponding changes to test suites and documentation. You know - the housekeeping stuff
that is often skipped because it slows down the actual feature development, but then its lack
becomes a problem for future contributors. Responsible use of AI assistance is a great chance
to actually &lt;em&gt;strengthen&lt;/em&gt; our community and make our software easier to maintain.&lt;/p&gt;
&lt;p&gt;That said, I have no qualms about flat-out rejecting contributions that do not make sense. And
it does not matter if they are made with or without AI assistance. If the contributor will not
explain their patch, it might be they do not understand what their AI produced &lt;em&gt;or&lt;/em&gt; it could be
that the contribution is deliberately hiding a backdoor being planted. It is also quite common
for a contribution of a new feature to be rejected because the author/maintainer does not believe
that it is a good fit for the project. Featuritis is a real disease. AI or not. There have always
been drive-by contributions to various projects. They will continue to exist. Each of them should
be evaluated on its merits - is this feature valuable to our users and is the added complexity
(if any) worth the functionality? A lot of security bug reports are "drive-by" contributions as
well. And many of them nowadays are discovered, exploited and patched with AI assistance. We
could reject them, but that just leaves us holding the bag on the now-known exploits.&lt;/p&gt;
&lt;p&gt;And the New Maintainer process should be able to figure out if an upcoming Developer has actually
understood the nuances of Debian packaging or not. A contributor with upload rights to the
archive &lt;em&gt;has to&lt;/em&gt; be able to create a basic package with no support tooling (maybe even without
using debhelper?) and be able to understand and modify more complex packages (possibly with
tooling support). IMHO that is a separate discussion that is worth having, involving experts from
the educational sector.&lt;/p&gt;
&lt;p&gt;Conclusion&lt;/p&gt;
&lt;p&gt;IMHO the Debian project should not restrict what tooling individual contributors use to contribute.
Expecting high-quality contributions and that contributors understand what they are contributing
(as a first level of review) is enough.&lt;/p&gt;
&lt;p&gt;However, Debian should provide its contributors (internal or external) with guidance on &lt;em&gt;how&lt;/em&gt;
to contribute in the best way possible. That could include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;information on which AI services have Terms and Conditions that make them problematic for free
  software development, legally speaking&lt;/li&gt;
&lt;li&gt;information on which AI services do (or do not) achieve a sufficient level of sustainability to be
  worth recommending (and then do the same for other data centers we already use)&lt;/li&gt;
&lt;li&gt;information on which local AI models were trained in sustainable ways&lt;/li&gt;
&lt;li&gt;base-level prompts to set technical expectations on various types of contributions, like bug
  reports or patches to packaging or translations&lt;/li&gt;
&lt;li&gt;default configuration for AI-assisted code reviews on Salsa that projects could enable and
  supplement with their own instructions on top&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In addition to that it would be helpful for Debian, as a project, to reach out to AI service
providers to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;encourage them to improve sustainability (where needed)&lt;/li&gt;
&lt;li&gt;investigate and fix problems causing excessive scraping load on systems&lt;/li&gt;
&lt;li&gt;provide AI resources for Debian usage, for example in CI infrastructure or to provide equal
  development support opportunities for Debian developers who cannot afford paid AI services&lt;/li&gt;
&lt;li&gt;improve coding outputs of their models in the Debian context if/when systematic deficiencies
  in the output are found by us&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Questions? Feedback? Just ask
&lt;a href="https://bsky.app/profile/aigarius.com/post/3mtql3ologs2p"&gt;here&lt;/a&gt; or
&lt;a href="https://www.threads.com/share/DXreYglXv/"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><category>blog</category><category>Debian-planet</category><category>photo</category><category>Ubuntu.lv-planet</category><guid>http://aigarius.com/blog/2026/08/22/optimistic-take-on-ai/</guid><pubDate>Sat, 22 Aug 2026 19:30:00 GMT</pubDate></item><item><title>How to make a good group photo</title><link>http://aigarius.com/blog/2026/07/05/making-of-group-photo/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;p&gt;Taking a good group photo consists of multiple aspects:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;hardware&lt;/li&gt;
&lt;li&gt;scouting&lt;/li&gt;
&lt;li&gt;organization&lt;/li&gt;
&lt;li&gt;preparation&lt;/li&gt;
&lt;li&gt;execution&lt;/li&gt;
&lt;li&gt;processing&lt;/li&gt;
&lt;li&gt;publishing&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I can say with confidence that nearly everything here comes from having failed to do these things right
at least once, even on the latest attempts, so this is an ideal to reach towards, not something we expect to
hit every time.&lt;/p&gt;
&lt;h3&gt;The Goal&lt;/h3&gt;
&lt;p&gt;The main goal of a big event group photo is capture both the moment itself and each individual person inside
that moment.&lt;/p&gt;
&lt;p&gt;We want people, who were &lt;em&gt;not&lt;/em&gt; there to see all the people involved and get an impression of what
it was like being there. It needs to show the breadth and depth of people that make up this group, this project.&lt;/p&gt;
&lt;p&gt;And we want people who &lt;em&gt;were&lt;/em&gt; there to be able to look back the next week, the next year
or in ten years and remember - ah, yes, I was there, I was standing right there with this grin on my face next
to this wonderful person and I was feeling great.&lt;/p&gt;
&lt;h3&gt;Hardware&lt;/h3&gt;
&lt;p&gt;Based on the goal we want to have high level photographic gear that is able to capture both a broad enough picture
to encompass all the people and some of their surroundings to communicate the context (without undue distortions)
and to deliver enough detail and resolution so that faces and facial expressions and underlying feelings of every
single person in that group could be clearly seen and preserved.&lt;/p&gt;
&lt;p&gt;To both capture the context and minimise distortion the final picture should be just a bit wider than normal human
field of view. That is about 50mm for a full-frame camera or 35mm for a typical 1.6 crop camera. You can go a bit
wider if there are no better alternatives (as detailed in the scouting section), but be prepared that corners
of the image will be distorted and not really usable (but we can fix that in processing step). Or you can go
to unusual aspect ratios, like we did in &lt;a href="https://wiki.debconf.org/wiki/DebConf10/GroupPhoto"&gt;Debconf 10&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In the absence of a 100MP+ camera, you will need to be stitching together multiple frames to achieve resolution
high enough to have enough pixels-per-face to see emotions clearly. This means that the photos you will actually
be taking will be tighter than the overall field of view mentioned above. Still, a higher resolution camera body
is preferable - nowadays 24MP-32MP cameras APS-C provide a good compromise between resolution and price, but
45-67MP full-frame cameras also exist on the market. Assume that we will be shooting in a bright environment,
so most likely with quite low ISO settings, that means that high-ISO noise characteristics of more expensive
cameras will not really play a role here. You will also not need very fast burst modes, even manual speed of
one frame per second is sufficient.&lt;/p&gt;
&lt;p&gt;You will also want to get as much detail as possible out of your lens, and this is the &lt;em&gt;most important&lt;/em&gt; part.
You can do amazing work in all other steps of the process and have a great camera too, but if you pair it with
a lens that is not sharp, then the end result will be disappointing.&lt;/p&gt;
&lt;p&gt;You want the lens that is sharpest corner-to-corner when stepped down to about f/8-f/11, that you can get for
your system. You also want that lens to be about 85mm full-size sensor or 50mm for 1.6 crop size. Luckily that kind of
range is also a great range for optical design and sharpest lenses are typically available in exactly these kinds
of sizes. You absolutely want to have a fixed focal length lens, not a zoom lens. Even profession grade zoom lenses
often deliver worse image quality compared to fixed lenses that cost less 1/10th of their price (when shooting in
the same focal length). Newer design lenses are better than older lenses - optical design, coatings and precision
manufacturing have advanced a lot over the decades. Retro look is great for mood, but not as good for actual
resolution and clarity. You don't need to overpay for most expensive lenses because those often only improve
image quality on lower F-stops. To encompass the whole group we will need to shoot at f/8 and in bright light,
so the extra benefits of those f/1.2-capable super expensive lenses will not come into play here.&lt;/p&gt;
&lt;p&gt;We will have no use for a flash here. A tripod will be too restrictive when rapidly repositioning the camera between
different parts of the panorama shoot. But a monopod might help with stability - I have not tried that myself,
however.&lt;/p&gt;
&lt;p&gt;For my last photos I used a Canon EOS R7 (32.5MP) with Canon RF 50mm f/1.8 STM lens and considering an upgrade
to Sigma 56mm f/1.4 DC DN for the next time.&lt;/p&gt;
&lt;h3&gt;Scouting&lt;/h3&gt;
&lt;p&gt;Scouting a good location for the group photo is another big chunk of a successful picture. The critical piece of
the puzzle is lens-to-face distance. In order to keep everyone's face in-focus and have enough resolution on the
farthest faces (without making nearest faces truly massive) we want to do everything possible to reduce the
variance in lens-to-face distance - to reduce the difference in distance between closest and farthest face.&lt;/p&gt;
&lt;p&gt;The most effective way to do that is to have the photographer climb higher. To see this in action on the
&lt;a href="https://wiki.debian.org/DebConf/GroupPhotoAll"&gt;Debconf photos&lt;/a&gt;, compare Debconf6 (very high camera position,
group on level ground - good) to Debconf10 (camera not too high, group on stairs, still good) and to Debconf17
(camera could not get high enough and the group is on flat ground - not great). Even the Debconf25 photo was
suboptimal from this perspective. The Debconf23 photo was a very good example from the recent years - good height
and also the group was positioned in a semi-circle so there were no people directly in front and very near to
the camera.&lt;/p&gt;
&lt;p&gt;So you are looking for the highest point you could get to (even if that requires a special permission of key or a
ladder) with a field large enough to fit the whole group comfortably. How to check that? Normally I simply take a
photo from the top of the whole area and note down from there where the extreme corners of the group could be
and still be fully seen in the shot - not blocked by trees, buildings and shadows. Then I go down and measure
that space. Rule of thumb being - people in one horizontal line can stand 1 normal length step from each other and
two horizontal lines can be half a step from each other vertically. So I can just measure a rough rectangle in
steps, multiply the sides, multiply that by two and I have the rough number of people that can fit there for the
photo.&lt;/p&gt;
&lt;p&gt;Once you have a candidate location or two, it is important to check them at the same time-of-day as you plan to
do the photo (see organization section for that). You want to make sure that the whole area of the group is in the
same illumination - if half of the group is in the sun and half in a shadow, then you will be having a very bad
time later. The absolute ideal positioning for the group photo is to have everyone be in shadow, but still have
enough bright skies and bright buildings in front of the people to give good illumination of the faces. Worst
you can do is have the sun be behind the people (so all the faces are really dark) and second worst is have the sun
be directly in front of the group, so that the faces are very well illuminated, but everyone's eyes are closed
because they are being blinded by the sun. And sometimes all you can do is pray for some light clouds to provide
for even and dispersed light. Debconf23 was very lucky that way.&lt;/p&gt;
&lt;p&gt;Another consideration is to how people are going to get to that place. You need to consider accessibility needs
of people (it is ok, if it takes more effort or time, but it needs to be organized and communicated well in
advance). And you need to consider how the big masses of people will be getting there - how to tell people where
&lt;em&gt;exactly&lt;/em&gt; it is and how to get there from various locations where people might be hanging out during the event?&lt;/p&gt;
&lt;p&gt;Having an alternate location indoors might be necessary if the weather report for the next days is not sufficiently
predictable. We had to use that contingency in Debconf9, for example.&lt;/p&gt;
&lt;h3&gt;Organization&lt;/h3&gt;
&lt;p&gt;It's hard to take a good group photo if half of the group does not show up or is too late, so this needs some
organization to happen smoothly.&lt;/p&gt;
&lt;p&gt;First of all you need to choose date and time for the photo. The photo does not take too much time from the
schedule of the event and can be squeezed in after all the other events are already scheduled. In fact I prefer
that as it allows you the flexibility of choosing the date based on weather conditions and time based on light
and shadow conditions in potential photo spots. You don't want to choose the daytrip day as most people will be
away and return times are not really predictable. You do not want to choose the morning after Cheese and Wine
party for obvious reasons. First day and last two days are also sub-optimal as some people arrive late and some
leave early for various personal reasons. Also &lt;em&gt;you&lt;/em&gt; don't want it to happen just before Cheese and Wine either
because then you'd have very little time and clarity to do the processing of the image on the same day.&lt;/p&gt;
&lt;p&gt;For timing, the best way, in my experience, is to schedule the photo directly after the end of talk sessions before
a meal break - lunch or dinner. Typically in the Debconf schedule there are 2-3 daily breaks planned, say for
Debconf25 there was lunch, afternoon break and dinner. Talks are planned to end ~10 minutes before those breaks
(and meals) begin, so for example, afternoon break starts at 16:00 and all talks in the previous block end at
15:50. In such a case just schedule the "Group photo" event from 15:50 to 16:05. This gives people the info to go
there &lt;em&gt;directly&lt;/em&gt; from the end of all talks and that they will have sufficient time for break/meal afterwards.
Do not forget to specify the location (as exactly as possible) in that event entry and make sure to post it at
least two days in advance. People often want to wear something specific for the photo and thus need to know about it
in advance. This also makes sure that people do not make alternate food plans for that specific break and don't
leave the venue.&lt;/p&gt;
&lt;p&gt;Announce the date, time and the exact location as wide as possible, don't be shy. Announce and discuss mailing
lists, IRC, Signal, Telegram, make sure the front desk knows in case anyone asks in-person, ... Check that it
is again included in the announcements email on the day preceding the photo date.&lt;/p&gt;
&lt;p&gt;When the date has arrived, it is a good idea to check in early with people with special mobility needs to make
sure they know where to go, how to get there and how much time they will need to be able to get there on time.&lt;/p&gt;
&lt;p&gt;As the final round of talks before the group photo is starting up, it is time to recruit "runners". I've had great
success with this technique. The idea is pretty simple - for each room where people congregate (talk rooms,
hacklabs, cafeteria, outside hackspace, front-desk, ...) go there and choose one person. You want to choose a person
that you will recognise and remember among everyone else in the group, either because of who they are or what they
are wearing, whatever works best for you. If they agree to help, instruct them to: "at end of talk, announce that
the group photo happening now and the location, herd people towards the photo location, be the last person out,
make sure there are no stragglers from this area behind you, when you arrive to the photo place I will assume
that everyone else from this room is also now there, when you are there catch my attention and show this sign so
I know for sure that it is all good and make sure that I did see it from you". With that sorted out all you will
need to remember is how many runners you recruited and how many have reported in to figure out if everyone has now
arrived or if we still have to wait for someone or some group.&lt;/p&gt;
&lt;p&gt;Then you will only have one last point of organization left - shaping the crowd into a group. People will not
know what your vision for the group photo is, so you will have to give clear and &lt;strong&gt;LOUD&lt;/strong&gt; instructions on where
people should &lt;em&gt;not&lt;/em&gt; be standing. Use clear, large gestures to support your words. You want to compact the group,
have the people that just joined in the last moment and are standing to the side come deeper in and join the
crowd. Have any holes in the middle of the crowd filled in. Forming a semi-circle instead of a blob helps with
averaging face-to-lens distances. Make sure people are not in unexpected shadows. Make sure carried objects, like
umbrellas of flags do not cover the faces of other people. Take the time to look at everyone face to make sure there
are no people hiding behind someone's shoulder - typically they are not aware that their face is in fact not really
visible. If there are such people, call them out and point directly at them and encourage them to step forward, if
they wish to do so. You are the &lt;em&gt;only&lt;/em&gt; one seeing the final picture now and only you can correct it before
capturing the moment. So a few extra seconds here are worth taking, even if 300+ people are standing in scorching
heat and waiting on you.&lt;/p&gt;
&lt;p&gt;When you are happy with what you are seeing, make sure to tell people clearly that you are now about to take
the pictures and &lt;em&gt;again&lt;/em&gt; remind them not to move and &lt;em&gt;explicitly&lt;/em&gt; not to turn their heads to the side until you
are done (this is the source of most of the extra work in processing). Be very loud and clear and make sure
you have everyone's undivided attention &lt;em&gt;before&lt;/em&gt; you start saying the important stuff.&lt;/p&gt;
&lt;p&gt;When done - say so. There will be other groups that will want to also have a photo taken after the main group
is a bit more dispersed, so don't run away. Typically at least the T-shirt group will want a picture and also
all the organizers.&lt;/p&gt;
&lt;p&gt;Final bit of organization during the group photo shooting itself is the sneaky self-insert. You may choose not
to bother with it, or do it in the simplest way, like I did in Debconf6, but if you really want to blend in with
the crowd, you need to have someone else take a photo of you in the exact same location at the same date and time
from the same location. So you should already during shaping the crowd decide where you would fit in, it is easiest
to blend in at the back of the crowd and to one or other side, so that it appears like you are just standing behind
the shoulders of a couple peoples. Remember that spot - it is easiest if you stand in the exact same ground spot
when your photo is taken. Just go down, recruit a volunteer to take your photo, make sure the settings are fixed
to the same ones as for the group photo shots and have them take a handful of shots of you - one of you centered in
the camera frame and a couple more with you more towards the corners of the frame. This distortion from being
off-center in the frame may be important later.&lt;/p&gt;
&lt;h3&gt;Preparation&lt;/h3&gt;
&lt;p&gt;In addition to preparing the crowd for the photo, you also need to prepare yourself and the equipment. Make sure
you have dusted your camera sensor and cleaned both inside and outside glass of your lens. It is usually a good
idea to remove any filters from the lens. Install the hood, if that could help with blocking the sun flares.
Make sure you have the right lens and that you have installed the right lens.&lt;/p&gt;
&lt;p&gt;For fixed settings I typically shoot in JPEG with RAW being there more like an emergency backup. The extra dynamic
range of RAW could be used, but it is really complex to do that in combination with image blending and it is
hard to get right, so I prefer an all-JPEG workflow and fix the dynamic range in the scene itself, before shooting.
For Canon I am using the Standard profile that boosts the color saturation and sharpness a bit as I just enjoy
that look and find it hard to get anything significantly better from RAW data even with a lot of effort.
In any case make sure you have enough space on the cards to take at least 100 images and that you have a full
battery. Do not use high speed burst setting because it is then too easy to take too many pictures at the start
of the sequence and be stuck with your camera still in "Busy" state writing big RAW files to slowish SD cards
and not allowing you to finish the full picture rapidly.&lt;/p&gt;
&lt;p&gt;You want to have the shutter speed at at least 1/100th of a second to prevent blur from both your hand movements
and also from people in the shot moving around a bit (image stabilisation will not help you there). And you want
to have the aperture to be around f/8 - lower apertures risk people in front or behind falling out of focus, make
the lenses look less sharp. Higher apertures also start to become less sharp due to diffraction effects above f/8.
ISO should stay as low as possible, ideally at ISO 100, but if there is not enough light then upping the ISO to 400
would be the first step that I would try to do and second would be decreasing the aperture to f/5.6. If there is
too much light, then increasing the shutter speed should be the safe thing to do.&lt;/p&gt;
&lt;p&gt;As people start to arrive into the shooting location - check the exposure and nail down the settings, ideally in
manual mode. Consider that left side could be a bit lighter or darker than right side. Err on the side of making
the picture a bit too dark as there is more depth to darkness before cut-off compared to clipping on the high
end. However, do not trust the exposure detection, instead take a picture and look specifically at skin tones in
faces of people that already are standing in the photo area. Faces are the key bit and the exposure needs to be
adjusted just to the faces and ignore darker of lighter clothing. Do some test shots and find settings where faces
look not too bright, but also not very dark and fix those settings in manual mode.&lt;/p&gt;
&lt;p&gt;Now you are ready for the action. Shape the crowd, check the faces and the action can start!&lt;/p&gt;
&lt;h3&gt;Execution&lt;/h3&gt;
&lt;p&gt;During taking of the group photo you want to finish it fast, but at the same time you have to take the time to
make it right. If you hurry too much under pressure, you risk being left with unusably blurry images and the
whole effort wasted. Having already prepared and verified the manual settings makes it easier.&lt;/p&gt;
&lt;p&gt;When you are taking pictures, you have to remain as still as possible - even at very high
shutter speeds even slow hand movements are still bad for image quality. So think of the movement as of
biathlon athlete shooting the very middle of five, very separate targets - take a burst, reframe, then steady
up for a second and only then take the next burst. 3 frames per burst are sufficient. 90% of the time the very
first photo of a burst will be best. As you move from frame to frame, aim for just a bit more than half-frame
overlap. This will give the opportunity to skip frames if all is good, but also have backup coverage of every
face in case of problems. Proceed systematically, I typically start off on the top left of the crowd, then
go right until the end of the line, then shift down half a frame and go left until the end and repeat until
I am done with the crowd. &lt;/p&gt;
&lt;p&gt;After that it is &lt;em&gt;very&lt;/em&gt; helpful to also immediately take photos of a "frame" around
the whole crowd. Stitching process often distorts the frames in weird ways that leave holes in the resulting image
that you can fill if you have a wide frame around the crowd. It is possible to compensate with creative
cutouts in the final image (like Debconf9), but the more framing room you make, the more flexible you will be
able to be with cropping of the final photo. The frame also gives you the opportunity to capture more of the
context of the place and space.&lt;/p&gt;
&lt;p&gt;As an example, Debconf25 group photo in the end consisted from 9 images + 1 for sick people + 1 for me. I ended
up missing the framing shots for bottom left, top left and top right corners. To get there I took 68 images. And
in some years it was more than a hundred.&lt;/p&gt;
&lt;h3&gt;Processing&lt;/h3&gt;
&lt;p&gt;This part might be less stressful than taking the pictures from intensity perspective, but it lasts longer. Depending
on you luck, skill and perfectionism it can take anywhere from 3 to 9 hours of work to complete.&lt;/p&gt;
&lt;p&gt;Before you start, however, you should first request things that you will need for other people. This &lt;em&gt;can&lt;/em&gt; even be
done before taking the actual group photo, but usually I forget. To finish the photo you will need three things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;good quality vector graphics of the current Debconf logo&lt;/li&gt;
&lt;li&gt;good quality vector graphics of the &lt;em&gt;next&lt;/em&gt; years Debconf logo (even if preliminary)&lt;/li&gt;
&lt;li&gt;motto of the conference&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first two you should be able to get from the respective organizers. The motto is harder. I typically try to
ask the current DPL to come up with something describing the current mood of the project or of the event, but
it is rare that it is that easy. Most of the time I came up with something as I was editing the photo and
reflecting on what was the mood, the feeling, the mojo of this conference and of this year was like. Bend that
around a recognisable phrase or expression, make it a bit more insider-relevant and you are on the right path.
Some years this was the hardest part.&lt;/p&gt;
&lt;p&gt;For the panorama stitching I will describe the workflow that has served me good for years, but maybe there are
better ways possible nowadays. Feel free to let me know!&lt;/p&gt;
&lt;p&gt;First I would save all photos taken and select one sharpest photo from every burst. Next I would select the minimal
number of photos that appear to be covering the entire crowd. The fewer images you use, the better in the end
because the most quality problems crop up in the areas where photos are getting stitched together. Fewer seams
leads to fewer issues.&lt;/p&gt;
&lt;p&gt;Open &lt;a href="https://packages.debian.org/search?keywords=hugin"&gt;Hugin&lt;/a&gt; (you will also need enblend and enfuse installed)
and import your minimal set of images into it. Click the "Align" button and wait a while - the processor will be
trying to figure out keypoints in each image and then try to match these points between the images to try to
fit them all together into a single projection. To do that it will distort the images. This is the trial and error
process part. You may need to add, remove or replace images to get the stitching to work or to work better. You
may want to add more of the frame images to fill the ragged holes around the image.&lt;/p&gt;
&lt;p&gt;After initial alignment, go to "Move/Drag" tab and move the image a bit up in the projected field of view and
make it a bit more central visually. That will help a bit with the distortions in the near-by people and people
in the corners of the image. In the "Crop" tab set the initial crop - leave it generous, you can always crop more
in later steps. Do not be afraid of leaving in sizable chunks of black homes, empty skies or grass. All of that
can be filled in later as well.&lt;/p&gt;
&lt;p&gt;Go back to the "Assistant" tab and click "Create panorama". It is good enough to have JPEG output at 100% quality
using exposure corrected low dynamic range output option. Make sure to check the "Keep intermediate images" option.
This will not only generate the final, merged panorama, but also keep around the individual images &lt;em&gt;after&lt;/em&gt;
perspective correction and exposure blending steps. These are critical for fixing blending error in the next step.&lt;/p&gt;
&lt;p&gt;You might need to go back a forth a few times with a different sets of source images, maybe adding some image
between other two, maybe removing another to reach a better starting point. The key part to pay attention - how
many ugly stitches are there in the image. Check every face, the blending algorithms do not recognise faces and
sometimes try to stitch one face from two or more images creating very weird effects. They &lt;em&gt;can&lt;/em&gt; be fixed in the
next step, but it is rather hard manual work, so the fewer such faces are in the blended image, the less work
you will have. In some years I've managed to find a combination where all faces were good and in other years
I had to manually fix 13-15 faces.&lt;/p&gt;
&lt;p&gt;Do not try to blend the extra pictures (like with you or with sick people) into the main panorama with Hugin - it
will get very confused with the parts of the grass that it is able to see where other people were standing.&lt;/p&gt;
&lt;p&gt;The next is the final processing in &lt;a href="https://packages.debian.org/search?keywords=gimp"&gt;GIMP&lt;/a&gt;. Think of it like
a large and complex project - do as much as possible in separate layers, save often.&lt;/p&gt;
&lt;p&gt;Fixing wrongly stitched faces and also putting yourself into the photo are very similar activities in the end.
Just the scale and the source differ. For yourself you just cut out yourself (upper torso is enough) from the
separate photo. For corrupted face, choose one of two intermediate images that the Hugin created where the
face is transformed, but not yet merged (with a different version of itself). In either case crop the photo to
roughly the interesting size and put roughly in the right spot as a separate layer on top of the group photo
background. Reduce the opacity of the small layer to 30-40% and zoom in to 400%. With that it is much simpler to
position the layer with pixel precision. Then all you need to do is add a layer mask to this layer and paint it
just right. Basically in layer mask black means transparent and white means non-transparent. So you need to &lt;em&gt;just&lt;/em&gt;
make everything that is you have white mask and everything that is not you have black mask. And smudge the border
a bit with finger tool or blur to make the transition smoother. Easy to say. Hard to do. This is what takes most
of the actual work hours in post-processing.&lt;/p&gt;
&lt;p&gt;You &lt;em&gt;might&lt;/em&gt; miss someone. I am sure Phill is just thrilled to see me in the very middle of the Debconf25 final
picture .... But do try to fix them all.&lt;/p&gt;
&lt;p&gt;Use large, sweeping geometric figures to cover up black holes, empty grass fields and other sub-optimal corner
features. And then use that newly created free space to put in a large version of the logo of this years
conference, decently sized motto and slightly smaller invitation to the next years conference.&lt;/p&gt;
&lt;p&gt;Do not forget to add a copyright and license statement somewhere in the corner in smaller, but still well
readable font. I am using a text like: "Photo by: Full Name, Email: fullemail@debian.org, License: GPLv2+ or
CCv3-BY" This ensures that this image may be used in any press coverage (with basic attribution) and also
can be included in any GPL-licensed software, if that ever comes up. The same statement is also in the
metadata of the image file (see Image-Metadata-Edit metadata in GIMP) along with information that states
that this is "Debian Developer Conference Group photo, City, Country, Year". 
Image-&amp;gt;Image properties-&amp;gt;Comment is another place where GIMP hides this EXIF information.&lt;/p&gt;
&lt;p&gt;For ease of use, in addition to a full-resolution image it is also useful to make a lower resolution version
that would still fit on a 4K screen at full resolution, so about 3840px wide. Some photo hosting services set
other limits for image size as well, so it might be needed to scale the image down below 100Mpix to upload it
to Google Photos, for example.&lt;/p&gt;
&lt;h3&gt;Publishing&lt;/h3&gt;
&lt;p&gt;So, it is finally 1AM and the group photo is ready! How do you push it out to people? Well, in all possible ways
and places. Again - don't be shy, people do really want to see it.&lt;/p&gt;
&lt;p&gt;Push it to whatever you use for your shared photos. Push it to 
&lt;a href="https://salsa.debian.org/debconf-team/public/share"&gt;Debconf shared git&lt;/a&gt; (note that this is GIT-LFS repo, make sure
you know how to add content to the LFS specifically). All permanent links to that in 
&lt;a href="https://wiki.debian.org/DebConf/GroupPhotoAll"&gt;GroupPhotosAll wiki&lt;/a&gt;. And then send those links to IRC, Signal,
Telegram groups, debconf-announce mailing list. Publish it in your blog and push that to 
&lt;a href="https://planet.debian.org/"&gt;Debian Planet&lt;/a&gt;. Push it in Threads, Bluesky and Mastodon.
 Send an email separately to Debconf orga team. And one to 
&lt;a href="https://wiki.debian.org/Teams/Publicity"&gt;Debian Publicity Team&lt;/a&gt; so they can put it into the
&lt;a href="https://www.debian.org/"&gt;Debian Home Page&lt;/a&gt; and push via Debian micronews accounts.&lt;/p&gt;
&lt;p&gt;And that is about it. Now you can go back to enjoying the rest of the conference. Or running around doing other
things that you think need to be done. It's up to you. You did it. This moment will remain with people for a
very long time. And you helped.&lt;/p&gt;
&lt;p&gt;Questions? Feedback? Just ask
&lt;a href="https://bsky.app/profile/aigarius.com/post/3mpytbrm5dc2w"&gt;here&lt;/a&gt; or
&lt;a href="https://www.threads.com/@aigarius/post/DadpZDbjqAx?xmt=AQG0WPOLDjK2ZkbDiiuXEOqQQWF5bum51R8V_uNtv9nliA"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><category>blog</category><category>Debian-planet</category><category>photo</category><category>Ubuntu.lv-planet</category><guid>http://aigarius.com/blog/2026/07/05/making-of-group-photo/</guid><pubDate>Mon, 06 Jul 2026 19:30:00 GMT</pubDate></item><item><title>Value of outreach and diversity to Debian</title><link>http://aigarius.com/blog/2026/03/23/value-of-outreach/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;p&gt;A question came up in private conversations, but the answer IMHO is useful
generally, so this is a repost. The question was generally on the topic of
divercity and outreach - if it does really help underpriviledged people to give
them some handout and hope that that somehow turns them into priviledged people?
IMHO this is an important question in current world environment in general and
to Debian in particular.&lt;/p&gt;
&lt;p&gt;IMHO It's not about making unprivileged people more privileged than current
contributors or about giving some kind of handouts.&lt;/p&gt;
&lt;p&gt;Just talking from my personal perspective, it is more about analysing where past
decisions (even perfectly reasonable ones) inadvertently created biases and
trying to figure out ways to balance them out over time so that we don't end up
missing good contributors just because they were, for example, unlucky with the
country of their birth.&lt;/p&gt;
&lt;p&gt;A simple example - think back a couple decades - where was the best place in the
world to learn how to develop free software in general and Debian in particular?
Where you had the largest chances of meeting an experienced developer in person
with enough free time who could show you the ropes and explain to you things
that are hard to put into documentation? I'd say those would be the campuses of
a bunch of technical universities in the USA, UK and the rest of Western Europe.&lt;/p&gt;
&lt;p&gt;If you were not attending a university, you were out of luck. If you were rural
in a smaller campus, you were out of luck. If you were on a different
continent - guess what? Still out of luck. Even Eastern Europe - so close, and
yet - out of luck.&lt;/p&gt;
&lt;p&gt;This made perfect sense and was a perfectly reasonable way to operate back
then - Western universities had the highest density of people who had both the
skill and the free time to contribute to free software. It was a no-brainer to
start there. It was not a mistake to do so. But it had side-effects.&lt;/p&gt;
&lt;p&gt;I was very lucky and persistent to overcome this out-of-luck situation, despite
the closest developers being 500-600 km away and across a sea and me operating
on actual dial-up Internet with barely enough money for a bus ticket, never mind
a sea ferry or a plane ticket. Or a laptop to take on such a plane. Thousands of
others around me, including many very competent software developers, did not
have that kind of luck and persistence and thus are not contributing to free
software or Debian at all.&lt;/p&gt;
&lt;p&gt;If we look back at the past, we can recognise that past decisions left whole
continents and also whole classes of people that were not given the opportunity
to learn how and why to contribute to free software and Debian. That is in the
end a realisation that there are many fine future developers out there who we
have not reached out to yet. At this point &lt;em&gt;that&lt;/em&gt; is a great untapped source of
new developers for the project. Opportunities in western universities will still
be there, noone wants to or can tear them down, but they also do not really need
investment of attention, time and money to keep being effective. But other
places do need that investment to start being effective. To start adding new
developers to the community.&lt;/p&gt;
&lt;p&gt;Outreach to diverse communities is in &lt;em&gt;our&lt;/em&gt;, selfish interests. Naturally we
still need to figure out how much effort is actually spent on that and evaluate
efficiency of different approaches. But in principle it &lt;em&gt;is&lt;/em&gt; what we want to do.&lt;/p&gt;
&lt;p&gt;(And also our knowledge might make their lives better, but that's a minor side
effect. /s)&lt;/p&gt;
&lt;p&gt;Questions? Feedback? Just ask
&lt;a href="https://bsky.app/profile/aigarius.com/post/3mhpsppg4fs2s"&gt;here&lt;/a&gt; or
&lt;a href="https://www.threads.com/@aigarius/post/DWORNr8iB9Y?xmt=AQF0y_tx8bqRwnwSm0BcMihG6z4TD-CNXgpYTRDkD73g1g"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><category>blog</category><category>car</category><category>Debian-planet</category><category>hardware</category><category>Ubuntu.lv-planet</category><category>work</category><guid>http://aigarius.com/blog/2026/03/23/value-of-outreach/</guid><pubDate>Mon, 23 Mar 2026 10:00:00 GMT</pubDate></item><item><title>Sedan experience (BMW i5)</title><link>http://aigarius.com/blog/2026/01/07/sedan-experience/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;div&gt;&lt;h2&gt;Two years of midsize electric sedan experience&lt;/h2&gt;
&lt;p&gt;This February (2026) marks a full 10 years since I started working for BMW, and
a key employment bonus is the ability to drive a company car on special two-year
leasing terms. Just before the new year 2026 started, I said goodbye to my
latest company car. After driving the
&lt;a href="https://aigarius.com/blog/2022/06/29/long-travel-in-an-electric-car/"&gt;BMW i4&lt;/a&gt;,
I switched to the
&lt;a href="https://www.bmw.de/de/neufahrzeuge/bmw-i/i5/bmw-i5-ueberblick.html"&gt;BMW i5&lt;/a&gt;. In
terms of power, it was a downgrade as I switched from the maximum power i4 M50
xDrive (all-wheel drive, 600 hp) to the i5 eDrive40 (rear-wheel drive, 340 hp).
Did I regret that? Not for a single second! After driving 60,000 km in the last
two years with the BMW i5, I was really sad to let it go -- it was the best car
I have ever driven. Simple as that.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://aigarius.com/blog/2026/01/07/sedan-experience/"&gt;Read more…&lt;/a&gt; (16 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>blog</category><category>car</category><category>Debian-planet</category><category>hardware</category><category>Ubuntu.lv-planet</category><category>work</category><guid>http://aigarius.com/blog/2026/01/07/sedan-experience/</guid><pubDate>Tue, 13 Jan 2026 10:00:00 GMT</pubDate></item><item><title>Snapshot mirroring in Debian (and Ubuntu)</title><link>http://aigarius.com/blog/2025/08/04/snapshot-mirrors/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;h2&gt;Snapshot mirroring in Debian (and Ubuntu)&lt;/h2&gt;
&lt;p&gt;The use of snapshots has been routine in both
&lt;a href="http://snapshot.debian.org"&gt;Debian&lt;/a&gt; and &lt;a href="http://snapshot.ubuntu.com"&gt;Ubuntu&lt;/a&gt;
for several years now—or more than 15 years for Debian, to be precise. Snapshots
have become not only very reliable, but also an increasingly important part of
the Debian package archive.&lt;/p&gt;
&lt;p&gt;This week, I encountered a problem at work that could be perfectly solved by
correctly using the Snapshot service. However, while trying to figure it out, I
ran into some shortcomings in the documentation. Until the docs are updated, I
am publishing this blog post to make this information easier to find.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem 1:&lt;/strong&gt; Ensure fully reproducible creation of Docker containers with the
&lt;em&gt;exact&lt;/em&gt; same packages installed, even &lt;em&gt;years&lt;/em&gt; after the original images were
generated.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution 1:&lt;/strong&gt; Pin &lt;em&gt;everything&lt;/em&gt;! Use a pinned source image in the &lt;code&gt;FROM&lt;/code&gt;
statement, such as &lt;code&gt;debian:trixie-20250721-slim&lt;/code&gt;, and also pin the APT package
sources to the "same" date - "20250722".&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Hint:&lt;/em&gt; The APT packages need to be &lt;em&gt;newer&lt;/em&gt; than the Docker image base. If the
APT packages are a bit newer, that's not a problem, as APT can upgrade packages
without issues. However, if your Docker image has a newer package than your APT
package sources, you will have a &lt;em&gt;big&lt;/em&gt; problem. For example, if you have
"libbearssl0" version 0.6-2 installed in the Docker image, but your package
sources only have the older version 0.6-1, you will fail when trying to install
the "libbearssl-dev" package. This is because you only have version 0.6-1 of the
"-dev" package available, which hard-depends on &lt;em&gt;exactly&lt;/em&gt; version 0.6-1 of
"libbearssl0", and APT will refuse to downgrade an already installed package to
satisfy that dependency.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem 2:&lt;/strong&gt; You are using a &lt;em&gt;lot&lt;/em&gt; of images in a &lt;em&gt;lot&lt;/em&gt; of executions and
building tens of thousands of images per day. It would be a bad idea to put all
this load on public Debian servers. Using local sources is also faster and adds
extra security.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution 2:&lt;/strong&gt; Use local (transparently caching) mirrors for both the Docker
Hub repository and the APT package source.&lt;/p&gt;
&lt;p&gt;At this point, I ran into another issue—I could not easily figure out how to
specify a local mirror for the &lt;em&gt;snapshot&lt;/em&gt; part of the archive service.&lt;/p&gt;
&lt;p&gt;First of all, snapshot support in both Ubuntu and Debian accepts both syntaxes
described in the Debian and Ubuntu documentation above. The documentation on
both sites presents different approaches and syntax examples, but both work.&lt;/p&gt;
&lt;p&gt;The best approach nowadays is to use the "deb822" sources syntax. Remove
/etc/apt/sources.list (if it still exists), delete all contents of the
/etc/apt/sources.list.d directory, and instead create this file at
/etc/apt/sources.list.d/debian.sources:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Types: deb
URIs: https://common.mirror-proxy.local/ftp.debian.org/debian/
Suites: trixie
Components: main non-free-firmware non-free contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Snapshot: 20250722
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Hint: This assumes you have a mirror service running at
common.mirror-proxy.local that proxies requests (with caching) to whitelisted
domains, based on the name of the first folder in the path.&lt;/p&gt;
&lt;p&gt;If you now run &lt;code&gt;sudo apt update --print-uris&lt;/code&gt;, you will see that your
configuration accesses your mirror, but does not actually use the snapshot.&lt;/p&gt;
&lt;p&gt;Next, add the following to /etc/apt/apt.conf.d/80snapshots:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;APT::Snapshot "20250722";
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That should work, right? Let's try &lt;code&gt;sudo apt update --print-uris&lt;/code&gt; again. I've
got good news and bad news! The good news is that we are now actually using the
snapshot we specified (twice). The bad news is that we are completely ignoring
the mirror and going directly to snapshots.debian.org instead.&lt;/p&gt;
&lt;p&gt;Finding the right information was a bit of a challenge, but after a few tries,
this worked: to specify a custom local mirror of the Debian (or Ubuntu) snapshot
service, simply add the following line to the same file,
/etc/apt/apt.conf.d/80snapshots:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Acquire::Snapshots::URI::Override::Origin::debian "https://common.mirror-proxy.local/snapshot.debian.org/archive/debian/@SNAPSHOTID@/";
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Now, if you check again with &lt;code&gt;sudo apt update --print-uris&lt;/code&gt;, you will see that
the requests go to your mirror &lt;em&gt;and&lt;/em&gt; include the specified snapshot identifier.
Success!&lt;/p&gt;
&lt;p&gt;Now you can install any packages you want, and everything will be completely
local and fully reproducible, even years later!&lt;/p&gt;</description><category>blog</category><category>debian</category><category>Debian-planet</category><category>photo</category><category>travel</category><category>Ubuntu.lv-planet</category><guid>http://aigarius.com/blog/2025/08/04/snapshot-mirrors/</guid><pubDate>Mon, 04 Aug 2025 18:00:00 GMT</pubDate></item><item><title>Debconf 25 photos</title><link>http://aigarius.com/blog/2025/08/03/debconf25-photos/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;h2&gt;Debconf 25 photos&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://debconf25.debconf.org/"&gt;Debconf 25&lt;/a&gt; came to the end in Brest, France
this year a couple weeks ago.&lt;/p&gt;
&lt;p&gt;This has been a very different and unusually interesting Debconf. For me it was
for two, related reasons: for one the conference was close enough in Western
Europe that I could simply drive there with a car (which reminds me that I
should make a blog post about the BMW i5, before I am done with it at the end of
this year) and for the other - the conference is close enough to Western Europe
that many other Debian developers could join this year who have not been seen at
the event for many years. Being able to arrive early, decompress and spend extra
time looking around the place made the event itself even more enjoyable than
usual.&lt;/p&gt;
&lt;p&gt;The French cuisine, especially in its Breton expression, has been a very welcome
treat. Even if there were some rough patches with the food selection, amount, or
waiting, it was still a great experience.&lt;/p&gt;
&lt;p&gt;I specifically want to say a big thank you to the organisers for everything, but
&lt;em&gt;very explicitly&lt;/em&gt; for planning all the talk/BOF rooms in the same building and
almost on the same floor. It saved me a lot of footwork, but also for other
participants the short walks between the talks made it possible to always have a
few minutes to talk to people or grab a croissant before running to the next
talk.&lt;/p&gt;
&lt;p&gt;IMHO we should come back to a tradition of organising Debconf in Europe every
2-3 years. This maximises one of the main goals of Debconf - bringing as many
Debian Developers as possible together in one physical location. This works best
when the location is actually close to large concentrations of existing
developers. In other years, the other goal of Debconf can then take priority -
recruiting new developers in new locations. However, these goals &lt;em&gt;could&lt;/em&gt; both be
achieved at the same time - there are plenty of locations in Europe and even in
Western Europe that still have good potential for attracting new developers.
Especially if we focus on organising the event on the campuses of some larger
technically-oriented universities.&lt;/p&gt;
&lt;p&gt;This year was also very productive for me—a lot of conversations with various
people about all kinds of topics, especially technical packaging questions. It
has been a long time since the very basic foundations of Debian packaging work
have been so fundamentally refactored and modernized as in the past year.
Tag2upload has become a catalyst for git-based packaging and for automated
workflows via Salsa, and all of that feeds back into focusing on a few
best-supported packaging workflows. There is still a bit of a documentation gap
of a new contributor getting to these modern packaging workflows from the point
where the New Maintainers Guide stops.&lt;/p&gt;
&lt;p&gt;In any case, next year Debconf will be happening in Santa Fe, Argentina. And the
year after that it is all still open and in a close
&lt;a href="https://meetings-archive.debian.net/pub/debian-meetings/2025/DebConf25/debconf25-203-debconf-27-in-your-city.av1.webm"&gt;competition&lt;/a&gt;
between Japan, Spain, Portugal, Brazil and .. El Salvador? Personally, I would
love to travel to Japan (again), but Spain or Portugal would also be great
locations to meet more European developers again.&lt;/p&gt;
&lt;p&gt;As for Santa Fe ... it is quite likely that I will not be able to make it there
next year, for (planned) health reasons. I guess I should also write a new blog
post about what it means to be a Debconf Photographer, so that someone else
could do this as well, and also reduce the "bus factor" along the way.&lt;/p&gt;
&lt;p&gt;But before that - here is the main group photo from this year:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://salsa.debian.org/debconf-team/public/share/debconf25/-/blob/main/photos/aigarius/group/debconf25_group.jpg?ref_type=heads"&gt;&lt;img alt="DebConf 25 Group photo" src="https://salsa.debian.org/debconf-team/public/share/debconf25/-/raw/main/photos/aigarius/group/debconf25_group_tiny.jpg?inline=false"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can also see it on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://photos.app.goo.gl/iV2JAGcWT2pzePqP7"&gt;Google Photos&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also enjoy the rest of the photos:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://salsa.debian.org/debconf-team/public/share/debconf25/-/tree/main/photos/aigarius/sel?ref_type=heads"&gt;on git-lfs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://photos.app.goo.gl/zF1romToBgXpHKr77"&gt;on Google Photos&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Additionally, check out photos from other people on GIT LFS and consider adding
your own photos there as well.&lt;/p&gt;
&lt;p&gt;Other places I have updated with up-to-date information are these wiki pages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wiki.debian.org/DebConf/GroupPhotoAll"&gt;All Debconf Group Photos&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.debian.org/DebConf/25/Photos"&gt;All photos from Debconf25&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you took part in the
&lt;a href="https://wiki.debian.org/AndySimpkins/DC_PlayingCards2025"&gt;playing cards event&lt;/a&gt;,
then check your photo in
&lt;a href="https://salsa.debian.org/debconf-team/public/share/debconf25/-/tree/main/photos/aigarius/cards?ref_type=heads"&gt;this folder&lt;/a&gt;
and link to your favourite from your line in the playing card wiki&lt;/p&gt;</description><category>blog</category><category>debian</category><category>Debian-planet</category><category>photo</category><category>travel</category><category>Ubuntu.lv-planet</category><guid>http://aigarius.com/blog/2025/08/03/debconf25-photos/</guid><pubDate>Sun, 03 Aug 2025 15:00:00 GMT</pubDate></item><item><title>Debconf 24 photos</title><link>http://aigarius.com/blog/2024/08/02/debconf24-photos/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;p&gt;&lt;a href="https://debconf24.debconf.org/"&gt;Debconf 24&lt;/a&gt; is coming to a close in Busan,
South Korea this year.&lt;/p&gt;
&lt;p&gt;I thought that last year in India was hot. This year somehow managed to beat
that. With 35C and high humidity the 55 km that I managed to walk between the
two conference buildings have really put the pressure on. Thankfully the air
conditioning in the talk rooms has been great and fresh water has been
plentiful. And the korean food has been excellent and very energetic.&lt;/p&gt;
&lt;p&gt;Today I will share with you the main group photo:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://salsa.debian.org/debconf-team/public/share/debconf24/-/raw/main/photos/aigarius/group/debconf24_group.jpg?inline=false" alt="DebConf 24 Group photo" width="1064" height="734"&gt;&lt;/p&gt;
&lt;p&gt;You can also see it in:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://photos.google.com/share/AF1QipNWCTYCaSDyKioIJR1eolSpSF1RnPg55P61-ue_BV6A3ZGjitqXn2lQAhMEnsFrdQ/photo/AF1QipP7ljh6rqfuiaMY8_RCtecY1oQFaE_TMUIkNNE3?key=a3BNZG5OaW82Q2tKSzVCY3R5ZHlWTFlOUTczN2dR"&gt;on Google Photos&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://salsa.debian.org/debconf-team/public/share/debconf24/-/blob/main/photos/aigarius/group/debconf24_group.jpg"&gt;on git-lfs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The rest of my photos from the event will be published next week. That will give
me a bit more time to process them correctly and also give all of you a chance
to see these pictures with fresh eyes and stir up new memories from the event.&lt;/p&gt;</description><category>blog</category><category>debian</category><category>Debian-planet</category><category>photo</category><category>travel</category><category>Ubuntu.lv-planet</category><guid>http://aigarius.com/blog/2024/08/02/debconf24-photos/</guid><pubDate>Fri, 02 Aug 2024 09:00:00 GMT</pubDate></item><item><title>Figuring out finances part 5</title><link>http://aigarius.com/blog/2024/01/04/figuring-out-finances-part-5/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;p&gt;At the end of the
&lt;a href="https://aigarius.com/blog/2023/10/29/finance-project-four/"&gt;last part&lt;/a&gt; of this,
we got a Home Assistant OS installation that contains in itself a Firefly III
instance and that contains all the current financial information. They are
communicating and calculating predictions for me.&lt;/p&gt;
&lt;p&gt;The only part that I was not 100% happy with was accounting of cash
transactions. You see payments in cash are mostly made away from computer and
sometimes even in areas without a mobile Internet connection. And all Firefly
III apps that I tried failed at the task of creating a new transaction when
offline. Even the one recommended Telegram bot from Firefly III page used a
dialog-based approach for creating even a simplest transaction. Issue asking for
a one-shot transaction creation option stands as unresolved.&lt;/p&gt;
&lt;p&gt;Theoretically it would have been best if I could simply contribute that feature
to that particular Telegram bot ... but it's written in Javascript. By mapping
the API onto tasks somehow. After about 4 hours I still could not figure out
where in the code anything actually happens. It all looked like just sugar or
spagetty. Connectors on connectors on mappers.&lt;/p&gt;
&lt;p&gt;So I did the real open-source thing and just wrote my own tool.
&lt;a href="https://github.com/aigarius/firefly3_telegram_oneshot"&gt;firefly3_telegram_oneshot&lt;/a&gt;
is a maximally simple Telegram bot based on
&lt;a href="https://python-telegram-bot.org/"&gt;python-telegram-bot&lt;/a&gt; library.&lt;/p&gt;
&lt;p&gt;So what does it do? The primary usage for me is to simply send a message to the
bot at any time with text like "23.2 coffee and cake" and when the message
eventually reaches the bot, it then should create a new transaction from my
"cash" account to "Unknown" account in amount of 23.20€ and description "coffee
and cake".&lt;/p&gt;
&lt;p&gt;That is the key. Everything else in the bot is comfort.&lt;/p&gt;
&lt;p&gt;For example "/undo" command deletes the last transaction in cash account
(presumably added by error) and "/last" shows which transaction the "/undo"
would delete.&lt;/p&gt;
&lt;p&gt;And to help with expense categorisation one can also do a message like "6.1
beer, dest=Edeka, cat=alcohol" that would search for a destination account that
would fuzzy match to "Edeka" (a supermarket in Germany) and add the transation
to the category fuzzy matched to "alcohol", like "Shopping - alcoholic drinks".&lt;/p&gt;
&lt;p&gt;And to make that fuzzy matching more reliable I also added "/cat something" and
"/dest something" commands that would show which category or destination account
would be matched with a given string.&lt;/p&gt;
&lt;p&gt;All of that in around 250 lines of Python code and executed by a 17 line
Dockerfile (via the Portainer on my Home Assistant OS). One remaining function
that could be nice is creating a category or destination account on request (for
example when the first character of the supplied string is "+").&lt;/p&gt;
&lt;p&gt;I am really plesantly surprised about how much can be done with how little code
using the above Python library. And you never need to have any open incoming
ports anywhere to runs such bots, so the attack surface for such bot-based
service is much tighter.&lt;/p&gt;
&lt;p&gt;All in all the system works and works well. The only exception is that for my
particual bank there is still no automatic way of extracting data about credit
card transactions. For those I still have to manually log into the Internet
bank, export a CSV file and then feed that into the Firefly III importer.
Annoying. And I am not really motivated to try to hack my bank :D&lt;/p&gt;
&lt;p&gt;Has this been useful to any of you? Any ideas to expand or improve what I have?
Just find me as "aigarius" on any social media and speak up :)&lt;/p&gt;</description><category>blog</category><category>Debian-planet</category><category>finances</category><category>Ubuntu.lv-planet</category><guid>http://aigarius.com/blog/2024/01/04/figuring-out-finances-part-5/</guid><pubDate>Thu, 04 Jan 2024 20:46:14 GMT</pubDate></item><item><title>Figuring out finances part 4</title><link>http://aigarius.com/blog/2023/10/29/finance-project-four/</link><dc:creator>Aigars Mahinovs</dc:creator><description>&lt;p&gt;At the end of the
&lt;a href="https://aigarius.com/blog/2023/10/22/finance-project-three/"&gt;last part&lt;/a&gt; of
this, we got a Home Assistant OS installation that contains in itself a Firefly
III instance and that contains all the current financial information. Now I will
try to connect the two.&lt;/p&gt;
&lt;p&gt;While it could be nice to create a fully-featured integration for Firefly III to
Home Assistant to communicate all interesting values and events, I have an
interest on programming a more advanced data point calculation for my budget
needs, so a less generic, but more flexible approch is a better one for me. So I
was quite interested when among the addons in the Home Assistant Addon Store I
saw &lt;a href="https://appdaemon.readthedocs.io/en/latest/index.html"&gt;AppDaemon&lt;/a&gt; - a way
to simply integrate arbitrary Python processing with Home Assistant. Let's see
if that can do what I want.&lt;/p&gt;
&lt;p&gt;For start, after reading
&lt;a href="https://appdaemon.readthedocs.io/en/latest/HASS_TUTORIAL.html"&gt;the tutorial&lt;/a&gt; ,
I wanted to create a simple script that would use
&lt;a href="https://docs.firefly-iii.org/firefly-iii/api/"&gt;Firefly III REST API&lt;/a&gt; to read
the current balance of my main account and then send that to Home Assistant as a
sensor value, which then can be displayed on a dashboard.&lt;/p&gt;
&lt;p&gt;As a quick try I modified the provided hello_world.py that is included in the
default AppDaemon installation:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;requests&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;datetime&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;appdaemon.plugins.hass.hassapi&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;hass&lt;/span&gt;
&lt;span class="n"&gt;app_token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;FIREFLY_PERSONAL_ACCESS_TOKEN&amp;gt;"&lt;/span&gt;
&lt;span class="n"&gt;firefly_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;FIREFLY_URL&amp;gt;"&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;HelloWorld&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hass&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Hass&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;initialize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;run_every&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_asset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"now"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;set_asset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;ent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_entity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sensor.firefly3_asset_sparkasse_main"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;ent&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
            &lt;span class="n"&gt;ent&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;attributes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="s2"&gt;"native_value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="s2"&gt;"native_unit_of_measurement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="s2"&gt;"state_class"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"measurement"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="s2"&gt;"device_class"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"monetary"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="s2"&gt;"current_balance_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
                &lt;span class="p"&gt;})&lt;/span&gt;

        &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;firefly_url&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"/api/v1/accounts?type=asset"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;app_token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"Accept"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/vnd.api+json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;})&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="s2"&gt;"attributes"&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="s2"&gt;"name"&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"attributes"&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
                &lt;span class="k"&gt;continue&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"attributes"&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"Sparkasse giro"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;continue&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Account :"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"attributes"&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
            &lt;span class="n"&gt;ent&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_state&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"attributes"&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s2"&gt;"current_balance"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
                &lt;span class="n"&gt;attributes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="s2"&gt;"native_value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"attributes"&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s2"&gt;"current_balance"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
                    &lt;span class="s2"&gt;"current_balance_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fromisoformat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"attributes"&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s2"&gt;"current_balance_date"&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt;
                &lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Entity updated"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;It uses a URL and personal access token to access Firefly III API, gets the
asset accounts information, then extracts info about current balance and balance
date of my main account and then creates and/or updates a "sensor" value into
Home Assistant. This sensor is with
&lt;a href="https://developers.home-assistant.io/docs/core/entity/sensor/"&gt;metadata&lt;/a&gt; marked
as a monetary value and as a measurement. This makes Home Assistant track this
value in the database as a graphable changing value.&lt;/p&gt;
&lt;p&gt;I modified the file using the File Editor addon to edit the
&lt;code&gt;/config/appdaemon/apps/hello.py&lt;/code&gt; file. Each time the file is saved it is
reloaded and logs can be seen in the AppDaemon Logs section - main_log for
logging messages or error_log if there is a crash. Useful to know that
&lt;a href="https://requests.readthedocs.io/en/latest/"&gt;requests&lt;/a&gt; library is included, but
it hard to see in the docks what else is included or if there is an easy way to
install extra Python packages.&lt;/p&gt;
&lt;p&gt;This is already a very nice basis for custom value insertion into Home
Assistant - whatever you can with a Python script extract or calculate, you can
also inject into Home Assistant. With even this simple approach you can monitor
balances, budgets, piggy-banks, bill payment status and even sum of transactions
in particular catories in a particular time window. Especially interesting data
can be found in the insight section of the Firefly III API.&lt;/p&gt;
&lt;p&gt;The script above uses a trigger like
&lt;code&gt;self.run_every(self.set_asset, "now", 60 * 60)&lt;/code&gt; to simply run once per hour.
The data in Firefly will not be updated too often anyway, at least not until we
figure out how to make bank connection run automatically without user
interaction and not screw up already existing transactions along the way. In
theory a
&lt;a href="https://docs.firefly-iii.org/firefly-iii/features/webhooks/"&gt;webhook API&lt;/a&gt; of
the Firefly III could be used to trigger the data update instantly when any
transaction is created or updated. Possibly even using Home Assistant
&lt;a href="https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger"&gt;webhook integration&lt;/a&gt;.
Hmmm. Maybe.&lt;/p&gt;
&lt;p&gt;Who am I kiddind? I am &lt;em&gt;going&lt;/em&gt; to make that work, for sure! :D But first - how
about figuring out the future?&lt;/p&gt;
&lt;p&gt;So what I want to do? In short, I want to predict what will be the balance on my
main account just &lt;em&gt;before&lt;/em&gt; the next months salary comes in. To do this I would:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;take the current balance of the main account&lt;/li&gt;
&lt;li&gt;if this months salary is not paid out yet, then add that into the balance&lt;/li&gt;
&lt;li&gt;deduct all still unpaid bills that are due between now and the target date&lt;/li&gt;
&lt;li&gt;if the credit card account has not yet been reset to the main account, deduct
  current amount on the cards&lt;/li&gt;
&lt;li&gt;if credit card account has been reset, but not from main account deducted yet,
  deduct the reset amount&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To do that I need to use the Firefly API to read: current account info, status
of all bills including next due date and amount, transfer transactions between
credit cards and main account and something that would store the expected salary
date and amount. Ideally I'd use a recurring transaction or a income bill for
this, but Firefly is not really cooperating with that. The easiest would be just
to hardcode that in the script itself.&lt;/p&gt;
&lt;p&gt;And &lt;a href="https://github.com/aigarius/firefly3_ha_oracle"&gt;this&lt;/a&gt; is what I have come
up with so far.&lt;/p&gt;
&lt;p&gt;To make the development process easier, I separated put the params for the API
key and salary info and app params for the month to predict for, and predict
both this and next months balances at the same time. I edited the script locally
with Neovim and also ran it locally with a few mocks, uploading to Home
Assistant via the SSH addon when the local executions looked good.&lt;/p&gt;
&lt;p&gt;So what's next? Well, need to somewhat automate the sync with the bank (if at
all possible). And for sure take a regular database and config backup :D&lt;/p&gt;</description><category>blog</category><category>Debian-planet</category><category>finances</category><category>Ubuntu.lv-planet</category><guid>http://aigarius.com/blog/2023/10/29/finance-project-four/</guid><pubDate>Sun, 29 Oct 2023 17:00:00 GMT</pubDate></item></channel></rss>