HN user

asimpson

47 karma
Posts13
Comments15
View on HN

The investments listed here in the article make this seem like an effort to shore up or incentivize industries or companies that are integral to national defense. One example, in the ongoing US-China trade war one of the strongest moves China did was put [export controls on rare earth minerals][1] which are essential components across technology, defense, and healthcare to name a few. The government investing in these companies isn't ideal from a free enterprise perspective but seems rational from a national security perspective.

[1] https://en.wikipedia.org/wiki/Rare_earths_trade_dispute

You can achieve something similar using vlc + slop on Linux, here's the script I usually use (I run i3 typically).

    selection=$(slop -f %w,%h,%x,%y)
    width=$(echo "${selection}" | cut -d , -f 1)
    height=$(echo "${selection}" | cut -d , -f 2)
    top=$(echo "${selection}" | cut -d , -f 4)
    left=$(echo "${selection}" | cut -d , -f 3)

    cvlc --no-video-deco --no-embedded-video --screen-fps=20 --screen-top=$top --screen-left=$left --screen-width=$width --screen-height=$height screen:// &
Then "just" share the VLC window instead of your desktop.

Important caveat: "Apple MacBook Pro with Intel chip was used in tests that met all requirements specified in this section". What I really want to see is performance evaluations between current generation x86 Linux, x86 Windows, and ARM macOS.

I've been working on a small Go program to do this specifically for the lofi hip hop beats youtube stream (file here: https://git.sr.ht/~asimpson/lofibar/tree/exec-ffmpeg/item/ma...). You can pretty easily parse the Youtube page to get the HLS stream and pass that to ffmpeg. No need to even have the overhead of another browser tab then.

P.S. also if anyone knows how to statically compile ffmpeg or libvlc into go I'd love to know :)

Learning Rust 8 years ago

100% agree with this! I used Advent of Code this year to explore Common Lisp. If you have any programming experience it becomes a fun hunt of "ok, I need to loop over an array. How do I do that in X lang?".

I love scraping websites, it's a stupid hobby at times, but I dig it (https://github.com/asimpson/nodejs-web-scraper-cookbook).

A couple successful scraper projects: 1. I automated buying an iPhone 6 when it came out at the time with a scraper + Twilio for SMS notifications. 2. I setup a scraper to alert me when certain blue-ray titles were available to reserve at the library. 3. I found a site that posted full NBA replays the day after a game. I set up a scraper to on their RSS feed for a couple teams and uploaded the videos to S3.

I've also automated notifications for when my sump pump gets flipped off. My sump pump is connected to a ground fault outlet which can rarely get flipped. I plugged in a spare raspberry pi to the same outlet and have my synology ping the IP periodically. If the synology can't find the pi it sends me a sms via twilio.