Nick (@nvanderw) header
Nick (@nvanderw) profile picture

Software engineer. Newcomb’s Paradox one-boxer. Interested in forecasting, chess, functional programming.

Seattle, WA
Joined January 2010
Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)Photo by Nick (@nvanderw)
Why does the English-speaking world favor the worst electoral system (FPTP) in the world of representative governments? en.m.wikipedia.org/wiki/Elec…
2
Germany’s Bundestag (~equiv of House of Representatives) uses single-member districts and FPTP to elect some seats, but adds in party-list seats to make the overall representation proportionate. This seems like a fairly simple change we could backport to the US
1
Summer’s finally here
1
1/2: (i:=__import__,r:=i('random').randrange,n:=255,p:=lambda *a:print(*a,end='',flush=True),t:=i('blessed').Terminal(),H:=0,w:=t.width,h:=t.height,p(t.clear+t.home),x:=r(w),y:=r(h),vx:=1,vy:=1),p(t.hide_cursor),any(not(((x:=x+vx,y:=y+vy),(x:=1,vx:=1)if x<0else(x:=w-2,vx:=-1)if x
1
2
2/2: >=w else 0,(y:=1,vy:=1)if y<0 else(y:=h-2,vy:=-1)if y>=h else 0,p(t.move_xy(x,y)),(R:=i('colorsys').hsv_to_rgb(H/n,1,1)),p(t.bold(t.color_rgb(*map(lambda m:int(m*n),R))("@"))),H:=H+7&n,i('time').sleep(.01)))for _ in iter(int,1))
1
Perhaps the most cursed code I've written. Parallel Monte Carlo estimation of pi using multiple processes -- with all IPC done via SIGUSR1 and SIGUSR2 signals. The response is sent back bit-by-bit, with SIGUSR1=0 and SIGUSR=1. gist.github.com/nvanderw/cee…
1
1
This was the only way I could find to write parallel code on a certain sandboxed Python evaluator.
I wanted to find which of my Obsidian notes were not connected to my "root set" (table of contents page). So I made this little Haskell program to list all reachable pages from some starting page(s): github.com/nvanderw/Markdown… Experimental, but helped me find some orphaned notes.
2
developers: you should not use eval(), it's unsafe also developers: sudo curl | sh # It will be cool trust me
2
Google has become frustrating to use for programming. So many tutorial sites. The official docs don't show up until the 2nd page of results!
1
Replying to @JgaltTweets
@JgaltTweets This poll again seems relevant in light of what's going on in Canada... Any chance this leads to a good political outcome for the protestors? xitter.cf/JgaltTweets/status/144…
Is blocking the roads a form of protest that is likely to generate public support for your favoured policy changes?
0%Yes
100%No
18 votes • Final results
2
1
I know I'm late to the Wordle party but I wrote a small Python program to find the best starting word gist.github.com/nvanderw/fc9…
2
1
3
Here is the output from a recent run: word,average entropy tales,6.172922323639194 rates,6.146451140855917 cares,6.122735804210578 dares,6.098471371272616...
1
Replying to @AlaskaAir
@AlaskaAir My flight was canceled. Why are you charging me to pick a different flight?
1
Amazon Q&A is a great source of info
1
Yeah really nice work! Good to see the plan come together!
The President is to be commended for the clarity of purpose of his statement on Afghanistan and his action. The Taliban must know the world is watching its actions. We are concerned about reports regarding the Taliban’s brutal treatment of all Afghans, especially women and girls.
1
So what's happening with the 5k US troops in Kabul? Are they evacuating the remaining US citizens and interpreters? apnews.com/article/lifestyle…
1
"Officials have stressed that the newly arriving troops’ mission was limited to assisting the airlift of embassy personnel and Afghan allies, and they expected to complete it by month’s end." Um, I think it will need to happen faster than that.
1
1
This is abhorrent. Biden says "the law doesn't allow" bringing the translators to the US to await visa processing and congressional action is needed. What change to law is needed? Is any bill on the table? foxnews.com/world/afghanista…
1
3
The pillow guy’s “packet caps” are just hexdump on a CSV file? lmao
Replying to @robertgraham
11/ For example, here is data that I got from the State of Georgia, a hexdump of early voting records. It's public, anybody can download it from the net. So I don't care if it's "election data", I got that already. I'll be looking for hard evidence proving election fraud.
How?
Cryptocurrency is one path to universal basic income.
2
2
Moved into an apartment with coin-operated laundry right as Round 2 of the coin shortage was starting up. So we're doing that again! Cool.
1
At this point they should just do market pricing for coins. Sure, I'll pay $0.40 for a quarter if I have to...
2
2
Imagine getting fired because you spent most of your time editing code (foolish, lazy) instead of using Jira (wise, productive, engaged). gameworldobserver.com/2021/0…
1
Meant to include this screencap. Time in editor was not included in productivity metrics 🙃
Are superspreader events at Lollapalooza a realistic concern? Outdoors + requirement of negative test or vaccine seem like serious mitigations. AFAIK other "outdoor" superspreader events like Rose Garden had significant indoor components. theguardian.com/world/2021/a…
2
1
2