« first day (1420 days earlier)      last day (3429 days later) » 

7:00 PM
L actually defines a function (it just has some stuff built into it)
 
Oh?
... no wonder
 
so to map that
you would do
mrdhQ<list>
If you set the debug flag, or the check box in the online one, you should see that map implicitly lambdas its first argument
 
I was lied to :( Five Guys is under construction. No juicy burgers for me yet
 
(also h and t are +1 or -1 respectively ;) )
 
... I should really read the docs more
 
7:03 PM
;P
 
k I think that's good
@FryAmTheEggman :D all a learning experience for me over here
 
Hey, getting another person to help me golf pyth answers is a plus for me :)
 
Oh hang on
I have the same empty list problem
Lemme fix that real quick
 
Really, I thought I tried that lol
It works with 1 for me?
I expect we don't need 0 to work?
 
... I meant 0 oops
 
7:10 PM
what will 0 look like ?
empty list ?
the question says, integers from 1 to n
 
Well it isn't in the spec so I assumed undefined behaviour was ok
I think mine prints 0
 
Wait then what's wrong with your one then?
 
When I put 1 in, the map is empty
so when I sum it, it crashes
 
Ah, right
 
updated that n > 0
 
7:13 PM
:P thanks - I'm just not good at reading questions
 
but it was implied in the line from 1 to n
 
Oh man, I almost mortarboarded :D
... Also I think I might have been semi-serially upvoted. >_>
Someone upvoted this old post codegolf.stackexchange.com/a/38442/31625
 
i did
 
Oh :P, its pretty bad, I should golf it more to deserve the vote!
XD
 
2nd in HNQ . Keep it coming baby!
 
7:23 PM
@FryAmTheEggman I tried golfing yours and ended up with sm_rQ-QdUQ and an off-by-one error :(
 
:P Yeah I don't think mine will ever be as short as yours
Case of better algorithm syndrome ;)
 
Well it can be shorter though!
 
Cobal Syndrome
 
=QhQsm_rQ-QdUQ [/terrible fix]
 
~Q1
~ is +=
 
7:25 PM
...
 
@FryAmTheEggman see the sidebar :D
 
Anyway, I fixed it: sm_rhQ-QdUQ 11's not bad :P
 
Oh, nice :)
@Optimizer yeah I starred both of those :D
 
:D
 
@FryAmTheEggman smr-QdhQUQ is 10
 
7:29 PM
smr-QdhQUQ
oh
Whoops XD
 
That's the third time tonight! What a ninja
2
 
:D
 
Irony indeed. We should just merge into one collab answer
:P
 
post another collabed answer :D
already SP3000 has 3
 
i was trying to reinstall windows on my computer but i played around with partitions and shit, so now it won't even boot
oops
 
7:34 PM
I thought Haskell would be a good thing to try for once but I got beaten in that
 
you guys. Leaving CJam for Martin ? :P
 
Can you even list multiply in CJam? I have no idea
 
1]5* = [1 1 1 1 1]
 
Oh nice, I see
Wait... for CJam we actually have to print the brackets and commas and everything?
Hm...
throws arms in air will leave for Martin and sleep
 
no
p
you better visit the tips question :P
 
7:45 PM
Hrm, I can't seem to use code blocks properly :/
 
I have another array manipulation question ready, with a super cool name. a little easier.
damn! a to be closed question and no votes left
 
Oh, so we're okay without commas in the print?
 
that's how arrays are represented in the language
but, since you can always create a function
no need to actually output it in the function
the function just leaves 1 array on stack
 
Can CJam do named functions?
 
What do you call someone who answers every single question even when it is 100% going to be closed?
 
7:50 PM
yeah
 
@Rainbolt A gunslinger? (for fgitw)
 
They get rewarded for it too, and it bugs me but I don't know why it bugs me.
Perhaps I am afraid that if someone writes a beautiful answer, it will be used as a reason to keep a terrible question open.
God forbid we keep good material around. cough Tips cough
 
even a very good answer should not hinder closing of a question for valid reasons.
 
hah
there should be a new reason to close: "Post doesn't deserve the answers below"
 
@Optimizer Sometimes... I think there's a blog post that touches on this.
 
7:55 PM
we have such cases here on PPCG ?
 
we could fabricate one
for the sake of discussion
 
lol
 
I don't know of any outstanding answers to really bad questions here, but I'm sure I've seen some great ones on mediocre-at-best questions.
 
optimizer, write something fantastic. I'll get to work on a horrible question
 
