Junichi Uekawa: fiemap, fincore.
fiemap, fincore.
I can use ioctl to understand which parts of file are placed
contiguously using fiemap ioctl, and how they are read using
fincore.
fiemap, fincore.
I can use ioctl to understand which parts of file are placed
contiguously using fiemap ioctl, and how they are read using
fincore.
exec startx so after rebooting, I ran
exec sway and to my astonishment sway started. Hooray!
However, I found that ssh-agent wasn't running so I couldn't ssh into
any servers. That's kinda a problem.
Launching ssh-agent under openbox was buried deep in
/etc/X11/Xsession.d/90x11-common_ssh-agent and clearly was not going to
happen via wayland.
Since programs using ssh-agent depend on the environment variables
SSH_AUTH_SOCK and SSH_AGENT_PID being globally available I thought I could
simply run $(eval ssh-agent) via my tty terminal before running exec sway.
And, that would have worked. Except... I like to add my keys via ssh-add -c
so that everytime my key is being used I get a ssh-askpass prompt to confirm
the use.
It seems that since ssh-add is started before a window manager is running, it
can't run the prompt.
Ok, we can fix this. After searching the web, I came upon a solution of running
ssh-agent via systemctl --user:
# This service myst be started manually after sway
# starts.
[Unit]
Description=OpenSSH private key agent
IgnoreOnIsolate=true
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
Then, in my ~/.bashrc file I have:
if [ -n WAYLAND_DISPLAY ]; then
export SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket
fi
I think $SSH_AGENT_PID is only used by ssh-agent to kill itself. Now that
is running via systemd - killing it should be do-able without a global
environment variable.
Done? Hardly.
I've been using impass (nee assword) happily for years but alas it is
tightly integrated with xdo and xclip.
So... I've switched to keepassxc which works out of the box with wayland.
My next challenge was the status bar. Farewell faithful
tint2. One of the reasons I failed on my
first two attempts to switch to Sway was the difficulty of getting the swaybar
to work how I wanted, particularly with nm-applet. Two things allowed me to move forward:
nmtui. Sigh.xclip with
wl-clipboard was a little tedious
but really not that difficult.
Getting my screen shot and screen recorder functionality was a bit harder. I
did a lot of searching before I finally found and compiled both swappy, screen
shot and
wf-recorder.
In the course of all my adventures, I came across the following helpful tips:
libreoffice-gtk3 to ensure libre office runs under waylandMOZ_ENABLE_WAYLAND to ensure firefox works properly.ssh-add command to ensure I am prompted for each use of my key seems to cause sway to crash intermittently.export XDG_CURRENT_DESKTOP=sway and export XDG_SESSION_TYPE=wayland to my .bashrc, and after hours of frustration, realize that I needed to configured firejail to allow it so that I can share my entire screen in Firefox. It doesn't yet support sharing a specific window, so I still have to keep chromium around for that (and Chromium can only share xwayland windows). Sigh. Oh, one more thing about Firefox: the option to choose what to share doesn't have "Entire Screen" as an option, you are just supposed to know that you should choose "Use operating system settings".~/.config/sway/config file I have: bindsym Mod4+e exec wtype " ". I have repeated that line for the main accent marks I need.about:config in the Firefox location window, searching for privacy.webrtc.legacyGlobalIndicator and setting it to False. The reddit thread also suggested finding privacy.webrtc.hideGlobalIndicator and setting it to True, but that setting doesn't seem to be available and setting the first one alone seems to do the trick.GDK_BACKEND=wayland,x11. First I just set it to wayland to get gtk3 apps to use wayland (like gajim). But that broke electron apps (like signal) which notice that variable but don't have a way to display via wayland (at least not yet). Setting it to "wayland,x11" shows the priority. Thank you ubuntu community.~/.config/sway/env. That seems like an official sway place to put them, but sway doesn't pay any attention to them. So I start sway via my own bash script which sources that file via [ -f "$HOME/.config/sway/env" ] && . "$HOME/.config/sway/env" before exec'ing sway.
Here is my monthly update covering what I have been doing in the free software world during February 2021 (previous month):
auth.User model. (#29), avoid some more database calls (#30), wrap some collections in tuples for compatibility (#32) and cope with only some of our related models actually being loaded (#33).mocassin. [...]
crossfire, golang-github-revel-revel, golang-github-viant-toolbox, python-aiosqlite & zmk.
kjs: Please make the opcodes.h file reproducible. (#983046)
notes.git repository as well as wrote a script to automatically-classify a number of issues [...].
167 and 168 to Debian:
difflib.Differ.compare with very large inputs; it is at least O(n^2) and makes diffoscope (appear to) hang. [...]dumpimage returning an appropriate exit code; check that the file actually exists. [...]magic.Magic to have an identical API between file's magic.py and PyPI's python-magic library. [...]requires black >= 20.8b1 (18.9b0\n detected) in test output. [...]weakref-related handling in Python 3.7 (i.e. Debian buster). [...]fit_expected_diff [...].Build-Depends. [...]test_apk.py::test_android_manifest as being allowed to fail for now. [...]u-boot-tools to (test) Build-Depends so salsa.debian.org pipelines test the new U-Boot FIT comparator. [...]assert_diff utility in a number of tests. [...][...]diffoscope.comparators.fit. [...]Inheriting PATH of X, use PATH is X in logging messages. [...]Config.acl and Config.xattr attributes [...] and set a default Config.extended_filesystem_attributes. [...]python-django:
2.2.18-1 New upstream security release. (#981562)2.2.19-1 New upstream security release. (#983090)3.2~alpha1-2 Apply security fix from upstream. (#983090)3.2~beta1-1 New upstream beta release.redis:
6.0.10-4 New upstream release, fixing cluster access to unaligned memory on ARM architectures with hard alignment requirements (such as armhf and arm64). (#982504)6.0.11-1 New upstream release, incorporating security fixes. (#983446)6.2~rc3-1 New upstream release candidate.6.2.0-1 New upstream stable release, incorporating security fixes. (#983446)gunicorn (20.1.0-1) New upstream release.
xtrlock (2.15) Also support the XK_KP_Enter key (i.e. the Enter on the numeric keypad) to submit a password. (#982634)
adminer (4.7.9-1) for Alexandre Rossi.
Debian LTS
This month I have worked 18 hours on Debian Long Term Support (LTS) and 12 hours on its sister Extended LTS project.
lts-cve-triage.py tool to configure Python paths early due to transitive imports in an included library. [...]
avahi (CVE-2021-26720), gdk-pixbuf (CVE-2021-20240), libraw (CVE-2020-24870), python3.5 (CVE-2021-3177), qemu (CVE-2020-15469, CVE-2020-15859, CVE-2020-25084 etc.), rails (CVE-2021-22880 & CVE-2021-22881), stunnel4 (CVE-2021-20230 & CVE-2021-20231) & zeromq3 (CVE-2021-20237)
netty as it was discovered that there was an insecure temporary file issue that could have lead to disclosure of arbitrary local files.
mumble, a VoIP client commonly used for group chats. The exploit could have been been triggered by a maliciously crafted URL on the server list.
openssl to prevent an issue where "Digital EnVeloPe" EVP-related calls could cause applications to behave incorrectly or even crash (CVE-2021-23840) and address to an issue in the X.509 certificate parsing caused by the lack of error handling while ingesting the 'issuer' field.
bind9 DNS server, caused by an issue in the GSSAPI ("Generic Security Services") security policy negotiation.
python-django to address a potential directory-traversal (CVE-2021-3281) and a cache-poisoning issue (CVE-2021-23336).
redis as it was reported that there were a number of integer overflow.

Since the freeze has slowly crept in, now is the time to revisit my pet peeve with Debian's release process: to publish a new Debian release as soon as GNOME published a new X.XX.0 version. This is an extremely bad idea: X.XX.0 releases tend to lack polish, their translations are not up-to-date and several silly bugs that hamper the user experience (what the Ubuntu guys call "paper cuts") exist. Those issues tend to be fixed later when GNOME X.XX.1, X.XX.2, etc. bugfix releases are published. However, Debian has a policy of not pushing non-security releases onto a stable distribution. In this particular case, there are only two valid alternatives: either release Bullseye with GNOME 3.38.X or change the Debian policy to allow pushing 3.40.X bugfix releases via bullseye-updates.
Re-projection error gives a good estimation of just how exact the found parameters are. The closer the re-projection error is to zero, the more accurate the parameters we found are.This statement is trivially proven false: throw away most of your calibration data, and your reprojection error becomes very low. But we can all agree that a calibration computed from less data is actually worse. Right? All the various assumptions and hacks in the existing tooling are fine as long as you don't need a whole lot of accuracy out of your results. I need a lot of accuracy, however, so all the existing tools don't work for my applications. So I built a new set of tools, and have been using them with great delight. I just got the blessing to do a public release, so I'm announcing it here. The tools are
docknot --help, and cleans up some documentation bugs left over
from the big changes in 4.00.
You can get the latest release from CPAN or from the
DocKnot distribution page.
Name Pair Bid Ask Spread Ftcd Age Freq
Bitfinex BTCEUR 39229.0000 39246.0000 0.0% 44 44 nan
Bitmynt BTCEUR 39071.0000 41048.9000 4.8% 43 74 nan
Bitpay BTCEUR 39326.7000 nan nan% 39 nan nan
Bitstamp BTCEUR 39398.7900 39417.3200 0.0% 0 0 1
Bl3p BTCEUR 39158.7800 39581.9000 1.1% 0 nan 3
Coinbase BTCEUR 39197.3100 39621.9300 1.1% 38 nan nan
Kraken+BTCEUR 39432.9000 39433.0000 0.0% 0 0 0
Paymium BTCEUR 39437.2100 39499.9300 0.2% 0 2264 nan
Bitmynt BTCNOK 409750.9600 420516.8500 2.6% 43 74 nan
Bitpay BTCNOK 410332.4000 nan nan% 39 nan nan
Coinbase BTCNOK 408675.7300 412813.7900 1.0% 38 nan nan
MiraiEx BTCNOK 412174.1800 418396.1500 1.5% 34 nan nan
NBX BTCNOK 405835.9000 408921.4300 0.8% 33 nan nan
Bitfinex BTCUSD 47341.0000 47355.0000 0.0% 44 53 nan
Bitpay BTCUSD 47388.5100 nan nan% 39 nan nan
Coinbase BTCUSD 47153.6500 47651.3700 1.0% 37 nan nan
Gemini BTCUSD 47416.0900 47439.0500 0.0% 36 336 nan
Hitbtc BTCUSD 47429.9900 47386.7400 -0.1% 0 0 0
Kraken+BTCUSD 47401.7000 47401.8000 0.0% 0 0 0
Exchangerates EURNOK 10.4012 10.4012 0.0% 38 76236 nan
Norgesbank EURNOK 10.4012 10.4012 0.0% 31 76236 nan
Bitstamp EURUSD 1.2030 1.2045 0.1% 2 2 1
Exchangerates EURUSD 1.2121 1.2121 0.0% 38 76236 nan
Norgesbank USDNOK 8.5811 8.5811 0.0% 31 76236 nan
Yes, I notice the negative spread on Hitbtc. Either I fail to
understand their Websocket API or they are sending bogus data. I've
seen the same with Kraken, and suspect there is something wrong with
the data they send.
As usual, if you use Bitcoin and want to show your support of my
activities, please send Bitcoin donations to my address
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.
168. This version includes the following changes:
* Don't call difflib.Differ.compare with very large inputs; it is at least
O(n^2) and makes diffoscope appear to hang.
(Closes: reproducible-builds/diffoscope#240)
* Don't use "Inheriting PATH of X" in debug log message; use "PATH is X".
* Correct the capitalisation of jQuery.
LG 27" 4K Monitor (3840x2160 60.00*+) to work without too much glitch, I had to live with an alias:
$ alias grep xrandr
alias rrs_xrandr_lg='xrandr --output DP-1 --mode 3840x2160 --scale .75x.75'
18:31
$ usystemctl status plasma-plasmashell.service
plasma-plasmashell.service - KDE Plasma Workspace
Loaded: loaded (/usr/lib/systemd/user/plasma-plasmashell.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-02-26 18:34:23 IST; 13s ago
Main PID: 501806 (plasmashell)
Tasks: 21 (limit: 18821)
Memory: 759.8M
CPU: 13.706s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service
501806 /usr/bin/plasmashell --no-respawn
Feb 26 18:35:00 priyasi plasmashell[501806]: qml: recreating buttons
Feb 26 18:35:21 priyasi plasmashell[501806]: qml: recreating buttons
Feb 26 18:35:49 priyasi plasmashell[501806]: qml: recreating buttons
Feb 26 18:35:57 priyasi plasmashell[501806]: qml: recreating buttons
18:36
foo . You prep your package and enable all the releases that you want to build the package for. So the same package gets built, in separate clean environments, for every release I mentioned as an example above. You don t have to manually trigger the build for every release/every architcture. You should add the release (as projects) in OBS, set their supported architectures, and then add those enabled release projets as bits to your package.
Every build involves:
A quick note to say that we finalized a bugfix release 0.1.5 of RcppSimdJson yesterday which got onto CRAN earlier today. RcppSimdJson wraps the fantastic and genuinely impressive simdjson library by Daniel Lemire and collaborators. Via very clever algorithmic engineering to obtain largely branch-free code, coupled with modern C++ and newer compiler instructions, it results in parsing gigabytes of JSON parsed per second which is quite mindboggling. The best-case performance is faster than CPU speed as use of parallel SIMD instructions and careful branch avoidance can lead to less than one cpu cycle per byte parsed; see the video of the talk by Daniel Lemire at QCon (also voted best talk).
This version brings a small fix to Windows where temporary filenames constructed from URLs (as for example constructed by our td package) need an extra sanization for a possible ? character. We will be addressing that properly in due course but for now a simple gsub() will do. The NEWS entry follows.
Courtesy of my CRANberries, there is also a diffstat report for this release. For questions, suggestions, or issues please use the issue tracker at the GitHub repo. If you like this or other open-source work I do, you can now sponsor me at GitHub.Changes in version 0.1.5 (2021-02-23)
- Temporary filenames from request URLs need an extra path sanitization on Windows as seen with package td.
- A few
#nocovtags were added to the code.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
It's been quite a long time since I last posted anything on this blog and I
can say that one of the reasons for that I don't feel comfortable using
ikiwiki anymore.
I am actively looking for alternatives to ikiwiki that allow me, mainly,
to write blog posts with the following characteristics (not necessarily in
order of importance):
ikiwiki. Apparently almost nobody
cares about supporting MathJax/KaTex out-of-the-box. To add insult
to injury, the templates are very general to the point of being very hard
to read (read: feature bloat) and it doesn't help that my editor (emacs)
doesn't know (at least in its current configuration) how to display its
structure.
A new release 0.2.1 of pkgKitten hit CRAN earlier today, and has been uploaded to Debian as well. pkgKitten makes it simple to create new R packages via a simple function invocation. A wrapper kitten.r exists in the littler package to make it even easier.
This release builds on the support for tinytest we added in release 0.2.0 by adding more optional support, this time for roxygen2. It also corrects a minor documentation snafu, and updates the CI use.
More details about the package are at the pkgKitten webpage, the pkgKitten docs site, and the pkgKitten GitHub repo. Courtesy of my CRANberries site, there is also a diffstat report for this release. If you like this or other open-source work I do, you can now sponsor me at GitHub.Changes in version 0.2.1 (2021-02-22)
- A small documentation error was corrected (David Dalpiaz in #15).
- A new option bunny adds support for roxygen2.
- Continuous integration now use
run.shfrom r-ci.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
feedgnuplot 1.57, which includes two new pieces that I've long
thought about adding:
gnuplotlib
guide
echo "# label value aaa 2 bbb 3 ccc 5 ddd 2" \ feedgnuplot --vnl \ --xticlabels \ --with 'boxes fill solid border lt -1' \ --ymin 0 --unset grid
--xticlabels does, is to accept a
data column as labels for the x-axis tics. Everything else that's supported by
feedgnuplot and gnuplot works as before. For instance, I can give a domain,
and use a style that takes y values and a color:
echo "# x label y color 5 aaa 2 1 6 bbb 3 2 10 ccc 5 4 11 ddd 2 1" \ feedgnuplot --vnl --domain \ --xticlabels \ --tuplesizeall 3 \ --with 'points pt 7 ps 2 palette' \ --xmin 4 --xmax 12 \ --ymin 0 --ymax 6 \ --unset grid
gnuplot's support for clustered histograms:
echo "# x label a b 5 aaa 2 1 6 bbb 3 2 10 ccc 5 4 11 ddd 2 1" \ vnl-filter -p label,a,b \ feedgnuplot --vnl \ --xticlabels \ --set 'style data histogram' \ --set 'style histogram cluster gap 2' \ --set 'style fill solid border lt -1' \ --autolegend \ --ymin 0 --unset grid
echo "# x label a b 5 aaa 2 1 6 bbb 3 2 10 ccc 5 4 11 ddd 2 1" \ vnl-filter -p label,a,b \ feedgnuplot --vnl \ --xticlabels \ --set 'style data histogram' \ --set 'style histogram rowstacked' \ --set 'boxwidth 0.8' \ --set 'style fill solid border lt -1' \ --autolegend \ --ymin 0 --unset grid
gnuplot's "row stacking". It also supports "column stacking", which
effectively transposes the data, and it's not obvious to me that makes sense in
the context of feedgnuplot. Similarly, it can label y and/or z axes; I
can't think of a specific use case, so I don't have a realistic usage in mind,
and I don't support that yet. If anybody can think of a use case, email me.
Notes and limitations:
--domain you can pass in both an x value and a tic label, it
is possible to give it conflicting tic labels for the same x value.
gnuplot itself has this problem too, and it just takes the last label it has
for a given x. This is probably good-enough.
feedgnuplot uses whitespace-separated columns with no escape mechanism, so
the field labels cannot have whitespace in it. Fixing this is probably not
worth the effort.
tuplesize
gnuplotlib. This will happen when
I need it or when somebody asks for it, whichever comes first.
feedgnuplot website now has a page containing examples and corresponding
graphical output. This serves as a tutorial and a gallery demonstrating some
usages. It's somewhat incomplete, since it can't show streaming plots, or
real-world interfacing with stuff that produces data: some of those usages
remain the the README. It's a million times better than what I had before
though, which was nothing.
Internally this is done just like the gnuplotlib guide: the thing is an
org-mode document with org-babel snippets that are evaluated by emacs to make
the images. There's some fancy emacs lisp to tie it all together. Works great!
I was using a container for a bioinformatics tool released two weeks ago,
but my shell script wrapping the tools could not run because the container
was built around an old version of Debian (Jessie) that was released in
2015. I was asked to use a container for bioinformatics, based on conda,
and found one that distributes coreutils, but it did not include a real
version of sed. I try Debian's docker image. No luck; it does not
contain ps, which my workflow manager needs. But fortunately I eventually
figured out that Ubuntu's Docker image contains coreutils, sed and ps
together! In the world of containers, this sounds like a little miracle.
| Series: | Finder Chronicles #1 |
| Publisher: | DAW Books |
| Copyright: | 2019 |
| ISBN: | 0-7564-1511-X |
| Format: | Kindle |
| Pages: | 391 |
I have written my first Rust crate: kmedoids.
Python users can use the wrapper package kmedoids.
It implements k-medoids clustering, and includes our new FasterPAM algorithm that drastically
reduces the computational overhead. As long as you can afford to compute the distance matrix of your data set,
clustering it with k-medoids is now feasible even for large k. (If your data is continuous and you
are interested in minimizing squared errors, k-means surely remains the better choice!)
My take on Rust so far:
for i in 0..n already causes a clippy warning; the clippy rule clearly is overshooting its own description. It fails to detect if the index i is actually needed. So the alternative would be a for (i, item) in list.iter().enumerate() . And apparently there is some weird reason why iterators are even faster than a range for loop?!?Next.