647 karma · joined January 23, 2021
It consists of "0" and "1" characters which map to Brainfuck symbols via a Huffman encoding as well as brackets which wrap a subprogram which are reduced to "1" if the subprogram halts and "0" if the subprogram loops forever. This means that the problem of deciding whether a given string is a valid You are Reading the Name of this Esolang program is undecidable.
[1]: https://esolangs.org/wiki/You_are_Reading_the_Name_of_this_E...
Edit: When I wrote this I just saw a comment with the text "* * *".
https://www.unison-lang.org/learn/usage-topics/editor-setup/
The actual thing (coloring lines of text to make the end of one line match the start of the next) is conceptually simple but really effective.
For (b) I don't know what the best option is but I see some people posting their scripts in this thread: https://github.com/i3/i3/issues/838 I think I would bind some keys to mark and then focus by mark if I wanted to do this instead of having a toggle.
> If I did the math right, the odds of hitting the opening hand you want is 0.00004%. Give or take a mulligan and maybe being able to get the combo off on turn two or three I think that's high enough odds that one could conceivably eventually succeed (assuming they can find opponents for years and years).
Here's the deck list: https://www.mtggoldfish.com/deck/3933484#paper which has actually come down in price a decent amount recently. It's on my list of silly things to buy.
Just looking through digikey filtered by termination style (wire/cable leads) pulls up quite a few promising looking results: https://www.digikey.com/en/products/filter/pushbutton-switch...
It's a bit pricey but maybe this style is what you're describing? https://www.digikey.com/en/products/detail/switchcraft-inc/9...
So take those "policies" with a grain of salt.
Edit: More generally, I feel like these sorts of tricks are getting less relevant over time. With the prevalence of Unicode text how many clever interview question optimizations that assume characters are just another way of saying u8 are no longer relevant?
I like to imagine that sites like this have noticed the bug but have the sense of humor to choose not to fix it.
https://www.unison-lang.org/learn/quickstart/
If this quick start tutorial doesn't work for you then there's a bug on unison's end.
this is one of the bigger differences between languages in the common lisp family and those in the scheme family. schemes have a single namespace that's shared across functions and data while common lisps have a separate function namespace from other values
This was Signal for me. I understand the reasons to get rid of SMS support but I strongly disagree. Unfortunately I don't have enough people in my life on Signal to justify keeping it around as yet another messaging app.
I got a cabinet for one of my favorite arcade rhythm games, Pop'n Music, a couple of years ago. It's older Firebeat hardware so it's a non-general purpose system specifically built for arcade music games not running a general purpose OS. I was surprised by how much better it felt than the newer versions of the game which run on Windows XP with inherent extra latency in its audio playback. (Other games by the same developer have taken advantage of lower latency audio apis in newer versions of Windows but iirc Pop'n hasn't gotten off XP yet.)
I had a lot of fun writing a few small games with this method, don't think I ever shared them anywhere though.
Here are the key bits:
char* c = "Hello World!";
HWND hwnd = FindWindow("Notepad", NULL);
HWND edit = FindWindowEx(hwnd, NULL, "Edit", NULL);
SendMessage(edit, WM_SETTEXT, NULL, (LPARAM)c);