<theharshest>
havenwood: i tried require 'gem1', same error
<theharshest>
havenwood: It can read other classes in the gem. but not the one I recently added
<theharshest>
havenwood: after making changes to the gem, do I need to do some repackaging stuff there?
rokob has joined #ruby
nmokru has quit [Quit: nmokru]
mjuszczak has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 245 seconds]
smathieu has quit [Remote host closed the connection]
jdj_dk has joined #ruby
<havenwood>
theharshest: try? bundle update gem1
ddv has quit [Ping timeout: 245 seconds]
<havenwood>
theharshest: maybe uninstall gem1 to make sure it installs the modified version
<havenwood>
theharshest: i think i'm starting to follow what the issue is at least :)
Takle has quit [Remote host closed the connection]
<havenwood>
theharshest: might try #bundler if removing and installing the custom modified gem before a bundle doesn't work
<theharshest>
havenwood: let me try that, thanks :)
ViperChief has left #ruby [#ruby]
jdj_dk has quit [Ping timeout: 240 seconds]
ddv has joined #ruby
febuiles has joined #ruby
foo-bar- has joined #ruby
tyfighter has quit [Quit: <3]
maletor has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
havenwood has quit [Remote host closed the connection]
foo-bar- has quit [Ping timeout: 256 seconds]
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
Aryasam has quit [Read error: No route to host]
Aryasam has joined #ruby
Aryasam_ has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
axsuul has quit [Read error: Connection reset by peer]
datafirm has quit [Ping timeout: 240 seconds]
rokob has quit [Remote host closed the connection]
codeurge has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
TazDev has joined #ruby
davispuh has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aryasam_ has quit [Ping timeout: 240 seconds]
banjara has quit [Quit: Leaving.]
rokob has joined #ruby
NinoScript has joined #ruby
bubbajones has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
jdj_dk has joined #ruby
axsuul has joined #ruby
mconnolly has joined #ruby
eka has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
TazDev has quit [Quit: TazDev]
nfk has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
jdj_dk has quit [Ping timeout: 256 seconds]
datafirm has joined #ruby
angusiguess has joined #ruby
bubbajones has joined #ruby
TazDev has joined #ruby
TazDev has quit [Client Quit]
jdj_dk has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 264 seconds]
toretore has quit [Quit: This computer has gone to sleep]
mjuszczak has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
bubbajones has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
quiliro has joined #ruby
lw_ has joined #ruby
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jdj_dk has quit [Ping timeout: 264 seconds]
Atrumx has joined #ruby
oo_ has joined #ruby
lw has quit [Ping timeout: 264 seconds]
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
chrishough has joined #ruby
britneywright has joined #ruby
GriffinHeart has joined #ruby
vpretzel has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
bubbajones has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mgberlin has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
mgberlin has quit [Read error: Connection reset by peer]
yetanotherdave has quit [Ping timeout: 256 seconds]
smathieu has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
mgberlin has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
Hanmac1 has joined #ruby
eka has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
lw_ has quit [Quit: s]
bwilson has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
niharvey has quit [Ping timeout: 245 seconds]
bwilson has joined #ruby
bruno- has joined #ruby
Martxel has quit [Read error: Connection reset by peer]
bubbajones has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Quit: chrishough]
vpretzel has joined #ruby
datafirm has joined #ruby
niharvey has joined #ruby
BBBThunda has joined #ruby
bwilson has quit [Client Quit]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dh64 has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
mgomezch_ has quit [Ping timeout: 245 seconds]
cerberblue has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
datafirm has quit [Ping timeout: 240 seconds]
smathieu has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
washtubs has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 240 seconds]
lanox has joined #ruby
bubbajones has joined #ruby
washtubs has joined #ruby
Zebroid has joined #ruby
Aryasam has joined #ruby
smathieu has joined #ruby
io_syl has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
sdouglas has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
vpretzel has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
wallerdev has quit [Quit: wallerdev]
Rylee_ is now known as Rylee
mikepack has quit [Remote host closed the connection]
ericmathison has joined #ruby
mgomezch has joined #ruby
djbkd has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
niharvey has quit [Ping timeout: 264 seconds]
washtubs has quit [Read error: Connection reset by peer]
lw has joined #ruby
robbyoconnor has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
vifino has quit [Quit: Me sais Laptop sleepy.]
mikepack has joined #ruby
yeticry has joined #ruby
vpretzel has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_Blizzy has joined #ruby
bubbajones has joined #ruby
<_Blizzy>
so for open-uri, if I wanted a GET request, I would use 'require "open-uri" url = open(URL).read'
Hobogrammer has quit [Ping timeout: 240 seconds]
niharvey has joined #ruby
djbkd has quit [Quit: My people need me...]
<pontiki>
that'd do it
angusigu1ss has joined #ruby
ericmathison has quit [Ping timeout: 256 seconds]
ericmathison has joined #ruby
bubbajones has quit [Ping timeout: 264 seconds]
jottr has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
lw has quit [Quit: s]
Alina-malina has joined #ruby
jdj_dk has joined #ruby
sdouglas has quit [Remote host closed the connection]
<theharshest>
how do I get list of all rake tasks?
smathieu has quit [Remote host closed the connection]
<theharshest>
I just did "bundle exec rake db:create" in some repo but I don't know where this rake task is
sdouglas has joined #ruby
robbyoconnor has quit [Excess Flood]
<theharshest>
I grepped for "db:create" in lib/tasks/* but couldn't find anything
angusigu1ss has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
vpretzel has quit [Remote host closed the connection]
alexju has joined #ruby
kireevco has joined #ruby
Atrumx has quit [Quit: exit]
ehlovader has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 264 seconds]
jdj_dk has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 264 seconds]
jdj_dk has joined #ruby
cnj has quit [Ping timeout: 240 seconds]
<rokob>
theharshest: `bundle exec rake -T` will list them, rake tasks can also be added by gems, for instance the rails gem adds db tasks like db:create that live within the gem at lib/tasks/databases.rake
moted has quit [Quit: moted]
ehlovader has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
cnj has joined #ruby
<_Blizzy>
late, yet thanks for the response, pontiki.
jdj_dk has joined #ruby
rokob has quit []
jdj_dk has quit [Ping timeout: 240 seconds]
<theharshest>
rokob: my bad, they were builtin rakes for Rails app
<theharshest>
rokob: thanks :)
mgberlin has quit [Remote host closed the connection]
mgomezch has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
hobogrammer1 has joined #ruby
hobogrammer1 has quit [Client Quit]
mgomezch has joined #ruby
vpretzel has joined #ruby
fabrice31 has joined #ruby
bricker`LA has joined #ruby
mikepack has quit [Remote host closed the connection]
foo-bar- has joined #ruby
wallerdev has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
foo-bar- has quit [Ping timeout: 240 seconds]
washtubs has joined #ruby
SCommette has joined #ruby
bubbajones has joined #ruby
Xeago has joined #ruby
axsuul_ has joined #ruby
vpretzel has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
ericmathison has quit [Ping timeout: 240 seconds]
tus has quit []
axsuul has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
haroldwu_ is now known as haroldwu
haroldwu has quit [Changing host]
haroldwu has joined #ruby
sdouglas has quit [Remote host closed the connection]
bubbajones has quit [Ping timeout: 256 seconds]
io_syl has quit []
Xeago has joined #ruby
washtubs has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 260 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
bmurt has quit []
edgarjs is now known as edgarjs_afk
orionstein is now known as orionstein_away
timonv has joined #ruby
radic has quit [Ping timeout: 240 seconds]
amargherio has quit [Remote host closed the connection]
radic has joined #ruby
bubbajones has joined #ruby
Xeago has joined #ruby
BBBThunda has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
edgarjs_afk is now known as edgarjs
orionstein_away is now known as orionstein
bwilson has joined #ruby
edgarjs is now known as edgarjs_afk
cmoneylulz has joined #ruby
bwilson has quit [Client Quit]
edgarjs_afk is now known as edgarjs
gil has joined #ruby
mikepack has joined #ruby
foo-bar- has joined #ruby
washtubs has joined #ruby
Aryasam has quit [Ping timeout: 256 seconds]
bubbajones has quit [Ping timeout: 240 seconds]
cmoneylulz has quit [Client Quit]
bubbajones has joined #ruby
davedev24_ has quit []
drawingthesun has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
foo-bar- has quit [Ping timeout: 240 seconds]
eka has joined #ruby
mconnolly has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
eka has quit [Client Quit]
theharshest has quit [Quit: This computer has gone to sleep]
GriffinHeart has quit [Read error: Connection reset by peer]
GriffinH_ has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
Zebroid has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
sdouglas has joined #ruby
SCommette has quit [Quit: SCommette]
gavit has quit [Ping timeout: 240 seconds]
Gooder`` has joined #ruby
krz has joined #ruby
Gooder` has quit [Ping timeout: 260 seconds]
BBBThunda has joined #ruby
braincrash has quit [Quit: bye bye]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
voodoofish1 has quit [Quit: Leaving.]
voodoofish has joined #ruby
kireevco has quit [Quit: Leaving.]
zorak_ has joined #ruby
lewix has joined #ruby
zorak has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
ghr has joined #ruby
snath has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
SCommette has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
tectonic has joined #ruby
penzur has joined #ruby
Vivekananda_y510 has joined #ruby
mikepack has joined #ruby
basheba has joined #ruby
basheba has left #ruby [#ruby]
x1337807x has quit [Ping timeout: 240 seconds]
Noob101 has joined #ruby
x1337807x has joined #ruby
adantj has joined #ruby
chrishough has joined #ruby
nickenchuggets has joined #ruby
adantj has quit [Client Quit]
anibara has joined #ruby
zorak_ has quit [Read error: Connection reset by peer]
Guest64392 has quit [Read error: Connection reset by peer]
axsuul_ has quit [Read error: Connection reset by peer]
<anibara>
I am trying to familarize myself with Mailgun and having some issues
zorak has joined #ruby
<anibara>
has anyone tried it
parduse has joined #ruby
Karpuragauram has joined #ruby
<anibara>
I'm getting 401 unauthorized error when trying to send email using Mailgun
<anibara>
I intialized Mailgun object using public api key and it's sandbox subdomain
Karpuragauram has quit [Write error: Connection reset by peer]
<anibara>
After which tried sending email to my gmail address with from field - myname@mailgunsubdomainlongname.com
kalusn has quit [Remote host closed the connection]
Karpuragauram has joined #ruby
Karpuragauram has quit [Client Quit]
alvaro_o has quit [Quit: Ex-Chat]
yfeldblum has quit [Ping timeout: 252 seconds]
Vivekananda_y510 has quit [Read error: Connection reset by peer]
Vivekananda_y510 has joined #ruby
sevenseacat has joined #ruby
oo_ has joined #ruby
quiliro has quit [Quit: Leaving.]
poguez_ has quit [Quit: Connection closed for inactivity]
oo_ has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
kireevco has joined #ruby
bubbajones has joined #ruby
skilz has joined #ruby
<skilz>
Hey guys
bubbajones has quit [Ping timeout: 240 seconds]
<skilz>
How much work would it be to port this RubyCocoa app over to compile and run on Linux?
codeurge has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
jameyd_ is now known as jameyd
chrishough has quit [Quit: chrishough]
lanox has quit [Remote host closed the connection]
bubbajones has joined #ruby
kalusn has joined #ruby
washtubs has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
kalusn has quit [Ping timeout: 264 seconds]
bubbajones has joined #ruby
Noob101 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
cerberblue has quit []
ghr has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
kireevco has quit [Quit: Leaving.]
Doppp has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
thesheff17 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thesheff17 has quit [Client Quit]
Takle has joined #ruby
havenwood has joined #ruby
bubbajones has joined #ruby
washtubs has joined #ruby
edgarjs is now known as edgarjs_afk
kireevco has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
timonv has joined #ruby
yfeldblum has joined #ruby
sevenseacat has quit [Remote host closed the connection]
orionstein is now known as orionstein_away
timonv has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
washtubs has quit [Read error: Connection reset by peer]
washtubs has joined #ruby
benzrf is now known as benzrf|offline
chipotle has joined #ruby
m3_del has quit [Remote host closed the connection]
m3_del has joined #ruby
johnrover has joined #ruby
krz has quit [Ping timeout: 240 seconds]
theharshest has joined #ruby
JoshGlzBrk has joined #ruby
Tiberios has joined #ruby
godd2 has quit [Remote host closed the connection]
festa has joined #ruby
IceDragon has quit [Quit: Space~~~]
<Tiberios>
Hi
Spami has joined #ruby
Tiberios has left #ruby [#ruby]
havenwood has quit []
yfeldblu_ has joined #ruby
lewix has quit [Remote host closed the connection]
JBreit has joined #ruby
jdj_dk has joined #ruby
arup_r has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mr_snowf1ake has joined #ruby
sigurding has joined #ruby
<arup_r>
I want to read first 10 lines from a file... I wrote File.foreach('file.txt').first(10) .. But the thing is being a one liner it is not good, because file is not being closed. What nice one liner is there ?
Morkel has joined #ruby
JBreit has left #ruby [#ruby]
jdj_dk has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
ghr has joined #ruby
CaptainJet has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
Wolland has joined #ruby
sdouglas has joined #ruby
mikepack has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
mgberlin has joined #ruby
sdouglas has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
crazymykl has quit [Ping timeout: 240 seconds]
zkay11 has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
sigurding has quit [Quit: sigurding]
mr_snowf1ake has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
Alina-malina has quit [Quit: Leaving]
bubbajones has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
bubbajones has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
x1337807x has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
_Blizzy has quit [Ping timeout: 246 seconds]
mgberlin has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Ping timeout: 256 seconds]
atmosx has joined #ruby
x1337807x has joined #ruby
lembacon has joined #ruby
lembacon has quit [Client Quit]
starkhalo has quit [Ping timeout: 264 seconds]
lembacon has joined #ruby
lembacon has quit [Client Quit]
axsuul has joined #ruby
lembacon has joined #ruby
lembacon has quit [Client Quit]
lembacon has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
zorak has quit [Ping timeout: 240 seconds]
Sol has joined #ruby
Sol is now known as Guest12112
Guest12112 is now known as Soliah-
fabrice31 has joined #ruby
Trudko has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
lembacon has quit [Client Quit]
stytown has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
stytown has quit [Client Quit]
stytown has joined #ruby
noop has joined #ruby
dc_ has joined #ruby
saarinen has joined #ruby
hamakn has joined #ruby
lw has joined #ruby
dancrew32 has joined #ruby
dc_ has quit [Remote host closed the connection]
ghr has joined #ruby
m3_del has quit [Remote host closed the connection]
User458764 has joined #ruby
m3_del has joined #ruby
Channel6 has quit [Quit: Leaving]
dc_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
artm has joined #ruby
bubbajones has joined #ruby
artm has quit [Client Quit]
saarinen has quit [Quit: saarinen]
ericmathison has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
CaptainJet has quit []
User458764 is now known as User458764_NotHe
claymore has joined #ruby
frankjpinto has joined #ruby
User458764_NotHe has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
kireevco has quit [Quit: Leaving.]
yfeldblu_ has quit [Remote host closed the connection]
<apeiros>
benmen: if your error says it happens in X, and you don't show X, then you're doing it quite wrong
<wasamasa>
benmen: gist is nice for showing multiple files at once
<shevy>
then people can see that you try to divide by zero, and they can tell you that ruby does not know what to do when you attempt to divide by 0
<wasamasa>
shevy: but ruby knows what to do, it throws an error!
<apeiros>
benmen: it's like bringing your dog to the car shop, telling him something's wrong with your car
<wasamasa>
lol
<benmen>
yea, well its a simple function
<shevy>
lol
<benmen>
and that is the only function called
<shevy>
perhaps he wants to drive his dog
<shevy>
"I want you to turn this dog into a racing car."
<benmen>
so its not so damn difficult
<shevy>
it is not difficult
<shevy>
I tell you
<apeiros>
*sob*
<shevy>
you have no error
<shevy>
unless you want to turn your dog into a car that is
<shevy>
that's probably animal abuse right there
<shevy>
better use a cat anyway, they beat dogs
benmen has left #ruby [#ruby]
Eyess has quit [Ping timeout: 240 seconds]
Trudko has quit [Remote host closed the connection]
Eyes has joined #ruby
ndrei has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
<arup_r>
I want to read first 10 lines from a file... I wrote File.foreach('file.txt').first(10) .. But the thing is being a one liner it is not good, because file is not being closed. What nice one liner is there ?
jottr has joined #ruby
arya_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
Soda has joined #ruby
marr has joined #ruby
Wolland has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 256 seconds]
febuiles has quit [Remote host closed the connection]
febuiles has joined #ruby
Eyes is now known as Eyess
febuiles_ has joined #ruby
Darkchaos has joined #ruby
yxhuvud has quit [Remote host closed the connection]
oo_ has joined #ruby
febuiles has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
Takle has quit [Remote host closed the connection]
dancrew32 has quit [Remote host closed the connection]
yxhuvud has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
relix has joined #ruby
lolmaus has joined #ruby
diegoviola has joined #ruby
m8 has joined #ruby
lkba has joined #ruby
senayar has quit [Remote host closed the connection]
roolo has joined #ruby
skilz has quit [Quit: Konversation terminated!]
Takle has joined #ruby
gavit has joined #ruby
<go|dfish>
arup_r: ruby -ne 'if $. > 10 then exit end; puts "Got a line: " + $_' filename
jack_rabbit_ has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
drawingthesun has joined #ruby
sigurding has joined #ruby
dotz has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
diegovio1 has joined #ruby
relix has joined #ruby
mrnugget has quit [Quit: mrnugget]
diegoviola has quit [Ping timeout: 240 seconds]
moritzs has quit [Ping timeout: 240 seconds]
agjacome has quit [Quit: leaving]
joaoh82 has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
mehlah has joined #ruby
diegovio1 has joined #ruby
diegovio1 has quit [Changing host]
diegovio1 is now known as diegoviola
maximski has joined #ruby
Takle has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
maximski_ has joined #ruby
oo_ has quit [Remote host closed the connection]
eka has joined #ruby
anddam has joined #ruby
<anddam>
hello
sdouglas has joined #ruby
maximski has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
alexherbo2 has joined #ruby
tectonic has quit []
sdouglas has quit [Ping timeout: 240 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Hanmac1 has joined #ruby
xjiujiu has joined #ruby
workmad3 has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
gavit has quit [Ping timeout: 256 seconds]
Hanmac has quit [Ping timeout: 256 seconds]
Macaveli has quit [Ping timeout: 240 seconds]
Zackio has quit [Ping timeout: 252 seconds]
agjacome has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Zackio has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
postmodern has quit [Quit: Leaving]
xjiujiu has joined #ruby
GriffinH_ has quit [Remote host closed the connection]
Panicky has joined #ruby
krz has joined #ruby
joaoh82 has quit [Remote host closed the connection]
Panicky has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
mikecmpbll has joined #ruby
Atttwww has quit [Ping timeout: 272 seconds]
foo-bar- has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
mijicd has joined #ruby
marr has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
lxsameer has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
dideler has quit [Ping timeout: 256 seconds]
<arup_r>
go|dfish: Can a gist plaese ? It is not working :(
diegoviola has quit [Quit: WeeChat 0.4.3]
dc_ has quit [Read error: Connection reset by peer]
danijoo has quit [Quit: Leaving...]
dc_ has joined #ruby
danijoo has joined #ruby
kirun has joined #ruby
SouL has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Not to mention File.foreach takes care of closing the file
Rahul_Roy has quit [Quit: Connection closed for inactivity]
jgt has joined #ruby
<jxport>
I want to take a list of values, and Enumerable#zip it with an infinite list containing a single value repeatedly. How could I do this?
<apeiros>
jxport: ["∞"].cycle
<Radar>
I need to ask apeiros how to get op in this channel
<Radar>
;)
<apeiros>
Radar: fflush is the man
<Radar>
apeiros: make it happen :)
<apeiros>
I can barely reach him :(
<jxport>
apeiros: that. is. awesome. Thank you
<apeiros>
s/barely/not/ :-|
<jxport>
For a moment there I thought I was stretching Ruby as a language
<apeiros>
jxport: welcome to ruby! ;-D
netf has joined #ruby
Deele has joined #ruby
peckermanzzz has joined #ruby
fabrice31 has joined #ruby
<arup_r>
Mon_Ouie: But I am not reading full file,, only first 10 lines in my example.. Still will it be closed?
<Mon_Ouie>
Yes, File.foreach will close it at the end of the iteration
magicien has joined #ruby
magicien has quit [Changing host]
magicien has joined #ruby
<Mon_Ouie>
Even if there's an exception in the middle of an iteration it will close it
<apeiros>
Mon_Ouie: how does that work with the enumerator?
<Mon_Ouie>
apeiros: It does not open the file until you call Enumerator#each
<apeiros>
I'd assume it'd only close it once the enumerator is fully iterated. but with .first(10), that doesn't happen
mr_snowf1ake has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
And first(10) is like array = []; n = 0; each { |x| n += 1; x << array; break if n == 10 }
<Mon_Ouie>
And breaking would cause the "ensure" block to trigger
Hanmac1 has joined #ruby
<Mon_Ouie>
(The hooks are defined in C but that's still how they should behave)
<apeiros>
ok
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
freggles has joined #ruby
klaut has quit [Remote host closed the connection]
xjiujiu has joined #ruby
jgt_ has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 240 seconds]
moritzs has joined #ruby
end_guy has quit [Ping timeout: 264 seconds]
darkxploit has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
end_guy has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
anaeem1 has quit [Remote host closed the connection]
vifino has joined #ruby
sepp2k has joined #ruby
<arup_r>
jhass: hi
mattalexx has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
<arup_r>
Mon_Ouie: Thanks for the explanation..
Takle has joined #ruby
<arup_r>
sepp2k: Hi
klaut has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
MACscr has joined #ruby
francisfish has joined #ruby
<MACscr>
im setting an an erb template for puppet and I really dont know ruby. Any suggestions on how to loop through a comma separated string?
wallerdev has quit [Quit: wallerdev]
darkxploit has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
SCHAAP137 has quit [Remote host closed the connection]
<shevy>
MACscr what does that even mean
<shevy>
loop through a comman separated string
<shevy>
what is that
<jxport>
pedant alert
<shevy>
do you mean an array like: ['hello','how','are','you'] ?
<shevy>
jxport definitions are important
<shevy>
he could mean each char of a string too
<jxport>
pretty sure he meant what you first said :)
<MACscr>
string would be "lan0,lan1,lan2"
jgt_ has quit [Remote host closed the connection]
<shevy>
good, so you can use .split(',') to turn it into an array, then apply #each on that result
<jxport>
though
<shevy>
wat
<jxport>
that is assuming that the values don't actually contain any escaped commas
<MACscr>
like so? <% @interfaces.split(',').each do |int| -%>
<shevy>
MACscr yeah
anaeem1 has joined #ruby
<MACscr>
cool. Thanks!
<shevy>
jxport we will be going to assume that his string would indeed be like that "lan0,lan1,lan2"
<shevy>
have a little faith in newcomers jxport
qba73 has joined #ruby
<MACscr>
the string is just lan interfaces that are provided by facter
<shevy>
because I don't have much faith in them
lolmaus has quit [Read error: Connection reset by peer]
<shevy>
well, you said "lan0,lan1,lan2", and for this string the code you have there will work perfect; the only strange part seems to be that - before the %
<jxport>
shevy: ha! I've been bitten pretty hard by naive CSV parsing myself, in the past - I still have something of a trauma
<shevy>
but I don't know enough of erb
mconnolly has joined #ruby
<shevy>
<%= PRODUCT[:name] %>
freggles has quit [Ping timeout: 240 seconds]
<shevy>
<% for @item in @shopping_list %>
freggles has joined #ruby
<shevy>
well
<shevy>
those examples dont have a -%>
Hanmac1 has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 264 seconds]
<arup_r>
while we say we use Array#map... all the block result per iteration we keep inside a new array, Once the block will be completed, that new array will be returned. My finding is can we access the elements of the new array from any iteration...?
Neomex has joined #ruby
Hanmac has joined #ruby
phoo1234567 has joined #ruby
<arup_r>
As an example.. (1..10).map { |i| I*i } ... While this block will be continuing, suppose while I am in 5th iteration, can I look back to the 4th iteration result ?
<Mon_Ouie>
No, you can't
<Mon_Ouie>
(except using very evil hacks)
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
xjiujiu has quit [Remote host closed the connection]
<shevy>
hehe
<shevy>
No, not possible.
<shevy>
(Actually, it is possible.)
<shevy>
I <3 Mon_Ouie
MCDev has joined #ruby
Takle has quit [Remote host closed the connection]
<MACscr>
ok, here is my full explanation: http://hastebin.com/mexewovoxo.m. I apologize for all the hand holding, I just typically dont do any ruby stuff and mainly do php and shell scripting.
<shevy>
MACscr is the trailing -%> valid?
<MACscr>
shevy: yes
<MACscr>
according to the puppet docs at least
<shevy>
what is not working?
<MACscr>
shevy: im not 100% sure how to filter the variables in the first loop
kaspergrubbe has joined #ruby
bruno- has joined #ruby
timonv has joined #ruby
<MACscr>
aka, check if <% int == lan* %>
<MACscr>
or whatever way you would do it
pothibo has joined #ruby
<MACscr>
then of course i would then need to assign them to a new array (lan_interfaces)
<MACscr>
if someone understands what I am looking for, i would be glad to buy them a couple beers (through paypal) for the help as this request is a little more than just guidance since i have no idea what i am doing.
<shevy>
I dont really know what you are doing either
Neomex has quit [*.net *.split]
vifino has quit [*.net *.split]
dc_ has quit [*.net *.split]
mr_snowf1ake has quit [*.net *.split]
kirun has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
dotz has quit [*.net *.split]
drawingthesun has quit [*.net *.split]
andrewlio has quit [*.net *.split]
MACscr has quit [*.net *.split]
decoponio has quit [*.net *.split]
Gooder`` has quit [*.net *.split]
ylluminarious|aw has quit [*.net *.split]
elouisyoung has quit [*.net *.split]
Prandium has quit [*.net *.split]
radic has quit [*.net *.split]
apeiros has quit [*.net *.split]
nwkr has quit [*.net *.split]
droptone_ has quit [*.net *.split]
destruct1re has quit [*.net *.split]
udoprog1 has quit [*.net *.split]
tiguser has quit [*.net *.split]
yacks has quit [*.net *.split]
Photism has quit [*.net *.split]
pygospa has quit [*.net *.split]
ValicekB has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
camth has quit [*.net *.split]
DivineEntity has quit [*.net *.split]
AlyssaDa1mon has quit [*.net *.split]
crus has quit [*.net *.split]
donnoc_ has quit [*.net *.split]
wlanboy has quit [*.net *.split]
machete has quit [*.net *.split]
nomadic has quit [*.net *.split]
terlar has quit [*.net *.split]
aep has quit [*.net *.split]
moshee has quit [*.net *.split]
Dr3amc0d3r|away has quit [*.net *.split]
zarul has quit [*.net *.split]
redlegion has quit [*.net *.split]
thoolihan has quit [*.net *.split]
jwang has quit [*.net *.split]
Xiti has quit [*.net *.split]
Nilium has quit [*.net *.split]
mjulian has quit [*.net *.split]
Akuma has quit [*.net *.split]
Deele has quit [*.net *.split]
netf has quit [*.net *.split]
peckermanzzz has quit [*.net *.split]
pothibo has quit [*.net *.split]
magicien has quit [*.net *.split]
danijoo has quit [*.net *.split]
freggles has quit [*.net *.split]
mconnolly has quit [*.net *.split]
MCDev has quit [*.net *.split]
krz has quit [*.net *.split]
agjacome has quit [*.net *.split]
lxsameer has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
maximski_ has quit [*.net *.split]
arya_ has quit [*.net *.split]
ndrei has quit [*.net *.split]
rippa has quit [*.net *.split]
ph8 has quit [*.net *.split]
arup_r has quit [*.net *.split]
hamakn has quit [*.net *.split]
voodoofish has quit [*.net *.split]
robustus has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
binaryhat has quit [*.net *.split]
NinoScript has quit [*.net *.split]
TheNumb has quit [*.net *.split]
casheew has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
yano has quit [*.net *.split]
pasties has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
sheepman has quit [*.net *.split]
gizmore has quit [*.net *.split]
__main__ has quit [*.net *.split]
fumk has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
oz has quit [*.net *.split]
iceden has quit [*.net *.split]
farn has quit [*.net *.split]
slash_nick has quit [*.net *.split]
tomaw has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
mame1 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
ajf- has quit [*.net *.split]
hypnosb has quit [*.net *.split]
Hanmac has quit [*.net *.split]
sepp2k has quit [*.net *.split]
AlSquire has quit [*.net *.split]
lkba has quit [*.net *.split]
narcan has quit [*.net *.split]
Dude007 has quit [*.net *.split]
parduse has quit [*.net *.split]
niharvey has quit [*.net *.split]
dh64 has quit [*.net *.split]
mjuszczak has quit [*.net *.split]
iceyec has quit [*.net *.split]
miah has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
SJr has quit [*.net *.split]
ptierno_ has quit [*.net *.split]
bhaak has quit [*.net *.split]
anekos_ has quit [*.net *.split]
gigetoo has quit [*.net *.split]
KWALL has quit [*.net *.split]
felipe has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
GGMethos has quit [*.net *.split]
helpa has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
ra4king has quit [*.net *.split]
monsieurp has quit [*.net *.split]
wiscas has quit [*.net *.split]
devyn has quit [*.net *.split]
gomikemi1e has quit [*.net *.split]
JokerDoom has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
hakunin has quit [*.net *.split]
Dwarf has quit [*.net *.split]
devdazed has quit [*.net *.split]
Elfix has quit [*.net *.split]
hackeron has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
descala has quit [*.net *.split]
iaj_ has quit [*.net *.split]
xm has quit [*.net *.split]
clocKwize has quit [*.net *.split]
blackgoat has quit [*.net *.split]
crodas has quit [*.net *.split]
ta_ has quit [*.net *.split]
FaresKAlaboud has quit [*.net *.split]
patronus has quit [*.net *.split]
oddalot has quit [*.net *.split]
tenseiten has quit [*.net *.split]
Seich has quit [*.net *.split]
matti has quit [*.net *.split]
machty has quit [*.net *.split]
joelroa has quit [*.net *.split]
ylluminate has quit [*.net *.split]
kyle__ has quit [*.net *.split]
metadave has quit [*.net *.split]
nevans has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
Fusl has quit [*.net *.split]
axisys has quit [*.net *.split]
spacemud has quit [*.net *.split]
supermat has quit [*.net *.split]
pdtpatr11k has quit [*.net *.split]
LBRapid has quit [*.net *.split]
sumark has quit [*.net *.split]
skmp has quit [*.net *.split]
gregf__ has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
linduxed has quit [*.net *.split]
froy has quit [*.net *.split]
gzl has quit [*.net *.split]
cyphactor has quit [*.net *.split]
Guest22956 has quit [*.net *.split]
bayed has quit [*.net *.split]
akitada has quit [*.net *.split]
arcsky has quit [*.net *.split]
peterhu has quit [*.net *.split]
clamstar has quit [*.net *.split]
zenspider has quit [*.net *.split]
cgj has quit [*.net *.split]
psmolen has quit [*.net *.split]
rrva has quit [*.net *.split]
tris has quit [*.net *.split]
franka_ has quit [*.net *.split]
raddazong has quit [*.net *.split]
tiagonobre has quit [*.net *.split]
Takumo has quit [*.net *.split]
adamholt has quit [*.net *.split]
ryanneufeld has quit [*.net *.split]
todor_ has quit [*.net *.split]
kevinfagan_ has quit [*.net *.split]
benzrf|offline has quit [*.net *.split]
tchebb has quit [*.net *.split]
goshdarnyou has quit [*.net *.split]
culturelabs__ has quit [*.net *.split]
natewalck has quit [*.net *.split]
antonishen has quit [*.net *.split]
rmill has quit [*.net *.split]
hoelzro has quit [*.net *.split]
tziOm has quit [*.net *.split]
peeja has quit [*.net *.split]
Riking has quit [*.net *.split]
jericon has quit [*.net *.split]
gf3 has quit [*.net *.split]
drPoggs has quit [*.net *.split]
tadejm has quit [*.net *.split]
G has quit [*.net *.split]
mattyohe has quit [*.net *.split]
maZtah has quit [*.net *.split]
jrunning has quit [*.net *.split]
rapha has quit [*.net *.split]
orionstein_away has quit [*.net *.split]
mozzarella has quit [*.net *.split]
mheld has quit [*.net *.split]
dfedde has quit [*.net *.split]
mist has quit [*.net *.split]
eam has quit [*.net *.split]
mateu has quit [*.net *.split]
blenny has quit [*.net *.split]
kke has quit [*.net *.split]
olleromo__ has quit [*.net *.split]
Cork has quit [*.net *.split]
Adran has quit [*.net *.split]
cnj has quit [*.net *.split]
codecop has quit [*.net *.split]
ozzloy has quit [*.net *.split]
verto has quit [*.net *.split]
chridal has quit [*.net *.split]
nw has quit [*.net *.split]
ponyfleisch has quit [*.net *.split]
Scient has quit [*.net *.split]
pgmcgee has quit [*.net *.split]
danshultz has quit [*.net *.split]
mosez has quit [*.net *.split]
blackjid has quit [*.net *.split]
C0deMaver1ck has quit [*.net *.split]
callumacrae has quit [*.net *.split]
Derander_ has quit [*.net *.split]
VooDooNOFX has quit [*.net *.split]
gilesw has quit [*.net *.split]
lng_ has quit [*.net *.split]
nisstyre has quit [*.net *.split]
sputnik13 has quit [*.net *.split]
gimpygoo has quit [*.net *.split]
Liothen has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
troter has quit [*.net *.split]
Nightmare has quit [*.net *.split]
nighter has quit [*.net *.split]
mroth has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
intnsity has quit [*.net *.split]
LACP has quit [*.net *.split]
PhilK has quit [*.net *.split]
cschneid has quit [*.net *.split]
ikanobori has quit [*.net *.split]
sfr^ has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
mjmac has quit [*.net *.split]
pusewicz has quit [*.net *.split]
bjeanes has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
zartoosh has quit [*.net *.split]
initself_ has quit [*.net *.split]
msch has quit [*.net *.split]
Kamilion has quit [*.net *.split]
acalewin has quit [*.net *.split]
jamo_ has quit [*.net *.split]
gremax has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
bcavileer___ has quit [*.net *.split]
DefV has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
jeregrine has quit [*.net *.split]
hostess has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
charles81____ has quit [*.net *.split]
lectrick has quit [*.net *.split]
paulog has quit [*.net *.split]
vcoinminer____ has quit [*.net *.split]
rickruby__ has quit [*.net *.split]
dandrade has quit [*.net *.split]
glowcoil has quit [*.net *.split]
Wayneoween has quit [*.net *.split]
dmoe______ has quit [*.net *.split]
Karunamon has quit [*.net *.split]
CJD14___ has quit [*.net *.split]
jpinnix has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
schaary|afk has quit [*.net *.split]
dioms_ has quit [*.net *.split]
ceej has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
Macacity has quit [*.net *.split]
kenichi has quit [*.net *.split]
manacit has quit [*.net *.split]
aetaric has quit [*.net *.split]
Paradox has quit [*.net *.split]
dyreshark has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
lazyguru has quit [*.net *.split]
juni0r has quit [*.net *.split]
xsdg has quit [*.net *.split]
sfiggins has quit [*.net *.split]
johnrover has quit [*.net *.split]
yasu has quit [*.net *.split]
harryk has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
Jelco_ has quit [*.net *.split]
jameyd has quit [*.net *.split]
bradleyprice has quit [*.net *.split]
dayepa has quit [*.net *.split]
zaargy has quit [*.net *.split]
Robbo` has quit [*.net *.split]
musl_ has quit [*.net *.split]
seanmarcia has quit [*.net *.split]
bier has quit [*.net *.split]
daed has quit [*.net *.split]
DanKnox has quit [*.net *.split]
kaihara has quit [*.net *.split]
matrixise has quit [*.net *.split]
ReBoRN- has quit [*.net *.split]
Drakevr has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
davidcelis has quit [*.net *.split]
Mongey has quit [*.net *.split]
quantsini_ has quit [*.net *.split]
micah` has quit [*.net *.split]
n88 has quit [*.net *.split]
kloeri has quit [*.net *.split]
okinomo_ has quit [*.net *.split]
saltsa has quit [*.net *.split]
shtirlic has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
bluntman has quit [*.net *.split]
eval-in__ has quit [*.net *.split]
willgorman_ has quit [*.net *.split]
jayne has quit [*.net *.split]
Kruppe has quit [*.net *.split]
ccooke has quit [*.net *.split]
Jamo has quit [*.net *.split]
paul_k has quit [*.net *.split]
grug has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
hfp has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
sindork has quit [*.net *.split]
_izz has quit [*.net *.split]
RichiH has quit [*.net *.split]
FifthWall has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
philtr_ has quit [*.net *.split]
TTilus has quit [*.net *.split]
nug has quit [*.net *.split]
Roa_ has quit [*.net *.split]
JarJarBinks has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
skinny_much has quit [*.net *.split]
fumduq has quit [*.net *.split]
justinmcp has quit [*.net *.split]
freannrak has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
cid404 has quit [*.net *.split]
Tarential has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
bstrie has quit [*.net *.split]
rs0 has quit [*.net *.split]
mahlon has quit [*.net *.split]
rcs has quit [*.net *.split]
bmn has quit [*.net *.split]
xiphias has quit [*.net *.split]
cwc has quit [*.net *.split]
shaquile has quit [*.net *.split]
chihhsin_wego has quit [*.net *.split]
gaussblurinc1 has joined #ruby
vifino has joined #ruby
dotz has joined #ruby
mconnolly has joined #ruby
arya_ has joined #ruby
dc_ has joined #ruby
Deele has joined #ruby
narcan has joined #ruby
lxsameer has joined #ruby
MACscr has joined #ruby
mr_snowf1ake has joined #ruby
peckermanzzz has joined #ruby
magicien has joined #ruby
codecop has joined #ruby
pothibo has joined #ruby
Hanmac has joined #ruby
alexherbo2 has joined #ruby
mikecmpbll has joined #ruby
kirun has joined #ruby
Neomex has joined #ruby
krz has joined #ruby
voodoofish has joined #ruby
lkba has joined #ruby
sepp2k has joined #ruby
arup_r has joined #ruby
andrewlio has joined #ruby
johnrover has joined #ruby
bricker`LA has joined #ruby
freggles has joined #ruby
danijoo has joined #ruby
decoponio has joined #ruby
agjacome has joined #ruby
cnj has joined #ruby
robustus has joined #ruby
radic has joined #ruby
Gooder`` has joined #ruby
mjuszczak has joined #ruby
drawingthesun has joined #ruby
netf has joined #ruby
niharvey has joined #ruby
ndrei has joined #ruby
Dude007 has joined #ruby
NinoScript has joined #ruby
ph8 has joined #ruby
AlSquire has joined #ruby
casheew has joined #ruby
dh64 has joined #ruby
hamakn has joined #ruby
parduse has joined #ruby
MCDev has joined #ruby
elaptics`away has joined #ruby
ylluminarious|aw has joined #ruby
maximski_ has joined #ruby
elouisyoung has joined #ruby
yano has joined #ruby
TheNumb has joined #ruby
binaryhat has joined #ruby
rippa has joined #ruby
iceyec has joined #ruby
pasties has joined #ruby
sfiggins has joined #ruby
yasu has joined #ruby
Prandium has joined #ruby
yeltzooo has joined #ruby
wiscas has joined #ruby
AntelopeSalad has joined #ruby
kyle__ has joined #ruby
apeiros has joined #ruby
sheepman has joined #ruby
devyn has joined #ruby
__main__ has joined #ruby
gizmore has joined #ruby
Gadgetoid has joined #ruby
miah has joined #ruby
fumk has joined #ruby
harryk has joined #ruby
Jelco_ has joined #ruby
SJr has joined #ruby
shaman42_ has joined #ruby
gomikemi1e has joined #ruby
ptierno_ has joined #ruby
bhaak has joined #ruby
droptone_ has joined #ruby
nwkr has joined #ruby
oz has joined #ruby
anekos_ has joined #ruby
udoprog1 has joined #ruby
tiguser has joined #ruby
destruct1re has joined #ruby
gigetoo has joined #ruby
jameyd has joined #ruby
KWALL has joined #ruby
ddfreyne has joined #ruby
devdazed has joined #ruby
farn has joined #ruby
Adran has joined #ruby
pygospa has joined #ruby
KillerFox has joined #ruby
cwc has joined #ruby
nemesit|znc has joined #ruby
ajf- has joined #ruby
musl_ has joined #ruby
mame1 has joined #ruby
hypnosb has joined #ruby
Photism has joined #ruby
shaquile has joined #ruby
JokerDoom has joined #ruby
yacks has joined #ruby
dayepa has joined #ruby
tomaw has joined #ruby
chihhsin_wego has joined #ruby
bradleyprice has joined #ruby
zaargy has joined #ruby
lng_ has joined #ruby
mahlon has joined #ruby
Sou|cutter has joined #ruby
RichiH has joined #ruby
slash_nick has joined #ruby
rs0 has joined #ruby
rcs has joined #ruby
sn0wb1rd has joined #ruby
Tarential has joined #ruby
bmn has joined #ruby
xiphias has joined #ruby
freannrak has joined #ruby
iceden has joined #ruby
fumduq has joined #ruby
GeekOnCoffee has joined #ruby
cid404 has joined #ruby
JarJarBinks has joined #ruby
Roa_ has joined #ruby
nug has joined #ruby
skinny_much has joined #ruby
TTilus has joined #ruby
justinmcp has joined #ruby
philtr_ has joined #ruby
sindork has joined #ruby
Gnubie_ has joined #ruby
dhruvasagar has joined #ruby
_izz has joined #ruby
FifthWall has joined #ruby
SecretAgent has joined #ruby
hfp has joined #ruby
Jamo has joined #ruby
ccooke has joined #ruby
paul_k has joined #ruby
jayne has joined #ruby
bstrie has joined #ruby
Kruppe has joined #ruby
mjulian has joined #ruby
nomadic has joined #ruby
grug has joined #ruby
DanKnox has joined #ruby
shanlar has joined #ruby
vali has joined #ruby
moshee has joined #ruby
mhenrixon has joined #ruby
Port3M5[Work] has joined #ruby
chridal has joined #ruby
jonathanwallace has joined #ruby
bluntman has joined #ruby
Akuma has joined #ruby
Xuerian has joined #ruby
sarlalian has joined #ruby
pgmcgee has joined #ruby
danshultz has joined #ruby
sputnik13 has joined #ruby
okinomo_ has joined #ruby
bier has joined #ruby
b1nd has joined #ruby
terlar has joined #ruby
Mongey has joined #ruby
Scient has joined #ruby
kloeri has joined #ruby
mosez has joined #ruby
ponyfleisch has joined #ruby
gimpygoo has joined #ruby
n88 has joined #ruby
machete has joined #ruby
jwang has joined #ruby
Hamled has joined #ruby
Drakevr has joined #ruby
Nilium has joined #ruby
gilesw has joined #ruby
nw has joined #ruby
ozzloy has joined #ruby
zonetti has joined #ruby
verto has joined #ruby
Cork has joined #ruby
eval-in__ has joined #ruby
willgorman_ has joined #ruby
aep has joined #ruby
thoolihan has joined #ruby
zarul has joined #ruby
nisstyre has joined #ruby
Derander_ has joined #ruby
Liothen has joined #ruby
C0deMaver1ck has joined #ruby
shtirlic has joined #ruby
quantsini_ has joined #ruby
donnoc_ has joined #ruby
micah` has joined #ruby
matrixise has joined #ruby
blackjid has joined #ruby
wlanboy has joined #ruby
saltsa has joined #ruby
davidcelis has joined #ruby
Xiti has joined #ruby
redlegion has joined #ruby
Dr3amc0d3r|away has joined #ruby
seanmarcia has joined #ruby
fwaokda has joined #ruby
callumacrae has joined #ruby
daed has joined #ruby
crus has joined #ruby
kaihara has joined #ruby
Guest83975 has joined #ruby
ReBoRN- has joined #ruby
epochwolf has joined #ruby
troter has joined #ruby
intnsity has joined #ruby
cschneid has joined #ruby
Y_Ichiro has joined #ruby
sfr^ has joined #ruby
LACP has joined #ruby
initself_ has joined #ruby
PhilK has joined #ruby
mroth has joined #ruby
andrewstewart has joined #ruby
jumblemuddle has joined #ruby
ELLIOTTCABLE has joined #ruby
Kamilion has joined #ruby
bjeanes has joined #ruby
jamo_ has joined #ruby
nighter has joined #ruby
jeregrine has joined #ruby
gyre007 has joined #ruby
msch has joined #ruby
Radar has joined #ruby
ryotarai has joined #ruby
Anarch has joined #ruby
rfv has joined #ruby
pusewicz has joined #ruby
callenb has joined #ruby
bcavileer___ has joined #ruby
CJD14___ has joined #ruby
ikanobori has joined #ruby
lectrick has joined #ruby
yosafbridge has joined #ruby
genta has joined #ruby
gremax has joined #ruby
Karunamon has joined #ruby
lfox has joined #ruby
jenrzzz has joined #ruby
DarkFoxDK has joined #ruby
csq has joined #ruby
RoryHughes has joined #ruby
kenichi has joined #ruby
jpinnix has joined #ruby
Dwarf has joined #ruby
Elfix has joined #ruby
george2 has joined #ruby
aetaric has joined #ruby
dmarr has joined #ruby
paulog has joined #ruby
hostess has joined #ruby
iaj_ has joined #ruby
descala has joined #ruby
amitchellbullard has joined #ruby
blackgoat has joined #ruby
schaary|afk has joined #ruby
rickruby__ has joined #ruby
SegFaultAX has joined #ruby
zartoosh has joined #ruby
Seich has joined #ruby
dyreshark has joined #ruby
lazyguru has joined #ruby
m_3 has joined #ruby
AlyssaDa1mon has joined #ruby
FaresKAlaboud has joined #ruby
hackeron has joined #ruby
JaTochNietDan has joined #ruby
ceej has joined #ruby
mjmac has joined #ruby
xsdg has joined #ruby
matti has joined #ruby
supermat has joined #ruby
vcoinminer____ has joined #ruby
hakunin has joined #ruby
Macacity has joined #ruby
Fusl has joined #ruby
Wayneoween has joined #ruby
ballPointPenguin has joined #ruby
xm has joined #ruby
machty has joined #ruby
sumark has joined #ruby
DivineEntity has joined #ruby
Nightmare has joined #ruby
oddalot has joined #ruby
ramblinpeck has joined #ruby
clocKwize has joined #ruby
LBRapid has joined #ruby
artgoeshere has joined #ruby
Robbo` has joined #ruby
axisys has joined #ruby
patronus has joined #ruby
spacemud has joined #ruby
metadave has joined #ruby
rrva has joined #ruby
glowcoil has joined #ruby
frode15243 has joined #ruby
Paradox has joined #ruby
VooDooNOFX has joined #ruby
dandrade has joined #ruby
akitada has joined #ruby
ahuman has joined #ruby
nevans has joined #ruby
guilleiguaran__ has joined #ruby
ta_ has joined #ruby
zz_jrhorn424 has joined #ruby
skmp has joined #ruby
FL1SK has joined #ruby
tiagonobre has joined #ruby
dmoe______ has joined #ruby
cyphactor has joined #ruby
DefV has joined #ruby
franka_ has joined #ruby
zenspider has joined #ruby
gzl has joined #ruby
Guest22956 has joined #ruby
crodas has joined #ruby
arcsky has joined #ruby
ylluminate has joined #ruby
peterhu has joined #ruby
linduxed has joined #ruby
froy has joined #ruby
rapha has joined #ruby
tenseiten has joined #ruby
charles81____ has joined #ruby
Killerkeksdose has joined #ruby
lupine has joined #ruby
gregf__ has joined #ruby
bayed has joined #ruby
raddazong has joined #ruby
psmolen has joined #ruby
camth has joined #ruby
clamstar has joined #ruby
juni0r has joined #ruby
mheld has joined #ruby
pdtpatr11k has joined #ruby
cgj has joined #ruby
manacit has joined #ruby
tris has joined #ruby
joelroa has joined #ruby
dioms_ has joined #ruby
acalewin has joined #ruby
Takumo has joined #ruby
benzrf|offline has joined #ruby
tchebb has joined #ruby
ryanneufeld has joined #ruby
adamholt has joined #ruby
todor_ has joined #ruby
peeja has joined #ruby
G has joined #ruby
natewalck has joined #ruby
antonishen has joined #ruby
jericon has joined #ruby
goshdarnyou has joined #ruby
tadejm has joined #ruby
bijumon has joined #ruby
gf3 has joined #ruby
drPoggs has joined #ruby
olleromo__ has joined #ruby
kke has joined #ruby
Riking has joined #ruby
ValicekB has joined #ruby
samuelkadolph has joined #ruby
ra4king has joined #ruby
felipe has joined #ruby
monsieurp has joined #ruby
rmill has joined #ruby
kevinfagan_ has joined #ruby
mozzarella has joined #ruby
culturelabs__ has joined #ruby
maZtah has joined #ruby
helpa has joined #ruby
Kabaka has quit [Max SendQ exceeded]
tziOm has joined #ruby
Dreamer3 has joined #ruby
mattyohe has joined #ruby
kiki_lamb has joined #ruby
orionstein_away has joined #ruby
eam has joined #ruby
blenny has joined #ruby
mist has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
GGMethos has joined #ruby
hoelzro has joined #ruby
mateu has joined #ruby
dfedde has joined #ruby
Guest9909 has joined #ruby
jrunning has joined #ruby
lolmaus has quit [Max SendQ exceeded]
<shevy>
you want to grab only entries that have 'lan' in their name?
<shevy>
@interfaces.split(',').select {|entry| entry.include? 'lan' }.each do |int|
Brando753 has joined #ruby
Klumben has joined #ruby
TDJACR has joined #ruby
parduse has quit [Max SendQ exceeded]
parduse has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
cobakobodob has joined #ruby
gavit has joined #ruby
Rylee has joined #ruby
bedouin has joined #ruby
voodoofish has quit [Ping timeout: 258 seconds]
mijicd has quit [Remote host closed the connection]
kalz has joined #ruby
bedouin has quit [Changing host]
bedouin has joined #ruby
Kabaka has joined #ruby
voodoofish has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Ping timeout: 256 seconds]
Nowaker has joined #ruby
droptone has joined #ruby
AlyssaDaemon has joined #ruby
DivineEn1ity has joined #ruby
pygospa has quit [Disconnected by services]
arya_ has quit [Ping timeout: 240 seconds]
ggherdov has joined #ruby
TheRealPygo has joined #ruby
bruno- has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
<arup_r>
or, @interfaces.split(',').grep(/lan/) { |data| # work with your data }
AlexRussia has joined #ruby
touzin has quit [Ping timeout: 256 seconds]
<arup_r>
shevy: ^
DivineEntity has quit [Write error: Broken pipe]
destruct1re has quit [Write error: Broken pipe]
elouisyoung has quit [Write error: Broken pipe]
droptone_ has quit [Write error: Broken pipe]
nwkr has quit [Write error: Broken pipe]
anaeem1 has joined #ruby
Xiti has quit [Excess Flood]
lolmaus has joined #ruby
Akuma has quit [Excess Flood]
<MACscr>
ha, doesnt the end result show you what im trying to accomplish?
<MACscr>
basically im trying to loop through comma separated string (which you showed me how to do), then create a new array called lan_interfaces with values that are lan* (guess it would have to be regex I would think) for the second loop. If there is an option to convert an array to a space separated string, that would take care of the variable 'lan_string' as well
ValicekB has quit [Excess Flood]
aep has quit [Excess Flood]
Xiti has joined #ruby
Akuma has joined #ruby
fwaokda has quit [Excess Flood]
drawingthesun has quit [Max SendQ exceeded]
camth has quit [Remote host closed the connection]
AlyssaDa1mon has quit [Remote host closed the connection]
aep has joined #ruby
heftig has joined #ruby
<shevy>
arup_r no need to tell me, I don't care :) but MACscr may know, so you can tell him
fwaokda has joined #ruby
drawingthesun has joined #ruby
<shevy>
MACscr my brain can't follow too much information, I need short snippets
<arup_r>
shevy: smell in reaction.. :)
touzin has joined #ruby
elouisyoung has joined #ruby
MissionCritical has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
bayed has quit [Quit: Connection closed for inactivity]
<shevy>
MACscr you now want to convert an array into a string?
destructure has joined #ruby
ghr has joined #ruby
<shevy>
those things are all super simple btw
dotz has quit [Ping timeout: 271 seconds]
<shevy>
I think it would be much simpler if you say what your input is, and what your desired output shall be
<shevy>
it's one of those things I never liked in erb
nateberkopec has joined #ruby
<shevy>
all the ruby code in erb does is basically print out a string right? but you can do the very same in ruby too
<MACscr>
shevy: id did list both there
zkay11 has joined #ruby
<MACscr>
my input and my desired output
camt has joined #ruby
maximski_ has quit []
<shevy>
yes your input:
<shevy>
x = "bond0,br0,br1,br2,br3,lan0,lan1,lan2,lo,vlan10,vlan20,vlan30,wan0"
<shevy>
but what is your output?
<MACscr>
my desired output?
<shevy>
yes
<MACscr>
look at the bottom. End result:
arya_ has joined #ruby
<shevy>
so (1) grab lan entries (2) generate the lines
<MACscr>
yes, would require two loops
ghr has quit [Ping timeout: 240 seconds]
<MACscr>
also, not just ones that have the string 'lan' in them, they would have to start with lan so that we dont include vlan20, etc
klaut has quit [Remote host closed the connection]
<shevy>
where does "bond-primary lan0 lan1 lan2" come from?
<krz>
if i have a class name Foo::Bar. is there a way to underscore this? im on rails, so i can use active_support's underscore method. which will turn it to 'foo/bar', i can gsub the '/'. but wondering if there is a better way?
<Hanmac>
shevy: with define_method and send you can use also methods with " " in the name
pushpa has joined #ruby
<kyle__>
Hanmac: Doesn't that wreak havoc on the parser?
<kyle__>
You could end up with some very ambigious syntax....
<Hanmac>
kyle__: nope because its not in the syntax
<pushpa>
Some spare hours to spend? Looking for someone who would be interested in helping me with a small project/script. A web bot using mechanize package or similar, it should take some input data, login to a website and submit form values depending on the input data. My knowledge and time feels a little bit limited in this case. If interested please just send me a pm ( I am happy to pay using Paypal or however you prefer)
<kyle__>
Hanmac: Can those be used with anything but send?
<kyle__>
pushpa: Go find a watir tutorial. It will probably do what you need, and be easy enough to bang out yourself.
<Hanmac>
kyle__: such methods canbe only used with send (or public_send or __send__)
ndrei has joined #ruby
<kyle__>
Hanmac: Ahh ha.
darkxploit has quit [Ping timeout: 260 seconds]
<pushpa>
kyle__: my problem is time, and sometimes other peoples problem is money, in this case I would be happy with an exchange and feel it makes most sense judging from my own lack of expertise.
joaoh82 has joined #ruby
dANOKELOFF has joined #ruby
<kyle__>
pushpa: Fair enough. Just saying watir is pretty easy (it drives an actual browser) with very few gotchas. Good way to grow expertise
foo-bar- has joined #ruby
host_intruder1 has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
frankS2 has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
maximski has quit [Max SendQ exceeded]
joaoh82 has quit [Ping timeout: 240 seconds]
Darkchaos has quit [Ping timeout: 240 seconds]
akemrir has joined #ruby
maximski has joined #ruby
Oxelist has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
maximski has quit [Max SendQ exceeded]
Hanmac1 has joined #ruby
foo-bar- has quit [Ping timeout: 240 seconds]
Hackbinary has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
host_intruder1 has left #ruby [#ruby]
frankS2 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
yeticry has joined #ruby
maximski has quit [Max SendQ exceeded]
SCommette has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
maximski has joined #ruby
tjr9898_ has joined #ruby
tjr9898_ has quit [Read error: Connection reset by peer]
Oxelist has quit [Ping timeout: 264 seconds]
tjr9898_ has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
darkxploit has joined #ruby
voodoofish has quit [Read error: Connection timed out]
<pushpa>
thank you kyle__
Oxelist has joined #ruby
Olipro has joined #ruby
voodoofish has joined #ruby
northfurr has quit [Quit: northfurr]
quiliro has joined #ruby
angusigu1ss has joined #ruby
fabrice31 has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
lewix has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
man_in_shack has joined #ruby
* man_in_shack
waves
ghr has joined #ruby
Zackio has quit [Ping timeout: 252 seconds]
<man_in_shack>
anyone here use hacketyhack on linux? my copy isn't saving my hackety.com login details :(
lxsameer has quit [Quit: Leaving]
britneywright has joined #ruby
foo-bar- has joined #ruby
yfeldblum has joined #ruby
Zackio has joined #ruby
foo-bar- has quit [Read error: Connection reset by peer]
foo-bar- has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
foo-bar- has quit [Ping timeout: 240 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
noop has quit [Ping timeout: 240 seconds]
noop has joined #ruby
Takle has quit [Remote host closed the connection]
enebo has joined #ruby
starkhalo has joined #ruby
anibara has quit [Quit: anibara]
cantonic has joined #ruby
bluOxigen has joined #ruby
Xeago has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
sdouglas has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
<shevy>
hey a man_in_shackles
<shevy>
let's free him
gil has quit [Remote host closed the connection]
<shevy>
isn't hacketyhack written by _why who left years ago?
<man_in_shack>
apparently
Oxelist_ has joined #ruby
Oxelist has quit [Read error: Connection reset by peer]
Oxelist_ has quit [Max SendQ exceeded]
<man_in_shack>
it was recommended to me as an interactive way to learn ruby
claymore has joined #ruby
gil has joined #ruby
mconnolly has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
<man_in_shack>
as far as i can tell there are only 4 "lessons" with it although my friend says there are more
gavit has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
<Mon_Ouie>
I don't know how up to do date hacketyhack is now anyway. rubymonk.com Seems to be a popular choice now.
<man_in_shack>
well at least rubymonk works :)
Takle has joined #ruby
spider-mario has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
akemrir has quit [Quit: WeeChat 0.4.3]
johnrover has quit [Quit: johnrover]
Oxelist has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
<man_in_shack>
one of the annoying things with hacketyhack is it's a makeself self-extracting archive but not an installer
eka has joined #ruby
jottr has joined #ruby
Rahul_Roy has joined #ruby
joaoh82 has joined #ruby
nerdy has joined #ruby
foo-bar- has joined #ruby
foo-bar- has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
foo-bar- has joined #ruby
lewix has quit [Remote host closed the connection]
<jxport>
How can I best do the same, but have the "a"s zipped onto the left-most element of the pairs?
<shevy>
wrong number of arguments (4 for 0..3)
<shevy>
what does this mean? it means that my method can accept 0,1,2,3 elements? should this not be 1,2,3,4 ?
luckyruby has joined #ruby
<shevy>
jxport can you show what the output array should be?
davidw has joined #ruby
davidw has left #ruby ["Ex-Chat"]
johnrover has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
<jxport>
shevy: [["a", 1], ["a", 2], ["a", 3]]
maximski has quit []
* man_in_shack
stares at ["a"].cycle
toastynerd has joined #ruby
<jxport>
man_in_shack: why? :)
hy2guru_ has joined #ruby
claymore has joined #ruby
Gooder``` has joined #ruby
hy2guru_ has left #ruby [#ruby]
<man_in_shack>
well i'm new to ruby and i'm wondering what that's meant to do
jespada has joined #ruby
<jxport>
man_in_shack: Enumerabl#cycle - it takes a list an repeats it infinitely
Gooder`` has quit [Read error: Connection reset by peer]
<man_in_shack>
neat
mrnugget has joined #ruby
PaulePanter is now known as google-panther
google-panther is now known as PaulePanter
enebo has quit [Quit: enebo]
<shevy>
jxport hmm
<shevy>
in my naive world, I tried to run .inverse
nanodano has joined #ruby
<shevy>
but I am almost 100% sure that there is an inverse...
<shevy>
ok, hash invert exists
<nanodano>
Is there a way in Ruby to set all elements of an array to something? I'm currently iterating through all elements and setting them, but is there something like myarray.set_all("x") ?
anaeem1_ has quit [Remote host closed the connection]
<shevy>
jxport hmm there is a .reverse method
anaeem1 has joined #ruby
<jxport>
shevy: yeah, I think I might have to do a post-zip revert/invert. Sort of a shame as it's intent is less clear
<Mon_Ouie>
>> def x(a=0, b = 1, c = 2); end; x(1, 2, 3, 4)
<eval-in__>
Mon_Ouie => wrong number of arguments (4 for 0..3) (ArgumentError) ... (https://eval.in/172015)
<shevy>
I don't wanna know what you do with your right hand
<shevy>
or handS
<jxport>
I was just trying to take a list, and pair each item up with another *particular* value
<shevy>
ohh
<shevy>
you use the word list
<jxport>
Was zipping with a cycle
<shevy>
you have used another programming language before?
<jxport>
tons
<jxport>
ruby 4eva tho <3 <3 <3
<shevy>
ssh Shsh ShzzshsS hshshs?
ghr has joined #ruby
<gzl>
jxport: example?
SilkFox has quit [Ping timeout: 240 seconds]
<jxport>
gzl: my example is above
<shevy>
sorry... thought I could communicate in python to you
johnrover has quit [Quit: johnrover]
yfeldblum has quit [Ping timeout: 264 seconds]
<jxport>
that's fine, i speak python
jgt has quit []
<gzl>
jxport: there's a ton of code above, it wasn't totally clear
<jxport>
gzl: hehe, yeah
<jxport>
gzl: many snippets were also derivatives of a faulty line of thought :)
<gzl>
right
<jxport>
I think the take away from this is... map is *the* primitive list operation to build upon
<gzl>
if you're doing [1,2,3] => [['a',1], ['a',2], ['a',3]], then yes, just use a simple map.
<jxport>
I was trying to build upon zip.. which worked for the left_hand case (of creating [["a", 1], ["a", 2], ["a", 3]]) but didn't carry across cleanly to right hand side
<gzl>
not sure what you mean by left hand and right hand
<shevy>
jxport .map is lovely, the way I remember it is to think of "apply on each element"
<shevy>
and there is .map! also to change in-place
ghr has quit [Ping timeout: 240 seconds]
<shevy>
gzl I think he means array position [0] and [1] in his example
<shevy>
['a',1] vs [1,'a']
<jxport>
gzl: so there are two things I wanted to be able to do given a list [1, 2, 3] - derive [["a", 1], ["a", 2], ["a", 3]] (left-hand side) and derive [[1, "a"], [2, "a"], [3, "a"]]
<gzl>
oh. yeah.
<shevy>
gzl his word usage is a bit unoptimized for ruby yet though ;-)
<nanodano>
Can anyone help me understand this snippet of code? http://pastebin.com/GjY4WnVt -- I'm (trying) to create a 2D array, and set elements in it, however when I set a single item it seems to be setting many items (see pastebin)
<shevy>
people who understand haskell must have a big brain
<man_in_shack>
>> x=[1,2,3]; ["a"].cycle(x.length).zip x
* man_in_shack
thinks eval-in__ should be evil-in__
<jxport>
Actually that works well
<jxport>
man_in_shack: such an obvious solution. I was even trying to cycle lazily
<jxport>
Specifying x.length to cycle was the solution to that one :)
<man_in_shack>
i is teh winnar
johnrover_ has joined #ruby
johnrover has quit [Ping timeout: 240 seconds]
johnrover_ is now known as johnrover
<shevy>
cool
<shevy>
["a"].cycle returns an Enumerator
<shevy>
<man_in_shack> well i'm new to ruby
* shevy
ponders ...
<man_in_shack>
["a"].cycle.zip [1,2,3] # => eats all your memory :)
<man_in_shack>
hi shevy :)
Xiti has quit [Read error: Connection reset by peer]
<mr_snowf1ake>
ugh, i wanna go back to using lots of ruby... :(
<man_in_shack>
i wanna go forward to using hardly any ruby at all :)
<mr_snowf1ake>
man_in_shack: what do you prefer?
jespada has quit [Read error: Connection reset by peer]
thomasxie has left #ruby [#ruby]
<man_in_shack>
i'm mostly python
<mr_snowf1ake>
*gasp*
<man_in_shack>
just learning ruby
<man_in_shack>
i want to do web application thingies
<man_in_shack>
rails looks like overkill, but python really isn't suited to that sort of thing
<man_in_shack>
sooooo i may end up hacking up a loose html wrapper with ruby :)
joaoh82 has joined #ruby
<shevy>
mr_snowf1ake what else are you using?
<mr_snowf1ake>
man_in_shack: django.
<shevy>
man_in_shack did you look at rack and sinatra yet?
<shevy>
both are rather simple
<mr_snowf1ake>
shevy: i'm working at a robotics company right now, using lots of C++
phil has joined #ruby
francisfish has quit [Remote host closed the connection]
axsuul has joined #ruby
<man_in_shack>
mr_snowf1ake: looks painful
<man_in_shack>
shevy: not yet, no
<mr_snowf1ake>
man_in_shack: +1 for sinatra
<mr_snowf1ake>
man_in_shack: also look into using haml instead of html :)
<Hanmac>
hiihihi i just thought of a patch that ["a"].cycle.to_a and other does throw an infinite exception before it eats all ram ...
Eyes has joined #ruby
<man_in_shack>
sinatra looks nice ... but does it integrate with nginx :)
<mr_snowf1ake>
yes?
<shevy>
Hanmac better work on rxw!
<shevy>
man_in_shack should be no problem really; ruby even comes with a built in webserver called webrick
<shevy>
I use httpd though
<man_in_shack>
haml looks good
<mr_snowf1ake>
man_in_shack: haml IS good
<Hanmac>
shevy yeah yeah, i will do it again today ... but inside of the week i might have time problems ...
<Hanmac>
shevy you learn C/c++ then you might help me with rwx
jottr has quit [Ping timeout: 264 seconds]
<shevy>
C ok
<shevy>
C++ please no
<shevy>
my current job will cease at end of september 2014, then I should have more time during the week; right now I also almost only have the weekends only
<mr_snowf1ake>
godd2: unfortunately most of the stuff we do is pretty math intensive though, and we need it to be as fast as we can get it since there is already an 8 minute delay with a lot of the calculations with the data being sent to/from mars.
isxek has joined #ruby
shvelo has joined #ruby
isxek is now known as acl_
<godd2>
ah, mission critical on limited resources
jottr has joined #ruby
SCommette has quit [Quit: SCommette]
SCommette has joined #ruby
kyle__ has quit [Quit: leaving]
jespada has joined #ruby
gil has quit [Remote host closed the connection]
<godd2>
I'll take Projects You Shouldn't Use Ruby For for $400, Alex.
Eyes has quit [Ping timeout: 260 seconds]
ziyadb has joined #ruby
Eyes has joined #ruby
gil has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
cashnguns has joined #ruby
fabrice31 has joined #ruby
helpa has quit [Remote host closed the connection]
dopiee has joined #ruby
helpa has joined #ruby
roolo has quit [Read error: Connection reset by peer]
mailo has joined #ruby
diegoviola has joined #ruby
tjr9898 has joined #ruby
snath has quit [Ping timeout: 240 seconds]
Dude007_ has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
dh64 has quit [Excess Flood]
dh64 has joined #ruby
SCHAAP137 has joined #ruby
Fire-Dragon-DoL has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
TheRealPygo is now known as pygospa
Dude007 has quit [Ping timeout: 240 seconds]
dopie has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
Channel6 has joined #ruby
bmurt has quit []
Xiti has joined #ruby
kirun has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
<shevy>
wow
<shevy>
data from mars
<shevy>
we have cosmo-programmers in here
zorak has joined #ruby
<shevy>
any of you guys scheduled for jupiter already?
<mr_snowf1ake>
:P unfortunately not ruby though.... :(
<shevy>
hehe
<shevy>
right
<shevy>
the universe belongs to C
<shevy>
or ada
<man_in_shack>
i'm moving to neptune at the end of the month
<shevy>
cool
<shevy>
why neptune though?
brunops has quit [Quit: leaving]
<mr_snowf1ake>
man_in_shack: you might have trouble landing... gas planet
<shevy>
do you like old beardy men with fur on the chest wielding a trident?
<shevy>
lectrick cool question; you mean like a regex with hookable events
yeticry has quit [Quit: leaving]
<shevy>
eiei it's all a question of time and motivation really
Wolland has joined #ruby
yeticry has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eiei>
So, anyone on here already have a job in the industry by chance?
<apeiros>
lectrick: String#scan, StringScanner
<lectrick>
apeiros: yeah, was considering that solution
diegoviola has quit [Quit: WeeChat 0.4.3]
<eiei>
Anyone?
mconnolly has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
charliesome has joined #ruby
britneywright has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Woultrix has joined #ruby
Woultrix has left #ruby [#ruby]
<shevy>
they seem reluctant to talk about it
kayloos has joined #ruby
tacos1de has quit [Ping timeout: 264 seconds]
<cashnguns>
aren't most Ruby jobs really RubyonRails jobs?
<cashnguns>
I'm (at best) a hobbyist
mconnolly has joined #ruby
wallerdev has joined #ruby
<apeiros>
cashnguns: IME yes. or at least web related.
benzrf|offline is now known as benzrf
agjacome has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
<shevy>
what happened to the sysadmin jobs of the old perl users!
benzrf is now known as benzrf|offline
gruz0[russia] has joined #ruby
<eiei>
benzrf|offline: You still there?
<eiei>
We chatted in the past, firewater?
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zebroid has quit [Remote host closed the connection]
<eam>
there's quite a bit of systems stuff moving into ruby
gruz0[russia] has quit [Client Quit]
<eam>
look at the language of choice for systems automation, for example - chef, puppet, etc
<eam>
it's kind of unfortunate as ruby isn't a great fit
<mozzarella>
what do you mean
arrubin has quit [Remote host closed the connection]
britneywright has joined #ruby
kireevco has quit [Quit: Leaving.]
tacos1de has joined #ruby
<shevy>
puppet is extremely specialized, it's nowhere near a sysadmin replacement; I worked with some hardcore perl users a few months ago, none of them needs ruby, all their needs are satisfied with shell + perl
bwilson has joined #ruby
sdouglas has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
britneywright has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
johnrover has quit [Quit: johnrover]
mconnolly has quit [Remote host closed the connection]
<lectrick>
eiei: I work "in the industry" as a contractor now, after having worked at a few startups. My last project was fixing 11 security holes found by a penetration testing group, for a media data aggregation website. But I'm currently off-project and teaching myself Clojure, Haskell and Elixir (or trying to...)
CaptainJet has joined #ruby
<lectrick>
That website was written in Rails but the work was basically Ruby. I strongly prefer back-end stuff, I got burned out doing frontend work.
xerxas has quit [Quit: Connection closed for inactivity]
<eiei>
lectrick: Reason I ask is because I'm getting CS degree.
<lectrick>
eiei: Do you enjoy it?
<eiei>
Already have a full time job and degree not related to CS, yes I enjoy programming LOTS.
<eiei>
Its like a puzzle for me.
<lectrick>
That's my #1 recommendation. Only do what you like. The rest comes in time.
<eiei>
But I want to get out of finance.
fabrice31 has quit [Ping timeout: 240 seconds]
<pontiki>
have a question on rake: i want to make a task that takes arguments, and is also dependent on another task. i'm not sure how to specify that.
<lectrick>
Yes, if you like puzzles, programming is fun
smathieu has quit [Remote host closed the connection]
crazymykl has joined #ruby
Avahey_ has joined #ruby
Xeago has joined #ruby
Oxelist has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
lxsameer has joined #ruby
doev has joined #ruby
doev has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
fold has joined #ruby
diegoviola has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
Martxel has joined #ruby
smathieu has quit [Ping timeout: 256 seconds]
cantonic has quit [Client Quit]
zegerjan has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
smathieu has joined #ruby
ascarter has joined #ruby
sdouglas has joined #ruby
Takle has joined #ruby
jottr has joined #ruby
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
francisfish has quit [Remote host closed the connection]
bruno- has joined #ruby
autonomousdev has joined #ruby
Oxelist has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
Oxelist has quit [Read error: Connection reset by peer]
hamakn has quit [Read error: Connection reset by peer]
gaussblurinc1 has quit [Quit: Leaving.]
Oxelist_ has joined #ruby
hamakn has joined #ruby
sigurding has quit [Quit: sigurding]
bruno- has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
<lectrick>
shevy: Well, I was gonna type the exact same thing so... "DRY". lol
JoshGlzBrk has joined #ruby
foo-bar- has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
penzur has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
sdouglas has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 264 seconds]
cobakobodob has quit [Ping timeout: 240 seconds]
iamjarvo_ has joined #ruby
foo-bar- has quit [Ping timeout: 260 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
Hanmac1 has joined #ruby
Xeago_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
smathieu has quit [Remote host closed the connection]
troulouliou_dev has quit [Remote host closed the connection]
smathieu has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Xeago has quit [Ping timeout: 240 seconds]
troulouliou_dev has joined #ruby
hamakn has joined #ruby
sdouglas_ has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
dotz has joined #ruby
smathieu has quit [Ping timeout: 260 seconds]
mconnolly has joined #ruby
NivenHuH has joined #ruby
<NivenHuH>
hi all, i have a question about blocks and method context
<arup_r1>
ask ask
replay has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
papercode has quit [Quit: WeeChat 0.4.3]
axsuul has quit [Ping timeout: 240 seconds]
<NivenHuH>
i have two objects, one exposes a DSL block. in the second object, i want to call this DSL block, but utilize methods in the second object to populate the DSL
axsuul has joined #ruby
mijicd has joined #ruby
<apeiros>
NivenHuH: I assume the DSL uses instance_eval. in that case, assign the object to an lvar and call it on that.
<banister>
NivenHuH code example would help a lot here
aef has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
<NivenHuH>
apeiros let me see.. the first object is from a gem i'm using
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
from where it is is rather irrelevant
troulouliou_dev has joined #ruby
<banister>
NivenHuH why not just have the second object be a module and extend it into the first object before calling the block
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<NivenHuH>
banister oh that could work
cantonic has joined #ruby
<NivenHuH>
let me play around, thanks for the suggestions
theharshest has joined #ruby
Takle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Takle has joined #ruby
n_blownapart has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
Takle has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
mijicd has quit [Remote host closed the connection]
chipotle has joined #ruby
kireevco has quit [Quit: Leaving.]
Lockyy has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
jack_rabbit_ has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
Vivekananda_y510 has quit [Quit: Leaving]
kaspergrubbe has quit [Remote host closed the connection]
cobakobodob has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
Vivekananda_y510 has joined #ruby
Lockyy has quit [Client Quit]
cantonic has joined #ruby
n_blownapart has joined #ruby
Lockyy has joined #ruby
enebo has quit [Quit: enebo]
troulouliou_dev has quit [Remote host closed the connection]
troulouliou_dev has quit [Remote host closed the connection]
<NivenHuH>
at line 15 in the pastie, if i try to do query = self and on line 16, i call query.order_options... it complains about private-ness (if i remove the private, then it complains about the object not knowing how to invoke order_by)
lxsameer has quit [Ping timeout: 264 seconds]
troulouliou_dev has joined #ruby
banjara has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
claw has joined #ruby
datafirm has joined #ruby
hydrozen has quit [Quit: Computer has gone to sleep.]
<NivenHuH>
banister i don't think i can make it a module because the class has additional data requirements
charliesome has joined #ruby
polysics has joined #ruby
<polysics>
hi! anyone using Faraday?
<j_mcnally>
i used to use faraday
<j_mcnally>
polysics: been using Net:HTTP recently tho
<polysics>
I have this weird situation where the request is just not happening
cantonic has quit [Read error: Connection reset by peer]
zigomir_ has quit [Remote host closed the connection]
cantonic has joined #ruby
lxsameer has joined #ruby
bbloom has quit [Ping timeout: 240 seconds]
<toretore>
instance_eval is fun
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
NivenHuH: query.send(:order_options)
Wolland has quit [Ping timeout: 256 seconds]
<apeiros>
NivenHuH: also next time, please paste the code which fails to work too, along with the proper exceptions. you're lucky that I'm good at riddling.
<NivenHuH>
apeiros ok will do
bruno- has joined #ruby
mconnolly has quit [Ping timeout: 256 seconds]
<apeiros>
and you get the exception because order_options is private. send bypasses privacy of methods.
lewix has joined #ruby
Lockyy has joined #ruby
<NivenHuH>
apeiros i'll post the exception when i do ^, one sec
<apeiros>
NivenHuH: not necessary. but next time, do it
banjara has quit [Quit: Leaving.]
sepp2k has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 264 seconds]
replay has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
smathieu has quit [Remote host closed the connection]
Neomex has joined #ruby
smathieu has joined #ruby
parduse has quit []
SCommette has joined #ruby
x1337807x has joined #ruby
parduse has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Avahey_ has quit [Quit: Connection closed for inactivity]
smathieu has quit [Ping timeout: 240 seconds]
Metics has quit [Read error: Connection reset by peer]
BBBThunda has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Ping timeout: 256 seconds]
marr has joined #ruby
vsoftoiletpaper has joined #ruby
<vsoftoiletpaper>
hello
<vsoftoiletpaper>
I'm new to ruby
<vsoftoiletpaper>
can I make really basic ruby questions?
<vsoftoiletpaper>
really basic
Neomex has quit [Quit: Leaving]
<vsoftoiletpaper>
are parenthesis optional when calling methods?
<wasamasa>
most of the time
<wasamasa>
as long as it's possible to figure out what is part of the call and what not
Notte has joined #ruby
<vsoftoiletpaper>
is return implicit?
<wasamasa>
yes
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
<wasamasa>
most of the time it's the last expression that's returned
nateberkopec has joined #ruby
decoponio has quit [Quit: Leaving...]
angusigu1ss has quit [Ping timeout: 240 seconds]
BBBThunda has joined #ruby
jottr_ has joined #ruby
fold has quit [Ping timeout: 240 seconds]
Lockyy has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
<apeiros>
vsoftoiletpaper, wasamasa: if return is called, its argument is returned. if the method raises or throws, it doesn't return. if it yields to a block which calls break, the value passed to break is returned. in all other cases, the last evaluated expression's value is returned.
<shevy>
hey vsoftoiletpaper you have a strange nick
<vsoftoiletpaper>
verysofttoiletpaper
<shevy>
I know. al bundy taught me all there is to know about the importance of toilets in life
<vsoftoiletpaper>
do you like it rough?
<shevy>
oh I like them all
zorak has joined #ruby
Lockyy has quit [Ping timeout: 240 seconds]
<lagweezle>
like a pine cone?
JoshGlzBrk has joined #ruby
BBBThunda has quit [Remote host closed the connection]
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
enebo has joined #ruby
fabrice31 has joined #ruby
joaoh82 has quit []
datafirm has quit [Ping timeout: 240 seconds]
n_blownapart has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
Notte has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 240 seconds]
phoo1234567 has quit [Quit: Leaving]
riotjones has joined #ruby
centipedefarmer has joined #ruby
angusiguess has joined #ruby
chipotle has quit [Quit: cya]
ghr has joined #ruby
<vsoftoiletpaper>
thank you wasamasa apeiros
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
mailo has quit [Quit: Leaving...]
chipotle has joined #ruby
_Blizzy has joined #ruby
lw has quit [Quit: s]
<_Blizzy>
hello. I have no idea how to make a POST request. what do I do?
centipedefarmer has quit [Ping timeout: 260 seconds]
<mozzarella>
you Google it
bruno- has quit [Ping timeout: 256 seconds]
<toretore>
you can't post requests to google
<toretore>
it's get
ghr has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
<_Blizzy>
I have attempted to google it.
CodeLicker has joined #ruby
<_Blizzy>
and I am still confused.
sepp2k has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
m8 has quit [Read error: Connection reset by peer]
Lockyy has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
zigomir has joined #ruby
<mozzarella>
_Blizzy: you have like a dozen libraries, and some of them ship with ruby
<_Blizzy>
so what library do you recommend?
AlSquire has quit [Quit: Quitte]
Lockyy has quit [Client Quit]
awkwords has joined #ruby
SilkFox has joined #ruby
enebo has quit [Quit: enebo]
sdouglas has quit [Remote host closed the connection]
danielpclark has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 240 seconds]
jespada has quit [Quit: Leaving]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCommette has quit [Quit: SCommette]
awkwords has quit [Ping timeout: 256 seconds]
gavit has quit [Ping timeout: 240 seconds]
Roa_ is now known as Roa
Hanmac has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
Roa has quit [Changing host]
Roa has joined #ruby
Wolland has joined #ruby
angusiguess has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
jimc_ has joined #ruby
jimc_ has left #ruby [#ruby]
Shidash has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
nateberkopec has quit [Quit: Leaving...]
awkwords has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
awkwords has quit [Read error: Connection reset by peer]
dotz has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
<vsoftoiletpaper>
url = (node['href'])
<vsoftoiletpaper>
what do the parenthesis accomplish in this situation?
<Wolland>
key of the hash
Hanmac has quit [Ping timeout: 240 seconds]
<apeiros>
vsoftoiletpaper: nothing.
<Wolland>
oh you mean ()
<Wolland>
nothing
<apeiros>
if that's the whole expression
<apeiros>
Wolland: [] are brackets ;-)
<vsoftoiletpaper>
strange
<Wolland>
right ;)
Oxelist has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
<vsoftoiletpaper>
do strings have a method called starts_with?