« first day (2030 days earlier)      last day (2816 days later) » 

8:03 AM
@Doorknob When you come back, please have a look at this, which should be more of your favour (it does not involve actual languages)
@Sherlock9 I don't think that would be a good challenge seeing that I can do it in two bytes in Pyth.
@Mego after you write it I will come up with a solution of half the length (just kidding)
 
Anonymous
@Sherlock9 I have a solution now :P
 
I'm currently trying to write up my own answer
Ah heavily ninja'd
 
@Mego let me see
 
Alright, let me finish my clumsy version
 
Anonymous
0
A: Output the nth rational number according to the Stern-Brocot sequence

MegoActually, 19 bytes 11,`│;)@%τ@-+`nk'/j Try it online! This solution uses Peter's formula and is likewise 0-indexed. Explanation: 11,`│;)@%τ@-+`nk'/j 11 push 1, 1 ,`│;)@%τ@-+`n do the following n times (where n is the input): stack: [t s] │...

 
8:10 AM
11,`);;(;)%τ@-(+@`n$)$'/(++.
28 bytes. Dang it :D
 
Anonymous
@Sherlock9 Way too much stack manipulation
 
Yeah, I never quite got the hang of stack manipulation
 
Anonymous
The key is to set up the stack in as few commands as possible so that you can do the actual operations without any intermediate manipulation (or as close as possible)
 
Anonymous
Same with duplication
 
how do i clear a dom element in JS?
 
8:22 AM
That reminds me
A while ago I was trying to do Leaky Nun's "coprime with the previous two terms" sequence in Actually
I ended up confusing myself
 
@Sherlock9 did you do it?
 
Not yet
Going to start a fresh version of it
 
316
Q: Remove all child elements of a DOM node in JavaScript

Polaris878How would I go about removing all of the child elements of a DOM node in JavaScript? Say I have the following (ugly) HTML: <p id="foo"> <span>hello</span> <div>world</div> </p> And I grab the node I want like so: var myNode = document.getElementById("foo"); How could I remove the c...

and look at the second answer (ノಠ益ಠ)ノ彡┻━┻
 
|-| |
@TùxCräftîñg not enough jQuery. -1
 
8:41 AM
ಠ_ಠ
 
@Sherlock9 You're interested in linguistics right
 
Yep
 
have a look at my newest question lol
 
@TùxCräftîñg did u see my lang
 
No idea how to answer your diphthong question, though
 
8:42 AM
@ReleasingHeliumNuclei no
 
@Sherlock9 You may also want to look at the other 7 questions I posted
 
i posted yesterday after you gone
 
rH0re1rl2ro3p!0p!1p!2p!2p!3r,0p!0p World!"
wat
 
Anonymous
@LeakyNun I forgot that addition is commutative. I'm dumb sometimes.
 
Anonymous
Your improvement is clever
 
8:43 AM
@Sherlock9 If my memory serves me well, do you speak indonesian?
@Mego thanks
 
Yes
 
@Sherlock9 then do you have examples?
 
@TùxCräftîñg i was too lazy, didn't do the World, lemme fix
 
I don't know the phonology well enough to say
 
@Sherlock9 You don't know what sound you produce when you speak a langauge?
@Sherlock9 This question is related to English
 
8:47 AM
Not in the IPA, I don't
 
@Sherlock9 then you can record and have me analyze
 
Leaky, I'm working on my Actually answer.
 
Alright
 
how do i apply a substitution only on a selection in vim?
 
@TùxCräftîñg lmgtfy.com/…
 
8:50 AM
@TùxCräftîñg literally the first result on google
 
The charts below show the way in which the International Phonetic Alphabet (IPA) represents Malay (Malaysian and Indonesian) pronunciations in Wikipedia articles. See Malay phonology for a more thorough look at the sounds of Malay. English approximations are in some cases very loose, and only intended to give a general idea of the pronunciation. == Notes... ==
 
@Sherlock9 alright, thanks
@Mego Don't you have an operator for list of digits, base -> number?
 
Anonymous
@LeakyNun ¿ but it required the digits to be a string
 
Anonymous
8:54 AM
I should fix that
 
