« first day (1917 days earlier)      last day (2928 days later) » 

6:05 PM
0
Q: Reverse number - shortest

HundasseWho write shortest code win. for example: input: 1 2 3 4 5 6 54321 output: 54321 6 5 4 3 2 1

 
@KennyLau do all fractal nubers have a repeat end ?
 
@Agawa001 Fractal number?
 
i mean what if an outcome happens to be like pi ?
 
@Agawa001 Are you referring to my challenge?
 
rational*
yes
 
6:07 PM
yes, all rational numbers have a repeat end
 
so what if the repend is sooo laaarge do we print it all ?
i mean if it is greater than 100000007 / 2
 
Mod means that
if the repetend is 100,000,008
then print 1 instead
mod means remainder
like 26/3 leaves a remainder of 2
so 26 mod 3 is 2
 
6:24 PM
0
Q: Logical Algorithm to solve a specific task, The Ball Puzzle

Matta You have an even number of identical balls. Half of them are "Light" balls and other half are "Heavy" balls which are heavier than the light balls for a unknown amount. You have to separate them into the "Light" box and a "Heavy" box using a scale instrument which tells you precisely for how m...

 
@KennyLau no no, i mean to "sweep" sorry, either we have to sweep two or more cycles of so large repend
or just stop when we cross 100000007 digits
 
no
not the length mod 100,000,007
but the repetend itself
if the fraction is 0.123456789123456789123456789123456789123456789
then return 123456789 mod 100,000,007
 
@MartinBüttner ?
@EᴀsᴛᴇʀʟʏIʀᴋ I cant use python @ school
New pet peeve: (N more to go) at the end of comments. If your comment is that short, it probably isn't worth saying.
 
6:45 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ you wrote the opposite in your challenge
 
The opposite of...?
 
of what I said
you wrote "map the array over the following function"
 
and that's not the same as walking through it...?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Usually people say "map a function over an array", you wrote "map an array over a function".
 
It's just a question of semantics.
 
6:49 PM
Oh, I see.
Uh... gimme a minute >_<
I thought that's how you said it in math: "map the (domain/set/et al) over the function"--or am I misrembering?
@MartinBüttner BTW thanks for the catch
 
I think in maths you say "the function maps the domain [to ...]", but maybe that exists as well, don't know.
 
Anonymous
So I've had an eventful day
 
Anonymous
I discovered that my client might be a fraud artist
 
@MartinBüttner Oh, that sounds correct.
@Mego o_O for what?
@Zgarb I found another problem with tryj.tk: the random function is terrible
 
Anonymous
Well, when they were explaining some details about their data so I could track down a bug in a form, they mentioned something that threw up some red flags
 
6:54 PM
@Mego As in, a painter that sells forgeries?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Oh? I hadn't noticed that. do you have an example?
 
Anonymous
A few Google searches later, I now have a few pages of SEC documents detailing previous fraud cases against them and a business partner
 
O.o
 
@CᴏɴᴏʀO'Bʀɪᴇɴ what number range do we need to support? can we restrict the array to positive numbers only? non-negative? any integers? same for the value that's being added.
 
Anonymous
They sold people bogus currency backed by a bogus unrecognized sovereign state and claimed they could double people's money (so basically a Ponzi scheme)
 
6:56 PM
@MartinBüttner Oh, hm. What seems the most logical? I guess there's no point in making the domain crazy huge.
 
We have three word chat, we should have thirty byte chat!
 
currently working on Labyrinth, and positive would definitely make my life easier. it's up to you, but I think most "normal" languages wouldn't be affected by not having to handle zeros, and it might make it easier on esolangs.
 
@Zgarb It may be my imagination, as doing some tests doesn't give me exactly the best results. It may just be my imagination
@MartinBüttner I love esolangs answer. I'll restrict the domain to positive integers for both. Would that be reasonable?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ is it like this: random.org/analysis/dilbert.jpg
@CᴏɴᴏʀO'Bʀɪᴇɴ sure
 
