00:08
stevebresnick: Hi all, just got my VM set up and I'm psyched to learn Ruby on Rails! Anyone else out there have prior experience with CakePHP?
sampriti: If you have ubuntu 13.10, you dont need to install the vm there is a script you can run to set your instance up for the course: raw.githubusercontent.com/saasbook/courseware/master/vm-setup/…
01:35
binarypulsar: mateu: Great you ported rotten potatoes to 4.0! What is the best way for me to get a copy from github? Just download the zip? I use Eclise and Aptana Studio Web View for Rails development. Can I just unzip it and import it as a project file?
02:05
Sydharth: I just installed the VM on a Virtual Box on my computer. It's really very slow .. is this normal ?
jeremybanks: @Sydharth Not neccessarily, but possibly. It depends on how powerful your system is, and how many resources have been allocated for the VM.
jeremybanks: How much RAM do you have, and how much has been allocated for the VM? (This might be a default value, rather than one you specified yourself, but I’m not currently running VirtualBox so I can’t confirm.)
nelsonjfr: That zip file is downloading painfully slow. Is there another place where to get it from?
jeremybanks: @nelsonjfr There is also a torrent, but I wouldn’t neccessarily expect it to be any faster, if it’s even being seeded at all. edx-cs169-1x.stackexchange.com/q/62/174
jeremybanks: @Sydharth Ah, 1GB for the VM could be a bit slow. If you didn’t need to be running much else at once, things would probably be noticably better if you gave it 2GB.
nelsonjfr: saasbook.info/bookware-vm-instructions . Perhaps best to download the Ubuntu image. Does it matter what version and architecture?
wspicer: Sydharth: I found it also too slow to use, so I setup Lubuntu as a VM using the configure script. It took a long time to setup, ~5hours, but the result is a speedy system that had compiled components making all the different. I find I'm doing all my browsing in the VM, even this chat ;)
Sydharth: Thanks Jeremy, I'll try and re-create the VM. Unfortunately there doesn't seem to be an easy way to increase the resources allocated at this point
jeremybanks: @Sydharth Hmm, it looks like you’re supposed to be able to change the RAM when the instance it shut down, without needing to create a new one.
binarypulsar: mateu: tried to use your migration of rottenpotatoes to Rails 4.0 and have errors when running rails server. Error was with installing pg (0.17.1).
wspicer: Sydharth: the terminal program alone was taking 30 s to load. Now with it's new VM it's 2 s. Also I'm only using 1.5 MB of RAM
Sydharth: Yes, even after I got the terminal to load, it took about 3 secs for the prompt to come back when I typed in "ls"
Sydharth: OkThanks Jeremy and wspicer .. I'm going to play around with this VM a little, give it a little more RAM and see how it turns out.
wspicer: I really think it's a canard to need more and more resources, it's about better code. The Lubuntu project is meant as a lightweight yet still based on Ubuntu. So there is the option of downloading the Lubuntu iso, and using VBox to run it, but again, it takes a while to get it to the same software as the regular VM. YMMV, for me it was worth it
jeremybanks: @nelsonjfr The course’s documentation recommendeds 11.10 32-bit; I imagine this is what the VM image uses. That’s probably a safe choice. It’s officially considered an out-of-date version of Ubuntu, and it’s possible that the course might start recommending a newer version instead, but I don’t think you’d have much to worry about if you were still using 11.10.
jeremybanks: @wspicer Thanks for the correction. I wonder why the documentation recommends a different version.
wspicer: jeremybanks: I don't think it has been updated as often. Considering how ruby, rvm, and rails works it doesn't really matter what version as long as the software is there
wspicer: I can appreciate the VM build having now setup a VM from scratch, but the benefit to me is that I'm on 14.04 LTS
JakeTheAndroid: try installing it this way, if it doesn't work we will simply apt-get postgres: gem install pg -- --with-pg-config=/usr/pgsql-9.3/bin/pg_config
JakeTheAndroid: binarypulsar: if not do this: sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3
BrianPatterson2013_: Hey everybody, I have a question. I'm sorry if I'm interrupting or something. Do any of you know if harvardx CS50 will have adequately prepared me for this course?
nelsonjfr: Even the torrent is coming very slow...anyway, Will probably get Ubuntu 14.04 LTS and play with it and build with the script. Thanks
wspicer: BrianPatterson2013_: that's a nice course, as it's not date restricted. If you've gone through that I think you'll enjoy Ruby and do very well
BrianPatterson2013_: Awesome. Thanks! I'm currently working on my final project for that course, and intend to do the last part and this course in tandem.
BrianPatterson2013_: Another quick question. So far, CS50 has taught me little about object-oriented programming. I know ruby involves objects, do you think this course will catch me up on the object oriented style?
wspicer: BrianPatterson2013_: hmm it's looks pretty good. Might be a great idea to take it in tandem as well ;)
wspicer: BrianPatterson2013_: yes. Ruby is a real OOP style language, everything is a method. While it only has single inheritance I think you'll enjoy the differences
BrianPatterson2013_: Great, because that, agile, and software testing are the three biggest things I feel like I'm missing from my CS skills.
wspicer: BrianPatterson2013_: I'd recommend looking at Rubymonk website to get a headstart on Ruby, I like that better than the codeacademy one, but either will help along the OOP style of thinking
BrianPatterson2013_: Also, wspicer, as for CS50, if you've taken any introductory CS class, most of it will be review. The new things I learned were memory management, pointers, and some web dev stuff, as I had previously taken a software dev course in Java.
BrianPatterson2013_: Great, well thanks for answering my question. i'm going to get crackin' on getting the VM figured out
tracyjeannine: If we're planning to use a VM do we need to do the Oracle Vbox + Amazon EC2, or is it one or the other?
tracyjeannine: I guess if we do both that means we can run our code on 2 different VMs at the same time?
JakeTheAndroid: tracyjeannine: since your VM is located on your machine, you cannot access it from anywhere. the EC2 means you can access it anywhere you have internet
tracyjeannine: Yes, but if the Oracle Vbox is on my machine, I can access it anywhere I have my machine, which I plan on doing all my coursework on my Mac Air, so this works for me.
tracyjeannine: I would love to dig into setting up EC2 at some point, but will wait on this if not needed now :)
JakeTheAndroid: tracyjeannine: understandable. each option works different for everyone. keep in mind that your VM will run slow, and a MBA is limited on processing power. So expect to take some performance hits.
JakeTheAndroid: but a Mac Book Air is still not the ideal machine for running VM's. But for the purposes of this course a VM will likely be fast enough.
JakeTheAndroid: my old MBA would run super hot and slow when running VM's. general programming was fine, but trying to use a VM as a normal computer was very poor.
wspicer: beats mine yet because I did a VM from scratch it'll run faster. I know the class wants to get as many people running as possible but ironically it may not with an average VM
JakeTheAndroid: I used to do a lot of information security work, and I had to upgrade because I could not do proper pen testing against VMs on the Air.
JakeTheAndroid: but I imagine you are correct in that the hardware is fine enough to handle this course.
jeremybanks: I had a pretty recent MacBook Air (8GB RAM) which I’ve used to run a VM for moderate development for quite a while, and the performance was reasonable.
wspicer: I see. I like penable computers, so I've used Lenovo and now on a HP. I tend to be stuck with 2008-2009 computers but they perform ok when used with compiled software
JakeTheAndroid: wspicer: I have a few systems, but my daily computer is a MacBook Pro with Arch on it and 8GBs of RAM. seems to be doing well.
wspicer: I miss the thinkpad keyboards. My X61 was actually not as wide a keyboard yet still managed to type well with my large hands
wspicer: only downfall was the screen. For a tablet pc I write a lot on it and etched out a lot of the surface but other than that it was great
wspicer: next tablet pc will probably be a used samsung series slate, with is basically the screen half of a laptop with a pen! I'm liking Moore's Law
03:37
binarypulsar: JakeTheArnold: I was able to install PostgreSQL 9.3 and did bundle install to install the necessary 4.0 gems. I ran rails server and got movies to display on 0.0.0.0:3000/movies but I get an SQLite3::SQLException: no such table: movies: SELECT "movies".* FROM "movies" error. Do I need to install dsatabase tables?
04:10
mateu: binarypulsar: i don't recommend using a version of ruby/rails different from the course unless you're quite comfortable doing (possibly a lot of) work on your own (to bridge the differences)
binarypulsar: mateu: Of course db:migrate Thanks. Works now. I don't mind working in 4.0 if there are others in the same boat I can interact with. I know a lot of gems have been depricated from 3.2.16. I guess the autograder won't have 4.0 capability.
agbanagba: in my case, the still loading icon appears but dissapears after it finishes the loading process.
binarypulsar: mateu: Since Rails is just a gem, could I also install Rails 3.2.16? Will I have to install Ruby 1.9? I have rvm installed. Will that help me switch between different Ruby and Rails. I take the Coursera Web Application Architecture I and II classes which uses Rails 4.0 and Ruby 2.1.1
wspicer: binarypulsar, this keeps it separate from the system ruby interpreter, then the rest is normal bundler/gemsets
binarypulsar: wspicer: I currently have Ruby 2.1.1 and Rails 4.0 installed. Should I use RVM to install Ruby 1.9.2 and Rails 3.2.16? If I do this will I still need the VM?
wspicer: binarypulsar, if you're on a system that has all the software already then you don't need the VM. Are you on Linux? Otherwise you might consider it if space and memory are in surplus. Either way, yes, you can manage it with RVM install of Ruby 1.9.3 and gemsets for rails 3.2.16
wspicer: binarypulsar, the point of any VM especially in a course if for everyone to have a system that people can help you with. If it's too divergent then support may be harder to come by
zkay: I always pictured it like a rosary bead, but instead of a physical object I guess it is 'a story, dialogue, question, or statement which is used to provoke doubt and test a student's progress'
wspicer: zkay, yeah it's just a choice of word that gets me. More like ruby breadcrumbs but it needes a shi shi fu fu sounding name...
binarypulsar: wspicer: Ok I will give it a try. Thanks again to you, JakeThe Android and especially mateau for porting rottenpotatoes to 4.0!
wspicer: binarypulsar, 4.0 ports are a good thing afterwards but probably won't help in class as 3.2 has different needs than 4.0 . The point is to learn and the material is a process in that learning
wspicer: I'll just have to get used to koans and the groans in the cones in my brain will have to own up to the new koans
binarypulsar: wspicer: Understand. One more question. I am running on Linux Mint 14 Nadia 64 bit and use Eclipse with Aptana Studio Web View for Rails development. Can I use this environment for both versions of Ruby and Rails? Currently I use it with Ruby 2.2.1 and Rails 4.0.0.
wspicer: binarypulsar, don't know. Rails development is more common from CLI and simple editors versus suites. I think though that RVM setup from the CLI will affect the Aptana Studio and can thus make it look like two or more types of rails projects.
1 hour later…
07:00
07:18
FrankPezzella: I've set up the VM as in the video but then when i run "rails server" on the rottenpotatoes folder i got an error "Could not find the gem therubyracer"
charle5: i don't know of any class requirement about updates but regularly updating is generally considered a best practice. so i would do it :)
axilleas: tip about bundle install: if you run a version greater than 1.5.2 (check with
bundel -v
) you can pass the jX flag, where X the number of your processors+1
2 hours later…
10:12
10:25
Dante0: if nothing works; just do a "mkdir test"; "cd test"; "git clone github.com/saasbook/courseware';; then in that do a "cd courseware/vm-setup/rottenpotatoes"; "bundle install"; "rails s"
Wafic: is it mandatory to donaload the virtual machine ? i can install ruby on rails , i already have a working ubuntu i use for android ...
11:00
JamesShaker: I'm using VMWare for another course and would prefer to not have to install a second piece of software
joaopereira: do a "bundle install" in the folder and if everything goes alright you can pass to the ruby training
Dante0: you check if everything is going sharp by running ruby server "ruby s" and then open browser and localhost:3000
ricardoempis_: hello, i've only joined the course now, and can't find the location of the VM file now. It is no longer provided in saasbook.info/bookware-vm-instructions ...
anjan9: @Dante0 I know that but till what topic should I do, when they say 1-10? Should i do till Hashes ??
11:54
webgen: hello guys! can anyone briefly tell me if it is a must to download the image? what if I use my current setup ?
joaopereira: Hello webgen, it is not a must to donwload the image, but if you are new to ruby or linux it is advised
webgen: joaopereira: well I am quite new but let me explain what I have, basically ruby 2.1.0 and ruby 4.0.something, do I need anything else? oh and also the mysql connection
12:38
joaopereira: from what i have seen RVM should allow you to have multiple sets of gems and also multiple versions of Ruby, not sure how well does it play with the vm-setup scripts that were created for the course
« first day next day → last day (1136 days later) »