@Mego I take it as a no
CMC: 23 -> [16,4,2,1] (may contain duplicate; may be in any order)
 
printf("[%d]", input); Note: works for only 2^n. Trying to fix.
 
Anonymous
@LeakyNun So basically decompose into powers of 2?
 
@Mego yes
 
Hey Mego, how do you write while in Actually? While long expression a+=1, else move on to the next bit
 
9:01 AM
@Sherlock9 57 (W): loop delimiter: peek top of stack, repeat code in loop while a evaluates to true
 
Anonymous
@Sherlock9 The only forms of while are W and , which both loop while TOS is truthy.
 
CE (╬): pop f: while value on top of stack is truthy (peek), call f
 
@ReleasingHeliumNuclei ಠ_ಠ you dont int argc, char **argv
 
Hullnuts. Alright let me test that
 
@TùxCräftîñg *argv[] masterrace
 
9:03 AM
the correct form is **argv
and btw you should always include these arguments, even if you dont use them
 
gcc throws a warning if i don't use them :|
 
warnings = nobody care
 
distracts me
 
there is a argument to disable a specific type of warning
and every codebase have warnings on compilation
 
Helps me if i have a unused variable, but arg{c,v} is distracting
 
9:06 AM
so, use cmdline arguments ¯\_(ツ)_/¯
because reading the file from stdin is a bit weird
reading from file is better
 
Anonymous
@LeakyNun 21: ├#;lrZ`i'0*@+2@¿`MSpX. Can most certainly be improved but I'm tired.
 
ᴡᴀꜱᴛᴇᴅ
 
@Mego Is there anything like remove?
 
Anonymous
@LeakyNun What do you mean?
 
9:13 AM
@Mego like "remove all 0 from an array"
or "keep all 1 in an array"
 
Anonymous
@LeakyNun ;░ will do that
 
Anonymous
@LeakyNun Why 2@¡ when you can ? 15: ├♂≈;lr♂╙♂k@♀α♂i
 
@Mego because I have no eyes
 
Anonymous
Only 6 ASCII characters remaining - surely we can do better!
 
Okay, why is concatenating two lists not working? It's supposed to be like [5][3,2,1]+ right?
 
Or am I missing something?
 
Anonymous
 
Anonymous
Might be a bug where a generator isn't being properly converted to a list for concatenation
 
@Sherlock9 example please
 
3RR,21WXu;;@2(;)Hπg@(;)í+WX#(+
 
Anonymous
9:16 AM
Oh sweet baby goat
 
Anonymous
Can you give a pared-down example?
 
Anonymous
@LeakyNun 5 ASCII... We can go lower!
 
@ReleasingHeliumNuclei because 23 = 1+4+8+16 ?
 
9:17 AM
@Mego If it works in the non-pared-down example then surely I have to mess around with the actual example, yeah?
Let me see what I can do
 
@Sherlock9 at least give me a link
 
0 3 3 23 range(3, 0, -1)
-1 2 4 23 range(3, 0, -1)
-1 1 5 23 range(3, 0, -1)
[3, 2, 1]
[5]
23
 
Anonymous
@Sherlock9 Well, clearly there's some disparity between the trivial [5][3,2,1]+ and your full program. I'm asking, can you remove the extraneous bits of your program to just get the erroneous part?
 
Looks like it is generator problem indeed
 
9:18 AM
@LeakyNun link haz 424
 
I added a debug before the concatenation
@ReleasingHeliumNuclei speak in English; I don't understand
 
@LeakyNun the link i put has the number 474, not 23
 
@ReleasingHeliumNuclei you didn't press save so it's 23, click on it yourself
 
9:20 AM
@Sherlock9 same problem
 
The stack before the concatenation is [5] range(3, 0, -1) 5
 
Alrighty then
 
9:20 AM
@Mego 6 ASCII!
 
Thanks all
 
wat
JS dont support modulo on negative numbers
 
Anonymous
>>> range(0,3)[::-1]
range(2, -1, -1)
 
in python, -1 % 14 = 13, but in JS it's -1 ;_;
 
Anonymous
This is black magic
 
Anonymous
9:21 AM
I didn't know Python 3 did that!
 
