<alpha123>
I dunno anymore, that's why I use Ruby. :D
<shevy>
hehe
<shevy>
hmm
<xybre>
alpha123: Hmm, maybe. I forget, its been a few months since I last did any python crap.
<shevy>
so they have two ways
<sam113101>
PYTHON IS FRAGMENTED
<shevy>
kinda weird
<xybre>
Yeah, Python is split between the 2.x and 3.x series, with both being developed and not being compatible at all.
interactionjaxsn has quit [Remote host closed the connection]
bsaboia_ has quit [Remote host closed the connection]
<alpha123>
Actually, my biggest problem with Python isn't the lack of a good package manager or the 2.x/3.x split, it's that Python often tries to hide its expressive functional side and be kind of like a cleaner, dynamically typed Java. Ruby in contrast embraces function programming and metaprogramming, which I find are are more expressive and powerful.
multi_io has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
b00stfr3ak has quit [Ping timeout: 246 seconds]
<xybre>
alpha123: really? Python is super functional. Thats really the only reason I've messed with it at all.
<xybre>
That is sad :(
g0bl1n has quit [Ping timeout: 256 seconds]
<alpha123>
xybre: Python is super functional (it has very good metaprogramming support as well) but that's not considered 'Pythonic'. Lambdas are kind of shunned and Guido wanted to do away with map/filter at one point
randomau_ has joined #ruby
<xybre>
o__o
atyz has joined #ruby
<zendeavor>
huh
<alpha123>
ah okay, that was way back in 2005 :/
<zendeavor>
why would you remove map/filter
<xybre>
alpha123: but.. then why have first class functions? And directly addressable functions?
JimmyNeutron has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
<alpha123>
xybre: ...I have no idea. I think the Python folks are typically OK with passing functions by name though, just not anonymous ones.
<alpha123>
It is from 2005 though, so maybe Guido's changed his opinion.
tylersmith has joined #ruby
<zendeavor>
also 2.x isn't really developed anymore. it's in maintenance mode, excepting from future import xyz additions (which i thought they also cutoff)
<alpha123>
Metaprogramming at least is considered fairly un-Pythonic still.
<zendeavor>
did i miss a memo on that?
<alpha123>
zendeavor: The metaprogramming?
Zeeraw has joined #ruby
randomautomator has quit [Ping timeout: 260 seconds]
<zendeavor>
no the 2.x development
<zendeavor>
i thought it went into stable/bugfix/maintenance
<alpha123>
oh okay. Yeah I think they aren't releasing any new 2.x versions
<alpha123>
A lot of major Python libraries are still on 2.x though :/
<shevy>
aww
<shevy>
like ruby 1.8.7
tjbiddle has quit [Quit: tjbiddle]
randomau_ has quit [Ping timeout: 264 seconds]
<zendeavor>
they'll likely stay that way forever
<zendeavor>
3.x is a different breed
<zendeavor>
man i can't open that article
<zendeavor>
meh, url shortener must have given up on me
<alpha123>
IMO the Ruby community has done a great job of moving forward, I guess there's still some stuff on 1.8 but not much. Of course, it helps that we didn't decide to utterly throw backward compat in the bag. :P
ner0x has joined #ruby
<shevy>
sneaky new syntax
baroquebobcat has joined #ruby
<shevy>
in ruby 2.0 we have ->() in ruby 3.0 we must have ()<-
maxmanders has joined #ruby
<xybre>
I don't think there's *any* major or actively developed libraries that are 1.8.7 only?
tylersmith has quit [Ping timeout: 276 seconds]
<alpha123>
xybre: I don't know actually.
<xybre>
I've never run across anything where I went "damn I wish I could use this lib in 1.9/2.0". But Python has loads of them and 3.x came out in 2008.
<shevy>
I think ther ei snone
<alpha123>
"I guess there's still some stuff on 1.8" was an uninformed guess. :P If there is anything I'm guessing it's not maintained.
devoldmx has quit [Ping timeout: 246 seconds]
<Rylai>
when was 1.9 released?
<shevy>
dunno... 2008?
<zendeavor>
the problem with python's ecosystem is that 3.x "cleaned" up the language quite drastically and those 2.x libs are dead-set on maintaining a *single* compatible version
devoldmx has joined #ruby
<xybre>
Looks like 1.9 was first released on 25 Dec 2007
<xybre>
.. Christmas gift from Matz
<zendeavor>
it's a brain-glitch
<lewellyn>
and python was more entrenched in 2008 than ruby was.
<shevy>
cool
<shevy>
soon we have 2014, 3 more years and it is ten years 1.9!
<lewellyn>
so you have "big language change" combined with "lots of existing stuff" combined with "vendors are STILL shipping 2.x and will be for the foreseeable future"
<zendeavor>
like, you can't really get a python 2/3 module after a certain arbitrary complexity level
<zendeavor>
you have to do one or the other
v0n has joined #ruby
<zendeavor>
but they're trying anyway
v0n has quit [Client Quit]
<zendeavor>
django is deeply entrenched in this iirc
<xybre>
I don't think I've ever used Python 3.x for anything. Most libs and apps I've run across are 2.x only.
<lewellyn>
in ruby's case, it's less common to use the system interpreter by default, so the issue would be negated.
v0n has joined #ruby
efrainolivares has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<lewellyn>
xybre: 3.x is finally starting to ship by default places. so that'll probably start changing eventually.
maxmanders has quit [Ping timeout: 245 seconds]
v0n is now known as v1n
<zendeavor>
xybre: because writing a dual-compatible module is flippin *hard*
lethjakman has joined #ruby
<xybre>
lewellyn: does they still recommend that awful documentation format?
<xybre>
s/does/do
<zendeavor>
but those libs' authors just *refuse* to maintain two version branches
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lewellyn>
xybre: i don't write as much python as i did in like the python 1.x days, so i can't say. :)
havenwood has joined #ruby
<zendeavor>
where do you get the idea that it's less common to use the system ruby interpreter than the system python interpreter?
iliketur_ has quit [Quit: zzzzz…..]
<zendeavor>
python 3.3 included virtualenv for a reason...
<xybre>
zendeavor: everyone recommends RVM or similar to install Ruby, every tutorial, and every time a person asks in here, thats what they're told
devoldmx has quit [Ping timeout: 264 seconds]
<zendeavor>
for python, everyone recommends virtualenv
<xybre>
Oh, I misunderstood your question I think
<xybre>
:D
<havenwood>
i recommend chruby
<lewellyn>
zendeavor: and virtualenv wasn't popular for 2.x. and rvm/rbenv is commonplace.
<lewellyn>
hell, i don't think virtualenv even showed up on most people's radars till after python 2.5.
<zendeavor>
this should be (but sadly isn't) common knowledge: don't develop against your system's installation (including the libs)
maxmanders has joined #ruby
Senjai has joined #ruby
mneorr has joined #ruby
io_syl has quit [Quit: io_syl]
<lewellyn>
it probably doesn't help that virtualenv replaced workingenv, which was beyond problematic for most who tried it. :/
<zendeavor>
probably
<zendeavor>
rvm is headed down that path
<lewellyn>
and workingenv was only python 2.4 or so.
mneorr has quit [Read error: Connection reset by peer]
<zendeavor>
not to rag on rvm or anything, but it's a monster
<lewellyn>
in those days, python 2.1 was still commonplace on systems.
rodacato has quit [Remote host closed the connection]
<lewellyn>
zendeavor: rvm is a monster in a different way than workingenv was.
<zendeavor>
like, it's a miracle rvm mostly functions at all
sparq_ has quit [Ping timeout: 256 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
<zendeavor>
it gets the job done well though.
<lewellyn>
rvm fails dramatically in some shells.
<zendeavor>
(somehow)
viszu has joined #ruby
<lewellyn>
it's great if you like bash.
jtgiri_ has joined #ruby
<lewellyn>
not so great if you use ksh93 or mksh or something.
mansi has joined #ruby
<zendeavor>
i'm making ksh-family support ^_^
<lewellyn>
which is a nice change from the usual response when i mention that ;)
<lewellyn>
"wtf. everyone uses bash! why are you trying to be different!? bash > *"
<zendeavor>
not for rvm tho
<zendeavor>
bash is a pretty great shell
<zendeavor>
ksh-family shells are kinda amazing though
<zendeavor>
actually working off the chruby 0.4.0 branch lol
tommyvyo has joined #ruby
callmeivan has joined #ruby
<lewellyn>
i like standards-compliance. bash isn't the best at that. :/
rickmasta has quit [Quit: Leaving...]
<callmeivan>
does somebody know if FDC servers supports port forwarding on their XEN vservers?
<zendeavor>
what standards? it's fully POSIX compliant?
<callmeivan>
You can check with "iptables -L" if it works. If it does not it will say something like "FATAL: Module ip_tables not found.".
ffranz has quit [Remote host closed the connection]
Davey has joined #ruby
<zendeavor>
huh
<zendeavor>
how did you end up in #ruby with that question
<zendeavor>
are you Llckfan in disguise
<callmeivan>
well i assume a good percentage of you guys own servers
<zendeavor>
wrong answer
<callmeivan>
and i did not get a reply on lowendtalk and also not via fdcs support :(
jtgiri_ has quit [Client Quit]
<zendeavor>
random freenode channels aren't the place to go either
<callmeivan>
zendeavor: i think it is a fair assumption
<Rylai>
FDC?
<Senjai>
callmeivan: What makes you think #ruby would know anything?
<xybre>
zendeavor: whats so great about ksh?
<lewellyn>
zendeavor: it's posix compliant except when they've not gotten around to it or when it disagrees with what they think is "right"
mansi has quit [Ping timeout: 240 seconds]
<zendeavor>
lewellyn: true and false
<lewellyn>
i understand that they've been making strides towards fixing where they lack, but even mksh is closer the last i checked. and that's practically a one-man show.
ffranz has joined #ruby
<zendeavor>
mira is awesome
devoldmx has joined #ruby
<lewellyn>
indeed
<lewellyn>
but you'd expect that a project like bash would have more "oompf" in their development.
<zendeavor>
anyway, bash implements the full posix spec
BRMatt has quit [Remote host closed the connection]
tanema has quit [Remote host closed the connection]
<shevy>
bash is kinda like the old behemoth... nothing fancy... it works... it will continue to roll slowly forward... without cheerleaders
<zendeavor>
maybe you are under the impression posix is always clear in the spec
<lewellyn>
my data about posix compatibility may be way outdated.
<zendeavor>
very much of posix is "implementation defined
<zendeavor>
"
<lewellyn>
but there was a lot of holier-than-thou when i was wanting to try to help them early in the 2.x days.
<shevy>
I am going to call you an old dude henceforthwith
<zendeavor>
chet ramey, alone
<lewellyn>
hm. i thought there were more contributors regularly than just chet ramey.
<zendeavor>
nope
<lewellyn>
shevy: Version M-11/16/88i
<zendeavor>
it probably gets more patch submissions than ksh-family shells
<shevy>
damn that is actually young
<lewellyn>
Version 11/16/88h
Davey has quit [Ping timeout: 268 seconds]
<lewellyn>
i have multiple ksh88 i keep handy still ;)
<lewellyn>
shevy: i'm saying i'm old enough to be comfortable in an "ancient" ksh.
Wildhoney is now known as BanterJS-Adam
thepumpkin has quit [Remote host closed the connection]
dankest has quit [Quit: Peace]
<zendeavor>
perhaps you can look over my work and tell me if anything stands out as incompatible then
BanterJS-Adam is now known as Wildhoney
<lewellyn>
zendeavor: today's my day off. i'm trying damn hard to not look at anything that resembles code.
<lewellyn>
poke me monday. :D
<lewellyn>
i don't take many vacation days.
<ashp>
Argh, I can't figure this out. If I have ['a','b'].each do |thing| and inside the block I want to do property.a.should eq 'x' (these are rspec tests), how can I write property.thing?
v1n has quit [Ping timeout: 260 seconds]
maxmanders has quit [Ping timeout: 256 seconds]
<ashp>
I tried send("property.#{thing}"), property.thing.should, several other things
<ashp>
I basically need to take "property.#{thing}" and turn it into a real method call
<zendeavor>
xybre: sorry. ksh93 is developed to be more like tcl than /bin/sh
<ashp>
something weird is happening because if I remove all the arrays and just do things like instance.max_queries_per_hour (first failure, 6), it'll work
devoldmx has quit [Ping timeout: 256 seconds]
<ashp>
so it's the send() or something that's exploding
sml0820 has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
brunobueno has left #ruby [#ruby]
moos3 has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 245 seconds]
<zendeavor>
looks like because you're sending the whole thing as a single string?
saarinen has quit [Ping timeout: 248 seconds]
havenn has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
bamdad has quit [Quit: bamdad]
sml0820 has joined #ruby
v1n has joined #ruby
<pontiki>
ashp: what object is .send sending to in those tests?
Zeeraw has quit [Quit: Computer has gone to sleep.]
<ashp>
ahhh, I just had to do instance.send() instead, that makes a lot more sense
<ashp>
zendeavor: thanks for putting me on the right path :)
<zendeavor>
did i?
Voodoofish430 has quit [Quit: Leaving.]
julweber has joined #ruby
<zendeavor>
i'm not sure that what i said actually...makes any sense...
Kricir has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
<shevy>
you have reached a level of understanding where you can give the right answer without your brain having to think at all zendeavor
IceyEC has joined #ruby
<zendeavor>
on a serious note, though, i don't get it.
Vivekananda has joined #ruby
yacks has quit [Read error: Connection reset by peer]
Kricir has quit [Read error: Operation timed out]
Wildhoney has quit [Quit: Wildhoney]
<Spooner>
Not sure what the confusion over send is.
apeiros has joined #ruby
devoldmx has joined #ruby
<shevy>
send should always be combined with method_missing for maximum effect
buenob has joined #ruby
<Senjai>
shevy: Not true..
<Senjai>
shevy: There are usecases for send that don't have anything to do with method_missing
<Spooner>
I believe that shevy was being sarcastic.
<zendeavor>
i'm a ruby nooby
<zendeavor>
i don't even know what send does yet
<shevy>
yeah
<zendeavor>
i just took a wild guess at the problem derived from the error message
buenob has quit [Remote host closed the connection]
<Spooner>
#send allows you to call methods dynamically, using a string.
JDHankle has joined #ruby
<shevy>
I once did that though... I ended up with a bunch of classes that kept on delegating things like crazy to other classes
<Spooner>
e.g. frog.fish(12) is the same as frog.send("fish", 12)
apeiros has quit [Ping timeout: 248 seconds]
clooth has joined #ruby
buenob has joined #ruby
<Senjai>
Spooner: which I use a LOT in rails
<Senjai>
with polymorphic associations
lushious_ has joined #ruby
Dysruption has joined #ruby
lushious has quit [Read error: Connection reset by peer]
<pontiki>
Spooner: take a lok at ashp's paste and tell me why you think there's confusion
lucazi_ has joined #ruby
<shevy>
is there still confusion?
lucazi has quit [Ping timeout: 245 seconds]
<Spooner>
pontiki, I believe the confusion was about thinking of send like eval, but hard to tell _why_ broken code gets written.
lucazi_ has quit [Remote host closed the connection]
<ashp>
all I know is I didn't have to write the same two tests 4 times by using send, so I'm a happy camper
agr has joined #ruby
<pontiki>
nod
buenob has quit [Ping timeout: 256 seconds]
<shevy>
hmm
<shevy>
can I send a loop?
<pontiki>
you send a method to an object
<shevy>
:(
havenwood has joined #ruby
<pontiki>
but take that barrel roll anyway
wmoxam has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
Bira has joined #ruby
NealJ has joined #ruby
devoldmx3 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
ItSANgo has joined #ruby
devoldmx27 has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
maxmanders has joined #ruby
chinno998 has joined #ruby
<graft>
you can send :each
devoldmx has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
devoldmx3 has quit [Ping timeout: 240 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ravster has joined #ruby
wmoxam has joined #ruby
iliketur_ has joined #ruby
iliketur_ has quit [Client Quit]
atyz has quit [Quit: Leaving...]
maxmanders has quit [Ping timeout: 276 seconds]
atyz has joined #ruby
havenwood has quit [Remote host closed the connection]
fenicks has quit [Remote host closed the connection]
maxmanders has joined #ruby
iliketur_ has joined #ruby
reset has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
mneorr has joined #ruby
sml0820 has quit [Quit: sml0820]
mneorr has quit [Read error: Connection reset by peer]
sml0820 has joined #ruby
Spooner has quit [Remote host closed the connection]
mansi has joined #ruby
JDHankle has quit [Remote host closed the connection]
osvico has quit [Read error: Connection reset by peer]
Davey has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
viszu has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 260 seconds]
pitzips_alt has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
Davey has quit [Ping timeout: 240 seconds]
Kelet has joined #ruby
geometry06 has quit [Quit: Leaving.]
osvico has joined #ruby
diegoviola has joined #ruby
chinno9981 has joined #ruby
wmoxam has quit [Ping timeout: 260 seconds]
chinno9982 has joined #ruby
<diegoviola>
what do you do if you hate rspec/cucumber and one project you want to work is using it? do you just bite the bullet and use it anyway, or you move on? i came to realise i prefer minitest/test-units, it looks simpler, but i think most rails apps are using cucumber and the like
tanema has joined #ruby
<diegoviola>
sorry for the odd question...
maroloccio has joined #ruby
zachrab has joined #ruby
agr has quit [Quit: agr]
<zendeavor>
bite the bullet or rewrite their tests for them and make them agree that your way is better
chinno998 has quit [Ping timeout: 256 seconds]
<diegoviola>
i used to prefer ramaze too for this very same reason, simplicity
<diegoviola>
ramaze to rails
tabolario has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
clooth has quit [Quit: clooth]
<diegoviola>
sounds right, thanks
chinno9981 has quit [Ping timeout: 260 seconds]
Vivekananda has quit [Ping timeout: 256 seconds]
tanema has quit [Ping timeout: 245 seconds]
devoldmx27 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
cads has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
pipework has joined #ruby
radic_ has joined #ruby
chinno998 has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
popl has joined #ruby
diegoviola has joined #ruby
Midnightblues has joined #ruby
radic__ has quit [Ping timeout: 264 seconds]
chinno9982 has quit [Ping timeout: 264 seconds]
bricker`LA has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
atyz has quit [Quit: Leaving...]
russt has joined #ruby
justsee has joined #ruby
snovak has quit [Remote host closed the connection]
Bira has quit [Quit: Leaving]
quazimodo has joined #ruby
Kabaka has quit [Remote host closed the connection]
poga_ has joined #ruby
callmeivan has quit [Quit: callmeivan]
pipework has quit [Remote host closed the connection]
Kabaka has joined #ruby
pipework has joined #ruby
fgo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
kdaigle_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DanKnox is now known as DanKnox_away
DanKnox_away is now known as DanKnox
ryandeussing has quit [Ping timeout: 240 seconds]
Mattx has quit [Quit: Leaving]
midmire has quit [Remote host closed the connection]
i8igmac has joined #ruby
<i8igmac>
t1qwert
v1n has quit [Ping timeout: 248 seconds]
dv__ has joined #ruby
fgo has quit [Remote host closed the connection]
dv_ has quit [Ping timeout: 268 seconds]
fridim__ has joined #ruby
crucify_me has quit [Remote host closed the connection]
Xsheller has joined #ruby
aryaching has joined #ruby
decoponio has joined #ruby
badquanta has joined #ruby
vlad_starkov has joined #ruby
cj3kim has joined #ruby
GreaseMonkey has quit [Quit: The Other Game]
JimmyNeutron has joined #ruby
kevinykc_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 248 seconds]
heftig has quit [Remote host closed the connection]
kevinykchan has joined #ruby
heftig has joined #ruby
sheap has joined #ruby
<sheap>
hey guys, I want to make a program that pulls the bus times around me and brings them up relative to the current time...is that possible?
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
sheap has quit [Quit: Leaving]
<Senjai>
shevy: wat
mary5030 has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
<popl>
like Google Maps?
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 268 seconds]
lyanchih has joined #ruby
dv__ is now known as dv_
daniel_hinojosa has joined #ruby
alem0lars has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
daniel_hinojosa has quit [Client Quit]
staafl has joined #ruby
ssvo has quit [Quit: Lost terminal]
mansi has joined #ruby
chriskk has quit [Quit: chriskk]
mansi has quit [Ping timeout: 246 seconds]
Niichan has left #ruby [#ruby]
ananthakumaran has joined #ruby
relix has joined #ruby
sparq_ has joined #ruby
Splourian has joined #ruby
stevenrockarts has quit [Quit: stevenrockarts]
browndawg has joined #ruby
cj3kim has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
Neener54 has joined #ruby
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
zeromodulus has quit [Ping timeout: 268 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
kevinykc_ has joined #ruby
zeromodulus has joined #ruby
amacgregor has joined #ruby
nari has joined #ruby
zeromodulus has quit [Remote host closed the connection]
efrainolivares has joined #ruby
alpha123 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0/20130730113002]]
AndChat| has joined #ruby
vlad_starkov has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
rickmasta has joined #ruby
fridim__ has quit [Ping timeout: 245 seconds]
neo_ has joined #ruby
<agent_white>
agent_white has quit [Quit: leaving]
vlad_starkov has quit [Ping timeout: 256 seconds]
sqd has joined #ruby
stevenrockarts has joined #ruby
stevenrockarts has quit [Client Quit]
whowantstolivefo has joined #ruby
tomzx_mac_ has joined #ruby
nfk has joined #ruby
havenwood has joined #ruby
tomzx_mac has quit [Ping timeout: 248 seconds]
<whowantstolivefo>
i am trying to install a gem but i get the following error. i have rvm and ubuntu 12.04 https://gist.github.com/maasdesigner/6255533 does my issue about ruby or anything else ?
DanKnox is now known as DanKnox_away
tomzx_mac_ has quit [Ping timeout: 260 seconds]
kevinykc_ has quit [Read error: Connection reset by peer]
<popl>
whowantstolivefo: It's a EACCES error which means the process does not have permission to write to a particular path (/var/lib/gems in this case)
<popl>
oh, it goes on
kevinykchan has joined #ruby
<sevenseacat>
yeah its an rvm thing
tatsuya_o has joined #ruby
<popl>
sevenseacat: what's going on?
<whowantstolivefo>
sevenseacat: thank you
<sevenseacat>
helping the guy in #rubyonrails after crossposting - he didnt set his terminal as a login shell, rvm isnt working properly
<popl>
oh
<popl>
then it's not the fault of rvm
<popl>
I've seen people having similar issues when trying to run cronjobs within particular environments.
<sevenseacat>
not sure how thats related, but okay
<popl>
same class of error
sparq_ has quit [Ping timeout: 256 seconds]
jkline has quit [Quit: jkline]
timonv has joined #ruby
aryaching_ has joined #ruby
Nisstyre has quit [Quit: Leaving]
mikepack has joined #ruby
gimpygoo has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
huevon has joined #ruby
ukd1_ has joined #ruby
ukd1_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
ananthakumaran has quit [Quit: Leaving.]
amacgregor_ has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
ryandeussing has joined #ruby
jkline has joined #ruby
ukd1 has quit [Ping timeout: 240 seconds]
Senjai has quit [Remote host closed the connection]
amacgregor__ has quit [Ping timeout: 248 seconds]
jkline has quit [Client Quit]
amacgregor__ has joined #ruby
efrainolivares has left #ruby [#ruby]
amacgregor has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
ryandeussing has quit [Ping timeout: 276 seconds]
jkline has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
raul782_ has joined #ruby
Hobogrammer_ has joined #ruby
Hobogrammer has quit [Ping timeout: 268 seconds]
JimmyNeutron has quit [Quit: Leaving]
gr33n7007h has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
ananthakumaran has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
atyz has joined #ruby
havenwood has quit [Remote host closed the connection]
atyz has quit [Client Quit]
arturaz has joined #ruby
atyz has joined #ruby
hiyosi has joined #ruby
dash_ has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
workmad3 has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
brain_shim has quit [Ping timeout: 248 seconds]
noopq has joined #ruby
brain_shim has joined #ruby
alem0lars has quit [Ping timeout: 256 seconds]
ryandeussing has joined #ruby
aryaching has joined #ruby
rickmasta has quit [Quit: Leaving...]
mikepack has joined #ruby
amacgregor has joined #ruby
BizarreCake has joined #ruby
vipinj has joined #ruby
brain_shim has quit [Ping timeout: 246 seconds]
aryaching_ has quit [Ping timeout: 260 seconds]
neo_ has quit [Quit: This computer has gone to sleep]
alem0lars has joined #ruby
companion is now known as Companion
shunt has quit [Read error: Operation timed out]
amacgregor_ has quit [Ping timeout: 256 seconds]
amacgregor__ has quit [Ping timeout: 264 seconds]
amacgregor_ has joined #ruby
lucazi has joined #ruby
robonerd has quit [Quit: zzz]
dash_ has quit [Ping timeout: 264 seconds]
marius has joined #ruby
sqd has quit [Quit: sqd]
Krajsnick has joined #ruby
dash_ has joined #ruby
alem0lars has quit [Ping timeout: 256 seconds]
efrainolivares has joined #ruby
zachrab has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 264 seconds]
Evixion has joined #ruby
alem0lars has joined #ruby
zachrab has quit [Remote host closed the connection]
maxmanders has joined #ruby
nari has quit [Ping timeout: 276 seconds]
brain_shim has joined #ruby
mansi has joined #ruby
emergion has joined #ruby
poga has joined #ruby
shunt has joined #ruby
yacks has joined #ruby
jaredrhine has quit [Read error: Operation timed out]
mburns has quit [Read error: Operation timed out]
osvico has quit [Ping timeout: 268 seconds]
jaredrhine has joined #ruby
byprdct has joined #ruby
mikepack has quit [Remote host closed the connection]
mburns has joined #ruby
ewnd9 has quit [Ping timeout: 256 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
zombiebit has quit [Remote host closed the connection]
ezotrank has joined #ruby
poga has quit [Remote host closed the connection]
poga has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
intuxicated has joined #ruby
intuxicated has quit [Max SendQ exceeded]
intuxicated has joined #ruby
ewnd9 has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
tatsuya_o has quit [Remote host closed the connection]
Krajsnick has quit [Remote host closed the connection]
spider-mario has joined #ruby
Boohbah has joined #ruby
Lewix has quit [Remote host closed the connection]
harleytaz has joined #ruby
MrZYX|off is now known as MrZYX
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Matriks has joined #ruby
chinno998 has quit [Ping timeout: 248 seconds]
chinno998 has joined #ruby
chinno998 has quit [Max SendQ exceeded]
chinno998 has joined #ruby
chinno998 has quit [Max SendQ exceeded]
chinno998 has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
chinno998 has quit [Max SendQ exceeded]
chinno998 has joined #ruby
chinno998 has quit [Max SendQ exceeded]
brennanMKE has joined #ruby
chinno998 has joined #ruby
chinno998 has quit [Max SendQ exceeded]
chinno998 has joined #ruby
chinno998 has quit [Max SendQ exceeded]
ezotrank has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goleldar has quit [Ping timeout: 245 seconds]
ryandeussing has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
mneorr has quit [Read error: No route to host]
mneorr has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mneorr has quit [Read error: No route to host]
ebanoid has joined #ruby
mneorr has joined #ruby
browndawg has joined #ruby
mneorr_ has joined #ruby
SynchronE has joined #ruby
hackingoff has quit [Read error: Connection reset by peer]
jarray52 has quit [Quit: Leaving.]
bricker`LA has joined #ruby
mneorr__ has joined #ruby
quazimodo has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
anderson has quit [Quit: Leaving]
mneorr_ has quit [Ping timeout: 264 seconds]
whowantstolivef3 has joined #ruby
kaspergrubbe has joined #ruby
SynchronE has left #ruby [#ruby]
<whowantstolivef3>
i installed a gem call with refinerycms and it installed latest version (2.1.0) but i want to use 2.0.0 . i typed " gem uninstall refinerycms -v 2.1.0 " later i typed " gem install refinerycms -v 2.0.0 it installed successfully , does it true way to do this ? now refinerycms2.0 works well ? or i must do anything else ? thank you
<xybre>
sevenseacat: cron doesn't always init the environment the way people expect, I think is what he means
<sevenseacat>
but we werent talking about cron
<xybre>
sevenseacat: true
dawkirst has quit [Ping timeout: 268 seconds]
io_syl has quit [Quit: io_syl]
Deele has joined #ruby
hogeo has joined #ruby
mansi has joined #ruby
shredding has joined #ruby
Splourian has quit [Quit: Leaving]
kaspergrubbe has quit [Remote host closed the connection]
aryaching has joined #ruby
lyanchih has quit [Quit: lyanchih]
mansi has quit [Ping timeout: 260 seconds]
lyanchih has joined #ruby
vipinj has quit [Ping timeout: 260 seconds]
Kelet_ has joined #ruby
lyanchih has quit [Client Quit]
Kelet has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 256 seconds]
dawkirst has joined #ruby
aryaching has joined #ruby
julweber has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
kaspergrubbe has joined #ruby
neo_ has joined #ruby
huoxito has quit [Quit: Leaving]
cads has joined #ruby
alem0lars has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
vlad_starkov has joined #ruby
maxmanders has joined #ruby
elepedus has joined #ruby
yacks has joined #ruby
maxmanders has quit [Ping timeout: 264 seconds]
amacgregor__ has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
amacgregor_ has quit [Ping timeout: 256 seconds]
amacgregor has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
ntus1017 has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 245 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
brennanMKE has joined #ruby
heftig has joined #ruby
maxmanders has joined #ruby
mneorr__ has quit [Remote host closed the connection]
nari has joined #ruby
brennanMKE has quit [Ping timeout: 276 seconds]
Adawerk has quit [Read error: Connection reset by peer]
ffio has joined #ruby
Adawerk has joined #ruby
Neener54 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
whowantstolivefo: and this is a ruby problem how?
_serial_ has quit [Quit: Ex-Chat]
<MrZYX>
no, it's a #ubuntu problem
<sevenseacat>
cross-posting things when its unrelated to BOTH channels, is annoying
cha1tanya has quit [Quit: cha1tanya]
<whowantstolivefo>
MrZYX: hmmi was think it s about ruby gems problem because i cant install rmagick
<Beoran_>
use imagescience then, less memory leaks
mansi has joined #ruby
whowantstolivefo was kicked from #ruby by apeiros [if you cross post, you must at least tell that in all channels where you cross post]
whowantstolivefo has joined #ruby
<whowantstolivefo>
okay, i got it
<spike|spiegel>
apeiros: any particular reason for being that uptight about cross posts?
raul782_ has quit [Remote host closed the connection]
<apeiros>
spike|spiegel: people who cross-post rarely ever share solutions from other channels, or even bother to tell that they've got an answer. and that's the end of this discussion. pm if you want to continue.
maz-dev has joined #ruby
<spike|spiegel>
just curious, so, pretty much 'waste other's time'
<apeiros>
spike|spiegel: any particular reason you think basic decency isn't needed in irc?
<apeiros>
spike|spiegel: pretty much, yes
<spike|spiegel>
all I meant was kicking was a bit too much
maz-dev has quit [Remote host closed the connection]
<sevenseacat>
or they inevitably just turn into help vampires.
<apeiros>
spike|spiegel: that's from experience. people don't take it serious if you just tell them.
<zendeavor>
usually already are
maz-dev has joined #ruby
maz-dev has quit [Remote host closed the connection]
maz-dev has joined #ruby
<apeiros>
and a kick doesn't prevent you from rejoining. though, now that you say it, I usually noted that in the kick message (since some users don't understand the difference between kick & ban)
mansi has quit [Ping timeout: 260 seconds]
maz-dev has quit [Remote host closed the connection]
<spike|spiegel>
whowantstolivefo: just read your gist, there's a dependency issue with your system packages.
neo__ has joined #ruby
neo_ has quit [Read error: Connection reset by peer]
maz-dev has quit [Remote host closed the connection]
ffio_ has joined #ruby
hogeo_ has joined #ruby
ffio has quit [Ping timeout: 260 seconds]
<matti>
;]
hogeo has quit [Ping timeout: 240 seconds]
ryandeussing has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
axsuul has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
rezzack has quit [Ping timeout: 264 seconds]
amacgregor__ has quit [Quit: Leaving]
<whowantstolivefo>
spike|spiegel: i fixed thank yu
juarlex_ has quit [Read error: No route to host]
juarlex has joined #ruby
mneorr has joined #ruby
marius has quit [Quit: -]
Matriks has quit [Remote host closed the connection]
thepumpkin has joined #ruby
BizarreCake has quit [Ping timeout: 276 seconds]
claymore has joined #ruby
<claymore>
why does ruby (at least, the build I'm using) not have "./lib" in the $LOAD_PATH by default?
<spike|spiegel>
what is ./lib?
<Nilium>
Why would it?
<claymore>
well, it's a common directory in gems, or other programs following this file structure
<Nilium>
But it's a relative path.
marr has quit [Ping timeout: 260 seconds]
<claymore>
yeah, but does that matter?
<Nilium>
Yes.
<claymore>
is it a convention that $LOAD_PATH should only have absolute paths?
<Nilium>
Was it 1.9 that removed '.' as one of the default load paths?
<Nilium>
Anyway, it was either 1.9 or 2.0 that removed it, probably 1.9 'cause I don't remember seeing it in 2.0's changes. It wouldn't make sense to reintroduce a relative path.
<spike|spiegel>
1.9 it was
<claymore>
it just feels ugly to have to write $LOAD_PATH << "./lib" before doing requires
<Nilium>
To me, it mainly comes across as a security thing.
blackmesa has quit [Ping timeout: 240 seconds]
<claymore>
hmm, I guess that's a consideration with relative paths
<banisterfiend>
claymore: it is in the load path in the case of gems
<banisterfiend>
because gems are canonical libraries
workmad3 has joined #ruby
<Nilium>
Also, you can always just pass -Ilib to Ruby.
Zolo has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
<banisterfiend>
i usually create a 'rake run' rake task that does that for me
whowantstolivefo has quit [Quit: whowantstolivefo]
<Nilium>
I usually don't use rake 'cause I'm a horrible person.
<claymore>
I see, thanks guys
<Nilium>
Maybe I'll try to play more Counter-Strike and see if I can't stop sucking at multiplayer games for once.
<claymore>
and I didn't know about the -Ilib option, that looks useful
lkba has joined #ruby
h8R has joined #ruby
h8R has quit [Client Quit]
Notte has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
Spooner has joined #ruby
mneorr has joined #ruby
apeiros has joined #ruby
wargasm1 has joined #ruby
browndawg has joined #ruby
julweber has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
mansi has joined #ruby
ezotrank has joined #ruby
julweber_ has joined #ruby
julweber has quit [Ping timeout: 256 seconds]
<zendeavor>
counter strike
<zendeavor>
my poison.
mansi has quit [Ping timeout: 276 seconds]
<zendeavor>
since 2001
julweber_ has quit [Read error: Connection reset by peer]
<sevenseacat>
im no good at counter strike
cads has quit [Ping timeout: 245 seconds]
<zendeavor>
it takes more dedication than it's worth
mneorr has quit [Read error: Connection reset by peer]
<zendeavor>
and pubbing is not even close to competitive play, as is usual with such games
<workmad3>
I never really liked counter strike
<workmad3>
for some reason it, and all the other multiplayer games built on the HL1 engine, felt slow to me (slow-paced action, not laggy, jerky because of machine specs)
ezotrank has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zendeavor>
cs is deliberately slow-paced
<workmad3>
yeah, I prefer higher-paced action in FPSs
<workmad3>
or at least, I did back when I played them a lot more than I do now :)
<sevenseacat>
only FPS im any good at is TF2
<workmad3>
I used to be reasonable at UT
yacks has quit [Ping timeout: 246 seconds]
ezotrank has joined #ruby
<zendeavor>
i loved the mixture of highbrow mindgaming and twitch-based action
james has joined #ruby
james has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 240 seconds]
<zendeavor>
the maps are small, your movements are easily trackable. outsmarting the opponent required elaborate ad-hoc strategy
james has joined #ruby
james is now known as Guest59941
<zendeavor>
unless you were a quick and deadly accurate shot, in which case you blow their face off
teddyp1cker has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergr_ has joined #ruby
Guest59941 has quit [Client Quit]
ganeshran has joined #ruby
<ganeshran>
in NET::Http class how do I set the authentication token?
apeiros has quit [Remote host closed the connection]
<ganeshran>
I mean authentication header with an oauth token
apeiros has joined #ruby
maxmanders has quit [Ping timeout: 256 seconds]
<ganeshran>
This line doesnt work :( req = request_class.new(query_string, {'Authorization' => "Bearer #{@oauthToken}" })
Wildhoney has joined #ruby
<Nilium>
You'll need more explanation than that.
<workmad3>
ganeshran: I'd suggest you use one of the several available OAuth client libraries tbh
<banisterfiend>
ganeshran: :( is a syntax error
<pontiki>
i always :( at my syntax errors, too
<workmad3>
ganeshran: at least, I would if this is something you intend to use in a real project... if you're trying to learn net/http and oauth then have fun :)
<ganeshran>
workmad3: banisterfiend I am using omniauth to get the token but is there an oauth library to make the request as well?
<ganeshran>
banisterfiend: can you please point it out. I am really new to ruby :(
Deele has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
<ganeshran>
workmad3: I am already using omniauth. I am not sure if there is a library which just takes the oauth 2 token and returns the resource
<bnagy>
yeah it looks pretty unlikely that it's the best way to write it
lemonsparrow has quit [Client Quit]
<bnagy>
shevy: they want to check that none are nil, but they don't know .all? exosts
<apeiros>
.map(&:nil?).none? is IMO a bad way to do ! .include?(nil)
<apeiros>
bnagy: all? checks for false too, though
vlad_starkov has joined #ruby
elepedus has quit [Quit: elepedus]
<bnagy>
yeah
ebanoid has joined #ruby
lebek has joined #ruby
<ganeshran>
shevy: it is trying to check for no nil elements is my guess. Even if a single one returns nil the method fails
mml has quit [Quit: leaving]
<dkamioka>
here you guys talk about ruby, but is rails ok or better go to the rubyonrails channel?
Banistergalaxy has joined #ruby
Neomex has quit [Quit: Neomex]
<bnagy>
dkamioka: better to hit #rubyonrails
<shevy>
dkamioka best ask the rails guys about rails, I for instance know nothing about rails, only ruby questions
<dkamioka>
oh thx.
<dkamioka>
I like ruby more than rails too. But nowadays our clients are all about rails.
<shevy>
hehe
<shevy>
dont worry
<shevy>
even apeiros fell to the dark side
<dkamioka>
although it's kinda strange to say ruby over rails...
<dkamioka>
coz it uses ruby...
gustavn has joined #ruby
gustavn is now known as johannal
<shevy>
until it will become its own programming language!
johannal has quit [Client Quit]
Wildhoney has quit [Quit: Wildhoney]
<ganeshran>
any suggestions for good tutorials or beginners books about ruby? I am trying to learn it and coming from a C# background it can be hard sometimes
<shevy>
yeah, I am scared by some of the $, they seem shaky and volatile sometimes
robscomputer has joined #ruby
<spike|spiegel>
some of them are fiber local ^_^
<dkamioka>
shevy: in what sense? How do we programmers may use it, or how the ruby interpreter "compiles" it?
<spike|spiegel>
it's just awesome
<apeiros>
and of course StringScanner#[] doesn't work with named captures
<apeiros>
suckage :(
<shevy>
dkamioka you mean the $ ?
sml0820 has quit [Quit: sml0820]
<dkamioka>
yield
<shevy>
dkamioka how we use it in ruby, ganeshran needs to find out and answer first :D
<shevy>
ganeshran after you worked through that tutorial, download the source and study it, it's awesome
<shevy>
years ago I wanted to extend it
* spike|spiegel
pukes
<shevy>
clean that up spike|spiegel !
<spike|spiegel>
MRI C source is awesome??
<apeiros>
even weirder - the same code works fine in pry
<workmad3>
apeiros: something to do with how IRB does its repl, maybe?
<apeiros>
maybe
<shevy>
spike|spiegel, no I meant the code of LearnToProgram/?Chapter=01
<shevy>
it's like one big fat file
plotter has quit [Remote host closed the connection]
<platzhirsch>
Design advise: I have different entities represented by classes and their respective instances. Now I need an instance to represent All instances. It does need to have special attribute values, but is there a Ruby idiomatic way to do that?
maz-dev has joined #ruby
razi has joined #ruby
jongilbraith has joined #ruby
arturaz has quit [Ping timeout: 276 seconds]
<MrZYX>
so you need an augmented array, basically?
clooth_ has joined #ruby
<dkamioka>
an array solves it? or do you need it to be a class ? something like mixin?
clooth has quit [Ping timeout: 268 seconds]
clooth_ is now known as clooth
<dkamioka>
need to use the methods of all the classes?
<Mattx>
I'm trying to use Open3.popen2, but as soon as I read the first line of stdout (using stdout.each do |line| ... end), it hangs
<Mattx>
nothing else is executed, it's weird
ukd1 has quit [Remote host closed the connection]
ryandeussing has quit [Ping timeout: 240 seconds]
mlpinit has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
sml0820 has joined #ruby
IceyEC has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
IceyEC has quit [Client Quit]
arietis has joined #ruby
endash has joined #ruby
allsystemsarego has quit [Quit: Leaving]
jongilbraith has quit [Ping timeout: 256 seconds]
r4nd0m1 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
farn has quit [Quit: farn]
jongilbraith has joined #ruby
<Mattx>
same for IO.popen!
Quashie has joined #ruby
clooth has joined #ruby
apeiros has quit [Remote host closed the connection]
farn has joined #ruby
apeiros has joined #ruby
apeiros_ has joined #ruby
r4nd0m1 has quit [Ping timeout: 246 seconds]
<IceDragon>
quick question guys! Is their a ruby gem for generating Module trees? (like it reads all the module's constants and generates a kind of sub-module tree thing ma jig)?
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby
r4nd0m1 has joined #ruby
QKO has quit [Ping timeout: 264 seconds]
gimpygoo has joined #ruby
samuelkadolph_ has joined #ruby
QKO has joined #ruby
supki_ has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
<shevy>
hmm dont think so IceDragon but perhaps one hidden deep somewhere
<IceDragon>
;-; Or I could just write one
<IceDragon>
8 lines, and it looks like it can do the job thus far...
<banisterfiend>
IceDragon: you mean like a visual representation?
<IceDragon>
yup
<IceDragon>
nothing fancy
<banisterfiend>
ascii?
<IceDragon>
even just text is fine
<shevy>
apeiros, you really sort private vs. public, with private going last in your class definitions?
<workmad3>
IceDragon: write out a graphviz file!
<banisterfiend>
pretty easy yeah
<banisterfiend>
IceDragon: you have to worry a bit about infinite loops though
<IceDragon>
yeah :P
<banisterfiend>
IceDragon: module A; B = ::A ; end
ddd has joined #ruby
<IceDragon>
;_; The horror of infinite loops!
<IceDragon>
I've added a depth check just in case of that
<IceDragon>
anything over 100 sub modules is just plain insane
<workmad3>
IceDragon: why not just have a 'visited' array?
<Mattx>
I want a progress file by file, like with -P, _br_
<workmad3>
shevy: I'll prepare the rope!
<shevy>
Mattx, you mean something like an asciibar?
ddd has quit [Quit: got home life to deal with]
Kricir has quit [Remote host closed the connection]
<Mattx>
even simpler, just the number: 1%, 2%, etc..
<Mattx>
which is easily obtained using -P
<Mattx>
the problem is that I'm not being able to read each line -.-
aryaching has joined #ruby
lucazi has joined #ruby
<workmad3>
IcyDragon: I've added an example to that gist now too btw :)
Levin_22 has joined #ruby
bleubeard has joined #ruby
<IcyDragon>
:O
<IcyDragon>
okay!
<IcyDragon>
nice!
goleldar has joined #ruby
arietis has joined #ruby
<_br_>
Mattx: Output to log file from rsync and read that instead?
<IcyDragon>
O_O my god, class speghetti...
* IcyDragon
goes blind
IcyDragon is now known as IceDragon
eldariof has quit [Ping timeout: 256 seconds]
<_br_>
anyone here has opinions on hubot? never used it and just curious.
<arietis>
anyone experienced problems setting up mysql2 gem?
gimpygoo_ has quit [Ping timeout: 276 seconds]
<_br_>
arietis: what problems? pastie?
<IceDragon>
Thanks workmad3, now I can see some huge problems :I
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
[Goodoog] has quit [Ping timeout: 260 seconds]
aryaching_ is now known as aryaching
<IceDragon>
pastie?, I have a 7mb png file staring at
<Mattx>
same problem for scp :|
<workmad3>
IceDragon: :D
<IceDragon>
it works!
ukd1 has quit [Remote host closed the connection]
<IceDragon>
but man, oh man :x @ my class tree (or class noodles)
<_br_>
Mattx: The probably is possibly since the shell magic is rewriting each line. so that way output doesn't reach anymore ruby beyond one line. Try outputting to log and read that.
<_br_>
s/probably/problem/
vlad_starkov has joined #ruby
<Mattx>
oh, that could be the problem, good idea
<workmad3>
IceDragon: heh :) I just spit out Object :) other than it crapping out because something overrode the 'name' method, it looks... interesting
<Mattx>
actually it couldn't, it's probably implemented using \r, so it's like adding lines to stdout even if you don't see them
<IceDragon>
I hope you still have your eyes >:
lucazi_ has joined #ruby
love_color_text has joined #ruby
<_br_>
Mattx: With shell magic I mean ^W or ^H 's are used
<IceDragon>
._. its scary when you include the parent module into a child...
lucazi has quit [Ping timeout: 264 seconds]
<IceDragon>
and then subclass from that...
<workmad3>
hehe
<workmad3>
ah, that sorts out the overridden name... use to_s instead
<shredding>
Block arguments are always passed as last arguments, no matter how many args a method has, right?
<_br_>
arietis: Anything interesting in /Users/*/.rvm/gems/ruby-1.9.3-p392/gems/mysql2-0.3.13/ext/mysql2/gem_make.out ?
<workmad3>
shredding: yes, and an explicit block argument has to have the & prefix
<shredding>
workmad3: thx. Are there implicit block arguments?
<shredding>
These blocks are really cool, but the concept itself is new to me.
<workmad3>
shredding: yes, all methods can take an implicit block argument
<Mattx>
_br_, the log is updated!!!
<_br_>
arietis: It seems that this is maybe a ACL aka permissions problem you have there.
virtualize has quit []
<_br_>
Mattx: so it works now?
vlad_starkov has quit [Ping timeout: 246 seconds]
Ry0_ has joined #ruby
<Mattx>
you were right, it seems the last line is replaced
<shredding>
workmad3: Oh, I have already read about that in eloquent ruby :)
<shredding>
Have to reread the part.
<Mattx>
because it size of the log file doesn't increase
<Mattx>
let me check again
butblack has left #ruby [#ruby]
<_br_>
Mattx: I'm pretty use rsync uses for -P shell ^W or ^H
<workmad3>
IceDragon: ok, that bit of code is pretty fun :D I had a bit of confusion for a second when I came across multiple classes pointing to the same class :)
<Mattx>
yep, it's replaced
renderful has quit [Remote host closed the connection]
<Mattx>
so in this case how do you capture the output?
<IceDragon>
Yeah, if you mixin a module with a class in it
<workmad3>
IceDragon: oh, and it looks like URI::HTTP has a self-reference :)
maz-dev has joined #ruby
<IceDragon>
all the modules which included the parent will point ot the child
virtualize has joined #ruby
<_br_>
Mattx: rsync has no option for log file and log append ?
BizarreCake has quit [Read error: Connection reset by peer]
weeems has quit [Ping timeout: 248 seconds]
<arietis>
also mysql_config was missing
pitzips_alt has joined #ruby
Nahra has joined #ruby
boblu has joined #ruby
aryaching_ is now known as aryaching
snovak has quit [Read error: Connection reset by peer]
snovak has joined #ruby
<rismoney>
is there a way i can make this http://pastie.org/8245386 use threads, so when i call this method, i don't have to wait for slowtask to finish?
havenwood has quit [Remote host closed the connection]
visof has quit [Remote host closed the connection]
sayan has joined #ruby
Naoe-Kanno has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
io_syl has joined #ruby
SHyx0rmZ has joined #ruby
baroquebobcat has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
torarne1 has joined #ruby
razi has quit [Ping timeout: 264 seconds]
<torarne1>
Q: If I have a class Foo inheriting class Bar, is there a way to run the class level init of the base-class, just like super for the instance init?
sml0820 has quit [Quit: sml0820]
IceyEC has quit [Quit: IceyEC]
aryaching_ has joined #ruby
weeems has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
aryaching has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
JDHankle_ has joined #ruby
JDHankle has quit [Read error: Connection reset by peer]
boblu has quit [Ping timeout: 248 seconds]
<banisterfiend>
torarne1: Yeah
Banistergalaxy has quit [Ping timeout: 260 seconds]
<banisterfiend>
torarne1: you mean you have: Foo < Bar < Base ?
<banisterfiend>
torarne1: and you want to call #initialize from Base on Foo ?
<banisterfiend>
torarne1: not quite sure what u mean there homie
elepedus has quit [Quit: elepedus]
JDHankle_ has quit [Ping timeout: 240 seconds]
devoldmx3 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<torarne1>
banisterfiend: I have My < Base, and Base has code in its class body (class init code, as I understand it?), to set up Base. This code is not run when I create a new "My", as I guess it's similar to class variables, in that they are not shared with subclasses. I'd like to run it though, as My is really just a thing wrapper around Base where I want to change the behaviour of one method slightly. I guess what I'm doing is similar to mixin/mon
<banisterfiend>
torarne1: what kind of code?
<banisterfiend>
torarne1: you can setup a Base.inherited(klass) which does stuff to the inheriting klass itself
<torarne1>
class A; puts "A"; end; class B < A; <here i want to "super" the class init of A, so that it prints "A" as well>; end
<banisterfiend>
torarne1: not really possible
Banistergalaxy has joined #ruby
<torarne1>
hmm, so perhaps i need to mixin/monkeypatch the Base class then
<banisterfiend>
torarne1: you'd need to build in that functionality yourself, maybe something like class A; do_stuff { puts "A" }; end and you save the block and re-run it in the class context for each inheriting class
devoldmx has quit [Ping timeout: 248 seconds]
razi has joined #ruby
ananthakumaran has joined #ruby
<torarne1>
banisterfiend: i see. i dont control Base, so that's gonna be tricky
<torarne1>
thanks though :)
sml0820 has joined #ruby
Tricon has joined #ruby
ryandeussing has joined #ruby
<banisterfiend>
torarne1: well you could create your own Base class that derives from Base and adds functionality, then make sure all your classes inherit from that
<torarne1>
true
havenwood has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
ryandeussing has quit [Ping timeout: 245 seconds]
pitzips_alt has quit [Ping timeout: 245 seconds]
nonamehero has joined #ruby
<workmad3>
IceDragon: that pic is awesome :D
<workmad3>
IceDragon: I kinda want to run that method over rails, see what comes up :)
Companion is now known as companion
sventon has joined #ruby
<IceDragon>
:P Well maybe you should make your code a little gem then and share it with the world!
<IceDragon>
I could find a few uses for it right now
kaspergrubbe has joined #ruby
rickmasta has joined #ruby
crazymykl has quit [Remote host closed the connection]
Xsheller has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
crazymykl has joined #ruby
intuxicated has joined #ruby
akells` has joined #ruby
Kricir has joined #ruby
gimpygoo has joined #ruby
jonathanwallace has quit [Ping timeout: 268 seconds]
intuxicated has quit [Read error: No route to host]
tatsuya_o has joined #ruby
araujo has quit [Read error: Connection reset by peer]
PanPan has quit [Remote host closed the connection]
Kricir has joined #ruby
devdvd has joined #ruby
Tricon has quit [Quit: Leaving...]
ryandeussing has joined #ruby
Wildhoney has joined #ruby
goganchic has quit []
Ry0_ has quit [Remote host closed the connection]
Crawford has joined #ruby
sml0820 has quit [Ping timeout: 240 seconds]
zachrab has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<devdvd>
hey everyone, having a bit of a problem. Here is my code https://gist.github.com/devblueray/6257900. Not sure why, but it runs just fine from the shell but when I try to run it with sinatra it complains that theres no method each for 2:fixnum. I researched this and found it could be because im trying to call .each on a number. However, In my code, the only place that im calling .each is on the nums array (verified through .class). It appe
<devdvd>
ars to be thinking that i am running .each on each element in the array but im not...at least not explicitly. Would anyone be willing to take a look to see what obvious mistake im making?
pvizcay has joined #ruby
rippa has joined #ruby
IceyEC has joined #ruby
<eka>
devdvd: what happen when you pass only 1 argument?
love_color_text has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
<devdvd>
blank page
JDHankle has joined #ruby
<devdvd>
but
<eka>
devdvd: I meant, what happen when you pass only 1 arg to the get_articles method
Mon_Ouie has quit [Ping timeout: 268 seconds]
<devdvd>
well, the method works, i can see the output on the screen and there's no errors but the page is blank
<devdvd>
on the console i mean
<devdvd>
let me update the gist
<eka>
devdvd: the gist is very bad formatted though
Kricir has quit [Remote host closed the connection]
<eka>
devdvd: sure that the article id exists on redis?
<devdvd>
positive
<devdvd>
i just commented on the gist
<devdvd>
thats when i pass 2 as the only value
zachrab has quit []
<eka>
devdvd: why using hmget? shouldn't be hget or something?
<eka>
devdvd: or hgetall
Notte has quit [Remote host closed the connection]
<eka>
devdvd: hmget: Returns the values associated with the specified fields in the hash stored at key.
<workmad3>
zachrab: rack is an interface between ruby and a webserver... sinatra is a web framework built on the rack interface
mneorr has quit [Remote host closed the connection]
<spike|spiegel>
and am I the only who thinks rack is too simplistic?
zachrab has quit [Read error: Connection reset by peer]
zachrab_ has joined #ruby
blackmes1 has joined #ruby
<zachrab_>
i understand that is there a way to build a server without a framework?
<zachrab_>
can I use just rack and a webserver
<pontiki>
sure, write one right on top of IP
<workmad3>
zachrab_: you can build a rack application directly
<spike|spiegel>
you just use TCP :)
<workmad3>
zachrab_: or you could use the CGI library directly...
<havenwood>
zachrab: Rack is a web server interface. It is popular to pair a Rack framework with a Rack web server, but yeah, you can use Rack without a framework.
<pontiki>
feh, who need transport layer
<zachrab_>
workmad3: how? is there something i can reference?
mneorr has joined #ruby
<workmad3>
zachrab_: or you could write your own network server :)
<havenwood>
zachrab_: Sinatra is more of a DSL on top of Rack, whereas Rails is an entire framework.
<eka>
zachrab_: you can always try cuba
<zachrab_>
what would i accomplish not using framework?
<zachrab_>
a
<spike|spiegel>
pontiki: might as well do Ethernet by hand
<zachrab_>
im making a mobile app and i need a server to just serve straight up json
<havenwood>
zachrab_: Rack web servers include Unicorn, Thin, Passenger, Webrick, Puma. Rack frameworks include Sinatra, Rails, Scorched, Cuba.
<pontiki>
friggin softhead. just click a battery on the wire
<workmad3>
zachrab_: well, the rack application is really simple... a rack application is a ruby object that responds to the method 'call' with a single parameter (the request environment) and responds with a 3 item array of [status code, {response headers}, ["response body strings"]]
blackmesa has quit [Ping timeout: 240 seconds]
<zachrab_>
workmad3: what would i accomplish by not using the sinatra framework?
Alina-malina has quit [Ping timeout: 256 seconds]
colonolGron has joined #ruby
<workmad3>
zachrab_: probably not much tbh
<havenwood>
zachrab_: You'd be losing a nice dsl but also ditching some weight and clutter.
zachrab_ has quit [Read error: Connection reset by peer]
<canton7>
not very much weight - sinatra's pretty light
<canton7>
(though there are lighter)
<zachrab>
what does lightweight mean? what would i accomplish by not using a framework?
<waxjar>
check out cuba :)
<havenwood>
Sinatra is pretty minimal, but yeah there are lighter.
<canton7>
you're be doing much the same as sinatra does, but by hand
<devdvd>
eka, thanks for the protip on hget, didn't fix the issue (though i did get it fixed with a tip from the peeps in the sinatra channel by using stringio) but your tip greatly simplified things, no longer am i bothering with the json stuff, i can just print what i want directly
<MrZYX>
in other words: if you need to ask that just use sinatra and stop worrying
<eka>
devdvd: cool :)
Alina-malina has joined #ruby
zachrab_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<zachrab_>
what does light weight mean tho?
zachrab has quit [Read error: Connection reset by peer]
cads has quit [Ping timeout: 264 seconds]
<fryguy>
zachrab_: consumes fewer resources
<zachrab_>
resources?
<fryguy>
zachrab_: cpu, memory, etc.
<waxjar>
cpu time / memory
<zachrab_>
got it
<havenwood>
zachrab: Just closer to the metal. Tends to be a tad faster. You have to do more yourself. Fewer things to learn about the framework.
zachrab_ has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
<havenwood>
zachrab_: Sinatra is about 1,000 lines. The most popular of the three.
robonerd has joined #ruby
<Morrolan>
Unless you're inexperienced and, therefore, doing it wrong. Then you might achieve worse performance than if you had used a framework. :)
Vivekananda has joined #ruby
Todd has joined #ruby
<havenwood>
Sinatra is plenty quick for a JSON API! :)
<zachrab>
whats the best db to use with Sinatra?
<canton7>
it's also worth considering developer time, especially if you don't *need* the fastest possible execution speed etc
Monie has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
<canton7>
especially if this is a personal project
<havenwood>
zachrab: Relational or not?
elepedus has quit [Quit: elepedus]
<eka>
zachrab: everything depends on the requirements… as usual
<zachrab>
havenwood: doesn't matter
<havenwood>
zachrab: PostgreSQL with Sequel gem for relational. Redis with Ohm gem for key value.
IcyDragon has joined #ruby
<Todd>
all of our json services at the office are RoR.. I always wondered why they didn't use something lighter
<popl>
infected by the buzz?
<havenwood>
Todd: Guess if you're already a Rails dev, it makes nice JSON APIs too so why not if you're more familiar.
<Todd>
eka, legacy codebase is all perl ~400,000 lines of it
<eka>
Todd: wow
<Todd>
eka, we're a large newspaper company.. we process lots of text, but they totally went overboard
<havenwood>
A Perl 6 shop. Now that would be interesting. :P
<Todd>
eka, they entire CMS is written in perl
<shevy>
man that mus be one of the largest perl codebases out there
zachrab has quit [Read error: Connection reset by peer]
IcyDragon is now known as IceDragon
zachrab has joined #ruby
<eka>
Todd: and it's a happy job?
zeromodulus has joined #ruby
<eka>
Todd: good code at least? (I doubt to say that when talking about perl)
<eka>
well slashdot.org is perl also
Senjai has joined #ruby
<eka>
afaik
<popl>
eka: stfu
<popl>
:P
<eka>
popl: why?
<shevy>
how many lines of perl code is slashdot.org?
<popl>
nevermind. I guess it's #ruby, not #perl. continue the hate
<shevy>
hate?
lessless has joined #ruby
<eka>
so popl I don't see you in #perl though...
zeromodulus has quit [Client Quit]
<eka>
;)
<shevy>
it goes without emotion to note the fact that ruby is a superior language compared to perl popl
<popl>
eka: you must not be in #perl then
<eka>
popl: whois shows the channels you are in right?
<Rylai>
eka: no
<Morrolan>
#perl is probably +s.
<Rylai>
eka: it shows channels you share with them
<eka>
ok so… I stand corrected
<Rylai>
unless they're -i
<Morrolan>
Oh, Freenode must be different in that regard, then. :)
<popl>
I'm always +i
<popl>
people be snoopin'
<popl>
;P
<shevy>
you have something to hide
<Rylai>
if they're umode -i, then you can see all channels they're in that aren't +s
io_syl has quit [Quit: io_syl]
Ry0_ has quit [Remote host closed the connection]
<lessless>
folks, is it possible to convert nokogiri's associated array into the hash: [['code', '01'], ['value', '02']] to {:code=>"01", :value=>"02"} ?
<popl>
'cause then there's going to be like, spikes, and drama.
obs has joined #ruby
SHyx0rmZ has quit [Ping timeout: 240 seconds]
<shevy>
those cute little traditional wooden clubs with tiny little iron spikes in them
<Morrolan>
Yep, those are the ones. :)
predator117 has joined #ruby
Matriks has quit [Remote host closed the connection]
<popl>
Rylai: the misunderstanding was when you said "unless they're -i" and I presumed you meant +i
cs02rm0 has joined #ruby
<MrZYX>
Morrolan: how come you have over 750 of those?
<shevy>
MrZYX sponsoring :D
IceyEC has joined #ruby
<MrZYX>
ah, so it's spam
* MrZYX
calls a freenode op
<popl>
yes, spammed by clubs
<Morrolan>
MrZYX: They see quite some use. And once all the little iron spikes have fallen out, I usually buy a new one. Due to all the associated memories I never throw the old ones away, however. :)
mneorr has quit [Remote host closed the connection]
<popl>
at least the spamming clubs aren't made from spam.
<shevy>
that reminds me of the monty python sketch about spam
<popl>
of course it would. all you people are all alike with your "I think my parrot is dead" and your "huge tracts of land".
Zolo has quit [Ping timeout: 264 seconds]
maniacal has joined #ruby
<popl>
there needs to be a tongue-in-cheek emoticon
MrPoT4tO has joined #ruby
companion is now known as Companion
<Morrolan>
:)
colonolGron has quit [Quit: Lost terminal]
_veer has quit [Ping timeout: 248 seconds]
<shevy>
the holy grail was awesome
YaNakilon has quit [Ping timeout: 245 seconds]
<popl>
I have a copy of Jabberwocky.
Ry0_ has joined #ruby
<shevy>
hmm
Es0teric has joined #ruby
obs has quit [Quit: Konversation terminated!]
<L8D>
How can I reverse a hash that has numbers keys to strings
<eka>
popl: old one?
<shevy>
hmm
Zeeraw has quit [Ping timeout: 257 seconds]
<shevy>
can you give example
<L8D>
So that the resulting hash has strings to kets
<canton7>
L8D, reverse in what sense?
<shevy>
can you show input -> output, then we tell you which code does that
<popl>
eka: what do you mean?
<L8D>
{1 => "foo"} -> {"foo" => 1}
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
<canton7>
#invert iirc?
IceyEC has quit [Quit: IceyEC]
<eka>
popl: since it's a very old poem I thought that the relevance of your comment was that you had an old original one :)
<waxjar>
what happens if you have two values that are the same?
<Mattx>
I can't pipe like in "echo whatever | foo", the format is "foo --input file_here"
<Mattx>
(where --input is mandatory)
robustus has quit [Ping timeout: 264 seconds]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
erichmenge has joined #ruby
lethjakman has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
davidcelis has joined #ruby
davidcelis is now known as Guest19613
robustus has joined #ruby
<sml0820>
So I am a total ruby noob. I am trying to create a Bingo game for the command prompt in ruby - I type ruby bingo3.rb in my command line and nothing happens. Would anyone be willing to look at a gist of my game? or I am just doing something wrong on the command line?
robonerd has quit [Quit: zzz]
havenwood has quit [Remote host closed the connection]
<MrZYX>
nothing happens in as you're returned to your prompt or it's blocking your shell?
<MrZYX>
(and sure, always gist away)
atno has quit [Remote host closed the connection]
<sml0820>
Okay awesome, yeh it returns to the prompt
<MrZYX>
so you define a class but never make a new instance of it
ylluminate has joined #ruby
<sml0820>
ah okay, so after the last end do I just put Bingo.new ?
<MrZYX>
yes
sventon has quit [Remote host closed the connection]
robonerd has joined #ruby
<MrZYX>
you can save the return keywords in your draw_number method
<MrZYX>
the last line of the when clause will be the return value of the case statement, and that will be the return value for the method (since it's the last statement in the method)
sepp2k has joined #ruby
sjltaylor has joined #ruby
<L8D>
what was that language thing that auto-insterted `end` keywords based on indentation
bamdad has quit [Quit: bamdad]
<MrZYX>
python?
<L8D>
lol
<L8D>
I meant, a ruby symbiotic language
<sml0820>
Ah okay so I can delete the return keywords in the case method?
<L8D>
like how coffeescript is to javascript
<MrZYX>
sml0820: yes
<L8D>
but all it really did was auto-inserting of `end` keywords.
<MrZYX>
sml0820: line 98 would be better written as 19.times do put_line end
<MrZYX>
also consistently use def foo(bar) or def foo bar
<sml0820>
MrZYX: Okay I see, I tried to load it up and it kind of works. No numbers are going on the bingo board
<sml0820>
I am not sure what is wrong with that method
<L8D>
MrZYX: I like to not use the parens when defining an operator method like: def > other_object
<L8D>
I think it looks much better than: def >(other_object)
maxmanders has quit [Ping timeout: 240 seconds]
<MrZYX>
I started to not use them at all anymore on method definitions
<L8D>
the parens?
<MrZYX>
yes
<L8D>
yeah;.
buenob has joined #ruby
<L8D>
I only use them so they don't get arrested by rubocop
huevon has quit [Quit: huevon]
<MrZYX>
sml0820: @columns is a constant, define it as such, same for a couple others probably
kaspergrubbe has joined #ruby
Lewix has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
Evixion has quit []
<MrZYX>
you can pass multiple values to a when to remove duplication, for example in ask_to_play_again: when "y", "yes" then ...
companion is now known as Companion
<L8D>
how do surpress warnings for irb?
<MrZYX>
sml0820: times_in_column can be rewritten as arr.count { |i| @places[i] == item }
Lewix has joined #ruby
<L8D>
-W=0 does nothing
buenob has quit [Remote host closed the connection]
malcolmva has joined #ruby
Evixion has joined #ruby
ryandeussing has joined #ruby
Lewix has quit [Remote host closed the connection]
ebanoid has quit [Ping timeout: 260 seconds]
sayan has quit [Remote host closed the connection]
momomomomo has joined #ruby
Lewix has joined #ruby
ebanoid has joined #ruby
malcolmva has quit [Ping timeout: 256 seconds]
ryandeussing has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
tomzx_mac has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
hadees has joined #ruby
aryaching_ has quit [Ping timeout: 246 seconds]
<sml0820>
MrZYX: okay thank you, can you see anything wrong with my block around line 66. for some reason its not generating any numbers
<MrZYX>
oh, I think you got @places << @bingo_cards backwards
<MrZYX>
actually that doesn't make any sense
zeropx has joined #ruby
<MrZYX>
try writing p @places in line 71 and you'll see why
relix has joined #ruby
Kricir has joined #ruby
malcolmva has joined #ruby
tatsuya_o has joined #ruby
thepumpkin has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sml0820>
MrZYX: hmm I see - its generating the numbers, just not in the appropriate spot. I am not sure how to fix this to be honest
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: Computer has gone to sleep.]
shellH has joined #ruby
araujo has quit [Read error: Connection reset by peer]
Notte has quit [Remote host closed the connection]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
d45h has quit [Quit: d45h]
swordsmanz has quit [Read error: Connection reset by peer]
snovak has quit [Remote host closed the connection]
buenob_ has joined #ruby
swordsmanz has joined #ruby
huevon has joined #ruby
mlpinit has quit [Remote host closed the connection]
buenob has quit [Ping timeout: 264 seconds]
buenob_ has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
Lewix has joined #ruby
kaspergrubbe has joined #ruby
Deele has joined #ruby
<sml0820>
MrZYX: one last question! in the block on line 156,@user = X, so it should replace X when the number is called. However, its not replacing the number with X. Can you see what is wrong with that block?
<sml0820>
I can't figure it out, although I don't think i should have @ places twice
freerobby has joined #ruby
<MrZYX>
do a p i inside
<MrZYX>
Hash#each doesn't yield what you think it does
sambao21 has quit [Quit: Computer has gone to sleep.]
i8igmac has quit [Quit: Leaving]
<MrZYX>
the outer loop is useless btw, you just do the same operation @bingo_cards.size times
bricker`LA has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
MrPoT4tO has quit [Read error: Connection reset by peer]
MrPoT4tO has joined #ruby
<MrZYX>
also start naming your local variables after (what you think) they mean, not n, x and i
MrPoT4tO has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 264 seconds]
Soliah has quit [Read error: Connection reset by peer]
buenob has joined #ruby
pyrac has joined #ruby
blackmes1 has quit [Client Quit]
waysc has quit [Ping timeout: 248 seconds]
waysc has joined #ruby
pyrac has quit [Client Quit]
blackmesa has joined #ruby
<sml0820>
MrZYX: okay thank you - i printed it and it yields [:a1, 0]. So should i change it @places[i] = @user if @places[i] == random to @places[i[0]] = @user if @places[i[0]] == random?
<MrZYX>
no
fridim__ has quit [Ping timeout: 240 seconds]
<MrZYX>
decompose the array in the block arguments: @places.each do |place, value|
<MrZYX>
yet better learn to use Enumberable: place = @places.find {|place, value| value == random}.first; @places[place] = @user
Nisstyre-laptop is now known as Nisstyre
djdeluxe76 has joined #ruby
djdeluxe76 has quit [Remote host closed the connection]
cads has joined #ruby
Levin_22 has quit [Quit: Levin_22]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maz-dev has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<apeiros>
shevy: yes, I do
<sml0820>
MrZYX: thanky ou, still does not replace it with X when the random number comes up. I am not sure why
freerobby has joined #ruby
<apeiros>
makes it easier as I can write `private` only once
jkline has joined #ruby
ryandeussing has joined #ruby
Astralum has joined #ruby
brennanMKE has quit [Remote host closed the connection]
vince_prignano has joined #ruby
Nisstyre has quit [Quit: Leaving]
lessless has quit [Read error: Operation timed out]
lessless has joined #ruby
allsystemsarego has quit [Quit: Leaving]
bricker`1A has joined #ruby
dr_ick has joined #ruby
bricker`LA has quit [Ping timeout: 248 seconds]
ryandeussing has quit [Ping timeout: 256 seconds]
bricker`1A is now known as bricker
xcv has joined #ruby
Lewix has quit [Remote host closed the connection]
ebanoid has quit [Quit: brbomgwtfbbq]
<sml0820>
MrZYX: Got it to work, thank you for all your help
<pontiki>
it's annoying to cross post and not tell anyone
<platzhirsch>
I don't think so
jongilbraith has joined #ruby
spider-mario has quit [Remote host closed the connection]
<pontiki>
ok
<pontiki>
it annoys me
<pontiki>
there
<pontiki>
happy?
codecop has quit [Remote host closed the connection]
<platzhirsch>
Well, I would rather call it content
<apeiros>
platzhirsch: it's easy to say "I don't care about it" if you haven't helped anybody yet.
snovak has quit [Ping timeout: 240 seconds]
stuartrexking has joined #ruby
<apeiros>
and by not helping never ran into a situation where you wasted your time due to some douchebag just abandoning places where he/she asked questions
<wtf_gsub>
ok sorry.
jongilbraith has quit [Client Quit]
<platzhirsch>
apeiros: okay, but that's a general attitude I did also some cross posting, but often I write then that the problem is solved or what solved it. I would make too many implications on that behavior
<platzhirsch>
wouldn't*
pvizcay has joined #ruby
<apeiros>
platzhirsch: experience shows that almost all cross-posters share that attitude.
<apeiros>
in the last 10 years, I've seen it like 2 times that somebody actually bothered to inform other channels.
ferdev has joined #ruby
<platzhirsch>
Well, I guess you are right. But although I probably haven't giving as near as much support answers and haven't faced that behavior, I find it startling to call it time waste
havenwood has quit [Remote host closed the connection]
buenob has quit [Remote host closed the connection]
<pontiki>
ask yourself, then, how many times you need to be annoyed to decide it's not worth helping people who do that?
<pontiki>
or, not that, any particulary thing you find annoying?
havenwood has joined #ruby
buenob has joined #ruby
<apeiros>
also ask yourself whether it should or shouldn't be expected that if you get free help and valuable time from others, you show some basic decency.
<platzhirsch>
If it occurs too often I would be pissed off, too ;)
bricker has quit [Ping timeout: 240 seconds]
<shevy>
a problem should be simple
<apeiros>
shevy: "should"
<apeiros>
if they were, people wouldn't end up asking here
<shevy>
ah sometimes there are newbie questions, I like these the most
<apeiros>
and some of them are indeed more than a mere 1s thought to answer. I've had questions where I helped for a good hour.
bleubeard has quit [Remote host closed the connection]
<platzhirsch>
not necessarily, sometimes it's not Q&A, but discuss questions. That's especially a point why I find cross-posting sometimes valuable
Nisstyre-laptop has joined #ruby
<apeiros>
nobody forbids you to cross-post
<platzhirsch>
apeiros: okay, but would you say in these cases, that you did what you did because you truly wanted to help that person or because you had fun figuring out the problem in a collaborative way?
<apeiros>
but have the basic decency to declare that fact
DanKnox is now known as DanKnox_away
<apeiros>
platzhirsch: the world ain't black & white
<apeiros>
I enjoy helping people as much as I enjoy solving riddles or passing on my knowledge.
<apeiros>
but I'm pissed off if I'm being used.
<platzhirsch>
both is always an answer, too :)
havenwood has quit [Ping timeout: 264 seconds]
buenob has quit [Ping timeout: 260 seconds]
<platzhirsch>
In a world of such good things as other people helping other there is always those who exploit that for their own use, but what can you do?
<apeiros>
easy
<platzhirsch>
besides objecting if someone cross-posts...ah here we go
<apeiros>
I kick & ban
<platzhirsch>
lol
blackmesa has quit [Ping timeout: 240 seconds]
<platzhirsch>
so much negativity
Spami has quit [Quit: This computer has gone to sleep]
<apeiros>
yes. utopia is still a far reach.
<apeiros>
anyway, IMO and IME negativity in this channel diminishes compared to the positivity and the help.
<apeiros>
and maybe one reason is because sometimes inacceptable behavior is being acted upon.
<platzhirsch>
apeiros: oh yes, I have been in some channels which had really bad vibe. #ruby is really an enjoyable place
jonahR has quit [Ping timeout: 276 seconds]
<apeiros>
pillow time
jonahR has joined #ruby
<apeiros>
gn8 @ all, and be nice to each other :-p
jonahR has quit [Client Quit]
<platzhirsch>
Ostrich Pillow
<platzhirsch>
n8 ;)
pvizcay has quit [Quit: leaving]
<apeiros>
actually "down-filled headrest cushion"
visof has quit [Remote host closed the connection]
<apeiros>
(wtf? why is the english word for "daunenkissen" so complicated?)
araujo has quit [Read error: Connection reset by peer]
<platzhirsch>
haha
<platzhirsch>
yes, I faced that today as I wanted to know what's Wellblechdach in English
<apeiros>
does "ostrich pillow" have a meaning?
<platzhirsch>
it's a product
tatsuya_o has quit [Remote host closed the connection]