« first day (2430 days earlier)      last day (2707 days later) » 

00:19
@Pavel Thanks that was pretty fun.
Thanks!
It is the kind of challenge that I really enjoy in Brain-Flak
It looks like I have the longest answer though
here's to hoping someone answers in Java
Someone did
1
A: Dizzy integer enumeration

Kevin CruijssenJava 8, 15 bytes n->~n/2*~-(n&2) EDIT: Is Java really the shortest of the non-golfing languages?! o.Ô Explanation: Try it here. I'll use the table below as reference of what's happening. ~n is equal to -n-1. Since integer division in Java automatically floors on positive integers and ce...

Oh well.
I did notice there is a clojure answer that is longer than mine anyway, so I guess I got what I wanted
Yep
Kinda dissapointed you have the only esolang submission.
00:35
@Mr.Xcoder At this rate I'll never catch up to your reputation; I keep bountying lol. I'm pretty satisfied with the amount of reputation I get and it's going up, but way more slowly than yours :)
124
Q: "KNOT" or "NOT"?

squeamish ossifrageWrite a program that processes an ASCII art representation of a tangled string and decides whether or not it can be untangled into a simple loop. The tangle is represented using the characters - and | to represent horizontal and vertical segments, and + to represent corners. Places where the stri...

Hey I forgot you existed @NFQ!
Is NFQ broken?
I don't think so...?
It just linked "KNOT" or "NOT" which I just bountied a few minutes ago
Like, maybe I haven't been paying attention, but I haven't seen it very often at all, when it's supposed to post everything that gets a bounty.
00:47
IIRC we don't get bounties extremely often, but I forgot about NFQ because I haven't seen a post from it in a while now
maybe it was broken previously
ಠ_ಠ NFQ rickroll wtf
Also just making sure, is still on-topic here right?
k
I have a general idea but I'm not sure if it's specified enough
The idea is to make a programming language that only uses balanced (), kind of like Brain-Flak but much more restricted
I'm not sure if that's well-specified or interesting enough so I'd have to sandbox it first to see if it's well-received
anyway gtg for a bit lol
(Unary)
01:00
yeah I might ban that but that's not really an objective ban, so I might just design the task so that a similar approach wouldn't be very competitive
@Scrooble Is your profile picture something from The Great Wall or is my memory failing me?
Nope. Worldspine Wurm from the game Magic: The Gathering.
huh ok
it looked like that one worm thing from that movie and since it's extremely green I thought it was that :P
This one?
well from that movie yes
didn't the weird demented thingy side have like worms drill through a mountain to release units or something like that
I can't find the scene on YT but I remember something... unless that was from another movie rip
01:24
Dunno. Haven't seen it.
01:37
waiting for nmp
0
Q: Distinct Reversible Primitive Binary Necklaces

HyperNeutrinoIntroduction - What is a necklace? A necklace is something that OEIS people are obsessed with. The OEIS challenge has like 5 necklace sequences. A binary necklace of length n is a loop with n beads that are either 0 or 1. Two necklaces are the same if one can be rotated to become the other, and...

