« first day (1897 days earlier)      last day (2932 days later) » 

6:00 PM
Bungee jumping is safe?
 
^who would vote "no"
 
Because astronaut food sucks
 
@HelkaHomba are you secretly elon musk?
 
@Maltysen er, no
@Fatalize I'd go to space but I doubt I'd try bungee jumping
4
 
@HelkaHomba WHY NOT BOTH?
 
6:02 PM
well yeah cause space is infinitely cooler
 
Spacebungee!
 
@HelkaHomba mod abuse eleven
 
But really I do not know which is safer, bungee jumping or going to space.
 
The TF2 wiki is starting to golf their weapon demonstrations: youtube.com/watch?v=SnR748ENI4M&nohtml5=False
 
@flawr Presently surely it's bungee jumping.
 
6:05 PM
@HelkaHomba I'd imagine bungee jumping is pretty unsafe though.
At least if you don't know what you're doing
 
@quartata Same for flying spaceships :P
 
@HelkaHomba Are you sure? What kind of comparision, number of (fatal?) accidents per jump/launch ?
 
LADIES AND GENTLEMEN, AFTER HOURS OF TURMOIL, I HAVE FINALLY SOLVED D!
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You have me stumped... There are three sequences meeting the constraints (a(5)=40, a(8)=128, offset 0) and can't figure out how to do any of them in 13 characters.
 
\o/\o/\o/\o/\o/\o/\o/\o/\o/
 
6:08 PM
@flawr I'm not sure. Here's some data. And some more
 
@LegionMammal978 \o/ good luck
 
LADIES AND GENTLEMEN, AFTER HOURS OF TURMOIL, SCIENTISTS FOUND NO LINK BETWEEN THE LETTER D AND MATH!
 
@MarsUltor @Sp3000 @xsot Rest assured, that even with what is probably far, far too much discussion, it still took some ingenuity and a lot of bashing my head against the keyboard to find a good solution. Thank you all!
@zyabin101 t(-_-t
 
@zyabin101 I will derive from that statements that derivatives are D.
 
@zyabin101 Code Jam, dangit XD I solved the D challenge, at last
Now I can finally get some sleep
 
6:12 PM
@Sherlock9 Darn, @ 19:41:32.
2007 Sherlock9 100 19:41:32
 
@flawr You could say that learning all the things needed for spaceflight is harder and therefore more dangerous for the average person who may not remember them.
 
I'll take the penalty, zyabin. I just wanted to solve the challenge
 
But congrats for the perfect score!
 
Thank you :D
 
Hello!
 
6:15 PM
@HelkaHomba Just takes some patience to learn.
 
@Solver o/
 
So according to wikipedia there have been 551 people to space. (I was unable to find the number of flights.)
And 32 space-travelers who died in space-accidents.
32/551 is slightly less than 6%. Considering many of those astronauts have been to space multiple times. The 'rate' deaths/fligh is significantly lower than 6%
 
@HelkaHomba That's insane. It's under 2 dollars here.
 
@flawr 32 / 551 = 0.058076225045372050816696914700544
ninja'd
 
6:19 PM
of course we can discuss them and check everybody's code after it's over
 
@El'endiaStarman Are you signed up for Google Code Jam? I'd like to add all the PPCG people as friends on there
@aditsu Oh dear. I left in a lot of print statements for debugging o_o
 
If so, what is your username?
 
@Dennis That's scary
 
That code is going to look a little ugly :)
 
doesn't matter
 
6:20 PM
@Sherlock9 Not this year.
 
Regarding base jumping accidents I did only find the number 1 in 500000 so far. But all those sources probably copied eachother.
 
@Sherlock9 So, you'll get WA?
(Wrong Answer)
For what problem?
 
@quartata Close, though I'd still indent it differently to get rid of the dangling open paren in the first line.
 
I shouldn't, should I? The output file is different from the source code
There are prints in all of them, I think
 
I could submit D small, but the reminder is pretty wise
 
6:22 PM
@QPaysTaxes Why?
 
