Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nrdvana
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
nrdvana
2y ago
Because there's an overhead to make a connection, authenticate, set the default parameters on the connection, etc. I've never seen a framework that closed db connections between requests. Of course, the better design is to write
32.
▲
by
nrdvana
2y ago
I develop and maintain multiple applications that use a worker pool, and are small enough to run on a single host. We used pg for the user sessions, which get read and written on every single page request. Some of our apps are Internet-fa
33.
▲
by
nrdvana
2y ago
My understanding is that every electrolytic cap will eventually dry out. The capacitance drifts as this happens, so the quality of the cap and the sensitivity of the circuit to incorrect capacitance will greatly affect how long it takes for
34.
▲
by
nrdvana
2y ago
I've read that electrolytic caps dry out faster if they aren't holding a charge. Temperature is a concern, but I have a surprising number of devices that worked fine before I left them unplugged for a few years and then didn'
35.
▲
by
nrdvana
2y ago
The real security flaw is extracting a value from a process's own memory to identify what the process is. If you want a secure way to identify what a process is and where it came from, that needs to be a new feature in the OS. argv[0]
36.
▲
by
nrdvana
2y ago
If you know IRC well enough to want to mandate it for your company, you can probably set the server up in an hour or three. You can then install https://thelounge.chat/ and have your employees log into that for browser and
37.
▲
by
nrdvana
2y ago
I was sort of on the fence for whether to keep using IRC, for years. I used to have Trillian and later Pidgin as a multi-network chat client, and when using one of those, it makes perfect sense to idle in IRC channels. Then the networks g
38.
▲
by
nrdvana
2y ago
This looks really cool! though its a bit limited since it is a FUSE module and not a kernel driver, and unlikely to become a kernel module since it is written in C++ with large dependencies :-\ Would it be possible to take the core design
39.
▲
by
nrdvana
2y ago
Well, it depends if your self-rolled version is a complete library, or a quick sidetrack you implemented as a bigger project. If you published it as an installable independent library, and Ruby was using it, I think it's safe to say t
40.
▲
by
nrdvana
2y ago
It's a nice tidy CSV parser, but needs a new title. "world's smallest" is never going to happen in C#, for any measure of "smallest". And aside from that, nobody should be rolling their own CSV parsers if the
41.
▲
by
nrdvana
3y ago
I just went and read https://bugzilla.redhat.com/show_bug.cgi?id=1381997 and actually seems to me that sshd behavior is wrong, here. I agree with the S6 school of thought, i.e. that PID files are an abomination and that th
42.
▲
by
nrdvana
3y ago
Sadly by 2009 I'd moved on to a new job and didn't have much opportunity to use it. It didn't even have generics when I used it last. Looks like you have to allocate and free them manually though, which is less than I hoped
43.
▲
by
nrdvana
3y ago
Or better, just make an ssh without any dependencies. Statically compile it, and get rid of the libssl and libsystemd and even libpam and libc's nsswitch. (I actually do this for some of my systems)
44.
▲
by
nrdvana
3y ago
Well, sshd doesn't depend on liblzma in the first place, but Debian and RedHat thought it would be a good idea to tie it into libsystemd for logging purposes, and patched in support. It's still pretty bad to have systemd compromi
45.
▲
by
nrdvana
3y ago
Delphi kicked ass. Though, looking back, it didn't have hash tables at your fingertips like modern languages. I really can't imagine writing code without hashmaps anymore. Did that ever get added, and in a convenient way that d
46.
▲
by
nrdvana
3y ago
Not using windows much anymore, but great to hear about O&O and ExplorerPatcher. I notice you don't list an ssh client. I still install cygwin for that. Anything new besides putty?
47.
▲
by
nrdvana
3y ago
That just raises the hurdle for the attacker. The attacker in this case has full control to replace any function within ssh with their own version, and the master process of sshd will always need the ability to fork and still be root on th
48.
▲
by
nrdvana
3y ago
I'm pretty sure the reason English is hard to dethrone is because Britain ~helped~ forced the various colonies to join world commerce using English, so they started teaching it to entire generations as the national second-language, and
49.
▲
by
nrdvana
3y ago
But maybe that's beside the point. If someone wants to "learn French" they can learn by the official rules and communicate with other french-speaking people regardless of how many slang variants exist in France. They can al
50.
▲
by
nrdvana
3y ago
Depends on your tools, I suppose. I'd just like to share this: https://metacpan.org/pod/Data::TableReader::Decoder::IdiotCS...
51.
▲
by
nrdvana
3y ago
It would stay regular if there was a strict governing body for it that wasn't a Webster-style "whatever people are speaking is the new definition of correct". English really is a disaster of a language. There was a(nother) g
52.
▲
by
nrdvana
3y ago
Also not a biologist, but as I understand it: Every living creature synthesizes proteins. Every time you synthesize a protein, there is a tiny tiny chance that it synthesizes "backward". Backward proteins are physically incompat
53.
▲
by
nrdvana
3y ago
The problem is that you end up with two syscalls for every setting. e.g. chroot to change your own root, then newproc_chroot to change the root of a newly spawned process. Start making a list of all the ways you can change process state a
54.
▲
by
nrdvana
3y ago
Usually to make a program do something the author didn't think of, by passing it a filename to one of its descriptors where the author only gave you a configuration of a path. For example, starting a service under a monitoring system
55.
▲
by
nrdvana
3y ago
It has real value for as long as there are people who need a currency that isn't controlled by a government. In other words, it's an investment in the working capital of the criminal underworld. (and tinfoil-hatters) The money
56.
▲
by
nrdvana
3y ago
Yep, but in the end I was able to switch by monitoring the voltage generated by the water on the stainless rods, using a microcontroller. Worked great for a few years until I moved out. Haven't had a sump pump since. (good riddanc
57.
▲
by
nrdvana
3y ago
It's important to remember that the pandemic and supply chain mess affected all countries fairly badly, and the US is handling it better than a majority of them. So, even though things are not good, it shows a fair amount of skill i
58.
▲
by
nrdvana
3y ago
Rarely does a company make 20M off the work of one engineer. Every 4-5 engineers is another 1M expense, nevermind the other employee salaries. I get kind of annoyed when people look at large aggregate numbers and complain about how diff
59.
▲
by
nrdvana
3y ago
And the music industry solution is absolutely horrible. Every single venue that might have someone play copyrighted music is required to pay large annual sums to the RIAA, or get sued. There are armies of RIAA lawyers who go around to bas
60.
▲
by
nrdvana
3y ago
I had a house where a brand new copper line corroded and started leaking 2 years from installation, and I don't mean at joints or anything, I mean the local water just ate right through the wall of the pipe. I switched to Pex and was
More ›