Skip to main content

htmlcoderexe

Earth

I've always been a language enthusiast, both for "people" languages as well as computer languages. Most of what I know is through experience or, as my wife puts it, "reading random stuff on the Internet". On the downside, my attention span is only slightly better than that of a five-year-old who's just arrived at Disney World.

Jun
15
comment Parts of Humans
and there I was thinking about middle fingers...
Jun
15
awarded Civic Duty
Jun
14
answered How does this tensegrity table work?
May
23
comment Why is zero plural?
@ryang note that this seems to do with the expectation of the "usual amount" of the thing in question - if cats were expected to have anywhere from 1 to multiple tails, you would say "the cat has no tails". We say "this person has no right leg" as humans only have one of each, but for a cat we would say "this cat has no right legs". I am not 100 sure of the formal reasons, but I think it is because in the singular case we refer to the specific item that can be either present or not - either it has the state "a tail" or "no tail".
Apr
30
comment Value of describing game mechanics in a data file instead of hardcoding?
That's kinda where I am at now - I used to have hardcoded values for everything, but now I moved onto data files (used to have my own binary format but moved to JSON). Abilities, for example, work more or less as OP described - they include a list of things that happen, and the actual code defines each of those things (such as "deal magic damage based on weapon/magic stat/constant" or "revocer X HP over X seconds"). That includes even the visual/sound effects like "throw a fireball particle towards target". To tweak a specific ability all I need is to tweak the data. To add new effects - code.
Apr
24
awarded Civic Duty
Apr
18
comment How can I have two desktop.ini files in the same place?
@not2qubit the "actual desktop" is not the same as a regular file explorer view - it's kind of a separate "panel", which displays files contained in the two locations mentioned above. As for why 2 locations are needed, the public/All Users desktop is used for placing shortcuts to programs that show up for any logged-in user.
Apr
16
comment I think I downloaded spyware! I used a curl command in terminal given by a fake support user to download a .sh file
I have found the article I was thinking of: web.archive.org/web/20161031205600/https://…
Apr
16
comment I think I downloaded spyware! I used a curl command in terminal given by a fake support user to download a .sh file
@Henriksupportsthecommunity even worse, I recall someone testing all kinds of methods of presenting a different file whether it is attempted to be downloaded or piped to bash with curl, and they were able to somehow detect even the most advanced ways of "pretending to be curl piping to bash" Maybe it was wget and not curl, but same thing in this case
Apr
9
comment Will it be possible to prevent cancer by introducing ECC on genome?
Like the preamble in ethernet frames, got it - so this is actually their functionality and the "shortening as a replication limit" is a useful(?) side-effect of this?
Apr
4
comment Human like animals are modified to become more intelligent. One is adopted by humans.The fight for their rights
I thought Freefall from the title.
Apr
4
comment Will it be possible to prevent cancer by introducing ECC on genome?
Isn't a big part of the "ceases to repair itself" the existence of telomeres which limit the amount that a cell can reproduce? Those are, as I understand, a anti-cancer "measure", if some other system keeps cancer at bay, they wouldn't need this mechanism anyway.
Apr
3
comment Error: Each parameter in constructor must bind to an object property or field on deserialization
Didn't need the attribute in my case, just the empty constructor.
Apr
3
awarded Civic Duty
Apr
2
awarded Supporter
Mar
19
comment How does Space Invaders on the Atari 2600 display all the aliens?
Fun fact I remember reading somewhere: this also meant that the fewer there were left, the faster they would update/move, so the game sped up the more successful the player was - and this was an unintentional game mechanic that was well liked and later was added deliberately to games.
Mar
19
comment Decode suspected timestamps
where do you get the timestamps from? as in, how do you know that those binary values correspond to those specific timestamps, and why sometimes it is precise down to the second and sometimes not even the minute (i.e. "~11:00")
Mar
19
comment Decode suspected timestamps
not sure it is that simple. The day change seems to not occur at 00:00 - the data says best guess is around 18:00 (see the stamps on 2024-03-18, the lower bits of the second byte differ by 1 before and after, and after 18:00 they're the same as on 2024-03-19 but before 18:00) However, the other numbers seem to roll over weirdly, as just 8 and 10 minutes past 18:00 already shows high values in 3rd byte. Maybe some of those are flags? I suspect this might actually be counting some "ticks" not really aligned to human readable time units.
Mar
12
comment Creating folder and file using remix js
Something about file permissions? Are you able to get any error messages or does it fail silently?
Mar
5
comment How to use uBlock Origin to block the Reddit user avatar hover tooltip?
also consider using "old" reddit, it is missing most of the misfeatures of this new design...
1 2 3 4 5