(let*-values ([(side1 side2) (partition (lambda (x)
                                          (zero? (bitwise-and x 2)))
                                        (shuffle (range 16)))]
              [(chunks) (append-map list side1 side2)]
              [(rooms) (random 6 11)])
  (for ([chunk chunks] [room rooms])
    (displayln chunk)))
 
@ChrisJester-Young OK, I was wondering about the open paren
 
(let*-values
    ([(side1 side2) (partition (lambda (x) (zero? (bitwise-and x 2)))
                               (shuffle (range 16)))]
     [(chunks) (append-map list side1 side2)]
     [(rooms) (random 6 11)])
  (for ([chunk chunks] [room rooms])
    (displayln chunk)))
^ two different ways to reindent to remove the dangling open paren.
 
I think I'll just move the paren to the next line yeah
 
@QPaysTaxes you need to figure out exactly how many students you need
 
6:23 PM
(and reindent the let clauses)
 
@quartata Cool. I use DrRacket's auto-indenter to help with stuff too.
 
@HelkaHomba Where's the option "No - that guy looks overconfident and I don't like the fact that he took Tesla's name for his company"
 
@zyabin101 There are prints in the source code for C-large, D-small and D-large
 
@LuisMendo He didn't actually start the company, I think he was an angel investor
 
@Sherlock9 Make a habit of printing debug stuff to stderr instead of stdout.
 
6:24 PM
So I don't think he picked the name
 
That way they won't accidentally end up in the output.
 
@Sherlock9 Oh noes.
Three WAs. O_O
 
@LuisMendo hahahaha
 
@ChrisJester-Young The way I wrote the output is the following:
with open("A-large.out", 'w') as file:
    for string in cases:
        file.write(string)
 
@LuisMendo you're back!
 
6:25 PM
@flawr I guess I figured bungee is safer because it's so much more common. A competent bungee company probably almost never has accidents. But even giant state governments can't be sure about space flight.
 
@QPaysTaxes oh, you can't read the problems?
 
@QPaysTaxes Oh sorry, I was talking about bungee jumping.
 
@Sherlock9 Cool. Then you wouldn't even be writing debug stuff to file. ;-)
@QPaysTaxes Yes, anybody can read them.
 
@QPaysTaxes go to the code jam page and see if you can get in and watch
 
@ChrisJester-Young Nope, print is for running code (I don't know how to read stderr, unfortunately) and the correct output is for the output file
 
6:27 PM
@HelkaHomba Well we are still only talking about fatalities. While reading about bungee jumping I read that eye damages are quite frequent (due to the sudden shift of blood)
 
@quartata TIL :-)
 
@zyabin101 See above discussion. I believe I'm fine
 
@zyabin101 for a while :-)
 
Well I think I'd still do both=)
 
@LuisMendo Although I agree that I don't like that they use Tesla's name for it
 
6:28 PM
If I had the chance/the money.
 
@quartata Too pretentious for my taste
 
Yeah
 
\o/ fractiles-small correct
 
@LuisMendo Hi!
 
@flawr Hello!
 
6:28 PM
@LuisMendo What would you have preferred? Would you rather be driving around a Faraday? (far-a-day, geddit? :P)
 
@HelkaHomba Hahaha
Good that you explained
That's hard for non-natives
 
@QPaysTaxes they're just smaller, except for problem D which is actually different
 
> Reston VA fastfood worker Eric Barcia assembles a bungee cord reaching nearly 70 feet in length and jumps from a 70 foot railroad trestle. Barcia did not take into account the fact that a bungee stretches on use, therefore his head impacted the pavement at the full force of gravity.
2
 
I'm expecting a Matlab answer from you in the robbers channege :-) @flawr
 
What challenge?
 
6:31 PM
@LuisMendo Would have to be Octave.
 
@HelkaHomba Where's the option for: "Yes, when Teslas and charging stations are available in my country and especially on my mountainous, overcrowded-with-little-space-for-those-charging-stations-without-displacing-som‌​e-inhabitants island" :D
 