i will write a bad question, you people quickly answer 5 amazing answers
win-win
 
7:56 PM
@Optimizer how do I reverse in CJam?
 
The thing is, often after a great answer gets posted, someone will come along and edit the question into a better shape (for the sake of it not getting closed). So, it's hard to find some of them.
 
@FryAmTheEggman W%
 
Thanks :)
 
My favorite comment of the day (of mine):
"Do any task" is not a specification. — Geobits 7 mins ago
 
pretty neat ^
2 questions from PPCG
 
7:59 PM
You made it :D
 
I read the cooking site
it has my favorite question of all time
 
:D
pretty sure that lifehacks is going to replace it soon
 
102
Q: Is it possible to cook a whole fish in a dishwasher?

AttilaNYCI heard that there is a way to cook a whole fish in a dishwasher - any techniques, tips??

 
:D :D :D ROFL
 
"What have you tried?" :D
 
8:01 PM
but as an answer, somebody did it
and it worked great
 
and 100 upvotes too
although no idea why there is a 500 bounty to another answer
@Geobits where are you quoting that from ?
 
@Optimizer it's common on the math sites
people come in asking homework questions ALL THE F*CKING TIME
 
oh, a general comment question
 
just bare homework questions, with no other commentary
but for some reason, math.se has so many people who are just desperate for points that they still get answered immediately
it's very frustrating
 
Popular on SO, too, for the same reason. Obvious copy/paste homework, etc.
 
8:05 PM
well, on SO, at least there's a possibility that it's some hapless coder (unlikely)
 
I like PPCG that it does not have these situations (baring the rare ones)
 
but for math, you know absolutely for certain that it's homework, since homework questions and real-world questions look different
of course, it's better than the old way
in the earlier days of the internet, people would refuse to help someone or even link to an answer sometimes, if they knew that an answer existed that the asker could potentially find for himself
lots of snarky "RTFM" types of things
 
@Eric By obvious, I meant obvious. On SO, this can look like "You are given n balls and x cups.... write an algorithm to describe... make sure you use coding practices as established in..." :D
 
yeah, okay
but what if that guy works in a cup and ball factory :(
 
Ouch, 21 :/ q~:X,W%{1+,{-1*X+}%}% ...
99% sure that can be golfed a lot
 
8:10 PM
Poor guy.
 
SO is a little better about not answering those people, from what I've seen
 
@FryAmTheEggman :D
 
but I don't regularly read SO
 
you know what, I should allow arrays to be printed as they are natively represented in a language
 
Oh yeah, that's with absolutley no formatting :D
 
8:14 PM
0 formatting ?
 
I did not understand what you meant
 
Oh, like it prints 543215432...
No spaces etc
Think I can fix with ] or something
 
no
 
Nope, a?
 
8:16 PM
they should mimic how a stringified array is represented in your language
 
Yeah, that's what I was saying, I didn't even do that ;p
 
on second thought, let it be how it is :D
 
hello.. anybody available?
 
@TAbraham Sure, why?
@Optimizer I take it you weren't here when [code-trolling] was a thing? ;)
 
@TAbraham as for "any task" - Can I train my program to print 1 for all kinds of input. ?
@Doorknob冰 nope
 
8:23 PM
i need help... my question was closed and I want to why...
\BTW, I was editing it, then yopu closed it @Optimizer
what I don't get is whjy nobody has patience these days!!!]
 
"I closed it"
 
@TAbraham I voted to close it because it wasn't clear exactly what you wanted. You can still edit it while closed to make it more specific.
 
@TAbraham you can finish editing now and I will reopen it
 
"Any task" is too broad and unclear a specification, if you change that we will reopen it
 
yeah.. but one thing that I noticed is once it is closed, always it is closed...
 
8:24 PM
Challenges here need to be very specific, or else answers run wild with loopholes and it ruins the fun.
No, it can be reopened by 5 users, just like being closed.
 
i will edit it for a more specific task.. is that ok?
 
yes
 
You might also consider looking around at some other questions to see what a good question here looks like. That can help avoid the usual pitfalls.
 
I just edited it.. it now has a specific task.. how specifric is this? do you want more specificty?\
 
Ok, if we need to ID pictures, you need to supply samples ;)
 
8:27 PM
How is it trained? How accurate does it need to be?
 
given an input picture, how will we recognize face of a cat in two picture ?
 
@FryAmTheEggman ok, will do...
@Optimizer I didn't get you...
 