@NewMainPosts thanks!
02:03
@FunkyComputerMan It's also the average of code points rounded
Oh wow. Thats a pretty funny coincidence
I wonder how many ways there are to do that
I smell a challenge
lol I thought that J being the average of APL's codepoints was the original intention by the statement "Is J the average position of APL" lol
[too bad it's not the exact average :(]
rip I can't get any upvote notifications until I've gotten at least 100 reputation
waiting for NSP this time :P
I really hope this isn't a dupe; I tried finding this challenge but didn't find anything lol
anyway gtg lol
02:24
@FunkyComputerMan Wait, that wasn't your intention?
No I meant its the average of the positions on the keyboard
or at least my keyboard
@FunkyComputerMan How do you measure avg kbd position?
I took their positions as vectors and averaged them.
It wasn't terribly scientific. But after getting out a tape measure I have confirmed that J is the average position on the keyboard
Probably with "rounding" too
yeah it lands somewhere on the key
02:33
So J is the center of mass of APL
You are assuming QWERTY
I'm assuming a bit more than QWERTY
if you have a different horizontal shift it might not work
? If horizontal shift is the same for all keys it shouldn't matter
If the rows are shifted relative to each other much more than on my keyboard its likely to be H instead
on DSK, J is on the bottom row but neither of A, P, L is.
02:36
On my roommate's keyboard it is H
0
A: Sandbox for Proposed Challenges

HyperNeutrinoFinding Snakes in a nest code-golf binary-matrix decision-problem Challenge Given a binary matrix and a binary string, determine if that binary string can be found starting at any point in the matrix and moving in any direction at any subsequent point to form the binary string. That is, can the...

@FunkyComputerMan Ah, true. I thought you meant shift as distance among neighbour keys within each row
@FunkyComputerMan I think that the rounded avg is much neater: tryapl.org/?a=%u2395A%5B%u230A0.5+3%F7%u2368+/…
I don't know what I'm looking at :P
02:52
@Adám I can finally say that I know what some of those characters are for.
Here's some haskell to calculate the average keyboard position of a word:
https://tio.run/##fZLbUtswEIbv/RQbTz0jTZwQuXcM7kxaoAdCG07lULhYExF7KlseWRAuePd05djEMEkv7JF29//0r1YpVn@lUstllpfaWNhHi8NTtJn2PKMXFcTwxz@5PDg9v774/mvqh/74bP/w67cfRxNa31x9@f3557F/53mPRYUP8lDa@xSkkrksLLBU4mxXZZXlHry8huMYXILQIxfWNpVmkVWSAgL6sInkGOB5c2mnusrIXQFKWitNy222wJzpXm/ECcZGgQi7tPc1geBb9KLWC9Kz7QDBeV8EH7cxopoR/Z8RESNqGN2LYAN3uPvxuu1Jo8IwqbErNcOyNPo5y9FKQM57vU6AJTAA9q6EjiJgN2bcsAtUzkG7hj1qHgKoWxi9zcSrVH1DYtP8jH4sZuSwVQxagTv4SRqcSyibKVYOQFCqUbKY23SdCVYzuK1bHnxiuKPCZEdxzh60mimXECFGLnXLEhEm9RJFP3HhPm2p1L0A@vgrlTwstJmNGx8xrO92CK27IbAcS@i8NpLlmBVxabLCfugS/PF04i@X/wA
@Adám How does work when you apply it to a string?
@FunkyComputerMan Rounded average of "APL": ⎕A⍳'APL' indices of the characters in the Alphabet. +/ sum. 3÷⍨ div-by-three. 0.5+ add a half. floor. ⎕A[] index into the Alphabet.
Ah, I didn't know what ⎕A was.
Ok makes sense. I can't see most of the characters unfortunately
02:55
@Pavel Remember. APL doesn't really have traditional data-types, only arrays. X⍳Y finds the indices of the major cells of Y among the major cells of X. A "string" is just a character vector, so the major cells are character scalars (i.e. characters) and will find the index for each one.
@FunkyComputerMan Really? What do you see?
Is the box before the A meant to be a box?
⎕ and ⍨ are boxes for me
@FunkyComputerMan ⎕ actually is a box
9
Oh ok
Is that the first one or the second one?
The first one
02:57
@FunkyComputerMan The second is a "frown": fileformat.info/info/unicode/char/2368/index.htm
It looks different for me when I type it vs when Adám types it.
@Adám That should be ctrl+~, right? But that gives me ⌺.
How about this? ⍨
@Pavel No, it is APL+Shift+T (for Tilde). APL may be Ctrl by you.
Ah. Right.
Actually I don't think it ever was a box, I just needed to zoom in.
02:59
@FunkyComputerMan Wow, that must be som seriously small text if ⍨ looks like a box.
that looks like a smudge to me lol
I didn't really get a very good look at first. Once I saw one box I assumed there would be more.
That looks like a speck of something on my screen
How do you TNB zoomed that far out
Its only 50%. Firefox doesn't support a wide variety of levels of zoom and I can't stand be any more zoomed in
03:04
._.
You are a very odd wizard.
If you guys don't want be reading your messages you can just use <sup></sup> :P
@Adám ⎕A[⌊0.5+(+/⎕A⍳'APL')÷3] is way more understandable.
@Pavel I personally dislike parentheses.
03:06
Help
I think I broke my mouse
?
How do we help with that
@ASCII-only Call a vet!
I do have to wonder why Iverson decided Right-To-Left was better than Left-To-Right.
having the order for operators and functions be different does seem to make sense from what little I know of APL
@Pavel Me too. Too bad we cannot ask. I think that it is because the fits better with how one reads descriptions in English and possibly because that is more natural when declaring things. Remember, APL was originally a new mathematical notation – not a programming language.
@Pavel Consider ⌊0.5+(+/d)÷3 which can be read "the floor of one half added to the sum of d divided by three".
03:12
{⎕A[⌊0.5+(+/⎕A⍳⍵)÷⍴⍵]}
In "backwards APL", it would be d+/÷3+0.5⌊ which reads "d, summed, divided by three, added to a half, floored"
Well, in regular notation, for operators with the same precedence it's still left-to-right.
hardly normal English.
@Pavel Except power and negative.
maybe it's because I'm slightly used to reading postfix but that makes perfect sense as normal English to me lol
Wait, is a^b^c a^(b^c)
03:15
@Pavel Yes.
Now I remember why I always have parens when writing exponents
@HyperNeutrino As description of a procedure to be done, but APL was never meant to be procedural.
What paradigm would one assign to APL?
@Pavel Originally it was just an ironed out mathematics, so I guess declarative functional.
ಠ_ಠ Wikipedia lists J as an implementation of APL.
Oh, nevermind, as a dialect of APL.
I got the sections confused
03:21
Today, (Dyalog) APL is truly multi-paradigm: Tacit and explicit, functional and imperative, declarative and OO, interpreted and compiled.
I can't figure out wether or not R and S are the same language.
@Pavel QuadR and QuadS?
@Adám No, the statistical analysis language(s).
The wikipedia page for S lists R as an implementation, but the page for R lists S as an inspiration for, but seperate language from, R.
Hmm
What are we talking about here
@Adám Interpreted/Compiled aren't paradigms :P
@Adám Also what about reflection :P
03:25
@ASCII-only True, more like features. Should I add structured and unstructured? Array oriented and scalar?
Dyalog is a .NET language, so I suppose it supports .NET reflection capabilities.
@ASCII-only APL can certainly modify its own code and the meaning of existing code at runtime. I wouldn't recommend it though.
@Adám How would you generate a random number in a certain range in APL?
Like randint(1, 10)
Wuuttt.....
03:31
@Pavel randint←+∘? (Assumes ⎕IO←0. Lower bound is left arg, upper bound is right arg.)
Ah.
Why does putting First in the input field work, and why not just write ⎕←First?
@Pavel You could do that too. The reason is that TIO's Code defines the "APL workspace" while TIO's Input defines the "APL session". It is as if the user started APL with the selected (i.e. typed) workspace, and then typed into the session to get things started. If you add ⎕←First to the "Code" it is as if the workspace contained its own boot-strapping mechanism. An APL workspace have that; just assign an initialising command to ⎕LX (Latent Expression)
So basically the Input field acts as the REPL.
Is there anything you can do in it that you can't do in the code field?
@Pavel Yes, in the session you can use system commands, e.g. )load and user commands, e.g. ]load
Ok. It just seems weird, no other language on TIO behaves like that
03:40
@Pavel Also, the Input has implicit output while Code doesn't.
@Pavel J :-)
Doesn't count.
(Also K, probably)
Actually, a colleague and I are in the process of pushing behaviour into Dyalog APL which will put it more in line with what "the world" knows these days.
So writing scripts in APL will finally make sense? Sounds lovely.
(That is when I can get him away from speeding up APL. He's obsessed with that ;-) and won't stop until interpreted APL is several times faster than compiled optimised C.)
Can anyone tell me why this throws an error
var f=(x)=>((1/6*(2x+1))+1/2)*(x*(x+1))/2;
console.log(f(5));
"Uncaught SyntaxError: Invalid or unexpected token"
03:50
@Nobody 2x?
Oh ok ;)
JS error reporting is shite.
Seriously anything else would have given the exact location where the error was caused
true
@Pavel ... JS does too
instead it shows a line
wth js
03:53
@ASCII-only No
The only output is "Uncaught SyntaxError: Invalid or unexpected token"
@Pavel ... and the exact location on the right...
@Pavel Even APL has done that since the beginning (although I must admit that Dyalog APL isn't always brilliant about that.
Please show me where the location of the error is listed
@Pavel ... the right...
Can anyone figure out why the following does not error in APL? x←5 ⋄ ((1÷6×(2x+1))+1/2)×(x×(x+1))÷2
03:55
> 2x
@ASCII-only 2x isn't the 100th or the 1st character.
And it's defeinitely not at the VMth character
@Pavel ... it's a link
@Pavel this is why we should all use safari. REPL error position are correct
To the exact location
Ooooh
I see
04:12
btw I was solving GAU numbers
I think the examples are wrong
or I am
@Nobody This
err
this what
Do you think it's more likely all the current answers are wrong, or you are? :P
 
2 hours later…
06:20
1 Spam moved to Trash
I think that may just be the first time I've seen NMP moved to trash.
I'm wondering why that spam question got tagged halting-problem...
Cause it has to have a tag?
But why that of all things
I'm assuming it was a random choice by spammer pressing random key but still :P
Well gtg now o/
 
1 hour later…
07:40
@Pavel it isn't though iirc mego moved another nmp spam to trash too
> I've seen
just sayin' just in case
Anonymous
@EriktheOutgolfer I have no idea if I have done that but I'll go ahead and agree with you :P
Mar 10 at 9:59, by Mego
1 message moved to Trash
now you can be sure too :p
Anonymous
Yep, I just found it in Trash
07:43
btw I found it because I remember how you said "goodbye spam"
Anonymous
That sounds like something I'd say
09:17
hi @LeakyNun
I decided to have a go at web scraping myself but then realised I know nothing
:)
I was wondering if you could help me reproduce what you did (I am in python using beautifulsoup but the principle should be the same)
what did you look for in the page to extract the title and rating?
@Lembik 1. go to the page 2. right click 3. inspect element 4. eyedropper 5. click title
@ASCII-only I am not sure I follow. Why go to page 2?
@Lembik :| 2 is meant to mean step 2
09:24
oh I see
ok let me see
I don't know how to get this eyedropper
nvm it's a rectangle with a cursor on it
what browser do you use
I can use either firefox or chromium whichever is easier
but in firefox right now
It's on the top left in Chromium
I think there's an equivalent in Firefox but I'm not used to it so I'm not sure
ok so I did that in chromium
but I still don't see how to extract the rating
Usually the rating and title will have an id (just use that in beautifulsoup to select)
Sometimes they will always be e.g. the nth child of an element with an id, or be the only element with a certain class
09:32
Hmm what does $('.js-headline-text') give in JS console
$('.js-headline-text')
<span class="js-headline-text">
If there's only one thing the that's great :P just use BeautifulSoup to (somehow) select the elements with class js-headline-text and get the first element ([0]) of that
I am so failing :)
print soup.find_all("div", class_ = "js-headline-text"))
just prints out a lot of the web page
10:00
O_o weird
CMC: Given non-zero integers a,b,d with d divisible by gcd(a,b), find integers x,y such that ax+by=d (Bezout's lemma)
11:27
"There is no existing code that does this" Does this mean you generated the example image by hand?? — trichoplax 31 secs ago
I really can't follow what's going on with this question
@trichoplax >_> I would have done it by hand tbh
12:20
@trichoplax Why does this guy hate his own challenge so much?
@Sherlock9 probably because he didn't intend it to be a challenge
Sigh, alright
@Sherlock9 nice to see you
Hey Leaky
I've been hopping in and out
12:52
0
Q: Six Flags over HTTP

Foo BarLet's say you need to transmit six boolean flags in a URL string. Obviously you could do it with six ones or zeroes, but you want better compression. With a little math you can pack them into two characters using 0-7 octal. But how about mapping all six to a single ASCII character? Here we have...

0
Q: Make a 2d menger sponge

John Paul PenalozaA menger sponge is a fractal made out of cubes within cubes within cubes... If you start with a cube, on each face there are 9 squares. The middle square becomes empty (or 0). The other 8 squares iterate this process. They each get split up into 9 squares and the middle square face is taken out....

Try write with your keyboard: QAZSEDCFTGBHUJMKOLP
@NewMainPosts Also known as a Sierspinski... ninja'd already
13:09
0
A: Sandbox for Proposed Challenges

Foo BarSix Flags over HTTP Let's say you need to transmit six boolean flags in a URL string. Obviously you could do it with six ones or zeroes, but you want better compression. With a little math you can pack them into two characters using 0-7 octal. How about mapping all six to a single ASCII charact...

 
1 hour later…
14:19
0
A: Sandbox for Proposed Challenges

caird coinheringaahingPredict a Game of Life Just a rough draft for the moment, will expand later Given a matrix of ones and zeros m, and a positive integer n, return m modified as if it was a board for Conway's Game Of Life after n generations. For example, if the matrix was 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0...

14:56
@Scrooble did you just request access to the jelly hypertraining room?
the room is intended to help in learning the Jelly golfing language
I read something on Arcade lounge chat
@EriktheOutgolfer Yeah... Jelly is certainly a language I want to learn.
@Scrooble hmm
have you read the tutorial? it may help
Yeah, I have
15:01
hmm...
ಠ_ಠ Too many people are learning Jelly. It's no longer for the elites :P </joke>
it's for helping them be the elites ;p
(although we can't just inject the knowledge :p)
Is it possible to change the direction of a glider gun in GoL?
Build the gun pointing the other way :P
In cellular automata such as Conway's Game of Life, a reflector is a pattern that can interact with a spaceship to change its direction of motion, without damage to the reflector pattern. In Life, many oscillators can reflect the glider; there also exist stable reflectors composed of still life patterns that, when they interact with a glider, reflect the glider and return to their stable state. == External links == New stable 180-degree glider reflector, Game of Life News, May 30, 2009 New stable 90-degree glider reflector, Game of Life News, May 29, 2013...
@Scrooble putting you in
15:05
@EriktheOutgolfer Sweet. Thanks.
@Scrooble That doesn't have a seed for the reflector though :(
@cairdcoinheringaahing Why do you want to know this
Yes flip it
@ASCII-only Because I'm messing around with a GoL simulator
@cairdcoinheringaahing ... there's something called LifeWiki
The author of this challenge is annoying :/
Is there a way to edit-protect questions on SE?
15:17
@TuxCopter Yeah, flag for a moderator to lock the question
@cairdcoinheringaahing the question is good, just the author isn't
@dzaima If the author is vandalising the question, the moderators should revert the vandalism, lock the question to prevent more vandalism and talk to the author. Then they can unlock it. Also, I think there is a lock that only prevents editing, not answering
@cairdcoinheringaahing oh huh, didn't know that there was an edit lock
@TuxCopter flagged
I wonder if he even attempted to contact SE to anonymize the question or if he's just continuously hoping that vandalising will fix all problems
15:20
@dzaima Yeah, locks are designed to be different to things like closing, so it would make sense if there is a edit lock]
well, the "edit lock" will also prevent answers
Yeah, according to this that question should definitely be locked (temporarily)
eugh another strike I had to roll back
0
Q: Do we really want to delete undecidable answers, even if they were declared non-competing?

peterhPlease note: the intended tone of this question is an "Are you sure? (Y/N)". It doesn't have the flavor "do anything differently". The emerged for me with this question, having currently at least one deleted answer(s) (what is invisible for users below 3000). The most relevant win criteria of...

15:41
anyone got any ideas how I can look up mpaa or bbfc movie ratings (in code of course)?
@Lembik pls bpaste ty
@ASCII-only what is ty?
@Lembik Thank you
oh.. then please paste what? :)
given a movie name, I want to return its rating
like the original poster has just been editing it and stating that they hate the challange
15:44
@Lembik soup.find_all("div", class_ = "js-headline-text") should work
@TaylorScott Check the conversation above the NMP onebox
@TaylorScott Yep
Damn it, had to roll it back again.
ah - yeah
And we can't stop him from nuking it
15:46
@ASCII-only sorry I mean these things en.wikipedia.org/wiki/… . It's not on the same web page
@ASCII-only Yeah, only the mods can :( Here comes edit policing
:( I enjoyed answering that question, I hope that they don't nuke it
at least I don't think it is
@Lembik Look up?
@ASCII-only do you mean soup.find_all("div", class_ = "js-headline-text") ? Which web page is that for?
15:47
@Lembik The other one >_>
sorry can you paste it again? I don't seem to see it
@Lembik What exactly do you mean by look up? What is your expected input/output
If questions were still allowed, this would be the go-to help page :D
@Lembik The one you asked about before >_> <_< I never found out what website that was
@ASCII-only the input is a movie names. E.g. "Star Wars"
the output should be the MPAA rating for it
or the BBFC rating.. I don't mind which
15:49
@Lembik Exact movie name?
@ASCII-only Let's say in the first instance
@Lembik You should make that into a challenge. A bit more specification, and that could be fun
@cairdcoinheringaahing I would be happy to but I fear someone will say "It's just web scraping"
@Lembik I may be dump, but what does "web scraping" mean?
ಠ_ಠ The spelling errors really didn't help :P
On the webpage "www.filmratings.com/Search?filmTitle=%s" % title.replace(" ", "+")it's the inner text of the first element with the class _filmRating
Assuming you don't mind using filmratings.com's relevance order
because True is a valid variable name
@cairdcoinheringaahing Even better
@EriktheOutgolfer Just because it works, doesn't mean it should
well in python 3 it doesn't
You'd think that this wouldn't let you assign to None, but instead, it doesn't know what False is D:
16:04
python 1?
@EriktheOutgolfer Of course.
it uses 0 and 1
And XML is even weirder. <_><:>:_>:/:_<:</:></_> is valid code
@cairdcoinheringaahing Why? That seems useful
@TuxCopter You could just use die "Not yet implemented"
16:07
... is shorter tho and v
@cairdcoinheringaahing Do you really want to type that every time
also no risk of spelling errors
he can make a function to do it?
Sure, but would you prefer { ... } or { die_not_yet_implemented() }
@ASCII-only how about { f() }?
or even TODO()
16:10
@ASCII-only oh that's an interesting website!
@cairdcoinheringaahing well that isn't very descriptive/intuitive is it
@ASCII-only Neither is ...
@ASCII-only They might get annoyed if I do 9000 lookups
@Lembik Yes they might >_>
@ASCII-only but thank you. In theory imdb.com has all this data
@ASCII-only I wonder if there is a similar way to look up BBFC ratings
16:12
@Doorknob could you lock this question for the moment, as there appears to be an edit war happening
@Lembik Actually I'd contact them about doing lookups, because I think that website is run by the MPAA
@cairdcoinheringaahing For future reference... repeatedly rolling back the post does not help the situation. Just flag it and move on.
@ASCII-only Why contact them first?
in case they have a simpler way?
or to ask for permission?
@Lembik Yeah, this
@Doorknob I think its been flagged, but it doesn't appear as though anything has happened
16:15
which one was "this"?
@Lembik TBH I don't really think they'll mind
oh I see.. a simpler way
got you
@cairdcoinheringaahing He's been suspended.
they might even provide a list!
@Doorknob but we were just rolling back so as to keep the challenge visible
16:19
@EriktheOutgolfer I'd agree with Doorknob
The challenge doesn't need to be up all the time
@Lembik on "http://www.bbfc.co.uk/search/releases/%s" % title.replace(" ", "%2B"), the image the first child of the first element with class symbol, once you have the src attribute of that you can do string.split('_')[1] (or any method to extract the text between the underscores)
Looks like you can't filter for just films though
@ASCII-only interesting!
I am doing this all in beautifulsoup
and I still wonder if it could make a PPCG challenge
0
Q: Find the average of a word

Funky Computer Man Inspired by this chat message Your task will be to take a word and find the average position of its letters on the keyboard as a letter. Keyboard Layout Since layouts vary from keyboard to keyboard, we will be using a standard based of of my own keyboard in this question. The keyboard has...

16:53
CMC: output the n'th item of this sequence: 2 1 4 3 6 5 8 7 10 9...
@DJMcMayhem jelly, 3 bytes (0-indexed): ^1‘
also already done
@DJMcMayhem Jelly, 4 bytes (all ASCII, 1-indexed): ^1+2
(100% original :P)
Never mind, mine doesn't work

« first day (2430 days earlier)      last day (2707 days later) »