@TùxCräftîñg I don't call it "don't support"
@Mego Python 3 is clever indeed
 
Whoa what is going on
 
Golfing suggestions welcome
 
Anonymous
9:27 AM
@Sherlock9 I've just pushed a fix for the issue you were having
 
@LeakyNun Well, I sort of want to see what all the tiny solutions for each language would be
 
@Mego so quick :o
 
Thanks :D Well, using Actually with the bug fix may invalidate my answer
 
Anonymous
@LeakyNun Yeah once I realized what was going on, fixing it wasn't too hard
 
@Sherlock9 I don't think the community wants to see
@Mego basically you wrapped range with list?
@Dennis Pull Actually please.
 
Anonymous
9:29 AM
@LeakyNun Nope. I made + use itertools.chain for non-string iterables
 
Anonymous
So :100000000000000000000R;+ won't take a billion years and gigabytes of RAM to compute
 
@Mego Would using Actually with the bug fix invalidate my answer? Since that version of Actually is newer than Leaky's question?
 
Anonymous
@Sherlock9 It would make it non-competing
 
@Sherlock9 Did your answer work in the old version of Actually?
 
9:31 AM
No it probably wouldn't have
 
@Sherlock9 but this works
 
I was working with a list that grew as we called the function
Remove # and the problem arises again
I had to list() the range manually
 
So it works
 
What do you mean
 
That the solution you just posted works in the old Actually
 
9:34 AM
Mego's fix is to list() the range automatically right?
Yeah
I meant that the golf would be to remove #
 
But your solution is way too long
 
0
A: Sandbox for Proposed Challenges

DerpfacePythonThe Hanoi KoTH The KoTH is like this: Two stacks of height-4 towers are on either side of a total of 6 pegs, and are coloured red and blue. (Like this: [["R4", "R3", "R2", "R1"], [], [], [], [], ["B4", "B3", "B2", "B1"]] - each array is a peg.) The objective is to move your entire tower to th...

 
@Mego Don't you have an operator to check if an element is inside an array
 
Anonymous
@LeakyNun íu will return a positive integer if it's in the iterable and 0 otherwise
 
@Mego I take it as a no
 
Anonymous
9:41 AM
No, it's a yes. It's just that í returns a 0-based index and -1 if not found, so the u is needed to convert it to 1-based and 0 if not found, for proper truthiness.
 
So I used í and g since, when both conditions were fulfilled, they would return -1 and 1, respectively. This is the only time when their sum would be falsey 0, so I used that to quit the loop. If you have other suggestions, I'd love to hear them.
 
@Mego How to use 0xC7 (╜) ?
 
Anonymous
@LeakyNun 5673╜ -> [5,6,7]
 
Anonymous
@LeakyNun That's not C7
 
9:52 AM
@Mego holy
 
Anonymous
That's 0xBD (push reg0)
 
Anonymous
 
thanks
 
Anonymous
I should've double-checked the symbol when answering :P
 
@Mego is there a way to retrieve just [5,4] while the stack has other things?
 
Anonymous
9:54 AM
@LeakyNun What do you mean?
 
@Mego stack before is [5,4,3,2,1] and other stuff, after is [5,4] and other stuff
 
Anonymous
@LeakyNun 2@H
 
@Mego thanks
 
Anonymous
H is for Head (a[:b]), t is for tail (a[b:]), F is for First (a[0]), and N is for Last (a[-1])
 
thanks
 
Anonymous
9:58 AM
I have no idea why I assigned a[-1] to N and not L
 
@Mego n is the most common letter in minus one
 
Anonymous
I should take bets on what update number I get to before I release Seriously 2.1.0
 
Anonymous
Right now it's 39
 
50
btw should I post the CMC to main?
1 hour ago, by Leaky Nun
CMC: 23 -> [16,4,2,1] (may contain duplicate; may be in any order)
 
Anonymous
Sure
 
Anonymous
10:12 AM
@LeakyNun That's probably accurate
 
Anonymous
I have a lot of work to do on libraries before I'm ready to release it
 
Anonymous
Like actually creating useful libraries
 
Can you help me check for dups?
 
