Self Wright

Month: January 2021

Scala -> Rust

Over the weekend, I took a first stab at transforming my prior little cave-generation toy (https://abacusnoir.blog/2020/08/02/cave-generation/) from Scala to Rust.

Old repo: https://bitbucket.org/agambrahma/caves/

New repo: https://bitbucket.org/agambrahma/caves/

Declaring “watch-later” bankruptcy

I’m sure a lot of people get to this point … it’s a form of procrastination, clicking on the tempting little Watch Later mini-clock-face.

“Of course I’ll watch you”, I say to the little thumbnail.

Fast-forward a few years later, and there are now about five hundred of these. Surprise.

Given that the average length is about half an hour (if it’s five minutes, I either watch now or watch never), this is several months of dedicated watching time. Not going to happen.

I could painfully prioritize these, figure out what I really meant to watch, and what I was just lying to myself about.

I don’t need to do that. I know I was lying to myself most of the time I clicked that little button.

So the next best option: start over.

Unfortunately, Youtube hasn’t allowed for this possibility.

I found a hack on StackExchange1. It involved moving some playlists around. Painful, but doable.

Doubly unfortunately, this doesn’t work anymore. The Watch Later playlist is an append-log now. Your pile of misery cannot be allowed to shrink2.

There seemed to be light at the end of the tunnel: by suitably obscure Javascript, you too can wipe your slate of false optimism clean. It was an innocuous looking short one-liner3.

I tried it, didn’t work for me.

I tried reverse-engineering it, but couldn’t hack and cut my way through the mass of divs that characterize modern web pages. Javascript is the new assembly language of the web, deal with it.

I got more desperate, tried out other, more unwieldy snippets4.

I did find some kindred souls5.

Anyway I’ve been on-and-off this quest, with no success. Still looking for that “magical snippet” that will work for me.

(@Youtube, Y U No Let Me Delete My Watch History ?!)


  1. From a comment on that page: the clearly bewildered response of “These instructions are unclear”. You don’t say. ↩︎
  2. Okay, it can, but only if you watch all of them and then click on “Remove watched videos” ↩︎
  3. Retrieving a bunch through the right call to getElementsByClassName, then looping and calling click on them ↩︎
  4. This one in particular, successfully crashed Safari for me after a few tries: javascript:var tmr = window.setInterval(function(){var _this = document.querySelector('ytd-playlist-video-list-renderer #button > yt-icon'); if (_this){_this.click();document.querySelector('#items > div > ytd-menu-service-item-renderer:nth-child(2)').click();}else{window.clearInterval(tmr)}}, 1000); ↩︎
  5. As this reddit thread says, “‌Um, I have a YouTube hoarding problem. I have 2,335 videos in my Watch Later list.” Yikes, worse than me by far ↩︎

Annual recap- 2020

Me:

  • “Company kick-off” cruise in the Bahamas
    • My first (and probably last) ever
    • In retrospect, very happy this didn’t turn into a COVID super-spreader event
  • Started tiny daily meditation habit
  • Travelled back from India with Tara at the beginning of the year, spent a week with her (minor achievement)

Tara:

  • (Yes, enough content for her own section)
  • Went climbing at Planet Granite (or rather, barely got the hang of it, before everything shut down)
  • Missed the dance classes in pre-school, had to do her performance virtually
  • (Virtual) preschool graduation
  • Got a new scooter
  • Learnt to ride her bike!
  • Began physical school (kindergarten), in the last quarter (yay)
  • Read
    • all of Ivy & Bean
    • First four Magic Treehouse
    • Harry Potter (Sorceror’s Stone, Chamber of Secrets)
  • Watched
    • Nutjob 1 & 2
    • Equestria Girls
    • Harry Potter and the Sorceror’s Stone
    • Scooby Doo (the 2012 series, the original series, the Scrappy Doo series)
    • Nightmare before Christmas
    • Mu Little Pony: The movie
    • Kung fu Panda
    • The Hobbit (old animated version)

Family:

  • WFH changes (duh)
    • Home layouts
    • Haircut experiments
  • Some repairs and replacements at home
  • Events
    • Tara turned 6
    • 10th wedding anniversary
  • Trips
    • Some hikes, some picnics
    • A weekend staycation in Capitola
    • SF Zoo (!)
    • Sanborn County Park (a new discovery)
    • Beach visits (Waddell, Rockaway, Greyhound, Pacifica)
  • Family board games became a thing!

Reading/Writing/Exploring/Learning:

  • Watched (Movies)
    • Fantastic Fungi (!!)
    • The Hobbit
    • Parasite, Knives out
    • 10000 BC, 2012 (repeats)
    • Brittany runs a marathon, Outbreak
    • Logan Lucky
    • Trip to Greece
    • The Bookshop, Little Women
    • The Vast of Night (!)
    • Social Dilemma
    • Struggle: life & lost art of Szugalski (!!)
    • Tenet (!!)
  • Watched (TV)
    • New season of Lost in Space
    • Messiah
    • Tiger King (!)
    • Money Heist
    • Vida
    • The Crown (season 4)
    • Killing Eve (season 3)
    • Hinterland (season 1)
  • Read
    • Lexicon (bought it at the SF airport, very original)
    • Three-body problem (whole new world of SF)
    • (Comixology) Witcher, Locke and Key, Alita

Review from last year:

  • I did complete a puzzle (never got around to collecting and sharing pictures)
  • I did scratch the “make a small app” itch
  • No small book, but … there are some collage-ish scribbles I’ll pick up some other time
  • No 10K, but … I did run 15 minutes (nearly) every Sunday morning

Tentative Resolutions:

  • (this is a bit pointless, unless revised during the year, but still …)
  • Sustain what little exercise routine I have!
  • Try (or keep trying) to get a good sleep routine
  • Complete one more puzzle
  • In general, create and share more

Monthly recap (Dec 2020)

Sunset at Pacifica

Major updates

  • A stay-at-home end-of-year vacation
    • Lots of driving around or walking around locally

Minor updates

  • A day trip to San Francisco (chocolates at Ghirardelli, having coffee outside Ferry Building)
  • A trip to Barnes & Noble (the only one in the whole year!)
  • Tara’s first (and second) tooth came out
  • A “christmas drive-through” at Tara’s school
  • (Finally) got a ergonomic setup going at home for a protracted WFH period (more on this later)

Watched/made/played/read

  • Queen’s Gambit
  • Tenet (!)
  • Several episodes of Hinterland
  • Read up to the first four Magic Treehouse books with Tara

Generally interesting links – Dec 2020

Browsing “without an algorithm”

Science

  • Old teeth

    These human ancestors, who roamed different patches of Eurasia roughly 1.77 million and 800,000 years ago, respectively, share a claim to fame: Their fossilized teeth harbored the oldest surviving proteins from extinct human species — molecules more than twice as old as human DNA.

  • Geeking out over cameras and lenses
  • The Open Library Explorer

    How does one faithfully compress the entire experience of a reliable, unbiased, expansive public library and its helpful, friendly staff into a 14” computer screen?
    Some sites, like Netflix or YouTube, solve this problem with recommendation engines that populate information based on what people have previously seen or searched. Consequently, readers may unknowingly find themselves caught in a sort of “algorithmic bubble.”

Gamified life

  • On Robinhood

    … the more risk Robinhood’s customers take in their hyperactive trading accounts, the more the Silicon Valley startup profits from the whales it sells their orders to. And while Robinhood’s successful recruitment of inexperienced young traders may have inadvertently minted a few new millionaires riding the debt-fueled bull market, it is also deluding an entire generation into believing that trading options successfully is as easy as leveling up on a video game.
    … Robinhood gets paid—by the quants—58 cents per 100 shares for options contracts versus only 17 cents per 100 for equities. Options are less liquid than stocks and tend to trade at higher spreads. While the company says only 12% of its customers trade options, those trades accounted for 62% of Robinhood’s order-flow revenues in the first half of 2020.

  • Revisiting (and critiquing) Baldur’s Gate

Tools for Thought

People/World

  • On modern attitudes towards free speech (Ira Glasser reminisces)

    It wasn’t until my 30s that I began to understand free speech, that the real antagonist of speech is power

Just plain weird

  • A giant headless Buddha statue, uncovered in a residential area in China.

    The two residential buildings were constructed in 1990 after the demolition of a temple at the same site, and the sculpture was uncovered during a clearing of foliage in the area.

Programming

  • An overview of Fennel (keeping an eye on it as Lua becomes a first-class scripting language for Neovim)
  • Inside the machine

    One of the most interesting aspects of programming is the ability to inspect and modify programs while they are running. We all know debuggers, but there are lots of programs which let you interact with them directly while they are running. Some programs let you run scripts via embedded interpreters, which let you extend the program, but in some instances the programs themselves are the interpreters.

A time of transition

I’ve been at Confluent for a year and half now, and it was fun in many ways, but I’ve decided upon a change, and I’m joining Sigma Computing next week.

Another instance where I was looking for a different “local maxima” but ended up finding a global maxima instead.

Everyone wants different things at different points, but Sigma feels like a sweet spot for me right now.

It’s not too big and not too small, with a rapidly growing engineering team, there is a whole different bunch of tech to learn from scratch, an opportunity to work on an end-to-end full-stack product while also having significant infrastructure challenges.

I’ve learnt a lot from the folks I’ve worked with at Confluent, and I’m excited to begin the new year on a new adventure 🙂

Powered by WordPress & Theme by Anders Norén