@Sherlock9 stderr is for writing to, not reading from. ;-) In Ruby (I don't know Python, sorry), you use puts for writing to stdout and warn for writing to stderr. That way contest output is separated from debug messages.
 
You wanna say there is something on this site other than the chat?
 
@flawr Sorry, I meant the cops'
24
Q: Find the program that prints this integer sequence (Cops' thread)

Kenny LauThis is the cops' thread. The robbers' thread goes here. The last cops-and-robbers thread was already 4 months ago. The cop's task The cop's task is to write a program/function that takes a positive (or non-negative) integer and outputs/returns another integer. The cop must state it if the pr...

 
@QPaysTaxes I did not star!
@LuisMendo Oh , let me see=)
 
6:32 PM
@Dennis Good point
 
@ChrisJester-Young I just mean, how can I read those messages while the code is running?
 
@Sherlock9 They display in your console.
 
I was very disappointed to find that Khan inspired Insertion Sort (a Code Review question) was not a reference to Star Trek: The Wrath of Khan.
 
@Sherlock9 Autonomous cars might get you first (watch out...)
 
@AlexA. Star Trek would probably inspire quantum sort and not insertion sort. ;-)
 
6:33 PM
haha
Is quantum sort a thing?
 
I would like autonomous cars. But again, we don't have a lot of room (including for parking)
 
Idk what computers can do anymore
 
A quantum sort is any sorting algorithm that runs on a quantum computer. Any comparison-based quantum sorting algorithm would take at least steps, which is already achievable by classical algorithms. Thus, for this task, quantum computers are no better than classical ones. However, in space-bounded sorts, quantum algorithms outperform their classical counterparts. == References... ==
 
25.8069 is the root of all evil
 
@ChrisJester-Young Whoa
 
6:34 PM
@AlexA. Yeah that about sums up quantum computing
 
@CᴏɴᴏʀO'Bʀɪᴇɴ :-D
 
Or rather 2.955146653094558
 
@HelkaHomba Although, I would love autonomous cars instead of our crazy drivers. But the poor first few autonomous cars that have to navigate among all those crazy drivers D:
 
@CᴏɴᴏʀO'Bʀɪᴇɴ what is so evil about 665.99608761?
 
6:35 PM
Grover's algorithm is a quantum algorithm that finds with high probability the unique input to a black box function that produces a particular output value, using just O(N1/2) evaluations of the function, where N is the size of the function's domain. It was originated by Lov Grover. The analogous problem in classical computation cannot be solved in fewer than O(N) evaluations (because, in the worst case, the Nth member of the domain might be the correct member). At roughly the same time that Grover published his algorithm, Bennett, Bernstein, Brassard, and Vazirani published a proof that no quantum...
 
@Sherlock9 And crazy jaywalkers, crazy landslides, etc.
 
Meh. rounding errors.
 
It would be much simpler to develop autonomous cars if they only encountered other autonomous cars on the road
 
17 secs ago, by Chris Jester-Young
@Sherlock9 And crazy jaywalkers, crazy landslides, etc.
 
@quartata -1, not about Sesame Street
 
6:36 PM
@ChrisJester-Young Have you visited our fair country? I have yet to visit Australia, myself
 
@HelkaHomba ok
 
@Sherlock9 What country are you from?
 
Indonesia
 
Also, not sure what Australia has to do with the price of milk.
 
@Sherlock9 I've seen someone suggest that Tesla is working towards making its cars self-driving for a greater purpose: having a fleet of autonomous taxis. That would probably be great in your country (aside from what I imagine is a relative lack of traffic laws) because parking space is less necessary. Teslas would just go around and pick up and drop off people, all autonomously and cheaply.
 
6:36 PM
2 mins ago, by Alex A.
@ChrisJester-Young Whoa
 
@AlexA. Yeah.
Have you seen Shor's algorithm?
 
Nope
 
@quartata Yes.
 
