apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Guest74078 has quit [Ping timeout: 245 seconds]
peregrine81 has joined #ruby
rupee has quit [Quit: Leaving]
quoin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<banisterfiend> dominikh is there a Go REPL ?
<dominikh> banisterfiend: some feeble attempts. REPLs for compiled languages rarely work well (Haskell being an exception, I guess)
jtgiri_ has quit [Quit: jtgiri_]
headius has quit [Ping timeout: 246 seconds]
<dominikh> banisterfiend: our compile times are so low, we just write code in files and compile them ;)
jefflyne has joined #ruby
simplyaubs has joined #ruby
<banisterfiend> dominikh and there's plugins for emacs (&c) that make it appear like a repl?
stonevil has joined #ruby
covi has quit [Remote host closed the connection]
TIJ has quit [Quit: Konversation terminated!]
<dominikh> banisterfiend: there's the usual M-x compile in emacs etc. really, there's no proper REPL. there are some that iteratively compile your code, but they bite you as soon as you messed up in a previous line, because they're dumb editors, not REPLs.
<banisterfiend> dominikh Go is ABI compatible with C right?
RichardBaker has joined #ruby
<dominikh> banisterfiend: define that
jtgiri_ has joined #ruby
<banisterfiend> dominikh Go functions are exported symbols that you can trivially call into from C code (same as you can call C++ code from C with a bit of messing around)
<dominikh> but generally, no. well, probably if you use gccgo. gc has a cgo wrapper to interface with C; dynamically linking Go into a C program has seen some work recently but isn't done yet.
volty has quit [Quit: Konversation terminated!]
<dominikh> Go has a runtime, which makes it not trivial to begin with.
kilophoton has quit [Ping timeout: 256 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
nwertman_ has quit [Ping timeout: 260 seconds]
Ox6abe has quit [Read error: Connection reset by peer]
mansi has joined #ruby
bricker is now known as bricker`work
Es0teric has quit [Quit: Computer has gone to sleep.]
hashpuppy has joined #ruby
hashpuppy has quit [Client Quit]
tylersmith has joined #ruby
Ox6abe has joined #ruby
twoism has quit [Remote host closed the connection]
Lewix has joined #ruby
twoism has joined #ruby
ehc has joined #ruby
stkowski has joined #ruby
ehc has quit [Client Quit]
ksh has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 268 seconds]
randomdrake has joined #ruby
twoism has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
jibi has quit [Quit: .]
ksh has joined #ruby
DrShoggoth has joined #ruby
Spami has joined #ruby
headius has joined #ruby
mmitchell has joined #ruby
hackerpreneur has quit [Read error: Connection reset by peer]
brain_shim has quit [Ping timeout: 264 seconds]
randomdrake has quit [Ping timeout: 260 seconds]
nwertman_ has joined #ruby
hackerpreneur has joined #ruby
julweber_ has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
benlieb has quit [Quit: benlieb]
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
julweber has quit [Ping timeout: 245 seconds]
alvaro_o has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
n_blownapart has quit [Remote host closed the connection]
n_blownapart has joined #ruby
hackerpreneur has joined #ruby
n_blownapart has quit [Remote host closed the connection]
nwertman_ has quit [Ping timeout: 245 seconds]
jtgiri_ has quit [Quit: jtgiri_]
Pandee has joined #ruby
hackerpreneur has quit [Read error: Connection reset by peer]
peregrine81 has quit []
iliketur_ has quit [Quit: zzzzz…..]
mercwithamouth has quit [Ping timeout: 260 seconds]
hackerpreneur has joined #ruby
amacgregor_ has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
amacgregor has quit [Ping timeout: 240 seconds]
RichardBaker has quit [Quit: RichardBaker]
simplyaubs has quit [Quit: simplyaubs]
brain_shim has joined #ruby
zdrummond has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
simplyaubs has joined #ruby
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
mercwithamouth has joined #ruby
lukec has quit [Quit: lukec]
chairabanta is now known as chairabanta|away
<zdrummond> Hello. Had a quick question. Any suggestions on how to use ActiveSupport::Concern (or somehting like it) to intercept all calls to a non controller class? I want to record all inputs and methods called on a class. Thanks for any help
mark_locklear has joined #ruby
mmitchell has quit [Remote host closed the connection]
zdrummond has quit [Remote host closed the connection]
cpruitt has joined #ruby
zdrummond has joined #ruby
centr0 has quit [Quit: centr0]
chairabanta|away has quit [Quit: Leaving...]
<zdrummond> Sorry for the repeat, client crashed… Try 2: Hello. Had a quick question. Any suggestions on how to use ActiveSupport::Concern (or something like it) to intercept all calls to a non controller class? I want to record all inputs and methods called on a class. Thanks for any help
mark_locklear has quit [Ping timeout: 260 seconds]
<Collin> Does anyone know if there are any pitfalls of using threads in a native extension?
fenicks has joined #ruby
GeissT has joined #ruby
mikepack has quit [Remote host closed the connection]
Ox6abe has quit [Remote host closed the connection]
mmitchell has joined #ruby
randomau_ has quit [Ping timeout: 264 seconds]
dekz__ is now known as dekz
Collin has quit [Ping timeout: 268 seconds]
Collin has joined #ruby
cong has quit [Quit: i'm leaving y'all. IRC client: http://placekitten.com]
colonolGron has joined #ruby
dankest has quit [Quit: Peace]
Lewix has quit [Changing host]
Lewix has joined #ruby
alvaro_o has joined #ruby
ixti has joined #ruby
kofno has joined #ruby
mrsolo has quit [Quit: Leaving]
ixti has quit [Client Quit]
ixti has joined #ruby
randomdrake has joined #ruby
ixti has quit [Client Quit]
Collin has quit [Ping timeout: 240 seconds]
stkowski has quit [Quit: stkowski]
colonolGron has quit [Quit: Lost terminal]
Davey has joined #ruby
reset has quit [Quit: Leaving...]
Ripp__ has quit [Quit: Ripp__]
randomdrake has quit [Quit: randomdrake]
cpruitt has quit [Ping timeout: 268 seconds]
platzhirsch has quit [Ping timeout: 245 seconds]
T__T has quit [Remote host closed the connection]
rodacato has joined #ruby
headius has quit [Quit: headius]
rodacato has quit [Remote host closed the connection]
ixti has joined #ruby
zdrummond has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
nfk has quit [Quit: yawn]
dhruvasagar has quit [Ping timeout: 240 seconds]
aces1up has quit []
randomdrake has joined #ruby
rodacato has joined #ruby
jlast has quit [Remote host closed the connection]
aryaching has joined #ruby
Ox6abe has joined #ruby
Davey has quit [Read error: Connection reset by peer]
paradisaeidae has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Klotho1 has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
cooldman224 has joined #ruby
nari has joined #ruby
Targen has quit [Ping timeout: 276 seconds]
randomdrake has quit [Quit: randomdrake]
randomdrake has joined #ruby
randomdrake has quit [Client Quit]
rodacato has quit [Remote host closed the connection]
optimusprimem has quit [Ping timeout: 245 seconds]
samsden has joined #ruby
sparq_ has joined #ruby
samsden has quit [Client Quit]
Ripp__ has joined #ruby
targz has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
targz has left #ruby [#ruby]
Astralum has quit [Ping timeout: 260 seconds]
Voodoofish430 has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
MiguelGD has quit [Ping timeout: 245 seconds]
okinomo has quit [Ping timeout: 264 seconds]
r0bgleeson has quit [Ping timeout: 276 seconds]
Davey has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
tkuchiki has joined #ruby
jamesaanderson has joined #ruby
paradisaeidae has quit [Ping timeout: 240 seconds]
simplyaubs has quit [Quit: simplyaubs]
rodacato has joined #ruby
paradisaeidae has joined #ruby
NealJ has joined #ruby
huoxito has quit [Ping timeout: 260 seconds]
airtonix has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
parzo has joined #ruby
jonathanwallace has joined #ruby
endash has quit [Quit: endash]
VTLob has quit [Quit: VTLob]
zarul has quit [Remote host closed the connection]
zarul has joined #ruby
rodacato has quit [Remote host closed the connection]
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
aces1up has joined #ruby
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
<aces1up> hey all i have a tricky calculation i need to make
eka has quit [Quit: Computer has gone to sleep.]
<aces1up> can someone help me with this?
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
jonathanwallace has quit [Ping timeout: 245 seconds]
rodacato has joined #ruby
huoxito has joined #ruby
amacgregor_ has quit [Ping timeout: 268 seconds]
ewnd9 has joined #ruby
kayloos has joined #ruby
Columcille has quit [Remote host closed the connection]
lukec has joined #ruby
ixti has quit [Quit: WeeChat 0.4.1]
quoin has quit [Remote host closed the connection]
alvaro_o has quit [Read error: Connection reset by peer]
nhhagen_ has joined #ruby
zarul[afk] has joined #ruby
zarul has quit [Disconnected by services]
ecksit has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ecksit> hey, has anyone used thor for a CLI app?
jordanbsanders has joined #ruby
zarul[afk] has quit [Read error: Connection reset by peer]
<ecksit> i am trying to rake styled commands (rake db:migrate, etc) but i cannot see how i can achieve it as it requires the thor command to be the same as the ruby method definition.
Columcille has joined #ruby
jamesaanderson has joined #ruby
IanV_ has quit [Ping timeout: 264 seconds]
zarul has joined #ruby
seynb has quit [Ping timeout: 245 seconds]
Xaitec has joined #ruby
idoru has quit [Quit: Working as programmed]
nhhagen_ has quit [Ping timeout: 264 seconds]
idoru has joined #ruby
idoru has quit [Remote host closed the connection]
idoru has joined #ruby
mansi has quit [Remote host closed the connection]
BillCriswell has joined #ruby
mansi has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
zarul has quit [Ping timeout: 268 seconds]
headius has joined #ruby
Lewix has quit [Remote host closed the connection]
airtonix has joined #ruby
milardovich has quit [Read error: Operation timed out]
hakunin has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 268 seconds]
hakunin has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
seynb has joined #ruby
sailias has joined #ruby
mary5030 has joined #ruby
JStoker has quit [Ping timeout: 246 seconds]
samsden has joined #ruby
ehaliewicz has joined #ruby
samsden has quit [Client Quit]
hasrb has joined #ruby
simplyaubs has joined #ruby
quoin has joined #ruby
Lewix has joined #ruby
narcan has joined #ruby
Ox6abe has quit [Ping timeout: 245 seconds]
idoru has quit [Quit: Working as programmed]
idoru has joined #ruby
rickruby has quit [Remote host closed the connection]
samsden has joined #ruby
sparq_ has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
acoyfellow has joined #ruby
radic__ has joined #ruby
jamesaanderson has joined #ruby
stonevil has quit [Remote host closed the connection]
Klotho1 has joined #ruby
idoru has quit [Quit: Working as programmed]
idoru has joined #ruby
jonathanwallace has joined #ruby
samsden has quit [Ping timeout: 240 seconds]
radic_ has quit [Ping timeout: 276 seconds]
lfox has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
tabolario has joined #ruby
diegoviola has joined #ruby
aryaching has joined #ruby
amacgregor has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
Es0teric has joined #ruby
eka has joined #ruby
mlpinit has joined #ruby
browndawg has joined #ruby
JStoker has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
io_syl has quit []
kofno has joined #ruby
mmitchell has quit [Remote host closed the connection]
<xybre> ecksit: Does it? I'm using Clamp for the same purpose and I thought Thor let you define the methods differently also.
<ecksit> would you be able to link me to an example of your use?
<xybre> Sure, I'm using Clamp for weird commands like "?" and "$"
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
r0bgleeson has joined #ruby
Newbcake has joined #ruby
DanBoy has quit [Remote host closed the connection]
<xybre> ecksit: https://github.com/acook/telepath/blob/master/lib/telepath/command.rb#L124 Sorry I sent you to the wrong line!
NealJ has quit [Ping timeout: 268 seconds]
<ecksit> i was wondering about that :
<ecksit> :p
* xybre == dork
DanBoy has joined #ruby
jordanbsanders has quit [Quit: Textual IRC Client: www.textualapp.com]
Rym has quit [Quit: Rym]
iamjarvo has joined #ruby
goodcodeguy has joined #ruby
simplyaubs has joined #ruby
oddalot has joined #ruby
oddalot has quit [Client Quit]
<ecksit> xybre, i am using thor though
<ecksit> not clamp
oddalot has joined #ruby
rodacato has quit [Remote host closed the connection]
Davey has quit [Ping timeout: 264 seconds]
<ecksit> hmm, maybe it is still called "sub commands" though
iamjarvo has quit [Quit: Leaving.]
goodcodeguy has quit [Quit: Lost terminal]
oddalot has quit [Client Quit]
eka has quit [Quit: Computer has gone to sleep.]
oddalot has joined #ruby
lfox has quit [Quit: ZZZzzz…]
blkcrwn has joined #ruby
Davey has joined #ruby
anderson has quit [Ping timeout: 276 seconds]
snovak_ has joined #ruby
rezzack has quit [Ping timeout: 268 seconds]
mansi has joined #ruby
DanKnox is now known as DanKnox_away
Ox6abe has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
Davey has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
fenicks has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 264 seconds]
simplyaubs has joined #ruby
simplyaubs has quit [Client Quit]
stonevil has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 264 seconds]
snovak_ has quit [Remote host closed the connection]
<xybre> Well, I did say that.
hakunin has quit [Remote host closed the connection]
<xybre> Thor's offline documentation isn't great, but there's the annotated source: https://github.com/erikhuda/thor/blob/master/lib/thor.rb#L226
snovak has joined #ruby
robbyoconnor has quit [Excess Flood]
stonevil has quit [Ping timeout: 264 seconds]
okinomo has joined #ruby
robbyoconnor has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
kofno has quit [Ping timeout: 268 seconds]
headius has quit [Quit: headius]
kayloos has quit [Remote host closed the connection]
axeman- has joined #ruby
razi has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
kobain has quit []
milardovich has joined #ruby
nazty has quit [Read error: Connection reset by peer]
cooldman224 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
<jrobeson> xybre, that's a cool thing that telepath
<pontiki> ecksit: you probably want namespaces: https://github.com/erikhuda/thor/wiki/Namespaces
<xybre> jrobeson: thanks, if you end up using it, please drop any bugs/ideas into the github issues :)
<ecksit> i think i understand why i can't do "mycli app:method"
<ecksit> that says it can only be invoked using the thor prefix, not an executable.
jamesaanderson has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
braincra- has joined #ruby
io_syl has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
braincrash has quit [Ping timeout: 264 seconds]
Pandee has quit [Ping timeout: 245 seconds]
<pontiki> silly question, but can you use rake?
<ecksit> nope.
<pontiki> has to be thor and none other?
<jrobeson> good day pontiki
<pontiki> bonjour, mon ami
<ecksit> i am writing a CLI app and thor has the smallest footprint.
fgo has joined #ruby
fgo has quit [Remote host closed the connection]
<pontiki> how did you measure that footprint?
<pontiki> because i would say a ruby script with no libraries would have a smaller one
<ecksit> definitely agree, however i then would need to write helpers around prompting users, accepting input, etc.
Lewix has quit [Remote host closed the connection]
sayan has joined #ruby
<pontiki> what if you just used OptionParser and Highline?
quoin has quit [Remote host closed the connection]
quoin has joined #ruby
rdxc has quit [Quit: Textual IRC Client: www.textualapp.com]
kilophoton has joined #ruby
dodosan has quit [Remote host closed the connection]
<xybre> option parser is in the standard lib
Xaitec has quit [Remote host closed the connection]
mwmnj has joined #ruby
<pontiki> yup
<jrobeson> i wonder if they added rails 4 to apidock yet..
<xybre> Doesn't look like Ruby 2 is even on APIdock yet :/
<jrobeson> ouch
<Senjai> pontiki: o.
<Senjai> pontiki: o/*
<pontiki> ***\o
polaco is now known as polaco_zZz
razi has quit [Ping timeout: 268 seconds]
<jrobeson> urp
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kilophoton has quit [Ping timeout: 256 seconds]
ecksit has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 264 seconds]
snovak has quit [Remote host closed the connection]
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
antulik-afk is now known as antulik
Nisstyre has quit [Ping timeout: 260 seconds]
DanKnox_away is now known as DanKnox
JZTech101 has quit [Ping timeout: 268 seconds]
blkcrwn has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
JZTech101 has joined #ruby
mlpinit has quit [Remote host closed the connection]
poga has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
Ox6abe has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Ping timeout: 264 seconds]
axeman- has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
axeman- has joined #ruby
mlpinit has joined #ruby
duggiefresh has joined #ruby
nari has joined #ruby
duggiefresh has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
ewnd9 has joined #ruby
jefflyne has quit [Ping timeout: 245 seconds]
jrobeson has joined #ruby
jrobeson has quit [Changing host]
Lewix has joined #ruby
idoru has quit [Quit: Working as programmed]
idoru has joined #ruby
kilophoton has joined #ruby
duggiefresh has joined #ruby
ewnd9 has quit [Remote host closed the connection]
okinomo has joined #ruby
ewnd9 has joined #ruby
ferdev has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
jonahR has quit [Quit: jonahR]
dodosan has joined #ruby
mlpinit has quit [Remote host closed the connection]
yosafbridge has quit [Ping timeout: 240 seconds]
BillCriswell has quit [Remote host closed the connection]
headius has joined #ruby
yosafbridge has joined #ruby
ferdev has quit [Quit: ferdev]
raddazong has joined #ruby
cultavixx has joined #ruby
Mattias___ has joined #ruby
robbyoconnor has joined #ruby
sethette1 has joined #ruby
OZzl_ has joined #ruby
jnix_ has joined #ruby
Ninjex has joined #ruby
Dreamer3__ has joined #ruby
seich| has joined #ruby
<Ninjex> wow, this is amazing :D
Mattias has quit [Ping timeout: 240 seconds]
blooberr has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 240 seconds]
cultavix has quit [Ping timeout: 240 seconds]
Domon_ has quit [Ping timeout: 240 seconds]
sethetter has quit [Ping timeout: 240 seconds]
OZzl has quit [Ping timeout: 240 seconds]
madhatter has quit [Ping timeout: 240 seconds]
reactormonk has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
jnix has quit [Quit: No Ping reply in 180 seconds.]
cody-- has quit [Ping timeout: 240 seconds]
hellome has quit [Ping timeout: 240 seconds]
brisbin has quit [Ping timeout: 240 seconds]
Boohbah has quit [Ping timeout: 240 seconds]
Nahra has quit [Ping timeout: 240 seconds]
postmodern has quit [Ping timeout: 240 seconds]
BraddPitt has quit [Ping timeout: 240 seconds]
Mattias___ is now known as Mattias
Boohbah_ has joined #ruby
Nahra has joined #ruby
vaicine has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
robwilliamsuk has quit [Quit: http://www.youtube.com/watch?v=z99iVXJ8OtA]
cody-- has joined #ruby
robwilliamsuk has joined #ruby
<pontiki> isn't it!?!
vaicine has joined #ruby
dodosan has quit [Remote host closed the connection]
<Ninjex> Yeah, I just made an IRC Ruby bot, but this is the second IRC Server I have ever connected to. A lot of people in here
kenichi has joined #ruby
<Ninjex> I'm just looking to enhance my programming skills xD
<pontiki> just don't make the bot annoying :)
<Ninjex> It only responds to commands usually only sends 1-2 lines of text max if it's over it goes to pm.
<Ninjex> Also has a spam filter and a max length filter
<Ninjex> So, freenode doesn't run off of unreal IRCD I would assume. I need to check all the *lines for this server
dhruvasagar has joined #ruby
<Ninjex> Would you happen to know where I could find that list?
Soda has quit [Remote host closed the connection]
JumpMast3r has quit [Quit: JumpMast3r]
hamakn has joined #ruby
antulik is now known as antulik-afk
<pontiki> newp, notaclue
<shevy> Ninjex most people here are very clueless :P
<Ninjex> Yeah, I asked in #help just now
<Ninjex> Got a few answers, thanks you tow
<Ninjex> s/tow/two/
mrsolo has joined #ruby
Lewix has quit [Remote host closed the connection]
noop has joined #ruby
hasrb has quit [Remote host closed the connection]
samsden has joined #ruby
snovak has joined #ruby
wallerdev has quit [Quit: wallerdev]
aces1up has quit []
samsden has quit [Ping timeout: 240 seconds]
Ninjex has left #ruby [#ruby]
wicketn00b has quit [Quit: leaving]
Senjai has quit [Remote host closed the connection]
wicketn00b has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
duggiefresh has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 260 seconds]
Es0teric has joined #ruby
mansi has joined #ruby
Ox6abe has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
Es0teric has quit [Client Quit]
macmartine has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
lucazi has joined #ruby
antulik-afk is now known as antulik
kofno has joined #ruby
ehaliewicz has quit [Ping timeout: 268 seconds]
kofno has quit [Ping timeout: 264 seconds]
lukec has quit [Quit: lukec]
wesside has joined #ruby
Dreamer3__ is now known as Dreamer3
acoyfellow has quit [Remote host closed the connection]
ssvo has joined #ruby
io_syl has quit []
amacgregor_ has joined #ruby
<shevy> when I have a string ... x = 'foobar' ... and an array of gsub operations to perform on it like so ... array = %w( o r )
<shevy> what is the best way to apply the .gsubs from the array on my string x ?
cody-- has quit [Quit: Computer has gone to sleep.]
amacgregor has quit [Ping timeout: 245 seconds]
i8igmac has joined #ruby
<i8igmac> identify 1qwert
okinomo has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
<ryanf> shevy: what do you mean by "an array of gsub operations to perform on it"?
<shevy> ryanf the array should be applied on the string i.e
<shevy> 'foobar'.gsub(/o/,'').gsub(/r/,'')
<pontiki> i would recommend an array of regexps
amacgregor_ has quit [Ping timeout: 268 seconds]
<pontiki> otherwise, something like this, given your example
<ryanf> array.inject(x) { |s, c| s.gsub(c, '') }
<pontiki> dang
<shevy> pontiki the example was just a simplifaction :) the real matches are longer and more complicated than that
<shevy> thanks ryanf
<pontiki> i figured, still seems an array of regexps would be better than an array of strings
mercwithamouth has quit [Ping timeout: 245 seconds]
<ryanf> if you only want to make a literal substitution, there's no advantage to using regexps instead of strings
<pontiki> right
candlej4ck has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
candlej4ck is now known as robotblake
apeiros has quit [Remote host closed the connection]
lucazi has quit [Quit: Leaving.]
apeiros has joined #ruby
robotblake has quit [Client Quit]
candlej4ck has joined #ruby
candlej4ck is now known as robotblake
mwmnj has quit [Quit: Textual IRC Client: www.textualapp.com]
robotblake has quit [Changing host]
robotblake has joined #ruby
<pontiki> if they're all removals, though, they could probably be put in one regexp
<pontiki> >> "foobar".gsub(%r{#{%w( o r ).join("|")}},'')
<eval-in> pontiki => "fba" (https://eval.in/47273)
echevemaster has joined #ruby
intuxicated has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
<i8igmac> im trying to figure out a regular expression
<i8igmac> does any one have tricks?
<pontiki> there are some cool sites for that
<i8igmac> the data is from a GET request
<pontiki> rubular
<i8igmac> there is a pattern i want to capture in array
<pontiki> what does it look like, and what have you tried?
<i8igmac> im trying to think of it like /point A threw point/[0]
narcan has joined #ruby
<pontiki> also, https://github.com/krainboltgreene/hexpress looks rather neat
mlpinit has joined #ruby
<pontiki> i can't help if you don't provide concrete examples
<i8igmac> .scan(/tr.class=\".*.\">
<i8igmac> that is start point
<i8igmac> but i fail after this
<i8igmac> because of new lines
tabolario has joined #ruby
<apeiros> i8igmac: don't use regex to parse html
<apeiros> use an html parser to parse html. e.g. nokogiri.
macmartine has quit [Quit: Computer has gone to sleep.]
<i8igmac> ill check it out
yfeldblum has quit [Ping timeout: 264 seconds]
mlpinit has quit [Ping timeout: 260 seconds]
<i8igmac> how would you get pass \n with regex ?
<i8igmac> i just did gsub("\n","")
<i8igmac> i now have the data i need to pass threw nokogiri
<apeiros> o0
<apeiros> nokogiri doesn't care about \n
<apeiros> the 'm' flag makes . match newlines too in regexen.
<i8igmac> nah, my regex had to get passed some lines to the end point
<i8igmac> nokogiri requires Ruby version >= 1.9.2.
dodosan has joined #ruby
<i8igmac> i forget how to change working version of ruby
<apeiros> depends on how you installed it
aagdbl has joined #ruby
Al__ has joined #ruby
<i8igmac> i have changed ruby version before from command line
<apeiros> *sob*
<apeiros> did you use rvm?
<i8igmac> apt-get
<pontiki> there, there
<pontiki> it'll be okay...
okinomo has joined #ruby
headius has quit [Quit: headius]
<i8igmac> i didnt use rvm
dodosan has quit [Ping timeout: 245 seconds]
axeman- has quit [Remote host closed the connection]
<i8igmac> im installing ruby-rvm
<apeiros> with apt-get, you have to install a newer version and it iirc works with silly postfixes like ruby19
snovak has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
Nogbit has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
nhhagen_ has joined #ruby
mansi_ has joined #ruby
bluOxigen has joined #ruby
Ox6abe has joined #ruby
Nogbit has left #ruby [#ruby]
fixl has joined #ruby
mansi_ has quit [Ping timeout: 268 seconds]
randomdrake has joined #ruby
<xybre> .. does ubuntu have its own rvm?
jefflyne has joined #ruby
visof has quit [Ping timeout: 276 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
<pontiki> it packages a version of rvm
<pontiki> not sure which version, tho
<apeiros> I wouldn't wonder if they mutilated it too
<pontiki> considering what they do with ruby, me neither
wmoxam has quit [Ping timeout: 260 seconds]
randomdrake has quit [Ping timeout: 264 seconds]
x0nic has joined #ruby
<xybre> D:
<pontiki> falling off the net.. *ploof*
<xybre> One of my major issues with Ubuntu and Debian as a whole is how they mangle packages.
dross_ is now known as dross
wmoxam has joined #ruby
moshee has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
antulik is now known as antulik-afk
ayaz has joined #ruby
huoxito has quit [Quit: Leaving]
ssvo has quit [Ping timeout: 268 seconds]
seynb has quit [Ping timeout: 260 seconds]
moshee has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
mrsolo has joined #ruby
headius has joined #ruby
blooberr has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
reactormonk has joined #ruby
Domon_ has joined #ruby
Lewix has joined #ruby
mary5030 has quit [Remote host closed the connection]
brisbin has joined #ruby
antulik-afk is now known as antulik
sevenseacat has joined #ruby
kofno has joined #ruby
BraddPitt has joined #ruby
mmitchell has joined #ruby
crazysim has quit [Ping timeout: 276 seconds]
trinode has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
Ox6abe has quit [Ping timeout: 260 seconds]
ssvo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
kofno has quit [Ping timeout: 245 seconds]
mmitchell has quit [Ping timeout: 240 seconds]
seynb has joined #ruby
wchun has quit [Quit: Leaving]
tylersmith has quit [Remote host closed the connection]
antulik is now known as antulik-afk
trinode_away has joined #ruby
trinode_away is now known as trinode
tylersmith has joined #ruby
kilophoton has quit [Ping timeout: 240 seconds]
chairabanta has joined #ruby
mrsolo has joined #ruby
Xeago has joined #ruby
crazysim has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
mrnugget has joined #ruby
mercwithamouth has joined #ruby
persand has joined #ruby
blackmesa has joined #ruby
poga has quit [Remote host closed the connection]
corpuscle has joined #ruby
snovak has joined #ruby
Roa has quit [Ping timeout: 246 seconds]
dodosan has joined #ruby
Roa has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
sayan has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
Al__ has quit [Read error: Connection reset by peer]
Kabaka has joined #ruby
Al__ has joined #ruby
parzo_ has joined #ruby
rickruby has joined #ruby
parzo has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 264 seconds]
Nss has joined #ruby
mmozuras has joined #ruby
nerdy has joined #ruby
lkba has quit [Read error: Operation timed out]
hivoltage_ has joined #ruby
<hivoltage_> hello
mansi has joined #ruby
dhruvasagar has joined #ruby
lucazi has joined #ruby
wchun has joined #ruby
okinomo has quit [Quit: Lost terminal]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
dash_ has joined #ruby
okinomo has joined #ruby
vramana has joined #ruby
lucazi1 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
companion is now known as Companion
lucazi has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 245 seconds]
[[thufir]] has joined #ruby
Al__ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
Al__ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
jefflyne has quit [Ping timeout: 264 seconds]
Tricon has joined #ruby
Al__ has quit [Client Quit]
Senjai has joined #ruby
Senjai has joined #ruby
dash_ has quit [Ping timeout: 245 seconds]
hivoltage_ has left #ruby [#ruby]
lkba has joined #ruby
kayloos has joined #ruby
lucazi1 has quit [Quit: Leaving.]
yxhuvud has joined #ruby
okinomo has quit [Quit: Lost terminal]
okinomo has joined #ruby
yxhuvud2 has quit [Ping timeout: 260 seconds]
vramana has left #ruby [#ruby]
nerdy has quit [Quit: Computer has gone to sleep.]
Xuerian has quit [Ping timeout: 276 seconds]
Tricon has quit [Quit: Leaving...]
dash_ has joined #ruby
[[thufir]] has quit [Remote host closed the connection]
Ox6abe has joined #ruby
persand has quit [Quit: persand]
adambeynon has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
mityaz has joined #ruby
claymore has joined #ruby
poga has joined #ruby
io_syl has joined #ruby
browndawg has quit [Quit: Leaving.]
poga has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
chairabanta has quit [Quit: Leaving...]
shadoi has quit [Quit: Leaving.]
relix has joined #ruby
mipo has joined #ruby
mipo has left #ruby [#ruby]
mrnugget has quit [Quit: mrnugget]
tatsuya_o has joined #ruby
Xuerian has joined #ruby
atmosx has joined #ruby
Lewix has quit [Remote host closed the connection]
mmozuras has quit [Ping timeout: 264 seconds]
jibi has joined #ruby
anderson has joined #ruby
snovak has joined #ruby
mrnugget has joined #ruby
narcan has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
chairabanta has joined #ruby
antulik-afk is now known as antulik
apeiros has joined #ruby
antulik is now known as antulik-afk
timonv has joined #ruby
Ox6abe has quit [Ping timeout: 260 seconds]
DonVitoCorleone has left #ruby ["Kraljeva Garda in my heart."]
robustus has quit [Quit: ZNC - http://znc.in]
robustus has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
dangerousdave has joined #ruby
vince_prignano has joined #ruby
kofno has joined #ruby
io_syl has quit []
V8Energy has quit [Ping timeout: 276 seconds]
Lewix has joined #ruby
timonv has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 256 seconds]
mityaz has quit [Quit: See ya!]
timonv has joined #ruby
persand has joined #ruby
chairabanta has quit [Quit: Leaving...]
persand has quit [Client Quit]
jibi has quit [Quit: .]
jibi has joined #ruby
Notte has joined #ruby
atno has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
dodosan has quit [Remote host closed the connection]
rdg has joined #ruby
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
platzhirsch has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
elaptics`away is now known as elaptics
linux_noob_666 has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 268 seconds]
rdg has quit [Quit: [quit]]
mercwithamouth has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
casheew has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
s0ny123 has joined #ruby
pskosinski has joined #ruby
_axx has left #ruby [#ruby]
okinomo has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
tatsuya_o has joined #ruby
cads has quit [Ping timeout: 264 seconds]
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
s0ny123 has quit [Client Quit]
bubbajones has quit [Quit: leaving]
dodosan has joined #ruby
snovak has joined #ruby
mmitchell has joined #ruby
headius has quit [Quit: headius]
aryaching has joined #ruby
bubbajones has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
mrnugget has quit [Quit: mrnugget]
mmitchell has quit [Ping timeout: 264 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
mansi has joined #ruby
persand has joined #ruby
okinomo has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 260 seconds]
noop has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
jefflyne has joined #ruby
cultavixx has quit [Quit: leaving]
greengriminal has joined #ruby
DanKnox is now known as DanKnox_away
greengriminal has quit [Quit: Leaving]
ferdev has joined #ruby
IanV_ has joined #ruby
kayloos has quit [Remote host closed the connection]
persand has quit [Quit: persand]
MrZYX|off is now known as MrZYX
headius has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
headius has quit [Client Quit]
hellyeah has joined #ruby
persand has joined #ruby
<hellyeah> hey
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
persand has quit [Client Quit]
dodosan has quit [Remote host closed the connection]
persand has joined #ruby
julweber_ has quit [Remote host closed the connection]
jefflyne1 has joined #ruby
jefflyne has quit [Ping timeout: 268 seconds]
Ripp__ has quit [Quit: Ripp__]
pskosinski has quit [Quit: Til rivido Idisti!]
persand has quit [Quit: persand]
jefflyne2 has joined #ruby
jefflyne1 has quit [Ping timeout: 245 seconds]
Tuxist has joined #ruby
aryaching has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
visof has joined #ruby
persand has joined #ruby
persand has quit [Client Quit]
xk_id has joined #ruby
Lewix has quit [Remote host closed the connection]
vikhyat has joined #ruby
nnww has joined #ruby
relix has joined #ruby
jefflyne2 has quit [Ping timeout: 260 seconds]
chairabanta has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
<chairabanta> Hi, what is the recommended ruby versions manager I am having problen with rbenv?
<postmodern> chairabanta, rvm
timonv has joined #ruby
vince_prignano has quit [Remote host closed the connection]
<chairabanta> postmodern: I have switch from rvm to rbenv perhaps it is a good idea to come back
<postmodern> chairabanta, what did you switch for?
trouter has joined #ruby
parzo_ has quit [Ping timeout: 245 seconds]
<postmodern> chairabanta, if it was for simplicity, there's also chruby
postmodern has quit [Quit: Leaving]
<chairabanta> Because I would somethin more lighter I only need ruby, gem and bundle and then bundle does all
apeiros has quit [Remote host closed the connection]
snovak has joined #ruby
<chairabanta> I was looking for chruby but I didn't remember its name thx
Astralum has joined #ruby
aryaching has joined #ruby
aryaching_ has joined #ruby
snovak has quit [Ping timeout: 268 seconds]
aryaching has quit [Client Quit]
Klotho1 has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
axsuul has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
eldariof has joined #ruby
rdxc has joined #ruby
parzo has joined #ruby
robotblake has quit [Quit: Leaving...]
bricker`LA has quit [Ping timeout: 246 seconds]
Scorchin has quit [Quit: Connection closed for inactivity]
atno has joined #ruby
MiguelGD has joined #ruby
altamic has joined #ruby
altamic has left #ruby [#ruby]
nemesit|znc has quit [Ping timeout: 260 seconds]
okinomo has quit [Ping timeout: 264 seconds]
marius has joined #ruby
vikhyat_ has joined #ruby
eldariof has quit [Ping timeout: 256 seconds]
vikhyat has quit [Read error: No route to host]
vikhyat has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
vikhyat_ has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
fenicks has joined #ruby
DrCode has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
dodosan has joined #ruby
Senjai has quit [Read error: Operation timed out]
DrCode has joined #ruby
timonv has quit [Remote host closed the connection]
julweber has joined #ruby
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
yxhuvud has joined #ruby
tatsuya_o has joined #ruby
carraroj has joined #ruby
dodosan has quit [Ping timeout: 268 seconds]
BizarreCake has joined #ruby
julweber has quit [Ping timeout: 264 seconds]
ferdev has quit [Quit: ferdev]
rastahseep has joined #ruby
decoponio has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
tatsuya_o has quit [Ping timeout: 260 seconds]
Aquilo has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
aryaching has quit [Client Quit]
aryaching has joined #ruby
aryaching has quit [Remote host closed the connection]
Xeago has joined #ruby
spider-mario has joined #ruby
carraroj has quit [Ping timeout: 268 seconds]
aryaching_ is now known as aryaching
goshakkk has joined #ruby
vince_prignano has joined #ruby
aryatab has joined #ruby
intuxicated has quit [Remote host closed the connection]
mansi has joined #ruby
aryatab has quit [Ping timeout: 260 seconds]
freeayu has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
<atmosx> hmmm I had seriously understated the importance of TDD. It was made for lazy guys like me apparently hmm
aagdbl has quit [Quit: Leaving.]
<Morrolan> It was made for programmers, rather than designers. :P
visof has quit [Changing host]
visof has joined #ruby
vikhyat has quit [Remote host closed the connection]
vince_prignano has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
Bry8Star{T2_ has quit [Remote host closed the connection]
DanBoy has quit [Remote host closed the connection]
Kabaka has quit [Read error: Connection reset by peer]
Xaitec______ has joined #ruby
Kabaka has joined #ruby
Bry8Star{T2 has joined #ruby
Senjai has joined #ruby
altamic has joined #ruby
timonv has joined #ruby
VTLob has joined #ruby
rastahseep has quit [Remote host closed the connection]
vince_prignano has quit [Remote host closed the connection]
blackmesa has joined #ruby
aryatab has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
aryatab has quit [Client Quit]
aryatab has joined #ruby
mmitchell has joined #ruby
aryatab has quit [Remote host closed the connection]
razi has joined #ruby
ssvo has joined #ruby
ferdev has joined #ruby
ntus1017 has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
mmitchell has quit [Remote host closed the connection]
visof has quit [Read error: Operation timed out]
Tuxist has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
blackratdog has joined #ruby
altamic has quit [Quit: altamic]
Xaitec______ has quit [Remote host closed the connection]
blackratdog has quit [Remote host closed the connection]
altamic has joined #ruby
altamic has left #ruby [#ruby]
azcodex has joined #ruby
rickruby has quit [Remote host closed the connection]
snovak has joined #ruby
azcodex has quit [Ping timeout: 264 seconds]
visof has joined #ruby
vince_prignano has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
ferdev has quit [Quit: ferdev]
mansi has joined #ruby
vince_prignano has quit [Ping timeout: 260 seconds]
lucazi has joined #ruby
vince_prignano has joined #ruby
intuxicated has joined #ruby
kirun has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
okinomo has joined #ruby
azcodex has joined #ruby
ntus1017 has quit [Remote host closed the connection]
Soda has joined #ruby
IanV_ has quit [Ping timeout: 260 seconds]
stonevil has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pygospa has joined #ruby
altamic has joined #ruby
altamic has quit [Client Quit]
chairabanta has quit [Quit: Leaving...]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
TheRealPygo has quit [Ping timeout: 276 seconds]
cody-- has joined #ruby
hackeron has joined #ruby
goshakkk has joined #ruby
lfox has joined #ruby
blackratdog has joined #ruby
Tuxist has joined #ruby
vikhyat has joined #ruby
chairabanta has joined #ruby
jbrechtel has quit [Ping timeout: 246 seconds]
ferdev has joined #ruby
eka has joined #ruby
kinigitz has left #ruby [#ruby]
knigitz has joined #ruby
lfox has quit [Quit: ZZZzzz…]
vince_prignano has quit [Ping timeout: 264 seconds]
jbrechtel has joined #ruby
stonevil has quit [Remote host closed the connection]
mansi has joined #ruby
fantazo has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peregrine81 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
intuxicated has quit [Ping timeout: 260 seconds]
atno__ has joined #ruby
atno has quit [Ping timeout: 264 seconds]
rodacato has joined #ruby
ferdev_ has joined #ruby
ferdev has quit [Ping timeout: 264 seconds]
ferdev_ is now known as ferdev
Akuma has quit [Ping timeout: 245 seconds]
goshakkk has joined #ruby
snovak has joined #ruby
Neomex has joined #ruby
jbrechtel has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
ixti has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
dash_ has quit [Ping timeout: 240 seconds]
ixti has quit [Client Quit]
ixti has joined #ruby
intuxicated has joined #ruby
hamakn has quit [Remote host closed the connection]
ixti has quit [Client Quit]
hamakn has joined #ruby
parzo has quit [Ping timeout: 264 seconds]
rodacato has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 264 seconds]
rodacato has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
rodacato has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
senayar has joined #ruby
mansi has joined #ruby
blackratdog1 has joined #ruby
senayar has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
rodacato has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
dash_ has joined #ruby
kayloos has joined #ruby
fantazo has quit [Read error: Operation timed out]
blackmesa has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
Neomex has quit [Quit: Neomex]
vikhyat_ has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
Senjai has quit [Ping timeout: 260 seconds]
aryaching has quit []
randomdrake has joined #ruby
randomdrake has quit [Client Quit]
NealJ has joined #ruby
freerobby has joined #ruby
akostrikov has joined #ruby
aryaching has joined #ruby
Newbcake has quit [Ping timeout: 245 seconds]
13WAA4JC3 has joined #ruby
akostrikov has quit [Client Quit]
jarkonik has joined #ruby
lukec has joined #ruby
jarkonik has left #ruby [#ruby]
tomzx_mac has joined #ruby
kayloos has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
peregrine81 has quit []
timonv has joined #ruby
greenrose has quit []
mansi has joined #ruby
peregrine81 has joined #ruby
intuxicated has quit [Remote host closed the connection]
intuxicated has joined #ruby
freerobby has quit [Quit: Leaving.]
AlSquire has joined #ruby
Ox6abe has joined #ruby
ksh has quit [Ping timeout: 240 seconds]
okinomo has quit [Ping timeout: 268 seconds]
pen has joined #ruby
procrastinat0r has joined #ruby
vikhyat_ has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
ksh has joined #ruby
browndawg has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
dangerousdave has joined #ruby
greenrose has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sailias has joined #ruby
tatsuya_o has joined #ruby
Ox6abe has quit [Remote host closed the connection]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
wm3|zzz has quit [Ping timeout: 245 seconds]
tatsuya_o has quit [Ping timeout: 240 seconds]
ferdev has quit [Ping timeout: 240 seconds]
ferdev has joined #ruby
Soda has quit [Remote host closed the connection]
apeiros has joined #ruby
osvico has joined #ruby
pskosinski has joined #ruby
Ox6abe has joined #ruby
nomenkun has joined #ruby
io_syl has joined #ruby
cody-- has joined #ruby
bigkevmcd has joined #ruby
mklappstuhl has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
trouter has quit [Ping timeout: 268 seconds]
verto has joined #ruby
dangerousdave has joined #ruby
peregrine81 has quit []
JumpMast3r has joined #ruby
blackmesa has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
snovak has joined #ruby
yfeldblum has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
verto_ has joined #ruby
eka has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
azcodex has quit [Ping timeout: 260 seconds]
verto has quit [Ping timeout: 260 seconds]
anderson has quit [Ping timeout: 264 seconds]
nomenkun has quit [Remote host closed the connection]
vince_prignano has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 260 seconds]
ferdev has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
kayloos has joined #ruby
anderson has joined #ruby
hamakn has joined #ruby
ferdev has joined #ruby
dangerousdave has quit [Quit: Leaving...]
Kabaka has joined #ruby
browndawg has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
verto_ has quit [Read error: Connection reset by peer]
nerdy has joined #ruby
jbrechtel has joined #ruby
mklappstuhl has joined #ruby
randomdrake has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
blackmesa has quit [Remote host closed the connection]
quoin has quit [Remote host closed the connection]
trouter has joined #ruby
chairabanta has quit [Ping timeout: 240 seconds]
quoin has joined #ruby
intuxicated has quit [Ping timeout: 256 seconds]
chairabanta has joined #ruby
chairabanta has quit [Client Quit]
Rym has joined #ruby
NealJ has quit [Quit: :c]
quoin has quit [Ping timeout: 245 seconds]
procrastinat0r has quit [Quit: Leaving]
sevenseacat has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
jefflyne2 has joined #ruby
blueOxigen has joined #ruby
mlpinit has joined #ruby
Pandee has joined #ruby
blackmesa has joined #ruby
freeayu has quit [Remote host closed the connection]
senayar has joined #ruby
mlpinit has quit [Remote host closed the connection]
nomenkun has joined #ruby
butblack has joined #ruby
vikhyat has quit [Read error: No route to host]
vikhyat_ has joined #ruby
lusory has joined #ruby
endash has joined #ruby
browndawg has quit [Quit: Leaving.]
Xeago has joined #ruby
Aquilo has joined #ruby
pipecloud has quit [Quit: Connection closed for inactivity]
aaronmcadam has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
nomenkun has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
jnix_ is now known as jnix
jnix has quit [Changing host]
jnix has joined #ruby
Aquilo has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
nomenkun has joined #ruby
ixti has joined #ruby
ixti has quit [Client Quit]
zdrummond has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nomenkun_ has joined #ruby
zdrummond has quit [Client Quit]
Rym has quit [Ping timeout: 260 seconds]
derf- has quit [Ping timeout: 261 seconds]
JZTech101 is now known as JZ
JZ is now known as JZTech101
derf- has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
dachi has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
<dachi> hello. I am iterating through files in a directory. files are text files with names like "02-12-2012.txt", "15-10-2013.txt", "30-11-2011.txt", and I need to sort them descending from newest date to oldest. Can anyone suggest a neat way to do it, please?
nomenkun_ has quit [Read error: No route to host]
<Xeago> dachi: show us some code
snovak has joined #ruby
nomenkun has joined #ruby
<Xeago> just sort_by on Date.parse() could work
jsaak has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
nbouscal has joined #ruby
timonv has joined #ruby
peregrine81 has joined #ruby
<apeiros> sort_by { |name| name.sub(/(\d+)-(\d+)-(\d+)/, '\3\2\1') }
<dachi> Should I make an array of of all files first and then run sort_by on it?
<apeiros> sort_by { |name| name.sub(/(\d+)-(\d+)-(\d+)/, '\3\2\1').to_i } is probably faster
<apeiros> ugh, why pastebin? why use an ad-ridden paste-service when there are better ones without ads?
<dachi> tell me one I'll use another as you'll suggest
mrsolo has joined #ruby
Ox6abe has quit [Remote host closed the connection]
jibi has quit [Ping timeout: 268 seconds]
snovak has quit [Ping timeout: 268 seconds]
<apeiros> dachi: gist.github.com f.ex.
mercwithamouth has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<apeiros> paste with history, automatically a git repo and other nice features.
nomenkun_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
<dachi> okay, I'll reference to gists from now on, thanks
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
buzzybron has joined #ruby
candlej4ck has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
lucazi has quit [Quit: Leaving.]
sr78ger has joined #ruby
vince_prignano has quit [Remote host closed the connection]
<dachi> So, I ended up with files.sort_by { |name| name.sub(/(\d+)-(\d+)-(\d+)/, '\3\2\1') }[files.length-1]... to_i was not giving latest result somehow. thanks Xeago and apeiros
sirupsen has joined #ruby
linux_noob_666 has joined #ruby
<apeiros> o0
sr78ger has quit [Client Quit]
wallerdev has joined #ruby
<shevy> is ruby getting more and more complex?
nomenkun_ has quit [Ping timeout: 256 seconds]
V8Energy has joined #ruby
<dachi> I needed to put [-1] only
<apeiros> uh
<apeiros> why did you say you want them sorted if what you really want is the latest?
<apeiros> sort is more complex than max
<dachi> because I also need to show sorted in cli
<apeiros> same code, but use max_by
xk_id has quit [Quit:
<apeiros> also, .last IMO nicer than [-1] (does the same)
<dachi> ok great thanks
<apeiros> if with to_i gives you a different result, then something with your data is off… or your dates are not zero-padded
xk_id has joined #ruby
<apeiros> but then the gsub alone should fail too actually…
banisterfiend has quit [Quit: Computer has gone to sleep.]
jibi has joined #ruby
agjacome has joined #ruby
<dachi> yep it fails, I'll try to do something
<dachi> no it works nice, sorry
senayar has joined #ruby
<apeiros> oh, interesting, the String variant is actually faster
JohnBat26 has joined #ruby
sailias has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
xk_id has quit [Quit:
IceDragon has joined #ruby
carmenn has joined #ruby
peregrine81 has quit []
<dachi> nice thanks, both of them work as you helped https://github.com/dnatsvlishvili/anti_top/blob/master/lib/anti_top/worker.rb
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
carmenn has quit [Client Quit]
havenwood has joined #ruby
Xeago_ has quit [Remote host closed the connection]
dash_ has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
dash_ has joined #ruby
<apeiros> dachi: uh, you can reduce your `proxy_files` method to just this line `Dir.glob(proxy_dir + "*.txt")`
<apeiros> Dir.glob already returns an array
timonv has quit [Remote host closed the connection]
<dachi> oh thanks nice, you see i'm kind of new to it, I try to follow conventions and rules and things though
mercwithamouth has quit [Ping timeout: 264 seconds]
zdrummond has joined #ruby
buzzybron has quit [Quit: Leaving.]
Tuxist has quit [Read error: Connection reset by peer]
quoin has joined #ruby
ixti has joined #ruby
ixti has quit [Client Quit]
kilophoton has joined #ruby
ehaliewicz has joined #ruby
<jokke> hello
cooldman224 has joined #ruby
<jokke> anyone here familiar with distributed ruby
<jokke> ?
<jokke> i want to make a bidirectional connection
<jokke> so that the server can call functions on the client
<jokke> and vice versa
aaronmcadam has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
ixti has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
ixti has quit [Client Quit]
<jokke> and i want this to happen so that the client doesn't have to listen on a port for incoming connections (don't want to set up portforwarding)
<jokke> so the client connects to the server and from that moment on both can access some object on either side.
<jokke> is this even possible?
<jokke> hm not much going on here...
<Banistergalaxy> Your name is really "jokke", is that a joke?
<jokke> look who's talking :D
mercwithamouth has joined #ruby
Guest95475 is now known as fred
fred has quit [Changing host]
fred has joined #ruby
alx- has joined #ruby
Taranis has quit [Ping timeout: 240 seconds]
Taranis has joined #ruby
ixti has joined #ruby
kilophoton has quit [Ping timeout: 260 seconds]
ixti has quit [Client Quit]
jbrechtel has quit [Remote host closed the connection]
jbrechtel has joined #ruby
jbrechtel has quit [Read error: Connection reset by peer]
jbrechtel has joined #ruby
nazty has joined #ruby
s0ny123 has joined #ruby
Soda has joined #ruby
snovak has joined #ruby
zdrummond has quit [Quit: zdrummond]
candlej4ck is now known as robotblake
robotblake has quit [Changing host]
robotblake has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
snovak has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
peregrine81 has joined #ruby
sayan has joined #ruby
mmitchell has joined #ruby
randomdrake has quit [Quit: randomdrake]
sirupsen has quit [Quit: sirupsen]
poga has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
zdrummond has joined #ruby
verto has joined #ruby
aspiers_ has quit [Ping timeout: 245 seconds]
zdrummond has quit [Client Quit]
antulik-afk is now known as antulik
endash has quit [Quit: endash]
nerdy has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
headius has joined #ruby
13WAA4JC3 has quit [Ping timeout: 260 seconds]
endash has joined #ruby
tylersmith has joined #ruby
TripleDES has joined #ruby
vikhyat_ has quit [Read error: No route to host]
vikhyat has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
aspiers_ has joined #ruby
<shevy> hey jokke
<shevy> where have you been
codecop has joined #ruby
jefflyne2 has quit [Ping timeout: 256 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
<d33tah> now = Time.now() ; loop { printf("%0.3f %s",(Time.now() - now), STDIN.readline) ; now = Time.now() }
<d33tah> what did I mess up here? Time.now() - now is always zero.
jefflyne2 has joined #ruby
corpuscle has quit [Quit: WeeChat 0.4.1]
cucumbrman has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
nari has quit [Ping timeout: 260 seconds]
<d33tah> nvm, fixed it.
vikhyat has quit [Read error: Operation timed out]
vikhyat has joined #ruby
duggiefresh has joined #ruby
cads has joined #ruby
<pontiki> is there something like launchy that works with applications other than browsers (i.e. opening a web page)
<pontiki> for example, starting an editor
DrCode has quit [Remote host closed the connection]
<pontiki> i know this is dead easy on *nix systems
bradhe has joined #ruby
trouter has quit [Remote host closed the connection]
<pontiki> or maybe i shouldn't even bother...
swordsmanz has quit [Read error: Operation timed out]
dodosan has joined #ruby
<jbc22> d33tah: what was the fix?
<r0bgleeson> pontiki: on OSX you can use the 'open' command line app to start various types of applications based on the file type or schema of a URI
<jbc22> i got close:
<jbc22> now = Time.now() ; loop { printf("%f %s",(Time.now() - now), STDIN.readline) ; now = Time.now() }
machuga|away is now known as machuga
quoin has joined #ruby
<r0bgleeson> pontiki: it can even open other applications found in /Applications by passing a path.
kayloos has quit [Remote host closed the connection]
kayloos has joined #ruby
krainboltgreene has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<d33tah> jbc22: it was about reading STDIN before printing
<d33tah> turns out Time.now() - now is evaluated first, rightly so
dodosan has quit [Ping timeout: 245 seconds]
<d33tah> (or not rightly, anyway that's the fact)
Xaitec______ has joined #ruby
Xaitec______ has quit [Remote host closed the connection]
thesheff17 has quit [Remote host closed the connection]
atno__ has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
DrCode has joined #ruby
Ox6abe has joined #ruby
jsaak has joined #ruby
axl_ has quit [Quit: axl_]
randomdrake has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
crankycoder has quit [Quit: Changing server]
<pontiki> right, r0bgleeson -- the point of launchy is to make that platform independent
sweepTheLeg has joined #ruby
mmitchell has quit [Remote host closed the connection]
<pontiki> the fact that launchy hasn't gone beyond opening urls probably shows the inherent difficulty
quoin has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
stalker34 has quit [Ping timeout: 240 seconds]
Ox6abe has quit [Remote host closed the connection]
<r0bgleeson> whats this pattern called? you have an array of A-Z strings, you order them as nested arrays, i.e: [["A1", "A2"], ["B1", "B2"]], so when a query happens you can check the first char of the query string, look up array[0] if it is 'a', and then do a search on a smaller set
mikepack has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
nomenkun has joined #ruby
m8 has quit [Quit: Sto andando via]
cody-- has joined #ruby
stalker34 has joined #ruby
DrCode has quit [Remote host closed the connection]
snovak has joined #ruby
kilophoton has joined #ruby
noop has quit [Ping timeout: 264 seconds]
noop has joined #ruby
<Morrolan> Those aren't A-Z strings. :P
<shevy> pontiki perhaps you could use a ruby script that simply uses system()
JRizzle has joined #ruby
<r0bgleeson> Morrolan: hehe sorry, start with A-Z then :D
<pontiki> shevy: i could, but how one designated the editor might be different between systems, no? as i said, dead easy on *nix systems, but more to the point, dead easy on systems that you can specify an environment variable containing the editor command
snovak has quit [Ping timeout: 268 seconds]
<JRizzle> Hi all
<shevy> I am not sure how the editor would be different, when it is in the $PATH, it can be invoked... I often do stuff like: _ = 'vim /foo/bla.txt'; puts _; system _
<pontiki> shevy: how does such work on windows?
<shevy> it works fine there
kilophoton has quit [Ping timeout: 258 seconds]
<pontiki> if the editor of choice is notepad++, how is that designated?
<pontiki> or if the editor of choice is to be left to the individual, how is that designated?
<shevy> simply using system('notepad++ foo.txt') should work
<shevy> the individual needs to have decided which editor he is to use somewhere
<pontiki> right
<pontiki> on shell-systems, it's often in either the EDITOR or VISUAL shell vars
<shevy> I think the only global way this is done on windows is through the default file association
<shevy> yes but only if these are set
<shevy> if EDITOR is nil, using it to open anything would not work
echevemaster has joined #ruby
echevemaster has joined #ruby
<pontiki> exactly, but it's dead easy to check
<shevy> yeah but I sometimes forget
<pontiki> sheesh
nomenkun_ has joined #ruby
<pontiki> you are now missing the point entirely
<pontiki> i'm not asking how do i invoke a specific command *I* know ahead of time
<shevy> today I had a script fail for me :( one that generates shell scripts... one environment variable I use is LINUX to point to my resources... but the laptop I was using did not have LINUX (or any other environment variable set) ...
<shevy> huh
<pontiki> i'm asking how can i make something generic so the user can designate such with out having to reprogram the gem
<shevy> on windows?
<pontiki> anywhere
<pontiki> everywhere
nomenkun has quit [Read error: Connection reset by peer]
kidoz has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
lukec has quit [Quit: lukec]
<shevy> you can store it in a yaml file?
DrCode has joined #ruby
<pontiki> eh?
<pontiki> that seems kinda ridic
nomenkun_ has quit [Remote host closed the connection]
<pontiki> i'll just right what i need for my needs
JRizzle has quit [Quit: Leaving]
kayloos has quit [Remote host closed the connection]
Companion is now known as companion
rcosta has joined #ruby
mrsolo has joined #ruby
iamjarvo has joined #ruby
<shevy> well you have to consider several scenarios
kayloos has joined #ruby
<shevy> users who have a default editor set vs. users who don't
duggiefresh has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
<shevy> if they have designated a main editor, you could query that information, if they don't have it set, your script must make assumptions. either it uses hardcoded values or asks the user for an editor
nemesit|znc has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
fridim_ has joined #ruby
<pontiki> i do know all this, thanks
alx- has quit [Quit: Leaving...]
<r0bgleeson> Morrolan: binary search
<r0bgleeson> is what its called
<Morrolan> r0bgleeson: Ah. :)
<shevy> who of you uses ruby + excel
fuleo has quit [Read error: Connection reset by peer]
<shevy> hands up now
zabojnar has joined #ruby
<pontiki> binary search is where you split your search list in half, and check to see which half your term is in, and drill accordingly
codezombie has joined #ruby
ssvo has joined #ruby
jbrechtel has quit [Remote host closed the connection]
cody-- has joined #ruby
<pontiki> a b-tree is more like what you describe, which is closely related to binary searching, but a bit more as well
rcosta_ has joined #ruby
Nss has quit [Ping timeout: 245 seconds]
<yxhuvud> a b-tree is basically a binary tree adjusted for reality. disc access is not random (neither are memory accesses nowadays, for that matter).
chihhsin has quit [Quit: leaving]
vlad_starkov has joined #ruby
boblu has joined #ruby
rcosta has quit [Ping timeout: 264 seconds]
ewnd9 has quit [Ping timeout: 268 seconds]
<Morrolan> shevy: apeiros
IanV has joined #ruby
havenwood has quit [Remote host closed the connection]
cooldman224 has quit [Remote host closed the connection]
havenwood has joined #ruby
nomenkun has joined #ruby
<shevy> oh?
<shevy> well he has not said anything on that matter yet!
<shevy> I am going to believe I am a excel pioneer on #ruby
Neomex has joined #ruby
chihhsin has joined #ruby
<shevy> I had to manually edit excel files today ... ruby must replace this manual interaction
Nisstyre-laptop has joined #ruby
Neomex has quit [Client Quit]
jtgiri_ has joined #ruby
<Zespre> chihhsin: hi
ner0x has joined #ruby
machuga is now known as machuga|away
<chihhsin> Zespre: hi
bradhe has quit [Remote host closed the connection]
chihhsin has left #ruby [#ruby]
jtgiri_ has quit [Client Quit]
MiguelGD has quit [Ping timeout: 260 seconds]
rcosta_ has quit [Remote host closed the connection]
Zolo has quit [Remote host closed the connection]
aryaching_ has joined #ruby
<pontiki> someone on ruby-talk was making an excel gem
jtgiri_ has joined #ruby
antulik is now known as antulik-afk
Xaitec______ has joined #ruby
rcosta has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
jtgiri_ has quit [Client Quit]
Soda has quit [Remote host closed the connection]
Astralum has quit [Ping timeout: 256 seconds]
eka has joined #ruby
freerobby has joined #ruby
jtgiri_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
bradhe has joined #ruby
dash_ has quit [Quit: dash_]
Banistergalaxy has joined #ruby
rodacato has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Notte has quit [Remote host closed the connection]
gusnasis has joined #ruby
MiguelGD has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
babykosh has joined #ruby
iamjarvo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
chihhsin has joined #ruby
Ripp__ has joined #ruby
sambao21 has joined #ruby
chihhsin has quit [Client Quit]
chihhsin has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
jtgiri_ has quit [Quit: jtgiri_]
banisterfiend has quit [Quit: Computer has gone to sleep.]
salman01 has joined #ruby
<salman01> hello
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snovak has joined #ruby
ssvo has quit [Ping timeout: 260 seconds]
Notte has joined #ruby
sweepTheLeg has quit [Quit: leaving]
DrCode has joined #ruby
<shevy> pontiki hmm I am digging through these things slowly
<shevy> that is not that trivial as I had thought :(
<shevy> but I guess for simple excel files this can work
shredding has quit [Quit: shredding]
babykosh has quit [Quit: babykosh]
kpshek has joined #ruby
kpshek has quit [Client Quit]
ferdev has quit [Quit: ferdev]
snovak has quit [Ping timeout: 260 seconds]
rodacato has quit [Remote host closed the connection]
<TripleDES> hi :)
Columcille has quit [Quit: leaving]
rodacato has joined #ruby
Notte has quit [Remote host closed the connection]
<shevy> hi DualDES
Columcille has joined #ruby
elux has quit [Quit: Leaving...]
shredding has joined #ruby
Rager is now known as Trufax
IcyDragon has joined #ruby
shadoi has joined #ruby
Astralum has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 264 seconds]
tatsuya_o has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
salman01 has left #ruby [#ruby]
Al__ has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
rcosta has quit [Remote host closed the connection]
cih has joined #ruby
banisterfiend has joined #ruby
s0ny123 has quit [Quit: Lost terminal]
Banistergalaxy has quit [Remote host closed the connection]
wm3|zzz has joined #ruby
Quintus_q has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
jtgiri_ has joined #ruby
Al__ has quit [Quit: Al__]
elux has joined #ruby
rodacato has quit [Remote host closed the connection]
Zolo has joined #ruby
zarul has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
elux has quit [Client Quit]
nomenkun has joined #ruby
peregrine81 has quit []
MiguelGD has quit [Ping timeout: 260 seconds]
twoism has joined #ruby
shredding has quit [Quit: shredding]
RichardBaker has joined #ruby
carlyle has joined #ruby
<i8igmac> i have a def function(a,b,c,d)
sparq_ has joined #ruby
RichardBaker has quit [Client Quit]
<i8igmac> retry if var>=1
boblu has quit [Ping timeout: 260 seconds]
<i8igmac> retry outside of rescue clause
yacks has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
shadoi has quit [Quit: Leaving.]
yacks has quit [Read error: Connection reset by peer]
sethette1 is now known as sethetter
yacks has joined #ruby
peregrine81 has joined #ruby
carlyle has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
carraroj has quit [Remote host closed the connection]
carraroj has joined #ruby
carraroj has quit [Remote host closed the connection]
zarul has quit [Ping timeout: 268 seconds]
carraroj has joined #ruby
randomdrake has quit [Quit: randomdrake]
araujo has quit [Read error: Connection reset by peer]
vikhyat has quit [Remote host closed the connection]
araujo has joined #ruby
zarul has joined #ruby
bradhe has quit [Remote host closed the connection]
carlyle has joined #ruby
twoism has quit [Ping timeout: 264 seconds]
browndawg has quit [Quit: Leaving.]
Lewix has joined #ruby
Lewix has joined #ruby
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Remote host closed the connection]
jtgiri_ has quit [Quit: jtgiri_]
wm3|zzz is now known as wm3|eating
brianpWins has joined #ruby
Quintus_q has quit [Quit: WeeChat 0.4.1]
poga has quit [Remote host closed the connection]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poga has joined #ruby
randomdrake has joined #ruby
cascalheira has joined #ruby
Nisstyre-laptop is now known as nisstyre
wm3|eating has quit [Ping timeout: 268 seconds]
Notte has joined #ruby
cody-- has joined #ruby
Davey has joined #ruby
quoin has joined #ruby
tigor_ has joined #ruby
<shevy> seems odd
BizarreCake has quit [Ping timeout: 260 seconds]
tatsuya_o has quit [Remote host closed the connection]
<tigor_> i have finished reading http://ruby.learncodethehardway.org/...what book do you recommend me to read guys ?
optimusprimem has joined #ruby
cucumbrman has joined #ruby
<Morrolan> Code something? ;)
goshakkk has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
<atmosx> tigor_: Eloquent Ruby
<atmosx> but as Morrolan you don't have to read anymore, you have to code
<atmosx> or read code
quoin has quit [Ping timeout: 264 seconds]
<tigor_> atmosx: i wanted to learn something about network / threads etc
blackmesa has joined #ruby
nomenkun has joined #ruby
sparq_ has quit [Ping timeout: 264 seconds]
<atmosx> Areyou going to handle threads manually?
<Morrolan> https://github.com/eventmachine/eventmachine/wiki/Tutorials might be interesting, then. :)
<tigor_> atmosx: i would like to learn both ways
<tigor_> ty ty
peregrine81 has quit []
<atmosx> I haven't read the book, mind you, just comes first on Google
razi has quit [Ping timeout: 264 seconds]
headius has quit [Quit: headius]
elux has joined #ruby
<shevy> tigor_ do you know how "yield" works already?
babykosh has joined #ruby
<atmosx> I'm extracting some values from a TXT file (openvpn-status.log) and … apparently the data I'm seeking *first* stands on the lower part of the file, while to extract some more valuable data I need to extract data from the upper part of the file… is there any other approach except from re-looping the file? :-/
kilophoton has joined #ruby
<atmosx> re-looping = re=scanning the file… it's not much in cpu cycles, it's a txt about 10-15 lines
<atmosx> but I don't like running two loops like that
<tigor_> shevy: yes
<shevy> tigor_ ok then you are already rather advanced, I guess the only real way to progress much is to just start writing more and more ruby scripts
<shevy> and to idle on #ruby to power, sometimes one can learn new things!
r0bgleeson has quit [Read error: Connection reset by peer]
<shevy> the pickaxe book has a good reference ... the introduction is probably too easy for you now though
r0bgleeson has joined #ruby
snovak has joined #ruby
<matti> shevy: I didn't learn anything new ;/
<atmosx> matti: from the pickaxe?
<matti> No, idling.
Xaitec______ has quit [Remote host closed the connection]
<atmosx> oh hahah okay
<atmosx> matti: idle some more lol
<matti> :>
<matti> atmosx: I idle hard,man.
<matti> Real hard.
<matti> ;s
vlad_starkov has joined #ruby
<tigor_> ok will do
<tigor_> ruby is really easy :-)
<matti> Easy peasy.
<shevy> matti you are too advanced
<shevy> matti stop coming to #ruby for 5 years, then make a strong comeback, you will learn something new soon :D
alx- has joined #ruby
<matti> shevy: I strive to reach another plane of existance through idling.
<matti> I will become a demigod then.
<matti> shevy: Hehe
<shevy> tigor_ funny that you say that... I find ruby very elegant, it's what keeps me interested in it... but I also find it too complex, often for no real gain that I can see
<atmosx> My elite unix skills greyjewel ~/Code/Elenchos » rm -rf -- Sat\ Sep\ \ 7\ 01
<atmosx> lol
<shevy> ack
wm3|eating has joined #ruby
<shevy> I once did tab-complete while doing rm -rf
<shevy> and bash inserted a wrong directory
<atmosx> shevy: hmm complex? hm
<tigor_> shevy: what did you find complex ?
snovak has quit [Ping timeout: 260 seconds]
bradhe has joined #ruby
<shevy> atmos yeah... just imagine how many things one needs to understand... class var... instance var... module vs. classes... yield... lambda / proc / -> syntax ... method_missing... inherited hooks... singleton (everything)
<shevy> tigor_ my biggest complaint is the arbitrary distinction between modules and classes and using subclassing vs. include-inheritance
<shevy> my second largest complaint is that I often find it hard to want to find use cases for certain things... like class variables... but also lambdas, the latter just dont seem to fit into the flow of my code much at all
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> tigor_ the good thing is, you can use only 10% of ruby and it still is much better than 100% of php :P
<shevy> atmosx, yeah complex... without using .ancestors, tell me how Kernel, Object and BasicObject interelate with
krainbol_ has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
<shevy> *interrelate
<tigor_> how long did it take you guys to learn rails ?
<atmosx> tigor_: I started basically in the morning. I am able to do quite a few things by evening, but I was familiar with Sinatra
<shevy> tigor_ I skipped rails, came to ruby before rails existed
Senjai has joined #ruby
Senjai has joined #ruby
<atmosx> tigor_: did you do any web dev? do you know anything abou the MVC model, how these frameworks are usually structured. what erb/haml/less/etc are and so on? HTML5 CSS3 and JS? If you do know at least how their code looks like, and how do they work then you're all set.
krainboltgreene has quit [Ping timeout: 264 seconds]
<tigor_> atmosx: not really...never did a web dev or anything like this...nor dbs (sql)...did a little C++ and ksh
ksh has quit [Remote host closed the connection]
<wm3|eating> shevy: Object is a BasicObject with Kernel included as a mixin ;)
<wm3|eating> shevy: and Kernel is a somewhat large module that includes a lot of 'core' ruby methods (a lot of which are implemented in C, and also a lot of which are what many people think are really keywords or core ruby syntax)
<atmosx> How do I scan the first occurence of a text? Only the first?
havenwood has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
<atmosx> tigor_: follow this tutorial and whenever you stuck ask here or at the ruby-ml http://ruby.railstutorial.org/chapters/static-pages?version=4.0#top Ruby has a very user-friendly community
<atmosx> tigor_: start from chapter1 it guides all the way
brianpWins has quit [Ping timeout: 256 seconds]
<tigor_> bookmarked
<tigor_> thanks !
carlyle has quit [Remote host closed the connection]
<atmosx> rails pays bills
<shevy> wm3|eating you are also too advanced, you should not answer such things :P
<atmosx> ask wm3|eating … see he is eating? while the rest of us are starving
DrCode has quit [Ping timeout: 240 seconds]
<shevy> atmosx rails makes you rich?
robustus has joined #ruby
<atmosx> shevy: yeah apparently.
havenwood has joined #ruby
aaronmcadam has joined #ruby
<wm3|eating> shevy: I'm at a disadvantage... I have a plate of lemon pie in front of me ;)
bradhe has quit [Ping timeout: 268 seconds]
* atmosx looks at the Lindt chocolate in his fridge
pyx has joined #ruby
<Morrolan> Stop talking about food already.
elaptics is now known as elaptics`away
* Morrolan is hungry now
<shevy> I ate too much :(
mklappstuhl has joined #ruby
pyx has quit [Client Quit]
brianpWins has joined #ruby
<wm3|eating> tigor_: incidentally, #rubyonrails is full of helpful people who like to answer rails questions... in here it can be a bit hit and miss if you ask a rails question whether you get an answer... or get a 30 minute lecture on all the ways rails is awful and full of bad engineering and things that person X wouldn't do themselves and would never touch ;)
<tigor_> haha
<tigor_> i am worried about js/html5/css and ajax.. :(
<Morrolan> Only if you meet a guy whose name starts with h. :)
gener1c has quit [Read error: Operation timed out]
Lewix has quit [Remote host closed the connection]
<atmosx> tigor_: you could be a backend developer, instead of front-end then. lol
razi has joined #ruby
<atmosx> I love this back-front distinction
<tigor_> yeah but
<wm3|eating> yeah, modern web dev does have quite a large stack to learn
<atmosx> not to mention the unix background, how to implement proper caching, scaling and so on
<tigor_> atmosx: i am an aix sysadmin
<shevy> god
<atmosx> tigor_: advanced interactive executive?
<shevy> the web swallows souls
<atmosx> does that unix system still exist?
<tigor_> it really does :-)
<atmosx> tigor_: wow.
<tigor_> and it still more awsome than linux
Monie has joined #ruby
<atmosx> good, I never met one :-P back in the day I … let's say used to have access to couple of those beasts.
<atmosx> tigor_: oh, does ruby run on AIX?
dagnachew has joined #ruby
<dagnachew> hi all
<dagnachew> I installed ruby system wide and I got rvm is a function
<tigor_> atmosx: probably...we don't use it at work :-)
<dagnachew> -bash: type: write error: Broken pipe
Lewix has joined #ruby
<dagnachew> i am on linux
<shevy> linux mostly "just works" for the basic things
gener1c has joined #ruby
<shevy> dagnachew hmm I seen that error when compiling sometimes
<atmosx> tigor_: I thought it was disctontinued. But I'm totally wrong. IBM still produces new releases, apparently too large market..
<shevy> I had it related to some lexing/parser problem
<tigor_> atmosx: indeed
TripleDES has quit [Ping timeout: 264 seconds]
<atmosx> tigor_: So you're a specialized sys-admin, that's good. How come that you're interested in ruby? instead of something like C/C++ or Java?
koolb has joined #ruby
<shevy> ewww... java
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
wm3|eating has quit [Ping timeout: 240 seconds]
TripleDES has joined #ruby
<tigor_> atmosx: after 8++ h working you don't really want to spend another 8hours with something like C/C++
<Todd> sysadmins script a lot of their daily tasks.. use tools like puppet (ruby) for automated deployment etc..
krainbol_ has quit [Quit: krainbol_]
<Todd> most sysadmins I know are perl heads though
<atmosx> Todd: yes but last time I checked ruby didn't run well on RISC
<tigor_> Todd: we use cfengine instead...not much scripting as the environment is really heterogenous
<Morrolan> dagnachew: Are you sure that it doesn't say "RVM is *not* a function?"
<atmosx> I think ruby-2.0 doesn't compile on RISC
<tigor_> atmosx: people said coding in ruby is joy
<Todd> atmosx, nod
krainboltgreene has joined #ruby
<tigor_> atmosx: so i started learning ruby :)
<atmosx> tigor_: absolutely
<Todd> tigor_, ruby is a beautiful thing
tatsuya_o has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
<atmosx> tigor_: especially when those who saw perl code before encountering ruby.
<shevy> haha yeah
<Todd> saw/wrote/debugged/smelled/waded through
<Todd> yeah that
<shevy> my $great thing <>&//;
<tigor_> atmosx: Todd: and main reason for not continuing with C/C++ was lack of time and will to do it in my free time etc
<atmosx> tigor_: cool
<shevy> oh well
<atmosx> tigor_: out of curiosity, how old r u?
<shevy> I should have learned C for 10 years before ruby
<tigor_> 22
peregrine81 has joined #ruby
<shevy> I mean... learned and *used* C
<atmosx> shevy: no you shouldn't. You can learn C in 2 months if you really want to.
<shevy> I tried
<shevy> I always give up
<atmosx> then fuck it, it won't do you any good
<shevy> man... there are so many things that I could do if I would learn C properly
<Todd> learning c is helpful for understanding the way a lot of things work
<Todd> not that I've ever done it but a lot of my friends who learned c early on thank themselves for it today
<pontiki> i hate that "if you really wanted to"
<pontiki> as if wanting is all it takes
<Todd> I'm often a subscriber of that mentality
razi has quit [Ping timeout: 245 seconds]
<tigor_> Todd: atmosx: i think learning C and doing C if you have a time and projects to work on is a good idea...
<pontiki> if you really wanted to, you could jump to the moon
heath has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<shevy> pontiki well it's a lot of effort, one has to write lots of code, debug things, read specific things
<pontiki> yes, shevy, and after doing all those things dilligently, sweating it, that doesn't guarantee that you'll learn it
<shevy> and not use it either which is my worst fear :(
<atmosx> tigor_: sure it is. But he doesn't have to force himself to learn something he doesn't actually want to learn.
<shevy> but I could do some little useful things, like help the GUI bindings of ruby-gnome
nomenkun_ has joined #ruby
<tigor_> atmosx: Todd: maybe one could learn a bit C and then switch to ObjC if he would like to do iOS/OSX applications
<atmosx> tigor_: 22? wow you're young.
nomenkun has quit [Read error: Connection reset by peer]
<pontiki> one can do a lot of things
sayan has quit [Remote host closed the connection]
<pontiki> there are lots of languages to learn
<pontiki> lots of patterns to learn
<atmosx> Haskell
<atmosx> Lisp
<pontiki> ^
<shevy> if I can not use a language, what use will it have to me?
<atmosx> and if you wanna go with the jype now, Angular.js and Go
<atmosx> shevy: none
<atmosx> shevy: you will forge tit after a while imho
<pontiki> there may be some use in that it may help understand how other languages work
<atmosx> shevy: although procedural programming is a little bit different so you might encounter some patterns elsewhere and recognize them, but you could also do that with JS or Go which are much more hyped nowadays.
<pontiki> but that's rather indirect
<tigor_> atmosx: shevy my gf is japanese (we are not in JP though) i learned a bit japanese so i can actually better understand her moods when she yells at me :D
freerobby has quit [Quit: Leaving.]
<atmosx> pontiki: if he is not going to design and implement other languages… still I see no use
<atmosx> tigor_: lucky you :-P
<pontiki> you don't have to design the ruby language to get benefit from knowing C
<tigor_> atmosx: shevy: i mean even if we don't move to japan it helps me to understand her more
<pontiki> you get benefit from knowing C just even in writing ruby
sparq_ has joined #ruby
<pontiki> i know i'm biased in this; i like learning languages, and see the benefit of knowing one in using others
brianpWins_ has joined #ruby
<r0bgleeson> C is a great language to know
<r0bgleeson> so is Go though
<Senjai> C is more beneficial than C++ to learn right?
<atmosx> So is PASCAL?
<Senjai> Just guessing
nomenkun_ has quit [Remote host closed the connection]
<tigor_> r0bgleeson: so is Latin but it's pointless to start learning it
<Senjai> atmosx: Not sure if joking xD
<r0bgleeson> um
<r0bgleeson> yeah
<r0bgleeson> C is as irrelevent as latin
<pontiki> tigor_: not if you study ancient Rome
<yxhuvud> senjai: yes, unless you plan to seek a liking programming c++.
<r0bgleeson> where are you guys living
<atmosx> Senjai: depends, you like procedural or object oriented? Are you gonna code GUIS or cli fast-breaking algorithms?
<r0bgleeson> in an imaginary world?
rcosta has joined #ruby
<pontiki> tigor_: and not if you study the Catholic church
jonkri has joined #ruby
<yxhuvud> *living
<atmosx> eating
<Senjai> atmosx: Nah, I just want to contribute to Ruby, and C is used in most hardware programming right?
<tigor_> r0bgleeson: when did i say latin is irrelevant
brianpWins has quit [Ping timeout: 264 seconds]
brianpWins_ is now known as brianpWins
<r0bgleeson> tigor_: why is latin pointless to learn then?
<Senjai> I don't think latin is pointless
<r0bgleeson> C is one of the languages that founded everything you use today
<atmosx> Senjai: hm, C is the underlying structure of RUby (and python, etc) so when you actually try to understand how a method works in ruby, you have to *understand* a little bit of C in order to figure it out.
<r0bgleeson> youre nuts if you think its "pointless"
<tigor_> r0bgleeson: because you can use it only in specific field effectively
bradhe has joined #ruby
<atmosx> Ancient Greek is pointless?
<Senjai> atmosx: I dabbled in C++ a bit when I was younger.
<askhader> r0bgleeson: C is as irrelevent as latine?
<askhader> s/latine/latin
<askhader> You must find latin to be quite relevant, then.
<r0bgleeson> askhader: read the surrounding context buddy
<r0bgleeson> otherwise you'll look silly
<askhader> Looking silly isn't a problem.
<atmosx> Senjai: cool
* Morrolan puts on kevlar vest
<askhader> Context suggests we agree.
* atmosx follows Morrolan hint
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
Targen has joined #ruby
lukec has joined #ruby
bradhe_ has joined #ruby
srji has joined #ruby
rcosta has quit [Remote host closed the connection]
<tigor_> wow why did we stop ? :)
bradhe has quit [Ping timeout: 260 seconds]
<srji> i would like to get a feedback if a socket connectio to a remote host was successful
Zolo has quit [Remote host closed the connection]
T__T has joined #ruby
<atmosx> srji: use bering/rescue
<atmosx> and print the error
<atmosx> somethinglike -> rescue Timeout::Error
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quoin has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
DrCode has joined #ruby
r4nd0m1 has joined #ruby
<srji> atmosx: bering? correct typo?
<Morrolan> 'begin' ;)
hackerpreneur has joined #ruby
<atmosx> begin yeap
hackerpreneur has quit [Max SendQ exceeded]
freerobby has joined #ruby
<srji> ty
<Morrolan> >> begin; raise ArgumentError; rescue ArgumentError => e; puts e.inspect; end
<eval-in> Morrolan => #<ArgumentError: ArgumentError> ... (https://eval.in/47319)
<atmosx> srji: require 'timeout'
<Morrolan> (Just, of course, with the proper error.)
hackerpreneur has joined #ruby
<atmosx> for it to work, but anyway using rescue you can dump all sorts of errors
hackerpreneur has quit [Max SendQ exceeded]
<srji> ok
<Morrolan> Depending on the network library, it might also raise all kinds of other errors. Its docs should help with finding out what it might raise.
hackerpreneur has joined #ruby
<srji> im using tcpsocket
hackerpreneur has quit [Max SendQ exceeded]
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
hackerpreneur has joined #ruby
hackerpreneur has quit [Max SendQ exceeded]
quoin has quit [Ping timeout: 264 seconds]
hackerpreneur has joined #ruby
bradhe_ has quit [Remote host closed the connection]
rads has joined #ruby
<atmosx> srji: didn't tested by something like that might work
zets has joined #ruby
staafl has joined #ruby
bradhe has joined #ruby
rads has quit [Client Quit]
machuga|away is now known as machuga
peregrine81 has quit []
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
dodosan has joined #ruby
<staafl> what's the best way to chop off the trailing two chars from a string?
yacks has quit [Read error: Operation timed out]
<staafl> a.chop!.chop!, a.slice(-2..-1), or?
s0ber has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
snovak has joined #ruby
s0ber has joined #ruby
<atmosx> staafl: I'll go with slice but I'm sure there more than 4 ways to do it.
<havenwood> yet another way: #gsub!(/.{2}\z/, '')
<staafl> atmosx, the other two would be regex and indexing, right?
<staafl> havenwood, cool; \z is $, right?
MrZYX is now known as MrZYX|off
<havenwood> staafl: $ is end of line, and \z is end of string
<staafl> havenwood, which are the same when not using /m, am I right?
<havenwood> staafl: oh, and no need for gsub!, sub!
<srji> ty atmosx
snovak has quit [Ping timeout: 260 seconds]
<havenwood> >> "oops\nproblem".gsub!(/.{2}$/, '')
<eval-in> havenwood => "oo\nprobl" (https://eval.in/47321)
<havenwood> staafl: ^
hellyeah has quit [Ping timeout: 264 seconds]
<havenwood> >> "whew\nbetter".sub(/.{2}\z/, '')
<eval-in> havenwood => "whew\nbett" (https://eval.in/47322)
<staafl> havenwood, disturbing
codezombie has quit [Quit: Linkinus - http://linkinus.com]
carraroj has quit [Ping timeout: 260 seconds]
<staafl> wasn't that what the 'm' regex option was for?
<havenwood> staafl: makes dot match newlines
iamjarvo has quit [Remote host closed the connection]
carraroj has joined #ruby
<staafl> havenwood, that's 's'
iamjarvo has joined #ruby
<havenwood> staafl: "Multiline Mode. Normally, ``.'' matches any character except a newline. With the /m option, ``.'' matches any character."
<havenwood> staafl: Rubular is nice for testing regex and a basics cheat sheet: http://rubular.com/
<staafl> blah
reactormonk has quit [Ping timeout: 260 seconds]
<staafl> that's nonstandard
pyrac has joined #ruby
sparq_ has quit [Remote host closed the connection]
kilophoton has quit [Ping timeout: 264 seconds]
miskander has joined #ruby
<havenwood> yeah, confusing
cih has quit [Remote host closed the connection]
<staafl> in most languages, 's' causes . to match \n, and 'm' affects ^/$
sparq_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
<staafl> rather unfortunate design decision if you ask me :-(
iamjarvo has joined #ruby
<staafl> anyway, thanks for the education havenwood :-)
vlad_starkov has joined #ruby
krainboltgreene has quit [Ping timeout: 268 seconds]
iamjarvo_ has quit [Ping timeout: 268 seconds]
peregrine81 has joined #ruby
dagnachew has quit [Quit: Leaving]
mklappstuhl has quit [Remote host closed the connection]
jibi has quit [Ping timeout: 260 seconds]
MrZYX|off is now known as MrZYX
grayWolf has joined #ruby
noop has quit [Read error: Operation timed out]
rdg has joined #ruby
jonkri has quit [Quit: jonkri]
Emmanuel_Chanel has joined #ruby
peregrine81 has quit []
jibi has joined #ruby
sparq_ has quit [Quit: Leaving]
jbrechtel has joined #ruby
Lewis has joined #ruby
ksh has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
miskander has quit [Quit: miskander]
pencilcheck has joined #ruby
machuga is now known as machuga|away
babykosh has quit [Quit: babykosh]
IanV has quit [Quit: Leaving]
Lewis has quit [Ping timeout: 268 seconds]
rubyguy has quit [Quit: Connection closed for inactivity]
pen has quit [Ping timeout: 260 seconds]
relix has joined #ruby
gusnasis_ has joined #ruby
gusnasis has quit [Ping timeout: 245 seconds]
peregrine81 has joined #ruby
rdg has quit [Quit: ttfn]
peregrine81 has quit [Client Quit]
hakunin has joined #ruby
jibi has quit [Ping timeout: 260 seconds]
brianpWins has quit [Ping timeout: 260 seconds]
quoin has joined #ruby
jibi has joined #ruby
brianpWins has joined #ruby
jibi has quit [Client Quit]
atno has joined #ruby
mercwithamouth has joined #ruby
MrZYX is now known as MrZYX|off
senayar has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
Klotho1 has joined #ruby
musl has quit [Quit: WeeChat 0.4.1]
Deele has quit [Quit: User excited]
Notte has quit [Remote host closed the connection]
zabojnar has quit [Quit: Textual IRC Client: www.textualapp.com]
krainboltgreene has joined #ruby
claymore has quit [Quit: night]
quoin has quit [Ping timeout: 264 seconds]
BillCriswell has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<apeiros> Morrolan: you pinged me?
<Morrolan> apeiros: shevy asked whether anyone in here has been using Ruby to access Excel files.
snovak has joined #ruby
hellyeah has joined #ruby
<apeiros> Morrolan: ah, so my nick was part of a reply
<Morrolan> Yep. :)
duggiefresh has joined #ruby
MrZYX|off is now known as MrZYX
visof has quit [Excess Flood]
koolb has left #ruby [#ruby]
visof has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
Ox6abe has joined #ruby
rodacato has joined #ruby
mklappstuhl has joined #ruby
wm3|eating has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
wesside has quit [Quit: I think I heard an ice cream truck..]
cody-- has quit [Quit: Computer has gone to sleep.]
ecksit has joined #ruby
V8Energy has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
kilophoton has joined #ruby
decoponio has quit [Quit: Congratulations Tokyo! It was a shame Madrid and Istanbul.(Time to reboot my router)]
brianpWins has quit [Quit: brianpWins]
kilophoton has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
wm3|eating has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
senayar has joined #ruby
wm3|eating has joined #ruby
<ecksit> hi, i am struggling to get my ruby gem to install the executable that i have defined with it. https://gist.github.com/jacobbednarz/316d926241d4841aa1af
quoin has joined #ruby
<ecksit> can anyone confirm whether that /should/ work?
stonevil has joined #ruby
codecop has quit [Remote host closed the connection]
dachi has quit [Quit: Page closed]
decoponio has joined #ruby
quoin has quit [Ping timeout: 260 seconds]
freeayu has joined #ruby
jaynewstrom has quit [Disconnected by services]
jaynewst_ has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
<apeiros> ecksit: you omitted the actual problem description
dachi has joined #ruby
krainboltgreene has quit [Ping timeout: 240 seconds]
<dachi> is it possible to get subdomain cookies via net/http? i mean if i retrieve cookies from sample.com with ruby set-cookie is nil, but if I open a browser and see set cookies it's set from there to subdomain.sample.com
jtgiri_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
<apeiros> dachi: in the worst case, you can always access the headers yourself
tylersmith has joined #ruby
<dachi> oh and cookie = response['Set-Cookie'] isn't it a header... i don't know
azcodex has joined #ruby
<dachi> I did what I wanted with selenium, but I am trying to do same without webdriver
<apeiros> dachi: if it isn't in the header, the server didn't send it
<apeiros> net/http doesn't go around deleting random (or even non-random) headers
KobraKao has joined #ruby
<wm3|eating> dachi: it's possible that sample.com doesn't set any cookies, but that cookies from subdomain.sample.com are set with a domain attribute that means the browser sends them along to sample.com
maroloccio has joined #ruby
peregrine81 has joined #ruby
<wm3|eating> dachi: as such, if you do a request with net/http to sample.com, you won't get a cookie header in the response, but if you did a request to subdomain.sample.com you might
<wm3|eating> dachi: third alternative is that the cookies have been set client-side with JS in the page
elux has quit [Quit: Bye!]
wm3|eating is now known as workmad3
<dachi> wm3|eating thanks i'll see if I can get it from subdomain
antn has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
peregrine81 has quit [Client Quit]
peregrine81 has joined #ruby
bricker`LA has joined #ruby
kirun has quit [Quit: Client exiting]
pencilcheck has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
<Dwarf> I'm trying to get the time till a date in the future
<Dwarf> It works alright, but the seconds are kinda screwy
<Dwarf> 4 months, 0 weeks, 0 days, 0 hours, and 3.144528804578626e-16 seconds till christmas!
<Morrolan> That's floating point arithmetic, probably.
<Morrolan> Any reason you don't use the built-in classes to do it for you? :)
<apeiros> -> Float(Time.now.to_i)
<apeiros> silly
<apeiros> Time.now.to_f
<apeiros> higher precision and float in one go
<Dwarf> radical
<apeiros> and what Morrolan said. that's how floats work.
kilophoton has joined #ruby
<Dwarf> That's quite a big word, any info on how I can avoid it tho?
<apeiros> don't use floats. use appropriate rounding. blurp.
<Dwarf> Like, integers?
bboogaard has joined #ruby
<apeiros> why do you even use floats? for your use-case, seconds seems to be a high enough resolution.
<apeiros> yes, like, integers. right.
<Dwarf> It keeps telling me it's exactly 3 months
tealmage has joined #ruby
<apeiros> also months = (calc_time /= @month).round is wrong. no matter what.
<apeiros> a month is not a duration. it's an interval.
dagnachew has joined #ruby
<Dwarf> I see, what are you suggesting?
tabolario has joined #ruby
<atmosx> talking about dead languages and lacin (and C) http://skilldrick.github.io/easy6502/
<apeiros> either drop months or calculate the diff correctly.
<apeiros> take a look at the chronos code repository. even if it is old, the maths was solid.
pusewicz_ has quit [Quit: Connection closed for inactivity]
senayar has quit [Remote host closed the connection]
antn has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
unixninja92 has quit [Ping timeout: 246 seconds]
antn has joined #ruby
<Dwarf> Alright, are the built-in classes Morrolan mentioned any good? And which would that be?
fenicks has quit [Remote host closed the connection]
staafl has quit [Ping timeout: 260 seconds]
<apeiros> ask Morrolan. afaik ruby does have neither a duration nor an interval class
tneutron has joined #ruby
unixninja92 has joined #ruby
<Morrolan> Truth be told, I didn't actually look it up. *blushes*
bboogaard is now known as _bbo_
<tneutron> I am using the redis gem and I am trying to get sets, and then the values in those sets I can not find anything
antn has quit [Remote host closed the connection]
* apeiros bed
<apeiros> n8
<Dwarf> hours,minutes,seconds,frac = Date.day_fraction_to_time(time_until)
<Dwarf> That looks promising
srji has quit [Quit: leaving]
<tneutron> I have been writing stuff in node.js and wanted to start learning ruby… so any help is appreciated
snovak has joined #ruby
peregrine81 has quit []
<Morrolan> Ah, what I've rememberd is actually part of actinopack.
<Morrolan> Dwarf: Seems there's nothing built-in to handle it, indeed. Sorry. :)
_bbo_ is now known as bboogaard
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<tneutron> here is the coffee script I am converting.
iliketur_ has joined #ruby
larissa has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
Klotho1 has quit [Ping timeout: 260 seconds]
stonevil has quit [Remote host closed the connection]
LiquidInsect has quit [Read error: Connection reset by peer]
iliketur_ has quit [Ping timeout: 240 seconds]
tealmage has quit [Remote host closed the connection]
dagnachew has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
altamic has joined #ruby
altamic has left #ruby [#ruby]
brain_shim has quit [Ping timeout: 260 seconds]
yano has quit [Read error: Connection reset by peer]
Kabaka has quit [Ping timeout: 240 seconds]
yano has joined #ruby
stonevil has joined #ruby
iamjarvo has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
iamjarvo has joined #ruby
ehaliewicz has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
MrZYX is now known as MrZYX|off
nibbles has joined #ruby
LiquidInsect has joined #ruby
Kabaka has joined #ruby
SHyx0rmZ has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 260 seconds]
iamjarvo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tealmage has joined #ruby
tomzx_mac has joined #ruby
atmosx has quit [Quit: Lost in trance]
byprdct has joined #ruby
<nibbles> How can I run a program from a ruby file and then kill it? I want to run it in foreground, the program (cmatrix) takes control of the terminal and nothing is run before it ends (using system() to run it).
unixninja92 has quit [Ping timeout: 268 seconds]
optimusprimem has quit [Ping timeout: 245 seconds]
unixninja92 has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
ssvo has joined #ruby
vlad_starkov has joined #ruby
quoin has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
robotblake has quit [Quit: Leaving...]
tomzx_mac has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Villadelfia has quit [Remote host closed the connection]
jerius has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
azcodex has quit [Quit: azcodex]
quoin has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby
volty has joined #ruby
iamjarvo has quit [Ping timeout: 268 seconds]
eka has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
dachi has quit [Quit: Page closed]
rcosta has joined #ruby
Aquilo has joined #ruby
Asher has joined #ruby
felixjet_ has joined #ruby
tneutron_ has joined #ruby
tneutron has quit [Read error: Connection reset by peer]
tneutron_ is now known as tneutron
tealmage has quit [Remote host closed the connection]
felixjet has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
<shevy> nibbles do you know the PID? if so you can use Process.kill
<shevy> Process.kill :QUIT, $PROCESS_ID
<shevy> Process.kill(SIGTERM, @pid)
mercwithamouth has joined #ruby
tylersmith has joined #ruby
stonevil has quit [Remote host closed the connection]
grayWolf has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
gusnasis_ has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
Guest27516 is now known as ixx
KobraKao has quit [Quit: Saindo]
tylersmith has quit [Ping timeout: 264 seconds]
felixjet_ has quit [Ping timeout: 264 seconds]
butblack has quit [Quit: butblack]
Kabaka has quit [Ping timeout: 240 seconds]
predator217 has joined #ruby
ismlages has quit [Remote host closed the connection]
butblack has joined #ruby
optimusprimem has joined #ruby
optimusprimem has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
yano has quit [Ping timeout: 624 seconds]
Kabaka has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
snovak has joined #ruby
candlej4ck has joined #ruby
tomzx_mac_ has joined #ruby
Spami has joined #ruby
ssvo_ has joined #ruby
MiguelGD has joined #ruby
Klotho1 has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
jtgiri_ has quit [Quit: jtgiri_]
snovak has quit [Ping timeout: 260 seconds]
jerius has quit []
gener1c has quit [Remote host closed the connection]
candlej4ck is now known as robotblake
robotblake has quit [Changing host]
robotblake has joined #ruby
vramana has joined #ruby
vramana has quit [Client Quit]
jerius has joined #ruby
rickmasta has quit [Quit: Leaving...]
krainboltgreene has joined #ruby
jerius has quit [Client Quit]
poga has quit [Remote host closed the connection]
TripleDE1 has joined #ruby
tealmage has joined #ruby
duggiefresh has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
kilophoton has quit [Ping timeout: 264 seconds]
rickmasta has joined #ruby
TripleDES has quit [Ping timeout: 268 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
volty has quit [Quit: Konversation terminated!]
jerius has joined #ruby
duggiefresh has joined #ruby
jerius has quit [Client Quit]
cody-- has joined #ruby
tealmage has quit [Ping timeout: 264 seconds]
dodosan has quit [Remote host closed the connection]
T__T has quit [Remote host closed the connection]
kilophoton has joined #ruby