Better HN
topnewbestaskshowjobs
Log inSign up

vukgr

34 karma · joined Jun 28, 2020 (6y ago) · 16 submissions

Submissions

comment 1y ago · link · parent

While I don't like to argue for LLM competency, you have to remember that at the end of the day LLMs are word generators. They will always be bad at math unless there is a major structural change.

So while they cant learn arithmetic they should be able to learn programming languages given that they are way closer to what it was designed and trained for.

comment 3y ago · link · parent

Wouldn't it be easier to send the bus data to the PC and run the emulator there? Or would sending the custom data via USB be a problem without a custom driver or something?

That said though, emulating it on the pi is way more impressive.

comment 4y ago · link · parent

Just because they have the right to do it doesn't make it right.

comment 4y ago · link · parent

Can't say I've really thought this through, but couldn't you just subtract 1 (*sizeof(X)) from the arr address?

comment 4y ago · link · parent

Keeping a certain layout in tiling wms is the main thing I'd say. And also it's just a faster way of organizing windows compared to alt tabbing, it just takes a bit of getting used to since most people grow up with single workspace OSs.

comment 4y ago · link · parent

twat?

comment 4y ago · link · parent

I'm pretty sure sed ${N}q is supposed to chose the N (or k) top choices, where N is given as an argument/variable. (Going off of the fact that head is essentially sed 11q, where it quits on the 11th line.)

But yeah, head -n (--lines) would do the job here perfectly while being more readable, no clue why it wasn't used.

comment 4y ago · link · parent

A bit off topic but does anyone know if there's anything like a standalone PIO?

They seem genuinely fun to use even without the pico attached.

comment 4y ago · link · parent

It really depends on the game/platform, but getting used to using a reverse engineering tool and a debugger is a must. If you can, use IDA, I'm stuck with Ghidra for now but most of the time I have to work against it to get stuff done. Even with C output you'll still need to get used to working with assembly to hook stuff, and do other code modifications. (You can use a library like detours, but when things start crashing it really helps to know exactly what every piece of your code is doing.) Also imgui/nuklear really help with getting a nice GUI for your mods early on.

Though tbh the best thing you can do is just pick up a game you like and just have a go at reversing it, it'll be a bit slow but the more you reverse the easier it gets. After you reverse it it's just a matter of looking up each topic (ie dll injection, hooking, etc) as you need them. None of them are that hard, they just seem overwhelming if you try doing them all at once.

comment 4y ago · link · parent

As someone who works on mods for games with no mod api, so using dll injection, hooking, code editing, etc... (basically very similar to what cracks do), it's very easy to get flagged for doing stuff like that.

But even doing simple stuff like compiling with winsock, or with the wrong(!?) compile flags will trigger most AV. We almost always have to just report the dlls as false positive and pray microsoft actually adds them to the whitelist, and I'm guessing that's not really an option for cracks.

comment 4y ago · link · parent

Not 100% sure its the same in Albania, but in Serbia it's the de facto middle name for most people. So you need it on most documents. Mother's name also works, but most people still default to the father's name.

comment 5y ago · link · parent

g Ctrl-A increments all the numbers, but every instance gets incremented by one than the previous. First line would be Enum1, second Enum2, third Enum3. It's a really neat feature imo.

Though I did make a mistake, if you selected everything it'd catch the name numbers too, so you'd have to go into visual block mode and only select the enum parts, then do g Ctrl-A.

That said the numbers probably weren't supposed to be taken seriously now that I think about it.

comment 5y ago · link · parent

I'm surprised everyone's forgetting vim already has a proto-multicursor mode. Go into Visual Block mode (Ctrl-V) select all the lines then it's just A<delete ,>: Enum.Name0,

After that you can just select it again in visual mode and g Ctrl-A to get the right numbers.

If anything the g Ctrl-A part makes Vim way better than most multicursor editors.

comment 5y ago · link · parent

Ah, fair. The challenge itself didn't mention toggling (just crossing tasks off), so you could probably get away with it; But that's just the golfer in me talking I guess.

comment 5y ago · link · parent

Am I missing something or did everyone forget <s> is a thing in html?

16.

Show HN: Glock, A minimalistic, hourglass-style, graphical clock application(github.com ↗)

2 points · by vukgr · 6y ago · discuss