« first day (14 days earlier)      last day (1122 days later) » 

00:03
acs022: How do I create a blank, ruby workspace in cloud 9
MMan: click on "create new workspace" ?
RajeshLalan: Any one in Dallas TX area taking this class ?
acs022: Do I create a ruby on rails workspace
acs022: thats the only ruby option I see
Mr-Jonze: yes
Mr-Jonze: sry yes @ acs022
acs022: thanks
Mr-Jonze: no in dallas
nitesco: I just used the test workspace and put a new file there because for some reason the new workspace wasnt working for me.
acs022: wasn't sure if i needed a blank ruby workspace or something
VanitaW: I am in Houston
Taylor714: @Nathaniel1 - that's a great question. Are you still online?
terra43110: anyone going to PP soon?
gdi_kepler: finished part 3, but I have a question about part 3
MMan: ...probably.. u should ask the question if u want an answer ^_^
gdi_kepler: actually never mind. I thought price had to be float, it's just that the attribute is a float. An integer is still a valid price argument.
gdi_kepler: got hung up because I tested the input and raised an error if it weren't float, which fails one of the autograder tests.
00:36
acs022: what do I do if the terminal freezes in cloud9
acs022: it just won't let me type
acs022: macbook air
terra43110: part 2 anyone?
acs022: workaround for me is to open a new terminal
acs022: through view > terminal > new
acs022: why doesn't my ruby know the method max
polomarco: Has anyone installed their environment using koding vm
orindiuva: ACTION slaps alau95 around a bit with a large fishbot
acs022: do I need to install the enumerable gem
chaicko: hello everyone
chaicko: anybody wants to start a pair programming review of HW0 part1, and then begin working on part 2?
VanitaW: do we need a webcam to use the hangout?
xavysg91_: you can turn it off
VanitaW: for the pair programming?
xavysg91_: i think you'll also be screen sharing instead of using web cams anyway
VanitaW: so we just use the screensharing?
pmoessner: To the person asking if anyone was in Dallas, I'm in Fort Worth/
VanitaW: not web cams
VanitaW: ok. I asked because if we need the webcam, I will need to leave my computer in my home office because my desk is in there.
VanitaW: sorry <Chaicok> but I am not at that point yet.
VanitaW: I am at the submit youtube url. I will work not the homework tomorrow
DarylF: Is "Quiz 0" simple answering all the individual questions in between lecture videos?
acs022: no there is a problem set
Materiari: @DarylF given that they havne't released it yet, how would we know?
Materiari: quizes come out on Tuesday
DarylF: Thanks Materiari. I guess I got my days mixed up
terra43110: doing part 3
acs022: undefined method `max' for 7:Fixnum (NoMethodError)
acs022: working in cloud9 any idea what error this is
davegomez: Homework 0: Ruby Intro Pair Programming en Español - 6 de mayo a las 22 horas GTM -5 plus.google.com/events/…
Materiari: @acs022 max works on a set of things (like an array) and it seems to think you're trying to make it work on a single number (7)
acs022: hmm
acs022: but it doesn't give me an error for the wrong number of arguments
Materiari: a single number is an argument but not a useful one (what's the max of 7?), an array could also be a single argument (what's the max of [5,4,12] seems like a viable question to ask)
acs022: but i passed it an array
acs022: let me play with it and come back, one sec
acs022: so my prob came from trying to remove the max value and re-find the max of the new array
acs022: oh sweet jesus i think I just did it
acs022: this might be the greatest day of my life
Materiari: nice when stuff works ;-)
02:04
acs022: i'm having trouble getting the grader to accept my 3 methods
lpoulain: meaning...?
BrianNel: Is the homework release as yet?
lpoulain: It is
BertProulx: This may seem like a silly question but how do I get the URL of the video I recorded for the test on-air hangout?
terra43110: it's on the host's youtube page
terra43110: click the uploaded videos tab
BertProulx: OK, I'll check it out. Since I was the host it should be on my page.
StevenJD: How do you do a youtube video recording of your hangout? Last time one appeared on youtube, but this time one hasn't.
StevenJD: Was I supposed to do something to make it record?
MMan: u need to have a youtube account i think...
StevenJD: I do.
StevenJD: I checked the uploads tab...
binarypulsar: Still need help with lost .vdi file
StevenJD: Agh. It looks like I didn't successfully make it record. I wonder if I redo the work or write that one off?
StevenJD: The people in my hangout will be upset I am sure
MMan: u can always do another session :)
binarypulsar: Homework0 autograder results say for sum_to_n of empty array I am returning false but my unit tests say I am returning true. What can I do? Autograder result: Failed examples: rspec /tmp/rspec20140505-30813-16iptn8.rb:108 # Ruby intro part 1 #sum_to_n returns false for the empty array [5 points]
davegomez_: binarypulsar: how can we help you if we doesnt know what you wrote?
davegomez_: didn't you see the response I gave to your question in the discussion forums?
binarypulsar: I don't have a camera or microphone on the computer so have been denied access to hangout.
StevenJD: I don't seem to be able to RSVP to hangouts on the class hangout page. This problem began yesterday. Anyone have any idea where to begin on fixing this?
MMan: i dont have cam or mic neither... and was able to join others HOs
binarypulsar: How do they see or hear you?
MMan: but u can use pastebin.com to put ur code and share
MMan: they dont... i just type in chat window
binarypulsar: That is not pair programming
sirMarkus: Hi
MMan: u no need to talk to pair program.. u can do on Code9.. every1 can write on same program
binarypulsar: <davegomez_> u still there
davegomez_: binarypulsar: yes
tonyrobots: This is a total train wreck
zkay: Tonyrobots: ?
Materiari: is it?
Materiari: I'd say it seems pretty coordinated if you consider there are roughly 20k people taking the course :-)
StevenJD: binary pulsar, were you in my hangout? If so, I'm very sorry about how that went. I am also really sorry about losing the youtube video.
binarypulsar: Can u help me with this autograder problem?
StevenJD: Someone was just in my hangout who had to type the whole time. We did not do a very good job of including him.
binarypulsar: I tried to join a hangout but don't have a camera or mic so was told I could not join.
StevenJD: Huh, weird.
binarypulsar: davegomez_: Can u help me with this autograder problem?
StevenJD: I had a problem with the auto grader, at first. It was because I had copied and pasted to a text file and failed to convert the text file to plain text before making it a .rb file
binarypulsar: No I am talking about a result that is graded wrong
binarypulsar: Can anyone from SaaS staff help me?
binarypulsar: If not how do I contact the professors?
StevenJD: I created a hangout that was supposed to be "on air" using the "create on air hangout" link on the class hangouts page. It didn't post to youtube afterward.
binarypulsar: I went to StackExchange and saw some comments. Thanks. I put some of my code and test case as a comment can someone look at it?
davegomez_: binarypulsar: I will
davegomez_: binarypulsar: give me the post link, I can't find it
bobbyrussell: Is there a limit to the number of submissions to the autograder?
davegomez_: bobbyrussell: I have not read anything about it, so I don't think so
bobbyrussell: ok thanls
bobbyrussell: thanks*
binarypulsar: how do I send a message to someone, with /msg?
zkay: Anyone solved #sum_to_n returns true when any two elements sum to the second argument [30 points] ?
zkay: I'm down to that as my last failure
binarypulsar: that's easy.
davegomez_: binarypulsar: don't do that, keep it public
davegomez_: binarypulsar: So, your question doesn't have any code in it, just have the returned error and we can't do anything with it
binarypulsar: No look at my comment
davegomez_: binarypulsar: you should at least post your test code so we can verify if it works or what it's wrong with it
davegomez_: binarypulsar: you dont have to put all your code, but please edit your question, add the code you want to add, and use the correct markdown syntax for text code
binarypulsar: The test case is there: answer = sum_to_n?([], 8) puts answer answer returns true but autograder says false
MMan: An empty array or single element array should both return false.
mateu: binarypulsar: read the assignment
binarypulsar: The autograder says I am returning false and it is incorrect. Failed examples: rspec /tmp/rspec20140505-30813-16iptn8.rb:108 # Ruby intro part 1 #sum_to_n returns false for the empty array [5 points]
mateu: binarypulsar: please, step back and re-read the instructions
davegomez_: binarypulsar: "An empty array or single element array should both return false."
davegomez_: binarypulsar: are your returning true?
mateu: ACTION laments spoon-feeding
zkay: how bad is linking code to your solution to the problem set? Is it highly discouraged by the honor code?
terra43110: Anyone know approximately how many ppl are taking this course?
Materiari: Sam said ~20k
terra43110: any guess on percentage that complete?
davegomez_: not 20k
binarypulsar: <davegomez_> Yeah. I'm sorry I had it as: if MyArray.empty? return true , I changed it to false and now have 100% correct with Part1. All three methods written with 16 lines of code. Not bad! Think functional programming.
Nick_Name: MOOCs in general have about a 5% completion rate
davegomez_: binarypulsar: grats
jmendezrice: d'oh
terra43110: low percentage makes sense, since it's just a click to sign up and explore
jmendezrice: didn't see there were requirements for submitting pairing links for the homework parts
binarypulsar: <davegomez_> I still have a problem with the Pair Programming. I don't like mentioning this caue people sometimes act wierd but I am deaf and don't participate in pair programming at work (motto is more talking better pair programming). I observe people's code when they ask me and send them messages. Could you ask the professor if I could get a waiver on the pair programming? Thanks.
ArnabKS: pair programming is horrible..not working
ArnabKS: also do not know what exactly is expected here
davegomez: binarypulsar: fuck people, you shouldn't miss the pair programming oportunity
davegomez: binarypulsar: and I already answer your question edx-cs169-1x.stackexchange.com/questions/510/…
davegomez: binarypulsar: you can always write, even if you choose to send your solo video
Nick_Name: binarypulsar: While I won't get started on the programming for another two days, you are welcomed to pair with me as I don't use a camera or mic. We'd just use chat
zkay: if you decide to write though, make sure you screenshare your entire desktop, otherwise the chat wont show up
davegomez: you should get at least a camera, and just explain you are deaf, there's no shame in that. See, there's a lot of people willing to pair with you ;-)
zkay: anyone point me in the right direction on #sum_to_n returns true when any two elements sum to the second argument [30 points]?
zkay: Ah, wait, might have gotten it :)
jmendezrice: is there an easy way to tell who in the chat is a TA?
davegomez: zkay: check array method combination ruby-doc.org/core-2.1.1/Array.html#method-i-combination
binarypulsar: aw you gave it away
binarypulsar: just kidding. definitely way to go
zkay: I had tried that before, but somehow coming back to it, it works! Thanks dave gomez :)
04:21
Mr-Jonze: no there is currently no way to know who is a TA - they are working on this and if it happens you will begin to see some nicks begin with @char
AnandRajagopal: Hello, the download link seems to point to the first video not the one shown here.
04:45
Mr-Jonze: yes we are aware of that - it should be fixed soon
Mr-Jonze: thanks for noticing tho
AnandRajagopal_: Thank you!
05:05
stephenCPE_: this pair programming thing is difficult
stephenCPE_: i cant make it work.. :'( maybe due to slow internet connection
nicwonderland: what is the problem you have?
stephenCPE_: i'm creating a hangout and it is broadcasting... but i dont have my face on the video... and audio too... i'm testing my webcam if it works on skype
batmanbury: on hw0-2 all my tests pass, but not this one with the grader: classifies valid binary numbers [30 points] (FAILED)
batmanbury: cant see what I'm not doing
nicwonderland: probably i think you have a slow conection of internet
nicwonderland: try to see the video in youtube, today when i try to play the video in my office i cant see anything...but when i come back to my house everything its fine
05:31
Lohhari: batmanbury: check the couple of lines above and below. i think it always tells you the input it tried to use
Lohhari: i think mine failed with the empty string
05:48
binarypulsar: <Nick_Name> If it is ok I will try to get together with you in a couple of days for pair programming. If you can set things up I would much appreciate it. I don't have webcam or mic though. Just finished parts 2 and 3. Did not take long.
06:16
stiv88: how to test my homework for correct answers?
gdi_kepler: stiv88: just submit it and look at feedback
Alehanz: Why is pair programming not optional? That whole submit a youtube link thing ticks me off a bit.
gdi_kepler: stiv88: or you you mean how can build test cases?
stiv88: <gdi_kepler> thanks. And how much times i can submit? Any times before deadline?
gdi_kepler: I think so, I did not see any limit. I submitted around 10 times before all the requirements were satisfied.
KenCL_: stiv88: you can add test code at the end of your .rb file, just remember to delete or comment out before you submit
gdi_kepler: in one of the videos with sam and someone else they kind of show how to set up a simple test case
Nick_Name: binarypulsar: I have not yet read on how to pair program but I'll set up what I can tomorrow and and set the date for the next day.
gdi_kepler: kencl actually i did not comment it out. seemed like as long as the functions were there that is all it needed.
KenCL_: Ah, I see.
Nick_Name: binarypulsar: I also have finished all 3 parts and so I'm doing this for the experience of setting up pair programming. It also will be good to compare our efforts and refine code
gdi_kepler: kencl, stiv88, for example in hw0part1, after defining the sum function I put the 2 statements:
gdi_kepler: raise "sum([]) != 0" unless sum([]) == 0
gdi_kepler: raise "sum([2,1,3,3,-1]) != 8" unless sum([2,1,3,3,-1]) == 8
gdi_kepler: kind of clunky, but basically when you run the program, if there is no output from the raise, then it has passed. I submitted this file to the autograder and it passed.
KenCL_: I just use "puts <function_call>"
Lohhari: Alehanz: well pair programming is one of the main lessons of the course. even if you don't do it you can get 91% score though
binarypulsar: <Nick_Name>thanks.
gdi_kepler: Nick_Name: did you write test cases to check the error handling in hw0 part 3?
gdi_kepler: kencl: I agree with the puts <function call> that it works, the problem is when you have 10s or 100s of test cases, you don't want to check the output by eye. You want a script that if there is no output, it means everything works.
Nick_Name: gdi_kepler: Yes I did.
Nick_Name: gdi_kepler: Example - book = BookInStock.new(453254,-1); puts book.price_as_string//////////// This leads to an argument exception
gdi_kepler: Nick_Name: I see. thanks.
Flawless: morning
mfeckie: Hi Folks, Aussie guy here. Anyone need any help with the exercises and want to pair on it?
gdi_kepler: stiv88: number of submissions syllabus courses.edx.org/courses/BerkeleyX/CS_CS169.1x/1T2014/… Each assignment can be submitted multiple times without penalty
gdi_kepler: stiv88: In addition to the homework assignments, there will be 4 quizzes. You will have only one chance to take each quiz, with the exception of Quiz 0 (the diagnostic quiz). You may take Quiz 0 as many times as you want.
martinfeckie: Hey Folks, where
martinfeckie: is the best place to find a pair?
07:13
MaxCurious: Hi, any chance have normal name for video files according to chapters, because all this CS169_v13_w1l1s2 have no too much sence in directory, and looks like this class about C++ with ***pointer.
MaxCurious: I know that possible rename by myself but much convinient make it on the server also prevent from mistakes.
07:27
SumayaTalhami: anyone on the Ch 1.6 multiple choice?
Mr-Jonze__: @ sumaya - do you have a specific question? - just ask
Mr-Jonze__: @ martin - just create a hangout as directed on the "pair prgramming page" for some time in the future and you will probably find that others will join you when the time comes
Mr-Jonze__: then you could also paste the link to the hangout in this chat just as it begins
08:03
Ale_A: deos anybody have time to HW0, I am in hangout now
Ale_A: that is link
08:17
joaopapereira: Hello
Mr-Jonze: is your hangout listed on the events page? - which hangout is it ?
Ale_A: does anybody have time to do HW0?
Ale_A: that is link to hangout that I am in now.
Ale_A: By the way, I have a question. What if I can not find people to do pair program....
Ale_A: how can I finish it?
Mr-Jonze: i am not asking for the link - i am asking if it is listed on the events page
Mr-Jonze: i think you can finish it just by leaving
Mr-Jonze: but if it is not listed on the events page you will be much less likely that anyone will attend
Ale_A: let me check
Mr-Jonze: if you followed all of the steps it should be
Mr-Jonze: what did you name it ?
Ale_A: I named "Pairing on HW0 Ruby Intro"
Mr-Jonze: the best approach is to create the hangout for sometime in the future like tomorrow then when it starts to put the hangout link into the event description per instruction #8
Ale_A: yeah I try it again.
Mr-Jonze: great there 15 events with that same name
Ale_A: thank you
Mr-Jonze: do you remember what was the start time ?
Ale_A: I did not schedule..
Ale_A: I started right away.
Mr-Jonze: it always has a start time
Ale_A: does it?
Mr-Jonze: they all do
Ale_A: hmm...
Mr-Jonze: go to this page
Ale_A: ok
Ale_A: I try again.
Mr-Jonze: and follow ALL instructions
hostey: is there anyway one can have access to a compressed file of this videos they are just to heavy
Mr-Jonze: if you do not select a start time one is chosen for you so that maybe why we cant find yours
Mr-Jonze: you can watch them on youtbe
Ale_A: ok.
08:44
hostey: thanks mr-jonze but i am seeing lectures of upto week 5
Mr-Jonze: this is only week 1 - what were you expecting ?
hostey: are the lectures for the last class
Mr-Jonze: they are the same
hostey: ok thanks
Ale_A: does anybody have time to do HW0? link => plus.google.com/hangouts/_/hoaevent/…
Dholdaway_: anyone taking this course London, UK based?
Dholdaway_: ?
Mr-Jonze: ale - did it work this time ? which one is it
Ale_A: the name is "hiro tomi"
Ale_A: I think it worked now
Mr-Jonze: i dont see any named hiro
Ale_A: I forgot to join community.....lol
Ale_A: ??hold on min
Ale_A: on the third one...I think this is m
Ale_A: mine
Mr-Jonze: ah yes i see it now
Ale_A: ok
Ale_A: thank you
Mr-Jonze: yep and the link is in the description - gj bud
Mr-Jonze: what are you working on?
Ale_A: thank you for checking......so thsn all I have to do is I have to wait someone to come in, right?
Ale_A: yeah, now
Mr-Jonze: yep
Mr-Jonze: not so likely this time of day tho
Mr-Jonze: is why i suggested top make one for tomorrow and give many others time to see it
Dholdaway_: oh thats excellent!
Mr-Jonze: but hold on - i can probably join you in about 15 minutes
Ale_A: oh yeah, thank you
Mr-Jonze: i can hear you whispering btw :)
Ale_A: ok
Ale_A: i did not notice....
Ale_A: it is on air....lol
Mr-Jonze: no you would not notice - ppl can watch these from the outside without coming in
AlexCzar: Player doesn't work - video is stuttering and there is no sound, all is okay if I click on the Youtube logo in the corner (which takes me to the original Youtube video). Same problem anyone?
09:38
jsoto008: hiro tomi I can't join your hangout only watch
bgordon86: is anyone working on part 3
bgordon86: Ive just started on it and looking for a share buddy
jsoto008: bgordon86: time to give a peer review on my part01? pastie.org/9145340 only got the first two
bgordon86: sure ill take a look
jsoto008: bgordon86: thanks! :)
bgordon86: for this part (0..(a.size-1))
bgordon86: why not just call a.each
jsoto008: hm I think I made that choice b/c of line 13, I can't see if that would be better but I'm going to try it now
bgordon86: right
bgordon86: i se
bgordon86: see*
bgordon86: I wouldn't delete stuff from the array, seems expensive
bgordon86: with mine I sorted the array biggest to smallest then just pick the first 2 items
jsoto008: nicee
jsoto008: oh, I did array.sort.reverse, is that more expensive?
bgordon86: don't know, thats a good idea though
bgordon86: i adnt thought of that
bgordon86: hadnt*
jsoto008: thanks! gtg now
bgordon86: bye
jsoto008: bgordon86: pastie.org/9145385
bgordon86: nice
MrPop: Always interesting seeing what other people do
MrPop: I went for x = arr.sort.last 2
MrPop: 0 + x[0] + x[1]
bgordon86: its amazing how many ways you can do the same thing
jsoto008: nice MrPop you could do (arr.sort.last 2).reduce(:+)
jsoto008: but for reall I have to be going now. thanks again.
jsoto008: :)
MrPop: That doesn't work jsoto
MrPop: Oh, he left
MrPop: Grr
MrPop: His method returns nil with an empty array, not 0
MrPop: 0 + arr.sort.last(2).reduce :+ would work
bgordon86: what happens if the array only has 1 element
terra43110: what version of ruby does this course use?
tansaku: 1.9.3
10:38
MrPop: bgordon86: For which one?
bgordon86: in your 1 liner
MrPop: It works as intended
MrPop: Why do you ask?
bgordon86: just wondering in last 2 wouldnt work if there was only 1 element
MrPop: If they were passing in a single fixnum it would not, but luckily they are always giving an array
MrPop: with the one where reduce is used it works because the sum of a 1 element array is just the one element
MrPop: With the 0 + x[0] + x[1] method it works because the [] method returns nil when you use an out-of-bounds index
MrPop: And in both case any number + nil = the origin number
MrPop: So we stick 0 + at the end so that if it all evaluates to nil we return 0, not nil
bgordon86: very clever
MrPop: 0 + nil = 0
MrPop: :3
MrPop: thanks
bgordon86: and I thought I was doing well with my 3 lines :)
terra43110: if anyone wants to join, he's doing hw0 with gitpong
bgordon86: MrPop: it didnt work
bgordon86: in `+': nil can't be coerced into Fixnum (TypeError)
MrPop: Which one?
MrPop: You need to surround either the arg for reduce, or the entire right side of the expression in ()s
MrPop: sorry, my bad. Little syntax error
MrPop: Oh wait
MrPop: You did
MrPop: Maybe it's a 1.9 think. I work on 2.0
bgordon86: ah ok
bgordon86: could be
MrPop: 2.0.0-p451 :008 > 0 + [3,7,34,8].sort.last(2).reduce(:+)
MrPop: => 42
MrPop: ooh
bgordon86: huh so does mine
MrPop: I see now, with an empty array
bgordon86: ah yea
MrPop: the hell
MrPop: I did this yesterday
bgordon86: array.empty? ? 0 : 0 + array.sort.last(2).reduce(:+)
MrPop: oh, wait
MrPop: Here we go
MrPop: I forgot the .to_i
MrPop: [].sort.last(2).reduce(:+).to_i
bgordon86: ah nice
bgordon86: because a nill to integer is 0
MrPop: Yup
MrPop: hm
MrPop: so is the 0 even needed?
MrPop: I guess not
bgordon86: nope
MrPop: :)
MrPop: Learning is fun
bgordon86: sure is
bgordon86: i would love to see how you handled the 3rd question to part 1
bgordon86: sum_to_n?
MrPop: array.combination(2).to_a.find { |e| e[0] + e[1] == n } ? true : false

« first day (14 days earlier)      last day (1122 days later) »