|
Doom Mathematic posted:This already exists, there are these fake $1 bills which unfold and it says something like "I'm giving you something much more valuable than money... the word of Jesus Christ!" everyone who ever leaves that bullshit as a tip deserves to be decapitated and sent to hell by jesus himself
|
# ? Mar 8, 2022 04:01 |
|
|
# ? Apr 20, 2024 03:41 |
|
Doom Mathematic posted:This already exists, there are these fake $1 bills which unfold and it says something like "I'm giving you something much more valuable than money... the word of Jesus Christ!" they’re usually fake $20 bills though, to provide an extra twist of the knife to the poor server given one
|
# ? Mar 8, 2022 06:04 |
|
If I were impaneled onto a jury for a person who received one of those then I would refuse to convict. Not guilty of uh, whatever it is you said the defendant is charged with, your honor.
|
# ? Mar 8, 2022 06:48 |
|
also, not from hn per se but I still wanted to repost it because it contains one of the most savage burns i have seen in recent memory https://idlewords.com/2005/04/dabblers_and_blowhards.htm quote:I am not qualified to call bullshit on Paul Graham when he writes about programming, history, starting a business, or even growing up as a social pariah, but I do know enough about art to see when someone is just making poo poo up.
|
# ? Mar 8, 2022 17:12 |
|
HellsMaddy 3 hours ago | next [–] You all joke that this doesn’t happen in practice, but something like this literally just bit me and it took me a few too many minutes to figure out what was going on. I use a bash script as my BROWSER which calls another bash script to launch or communicate with my browser that I run inside a container. The script that my BROWSER script calls has some debug output that it prints to stderr. I use mutt as my email client and urlscan [0] to open URLs inside emails. Urlscan looks at my BROWSER environment variable and thus calls my script to open whatever URL I target. Some time recently, the urlscan author decided to improve the UX by hiding stderr so that it wouldn’t pollute the view, and so attempted to pipe it to `/dev/null`. I guess their original code to do this wasn’t quite correct and it ended up closing the child processes’ stderr.* I generally use `set -e` (errexit) because I want my scripts to fail if any command fails (I consider that after an unhandled failure the script’s behavior is undefined, some other people disagree and say you should never use `set -e` outside of development, but I digress). My BROWSER scripts are no exception. While my scripts handle non-zero returns for most things that can go wrong, I never considered that writing log messages to stdout or stderr might fail. But it did, which caused the script to die before it was able to launch my browser. For a few weeks I wasn’t able to use urlscan to open links. I was too lazy to figure out what was wrong, and when I did it took me a while because I looked into every possibility except this one. Luckily this wasn’t a production app. But I know now it could just as feasibly happen in production, too. I opened an issue[1] and it was fixed very quickly. I love open source! *No disrespect to urlscan, it’s an awesome tool and bugs happen to all of us! [0]: https://github.com/firecat53/urlscan [1]: https://github.com/firecat53/urlscan/issues/122 reply
|
# ? Mar 9, 2022 14:08 |
|
fritz posted:it could just as feasibly happen in production, too may have to disagree there
|
# ? Mar 9, 2022 14:19 |
|
fritz posted:HellsMaddy 3 hours ago | next [–] this poster’s profile and linked personal site is not what I expected after reading that workflow
|
# ? Mar 9, 2022 19:26 |
|
guess the topic: mechanical_bear 32 minutes ago | root | parent | next [–] No, but possibly one of the greatest forces of good we have conjured as humans. reply a: capitalism
|
# ? Mar 9, 2022 20:06 |
|
hobbesmaster posted:this poster’s profile and linked personal site is not what I expected after reading that workflow i was mostly surprised that rms posts on hn
|
# ? Mar 9, 2022 20:07 |
|
fritz posted:guess the topic: moral good is when you allocate resources efficiently and the more efficiently you allocate resources the more good it is. also economic rent is efficient now
|
# ? Mar 9, 2022 21:00 |
|
epolanski 56 minutes ago | root | parent | prev | next [–] Also, if you care about environment consider not getting an animal at all. The idea that we grow food to feed cattle or fish to feed pets is among the biggest environmental stupidity I can think of. I went vegetarian to help the environment and here people feeding dogs and cats fish and meat. Makes me think I do it all for nothing.
|
# ? Mar 10, 2022 00:59 |
|
He's right, we should just plant great fields of corn over wherever it is that fish live.
|
# ? Mar 10, 2022 01:46 |
|
Xik posted:epolanski 56 minutes ago | root | parent | prev | next [–] agreed, i'd like to live in the zootopia reality as well
|
# ? Mar 10, 2022 01:53 |
|
Xik posted:epolanski 56 minutes ago | root | parent | prev | next [–]
|
# ? Mar 10, 2022 01:53 |
|
going down memory lane with a link to the history of java which was elided from "the java handbook" http://www.blinkenlights.com/classiccmp/javaorigin.html oops the author is a pedo https://en.m.wikipedia.org/wiki/Patrick_Naughton
|
# ? Mar 10, 2022 01:58 |
|
The Something Awful Forums > Discussion > Serious Hardware/Software Crap > YOSPOS > hn thread: oops the author is a pedo
|
# ? Mar 10, 2022 03:24 |
|
ultrafilter posted:The Something Awful Forums > Discussion > Serious Hardware/Software Crap > YOSPOS > hn thread: oops the author is a pedo
|
# ? Mar 10, 2022 05:56 |
|
ultravoices posted:going down memory lane with a link to the history of java which was elided from "the java handbook" what was the programming room like? they all never gave a poo poo about memory or was too much memory usage a persistent issue or?
|
# ? Mar 10, 2022 06:55 |
|
an undiagnosed economics phd just logged in zhte415 6 hours ago | root | parent | prev | next [–] Often a comparison is made about the cost of electricity, a valid comparison. But, there's more. How much space does this cost? This is a desktop vs laptop, and or, a location vs location argument. A desktop case takes around 0.2m2 floor space. Now, for simplicity's sake as San Francisco is often incorrectly assumed to be where most readers of HN live, but given that we're all somewhat versed in SF prices: A 1 bedroom, say 60m2, apartment costs about $3000. So, that desktop case is costing about $10 per month in floor space. That's $120 per year, or $600 for 5 years. Quickly adds up! You could run the numbers for where you live. While a desktop could be put under a desk and may not initially factor in as an explicit cost, everything is at the opportunity cost. Say, your legs, or a houseplant, neither of which cost anything in electricity or upfront cost. (Written on an 11 year old X220 with an i3 processor.)
|
# ? Mar 10, 2022 11:39 |
|
NihilCredo posted:an undiagnosed economics phd just logged in Evicted my toaster because it wasn't paying it's share of the rent.
|
# ? Mar 10, 2022 13:09 |
|
Ask HN: Any weird tips for weight loss? 126 points by fatmoron 8 hours ago | flag | hide | past | favorite | 512 comments I am overweight and just curious. My theory, though untested, is that getting an oxygen tank might speed up passive weight loss substantially. 84% of all weight that is lost is in the form of carbon dioxide, and I wonder if upping the amount of carbon dioxide exhaled would lead to more weight loss. Oxygen only makes up 21% of our air. I am making the assumption that the lungs can handle being 100% saturated.
|
# ? Mar 10, 2022 14:52 |
|
mystes posted:It's there an http status code for that? 014
|
# ? Mar 10, 2022 14:52 |
|
fritz posted:Ask HN: Any weird tips for weight loss? helium huffing to beat the scale
|
# ? Mar 10, 2022 18:07 |
|
the amount of effort people put in to trying to deny that the only way to lose weight is to eat less and exercise more is just astonishing next up: drinking nothing but ice cold water so your body has to burn calories to heat it up to 98.6 degrees. the more cold water you drink, the more calories your body expends, and the more weight you lose!
|
# ? Mar 10, 2022 18:13 |
|
sylware 3 days ago | parent | context | flag | favorite | on: The Dirty Pipe Vulnerability This will be worst over time until "more planned obsolescence than anything else" code is committed into the linux kernel. Many parts of the linux kernel are "done", but you will have always some ppl which will manage to commit stuff in order to force people to upgrade. This is very accute with "backdoor injectors for current and futur CPUs", aka compilers: you should be able to compile git linux git with gcc 4.7.4 (the last C gcc which has beyond than enough extensions to write a kernel), and if someting needs to be done in linux code closely related to compiler support, it should be _removing_ stuff without breaking such compiler support, _NOT_ adding stuff which makes linux code compile only with a very recent gcc/clang. For instance, in the network stack, tons of switch/case and initializer statements don't use constant expressions. Fixing this in the network stack was refused, I tried. Lately, you can see some linux devs pouring code using the toxic "_Generic" c11 keyword, instead of using type explicit code, or new _mandadory_ builtins did pop up (I did detect them is 5.16 while upgrading from 5.13) which are available only in recent gcc/clang. When you look at the pertinence of those changes, those are more "planned obsolescence 101" than anything else. It is really disappointing.
|
# ? Mar 10, 2022 19:31 |
|
you had me at “backdoor injectors” only handcrafted artisanal binaries are good enough for this guy. better brush up on machine code.
|
# ? Mar 10, 2022 19:48 |
|
that guy is going to have an aneurysm when the first rust commit hits
|
# ? Mar 10, 2022 21:01 |
|
he's consistent at least sylware 5 days ago | parent | context | prev | next [–] | on: Essential C [pdf] Could you tell the linux kernel devs to stop pouring tons of extensions and non C89 (with benign bits of c99/c11) code everywhere? For instance in the whole network stack, some "agents of the planned obsolescence" did not use constant expressions in switch/case statements or initializers. Also tell those who are using that toxic c11 "Generic" keyword to use explicit code instead. I think, the main issue for C now is the standard body trying to obsolete stable in time C code and forcing upon devs/integrators the usage of the only few compilers which are able to follow fast enough their tantrums (latest gcc/latest clang). Results: all attempts to provide "working" alternative C compilers is beyond reasonable. This is becoming so accute, it is more likely to be a worldwide scam than anything else. Yep, open source software is not enough anymore, it needs to be lean, simple but able to do reasonably "the job", and ofc very stable in time hence C89 only with benign bits of c99/c11, or "standard assembly". reply sylware 6 days ago | parent | context | prev | next [–] | on: Cybercriminals who breached Nvidia issue one of th... That's why tegra "crippled" driver went into libdrm just recently? Bad timing? Or is this to prepare code "release" namely some full open source driver support? That said, "open source" is not enough anymore: Lean code using simple and very stable in time C (C89 with benign bits of c99/c11 and no more) is as much as important nowadays. Cyber Robin Wood. reply sylware 26 days ago | parent | context | prev | next [–] | on: Epic Games' CEO Tim Sweeney: Linux has a 'terrific... When I think epic: the unreal engine, a concurrent of the steam client (payment and internet distribution). Buildings binaries for distribution on linux OSes requires more experienced and more work than on the other OSes. Being a user of steam games, and as a developer, the following is what I think of, that to maximize compatibily and augment binaries life time: * Be pure ELF64 (exe and so), which depends only on libdl (static loading) and its 3 symbols (dlopen/dlsym/dlclose). Pure ELF64 means it must not use "main()" but the SYSV ELF ABI entry point (which is actually almost main()...) and use fine grained linking. * use pthread TLS, and not ELF TLS symbols (do not know if compilers provides "switches" to do that). * window system: wayland(static code)->x11(xcb libs) fallback. * 3D, gfx acceleration: vulkan (GL... mmmh... I would drop it) if the binaries are a game or a GUI which _really_ needs some sort of hardware acceleration (CPU with media instructions are seriously fast for 2D). * input: dynamically load libxkbcommon(wayland) libxkbcommon-x11(x11), that for the client side xkb state machine which is fed with keycode inputs. Joystick support would directly use kernel events and the evdev file protocol. * sound: dynamically load libasound (pulse and pipewire are hidden behind the alsa api, if ever present since it could be a simple dmix/dsnoop). Unfortunately, c++ being c++, gcc/clanc/etc c++ runtime must be forked to be libdl-ized (since it is not the case), and all 3rd party libs. This is significant work, but brutal and supposely ez. sylware 37 days ago | parent | context | prev | next [–] | on: The Problem with C (2020) I stick to lean and simple C89 with benign bits of c99/c11. With nice tables of functions and clever recursive pre-processor naming, you can scale that easily to large modular applications and keep everything very clean. The absolute and unquestionable truth: a c++ compiler is abysmally more complex and hard to write than a C (89 with benign bits of c99/c11) compiler, and this is mecanically true due to the syntax complexity difference. There are many shmol and cute alternatives C compilers out there (and there are working better each day which goes by, and some are doing more than enough optimizations), and I would like to use them, that which is not possible with c++, due to its complexity hence shuting the door hard on any reasonable efforts of writing a "working" alternative. That said, personnaly, I have high hopes (maybe too high) if RISC-V is successful: I see everything assembly (not even C anymore) with high level script languages of the like of python/javascript/lua/etc. I am writting more and more assembly these days (mostly x86_64 though, desktop RISC-V are only starting to ramp up in performance), and the main pitfall seems to be the abuse of the macro language of the assembler, which could be averted if explicitely aware of this bias.
|
# ? Mar 10, 2022 21:04 |
|
risc-v is esperanto but for computer nerds didn't read the rest
|
# ? Mar 10, 2022 23:00 |
|
they really like the phrase "C89 (with benign bits of c99/c11)"
|
# ? Mar 11, 2022 02:37 |
|
I’m curious if declaring variables anywhere but the top of the function counts as “benign”
|
# ? Mar 11, 2022 02:52 |
|
it's pretty transparently "features i am struggling to implement in my personal c compiler" also quote:clever recursive pre-processor naming mmmm
|
# ? Mar 11, 2022 10:22 |
|
fritz posted:he's consistent at least I like this nerd. He seems like a harmless weirdo (who really likes parentheses). A nice change to the usual crypto libertarians.
|
# ? Mar 11, 2022 11:08 |
|
fritz posted:Ask HN: Any weird tips for weight loss? hell of an assumption, did anyone bother to correct him?
|
# ? Mar 12, 2022 01:11 |
|
kitten emergency posted:hell of an assumption, did anyone bother to correct him? I hope not, for the sake of future hilarity when he posts an update from the hospital, TCC style
|
# ? Mar 12, 2022 14:16 |
|
"PG seems to truly live out Jesus' wisdom and the Golden Rule." - gunapologist99 https://news.ycombinator.com/item?id=30651233
|
# ? Mar 12, 2022 15:07 |
|
Overtonwindow 5 minutes ago | prev [–] For a while I was pushing the no-fly zone as well, until I read this article. I'm surprised Russia would be heading for an outright defeat, and if true they've marshaled the bulk of Russian forces in this conflict, I have to wonder what the rest of the defense position looks like for Russia? For example, if China were to, say, start rolling across Siberia, besides moving the mother of all bowel movements, there's absolutely no way in my mind Russia could stop a complete Chinese defeat. In fact, if China did invade Russia, they could do so to "stop a raving mad man" and I dare say be cheered on by many in the west. China could...almost redeem a piece of itself. That would start a nuclear war, however, because Putin would simply press the button..but it's fodder for thought how China could play a role. reply
|
# ? Mar 12, 2022 18:57 |
|
Ask HN: How would you build a 1000 year Bandcamp? djohnston 1 hour ago | prev [–] Blockchain. Seriously.
|
# ? Mar 13, 2022 23:43 |
|
not HN but it easily could be
|
# ? Mar 14, 2022 01:14 |
|
|
# ? Apr 20, 2024 03:41 |
|
sillysaurusx 15 minutes ago | parent | next [–] I don’t understand how delivering software is related to “how can I prepare for hard economic times?” Let me tell you, as one of the highest performing team members in every organization I’ve been at: if a manager doesn’t care about you, no amount of performance will help you. It didn’t help me. And whether a manager cares about you is mostly luck of the draw. Sure, there’s politics at play. But the most common situation is that you’re not really helpful to their career mobility. In that situation, “learn to ship software” is the opposite of helpful. If your manager doesn’t have your back, and you can sense this, you need to look for a new job. Because I guarantee you’ll be the first to go. It all comes down to whether some dude in a proverbial suit likes you. (Isn’t it interesting how it’s always some dude? I feel like women would be better suited to actually caring about team members.) You should at least mention to those young devs that performance is one of the least important aspects of being a part of a team, for 97% of companies. It’s table stakes. Raising the stakes won’t help you if you can’t play the game. As for preparing for hard economic times, my advice is pretty simple. Exploit the good times, and never assume it will last. If you can’t survive losing your income for three months, make changes. That’s pretty much it. reply
|
# ? Mar 14, 2022 15:50 |