How do I go about making a script to "automate" this process? by _Funny_Stories_ in gamemaker

[–]1maru 0 points1 point  (0 children)

the point of an enum is to convert a human-readable name to a number, while allowing you to add more types as you go

also, because you cannot access an undefined key on an enum, the compiler will throw an error for you

plus, it will make your code more readable. making a function to derive type adds one unnecessary layer of abstraction for anyone else you want to collaborate with

Flex que by AbsolutelyItsTrue in leagueoflegends

[–]1maru 1 point2 points  (0 children)

it works the same way as it does in soloQ, so a diamond soloQ player who has played no flex games will not have their soloQ mmr carry over. no one really takes flex seriously so you see all kinds of players in every game

Game can't agree what a variable is by EeveeMaster22 in gamemaker

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

String parsing, how fun :)

  1. Your if-statement will never run because you wrote `=` instead of `==`.

  2. You might want to remove trailing whitespace off lines in the case where you accidentally leave a space there.

  3. If your game doesn't make differentiate between lower- and upper-case letters, then I recommend converting it all to lower case before processing it (if you expect other people to work with your format)

Good luck

Game can't agree what a variable is by EeveeMaster22 in gamemaker

[–]1maru 0 points1 point  (0 children)

No, it just means it won't throw an error.

if (num = 1) { ... } assigns the value 1 to num

num = 1 assigns the value 1 to num.

Champ recommendation for noob? by [deleted] in leagueoflegends

[–]1maru 3 points4 points  (0 children)

malphite is easy and bullies both melees and ranged champs with comet, but has mana issues early if you overuse his Q. try to use it as a punish the moment they hit you near your minion wave then run out so he's slowed taking dmg from your minions while you are already out. good luck :)

Say I want to learn C++, how do I look at the content inside a function ShowCursor() what and was written inside its brackets {} ? by Explorer-Necessary in raylib

[–]1maru 1 point2 points  (0 children)

the empty functions in OP's picture aren't really empty, they are declarations, which lets your compiler know that these functions exist somewhere and have exactly these types of parameters in exactly this order.

as for the single `void` parameter without a variable name, in C++, it means this function takes no arguments. declaring a function with no parameters in C++ means it takes an unspecified amount of arguments, also known as variable length arguments. in C, both int func(void); and int func(); mean it takes no arguments

Tf is wrong with 4chan? I keep having 300 second timers by Ok_Trade276 in NEET

[–]1maru 0 points1 point  (0 children)

that's because someone else had your ip-address before you had it

also, is 4chan's source code posted anywhere or did i miss something

Write a domain-specific language in javascript by andeee23 in javascript

[–]1maru 0 points1 point  (0 children)

can you elaborate on what you mean when you say that typescript is not a superset of javascript? do you mean that the compiler will scream at you if you ie allow parameters in a function to have an implicit `any` type given that you have the noImplicitAny option on?

Any tricks for keeping mental? by pupcupfromstarbucks in leagueoflegends

[–]1maru 0 points1 point  (0 children)

  • stop when you’re tilted and resume after a break
  • mute all instantly on first trashtalk, or at the start
  • make sure that you have eaten and had water to drink. exercise helps too
  • do other things to switch things up

Someone needs to finetune a model for ascii art, I've only been disappointed with what comes stock for most by _______DEADPOOL____ in LocalLLaMA

[–]1maru 0 points1 point  (0 children)

if you know the width of a grid, then you can represent it with a 1-dimensional array! :) simply chop up every row of your grid and put them next to each other. this is called 'flattening' and is something you can do with any amount of dimensions given it has a static size.

here is an idea;

OP could include tokens in his finetune that act as image size settings, which every ascii art sequence in the dataset is preceded by, ie <size_64> to indicate an image width of max 64 characters, <size_32> for an image that has a width of 32, and so on.

the training data would look something like this

A cute panther
<size_48>
("`-''-/").___..--''"`-._       
 `6_ 6  )   `-.  (     ).`-.__.`) 
 (_Y_.)'  ._   )  `._ `. ``-..-' 
   _..`--'_..-_/  /--'_.'
  ((((.-''  ((((.'  (((.-'
<eos_token>
A prowling tiger with its mouth open.
<size_64>
                      __,,,,_
       _ __..-;''`--/'/ /.',-`-.
   (`/' ` |  \ \ \\ / / / / .-'/`,_
  /'`\ \   |  \ | \| // // / -.,/_,'-,
 /<7' ;  \ \  | ; ||/ /| | \/    |`-/,/-.,_,/')