Shor's algorithm, named after mathematician Peter Shor, is a quantum algorithm (an algorithm that runs on a quantum computer) for integer factorization formulated in 1994. Informally it solves the following problem: given an integer N, find its prime factors. On a quantum computer, to factor an integer N, Shor's algorithm runs in polynomial time (the time taken is polynomial in log N, which is the size of the input). Specifically it takes quantum gates of order O((log N)2(log log N)(log log log N)) using fast multiplication, demonstrating that the integer factorization problem can be efficiently...
 
It's a quantum factoring algorithm.
 
6:37 PM
I don't know squat about quantum computering
 
@AlexA. Oh man it's amazing
Too bad I don't understand enough physics to actually say smart things about it
 
If I'm not mistaken, xnor is a PhD student at MIT researching quantum computing stuff.
 
@Fatalize Between crazy car drivers, crazy motorcycle riders (motorcycle drivers), crazy pedestrians, crazy jaywalkers, crazy terrain, motorcycles on sidewalks, no sidewalks for pedestrians in many places, five lanes of traffic on roads with three painted lanes, occasional police stops for bribes, and the serious disrespect for red lights, I think autonomous cars would have a lot of trouble on the island of Java, and in Jakarta in particular
 
6:39 PM
@ChrisJester-Young Hm?
 
If you were starting a quantum computing company whose goal was to replace all modern laptops/desktops with quantum ones, what would you call your company?
 
> Also in 2012, the factorization of 21 was achieved, setting the record for the largest number factored with a quantum computer.
I just find this amusing. :P
 
@HelkaHomba Quantorama
 
@HelkaHomba Not Heisenberg please
 
@HelkaHomba Dell
 
6:39 PM
@LuisMendo I think Breaking Bad ruined that chance
 
@HelkaHomba It'll probably be a while before we get to that point
 
Computron
 
@LuisMendo So I do not get it, do we have (as robbers) to find the exact sequence? Or only a sequence that matches the example outputs?
 
@Sherlock9 Not sure why your comment mentioned Australia.
 
@El'endiaStarman Woo! I've still been searching for those factors :/
 
6:40 PM
@flawr Robbers need to find the code (or one that produces the same output)
 
@HelkaHomba Macrosoft
 
Honestly I actually hope we don't see quantum computers like that in at least 100 years
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Femtosoft
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ninja
 
6:41 PM
ninja'd
 
@flawr Cops write code and reveal only some characters. Those characters need to be in the robbers' attempts
 
@El'endiaStarman Well, we're already having trouble with backlash against Uber, Grab (as in GrabTaxi) and GO-JEK (an ojek is an Indonesian term for a motorcycle taxi which are very common in Jakarta). Not sure how autonomous taxis would fare
 
I might call it RSARekt or something :p
 
hahaha
 
@Sherlock9 But yeah, I haven't visited Indonesia before. I'd love to, though.
 
6:41 PM
@aditsu :-D
 
But does the robbers submission have to produces the exact same sequence? Or only match the sequence terms that are given?
 
@ChrisJester-Young I've heard their food is pretty boss. Can you confirm, @Sherlock9?
 
@flawr Only those. Cops also choose how many terms to reveal
 
@ChrisJester-Young Sorry. I should have moused over the flag on the GCJ leaderboard. Mistook the NZ flag for the Oz flag
@AlexA. Absolutely :D
 
Nice. I want to go to Indonesia then too. :P
 
6:42 PM
But the sequence is restricted to be in OEIS @flawr
 
@AlexA. It really is. :-D
 
We have some of the best food that our neighbors sometimes steal credit for XD
 
:D
 
i like food
 
Me too
 
6:43 PM
I don't
 
It's great
@Fatalize How are you survive than?!
 
i like it too
 
@Sherlock9 I read that as "Nazi" and Oz as in "The Land of" :S
 
@Sherlock9 New Zealand's prime minister wanted to change the flag, but the process failed to come up with a design that New Zealanders wanted, so.
 
@AlexA. he is made of avocad
 
6:44 PM
@Maltysen Avocad is people to
 
JavaScript has no contributors
 
@AlexA. unjuicable people, though
 
@AlexA. I eat cause I have to, but I would happily trade the ability to eat for the ability to survive without eating
 
