ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
wyhaines has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
ulisescab has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
slyphon_ is now known as slyphon
voker57 has quit [Read error: Operation timed out]
nertzy2 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
nertzy has quit [Ping timeout: 246 seconds]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
stardiviner has joined #ruby-lang
jtoy has joined #ruby-lang
outoftime has quit [Quit: Leaving]
erichmenge has quit [Quit: Be back later]
jtoy has quit [Quit: jtoy]
<epitron> bcardarella: for all your removal needs! https://github.com/epitron/epitools/blob/master/lib/epitools/minimal.rb#L53
Madis has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0/20120830123745]]
nitti has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
erichmenge has joined #ruby-lang
woollyams has joined #ruby-lang
nitti has quit [Ping timeout: 246 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
<swarley> Does anyone else have a problem compiling rice?
justinmcp has joined #ruby-lang
fameoflight has joined #ruby-lang
nertzy2 has quit [Quit: This computer has gone to sleep]
kurko_ has joined #ruby-lang
nertzy2 has joined #ruby-lang
fameoflight has quit [Ping timeout: 245 seconds]
justinmcp has quit [Remote host closed the connection]
Kingy has quit [Quit: Leaving]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
kentos has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
roadt_ has joined #ruby-lang
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ulisescab has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
wyhaines has joined #ruby-lang
wmoxam has joined #ruby-lang
mfn has quit [Ping timeout: 246 seconds]
zspencer has joined #ruby-lang
ddd has joined #ruby-lang
HikkiJP has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
m3nd3s has quit [Ping timeout: 252 seconds]
fbernier has quit [Read error: Connection reset by peer]
fbernier has joined #ruby-lang
dous has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
thevaw_2 has joined #ruby-lang
thevaw_2 has quit [Client Quit]
nitti has joined #ruby-lang
nertzy2 has quit [Quit: This computer has gone to sleep]
erichmenge has quit [Quit: Be back later]
nitti has quit [Ping timeout: 246 seconds]
kentos has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
erichmenge has joined #ruby-lang
kurko_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
japhb has quit [Remote host closed the connection]
swarley has quit [Read error: Operation timed out]
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
nertzy2 has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
HikkiJP has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
bhrgunatha has joined #ruby-lang
HikkiJP has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
bhrgunatha has quit [Client Quit]
bhrgunatha has joined #ruby-lang
bhrgunatha has quit [Client Quit]
kurko_ has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby-lang
kurko_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sandbags has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 246 seconds]
bhrgunatha has joined #ruby-lang
bhrgunatha has quit [Client Quit]
kurko_ has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
WillMarshall has joined #ruby-lang
nitti has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
robbyoconnor has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
nertzy2 has quit [Quit: This computer has gone to sleep]
CrazyHorse18 has joined #ruby-lang
<CrazyHorse18> hey guys.. i've been trying to debug an error in capistrano for ages and i can't work it out. The issue ends up in net/ssh with net-ssh-2.6.1/lib/net/ssh/ruby_compat.rb:41:in `select': closed stream (IOError)
<CrazyHorse18> i've checked every google post regarding this error and i can't work out why it won't work. I've manually tested the commands capistrano is running and it works
<CrazyHorse18> so i'm guessing it has to be some issue with Net-SSH and/or with capistrano or my configuration
<CrazyHorse18> any ideas on what i can try next?
r0bby has joined #ruby-lang
ryanlecompte has joined #ruby-lang
jxie has quit [Quit: leaving]
robbyoconnor has quit [Ping timeout: 276 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
uuair has joined #ruby-lang
jxie has joined #ruby-lang
mfn has joined #ruby-lang
r0bby_ has joined #ruby-lang
CaptainJet has quit []
r0bby has quit [Ping timeout: 246 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
Nisstyre has quit [Ping timeout: 272 seconds]
nitti has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
nitti has quit [Ping timeout: 246 seconds]
Nisstyre has joined #ruby-lang
therod has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
r0bby_ has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
r0bby_ has joined #ruby-lang
DefV has quit [Ping timeout: 260 seconds]
kke has quit [Ping timeout: 244 seconds]
perryh has quit [Excess Flood]
therod has quit [Quit: Linkinus - http://linkinus.com]
therod has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
perryh has joined #ruby-lang
Jan_ has joined #ruby-lang
Jan_ is now known as Guest4503
kke has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
VGoff is now known as VGoff_afk
r0bby_ has quit [Ping timeout: 248 seconds]
spuk has quit [Ping timeout: 252 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
perryh has quit [Excess Flood]
HikkiJP has joined #ruby-lang
lun_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
perryh has joined #ruby-lang
spuk has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nitti has joined #ruby-lang
uuair has quit [Ping timeout: 260 seconds]
nitti has quit [Ping timeout: 260 seconds]
uuair has joined #ruby-lang
ryanlecompte has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby-lang
savage- has joined #ruby-lang
ryanlecompte has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
burgestrand has joined #ruby-lang
roadt_ has quit [Ping timeout: 246 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
chendo_ has quit [Ping timeout: 245 seconds]
HikkiJP has joined #ruby-lang
Aria has quit []
chendo_ has joined #ruby-lang
<epitron> CrazyHorse18: do you have ruby's ssl library installed?
<epitron> can you ssh to your server with the credentials you gave capistrano?
<CrazyHorse18> yeah i can
<CrazyHorse18> actually which server? the repository server
<epitron> "closed stream" means the socket that net-ssh is using is closed
<CrazyHorse18> or or the staging?
<epitron> which, i'm guessing, is being caused by not being able to connect to your ssh server
<CrazyHorse18> i can ssh locally into both just with ssh key
<epitron> possible causes: network issue, authentication issue, ssl library issue
<CrazyHorse18> and i can ssh onto staging and then onto repo
<CrazyHorse18> if it's an ssl library issue
<CrazyHorse18> what would be the fix for that?
<epitron> hmm
<epitron> can you require 'openssl' in irb?
<CrazyHorse18> as far as networking goes.. ssh -> staging (works, with password and key) ssh -> repo (works, with password and key) ssh -> staging -> repo (with forward key works) ssh -> staging -> repo (with password works)
<CrazyHorse18> yes i can
<epitron> go read the docs for net-ssh
<epitron> see if you can connect in irb
<CrazyHorse18> to which server?
<CrazyHorse18> from staging to repo?
<epitron> are you running "cap" from your machine?
nitti has joined #ruby-lang
yxhuvud has joined #ruby-lang
krz has joined #ruby-lang
<CrazyHorse18> epitron: yeah
<CrazyHorse18> from my local machine
<epitron> so the ssh connection that cap initiates is from your local machine to the server
<CrazyHorse18> yeah but that must work
<CrazyHorse18> otherwise it wouldn't be able to run commands remotly
<CrazyHorse18> it's connecting to staging
<CrazyHorse18> it's after that i get that error
<epitron> i thought you said it died with an IOError
fsvehla has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
<CrazyHorse18> check this out
<CrazyHorse18> iv'e turned on ssh debugging .. so that's all that other stuff
siyusong has quit [Quit: Computer has gone to sleep.]
siyusong has joined #ruby-lang
justinmcp has joined #ruby-lang
<epitron> so, notice this --
<epitron> I, [2012-10-21T16:00:32.712452 #82140] INFO -- net.ssh.connection.session[80ddc478]: channel_eof: 0
<epitron> after which, it gets an IOError when it tries to select it
woollyams has quit [Ping timeout: 265 seconds]
uuair has quit [Ping timeout: 268 seconds]
<epitron> your ssh connection is disconnecting for some reason
<epitron> it happens after "sending channel request 'exec'"
<epitron> is your cap script configured to exec the right thing?
<erikh> shouldn't matter I don't think
<erikh> CrazyHorse18: do you have access to edit /etc/ssh/sshd_config on the target machine?
<erikh> anyhow, if/when you get this, try editing or adding "LogLevel VERBOSE" into that file, and restart sshd.
Mon_Ouie has quit [Ping timeout: 246 seconds]
<erikh> if nothing else, it should tell you why your request was rejected
<CrazyHorse18> soryr back
<erikh> note there are more verbose LogLevels, but that's the lowest one that won't spit passwords out in plaintext to your logs.
<erikh> `man sshd_config` for more info.
uuair has joined #ruby-lang
<erikh> your logs will likely be in /var/log/auth.log or /var/log/syslog depending on how your logging is configured.
<CrazyHorse18> do i have to restart sshd for that to work?
<erikh> yes, likely. it shouldn't disconnect anyone.
<erikh> what OS are you on?
<CrazyHorse18> ubuntu
<erikh> sudo service ssh restart
<CrazyHorse18> oh this is on the remote server
<erikh> yes
vlad_starkov has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<CrazyHorse18> ok done that
<CrazyHorse18> running cap again
<erikh> be sure to look at the logs on your remote machine
<erikh> I will note that the default for PermitRootLogin is no, which is poorly reflected in your file there.
sush24 has quit [Quit: This computer has gone to sleep]
<erikh> anyhow, it doesn't sound like that's the problem anyhow. the logs will probably tell us in a minute regardless :)
vlad_starkov has quit [Ping timeout: 260 seconds]
sush24 has joined #ruby-lang
sush24 has quit [Client Quit]
Averna has joined #ruby-lang
uuair has quit [Ping timeout: 268 seconds]
uuair_ has joined #ruby-lang
<CrazyHorse18> sorry 3rd time lucky https://gist.github.com/c657e1a1e73158fa1a8c
_tca has left #ruby-lang [#ruby-lang]
<CrazyHorse18> erikh: still around?
<erikh> yeah
<erikh> sec
<erikh> hmmmm
<CrazyHorse18> hmmmm :/
savage- has quit [Remote host closed the connection]
<erikh> CrazyHorse18: ok, at this point I'm genuinely not sure, although I seem to recall verbose logging to be a little more verbose than that
<CrazyHorse18> ah really
siyusong has quit [Quit: Computer has gone to sleep.]
<CrazyHorse18> is it possible that config option hasn't kicked in?
<erikh> you restarted sshd right?
<CrazyHorse18> yeah
vlad_starkov has joined #ruby-lang
<CrazyHorse18> ~$ sudo service ssh restart
<CrazyHorse18> ssh start/running, process 25097
<CrazyHorse18> from my log
fsvehla has quit [Quit: fsvehla]
<erikh> right
<erikh> what does the sshd_config look like on that server? was that the gist you gave above?
<CrazyHorse18> yeah
<CrazyHorse18> except now i have
<CrazyHorse18> verbose
mytrile has joined #ruby-lang
<erikh> "LogLevel VERBOSE" ?
perryh has quit [Excess Flood]
perryh has joined #ruby-lang
uuair has joined #ruby-lang
<CrazyHorse18> yeah
<CrazyHorse18> LogLevel VERBOSE
uuair_ has quit [Ping timeout: 256 seconds]
<erikh> weird. are you looking in auth.log or syslog or both?
<CrazyHorse18> that's just auth.log
<CrazyHorse18> syslog has nothing ssh related in it
Assurbanipal has joined #ruby-lang
<erikh> how odd. well, your connection is definitely getting interrupted for some reason.
<CrazyHorse18> https://gist.github.com/6d7708143ff685e64118 << and there aren't any other interesting looking log files in here
<CrazyHorse18> hmm
uuair has quit [Quit: uuair]
<erikh> humor me and peek at daemon.log
<CrazyHorse18> but it's itneresting that i can run ssh manually and it works
<erikh> oh, it definitely is interesting.
areil has joined #ruby-lang
jmeeuwen_ has joined #ruby-lang
<erikh> hm
<erikh> why is telnet running
<erikh> I don't want to get off topic but that's kind of one of those things you just don't turn on
<CrazyHorse18> fuck knows
<CrazyHorse18> hacked
<CrazyHorse18> i'm guessing
ericwood has quit [Ping timeout: 246 seconds]
<erikh> well, don't guess, know.
<erikh> anyhow, you really have two roads from here
jmeeuwen has quit [Ping timeout: 276 seconds]
dRbiG has quit [Ping timeout: 276 seconds]
jmeeuwen_ is now known as jmeeuwen
ericwood has joined #ruby-lang
<erikh> 1) Enable DEBUG or lower loglevel (which will expose lots of stuff you really don't want in your logs), or 2) take what you have to the net-ssh people
rippa has joined #ruby-lang
<erikh> I don't think I can really offer any help beyond this
<erikh> if your box is compromised, there could be other things going on as well.
<CrazyHorse18> yeah
<CrazyHorse18> i'm thinking that
<CrazyHorse18> :(
<erikh> but again, be absolutely sure that's the case
<CrazyHorse18> it did get hacked 3 months ago
<CrazyHorse18> but i thought i plugged everything up
dRbiG has joined #ruby-lang
<erikh> some advice from a crusty old admin: the only way you "plug everything up" is with an install disc and a copy of mkfs.
<CrazyHorse18> yeah
<CrazyHorse18> i think i'll try and setup a new vps now
<CrazyHorse18> :(
<CrazyHorse18> oh well, no sleep tonight
<CrazyHorse18> :)
<CrazyHorse18> haha
<erikh> be sure first.
<CrazyHorse18> thanks for all your help
<erikh> can't emphasize this more than I am.
<CrazyHorse18> i'm certain it got hacked
<CrazyHorse18> last time
workmad3 has joined #ruby-lang
<CrazyHorse18> and if i'm getting telnet sessions today
<CrazyHorse18> then it means it's still open
VGoff_afk is now known as VGoff
<erikh> what inetd do you run?
<erikh> (it should be in your process list)
<CrazyHorse18> nginx
<erikh> that's your web server.
nitti has joined #ruby-lang
<CrazyHorse18> erm ..
<erikh> what version of ubuntu are you on?
<CrazyHorse18> root 1583 0.0 0.0 1956 716 ? Ss Sep07 0:01 /usr/sbin/inetd
dr_bob has joined #ruby-lang
<erikh> ah, good, not xinetd probably
<CrazyHorse18> Ubuntu 10.04.1 LTS
<erikh> the file you want to edit is /etc/inetd.conf most likely. open it up and comment out anything that has the word "telnet" in it.
vlad_starkov has quit [Remote host closed the connection]
<erikh> then restart inetd.
<CrazyHorse18> i don't need that server
<CrazyHorse18> so i'm just going to shut it down
<CrazyHorse18> and set up a new one
<erikh> ok.
<CrazyHorse18> it will be better anyway
<erikh> anyhow, I need to get to bed
<erikh> good luck.
<CrazyHorse18> because i can upgrade ruby/postgres etc
<CrazyHorse18> thanks for the help erikh!
<CrazyHorse18> hey
nitti has quit [Ping timeout: 246 seconds]
<CrazyHorse18> before you go
<CrazyHorse18> just tested our production server.. identical setup.. same error
<CrazyHorse18> but they both got hacked .. so who knows
rolfb has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
<erikh> well, there are tools out there that can help diagnosing these things.
<yorickpeterse> Morning lads
<erikh> CrazyHorse18: anyhow, if you want to be sure(r), I'd look into chkrootkit and tiger. both should be available via apt-get.
<erikh> both are also notoriously good at delivering false positives, so don't jump to conclusions if it says you have a problem; follow up on it.
<CrazyHorse18> ah right yeah
<CrazyHorse18> problem is ive been so overloaded of work, i didn't spend the time to lock the server down properly
<CrazyHorse18> which unforutnatly has even casued even more work
rue|w has joined #ruby-lang
<CrazyHorse18> i really want to setup a full server with chef / apparmor / directory permissions / separated users for every application etc
<CrazyHorse18> but just haven't got around too it
thone_ has joined #ruby-lang
<erikh> it happens to everybody. the important thing is how you deal with it when it does.
<erikh> and by everybody I really mean everybody. this is something even the biggest sites deal with from time to time.
thone has quit [Ping timeout: 268 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 246 seconds]
siyusong has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
vmoravec has quit [Remote host closed the connection]
HikkiJP has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
lun_ has quit [Remote host closed the connection]
solars has joined #ruby-lang
fsvehla has joined #ruby-lang
cosah has joined #ruby-lang
lun_ has joined #ruby-lang
AnarchoTroll has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
nitti has joined #ruby-lang
fsvehla has quit [Read error: Connection reset by peer]
lun_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
dc5ala has joined #ruby-lang
fsvehla has joined #ruby-lang
blacktulip has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Remote host closed the connection]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
sush24 has joined #ruby-lang
cyri_ has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
hachiya has quit [Ping timeout: 245 seconds]
cosah has quit [Ping timeout: 276 seconds]
fsvehla has quit [Read error: Connection reset by peer]
hachiya has joined #ruby-lang
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
sush24 has joined #ruby-lang
coffeejunk has quit [Read error: Connection reset by peer]
coffeejunk has joined #ruby-lang
sepp2k has joined #ruby-lang
toretore has joined #ruby-lang
robotmay has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
HikkiJP has quit [Read error: Connection reset by peer]
WillMarshall has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 260 seconds]
HikkiJP has joined #ruby-lang
dhruvasagar has joined #ruby-lang
shtirlic has joined #ruby-lang
justinram has joined #ruby-lang
zz_chrismcg is now known as chrismcg
nitti has joined #ruby-lang
nitti has quit [Ping timeout: 246 seconds]
Averna has quit [Quit: Leaving.]
workmad3 has joined #ruby-lang
kain has joined #ruby-lang
futurechimp has joined #ruby-lang
d3vic3 has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
runeb has joined #ruby-lang
HikkiJP has joined #ruby-lang
jamjam has joined #ruby-lang
kitallis has joined #ruby-lang
CrazyHorse18 has quit [Quit: Leaving.]
kain has quit [Quit: exit]
<andrewvos> Are we talking about Herpes?
irleif has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
nitti has joined #ruby-lang
Guest4503 has left #ruby-lang [#ruby-lang]
therod has quit [Quit: Leaving...]
DefV has joined #ruby-lang
vlad_starkov has joined #ruby-lang
nitti has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
corsican has quit [Ping timeout: 260 seconds]
<masterkorp> lol
irleif has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
ruby-lang570 has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
x0F_ is now known as x0F
hachiya has quit [Ping timeout: 252 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
ruby-lang570 has quit [Ping timeout: 245 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
hachiya has joined #ruby-lang
anannie has quit [Ping timeout: 256 seconds]
CrazyHorse18 has joined #ruby-lang
anannie has joined #ruby-lang
CrazyHorse18 has quit [Ping timeout: 255 seconds]
CrazyHorse18 has joined #ruby-lang
jamjam has quit [Ping timeout: 272 seconds]
kain has joined #ruby-lang
jayeola has joined #ruby-lang
rmascarenhas has joined #ruby-lang
<jayeola> hey all. how does one find out what a gem does before installing it? is there a gem equivalent of "yum info blah"?
<andrewvos> haha
<andrewvos> Why would you be installing it if you don't know what it does :)
jbsan has quit [Quit: JB.. OUT!]
jbsan has joined #ruby-lang
<ddd> gem search gemname -dr
<ddd> -d means description, -r means remote (versus being local on your machine)
<jayeola> thanks.
<ddd> np
gix has quit [Ping timeout: 245 seconds]
<jayeola> example. i could write my own ruby equivalent of "which" or i could see what is available in gems ;-)
* jayeola is lazy
<andrewvos> jayeola: There is a `gem which`
<andrewvos> jayeola: But what are you really trying to do?
<ddd> the command i gave only searches for the text you gave it in the gem name itself. nothing else
ananna has joined #ruby-lang
<jayeola> there seem to be a few "whiches", (geddit?). i think that i am sorted now
<ddd> andrewvos: i think he's trying to see if something like which_works exists before attempting to write his own (or to grab it and see how *they* did it)
nitti has joined #ruby-lang
<jayeola> uh-huh
<burgestrand> Huh, given that both description and summary of gems are usually added to the gems you’d think there’s a command to show that information
anannie has quit [Ping timeout: 272 seconds]
<ddd> burgestrand: yeah that would be nice
<burgestrand> I couldn’t find one in gem help commands though.
<burgestrand> You can get the gem specification out as YAML though ^.-
gix has joined #ruby-lang
cardoni has joined #ruby-lang
<ddd> hehe yeah but you don't want to be doing that even on 30 gems returned for say 'which' ;)
<jayeola> aha!
vlad_starkov has joined #ruby-lang
<ddd> sorry couldn't resist recycling the whiches
nitti has quit [Ping timeout: 246 seconds]
<andrewvos> Burn the which!
<andrewvos> I'll just get my coat.
<jayeola> ain't nothing but me and my witches up in here ;-)
vlad_starkov has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
kurko_ has joined #ruby-lang
msch has quit [Ping timeout: 265 seconds]
woollyams has joined #ruby-lang
HikkiJP has quit [Quit: .•«UPP»•.]
LanceHaig has left #ruby-lang ["Leaving"]
irleif has quit [Quit: Computer has gone to sleep.]
m3nd3s has joined #ruby-lang
robotmay has quit [Ping timeout: 246 seconds]
kurko_ has quit [Ping timeout: 264 seconds]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
kurko_ has joined #ruby-lang
therod has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
rue|w has quit [Read error: Operation timed out]
^sandbags^ has quit [Ping timeout: 252 seconds]
msch has joined #ruby-lang
m3nd3s has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
therod has quit [Client Quit]
kurko_ has joined #ruby-lang
philiphale has joined #ruby-lang
_dumfries has quit [Quit: ZNC - http://znc.sourceforge.net]
jbsan has quit [Ping timeout: 252 seconds]
m3nd3s has quit [Ping timeout: 246 seconds]
rue|w has joined #ruby-lang
_dumfries has joined #ruby-lang
irleif has joined #ruby-lang
justinmcp has quit [Ping timeout: 256 seconds]
gsav has joined #ruby-lang
rue|w has quit [Ping timeout: 244 seconds]
justinmcp has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
robotmay has joined #ruby-lang
kurko_ has joined #ruby-lang
kurko_ has quit [Read error: Connection reset by peer]
irleif has quit [Quit: Computer has gone to sleep.]
rue|w has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
robotmay has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
kurko_ has joined #ruby-lang
robotmay has joined #ruby-lang
kurko_ has quit [Read error: Operation timed out]
kurko_ has joined #ruby-lang
robotmay has quit [Ping timeout: 246 seconds]
nitti has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
kitallis has joined #ruby-lang
sailias has joined #ruby-lang
vlad_starkov has joined #ruby-lang
nitti has quit [Ping timeout: 246 seconds]
kurko_ has quit [Ping timeout: 245 seconds]
mwjcomputing has joined #ruby-lang
kurko_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
lcdhoffman has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
Uranio has joined #ruby-lang
robotmay has joined #ruby-lang
sailias has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
erichmenge has joined #ruby-lang
gnufied has quit [Client Quit]
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
erichmenge has quit [Quit: Be back later]
kitallisii has joined #ruby-lang
kitallis has quit [Ping timeout: 246 seconds]
erichmenge has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
robotmay_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
robotmay has quit [Ping timeout: 246 seconds]
fbernier has quit [Read error: Connection reset by peer]
nettsundere has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
kingcrawler has joined #ruby-lang
kingcrawler has quit [Client Quit]
<Uranio> where could I read about Ruby Regexp
woollyams has quit [Client Quit]
<matti> Uranio: ruby-docs web site.
<matti> Uranio: And Google for Rubular.
<Uranio> rubular?! O_o
<Uranio> I'm looking for ruby-doc but don't see where
CrazyHorse18 has quit [Ping timeout: 252 seconds]
nettsundere has joined #ruby-lang
<Uranio> yeah I get both with google :D
<Uranio> matti: thanks, just was need a "way"
<matti> ;]
philiphale has left #ruby-lang [#ruby-lang]
<Uranio> look like very complete for reference
kurko_ has quit [Ping timeout: 245 seconds]
robotmay has joined #ruby-lang
krz has quit [Quit: krz]
kurko_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
robotmay_ has quit [Ping timeout: 246 seconds]
slyphon has quit [Ping timeout: 245 seconds]
<rolfb> having some problems finding an excel lib i like. anyone have any favorites?
nettsundere has quit [Ping timeout: 264 seconds]
robotmay has quit [Read error: Connection reset by peer]
mistym has quit [Read error: Connection reset by peer]
robotmay has joined #ruby-lang
lele|w has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
vlad_starkov has joined #ruby-lang
nitti has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 260 seconds]
<manveru> Uranio: that's like... ancient
<manveru> ruby has a whole new regex engine
<Uranio> let see...
nitti has quit [Ping timeout: 246 seconds]
<manveru> well, that's like regex 101
gsav has joined #ruby-lang
<manveru> anyway, if you don't need more, sure :)
<manveru> but ruby regexps are pretty much on par with perl now
<Uranio> that sound cool
<manveru> except for that part where you can put whole programs inside your perl regexps :)
nettsundere has joined #ruby-lang
<matti> Ohai manveru
mytrile has quit [Remote host closed the connection]
<manveru> hoi matti
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
nettsundere has quit [Ping timeout: 244 seconds]
<Uranio> I wonder how could be:
<Uranio> Perl is a [insert an adjetive] programing langague
cantonic_ has joined #ruby-lang
<Uranio> that adjetive... is... undescriptible
lcdhoffman has quit [Quit: lcdhoffman]
jgomez has joined #ruby-lang
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
philiphale has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
Artheist has joined #ruby-lang
slyphon has joined #ruby-lang
therod has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
nettsundere has joined #ruby-lang
justinseiter has joined #ruby-lang
philiphale has quit [Quit: Leaving.]
irleif has joined #ruby-lang
<Uranio> for make an IRC o jabber aplication, like a bot. Event programing would be great, so come my cuestion... is event programing supported on ruby?
<matti> Uranio: EventMachine
<Uranio> matti: :D you alawys with the precise and fast reply, you would ne named a "vanguard" in muy country
sailias has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<matti> LOL
<matti> Uranio: There are other frameworks too.
<matti> Uranio: EM is the most popular one.
benanne has joined #ruby-lang
<Uranio> but.. event machine look like what I looking for
* Uranio say sorry for the typo's error
slyphon has quit [Ping timeout: 245 seconds]
<matti> Uranio: No need to be sorry ;d
slyphon has joined #ruby-lang
aflynn_ has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby-lang
jbwiv has joined #ruby-lang
gsav has quit [Ping timeout: 248 seconds]
<andrewvos> Anyone know how I can do this pseudocode in rspec: "array.should include 1 or 2"
sduckett has joined #ruby-lang
mistym has quit [Remote host closed the connection]
CrazyHorse18 has joined #ruby-lang
<matti> andrewvos: include(1,2)?
<matti> Not remmeber.
<andrewvos> matti: That works? I try now.
corsican has joined #ruby-lang
<andrewvos> Please excuse Borat type sentence.
<matti> LOL
<matti> ;]
<matti> Haha
nitti has joined #ruby-lang
<andrewvos> matti: I'm guessing that syntax you mentioned is an AND not OR matcher.
<matti> Yeah.
CrazyHorse181 has joined #ruby-lang
CrazyHorse18 has quit [Read error: Connection reset by peer]
<burgestrand> andrewvos: would probably just do array.any? { |value| [1, 2].include?(value) }
<burgestrand> andrewvos: and test for the truth
<matti> burgestrand: He is looking at how to express this with Rspec DSL
<burgestrand> matti: I in-explicitly told him I don’t think there’s not necessarily a way to do it. (:
slyphon has quit [Ping timeout: 245 seconds]
<burgestrand> Wow, those negations went haywire.
<burgestrand> andrewvos: you could write your own matcher for it.
<burgestrand> array.should include_either(1, 2)
<matti> +1
CrazyHorse181 has quit [Ping timeout: 245 seconds]
futurechimp has quit [Ping timeout: 255 seconds]
<andrewvos> burgestrand: https://gist.github.com/3931616
<andrewvos> matti: ^
<andrewvos> That's how I ended up doing it
<andrewvos> content is an Array by the way.
<burgestrand> That's awfully far away from what I thought your problemspace really was
<Uranio> see the comment
CrazyHorse18 has joined #ruby-lang
CrazyHorse18 has quit [Max SendQ exceeded]
CrazyHorse18 has joined #ruby-lang
CrazyHorse18 has quit [Max SendQ exceeded]
irleif has joined #ruby-lang
mistym has joined #ruby-lang
CrazyHorse18 has joined #ruby-lang
<andrewvos> Uranio: What's that then?
rmascarenhas has quit [Ping timeout: 260 seconds]
futurechimp has joined #ruby-lang
mytrile has joined #ruby-lang
<crankharder> is there a more eloquent way of doing this: ["foo_bar", "foo_baz"].map{|a| a.match(/^foo_(.*)/) ; $1} => ["bar", "baz"]
outoftime has joined #ruby-lang
<Uranio> andrewvos: I beginer, I was traying get a qualification from you... I did try make something like you traying
<Uranio> puntation in 0..10 I get a -3
<andrewvos> I don't even know
erichmenge has joined #ruby-lang
<manveru> andrewvos: (array & [1,2]).size.should >= 1
AnarchoTroll has quit [Ping timeout: 246 seconds]
<manveru> crankharder: >> %w[foo_bar foo_baz].map{|s| s[/foo_(.*)/, 1] }
<andrewvos> manveru: I know how to do that, but I want nice error messages with rspec.
<matti> crankharder: ["foo_bar", "foo_baz"].map {|i| i.sub(/^foo_/, '') }
<matti> I wish Array had .sub/gsub :)
<matti> That takes block ;p
<manveru> there's .grep, but not much use here :P
<matti> Yeah
<manveru> anw, this is awesomely short if you compare it to what you'd do in java :)
<matti> Haha
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby-lang
<FiXato> matti, just add Array#sub yourself :) shouldn't be too hard ;-)
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<andrewvos> Let's not get me started on Java.
jcaudle has joined #ruby-lang
therod has quit [Quit: Linkinus - http://linkinus.com]
nettsundere has quit [Read error: Operation timed out]
<jMCg> I'm sending SIGABRT to a passenger instance, but all I can see in the backtrace is how the app(server) is building up to spitting out the stacktrace, which is not particularly useful to debugging... oh.. I should perhaps do this under load.
jcaudle has left #ruby-lang [#ruby-lang]
<whitequark> jMCg: what are you trying to debug?
carloslopes has joined #ruby-lang
<jMCg> A performance issue.
<jMCg> whitequark: kinda figures that such a thing is easier to debug when the application is actually under load, rather than sitting there doing nothing.
postmodern has quit [Quit: Leaving]
slyphon has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<jMCg> By "sitting there and doing nothing" I don't mean "it's blocked", but: "It's waiting for requests".
havenn has joined #ruby-lang
<jMCg> Sometimes I'm just being *that* stupid, until I actually utter my stupidity :C
Serial_Killer_C has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
methods has joined #ruby-lang
<burgestrand> andrewvos: custom matchers allow custom error messages.
<crankharder> manveru: where/how is Array#[regex] defined? dont see it here: http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-5B-5D
sush24 has quit [Client Quit]
<manveru> hm, good question
nettsundere has joined #ruby-lang
<crankharder> magic!
mistym_ has joined #ruby-lang
<manveru> crankharder: not magic
m3nd3s has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
Assurbanipal has quit [Quit: Konversation terminated!]
erichmenge has quit [Quit: Be back later]
dhruvasagar has quit [Ping timeout: 252 seconds]
<manveru> hm, maybe still magic :P
<manveru> damn
kitallisii has quit [Quit: Computer has gone to sleep.]
kitallis has joined #ruby-lang
kitallis has quit [Client Quit]
dhruvasagar has joined #ruby-lang
jayeola has quit [Quit: leaving]
Serial_Killer_C has joined #ruby-lang
davpoind has joined #ruby-lang
<manveru> can't even find it in the source
gsav has joined #ruby-lang
headius has joined #ruby-lang
gsav has quit [Client Quit]
facest has joined #ruby-lang
faces has quit [Ping timeout: 245 seconds]
justinseiter has quit [Ping timeout: 246 seconds]
gsav has joined #ruby-lang
erichmenge has joined #ruby-lang
nettsundere has quit [Read error: Operation timed out]
davpoind has left #ruby-lang ["Bye!"]
LanceHaig has joined #ruby-lang
davpoind has joined #ruby-lang
davpoind has quit [Client Quit]
davpoind has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
burgestrand has quit [Quit: Leaving.]
justinseiter has joined #ruby-lang
alexkira has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
imperator has joined #ruby-lang
CrazyHorse18 has quit [Quit: Leaving.]
Serial_Killer_C has quit [Remote host closed the connection]
jimmy1980 has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
rippa has joined #ruby-lang
nettsundere has joined #ruby-lang
corundum has quit [Read error: Connection reset by peer]
corundum has joined #ruby-lang
vlad_starkov has joined #ruby-lang
fletch_ has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
rue|w has quit [Ping timeout: 246 seconds]
jimmy1980 has quit [Ping timeout: 272 seconds]
jimmy1980 has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
vlad_sta_ has joined #ruby-lang
nettsundere has quit [Ping timeout: 260 seconds]
nitti has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
<jaimef> data_source.methods.grep(/^get_(.*)_info$/) { Computer.define_component $1 } # What is the $1 in this case? first argument to this method?
* jaimef should read more
Serial_Killer_C has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
Serial_Killer_C has joined #ruby-lang
dous has quit [Remote host closed the connection]
nitti has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
nettsundere has joined #ruby-lang
kurko_ has joined #ruby-lang
<erikh> jaimef: no, it's the capture group in the regexp in the grep
<erikh> corundum: quickref?
<erikh> jaimef: give that a gander.
<jaimef> what matches. like MatchData[0]?
<jaimef> corundum: thanks.
<erikh> MatchData[1] to be precise
<jaimef> prepping for a 2 hour ruby interview
<jaimef> k
<erikh> 0 is usually all the content that was matched, which is in $& IIRC
<erikh> (but I'd have to check myself)
lcdhoffman has joined #ruby-lang
<jaimef> quickref is nice
<jaimef> thanks
mytrile has quit [Remote host closed the connection]
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
joast has joined #ruby-lang
dpatel has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
kurko_ has quit [Ping timeout: 244 seconds]
Ethan has joined #ruby-lang
undersc0re97 has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
* imperator waves to erikh
philiphale has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
<whitequark> is there a way to match an exception object with rspec?
<whitequark> like raise_error, but without actually raising it
<whitequark> bonus points if it can match an entire array of those
m3nd3s_ has joined #ruby-lang
shtirlic has joined #ruby-lang
ryanlecompte has joined #ruby-lang
blazes816 has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
runeb has quit [Remote host closed the connection]
m3nd3s has quit [Ping timeout: 260 seconds]
ryanlecompte has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
mtparet has joined #ruby-lang
workmad3 has joined #ruby-lang
ryanlecompte has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<erikh> imperator: hi!
<erikh> whitequark: raises IIRC
<erikh> but it's been a while.
jtoy has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 245 seconds]
mtparet has quit [Client Quit]
<whitequark> erikh: well, there is except{}.to raise_error
<whitequark> but I need the obj.should be_exception AError, %r||
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
ttilley has joined #ruby-lang
lele has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
Austin__ has joined #ruby-lang
brianpWins has joined #ruby-lang
<zzak> be_a(Exception) ?
<whitequark> zzak: but I need to match the message too.
<erikh> whitequark: oh, like you have an exception object?
<whitequark> erikh: exactly
<erikh> hrm. i'm not sure about a specific matcher, but wouldn't the standard object matchers work?
<whitequark> erikh: I'd need then two of them
<erikh> e.should be_kind_of?(Exception)
<erikh> etc
<imperator> assert_raise(FooError, BarError){ ... } # so easy with tu2
<matti> Hi erikh
<erikh> yeah, this is pretty easy with RUnit derivatives
<erikh> matti: hi!
<zzak> obj.should be_a(Exception); obj.message.should eq("dont do that yo")
<matti> Ohai zzak
<erikh> zzak: right, but he wants a matcher to streamline that.
<whitequark> well I already wrote one
<erikh> whitequark: I guess you could just write a matcher.
<whitequark> in fact
<erikh> :)
<zzak> hah
<erikh> whitequark: submit it back I guess? best way to find out if it already exists :P
lele has joined #ruby-lang
krohrbaugh has joined #ruby-lang
<whitequark> erikh: I'm not really fond of rspec
<whitequark> it is absurdly overengineered
<whitequark> it's just I'm not really enthusiastic of switching to another test framework either.
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
<erikh> whitequark: I don't know many people who've read rspec's code that disagree with you
<erikh> but yeah, I mean, if you've already written it, might as well push it back to them.
<erikh> it's not like you're going to stop using it if they disagree.
<imperator> and yet, somehow, it seems to be the framework of choice
<erikh> imperator: in rails-land, definitely.
<whitequark> erikh: see, it has some amount of internal rules. I need to check the source out, determine the correct place for my code, check if it adheres to standards...
<andrewvos> Because people are sheep. I know I am.
<whitequark> I have exactly zero incentive to do that
<erikh> fair enough.
krohrbaugh has quit [Client Quit]
krohrbaugh has joined #ruby-lang
nettsundere has quit [Ping timeout: 244 seconds]
<erikh> honestly, rspec doesn't bother me nearly as much as cucumber
<erikh> I simply do not understand the attraction to cucumber.
<whitequark> I don't understand why cucumber exists at all
<erikh> exactly.
<whitequark> it solves a problem which does not exist, and it does it badly.
<rking> whitequark: Customer-visible specifications is a problem that exists.
<erikh> rking: you have non-developers who read your cucumber specs?
<erikh> I've been working @ rails shops for something like 5 or 6 years now. you'd be the first.
<whitequark> rking: ask me to write a single file of that nonsense, and I'll quit at that precise moment
* imperator asks whitequark to use cucumber
<andrewvos> Heh
<whitequark> imperator: it's not like you're my employer ;)
<whitequark> or, after this line, will ever be :)
<andrewvos> TWIST: HE IS!
<andrewvos> Directed by M. Night Shymalan
<andrewvos> Sorry I'll be quiet now.
<imperator> ALSO: I'M A DUDE - SURPRISE!
<whitequark> customers get a customer-readable specification. like, in plain [your language here].
<whitequark> what tools are used to make sure the project works according to that specification is none of their concern.
<whitequark> by "get" I mean "written in collaboration with customer" or something like that.
rue|w has joined #ruby-lang
<whitequark> at least that's how things happen where I work
nitti has quit [Remote host closed the connection]
* imperator releases sys-uptime 0.6.1 into the wild
rue|w has quit [Ping timeout: 252 seconds]
runeb has joined #ruby-lang
vlad_starkov has joined #ruby-lang
nitti has joined #ruby-lang
bfreeman has joined #ruby-lang
<rking> erikh: I took a 6 year break from programming, and no, I haven't had the problem in the 6mo since I've been back — but there *are* situations where you have a customer that is technical enough that they could understand something like a Cucumber feature description, occasionally even edit them (e.g. the data tables).
klaut has joined #ruby-lang
<rking> I'm not necessarily an advocate of Cucumber itself, since I haven't used it IRL, but the concept of customer-managed or customer-supervised tests is sound.
nettsundere has joined #ruby-lang
<rking> whitequark: English docs go out of sync.
<rking> It's not DRY
siyusong has joined #ruby-lang
__butch__ has joined #ruby-lang
<andrewvos> rking: Exactly
<andrewvos> rking: English docs that don't execute are just plain silly.
<rking> Executable everything.™
runeb has quit [Ping timeout: 246 seconds]
<erikh> you use the word 'could' as an argument that's equivalent to 'has actually'
<erikh> I would also posit that the someone smart enough to understand how your application functions likely knows enough to write a proper test.
<erikh> (or at least, edit the source code to one that exists already)
<erikh> FIT's been around for well over a decade and tries to solve the same problem. it too is something a lot of people forced on developers and practically never solves what it was designed to solve
cosah has joined #ruby-lang
_aspen has joined #ruby-lang
<zzak> my favorite is when your client knows enough to do harm, eg: bundle installs and commits a new Gemfile.lock breaking production
Austin__ has quit [Quit: Leaving.]
<whitequark> rking: Cucumber "docs" go out of sync as well
<whitequark> and it's a PITA to refactor them
erichmenge has joined #ruby-lang
<whitequark> zzak: since when do clients have write access to the repo?
brianpWins has quit [Quit: brianpWins]
JohnBat26 has joined #ruby-lang
_aspen has left #ruby-lang ["WeeChat 0.3.9"]
carloslopes has quit [Quit: Leaving.]
__butch__ has quit [Quit: Leaving.]
uuair has joined #ruby-lang
<zzak> whitequark: when they want to learn too
kurko_ has quit [Ping timeout: 245 seconds]
yxhuvud has joined #ruby-lang
kurko_ has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
carloslopes has joined #ruby-lang
alexkira has quit []
carloslopes has quit [Client Quit]
erichmenge has joined #ruby-lang
rcassidy has joined #ruby-lang
shevy has joined #ruby-lang
shevy has left #ruby-lang [#ruby-lang]
shevy has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
shevy has left #ruby-lang [#ruby-lang]
Hakon has joined #ruby-lang
cantonic_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
futurechimp has quit [Ping timeout: 245 seconds]
__butch__ has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 244 seconds]
nettsundere has quit [Read error: Operation timed out]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
futurechimp has joined #ruby-lang
cantonic has quit [Ping timeout: 268 seconds]
cantonic_ is now known as cantonic
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
coderrr has joined #ruby-lang
coderrr has left #ruby-lang ["Ex-Chat"]
<TTilus> CAPS LOCK DAY!
<TTilus> \o/
<matti> Nooes...
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Remote host closed the connection]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
rippa has quit [Ping timeout: 264 seconds]
sandbags has quit [Ping timeout: 260 seconds]
kurko_ has quit [Ping timeout: 272 seconds]
kurko_ has joined #ruby-lang
rippa has joined #ruby-lang
brianpWins has joined #ruby-lang
<Uranio> I'm using open-uri for "get things" but when is google, don't answer... I wonder if sending a fake "User-Agent" that could be fixed
philiphale has quit [Quit: Leaving.]
kurko_ has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby-lang
mrsolo has joined #ruby-lang
nettsundere has joined #ruby-lang
Austin__ has joined #ruby-lang
Carnage\ has joined #ruby-lang
<Uranio> the answer is not :-/
workmad3 has quit [Ping timeout: 260 seconds]
ryanf_ has joined #ruby-lang
ryanf_ has quit [Client Quit]
runeb has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
pbjorklund has quit [Read error: Connection reset by peer]
pbjorklund has joined #ruby-lang
<zzak> Uranio: you can pass headers as additional options: open("http://...", {'User-Agent' => 'chrome whatever'})
fletch_ has quit []
<Uranio> zzak: yeah, I do it, but now work, anyway.. bing work fine
Hakon has quit [Quit: Leaving...]
runeb has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby-lang
Ziioynx has joined #ruby-lang
robotmay_ has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby-lang
<imperator> jruby 1.7.0 released today for those interested
robotmay has quit [Ping timeout: 246 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
uuair has quit [Ping timeout: 264 seconds]
uuair has joined #ruby-lang
uuair_ has joined #ruby-lang
alexkane has quit [Quit: alexkane]
uuair has quit [Ping timeout: 248 seconds]
uuair_ is now known as uuair
kurko_ has quit [Ping timeout: 245 seconds]
codewrangler has joined #ruby-lang
kurko_ has joined #ruby-lang
robotmay_ has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
uuair has quit [Quit: uuair]
vlad_sta_ has quit [Remote host closed the connection]
nitti has quit [Remote host closed the connection]
symeog has joined #ruby-lang
<outoftime> somewhat OT, but anyone have a web-based slideshow generator they like? i've enjoyed showoff in the past but seems a bit broken nowadays.
philiphale has joined #ruby-lang
<rcassidy> google docs has a decent slideshow maker thing.
<steveklabnik> outoftime: i sucked it up and started using keynote
<steveklabnik> :/
<steveklabnik> for that exact reason
m3nd3s_ has quit [Remote host closed the connection]
rwilcox has joined #ruby-lang
qpingu has joined #ruby-lang
rmascarenhas has joined #ruby-lang
nitti has joined #ruby-lang
areil has quit [Remote host closed the connection]
siyusong has quit [Quit: Computer has gone to sleep.]
retro|cz has quit [Ping timeout: 244 seconds]
nitti has quit [Remote host closed the connection]
<symeog> hi, i am really new to ruby but not in programming. can you give me a complete example of a class Customer with just a name an address and a phone ?
<steveklabnik> Customer = Struct.new(:address, :phone)
<symeog> and how a class Order can have many children om OrderLine ?
<steveklabnik> ;)
havenn has quit [Remote host closed the connection]
<symeog> or Order can have One in One relation with Customer ?
havenn has joined #ruby-lang
<symeog> is there any good tutorial on OOP in ruby ?
headius has quit [Quit: headius]
<steveklabnik> symeog: if you're not opposed to buying a book, a new one was just released that's excellent
cardoni has quit [Quit: cardoni]
carloslopes1 has joined #ruby-lang
ananna has quit [Quit: Leaving...]
anannie has joined #ruby-lang
<rue> What makes a primer agile?
<steveklabnik> it works in small setps
mistym is now known as mistym_lunch
<outoftime> steveklabnik: : (
Artheist has quit [Remote host closed the connection]
<symeog> ok it looks great but before i buy a book i need to know if ruby works for me right ?
anannie is now known as ananna
<steveklabnik> outoftime: ?
<steveklabnik> symeog: sure, seems fair. i'm just letting you know that's the BEST resource out there
<outoftime> steveklabnik: keynote : (
Assurbanipal has joined #ruby-lang
<steveklabnik> ahh
<steveklabnik> yeah, i mean, it works.
<steveklabnik> other things dont really
<steveklabnik> soooooo
havenn has quit [Ping timeout: 260 seconds]
<symeog> so i am buying the book..i got it :)
<symeog> good bye
ananna is now known as anannie
symeog has left #ruby-lang [#ruby-lang]
<steveklabnik> bye!
siyusong has joined #ruby-lang
codewrangler has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nitti has joined #ruby-lang
nitti has quit [Remote host closed the connection]
havenn has joined #ruby-lang
nitti has joined #ruby-lang
anjen has joined #ruby-lang
<imperator> sandi metz....the name rings a bell
<steveklabnik> she's an excellent person and a good rubyist
<imperator> i think i'm thinking of a former colleague from a long time ago - different person
<imperator> but, i did find this: http://vimeo.com/26330100
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
futurechimp has quit [Ping timeout: 255 seconds]
ulisescab has joined #ruby-lang
rmascarenhas has quit [Quit: Lost terminal]
futurechimp has joined #ruby-lang
Hakon has joined #ruby-lang
<Spaceghostc2c> imperator: I definitely agree with a large number of the things she says and believes in. It amazes.
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
Rizzle has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby-lang
futurechimp has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby-lang
futurechimp has joined #ruby-lang
carloslo_ has joined #ruby-lang
carloslopes1 has quit [Quit: Leaving.]
carloslo_ has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
rkneufeld has joined #ruby-lang
futurechimp has quit [Ping timeout: 252 seconds]
rkneufeld has left #ruby-lang [#ruby-lang]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
jgomez has quit [Quit: Leaving]
nyuszika7h has left #ruby-lang ["Rejoining"]
nyuszika7h has joined #ruby-lang
sepp2k has joined #ruby-lang
havenn has quit [Remote host closed the connection]
cardoni has joined #ruby-lang
jtoy has quit [Read error: Connection reset by peer]
qpingu has left #ruby-lang [#ruby-lang]
cardoni has quit [Client Quit]
futurechimp has joined #ruby-lang
justinram has quit [Remote host closed the connection]
Mellett68 has joined #ruby-lang
cardoni has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
siyusong has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rcassidy has quit [Ping timeout: 265 seconds]
rcassidy has joined #ruby-lang
brianpWins has quit [Ping timeout: 276 seconds]
mistym_lunch is now known as mistym
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
irleif has joined #ruby-lang
r0bby_ has joined #ruby-lang
rippa has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby-lang
carloslo_ has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 272 seconds]
mrsolo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby-lang
havenn has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
ejholmes has joined #ruby-lang
gix has quit [Ping timeout: 264 seconds]
ejholmes has left #ruby-lang [#ruby-lang]
sepp2k has quit [Remote host closed the connection]
ulisescab has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
mrsolo has joined #ruby-lang
nitti_ has joined #ruby-lang
gix has joined #ruby-lang
Hakon has quit [Ping timeout: 256 seconds]
futurechimp has quit [Quit: Leaving]
nitti has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby-lang
adambeynon has joined #ruby-lang
havenn has joined #ruby-lang
carloslopes has joined #ruby-lang
Ethan is now known as undersc0re97
erichmenge has quit [Quit: Be back later]
irleif has joined #ruby-lang
carloslo_ has quit [Ping timeout: 245 seconds]
ryanlecompte has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby-lang
r0bby_ has quit [Ping timeout: 252 seconds]
carloslo_ has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
yxhuvud has quit [Ping timeout: 256 seconds]
carloslopes has quit [Ping timeout: 260 seconds]
ridders24 has joined #ruby-lang
Y_Ichiro_ is now known as Y_Ichiro
chessguy has joined #ruby-lang
workmad3 has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
Austin__ has left #ruby-lang [#ruby-lang]
lcdhoffman has quit [Quit: lcdhoffman]
kurko_ has quit [Ping timeout: 240 seconds]
alexkane has joined #ruby-lang
blacktulip has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
s0ber has joined #ruby-lang
justinmcp has joined #ruby-lang
justinseiter has quit [Remote host closed the connection]
davpoind has quit [Quit: Be back later]
irleif has quit [Quit: Computer has gone to sleep.]
zspencer has quit [Quit: zspencer]
havenn has joined #ruby-lang
cyri_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
rolfb has joined #ruby-lang
tenderlove has joined #ruby-lang
cschneid has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
nitti_ has quit [Remote host closed the connection]
rolfb has quit [Client Quit]
CaptainJet has joined #ruby-lang
kurko_ has joined #ruby-lang
philiphale has quit [Quit: Leaving.]
Hakon has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nitti has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
havenn has joined #ruby-lang
anjen has quit [Quit: anjen]
carloslo_ has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 256 seconds]
chessguy has joined #ruby-lang
kurko_ has joined #ruby-lang
Carnage\ has quit []
JohnBat26 has quit [Remote host closed the connection]
<whitequark> zzak: learn? pull requests all the way!
<whitequark> (note: I'm not completely serious here.)
dpatel has quit [Quit: dpatel]
justinmcp has quit [Ping timeout: 252 seconds]
<yorickpeterse> earliest pull request is best pull request
sailias has quit [Quit: Leaving.]
chrismcg is now known as zz_chrismcg
<whitequark> yorickpeterse: ... and how is this related
<yorickpeterse> it's not
dc5ala has quit [Quit: Ex-Chat]
cardoni has quit [Quit: cardoni]
slyphon has quit [Quit: WeeChat 0.3.8]
voker57 has quit [Remote host closed the connection]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
Torrieri has quit [Client Quit]
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
chessguy has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
anannie has quit [Remote host closed the connection]
irleif has joined #ruby-lang
Kingy has joined #ruby-lang
nitti has quit [Remote host closed the connection]
<freedrull> i want to learn how to use mocks and stubs ._______.
dospod has joined #ruby-lang
<dospod> can somebody help me
<yorickpeterse> that's pretty specific
<mistym> dospod: Maybe. What's your problem?
<dospod> I need to grab input from the user, all on one line , and then place the contents into an array
<nofxx> freedrull, use it when you want to isolate your test
<yorickpeterse> dospod: input of what, STDIN? A web form? etc
<dospod> the only problem is the input is going to be all on one line so I know Im going to need chop up the input
<zenspider> dospod: what have you alreday tried ?
<dospod> stdin
cardoni has joined #ruby-lang
<dospod> nothing yet , I'm pretty new to ruby and the site our teacher pointed us to isn't detailed enough
wyhaines has quit [Remote host closed the connection]
nitti has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
<zenspider> dospod: so you're essentially asking us to do your homework. not gonna happen. We're happy to point you at resources and answer _specific_ questions.
<zenspider> what site did your teacher point you at?
<dospod> her own personal web site -_-
<zenspider> and/or how is it not specific enough?
<zenspider> heh
<zenspider> ok
<dospod> she will list stuff like chomp , etc.. but not show us the syntax
<zenspider> ok. well... start with my quickref
<zenspider> corundum: quickref?
<zenspider> that'll help some.
<dospod> thank you
anjen has joined #ruby-lang
<zenspider> you can also use the free version of the pickaxe
<andrewvos> dospod: Let's see the site!
<zenspider> corundum: pickaxe?
<corundum> pickaxe is Programming Ruby, 3rd ed. by Dave Thomas, et al. Available for purchase (tree and pdf) at http://www.pragprog.com/ or at http://www.rubycentral.com/book/ (in first edition form) if you are a cheap bastard and hate kittens. or http://ruby-doc.org/docs/ProgrammingRuby/
<zenspider> that'll help you get the sytax a bit more than my quickref
<yorickpeterse> dospod: for dealing with input via the CLI you'd want to look at Readline: http://bogojoker.com/readline/
<yorickpeterse> You don't have to use it but it makes things a bit nicer as well as providing some more features
<zenspider> her writeup is pretty good
<zenspider> but yeah, not much on syntax
<dospod> It's decent for quick hello world and learning what's available
<dospod> but that's not going to help me if there isn't instructions or a link to a site that explains it...
philiphale has joined #ruby-lang
philiphale has left #ruby-lang [#ruby-lang]
<dospod> its like telling you everything about a car
<dospod> but not showing someone how to use it
<zenspider> ahe there we go... there is the section on control statements, classes, etc.
nitti_ has joined #ruby-lang
<zenspider> so her writeup is probably about the same as my quickref
<zenspider> the pickaxe, even tho the free version is 1st edition, will fill in the blanks just fine
<zenspider> and we're here to answer any questions you have
<dospod> thank you
nitti__ has joined #ruby-lang
nitti has quit [Ping timeout: 255 seconds]
nitti has joined #ruby-lang
cyri_ has joined #ruby-lang
chessguy has joined #ruby-lang
nitti___ has joined #ruby-lang
Assurbanipal has quit [Quit: Konversation terminated!]
nitti___ has quit [Client Quit]
Axsuul has joined #ruby-lang
nitti_ has quit [Ping timeout: 252 seconds]
retro|cz has joined #ruby-lang
JetAway has joined #ruby-lang
benanne has quit [Quit: kbai]
nitti__ has quit [Ping timeout: 246 seconds]
JetAway has left #ruby-lang [#ruby-lang]
CaptainJet has quit [Disconnected by services]
CaptainJet has joined #ruby-lang
nitti has quit [Ping timeout: 244 seconds]
anjen has quit [Quit: anjen]
dospod has quit [Ping timeout: 260 seconds]
ridders24 has quit [Quit: Leaving]
sailias has joined #ruby-lang
NOKAH has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 245 seconds]
slyphon has joined #ruby-lang
Hakon has quit [Ping timeout: 248 seconds]
justinmcp has joined #ruby-lang
BigFatFatty has joined #ruby-lang
heftig has quit [Quit: Lost terminal]
heftig has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
slyphon has quit [Read error: Connection reset by peer]
slyphon has joined #ruby-lang
m3nd3s has joined #ruby-lang
Kingy has quit [Quit: Leaving]
rcassidy has quit [Quit: Lost terminal]
havenn has quit [Remote host closed the connection]
cardoni has quit [Quit: cardoni]
havenn has joined #ruby-lang
kurko_ has joined #ruby-lang
m3nd3s has quit []
toertore has joined #ruby-lang
m3nd3s has joined #ruby-lang
lcdhoffman has joined #ruby-lang
havenn has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
toretore has quit [Ping timeout: 246 seconds]
Kingy has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.8]
jimmy1980 has quit [Ping timeout: 255 seconds]
<zzak> dospod: is ruby your first language?
<zzak> nvm i think he left
dospod has joined #ruby-lang
toertore has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
kurko_ has quit [Ping timeout: 265 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
<tsou> zzak: nice sync :)
esad has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
cardoni has joined #ruby-lang
<dospod> okay so if I use split on a string, how would I put the elements from split into an array
<heftig> array = ["baz"]; array.push *"foo bar".split; array
chendo_ has quit [Ping timeout: 245 seconds]
<heftig> that said, "foo bar".split already returns an array, so if you don't need to keep array the same object, there are simpler methods
<tdy> i was gonna say
<tdy> that seems overly verbose
<dospod> yea because I'm getting input from the user stored in a string seperated by spaces
<heftig> tdy: well, it does exactly what was said, i.e. put the elements into an existing array
<heftig> array = "foo bar".split is the simplest, but that replaces array, of course
<dospod> Isn't there something else I need to convert the split into integer
wallerdev has quit [Quit: wallerdev]
<heftig> "3 4 5".split.map(&:to_i)
chendo_ has joined #ruby-lang
<dospod> so in my case it would be numbers.split.map(&:tp_i)
<dospod> what If I wanted to store the contents into an already declared array
<tdy> then you have to do what heftig said above
<heftig> with the map after the split
<dospod> so it would be arrayNum = numbers.split.map(&:to_i) right after I get the user input
<heftig> no, arrayNum.push *numbers.split.map(&:to_i)
<tdy> considering this is hw and you seem new to ruby, the (&:to_i) idiom might seem fishy to your prof..
<tdy> you might expand out to a full block
<dospod> well we have used php , and javascript , reg expressions , so I don't think she will have a problem with it
<dospod> as long as it is completed
alvaro_o_ has joined #ruby-lang
alvaro_o has quit [Ping timeout: 240 seconds]
headius has joined #ruby-lang
<dospod> hmm I'm getting the error message warning: '*' interpreted as argument prefix
<steveklabnik> (*numbers)
<steveklabnik> ?
<steveklabnik> or maybe *(numbers....
<steveklabnik> it's probably getting confused about that
<steveklabnik> (I guess you'd ant the last)
kurko_ has quit [Ping timeout: 276 seconds]
<tdy> well that's just the warning
kurko_ has joined #ruby-lang
<tdy> but as far as the error goes
<tdy> maybe you're on an older ruby
<steveklabnik> Ruby: Ruby 1.8.6
<steveklabnik> yeah
<tdy> that code works fine for me
<steveklabnik> that code wont work on codepad
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
anannie has joined #ruby-lang
phlipper has quit [Ping timeout: 244 seconds]
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
outoftime has quit [Quit: Leaving]
<dospod> now I'm getting can't convery Array into Integer (TypeError)
kain has quit [Ping timeout: 264 seconds]
m3nd3s has quit [Remote host closed the connection]
<heftig> dospod: what's the line now?
<dospod> I typed in 3 44 55 72 97 and it returned ./14-2.rb '*': can't convert Array into Integer (TypeError) from ./14-2.rb:7
<heftig> dospod: i asked for the line of code :p
<heftig> i.e. line 7 of 14-2.rb
<dospod> arrayNum.push *numbers.split.map(&:to_i)
<tdy> what did you change to go from the previous error to this one?
<heftig> dospod: try arrayNum.push(*numbers.split.map(&:to_i))
My_Hearing has quit [Ping timeout: 260 seconds]
_Mon_Ouie_ has joined #ruby-lang
<dospod> success
<heftig> your ruby is weird
<heftig> probably really old
<dospod> possibly
<dospod> I just installed ruby 1.8.? in ub 12.04
<dospod> I don't know if she's going to use or antique ssh server on campus or her personal computer to test it so I figured the older the version the better it would run on her side
<dospod> our*
mistym has joined #ruby-lang
<steveklabnik> heh
justinmcp has quit [Remote host closed the connection]
dmwuw_ has quit [Remote host closed the connection]
<dospod> hehe I don't know why I always over analyze stuff
m3nd3s has joined #ruby-lang
<dospod> to copy an array could I just simply to an Array2 = arrayNum
sailias has joined #ruby-lang
<tdy> Array2 would just reference arrayNum in that case.. and changes on Array2 would be seen in arrayNum
NOKAH has quit [Quit: Leaving...]
<tdy> so it depends what's needed
<dospod> I need a complete copy
<dospod> I need to keep the original array in tact
<heftig> array2 = array.dup
wyhaines has joined #ruby-lang
<heftig> note that it's a shallow copy. it just duplicates the array, not its contents
<heftig> (this isn't a problem if it's just an array full of numbers)
<dospod> yea the array is nothing more than integer elements
<zenspider> well... in the case of fixnums, it dups both, but that's an implementation detail
<dospod> anyway to do a deep copy
<heftig> marshal
<zenspider> no need to do a deep copy
dhruvasagar has quit [Ping timeout: 260 seconds]
Kingy has quit [Quit: Leaving]
richardjortega has joined #ruby-lang
kain has joined #ruby-lang
<dospod> hmm ruby doesn't seem to work like c++ when it comes to for loops >:|
<zenspider> don't ever expect ruby to work like other languages
<dospod> I'm learning the hard way not too
kurko_ has quit [Ping timeout: 245 seconds]
nitti has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
<zenspider> the first thing I do when teaching someone who's coded before is start by showing all the differences against the languages they're familiar with.... it's worth it to spend an hour or two unlearning
<zenspider> what were you expecting from C++?
<zenspider> what aspect, that is
<dospod> well I need to match an element in the array
<dospod> I was planning on just going through the whole array using a while or for the array is at the end
kurko_ has joined #ruby-lang
justinmcp has joined #ruby-lang
<zenspider> does your `ri` command work?L
<zenspider> `ri Array` for example
<dospod> and nesting an if statement with the condition that if arrayNum[i] = array2[1] print out the number and print out the value of I
<tdy> well that specific task doesn't require a loop
<tdy> in ruby at least
<zenspider> tdy: slow down
<tdy> for arrays
<zenspider> dospod: type ri Array into your terminal
esad has quit [Quit: Computer has gone to sleep.]
<zenspider> if it doesn't work, sudo gem install rdoc rdoc-data; sudo rdoc-data install; sudo gem uninstall rdoc-data
<dospod> unable to locate package
headius has quit [Quit: headius]
<zenspider> package?
<dospod> dammit I used apt
<dospod> I fail
kain has quit [Ping timeout: 246 seconds]
<dospod> I'm installing gem now
sduckett has quit [Ping timeout: 240 seconds]
<zenspider> ruby_parser 3.0.0.a9 released! I'm very close to going beta on this fucker...
<zenspider> please beat on it and report bugs
BigFatFatty has left #ruby-lang [#ruby-lang]
<dospod> so why am I typing ri array in the terminal
<zenspider> ri Array
<zenspider> do you get proper output?
<dospod> no I'm about to input the gem install command
<zenspider> kk. get back to me when it works
<dospod> ahh looks like I need to install ruby 1.9.1
nitti has quit [Remote host closed the connection]
<zenspider> no, you don't
<zenspider> 1.8.7 will work fine
sailias has quit [Ping timeout: 256 seconds]
<dospod> it was telling me I didn't have gem installed but it was packaged with ruby1.9.1
<zenspider> *sigh*
<zenspider> I hate ubuntu so fucking much
<zenspider> actually... this works fine. that's just their stupid stub handler thingy
<zenspider> go to rubygems.org and download the rubygems tarball yourself
<dospod> only distro so far that will work propery in vmware 9 -_-
<zenspider> unpack, cd into it, run sudo ruby setup.rb
bfreeman has quit [Quit: bfreeman]
<dospod> ati hasn't released proper drivers for my laptops video card :/
<dospod> so no native linux install here
<zenspider> this works out better anyhow... as ubuntu rapepatches rubygems to adhere to their dogma
__butch__ has quit [Quit: Leaving.]
jgomez has joined #ruby-lang
<zenspider> sexp_processor 4.1.0 released
<dospod> still doesn't work when I run the command
kurko_ has quit [Ping timeout: 255 seconds]
<zenspider> "doesn't work"
<zenspider> splain
<dospod> sudo: rdoc-data: command not found
<dospod> INFO: gem "rdoc-data" is not installed
kurko_ has joined #ruby-lang
<dospod> also recieved a ERROR: Failed to build gem native extension
<zenspider> gem list
<dospod> nothing under local gems