Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
postpawl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
postpawl
5y ago
The valid guesses: https://github.com/hannahcode/word-guessing-game/blob/main/s...
152.
▲
by
postpawl
5y ago
Saying that the tax cut and jobs act was a giveaway to the rich is accurate. The bottom 10% barely got anything: https://upload.wikimedia.org/wikipedia/commons/c/ce/1-Distri...
153.
▲
by
postpawl
5y ago
Saying that UBI would be canceled out by demand increases sounds absolutely hyperbolic. What would you do instead? Continue existing trickle down policies? Use weird neoliberal tax breaks that require an accountant to utilize? If we continu
154.
▲
by
postpawl
5y ago
"Rents went up 20-40% across the board" I don't think you can blame that on the stimulus. There are tons of other forces driving up prices, including iBuyers and the lack of affordable new construction. The stimulus barely pa
155.
▲
by
postpawl
5y ago
“poorer Americans have been subjected to over regulation, an increased state and police scrutiny, under the theory that individual liberty is collectively corrosive.” That seems like the thesis of the blog post. I don’t think “over regulati
156.
▲
by
postpawl
5y ago
I built your (pre traffic light) kit! It works great, and it has been enlightening to see indoor co2 and pm2 levels. It’s good to have something to quantify when a window needs to be opened to let in some fresh air. Here’s a picture of the
157.
▲
by
postpawl
5y ago
Sublime still works pretty well. It's very fast. I've tried VS Code and ended up going back to Sublime. That's a personal preference though, and I can totally understand using VS Code instead.
158.
▲
by
postpawl
5y ago
"The issue is that the update is pushed on users with no indication that it will then require payment." Yeah, that's a valid complaint. The v4 upgrade probably should have been more explicit about that.
159.
▲
by
postpawl
5y ago
Why post this now? This happened almost a year ago. Developers are expensive these days, and I understand needing to fund development. Edit: Added back "Why post this now?"
160.
▲
by
postpawl
5y ago
Reminds me of this Wall Street Bets post: https://www.reddit.com/r/wallstreetbets/comments/mbx510/slv_... Basically says the silver market is manipulated to crush retail investors.
161.
▲
by
postpawl
5y ago
That’s what’s in Taco Bell’s meat filling. Source: https://abcnews.go.com/Business/taco-bell-reveals-mystery-be...
162.
▲
by
postpawl
5y ago
Yeah it should probably be setting “self._quick_recv = None” and “self._write = None” when it shuts down the transport. This probably would have fixed the leak too. I wasn’t seeing any leaky behavior after the fix though, so I think calling
163.
▲
by
postpawl
5y ago
You just need 1 other reference to the socket in code to prevent it from being garbage collected without socket.close(). For example, this won't automatically close the socket: >>> s = socket.socket() >>> ot
164.
▲
by
postpawl
5y ago
This SO post describes how shutdown is different than close: https://stackoverflow.com/questions/409783/socket-shutdown-v... So maybe shutdown helps in case other processes are doing something with the socket? I s
165.
▲
by
postpawl
5y ago
I tested your theory on a branch of py-amqp: https://github.com/celery/celery/issues/4843#issuecomment-99... It still leaks if you don't close the socket.
166.
▲
by
postpawl
5y ago
As far as I know, the only errors that you're supposed to "except: pass" from socket.shutdown are OSErrors. I think you want anything else (if it even throws anything else?) to be fatal. This is the same way cpython handles i
167.
▲
by
postpawl
5y ago
The sock.close() can also throw it’s own OSError, so it needs its own try/except block. For example, this wouldn’t handle the OSError on close: try: sock.shutdown() except OSError: pass finally: so
168.
▲
Fixing memory leaks in popular Python libraries
(paulsprogrammingnotes.com)
128 points
by
postpawl
5y ago
|
35 comments
169.
▲
by
postpawl
5y ago
Slack’s threads suck compared to Zulip’s. In Slack, threads only notify thread participants unless you choose to send it to the channel too, which defeats the purpose of threads by interrupting other conversations. In Zulip, everything in t
170.
▲
by
postpawl
5y ago
Only 8% of people in the United States make more than $100k: https://graphics.wsj.com/what-percent/ Don't know if I'd call it easy if it's something only 8 out of 100 people do. It also depends on the ar
171.
▲
by
postpawl
5y ago
Sort of - you need to make a requirements.in file that specifies only your top level dependencies, then you run pip-compile on that file to generate the requirements.txt.
172.
▲
by
postpawl
5y ago
That probably works for smaller projects without many dependencies, but it’s just going to install the sub-dependency versions that satisfy whatever comes last in the requirements file. The pip docs describe that situation here: https:
173.
▲
by
postpawl
5y ago
All the thymes and oreganos? Wow
174.
▲
by
postpawl
5y ago
Zuckerberg is going to track what your eyes are looking at so he can make sure you’re paying attention to ads.
175.
▲
by
postpawl
5y ago
I did something similar recently, but I put it in a 1U server so I could colocate it: https://github.com/pawl/raspberry-pi-1u-server
176.
▲
by
postpawl
5y ago
https://speed.python.org/comparison/ has some pretty comprehensive benchmarks too.
177.
▲
by
postpawl
5y ago
Saying big automakers don’t have a charging network is false? What about?: https://www.electrifyamerica.com/
178.
▲
by
postpawl
5y ago
This article doesn’t really explain event sourcing and some of the trade offs with event driven architecture in general (additional complexity). I’ve heard Git is an example of event sourcing. It has all the info for you to be able to deter
179.
▲
by
postpawl
5y ago
I use Netlify’s free tier to host static sites.
180.
▲
by
postpawl
5y ago
You can choose whether or not to back up messages.
More ›