Readit News logoReadit News
addled commented on Rotatum of Light   science.org/doi/10.1126/s... · Posted by u/bookofjoe
addled · 4 months ago
Nice! I worked on something similar as an undergrad project years ago, setting up beams with different orbital angular momentum characteristics. Was a lot fun working in the lab. Sadly I didn’t have the focus/grit to finish writing a paper (sorry Dr. Singh). Side note, this was in 2007 and the folks in our optics lab would check the location of beams by grabbing from the stacks of ancient punchcards lying around and waving them next to the apparatus.

This paper has a pretty similar setup, but adds a spatial light modulator (like a DLP projector that can control phase as well as brightness).

What is wild to me is that the researchers here are able to create a beam where the angular moment changes as you move away.

Plus the really cool spiral patterns.

addled commented on Show HN: Offline SOS signaling+recovery app for disasters/wars   github.com/nizarmah/igath... · Posted by u/nizarmah
addled · 5 months ago
Might be rough on battery life, but perhaps pulsing an SOS with the flashlight?
addled commented on Functional Tests as a Tree of Continuations (2010)   evanmiller.org/functional... · Posted by u/amenghra
simonw · 6 months ago
"One of the most essential practices for maintaining the long-term quality of computer code is to write automated tests that ensure the program continues to act as expected, even when other people (including your future self) muck with it."

That's such a great condensation of why automated tests are worthwhile.

"To write your own testing framework based on continuation trees, all you need is a stack of databases (or rather, a database that supports rolling back to an arbitrary revision)."

PostgreSQL and SQLite and MySQL all support SAVEPOINT these days, which is a way to have a transaction nested inside a transaction. I could imagine building a testing system on top of this which could support the tree pattern described by Evan here (as long as your tests don't themselves need to test transaction-related behavior).

Since ChatGPT Code Interpreter works with o3-mini now I had that knock up a very quick proof of concept using Python and SQLite SAVEPOINT, which appears to work: https://chatgpt.com/share/67d36883-4294-8006-b464-4d6f937d99...

addled · 6 months ago
An approach we've done is to use Postgres' "create database foo2 template foo1" syntax to essentially snapshot the db under test at various points and use those to rollback as needed.
addled commented on US bill proposes jail time for people who download DeepSeek   404media.co/senator-hawle... · Posted by u/soundworlds
addled · 7 months ago
Am I reading the bill text wrong or is it really so general it would also apply to devices assembled in China that can perform AI operations?

Seems like there'd be pushback from Apple, MS, etc on that one.

addled · 7 months ago
Ah, nevermind, just saxophones:

> ... tenor processing unit...

addled commented on US bill proposes jail time for people who download DeepSeek   404media.co/senator-hawle... · Posted by u/soundworlds
addled · 7 months ago
Am I reading the bill text wrong or is it really so general it would also apply to devices assembled in China that can perform AI operations?

Seems like there'd be pushback from Apple, MS, etc on that one.

addled commented on How shut-down Bay Area tech companies ditch their fancy gear   sfgate.com/tech/article/s... · Posted by u/Stratoscope
bushbaba · 7 months ago
ah silicon valley disposition, my favorite place to window shop at. If your ever curious just go to hibid.com and put in a Silicon valley zip code.
addled · 7 months ago
Yeah, I’ve been waiting for bidding to open on https://hibid.com/lot/214229120/comino-gando-rm-long-fully-l... just see what it gets up to. (5955wx + 4x RTX 4090’s)
addled commented on Fluid Simulation Pendant   mitxela.com/projects/flui... · Posted by u/sschueller
burnte · 8 months ago
Water is a lot less luminescent than LEDs. I think the effect might be reduced if changed to a water based display.
addled · 8 months ago
What about a fluorescent dye with one (or few) UV LEDs on the edge facing inward to illuminate it?

Maybe not “better” than OP’s design, but could be interesting in its own way.

addled commented on Database mocks are not worth it   shayon.dev/post/2024/365/... · Posted by u/shayonj
donjoe · 8 months ago
testcontainers is great. I struggled a bit with testcontainers due to the nature of one container per test which just felt too slow for writing gray/blackbox tests. The startup time for postgres was > 10 seconds. After a bit of experimenting, I am now quite happy with my configuration which allows me to have a snappy, almost instant testing experience.

My current setup:

- generate a new psql testcontainer _or_ reuse an existing one by using a fixed name for the container - connect to the psql container with no database selected - create a new database using a random database name - connect to the randomly generated database - initialize the project's tables - run a test - drop the database - keep the testcontainer up and running and reuse with next test

With this setup, most tests run sub-second;

addled · 8 months ago
If your table setup process starts to get slow like ours, checkout psql TEMPLATE (https://www.postgresql.org/docs/current/manage-ag-templatedb...). Do the setup once to a db with known name, then use it as the template when creating the db for each test.
addled commented on 4100 / 4200 Series Graphic Terminals (a.k.a. Unicorn)   vintagetek.org/4100-4200-... · Posted by u/rbanffy
addled · 9 months ago
I snagged one of those keyboards at an auction. Haven't been able to get it to work with a modern PC. Hard to find much info on this line of computers.
addled commented on Why did clothing become boring?   resobscura.substack.com/p... · Posted by u/benbreen
quantadev · 9 months ago
In modern times clothing became boring precisely when Mark Zukerberg first revealed video of his walk-in closet having nothing but racks of identical gray T-shirts in it. Legend has it that from that day forward no striped or colored shirts have ever been seen in Silicon Valley.

Then all socks went from white to black, oddly enough.

The other clothing tragedy that happened around the same time-frame was that someone in Hollywood declared Fanny Packs to be out of style right when tight jeans came into being. This was a true tragedy for the hipsters, because fitting large phones into yoga-fit tight jeans would've been something even Harry Houdini would scoff at.

I've worn Levis 501s and used a Fanny Pack forever, and I never plan to stop.

Don't get me started on grown-azz men wearing bead or string bracelets. Nothing is more cringe than that, except for maybe flip-flops on men, but don't get me started.

addled · 9 months ago
> Don't get me started on grown-azz men wearing bead or string bracelets.

Unless it was made by their young daughter/granddaughter, it which case it is the mightiest of talismans.

u/addled

KarmaCake day280November 27, 2015View Original