skysight-inc/HackerNews huggingface dataset:
HackTheBox (https://www.hackthebox.com/) is the largest and most active hacker challenge website. Focussed mainly around black box pentesting of vulnerable Windows and Linux machines, but they have lots of other types of content these days too such as CTF challenges and paid lab environments.
Thanks!

We're building a collaborative platform to gather and share best coding practices.

In short, it helps us highlight code snippets from the IDE (JetBrains, Visual Studio, VS Code), discuss them in Slack (or MS Teams or Discord or Mattermost), and document them with contextual examples.
I've been generating a ton of images with Stable Diffusion using my desktop's GPU, and I needed a way to organise them all, so I built this! Just putting the finishing touches on it now.

I also wrote a little article about how the app was built: https://pocketarc.com/posts/diffusion-depot-the-smart-image-...
Oh no, for god's sake, not another one of those shovelware chat platforms...
You mean your computer's PSU doesn't need a 120°C rated plug? Bro do you even CUDA?
I read somewhere that growth hormone gets released after a proper nap (not just rest, maybe 30 min or so). Body builders, and actors preparing for roles where they bulk up need to take several naps a day. I don't have a source handy, unfortunately.
Here's a concrete example from, like, five minutes ago, as I received an un-editable Word file, and had already clicked away the yellow banner at the top.

Technotroll: How do I enable editing of word document?

ChatGPT: To enable editing in a Word document, follow these steps:

Open the Word document you want to edit.

If the document is in "Read-Only" mode, you'll need to enable editing. Look for a yellow or red banner at the top of the document that says "Protected View" or "Read-Only." Click on the banner, and you should see an "Enable Editing" button. Click on it to enable editing mode.

If the document doesn't have a "Protected View" or "Read-Only" banner, it may already be in editing mode. In that case, you can start editing right away.

If you are using Microsoft Word, you can also check the top-right corner of the window. If you see a button that says "Editing Restricted," it means the document has restricted editing. Click on the button and select "Stop Protection" to enable full editing.

In some cases, the document may be password-protected, preventing any edits without the password. If you're prompted to enter a password when trying to edit, you'll need to obtain the password from the document's owner or author.

By following these steps, you should be able to enable editing and make changes to your Word document. Remember to save your changes regularly to ensure your work is preserved.

Technotroll: I clicked the x on the yellow banner. Now what?

ChatGPT: If you accidentally clicked the "x" on the yellow banner in Microsoft Word, which appears when a document is in "Protected View" or "Read-Only" mode, you can still enable editing by following these steps:

Click on the "File" tab in the top-left corner of the Word window. This will take you to the "Backstage" view.

In the "Backstage" view, you should see an "Enable Editing" button on the right-hand side. Click on it to enable editing mode.

Alternatively, you can press the "Esc" key on your keyboard to exit the "Protected View" and enable editing.

If you closed the yellow banner by mistake, don't worry. You can still enable editing by following the steps above. Remember to save your changes regularly to ensure your work is preserved.

Conclusion: It worked almost immediately. If I were to Google it, I'd have to verify multiple documents before I got to the answer.
Caught in the Cloud – How a Monero Crypto Miner Exploits Docker Containers
12 feet? The kids are working on strapping a pair of them to your face and calling it VR!
There is no comparison between TDengine and VictoriaMetrics at the moment. I am also not aware of any benchmarks. If you are willing to do such analysis and share it, that would be very cool.
I am 41 and still have no driving license. But I can relate to cycling alone outside the cities. There is just something about just moving forward outside the cities without a clear goal.
In the UK and Ireland (and maybe elsewhere?), a kettle lead is actually C13. I guess you need a beefier cable/pins in the US, as you're drawing more current at a lower voltage.

Most kettles now have a base with an integrated cable though, so the name doesn't really correspond with the cable's most common usage any more.
Yes, but more likely because of clock skew because the battery long ago died. Not that I've ever seen that...
It's very interesting. I may try it in the future.
It’s more envy than surprise; if they’re capable leaders then they must certainly lack in some other ability to learn and understand.
I have a recent QLED, my parents in law have a recent OLED (LG), seems to be the same. I'd say the QLED is easier to watch during the daylight with sun in the room.
I do little game programming on the side. I don't program that much anymore on my day job so these little 1-2 kLOC projects with a quick feedback loop are quite enjoyable.

Nothing complicated, really. Wolf3d-style, puzzles, etc. Because these are mostly made to have some computer-related fun together with my daughter, they don't really need that boring kind of polish a real game requires. So it's pure fun.

After making a few stupid 3d game prototypes I've come to a conclusion that pure libSDL tinkering gets old really fast so I wanted an engine, and Quake 1 suits my purpose perfectly: scriptable through a simple language (QuakeC), a bunch of level editors available(Trenchbroom is a dream), as well as a small and welcoming community. And this is probably the last broadly used 3d engine that a semi-decent programmer can understand at all levels.

I even made an Emacs mode for QuakeC editing. This is part of the fun!
Meanwhile you can just google for those same books, and often get the full text, including quotes directly in the search results.

I'm not a lawyer, but it ought to be a pretty good argument that "Google has been doing this for over a decade".

Not to mention Google Books!
ChatGPT: Inner Child Therapy Request
>But they said a daytime sleep was hard in many careers, with work culture often frowning on the practice.

Depends on the country's culture. Some countries embrace this, and even close down shops/businesses temporarily for nap/lunch time.
The Protein Casino
What’s the implication being made, is it that Dominion won?
As far as I’m aware:
Fact: the machines are flawed
Fact: Judge ruled Fox had made false statements which harmed Dominion, sent Fox’s level of culpability to be weighed by the jury but the case was settled before deliberations.
The Helsinki Foundation does this - in the constitution it states that the land use cannot be changed without permission from all donors, effectively giving each donor a veto right (and donations can be 1$).
Thanks! It's hard to tell from a glance how realistic the Wehr experiment was in terms of simulating a workday, but I'll look into it!

The historic research seems focused primarily on the biphasicity of sleep, but I'll see if I can find out what evidence there are for specific biphasic schedules.
gopls, staticcheck, errcheck and ineffassign are non-optional for golang dev.

add them to flycheck or similar, and go is a fantastic experience.

should they be part of the compiler? maybe. i’m not losing sleep over it.
Unreal does work on Linux, I'm currently using it on arch
> Globals work well enough when each server process has its own set...

PostgreSQL uses a process model. So the article just states that globals work fine for PostgreSQL

> Knizhnik has already done a threads port of PostgreSQL. The global-variable problem, he said, was not that difficult.

I see no big problem based on information from person who did some porting already.
Advanced binary fuzzing using AFL++-QEMU and libprotobuf: a practical case of g
If I recall correctly, all system groups should have a leading underscore for OpenBSD. However, they make exceptions for groups that have been around long before this became their standard.
I was in AAA game dev for a bit over a decade and also made some browser and console games on the side. They're all here: https://liza.io/games/

None of my side projects were very good, but I loved working on them. My personal favorites were Promiscuous Flea, Alien Tree, and Adopt-a-Human.
not rising to this sarcastic bait.
I appreciate the thought provoking dialectic. I found, in particular, your insinuation regarding my irreparable mental deficiencies to be particularly helpful in solidifying your point of view.
I use some Polish email provider - the amount of times websites say my email must not be valid because it's @[service].pl was way too high :(
that's a common issue in high power applications, be it in a factory or a train.
You need to add special breaker which allow a long current peak and switch on loads in a sequence
Not really. Sort by new and take a look yourself. Nonsense posts get downvoted before a moderator has to do anything. People who sort by top or whatever never see it.
I used to Google things, but then it started returning false information. 75% of the time I use Google, and it summarizes the answer to a question at the top of the results page, it's erroneous. So, which is better?
> The usual advice is to follow what the stdlib does.

This seems to be a significant problem in general, because gophers want clear direction (after all the language was created specifically for… choices to be limited) so they take quips as gospels, but robpike, rsc, etc… take them more as suggestions / guidance (90/10, possibly even 80/20) to be moderated by taste.

I don’t remember which one but I think it was robpike who expressed frustration on one of the recently popular issues / proposals, because the proposal was essentially to legislate one of the more common quips, and they like being able to break those when useful or convenient.

I think there was also something similar to your exploration here with zero values, where despite the quip that you should “make the zero value meaningful” multiple standard library modules will straight up panic if fed zero values (a classic example being the File struct, `File.Name()` panics and pretty much every other method returns ErrInvalid, so a zero-valued File is useless, actively problematic, and the source of unnecessary overheads).

An other fun one is that you can’t call IsZero on a zero `reflect.Value`, and the error message is quite amazing:

panic: call of reflect.Value.IsZero on zero Value

You need to carefully read the doc and notice that th middle paragraph documenting Value itself says:

> The zero Value represents no value. Its IsValid method returns false, its Kind method returns invalid, its String method returns “<invalid Value>”, and all other methods panic.
Yes, my experience was definitively European, as in PAL. It was rather neat, until the image panned… (The problem being, apparently you still have to alternate between fields in order to maintain the illusion of interlaced video, so you get an A-B-A-B C-D–C-D… sequence. Some attempts were made to improve the resulting interlace clash by comb filters, etc, but this only started to work somewhat properly, when the days of CRTs were already numbered.) I actually don't know if there were similar developments with 60Hz standards.
> if you don't trust the answers and double check later, it's not “answers” it's merely “hints” or “suggestion”.

The same is true of Google search results and Stack Overflow answers and academic journal articles and so on. No source of information can be entirely trusted and they all require verification.
I don't disagree, but only some of the rules are really about the shell itself. A significant part of the problem is the stringly-typed interface of exec. Avoiding passing filenames starting with "-" has little to do with shells.
I have such fond memories of that game, specifically the single player. It was the first time I ever felt truly engrossed by a game storyline. I even loved the FMVs which felt like the perfect blend of CG and live action back then - I later learned that the saber duels were the first captured on film since Return of the Jedi.

Such a shame that it was passed up for porting to other platforms. Would love to play it on my Switch like I can the followup.
Ad absurdum than a new language will always be better, because usage patterns change and the new language doesn’t yet have any existing code bases using the old ones.
What are Rizin and Cutter, and what value do they offer over Ghidra?
> Usually this isn’t necessary and its better to just return the error unwrapped.

This is a terrible advice. Wrapping is extremely helpful in providing additional context for the error travelling up the call stack. Without wrapping, one typically ends up with software logging generic errors like "file not found" , which you can't act on because... you don't know where it's coming from. If you skip error wrapping, better be ready to enjoy quality time when production crashes.
Yes, but for GPUs performance scales fairly close to 1:1 with increasing transistor counts. Newer GPUs generally have more of the same type of compute units tiled out.

The original general-purpose GPU, the NVIDIA 8800 GT had 112 cores. The RTX 4090 has 9,728! Each core has pretty much remained the same: a 32-bit arithmetic/logic unit (ALU).
Do you want your children to be like you? A programmer's perspective
Yes – it's both the most fun and frustrating hobby. :) Nothing gets me in that focus zone like working on a level or cl
oding a new gameplay system. I think it's the thrill of tweaking, testing, tweaking, over and over again, which eventually produces a very satisfying product.

I'm currently working on a Godot project (highly recommend the engine for hobbyists).

The last project I released is a free total conversion survival horror mod for Half-life 2 – https://fourthstoa.itch.io/the-apocalypse-of-eden
I developed/published mobile games for awhile during and immediately after college. I think my games saw somewhere in the ballpark of 500,000 downloads and I made "OK" income from them for 1 - 2 years (roughly on par with a minimum wage job in the US).

I briefly considered going full-time into solo game dev. But once I got my first "real" job offer after college, I quickly let go of that idea.

Many years later, as a SaaS founder now, I have a strong itch to get back into game development. One of my dream goals is to some day exit my company and then comfortably/leisurely "retire" into a career as a solo game dev.
I wrote a tiny invaders-style game last year: https://susam.net/invaders.html

HN threads about it:

• https://news.ycombinator.com/item?id=30334667

• https://news.ycombinator.com/item?id=34464865

It was, in fact, a childhood dream of mine to write a game like this. However, the little GW-BASIC programming I knew and the very limited access to computers I had during my childhood was insufficient to write anything more sophisticated than simple text-based adventure programs. This game is written using plain HTML, CSS, and JavaScript. It uses HTML5 Canvas for graphics and Web Audio for sound. Although 25 years too late, writing this little game fulfilled that childhood dream of mine!
Just wait for the migration from Slack to MS Teams, makes me wanna stop working all together. Also, MS recently launched their Notion clone, so all Notion users in MS shops better prepare to migrate to a much worse alternative.
I said pixel aspect ratio, but what I meant was pixel aperture ratio. I hope that's clear from the context.
Those fall under the second category in the article. No different from using a command line application and passing in a set of parameters and receiving an output.
I don't think the author talks about loneliness. He talks about the experience of driving alone. Which everyone can do. Take it at face value.

And even if it would be about loneliness, there's nothing wrong in connecting with people over internet.

I do think everyone should travel alone at least once. I allows you to discover yourself.
CO²!
I don't have to have built a car to be able to judge the quality of a car to a decent approximation. And with code, surely, skill carry over is very real. Being able to generalize is literally our entire thing.
Well, yes - maybe we shouldn't be using electronic voting machines in the U.S?

https://xkcd.com/2030/
> They announced the deal in Sept 2022, when the Nasdaq had already dropped significantly.

The price was likely locked, at least in significant part, well before this date. There would have been diligence happening for months prior to this, to finalize the numbers. But the large pieces would have been in place well before September.

It would have been possible for Adobe to walk away from whatever promises (likely not legally binding) they had made, but this would have hurt their reputation as an acquirer. Potential acquisition targets are already wary enough of a nonbinding LOI; if Adobe had turned its back after signing an LOI with Figma, that would not soon be forgotten by VCs, startups, and their lawyers.
I fear that the days of no-flicker displays are numbered. Can't imagine that they invent something with per-pixel LEDs without PWM.
In his defense the Australian beach the scene is meant to take place does exist.
I am/was, some how I ended up with my own programming language instead.
Interesting. I had this same issue occur a few weeks ago and chalked it up to user error. An entire folder (subpath) in a bucket got wiped out. Code review did not turn up anything that would cause a full path wipe.

Also using Firebase APIs for Google storage.

I really like Firebase, but this really made me wonder weather I should switch over to AWS S3 for the storage.
Bitcoin: Addressing the Ponzi Scheme Characterization – Lyn Alden (2021))
Efficient Internationalization with ChatGPT
Would you mind giving a reference to the paper? A quick googling didn't brought anything.
Confabulation is unintentional, FWIW:

> In psychology, confabulation is a memory error defined as the production of fabricated, distorted, or misinterpreted memories about oneself or the world. […] Confabulation occurs when individuals mistakenly recall false information, without intending to deceive.
try wickedengine!

i change the engine regularly and it compiles in 30 seconds. good linux support, nice api, and it’s fast.

the engine is compiled as a part of game source. this feels like the right way. it’s all one thing.
This needs to be a widget on my lockscreen and/or menu bar on my computer.
Yes. First line of attack should be to experiment with improving the quality and/or quantity of your night sleep. If this happens to you mainly after you've been awake for 8 hours, try a mid-day nap.

If none of that helps, investigate medical conditions that might affect your arousal, be they psychiatric (depression, ADD) or physical (sleep apnea, eyes).

A possible remote third option is that you're frequently traveling as a passenger and allow yourself to use the riding time to rest, so your mind associates the running car with a resting place.
There is no going around abstraction, that’s a necessary part of any non-trivial program as that’s the only method we have to control complexity. Your struct is also an abstraction, you could have defined another one, use it differently, etc.

Many of the design patterns are useless bullshit, that is long superseded by a language feature, so that point doesn’t stand imo.

Go also has public/protected, it is just case-specific. If anything, that makes it harder to understand, how should I knew that Asd is different from asd beforehand?
When does the flicker bother anyone for my information?
Probably a good thing.
Cool that you started with SIMD :)
FYI github.com/google/highway allows you to write your code once and target many instruction sets. It also fills in many of the gaps, including reductions.

