« first day (2018 days earlier)      last day (2826 days later) » 

11:00 PM
It's not candy. It's a candy wrapper.
 
@Dennis Anyway, I noticed some weird behavior on V.tio. I've been looking into it, and some if it is my end (and fixed now) but some if it is working fine locally. For example, the ladder and slide program works fine locally but not on TIO. I'm guessing it might be because I switched encodings, but I'm not positive.
Would you pull so I can see if that fixes it?
(I switched encodings back to latin1)
 
Does that mean I should remove the -u flag as well?
 
No, leave the -u flag.
 
Pulled.
 
@Dennis can you update the cheddar wrapper on TIO with this. This should be the last time you'll need to do this >_>
 
11:12 PM
Sure. If you don't wrap your cheddar, it will dry out.
 
Well, I just submitted a Cops answer, realized that I should check my answer with the current Github interpreter rather than the current development interpreter, learned that the Github interpreter had a glitch that the development interpreter didn't, and now am not sure whether I can submit a Cops/Robbers challenge for a language version created after the challenge existed. If not, I guess I'll just wait for the next one...
 
@Dennis Thanks for pulling, but unfortunately that didn't fix it. :/
 
@StevenH. The interpreter must predate the challenge. As far as PPCG is concerned, languages are defined by their implementation.
@Downgoat Done.
 
Got it. At least it's fixed for next time
 
@Dennis :D \o/ tyvm!
 
11:13 PM
I don't know exactly what the problem is, but it seems like the ò command (start/end a recursive loop) is being entered but not being exited on the second one.
For reference, this is the output that this should be giving.
 
3
Q: Keep nonzeros and their neighbours

Luis MendoTaken from this question at Stack Overflow. The challenge Given an array of integer values, remove all zeros that are not flanked by some nonzero value. Equivalently, an entry should be kept either if it's nonzero or a if it's a zero that is immediately close to a nonzero value. The entries t...

 
@Dennis there was a bug in that version of wrapper too >_> can you replace it with this version? (i'll try to integrate wrapper with cheddar npm module ASAP so i dont have to pester you with this >_>)
 
A wrapper that downloads a new wrapper and overwrites itself every time it runs?
 
"pester" Funny how English has a word for everything :-) In Spanish we would have to use an expression, or a verb that has a more general meaning
 
@LuisMendo What phrase would you use?
 
11:20 PM
@LuisMendo It's stolen from French
We steal words from pretty much everything
 
@quartata it's not really stolen, more of "evolved" from lots of languages.
 
No it's definitely stolen. Comes from French empestrer
 
though yeah, english is criminal language, we should all use cheddar :D
*it is also hard to type english with hooves
 
@quartata Yes you do :-P
 
And we didn't even bother to modify jargon when we stole it from German
We're completely shameless
 
11:23 PM
@DJMcMayhem Either "dar la lata" (exact meaning, but longer) or "molestar" (meaning annoy, bother, so not that precise meaning)
 
@Downgoat Wrapped your cheese.
 
:D thank you
 
@DJMcMayhem Hm, could we have different versions of nvim?
 
< Unprintable object of class "String" with literal value Missing argument for replacement >
> Missing argument for replacement
XD
 
Is that what happens when you put a swear word in a String?
 
11:27 PM
@Dennis I suppose it's possible, although I doubt that's what's causing it since it was working previously, and this isn't a particularly advanced feature of nvim.
The thing that is strange to me is that it enters the recursive loop just fine with the first ò and it exits it just fine when the program ends, but it doesn't end with the second ò
What does nvim --version output?
 
It's not nvim. It's the sandbox. Not sure why/how.
 
How do you know that?
 
I unsandboxed it for a second.
 
@Dennis :O brb sudo rm -rf / --no-preserve-rooting
 
@Downgoat D: there are still spaces right inside the angle brackets
 
11:33 PM
@Downgoat Good luck. The worst you can do when it isn't sandboxed is fill up the /tmp folder.
 
@Downgoat Unsandboxed =/= ran with root privileges.
 
!=*
how can u not gold "not equal to" ?
 
oh nice TIO has an ad
 
@LuisMendo NINJA
 
@Optimizer ≠
 
11:37 PM
 
Hmmm
 
@ASCII-only 2 bytes still
 
1
A: Keep nonzeros and their neighbours

xnorPython, 55 bytes lambda l:[t[1]for t in zip([0]+l,l,l[1:]+[0])if any(t)] Generates all length-3 chunks of the list, first putting zeroes on the start and end, and takes the middles elements of those that are not all zero. An iterative approach turned out longer (58 bytes) a=0;b,*l=input() ...

0
A: Keep nonzeros and their neighbours

RootTwoPython 3, 55 bytes lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]

 
@Optimizer looks better though
 
Coincidence?
 
11:38 PM
hmmmm
 
:-D
 
@Dennis Thanks, that looks great! What did you end up doing?
 
Gave it fake root privileges. Not sure why it needs them.
 
o_O that's really weird.
 
I'm not sure what is really does. The documentation isn't great.
 
11:41 PM
I should figure out how to setup the sandbox locally so I can mess with it and stop bugging you about it.
 
reads random comments
 
@Dennis for the sandbox or for V?
 
I don't think fogmeister knows he's in PPCG
 
Sandbox.
 
@Dennis something is wrong with ur paypal email.
 
11:42 PM
How so?
 
Wrong answer, V's documentation is also not great.
 
@Optimizer I think something's wrong with PayPal, in general
 
oh really ? how did u confirm?
 
"Let's vote and comment SO answers based on their golfyness."
4
 
@LuisMendo They like being weird. Since a couple of days ago, I can only login when tethering my phone. From my DSL connection, all I get is an obscure error message.
 
11:47 PM
@Dennis That's weird indeed! They don't like your ISP's IP range?
 
@LuisMendo No clue.
 
@flawr Tempted to remove sign from my answer here...
 
:P
Somehow I feel good that I had the same approach in mind=)
 
I don't even understand what conv does much less how it magically generates the right answer to a seemingly unrelated problem.
 
11:52 PM
@DJMcMayhem It does a convolution.
 
I know. I have no idea what that is/does.
 
@Optimizer :)
 
kutgw
 
@DJMcMayhem You can also interpret it as polynomial multiplication, where the list entries are the coefficients.
But in case of a 0,1 vector, you copy the kernel to each 1 of the vector, and sum it all up.
 
There's an annoying bug with answer timestamps.
 
11:56 PM
@flawr Tied :-)
 
The one shown in hover text shows an earlier one for xnor's, but the "N minutes ago" text shows RootTwo's being posted longer ago.
 
@LuisMendo how about a test case like [-5 0 5], I noticed that in my answer I could reduce the size 3 subarrays using addition and it would work for your test cases
 
@flawr Come on, it's a convolution. I immediately thought of you when I answered that at SO :-P
 
  [1,0,2,0,3,4] (conv) [1,1] is
1*[1,1]
    2*[1,1]
      0*[1,1]
        3*[1,1]
          4*[1,1]
  =[1,1,2,2,3,7,4]
 
@miles Added
 
11:58 PM
@DJMcMayhem ^ an attempt to explain (damn editing time limit didnt let me fix the first 0-entry, but i hope you get what I mean)
 
@Dennis I've added [-5 0 5] as per miles' request. You may want to update your "verify all test cases" link here
 
Already done. :)
 

« first day (2018 days earlier)      last day (2826 days later) »