Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Twirrim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
211.
▲
by
Twirrim
1y ago
> Visa/Mastercard banning porn has been a consistent and steady policy for years now. Yeah, because they got sued for processing payments on some porn sites that weren't taking down revenge porn. They're not puritans, the
212.
▲
by
Twirrim
1y ago
> For example Stack Overflow used to handle all their traffic from 9 on-prem servers (not sure if this is still the case). Millions of daily users. Power consumption and hardware cost is completely insignificant in this case. They just f
213.
▲
by
Twirrim
1y ago
Yikes, the gzip stdlib module is painfully slow in python. Even by "I'm used to python being slow" standards, and even under pypy. Even if I drop it down to compresslevel=5, what I'm most likely to do is consume all my
214.
▲
by
Twirrim
1y ago
I had a few minutes. This turns out to be really easy to do with FastAPI: from fastapi import FastAPI from starlette.responses import StreamingResponse from fastapi.middleware.gzip import GZipMiddleware app = FastAPI
215.
▲
by
Twirrim
1y ago
I could, at the expense of a lot of bandwidth. /dev/urandom doesn't compress, so to send something that would consume 10GB of memory, I'd have to use up 10GB of bandwidth. The 10GB of /dev/zero that I return
216.
▲
by
Twirrim
1y ago
It's all just spray-and-pray crap. You're extremely unlikely to be their target, they're just looking for a convenient shell for a botnet. The most likely way they'll handle it if you do actually break them is just bla
217.
▲
by
Twirrim
1y ago
I've been sending a nice 10GB gzip bomb (12MB after compression, rate limited download speed) to people that send various malicious requests. I think I might update it tonight with this other approach.
218.
▲
by
Twirrim
1y ago
Multi-Account Containers is a major feature I can't sing the praises for enough. I use it all the time, both to isolate stuff to break cookie tracking, and to enable me to log into things with two different accounts without opening a
219.
▲
by
Twirrim
1y ago
It's perfectly fast. Slower than C/C++ under most scenarios, but not by a particularly large amount, and in some scenarios faster due to optimisations only possible from dynamic runtime observation.
220.
▲
by
Twirrim
1y ago
How the heck did you manage that? I've been working on two major clouds for well over a decade, both built primarily on Java, and not seen a single production outage caused by garbage collection. Not one. Not even S3 in us-east-1 at i
221.
▲
by
Twirrim
1y ago
> The 3 Ps made history. According to programmers from 20 years ago, they were like religions. Each had its own philosophy and a loyal group of followers crusading online, getting into heated debates, all trying to win over more adopters
222.
▲
by
Twirrim
1y ago
What's actually amazing is how you're unable to answer a straight question. If you call something "stupid" it doesn't really convey anything meaningful, especially not in the way you're using there, it comes ac
223.
▲
by
Twirrim
1y ago
Glad I'm not working with you if you consider that kind of PR comment to be worthy of a negative comment.
224.
▲
by
Twirrim
1y ago
Someone I collaborate with has been having all sorts of fun with a 4k->64k page transition for stuff running on Arm. Among some of the fun has been discovering memory leaks that really weren't noticeable or a big deal at 4k, but no
225.
▲
by
Twirrim
1y ago
If you don't start with approximately the right destination, you're definitely never going to end up there, even if you have to take some detours and compromise on some choices. It gets really frustrating reviewing people's d
226.
▲
by
Twirrim
1y ago
How do you accurately evaluate candidates with them? It's an artificial test that doesn't reflect your working environment at all, and so you're not actually getting to see what they'd be capable of doing faced with re
227.
▲
by
Twirrim
1y ago
I used to give a code review task, of some particularly egregious python code. I'd provide all help with the syntax, and emphasise strongly upfront I don't expect them to know python or its syntax. It has proven to be a low stres
228.
▲
by
Twirrim
1y ago
In almost every example you state, we've taken the word and the pronunciation, but have dropped the accent marks themselves. It's part of what makes English pronunciation a minefield.
229.
▲
by
Twirrim
1y ago
There were standard ways to handle that, such as hosting a separate daemon that acts effectively as your proxy. Using Unix sockets instead of TCP/IP makes connecting to it relatively cheap.
230.
▲
by
Twirrim
1y ago
Your apache/whatever config would be pointed to the symlink location. No one would be able to get at the old versions of the site. We'd use this approach not just for webapps, but versions of applications we'd build in house
231.
▲
by
Twirrim
1y ago
We used to use symlinks to enable atomic operations, too. e.g. under /var/www/ we'd have /var/www/webapp_1.0, and have a symlink /var/www/webapp pointing to it. When there was a new versio
232.
▲
by
Twirrim
1y ago
Apache's httpd is great, reliable, fast, and feature-full, and you don't have to deal with Nginx's ongoing conflict over the the open source vs commercial offerings. That conflict has caused needless pain, like e.g. that q
233.
▲
by
Twirrim
1y ago
Yes, has done for a while
234.
▲
by
Twirrim
1y ago
Here's hoping Canonical leadership will some day finally accept how broken the process is. Congratulations on making it through that crazy, unscientific process.
235.
▲
by
Twirrim
1y ago
I get how tempting it is to stick with a theme, but you're now running full speed into a name collision in the exact same space that you're attempting to work in. It's probably time to let go of that naming convention.
236.
▲
by
Twirrim
1y ago
There's also libgccjit, https://gcc.gnu.org/wiki/JIT , though all of the third party language bindings appear to be stale for it.
237.
▲
by
Twirrim
1y ago
> I am seeing similar trends in arXiv submissions, as it seems it has become something of a means to inflate the value of one's own product(s) with a veneer of academic rigor Unfortunately this isn't new. Almost as long as peo
238.
▲
by
Twirrim
1y ago
You can make it as small as you want. Every single feature can be disabled. At the moment mine is relatively minimal format = """ $username\ $hostname\ $shlvl\ $directory\ $git_branch\ $git_com
239.
▲
by
Twirrim
1y ago
I'm senior, been working in the industry for closing on 25 years now. I usually avoid anything "ohh shiny". For most of my career I used a very simple PS1: export PS1="\[\033[1;32m\][\t \u@\h \w]\\$\[\033[0m\] &qu
240.
▲
by
Twirrim
1y ago
I'm senior, been working in the industry for closing on 25 years now, majority of that dealing with *nix systems of various descriptions. I usually avoid anything "ohh shiny". I've tried prompts in the past, and they mo
More ›