@LuisMendo PS: I used some matlab here
 
@ChrisJester-Young @AlexA. When you decide to visit, let me know and I'll show around Jakarta. Then we'll promptly get the hell out of Jakarta, because most of the interesting stuff is in other parts of the country :D
 
6:44 PM
@Downgoat That explains a lot, actually
 
@ChrisJester-Young John Oliver covered that quite well
 
@Sherlock9 I believe it. ;-)
 
I hear John Key is a fan :P
 
@ChrisJester-Young sounds familiar - youtube.com/watch?v=eSwbG5V5S-8
 
@flawr I saw that image in the chat room. So that's where it comes from :-)
 
6:45 PM
@ChrisJester-Young I'm not sure why people would want to keep that horrible Rosbeefs' flag in their flag
 
@Sherlock9 I need money for travel first but then I'll 100% take you up on that offer!
 
@Sherlock9 He was the one who started the whole project to begin with, so.
 
what have I just witnessed
 
@Fatalize Interesting. So you weren't kidding. What don't you like about eating?
 
I can't even comprehend someone not liking some form of food
 
6:46 PM
@Fatalize I think people would rather wait for a really compelling new flag design to show up before adopting it, rather than just having a reaction to having the Union Jack in our current flag.
 
@quartata Stop linking that dog >_.
 
Even if it's a sweet or something
@HelkaHomba I can't stop watching gabe
 
@ChrisJester-Young I meant that "I hear John Key is a fan of John Oliver" with an implicit /s
 
@AlexA. I just tolerate the taste of very few things
for some reason
 
@Sherlock9 Oh lol, nice.
 
6:47 PM
@LuisMendo If we only have to match the examples that the cops provide, then I have cracked your submisssion
*3, MATL
 
What happened on December 27, 2013?
 
@quartata Seizure city
 
@Fatalize Also, New Zealand is not a republic. I think many people feel that the discussion of changing the flag would be riper if/when NZ becomes a republic.
Personally, I don't think it ever will.
 
@ChrisJester-Young NZ is still under British Monarchy like Australia?
 
@Fatalize Hm. So what do you eat when you have to?
 
6:48 PM
@flawr But the code needs a 5 in the second position
 
@Fatalize Yes.
 
@Downgoat Richard Ambler died
 
@AlexA. Meat, fries, rice, pasta, and bread. All with no sauce whatsoever
 
@ChrisJester-Young A message from Sherlock9 in the Republic of Indonesia: "Governments suck when the people in them suck and that's not going to change any time soon."
 
Actually I think half of what I've eaten in my life is bread
 
6:49 PM
@HelkaHomba I saw this the other day. I found it very good
https://t.co/pLuzpu8orF
 
@flawr Invalid.
 
@QPaysTaxes Nope @LuisMendo
However, any proposed source code that produces the same set of output also counts as valid, as long as it is also found in OEIS.
 
@Fatalize Whoa. So no fruit, vegetables, nuts, or anything like that?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ D':
but what happened on PPCG
 
@Sherlock9 That applies to companies' upper management, too. :-P
 
6:50 PM
The code has to have 5 as the second char and * as the fourth char.
 
@ChrisJester-Young Do people in NZ really not want to kick the queen? Why?
 
there is a huge spike of activity
 
@Downgoat Code trolling?
 
@flawr The robber's challenge says
The cracked code doesn't have to be identical, as long as it has the same length and any revealed characters are in the correct positions.
 
6:51 PM
@AlexA. i don't eat any fruit. Green beans but I force myself
 
@Fatalize Probably because it doesn't solve much of anything.
 
@Fatalize My guess is, inertia and the queen is a nice old lady approaching her 90's
 
@Fatalize I personally feel no urgency for NZ to become a republic.
 
@LuisMendo Why the hell do we have two different sets of rules?
 
6:51 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ ^^
 
@Fatalize When Charles takes the throne, many Commonwealth nations may quickly decide to become republics, including the United Kingdom :P
 
I mean, I don't want to influence but here we behead monarchs, so maybe I'm prejudiced...
 