Anonymous
@QPaysTaxes I've already gotten paid for the work I've done. I'm probably going to terminate the business relationship, though.
 
6:58 PM
@QPaysTaxes XD is this about EMBLEM?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ make sure to change the test cases as well then
 
@MartinBüttner aren't the test cases only positive integers right now?
 
Quick poll - on your smartphone/tablet do you generally need to change (a) the ringtone/notification volume more, or (b) the media volume more?
 
@QPaysTaxes idk :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ they've got zeros
 
6:59 PM
@HelkaHomba Both.
:P
 
@MartinBüttner .. isn't that a positive integer
 
@HelkaHomba my ringtone and notification volume are always off
so b) I guess
 
@HelkaHomba Both.
 
@HelkaHomba b
oh wait, zero is not strictly positive
 
@CᴏɴᴏʀO'Bʀɪᴇɴ 0 is neither positive nor negative. if you want to require zero, call it "non-negative" to avoid confusion.
 
7:00 PM
Okay, yeah, we need 0 :P
thanks
 
I think maybe I change the media volume slightly more often, but I set 'em both to 0 at work, and both to max elsewhere (my phone is really quiet).
 
There's also these things called time-based rules.
 
Anonymous
@HelkaHomba Media volume. My phone is always silenced unlesss I'm asleep.
 
What I do change is vibration on and off, but that happens automatically.
 
#1 CG noob mistake: adding input validators :(
 
7:02 PM
Mego speaks Parseltongue
 
Anonymous
@MartinBüttner Penguintongue*
 
@MartinBüttner No joke, I did ?100#2 (100 random elements either 0 or 1) and I got 96 zeroes and 4 ones.
 
@HelkaHomba b. I regularly listen to a podcast that has a non-constant volume, so I have to keep fiddling with the volume buttons.
 
k, I guess I'll leave random array map in Labyrinth for the weekend then...
 
the weekend is ten minutes away for me :P
 
7:05 PM
Ok. To all those who said (b) and have an Android device, does it annoy you that you can only change media volume if something is already playing? If so complain here: code.google.com/p/android/issues/detail?id=65491
 
wait that's not right
(as in, "wrong")
 
I just got an email regarding changes to my university's email service...
 
good news, bad news, or irony?
 
does this make any sense? They are going to start blocking all files with a .zip extension.
 
You can put viruses (viri :D) in a .zip :P
 
7:08 PM
@PhiNotPi Sounds like it will be a pain to email projects/assignments with multiple files around
 
They suggest getting around the restriction by naming files .zip.txt and then have the recipient change the name back to .zip
 
