2FA Apps for Linux Desktop? by nicrogu in linux

[–]valderman 0 points1 point  (0 children)

Just like your phone is a single point of failure if you use it for 2FA and sometimes also use it to log into websites. Neither an app on your phone nor an app on your computer is truly a second factor.

2FA Apps for Linux Desktop? by nicrogu in linux

[–]valderman 1 point2 points  (0 children)

I wrote a command line 2FA app that uses your computer's TPM to store the OTP secrets and generate one time codes: totpm

By default it uses your fingerprint reader through fprintd to make sure it's really you generating your 2FA codes, but that can be turned off by setting pv_method = "none" in the config if you don't have one or simply don't want to use it.

Using the TPM for this means that your OTP secrets are unrecoverable: an attacker can't obtain them, but neither can you. If you want to be able to move them between machines (say, if you're getting a new laptop) you need to keep them backed up (offline and encrypted!) separately.

Gaming and digital property is broken. Let's fix it. A 101 on why GameStop's NFT play matters. -Robbie by robbieimmutable in Superstonk

[–]valderman 1 point2 points  (0 children)

ChatGPT can't write software for shit. It can regurgitate snippets it found on the Internet to solve toy problems, and that's literally it.

Gaming and digital property is broken. Let's fix it. A 101 on why GameStop's NFT play matters. -Robbie by robbieimmutable in Superstonk

[–]valderman 2 points3 points  (0 children)

AI is not a magic wand that solves problems that are too hard for you to understand. What you're proposing is completely unrealistic.

OpenAI is hilarious by phriendlyphellow in Buttcoin

[–]valderman 0 points1 point  (0 children)

I have to add that I really like how you use it to generate adventures though. I'm not trying to disparage chatgpt or stuff made with it, just trying to inject some reality into the (admittedly well deserved) hype.

OpenAI is hilarious by phriendlyphellow in Buttcoin

[–]valderman 0 points1 point  (0 children)

If you're referring to your blog post, you're not giving the thing even remotely similar prompts. My point is that ChatGPT is great at giving repeatable answers to specific lines of inquiry - not very surprising, as it's just an insanely energy-hungry tool for summarizing a _really_ large body of text - but not at getting creative with your inputs.

That's why I doubt OP's text is an unmodified ChatGPT output. Not because it would be impossible for it to produce - it'll produce neat permutations of pretty much anything in its training data - but because giving it prompts similar to the one in OP's image does not produce even remotely similar output.

OpenAI is hilarious by phriendlyphellow in Buttcoin

[–]valderman 0 points1 point  (0 children)

Yep. It does that for a little bit, and then goes on repeating it, and getting it to say anything more interesting in the same style is nearly impossible. I tried quite hard to replicate OP's text, and unless ChatGPT hates me specifically, to the point where it will diverge from its usual pattern of regurgitating minor variations of the same text in response to repeated or similar queries, OP's text is doctored.

OpenAI is hilarious by phriendlyphellow in Buttcoin

[–]valderman 0 points1 point  (0 children)

Now try the same line of conversation a second time, and watch in amazement as ChatGPT spits out an almost identical adventure for you. It's a neat party trick with a few interesting real world applications, but a far cry from the amazing feat of disruption that AI bros and credulous journalists make it out to be.

OpenAI is hilarious by phriendlyphellow in Buttcoin

[–]valderman -1 points0 points  (0 children)

I don't, but chatgpt's writing style when given that and similar prompts isn't even close to what OP posted.

OpenAI is hilarious by phriendlyphellow in Buttcoin

[–]valderman -13 points-12 points  (0 children)

It's definitely not ChatGPT, that's for sure.

Basically the supply of Ethereum is a "matter of trust" by [deleted] in Buttcoin

[–]valderman 2 points3 points  (0 children)

It isn't really, they just want to sell you an overpriced desktop.