Disclosure: I am the main author.
Under certain assumptions. This method relies on making its assumptions expensive to violate. Which is good enough in practice...

...unless you're dealing with an attacker with vastly more resources than you, and a will to spend it. It's always worth keeping in mind that the way magic tricks work is usually because the performer invested much more time and effort in preparation and practice than anyone in the audience would consider reasonable.
Lab-grown human embryo models spark calls for regulation
I've had short stints but I overthink / over-engineer and lose interest very quickly, lol.

A good platform that forces you to think small is pico-8, it's got all the tooling built in but it's on a very small screen and you're limited to something like 8K tokens of source code. But some of the games they've built in it are great, like Celeste.

I've tried a platformer (from a tutorial) and a Zelda-like game, but got stuck at some point so I should make something even smaller / simpler. Maybe that tunnel game mentioned in the OP, I used to love games like that. Oh, and the first game I made from a tutorial was like the 'helicopter game', single button, randomly generated levels, that kinda thing. Can be cobbled together in a matter of hours.
Registered at Lemmy.world - jumped accross to kbin.sh have to register but my details are 'already in use'.

Can not log in, can not register.

Can not be bothered (for today, at least). I will try again, maybe with different credentials, but it shouldn't be this difficult.

Quick edit: happened on other fed sites, too. Worked on others, too.
That is definitely not the world's worst plan. I've started building a tiny, rubbish Pong clone in PixiJS for my son to play with me, and it is pretty intoxicating.
I’ve read several articles recently that say the opposite, so I did a quick search and found multiple studies that seem to contradict you almost immediately. For instance:

