[-] alr@programming.dev 20 points 6 months ago

If you're random Joe Schmoe who happens to need a database, I don't expect you to contribute. But when you're of the largest tech firms in the world...

[-] alr@programming.dev 8 points 10 months ago

Is kill -11 even allowed?

[-] alr@programming.dev 29 points 10 months ago

On the other hand, the OOM killer is worst of all: "kill process or sacrifice child."

[-] alr@programming.dev 3 points 10 months ago

For the benefit of anyone reading this later, the function to check end-of-file should be feof, not foef.

[-] alr@programming.dev 5 points 1 year ago

Just what we've been waiting for!

[-] alr@programming.dev 28 points 1 year ago

NEMA has called them "plugs" and "receptacles" for decades.

[-] alr@programming.dev 57 points 1 year ago

You forgot "don't say 'thank you for pointing out that we were sending social security numbers to everyone who visits our website that anybody could stumble across,' but rather 'you will be prosecuted to the fullest extent of the law, hacker!'" Courtesy of the Missouri Department of Education.

[-] alr@programming.dev 3 points 1 year ago

I got news for you. If you're not a citizen of the country you're located in and you don't have a work visa for that country, you're probably working illegally, whether or not your employer realizes. (Some exceptions for EU citizens, Canada, etc.)

[-] alr@programming.dev 10 points 1 year ago

Rather than messing with the EventListener, wouldn't it be easier to just throttle the function that it calls? You can find a bunch of articles online that will explain how to implement a throttle (and also a debouncer, which is similar, but not quite what you're looking for; a throttle allows a function to be called immediately unless it's already been called too recently, while a debouncer waits every time before calling the function and restarts the wait timer every time someone tried to call the function).

[-] alr@programming.dev 6 points 1 year ago* (last edited 1 year ago)

The Danish word for 99 is nioghalvfems, which literally means "nine and half five." Which you could be forgiven for assuming meant 11½. The trick is that a) "half five" actually means 4½, as in half less than five, and b) it's implied that you're supposed to multiply the second part by 20. So the proper math is 9 + (-½ + 5) * 20 = 99.

[-] alr@programming.dev 3 points 1 year ago

Of course, the correct way to quit Vi is ^Zpkill vi.

[-] alr@programming.dev 4 points 1 year ago* (last edited 1 year ago)

If you think French is bad...

// Danish
farve = "#(9+½+5)FFAA"
view more: next ›

alr

joined 1 year ago