Quantcast
Channel: Adam Young's Web Log
Browsing all 516 articles
Browse latest View live

Standard Deviation

Music and Lyrics by Adam Young, Copyright 2019All Rights Reserved When we Introducein to our search for truthdata gathered from the world outsideWe’re tempted to rejectmeasures as defectsspecimens...

View Article


More Personal Ansible

I can do anything. I can’t do everything. –Me Anything worth doing is worth doing in a way you can check in to git. To recall what I did from the command line, I should turn those actions into a...

View Article


Parsing a yum repo with XPath

https://gnome.pages.gitlab.gnome.org/libxml2/xmllint.htmlLets say you want to see what src RPMs are in a given yum repo. If the author used createrepo to create the yum repo, it should be an a fairly...

View Article

Why does rpmbuild perf.spec fail

The Linux Kernel git repo has a spec file that builds the Kernel RPM. However, it does not build perf or any of the other userland tools. I want to build a perf RPM using the same code as is used to...

View Article

Algebra VS Music Theory

Think of the algebraic formula:Y=5X+19Y and X are variables, but 5 and 19 are numbers. The numbers don’t change.In Algebra, we use letters as variables, and think of digit based numbers as the actual...

View Article


The development cycle

how to clean up code. run your code to make sure it works while (work_to_do){ make a small change test it commit to git } push to git server on local branch try it on another machine collapse git...

View Article

Fetching all packages from a Koji build

#bin/bash KOJI_URL=https://kojipkgs.fedoraproject.org/packages/kernel/6.12.0/0.rc3.20241015giteca631b8fe80.32.eln143/aarch64/ curl $KOJI_URL > aarch64.dir.html for PACKAGE in `xmllint --html...

View Article

Scoped versus unscoped RBAC

Role Based Access Control (RBAC) as defined by NIST is based on the concept of global roles. Global, in this case, means the scope of the application. So if you have the role of ADMIN, and you are in...

View Article


What Processor do I have?

dmidecode -t processor | grep Version Version: Ampere(R) Altra(R) Processor Version: Ampere(R) Altra(R) Processor

View Article


Preparing to send a patch to LKML

It took me a couple months to get back to my patch, and in the interim, I forgot everything about formatting a patch series to LKML. Here’s what I have remembered. There are a handful of tools I need...

View Article

FreeIPA: whoami via curl

Assuming PRINCIPAL is your Kerberos principal and $IPASERVER is the FQDN of your server, you can query your identity on the IPA server via curl: kinit $PRINCIPAL curl -k -H...

View Article

Long Refactoring: More loop cleanup

In my last article on the Long Refactoring series, I elided the process I went through to solve the bug. While preparing to turn the articles into a presentation, I went through the steps myself...

View Article

Long Refactoring: Backtracking

Now that I have cleaned the loop up somewhat, we can continue with the process of refactoring the code. This is a continuation to the article series I started here. This next step really moves beyond...

View Article


Options for Git clone of a big repository

Cloning the Linux Kernel repository takes time. We don’t need every commit ever for our work. But we do need multiple branches. Here are some numbers for how long it takes to do various operations....

View Article

xmllint for xpath

Beaker one liner using xmllint: bkr job-results J:61 | xmllint --xpath /job/recipeSet/recipe/roles/role - <role value="RECIPE_MEMBERS"/> The dash at the end makes it read from stdin

View Article


Adding stable to a blobless clone

We regularly sync various git repos from upstream to our company speicfic Linux repository. However, sometimes when working on a development machine, I need a branch from stable that we have not...

View Article

Getting a File from gitlab using a TOKEN

I work on a system in our lab that I connect to via SSH. Fetching a file via the web and pushing it to this machine is quite slow, and I want to pull on this machine directly. The trick to make this...

View Article


Long Refactoring: Generators

While the main solving function is now cleaned up, I am not very happy with the code that checks the validation on each cell. I am not going to go through each step here, as the pattern is well...

View Article

Image may be NSFW.
Clik here to view.

Rust and Dependency Injection.

For years now I have wanted to write a DI framework for Rust like I wrote for C++:http://adam.younglogic.com/2008/07/dependency-injection-in-c/However, I have not been able to wrap my head around how...

View Article

Long Refactoring: Resetting the class model

With the inclusion of the Generators, the main functions seem to be in the right shape. What seems off is the naming of things. For example, we have a couple functions that take a parameter named...

View Article
Browsing all 516 articles
Browse latest View live


Latest Images