you say that input is 1 picture, but we have to identify cat face in 2 pictures
where did this second one come from ?
 
@Optimizer basically, you have one picture to help the nueral netowrk to identify the cat faces in the other two pictures...
 
oh!
so training set is 1 picture ?
 
8:33 PM
it is the apotheosis of all cats
 
I think that could be stated more clearly. I had the same question.
 
1 training set is not really a neural network
or are you saying that you will run the code for 1 neuron , say, 1000 times with different input picture for each neuron ?
 
@Optimizer you don't understand; you have a network of neurons, and the input to it would be cat pictures. Typically, you train a network on a rather large set, though
 
@Optimizer so are you saying that I should have multiple pictures to train the neural network? I know that, I just want to make it simple...
 
You might have, say, 10k neurons, and then you teach them to identify pictures of cats based on an input set
 
8:36 PM
@TAbraham The more the better.
 
I understand that
but he only provided 1 input set
so I was clarifying
 
This is not really the kind of question that succeeds around here, though. For one, building a neural network is a lot of work, and training it to recognize photos is extremely hard
training it to recognize English letters for OCR is already hard
 
Cat pictures are easy though, just look for the lack of a soul.
 
training it to distinguish between Xs and Os is pretty hard :|
 
@Geobits like training for looking for a lack of soul is easier
 
8:38 PM
My camera picks up souls just fine. They glow a bit.
 
you should get a show on the Discovery channel
 
Nah, too hard to compete with the Bigfoot guys.
 
Call it the zone of twilight
 
You could try to show that Bigfoot has a soul
 
breaking news, all the teenaged girls around the world have suddenly started watching discovery a lot
 
8:39 PM
If they ever caught him on camera I'd try ><
 
but really you're just breathing heavily in a lot of forests around dusk
and your camera is horrible and your cameraman has shaky hands
 
Must be nice to have a job where a 100% failure rate is fine.
 
edited it.. how about now?
 
yeah, I know. I'm jealous of those guys
 
can you please reopen it?
 
8:42 PM
@TAbraham When you say "find a cat face", does that mean simply detecting if a cat face is present, or outputting the coordinates of things like eyes/nose/etc?
 
it's funny how the proliferation of cell phones with pretty good cameras has really cut down on the number of bigfoot/UFO/loch ness monster sightings
I mean, you'd think it would be just the opposite. Huh.
 
the cameras are more clear and can tell you that its a sock , not a lockness mosnter
 
I think someone's been reading xkcd...
 
@Geobits I mean that a cat face iss present...
 
@TAbraham Then say that, instead ;)
 
8:45 PM
I honestly don't think I've seen that comic :(
 
Ok, can I ask about rules 1&2? Normally built-in libraries are discouraged for code golf, since it then boils down to "what language has the best built-in function". Also, not counting whitespace is unusual. Any particular reason?
 
@FryAmTheEggman just did...
 
but I've seen the sentiment expressed before, somewhere, anyway
 
@EricTressler I stand corrected. A lovely observation, sir.
 
@TAbraham ok, and I think you should explicitly say what it should do when the second picture has/doesn't have a cat face
 
8:46 PM
@Geobits well, because this project wouldn't be possible without using built-in functions.. Oh, if you want, I can count whitespace if that is what genrally people do..
 
If we're using cartoon drawings, who's to say whether a picture has a cat face or not
 
(i.e. print/output truthy/falsy values)
 
Let me spend some minutes at mspaint and come up with a border case
 
@TAbraham Anything's possible. I was just noting the direct opposition to the normal rule of "no built-ins" here. It seemed unusual enough to ask about. Maybe you should say you may use them instead of may only?
 
@Geobits ok...
I edited it @Geobits
 
8:51 PM
Am I cat or not?
 
depends on the training image
 
@EricTressler well, you do have the cat face in there.. so the neural network program should output "True" ..
 
Why do you think it's a cat
 
@EricTressler it has the cat face
the body doesn't matter...\
 
Looks like a fox face to me.
 
8:54 PM
What about this one?
 
Two Sylveons pole dancing. Clearly.
 
@EricTressler I don't see a cat face in there... is there one?
 
T Abraham, you're supposed to tell me. That's how these work.
 
gota go...
 
@EricTressler two chickens on a female dress headless mannequin
 
8:55 PM
bye.. and i hope you will reopen my question...
thanks for the help...
 
Maybe the Rorschach blot was mean
 
Oh, while I'm posting images
what do you all think of this color scheme (not tweaked yet); I was thinking of using it for my website
 
Well its uh... distinct? The purple is kind of a fish out of water (but my taste is probably wrong, so, uh, great?)
 
hi @EricTressler
 
9:01 PM
@EricTressler they are all dull colors, what kind of site is that ?
 
hey. I looked at your problem; I don't know of anything to do
 
@EricTressler the problem is the two middle colors! Very hard to tell apart for a color blind person.. like me
@EricTressler oh well thanks for looking at it!
 
Optimizer, it's just the palette, you can take different lightness levels for things
 
@EricTressler do you even know what sort of mathematician would have ideas about it?
 
That's my site right now, for reference
 
9:02 PM
@EricTressler oh.. you work in combinatorics!
 
I like the current blue color
 
@Lembik Well, one like me, actually
 
@EricTressler I have a coin weighing puzzle for you :)
@EricTressler oh..
 
