434 karma · joined Feb 26, 2012 (14y ago) · 102 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
I had this problem, didn't figure out the solution till the end of the project- it's bots. Even bad bots are HUGELY important for multiplayer game development because now you can iterate every second instead of every week. I thought bots would be too hard to make for my game, but they really weren't as they don't even have to be good. With LLMs i'm fairly sure almost any type of game can be botted at this point too.
comment 2y ago · link · parent
comment 2y ago · link · parent
These local TLDs should IMO be used on all home routers, it fixes a lot of problems.
If you've ever plugged in e.g. a raspberry pi and been unable to "ping pi" it it's because there is no DNS mapping to it. There are cludges that Windows, Linux, and Macs use to get around this fact, but they only work in their own ecosystem, so you often can't see macs from e.g. windows, it's a total mess that leads confusing resolution behaviour, you end up having to look in the router page or hardcode the IP to reach a device which is just awful.
Home routers can simply assign pi into e.g. pi.home when doing dhcp. Then you can "ping pi" on all systems. It fixes everything- for that reason alone these reserved TLDs are, imo, useful. Unfortunately I've never seen a router do this, but here's hoping.
Also, p. sure I grew up playing wc3 w you?
comment 2y ago · link · parent
comment 2y ago · link · parent
https://www.youtube.com/watch?v=hIw5WlBZ-ds
I tried every trick in the book, but in the end only dev console could save the day. It was a null reference exception on not buying a bundle...
comment 2y ago · link · parent
ss: |system| Answer as many different ways as you can. Each answer should be short and sweet. No more than a line. Assume each previous answer failed to solve the problem. |user|
So "ss how to center a div" would give you code for flexbox, css grid, text align, absolute positioning etc.
In general I am using AI for syntax questions like "how can I do X in language Y" or getting it to write scripts. Honestly, often the default is pretty good.
comment 2y ago · link · parent
I put in a bug report for this years ago but it got ignored :( https://github.com/microsoft/vscode/issues/137066
Vscode has gotten slower over time. It's true you can't get nanosecond performance out of JS, but anything under 17ms should be trivial. I believe the vscode developers are skilled, it's just they don't care (imo) enough about performance for whatever reason, and that's a shame.
comment 2y ago · link · parent
My fear is that we see a similar problem with other generative AI in that it gets stuck in loops on complex problems and is unable to correct itself because the training data covers the problem but not the failure modes.
comment 2y ago · link · parent
Isn't that the opposite of the title? ~60% of execs then don't expect this? Also, the execs don't really clarify what "fewer people" means, could be .001% fewer people.
comment 2y ago · link · parent
I did do a delta sigma using the pios but fed via cpu, essentially used just a look up table of amplitudes that fed a bitstream into the pios to get a psuedo 133 MSPs dac.
comment 2y ago · link · parent
My strat is having a deploy.ps1 script in every project folder that sets the project up. 80% of the time this is making the vm, rcloning the files, and installing/starting the service if needed. Roughly 3ish lines, using custom commands. Takes about 100ms to deploy assuming the vm is up. Sometimes the script gets more complicated, but the general idea is that whatever system I use under the covers, running deploy.ps1 will set it up, without internet, without dependencies, this script will work until the heat death of the universe.
After losing everything I reran the deploys (put them into a list) and got everything back.
I'm with you on some of the routing setups, mine aren't 100% documented either. I think my router/switch config is too complex honestly and I should just tone it down.
comment 2y ago · link · parent
Absolutely yes-
Funny story, originally it was generating 10kish tilings for a 6x6 board with 2 stones. but when I moved one of the stones over we would get... 0. WHAT? Apparently there is an entire field about dominoes (of course) and I had stumbled into something called the "Mutilated Chessboard Problem". It's impossible to tile a chessboard that has the top left and bottom right square removed. 62 open squares, doesn't matter, it's untilable. Crazy. Many boards are like this.
There is actually a very neat proof as to why, too. Placing a domino tile removes 1 black and 1 white square. So if you have e.g. 10 black and 12 white squares you're done for, you will always end up with the 0 black squares and 2 white squares remaining. With this intuition I was able to speed up the generator by skipping these types of boards.
As for it's implementation, it is a bit brute force, it recurses over a 64 bit bitboard to find all the possible domino tilings for a particular board, using bitwise operators for moves. I then use the 01 02 domino values and group them by the row/column numbers, so I can eliminate multiple solutions (less fun imo). There are definitely trillions of tilings, so after calculating all of them for a particular board and shuffling them only the first N are stored and then saved to a sqlite database.
comment 2y ago · link · parent
A bit of both, made a generator that spits out games and then I played 10 procedurally generated levels and picked the ones I liked.
In general my favorite levels are the 7x7 with 5 stones, you can legit logic them out if you are patient. I only put in one since it takes quite a bit of practice to get to that point.
23.
Show HN: Domino Fit – Domino Tiling Puzzle(dominofit.isotropic.us ↗)
197 points · by macromaniac · 2y ago · 75 comments
comment 3y ago · link · parent
No, it said that if we had the exact same disaster storm THEN we would then have a 14.4% chance of a rolling blackout at 8am. The odds of this storm could be 2% for all we know.
Heres the report:
https://www.ercot.com/files/docs/2023/10/10/MORA_December202...
I assume our odds are better due to the winterization we put in.
https://www.ercot.com/news/release/2022-01-18-final-winteriz...
comment 3y ago · link · parent
comment 3y ago · link · parent
His earlier comment that graphite can do the same thing is untrue afaict. Graphite can repel the magnetic field but it would slide off, this is why in diamagnetic experiments multiple magnets are used to keep it in place. In the video it doesnt seem to be sliding anywhere, so imo the video is not showing diamagnetism.
https://sciencecast.org/casts/suc384jly50n
Edit: Actually, now I'm not so sure, it does seem like it's held in place by one corner which is always pointing towards the outside of the magnet, so maybe it is just diamagnetism. If anyone has some pyrolytic carbon and wants to try it out?
Edit2: 99% of YouTube videos on diamagnetism have multiple magnets, the only one I could find that has diamagnetism on one pole magnets shows it not working:
I think it's more than just pyrolytic carbon
comment 3y ago · link · parent
https://youtu.be/_hjRvZYkAgA is my current favorite.
comment 3y ago · link · parent