TOC
2023-08-30
dejbug.github.ioTOC
I'm obsessing with mytoc.js. dev:moz Which reminds me that I need a new repo for this. But what is it? Part of a web extension? Part of my blog? Putting it inside this blog's repo would be simplest but I really dislike the idea of adding JS to the page. Because I will get carried away. With this new avenue for madness. Let's keep this channeled; simple, nice, and tight.
The Time is Now
That's right, Moloko. Let me ask you this, my fellow chellovecks. en.wiktionary.org When is time? I had to load the past archive page and I thought, now's the time to make this easy. So I'm adding a new flag toarchive.py.
"I choose not to run!" — Seinfeld seinfeldscripts.comWell, apparently I choose to run in smaller and smaller circles.
"When a man cannot choose, he ceases to be a man." — A Clockwork OrangeOk. Done.
subl $(./archive.py -x -1) now opens the most recently archived blog page.
Big Long Now
Why can't
I hear
The call
Of life ?
I've watched the new Batman a couple nights ago. imdb Well, had to watch it in two installments because I fell asleep half-way. Which by the way is not a negative criticism, not coming from me. It was exactly the movie I had to be watching that night. It was calming. It was perfect. They played a Nirvana song from their B sides and I was happy for a second. Then I thought, they are using this for that? Have they no respect, no decency? But then, well, I had to say, it was a good fit. And it was the only song they stole. Rather than create something of their own "they" go for the quick and easy fix and just rob us of the irreplacable masterworks of our shared cultural heritage in order to elevate a throwaway culture — is what I always think. In my mind they've basically reduced a classic to a marketing jingle. But it turns out the flick wasn't too shabby. Although here this also means that there wasn't much they could have possibly done wrong. They used a standard plot schematic. The film was all about mood and style. For what it was, I liked it.
I hear
The call
Of life ?
Anyway
Nirvana was the music of my youth. It depresses me now. I'm getting used to Dub. It's nighttime neon city music. Makes me think of rainy pavements, strangers huddling. Breathable air. I like it here. I feel much less self-conscious here. Anyway. Back to work.TOC #2
There's a problem I forgot about, though I anticipated it yesterday. This latter is a real problem for me. The fact that I don't even read my own comments when I'm in a flow. But hey how, that's a problem I can't solve. The smaller problem at hand has to do with wrong assumptions and fixing it involves rewritingtoc.js. Which is okay. wiki The whole thing was just exploratory coding. Let's do this and then move on to something more urgent.
TODO
It's Tuesday already and on Friday we'll be having a smaller one-day tournament. We might be able to do a round-robin but a swiss could be asked for. I would love to have a workable prototype of my swiss pairer. It's really just an interface to a FIDE-approved backend. gh It should be finishable by then.TOC #3
So far, so good. I can tell whether a header scrolled out at the top or at the bottom of the viewport but I can't distinguish whence it scrolled in unless I keep track of where it was last time. Though I don't really need this "extra" info fortoc.js to work, I'd rather have it in there. For OCD's sake. 🌈
TOC #4
Oh shoot (me). Mozilla's Intersection Observer API is dropping events! When scrolling too quickly. But I don't want to hook intoonscroll for this. It would be so much simpler though. Just find the last target.offsetTop < document.scrollingElement.scrollTop. I will do you one better and consider doing this in idle time dev:moz dev:moz.
TOC #5
Yes I'm ditching the Observer. dev:moz I should never have messed around with it. The only thing noteworthy about it is how its apparent usefulness obscured it's utter uselessness. Or: where it was useful obscured where it wasn't — and this was an all or nothing kind of thing. It works beautifully now. It's arguably even more efficient now. Yes, it uses a timer that fires ten times a second but 99% of the time it will only check to see thatscrollTop hasn't changed.
TOC #6
Ok. Anyway. Let's test this in the blog. I think it's making everything too busy. But let's leave it like this for a while.Digression #101
Ok, I'm streaming some serious ❤ from across the pond somafm and I found myself looking at the tiny tooltip frequently enough, checking to see what was playing, that I had to write a little window title dumper for my player. Now, with the Win32 API I used to be a minor magician but here... I really want to get into Xorg x.org and all but there's so much else to do. Also, check this out gnu. But hey. There are a couple tools.wmctrl relies on specifications.freedesktop.org. Which my player (DeadBeef wiki gh ) doesn't seem to support. But then there's xwininfo (part of xorg-apps) which does a perfect job. Here: gist:gh
JS
I can get behind why people like this little language. wiki ecma tc39.es tc39.es tc39.es ghUseful
This should really be in the standard underscorejs gh. I'll be looking at this next backbonejs.org gh.CSS
I want my blog to look nicer in print mode, so I'll need to deal with@page dev:moz.
Creative use of the :hover w3schools.com pseudoclass.
Elevator Music
I found xlr8r while browsing for some titles and will be checking it out soon xlr8r.So long!
"I particularly enjoy the circumference." — NirvanaSappy yt Serve The Servants yt Moist Vagina yt Old Age yt About A Girl yt Clean Up Before She Comes yt Opinon yt D7 (Wipers Cover) yt Even In His Youth yt