But I have other friends I could ask, if you really would like to know the answer
 
@EricTressler that would be great!
 
9:02 PM
I considered trying to do it for i=2
Another thing you should consider is looking at the references in the OEIS for i=1
 
@EricTressler Is there a got of this sort of combinatorics? (Except for you of course :) )
 
lots of those people would probably respond if they're still alive and working, and your email doesn't ask for too much
 
@EricTressler i=1 is easy :) The problem is i > 1
 
Um. There are a whole lot of us, and I am not well-known at all (I'm not even in academia anymore)
 
@EricTressler I would love any names you can think of. I suspect it needs a superstar but not one so great he doesn't reply to people any more :)
you can't really google "best combinatorics reseachers in the world" sadly
 
9:04 PM
@Lembik Before you ask a question like that, you've usually spent a couple of days or weeks on the problem
 
@EricTressler I have spent months!
 
I only spent about an hour thinking about it
 
@EricTressler I am 100% convinced there is no ready answer. But maybe someone really good can make some progress on it
 
Well, you should probably just let me think about it a little more, and then ask around. If you don't have any progress for i=2, it's probably going to come off as rude
 
PENTAGON
 
9:06 PM
You can also use the OEIS to get ideas for other terms to google for
 
@EricTressler thanks! I suspected at one point that someone who knew how to reformulate the problem in terms of polynomials and could do some magic discrete Fourier analysis might be good
there is David Speyer
but maybe I only think that would help because it is outside my expertise so it looks really clever to me :)
 
do you have any reason to think that DFT has anything to do with it, though?
You could post it on math.se
or, if you don't know LaTeX, I can help you write the question
 
@EricTressler well .. math.stackexchange.com/questions/785353/… is frustratingly similar
@EricTressler I know LaTeX but thanks
@EricTressler I think it's too hard for math.se :)
unless David Speyer sees it I suppose
 
well, there you go. You should at least understand what Speyer's answer there says before you worry about asking other people
 
@EricTressler It's really not the same question
@EricTressler but I agree with you anyway
it just looks the same
 
9:09 PM
no, it's not, but maybe you can adapt it
 
that would be great
(I have tried and failed but I will try again)
I better go but thank you for thinking about the problem
 
also consider unrolling your vector and thinking of it as an infinite repeating vector of period n
and applying what he does
@Optimizer back to the palette thing: thanks, I'm glad you like the current scheme. I wanted to add a fractal toy subpage, though, and I wanted it to be kind of organic-looking. That's what the new scheme was supposed to be for
I'll ask about it again after I've built something, so you can see it in context
 
yeah
 
9:38 PM
@EricTressler thanks.. I'll look at that
 
9:49 PM
@Optimizer did you get your hat? ;)
 
which one ?
 
30 minutes
 
no :( 42 minutes
 
damn
I was surprised there was no CJam answer yet until I saw it was your own challenge :D
 
I have another question ready. a little easier, more attracting
any one game for it ?
 
9:51 PM
"a little easier"? :D
how much easier can it get?
 
well, supposedly, this one was not easy enough
but i might be completely wrong, it might be super tougher!
@MartinBüttner it should be comma separated :)
[1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5]
I did not notice that some languages might want to print that in a different manner, until there were already 10 answers.
 
there is no mention of that in your challenge... you say "outputs an array via STDOUT"... as far as I'm concerned, arrays don't contain commas.
 
well, I guess until there are brackets around.
some answers were simply outputting space separated numbers
 
if that's an array literal in their language (which it probably isn't) then that's fine
 
Perl
 

« first day (1420 days earlier)      last day (3429 days later) »