grrr i'm so mad, i tried to buy something with my hard-earned tokens on tetrisfriends but it didn't work at first so i clicked the button a few times, eventually it went through but it charged me for all the attempts at purchasing it that i could afford, so instead of losing 1000 i lost 4000 and couldn't afford the other thing i wanted to buy
@Geobits Blech. The new pkmn games are terrible IMO. Gen III or below is good. The new ones add a perspective tilt that looks bad. Also, the ideas for new pkmn are weird (e.g. saggy pants teen).
Honestly, my biggest complaint with gen III and below is the stupid, stupid way they handled physical/special attacks. In gen IV they were like "Hey, what if we stop being idiots and make each move either physical or special, instead of saying 'every water type move is special, every fighting type move is physical, blah blah blah'".
@Geobits I didn't play it too much, but I did have fun constructing decks. I constructed a normal type deck once. It was a lot of fun playing it. But that was years ago. The cards are now in a box that is collecting dust.
@Geobits Some pkmn are useless in rental. :-). They really are useless. Well fine, you can take out half another pkmn with them, but that means they are terrible.
I mean TECHNICALLY you want 0 speed and 31 SpD so that you win a Struggle war against another Ditto, and you can tank a hit from a Zoroark if you mispredict, but in practice it doesn't matter.
Your job is to make a sorting algorithm. The catch, you must copy it from Stack Overflow.
Your program will take an input array (or equivalency), and output a sorted permutation of the array.
Your program must consist solely of copy and pasted code blocks from Stack Overflow.
You may not take...
I made a new email account specifically for applying for a job (undergroundmonorail@gmail.com doesn't sound very professional). I tried to get incoming emails to redirect to my normal address, but it wouldn't work for some reason so I gave up. Now, whenever I check to see if my potential employer has contacted me, I see the test email I sent to see if it's working
Is adding a tag a significant enough edit to be worth doing? That new sorting question is begging for underhanded.
Eh, I'm just gonna do it, if it gets rejected then who cares.
Eh, I'm just gonna do it, if it gets rejected then who cares.
What if I started all my posts with a quote box containing "Thanks for your edit! This edit will be visible only to you until it is peer reviewed." to confuse people?
I'm mad at google because I used to be able to type "chr" into dmenu to bring up chromium, but now there's something called "chromedriver" that is useless to me, but comes first alphabetically so I have to type "chromi".
I immediately thought "Oh, fuck. I messed up. I guess it's time to see how badly I messed up..." bash: ls: command not found
@Rusher The thing I was trying to delete needed sudo and rm -rf anyway, so I was already perfectly set up with all the permissions I'd need to destroy my system :)
I have two lists, a and b.
I want to reassign the content of a into b and the content of b into a.
or in other words, after running a few operations with two lists, I want to switch the names of the lists. so that the list that was named a would now be named b, and the list that was named b woul...
Even if you didn't know about the tuple packing/unpacking way to do it...
>>> print a, b
10 5
>>> a ^= b
>>> b ^= a
>>> a ^= b
>>> print a, b
5 10
B)
(probably a bad idea in practice because unreadable and the interpreter doesn't know what you're trying to do so it can't optimize at all, but B\) regardless)
@durron597 I'm still struggling along in the high-level languages. Maybe I'll get there one day :P
Out of curiosity, why would you need to know the address of something in memory? I'm sure it's useful I just can't think of anywhere I'd want to use it.
If you are hacking a game, you often need the location of items in memory to 1) know things you shouldn't know and 2) modify things you shouldn't modify
I remember completely getting star (*) pointers in C++, and then the professor introduced the ampersand (&) for references and I was lost again. Took me forever to stumble back from that
Then along came Java for OOD and I was like weeeeeeeeeeeeeeeeeeeee
Oh, @Rusher . Disregard my TwoSwap results yesterday. There was a bug in the controller. It's been fixed now, but I haven't tried to run the test again. (I still assume it's not perfect, but no proof)
I might be able to later. I have to flip a switch to make it output that. With it on the console is a pain to read, so I usually turn it off. Can do later.
Alternatively, you could just download the controller which will generate them for you :p
I was trying to see if I could trick it into saying the same thing twice. I thought I had done it once, but when I came back to the room, there was a Goodbye between the Oh, Hello's.
I tried that some last night. Not nearly as many times, though. If you do it fast enough, it lags a bit on the "hello", but it still seems to get it right eventually.
@Geobits In your Potato Salesman (I will forever call it this. The salesman sells hot potatoes and needs them to not get cold), is multi-threading allowed? You never mention it, and your computer's specs say that you have 4 processors.
Perhaps the processors can execute the extra threads when doing some long operation, or perhaps if the programmer doesn't use the extra threads, some other process on the computer will.
Oh, I totally get that. I'm that way with most things. The intricacies of modern CPU design still escape me, so I've accepted that level of abstraction. :)
If it's comma-separated, the program would probably let you. It would reject bare garbage, since that would be attached to the last comma-separated value (like your \n issue earlier).
I haven't tested that, but it splits on commas and takes the first two hundred tokens as input.
@m.buettner Seems irrelevant to me. The output has to be accurate according to that massive formula, but you don't have to actually use that formula to get the output.
it's an approximate computation... it's only accurate if you include all terms up to infinity. since we're truncating it's largely inaccurate far away from 0.
it's just that... the taylor series of sin(x). which is just an infinite polynomial, which we truncate to compute it in finite time. but any finite polynomial will shoot off to infinity at some point, right?
Game similar to the Fifteen Puzzle
Because I may factor in "date of solution posted" as a tiebreaker, I don't want to say the exact rules in the sandbox... but the exact rules aren't the reason I'm putting this in the sandbox.
Basically, the challenge will be to "solve the given puzzle(s)" in t...
With little optimization it takes like 2 seconds to populate the solution Cayley graph and then spits out the answer nearly instantaneously