« first day (2642 days earlier)      last day (2205 days later) » 
00:00 - 17:0017:00 - 00:00

12:08 AM
0
Q: Help me redirecting

0x45You must automate a search bar for your browser software. If the user's {input} contains a dot . then it's a www site and you redirect it to http://{input} else, redirect to ftp://{input} If the input already contains http://, ftp:// or https:// do not redirect to anything else. Input The user...

 
Can anyone check if my answer is correct?
 
@moonheart08 don't use rdrand by itself
 
:| found the problem
had to hack a debugger in to find it tho:
https://tio.run/##xX1td9s4rvB3/wpuc2ZkNbKbpDOzM06du2kmncm53ban0@7Lcbxe2ZJjpbLkI8lJvJn89n0A8EWkRMlOtnuf9DTRCwmAIAiAJAhN/Xzx73/P/IK9euWESeCcLKazRdFfbTrRcpVmBcs3ubxM8848S5csXRUrP8tDJp6/XxVRmnzAR5ks62eZr2BkfhKkS3kXpQp2ka1nhSoVyqtZGsfhDIEq3FERZkWaxupBnM78OOx0ZmkQsiEbjTudIJyzSZH5NyFQ0o0Kd9Bh8DNPM3bHogRgDNjKz/NON/aX08BnN34WRLPCA4RJXuQDrbZ41Z9M8rAA5MvJpHvnscglkPYfQgRlOC5Bb/9f0WoSp8lVmBddozJH6iF3rsJuHCZd/sTFH14UmN9fpsE6DvPRZJL4y3AyGQNNSNpk4lGZrvPu/QfHY87P52cfz/98/u4T3ly8024@fDz/C/59d/43/vIN/v7l/af3@Pf8bxfwlJPmnJ1@VNefCezHi19@pVo/v//rO/z79vxNWf7X12f87Ye/f/r1P
 
@quartata i can if i'm golfing :p
 
i mean yes
what are you golfing
 
12:16 AM
Nothing at the sec, was looking into options for minimal bytecount random in x86 assembly
 
> posted 4m ago
It takes me about a hour just to type out the proof on SE so...
Anyway, please be quick, 3 hours left to be safe (assume there is a flaw in the proof).
 
@user202729 that proof is neat
:p
 
12:38 AM
silly objdump, that's a table, not code!
suprisingly, the entire table is valid x86 in the eyes of the disassembler
considering all the other things x86 has, i'm truly suprised there is no conditional return
 
@moonheart08 how often would that be useful though
 
true
but is INTO (interrupt if overflow) or DAA/DAC that useful? :p
ok i'll admit those are 8080 instructions
:P
but the amount of niche instructions these days is quite suprising
I mean, since when were specialized en.wikipedia.org/wiki/Finite_field instructions a non niche thing :P
:O 400 rep
\o/
 
12:56 AM
@moonheart08 :|
@moonheart08 wait wat.
 
@moonheart08 well, they are part of a really specific extensions et
 
1:20 AM
I was browsing questions. How the hell was this found. codegolf.stackexchange.com/questions/146017/…
 
this code will receive no penalties under the AP Computer Science grading rubric:
6
public static countInstances(int<><> class, int break)
    int amount == 0
    for(int counter == 0; counter < class.size[]; cnter++)
        for(int do == 0; do < class<counte>.length(); do++)
            if do = break
                amount++

    return amont
 
@ConorO'Brien AP CS A or AP CS Principles?
 
@ConorO'Brien What language is that... !? Typo amont?
 
CS Principles doesn't even do java, I think they use pseudo-js
@user202729 it's java
 
1:28 AM
Unacceptable. Star.
 
@user202729 It isn't a requirement in computer science that code work, apparently.
 
^ seems like a dumb idea too
what are we writing it on paper or something?
 
...
no thanks
 
that's why they allow typoes etc, bc we can't check our work with a compiler
 
1:29 AM
They should ask for pseudocode instead of Java.
 
as a C/C++ programmer, that is my worst nightmare
 
@ConorO'Brien You don't even type to make typo.
 
