jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
dlitvak has joined #ruby
agit0 has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
Vile` has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
jbrhbr1 has joined #ruby
jbrhbr has quit [Ping timeout: 265 seconds]
<nkwsy> so I have a question on parcing text. I am using mechanize to parse a table, I use table = page.at("table.ticketList").text.partition(" ") and I get the full list of stuff, titles and all. Now how can I pull the table data in a format where I can put it through to a csv. the pages I am parcing will vary in rows and such.
<shevy> hmm if autoload will be removed in ruby 3.0, what alternative way should be done? plain old require?
dlitvak has quit [Ping timeout: 240 seconds]
<zenspider> nkwsy: .text.partition(" ") ??
<zenspider> what's that about?
blt has quit [Remote host closed the connection]
<nkwsy> it makes it a bit neater in the cmdline, but not nessisary
samgerber has quit [Remote host closed the connection]
solocshaw has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
zenlot1 has joined #ruby
<zenspider> nkwsy: mechanize has already parsed your page. when you access via #at, you get the node at that level/tag/whatever. you're done. By asking for the text, you're essentially UN-parsing it
zenlot has quit [Ping timeout: 246 seconds]
<nkwsy> how could I separate it so that I can put it into a DB or csv
charliesome has joined #ruby
jcdesimp_ has joined #ruby
InvGhostt has quit [Ping timeout: 260 seconds]
marr has quit [Read error: Connection reset by peer]
marr has joined #ruby
jcdesimp has quit [Ping timeout: 260 seconds]
Eising has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
sugardrunk has quit [Ping timeout: 245 seconds]
Eising has joined #ruby
sugardrunk has joined #ruby
samgerber has joined #ruby
sluukkonen has quit [Ping timeout: 260 seconds]
Coldblackice has quit [Ping timeout: 250 seconds]
sluukkonen has joined #ruby
<nkwsy> I guess it wouldnt really have to do with mechanize once I parced it. but I want to separate it and define parts to throw in a database
Coldblackice has joined #ruby
rgtk has quit [Remote host closed the connection]
<hxegon> nkwsy parsed* what format is it in once it is parsed? array of arrays?
ur5us has joined #ruby
lannonbr has quit [Ping timeout: 250 seconds]
<nkwsy> its a string
mjw56 has joined #ruby
<hxegon> nkwsy before you call #text though.
<hxegon> nkwsy that is what makes it a string, and it's harder to manipulate unless you turn it back into structured date
<hxegon> data*(
mistermocha has joined #ruby
<hxegon> not that strings are unstructured, but...)
djbkd has quit [Quit: My people need me...]
<nkwsy> so the css defines it as a table.
<hxegon> nkwsy sorry, I should have been clearer. what does page.at("table.ticketList").class return
Dimik has quit [Ping timeout: 260 seconds]
skcin7 has joined #ruby
deuterium has joined #ruby
codeurge has joined #ruby
<nkwsy> Nokogiri::XML::Element
<`derpy> No results
shadoi has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has quit [Client Quit]
samgerber has quit [Remote host closed the connection]
samgerber has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
duncannz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
charliesome has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
dwfait has joined #ruby
Xiti` has quit [Quit: Xiti`]
sdothum has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
varunwachaspati has quit [Quit: Connection closed for inactivity]
snguyen has joined #ruby
build22 has quit [Remote host closed the connection]
build22 has joined #ruby
Xiti has joined #ruby
zdman135 has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
huskynation has quit [Ping timeout: 252 seconds]
build22 has quit [Remote host closed the connection]
build22 has joined #ruby
ta has joined #ruby
dwfait has quit [Quit: dwfait]
wolffles has quit [Read error: Connection reset by peer]
dwfait has joined #ruby
samgerber has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
<nkwsy> thanks! I will check this out and report back
jackjackdripper has joined #ruby
cpup has quit [Ping timeout: 264 seconds]
n_blownapart has joined #ruby
devoldmx has joined #ruby
mark06 has joined #ruby
snockerton has quit [Ping timeout: 265 seconds]
cpup has joined #ruby
<zenspider> obviously really not getting through on this whole "unparse" concept.
ta has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 264 seconds]
greg has quit [Ping timeout: 245 seconds]
ElFerna has joined #ruby
<nkwsy> what do mean zen
n_blownapart has quit []
DLSteve has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
Domaldel has joined #ruby
atomical has joined #ruby
nerium has joined #ruby
wolffles has joined #ruby
bousquet has joined #ruby
dwfait has quit [Ping timeout: 260 seconds]
Domaldel is now known as Domaldel
Arctaire has quit []
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Arcaire has joined #ruby
Arcaire has quit [Client Quit]
idefine has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
Arcaire has joined #ruby
Mojo_Nixon has joined #ruby
dorei has quit []
build22 has quit []
Cyther_ has joined #ruby
auzty has joined #ruby
ElFerna has quit [Ping timeout: 265 seconds]
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
Cyther_ has left #ruby [#ruby]
idefine_ has joined #ruby
devoldmx has joined #ruby
c-c_ is now known as c-c
hxegon has quit [Ping timeout: 260 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
ryxai has joined #ruby
dmolina has quit [Quit: Leaving.]
lessless has joined #ruby
idefine_ has quit [Ping timeout: 250 seconds]
senayar has quit []
dlitvak has joined #ruby
samgerber has joined #ruby
benlieb has quit [Quit: benlieb]
charliesome has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
Jardayn has quit [Quit: Leaving]
dlitvak has quit [Ping timeout: 265 seconds]
calderonroberto has quit [Ping timeout: 260 seconds]
samgerber has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
PsionTheory has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
Zamerick_ has quit [Ping timeout: 276 seconds]
przemek has quit [Remote host closed the connection]
woodruffw has quit [Quit: And then he took off.]
benlieb has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
akem has quit [Quit: Bye]
ur5us has quit [Remote host closed the connection]
p337rB_ has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
woodruffw has joined #ruby
ur5us has joined #ruby
sankaber has joined #ruby
cassioscabral has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
sankaber has quit [Remote host closed the connection]
Cyther has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 245 seconds]
bogn has quit [Ping timeout: 255 seconds]
siddharth_ has joined #ruby
sankaber has joined #ruby
siddharth has quit [Ping timeout: 255 seconds]
siddharth_ is now known as siddharth
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bousquet has quit []
bogn has joined #ruby
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
benlieb has quit [Quit: benlieb]
stannard has quit [Remote host closed the connection]
ledestin has joined #ruby
PsionTheory_ has joined #ruby
Pupeno has joined #ruby
idefine has joined #ruby
FrankD has joined #ruby
PsionTheory has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
dr3w has quit [Ping timeout: 260 seconds]
treaki_ has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
dr3w has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
lannonbr has joined #ruby
ta has joined #ruby
grassdog_ has joined #ruby
ascarter has joined #ruby
dr3w has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
ta has quit [Ping timeout: 255 seconds]
framling has quit [Ping timeout: 255 seconds]
ellistaa has quit [Quit: ellistaa]
idefine has joined #ruby
bkxd has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Pupeno has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
jackjackdripper1 has joined #ruby
mary5030 has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Ping timeout: 250 seconds]
symm- has quit [Quit: Leaving...]
PaulCapestany has quit [Quit: .]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruu_ has quit [Remote host closed the connection]
devbug has joined #ruby
PaulCapestany has joined #ruby
kirun has quit [Quit: Client exiting]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has quit [Read error: Connection reset by peer]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
nonopposition has quit [Remote host closed the connection]
ohaibbq has joined #ruby
aibot has quit [Ping timeout: 240 seconds]
Viata has joined #ruby
mistermocha has joined #ruby
andywojo has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
mistermocha has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
nkwsy has quit [Ping timeout: 276 seconds]
dlitvak has joined #ruby
hxegon is now known as hxegon_AFK
nonopposition has joined #ruby
Coldblackice has joined #ruby
Viata has left #ruby ["Leaving"]
Tricon has quit [Quit: Leaving...]
bronson has quit [Remote host closed the connection]
krz has joined #ruby
hxegon_AFK is now known as hxegon
hxegon is now known as hxegon_AFK
pawnbox has joined #ruby
blackmesa has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aibot has joined #ruby
mbrumbelow has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
hxegon_AFK has quit [Quit: BRB]
ss_much has quit [Quit: Connection closed for inactivity]
eytanfb has quit [Remote host closed the connection]
eytanfb has joined #ruby
eytanfb has quit [Remote host closed the connection]
jbrhbr1 has quit [Quit: Leaving.]
jackjackdripper1 has quit [Quit: Leaving.]
dr3w has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Remote host closed the connection]
hxegon has joined #ruby
houhoulis has joined #ruby
dr3w has quit [Ping timeout: 245 seconds]
stannard has joined #ruby
samgerber has joined #ruby
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
krobzaur has joined #ruby
hfp_work has quit [Ping timeout: 260 seconds]
mattpatt has joined #ruby
idefine_ has joined #ruby
hfp_work has joined #ruby
mary5030 has quit [Remote host closed the connection]
samgerber has quit [Ping timeout: 255 seconds]
krobzaur_ has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
samgerber has joined #ruby
ta has joined #ruby
krobzaur has quit [Ping timeout: 255 seconds]
andywojo has joined #ruby
n0vo has quit [Ping timeout: 276 seconds]
ohaibbq_ has joined #ruby
momomomomo has joined #ruby
krobzaur has joined #ruby
krobzaur_ has quit [Ping timeout: 245 seconds]
ohaibbq has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
ta has quit [Ping timeout: 272 seconds]
Rodya_ has joined #ruby
ruby-lang975 has joined #ruby
skcin7 has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
idefine_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
sekrit has joined #ruby
hagabaka has joined #ruby
nonopposition has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SleepySensei has joined #ruby
ruby-lang387 has joined #ruby
djbkd has joined #ruby
shadoi has quit [Quit: Leaving.]
wolffles has quit [Quit: wolffles]
ruby-lang975 has quit [Ping timeout: 252 seconds]
dr3w has joined #ruby
cassioscabral_ has joined #ruby
yes`r has joined #ruby
nonopposition has joined #ruby
wolffles has joined #ruby
idefine_ has joined #ruby
ohaibbq_ has quit [Ping timeout: 256 seconds]
cassioscabral has quit [Ping timeout: 260 seconds]
cassioscabral_ is now known as cassioscabral
stannard has quit [Remote host closed the connection]
dr3w has quit [Ping timeout: 250 seconds]
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Remote host closed the connection]
SleepySensei has joined #ruby
idefine_ has quit [Ping timeout: 260 seconds]
ruby-lang387 has quit [Quit: Page closed]
idefine has joined #ruby
dlitvak has quit [Remote host closed the connection]
hxegon is now known as hxegon_AFK
Coldblackice has quit [Read error: Connection reset by peer]
symm- has joined #ruby
bronson has joined #ruby
gambl0re has joined #ruby
PovAddict has joined #ruby
dr3w has joined #ruby
Coldblackice has joined #ruby
idefine_ has joined #ruby
dr3w has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 265 seconds]
hxegon_AFK has quit [Quit: BRB]
colegatron has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine_ has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
ohaibbq has joined #ruby
mary5030 has joined #ruby
dlitvak has quit [Ping timeout: 246 seconds]
cpup has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
cpup has joined #ruby
idefine_ has joined #ruby
mbrumbelow has quit [Quit: mbrumbelow]
chouhoulis has joined #ruby
hxegon has joined #ruby
ESpiney has joined #ruby
pocketprotector is now known as pockit
idefine_ has quit [Ping timeout: 246 seconds]
grassdog_ has quit [Quit: Be back later ...]
RobertBirnie has joined #ruby
pawnbox has quit [Remote host closed the connection]
FrankD has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 260 seconds]
dylanjhoulihan has joined #ruby
colegatron has joined #ruby
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
idefine_ has joined #ruby
pockit is now known as pocketprotector
bronson has quit [Remote host closed the connection]
colegatron has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
dlitvak has joined #ruby
mistermocha has joined #ruby
ammar has joined #ruby
idefine_ has quit [Ping timeout: 265 seconds]
user083 has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
arescorpio has quit [Quit: Leaving.]
dlitvak has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
grassdog_ has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 255 seconds]
bogn1 has quit [Remote host closed the connection]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
snguyen has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
yeticry has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
ponga has joined #ruby
devbug has joined #ruby
arooni has joined #ruby
treaki__ has joined #ruby
blackmesa has joined #ruby
colegatron has joined #ruby
djbkd has joined #ruby
hxegon has quit [Quit: BRB]
idefine_ has joined #ruby
treaki_ has quit [Ping timeout: 264 seconds]
hxegon has joined #ruby
DavidDudson has joined #ruby
PsionTheory_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
momomomomo has quit [Quit: momomomomo]
ascarter has joined #ruby
user083 has joined #ruby
stevenxl has quit [Quit: leaving]
idefine_ has quit [Ping timeout: 240 seconds]
symm- has quit [Quit: Leaving...]
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
yqt has quit [Ping timeout: 240 seconds]
dylanjhoulihan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Remote host closed the connection]
dsdeiz has joined #ruby
atumzin has quit [Ping timeout: 240 seconds]
djbkd has quit []
DavidDudson has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
saneax_AFK is now known as saneax
lacuna has quit [Remote host closed the connection]
saneax is now known as Guest71287
hxegon is now known as hxegon_AFK
yes`r has quit [Ping timeout: 245 seconds]
hxegon_AFK is now known as hxegon
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
braincrash has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
stannard has quit [Remote host closed the connection]
psy_ has quit [Remote host closed the connection]
Kn|t3 has joined #ruby
ramfjord has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
lightstalker has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
idefine has joined #ruby
lacuna has quit [Remote host closed the connection]
zast has joined #ruby
krobzaur has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
adgtl has joined #ruby
howdoi has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
dlitvak has joined #ruby
adgtl has quit [Ping timeout: 265 seconds]
PovAddict has left #ruby ["Konversation terminated!"]
dlitvak has quit [Ping timeout: 245 seconds]
dsdeiz has left #ruby [#ruby]
lightstalker has joined #ruby
idefine has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
fullofcaffeine has joined #ruby
BTRE has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 260 seconds]
the_nick_me has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
nkwsy has joined #ruby
inferno5677 has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
BTRE has joined #ruby
eytanfb has joined #ruby
cmoneylulz has joined #ruby
dr3w has joined #ruby
cwong_on_irc has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
celly has quit [Remote host closed the connection]
cmoneylulz has quit [Client Quit]
yes`r has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
bronson has joined #ruby
eytanfb has quit [Ping timeout: 276 seconds]
dr3w has quit [Ping timeout: 260 seconds]
govg has joined #ruby
dwfait has joined #ruby
andywojo has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 265 seconds]
varunwachaspati has joined #ruby
yfeldblum has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
msankhala has joined #ruby
ta has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
dwfait has quit [Read error: Connection reset by peer]
centrx has joined #ruby
bkxd has joined #ruby
braincra- has joined #ruby
treaki_ has joined #ruby
DavidDudson has joined #ruby
Kn|t3 has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
jcdesimp has joined #ruby
centrx has quit [Remote host closed the connection]
jcdesimp_ has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
ta has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
treaki__ has quit [Ping timeout: 240 seconds]
hxegon is now known as hxegon_AFK
DavidDudson has quit [Max SendQ exceeded]
solocshaw has quit [Ping timeout: 276 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DavidDudson has joined #ruby
astrobun_ has joined #ruby
plonk_ has quit [Ping timeout: 264 seconds]
Anderson69s has joined #ruby
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
Anderson69s has quit [Client Quit]
lessless has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
Lewix has quit [Ping timeout: 272 seconds]
adgtl has joined #ruby
hxegon_AFK has quit [Quit: BRB]
minimalism has quit [Quit: minimalism]
minimalism has joined #ruby
DavidDudson has quit [Read error: Connection reset by peer]
cyfr0n has left #ruby ["."]
makenoise has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
jessemcgilallen has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
atumzin has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
atumzin has joined #ruby
wolffles has quit [Quit: wolffles]
cpup has quit [Ping timeout: 245 seconds]
pawnbox has quit [Read error: Connection reset by peer]
cpup has joined #ruby
doublemalt_ has joined #ruby
devbug has joined #ruby
arup_r has joined #ruby
baweaver has joined #ruby
Lewix has joined #ruby
DoubleMalt has quit [Ping timeout: 276 seconds]
dwfait has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dlitvak has joined #ruby
shaileshg has joined #ruby
ramfjord has joined #ruby
ur5us has quit [Remote host closed the connection]
msankhala has quit [Quit: Leaving]
inferno5677 has quit [Changing host]
inferno5677 has joined #ruby
mistermocha has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 276 seconds]
cpup has quit [Ping timeout: 260 seconds]
samgerber has quit [Remote host closed the connection]
chouhoulis has joined #ruby
SleepySensei has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
dr3w has joined #ruby
cpup has joined #ruby
mistermocha has joined #ruby
ruu_ has joined #ruby
lacuna has quit [Remote host closed the connection]
<adgtl> How is this pattern to load a class var from a file?
<adgtl> Basically initialising a class variable by reading a file
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 250 seconds]
dr3w has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
Guest71287 is now known as saneax_AFK
<agent_white> adgtl: Seems fine? Though instead of a class variable, maybe toss it into a module as a constant instead.
dlitvak has joined #ruby
<agent_white> module Config; Options = YAML.load... etc.
idefine has joined #ruby
RobertBirnie has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
inferno5677 has quit [Ping timeout: 272 seconds]
andywojo has joined #ruby
lessless has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
<adgtl> agent_white: okay
davedev2_ has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 256 seconds]
samgerber has joined #ruby
<adgtl> agent_white: constant cane be defined like this right OPTIONS instead of Options
<adgtl> agent_white: which one fits well with ruby idioms
Cihan has joined #ruby
andywojo has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Remote host closed the connection]
<agent_white> adgtl: All uppercase.
<adgtl> agent_white: okay so OPTIONS is right.
<agent_white> Yes, it fits the style guide.
<adgtl> cool. thanks agent_white
hxegon has joined #ruby
Mojo_Nixon has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
ta has joined #ruby
ur5us has quit [Remote host closed the connection]
blackmesa has joined #ruby
baweaver has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 272 seconds]
dr3w has joined #ruby
ta has quit [Ping timeout: 265 seconds]
hxegon has quit [Quit: BRB]
ascarter has joined #ruby
dr3w has quit [Ping timeout: 272 seconds]
idefine has joined #ruby
lxsameer has joined #ruby
Rodya_ has quit [Quit: Leaving...]
jessemcgilallen has quit [Read error: Connection reset by peer]
jdelaney has joined #ruby
astrobun_ has joined #ruby
darkf has joined #ruby
ur5us has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
jdelaney has quit [Read error: Connection reset by peer]
rippa has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
snguyen has joined #ruby
snguyen has quit [Client Quit]
pawnbox has quit [Read error: Connection reset by peer]
nkwsy has quit [Ping timeout: 240 seconds]
snguyen has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
tildes has quit [Ping timeout: 245 seconds]
makenoise has quit []
idefine has joined #ruby
celly has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
ellistaa has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
ellistaa has quit [Client Quit]
jessemcgilallen has joined #ruby
karapety_ has joined #ruby
lannonbr has quit [Read error: Connection reset by peer]
celly has quit [Ping timeout: 264 seconds]
ellistaa has joined #ruby
chouhoulis has joined #ruby
ledestin has joined #ruby
tagrudev has joined #ruby
jcdesimp has quit [Remote host closed the connection]
stannard has joined #ruby
zdman135 has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 246 seconds]
krz has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
bkxd has joined #ruby
ellistaa has quit [Quit: ellistaa]
RobertBirnie has joined #ruby
lacuna has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
stannard has quit [Ping timeout: 264 seconds]
arooni has quit [Ping timeout: 240 seconds]
pawnbox__ has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 260 seconds]
houhoulis has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
fullofcaffeine has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saneax_AFK is now known as saneax
saneax is now known as Guest1143
pawnbox_ has quit [Ping timeout: 255 seconds]
smactive has quit [Remote host closed the connection]
zanzarel has joined #ruby
zanzarel has quit [Client Quit]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
ur5us has joined #ruby
idefine has joined #ruby
Guest41484 is now known as cyberfawkes
cyberfawkes has quit [Changing host]
cyberfawkes has joined #ruby
cyberfawkes has joined #ruby
ta has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
ta has quit [Ping timeout: 240 seconds]
pawnbox__ has quit [Remote host closed the connection]
pawnbox has joined #ruby
anisha has joined #ruby
nocd has joined #ruby
Dimik has joined #ruby
solars has joined #ruby
karapety_ has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
charliesome has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
karapetyan has joined #ruby
Lucky__ has joined #ruby
tildes has joined #ruby
SCHAAP137 has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
nocd has quit [Quit: nocd]
the_nick_me has quit [Remote host closed the connection]
lokulin has left #ruby [#ruby]
blackmesa has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shaileshg has quit [Quit: Connection closed for inactivity]
ankitkulshrestha has joined #ruby
<ankitkulshrestha> hi, I'm a very new ruby and rails dev
ruu_ has quit [Remote host closed the connection]
<ankitkulshrestha> I've got a simple question.
moeabdol1 has joined #ruby
<ankitkulshrestha> I didn't know the existence of rbenv/rvm earlier so I had installed rails against the system ruby
<ankitkulshrestha> (Mac OSX)
bronson has quit [Remote host closed the connection]
dwfait has quit [Quit: dwfait]
<ankitkulshrestha> I've got an app built there, now since I have installed rbenv, how do I port my app to that environment
dwfait has joined #ruby
dwfait has quit [Client Quit]
<ankitkulshrestha> anyone?
dr3w has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dlitvak has joined #ruby
idefine_ has joined #ruby
chouhoulis has joined #ruby
yfeldblum has joined #ruby
lessless has quit [Ping timeout: 256 seconds]
dr3w has quit [Ping timeout: 256 seconds]
lyoshajapan has joined #ruby
ankitkulshrestha has quit [Quit: Lost terminal]
wolffles has joined #ruby
pdoherty has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
idefine_ has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
nkwsy has joined #ruby
lessless has joined #ruby
adgtl_ has joined #ruby
idefine has joined #ruby
andywojo has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
adgtl has quit [Ping timeout: 272 seconds]
waka has quit [Read error: Connection reset by peer]
benhuda has joined #ruby
snguyen has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
n0vo has joined #ruby
andywojo has quit [Ping timeout: 256 seconds]
certainty has quit [Disconnected by services]
certainty has joined #ruby
nkwsy has quit [Ping timeout: 265 seconds]
mjw56 has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 276 seconds]
<certainty> moin
idefine has joined #ruby
bkxd has joined #ruby
samgerber has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 272 seconds]
idefine has quit [Ping timeout: 256 seconds]
Guest1143 is now known as saneax_AFK
samgerber has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
bMalum has joined #ruby
[dmp] has quit [Quit: WeeChat 1.3]
[dmp] has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
waka has joined #ruby
moeabdol1 has quit [Quit: WeeChat 1.3]
agit0 has quit [Quit: zzzZZZ….]
<agent_white> \o
joonty has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
zast has quit [Remote host closed the connection]
the_nick_me has joined #ruby
dmolina has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
adgtl_ has quit [Remote host closed the connection]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
idefine has joined #ruby
celly has joined #ruby
grassdog_ has quit [Quit: Be back later ...]
ohaibbq has quit [Quit: Leaving...]
idefine has quit [Ping timeout: 265 seconds]
nunchuck has quit [Ping timeout: 245 seconds]
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
firstdayonthejob has joined #ruby
nonopposition has quit [Remote host closed the connection]
rubynoobie has quit [Ping timeout: 252 seconds]
celly has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 264 seconds]
benhuda has quit [Ping timeout: 256 seconds]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
idefine has joined #ruby
krz has joined #ruby
idefine_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
armyriad has joined #ruby
dr3w has joined #ruby
armyriad has quit [Max SendQ exceeded]
lyoshajapan has quit []
armyriad has joined #ruby
nonopposition has joined #ruby
nunchuck has joined #ruby
jcdesimp has joined #ruby
lyoshajapan has joined #ruby
armyriad has quit [Max SendQ exceeded]
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
tildes has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: joonty]
arup_r has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 256 seconds]
idefine_ has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
bkxd has joined #ruby
dr3w has quit [Ping timeout: 255 seconds]
nunchuck has quit [Ping timeout: 245 seconds]
agent_wh1te has joined #ruby
agit0 has joined #ruby
agent_white has quit [Disconnected by services]
jcdesimp has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 265 seconds]
BSaboia has joined #ruby
agent_wh1te is now known as agent_white
agent_white has quit [Changing host]
agent_white has joined #ruby
chouhoulis has joined #ruby
yes`r has quit [Ping timeout: 255 seconds]
adgtl has joined #ruby
samgerber has quit []
ur5us has joined #ruby
Mon_Ouie has joined #ruby
arup_r has joined #ruby
arup_r has quit [Client Quit]
sandstrom has joined #ruby
edwinvdgraaf has joined #ruby
cycorld has quit [Quit: WeeChat 0.4.2]
skade has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
devbug has quit [Read error: Connection reset by peer]
Gadgetoid has quit [Ping timeout: 272 seconds]
curses has joined #ruby
crowell has quit [Read error: Connection reset by peer]
plsk has quit [Ping timeout: 272 seconds]
plsk has joined #ruby
gregf_ has quit [Ping timeout: 272 seconds]
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
gregf_ has joined #ruby
Gadgetoid has joined #ruby
Hounddog has joined #ruby
joonty has joined #ruby
eytanfb has joined #ruby
elaptics`away is now known as elaptics
domgetter has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<domgetter> havenwood: Check this out: https://gist.github.com/domgetter/e6edc10303347a1084e1
Cihan has quit [Ping timeout: 250 seconds]
Cihan has joined #ruby
<domgetter> A much leaner implementation of transducers in Ruby than Cognitect's :P
ur5us_ has joined #ruby
radgeRayden has quit [Ping timeout: 256 seconds]
ur5us has quit [Read error: No route to host]
saneax_AFK is now known as saneax
saneax is now known as Guest8157
eytanfb has quit [Ping timeout: 240 seconds]
Cihan has quit [Max SendQ exceeded]
Cihan has joined #ruby
tildes has joined #ruby
<adaedra> Hello
<blub> hi adaedra
sandstrom has joined #ruby
idefine has joined #ruby
Snowy has joined #ruby
blackmesa has joined #ruby
<adaedra> lol `derpy
idefine has quit [Ping timeout: 272 seconds]
Snowy has quit [Read error: Connection reset by peer]
mark2 has joined #ruby
Snowy has joined #ruby
AlexRussia has joined #ruby
dlitvak has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
idefine has joined #ruby
yes`r has joined #ruby
dlitvak has quit [Ping timeout: 246 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
Snowy_ has joined #ruby
dwfait has joined #ruby
Snowy has quit [Ping timeout: 245 seconds]
marr has joined #ruby
ximus has joined #ruby
idefine has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
blaxter has quit [Client Quit]
n0vo has quit [Ping timeout: 260 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
blaxter has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Bloomer has joined #ruby
dr3w has joined #ruby
adgtl has quit [Remote host closed the connection]
ruu_ has joined #ruby
dlitvak has joined #ruby
Jackneill has joined #ruby
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
Dimik has quit [Ping timeout: 255 seconds]
dr3w has quit [Ping timeout: 240 seconds]
dwfait has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
drptbl has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
ledestin has quit [Remote host closed the connection]
astik_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<adaedra> TIL about un.rb
pawnbox has quit [Remote host closed the connection]
puria has joined #ruby
pawnbox has joined #ruby
chussenot has joined #ruby
ledestin has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
dwfait has joined #ruby
<dwfait> Can someone tell me where idSize comes from here? https://github.com/ruby/ruby/blob/trunk/numeric.c#L1731
blackmesa has quit [Ping timeout: 260 seconds]
astik_ has quit [Quit: Leaving]
IdanM has joined #ruby
chouhoulis has joined #ruby
<dwfait> From what I can tell, it’s of type ID which is typedef’d as uintptr_t, like VALUE, and I was expecting it to be defined as a #DEFINE or an enum, but my searches of the codebase have failed me
<dwfait> and lldb can’t evaluate it on a breakpoint on that line
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dr3w has joined #ruby
emilkarl has joined #ruby
colli5ion has joined #ruby
colli5ion has quit [Max SendQ exceeded]
colli5ion has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
colli5ion has quit [Client Quit]
dlitvak has joined #ruby
andikr has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
dr3w has quit [Ping timeout: 256 seconds]
cajone is now known as cajone_afk
jschmid has joined #ruby
colegatron has joined #ruby
andywojo has joined #ruby
blackmesa has joined #ruby
idefine has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
rodfersou has joined #ruby
WeiJunLi has joined #ruby
andywojo has quit [Ping timeout: 264 seconds]
idefine has quit [Ping timeout: 265 seconds]
idefine has joined #ruby
chthon has joined #ruby
waka has quit [Ping timeout: 272 seconds]
jschmid has quit [Ping timeout: 272 seconds]
idefine has quit [Ping timeout: 256 seconds]
ruu_ has quit [Remote host closed the connection]
monthy has joined #ruby
wolffles has quit [Quit: wolffles]
joonty has quit [Quit: joonty]
ElFerna has joined #ruby
auzty has quit [Quit: Leaving]
puria has quit [Ping timeout: 245 seconds]
FernandoBasso has joined #ruby
joonty has joined #ruby
celly has joined #ruby
idefine has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
lyoshajapan has quit [Remote host closed the connection]
atomical has joined #ruby
DaniG2k has joined #ruby
drptbl has joined #ruby
senayar has joined #ruby
waka has joined #ruby
celly has quit [Ping timeout: 240 seconds]
qiukun has joined #ruby
<qiukun> hi
<qiukun> how do you parse the log logging logged?
lyoshajapan has joined #ruby
<adaedra> What do you call "the log logging logged"?
idefine has quit [Ping timeout: 256 seconds]
<DefV> did you log the logged loggong the log logged?
<qiukun> the log logging module logged
<qiukun> the log which the module logging logged
lictor36 has quit [Quit: lictor36]
<qiukun> oh, sorry, im talking about python
<DefV> well my friend, there's a channel for that
<qiukun> DefV, tks
idefine has joined #ruby
dr3w has joined #ruby
tomphp has joined #ruby
Ishido has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
puria has joined #ruby
arup_r has joined #ruby
dwfait_ has joined #ruby
dwfait has quit [Read error: Connection reset by peer]
dwfait_ is now known as dwfait
dr3w has quit [Ping timeout: 265 seconds]
nfk|laptop has joined #ruby
joonty has quit [Quit: joonty]
dwfait has quit [Client Quit]
joonty has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has quit [Remote host closed the connection]
codecop has joined #ruby
M-prosodyContext has quit [Remote host closed the connection]
M-Kodo has quit [Remote host closed the connection]
M-mistake has quit [Read error: Connection reset by peer]
M-shine has quit [Remote host closed the connection]
krz has quit [Ping timeout: 260 seconds]
dr3w has joined #ruby
idefine has joined #ruby
Zamerick_ has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tvw has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
bMalum has quit [Remote host closed the connection]
dr3w has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 256 seconds]
skade has joined #ruby
jokester has quit [K-Lined]
voxxit has quit [K-Lined]
bronson has joined #ruby
M-shine has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
krz has joined #ruby
lyoshajapan has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby
pandaant has joined #ruby
beast has joined #ruby
M-Kodo has joined #ruby
lessless has quit [Ping timeout: 250 seconds]
Bloomer has quit [Remote host closed the connection]
cibs has quit [Read error: Connection reset by peer]
idefine has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 250 seconds]
the_nick_me has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
idefine_ has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
davedev24 has joined #ruby
fexilal has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Pupeno has quit [Client Quit]
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
Lucky__ has quit [Read error: Connection reset by peer]
idefine_ has quit [Ping timeout: 250 seconds]
davedev2_ has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
cibs has quit [Read error: Connection reset by peer]
the_nick_me has joined #ruby
Snowy_ is now known as LetItSnow-y
adgtl has joined #ruby
cibs has joined #ruby
idefine has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
AlexRussia has quit [Quit: WeeChat 1.4-dev]
mdw has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 256 seconds]
qiukun has quit [Quit: qiukun]
TomyLobo has joined #ruby
lyoshajapan has joined #ruby
ponga has quit []
aryaching has joined #ruby
AlexRussia has joined #ruby
dr3w has joined #ruby
cibs has quit [Read error: Connection reset by peer]
cibs_ has joined #ruby
norc has joined #ruby
dr3w has quit [Ping timeout: 246 seconds]
pdoherty has joined #ruby
<bkxd> exit
dlitvak has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
<TomyLobo> logout
darkf has quit [Read error: Connection reset by peer]
astrobun_ has quit [Remote host closed the connection]
dlitvak has joined #ruby
blackgoat has joined #ruby
cibs_ has quit [Ping timeout: 272 seconds]
cibs has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cibs has quit [Read error: Connection reset by peer]
<agent_white> close
darkf has joined #ruby
treaki_ has quit [Ping timeout: 265 seconds]
<fexilal> Ctrl+D
shanemcd has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
DaniG2k has quit [Quit: leaving]
firstdayonthejob has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cibs has joined #ruby
sandstrom has joined #ruby
neanderslob has quit [Remote host closed the connection]
nfk|laptop has quit [Ping timeout: 272 seconds]
emilkarl has quit [Quit: emilkarl]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
nfk|laptop has joined #ruby
Bish has quit [Write error: Connection reset by peer]
Bish has joined #ruby
stan has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
pawnbox has quit [Remote host closed the connection]
puria has quit [Ping timeout: 260 seconds]
stan has joined #ruby
chouhoulis has joined #ruby
pawnbox has joined #ruby
certainty has quit [Ping timeout: 255 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
<norc> apeiros: Did you succeed getting ruby-oci8 running under El Capitan?
blackmesa has joined #ruby
devbug has joined #ruby
pawnbox has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
andywojo has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
qiukun has joined #ruby
krz has joined #ruby
consti has joined #ruby
puria has joined #ruby
mistermocha has joined #ruby
andywojo has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
celly has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
Vitor_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
big|bad|wolf has joined #ruby
big|bad|wolf has quit [Max SendQ exceeded]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
Ishido has quit [Remote host closed the connection]
celly has quit [Ping timeout: 276 seconds]
sigurding has quit [Quit: sigurding]
cassioscabral has joined #ruby
Ishido has joined #ruby
pawnbox has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
sandstrom has joined #ruby
sdothum has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jcdesimp has joined #ruby
dr3w has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
idefine has joined #ruby
InvGhostt has joined #ruby
ferr has joined #ruby
ximus has quit [Quit: Going offline, see ya! (www.adiirc.com)]
_axx has left #ruby ["I Must Go, My Planet Needs Me"]
last_staff has joined #ruby
dr3w has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
jcdesimp has quit [Ping timeout: 276 seconds]
qiukun has quit [Quit: qiukun]
certainty has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
<apeiros> norc: yes
big|bad|wolf has joined #ruby
Tricon has joined #ruby
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 is now known as Asher
pawnbox has joined #ruby
agent_white has quit [Quit: goodnight]
idefine has joined #ruby
freerobby has joined #ruby
kobain has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
senayar has quit [Remote host closed the connection]
tricon_ has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
senayar has joined #ruby
idefine has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
bronson has joined #ruby
idefine_ has quit [Ping timeout: 256 seconds]
j2k has quit [Quit: bai]
FooMunki has joined #ruby
j2k has joined #ruby
p0wn3d_ has joined #ruby
sankaber has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
dotix has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dotix has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
silverdust has joined #ruby
<silverdust> What's the difference between Foo::bar and Foo.bar ?
scepticulous has joined #ruby
<silverdust> My guess is Foo::bar has a static bar method but I don't even know if that exists in ruby
InvGhostt has quit [Read error: No route to host]
yes`r has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
dotix has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
<norc> apeiros: Ah, so it was a buggy brew package?
dotix has joined #ruby
millerti has joined #ruby
andywojo has joined #ruby
krz has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
idefine has joined #ruby
prestorium has joined #ruby
idefine_ has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
<norc> silverdust: tCOLON2 also provides you with access to the constants table of a class.
idefine has quit [Ping timeout: 255 seconds]
<norc> Also you have tCOLON3, like: ::Array
idefine_ has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
<shevy> silverdust in your case, when it is bar and not Bar, there should not be any difference between either variants, you call a class/module method in both cases
rippa has joined #ruby
<shevy> silverdust now if it would be Foo::Bar or Foo.Bar it could either be a method or a constant (in the first case, for a constant, the second would always be a method call)
<claw> hey guys
<norc> shevy: And that is a shorthand for Object:: I think.
<claw> How to : "C61810AC" => ["C6", "18", "10", "AC"] ?
ElFerna has joined #ruby
<claw> any nice solution for this ?
<claw> couldn't find anything mostly because i dont know how to name it
lxsameer has quit [Ping timeout: 250 seconds]
<canton7> something involving .chars.each_cons(2)?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<canton7> "C61810AC".chars.each_cons(2).map{ |x| x.join } works. Dunno if there's anything neater
the_nick_me has quit [Remote host closed the connection]
prosody has left #ruby [#ruby]
synthroid has joined #ruby
<norc> ?guys claw
<ruboto> claw, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
BSaboia has quit [Ping timeout: 265 seconds]
<claw> its "STRING".chars.each_slite(2).to_a
<norc> >> "aabbccdd".split /ss/
<ruboto> norc # => ["aabbccdd"] (https://eval.in/489207)
<norc> >> "aabbccdd".split /../
<ruboto> norc # => [] (https://eval.in/489208)
<norc> >> "aabbccdd".scan /../
<ruboto> norc # => ["aa", "bb", "cc", "dd"] (https://eval.in/489209)
<norc> There.
psy_ has joined #ruby
millerti has joined #ruby
sgambino has joined #ruby
<norc> Had a little brainfart there. :)
puria has quit [Ping timeout: 255 seconds]
<canton7> ah yeah, each_slice not each_cons
<norc> claw: Dont think there is a more elegant way than str.scan(/../) :)
puria has joined #ruby
atomical has joined #ruby
<claw> scan is perfect thank you norc
Coldblackice has quit [Ping timeout: 240 seconds]
dotix has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
millerti has quit [Client Quit]
<norc> claw: Depending on what you intend to do, String#unpack might also be of interest to you.
cassioscabral has joined #ruby
djbkd has joined #ruby
Kn|t3 has joined #ruby
lxsameer has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
idefine has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
dionysus69 has joined #ruby
deuterium has quit [Ping timeout: 250 seconds]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
shanemcd has joined #ruby
d0nn1e has quit [Ping timeout: 265 seconds]
idefine has quit [Ping timeout: 256 seconds]
d0nn1e has joined #ruby
emilkarl has joined #ruby
moeabdol has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
bkxd has quit [Ping timeout: 260 seconds]
sigurding has joined #ruby
cajone_afk is now known as cajone
shanemcd has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Leaving]
skade has joined #ruby
idefine has joined #ruby
krz has joined #ruby
FooMunki has quit [Quit: FooMunki]
prestorium has joined #ruby
FooMunki has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
shanemcd_ has joined #ruby
prestorium has quit [Client Quit]
millerti has joined #ruby
idefine has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
prestorium has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
freerobby has joined #ruby
adgtl has quit [Remote host closed the connection]
dotix has joined #ruby
big|bad|wolf has joined #ruby
millerti has joined #ruby
yes`r has joined #ruby
dstarh has joined #ruby
AlphaAtom has joined #ruby
bweston92 has quit [Ping timeout: 256 seconds]
arup_r has quit [Remote host closed the connection]
duckpuppy has joined #ruby
idefine has joined #ruby
chouhoulis has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
celly has joined #ruby
elaptics is now known as elaptics`away
idefine has quit [Ping timeout: 255 seconds]
SenpaiSilver has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
ramortegui has joined #ruby
Bloomer has joined #ruby
celly has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bweston92 has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
millerti has quit [Client Quit]
dr3w has joined #ruby
tildes has quit [Remote host closed the connection]
ElFerna has joined #ruby
stannard has joined #ruby
hectortrope has joined #ruby
adgtl has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
dr3w has quit [Ping timeout: 246 seconds]
cornerma1 has joined #ruby
stannard has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
zanzarel has joined #ruby
zanzarel has left #ruby [#ruby]
idefine has joined #ruby
Kn|t3 has joined #ruby
yes`r has quit [Read error: Connection reset by peer]
yeshacker has joined #ruby
the_nick_me has joined #ruby
zotherstupidguy has joined #ruby
arup_r has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roger_rabbit has quit [Ping timeout: 276 seconds]
idefine has quit [Ping timeout: 264 seconds]
PedramT has joined #ruby
elaptics`away is now known as elaptics
ElFerna has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
aryaching has joined #ruby
idefine has joined #ruby
davejlong has joined #ruby
ElFerna has joined #ruby
hagabaka has quit [Ping timeout: 256 seconds]
the_nic__ has joined #ruby
bkxd has joined #ruby
iateadonut has joined #ruby
freerobby has quit [Quit: Leaving.]
idefine has quit [Ping timeout: 264 seconds]
voxxit has joined #ruby
the_nick_me has quit [Ping timeout: 240 seconds]
puria has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
idefine has joined #ruby
sankaber has quit [Remote host closed the connection]
flori has quit [Ping timeout: 245 seconds]
sankaber has joined #ruby
djbkd has joined #ruby
flori has joined #ruby
shanemcd has joined #ruby
Sebastia1Thorn is now known as SebastianThorn
jokester has joined #ruby
babblebre has joined #ruby
joonty has quit [Quit: joonty]
the_nic__ has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
idefine has quit [Ping timeout: 264 seconds]
shanemcd_ has quit [Ping timeout: 272 seconds]
TheBloke is now known as TheBloke-
joonty has joined #ruby
krobzaur has joined #ruby
chussenot has quit [Quit: chussenot]
ascarter has joined #ruby
mekekem is now known as elemeken
futilegames has joined #ruby
idefine_ has joined #ruby
chussenot has joined #ruby
rodfersou is now known as rodfersou|lunch
achamian has joined #ruby
adgtl has quit [Remote host closed the connection]
krobzaur has quit [Ping timeout: 245 seconds]
TheBloke- is now known as TheBloke
idefine_ has quit [Ping timeout: 260 seconds]
davejlong has quit []
<shevy> hmm if I have a big hash, is there a simple way to do a hash-to-SQL conversion? such as a standalone .sqlite database?
joneshf-laptop has quit [Ping timeout: 272 seconds]
dotix has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has joined #ruby
nfk|laptop has quit [Ping timeout: 255 seconds]
zapata has quit [Ping timeout: 240 seconds]
krobzaur has joined #ruby
idefine has joined #ruby
chouhoulis has joined #ruby
freerobby has joined #ruby
big|bad|wolf has quit [Max SendQ exceeded]
momomomomo has joined #ruby
hectortrope has quit [Remote host closed the connection]
Rodya_ has joined #ruby
achamian has quit []
Kn|t3 has quit [Quit: Kn|t3]
<norc> shevy: hash-to-SQL?
tagrudev has quit [Remote host closed the connection]
Encapsulation has joined #ruby
<norc> You mean like what AR does`?
<norc> If you just want to write out a Hash to a file, use Marhsal.
<norc> Marshal even.
jcdesimp has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
hectortrope has joined #ruby
<shevy> hmm
whippythellama has joined #ruby
dotix has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
andywojo has joined #ruby
idefine has joined #ruby
stannard has quit [Ping timeout: 265 seconds]
jcdesimp has quit [Ping timeout: 255 seconds]
cassioscabral has quit [Quit: cassioscabral]
learnme_ has joined #ruby
mary5030 has joined #ruby
cassioscabral has joined #ruby
krz has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
andywojo has quit [Ping timeout: 276 seconds]
idefine has quit [Ping timeout: 256 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
cassioscabral has quit [Client Quit]
theRouS is now known as theRoUS
cassioscabral has joined #ruby
arup_r has quit [Remote host closed the connection]
symm- has joined #ruby
ferr has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
blackmesa has joined #ruby
davejlong has joined #ruby
cassioscabral_ has joined #ruby
davedev24 has joined #ruby
PedramT_ has joined #ruby
davedev2_ has quit [Ping timeout: 260 seconds]
arup___ has joined #ruby
PedramT_ has quit [Remote host closed the connection]
cassioscabral has quit [Ping timeout: 245 seconds]
cassioscabral_ is now known as cassioscabral
n0vo has joined #ruby
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
nettoweb has joined #ruby
davedev2_ has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
PedramT has quit [Ping timeout: 265 seconds]
drys has joined #ruby
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
shanemcd_ has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
iateadonut has quit [Quit: Leaving.]
davedev24 has quit [Ping timeout: 250 seconds]
Kn|t3 has joined #ruby
codecop has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 255 seconds]
cassioscabral has joined #ruby
krz has joined #ruby
djbkd_ has joined #ruby
idefine has joined #ruby
idefine_ has joined #ruby
curses has quit []
ta has quit [Remote host closed the connection]
jnj has joined #ruby
djbkd_ has quit [Ping timeout: 265 seconds]
Encapsulation is now known as Encapsulate
idefine has quit [Ping timeout: 256 seconds]
idefine_ has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
BSaboia has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
gambl0re has quit [Ping timeout: 240 seconds]
<jnj> I'm learning ruby and I'm trying to implement a singly linked list but I'm running issues with my contains? function. For my while loop it checks to see if the current nodes element(elt) is equal to the given elt, and check to see if its not null and if both are true then the cursor moves onto the next element. So if you give it an element that is not contained in the list, then eventually the cursor will become nil so when I check to see if it's element is equal
<jnj> to the given element I get undefined method error
zapata has joined #ruby
rodfersou|lunch has quit [Quit: leaving]
idefine has joined #ruby
<ljarvis> jnj: could you show your code?
<apeiros> norc: not sure what it effectively was. but starting over and not having 2 installations helped.
bkxd has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<jnj> ljarvis: Sure, but also I just fixed it haha. Turned out my while loop checked to see if the cursor's elt was equal to the given elt and then checking if it was nil, when I switched it around it worked
<ljarvis> :)
tvw has quit []
scepticulous has quit [Ping timeout: 252 seconds]
Kn|t3 has joined #ruby
karapetyan has quit [Remote host closed the connection]
<jnj> feel free to give me any tips, like anything I can do thats better I wanna code in the Ruby way
arup___ has quit [Remote host closed the connection]
karapetyan has joined #ruby
<adaedra> attr_accessor = attr_reader + attr_writer
<adaedra> You don't need to do reader and writer if you do accessor.
shanemcd has joined #ruby
<jnj> adaedra: Ah, ok, thanks!
<adaedra> The extra spaces inside initialize's ()
<adaedra> to_string usually denotes a method that returns a string, not print it.
mrtomme has quit [Ping timeout: 246 seconds]
emilkarl has quit [Quit: emilkarl]
mrtomme has joined #ruby
<ljarvis> also if you're using reading, then I would remove the ivar references in the class. i.e just use head, not @head
<adaedra> You could implement #each to be compatible with Enumerable and have a truly Ruby collection.
fullofca_ has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
<ljarvis> also, I would rename next_elt to next_node
shanemcd_ has quit [Ping timeout: 272 seconds]
<jnj> Thanks so much for all your input!
<jnj> ljarvis: what do you mean by using reading?
certainty has quit [Ping timeout: 276 seconds]
mustmodify has joined #ruby
<jnj> adaedra: is #each the same as for each in java? I'm fluent in java so comparing things to java will help me out
<ljarvis> jnj: you refer to head inside your SinglyLinkedList class as @head, but since you defined attr_reader's you can use head without the @
celly has joined #ruby
fullofcaffeine has quit [Ping timeout: 255 seconds]
<adaedra> &ri Enumerable#each jnj
<`derpy> No results
davejlong has quit []
<adaedra> mh.
<ljarvis> that just relies on each, not implement?
<ljarvis> ri Enumerable would probably do it
<adaedra> Uh, duh.
<adaedra> &ri Array#each jnj
blackmesa has quit [Ping timeout: 240 seconds]
<mustmodify> I have medical tests that are graded on a college-four-point-scale. 0 = F, 4 = A. Tests are grouped into sections, and we provide a GPA for each section, and, obviously, a grade. Just realized I'm calculating the average once in javascript and once in Ruby. Anyone have any experience with float math on both? I know that floats suck, but do they suck differently in JS vs Ruby? Could I end up with different averages?
<adaedra> Is it me or the bot that is slow?
<Papierkorb> &ri Array#each
rgtk has joined #ruby
<ljarvis> it's you
karapetyan has quit [Remote host closed the connection]
<jnj> thanks guys!
<adaedra> grmbl.
adaedra has quit [Quit: Au revoir]
<jnj> how would i implement my linked list with each? Should I just switch to using an array or collection instead of the ndoes? Or could I pass the nodes into each?
joonty has quit [Quit: joonty]
<jnj> Or should I pass the nodes into a collection?
celly has quit [Ping timeout: 260 seconds]
adaedra has joined #ruby
<adaedra> Sorry for the mess -_-
<adaedra> jnj: you should pass each node, one by one
B1n4r10 has joined #ruby
monthy has quit [Remote host closed the connection]
<adaedra> Each node value, in fact
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
djbkd has quit [Quit: Leaving...]
<ljarvis> jnj: something like this: https://eval.in/489255 probably not how I'd write each if I thought about it properly but you get the idea
<ljarvis> it also means you can just add methods simple like this now: def contains?(value); to_a.include?(value); end
<adaedra> Once you include Enumerable
<jnj> Ah ok, I'll definitely switch to that
<ljarvis> you dont need to actually for to_s, but yeah
<ljarvis> to_a*
<ljarvis> er ignore me
<adaedra> Look at Enumerable doc to see all the methods implemented for you!
chouhoulis has joined #ruby
<ljarvis> was thinking of .each.to_a :)
<jnj> ljarvis: I'm still not sure what you meant earlier when you said that if I'm using reading, what is reading?
yonatankoren_ is now known as yonatankoren
<ljarvis> jnj: I meant if you're using a reader
<ljarvis> i.e attr_reader or attr_accessor
<ljarvis> sorry, sometimes I type bad
<jnj> OH, ok~
<jnj> it's all good!
colegatron has quit [Ping timeout: 264 seconds]
<jnj> ljarvis: So I can replace all @head, and @tail with just head, tail?
gizmore has joined #ruby
<ljarvis> jnj: yep, except the assignments of course
<jnj> ah, ok!
<jnj> the assignments in the initializer right?
<ljarvis> correct
podman has joined #ruby
ruby-lang407 has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
arup_r has joined #ruby
adgtl has quit []
karapetyan has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
Guest8157 is now known as saneax_AFK
atomical has joined #ruby
karapetyan has joined #ruby
idefine_ has joined #ruby
<jnj> What is a good resource to cover all ruby syntax, and maybe something that does comparisons with java?
<adaedra> there's a cheatsheet somewhere
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
jessemcgilallen has quit [Client Quit]
<adaedra> ?cheatsheet
karapetyan has quit [Remote host closed the connection]
<ruboto> I don't know anything about cheatsheet
<adaedra> mh.
<adaedra> Ah!
<adaedra> ?quickref
<jnj> thanks guys!
build22_ has joined #ruby
build22_ has left #ruby [#ruby]
moeabdol has quit [Ping timeout: 264 seconds]
idefine_ has quit [Ping timeout: 256 seconds]
ElFerna has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
pawnbox has joined #ruby
<jnj> Does anyone know a good resource that'll teach you all things ruby but it's geared towards people that already know how to program? I keep on finding tutorials that assume I've never programmed before
djbkd has joined #ruby
<ljarvis> jnj: honestly reading code will probably the best thing
<ljarvis> be*
mustmodify has left #ruby [#ruby]
<ljarvis> if you have a solid programming background there should be quite little that doesn't make sense
nunchuck has joined #ruby
dhollinger has joined #ruby
<jnj> Word, I guess I'll go on github and find some good ruby projects
colegatron has joined #ruby
decoponio has joined #ruby
<ljarvis> then you might only have a handful of questions, of which we can answer :)
yardenbar has quit [Ping timeout: 240 seconds]
shanemcd has quit [Remote host closed the connection]
<adaedra> sorry, I only answer answers.
shanemcd has joined #ruby
cpup has quit [Ping timeout: 264 seconds]
snockerton has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
<shevy> I question your questions
shanemcd has quit [Ping timeout: 240 seconds]
<arup_r> shevy: Why we have only "monkey" patch, not like a "dog" or "cat" patch etc.. ? :)
<arup_r> What is the histroy behind this word ..
<adaedra> Papierkorb: Was war das Problem mitt erste Link? :p
<shevy> arup_r yeah no idea, someone must have thought that monkeys patch things
karapetyan has joined #ruby
<arup_r> That is very good one liners.. +1 shevy
<shevy> I bet that some monkeys would make for better programmers than some humans would!
djbkd_ has joined #ruby
karmatr0n has joined #ruby
lacuna has joined #ruby
B1n4r10 has quit [Ping timeout: 276 seconds]
jull has joined #ruby
kobain has quit [Read error: Connection timed out]
jull has left #ruby [#ruby]
djbkd_ has quit [Ping timeout: 265 seconds]
synthroid has quit [Remote host closed the connection]
cassioscabral has quit [Quit: cassioscabral]
lxsameer has quit [Quit: Leaving]
jcdesimp has joined #ruby
ruby-lang407 has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
cpup has joined #ruby
GinoManWorks has quit [Read error: Connection reset by peer]
GinoManWorks has joined #ruby
jcdesimp has quit [Ping timeout: 240 seconds]
treaki_ has joined #ruby
harrison_ has joined #ruby
skooks has joined #ruby
rgtk has joined #ruby
jnj has quit [Ping timeout: 272 seconds]
_whitelogger has joined #ruby
BSaboia has joined #ruby
the_nick_me has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
cassioscabral has joined #ruby
JStoker has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
karapetyan has joined #ruby
kobain has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
cwong_on_irc has joined #ruby
kobain has joined #ruby
nertzy has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
roger_rabbit has joined #ruby
Fezzler has joined #ruby
chouhoulis has joined #ruby
gambl0re has joined #ruby
jottr has joined #ruby
saltsa has quit [Quit: Lost terminal]
duckpuppy has joined #ruby
saltsa has joined #ruby
AlphaAtom has joined #ruby
nkwsy has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
senayar has quit []
nateberkopec has joined #ruby
gagrio has quit [Ping timeout: 255 seconds]
pawnbox has quit []
nkwsy has quit [Ping timeout: 272 seconds]
inukshuk_ has joined #ruby
sandstrom has joined #ruby
rgtk has quit [Remote host closed the connection]
ElFerna has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
rgtk has joined #ruby
andywojo has joined #ruby
harrison_ has left #ruby ["Leaving"]
Fezzler has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 260 seconds]
andywojo has quit [Ping timeout: 240 seconds]
nkwsy has joined #ruby
jgpawletko has joined #ruby
dionysus69 has joined #ruby
synthroid has joined #ruby
ruu_ has joined #ruby
jcdesimp has joined #ruby
dmolina has quit [Quit: Leaving.]
Kn|t3 has quit [Quit: Kn|t3]
mostlybadfly has quit [Quit: Connection closed for inactivity]
rvchangue has quit [Quit: dead]
ElFerna has quit [Ping timeout: 276 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
dhollinger has quit [Quit: WeeChat 1.3]
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
chthon has quit [Quit: Ex-Chat]
inukshuk_ has quit [Quit: leaving]
dhollinger has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
vasilakisfil has quit [Quit: Konversation terminated!]
ElFerna has joined #ruby
zapiano has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapety_ has joined #ruby
IdanM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IdanM has joined #ruby
solars has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
agit0 has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
cyfr0n has joined #ruby
ElFerna has quit [Read error: Connection reset by peer]
yardenbar has joined #ruby
ElFerna has joined #ruby
chussenot has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
djbkd_ has quit [Ping timeout: 256 seconds]
agit0 has quit [Client Quit]
bronson has joined #ruby
rvchangue has joined #ruby
jessemcgilallen has joined #ruby
celly has joined #ruby
SCHAAP137 has joined #ruby
nkwsy has quit [Ping timeout: 276 seconds]
rodfersou has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
LetItSnow-y has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 276 seconds]
LetItSnow-y has joined #ruby
skade has joined #ruby
Fire-Dragon-DoL has joined #ruby
celly has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 265 seconds]
IdanM has quit [Quit: Textual IRC Client: www.textualapp.com]
idefine has quit []
dr3w has joined #ruby
karapety_ has quit [Remote host closed the connection]
Dimik has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
certainty has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
theRealGent has joined #ruby
kmckelvi1 has quit [Ping timeout: 265 seconds]
przemoskPL has joined #ruby
benlieb has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
theRealGent has quit [Client Quit]
zeroDivisible has joined #ruby
Jardayn has joined #ruby
RickHull has quit [Ping timeout: 255 seconds]
shanemcd has joined #ruby
przemoskPL has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 265 seconds]
renderfu_ has quit [Read error: Connection reset by peer]
centrx has joined #ruby
renderfu_ has joined #ruby
LetItSnow-y has quit [Remote host closed the connection]
adgtl has joined #ruby
moeabdol has joined #ruby
mark2 has quit [Remote host closed the connection]
momomomomo has joined #ruby
ibouvousaime has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
agit0 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jds has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
Rodya_ has quit [Quit: Leaving...]
cpup has quit [Ping timeout: 255 seconds]
sigurding has quit [Quit: sigurding]
shanemcd_ has joined #ruby
zapiano has quit [Quit: WeeChat 1.3]
cpup has joined #ruby
sneakerhax has joined #ruby
renderfu_ has quit [Read error: Connection reset by peer]
renderfu_ has joined #ruby
domypy has joined #ruby
eytanfb has joined #ruby
domypy has left #ruby [#ruby]
Phage- has left #ruby [#ruby]
davedev24 has joined #ruby
shanemcd_ has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Ping timeout: 250 seconds]
elaptics is now known as elaptics`away
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has quit [Client Quit]
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
bronson has joined #ruby
kmckelvi1 has joined #ruby
prestorium has quit [Quit: Leaving]
jbrhbr has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
harrison_ has joined #ruby
hectortrope has joined #ruby
jbrhbr has quit [Client Quit]
harrison_ has left #ruby ["Leaving"]
agit0 has quit [Quit: zzzZZZ….]
dotix has quit [Remote host closed the connection]
ruby-noob has joined #ruby
adgtl has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
dorei has joined #ruby
gmci has joined #ruby
Bloomer has quit [Remote host closed the connection]
<ruby-noob> I have a set of report classes that essentially follow the interface of building a report (i.e. having a report instance method that returns a hash). Do ruby programmers have an agreed way of making this pattern explicit (via modules or inheritance) or am I not breaking free from my static typing roots?
the_nick_me has quit [Remote host closed the connection]
jbrhbr has joined #ruby
learnme_ has quit [Quit: Page closed]
certainty has joined #ruby
centrx has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
hectortrope has quit [Quit: WeeChat 0.4.2]
centrx has joined #ruby
krz has quit [Ping timeout: 246 seconds]
colegatron has quit [Ping timeout: 245 seconds]
Anderson69s has joined #ruby
jamto11 has joined #ruby
certainty has quit [Ping timeout: 255 seconds]
Dimik has quit [Ping timeout: 245 seconds]
davedev2_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
spider-mario has joined #ruby
davedev__ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
ibouvousaime has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Ping timeout: 250 seconds]
<shevy> what "pattern"
davedev24 has joined #ruby
ashemark has joined #ruby
ibouvousaime has joined #ruby
freerobby has quit [Quit: Leaving.]
davedev__ has quit [Ping timeout: 250 seconds]
A124 has joined #ruby
jottr has joined #ruby
<apeiros> ruby-noob: we don't have patterns to enforce it. we only have patterns to make use of something like that. i.e. cf. Enumerable module which depends on the presence of "each".
freerobby has joined #ruby
colegatron has joined #ruby
arup_r has quit []
duckpuppy has quit [Ping timeout: 260 seconds]
dotix has joined #ruby
skooks has quit [Read error: No route to host]
shanemcd has quit [Read error: Connection reset by peer]
ruu_ has quit [Remote host closed the connection]
Neronfapper has joined #ruby
<Neronfapper> Hey guise
karapetyan has joined #ruby
jbrhbr has quit [Quit: Leaving.]
build22 has joined #ruby
shanemcd has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
ohaibbq has joined #ruby
ico has joined #ruby
skade has joined #ruby
djbkd_ has joined #ruby
nkwsy has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
djbkd_ has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
symm- has quit [Quit: Leaving...]
adgtl has quit [Ping timeout: 256 seconds]
jamto11 has quit []
darkf has quit [Quit: Leaving]
ruu_ has joined #ruby
inferno5677 has joined #ruby
djbkd has quit [Quit: My people need me...]
baroquebobcat has joined #ruby
ashemark has quit [Ping timeout: 260 seconds]
slackbotgz has joined #ruby
andywojo has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 264 seconds]
hxegon has joined #ruby
agentmeerkat has joined #ruby
Neronfapper has quit [Quit: Bye]
aryaching has quit [Remote host closed the connection]
build22 has quit [Remote host closed the connection]
Neronfapper has joined #ruby
aryaching has joined #ruby
rubynoobie has joined #ruby
mistermocha has joined #ruby
freerobby has quit [Quit: Leaving.]
andywojo has quit [Ping timeout: 256 seconds]
domgetter has joined #ruby
atomical has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
TheMoonMaster has quit [Ping timeout: 255 seconds]
dotix has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheMoonMaster has joined #ruby
rikkipitt has joined #ruby
ElFerna has joined #ruby
Coldblackice has joined #ruby
quesker_ has joined #ruby
jnj has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
andrew9184 has joined #ruby
<andrew9184> anyone know how I should debug errors with this message: "\xEC" on US-ASCII
quesker has quit [Read error: Connection reset by peer]
<domgetter> havenwood: Using lambdas for transducers is also faster than Cognitect's transducer gem
<shevy> will we make it to a new ruby release in 2 days?
<shevy> andrew9184 that is some encoding related issue isn't it?
fullofca_ has quit [Remote host closed the connection]
<andrew9184> not sure. i’m basically just using rest-client to make api calls
fullofcaffeine has joined #ruby
celly has joined #ruby
<adaedra> you may want to add a little more context, andrew9184. Libraries used, maybe some code.
<apeiros> andrew9184: us-ascii is the wrong encoding
jbrhbr has joined #ruby
<apeiros> andrew9184: us-ascii is only bytes 0x00-0x7f
<adaedra> that looks like it's only a symptom tho.
<apeiros> if you say you use rest-api, then you probably use something json based? then it'd be required to be utf-8.
<andrew9184> ah I see, thanks for the suggestions — looking into it
<apeiros> if it's not json based, then make sure you come back with more infos.
celly has quit [Ping timeout: 272 seconds]
<jnj> So I've implemented my linked list using the enumerator interface (makes things so much easier), now I'm trying to traverse the list in reverse order using reverse_each. It prints out the list in reverse order but instead of ending with => nil in irb, it ends with => #<Enumerator: #<SinglyLinkedList:0x007ff06900ec98 @head=#<Node:0x007ff069009360 @element="a", @next_node=#<Node:0x007ff069001890 @element="b", @next_node=nil>>, @tail=#<Node:0x007ff069001890 @element
<jnj> ="b", @next_node=nil>>:each>
<jnj> Why is that?
crime has joined #ruby
<adaedra> can you share the revised code?
certainty has joined #ruby
<domgetter> jnj: presumably the last thing you enumerated over was the head of the list, not the tail. Your tail is nil
ico has quit [Remote host closed the connection]
<domgetter> or, your tail's next_node is nil, anyway
baroquebobcat has quit [Quit: baroquebobcat]
<jnj> domgetter: Ah, ok, gotcha
ico has joined #ruby
codecop has joined #ruby
baroquebobcat has joined #ruby
<adaedra> >> [1, 2, 3].reverse_each { |*| }
<ruboto> adaedra # => [1, 2, 3] (https://eval.in/489373)
<hanmac> shevy: did you hear? Oracle does need to say that their Java is shitty ;P http://www.theregister.co.uk/2015/12/22/ftc_oracle_java/
<adaedra> jnj: see, #reverse_each return the object, not nil.
<domgetter> adaedra: That's the more correct answer :P
karapetyan has quit [Remote host closed the connection]
<shevy> hanmac well it's "under new management" syndrome so
karapetyan has joined #ruby
<shevy> hanmac I wonder if they would sue ruby if ruby-people have old ruby versions on their machine as well
colegatron has joined #ruby
ico has quit [Read error: Connection reset by peer]
<domgetter> shevy: Don't give them any ideas
<adaedra> jnj: now that you've defined #each, you can just include Enumerable, you know :p
<jnj> One of my professors this semester said that Oracle is basically 80% lawyers and 20% programmers
ico has joined #ruby
jessemcgilallen has joined #ruby
<domgetter> jnj: if you include Enumerable, and you define an #each method, ruby will leverage your #each method to do all the other enumerable methods for your class
<jnj> adaedra: Ah, ok. Does that mean I write require enumerable up top? (I'm thinking of include enumerable like an import)
karapetyan has quit [Remote host closed the connection]
djbkd has joined #ruby
<jnj> domgetter: Does that mean that Enumerable's delete will work? Or would I have to implement my own?
karapetyan has joined #ruby
FernandoBasso has quit [Quit: Leaving]
PedramT has joined #ruby
duckpuppy has joined #ruby
<domgetter> jnj: you include it in the class like this: https://gist.github.com/domgetter/3275ba8f981a20545b32
<adaedra> ^
psy_ has joined #ruby
<adaedra> that will import all the methods in the Enumerable module which will rely on your #each
<domgetter> jnj: That's a good question. Lemme go find out
dagda1 has joined #ruby
Lildirt has quit [Ping timeout: 256 seconds]
<jnj> adaedra: Does this now mean that instead of doing self.each.include, I can just do each.include?
<adaedra> There's no Enumerable#delete?
<adaedra> jnj: you can just do include?
arup_r has joined #ruby
<adaedra> Enumerable has no mutating methods, its methods always return a new array
ta has joined #ruby
Lildirt has joined #ruby
ta has quit [Read error: Connection reset by peer]
ico has quit [Read error: Connection reset by peer]
ta has joined #ruby
ico has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
<jnj> adaedra: Ah, ok. But if I still want to have a count function defined for my class, then it should return each.count, right?
build22 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<domgetter> jnj Enumerable has count
<adaedra> Bad example I guess, since there's already Enumerable#count.
dlitvak has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
radgeRayden has joined #ruby
<domgetter> You get all those
<adaedra> What you're doing when using each. something is just delaying, as Enumerator is Enumerable.
agentmeerkat has quit [Ping timeout: 245 seconds]
dlitvak has joined #ruby
<havenwood> domgetter: nice! :)
<jnj> Ah, ok, then do I just call #count?
<domgetter> jnj yea
<adaedra> yes.
<domgetter> my_list = SinglyLinkedList.new; my_list.count #=> 0
<jnj> dogmetter: Haha, I feel liked an idiot I did it without the hash and got a ton of errors
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ico has quit [Read error: Connection reset by peer]
<adaedra> All the methods of Enumerable should work. Note that things returning a new collection, like #map, will return an Array, not an instance of your class.
<jnj> Also, just wanted to say thanks for helping me out. You guys are making ruby my new favorite langauge
<domgetter> No problem, I'm glad you're learning :)
djellemah_ has quit [Ping timeout: 276 seconds]
ico has joined #ruby
<adaedra> jnj: what you're doing here is a 'mix-in': you have methods defined in a module and copy them in your own class.
Hounddog has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 256 seconds]
cassioscabral has quit [Read error: Connection reset by peer]
<jnj> adaedra: So is this basically inheritance then, where Enumerator would be the parent class?
cassioscabral has joined #ruby
<jnj> adaedra: Also, do I just call count as #count? It's showing as a comment
<adaedra> Not exactly, as Enumerable (not Enumerator) is a module, so not instantiable
<adaedra> No, you do .count
<adaedra> "#count" means "the instance method count", but you call it with . on an instance
<domgetter> jnj: You can do the same with the Comparable module. I did this with notes on a piano. If you define how two things compare when sorted, then you get a few methods for free.
dlitvak has quit [Ping timeout: 245 seconds]
<jnj> oooh, ok so whenever it'
<jnj> s #count, its really just .count? Gotcha
<crime> # is notation for instance method of that object
<crime> in code, its just a comment
<adaedra> The method String#length is called by doing "string".length
Danishman has joined #ruby
stevenxl has quit [Quit: leaving]
nfk|laptop has joined #ruby
momomomomo has joined #ruby
<blub> its so bad haha
<jbrhbr> jake worth sure does like fixing typos
<adaedra> ?
<jbrhbr> ruby core commits
duckpuppy has joined #ruby
ico has quit [Read error: Connection reset by peer]
koba has joined #ruby
ico has joined #ruby
snguyen has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
agit0 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 246 seconds]
crime has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
ur5us has joined #ruby
yqt has joined #ruby
blackmesa has joined #ruby
jmdade has joined #ruby
<jnj> adaedra: Since enumerable has no mutating methods, that means that something like #drop would copy my linked list, then drop elements from the copy, but not the actual linked list, correct?
<adaedra> no, just adding the kept elements to a new array and dropping directly the other ones
eytanfb has quit [Remote host closed the connection]
unreal_ has joined #ruby
kadoppe has quit [Ping timeout: 240 seconds]
ryxai has quit [Read error: Connection reset by peer]
<adaedra> the fact that Enumerable is based on #each means that all its method sees are the values in order
Steve_Jobs has quit [Ping timeout: 244 seconds]
unreal has quit [Ping timeout: 250 seconds]
agit0 has quit [Quit: zzzZZZ….]
jottr has quit [Ping timeout: 240 seconds]
kadoppe has joined #ruby
cschneid_ has joined #ruby
djbkd_ has joined #ruby
<cschneid_> I am Marshal.loading an object w/ an instance var (a Hash), no custom marshalling logic - any thoughts on why that hash would come back as nil? There's zero chance it was serialized as nil.
dlitvak has joined #ruby
dylanjhoulihan has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mbeasley has joined #ruby
yfeldblum has joined #ruby
mbeasley has left #ruby [#ruby]
synthroid has quit [Remote host closed the connection]
<cschneid_> oh, of course a minute after asking, it appears like an old version of the app is writing a slightly different name out to the file... :-/
mbeasley has joined #ruby
blaxter has quit [Ping timeout: 250 seconds]
djbkd_ has quit [Ping timeout: 260 seconds]
JakFrist has joined #ruby
_djbkd has joined #ruby
dotix has joined #ruby
Cihan has quit [Quit: Cihan]
robbyoconnor has quit [Read error: Connection reset by peer]
aryaching has quit []
CihanKaygusuz has joined #ruby
synthroid has joined #ruby
mbeasley has quit [Client Quit]
ico has quit [Read error: Connection reset by peer]
mbeasley has joined #ruby
mbeasley has quit [Client Quit]
ico has joined #ruby
aeipownu_ has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 245 seconds]
certainty has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
momomomomo has quit [Quit: momomomomo]
Vitor_ has quit [Ping timeout: 264 seconds]
dotix has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 260 seconds]
ico has quit [Read error: Connection reset by peer]
devster31 has quit [Quit: cya]
ico has joined #ruby
djbkd has joined #ruby
stannard_ has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
jackjackdripper1 has quit [Quit: Leaving.]
ElFerna has joined #ruby
freerobby has joined #ruby
jackjackdripper has joined #ruby
shanemcd_ has joined #ruby
eytanfb has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 245 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.3]
PedramT has quit [Remote host closed the connection]
JakFrist has joined #ruby
baweaver has joined #ruby
shanemcd_ has quit [Ping timeout: 276 seconds]
ico has quit [Read error: Connection reset by peer]
JakFrist has quit [Client Quit]
ico has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 245 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
cyfr0n1 has joined #ruby
rikkipitt has quit [Quit: Leaving...]
devster31 has joined #ruby
unreal has joined #ruby
ta has quit [Remote host closed the connection]
arup_r has quit []
dlitvak has quit [Remote host closed the connection]
cyfr0n has quit [Ping timeout: 256 seconds]
Vitor has joined #ruby
ico has quit [Read error: Connection reset by peer]
lemur has joined #ruby
ico has joined #ruby
ico has quit [Read error: Connection reset by peer]
CihanKaygusuz has quit [Quit: CihanKaygusuz]
CihanKaygusuz has joined #ruby
ico has joined #ruby
jottr has joined #ruby
unreal_ has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
PedramT has joined #ruby
pandaant has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
emilkarl has joined #ruby
rodfersou has quit [Quit: leaving]
nfk|laptop has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 240 seconds]
eytanfb has quit [Remote host closed the connection]
lenwood has joined #ruby
nfk|laptop has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
dlitvak has joined #ruby
DoubleMalt has joined #ruby
<domgetter> adaedra: Unless each is defined not to take things in any particular order, like with Sets
dlitvak has quit [Remote host closed the connection]
skcin7 has joined #ruby
shanemcd has quit [Remote host closed the connection]
frem has joined #ruby
jessemcgilallen has joined #ruby
bkxd has joined #ruby
nfk|laptop has quit [Ping timeout: 276 seconds]
aevitas has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hanmac has quit [Ping timeout: 260 seconds]
replay has joined #ruby
djbkd has joined #ruby
duckpuppy has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
bronson has joined #ruby
jessemcgilallen has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
dagda1 has joined #ruby
ruby-noob has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
aevitas has left #ruby [#ruby]
eytanfb has joined #ruby
kirun has joined #ruby
nfk|laptop has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
Shadyz has joined #ruby
akem has joined #ruby
allcentury has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
Wsewolod has joined #ruby
hanmac has joined #ruby
jcdesimp has quit [Remote host closed the connection]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nfk|laptop has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Quit: Leaving...]
AnoHito has quit [Read error: Connection reset by peer]
rkazak has quit [Ping timeout: 272 seconds]
replay has quit [Ping timeout: 245 seconds]
dnewkerk has joined #ruby
snguyen has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
atomical has joined #ruby
kobain has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
ico has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
ico has joined #ruby
certainty has joined #ruby
dlitvak_ has joined #ruby
peeja has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 255 seconds]
nfk|laptop has joined #ruby
<nkwsy> I am parcing data with mechanize/nokogiri and putting it into a csv. I have a few things. how do I remove blank lines from csv? I am parcing like this doc.xpath('//table/tbody/tr').each do |row|
<nkwsy> tarray = []
<nkwsy> row.xpath('td[@class="bodytextsmall"]').each do |cell|
<nkwsy> tarray << cell.text.strip
<nkwsy> sorry for that
bronson has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 264 seconds]
yeshacker has quit [Ping timeout: 256 seconds]
FernandoBasso has joined #ruby
andywojo has joined #ruby
<apeiros> nkwsy: you reset the array on each iteration
PedramT has quit [Remote host closed the connection]
<nkwsy> but <tr> is extreamly prevelant which returns like 40 blank lines before my data located at <td class='bodytextsmall'>
<apeiros> ah, you have an inner loop…
dlitvak_ has quit [Remote host closed the connection]
ico has quit [Read error: Connection reset by peer]
<nkwsy> interesting
jbrhbr has quit [Quit: Leaving.]
ico has joined #ruby
<apeiros> I'd try to adapt the css, but you can always use .reject to remove rows which are empty
stevenxl has joined #ruby
<nkwsy> okay ill try .reject
shanemcd has joined #ruby
celly has joined #ruby
ico has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 260 seconds]
koba has quit [Ping timeout: 240 seconds]
dylanjho_ has joined #ruby
shanemcd_ has joined #ruby
ico has joined #ruby
freerobby has joined #ruby
emilkarl has quit [Quit: emilkarl]
jnj has quit [Quit: Leaving]
andywojo has quit [Ping timeout: 255 seconds]
ico has quit [Read error: Connection reset by peer]
<nkwsy> how can I tell I have an inner loop?
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dylanjhoulihan has quit [Ping timeout: 272 seconds]
ico has joined #ruby
Neronfapper has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
ico has quit [Read error: Connection reset by peer]
celly has quit [Ping timeout: 276 seconds]
ico has joined #ruby
WeiJunLi has quit [Read error: Connection reset by peer]
shanemcd_ has quit [Ping timeout: 272 seconds]
<shevy> foo.each {|bar| bar.each
gambl0re has quit [Ping timeout: 260 seconds]
unreal_ has joined #ruby
agent_white has joined #ruby
bubbys has quit [Ping timeout: 255 seconds]
andywojo has joined #ruby
dlitvak has joined #ruby
dagda1 has joined #ruby
unreal has quit [Ping timeout: 255 seconds]
lacuna has quit [Remote host closed the connection]
lemur has quit [Read error: Connection reset by peer]
Shadyz has quit [Ping timeout: 246 seconds]
bubbys has joined #ruby
blackgoat has joined #ruby
ruby-lang011 has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
<ruby-lang011> testing, can anyone see this?
<adaedra> nobody, ruby-lang011.
sandstrom has quit [Quit: My computer has gone to sleep.]
<ruby-lang011> thanks
kobain has quit [Read error: Connection reset by peer]
atomical_ has joined #ruby
p0wn3d_ has quit [Ping timeout: 245 seconds]
AnoHito has joined #ruby
akem has quit [Ping timeout: 240 seconds]
akem has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
blackgoat has quit [Quit: WeeChat 1.3]
<ruby-lang011> anyone familiar with the odin project?
lemur has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
akem has quit [Client Quit]
gizmore has quit [Remote host closed the connection]
<nkwsy> now where would I add the .reject?
renderfu_ has quit [Read error: Connection reset by peer]
atomical has quit [Ping timeout: 256 seconds]
renderfu_ has joined #ruby
<nkwsy> I put it after tarray << cell.text.strip.reject { |c| c.empty? }
dotix has joined #ruby
ruby-lang011 has quit [Quit: Page closed]
dotix_ has joined #ruby
ico has quit [Read error: Connection reset by peer]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 256 seconds]
<nkwsy> I also did
<nkwsy> cells = cell.reject { |c| c.empty? }
<nkwsy> tarray << cells.text.strip
ico has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
gizmore has joined #ruby
bijjr has joined #ruby
bubbys has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
nertzy has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
last_staff has joined #ruby
beast has quit [Quit: Leaving]
blackgoat has joined #ruby
<shevy> does it work or does it work
<shevy> and - use a pastie
<shevy> cell.reject! will be faster than .reject
atomical_ has quit [Ping timeout: 256 seconds]
dagda1 has joined #ruby
kobain has joined #ruby
crowell_ has joined #ruby
<nkwsy> it does not work
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> no
<shevy> pastie
<nkwsy> tab2.rb:20:in `block (2 levels) in <main>': undefined method `reject' for "9189531900":String (NoMethodError) from /Users/Dood/.gem/ruby/2.2.3/gems/nokogiri-1.6.7/lib/nokogiri/xml/node_set.rb:187:in `block in each' from /Users/Dood/.gem/ruby/2.2.3/gems/nokogiri-1.6.7/lib/nokogiri/xml/node_set.rb:186:in `upto'
<nkwsy> from /Users/Dood/.gem/uby/2.2.3/gems/nokogiri-1.6.7/lib/nokogiri/xml/node_set.rb:186:in `e ach' from tab2.rb:19:in `block in <main>' from /Users/Dood/.gem/ruby/2.2.3/gems/nokogiri-1.6.7/lib/nokogiri/xml/node_set.rb:187:in `block in each' from /Users/Dood/.gem/ruby/2.2.3/gems/nokogiri-1.6.7/lib/nokogiri/xml/node_set.rb:186:in `upto' from /Users/Dood/.gem/ruby/2.2.3/gems/nokogiri-1.6.7/lib/nokogiri/xml/node_set
<nkwsy> .rb:186:in `each' from tab2.rb:17:in `<main>'
<shevy> pastie man
shanemcd has joined #ruby
<shevy> not paste
<shevy> you apply .reject onto a string; apply it on your array instead
<nkwsy> I am sorry I do not know what pastie is
crowell_ has quit [Client Quit]
pwnd_nsfw has joined #ruby
ico has quit [Read error: Connection reset by peer]
nocd has joined #ruby
shanemcd has quit [Remote host closed the connection]
ico has joined #ruby
ElFerna has quit [Ping timeout: 250 seconds]
crowell_ has joined #ruby
renderf__ has joined #ruby
ico has quit [Read error: Connection reset by peer]
crowell_ has quit [Client Quit]
ico has joined #ruby
dylanjhoulihan has joined #ruby
nateberkopec has joined #ruby
Yzguy has joined #ruby
<nkwsy> no error but does not skip lines
dylanjho_ has quit [Ping timeout: 272 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
renderfu_ has quit [Ping timeout: 250 seconds]
<nkwsy> actually it does fai/
atomical_ has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
<shevy> nkwsy see
blackgoat has quit [Quit: WeeChat 1.3]
<shevy> above on IRC you showed ruby code
<shevy> now you just show some results - but no ruby code
<nkwsy> yes
<shevy> so
<nkwsy> ruby code got me this result
jgpawletko has quit [Quit: jgpawletko]
<shevy> lol
build22_ has joined #ruby
marsjaninzmarsa has joined #ruby
marsjaninzmarsa has quit [Excess Flood]
Wsewolod has quit [Ping timeout: 240 seconds]
<nkwsy> my csv that is generated does not have results. this is the errer that it gives me
<shevy> no
<shevy> <nkwsy> cells = cell.reject { |c| c.empty? }
<shevy> you showed code earlier
<shevy> you did not show code in the pastie
baroquebobcat has quit [Read error: Connection reset by peer]
atomical has quit [Ping timeout: 276 seconds]
<shevy> you are not serious
blackgoat has joined #ruby
<nkwsy> I changed that after you said apply it to your array
bubbys has quit [Ping timeout: 260 seconds]
build22 has quit [Ping timeout: 246 seconds]
<nkwsy> not string
<shevy> no
norc has quit [Ping timeout: 252 seconds]
ElFerna has joined #ruby
nateberkopec has quit [Quit: Leaving...]
baroquebobcat has joined #ruby
nateberkopec has joined #ruby
bijjr has quit [Quit: bijjr]
thisirs has joined #ruby
bijjr has joined #ruby
moei has quit [Quit: Leaving...]
sandstrom has joined #ruby
marsjaninzmarsa has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moei has joined #ruby
nateberkopec has quit [Quit: Leaving...]
lenwood has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
FernandoBasso has quit [Ping timeout: 240 seconds]
ico has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ico has joined #ruby
certainty has joined #ruby
bubbys has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
CihanKaygusuz is now known as Cihan
smactive has joined #ruby
tectonic has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 276 seconds]
tomphp has joined #ruby
jaequery has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
jbrhbr has joined #ruby
mdw has joined #ruby
CihanKaygusuz has joined #ruby
marr has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
bijjr has quit [Quit: bijjr]
jgpawletko has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
andrew9184 has quit [Quit: andrew9184]
bubbys has quit [Ping timeout: 240 seconds]
<shevy> is there a shortcut to check: if hash.has_key? 'foo' or hash.has_key? 'bar' ?
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arian0n- is now known as arian0n
sankaber has quit [Remote host closed the connection]
atomical has joined #ruby
djbkd_ has joined #ruby
sankaber has joined #ruby
<nkwsy> I am not sure
<Papierkorb> shevy: #include? :P .. but requires more context
jottr has quit [Ping timeout: 255 seconds]
ESpiney has quit [Read error: Connection reset by peer]
<arian0n> shevy, perhaps hash['foo' || 'bar']? so long as you aren't holding falsy values on your hash
atomica__ has joined #ruby
<shevy> arian0n aha hmm let me think
bubbys has joined #ruby
<Papierkorb> >> 'arian0n: ' + ('foo' || 'bar')
<ruboto> Papierkorb # => "arian0n: foo" (https://eval.in/489398)
dlitvak has joined #ruby
[Butch] has joined #ruby
atomical_ has quit [Ping timeout: 264 seconds]
bithon has joined #ruby
djbkd_ has quit [Ping timeout: 256 seconds]
<adaedra> shevy: %w[foo bar].any?(&has.method(:has_key?)) # but not really good if you have only two values.
<adaedra> s/has\./hash./
ico has quit [Read error: Connection reset by peer]
ico has joined #ruby
atomical has quit [Ping timeout: 260 seconds]
bubbys has quit [Ping timeout: 260 seconds]
dlitvak has quit [Remote host closed the connection]
wildlander has joined #ruby
<arian0n> >> 'Papierkorb: hmm...? ' + {pi: 3.14, tau: 6.28}[:pi || :tau].to_s
<ruboto> arian0n # => "Papierkorb: hmm...? 3.14" (https://eval.in/489401)
<Papierkorb> Let's hope the engine is smart enough to constant-fold the ||
bubbys has joined #ruby
<adaedra> >> 'arian0n: ' + {pi: nil, tau: 6.28}[:pi || :tau].to_s
<ruboto> adaedra # => "arian0n: " (https://eval.in/489402)
<adaedra> the inside of [] gets evaluated first.
atomica__ has quit [Ping timeout: 276 seconds]
<havenwood> shevy: h.fetch(:gah) { h[:bah] }
<arian0n> adaedra, ah
<adaedra> havenwood: that's hash['gah'] || hash['bah'], not really what he wanted?
ramfjord has joined #ruby
gizless has joined #ruby
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> adaedra: Guess I read it wrong.
<adaedra> (nvm the symbols)
<havenwood> It's not pretty anyways!
dotix_ has quit [Remote host closed the connection]
ico has quit [Read error: Connection reset by peer]
<adaedra> the advantage of %w[].any? is that it's trivial to add/remove cases.
<havenwood> I retract. :)
ico has joined #ruby
krobzaur has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
shanemcd has joined #ruby
<havenwood> I
yfeldblum has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bubbys has quit [Ping timeout: 255 seconds]
<adaedra> |
gizmore has quit [Ping timeout: 240 seconds]
bijjr has joined #ruby
atomical has joined #ruby
abronca has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
eytanfb has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
<shevy> I grew so fond of case x; when 'a','b','cdf',/ghi/
benlieb has quit [Ping timeout: 265 seconds]
bkxd has joined #ruby
ta has joined #ruby
sgambino has joined #ruby
<Papierkorb> shevy: when String; ftw!
boorad420 has joined #ruby
benlieb has joined #ruby
minimalism has quit [Quit: minimalism]
minimalism has joined #ruby
ico has quit [Read error: Connection reset by peer]
Cihan_ has joined #ruby
gagrio has joined #ruby
ico_ has joined #ruby
<boorad420> Hi friends, I'm trying to install a somewhat dated rails app, but I'm getting 'make' errors without much description when installing a common gem (json). Gist here: https://gist.github.com/RyanMorgan/dbf9feed77cca1e9aca0 Anyone got any suggestions? I've re-installed xcode and libxml2
elico has joined #ruby
bijjr has quit [Quit: bijjr]
bkxd has quit [Ping timeout: 240 seconds]
minimalism has quit [Client Quit]
<elico> I want to create a 3 digit long number that starts with 001 and end in 999.
<elico> I can use a range 1..999 to get the right number but is there a method to get it padded with 0? or Should I create it by myself?
minimalism has joined #ruby
<shevy> elico if you only want '0' you can use rjust and ljust
<shevy> >> '1'.ljust 3,'0'
<ruboto> shevy # => "100" (https://eval.in/489407)
<shevy> hmm
stu314 has joined #ruby
<shevy> >> '1'.rjust 3,'0'
<ruboto> shevy # => "001" (https://eval.in/489408)
<dorei> elico: there's no point for a number to be padded, its string representation is padded
AlphaAtom has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
<elico> dorei: I am using it as a string.. this is the main reason for that but I assumed it would be understood from my question..
<elico> shevy: thanks!!
ElFerna has joined #ruby
ohaibbq has quit [Quit: Leaving...]
<elico> shevy: this is what I was looking for!
<havenwood> elico: For example: ('001'..'100').take 3 #=> ["001", "002", "003"]
last_staff has quit [Read error: Connection reset by peer]
maletor has joined #ruby
<havenwood> elico: [*'001'..'100']
<elico> havenwood: this is something I was never expecting!!!
<elico> this is great!!
Cihan_ has quit [Quit: Updating details, brb]
d5sx43 has joined #ruby
build22 has joined #ruby
bronson has quit [Remote host closed the connection]
paha80 has joined #ruby
Cihan has quit [Quit: Cihan]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]]
gizmore has joined #ruby
Cihan has joined #ruby
<shevy> yeah havenwood knows the naughty tricks
gizmore|2 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thisirs has quit [Ping timeout: 240 seconds]
eytanfb has joined #ruby
<elico> shevy: I wrote more then one script in ruby but I always need to learn it back from 0.
build22_ has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 255 seconds]
bubbys has joined #ruby
<shevy> I forget a lot of things as well
nertzy has joined #ruby
<shevy> I keep tricks-o-bag I mean bag-o-tricks in some local files for easier access, but the [*'001'..'100'] trick I did not store yet
d5sx43 has quit [Client Quit]
gizless has quit [Ping timeout: 260 seconds]
jcdesimp has joined #ruby
<elico> shevy: This is a great idea to store some of the tricks in some place.
<elico> I have a local gitlab so I might use this for that.
<elico> Yes!!!! 600+ links were created!!
duckpuppy has joined #ruby
ta has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
<shevy> :D
minimalism has quit [Quit: minimalism]
minimalism has joined #ruby
bradleyprice has joined #ruby
minimalism has quit [Client Quit]
cassioscabral has joined #ruby
minimalism has joined #ruby
build22_ has joined #ruby
build22 has quit [Read error: Connection reset by peer]
jcdesimp has quit [Ping timeout: 260 seconds]
tectonic has quit []
ledestin has joined #ruby
build22 has joined #ruby
zenlot2 has joined #ruby
bronson has joined #ruby
stu314 has quit [Remote host closed the connection]
celly has joined #ruby
zenlot1 has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
build22_ has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Quit: Leaving...]
<elico> shevy: the issue was that I need to create a list of links to download and the simplest way is to use gsub and then download them one by one... and they created the nubmers in a 3 digit form.
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
bogn has quit [Ping timeout: 250 seconds]
siddharth has quit [Read error: Connection reset by peer]
boorad420 has quit [Ping timeout: 252 seconds]
dylanjho_ has joined #ruby
celly has quit [Ping timeout: 260 seconds]
celly has joined #ruby
certainty has joined #ruby
synthroid has quit []
nertzy has quit [Quit: This computer has gone to sleep]
dylanjhoulihan has quit [Ping timeout: 260 seconds]
<Eising> hey, what do you call syntax like #map(&:split)?
qhartman has joined #ruby
<lemur> shorthand
<lemur> or Symbol#to_proc
lemur is now known as baweaver
<baweaver> every time...
<baweaver> lemur === baweaver
paha80 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElFerna has quit [Ping timeout: 246 seconds]
dylanjhoulihan has joined #ruby
rgtk has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dylanjh__ has joined #ruby
gizmore|2 has quit [Ping timeout: 246 seconds]
paha80 has joined #ruby
dylanjh__ has quit [Max SendQ exceeded]
dylanjho_ has quit [Ping timeout: 255 seconds]
dylanjh__ has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
dylanjh__ has quit [Max SendQ exceeded]
certainty has quit [Ping timeout: 245 seconds]
dylanjho_ has joined #ruby
AlphaAtom has joined #ruby
dylanjho_ has quit [Client Quit]
dylanjhoulihan has quit [Ping timeout: 256 seconds]
rgtk has joined #ruby
pwnd_nsfw has joined #ruby
build22 has quit []
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
robbyoconnor has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
eytanfb has quit [Remote host closed the connection]
robbyoconnor has quit [Remote host closed the connection]
dhollinger has quit [Quit: WeeChat 1.3]
robbyoconnor has joined #ruby
gizmore has joined #ruby
stannard_ has quit [Remote host closed the connection]
gizless has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
siddharth has joined #ruby
eytanfb has joined #ruby
Harry has joined #ruby
gizmore has quit [Ping timeout: 265 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizless has quit [Ping timeout: 256 seconds]
nertzy has joined #ruby
mistermocha has joined #ruby
bogn has joined #ruby
edwinvdgraaf has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
al2o3-cr has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
eytanfb has quit [Ping timeout: 240 seconds]
Jackneill has quit [Ping timeout: 246 seconds]
paha80 has quit [Quit: Textual IRC Client: www.textualapp.com]
eytanfb has joined #ruby
celly has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
jbrhbr has quit [Quit: Leaving.]
dopie has quit [Quit: This computer has gone to sleep]
dopie has joined #ruby
celly has joined #ruby
iateadonut has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<shevy> hmm say you have a string like x = "tioga-1.19.1.gem" but it could also be x = "tioga-1.19.1.tar.xz", is there a reliable way to obtain the last part, in the first case ".gem" but in the second case ".tar.xz" ?
jbrhbr has joined #ruby
houhoulis has joined #ruby
<xybre> Regex.
grn has joined #ruby
<xybre> considering some extensions have numbers in them, it's best if you make a list of expected extensions.
BSaboia has quit [Ping timeout: 265 seconds]
firstdayonthejob has quit [Ping timeout: 276 seconds]
`derpy has quit [Ping timeout: 246 seconds]
`derpy has joined #ruby
ta has joined #ruby
crdpink has quit [Quit: q term]
boorad420 has joined #ruby
abronca has left #ruby [#ruby]
crdpink has joined #ruby
blackmesa has joined #ruby
stevenxl has quit [Ping timeout: 260 seconds]
ysz has joined #ruby
gizless has joined #ruby
shazaum_ has joined #ruby
stevenxl has joined #ruby
stevenxl has joined #ruby
<al2o3-cr> shevy: probably File.extname if just comparing the two
[Butch] has quit [Ping timeout: 260 seconds]
dopie has quit [Quit: Leaving]
<ysz> are there that many gems written in C for Ruby as for PHP where that's a norm? I've started learning Ruby after PHP and would appreciate a hint
<dorei> let's say i have an array like ['a', 41, 5, 'b', 41, 'zz', 'd'] , is there a way to split it at 41 so as to have an array like [['a'], [41], [5, 'b'], [41], ['zz', 'd']] ?
<xybre> ysz: there's quite a few, but not a majority
gizmore has quit [Ping timeout: 250 seconds]
gizless is now known as gizmore
cassioscabral has quit [Quit: cassioscabral]
<shevy> al2o3-cr problem is that File.extname will only take the last part so it will return a ".xz", I solved it in a similar way how xybre suggested though, I already have another project that splits into "program_name", and "version_name", so to get the part that comes afterwards, I just have to replace the former two from the full string
<ysz> xybre, If I use rails casually will I step across those? are those required?
<ysz> I hope to avoid that.
jottr_ has joined #ruby
<shevy> ysz the amount of C hackers using ruby and still writing a lot of C code is somewhat rather low... surely less than 5% of the people here I would say
<Mon_Ouie> the gems to talk with SQLite/MySQL are most often implemented in C (and then there are pure Ruby APIs built on top of them)
<havenwood> dorei: one way: chunk { |e| e == 41 }.map &:last
VeryBewitching has joined #ruby
crdpink has quit [Quit: q term]
<VeryBewitching> G'day folks.
<ysz> thanks gents! now I'm not that afraid :)
dopie has joined #ruby
<ysz> xybre, shevy ^^
celly has quit [Remote host closed the connection]
duckpuppy has joined #ruby
<ysz> Mon_Ouie, that makes sense to me.
<dorei> havenwood: that's magic, thanx :)
dopie has quit [Client Quit]
<xybre> ysz: There's a couple of C gems that are required by Rails IIRC, the #rubyonrails channel might know more.
al2o3-cr has quit [Quit: WeeChat 1.3]
<Mon_Ouie> slice_when { |x, y| x == 41 || y == 41 } is another solution, not sure it's better
dopie has joined #ruby
dopie has quit [Client Quit]
tectonic has joined #ruby
snockerton has quit [Quit: Leaving.]
dopie has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
radgeRayden has quit [Ping timeout: 265 seconds]
<dopie> clear
<shevy> dopie rescue!
crdpink has joined #ruby
grn has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
grn has joined #ruby
rvchangue has quit [Quit: dead]
dopie has quit [Client Quit]
DoubleMalt has quit [Remote host closed the connection]
qhartman has quit [Quit: Ex-Chat]
dopie has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
dopie has quit [Client Quit]
bkxd has joined #ruby
dlitvak has joined #ruby
Harry has quit [Quit: leaving]
certainty has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
grn has quit []
eytanfb has quit [Remote host closed the connection]
rvchangue has joined #ruby
ta has quit [Remote host closed the connection]
nfk|laptop has quit [Quit: yawn]