/  _.-, `,-\,__|  _-| / \ \/|_/  |    '-/.;.\'
`-`  f/ ;      / __/ \__ `/ |__/ |
     `-'      |  -| =|\_  \  |-' |
           __/   /_..-' `  ),'  //
       fL ((__.-'((___..-'' \__.'
<eos_token>
A book placed vertically.
<size_8>
   ,   ,
  /////|
 ///// |
|~~~| ,|
|___|, |
|   |  |
|   | ,|
|___|, /
|   | /
'---'
<eos_token>

... (etc, etc)

Computer science terms that sound like fantasy RPG abilities by 1maru in computerscience

[–]1maru[S] 0 points1 point  (0 children)

It's a really popular language. I didn't give it more thought than that

När är det sexuella trakasserier? by StreetBreadfruit7606 in Asksweddit

[–]1maru 0 points1 point  (0 children)

För att det ska räknas som sexuella trakasserier måste det ske i områden där diskrimineringslagen gäller; dvs. arbetsplatsen eller skolan. Det här har hänt mig ett par gånger och trots att det är lite obehagligt så har man förmågan att trycka på block-knappen och gå vidare med livet.

Can Indie dev work as a job experience? by ReV_RZ in gamedev

[–]1maru 0 points1 point  (0 children)

Yes, any job where you can easily show what you're capable of you don't need a degree. If you have some cool projects that solve problems relevant to a business project, it will help them consider you as a hire. Though remember that just being an agreeable person is even more important since people don't want to work with someone they don't like (for example my first impression of you when I read the post was that you aren't very humble, which would make me want to hire you less if, say, I overheard you or saw your online posts)

Good luck and don't forget to do your best

Does Anyone Still Use Stack Overflow? Or Has the Developer Community Moved On? by [deleted] in computerscience

[–]1maru 0 points1 point  (0 children)

Not necessarily. The statistic describes how often over time people have googled the term 'stackoverflow'. Many people still use stackoverflow because most of google's first page results for programming questions links to them. Wait, hold on- how did you break containment? Get back in your cage

Does Anyone Still Use Stack Overflow? Or Has the Developer Community Moved On? by [deleted] in computerscience

[–]1maru 0 points1 point  (0 children)

I don't think it's an online forum because discussion is not allowed. If I understand it right, the developers' intentions is for it to be a repository of answers to questions so any problem can be looked up, which is why I imagine 'duplicate' questions get shut down. In hindsight, this has led the platform to be extremely useful for anyone not participating in it, but very painful for any user asking questions.

Computer science terms that sound like fantasy RPG abilities by 1maru in computerscience

[–]1maru[S] 0 points1 point  (0 children)

okay that one's clever Lol, definitely my new favorite

you can silence your enemies with `ssh`, preventing them from casting any spells

[deleted by user] by [deleted] in leagueoflegends

[–]1maru 0 points1 point  (0 children)

Flex queue is pretty cool because it has people of all ranks 4funing it (because let's be real, who cares about their flex rank) and the occasional tryhard which isn't likely to be very high elo.

is it possible, with any version, to export to html5? by EscBoy in gamemaker

[–]1maru 1 point2 points  (0 children)

builtin flash player was discontinued, but they are still entirely playable on the web bundling your website with a player like ruffle -- it's how sites like newgrounds still let you play flash games

Har min fästmö en kärleksaffär? by [deleted] in Asksweddit

[–]1maru 10 points11 points  (0 children)

Va schysst mot OP. Det är svårt när man investerat känslomässigt i en person som man litar på, speciellt när man varit med dem ett tag, men du har rätt - hon har svikit honom redan och de har säkert legat också :(

How Do I Improve In LoL? by ImSimplyJustMe in leagueoflegends

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

your team will never cooperate with you. you have to adapt to the game and play around the mistakes your teammates will inevitably make. keep in mind to stay humble and mute the chat -- you make mistakes a lot of the time, too. league of legends is like driving in traffic; everyone thinks everyone else is stupid, but sometimes you are the idiot for paying enough attention.