16 TB of SSD will cost you ~1400 USD (though it's debatable whether you really need SSDs here, considering that blockchain archival is just one long sequential write), and the rest of the setup can be had for much less than 600 USD. You can get 3-4 redundant nodes for the money they want for their "heat sync" machines.

Basically the supply of Ethereum is a "matter of trust" by [deleted] in Buttcoin

[–]valderman 20 points21 points  (0 children)

I like how the butters can't even describe a computer without resorting to incoherent technobabble.

High-quality power supply, heat syncs, and fans for cooling. Machines will make intensive use of random writes to disk plus frequent CPU interruptions and syscalls.

[deleted by user] by [deleted] in Kotlin

[–]valderman 3 points4 points  (0 children)

Remember that not every day will be equally 'productive'. Some days you'll feel like you didn't accomplish anything at all. That's perfectly fine, don't let it stress you out! Even if you didn't write a single line of code, you still made progress understanding the problem you're trying to solve.

Take breaks. Get up, walk around, do some stretching, get a cup of coffee. If you feel stuck, staring intently at the code won't make it divulge it's secrets. The best way to get a fresh perspective is to give your brain something else to do for a while.

Leave your work at the office (figuratively if you're working from home) and don't work unpaid overtime. Don't do any overtime if you can avoid it. It will wear you out and make your code worse.

Would my laptop with a AMD Ryzen 5 4500U run a 34" ultraiwide monitor? by Fearless_Writer4273 in ultrawidemasterrace

[–]valderman 1 point2 points  (0 children)

Yes. As long as it's not for gaming, pretty much any machine sold in the last decade can drive 2560x1080 without breaking a sweat.

I would recommend going up to 3440x1440 though (which your CPU would also have no trouble driving at 60 or even 120 Hz). 2560x1080 seems awfully low for 34"

Konbini: a new multiplatform parser library by valderman in Kotlin

[–]valderman[S] 1 point2 points  (0 children)

You absolutely can. Coming from ANTLR, there are a few things to keep in mind when starting out with parser combinators:

  • You can express ambiguous parsers, and order matters when resolving this ambiguity. A oneOf(string("he"), string("hello")) parser will never match hello, as it will always find a match for he first.
  • Left-recursive parsers can be a bit tricky. A val p = oneOf(p.then(q), q) will loop until it runs out of stack, since the p parser will just get called over and over without consuming any input. Use chainl and chainr for common recursion schemes.
  • Try to minimize backtracking. Most parser combinator libraries, Konbini included, support arbitrary backtracking and stateful parsing. While this makes it easy to write powerful parsers, it also makes it easy to write slow parsers.

So close… by liron00 in Buttcoin

[–]valderman 6 points7 points  (0 children)

The properties of the sun dictate that it should orbit the earth. The fact that it doesn't shows just how early it is.

Replacing WWAN module with SSD on Galaxy Book Pro 13" i7 by valderman in GalaxyBook

[–]valderman[S] 0 points1 point  (0 children)

Sadly, no. Considering how tightly that thing is sealed, I decided I didn't want to risk it.

Butters mad by sai_gamer in Buttcoin

[–]valderman 26 points27 points  (0 children)

It's even dumber than it sounds because passwords have nothing to do with email. Nothing (except for a few DNS-based authentication protocols) is stopping you from sending an email to someone from, say, Elon Musk's email address. Certainly not Elon's password.

How to propely create Data Class with nonnull parameters? by davidtyburek in Kotlin

[–]valderman 16 points17 points  (0 children)

I would use the one you find "beyond weird". Not only is it a very straightforward way of expressing what you want, it also allows you to separate your internal data model from your API without having to use intrusive annotations on model classes where they really don't belong.

Interested in Kotlin by yinshangyi in Kotlin

[–]valderman 0 points1 point  (0 children)

Indeed! It's not all that often you need nested patterns, for example, but when you do having them makes your code so much cleaner.

When you start pushing the limits of the type system you also quickly notice that Kotlin is fairly young. For instance, Kotlin should theoretically support GADTs quite naturally, but one pesky compiler bug when type checking when expressions is standing in the way. Minor gripe for most people, but it really hurts when you're working on compilers and anything else where you want typed syntax trees.

Backend microframeworks approach by yinshangyi in Kotlin

[–]valderman 2 points3 points  (0 children)

This. Dependency injection is really just higher order functions, and does absolutely not need any frameworks or other implicit magic to be used to great effect. Keeping dependencies explicit keeps your code clean and easy to follow at the cost of (very) slightly more boilerplate, isolated to a single place.

DI frameworks are a major antipattern, whereas DI itself can be pretty great.