Anonymous
I'm about to go to sleep, so no
 
Alright
@Mego I must be the stupidest person alive
 
10:14 AM
Thanks for the help today, Mego. Sleep well
 
13
Q: Decompose a number!

Leaky NunYour task is to decompose a number using the format below. This is similar to base conversion, except that instead of listing the digits in the base, you list the values, such that the list adds up to the input. If the given base is n, then each number in the list must be in the form of k*(n**m...

@Mego You post or I post?
 
11:03 AM
@Dennis What does /will the "copy snippet" button in TIO do?
 
@LuisMendo try it and you'll know
 
@LeakyNun I tried and nothing seemed to happen
 
@LuisMendo try pasting it
 
@LeakyNun Nothing. My clipboard doesn't get overwritten by that button. Maybe it's something with my browser / computer
 
@LuisMendo What browser?
 
11:05 AM
@LuisMendo alright...
 
Chrome on Win 7 64 bits
 
@LuisMendo Also, refresh? It didn't work for me the first time
 
@ASCII-only Good idea. Let's see
@ASCII-only That was it! Thanks!
 
FileZilla now ships it's installer with adware.
 
@Dennis nvm. Surprise, it was a cache thing :-)
 
11:07 AM
@LuisMendo BTW, I PR'd Dennis' repo with a snippet fix, the code indentation is broken and the link is above the code at the moment
 
@ASCII-only Yes, I also thought the order should be reversed. Good idea
 
Question: In the SE API, will the backoff object appear before or after the items object?
 
11:33 AM
JSON is order-indepenent...
 
@TùxCräftîñg Trying to do this without a full JSON parser here
 
don't need the overhead
Literally, the only things that can ever change are two numbers and the inclusion of backoff
 
3
A: Number Plate Golf: Recognition

DavidCMathematica 1170 1270 1096 1059 650 bytes The basic idea is to check whether a systematic sampling of pixels from the input image matches pixels from the same location on the bonafide images. Much of the code consists of the bit signatures for each character, The diagram shows the pixels that ...

@Mathematica ಠ_______________________ಠ
...
 
 
11:45 AM
the french pardon is the same thing
 
Pardon?
 
ಠ¯ಠ
 
@TùxCräftîñg Is this a bluewhale of disapproval?
 
Because it has it's mouth above it's eyes.
 
11:53 AM
@flawr I think you could express most of those concepts with please
 
@TùxCräftîñg ^
 
ah
0
A: The Letter A without A

TùxCräftîñgCaker, 24 bytes ωΩθΩθθθθθΩθΘ Body must be at least 30 characters; you entered 29.

 
have some updoots
 
0
A: The Letter A without A

Destructible WatermelonVim, 15 keystrokes :help<cr> #open help 34lvy #move 34 chars to the right (to the letter "a"), yank the character :q<cr> #exit help p #put yanked character

@TùxCräftîñg you should make a custom code page
 
12:09 PM
it's not designed to be golfy
it's designed to be painful to use and hard to program in
 
but still
it's nice to be competitive if it is competitive
I used visual mode
 
ah
nvm then
 
added better description
I just thought it would be more concise to have v than <space>
 
also add the code without the explanation
 
oh shit I just realised i can't use 4 ;_;
 
12:12 PM
:help<cr>34lvy:q<cr>p
 
:h is shorter
 
I needed to add another char to fix it
oh :h works?
ty
 
I might be able to compact more
 
12:16 PM
try using a other help page
 
I could have done 7wl, but that isn't allowed
I don't know all help pages
 
my Caker thing outgolfed Mathematica \o/
 
@TùxCräftîñg that would cost two more chars, and probably not save that many
 
bbaaut (be back at a undefined time)
 
dunno though
using :h r allows 3j, but that doesn't save any
 
12:21 PM
Computer Graphics gets a question about golfed code...
 
being outgolfed by jsf***... ._.
someone left an encouraging comment \(˚u˚)/
 
12:39 PM
Tux has too many esolangs...
It's crazy
 
@DerpfacePython You mean Conor?
 
No, I mean Tux
But does Conor have a lot of programming languages?
Does anyone play any idle games here?
 
I did until I lost my data for them
 