@QPaysTaxes je ne parle jaimais les langues mortes
@QPaysTaxes :( I always mess that up BUT NO haha
 
@QPaysTaxes Most normal (i.e. Windows) users have no clue what that is
 
sorry
@QPaysTaxes I'm okay with spam :P I'll try tho
 
@HelkaHomba It actually doesn't annoy me, I never even noticed this. I only touch the media volume when something is actually playing.
 
Anonymous
7:09 PM
notavirus.rar
 
-1
Q: Can someone explain this code

Adnan Uddinclassname = input("Which class are you in? x, y, or z ") if not classname in ['x', 'y', 'z']:#list of classnames and boolean print ("That class does not exist - exiting") exit filename = classname +".txt" # This code names the text according to what the user inputs as the class file =...

 
too late ;_;
 
mod abuse 11 plz :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ waffles
 
You mean waff11es, of course.
 
7:10 PM
I see that mods agreed on a keyword.
 
@Zgarb But if you start something playing and it's silent you'll miss the first few seconds while you increase the volume.
 
Such compression, much wow.
 
@HelkaHomba I don't know how to work with that, there's no upvote button.
 
@MartinBüttner You can star and comment
 
@VTCAKAVSMoACE If you're curious as to how this relates to compression, look at the "Used:" portion of the info...
 
7:12 PM
ah, stars are good
4
 
@QPaysTaxes guis
 
gooey
 
@HelkaHomba Ok, that's true.
 
@QPaysTaxes So how do you feel about people starring after you said it would make you sad?
 
@QPaysTaxes wow
 
Anonymous
7:13 PM
@VTCAKAVSMoACE How did you manage to use negative space?
 
@Mego The world will never know.
 
Anonymous
@QPaysTaxes GUI library that comes standard with Python, based off of Tcl/Tk
 
@VTCAKAVSMoACE Oooooh. You're very lucky.
 
Any comment about stars will get starred around here.
3
 
Anonymous
@QPaysTaxes Excuse me for writing a more detailed answer and missing the FGITW opportunity :P
 
Anonymous
7:15 PM
Wait, your uni was teaching CS in Ruby?
 
No, it's because people actually use Python.
 
Anonymous
Mine did Java :(
 
Anonymous
ooh sick burn
 
ROASTE
D
 
Anonymous
Oh
 
Anonymous
7:15 PM
So they missed the last 10 years and didn't jump on the Java hype train
 
@Mego good for them?
 
@QPaysTaxes Have you never heard of Flask/Django/Bottle/Pyramid/numpy/scipy?
 
Anonymous
I dunno, C++ is very beginner-unfriendly
 
@MorganThrapp what's pyramid?
 
Anonymous
7:16 PM
Java is just bad in general, but at least it doesn't try to screw over newbies until you get to string comparison
 
@Maltysen It's another web framework.
 
@MorganThrapp oh
 
@QPaysTaxes Yup.
 
0
A: Sandbox for Proposed Challenges

Matta You have an even number of identical balls. Half of them are "Light" balls and other half are "Heavy" balls which are heavier than the light balls for a unknown amount. You have to separate them into the "Light" box and a "Heavy" box using a scale instrument which tells you precisely for how m...

 
@Mego Just Java? I must have had courses involving a dozen languages.
 
7:17 PM
I did say what I mean.
Is joke. Much funny.
Such laughing.
And also no one uses Ruby.
 
Hey
 
Anonymous
@HelkaHomba I meant for the intro programming bit. My courses also used C (computer architecture), C++ (object-oriented programming methods), COBOL (data-oriented programming), VB.NET (event-driven programming), Prolog (logic programming), and Ada (real-time embedded systems).
 
Our first introduction to programming was done in Python.
 
0
Q: My partition is using negative space. Should I worry?

VoteToClose As you can see, according to Disk Utility, I'm using negative space in /dev/disk0s7. This is obviously incorrect, however, I am slightly worried as to what this may mean for the partition's effects on the other parts of the disk. For the sake of completeness, here is the output of diskutil list...

 
But that same course (over two terms) later went on to teach us some basics in C, C++, Java, Scheme and Prolog as well.
 
7:23 PM
Mine was Java, and the current intro class I'm taking is Python.
 
My CS class is in Java, but that's because the AP is required to use Java.
 
^^^
 
Nobody but me remembered how to Java, though, so we spent the first semester learning the language. I spent most of the class golfing.
 
@VTCAKAVSMoACE tuesday…
 
@VTCAKAVSMoACE Nice
 
7:25 PM
@Maltysen 3spoopy5me
 
@VTCAKAVSMoACE That's what I do in my current coding class.
 
@Maltysen I got 38/40 on the MC mock and all but 1 point on the FRQ mock. :D
 
nice
 
The rest of my class was like ಠ_ಠ
I swear, the only reason I know such specifics about Java is because of PPCG.
 
speaking of the APs, I should be studying for BC. where's Alex when you need to bother him with questions?
 
7:27 PM
kek
silently hopes for a 5 on BC
(this is Calc, yeah?)
 
yeah
@QPaysTaxes -_- thanks for the confidence boost
 
Apparently no one noticed Today's Infographic, so here it is again:
 
@QPaysTaxes lel. I'm in AB right now, but I'm taking BC, so I'm prolly gonna fail
 
@Maltysen Uhhh this is a bad plan.
 
;_;
 
7:29 PM
Dennis is amazing at Calculus.
 
@QPaysTaxes I thought I knew most of the stuff from when I was really into calc in like 7th grade, but then it turned out that I had skipped most of sequences and series cuz it was boring, and now I'm all Q_Q I have a week left
 
Anonymous
@QPaysTaxes 5.1, PyPy3 is very unfinished
 
@QPaysTaxes it would be if I could unaddict myself from PPCG…
 
Anonymous
@Maltysen Hey, I made a 5 on Calc BC. I can help.
 
I remember on my AP calc test, there was a question that I swear did not need calculus to solve.
 
Anonymous
7:31 PM
@QPaysTaxes I did it 4 years ago, but I also took calculus courses in college for my math minor, so it's still fresh :P
 
@Mego how do I do the p-series test for integrals? is it the same as for series?
 
@Maltysen As long as you know Power series representations for 1/(1+x) and sin(x), you should be fine as far as the memorization goes.
 
@QPaysTaxes This was something blazingly simple, like given a water tower of diameter X and height Y, with an output spigot that can release Z cubic feet per second, how long does it take to empty the tower?
 
@VTCAKAVSMoACE those two specifically?
 
Yeah.
I'm pretty sure I spent more time trying to find "the trick" to it than actually answering the question.
 
7:33 PM
@Maltysen Yeah - you can derive ln(x) and cos(x) from those, provided you know how to integrate and differentiate power series.
 
@VTCAKAVSMoACE I had done taylor series cuz those are REALLY REALLY COOL, but skipped divergence/convergence, etc.
 
@Maltysen That's one of the biggest things.
 
@VTCAKAVSMoACE ._.
I kinda know some of the rules now
 
I remember just figuring out the volume of the tower, divided it by Z, and gave my answer. Got a 5, so...
 
7:33 PM
@Maltysen As long as you know the ratio test, you should be good for power series divergence/convergence.
 
Anonymous
@Maltysen You mean the integral test?
 
@Mego maybe? it was like for what values of p does this indefinite integral converge
 
Anonymous
Oh
 
Anonymous
It's p > 1 for a p-series, so the same is true for an integral
 
and it looked like a p-series problem if it was a series and not an integral
 
Anonymous
7:35 PM
That's combining p-series and integral test
 
@Mego oh, k thanks. so it works the same way?
 
Anonymous
Pretty much
 
@Maltysen A summation is essentially an integral where the dx is 1.
¯\_(ツ)_/¯ Same rules apply for both.
 
@VTCAKAVSMoACE oooh that's a really nice way to think about it
 
Anonymous
There are a few differences, but they aren't important for what you need to know for AP
 
7:36 PM
@QPaysTaxes 10 years later
 
I just ran Doorknob's language stats script on the latest data dump, so figured I might as well post it in here, in case anyone's interested (limited to languages that were used at least 25 times):
python: 5234
javascript: 3330
ruby: 1966
perl: 1908
c: 1809
cjam: 1697
haskell: 1451
mathematica: 1412
pyth: 1361
java: 1259
php: 1089
golfscript: 994
c#: 886
bash: 849
j: 818
apl: 681
r: 662
c++: 574
matlab: 497
powershell: 497
julia: 428
scala: 387
k: 335
lua: 296
brainfuck: 261
retina: 233
ti-basic: 230
befunge: 222
groovy: 212
matl: 203
&gt;&amp;lt;&gt;: 179
japt: 177
sed: 160
jelly: 152
common lisp: 145
octave: 138
clojure: 136
batch: 130
dc: 128
tcl: 123
seriously: 122
q: 117
coffeescript: 116
 
Was there a new data dump?
 
was there not?
I think the last numbers I saw were much smaller
let me check
 
@Mego k thnx
 
ven
@MartinBüttner can you please post this as a gist?
 
7:38 PM
@QPaysTaxes is it this one?
 
Aww, yeah ... in your face Julia @AlexA. :p
 
@quartata looks like this one's from 1st of March
 
ven
@MartinBüttner seems liek LiveScript doesn't have enough answers to compete :(
 
@TimmyD D:
 
ven
?
 
7:39 PM
I'm not the guy you're looking for, I guess
 
@VTCAKAVSMoACE do we have to know any other convergence rules? like the alternating one and stuff?
 
ven
@MartinBüttner okay! will keep trying :). thanks
 
@QPaysTaxes ¯\_(ツ)_/¯
 
@AlexA. :D I still like you
Just that
 
7:41 PM
@MartinBüttner Feature request: s/&gt;&amp;&lt;&gt;/><>/g
 
complain to doorknob
 
With pleasure
 
Is that really a feature request?
More like a bugfix
 
@Doorknob I'm tired
 
:D
 
7:42 PM
@MartinBüttner Like this? ^^
Am I doing it right?
 
@Maltysen You should know: nth-term divergence, integral test, p-series test, ratio test, telescoping series, geometric series test, direct and limit comparison tests, absolute convergence test, and the root test.
 
@AlexA. yeah, uh, sure.
 
+1 and accept for me
 
@VTCAKAVSMoACE i think I know most of them…what are the nth-term divergence, direct, and root? I know the limit one but not the direct one
 
7:45 PM
@AlexA. You are winning by 5 bytes on the run-through-an-array challenge, and I don't think I can catch you
 
@VTCAKAVSMoACE oh cool thanks
 
@TimmyD >:D
I'm running too quickly through the array
 
If I didn't have to use $ for variables, we'd be tied
 
@VTCAKAVSMoACE could you just like give me your teacher's number too? :P
 
@Maltysen Uhh no. But I can upload more Series pdfs and share the folder with you, if you'd like.
 
7:47 PM
@VTCAKAVSMoACE would you really? thanks! <3 <3
 
6
Q: Run through an array

Cᴏɴᴏʀ O'BʀɪᴇɴWe all often hear the idiom "walk through the array" to mean "map the function over the following array". However, I need it done (now!), so I want you to run through the array. How do I run? Imagine there's a wild pack of wolves behind you Running through an array is like walking through one,...

 
Much
 
Amaze
 
OK, I kinda have to be bring this up... but I'm seeing people using this meta post as "popularity contests are no longer on topic here" in close reasons/comments
This is wrong that's not what that answer says at all
6
please don't phrase it like "this is community consensus all popularity contests are off-topic" kthx
 
@quartata I agree. But example of that being used?
 
@Polynomial this was on-topic when it was asked, and when it was asked(and up until a few months ago) "most votes" was objective. this is no longer the case: meta.codegolf.stackexchange.com/a/8134/46231cat 4 hours ago
I didn't really want to name names
There's more examples than that of course but I just saw this in the review queue and I had to say something
@HelkaHomba d'awwhh
Also I just noticed I said "to be bring this up" oops
Anyways, I just in general think this close-fest of popularity contests is a little premature. We really haven't reached consensus on it.
 
@Maltysen Did that help?
 
also ffs some people actually closed that question as "This site is for programming contests and challenges. General programming questions are off-topic here. You may be able to get help on Stack Overflow."
Please. Don't do that.
 
@VTCAKAVSMoACE still reading through the convergence tests pdf, but yes, also I don't need to know all the other ones you didn't mention, right?
like cauchy and zero-limit
 
7:56 PM
@Maltysen Cauchy, log-q, and zero-limit are not on the AP
 
kk
 
(at UCSB)
 
Huh, I've visited UCSB and I don't remember seeing that. Is it new?
 
@quartata I VTC'd it because of meta.codegolf.stackexchange.com/q/4829/42963 ... but apparently my reason got eaten by the two other canned answers.
 

« first day (1917 days earlier)      last day (2928 days later) »