https://pubmed.ncbi.nlm.nih.gov/19379769/

https://pubmed.ncbi.nlm.nih.gov/29717187/

https://pubmed.ncbi.nlm.nih.gov/29883710/

https://pubmed.ncbi.nlm.nih.gov/31852988/

https://pubmed.ncbi.nlm.nih.gov/34011516/

I’m certainly not arguing that the science is settled on this, but it seems far too strong a statement to say that “all known evidence points against this” when I could find several studies supporting OP’s point pretty much instantly.
Here's a real study: https://pubmed.ncbi.nlm.nih.gov/29314190/ . It found when frogs were exposed to atrazine (a herbicide) in wastewater runoff, "female minnows were defeminized, whereas male frogs were feminized". Similarly https://www.pnas.org/doi/10.1073/pnas.0909519107 found that "Atrazine-exposed males were both demasculinized (chemically castrated) and completely feminized as adults. Ten percent of the exposed genetic males developed into functional females that copulated with unexposed males and produced viable eggs." So Atrazine can cause frogs to change their gender, and contaminates drinking waters in part of the US (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6164008/), so it's not beyond the realm of possibility that it also influences gender expression in humans to some degree.
Something something separating the artist from the art; one can appreciate the mythos and subculture without the racism.

(Also yes I'm a bit biased)
It will not use AVX-512 if you have CFLAGS="-march=tigerlake -O2". You will, at the very least, need CFLAGS="-march=tigerlake -O3" to get it to actually use AVX2, and tigerlake's AVX512 implementation is so poor (clock throttling etc) that gcc will not use AVX-512 on tigerlake. AVX-512 is used if you have -march=znver4 though, so the support for autovectorizing to AVX-512 is clearly there.

https://godbolt.org/z/1a39Mf3bv
One of my fondest memories is driving back home from the university at 3 am after a 16 hour code grind with friends for final project. Ahh, i miss that.
i remember an economist article(maybe 10 years or more ago) where they indeed put a price on a living body, so this comes as a no surprise
I was wondering where you were going after that first sentence :)

Good luck! I'll be happy to see some competition. I don't see a link in your profile.