What about you, @ASCII-only?
 
@DerpfacePython None
 
12:42 PM
:(
 
@DerpfacePython Yeah, probably has one of the most? He has ~14 IIRC
 
Maybe a programming language based on idle games?
Or maybe an idle game based on programming...
Yeah that should be a thing
Golf Clicker! The new hit game!
If that's a real thing, do you think anyone from the PPCG community would help?
 
12:55 PM
bbaacckk
@DerpfacePython ( ͡° ͜ʖ ͡°)
@ColdGolf lolwut
 
What?
 
your name
 
Haha.
Yeah, anyways, one cool challenge of mine is at -6 votes just because, well, no reason.
It was at -3, until I explained it properly, and then now, it's -6
-6
Q: Code, modified code, and code

ColdGolfThis challenge is inspired by an earlier challenge, also by me. Your task: Input: A single unicode character, eg: a or A or ! Processing: For the input character: ** Get the unicode representation (eg: U+xxxxx) ** Get the html entity (hex) ** Get the html entity (decimal) ** Find all...

The challenge is fun but people hated it so much that it's on hold now.
Heck, unclear what I'm asking? The hell is unclear?
 
what are you asking ಠ_ಠ
 
-_-
Somebody please tell me the heck is unclear with the post. It's clear as the sun, if not more.
 
1:11 PM
** Get the unicode representation (eg: U+xxxxx)

** Get the html entity (hex)

** Get the html entity (decimal)

** Find all the numbers in the above three representations.

** Put them in a list, without any commas, spaces, etc.

** Add +&# to the list.
^ everything is unclear here
 
How so?
Or you didn't bother to read it?
Get the unicode representation isn't magic or science.
 
what do you mean by Get the unicode representation (eg: U+xxxxx)? the entire string (U+DEAD) or only the codepoint (DEAD)?
 
The entire string, as the example shows.
 
a ---> 06197&# i dont see any +
 
Oh my god
In the post it says ** Get the unicode representation (eg: U+xxxxx)
Did you see it now or do I need to zoom it?
 
1:13 PM
> ** Add +&# to the list.
06197&# dont contain any +
 
Nobody said they did.
You just gotta make a list, then add those three characters to it.
Not hard, is it?
 
ಠ¯ಠ
 
-_-
 
your challenge is more unclear than EOF in brainfuck
 
Your comprehension is NaN
 
1:15 PM
the clarity of this challenge is NaN
 
Okay, anyways, any tips, since I guess I'm rewriting the entire question?
 
post it in the sandbox first
so the community can help you improve it
 
Sure, but, I mean, any tips?
 
clarify the challenge... ?
 
-_-
That's what I'm asking for help to do!!
@TùxCräftîñg You think if I post it in the sandbox then I should delete the original post?
Like, instead of editing it.
And start fresh.
 
1:27 PM
delete the original post
 
Yeah, doing that now.
 
@ColdGolf It might be clear as the sun to you, but it's clear as mud to the rest of us. :P
 
Yeah, I'm posting a newer one now.
 
@ColdGolf In the Sandbox, right?
 
@ColdGolf BTW, it's always good to have a few test inputs/outputs and an example of the process
 
1:37 PM
I am doing that now.
 
@ColdGolf, out of curiosity, is English your first/primary language?
 
Out of curiosity too, are you that stupid sometimes?
/S
 
Let's keep the insults to yourself
 
@Adnan I'd agree with you, but then we'd both be wrong.
 
1:41 PM
@ColdGolf I'm not sure what stupidity has to do with my question. Probably half or more of the regular users in this room have English as a second or third language.
 
Well, I guess don't put people in halves next time.
haha
 
1:54 PM
@El'endiaStarman @TùxCräftîñg meta.codegolf.stackexchange.com/questions/2140/…
 
@ColdGolf > Now, after getting that list, add &# to it, but only if those two characters were not already in the list, to avoid repetition. If they are already in the list, then keep them there.
you explicitely said there cant be this in the list before
> Now, take the numbers/characters in those two representations.
 
@TùxCräftîñg Don't get it. What?
 

« first day (2030 days earlier)      last day (2816 days later) »