@Fatalize you should probably start eating food if you want to stay healthy...
 
@flawr I agree that that vital information should appear in the cops' challenge too
 
6:52 PM
@Downgoat whoa
 
@Fatalize Where's "here"?
 
@ChrisJester-Young France
 
@Sherlock9 Why? I don't object to him personally, and I don't see why people would.
 
> Avocad
:D
 
Bread depends, American bread isn't real bread
 
6:53 PM
@LuisMendo There is so much unclear about this challenge, why didn't it get closed???
 
@Fatalize Ah, well yes, then your attitude is understandable. :-)
 
@HelkaHomba I like the distinction between avocados and avocad
 
if your water has taste, you should probably skip drinking it
 
But -1 for misspelling broccoli
 
@ChrisJester-Young Eh, I'm making a silly joke. I think it's just that Charles is very uncharismatic
 
6:53 PM
@Optimizer This is funny but is actually good advice
 
@Sherlock9 Lol.
 
life saving advice right there
 
@AlexA. meh, blar
 
@flawr Probably because cops' and robbers' challenges are so much fun!
 
lol
 
6:55 PM
How are you measuring activity?
 
@Fatalize Like American coffee :-P
 
@AlexA. Site analytics.
 
has anyone sen the galaxy with naked eyes?
 
@flawr It was closed as unclear (I helped close it) but it got reopened
 
In Indonesia, our presidential terms lasted, in order, 17 years, 31 years, 1 years, 2 years, 3 years, 2 terms of 5 years, incumbent
 
6:55 PM
@LuisMendo This guy should have sandboxed it.
 
We have settled down to two terms of five years
 
@AlexA. It still is quite unclear.
 
aha, it was this post:
281
Q: I need a program where the user inputs an array of doubles and the program outputs the array sorted

Victor StafusaNote: This question was severely edited since I first posted it here. The rules were moved to here, read them before posting any answer to understand the purpose of this. This was the first question created in the code-trolling category. Imagine a lazy user on Stack Overflow asks this question: ...

 
@Optimizer Yeah, all the time. Parts of it, anyway
 
@Fatalize Can you post photos of one real and one fake bread?
 
6:55 PM
@flawr I know
 
Wait, I have only 318 of 25k rep ;_;
 
@HelkaHomba hahaha what
 
And those 20 rules could be written down as 3 rules.
 
@LuisMendo oh, this computer that you are looking at is also galaxy then?
 
> viewed 151829 times
damn
 
6:56 PM
I mean night sky galaxy
 
@Optimizer Of course. How not so?
 
@flawr Which 20 rules?
 
@Fatalize ಠ_ಠ american sandwich bread is not worst bread
 
White?
 
6:56 PM
 
@Optimizer Yeah. I was just kidding you. And yes, I sometimes see it. Specially in the countryside, with little lights around
 
@Fatalize you're french, right?
 
@Sherlock9 Of this cops/robbers challenges.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Indeed
 
@Fatalize Why am I not surprised that a French person prefers baguettes to American sandwich bread? :D
 
6:57 PM
That's why :P
 
@Fatalize that is a baguette not bread bread though
 
@LuisMendo do you actually see the colors too? green blue etc..
 
@Fatalize Difficult to sandwich
 
baguette is a shape of bread
 
@Downgoat Baguettes are bread...
 
6:57 PM
but it's bread
 
@HelkaHomba easy to subwich
 
@Optimizer No. Just very dim whitish
 
@AlexA. bread bread =\= bread
 
@HelkaHomba Totally not true
 
@flawr Ah, interesting. I'll go search for a link
 
has anyone seen anything similar to these : pics-about-space.com/night-sky-milky-way-galaxy?p=1
 
@Optimizer look up at night
 
@flawr Thanks
 
@HelkaHomba :|
 
@flawr If it gets more close votes I might contribute another
 
I think we all agree that we need Calvin'sHobbies back
23
 
@Dennis Not aerated enough
 
^^
 

« first day (1897 days earlier)      last day (2932 days later) »