Feed Andrej Karpathy / @karpathy [copy] http://shalnoff.co.uk/rss.php?rss=karpathy has loading error: cURL error 22: The requested URL returned error: 403 Forbidden
Feed digilinux.ru [copy] http://digilinux.ru/feed/ has loading error: cURL error 22: The requested URL returned error: 403 Forbidden
Feed freepost [copy] https://freepo.st/rss/new has loading error: cURL error 6: Could not resolve host: freepo.st

Notes from kernel hacking in Hare, part 3: serial driver

Today I would like to show you the implementation of the first userspace driver for Helios: a simple serial driver. All of the code we’re going to look at today runs in userspace, not in the kernel, so strictly speaking this should be “notes from OS hacking in Hare”, but I won’t snitch if you don’t.

Note: In the previous entry to this series, I promised to cover the userspace threading API in this post. I felt like covering this instead. Sorry!

A serial port provides a simple protocol for transferring data between two systems. It generalizes a bit, but for our purposes we can just think...

Drew DeVault's blog
Posted at 2022-10-27 00:00:00 | Software | read on

TOTP for 2FA is incredibly easy to implement. So what's your excuse?

Time-based one-time passwords are one of the more secure approaches to 2FA — certainly much better than SMS. And it’s much easier to implement than SMS as well. The algorithm is as follows:

Divide the current Unix timestamp by 30 Encode it as a 64-bit big endian integer Write the encoded bytes to a SHA-1 HMAC initialized with the TOTP shared key Let offs = hmac[-1] & 0xF Let hash = decode hmac[offs .. offs + 4] as a 32-bit big-endian integer Let code = (hash & 0x7FFFFFFF) % 1000000 Compare this code with the user’s code

You’ll need a little dependency to generate QR codes with the otpauth:// URL scheme,...

Drew DeVault's blog
Posted at 2022-10-18 00:00:00 | Software | read on

Status update, October 2022

After a few busy and stressful months, I decided to set aside October to rest. Of course, for me, rest does not mean a cessation of programming, but rather a shift in priorities towards more fun and experimental projects. Consequently, it has been a great month for Helios!

Hare upstream has enjoyed some minor improvements, such as from Pierre Curto’s patch to support parsing IPv6 addresses with a port (e.g. “[::1]:80”) and Kirill Primak’s improvements to the UTF-8 decoder. On the whole, improvements have been conservative. However, queued up for integration once qbe upstream support is merged is support for @threadlocal variables, which are useful for Helios and...

Drew DeVault's blog
Posted at 2022-10-15 00:00:00 | Software | read on

In praise of ffmpeg

My last “In praise of” article covered qemu, a project founded by Fabrice Bellard, and today I want to take a look at another work by Bellard: ffmpeg. Bellard has a knack for building high-quality software which solves a problem so well that every other solution becomes obsolete shortly thereafter, and ffmpeg is no exception.

ffmpeg has been described as the Swiss army knife of multimedia. It incorporates hundreds of video, audio, and image decoders and encoders, muxers and demuxers, filters and devices. It provides a CLI and a set of libraries for working with its tools, and is the core component of many video and audio players...

Drew DeVault's blog
Posted at 2022-10-12 00:00:00 | Software | read on

Historical GUI Websites

I opened wiby.me, clicked "surprise me" and got surprised!
I found GUIdebook Gallery, a (currently unmantained) collection of icons, screenshots, articles, books and other stuff on graphical interfaces, from Xerox Star to Windows Vista (the newest OS at the time the website got unmaintained).
Stuff there is highly organized and impecably curated. Screenshots, for example, are organized either by OS (Windows, BeOS, Machintosh, etc) or by GUI feature (file manager, dialog window, panel/bar, etc). The same for the articles, icons, books, and other things.
I'm browsing it since yesterday and am not done yet. High quality content.
I only knew one website with similar...

nixers
Posted at 2022-10-09 10:38:00 | Software | read on

2022-10-08

libgrapheme 2.0.1 released: download

suckless.org news
Posted at 2022-10-08 00:00:00 | Software | read on

Activating an Apple Watch eSIM w/ O2

When activating an Apple Watch eSIM, the process is usually pretty straightforward. Most providers are using a QR code that you can scan during setup ­– this transfers the eSIM data and off you go. Not with O2 though ­– at least here in Germany; they open a builtin web browser and require you to log into your account to order the eSIM from within your account. So I tried this. During eSIM setup in the O2 login form, you can choose between login via E-Mail-Address or phone number. If you try the E-Mail-Address you get an error message w/...

Dr. Mickey Lauer
Posted at 2022-10-06 12:00:00 | Software | read on

2022-10-06

libgrapheme 2.0.0 released: download

suckless.org news
Posted at 2022-10-06 00:00:00 | Software | read on

2022-10-04

dmenu 5.2 released: download dwm 6.4 released: download ii 2.0 released: download sic 1.3 released: download slock 1.5 released: download st 0.9 released: download tabbed 0.7 released: download

suckless.org news
Posted at 2022-10-04 00:00:00 | Software | read on

Does Rust belong in the Linux kernel?

I am known to be a bit of a polemic when it comes to Rust. I will be forthright with the fact that I don’t particularly care for Rust, and that my public criticisms of it might set up many readers with a reluctance to endure yet another Rust Hot Take from my blog. My answer to the question posed in the title is, of course, “no”. However, let me assuage some of your fears by answering a different question first: does Hare belong in the Linux kernel?

If I should owe my allegiance to any programming language, it would be Hare. Not only is it a...

Drew DeVault's blog
Posted at 2022-10-03 00:00:00 | Software | read on
1 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 109

***

Однажды китайский ученый Ли Хунь Янь обнаружил некоторую незначительную, однако, существенно отличающуюся от фона корреляцию между количеством псилоцибина потребляемого корфуцианскими медузами и характером передвижения оных по стенкам четырехсотлитровго шарообразного аквариума, установленного в лаборатории по случаю празднования сто второго полугодичного затмения от начала новой эры Сингулярного Прорыва. Недолго думая, Ли Хунь Янь приделал к щупальцам медуз источники излучения в видимом диапазоне но с разной длинной волны, заснял весь процесс шестью камерами с 48 часовой выдержкой, симметрично расставив последние вокруг сосуда, где резвились подопытные и через неделю собрал прелюбопытнейший материал, который, в свою очередь, лег в основу фундаментального труда, ныне известного, как теория полутретичных n-многообразий простой метрики Ли Хунь Янь, с которой (с некоторыми упрощениями и оговорками) я, по мере сил, постараюсь познакомить любопытного и пытливого читателя.

Recently