• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: September 27th, 2023

help-circle
  • Mirodir@discuss.tchncs.detoProgrammer Humor@programming.devSus
    link
    fedilink
    arrow-up
    110
    arrow-down
    1
    ·
    edit-2
    16 days ago

    Sure. You have to solve it from inside out:

    • not()…See comment below for this one, I was tricked is a base function that negates what’s inside (turning True to False and vice versa) giving it no parameter returns “True” (because no parameter counts as False)
    • str(x) turns x into a string, in this case it turns the boolean True into the text string ‘True’
    • min(x) returns the minimal element of an iterable. In this case the character ‘T’ because capital letters come before non-capital letters, otherwise it would return ‘e’ (I’m not entirely sure if it uses unicode, ascii or something else to compare characters, but usually capitals have a lower value than non-capitals and otherwise in alphabetical order ascending)
    • ord(x) returns the unicode number of x, in this case turning ‘T’ into the integer 84
    • range(x) creates an iterable from 0 to x (non-inclusive), in this case you can think of it as the list [0, 1, 2, …82, 83] (it’s technically an object of type range but details…)
    • sum(x) sums up all elements of a list, summing all numbers between 0 and 84 (non-inclusive) is 3486
    • chr(x) is the inverse of ord(x) and returns the character at position x, which, you guessed it, is ‘ඞ’ at position 3486.

    The huge coincidental part is that ඞ lies at a position that can be reached by a cumulative sum of integers between 0 and a given integer. From there on it’s only a question of finding a way to feed that integer into chr(sum(range(x)))





  • On MAL and temporarily, yes. From memory, I can think of two anime that were temporarily ahead of FMA:B.

    Kaguya-sama’s third season was ahead of FMA:B when it was airing in 2022. It now sits on 12th with a score of 9.02.

    Pingu in the City was memed to #1 shortly before its first episode aired in 2017. It now chills in the mid-tier with a score of 6.52 on 6596th.

    However, I think Kaguya was only barely ahead of FMA:B at its peak. Meanwhile Frieren is at 9.18 currently while FMA:B in 2nd place is on 9.09. That is a full 0.09 lead, which is over 10% of the way from FMA:B to a theoretical clean 10.0.
    Another way to put the lead into context is by doing the next 0.09 step down from FMA:B, which lands us cleanly at 9.00. An anime with a score of 9.00 would be at 13th, between Kaguya-sama 3 (9.02) and Fruits Basket: The Final (8.98).

    Edit: With the final episode done, it’s now sitting at 9.34. I will assume it’s gonna drop a bit again over time, this is still an absolutely insane score. 27% of the way between FMAB and perfect 10.0. Going from 9.34 is now a 0.25 step down to FMAB, the next 0.25 step would be down to 8.84, which would be a tie with Kimi no Na wa at 28th.

    I can only repeat again how mindblowing this is. The difference between Frieren and FMAB is the same as the one between FMAB and Kimi no Na wa. And that is ignoring how much harder every 0.01 gets the closer you get to 10.0.


  • I’m pretty sure this was already the case in some games before, depending on the netcode of the game.

    The old FAQ said:

    What if a borrower is caught cheating or committing fraud while playing my shared games? Your Family Sharing privileges may be revoked and your account may also be VAC banned if a borrower cheats or commits fraud. In addition, not all VAC protected games are shareable. We recommend you only authorize familiar Steam Accounts and familiar computers you know to be secure. And as always, never give your password to anyone.

    If it’s a game with VAC it probably always worked as described above, but for example: People in Fall Guys did use this trick to avoid getting banned for cheating until they turned off Family Share for Fall Guys shortly after release.


  • The one year period of waiting after leaving one seems excessive.

    It’s slightly better than that for the person who leaves. It’s a one year period starting the moment they joined the previous one. So if you’ve been part of a family for 1+ years you can join/create a new one right away.

    The slot you occupied however does stay locked for an additional year.

    I also have my current setup with found family and as I live close to a country border I cannot switch over properly as I have members on both sides of the border. I understand their intent is “same household”, so I do understand why this is the case, still sucks for me though.

    I hope they have good separation of the logical family and the physical pc’s, It’s really annoying to resetup stuff with my partner every time one of us installs a different linux distro.

    After toying around in the beta, this seems to not be an issue anymore as they seem to actually go off accounts now and not hardware anymore. It was quite frustrating in the old system though.




  • I think the humor is meant to be in the juxtaposition between “reference” in media contexts (e.g. “I am your father”) and “reference” in programming contexts and applying the latter context to the former one.

    What does “I’m your father” mean if the movie is jaws?

    I think the absurdity of that question is part of said humor. That being said, I didn’t find it funny either.


  • This exact image (without the caption-header of course) was on one of the slides for one of the machine-learning related courses at my college, so I assume it’s definitely out there somewhere and also was likely part of the training sets used by OpenAI. Also, the image in those slides has a different watermark at the bottom left, so it’s fair to assume it’s made its rounds.

    Contradictory to this post, it was used as an example for a problem that machine learning can solve far better than any algorithms humans would come up with.



  • I’m not really sure how to describe it other than when I read a function to determine what it does then go to the next part of the code I’ve already forgotten how the function transforms the data

    This sounds to me like you could benefit from mentally using the information hiding principle for your functions. In other words: Outside of the function, the only thing that matters is “what goes in?” and “what comes out?”. The implementation details should not be important once you’re working on code outside of that function.

    To achieve this, maybe you could write a short comment right at the start of every function. One to two sentences detailing only the inputs/output of that function. e.g. “Accepts an image and a color and returns a mask that shows where that color is present.” if you later forget what the function does, all you need to do is read that one sentence to remember. If it’s too convoluted to write in one or two sentences, your function is likely trying to achieve too much at once and could (arguably “should”) be split up.

    Also on a different note: Don’t sell your ability to “cludge something together” short. If you ever plan to do this professionally or educationally, you will sadly inevitably run into situations where you have no choice but to deliver a quick and dirty solution over a clean and well thought out one.

    Edit: typos


  • Overtake and MFGhost are both good if you are into racing.

    Funny you say this. I’ve only kept up with Overtake but I liked everything except the actual races. Lucky for me it seems to be a character drama centered around racing as opposed to a racing anime with some drama. Especially episode 4 really won me over and from what I remember nobody did any kind of racing in that episode.



  • The (current) top comment on Youtube answers your question. Might have slight game spoilers so I’m gonna tag it just in case someone wants to go in fully blind.

    spoiler

    “Ok, this class. Is DLC only atm unless you beat the game with a specific ending and then can pick after that. It’s a pretty strong class. Good armor, stats and weapon. Ranged is kind of borked and slow, but gets the job done. Here’s you easy mode class to start the game if you want it. If you guys want to see other classes let me know. I’ll try to get them up as I play through the game. Enjoy!”

    I haven’t super kept up with this game though, so I’m also quite curious what the point even is. From what I understood “classes” in this game are the same as in Dark Souls/Elden Ring. They define your starting stats and equipment but don’t give you any special bonuses beyond that, so making a class-gameplay-trailer feels weird to me. Maybe I misunderstood something though.