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
marcgg has joined #ruby
epta has quit [Read error: Operation timed out]
thibauts has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
predator217 has joined #ruby
diego1 has joined #ruby
pedda has joined #ruby
<pedda> hi all
jcarouth has quit [Read error: Operation timed out]
djbkd has quit [Quit: Leaving]
rupee has quit [Quit: Leaving]
diego1 is now known as diegoviola
vlad_starkov has quit [Ping timeout: 256 seconds]
<pedda> can someone help me with some ruby setup issue on mac os x 10.8.x ?
thibauts has joined #ruby
momomomomo has quit [Quit: momomomomo]
jcarouth has joined #ruby
epta has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
wyhaines has quit [Remote host closed the connection]
<sebastianb> pedda: ask a question, maybe someone will answer
<pedda> okay
<pedda> i'm trying to setup a vagrant VM which scripts are based on ruby.. that'S why i need to handle updating the ruby version of my computer (which was by default 1.8.3)
rafacv has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Remote host closed the connection]
demet8 has quit [Quit: demet8]
RichardBaker has quit [Quit: RichardBaker]
<sebastianb> pedda: you can install version you want with rbenv/rvm/ruby-build
<pedda> i used some curl command found on ruby-lang.org/downloads
<pedda> which installed rvm
<pedda> ports (macports) iirc
<pedda> i did also have homebrew packet manager installed
reset has quit [Quit: Leaving...]
<pedda> which some seem to have a conflict nox
<sebastianb> with rvm you can type 'rvm list known'
<pedda> now
<sebastianb> and choose a ruby version you want
<pedda> the main point for me is now:
jbpros has quit [Quit: jbpros]
<pedda> the component i need to upgrade/downgrade now is called chef-client
<pedda> ususally i can enter chef-client in my termial and i should see some related output
<pedda> but instead i get some ruby error
<popl> will you get to your question?
<popl> :)
<pedda> sorry..
<popl> there's a pastebin URL in the topic. you can paste your error message there.
<pedda> sure
<pedda> i want to check the currently installed client version
nettoweb_ has quit [Ping timeout: 256 seconds]
Guga_ has quit [Quit: ~]
Guga_ has joined #ruby
JumpMast3r has joined #ruby
demet8 has joined #ruby
<sebastianb> I've never used chef before, but did your read the first line of the error message?
<pedda> yes i did
<popl> the first line is just a warning
<pedda> i was trying to downgrade chef when this started
<popl> so this is a chef issue ultimately
DanKnox is now known as DanKnox_away
ciziar has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
<pedda> is there a way to flush all gems
<popl> what do you mean?
adamnbowen has quit [Quit: Computer has gone to sleep.]
<pedda> like i messed up the setup of one and i want to revert it?
<pedda> uninstall/reinstall
Myk267 has left #ruby [#ruby]
<pedda> rvm is for managing ruby versions right?
arya_ has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
mbotros has quit [Ping timeout: 264 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
<pedda> sorry for being that novice
<popl> My understanding is that rvm is not the best tool for the job.
<pedda> gem is a package management option for ruby packages if i got it right
<popl> I've seen that it is difficult for novices to get working correctly.
<pedda> okay
futilegames has quit [Quit: futilegames]
<pedda> how about resetting the whole thing?
nettoweb has joined #ruby
<havenwood> pedda: To remove RVM entirely and start over: rvm implode
jonathanwallace has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
saarinen has joined #ruby
<pedda> this will revert the command from ruby-lang.org/downloads?
<pedda> the curl command for os x
<havenwood> pedda: The RVM install script?
<havenwood> pedda: Yup.
<pedda> ah okay
rafacv has quit [Read error: Connection reset by peer]
aalmenar_ has joined #ruby
aalmenar has quit [Ping timeout: 245 seconds]
<pedda> my ruby version should match the native delivered with os x right?
<havenwood> pedda: RVM works well for installing and managing Rubies. Another option is to install Rubies with ruby-install and manage them with chruby.
<popl> >> 10.downto(1).reduce(1,:*)
<eval-in> popl => 3628800 (https://eval.in/36147)
<popl> \o/
mfonda has joined #ruby
<havenwood> popl: Is that a Project Euler?
<popl> no that's me cheating on ruby koans :P
<havenwood> aha
<popl> in AboutControlStatements
<popl> but I don't think it violates the spirit of the koan.
rafacv has joined #ruby
marr has quit [Ping timeout: 256 seconds]
ssvo has joined #ruby
<popl> also I get to experiment
<popl> so it's a win
tjbiddle has quit [Quit: tjbiddle]
enebo has joined #ruby
<pedda> thx havenwood
<pedda> i reverted my ruby version to the default one..
<pedda> i can now start from scratch
<pedda> :)
arubin has joined #ruby
enebo has quit [Client Quit]
lewis has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
brotatos has quit [Quit: WeeChat 0.4.1]
arya_ has joined #ruby
joshwines has joined #ruby
Guga_ has quit [Remote host closed the connection]
emergion has joined #ruby
tootubular has joined #ruby
Guga_ has joined #ruby
<mfonda> what's the meaning of << (other than shift left -- from what i can tell it looks like "append")?
ssvo has quit [Ping timeout: 248 seconds]
banjara has quit [Quit: Leaving.]
<popl> mfonda: it's called shovel
bitkiller has quit [Read error: Connection reset by peer]
<popl> mfonda: I suggest you work through the ruby koans
adamnbowen has joined #ruby
yshh has quit [Remote host closed the connection]
kidkt has joined #ruby
RobW_ has quit [Quit: RobW_]
bitkiller has joined #ruby
<mfonda> popl: thanks! not a ruby user, just trying to understand a code snippet, and wasn't sure what to google to find info about <<
brum has quit [Remote host closed the connection]
emergion has quit [Ping timeout: 260 seconds]
<havenwood> mfonda: yeah, 'shovel operator' or append, both are correct things to call it :)
fuhgeddaboudit has joined #ruby
zobar has joined #ruby
<mfonda> thanks :)
scrollback has quit [Remote host closed the connection]
mfonda has left #ruby [#ruby]
scrollback has joined #ruby
zobar has left #ruby [#ruby]
fermion has joined #ruby
tkuchiki has joined #ruby
nari has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
bitkiller has quit [Read error: Connection reset by peer]
lindenle has quit [Quit: This computer has gone to sleep]
pipework has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
freeayu__ has joined #ruby
jonathanwallace has joined #ruby
ssvo has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dekade has quit [Ping timeout: 246 seconds]
kasper has quit [Remote host closed the connection]
ffio has joined #ruby
queston has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
_ffio_ has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
Es0teric has joined #ruby
devoldmx has joined #ruby
nettoweb_ has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
nettoweb has quit [Ping timeout: 276 seconds]
nettoweb_ is now known as nettoweb
hogeo has joined #ruby
freeayu3 has joined #ruby
queston has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
fyym has joined #ruby
freeayu__ has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
melder has quit [Quit: Ex-Chat]
bitkiller has joined #ruby
nbouscal has joined #ruby
nettoweb has quit [Quit: nettoweb]
brennanMKE has joined #ruby
sailias has joined #ruby
saarinen has quit [Quit: saarinen]
dmiller has quit [Remote host closed the connection]
danCe- has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
arya_ has quit [Ping timeout: 248 seconds]
sevenseacat has joined #ruby
jefflyne has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
yshh has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
iamjbecker has joined #ruby
Es0teric has quit [Remote host closed the connection]
brum has joined #ruby
iamjbecker has quit [Remote host closed the connection]
wsterling has quit [Remote host closed the connection]
wsterling has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
brum has quit [Remote host closed the connection]
lyanchih has joined #ruby
Dekade has joined #ruby
ezkl has joined #ruby
fomatin has joined #ruby
cooldman224 has quit [Ping timeout: 252 seconds]
Solnse has quit [Remote host closed the connection]
kadoo has joined #ruby
rickruby has quit [Remote host closed the connection]
nari has joined #ruby
kofno has joined #ruby
GeissT has joined #ruby
Hanmac2 has joined #ruby
cooldman224 has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
RobW_ has joined #ruby
apes has quit [Quit: leaving]
mikepack has quit [Remote host closed the connection]
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
fridim_ has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
dhejejehe has joined #ruby
Jev has left #ruby [#ruby]
bionoid has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
ryanjh has joined #ruby
zets has quit [Ping timeout: 256 seconds]
Domon has joined #ruby
LennyLinux has quit [Remote host closed the connection]
northelks has joined #ruby
twoism has quit [Remote host closed the connection]
zets has joined #ruby
danCe- has quit [Ping timeout: 256 seconds]
danCe- has joined #ruby
Asher1 has joined #ruby
fess has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
ttt has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
reset has quit [Quit: Leaving...]
ttt has quit [Read error: Connection reset by peer]
ravster has joined #ruby
ttt has joined #ruby
Asher1 has quit [Ping timeout: 276 seconds]
diegoviola has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
`brendan has joined #ruby
kasper has joined #ruby
queston has joined #ruby
wsterling has quit [Remote host closed the connection]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
wallerdev has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swordsmanz has quit [Ping timeout: 264 seconds]
adamnbowen has quit [Quit: Computer has gone to sleep.]
gildo has joined #ruby
lewis is now known as lewix
kasper has quit [Ping timeout: 276 seconds]
queston has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
unstable has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<unstable> I want to use nokogiri to scrape parts of a website. How can I scrape a website that I need to use tor/authentication to login to first?
arya_ has joined #ruby
machuga|away is now known as machuga
<unstable> I can do things with wget, like load the cookies, and wrap wget in 'torify'. Though wget is difficult to add logic to, eg 'do x/y on this linked list'
Kricir has joined #ruby
kadoo has joined #ruby
demet8 has quit [Quit: demet8]
demet8 has joined #ruby
queston has joined #ruby
wo66le has joined #ruby
nbouscal has joined #ruby
<iamjarvo> Enumerable#partition should always keep order right? [1,2,3,4,5,6,].parition{ |x| x.even? }.flatten
<iamjarvo> should return [2,4,6,1,3,4]. sorry i tried hitting shift + enter
LetsNukeUSA has quit [Quit: Til rivido Idisti!]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgibson9 has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
mbotros has joined #ruby
kidkt has quit [Quit: Ex-Chat]
kadoo has joined #ruby
<popl> iamjarvo: isn't [...] an Array?
<iamjarvo> popl: yea, so its ordered
<iamjarvo> so its should always keep order
<popl> I don't see anything in the documentation guaranteeing that
<popl> although the examples do show a particular order
<popl> so I don't know
<havenwood> "Arrays are ordered..."
<popl> ah
<popl> I was looking at ri Array.partition
<popl> he asked about Enumerable#partition and not Array#partition which added to my confusion
cjsarette has joined #ruby
wo66le has quit [Quit: bye]
<popl> "he"
<popl> sorry
<havenwood> ah, yeah Enumerables are ordered too
<popl> it would be implied I suppose
<havenwood> " as these methods rely on an ordering between members of the collection
<havenwood> uhhg, paste quote fail ^
diego1 has joined #ruby
kofno has quit [Remote host closed the connection]
diego1 is now known as diegoviola
<havenwood> " <-- closing quote to restore the balance
<popl> \o/
Kricir has quit [Remote host closed the connection]
Mattx has joined #ruby
kofno has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iamjarvo> thanks
twoism has joined #ruby
Matip has quit [Ping timeout: 252 seconds]
<pontiki_> (
<RobW_> if I'm doing an each on an array, and something in the each is adding items to the array, will those new items get iterated over as well?
<RobW_> ^^^ lazy request
<pontiki_> i have no idea....
<pontiki_> i would guess so
<pontiki_> unless it's adding them at the head
<pontiki_> seems like potential for an infinite loop
danslo has quit [Quit: danslo]
wsterling has joined #ruby
takezawa has joined #ruby
harrymoreno has joined #ruby
johnnyfuchs has joined #ruby
queston has quit [Remote host closed the connection]
<RobW_> pontiki_: Yeah, that's what I thought. Oh wells.
<havenwood> RobW_: yes, it will, e.g.: a = [1,2,3]; a.each { |e| puts e; a << e + 1 }
Spooner has quit [Remote host closed the connection]
<havenwood> well e + 1 makes no sense, but point is it goes forever
takezawa has quit [Remote host closed the connection]
<RobW_> havenwood: Thanks, I gotcha.
<havenwood> same if you push instead of append, long as there is something in there it'll iterate
lindenle has joined #ruby
wsterling has quit [Ping timeout: 252 seconds]
queston has joined #ruby
tehlers has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
kadoo has joined #ruby
<tehlers> can anybody help me with parsing some json ive used the json ruby gem before
jimg_ has joined #ruby
twoism has joined #ruby
<unstable> How can I find each anchor tag with "&nbsp;&nbsp;" string before it in an html document using nokogiri?
<tehlers> but ive encounter something weird ... a file with json inside of it but the entire file is not json ...
Mars___ has quit [Ping timeout: 248 seconds]
Mars` has quit [Ping timeout: 246 seconds]
radic__ has joined #ruby
arya__ has joined #ruby
gildo has quit [Ping timeout: 256 seconds]
<pontiki_> where did it come from?
mary5030 has joined #ruby
plotter has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 256 seconds]
lyanchih has joined #ruby
radic_ has quit [Ping timeout: 276 seconds]
lyanchih has quit [Client Quit]
arya_ has quit [Ping timeout: 248 seconds]
<tehlers> chef ..
Asher has joined #ruby
cofin has quit [Quit: cofin]
<pontiki_> all my chef .json files are nothing but .json...
<pontiki_> but maybe you should ask someone at opscode
<pontiki_> or in #chef
<tehlers> this is what it looks like
fyym has quit [Quit: Leaving]
<pontiki_> blighty
<pontiki_> NONE of that is json
<pontiki_> it's Shef
<pontiki_> opscode's DSL
<pontiki_> underlying that is ruby
osvico has quit [Ping timeout: 248 seconds]
<tehlers> isnt the default attirbs a json string ?
<pontiki_> no
<pontiki_> that hashrocket is ruby
<pontiki_> json doesn't use that, only :
<pontiki_> and json items don't start with : either
<tehlers> oh =(
<tehlers> screw it im doing this with awk regex ...
wmoxam has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
<pontiki_> what are you trying to *do*
machuga is now known as machuga|away
<tehlers> pull values for each host ...
<pontiki_> use knife
<pontiki_> the chef tool
vlad_starkov has joined #ruby
<pontiki_> knife node show host1
arya__ is now known as arya_
bionoid has quit [Remote host closed the connection]
benlieb has joined #ruby
rlb3 has quit [Ping timeout: 246 seconds]
unstable has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 276 seconds]
ssvo has quit [Ping timeout: 252 seconds]
cooldman224 has quit [Ping timeout: 256 seconds]
DrShoggoth has quit [Quit: Leaving]
codezombie has quit [Read error: Connection reset by peer]
RobW_ has quit [Quit: RobW_]
n_blownapart has joined #ruby
milardovich has quit [Quit: Leaving]
jlast has quit [Remote host closed the connection]
Dekade has quit [Ping timeout: 246 seconds]
ryanjh has quit [Quit: Computer has gone to sleep.]
end_guy has quit [Ping timeout: 240 seconds]
LucidDreamZzZ has quit [Ping timeout: 240 seconds]
iamjbecker has joined #ruby
end_guy has joined #ruby
jlast has joined #ruby
LucidDreamZzZ has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
jlast has quit [Remote host closed the connection]
fredjean has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno_ is now known as harrymoreno
harrymoreno has quit [Client Quit]
fschuindt has joined #ruby
Asher has quit [Quit: Leaving.]
Tobarja has joined #ruby
bitkiller has quit [Ping timeout: 246 seconds]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fredjean has quit [Quit: Computer has gone to sleep.]
Tobarja has quit [Client Quit]
Tobarja has joined #ruby
kadoo has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
iamjbecker has quit [Remote host closed the connection]
unCoolCat has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
iamjbecker has joined #ruby
sambao21 has joined #ruby
whowantstolivefo has quit [Ping timeout: 256 seconds]
bigmac has quit [Quit: Leaving]
Tobarja has quit [Quit: ZNC - http://znc.in]
sayan has joined #ruby
Kricir has joined #ruby
Tobarja has joined #ruby
demet8 has quit [Quit: demet8]
wmoxam has joined #ruby
kofno has joined #ruby
iamjbecker has quit [Ping timeout: 246 seconds]
ravster has quit [Quit: Leaving.]
johnnyfuchs has quit [Remote host closed the connection]
johntron has joined #ruby
johntron has left #ruby [#ruby]
browndawg has quit [Quit: Leaving.]
Asher has joined #ruby
sayan has quit [Max SendQ exceeded]
veco has quit []
BrianJ has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: Leaving.]
sayan has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zeeraw has quit [Quit: Computer has gone to sleep.]
BrianJ has joined #ruby
mars__ has joined #ruby
Mars` has joined #ruby
unCoolCat has left #ruby [#ruby]
kadoo has joined #ruby
poseid1 has joined #ruby
kofno has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
wargasm has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
poseid has quit [Ping timeout: 248 seconds]
mmitchell has joined #ruby
mbotros has quit [Ping timeout: 246 seconds]
julweber has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kofno has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
jimg_ has quit [Remote host closed the connection]
jlast has joined #ruby
arya_ has joined #ruby
celestius has joined #ruby
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
cjsarette has quit [Ping timeout: 248 seconds]
Guedes0 has quit [Ping timeout: 252 seconds]
rafacv has quit [Ping timeout: 276 seconds]
kadoo has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
poseid has joined #ruby
julweber has quit [Ping timeout: 252 seconds]
i_s has joined #ruby
poseid1 has quit [Ping timeout: 248 seconds]
Nisstyre has quit [Ping timeout: 264 seconds]
saarinen has quit [Ping timeout: 240 seconds]
Guga_ has quit [Quit: ~]
vlad_starkov has joined #ruby
KhalilC has quit [Ping timeout: 246 seconds]
agjacome has quit [Quit: leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
cjsarette has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
mars__ has quit [Ping timeout: 264 seconds]
iamjbecker has joined #ruby
rezzack has quit [Quit: Leaving.]
philcrissman_ has joined #ruby
jimg has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
CaptainJet_ has quit []
rippa has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
CaptainJet has joined #ruby
iamjbecker has quit [Remote host closed the connection]
lewix has quit [Ping timeout: 276 seconds]
<tehlers> Ahhh awk the best tool ever, i dont understand why the chef devs couldnt use a standard format for roles.
fredjean has joined #ruby
<tehlers> but awk solves everything just keep piping over and over until u have what u want
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cha1tanya has quit [Ping timeout: 252 seconds]
seanmccann has joined #ruby
micah` has quit [Ping timeout: 256 seconds]
seanmccann has quit [Client Quit]
graydot has joined #ruby
micah` has joined #ruby
haxrbyte has joined #ruby
kadoo has quit [Ping timeout: 256 seconds]
<pontiki_> lol
<pontiki_> they do
<pontiki_> you can use a ruby script like that OR you can use json
lurch_ has joined #ruby
mmitchell has quit [Remote host closed the connection]
lurch_ has quit [Client Quit]
kofno has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
<pontiki_> i do have to wonder what you are doing in a ruby channel, talking about json, and using awk to do something with a ruby script
icecandy has joined #ruby
staafl has joined #ruby
adamnbowen has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
kadoo has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
chxane has joined #ruby
Araxia has quit [Quit: Araxia]
ryanjh has joined #ruby
chxane has quit [Remote host closed the connection]
sevenseacat has left #ruby [#ruby]
dmiller has joined #ruby
Inside has quit [Ping timeout: 256 seconds]
bionoid has joined #ruby
jlast has joined #ruby
dkeefe75_ has joined #ruby
butblack has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
butblack has left #ruby [#ruby]
Kabaka has quit [Quit: s/Kabaka//]
icecandy has quit [Remote host closed the connection]
Kabaka has joined #ruby
Domon has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
brennanMKE has quit [Remote host closed the connection]
Kudos has quit [Excess Flood]
unstable has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
<unstable> If I'm running exec hundreds of times, is there a way to parallelize this?
<pontiki_> threads
bubblehead has quit [Remote host closed the connection]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Kudos has joined #ruby
<pontiki_> or just spawn if you don't want to manage them
jimg has quit [Remote host closed the connection]
rickruby has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
jlast has quit [Ping timeout: 256 seconds]
bionoid has quit [Remote host closed the connection]
lewix has joined #ruby
JumpMast3r has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reset has joined #ruby
celestius has quit [Quit: Textual IRC Client: www.textualapp.com]
Peej has joined #ruby
harrymoreno has joined #ruby
_seanc_ has quit [Quit: _seanc_]
_seanc_ has joined #ruby
_seanc_ has quit [Client Quit]
reset has quit [Read error: Operation timed out]
<unstable> exec('mkdir -p #{directory}') ... any idea why this line is killing my script?
<unstable> (directory is an input parameter)
cha1tanya has joined #ruby
hamakn_ has quit [Remote host closed the connection]
cmiller1 has quit [Quit: cmiller1]
hamakn has joined #ruby
Catie is now known as Emmy
Emmy is now known as Catie
coderhut has joined #ruby
Kruppe has quit [Remote host closed the connection]
<Kelet> unstable, Not sure but it may be better to do it the Ruby with rather than an exec http://www.ruby-doc.org/stdlib-2.0/libdoc/fileutils/rdoc/FileUtils.html#method-c-mkdir_p
vlad_starkov has joined #ruby
cj3kim has quit [Remote host closed the connection]
kadoo has joined #ruby
nettoweb has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
RobW_ has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 248 seconds]
DonRichie has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
<pontiki_> unstable: exec *replaces* your running process with the exec'd command
<pontiki_> so there's nothing to come back to
dmiller has joined #ruby
harrymoreno has joined #ruby
<Kelet> Looks like spawn or system is the way to do it if you really wanna do it that way
lyanchih has joined #ruby
yaboo has joined #ruby
<pontiki_> or backtick
<Kelet> or %x[] I suppose :)
<pontiki_> %x is backtick, i think?
<Kelet> no clue
haxrbyte_ has quit [Read error: Connection reset by peer]
<pontiki_> but with fancy boundaries
vlad_starkov has quit [Ping timeout: 248 seconds]
_seanc_ has joined #ruby
cj3kim has joined #ruby
mars__ has joined #ruby
ner0x has quit [Quit: Leaving]
nomenkun has joined #ruby
Mars` has joined #ruby
dmiller has quit [Ping timeout: 268 seconds]
yacks has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
ssvo has joined #ruby
<unstable> Kelet: Thanks, that seems to have fixed the problem.
RobW_ has quit [Quit: RobW_]
cjsarette has quit [Ping timeout: 245 seconds]
<unstable> pontiki_: o I see, so if I use it, it should be the last instruction in my method?
<joelteon> or ``
<joelteon> oh, we covered that
cj3kim has joined #ruby
pranny has joined #ruby
dhruvasagar has joined #ruby
rippa has joined #ruby
yukonbob has joined #ruby
Mendon has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
queston has quit [Remote host closed the connection]
yukonbob has quit [Quit: quitter]
dkeefe75_ has quit [Quit: Leaving]
havenwood has joined #ruby
dgibson9 has quit [Quit: Lost terminal]
<pontiki_> unstable: it's the very last command your script will run
<pontiki_> so, yes, if that's what you want
havenn_ has joined #ruby
havenn_ has quit [Remote host closed the connection]
_Andres has joined #ruby
* pontiki_ falls off
havenn_ has joined #ruby
* popl helps pontiki_ back up
<popl> now we sing international song of friendship
<popl> :P
harrymoreno has quit [Quit: harrymoreno]
havenwood has quit [Ping timeout: 252 seconds]
<unstable> If I have an each iterator.. with say 20 items. I'm using debugger to find a problem.. how can I skip 1 of the 20 iterations? I'm using nokogiri, so when I type 'next', it shows me some nokogiri stuff.. I have to keep typing next.
jlast has quit [Ping timeout: 240 seconds]
locriani has joined #ruby
havenn_ is now known as havenwood
nettoweb has quit [Read error: Connection reset by peer]
reset has joined #ruby
Domon has joined #ruby
codecop has joined #ruby
philcrissman_ has joined #ruby
AlHafoudh has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
x1337807x has joined #ruby
axeman_ has joined #ruby
twoism has quit [Remote host closed the connection]
serp` has joined #ruby
mmitchell has joined #ruby
d4rkstalk3r has joined #ruby
anom127001 has joined #ruby
<anom127001> any programming mentors out there
benlieb has quit [Quit: benlieb]
BizarreCake has joined #ruby
mmitchell has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
tjbiddle has joined #ruby
yacks has joined #ruby
anom127001 has quit [Quit: leaving]
adamnbowen has quit [Quit: Computer has gone to sleep.]
cjsarette has joined #ruby
brennanMKE has joined #ruby
n_blownapart has quit [Remote host closed the connection]
ct_ has joined #ruby
ct_ has quit [Client Quit]
dmiller has quit [Ping timeout: 256 seconds]
vit has joined #ruby
harrymoreno has joined #ruby
codezombie has joined #ruby
_seanc_ has quit [Quit: _seanc_]
lurch_ has joined #ruby
<lewix> =)
generalissimo has joined #ruby
tagrudev has joined #ruby
generalissimo has quit [Remote host closed the connection]
drfreeze has quit [Read error: Operation timed out]
MrSamuel has joined #ruby
cjsarette has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
brennanMKE has quit [Ping timeout: 256 seconds]
devdazed has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
queston has joined #ruby
Davai__ has quit [Quit: Ex-Chat]
devdazed has joined #ruby
jlast has joined #ruby
ananthakumaran has joined #ruby
mmozuras has joined #ruby
stkowski has quit [Quit: stkowski]
macmartine has joined #ruby
GeissT_ has joined #ruby
serp` has quit [Quit: serp`]
cjsarette has joined #ruby
jimg has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
queston has quit [Ping timeout: 246 seconds]
DonRichie has quit [Quit: Verlassend]
i_s has quit [Read error: Connection reset by peer]
krainboltgreene has quit [Read error: Connection reset by peer]
i_s has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
<unstable> http://pastie.org/8102315 ... I am trying to get access to 'Concentrates', 99 and 'website.org...'
krainboltgreene has joined #ruby
<unstable> Does anyone know what the methods are to access this Nokogiri object and get the specified data from them?
drfreeze has joined #ruby
locriani_ has joined #ruby
Spaceghost|work has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
_reset has joined #ruby
adamnbowen has joined #ruby
locriani_ has quit [Client Quit]
locriani_ has joined #ruby
_bart_ has joined #ruby
mahmoudimus has joined #ruby
vlad_starkov has joined #ruby
<macmartine> unstable: as the docs say, you can do it by searching nodes by css, xpath or both
Hobogrammer_ has quit [Read error: Connection reset by peer]
locriani has quit [Remote host closed the connection]
pipework has quit [Read error: Connection reset by peer]
reset has quit [Read error: Connection reset by peer]
_bart has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 276 seconds]
locriani_ is now known as locriani
Tarential has quit [Excess Flood]
Tarential has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimg has joined #ruby
jeremy_c has quit [Ping timeout: 256 seconds]
micah` has quit [Ping timeout: 256 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 240 seconds]
micah` has joined #ruby
braoru has joined #ruby
corehook_ has joined #ruby
bionoid has joined #ruby
Shirakawasuna has joined #ruby
Shirakawasuna has joined #ruby
bionoid has quit [Remote host closed the connection]
Shirakawasuna has quit [Max SendQ exceeded]
Alina-malina has joined #ruby
<unstable> [46] pry(main)> nokogiri_blobs[0].css('a')
<unstable> => []
corehook has quit [Ping timeout: 246 seconds]
i_s has quit [Remote host closed the connection]
Shirakawasuna has joined #ruby
<unstable> I tried searching by css, that didn't work.
n_blownapart has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
i_s has joined #ruby
Shirakawasuna has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Al___ has joined #ruby
KevinSjoberg has joined #ruby
justsee has quit [Remote host closed the connection]
adamnbowen has quit [Quit: Computer has gone to sleep.]
<unstable> [52] pry(main)> nokogiri_blobs[0].xpath('//a')
<unstable> => []
<unstable> same thing with xpath
zeromodulus has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
cjsarette has quit [Ping timeout: 245 seconds]
therealnoop has joined #ruby
GeissT_ has quit [Ping timeout: 256 seconds]
n_blownapart has quit [Remote host closed the connection]
sayan has joined #ruby
tommyvyo has joined #ruby
Domon has quit [Remote host closed the connection]
cjsarette has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
jlast has joined #ruby
Domon has joined #ruby
futilegames has joined #ruby
aganov has joined #ruby
lewix has quit [Remote host closed the connection]
jeremy_c has joined #ruby
threesome has joined #ruby
corehook_ has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 256 seconds]
akemrir has joined #ruby
krz has quit [Ping timeout: 241 seconds]
djdb has joined #ruby
jds_ has joined #ruby
ayaz has joined #ruby
dagobah has joined #ruby
jimg_ has joined #ruby
timonv has joined #ruby
Spaceghost|work is now known as pipework
jlast has quit [Ping timeout: 276 seconds]
slcres has joined #ruby
Al___ has quit [Quit: Al___]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeremy_c has quit [Ping timeout: 256 seconds]
chxane has joined #ruby
cj3kim has joined #ruby
Kabaka has quit [Remote host closed the connection]
tootubular has quit [Quit: tootubular]
Kabaka has joined #ruby
jbpros has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
relix has joined #ruby
i_s has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
afd__ has quit [Ping timeout: 268 seconds]
obs has joined #ruby
persand has joined #ruby
nomenkun has quit [Remote host closed the connection]
zigomir has joined #ruby
<Sp4rKy> hi, I'm trying to use daemons library, I would like to iinit logger/config from main script, then daemonize a code in lib/foo.rb
Hobogrammer has joined #ruby
<Sp4rKy> but I can't find how I can pass variables from the main process to the daemonized one
havenwood has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
afd__ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
julweber has joined #ruby
vlad_starkov has joined #ruby
krz has joined #ruby
jbpros has joined #ruby
RomainT has joined #ruby
<sami> I've been trying to install gems. They seem to be installed without any errors but are unusable. Do i have to set where ruby should look? At the moment they are placed in /usr/local/lib/ruby/gems/2.0.0/gems/
jimg has quit [Remote host closed the connection]
jprovazn has joined #ruby
jlast has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
jbpros has quit [Client Quit]
tkuchiki has joined #ruby
ferr has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
jimg_ has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
arya_ has quit [Ping timeout: 248 seconds]
leonidlm has joined #ruby
graydot has quit [Quit: graydot]
_reset has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> sami: yeah, GEM_HOME
reset has joined #ruby
mikepack has joined #ruby
viszu has joined #ruby
<havenwood> sami: might want to checkout chruby for an example of correct env vars to set: https://github.com/postmodern/chruby#readme
mikepack has quit [Remote host closed the connection]
<havenwood> sami: or just use chruby to set them for you :)
mikepack has joined #ruby
graydot has joined #ruby
jeremy_c has joined #ruby
dodosan has joined #ruby
arya_ has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
jlast has quit [Ping timeout: 268 seconds]
mikepack has quit [Ping timeout: 248 seconds]
MrSamuel has quit [Quit: MrSamuel]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
cjsarette has quit [Ping timeout: 264 seconds]
jbpros has joined #ruby
Al___ has joined #ruby
ssvo has quit [Ping timeout: 256 seconds]
jimg has joined #ruby
jimg_ has joined #ruby
tatsuya_o has joined #ruby
jds_ has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
senayar has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
cjsarette has joined #ruby
zoon has joined #ruby
Neomex has joined #ruby
andikr has joined #ruby
julweber has quit [Remote host closed the connection]
samuel02 has joined #ruby
jbpros has quit [Quit: jbpros]
MrSamuel has joined #ruby
mmozuras has quit [Quit: leaving]
timonv has quit [Remote host closed the connection]
iamjbecker has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
blaxter_ has joined #ruby
Rylai has quit [Ping timeout: 245 seconds]
Niichan has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Quit:]
mars__ has quit [Ping timeout: 241 seconds]
niceguyjames has joined #ruby
danslo has joined #ruby
kreisys has joined #ruby
blaxter_ has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
rdark has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
dodosan has quit [Ping timeout: 252 seconds]
jeremy_c has quit [Ping timeout: 256 seconds]
predator217 has quit [Ping timeout: 246 seconds]
vinnyOcean has joined #ruby
ntus1017 has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
vit has quit [Quit: Page closed]
rickruby has quit [Remote host closed the connection]
denver has joined #ruby
Al___ has joined #ruby
locriani has quit [Read error: Connection reset by peer]
leonidlm has quit [Ping timeout: 256 seconds]
locriani has joined #ruby
axeman_ has quit [Read error: Connection reset by peer]
axeman_ has joined #ruby
marcgg_ has joined #ruby
chichou has joined #ruby
marr has joined #ruby
blaxter_ has joined #ruby
yaboo has quit [Remote host closed the connection]
jimg_ has quit [Remote host closed the connection]
bionoid has joined #ruby
marcgg has quit [Ping timeout: 256 seconds]
rickruby has joined #ruby
gasbakid has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
troessner has joined #ruby
havenwood has quit [Remote host closed the connection]
fgo has joined #ruby
havenwood has joined #ruby
Al___ has quit [Quit: Al___]
alex88 has left #ruby ["Leaving..."]
timonv has joined #ruby
Judge has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
vigintas has joined #ruby
<Judge> Moin @ all :)
havenwood has quit [Ping timeout: 252 seconds]
vinnyOcean has quit [Quit: Computer has gone to sleep.]
jeremy_c has joined #ruby
zoon has quit [Ping timeout: 256 seconds]
vinnyOcean has joined #ruby
bionoid has quit [Remote host closed the connection]
DaniG2k has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
nomenkun has joined #ruby
julweber has joined #ruby
Neomex has quit [Quit: Neomex]
jeremy_c has quit [Ping timeout: 264 seconds]
hamed_r has joined #ruby
Rylai has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
jefflyne has joined #ruby
Niichan has joined #ruby
Niichan is now known as Guest43462
timonv_ has quit [Read error: Connection reset by peer]
codesoda has joined #ruby
timonv has joined #ruby
Guest43462 has quit [Changing host]
Guest43462 has joined #ruby
Guest43462 is now known as Niichan
jibi has joined #ruby
dodosan has joined #ruby
haxrbyte has joined #ruby
ybart has joined #ruby
sk87 has joined #ruby
<jokke> hi, is it possible to write a standalone rspec test script that is executable?
lkba has quit [Ping timeout: 252 seconds]
<jokke> i want to write a script that automates some sql tests.
<jokke> and i like the rspec syntax and output
mklappstuhl has quit [Remote host closed the connection]
jlast has joined #ruby
ephemerian has joined #ruby
iamjbecker has quit [Remote host closed the connection]
Rylai has quit [Quit: *.net *.split]
<MrZYX> MiniTest::Spec offers a similar DSL and ships with ruby these days, maybe you want to look into that
jimg has joined #ruby
Niichan has quit [Ping timeout: 246 seconds]
haxrbyte_ has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
Rylai has joined #ruby
pipework has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
pipework has joined #ruby
ghr has joined #ruby
noname001 has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
Shirakawasuna has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby
jbpros has joined #ruby
jimg has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
scrollback has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
scrollback has joined #ruby
<jokke> oh ok cool
<jokke> thanks
Niichan has joined #ruby
alpaca_taichou has joined #ruby
elaptics`away is now known as elaptics
ghr has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
Kar- has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
jeremy_c has joined #ruby
ghr has joined #ruby
LetsNukeUSA has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
alpaca_taichou has quit [Remote host closed the connection]
cj3kim has joined #ruby
jds_ has quit [Ping timeout: 276 seconds]
mengu has joined #ruby
aqil has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
camilasan has joined #ruby
chichou has quit [Remote host closed the connection]
r0bby has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
<jokke> anyone know how to execute .sql files in sequel?
jonahR has quit [Quit: jonahR]
yourmysin has joined #ruby
TIJ has joined #ruby
ffio_ has joined #ruby
Domon has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 256 seconds]
timonv has quit [Remote host closed the connection]
forced_request has quit [Ping timeout: 252 seconds]
Domon has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
razi has joined #ruby
pranny has quit [Quit: Leaving.]
arya_ has quit [Ping timeout: 248 seconds]
codesoda has quit [Remote host closed the connection]
ejnahc_ has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
Dragos has joined #ruby
mikewintermute has joined #ruby
allanix has left #ruby [#ruby]
tatsuya_o has joined #ruby
Niichan has quit [Quit: Damned network cable squirrels]
aaronmcadam has joined #ruby
javiferrer has joined #ruby
arya_ has joined #ruby
marcgg has joined #ruby
whowantstolivefo has joined #ruby
emergion has joined #ruby
jlast has joined #ruby
d4rkstalk3r has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
whowantstolivefo has quit [Client Quit]
troessner has quit [Ping timeout: 248 seconds]
whowantstolivefo has joined #ruby
zai has joined #ruby
jbpros has joined #ruby
dodosan has quit [Remote host closed the connection]
byprdct has joined #ruby
marcgg_ has quit [Ping timeout: 256 seconds]
alpaca_taichou has joined #ruby
ferdev has joined #ruby
h8R has joined #ruby
jbpros has quit [Client Quit]
gstamp has quit [Quit: Computer has gone to sleep.]
ejnahc has joined #ruby
eka has joined #ruby
ejnahc has quit [Max SendQ exceeded]
binaryplease has joined #ruby
mogsy has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gyre007 has joined #ruby
D4T has joined #ruby
charliesome has joined #ruby
aqil has quit [Ping timeout: 248 seconds]
ejnahc has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Niichan has joined #ruby
ericmathison has quit [Ping timeout: 260 seconds]
jlast has quit [Ping timeout: 252 seconds]
Niichan is now known as Guest66476
crazymykl has quit [Ping timeout: 256 seconds]
reset has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
sk87 has joined #ruby
Al__ has joined #ruby
<D4T> Hi all, I'm struggling with a regex for this string. I just want to match the name of the company from it: " name = \"Great Plumbing Services Ltd\", "
<D4T> any got any pointers?
Macaveli has joined #ruby
Macaveli has left #ruby [#ruby]
Macaveli has joined #ruby
<popl> is there actually a newline in it or is that an artifact of you pasting it?
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
alpaca_taichou has quit [Remote host closed the connection]
<popl> >> " name = \"Great Plumbing Services Ltd\", "[/\\\"([\w ]+)/]
<eval-in> popl => nil (https://eval.in/36222)
<popl> :|
<D4T> popl: no newline
b0oh has joined #ruby
<popl> >> " name = \"Great Plumbing Services Ltd\", "[/\"([\w ]+)/]
<eval-in> popl => "\"Great Plumbing Services Ltd" (https://eval.in/36223)
<popl> >> " name = \"Great Plumbing Services Ltd\", "[/\\"([\w ]+)/]
<eval-in> popl => nil (https://eval.in/36224)
<popl> bah
mklappstuhl has joined #ruby
<D4T> annoying isn't it :)
locriani has quit [Remote host closed the connection]
<popl> so tired
<D4T> would it be bad practice to split the string by the "=" ?
<Macaveli> Hello! How can you write this shorter: https://gist.github.com/anonymous/38a2f6a4f0f084b26ebe I'm still trying to figure out unless etc
<popl> no
<popl> I don't think so.
locriani has joined #ruby
<popl> I've only been programming in ruby for less than a week though
<D4T> popl: just thinking that would make it a hell of a lot easier
<D4T> ah ok :)
<popl> yes it would
<popl> I would do that in perl
<popl> well maybe
rickruby has quit [Ping timeout: 240 seconds]
<popl> aks me when I'm coherent
<D4T> just seems a little overkill but I'm struggling getting the regex right
<D4T> lol
<popl> *ask
<popl> there is the rubular site
<popl> you can play around there
<D4T> i've been playing with it, but still struggling
jbpros has joined #ruby
<D4T> its ok, i'll plod on. thanks for your input :)
<D4T> and get some coffee / sleep
<D4T> (but not both)
<popl> >> " name = \"Great Plumbing Services Ltd\", "[/"([\w ]+)/]
<eval-in> popl => "\"Great Plumbing Services Ltd" (https://eval.in/36225)
<popl> ok, sorry for spamming the channel
jbpros has quit [Client Quit]
<D4T> ahhh think i got it
<D4T> hah slightly different way but thanks :)
<popl> what'd you do?
<D4T> its longer = /"\b[a-zA-Z]+\D+\\/
<D4T> horrible in comparison lol
CaptainJet has quit []
adambeynon has joined #ruby
<D4T> although yours seems to match the "name" bit too according to rubular
staafl has quit [Ping timeout: 256 seconds]
viszu has quit [Quit: Leaving.]
dwirc has quit [Ping timeout: 264 seconds]
stunthamster has joined #ruby
<D4T> always find oddities with rubular for some reason
locriani has quit [Ping timeout: 256 seconds]
ebouchut has quit [Ping timeout: 246 seconds]
Domon has quit [Remote host closed the connection]
<popl> duh
hogeo has quit [Read error: Connection reset by peer]
<popl> >> " name = \"Great Plumbing Services Ltd\", "[/\"([\w ]+)/, 1]
<eval-in> popl => "Great Plumbing Services Ltd" (https://eval.in/36226)
hogeo has joined #ruby
<popl> this is your brain on no sleep :P
<popl> D4T: did you see it?
gasbakid has quit [Ping timeout: 248 seconds]
<MrZYX> I'm for [/"([^"]+)/, 1]
mikewintermute has quit [Quit: mikewintermute]
<popl> MrZYX++
dwirc has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<popl> me too
<popl> i need to regenerate
<popl> bye #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
Guedes0 has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
comrade has joined #ruby
comrade is now known as Guest11910
ferdev has quit [Ping timeout: 276 seconds]
mklappstuhl has quit [Remote host closed the connection]
jlast has joined #ruby
nari has quit [Ping timeout: 245 seconds]
niceguyjames has joined #ruby
ebobby has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
emergion has joined #ruby
ferdev has joined #ruby
Guedes0 has quit [Ping timeout: 246 seconds]
Domon has joined #ruby
fixl has joined #ruby
gasbakid has joined #ruby
coderhut has quit [Quit: Page closed]
teclator has quit [Ping timeout: 248 seconds]
halfie|afk is now known as halfie
Domon has quit [Remote host closed the connection]
cj3kim has joined #ruby
ebouchut has joined #ruby
niceguyjames has quit [Client Quit]
<jokke> why does wont_raise work in minitest?
Domon has joined #ruby
troessner has joined #ruby
khushildep has joined #ruby
troessner has quit [Read error: Connection reset by peer]
Macaveli has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ur5_ has joined #ruby
persand has quit [Quit: persand]
cj3kim has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
<jokke> any ideas how to test that something does _not_ raise an exception?
LetsNukeUSA has quit [Ping timeout: 240 seconds]
gasbakid has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
b0oh has quit [Quit: Leaving.]
jlast has quit [Ping timeout: 276 seconds]
gasbakid has joined #ruby
Jackneill has quit [Remote host closed the connection]
RomainT has left #ruby [#ruby]
locriani has joined #ruby
yebyen has quit [Ping timeout: 256 seconds]
Peej has quit [Ping timeout: 248 seconds]
Peej has joined #ruby
ij has joined #ruby
LetsNukeUSA has joined #ruby
dwirc has quit [Ping timeout: 264 seconds]
KhalilC has joined #ruby
<D4T> MrZYX: whats the ", 1" do?
crazymykl has joined #ruby
postmodern has quit [Ping timeout: 252 seconds]
dwirc has joined #ruby
<ij> I've got a function that maps an object to an enriched object, by adding some attributes to it. Currently it operates on a set of objects, by taking array that it maps over. But wouldn't it be "more correct" to make it _only_ enrich an object and then call set.map(&method(:enrich_obj)), if i need to do that for all?
MrZYX is now known as MrZYX|off
locriani has quit [Ping timeout: 240 seconds]
zigomir has quit [Quit: zigomir]
girija has joined #ruby
fermion has joined #ruby
postmodern has joined #ruby
dwirc has quit [Remote host closed the connection]
LennyLinux has joined #ruby
dwirc has joined #ruby
yshh has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
ybart has quit [Quit: ybart]
LennyLinux is now known as Virunga
arietis has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<arietis> hi
<arietis> what's the point to require 'rubygems'?
<ij> Sveiks ārieti.
<D4T> MrZYX: whats the ", 1" do?
<D4T> oops
yebyen has joined #ruby
<ij> arietis, Defines "gem" method to get specific versions of gems.
yebyen is now known as Guest34729
<ij> It also redefines require to find gems installed by rubygems.
dwirc has quit [Remote host closed the connection]
codesoda has joined #ruby
Jeep has joined #ruby
Peej has quit [Disconnected by services]
dwirc has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ntus1017 has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
jlast has joined #ruby
sayan has joined #ruby
lyanchih has quit [Quit: lyanchih]
sayan has quit [Remote host closed the connection]
<arietis> for god's sake
jimg has quit [Remote host closed the connection]
<arietis> trying to make local bundle with nokogiri
<arietis> but it says wrong libxml2 version
lurch_ has quit [Quit: lurch_]
<arietis> oh, works now after i installed gem manually
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
locriani has joined #ruby
b0oh has joined #ruby
nitrodex has quit [Quit: Bye]
nitrodex has joined #ruby
postmodern has quit [Quit: Leaving]
Desert_eagle has joined #ruby
<Desert_eagle> hi2all
Zeeraw has joined #ruby
nitrodex has quit [Client Quit]
nitrodex has joined #ruby
dmiller has joined #ruby
<Desert_eagle> $full_ingroups = split(inline_template("<%= (add_ingroups + ingroups).join(',') %>"),',')
<Desert_eagle> this is puppet code
jlast has quit [Ping timeout: 240 seconds]
<Desert_eagle> that stop working in ruby1.9
<Desert_eagle> any ideas?
<Desert_eagle> undefined method `join' for nil:NilClass
girija has quit [Ping timeout: 256 seconds]
ybart has joined #ruby
darkc0met has quit [Ping timeout: 260 seconds]
krainbol_ has joined #ruby
locriani has quit [Ping timeout: 252 seconds]
nari has joined #ruby
fgo has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 276 seconds]
Domon has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 248 seconds]
girija has joined #ruby
Dragos has quit [Quit: This computer has gone to sleep]
lurch_ has joined #ruby
kasper has joined #ruby
ur5_ is now known as ur5
<arietis> anyone worked with nokogiri?
codesoda has quit [Remote host closed the connection]
<hoelzro> I've used it once.
<arietis> is there any way to parse all of the tags except first 3?
sayan has joined #ruby
Peej has joined #ruby
* hoelzro shrugs
<hoelzro> just ignore the first 3?
Jeep has quit [Ping timeout: 276 seconds]
Peej has quit [Disconnected by services]
Jeep has joined #ruby
lyanchih has joined #ruby
poseid has quit [Quit: Leaving.]
Zeeraw has quit [Quit: Computer has gone to sleep.]
b0oh has left #ruby [#ruby]
Peej has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jbhewitt_ has joined #ruby
<jbhewitt_> hey guys - what's the best way to receive a JSON array and process it in rails ?
<jbhewitt_> i only want to pull some data out of it
Jeep has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
jlast has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
binaryplease has quit [Read error: Operation timed out]
locriani has joined #ruby
boblu has joined #ruby
emergion has joined #ruby
darkc0met has joined #ruby
krainbol_ has quit [Ping timeout: 240 seconds]
dwirc has quit [Ping timeout: 252 seconds]
dwirc has joined #ruby
ybart has quit [Quit: ybart]
girija has quit [Ping timeout: 252 seconds]
Peej has quit [Ping timeout: 240 seconds]
Beoran__ has joined #ruby
anay has joined #ruby
crazymykl has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 246 seconds]
D4T has quit [Quit: Computer has gone to sleep.]
swordsmanz has joined #ruby
Beoran_ has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
jefflyne has joined #ruby
jlast has quit [Ping timeout: 268 seconds]
chichou has joined #ruby
axeman_ is now known as axeman-
boblu has quit [Ping timeout: 264 seconds]
Mattx has quit [Ping timeout: 252 seconds]
binaryplease has joined #ruby
ryanjh has quit [Quit: Computer has gone to sleep.]
demet8 has joined #ruby
vinnyOcean has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 246 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Dragos has joined #ruby
pootler has joined #ruby
sk87 has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
kasper has quit [Remote host closed the connection]
teclator has quit [Read error: Operation timed out]
dhruvasagar has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
codesoda has joined #ruby
cads has joined #ruby
tkuchiki has joined #ruby
brbcoding has joined #ruby
Mattx has joined #ruby
kofno has joined #ruby
teclator has joined #ruby
robustus has joined #ruby
poseid has joined #ruby
ybart has joined #ruby
persand has joined #ruby
osvico has joined #ruby
boblu has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
swordsmanz has quit [Quit: swordsmanz]
swordsmanz has joined #ruby
queston has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
nomenkun has quit [Remote host closed the connection]
ferdev_ has joined #ruby
yshh has joined #ruby
ferdev has quit [Ping timeout: 256 seconds]
ferdev_ is now known as ferdev
kasper has joined #ruby
dmiller has joined #ruby
swordsmanz has quit [Read error: Connection reset by peer]
swordsmanz has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamed_r has quit [Quit: Leaving]
poseid has quit [Quit: poseid]
ewag has joined #ruby
jimg has joined #ruby
sailias has joined #ruby
poseid has joined #ruby
ccooke has quit [Quit: leaving]
hogeo_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
ebobby has joined #ruby
axl_ has joined #ruby
dmiller has quit [Read error: Operation timed out]
swordsmanz has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 246 seconds]
blaxter_ is now known as blaxter
chxane has quit [Remote host closed the connection]
jlast has joined #ruby
obs has quit [Quit: Konversation terminated!]
jimg has quit [Ping timeout: 256 seconds]
poseid has quit [Client Quit]
swordsmanz has joined #ruby
wsterling has joined #ruby
philcrissman_ has joined #ruby
poseid has joined #ruby
rdark has joined #ruby
atno has quit [Remote host closed the connection]
ccooke has joined #ruby
gasbakid has quit [Remote host closed the connection]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
ebobby has quit [Ping timeout: 268 seconds]
zigomir has joined #ruby
sweeper has left #ruby [#ruby]
roadt has quit [Ping timeout: 240 seconds]
poseid has quit [Quit: poseid]
lemonsparrow has joined #ruby
dwirc has quit [Ping timeout: 276 seconds]
anay has quit [Remote host closed the connection]
anay has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
JZTech101 has joined #ruby
persand has quit [Quit: persand]
tkuchiki has joined #ruby
dwirc has joined #ruby
jlast has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
<Sp4rKy> anyone using Daemons gem ?
lyanchih has quit [Quit: lyanchih]
<Sp4rKy> can't find the way to share variables created before the daemon.run with the daemonized script
gyre008 has joined #ruby
nitrodex has quit [Quit: Bye]
camilasan has quit [Remote host closed the connection]
dwirc has quit [Ping timeout: 268 seconds]
nitrodex has joined #ruby
browndawg has joined #ruby
nitrodex is now known as Guest64259
jbhewitt_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 240 seconds]
Guest64259 has quit [Client Quit]
vlad_starkov has joined #ruby
javiferrer has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nitrodex has joined #ruby
hogeo_ has quit [Remote host closed the connection]
camilasan has joined #ruby
obs has joined #ruby
hogeo has joined #ruby
hogeo_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo_ has quit [Remote host closed the connection]
hogeo has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
osvico has quit []
dwirc has joined #ruby
LucidDreamZzZ has joined #ruby
niceguyjames has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vinnyOcean has joined #ruby
ij has quit [Quit: WeeChat 0.3.9.2]
poseid has joined #ruby
mklappstuhl has joined #ruby
dwirc has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
camilasan has quit [Remote host closed the connection]
epta has quit [Ping timeout: 252 seconds]
poseid has quit [Quit: poseid]
sailias has quit [Ping timeout: 240 seconds]
obs has quit [Quit: Konversation terminated!]
wmoxam has joined #ruby
dwirc has joined #ruby
justsee has joined #ruby
ldnunes has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
KevinSjoberg has joined #ruby
pedda has joined #ruby
<pedda> hi there
Guest11910 has quit [Ping timeout: 248 seconds]
Squarepy has joined #ruby
dwirc has quit [Ping timeout: 268 seconds]
lemonsparrow has quit [Ping timeout: 250 seconds]
gildo has joined #ruby
ntus1017 has quit [Remote host closed the connection]
jlast has joined #ruby
sk87 has joined #ruby
ybart has quit [Quit: ybart]
dwirc has joined #ruby
mark_locklear has joined #ruby
devoldmx3 has joined #ruby
cj3kim has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
Zeeraw has joined #ruby
and has joined #ruby
sambao21 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
Ortuna has left #ruby ["IRC Leave"]
epta has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
wsterling has quit [Remote host closed the connection]
devoldmx3 has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
devoldmx has joined #ruby
Fire-Dragon-DoL has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
graydot has quit [Quit: graydot]
Guest11910 has joined #ruby
Squarepy_ has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
ur5 has quit [Quit: WeeChat 0.3.6]
jbpros has joined #ruby
Guest34729 is now known as yebyen
devoldmx has quit [Ping timeout: 248 seconds]
hogeo has joined #ruby
devoldmx has joined #ruby
<and> Hi, can anyone help me get through a ssl problem. I have setup ssl on an apache server, but I still get certificate verify failed error. It seems like I've read every piece of information out there and I just can't solve this issue. I'm pretty new to ruby so maybe I just missed some detail, if anyone could help in anyway I would greatly appreciate it.
stunthamster has quit [Quit: Leaving...]
splittingred has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
Squarepy_ is now known as Squarepy
aaronmcadam has quit [Quit: Leaving...]
MrZYX|off is now known as MrZYX
r0bgleeson has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
r0bgleeson has joined #ruby
codesoda has quit [Remote host closed the connection]
splittingred has quit [Client Quit]
jorge has joined #ruby
jbpros has quit [Quit: jbpros]
crazymykl has joined #ruby
DaniG2k has quit [Quit: Leaving.]
Dekade has joined #ruby
<Dragos> HELLO
bitkiller has joined #ruby
<Dragos> can somebody help me out with an example or something that explains how to call a method from a super class in its child?
<r0bgleeson> you cant call a child method from the superclass
<r0bgleeson> you can call a parent method from a subclass
<Dragos> yes but how, if i want to overwrite it ?
<Zeeraw> And if you mean you want to call the superclass methods, they should all already be available in the child unless you've overridden them.
<and> No one?
<Dragos> please let me give an example
<Dragos> class Fo
<Dragos> def add
<Dragos> end
<Dragos> end
<r0bgleeson> >> class Parent; def foo; "hi"; end; end; class Child < Parent; def foo; super; end; end Child.new.foo
<eval-in> r0bgleeson => /tmp/execpad-d05d2b99a37a/source-d05d2b99a37a:2: syntax error, unexpected tCONSTANT, expecting keyword_end ... (https://eval.in/36271)
<r0bgleeson> >> class Parent; def foo; "hi"; end; end; class Child < Parent; def foo; super; end; end; Child.new.foo
<eval-in> r0bgleeson => "hi" (https://eval.in/36272)
krawchyk has joined #ruby
brennanMKE has joined #ruby
<Dragos> yes i've understood this but class Foo; def add; code_here;end; end; class Boo<Foo; def add; here_goes_the_call_to_super_class; more_code; end; end;
<Dragos> it does'n seem to work
<r0bgleeson> it should work
<r0bgleeson> just call super and add the extra code below it
cj3kim has joined #ruby
anay has quit [Remote host closed the connection]
<Dragos> well my question is with what should I replace "here goes the call to super_class method add"
<r0bgleeson> if you need return value of parent method, its foo = super; foo.do_something
sailias has joined #ruby
stunthamster has joined #ruby
noname001 has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<r0bgleeson> you should replace it with 'super'
<r0bgleeson> thats how you call the parent method
carloslopes has joined #ruby
ayaz has quit [Ping timeout: 246 seconds]
<Dragos> so in my case wold be class Boo<Foo ; def add ; Foo.add; "Hi"; end; end;
<Dragos> ?
queston has quit [Remote host closed the connection]
<r0bgleeson> no
<r0bgleeson> why are you ignoring what i say?
<r0bgleeson> first of all Foo is an instance method
<r0bgleeson> sorry, 'add' is an instance method
<r0bgleeson> you cant call it like that
<r0bgleeson> you use super
<Dragos> so in my case wold be class Boo<Foo ; def add ; super.add; "Hi"; end; end;
<Dragos> would that be correct?
<r0bgleeson> nope.
<r0bgleeson> super.add as far as syntax goes is correct
<r0bgleeson> but it calls add on the return value of the parent method
<r0bgleeson> so its not what you want
breakingthings has joined #ruby
fixl has quit [Remote host closed the connection]
anonymuse has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<r0bgleeson> 'super' is equivalent to calling 'add' on the parent class
<r0bgleeson> thats all you need
LucidDreamZzZ has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
asteve has joined #ruby
pipework has quit [Remote host closed the connection]
<r0bgleeson> 'super' is the method call to the parent class, you don't need to call anything on it for it to execute the parent method
jlast has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<Dragos> well let me explain better basically what I am trying to do is create an class Repository that has some methods like add remove , then i want to create another class Repository_in_file that uses exactly the same methods but adds something to them for example it does what Repository add method does but it also writes to file
KevinSjoberg has joined #ruby
<r0bgleeson> ive given you all the information i can
codecop has quit [Remote host closed the connection]
<Dragos> ok, thanks a lot for your time
maxmanders has joined #ruby
<r0bgleeson> sure
angusiguess has joined #ruby
mmitchell has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
sailias has quit [Quit: Leaving.]
noname001 has joined #ruby
jerius has joined #ruby
camilasan has joined #ruby
v0n has joined #ruby
devoldmx has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
bamdad has joined #ruby
Dragos has left #ruby ["Leaving"]
axl_ has quit [Quit: axl_]
kindjal has joined #ruby
ur5 has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ur5 has left #ruby ["WeeChat 0.3.6"]
sambao21 has joined #ruby
kasper has quit [Remote host closed the connection]
Snaggle has joined #ruby
kasper has joined #ruby
blackmesa has joined #ruby
kpshek has joined #ruby
relix has joined #ruby
fuzzyhorns has joined #ruby
ferr has quit [Remote host closed the connection]
atyz has joined #ruby
wmoxam has joined #ruby
b0oh has joined #ruby
Davey has joined #ruby
jorge has quit [Remote host closed the connection]
matchaw_ has quit [Ping timeout: 264 seconds]
gildo has quit [Remote host closed the connection]
matchaw has joined #ruby
cmarques has joined #ruby
thoolihan has joined #ruby
sailias has joined #ruby
davetherat has quit [Remote host closed the connection]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davetherat has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
machuga|away is now known as machuga
cj3kim has joined #ruby
jetblack has quit [Ping timeout: 246 seconds]
brennanMKE has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
axl_ has joined #ruby
anay has joined #ruby
failshell has joined #ruby
<Snaggle> Hi. Is there a way to run unittests on a not-yet installed ruby gem with ruby 1.9 or 2.0? So "download gem .. gem test foo.gem .. gem install foo.gem " ? gem check -t got removed after 1.8
burlyscudd has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
cha1tanya has quit [Ping timeout: 268 seconds]
locriani has quit [Ping timeout: 252 seconds]
pipework has joined #ruby
AlHafoudh has joined #ruby
rlb3 has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
jonathanwallace has quit [Ping timeout: 248 seconds]
fridim_ has quit [Quit: Leaving]
cofin has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
jbpros has joined #ruby
<r0bgleeson> Snaggle: not sure… some work was done on that a while ago, but i think it died.
<r0bgleeson> Snaggle: namely gemtesters.org, where on install participating gems would run the tests & post to that site.
<Snaggle> r0bgleeson: yes, I found rubygems-test, but it was last touched two years ago
<r0bgleeson> Snaggle: people seem to have opted for CI services instead
<r0bgleeson> Snaggle: by people i mean developers
<r0bgleeson> Snaggle: so i dont know a good way beyond fetch, unpack, cd, run tests
jlast has joined #ruby
<r0bgleeson> gem fetch, unpack are commands.
wsterling has joined #ruby
ybart has joined #ruby
<Snaggle> r0bgleeson: ok, thanks
zoon has joined #ruby
RobW_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
obs has joined #ruby
jlast has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
wsterling has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
julweber has joined #ruby
lyanchih has joined #ruby
quizme has joined #ruby
<quizme> for MRI, are most people using 1.9.3 these days?
<quizme> or 1.9.2 ?
<r0bgleeson> 1.9.3
DaniG2k has joined #ruby
<r0bgleeson> i recommend 2.0.0
<quizme> ok thank you
<r0bgleeson> but i think a lot of applications are stuck in 1.9 and probably migrate to 2.0 later
<r0bgleeson> since its still new
fmcgeough has joined #ruby
<quizme> i don't like being on the bleeding edge
<quizme> too much extra homework
RobW_ has quit [Quit: RobW_]
stunthamster has quit [Quit: Linkinus - http://linkinus.com]
jlast has quit [Ping timeout: 252 seconds]
philcrissman_ has quit [Remote host closed the connection]
D4T has joined #ruby
johnmilton has joined #ruby
zoon has quit [Quit: leaving]
<zets> 2.0.0 isn't that hugely different from 1.9.3, so updating really isn't too painful
s__dana has joined #ruby
maxmanders has joined #ruby
hogeo has quit [Ping timeout: 246 seconds]
D4T has quit [Client Quit]
ananthakumaran has quit [Quit: Leaving.]
maxmanders has quit [Client Quit]
niceguyjames has quit [Quit: Computer has gone to sleep.]
Guest11910 has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
cofin has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
codesoda has joined #ruby
wmoxam_ has joined #ruby
jerius_ has joined #ruby
enebo has joined #ruby
cj3kim has joined #ruby
asteve has joined #ruby
wargasm has joined #ruby
geggam has quit [Quit: Leaving]
DaniG2k has quit [Quit: Leaving.]
wmoxam has quit [Quit: leaving]
cofin has joined #ruby
wmoxam_ has quit [Client Quit]
wmoxam has joined #ruby
mupkoo has quit [Remote host closed the connection]
ColKurtz has joined #ruby
DaniG2k has joined #ruby
jerius has quit [Ping timeout: 252 seconds]
jbpros has quit [Quit: jbpros]
sambao21 has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
codesoda has quit [Ping timeout: 245 seconds]
v1n has joined #ruby
interactionjaxsn has joined #ruby
mnms_ has quit [Ping timeout: 248 seconds]
cj3kim has quit [Ping timeout: 252 seconds]
v0n has quit [Read error: Operation timed out]
ttt has quit [Remote host closed the connection]
and has quit [Quit: Leaving]
statarb3 has quit [Quit: Leaving]
boblu has quit [Quit: Leaving]
marcgg_ has joined #ruby
viszu has joined #ruby
enebo has quit [Quit: enebo]
generalissimo has joined #ruby
adamnbowen has joined #ruby
camilasan has quit [Remote host closed the connection]
baordog has joined #ruby
pipework has quit [Read error: Connection reset by peer]
brasten has joined #ruby
JMcAfreak has joined #ruby
dkannan has joined #ruby
therealnoop has quit [Ping timeout: 252 seconds]
marcgg has quit [Ping timeout: 264 seconds]
jibi has quit [Quit: .]
stunthamster has joined #ruby
dkannan has quit [Client Quit]
queston has joined #ruby
dkannan has joined #ruby
burlyscudd has quit [Quit: Leaving.]
jibi has joined #ruby
samuel02 has quit [Remote host closed the connection]
camilasan has joined #ruby
samuel02 has joined #ruby
mnms has joined #ruby
julweber has quit [Remote host closed the connection]
jefflyne has joined #ruby
blaxter has quit [Read error: Operation timed out]
banghouse2 is now known as banghouse
miclen has joined #ruby
Zai00 has joined #ruby
jbpros has joined #ruby
Jalada has quit [Ping timeout: 248 seconds]
lyanchih has quit [Quit: lyanchih]
bmurt has joined #ruby
D4T has joined #ruby
lindenle has joined #ruby
<dwirc> with activerecord migrations, does the class name in the migration have any bearing on the class name used in the app? That is, do I need to be concerned with class names in the migration file from the standpoint of functionality (ignoring long-term maintenance considerations)
wallerdev has joined #ruby
hydrozen has joined #ruby
eka has joined #ruby
<bmurt> good morning, im having issues compiling ruby 1.9.3 p194 w/ readline support during the initial ruby configure, make & make install on ubuntu 12.04 x64. i install both libreadline-gplv2-dev & libncurses5-dev via apt-get prior to running the configure, but i end up having to go into the ruby dir/ext/readline and run ruby extconf, etc.
ravster has joined #ruby
<bmurt> am i missing a package or is there an option i can include on my ./configure to point to where readline is?
DrCode has quit [Remote host closed the connection]
D4T has quit [Client Quit]
jlast has joined #ruby
BillCriswell has joined #ruby
verto has joined #ruby
tagrudev has quit [Remote host closed the connection]
Snaggle has left #ruby [#ruby]
Astral_ has joined #ruby
mary5030 has joined #ruby
braoru has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 256 seconds]
locriani has joined #ruby
Jalada has joined #ruby
mary5030_ has joined #ruby
DrCode has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pipework has joined #ruby
alex__c2022 has joined #ruby
mbotros has joined #ruby
ffranz has joined #ruby
marcgg has joined #ruby
Uranio has joined #ruby
rhys_ has joined #ruby
v1n has quit [Read error: Operation timed out]
sambao21 has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
freeayu3 has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
locriani has quit [Ping timeout: 268 seconds]
trepidaciousMBR has joined #ruby
pentameter has joined #ruby
marcgg_ has quit [Ping timeout: 252 seconds]
b0oh has quit [Quit: Leaving.]
<trepidaciousMBR> Just (re)starting looking at Ruby, I'm on 1.9.1, having trouble finding docs for digest MD5 stuff, any suggestions?
<_br_> bmurt: The lib is not installed in the /usr/lib /lib paths?
weldan_ has joined #ruby
blaxter has joined #ruby
b0oh has joined #ruby
ntus1017 has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
RobW_ has joined #ruby
D4T has joined #ruby
dmiller has joined #ruby
weldan has quit [Ping timeout: 245 seconds]
<trepidaciousMBR> I had a look on http://ruby-doc.org/ for 1.9.3, but it doesn't seem to think the MD5 stuff exists
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
Cyrus has quit [Quit: Cyrus.sleep()]
<trepidaciousMBR> Which is pretty much exactly no use?
huoxito has joined #ruby
norm has joined #ruby
<bmurt> _br_: the header files are in /usr/local/include
wolcanus has joined #ruby
<bmurt> i didn't see a readline dir in /usr/lib
locriani has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
jbpros has quit [Quit: jbpros]
dhruvasagar has joined #ruby
<trepidaciousMBR> MrZYX: Thanks :)
<bmurt> _br_: not in /lib either
zz_pinage404 has quit [Ping timeout: 245 seconds]
<trepidaciousMBR> I'm just trying to work out how to get the digest as binary data rather than hex encoded
emergion has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
ner0x has joined #ruby
<_br_> bmurt: you installed readline manually into /usr/local? Or was that via apt-get ?
<bmurt> via apt-get
anay has quit [Remote host closed the connection]
<MrZYX> trepidaciousMBR: just #digest
<trepidaciousMBR> MrZYX: Thanks :)
<_br_> bmurt: Well, seems to be a #ubuntu issue then. Ruby installer takes the stuff from the standard paths which should include readline libs/headers etc.
<bmurt> the odd thing is if i go into /usr/local/ruby1.9.3-p194 then into ext/readline
<bmurt> and run the install, it works
<_br_> bmurt: Ok, it might also be a ruby patchlevel issue. Did you try other rubies? 2.0?
locriani has quit [Remote host closed the connection]
pinage404 has joined #ruby
<bmurt> i did not simply because this is the version our app runs currently & staying consistent
Kruppe has joined #ruby
<bmurt> im wondering if its the libreadline package, 12.04 is kinda retarded and has numerous versions available
<_br_> bmurt: Did you try installing the stuff via rvm or rbenv? That might allow you to define the locations via --some-argument-rtfm ?
<bmurt> nah, we dont use either
RORgasm has joined #ruby
quizme has left #ruby ["Leaving"]
<bmurt> the libreadline-gplv2-dev is what gets installed along with libncurses & some other libs
<bmurt> im wondering if i should switch it to libreadline6
<_br_> sorry, please go and ask in #ubuntu for this. #ruby people run all kinds of distros so ubuntu specific advice might not be much here...
ananthakumaran has joined #ruby
roryhughes has joined #ruby
alpaca_taichou has joined #ruby
<roryhughes> What is the best way/gem to get all the words that begin with from my computers dictionary or one i supply
ZuzzleBuzzer has joined #ruby
<roryhughes> begin with a certain letter
vlad_starkov has joined #ruby
browndawg has joined #ruby
miclen has quit [Quit: Leaving]
tjbiddle has joined #ruby
codecop has joined #ruby
<_br_> roryhughes: Not sure what you try to accomplish here. maybe randexp gem ?
Davey has quit [Quit: Computer has gone to sleep.]
<roryhughes> Basically i want to be able to get a random word that begins with a given letter
D4T has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
<norm> is it just me, or does "bundle up <gemname>" update that gem's dependencies to the latest versions, regardless of what the gemspec specifies?
<MrZYX> norm: that's just you
robscomputer has joined #ruby
<hoelzro> roryhughes: if your dictionary is sorted, you could use binary search to find the range of words and use a random function to pick
robscomputer has quit [Remote host closed the connection]
<norm> MrZYX: my gemspec says sequel ~> 3.0, but when i do "gem up", it installs sequel 4.0.0
<Mon_Ouie> Yeah, I think I'd use that approach too
jprovazn has quit [Quit: Leaving]
<norm> MrZYX: not "gem install", updating an existing gem
robscomputer has joined #ruby
DaniG2k has quit [Quit: Leaving.]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
<roryhughes> Great and i just found that there is a file on Unix systems located in /usr/share/dict/words
<roryhughes> contains ALL the words
obs has quit [Quit: Konversation terminated!]
fredjean has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ciziar has joined #ruby
whowantstolivefo has quit [Quit: who wants to live forever ?]
jerius has joined #ruby
D4T has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
adamnbowen has quit [Ping timeout: 256 seconds]
rdark has quit [Ping timeout: 256 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
burlyscudd has joined #ruby
jerius_ has quit [Ping timeout: 256 seconds]
nbouscal has joined #ruby
<MrZYX> norm: as said, works over here
rdark has joined #ruby
<norm> MrZYX: looks like i've got another gem that specifies sequel >= 3.28.0
popl has joined #ruby
<norm> chasing them down now
rippa has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has quit [Changing host]
<MrZYX> at least bundler should handle that
<_br_> roryhughes: /p\w+/.gen -> randexp gem
generalissimo has quit [Remote host closed the connection]
<roryhughes> yup, thats what i was just trying
<roryhughes> Thanks, you guys are v. helpful
<_br_> it needs to be "real" words ?
<roryhughes> well, yes
<roryhughes> i have a dict file
froy has joined #ruby
kpshek has quit []
geggam has joined #ruby
ybart has quit [Quit: ybart]
zigomir has quit [Quit: zigomir]
lyanchih has joined #ruby
kasper has quit [Remote host closed the connection]
kevinykchan has joined #ruby
pentameter has quit [Quit: Leaving]
julweber has joined #ruby
banghouse is now known as InEssA
InEssA is now known as banghouse
sambao21 has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Remote host closed the connection]
<lectrick> Does anyone know of someone who provides a secure hosted IRC server service?
cj3kim has joined #ruby
ntus1017 has quit [Remote host closed the connection]
kevinykchan has quit [Read error: Connection reset by peer]
arya__ has joined #ruby
<_br_> lectrick: What do you mean by "secure hosted" ?
kpshek has joined #ruby
Judge has quit [Remote host closed the connection]
<lectrick> I mean that I can use any IRC software to connect to it, I need to authenticate to it somehow, it operates over SSL, and chat logs are only accessible to authenticated persons.
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
<lectrick> _br_ ^
samuel02 has quit [Ping timeout: 246 seconds]
kreisys has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 246 seconds]
arya_ has quit [Ping timeout: 248 seconds]
<_br_> lectrick: Run your own IRC service on a vps ?
<GeekOnCoffee> Run your own IRC service on a server in your home
RichardBaker has joined #ruby
<GeekOnCoffee> only way you're going to guarantee that the logs are only available to the people you want
<GeekOnCoffee> if it's logging, somebody at the VPS operator could get access to it
alpaca_taichou has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 256 seconds]
Kar- has quit [Remote host closed the connection]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nomenkun has joined #ruby
_seanc_ has joined #ruby
lindenle has joined #ruby
<_br_> well sure, if you are extremely paranoid that is the way to go. Nothing wrong with throwing that onto a small r-pi
Squarepy has quit [Remote host closed the connection]
sambao21 has joined #ruby
abstrusenick has joined #ruby
enebo has joined #ruby
ttt_ has joined #ruby
jprovazn has joined #ruby
ssvo has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
pen has joined #ruby
ntus1017 has joined #ruby
ckrailo has joined #ruby
cr3 has joined #ruby
<cr3> how does Ruby behave when I chain blocks iterating over iteams: [1,2,3].each { |x| do_something }.each { |y| do_something_else }...
<_br_> roryhughes: Btw. you can use randexp standard dicts, or you can easily provide your own... words = Randexp::Dictionary.load_dictionary.delete_if { |i| i[0] != "h" } ; p words[ rand( words.length - 1 ) ]
maxmanders has joined #ruby
gildo has joined #ruby
chrishough has joined #ruby
kaichanvong has joined #ruby
<_br_> cr3: What do you mean by "behave" ?
haxrbyte has joined #ruby
<roryhughes> That looks good but I've got this Randexp::Dictionary.words.grep(Regexp.new("^#{letter}")).sample
D4T has quit [Quit: Computer has gone to sleep.]
<_br_> yeah better
fmcgeough has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
ttt_ has quit [Ping timeout: 256 seconds]
<cr3> _br_: I think I just answered my question by trying it out: [1,2,3].each { |x| puts "x: #{x}" }.each { |y| puts "y: #{y}" }
generalissimo has joined #ruby
<_br_> cr3: you puzzle me
freestyl3r has joined #ruby
<cr3> _br_: I was wondering whether to expect x: 1, y: 1... or x:1, x: 2...
<_br_> I see
ssvo has quit [Ping timeout: 252 seconds]
DaniG2k has left #ruby [#ruby]
<MrZYX> never saw a need for that, iirc #each has no defined return value, so I wouldn't rely on that
momomomomo has joined #ruby
<freestyl3r> Hello. I come from a C background and i need help refactoring the following script i wrote http://collabedit.com/td835
<cr3> _br_: if you happen to have an explanation of how Ruby behaves internally to explain this behavior, I'd be really interested
wolcanus has quit [Remote host closed the connection]
<freestyl3r> It checks if a file with tokens exists and if not, instructs the user to go to a webpage, allow access to my app and enter the PIN from the site back to the program so i can exchange it with an access_token
<freestyl3r> Then i upload the picture (taken with 'scrot' utility) to the users album, put the direct link on clipboard, and show a system notification
<freestyl3r> If the access_token is expired (lasts only 60 mins) i use the refresh token i got from the first auth step to get a new one. I update the file i keep for later uses
dodosan has joined #ruby
samuel02 has joined #ruby
mahmoudimus has joined #ruby
<freestyl3r> i feel i should be using a class. i just don't know what's the best way to deal with instance variables, initialize method etc
deception has joined #ruby
acrussell has joined #ruby
jonahR has joined #ruby
acrussell has left #ruby [#ruby]
alex__c2022 has quit [Quit: alex__c2022]
<MrZYX> cr3: foo { bar }.baz and block = proc { bar }; foo(&block).baz are equivalent calls, you chain to the return value, not the block
tvw has quit []
<MrZYX> freestyl3r: find your objects, at least you got an AccessToken with a @lifetime, you got a RefreshToken and an Uploader
<MrZYX> your globals are actually constants
fredjean has quit [Quit: Computer has gone to sleep.]
gildo has quit [Ping timeout: 246 seconds]
ssvo has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
thetristan has joined #ruby
kadoo has joined #ruby
i_s has joined #ruby
nomenkun has quit [Remote host closed the connection]
dkannan has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
fredjean has joined #ruby
i_s has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
r0bby has quit [Read error: Connection reset by peer]
Solnse has joined #ruby
r0bby has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Shirakawasuna has joined #ruby
axeman- has quit [Remote host closed the connection]
Shirakawasuna has quit [Max SendQ exceeded]
kasper has joined #ruby
Shirakawasuna has joined #ruby
dodosan has joined #ruby
Kricir has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
i_s has joined #ruby
dmiller has joined #ruby
<hydrozen> Anyone used with rspec can tell me if theres a way I can rewrite those asserts using the shortcut it/its syntax? https://gist.github.com/hydrozen/5910379#file-gistfile1-rb-L29-L34
pothibo has joined #ruby
cj3kim has joined #ruby
alex__c2022 has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
<lectrick> _br_ I suppose that's an option... http://www.codeography.com/2012/09/23/howto-irc-server.html
JumpMast3r has quit [Quit: JumpMast3r]
kadoo has quit [Quit: Textual IRC Client: www.textualapp.com]
machuga is now known as machuga|away
mikepack has joined #ruby
ebobby has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
jbueza has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
geggam has quit [Remote host closed the connection]
jbueza has quit [Client Quit]
Kricir has quit [Ping timeout: 256 seconds]
Kricir has joined #ruby
gildo has joined #ruby
cj3kim has quit [Ping timeout: 246 seconds]
wildcard0 has quit [Ping timeout: 256 seconds]
xeviox has joined #ruby
kevinykchan has joined #ruby
<xeviox> hi, I try to install "ruby-debug" in "ruby 2.0.0" but gem fails to build native extensions... Any ideas?
Ziarkaen has joined #ruby
<xeviox> couldn't find anything helpful, but I'm a ruby novice..
wildcard0 has joined #ruby
wolcanus has joined #ruby
momomomomo has quit [Quit: momomomomo]
<_br_> xeviox: pastie with output?
obs has joined #ruby
<xeviox> ah, seems linecache was the problem, one moment
chrishough has quit [Quit: chrishough]
<ericwood> yeah, that error could be anything
ebobby has quit [Ping timeout: 276 seconds]
Ortuna has joined #ruby
<_br_> lectrick: Yes, probably. Znc is good, I use it here as well with Irssi and Bitlbee.
<xeviox> I'm on Znc, too ..
<Ziarkaen> I need an idiomatic way to test if today is the Friday of every 4th week.
<ericwood> xeviox: can you paste /home/ben/.gem/ruby/2.0.0/gems/linecache-0.46/ext/mkmf.log?
<ericwood> assuming that's where mkmf.log is :\
<Ziarkaen> I'm using Date.today.friday? for my weekly test, which is great, however I'd like a 4-weekly one
<xeviox> erichmenge: there is no mkmf.log: http://pastie.org/8103771
<_br_> Actually it says in the first pastie "Can't handle 1.9.x yet"
tjbiddle_ has joined #ruby
nomenkun has joined #ruby
<xeviox> yes, I'm on 2.0.0
<Ziarkaen> Can anyone do better than Time.now.strftime('%U').to_i % 4 and Date.today.friday?
<xeviox> so there is no ruby-debug for 2.0.0 yet?
<xeviox> Ziarkaen: the problem is, that you have to specify the 4th week from when.. imho
<_br_> xeviox: no that is for linecache gem
<Ziarkaen> xeviox, I'm not concerned about the shift, just the 4-weekly frequency
hydrozen has quit [Remote host closed the connection]
<xeviox> _br_: ok, but linecache is pulled from ruby-debug so it will fail on 2.0.0 if linecache is not present..
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
brennanMKE has joined #ruby
<xeviox> Ziarkaen: sure, but how to recognize if it is the 4th week ?
hydrozen has joined #ruby
<Ziarkaen> I'm also concerned that Date.today.cweek != Time.now.strftime('%U').to_i ... :/
mikepack has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<xeviox> Ziarkaen: maybe you could define some startdate, then subtract that from the current date and check if the number of weeks is dividable by 4 without rest
<_br_> xeviox: Try gem byebug instead. Its the standard debugger for 2.0
<terrellt> xeviox: Look at debugger - should have support for ruby 2
<xeviox> _br_: ok thanks
<Solnse> anybody know of a browser plugin that would allow me to step through and identify javascript calls on a webpage? I'm trying to identify a final call, bypassing the previous ones and just pass the required info to the final post.
chrishough has joined #ruby
Ortuna has quit [Ping timeout: 256 seconds]
<Ziarkaen> xeviox, I think week_num % 4 == 0 is a simpler expression.
havenwood has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<xeviox> Ziarkaen: yes ^^
zmike123 has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
Ortuna has joined #ruby
julweber has quit [Remote host closed the connection]
colonolGron has joined #ruby
brennanMKE has quit [Ping timeout: 256 seconds]
krainboltgreene has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
yxhuvud2 has quit [Quit: Nettalk6 - www.ntalk.de]
kil0byte has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
arya__ is now known as arya_
zeromodulus has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
Appineer has joined #ruby
<xeviox> hmm, just want to try eclipse with the DLTK and ruby plugin. It allows 3 debuggers "ruby-debug -> not installable, ActiveState -> RoR?, Native Ruby Debugger -> crashes with an error", seems like I'm out of luck :(
dagobah has quit [Remote host closed the connection]
<xeviox> just in case someone is interested in the error: http://pastie.org/8103807
stunthamster has quit [Quit: Linkinus - http://linkinus.com]
akemrir has quit [Quit: WeeChat 0.4.1]
ferdev has joined #ruby
lindenle has joined #ruby
Kar- has joined #ruby
tcgden1 has joined #ruby
yxhuvud has joined #ruby
ravster has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
cha1tanya has joined #ruby
anay has joined #ruby
angusiguess has joined #ruby
maxmanders has joined #ruby
Guest66476 is now known as Niichan
Niichan has quit [Changing host]
Niichan has joined #ruby
dhruvasagar has joined #ruby
krz has quit [Quit: krz]
macmartine has joined #ruby
maxmanders has quit [Client Quit]
mikecmpbll has joined #ruby
<trepidaciousMBR> If s is a String of arbitrary bytes, are both s.length and s.size the number of bytes?
thetristan_ has joined #ruby
krisfremen has quit [Ping timeout: 256 seconds]
thetristan has quit [Ping timeout: 252 seconds]
thetristan_ is now known as thetristan
<trepidaciousMBR> ohh, bytesize I guess?
RichardBaker has joined #ruby
twoism has joined #ruby
nomenkun has quit [Remote host closed the connection]
krisfremen has joined #ruby
niceguyjames has joined #ruby
razi has quit [Quit: Leaving.]
burlyscudd has joined #ruby
niceguyjames has quit [Client Quit]
<trepidaciousMBR> Ok going back a stage, I am using https://github.com/codekitchen/ruby-protocol-buffers to encode something to protobuf format, which gives me a String, I assume it is just the encoded bytes in protocol buffer format, and I need to work out how many bytes are in it...
nomenkun has joined #ruby
sayan has joined #ruby
LucidDreamZzZz has joined #ruby
Devo has joined #ruby
Niichan has quit [Remote host closed the connection]
Rylai has quit [Remote host closed the connection]
erry is now known as errylien
niceguyjames has joined #ruby
brennanMKE has joined #ruby
girija has joined #ruby
jonathanwallace has joined #ruby
thetristan has quit [Ping timeout: 252 seconds]
thetristan has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 240 seconds]
anay has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 246 seconds]
jonahR has quit [Quit: jonahR]
sambao21 has joined #ruby
fschuindt has joined #ruby
KhalilC has quit [Ping timeout: 256 seconds]
banjara has joined #ruby
timonv has quit [Remote host closed the connection]
zai has quit [Quit: Leaving]
ravster has joined #ruby
geggam has joined #ruby
maxmanders has joined #ruby
KhalilC has joined #ruby
graydot has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
jonahR has joined #ruby
anay has joined #ruby
elea-m has joined #ruby
lurch_ has quit [Quit: lurch_]
girija has left #ruby ["Ex-Chat"]
jonahR has quit [Client Quit]
YaNakilon has quit [Ping timeout: 246 seconds]
elea-m has left #ruby [#ruby]
YaNakilon has joined #ruby
andikr has quit [Remote host closed the connection]
julweber has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ghr has quit [Quit: Computer has gone to sleep.]
senayar has quit [Remote host closed the connection]
ericmathison has joined #ruby
roryhughes has quit [Quit: roryhughes]
nari has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
poga has joined #ruby
Mattx has quit [Ping timeout: 252 seconds]
ritz234 has joined #ruby
cads has quit [Ping timeout: 252 seconds]
<ritz234> hi
<trepidaciousMBR> hi
haxrbyte has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
scrollback has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<trepidaciousMBR> How can I write a single byte to a File?
scrollback has joined #ruby
freestyl3r has quit [Quit: WeeChat 0.4.1]
dodosan has quit [Remote host closed the connection]
demet8 has quit [Quit: demet8]
Rylai has joined #ruby
noname001 has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
nomenkun has quit [Remote host closed the connection]
demet8 has joined #ruby
ritz234 has quit []
Niichan has joined #ruby
samuel02 has quit [Remote host closed the connection]
Niichan is now known as Guest78540
dodosan has joined #ruby
browndawg has quit [Ping timeout: 268 seconds]
Guest78540 has quit [Remote host closed the connection]
r4nd0m1 has joined #ruby
chrisja has joined #ruby
n11chan has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
kpshek has quit []
zeade has joined #ruby
mityaz has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
ebobby has joined #ruby
predator117 has joined #ruby
aboudreault has quit [Read error: Operation timed out]
n11chan is now known as Niichan
binaryplease has quit [Ping timeout: 252 seconds]
Niichan is now known as Guest77473
sarkis has joined #ruby
thoolihan has quit [Quit: thoolihan]
m8 has joined #ruby
Krajsnick has joined #ruby
aboudreault has joined #ruby
aboudreault has joined #ruby
aboudreault has quit [Changing host]
anay has quit [Remote host closed the connection]
io_syl has joined #ruby
Appineer has quit [Remote host closed the connection]
niklasb has joined #ruby
timonv has joined #ruby
ebobby has quit [Ping timeout: 252 seconds]
_ffio_ has joined #ruby
enebo has quit [Quit: enebo]
ffio_ has quit [Ping timeout: 248 seconds]
Olipro has joined #ruby
Ortuna has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
axl_ has quit [Read error: Operation timed out]
Deele has quit [Ping timeout: 240 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
slcres has quit []
Hobogrammer_ has joined #ruby
Ortuna has joined #ruby
cads has joined #ruby
errylien is now known as erry
sayan has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Ping timeout: 246 seconds]
kpshek has joined #ruby
wimplash has joined #ruby
axl_ has joined #ruby
anay has joined #ruby
jonathanwallace has quit [Ping timeout: 268 seconds]
danslo has quit [Ping timeout: 246 seconds]
kasper has quit [Remote host closed the connection]
danslo has joined #ruby
x1337807x has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
doodlehaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cofin has quit [Quit: cofin]
harrymoreno has joined #ruby
jonahR has joined #ruby
iamjbecker has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jonahR has quit [Client Quit]
PhatBaja has joined #ruby
jonahR has joined #ruby
kasper has joined #ruby
jonahR has quit [Client Quit]
rupee has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
doodlehaus has quit [Remote host closed the connection]
wimplash has quit [Quit: Leaving...]
PhatBaja has quit [Client Quit]
jonathanwallace has joined #ruby
fess has joined #ruby
graydot has quit [Quit: graydot]
kevinykc_ has joined #ruby
cj3kim has joined #ruby
Squarepy has joined #ruby
kevinykchan has quit [Ping timeout: 252 seconds]
<YaNakilon> trepidaciousMBR smth like File.open("myfile", "wb"){ |f| f.write "\x55" }
fschuindt has quit [Quit: Computer has gone to sleep.]
mengu has quit [Quit: Leaving]
robscomputer has quit [Ping timeout: 256 seconds]
Es0teric has joined #ruby
<trepidaciousMBR> YaNakilon: Thanks, is it equivalent to use something like 85.chr instead of "\x55"?
viszu has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
jeremy_c has quit [Quit: Disconnecting from stoned server.]
northelks has quit [Ping timeout: 252 seconds]
jeremy_c_ has joined #ruby
havenwood has quit [Remote host closed the connection]
tommyvyo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
kasper has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
cj3kim has quit [Ping timeout: 246 seconds]
Shirakawasuna has quit [Read error: Operation timed out]
ForSpareParts has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
arietis has quit [Quit: arietis]
tmosh has joined #ruby
ravster has quit [Ping timeout: 256 seconds]
<tmosh> Could anyone recommend any good online tutorials for learning ruby? I would like to learn how to use ruby to make web applications.
gyre008 has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
burlyscudd has joined #ruby
demet8 has quit [Quit: demet8]
gyre007 has joined #ruby
fomatin has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<Devo> tmosh: codecademy.com, http://ruby.learncodethehardway.org/
kil0byte has joined #ruby
bamdad has quit [Quit: bamdad]
jonahR has joined #ruby
JumpMast3r has joined #ruby
jonahR has quit [Client Quit]
banjara has quit [Quit: Leaving.]
jonahR has joined #ruby
DonRichie has joined #ruby
adeponte has joined #ruby
<slash_nick> pontiki_: is that a ruby tutorial or a rails tutorial?
<pontiki_> rails
fomatin has quit [Client Quit]
jonahR has quit [Client Quit]
<unstable> tmosh: I strongly recommend these exercises: https://github.com/alexch/learn_ruby
deception has quit [Quit: Goodbye]
Deele has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cads has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
<YaNakilon> recommend me tutorial how to make pythonic collegues move to ruby
nbouscal has quit [Ping timeout: 252 seconds]
harrymoreno has quit [Ping timeout: 268 seconds]
spider-mario has joined #ruby
robscomputer has joined #ruby
djbkd has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
demet8 has joined #ruby
robscomputer_ has joined #ruby
ner0x has quit [Ping timeout: 268 seconds]
robscomputer_ has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
harrymoreno has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
max__ has joined #ruby
Guest77473 is now known as Niichan
danCe- has quit [Ping timeout: 256 seconds]
Niichan has quit [Changing host]
Niichan has joined #ruby
max__ is now known as Guest28326
ebobby has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
RobW_ has quit [Quit: RobW_]
robscomputer has quit [Ping timeout: 268 seconds]
robscomputer has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
Ortuna has quit [Ping timeout: 264 seconds]
ravster has joined #ruby
robscomputer has joined #ruby
Dekade has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
robscomputer_ has joined #ruby
Ortuna has joined #ruby
xeviox has left #ruby ["Leaving"]
r0bby is now known as robbyoconnor
splittingred has joined #ruby
iamjbecker has quit [Remote host closed the connection]
peta_ has joined #ruby
mcpierce is now known as mcknucklehead
aces1up23 has joined #ruby
aces1up has quit [Ping timeout: 246 seconds]
iamjbecker has joined #ruby
robscomputer has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
Drakevr has quit [Ping timeout: 260 seconds]
Drakevr has joined #ruby
DestinyAwaits has quit [Quit: Leaving]
halfie is now known as halfie|zzz
cj3kim has joined #ruby
jonahR has joined #ruby
c0rn has joined #ruby
elaptics is now known as elaptics`away
nomenkun has joined #ruby
anay has quit [Remote host closed the connection]
aMoniker has joined #ruby
<aMoniker> What is this doing? config.vm.network :private_network, ip: "127.0.0.1"
vinnyOcean has quit [Quit: Textual IRC Client: www.textualapp.com]
<aMoniker> Is that a function call?
dmiller has joined #ruby
<aMoniker> I don't know ruby
DanKnox_away is now known as DanKnox
hydrozen has joined #ruby
kasper has joined #ruby
<aMoniker> Is that setting config.vm.network to be a tuple?
<MrZYX> that's calling the vm method on the object in config, and the network method with the symbol :private_network and the hash {ip: "127.0.0.1"} as parameters, on the return value
cj3kim has quit [Read error: Connection reset by peer]
mcknucklehead is now known as mcpierce
<Morrolan> config.vm().network(:private_network, { ip: '127.0.0.1' }) if you were to add brackets.
jonathanwallace has quit [Ping timeout: 248 seconds]
<aMoniker> Morrolan, MrZYX: Ah, that makes more sense - thank you.
chrishough has quit [Quit: chrishough]
browndawg has joined #ruby
adeponte has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
<Morrolan> :)
stkowski has joined #ruby
<YaNakilon> pontiki_ 404 (
colonolGron has quit [Ping timeout: 264 seconds]
interactionjaxsn has joined #ruby
atyz has quit [Quit: Leaving...]
<pontiki_> just so
danslo has quit [Quit: danslo]
<aMoniker> Morrolan: So I take it objects (or dicts, or similar structures) aren't accessed with.a.dot.syntax?
<aMoniker> or... function calls are implicit when that happens?
dhruvasagar has quit [Ping timeout: 256 seconds]
danslo has joined #ruby
<MrZYX> no, rubies default hash doesn't support that syntax, that are always methods calls
dmiller has quit [Ping timeout: 248 seconds]
mars__ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aMoniker> ah, cool
<MrZYX> but then ruby allows you to define methods for most operators on your objects
<MrZYX> so you can totally build a custom hash class that shows that behaviour
<aMoniker> ah, interesting
LucidDreamZzZz has quit [Quit: Leaving]
interactionjaxsn has quit [Ping timeout: 256 seconds]
jbpros has joined #ruby
colonolGron has joined #ruby
thoolihan has joined #ruby
saarinen has joined #ruby
cj3kim has joined #ruby
kirun has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
blaxter has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
kasper has quit [Ping timeout: 240 seconds]
<cr3> how can I try to require a gem and, if it doesn't exist, install it automatically? I know this is probably not recommended but I have a special case
<MrZYX> rescue LoadError
caveat- has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
<cr3> MrZYX: and then %x{gem install ...} or is there a ruby call for this?
tcgden1 has quit [Quit: Leaving]
<MrZYX> there's probably something to call in Rubygems
<MrZYX> that won't update the load path of the running script though
caveat- has joined #ruby
<cr3> MrZYX: yeah, I've seen some code do: Gem.clear_paths
brasten has quit [Quit: brasten]
brennanMKE has joined #ruby
cads has joined #ruby
rezzack has joined #ruby
ewag_ has joined #ruby
brasten has joined #ruby
lurch_ has joined #ruby
LucidDreamZzZ has joined #ruby
<MrZYX> I guess using Kernel#gem would work too
marr has quit [Ping timeout: 256 seconds]
Al__ has quit [Quit: Al__]
tommyvyo has quit [Quit:]
machuga|away is now known as machuga
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno_ is now known as harrymoreno
julweber has quit [Remote host closed the connection]
ewag has quit [Ping timeout: 240 seconds]
<cr3> MrZYX: isn't Kernel#gem defined as private in that file?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sayan has joined #ruby
cads has quit [Ping timeout: 246 seconds]
<MrZYX> doesn't matter, Kernel is included everywhere
jbpros has quit [Read error: Connection reset by peer]
atyz has joined #ruby
jbpros has joined #ruby
dsabanin has joined #ruby
aMoniker has left #ruby [#ruby]
kpshek has quit []
ToApolytoXaos has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
angusiguess has quit [Quit: Reconnecting]
angusiguess has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
lurch_ has quit [Quit: lurch_]
theRoUS has quit [Ping timeout: 240 seconds]
grillermo has joined #ruby
Guest28326 has quit [Ping timeout: 245 seconds]
peta__ has joined #ruby
eldariof has joined #ruby
harrymoreno_ has joined #ruby
kpshek has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
mikepack has quit [Remote host closed the connection]
iamjbecker has quit [Remote host closed the connection]
peta_ has quit [Read error: Operation timed out]
rdark has quit [Quit: leaving]
bamdad has joined #ruby
iamjbecker has joined #ruby
jbpros has quit [Ping timeout: 264 seconds]
iamjbecker has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Ping timeout: 256 seconds]
iamjbecker has joined #ruby
jenhsun has joined #ruby
devoldmx has joined #ruby
b0oh has quit [Quit: Leaving.]
Krajsnick has quit [Remote host closed the connection]
PhatBaja has joined #ruby
jenhsun has quit [Remote host closed the connection]
CaptainJet has joined #ruby
obs has quit [Quit: Konversation terminated!]
danslo has quit [Quit: danslo]
mikepack has joined #ruby
sambao21 has joined #ruby
cofin has joined #ruby
brasten has quit [Read error: Connection reset by peer]
sambao21 has quit [Client Quit]
brasten has joined #ruby
fomatin has joined #ruby
nbouscal has joined #ruby
maxmanders has joined #ruby
interactionjaxsn has joined #ruby
b0oh has joined #ruby
Appineer has joined #ruby
b0oh has left #ruby [#ruby]
bamdad has quit [Quit: bamdad]
harrymoreno_ has joined #ruby
<metallisto> re
dodosan has quit [Remote host closed the connection]
jeffreylevesque has quit [Remote host closed the connection]
dodosan has joined #ruby
sambao21 has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
futilegames has quit [Quit: futilegames]
freezey has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has joined #ruby
ravster has left #ruby [#ruby]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adeponte has joined #ruby
mbotros has quit [Ping timeout: 252 seconds]
doritostains has joined #ruby
burlyscudd has quit [Quit: Leaving.]
robscomputer has joined #ruby
jerius_ has joined #ruby
Jackneill has joined #ruby
Jackneill has joined #ruby
jerius has quit [Read error: Operation timed out]
cj3kim has quit [Read error: Connection reset by peer]
DanKnox is now known as DanKnox_away
cj3kim has joined #ruby
elux has joined #ruby
rickruby has joined #ruby
icole has joined #ruby
bamdad has joined #ruby
robscomputer_ has quit [Ping timeout: 246 seconds]
RobW_ has joined #ruby
MrThePlague has quit [Ping timeout: 268 seconds]
cha1tanya has quit [Quit: Leaving]
cj3kim has quit [Read error: Connection reset by peer]
dodosan has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Guga_ has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
leonidlm has joined #ruby
cj3kim has joined #ruby
axeman- has joined #ruby
Nisstyre-laptop has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
icole has quit [Remote host closed the connection]
ner0x has joined #ruby
bamdad has quit [Quit: bamdad]
Guga_ has quit [Remote host closed the connection]
Guga_ has joined #ruby
mbotros has joined #ruby
timonv has joined #ruby
dmiller has joined #ruby
ZuzzleBuzzer has joined #ruby
miskander has joined #ruby
aramus_ has joined #ruby
agjacome has joined #ruby
<aramus_> Hello, is there a way to use ruby variables when running a bash script using backticks?
RobW_ has quit [Ping timeout: 252 seconds]
<havenwood> aramus_: interpolate with #{}
<aramus_> Thanks!
sambao21 has joined #ruby
DanKnox_away is now known as DanKnox
<matled> I hope you know about the security implications of passing arbitrary strings to sh -c (what runs for you)
yekta has joined #ruby
iamjbecker has quit [Remote host closed the connection]
dodosan has joined #ruby
RobW_ has joined #ruby
dward has joined #ruby
iamjbecker has joined #ruby
<pontiki_> nothing like tainted data
ananthakumaran has quit [Quit: Leaving.]
dmiller has quit [Ping timeout: 248 seconds]
<havenwood> anyone actually use #taint?
ixti has joined #ruby
aramus_ has left #ruby [#ruby]
<pontiki_> actually, i never have
ananthakumaran has joined #ruby
Xeago has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
jesse__ has joined #ruby
dodosan has joined #ruby
Ziarkaen` has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
AlHafoudh has joined #ruby
browndawg has joined #ruby
theRoUS has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Client Quit]
Ziarkaen has quit [Ping timeout: 256 seconds]
ntus1017 has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
JZTech101 has joined #ruby
krnflake has quit [Ping timeout: 256 seconds]
Nisstyre-laptop is now known as Nisstyre
jesse__ has quit [Client Quit]
rickruby has quit [Remote host closed the connection]
jerius has joined #ruby
mbotros has quit [Ping timeout: 256 seconds]
jerius_ has quit [Ping timeout: 256 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
relix has joined #ruby
mityaz has quit [Quit: See ya!]
pentameter has joined #ruby
romockee has joined #ruby
futilegames has joined #ruby
marr has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<colonolGron> i installed todo-txt via "gem install todo-txt" and want to load it with "require 'todo-txt'" in my ruby script. but i get an error "cannot load such file". how can i solve this?
DanKnox is now known as DanKnox_away
Ortuna has quit [Quit: Computer has gone to sleep.]
<ner0x> How can I capture the number at the end of a string such as string_(1) ?
<ner0x> And increment it.
Yvemath has joined #ruby
jonathanwallace has joined #ruby
<slash_nick> ner0x: string.split("_")[-1] + 1
<MrZYX> colonolGron: what ruby version?
<slash_nick> oh, is it in the (), sorry
zeromodulus has quit [Remote host closed the connection]
RORgasm has quit [Read error: Connection reset by peer]
krnflake has joined #ruby
RORgasm has joined #ruby
<slash_nick> ner0x: string.split("(")[-1].chomp(")") + 1 # lol
<colonolGron> MrZYX: 1.9.3p374
thoolihan has quit [Quit: thoolihan]
<MrZYX> hm, works for me
adeponte has quit [Remote host closed the connection]
workmad3 has joined #ruby
DanKnox_away is now known as DanKnox
<colonolGron> mhh i am experimenting with "gli" (reading the book "building awesome cmdline apps in ruby") and now i realize gli uses something called "bundler"
browndawg has quit [Ping timeout: 252 seconds]
<MrZYX> ah, then you need to add it to your Gemfile
<MrZYX> and run bundle install
denver has quit [Read error: Connection reset by peer]
<colonolGron> mhh
<MrZYX> >> "string_(1)".gsub(/_\((\d+)\)$/) { "_(#{$1.to_i+1})" }
<eval-in> MrZYX => "string_(2)" (https://eval.in/36332)
BizarreCake has quit [Ping timeout: 248 seconds]
<MrZYX> ner0x: slash_nick ^
_ffio_ is now known as ffio
nfk has quit [Quit: yawn]
MrThePlague has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
axl_ has quit [Ping timeout: 246 seconds]
<BrianJ> I need to loop through a bunch of directories and find config.xmls and then do token replaces on them.. how would i do this? Currently i have: http://pastie.org/8104300
thoolihan has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
Appineer has left #ruby [#ruby]
DanKnox is now known as DanKnox_away
<colonolGron> thanks MrZYX
<slash_nick> MrZYX: that is both uggly and cool
axl_ has joined #ruby
<MrZYX> BrianJ: Not sure why you do ::File.join (the ::) and there's a File.write but looks sane to me otherwise
<slash_nick> i like it
<slash_nick> didn't know gsub took a block like that... very cool
rh1n0 has joined #ruby
<MrZYX> iirc it also yields the MatchData to it
<slash_nick> it does :)
<BrianJ> using the join because I'm using an variable for c:\tomcat and i wanted to make it easier for you guys to follow
<BrianJ> whats wrong with the file.write?
<MrZYX> there's File.write, capital F, like File.read, I prefer that for single writes
<MrZYX> and I'm not sure why you do ::File.join instead of File.join
<ner0x> slash_nick: https://gist.github.com/5912170 <--- sane?
grillermo has quit [Quit: bandtastic.me]
<MrZYX> ner0x: you can safe the if
<MrZYX> if the regex doesn't match, the gsub is noop
ryannielson has joined #ruby
<MrZYX> and gsub yields the matchdata, so I'd prefer to use that over $~
tommyvyo has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
teoric has joined #ruby
<ner0x> MrZYX: Fix and show? :)
<MrZYX> hm
<MrZYX> can we assume the numer is unique in the string?
<MrZYX> no we can't.... hmm, but (n) might be unique?
<BrianJ> er should just be File.join
<BrianJ> good point
<ner0x> No. We can only assume it's at the end of the file. If the users uploads something called File(1).jpg this will be put to File(2).jpg
pothibo has quit [Quit: pothibo]
ravster has joined #ruby
chiel_ has joined #ruby
chiel has quit [Quit: leaving]
browndawg has joined #ruby
chiel_ is now known as chiel
jds_ has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
s__dana has quit [Quit: s__dana]
teoric has quit [Quit: Čø!]
timonv has quit [Remote host closed the connection]
ravster has quit [Ping timeout: 256 seconds]
<MrZYX> so we need to expect input like "Foo(1) bar (2).png" ?
<MrZYX> or more importantly "Foo(1) bar (1).png"
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
burlyscudd has joined #ruby
s__dana has joined #ruby
slash_nick is now known as slash_lunch
burlyscudd has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
icole has joined #ruby
<BrianJ> with my job_config, for some reason it's not evaluating the **
chichou has quit [Remote host closed the connection]
<BrianJ> meaning its not grabbing all 10 config.xml's from different directories
<BrianJ> any idea why?
aqil has joined #ruby
tanathos has joined #ruby
peta__ has quit [Quit: peta__]
dodosan has quit [Ping timeout: 276 seconds]
ewag has joined #ruby
theRoUS has joined #ruby
MrThePlague has quit [Remote host closed the connection]
tonini has joined #ruby
burlyscudd has joined #ruby
ewag_ has quit [Remote host closed the connection]
dward has quit [Ping timeout: 248 seconds]
Ziarkaen` has quit [Ping timeout: 240 seconds]
jds_ has quit [Remote host closed the connection]
dward has joined #ruby
<ner0x> MrZYX: Yes. So that's why I just make it match /\(\d+)\)\z/.
Zai00 has joined #ruby
<MrZYX> just hoped one could reuse the regex in the if to do the replacement
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
saarinen has quit [Quit: saarinen]
s__dana has quit [Quit: s__dana]
pootler has quit [Quit: leaving]
<ner0x> MrZYX: Extra few lines never killed anybody.
<ner0x> MrZYX: Except the OCD but they had it coming.
* ner0x jokes because he has slight OCD. :-)
<talntid> anyone in/around spokane looking for ruby work? :)
niceguyjames has joined #ruby
colonolGron has quit [Ping timeout: 246 seconds]
<DylanJ> talntid: on an island in canada close to washington..
wargasm1 has joined #ruby
<DylanJ> :>
AlHafoudh has quit [Quit: Textual IRC Client: www.textualapp.com]
ravster has joined #ruby
wargasm has quit [Ping timeout: 240 seconds]
maxmanders has joined #ruby
axl_ has quit [Ping timeout: 246 seconds]
<talntid> DylanJ, move here! :)
RichardBaker has quit [Quit: RichardBaker]
aces1up23 has quit []
viszu has joined #ruby
<DylanJ> but island life is the life for me
<talntid> we can put you on in island in the middle of the lake :)
<talntid> or get a floaty thing and put it in a swimming pool
tatsuya_o has joined #ruby
<DylanJ> there's also the whole problem of getting a visa
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<pontiki_> BrianJ: my first question is does that '**' thing work on windows
<talntid> this is America - that seems unnecessary now.
<talntid> ;)
browndawg has quit [Ping timeout: 256 seconds]
<BrianJ> pontiki: Isn't ruby doing the work there? Shouldnt it be figuring it out for windows?
<pontiki_> dunno
_Andres has joined #ruby
<pontiki_> it's odd tho
<pontiki_> see what you get with Dir[File.join(... your join string)]
<pontiki_> should be an array of all the matches
RichardBaker has joined #ruby
RobW_ has quit [Quit: RobW_]
Uranio has quit [Quit: while you reading this, a kitty dies]
ryannielson has left #ruby [#ruby]
Uranio has joined #ruby
thoolihan has quit [Quit: thoolihan]
rh1n0 has quit [Quit: -- I'm out --]
RichardBaker has quit [Client Quit]
x1337807x has joined #ruby
cads has joined #ruby
RichardBaker has joined #ruby
<_bart_> Hi there
chrisja has quit [Quit: leaving]
<_bart_> where do I find docs about rb_define_module_function?
krawchyk has quit [Remote host closed the connection]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
zmike123 has quit [Ping timeout: 256 seconds]
ukd1 has joined #ruby
ravster has quit [Ping timeout: 276 seconds]
ddm has joined #ruby
sethetter has joined #ruby
<sethetter> Say I have two systems (lab and production) that I need ruby installed on. The production system has no compilers. Is it viable to precompile on the lab server and carry the binary over to production?
tonini has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
<MrZYX> I'd look into building a custom package
rippa has quit [Ping timeout: 248 seconds]
alex__c2022_ has joined #ruby
rfizzle has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
alex__c2022 has quit [Ping timeout: 276 seconds]
alex__c2022_ is now known as alex__c2022
ravster has joined #ruby
browndawg has joined #ruby
kil0byte has quit [Ping timeout: 246 seconds]
thoolihan has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dsabanin has quit [Quit: Leaving...]
wargasm has joined #ruby
thoolihan has quit [Client Quit]
sambao21 has joined #ruby
wargasm1 has quit [Ping timeout: 246 seconds]
dsabanin has joined #ruby
adelcampo has joined #ruby
Bry8Star{T2_ has joined #ruby
adelcampo has quit [Client Quit]
Kricir has quit [Ping timeout: 256 seconds]
adelcampo has joined #ruby
RobW_ has joined #ruby
sambao21 has quit [Client Quit]
brasten has quit [Ping timeout: 256 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
harrymoreno has quit [Ping timeout: 246 seconds]
<_bart_> What is the C equivalent of this ruby code/loop: https://gist.github.com/bartolsthoorn/6f98ed1f5c4933fd0e61
adelcampo has quit [Client Quit]
krainboltgreene has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
ravster has quit [Ping timeout: 256 seconds]
romockee has quit [Quit: romockee]
brasten has joined #ruby
colonolGron has joined #ruby
cj3kim has quit [Remote host closed the connection]
harrymoreno has joined #ruby
Squarepy has quit [Quit: Leaving]
DanKnox_away is now known as DanKnox
brasten has quit [Read error: Connection reset by peer]
<hoelzro> _bart_: have a look at README.EXT in the source
<hoelzro> that's the documentation on the C API
<_bart_> hoelzro: thanks
_bart_ is now known as _bart
saintcajetan has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
Solnse has quit [Ping timeout: 252 seconds]
brasten has joined #ruby
romockee has joined #ruby
havenwood has quit [Remote host closed the connection]
wolcanus has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
wolcanus has joined #ruby
thoolihan has joined #ruby
swills has joined #ruby
<swills> what happens when you pass a directory name to require?
fermion has joined #ruby
CaptainJet has quit []
Zeeraw has joined #ruby
DrCode has quit [Remote host closed the connection]
slash_lunch is now known as slash_nick
forrest has joined #ruby
sambao21 has joined #ruby
DrCode has joined #ruby
<swills> i'm trying to setup this short url servive, https://github.com/j-wilkins/short/blob/master/bin/short but getting an error on line 13, require 'shortener/server', shortener/server is a directory in LOAD_PATH, yet it returns cannot load such file. ideas?
vlad_starkov has quit [Ping timeout: 276 seconds]
<swills> s/servive/service/
c0rn has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
superscott[8] has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
milardovich has joined #ruby
milardovich has quit [Max SendQ exceeded]
milardovich has joined #ruby
machuga is now known as machuga|away
brbcoding has quit []
DrCode has quit [Remote host closed the connection]
tonini has joined #ruby
ravster has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
milardovich has quit [Max SendQ exceeded]
harrymoreno has joined #ruby
DaltonUS has joined #ruby
Squarepy has joined #ruby
fschuindt has joined #ruby
eldariof has quit [Ping timeout: 252 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
cjsarette has joined #ruby
Solnse has joined #ruby
mneorr has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Client exiting]
DrCode has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<Spooner> swills, You can only require .rb files. In that cases, there should be shortener.rb and shortener/server.rb in the same directory.
tanathos has quit [Ping timeout: 240 seconds]
<Spooner> swills, What exactly is going wrong?
r4nd0m1 has quit []
brasten has quit [Quit: brasten]
<Spooner> You are right. There isn't a shortener/server.rb - it is a directory. The code is wrong!
brasten has joined #ruby
ZuzzleBuzzer has joined #ruby
kindjal has joined #ruby
iamjbeck_ has joined #ruby
airwolf33 has joined #ruby
<swills> Spooner: k, thanks. Was trying to figure out where the Shortener::Server class was supposed to come from, but can't find it
<swills> ah, i need to setup config.ru to create it
<swills> ugh
pkrnj has joined #ruby
<swills> still doesn't fix the require tho
iamjbecker has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
blackmesa has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
kindjal has quit [Ping timeout: 264 seconds]
P1RATEZ has joined #ruby
rgarver has joined #ruby
ephemerian has joined #ruby
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
kindjal has joined #ruby
futilegames has quit [Quit: futilegames]
cjsarette has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Read error: Connection reset by peer]
brasten has quit [Read error: Connection reset by peer]
aqil has quit [Remote host closed the connection]
Yvemath has quit [Ping timeout: 264 seconds]
<_bart> RARRAY_LEN results in: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
<_bart> On a multidimensional Ruby array in a VALUE
brasten has joined #ruby
jds_ has joined #ruby
tanathos has joined #ruby
<_bart> Any ideas on how to prevent that?
x1337807x has joined #ruby
chxane has joined #ruby
deallocate has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
juarlex has quit [Quit: juarlex]
burlyscudd has quit [Quit: Leaving.]
jds_ has quit [Ping timeout: 248 seconds]
pentameter has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
dodosan has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
fschuindt has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
colonolGron has quit [Quit: Lost terminal]
tjbiddle_ has joined #ruby
mikepack has quit [Remote host closed the connection]
burlyscudd has joined #ruby
jbueza has joined #ruby
thoolihan has quit [Quit: thoolihan]
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
BrianJ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ner0x has quit [Quit: Leaving]
theRoUS has quit [Ping timeout: 264 seconds]
cjsarette has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
BrianJ has joined #ruby
milardovich has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby
Kricir has joined #ruby
statarb3 has quit [Quit: Leaving]
dsabanin has quit [Quit: Leaving...]
<dwirc> having an issue with an activerecord migration with an error like "undefined method 'native_database_types' for nil:NilClass"...
<dwirc> Didnt' seem like there was a channel for activerecord... is there a better chan to ask in?
MrThePlague has quit [Ping timeout: 256 seconds]
<terrellt> #RubyOnRails would be a good one.
ntus1017 has joined #ruby
miskander has quit [Quit: miskander]
cads has quit [Quit: Leaving]
krainboltgreene has quit [Ping timeout: 264 seconds]
jmimi has left #ruby [#ruby]
demet8 has quit [Quit: demet8]
moted has quit [Read error: Operation timed out]
beneggett has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kasper has joined #ruby
vlad_starkov has joined #ruby
danslo has joined #ruby
spider-mario has quit [Remote host closed the connection]
demet8 has joined #ruby
harrymoreno has joined #ruby
Guga_ has quit [Quit: ~]
kx has quit [Ping timeout: 246 seconds]
zigomir has joined #ruby
kasper has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
Guga_ has joined #ruby
P1RATEZ has quit [Quit: Read error: Text overflow]
moted has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
rgarver has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Read error: Connection reset by peer]
kx has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
rgarver has joined #ruby
jbhewitt has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
fredjean has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
fredjean has joined #ruby
gyre007 has quit [Remote host closed the connection]
iamjbeck_ has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
chichou has joined #ruby
fryguy- has joined #ruby
Taranis_ has joined #ruby
tacos1de has quit [Remote host closed the connection]
trepidaciousMBR has joined #ruby
jonahR has quit [Quit: jonahR]
fryguy has quit [Ping timeout: 256 seconds]
iamjbecker has joined #ruby
Taranis has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 246 seconds]
iamjbecker has quit [Read error: Connection reset by peer]
jprovazn has quit [Quit: Odcházím]
chichou has quit [Ping timeout: 246 seconds]
iamjbecker has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
pothibo has joined #ruby
tacos1de has joined #ruby
Guga_ has quit [Remote host closed the connection]
iamjbecker has quit [Read error: Connection reset by peer]
Guga_ has joined #ruby
iamjbecker has joined #ruby
v0n has quit [Ping timeout: 276 seconds]
takezawa has joined #ruby
c0rn has joined #ruby
takezawa has quit [Read error: Connection reset by peer]
takezawa has joined #ruby
zeromodulus has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
jerius has quit [Ping timeout: 240 seconds]
dodosan has quit [Remote host closed the connection]
MrThePlague has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
sailias has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
maxmanders has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Quit: Leaving]
robbyoconnor has quit [Read error: Connection reset by peer]
iamjbecker has quit [Remote host closed the connection]
dward has quit [Quit: leaving]
Ortuna has joined #ruby
Ortuna has quit [Client Quit]
jds_ has joined #ruby
tanathos has quit [Quit: Leaving]
Ortuna has joined #ruby
fomatin has joined #ruby
iamjbecker has joined #ruby
ebobby has quit [Ping timeout: 264 seconds]
anderson has quit [Ping timeout: 252 seconds]
lurch_ has joined #ruby
mars__ has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
iamjbecker has quit [Read error: Connection reset by peer]
failshell has quit [Remote host closed the connection]
Kricir has joined #ruby
codecop has quit [Remote host closed the connection]
postmodern has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
Guga_ has quit [Remote host closed the connection]
khushildep has quit [Read error: Operation timed out]
julweber has joined #ruby
iamjbecker has joined #ruby
TheFuzzball has joined #ruby
Guga_ has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
v0n has joined #ruby
saintcajetan has joined #ruby
CaptainJet has quit []
PhatBaja has quit [Quit: Leaving.]
CaptainJet has joined #ruby
CK has joined #ruby
wolcanus has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
kpshek has quit []
BillCriswell has quit [Remote host closed the connection]
RichardBaker has joined #ruby
tjbiddle has joined #ruby
iamjbecker has quit [Read error: Connection reset by peer]
danbeck has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
pipework has quit [Remote host closed the connection]
iamjbecker has joined #ruby
Devo has quit [Quit: Devo]
interactionjaxsn has quit [Remote host closed the connection]
CK has quit [Quit: Leaving]
iamjbecker has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
burlyscudd has quit [Quit: Leaving.]
relix has joined #ruby
airwolf33 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tjbiddle_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
lurch_ has quit [Quit: lurch_]
anderson has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
breakingthings has quit [Quit: breakingthings]
arya__ has joined #ruby
jlast_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
Devo has joined #ruby
jlast has quit [Read error: Operation timed out]
cr3 has quit [Quit: leaving]
elaptics is now known as elaptics`away
arya_ has quit [Ping timeout: 248 seconds]
Guga_ has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
Guga_ has joined #ruby
DonRichie has quit [Quit: Verlassend]
iamjbecker has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
Adawerk has joined #ruby
RichardBaker has joined #ruby
jlast_ has quit [Ping timeout: 256 seconds]
v0n has quit [Ping timeout: 248 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
baordog has quit [Remote host closed the connection]
jbhewitt has quit [Ping timeout: 248 seconds]
enebo has joined #ruby
sethetter has left #ruby [#ruby]
romockee has quit [Quit: WeeChat 0.4.1]
Kar- has quit [Remote host closed the connection]
burlyscudd has joined #ruby
gilest has joined #ruby
yekta has quit [Quit: yekta]
viszu has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
jds_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
forrest has quit [Quit: Leaving]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
atyz has quit [Quit: Linkinus - http://linkinus.com]
ntus1017 has quit [Remote host closed the connection]
vigintas has joined #ruby
arya_ has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
hydrozen has quit [Quit: Computer has gone to sleep.]
ldnunes has quit [Quit: Leaving]
arya__ has quit [Ping timeout: 248 seconds]
MrZYX is now known as MrZYX|off
verto has quit [Ping timeout: 256 seconds]
dsabanin has joined #ruby
Spooner has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
ddm has quit [Quit: Page closed]
Spooner has joined #ruby
pothibo has quit [Quit: pothibo]
ner0x has joined #ruby
arya__ has joined #ruby
iamjbecker has quit [Remote host closed the connection]
Guedes0 has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
Devo has quit [Quit: Devo]
gilest has quit [Quit: Textual IRC Client: www.textualapp.com]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
arya_ has quit [Ping timeout: 248 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Devo has joined #ruby
cofin has quit [Quit: cofin]
pkrnj has joined #ruby
MrThePlague is now known as MrThePlague|Away
RORgasm has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
emergion has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Zeeraw has joined #ruby
leonidlm has quit [Read error: Operation timed out]
devdazed has quit [Ping timeout: 268 seconds]
zigomir has quit [Quit: Leaving]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
nomenkun has joined #ruby
TheRealPygo is now known as pygospa
devdazed has joined #ruby
sailias has joined #ruby
prsn has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
x1337807x has joined #ruby
<prsn> hi! I am looking at some rakefiles that have lines of the form 'task :foo => :environment do'. This is different from the docs, which call for 'task :foo => [:prereq] do'. In particular, :environment doesn't seem to be the name of a task defined anywhere.
<prsn> (and it's not in brackets)
<prsn> is this a standard idiom? what does it mean?
mary5030_ has quit [Ping timeout: 248 seconds]
dsabanin has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 256 seconds]
dachi has joined #ruby
<terrellt> prsn: It requires the Rails environment. The environment task is defined within rails.
emergion has quit [Quit: Computer has gone to sleep.]
<prsn> thanks! should all rake tasks in a rails project use that form?
<terrellt> prsn: Only if you need access to the Rails stuff (models, etc.)
dsabanin has joined #ruby
dannymcc has joined #ruby
<dachi> hello people. I am new to Ruby and your wonderful community. I have a very basic question. If any of you know PHP $array[] = '1'; $array[] = '2'; will result in 1 => '1', 2 => '2'. I am trying to achieve same with Ruby's Hashes. But Can't. feature_blocks[] = {line: line, lineno: lineno} this won't work. How can I change feature_block[] to have an index effect, please?
<dachi> I meant PHP will result in 0 => '1', 1 => 2
queston has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
Asher has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
arya__ has quit [Ping timeout: 248 seconds]
generalissimo has quit [Remote host closed the connection]
<terrellt> dachi: There isn't an "associative array" in Ruby - there's a separation between "arrays" and "hashes". Are you looking for an array of things that you can do [:line] on?
tomzx_mac has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
danbeck has quit [Quit: danbeck]
<dachi> terrellt: oh, I see. I don't think that I need this. I am iterating through text file and gathering some pieces of text from it into Hashes with :line as of whole line text and :lineno with line number, but I needed to store them with indexes like 0,1,2,3 to access them later. Can I use custom counter variable to set an index like feature_blocks[count] = .... ? thanks!
Soliah has quit [Read error: Operation timed out]
<terrellt> dachi: You're probably looking for something like array = []; array << {line: line, lineno: lineno};
<terrellt> << appends an item to the end of an array.
<terrellt> So now you have an array of hashes, array[0] becomes the first element.
jimg has joined #ruby
dannymcc has quit [Quit: Quit]
<dachi> terrelt: thanks a lot! I'll do that. thanks again for helping and have a great day!
chrishough has quit [Quit: chrishough]
enebo has quit [Quit: enebo]
pentameter has joined #ruby
anonymuse has quit [Remote host closed the connection]
<dachi> terrellt: it works. tnx!!
Zai00 has quit [Quit: Zai00]
dsabanin has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
emergion has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
dpatel has joined #ruby
LucidDreamZzZ has joined #ruby
Yvemath has joined #ruby
dpatel has quit [Client Quit]
matthalliday has joined #ruby
dpatel has joined #ruby
geggam has quit [Remote host closed the connection]
arya_ has joined #ruby
ebouchut has quit [Ping timeout: 246 seconds]
lusory_ has quit [Ping timeout: 240 seconds]
jetblack has joined #ruby
jonathanwallace has quit [Ping timeout: 268 seconds]
Devo has quit [Quit: Devo]
orion has joined #ruby
peret has quit [Ping timeout: 256 seconds]
<orion> Hi. Has anyone created a diagram showing the relationship between Ruby, Rack, Passenger, and something like Sinatra?
<orion> How do all the pieces fit together?
splittingred has quit [Quit: splittingred]
NsOmNiAc has quit [Ping timeout: 248 seconds]
NsOmNiAc has joined #ruby
jimg has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
gstamp has joined #ruby
Devo has joined #ruby
mneorr has quit [Remote host closed the connection]
<terrellt> Passenger->Rack->Sinatra and then back up.
matthalliday has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
matthalliday has joined #ruby
takezawa has quit [Remote host closed the connection]
takezawa has joined #ruby
Voodoofish430 has joined #ruby
Inside has joined #ruby
nomenkun has joined #ruby
sambao21 has joined #ruby
codesoda has joined #ruby
Es0teric has joined #ruby
djbkd has quit [Remote host closed the connection]
Kricir has joined #ruby
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
dsabanin has joined #ruby
Kruppe has quit [Ping timeout: 268 seconds]
dsabanin has quit [Client Quit]
emergion has joined #ruby
matthalliday has left #ruby [#ruby]
matthalliday has joined #ruby
<DylanJ> ^
tedwards_ is now known as Todd
ebouchut has joined #ruby
mrsolo has quit [Quit: Leaving]
<orion> Thank you terrellt.
vlad_starkov has joined #ruby
takezawa has quit [Ping timeout: 268 seconds]
osvico has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
<orion> FreeBSD provides gems within the ports distribution system. What are the advantages/disadvantages to using the OS distribution system for gems as opposed to the "gem" tool?
arya_ has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
havenwood has joined #ruby
pedda has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
dachi has quit [Ping timeout: 250 seconds]
Devo has quit [Quit: Devo]
marcgg has quit [Read error: No route to host]
lindenle has quit [Quit: This computer has gone to sleep]
marcgg has joined #ruby
rhys_ has quit [Quit: Leaving]
Adawerk has quit [Read error: Operation timed out]
c0rn has joined #ruby
c0rn has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 248 seconds]
Cyrus has joined #ruby
Dekade has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
arya__ has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Ping timeout: 268 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
cofin has joined #ruby
EPIK has joined #ruby
jds_ has joined #ruby
Kricir has quit [Remote host closed the connection]
fredjean has joined #ruby
Todd has quit [Ping timeout: 252 seconds]
RobW_ has quit [Quit: RobW_]
RobW_ has joined #ruby
wmoxam has joined #ruby
ebobby has joined #ruby
jds_ has quit [Ping timeout: 252 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
Todd has joined #ruby
predator217 has joined #ruby
havenwood has quit [Remote host closed the connection]
hydrozen has joined #ruby
RobW_ has quit [Quit: RobW_]
justsee has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
Asher has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
io_syl has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby
<ravster> hey, whats the difference between .each and .each_pair for Hashes? I'm looking at the rubydocs, and I don't see any difference apart from the name of the function. The examples seem to be alike.
codesoda_ has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
jimg has quit [Remote host closed the connection]
c0rn has joined #ruby
cofin has quit [Quit: cofin]
<i_s> ravster: looks like there is no difference. ruby does that a lot.
xptnd has joined #ruby
codesod__ has joined #ruby
<ravster> i_s: oh, okay. cool. thank you.
burlyscudd has joined #ruby
codesoda_ has quit [Read error: Connection reset by peer]
codesoda has quit [Ping timeout: 264 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
wesside has joined #ruby
weldan_ is now known as weldan
weldan has quit [Changing host]
weldan has joined #ruby
Adawerk has joined #ruby
<terrellt> ravster: If you toggle the source they even call the same function.
<terrellt> ravster: Or are the same function, rather.
Kruppe has joined #ruby
arubin has joined #ruby
takezawa has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<_bart> Guess it can still be optimised quite a lot, but still quite happy!
ssvo has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Patchou has quit [Ping timeout: 246 seconds]
Yvemath has quit [Quit: finally sleeping]
havenwood has joined #ruby
devoldmx has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
<ravster> terrellt: huh, nice
freestyl3r has joined #ruby
<ravster> could anyone point me to a resource where they explain how to run a thread-safe accumulator? I'd like to do some heavy lifting, and use all the cores at my disposal.
Todd has quit [Ping timeout: 246 seconds]
nbouscal has quit [Ping timeout: 240 seconds]
<ravster> oh, nvm. just found out I can have a thread return a value.
<ravster> sweet.
<freestyl3r> Hi. lets say i want to distribute a ruby script that has my API keys in it. how can i hide those from users?
matthalliday has quit [Quit: matthalliday]
queston has joined #ruby
jibi has quit [Quit: .]
emergion has joined #ruby
Guedes0 has quit [Ping timeout: 276 seconds]
<Eiam> freestyl3r: don't distribute them in a script
<freestyl3r> how then?
nari has joined #ruby