News for hackers. Stuff that matters.

sjustinas

Re:Mise: Dev tools, env vars, task runner on Monday December 09, 2024 @07:59AM (#42365883)

    $ nix-shell -p nodejs_20
    [nix-shell:~]$ node --version
    v20.18.1
Oh, the UX horror!
me reading 89th "attack helicopter" joke in a row: WHEEZE
Re:CS:GO: From Zero to 0-Day on Sunday June 11, 2023 @05:35PM (#36285972)
CS2, essentially a rewrite of CS:GO using the Source 2 engine is coming "this summer", so there's that.
Re:Scaling Mastodon in the Face of an Exodus on Friday November 11, 2022 @03:55PM (#33566698)
I spun up a test server of Pleroma recently. Following just a few people, 0 people following me AFAIK, I did join a few relays so my federated timeline is populated. It is currently showing 360MB RSS and the CPU load maxes out at ~50% of a single vCPU.
Re:Scaling Mastodon in the Face of an Exodus on Friday November 11, 2022 @02:52PM (#33565885)
Note also that recently a fork called Akkoma[1] sprung up. If one is looking to self-host, it might be worth looking into this vs Pleroma (I don't have a horse in this race, was just doing some research on different ActivityPub servers).

[1]: https://coffee-and-dreams.uk/development/2022/06/24/akkoma.h...

Re:Scaling Mastodon in the Face of an Exodus on Friday November 11, 2022 @02:48PM (#33565835)
Just to note, Pleroma also uses a job queue: Oban. https://hexdocs.pm/oban/Oban.html
Re:V 0.3 on Friday July 01, 2022 @02:49PM (#31950975)
Not the parent poster, but there seems to be some misunderstanding. The GitHub issue creator explained that they're getting two different behaviors depending on C compile flags. That's already not "the same behavior as Go" AFAIK.

> What kind of behavior do you expect?

Defined behavior, I assume. If V uses C as an intermediate, and the generated C code invokes undefined behavior, then V can not guarantee "no UB" in that case at all. It is completely up to the C compiler what happens. Even if the compiled app behaves "properly, like Go" with the specific C compiler, with the specific flags, on that specific machine, does not mean this behavior is defined and consistent.

Re:V 0.3 on Friday July 01, 2022 @08:47AM (#31945647)
Are there plans for docs to be updated? The 0.3 release notes claim:

> Option and Result are now separate types: ?Foo and !Foo respectively. Old code will continue working for 1 year and will result in a warning/hint.

Yet, doc/docs.md still states:

> V combines Option and Result into one type, so you don't need to decide which one to use.

Is there an up-to-date doc, or how does one find out more about these types? I found parts of the RFC overhauling the error handling [0] pretty bizarre, so I'm interested to see how the implementation turned out.

[0]: https://github.com/vlang/rfcs/pull/7

edit: linked to the wrong RFC initially.

> Is there any way to use this system without an extra device (no phone, no key, only my pc)?

I've used rust-u2f in the past, although it seems to be Linux only. https://github.com/danstiner/rust-u2f

Re:Nixery – Docker images on the fly with Nix on Tuesday April 19, 2022 @09:50AM (#31083070)
Not a tutorial, but the unofficial wiki has info on Raspberry Pi and other ARM SBCs: https://nixos.wiki/wiki/NixOS_on_ARM
Re:Protected Content, Delete by Date, Device Management and more on Wednesday December 08, 2021 @10:55AM (#29486272)
"The Artificial Intelligence That Deleted A Century" is another similar one from Tom.

https://www.youtube.com/watch?v=-JlxuQ7tPgQ

Re:NixOS and the Art of OS Configuration (2018) on Saturday October 16, 2021 @07:17AM (#28887084)
That's absolutely fair, I don't think either the parent or the NixOS devs implied in any way that it should be the right fit for everyone or 100% of the Linux distro market share is the end goal.

For me, the benefits outweigh the quirks of the language. As my alternatives to manage multiple machines consist of: wonky Bash scripts, similar tooling but bolted-on on top of the distro and with no built-in rollbacks (Ansible, Puppet, etc.), or trying to get everything right manually, Nix does not seem like the worst out of this bunch.

Re:Ubuntu 21.10 on Thursday October 14, 2021 @04:41PM (#28869779)
The Steam client works natively on Linux. It ships its own version of Wine, called Proton and many games work well. They are doing lots of work to get the remaining games working in preparation for the launch of Steam Deck.

https://www.protondb.com/

Re:Rust: The Error Handling Project Group on Saturday September 19, 2020 @05:38AM (#24526276)
Re:Rust explained using easy English on Thursday July 23, 2020 @04:14AM (#23925238)
A Rust String is encoded as UTF-8, it is not an array of char-s. You can get an iterator over individual codepoints using the chars() method.

https://doc.rust-lang.org/std/string/struct.String.html#meth...

Re:Ask HN: Who wants to be hired? (June 2020) on Tuesday June 02, 2020 @02:03PM (#23393983)
Location: Vilnius, Lithuania

Remote: Yes

Willing to relocate: No

Technologies: Rust, Python, Go, C#, JavaScript, C (in vague order of preference/expertise; more inside the resume)

Résumé/CV: https://justinas.keybase.pub/myresume.pdf

Email: [email protected]

I am a backend engineer who has spent the last 4 years building real-time online advertising systems in .NET. However, I am looking to change up both the domain I work in and the technologies I employ while at it.

At this point you're just arguing for removing all mechanical skill from competitive games.

Impede the gameplay however you want, in pure mechanical aspects a program will always have the benefit of perfect accuracy and near-zero reaction time (as opposed to the >200ms average of a human)

Re:From Zero to Main(): Bare Metal Rust on Wednesday December 18, 2019 @04:37AM (#21823272)
The indexing operator [] does bound checks, the method `get_unchecked()` does not. If you need the extra speed at the expense of safety, you can do it, but you have to consciously choose this trade-off. Unlike in C, in Rust safety is opt-out.
Re:How to run your own mail server (2017) on Tuesday November 19, 2019 @05:28PM (#21579005)
I've been running my own email since about 8 months ago. I have Google's MX (that I used before) on backup (with a lower priority). Will not help me with every sort of fuckup possible, but it will at least deliver the mail if my server is down.
While Google might have fucked up, what could possibly be your workflow where a single crashed tab costs you one and a half day's of work?
Librem 5 has kill switches for camera, audio and data.

https://puri.sm/products/librem-5/

Re:My Python Development Environment, 2020 Edition on Tuesday November 12, 2019 @06:24AM (#21513274)
Do you not consider pip third-party? It does not come with the standard Python distribution. Although `ensurepip` does.
Re:Neovim v0.4.0 on Monday September 16, 2019 @06:47AM (#20982771)
Re:The Raspberry Pi 4 needs a fan on Wednesday July 17, 2019 @02:12PM (#20462410)
Could you elaborate on why you think Pi 4 is "overpowered" for Kodi?

From what I've seen, there are still some kinks playing 4K HEVC videos. So hopefully, when software/firmware/etc. catches up, it should be "just powerful enough" for a Kodi box, all because of hardware decode.

Barely handling 4K does not scream "overpowered for a media center" to me.

Re:The Popularity of the 4.7″ iPhone on Thursday June 27, 2019 @10:05AM (#20294445)
I'm on the same boat: a year ago, I bought a first-gen Pixel. Back then, Pixel 2 was already out and even Pixel 3 was on the horizon, but 5" is the absolute maximum size I can comfortably operate using one hand. Hell, I would even take a 4.5" phone with decent specs. My old Moto G was incredibly comfortable.
Re:Tor Browser 8.5 on Wednesday May 22, 2019 @07:58AM (#19980172)
Could you elaborate? As far as I know, Brave promises to give you a browser and it gives you a browser. Does not sound like something I would call a "scam".
Re:Request’s Past, Present and Future on Monday April 08, 2019 @10:07AM (#19605311)
As I replied to tlrobinson above, is this a problem when there is an an official package that bolts on a promise support?
Re:Request’s Past, Present and Future on Monday April 08, 2019 @10:06AM (#19605303)
There is an [official] additional package "request-promise" that adds Promise support. I don't dabble in Node much, but is this a bad thing? Although on the other hand, most other libraries support promises out of the box (e.g. using the "pass no callback to get a Promise back" pattern).
Re:ASP.NET Core Elevation Of Privilege Vulnerability on Wednesday March 14, 2018 @09:47AM (#16584681)
What an awful disclosure.

> <...>an elevation of privilege vulnerability exists when a ASP.NET Core web application fails to validate web requests correctly.

Fails to mention what "validating a request correctly" means. Recommends to limit allowed Host header values as a mitigation, but does not say what values are safe to accept. Example.com? localhost? 127.0.0.1? covfefe?

Older »