@user202729 yeah :P
@ConorO'Brien amendment: change do = break to class[counter, do] = break
 
if x ++ break;
is allowed under those rules
but is ambiguous between if (x++) { break; } and if (x) { ++break; }
 
"Missing ; where structure clearly conveys intent" might cover that
 
1:35 AM
@ConorO'Brien Edited to show where the semicolon would go. I don't see what you mean
 
oh I misread
 
Also, confusing "[] vs. () vs. <>" is allowed, which means you could write if (x [ 3)
 
I think it means calling conventions but you have a point
 
Also, the first line of your file could be static countInstances(int<><> class, int break) public
(the public would apply to the local variable, not the method)
 
1:41 AM
@user202729: (commenting here as I don't have the rep to comment there) You can't simulate a "move if false" out of a "flip" and a "move if true" because you can't undo the flip after you move. So you'll need some other way to handle that (e.g. a way to invert tests, that shouldn't be hard). More notably, though, that's a Turing-completeness proof in terms of halt behaviour, but the definition in the question requires you to be able to do I/O as well, so you need to prove you can do that. — ais523 2 mins ago
 
2:11 AM
12
Q: How can I draw a Homer with epicycloids?

anderstoodYou may have seen this video: https://www.youtube.com/watch?v=QVuU2YCwHjw. How does this work, and how to do it with Mathematica?

Thanks Mathematica
 
@Pavel dupe
this post contains the actual code used to generate wolfram's person curves too
 
2:45 AM
@quartata bruh tag that msg
 
0
A: Number of surjections

Leaky NunLean, 66 bytes def s:_->nat->nat|(m+1)(n+1):=(n+1)*(s m n+s m(n+1))|0 0:=1|_ _:=0 Try it online! Proof of correctness Try it online! Explanation Let us ungolf the function: def s : nat->nat->nat | (m+1) (n+1) := (n+1)*(s m n + s m (n+1)) | 0 0 := 1 | _ _ := 0 The fun...

 
3:02 AM
@Riker no
you can't stop me
 
@EsolangingFruit lol it is here (in uni)
 
@ASCII-only Also in reality, so I've heard.
 
3:24 AM
Single-handedly nuked in 30 seconds. Not bad.
 
@Dennis That was obviously a question about the x-86 family
 
But it was also about privileges, so it belonged to meta.
 
4:14 AM
user image
2
Actual screenshot
 
4:31 AM
1
Q: The Third Flak!

LeoThis challenge was posted as part of the April 2018 LotM challenge Brain-Flak is a turing-tarpit language which has gained quite a lot of fame here on PPCG. The memory of the language is composed by two stacks, but a "hidden" third stack was discovered by Wheat Wizard, leading to some interest...

 
5:26 AM
@cairdcoinheringaahing do verbose CLI flags do anything
 
6:25 AM
0
Q: calculate index of maximum value

sushanta sharmaHey i am trying to code a function say index_max(data_series, length, threshold); We say two indices are overlapping if the distance between them is less than the length. The function index_max returns a list of non overlapping indices that are greater than or equal to the given threshold value, ...

 
@cairdcoinheringaahing help it's either i don't understand why e.g. foreach isn't working, or something isn't working as it's supposed to
 
@cairdcoinheringaahing also this answer is invalidated :(
 
What is the proof that something is false called?
Seem don't fit There must be a path from each light to the battery., but waiting for disproof — l4m2 17 hours ago
I don't think so.
 
6:42 AM
@user202729 it is called disproof...
well, technically it's still a proof, and disproofs don't really exist
 
Apr 18 at 13:17, by user202729
If only the enter key also had a notch in it so this wouldn' — 12Me21 Mar 14 at 19:33
 
…why do I now see community ads when I still have my adblocker on
 
@Fatalize Because you didn't tell your adblocker to block it?
 
It always did before
without me having to do anything
 
Maybe SE changed something?
 
6:45 AM
they sure did
 
I'm so uninteresting, my highest starred message is a quote.
 
7:42 AM
@cairdcoinheringaahing nvm. fixed the broken answer. but how to do for i in range(n) and be able to access the i
 
 
1 hour later…
9:11 AM
0
A: Sandbox for Proposed Challenges

Jo KingMt. Brain-Flak string code-golf balanced-string Sandbox: I'm sure this is a dupe, but the closest I could find was this, which is the inverse. Challenge: Given a valid Brain-Flak code, that is, a string of balanced parentheses <>, (), [] and {}, generate a mountain based on the nested brack...

 
Hi. I have a question. I am curious if anyone is online and can answer it?
 
@MuhammadSalman sure
 
@Cowsquack : Thanks
So the question is I have been developing a language It is still in beta , I was curious If I can answer challenges using that language ?
By beta I mean still a major WIP. Since I can't provide TIO or any other links for it (since it is still a github project )
 
IIRC you can answer in that language as long as it can do some basic functions such as primality testing and adding numbers
 
@Cowsquack : The language is able to do basic mathematical operations (addition, subtraction , multiplication , division , modulo and functions) and that is about it.
 
9:22 AM
@MuhammadSalman Yeah
@MuhammadSalman >_> <_< a lot of TIO languages are github...
 
Ok. Thanks
 
@MuhammadSalman that's okay, as long as people can see the output (and it has loops)
 
@ASCII-only : no loops (sadly!)
 
you said it has functions, does it have recursive functions?
 
It can support recursive functions. Along with nested functions.
 
9:27 AM
I think that should be fine
 
Great , thanks.
 
@MuhammadSalman :P you don't have loops but you have recursive and nested functions?
 
@ASCII-only : Yep :)
 
oh btw you don't have to put a colon after pings >_>
 
@ASCII-only I didn't know that part , thanks
 
Nit
9:33 AM
@MuhammadSalman You can request adding your language to TIO, see gitter.im/tryitonline
 

 talk.tryitonline.net

For general discussion and feature requests regarding tryitonl...
 
Nit
@ASCII-only Oh, thanks, didn't know it has a room here, too.
 
Is there a better way than this (I know that there are better ways )
OOps can't send URL.
 
I know .NET regex is TC, but can I trust a user inputted Regex?
 
Nit
@ATaco regex dos is a thing
 
9:47 AM
So the answer is no?
 
Nit
I'm not that familiar with what your context is, but I would say no.
 
@ATaco catastrophic backtracking is a thing in any regex flavor
@MuhammadSalman :|
 
Of course, but some flavours catch it when they notice it failing.
 
@ASCII-only :)
@ASCII-only : repl.it/repls/SleepyGlassTransfer . (Repl.it link)
 
J: Is this code good? tio.run/##y/r/… (find all factors of a number)
 
10:02 AM
@MuhammadSalman :| no strings
 
@ASCII-only : Sadly no string support , another sad fact is that since no interpreter I have to paste the whole thing for this.
 
@MuhammadSalman ... you could host an interpreter on GitHub Pages
 
@ASCII-only Hum , Great idea. Thanks.
 
@MuhammadSalman :| you have hello world (how do make that happen btw) and fizzbuzz but no strings
 
@ASCII-only Hello world is outputted if you have any of these (+ , - , * , / , %) signs but no numbers. Fibuzz is empty program. As for strings , he he I forgot to do that.
 
10:06 AM
what about functions
 
functions follow like this. Still a WIP. Func name param param2 => whatever else
They are space seperated. (I know still working on it)
 
10:19 AM
Can anyone find a way to golf this?
 
10:30 AM
>> a = 2
<< 2
>> a.b = 32
<< 32
>> a
<< 2
>> 2.b
<< nil
I've been working on a new version of Funky-ish
And all variables are objects.
All of them.
 
yay
just like java
well, JS
 
Yeah but JS has boring all variables are lists
 
@ATaco Great.
 
You can't actually assign to numbers in JS.
 
@ATaco you can assign to Numbers though :P
 
10:34 AM
Now I really need to stop putting off making forloops and function definitions.
 
...
@ASCII-only mfw this is almost shorter
 
11:06 AM
Random thought: I was looking at nice ID posts. 10000 doesn't exist (why?), 20000 is deleted.
 
The ultimate challenge on PPCG: Get the tumbleweed badge!
 
@ASCII-only Back in 2013.
 
mfw three are tips questions
 
How low is low?
 
11:08 AM
Zero the last 4.5 years is fairly rare...
 
I'm willing to bet real money that someone will get one of those before someone gets the tumbleweed badge again...
 
I get 8/500 for Illuminator.
 
well sure
that's what happened for marshal lol
two in 15 days
side note: how did this person get one of the rarest gold badges ever
 
Why can't I find the Generalist badge in my next badge list?
 
11:13 AM
@user202729 like at all?
 
@ASCII-only The difference is 10 days...?
 
@ASCII-only I'll likely get the Marshall badge this week actually!
 
hmm idk actually
@StewieGriffin :O
then it'll be 3 in one month
 
@StewieGriffin What is there to flag then...
 
how have you reviewed at basically the same pace for so long
 
@user202729 well not surprising considering how close they always are in terms of rep :P
 
@user202729 that's why I said likely :)
 
@StewieGriffin Looks like that there are only NAA to flag. (answer not satisfy the criteria etc.)
 
@ASCII-only oh wait different badge
 
hi
 
11:26 AM
hello coding whizzes
 
The problem with Generalist is that it has another site-specific requirement: It has to have 40 tags with at least 200 questions. This would either have to be tracked too (which would be somewhat demotivating as you can hardly do anything about this) or a lot of people would be confused as to why they did not earn the badge despite meeting all requirements. I think the intention to (finally) change this was announced somewhere here on Meta, but I cannot find it right now. — Wrzlprmft Apr 22 '15 at 6:39
We only have 24.
When (and if) we have 40 there will be a lot of badges awarded at once.
 
12:13 PM
@user202729 How many questions does the 40th tag have?
 
is it unreasonable of me to be really annoyed that np.random.randint(0,1) is not equivalent to random.randint(0,1) ?
 
@Angs I think 90.
 
(python)
 
@Anush Equivalent in which sense?
 
@user202729q one of those two only ever outputs 0!
 
12:21 PM
@user202729 Only 2002 questions in those 16 tags until the limit is hit!
 
randint can return a 1, randrange can't and neither can numpy.random.randint
 
12:36 PM
0
Q: Matrix in "slash" order

Luis felipe De jesus MunozGiven two positive numbers N >= 2 and N <= 100 create a matrix which follows the following rules: First Number starts at position [0,0] Second Number starts at position [0,1] Third number goes below First Number (position [1,0]) Following numbers goes in "slash" direction Range of numbers used ...

 
1:03 PM
https://codegolf.stackexchange.com/questions/12403/build-the-busiest-beaver-in-x86-machine-code-in-32-bytes-or-less
I'm sorely tempted to revive this just to make an even slower counter. Wait until the realtime clock in the CPU overflows before incrementing the next number.
Or even
wait for it to overflow 2^64 times
in fact, why not just use all the spare registers for a smaller,but still big counter that counts how many times it overflows
 
@moonheart08 yes. pls
 
i'm a genius. But i'm too lazy to try and test such an evil scheme :c
mostly because it'll take eternity
 
@moonheart08 just write it and pretend it works
 
lol
that question is ancient. Does it even fit modern standards?
Probably not
so, how many years is 1.84467440737E+19 nanoseconds?
thx wolfram alpha.
584.94241735477 years
@ASCII-only so what should i do, wait? :P
 
@moonheart08 well as long as it theoretically works correctly you're fine
there are a lot of answers like that here
 
1:12 PM
/me goes to code
evil genius time
oh this isn't irc
/me when
 
@moonheart08 there's a userscript for that
 
@fergusq what would be the golfiest tampio hello world?
65
Q: SE Chat Modifications -- Keyboard navigation and commands for chat

Tim Stone Screenshot Use /command shortcuts to perform common chat tasks: See message history inline: Easily preview replied-to messages: And much, much more... About Legends tell of a prolific Meta Stack Overflow chatter who despised using their mouse above all things. In an effort to keep t...

slash + enter for command list
it's really nice, plus IIRC has a plugin API (I used it to add command to hide sidebar a long time ago)
 
1:48 PM
For Proton, should boolean literals be True, true, TRUE, or something else
 
true
 
@HyperNeutrino I'd go for true
 
I'm tempted to make a language that outputs true as Why, yes, good sir or madam, this is in fact the case!Nic Hartley Apr 20 '16 at 21:20
 
...
ok then
I remember that :P
 
1:54 PM
How is JHT now? The last message was posted 4 days ago.
 
@user202729 last real activity was 18 days ago
whoops I let the Proton room freeze
 
x86 is magic. I'm glad i can declare my own calling convention. Thanks to most GPRs needing to be zero, i replaced the movs used to initalize a few constants with an or instead. Also reorganized my loop a little to remove an extraneous jmp, and deduplicated a increment. Result: 59 bytes of x86 to print the diagonal alphabet. \o/
all of that somehow saved bytes
the part that suprises me most is or being shorter than a 32bit mov
 
Help. Can anyone fix the build error here?
fork and PR if you manage to fix it pls, need to sleep now
 
@ASCII-only (how was the {%raw something?)
Apr 12 at 6:28, by user202729
https://stackoverflow.com/questions/3426182/ !
 
Ha! my assembly nearly beats the java 8 answer. I wonder if i can chop off two more bytes
 
2:13 PM
0
A: Sandbox for Proposed Challenges

ArnauldDecode my Alphabet Code (Cops) This is my first C&R challenge, so I thought I'd better post it in the sandbox. This is only the Cops thread and it's still missing some usual C&R rules (such as explaining what should be done once a submission has been cracked). cops-and-robbers restricted-source...

 
@ASCII-only how can be build error if static
 
user image
2
from unicode.org
 
2:28 PM
4/3 very descriptive
 
... what happened with cairdcoinheringaahing ?
 
@user202729 he voluntarily left his identified account because he doesn't like the community (second account deleted I believe) but might code-golf from anonymous accounts because he likes golfing but not the community.
 
Why would someone hates PPCG ⍨
 
When did that happen?
I swear i saw him talking not that long ago
 
@moonheart08 10 days ago exactly
 
2:33 PM
):
 
> As of 14/04/18, I no longer participate in this community. I find it toxic, and highly unproductive. Basically the golfing is the only good part, so if you see answers in my languages appear from deleted, anonymous accounts, you know that's me.
 
^ who posted it?
 
@Fatalize Right in their profile...
 
nevermind I just read the messages above
 
I don't think i've ever seen any toxicity at all here
 
2:35 PM
Eehhh
 
@moonheart08 That is the confusing part...
 
Glad i'm not a mod. People leaving for reasons like that would slowly drive me insane. I rather dislike it when people are being toxic, and having someone leave because of it would be very disappointing to me. :/
 
There was quite bit of toxicity in TNB a couple of years ago
 
> years
Back then I didn't know what is PPCG...
 
I've only been here for a few months. I wouldn't know.
 
2:37 PM
I also think there's still a problem of people taking things way too seriously
Not really in a position to argue about PPCG anymore anyway, I barely participate nowadays
 
That may be Lembik or ais523 if before that date...
 
Maybe. I don't think ais523 would take anything too seriously. (I've known them from #esoteric on freenode)
 
ais definitely takes things too seriously
 
He basically left because he cared too much about reputation/upvotes/downvotes
 
2:41 PM
Can I have someone take a quick look at this? codegolf.meta.stackexchange.com/a/16075/62402 The test case generator is my first decent-sized Python program, so I'd appreciate another eye to it before I post it.
 
I mostly know them from #esoteric, not here
 
The only thing I've seen that someone could perceive as "toxic" is how new users are treated, but even then I think the community handles that pretty well unless they're spammers or just blatant trolls. There are some cases where some users could change their wording, but from my perspective, I honestly don't see a problem, though I'm accustomed to harsher wording that some people might perceive as too harsh. I can't really say accurately anymore because I haven't participated for a while.
 
@StephenLeppik (ie. bugfix?)
 
@HyperNeutrino Take e.g. the meta-post about raising privilege levels. What is the actual purpose of doing this, besides annoying lower rep users? It's basically a measure pushed by the mods because they want PPCG to feel "more graduated" even though it's completely useless
That's the kind of "too serious" circlejerk I don't like in PPCG
 
I mean it supposedly reduces the number of people who have privileges (like, basically everyone has view-deleted permissions), but I honestly don't think reputation is even a good measure of privileges so there's no point in changing a scale that's wrong anyway.
 
2:43 PM
Yea, the increased levels seem a little unnecessary for PPCG
 
Like seriously, how much do internet points from clickbaiting people with memes reflect your responsibility in a community?
 
@user202729 yeah, sorta. Although, I already put it into TIO and got it to compile.
 
PPCG users get rep based on what other people like, not on being helpful or similar
 
exactly
 
So some people would be stuck below that barrier forever
I mean, the increased privileges basically say "get more rep now" to new users
 
2:45 PM
yeah
 
for stackoverflow, it means "be helpful"
 
and like then I'd feel forced to participate again to get back my privileges which really just makes me feel like the community doesn't trust me with mod tools
 
Rep here is simply too varied for it to be sane
 
@Fatalize tbf we have users who are unlocking CV powers in less than a week
 
@StephenLeppik So what? Has that been a problem?
 
2:46 PM
like i feel like time on a site should have some weight in privileges because low-rep users who have been on meta a lot and in the community a lot could be more suitable for some privileges than a code-golfer who just focuses on answering questions and not the community
 
@Fatalize The actual reason is that privileges like voting to close or voting to delete become available way too soon, and we've seen these privileges being misused by low rep users.
 
Well, if it is done, there should be some sort of sideline for trusted users with low rep if that's somehow possible
 
That's the main advantage I see to raising the bar; it mostly just prevents new users from getting them because you can't possibly get reputation quickly enough if the bar is high enough; still though, I think there should be some weight on community participation instead of only reputation.
 
@Dennis "we've seen these privileges being misused" => this is not even adressed in the post. Nothing is said about the problems this is supposed to solve, even though this is the only thing that should matter about the discussion
 
2:48 PM
Reputation isn't as good of a system for us than for Q+A sites but we're on SE so that's going to happen anyway.
 
@Fatalize "adressed" -> "addressed"
 
^ Frenchism, sorry
 
I think something that could work to solve that problem is to just put a thing like "you can't have close-vote until you've been on the site for at least 2 weeks/a month/something"
 
@HyperNeutrino But SE...
 
yeah...
 
2:49 PM
(how is Axtell now?)
 
I mean, look at me, I take time to make answers. I normally do golf with assembly languages, which take time to write programs for (bugs are everywhere, and debugging is often slow). As such, by the time i answer a question, it'll have aged enough that the problem noted in this disagreement will happen for me
 
the main problem is still that SE structure and PPCG ideology don't go together as well as SE would like
anyway gtg now
 
So i'm personally stuck below the rep barrier.
it simply does not work for ppcg
 
@Fatalize Why else would they be raised? Preventing misuse is the reason moderation tools are privileges in the first place.
@HyperNeutrino There's a huge difference between visiting the site once or twice in a month and every day for a month. You have to measure the activity level somehow. Reputation alone might not be the best way, but it's better than time alone.
 
@StephenLeppik although not wrong, using & instead of and doesn't seem like a good idea.
@moonheart08 I don't often upvote answers in languages I don't know. So...
 
3:01 PM
Yea, that's the issue. If you want to earn rep, you have to go out of your way to write answers in languages everyone knows.
 
BMO
@moonheart08 Or provide a nice explanation too.
 
(otherwise issues like [this](todo find the post) would occur)
 
Hi. Anyone good with JS ?
 
o/
What do you need help with?
 
@BMO It depends on a lot of factors: HNQ, challenge posted time, whether it's starred on TNB, etc etc
 
BMO
3:05 PM
But yeah, quickly writing a solution in Python, Jelly, Haskell or C gives the most rep, even when it gets beaten a few hours later
 
@MuhammadSalman Just ask, don't ask to ask. (or in JS room)
 
BMO
Yes, it's sad how some answers get more upvotes just because they were quicker.
 
@BMO And i'd much rather do it in something more difficult, like x86 assemby. Which of course, can't be done quickly at all
 
I am trying to create a language and I seem to have a hit a snag , so I am trying to implement something along the lines of puts 'string' like ruby or print() like python and I can't think of how to go about doing that. Any help ?
 
3:07 PM
how is that related to JS? Also, we'd need more info
 
@MuhammadSalman Read about syntax parsing etc.
 
It is related to JS since I am trying to create the language in JS
 
@MuhammadSalman No it's not.
 
BMO
@moonheart08 Define "difficult" :P
 
3:07 PM
@user202729 is that your only advice?
 
feel like typical XY problem on SO
@StephenLeppik I didn't really read it...
 
@BMO as in, an intresting language that provides a bit of a challange to work with
 
@user202729 : Oh well my sense of tagging question is not too great
 
not flat out annoying, but one that provides intresting ways to solve the problem
 
@user202729 also, the functionality is identical right?
 
3:09 PM
@moonheart08 As someone who almost exclusively answers in PowerShell, I can say this is patently false.
 
(what is "deleted by Community <>"?)
 
& vs and
 
@StephenLeppik For booleans, yes. (except one return 0/1 and one return false/true)
 
@AdmBorkBork what's false? My definition of difficulty or the fact it takes a while
 
"If you want to earn rep you have to answer in a language everyone knows"
 
3:11 PM
ah
 
BMO
@AdmBorkBork It certainly helps
 
If you want rep you have to answer in PowerShell, obviously.
 
BMO
But nothing wrong with that I guess, that's just natural
 
Sure, but trying to phrase it as the only way to get rep is disingenuous.
 
@StephenLeppik "go through the list" -> "from left to right" correct?
@Pavel Huh...?
 
3:14 PM
@user202729 i was just referencing that @AdmBorkBork is a PS wizard
 
I wouldn't go that far. ;-)
 
@StephenLeppik The test generator looks correct. I suggest having a test case where 1 the ratio is exactly 0.3 or 0.5 2 a number is both incremented and decremented 3 consecutive equal numbers.
@StephenLeppik Why do you name your variable input then...
Also, maybe some rules regarding numerical error?
 
Woo, 200 bronze badges
 
3:32 PM
I promise I won't spend time on PPCG or TNB in the next 24 hours. (this message is mostly for reminding myself, don't care about this)
 
@user202729 How can you be reminded by your message if you don't enter TNB?
 
@ASCII-only If you don't mind errors, probably X on lista;tulostetaan tie"Hello, world!". or A:lla on B;tulostetaan tie"Hello, world!". It doesn't contain a main function, so the JavaScript program crashes after printing Hello world.
Without errors: Kun aloitetaan,tulostetaan tie"Hello world!". tio.run/##K0nMLcjMz/z/…
 
Can I cry yet?
 
@user202729 the .5 edge case is in the example. I'll add your other suggestions too.
@user202729 huh?
@user202729 how so?
 
4:10 PM
2^32 ducks, anyone?
It's fun how printing absurd amounts of ducks is shorter than printing a max of 255 or something
 
2
Q: Implement Tyrant Sort

Stephen LeppikThe sorting algorithm that has a worst-case of GLORIOUS LINEAR TIME, and where any who dare oppose its INFINITE WISDOM will be promptly EXECUTED for their HEINOUS CRIME OF HIGH TREASON. The FEARLESS LEADER has tasked you with the HONORABLE MISSION of writing a program or function that takes in a...

 
4:27 PM
i beat java 8's diagonal alphabet \o/ when you don't count bss at least
 
@NewMainPosts @StephenLeppik Way too much bold
 
and very hard to read
 
4:51 PM
Sudden horizontally centered youtube search bar is sudden.
 
I don't like it. The left edge should line up with the left edge of my recommended videos
 
@moonheart08 but you do count bss
 
00:00 - 17:0017:00 - 00:00

« first day (2642 days earlier)      last day (2205 days later) »