apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<havenwood> if only being used the one way*
tylerkern has quit [Ping timeout: 240 seconds]
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
aiguu has quit [Ping timeout: 258 seconds]
aspires has quit []
<shevy> man
aspires has joined #ruby
<shevy> a million ways
<shevy> to all subtly do different things
flowerhack has quit [Quit: Connection closed for inactivity]
Spami has quit [Quit: This computer has gone to sleep]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
<havenwood> not simple but expressive
maximski has quit []
Lightsword_ has joined #ruby
Lightsword has quit [Ping timeout: 255 seconds]
Lightsword_ is now known as Lightsword
i_s has joined #ruby
marr has quit []
<shevy> :)
benzrf|offline is now known as benzrf
kitak has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby
wallerdev has quit [Ping timeout: 255 seconds]
lw has joined #ruby
i_s has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
bijan07077 has quit [Quit: bijan07077]
rgem has joined #ruby
aspiers has quit [Ping timeout: 258 seconds]
<rgem> If I want to reuse installed gems when upgrading from, say, 2.1.1 to 2.1.2 is it better to dispense with rvm and rbenv and simply isntall ruby directly? Can the installed gems then be simply copied to the upgraded Ruby?
meatherly has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
<rgem> I don't need multiple versions, just the latest.
andrewlio has joined #ruby
i_s has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmeeuwen is now known as kanarip_
kanarip_ is now known as jmeeuwen
atraylen has quit [Quit: Nettalk6 - www.ntalk.de]
cjsarette has quit [Max SendQ exceeded]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
livcd has joined #ruby
froy has quit [Remote host closed the connection]
tjr9898 has joined #ruby
moritzschaefer has joined #ruby
rails4444 has left #ruby [#ruby]
<shevy> you have all gems available locally
elaptics is now known as elaptics`away
SCommette has quit [Quit: SCommette]
<shevy> go to that dir, and either copy them to the new dir, or do: Dir['*.gem'].each {|my_gem| puts my_gem; `gem install #{my_gem}` }
Spami has joined #ruby
upsell5 has joined #ruby
zachallett has joined #ruby
zachallett has quit [Remote host closed the connection]
livcd has quit [Ping timeout: 252 seconds]
ddv has quit [Ping timeout: 245 seconds]
moritzs has quit [Ping timeout: 252 seconds]
ddv has joined #ruby
dik_dak has quit [Quit: Leaving]
subbyyy_ has quit [Ping timeout: 250 seconds]
mordocai has quit [Remote host closed the connection]
sailias has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sailias has quit [Read error: Connection reset by peer]
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
dayepa has quit [Quit: dayepa]
Martxel has quit [Ping timeout: 255 seconds]
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
kitak_ has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
felixjet_ has joined #ruby
tylerkern has joined #ruby
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
zz_karupa is now known as karupa
datafirm has quit [Ping timeout: 276 seconds]
atraylen has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
dayepa has joined #ruby
cjsarette has joined #ruby
i_s has quit [Remote host closed the connection]
fluve has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
psyko666 has joined #ruby
datafirm has joined #ruby
Kricir has joined #ruby
troyready has quit [Remote host closed the connection]
mikepack_ has quit [Remote host closed the connection]
<_lazarevsky> hello
<_lazarevsky> anybody here??
Thermo has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
<rgem> <shevy> Are there also any files which keep track of installed gems in addition to the gems themselves?
<rgem> I don't want to have to reinstall them all as in the 2nd part of your suggestion
<rgem> I'd also need to copy the docs for each gem
Lightsword has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<rgem> I found this kind of thing a lot harder with rbenv and gave up
<rgem> Copying between versions, I mean
maximski has joined #ruby
<shevy> rgem "gem list" shows which files are installed
<shevy> I am not sure where they keep track of that list
<shevy> copying between versions is super simple for me here
<rgem> Then that would need to be in sync with a gem copy, no?
Jnco has quit [Quit: Jnco]
<shevy> but I keep a backup of all gems I need
<shevy> I dont know how that works internally
<shevy> all I know is that I batch install my local gems without any problem
Kricir has quit [Ping timeout: 252 seconds]
<rgem> So you just upgrade Ruby and cp them all over to the new Ruby?
<shevy> no
arrubin has joined #ruby
<rgem> Batch install, not copy?
<shevy> I never copy them
<shevy> I run gem install on them
<rgem> That's what I'm tryin to avoid, if possible
andrewlio has quit [Quit: Leaving.]
<shevy> you could probably cp -rv on them but I want to have full control individually
<shevy> what is the problem
<rgem> With a large collection of gems
<shevy> you have a gem, foo-1.0.gem
<shevy> gem install foo-1.0.gem
<shevy> problemd solved
<rgem> OK for a few. Try that with a few hundred
aspires has quit []
<shevy> yeah I have a few hundred
<shevy> I have about 100 of my own gems and about a hundred more from others
<rgem> Seems pointless if they're already installed
<rgem> I mean for minor version Ruby upgrades
<shevy> then copy them
<shevy> I dont get the problem
<shevy> they are just files anyway
oo_ has joined #ruby
<shevy> for my current ruby the gems are as .gem stored in /usr/lib/ruby/gems/1.9.1/cache/
<shevy> for 2.1.2 they would be in 2.1/cache or perhaps 2.1.0/cache
<rgem> I'm trying to ascertain in advance if cp -ing them works if the installation of gems is tied to any config files
razrunelord has joined #ruby
<shevy> why don't you try out if you hate doing gem install ;)
<shevy> because you know
<shevy> if it does not work
<shevy> you can simply delete them again and redo that part
<rgem> A related question - I notice a 2.1.0 folder in Ruby 2.1.1. Is that constant for all 2.1.x versions?
dayepa has quit [Quit: dayepa]
<shevy> the gems all reside in a dir
<shevy> on default install, "gem list" will show no result, and that dir is empty
<rgem> Good idea
<shevy> rgem yeah I think so, it keeps backward compability for the C API
Lightsword has joined #ruby
<shevy> ruby 1.9.3 also has 1.9.1 if you look above, my ruby version is:
<shevy> ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
<shevy> cd /usr/lib/ruby/gems/1.9.1/
<rgem> Thank **d we don't have to specify patch levels with 2.1
<shevy> dirs there are: build_info cache doc extensions gems specifications
<rgem> ... anymore
<shevy> in gems/ the extracted gem reside
<shevy> for instance: rdoc-3.9.5/
troyready has joined #ruby
dayepa has joined #ruby
razrunelord has quit [Ping timeout: 255 seconds]
marcdel has quit []
<_lazarevsky> shevy: have you ever used the gem whenever ?
shanlar- has quit [Read error: Connection reset by peer]
<vim_shim> _lazarevsky: You should ask your question about the gem to the room. It is much more likely to get a response than asking is a specific person knows it or not.
zz_flazz is now known as flazz
<_lazarevsky> ok
<_lazarevsky> I am using this gem called whenever
<vim_shim> Did you get the link I msged you? https://mikeash.com/getting_answers.html
bricker`LA has joined #ruby
<_lazarevsky> basically it schedules tasks
<_lazarevsky> I have defined a rake task and am calling it every n minutes
<_lazarevsky> however, the whenever gem requires that you execute a command
<_lazarevsky> which updates the list of cronjobs
<_lazarevsky> in development, when working locally this is ok
<_lazarevsky> because I can manually enter the command
<_lazarevsky> however, I do not have access to the server where the app is hosted
<_lazarevsky> I can't ssh into it
x1337807x has quit [Ping timeout: 250 seconds]
<_lazarevsky> but when I deploy the application
maletor has quit [Quit: Computer has gone to sleep.]
froy has joined #ruby
<_lazarevsky> to the server (it's all automated. I just push to mainline and through pipelines it's gets deployed)
<_lazarevsky> I need to be able to run the update command
<_lazarevsky> I am not sure if I am explaining myself well here sorry..
lw has quit [Quit: s]
<_lazarevsky> basically I need to run a command when I deploy the application to production
<_lazarevsky> how can I do that?
x1337807x has joined #ruby
<havenwood> _lazarevsky: git hooks
KAO has joined #ruby
<havenwood> _lazarevsky: command run when you push or pull?
<_lazarevsky> whenever --update-crontab
<_lazarevsky> this is the command I wanna run
andchatt has joined #ruby
<havenwood> _lazarevsky: how do you deploy?
<_lazarevsky> vim_shim: the link you provided seems like it's what I'm looking for
<_lazarevsky> havenwood: It's an internal system that we're using.
<_lazarevsky> havenwood: I just push the latest piece of code to mainline
<havenwood> _lazarevsky: via git or scp or what?
<_lazarevsky> first commit to mainline locally and then push that to origin/mainline
<_lazarevsky> and then it goes thru pipelines where various tests are run etc etc
<_lazarevsky> and it automagically gets deployed
<_lazarevsky> am stil not familiar with the whole process
amclain has joined #ruby
<_lazarevsky> vim_shim: your link is it :)
<_lazarevsky> vim_shim: Let me try that
<_lazarevsky> vim_shim: thanks so much :)
mjs2600 has joined #ruby
<vim_shim> _lazarevsky: Cool. Read this getting answers guide so you can ask questions that are more likely to get answered. https://mikeash.com/getting_answers.html It will do you a world of good. (Teaching to fish, etc.)
<_lazarevsky> will do. Am on a tight deadline here need to get this thing running ASAP
<_lazarevsky> vim_shim: I do not have a deploy.rb, unlike in the example you provided
<_lazarevsky> can I not just include this command in the Rakefile ?
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<vim_shim> Rake is just a means of providing a command line interface to certain tasks in your app for convenience.
mrmargolis has joined #ruby
<vim_shim> If you want something to run when your app boots up, you should make a file in you initializers folder, call it anything.rb, and put your code in there.
<_lazarevsky> aha I see
<_lazarevsky> all the files encountered in initializers are executed on boot up aye?
tjr9898 has quit [Read error: Connection reset by peer]
subbyyy_ has joined #ruby
mjsmith2 has joined #ruby
tjr9898 has joined #ruby
mary5030 has joined #ruby
omosoj has joined #ruby
rgem has left #ruby [#ruby]
robustus has quit [Ping timeout: 252 seconds]
sevenseacat has joined #ruby
robustus has joined #ruby
_reset has joined #ruby
Hanmac has joined #ruby
andchatt has left #ruby [#ruby]
livcd has joined #ruby
reset has quit [Ping timeout: 258 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
lolmaus has quit [Ping timeout: 255 seconds]
bijan07077 has joined #ruby
_reset has quit [Ping timeout: 258 seconds]
qwyeth has joined #ruby
meatherly has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
meatherly has joined #ruby
froy has quit [Remote host closed the connection]
aiguu has joined #ruby
livcd has quit [Ping timeout: 264 seconds]
<shevy> _lazarevsky never heard that gem before
MrWharfsnort has joined #ruby
dayepa has quit [Quit: dayepa]
papercode has quit [Ping timeout: 250 seconds]
cjsarette has quit [Max SendQ exceeded]
meatherly has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
mjs2600 has quit [Remote host closed the connection]
timonv has joined #ruby
ktun has joined #ruby
froy has joined #ruby
dayepa has joined #ruby
meatherly has quit [Remote host closed the connection]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
timonv has quit [Ping timeout: 240 seconds]
i_s_ has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datafirm has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
Kricir has joined #ruby
sambao21 has joined #ruby
datafirm has joined #ruby
<jahrichie> qq, i'm doing a path check like so: _has_slash = _path.include? "/" — I should prob test there is something (anything) after the slash
<jahrichie> anyone know the syntax for that?
lethjakman has quit [Ping timeout: 250 seconds]
<shevy> use a regex?
diegoviola has joined #ruby
doodlehaus has quit [Remote host closed the connection]
subbyyy has joined #ruby
<shevy> >> x = "abc/def"; puts 'yup' if x =~ /\/.+/
<eval-in__> shevy => yup ... (https://eval.in/150293)
cjsarette has joined #ruby
<jahrichie> shevy: i need to brush up on my regex
<jahrichie> thanks
cjsarette has quit [Max SendQ exceeded]
i_s_ has quit [Ping timeout: 258 seconds]
subbyyy_ has quit [Ping timeout: 240 seconds]
<_lazarevsky> vim_shim: Solved the problem :) Placed the command in Rakefilm
s00pcan has joined #ruby
<_lazarevsky> vim_shim: thanks for yer help! the link you provided helped greatly with the syntax
moritzschaefer has quit [Ping timeout: 255 seconds]
cjsarette has joined #ruby
andrewjanssen has joined #ruby
datafirm has quit [Ping timeout: 255 seconds]
Kricir has quit [Ping timeout: 276 seconds]
mikepack has quit [Ping timeout: 240 seconds]
thomasxie has quit [Remote host closed the connection]
<omosoj> What does a boolean in a method definition do? like def funct (var: true)
<shevy> nono omosoj
<shevy> do not get fooled
<shevy> this is the new hash syntax
<shevy> watch this omosoj
meatherly has joined #ruby
<shevy> >> var: true
<eval-in__> shevy => /tmp/execpad-2672164ca4f7/source-2672164ca4f7:2: syntax error, unexpected ':', expecting keyword_end ... (https://eval.in/150297)
<shevy> well
<shevy> >> p var: true
<eval-in__> shevy => {:var=>true} ... (https://eval.in/150298)
<shevy> there we go
<shevy> so if you have a hash, :var key has value true
<shevy> configuration = {}
<shevy> configuration[:kill_kittens] = true
<shevy> kill_kittens: true
<shevy> def funct(kill_kittens: true)
<shevy> ok omosoj?
mikepack has joined #ruby
<omosoj> Hmm
<shevy> come on man
<shevy> {:var=>true}
<shevy> {var: true}
<shevy> same thing
<shevy> in your case:
<shevy> def funct({:var => true})
<shevy> better now omosoj?
<havenwood> a naked hash
subbyyy has quit [Ping timeout: 252 seconds]
_lazarevsky has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
KAO has quit [Ping timeout: 265 seconds]
<omosoj> I don't see hashes anywhere else in the script.
Fire-Dragon-DoL has quit [Quit: Leaving.]
<shevy> so
<shevy> :)
<havenwood> keyword arguments
<havenwood> omosoj: whatcha working on?
hgl has joined #ruby
<omosoj> I was trying to solve a Project Euler problem earlier today and workmad3 posted a sample solution. I'm trying to figure out how it works.
<havenwood> omosoj: mind pasting a link, i'm curious
<omosoj> Sure. There's no gentleman's rule about reposting someone else's code, is there?
SilkFox has joined #ruby
<havenwood> omosoj: Not if they pasted a gist in public! :) But good point if it wasn't publicly shared code.
thomasxie has joined #ruby
<omosoj> Ok, it's still up on his gist so I guess it's fine. https://gist.github.com/workmad3/6360ae6b1a42e0be0942
oo_ has joined #ruby
<omosoj> Here's the problem: https://projecteuler.net/problem=37
<shevy> oh man
<shevy> that's typical workmad code
<shevy> ;P
<havenwood> omosoj: mm, keyword argument ftw ;)
<omosoj> lol
subbyyy has joined #ruby
tyll has joined #ruby
<shevy> (first: false)
<shevy> ({first: false})
<omosoj> I wanted to solve the problem with recursion but I couldn't figure out how. This solution uses recursion so I'm trying to figure out exactly how it works.
<shevy> ({:first => false})
<shevy> does it become clearer now omosoj
<omosoj> How does that function within the rest of the code?
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
duggiefresh has joined #ruby
<havenwood> omosoj: a local variable `first` gets set by default to `true` in the method, or if you pass a `first: false` it'd be false.
duggiefresh has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
bijan07077 has quit [Read error: Connection reset by peer]
b00stfr3ak has quit [Ping timeout: 245 seconds]
tyll_ has quit [Ping timeout: 252 seconds]
xcesariox has joined #ruby
rkazak has joined #ruby
<omosoj> Hmm, why is it necessary to specify that if it is true by default?
dideler has quit [Ping timeout: 258 seconds]
n_b has quit [Ping timeout: 245 seconds]
n_b has joined #ruby
bijan07077 has joined #ruby
<havenwood> omosoj: it isn't, but it lets you call the method without `result: true` and have `result` be `true`
njs126 has quit [Quit: Leaving]
ghr has quit [Ping timeout: 252 seconds]
<rkazak> omosoj:what was your question?
<omosoj> havenwood, hmm, what about on line 7? Why does he set it to false there?
oo_ has quit [Remote host closed the connection]
<omosoj> rkazak, I'm trying to understand the code I posted and I didn't understand the keyword argument (among other things)
<rkazak> missed the post just joined… :)
fgo has joined #ruby
fgo has quit [Remote host closed the connection]
oo_ has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<omosoj> My main question I guess is how to structure and control a recursive function.
maximski has quit []
<omosoj> I mean, that's what I'm trying to figure out as I read this code.
<havenwood> omosoj: looks like i solved this one pretty differently (and a tad overly complicated) but here's my solution: https://gist.github.com/havenwood/0fc78c49b314dab3147f
<benzrf> haskell tho
<benzrf> omosoj: wait are you workmad
<havenwood> benzrf: nope, he pasted the gist earlier
<omosoj> benzrf, no. he offered some help earlier.
<benzrf> ah
oo_ has quit [Remote host closed the connection]
<omosoj> havenwood, you guys solve these so quickly. i've literally been working on this problem for hours.
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has joined #ruby
<rkazak> omosoj: it’s the journey, not the destination…. ;)
aspiers has joined #ruby
<havenwood> omosoj: we've already done them so it is just revisiting a past solution!
<havenwood> omosoj: some of these are a royal pain!
<omosoj> rkazak, heh, that sounds fantastic in the abstract :p
<rkazak> :)
sepp2k has quit [Quit: Leaving.]
<omosoj> gonna need to fire up the docs to understand your code, havenwood
<rkazak> omosoj: remember the breath of skills here is vast, and people learn at different rates…
ixti has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<omosoj> Can you guys tell me why workmad3's solution on line 7 passes a variable assigned false?
JZTech101 has quit [Ping timeout: 255 seconds]
<omosoj> rkazak, yeah, it's pretty humbling to know how much i'm missing
rostam has quit [Remote host closed the connection]
wallerdev has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
sensen has joined #ruby
tjr9898__ has joined #ruby
tjr989___ has joined #ruby
<rkazak> omosoj: chainingthe calls can be confusing :)
tjr9898 has quit [Ping timeout: 255 seconds]
tjr9898_ has quit [Ping timeout: 245 seconds]
rostam has joined #ruby
frb has joined #ruby
raspberr_ has joined #ruby
marcdel has joined #ruby
livcd has joined #ruby
<frb> I installed the Ruby gem csv2json and I get this error when running the included executable: /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- orderedhash (LoadError) ; what am I doing wrong?
dayepa has quit [Quit: dayepa]
rokob has quit [Remote host closed the connection]
cpruitt has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Quit: Leaving.]
arrubin has joined #ruby
thomasxie has joined #ruby
krz has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
livcd has quit [Ping timeout: 240 seconds]
binaryhat has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 240 seconds]
MatthewsFace has joined #ruby
bijan07077 has quit [Quit: bijan07077]
Lemur has quit [Ping timeout: 264 seconds]
radic has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
<havenwood> omosoj: here, got rid of some of the hard-to-read, bad code: https://gist.github.com/havenwood/0fc78c49b314dab3147f
marcdel has joined #ruby
EthanHuntAgain has joined #ruby
radic has joined #ruby
mehlah has joined #ruby
oo_ has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
oo_ has joined #ruby
thomasxie has quit [Quit: Leaving.]
<omosoj> havenwood, thanks. reading...
Spami has quit [Quit: This computer has gone to sleep]
<EthanHuntAgain> Is this a good resource to learn Ruby - http://www.amazon.com/gp/product/0977616614/ref=oh_details_o02_s01_i00?ie=UTF8&psc=1
<EthanHuntAgain> for a QA who needs to add Test Automation to his resume?
i_s_ has joined #ruby
<centrx> EthanHuntAgain, It's a little old
<centrx> EthanHuntAgain, I'm not familiar with the book
<EthanHuntAgain> centrx: Thanks
<EthanHuntAgain> centrx: What would you recommend? I know some Java and C.
brunops has joined #ruby
oo_ has quit [Remote host closed the connection]
<EthanHuntAgain> I have tried my hand at Ruby before, somehow didn't "stick"
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> omosoj: updated again >.>
Kricir has joined #ruby
<centrx> EthanHuntAgain, that book might be good for QA and test automation, I don't know
<centrx> EthanHuntAgain, For general, try Ruby Koans, Ruby Monk, and the Pickaxe book
Arkaniad has quit [Ping timeout: 255 seconds]
<EthanHuntAgain> centrx: whoa what is this http://rubykoans.com
lbwski has quit [Ping timeout: 250 seconds]
jahrichie has quit [Quit: Leaving.]
mehlah has quit [Quit: Linkinus - http://linkinus.com]
i_s_ has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
SCommette has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
afex has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
s2013 has joined #ruby
mrmargolis has quit [Remote host closed the connection]
<omosoj> havenwood, WHOA awesome!
oo_ has joined #ruby
<omosoj> rkazak, mashed my keyboard. sorry about that.
<rkazak> omosoj: np.
jahrichie has joined #ruby
<debajit> I have a Rake task where I run a shell command using system() --- if the shell command fails, I'd like to return an error value from the task. How do I do this? This is a snippet of the task I have: https://gist.github.com/debajit/482a4410be4d98449e62
jahrichie has quit [Client Quit]
IceDragon has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
<debajit> with this code snippet, even if system() fails, the task returns 0 -- indicating success (this is when i do an "echo $?" after a "rake")
maximski has joined #ruby
KAO has joined #ruby
alexju has joined #ruby
benzrf is now known as benzrf|offline
_sambao21 has joined #ruby
phinfonet has quit []
sambao21_ has joined #ruby
s2013 has quit [Ping timeout: 265 seconds]
Arkaniad has joined #ruby
sambao21 has quit [Ping timeout: 250 seconds]
rek2p0wn has quit [Remote host closed the connection]
mjsmith2 has quit [Remote host closed the connection]
_sambao21 has quit [Ping timeout: 252 seconds]
datafirm has joined #ruby
i8igmac has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
sunya7a has joined #ruby
hermanmunster has quit []
debajit has quit [Quit: Leaving...]
atraylen has quit [Ping timeout: 258 seconds]
andrewjanssen has quit [Quit: Leaving...]
braincrash has quit [Quit: bye bye]
upsell5 has quit [Quit: upsell5]
datafirm has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
sunya7a_ has joined #ruby
i_s_ has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
sunya7a_ has left #ruby [#ruby]
DeadXorcist has joined #ruby
DeadXorcist has left #ruby [#ruby]
sambao21_ has quit [Quit: Computer has gone to sleep.]
bigmac has joined #ruby
bigmac has quit [Remote host closed the connection]
braincrash has joined #ruby
upsell5 has joined #ruby
datafirm has joined #ruby
i_s_ has quit [Ping timeout: 240 seconds]
combusean has joined #ruby
Lightsword has quit [Ping timeout: 240 seconds]
sunya7a has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
andrewjanssen has joined #ruby
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
sski has joined #ruby
wontoner_io has quit []
centrx has quit [Quit: All this computer hacking is making me thirsty]
djbkd has joined #ruby
raspberr_ has quit [Remote host closed the connection]
n_blownapart has joined #ruby
raspberryfan has joined #ruby
andrewjanssen has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<n_blownapart> http://pastie.org/9170648 hi I switched out inject for each_with_object here but I get 'no implicit conversion of Hash into Integer (TypeError).' I thought these methods were interchangeable ..
timonv has joined #ruby
x1337807x has joined #ruby
cjsarette has quit [Max SendQ exceeded]
brunops has quit [Ping timeout: 276 seconds]
<havenwood> n_blownapart: switch `|count_hash, word|` to `|word, count_hash|`
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phoo1234567 has joined #ruby
AlSquirrel has quit [Ping timeout: 258 seconds]
<n_blownapart> ok havenwood thanks.. why?
bricker`LA has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
bricker`LA has joined #ruby
qwyeth has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
RaptorJesus has quit [Write error: Connection reset by peer]
atmosx has quit [Write error: Broken pipe]
end_guy has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
mansi has joined #ruby
livcd has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
combusean has quit [Ping timeout: 250 seconds]
dideler has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
benzrf|offline has quit [Ping timeout: 245 seconds]
livcd has quit [Ping timeout: 265 seconds]
n_blownapart has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
datafirm has quit [Ping timeout: 240 seconds]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
havenwood has joined #ruby
sevenseacat has quit [Quit: Leaving.]
St_Marx has joined #ruby
havenwood has quit [Client Quit]
havenn has joined #ruby
mjs2600 has joined #ruby
RaptorJesus has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
<havenn> n_blo, oh well, he left while my tor was down ;(
cjsarette has joined #ruby
sevenseacat has joined #ruby
rokob has joined #ruby
atmosx has joined #ruby
x1337807x has joined #ruby
havenn is now known as havenwood
x1337807x has quit [Client Quit]
nhmood has quit [Quit: Connection closed for inactivity]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
n_blownapart has joined #ruby
datafirm has joined #ruby
<n_blownapart> here, why is inject passed 1 as arg ? : (5..10).inject(1) { |product, n| product * n } #=> 151200
mjs2600 has quit [Ping timeout: 276 seconds]
EthanHuntAgain has quit [Quit: Lingo - http://lingoirc.com]
djbkd has quit [Remote host closed the connection]
bijan07077 has joined #ruby
<n_blownapart> Im on that page sevenseacat
<sevenseacat> then it tells you what the first argument is
djbkd has joined #ruby
tacos1de has joined #ruby
<n_blownapart> It's talking about memo. Each of these methods: reduce, inject, each_with_object seem to require different arguments in the pipes, and people argue over which ones to use so I'm confused.
MrWharfsnort has quit [Ping timeout: 255 seconds]
<n_blownapart> sevenseacat: if I could ask you a few questions about this: http://pastie.org/9170664
<sevenseacat> sure
memorozovm has joined #ruby
end_guy has joined #ruby
<n_blownapart> line 2 (top) requires |word, count_hash|, whereas on the bottom line 2 requires the reverse. thanks so...
<n_blownapart> so with inject one arg. is acting as a key and one as a value in a k/v pair, correct? sevenseacat
SCommette has quit [Quit: SCommette]
<sevenseacat> no - one is the value eg. the object from the array you're iterating over, and one is the cumulative result of running the inject
<rkazak> sevenseacat: it’s like a starting value ?
<n_blownapart> i.e. with these two methods why is the sequence of arguments changing when (apparently) the methods do nearly the same thing?
<sevenseacat> inject and each_with_object dont do the same thing at all
<pontiki> hihi
dayepa has joined #ruby
<n_blownapart> sevenseacat: ok I'm regrouping..
<sevenseacat> rkazak: the argument to inject eg. something.inject(0) is the starting argument, yes
Lightsword has joined #ruby
s2013 has joined #ruby
pgmcgee- has quit [Ping timeout: 250 seconds]
<n_blownapart> then there's the business with the 'memo' sev
<n_blownapart> sevenseacat:
<sevenseacat> what 'business'?
kmwhite has quit [Ping timeout: 250 seconds]
<sevenseacat> like i said before, it's the cumulative result
pgmcgee has joined #ruby
<rkazak> sevenseacat: and when supplied to inject/reduce is multiplicative(?) else they ar addative…
kmwhite has joined #ruby
thesheff17 has quit [Ping timeout: 276 seconds]
i_s has quit [Quit: i_s]
<sevenseacat> what?
maximski has quit []
sdwrage has quit [Quit: This computer has gone to sleep]
Rojo has quit [Ping timeout: 252 seconds]
<n_blownapart> count_hash[word] += 1 << here sevenseacat word is acting as the key in a key value pair?
<n_blownapart> line 3 (bottom of paste) ^
<sevenseacat> its acting as an index into a hash. count_hash is a hash.
i_s has joined #ruby
<n_blownapart> but in the case of k/v pairs, is the key also a hash index placemarker?
marcdel has quit []
<n_blownapart> similar to an array index?
no6 has joined #ruby
<sevenseacat> you terminology is a bit wonky, but i guess so.
<n_blownapart> ok sorry, but how would you put it sevenseacat ?
KAO has quit [Ping timeout: 245 seconds]
cjsarette has quit [Max SendQ exceeded]
<sevenseacat> as i just did
KAO has joined #ruby
cjsarette has joined #ruby
<n_blownapart> ok thanks. If you have time... with each_with_object the count_hash argument is second to the word argument. Is this because each_with_object returns the (Hash.new(0)) object, and its internally set up differently?
<n_blownapart> sevenseacat: ^
marcdel has joined #ruby
cjsarette has quit [Max SendQ exceeded]
<n_blownapart> Because line 3 in both examples is the same. ^
St_Marx has quit [Remote host closed the connection]
<sevenseacat> you're doing a lot of nitpicking and i honestly dont get why
<sevenseacat> why are the arguments in a different order? ask the people that wrote ruby
i_s has quit [Quit: i_s]
St_Marx has joined #ruby
marcdel_ has joined #ruby
Sirupsen has joined #ruby
<n_blownapart> But the arguments only work when sequenced properly. That means the position of 'memo' would be changing. sevenseacat
<havenwood> n_blownapart: it's #each_with_object not #object_with_each :P
<sevenseacat> n_blownapart: so?
kitak_ has quit [Remote host closed the connection]
<sevenseacat> they're two different methods, they work differently
<sevenseacat> this is normal
lyanchih_ has quit [Quit: lyanchih_]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
aiguu has quit [Ping timeout: 245 seconds]
marcdel has quit [Ping timeout: 240 seconds]
rkazak has left #ruby [#ruby]
<n_blownapart> havenwood: did I write object_with_each ?
<havenwood> n_blownapart: no, i jest because the block order is the iterator then object, same as the method name
<havenwood> n_blownapart: each.with_object
Lightsword has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0.1/20140506152807]]
debajit has joined #ruby
AlSquire has quit [Ping timeout: 250 seconds]
<n_blownapart> havenwood: ok, well this is where I would really like some help understanding sevenseacat . one moment, kindly allow me to formulate my question.
kitak_ has joined #ruby
<havenwood> >> [1, 2, 3].each_with_object(:omgwtfbbq).to_a
<eval-in__> havenwood => [[1, :omgwtfbbq], [2, :omgwtfbbq], [3, :omgwtfbbq]] (https://eval.in/150329)
<havenwood> >> [1, 2, 3].each.with_object(:omgwtfbbq).to_a
<eval-in__> havenwood => [[1, :omgwtfbbq], [2, :omgwtfbbq], [3, :omgwtfbbq]] (https://eval.in/150331)
<havenwood> n_blownapart: the each item ^ then the object
s2013 has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
17SAAC8U0 has joined #ruby
<havenwood> n_blownapart: i'd suggest that you just think of reduce/inject as the odd one that is how it is for it
<havenwood> s most common use cases
cpruitt has left #ruby [#ruby]
AlSquire has joined #ruby
<havenwood> inject from smalltalk or reduce from functional langs, also called fold - but anyways they aren't equivalent to #each_with_object
<havenwood> each_with_object is each with the object you provide
<havenwood> each, then object
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
debajit has quit [Ping timeout: 240 seconds]
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<havenwood> n_blownapart: i more often see misuse of inject/reduce
ghr has quit [Ping timeout: 252 seconds]
dstynchula has joined #ruby
<n_blownapart> havenwood: yeah ok. why do both methods require an opposite sequence from the arguments, when count_hash[word] += 1 is essentially setting up the hash returned in the same way?
dstynchula has quit [Remote host closed the connection]
selina345_ has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
<dideler> how would i require just the string inflections from activesupport? http://api.rubyonrails.org/v2.3.8/classes/ActiveSupport/CoreExtensions/String/Inflections.html
anaeem1 has joined #ruby
<selina345_> hey folks
<havenwood> n_blownapart: because inject's focus is on the folding, and each_with_object is a totally different thing, that would be bizarre to be opposite
AlSquirrel has quit [Read error: Connection reset by peer]
<havenwood> selina345_: hey
LexicalScope has joined #ruby
<selina345_> i am trying to call .downcase on a variable
<selina345_> is this correct
<selina345_> print "What is your name?" user_input= gets.chomp user_input = user_input.downcase!
<selina345_> line 1, line 2, line 3 respectively
yacks has joined #ruby
<ericwood> that looks fine enough
<pontiki> no
<selina345_> it returns nil
<ericwood> oh yeah
<pontiki> the ! on the end modifies the target
<dideler> selina345_: you shouldn't use the bang method when assigning the original
<ericwood> >> "asdfasdf".downcase!
<eval-in__> ericwood => nil (https://eval.in/150347)
<ericwood> selina345_: the last line should just be: user_input.downcase!
AlSquire has joined #ruby
<havenwood> dideler: require 'active_support/core_ext/string/inflections'
<pontiki> that is correct -- downcase! returns nil if nothing is changed in the target
<ericwood> methods with a ! on them typically modify the target and don't require assignment
<ericwood> at least that's the convention for stdlib ones
SCommette has joined #ruby
<selina345_> it works without the !
<selina345_> but with the ! it's nil
xcesariox has quit [Ping timeout: 265 seconds]
<ericwood> selina345_: see this example:
<dideler> havenwood: beautiful, thanks!
<ericwood> >> foo = 'hi'; foo.downcase!; foo
<eval-in__> ericwood => "hi" (https://eval.in/150351)
<havenwood> more specifically, when a method already exists that doesn't modify the receiver, the convention is to add a bang to an otherwise equivalent method that modifies the reciever
anaeem1 has quit [Read error: Connection reset by peer]
<n_blownapart> havenwood: bear with me please...
anaeem1 has joined #ruby
<ericwood> selina345_: so, these two lines are equivalent:
<ericwood> foo = foo.downcase
<ericwood> foo.downcase!
oo_ has quit [Remote host closed the connection]
nari has joined #ruby
<selina345_> ericwood: ok
<havenwood> n_blownapart: sure, no prob
AlSquirrel has joined #ruby
flazz is now known as zz_flazz
combusean has joined #ruby
<selina345_> and how about foo.downcase?
i_s has joined #ruby
<selina345_> oh okay
<selina345_> i get it
17SAAC8U0 has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
<n_blownapart> the two methods are identical and return identical sorts of hashes. The only difference is the sequence in the |args, args|. So something internal dictates that they are switched. Is that sort of thing merely to be memorized or should I know what the engineering is?
yfeldblum has joined #ruby
i_s has joined #ruby
AlSquire has quit [Ping timeout: 240 seconds]
<sevenseacat> the two methods are not identical
luckyruby has joined #ruby
<sevenseacat> you are using them to produce identical results
<n_blownapart> sevenseacat: got it...
oo_ has joined #ruby
<havenwood> >> class String; def downcase?; !!self[/\A[[:lower:]]*\z/] end end; 'indeed'.downcase?
<eval-in__> havenwood => true (https://eval.in/150352)
cjsarette has joined #ruby
mansi has joined #ruby
s2013 has joined #ruby
<atmosx> hello
<atmosx> havenwood: you're up 24/7? :-)
<havenwood> n_blownapart: The docs show what order the block args are to be in.
fluve has quit [Read error: Connection reset by peer]
<havenwood> atmosx: If i sleep the shadows will get me!!
omosoj has quit [Quit: Leaving]
<atmosx> havenwood: hehehe
carlyle has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
Sirupsen has joined #ruby
Rojo has joined #ruby
i_s_ has joined #ruby
livcd has joined #ruby
AlSquirrel has quit [Ping timeout: 245 seconds]
selina345_ has quit [Quit: Page closed]
AlSquire has joined #ruby
KAO has quit [Ping timeout: 245 seconds]
Sirupsen has quit [Client Quit]
yacks has quit [Ping timeout: 245 seconds]
phoo1234567 has quit [Quit: Leaving]
carlyle has quit [Ping timeout: 255 seconds]
upsell5 has quit [Quit: upsell5]
i_s_ has quit [Ping timeout: 255 seconds]
livcd has quit [Ping timeout: 276 seconds]
mburns_ is now known as mburns
mrnugget has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
Shidash has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mrnugget has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 276 seconds]
mrnugget has joined #ruby
marcdel_ has quit []
michael_lee has joined #ruby
<RubyPanther> n_blownapart: don't memorize or worry about internals. Just worry about the interface you're using right this moment, and always keep the manual open
<RubyPanther> memorize syntax and object semantics
chipotle has joined #ruby
chipotle has quit [Client Quit]
St_Marx has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
<n_blownapart> RubyPanther: thanks one thing is that with the documentation right in front of me I don't always follow the explanation.
St_Marx has joined #ruby
<n_blownapart> sometimes I don't understand something until a question of mine is answered in a certain way . RubyPanther
<n_blownapart> It's a problem &&
<n_blownapart> ^^
<RubyPanther> n_blownapart: In that case, read all the Ruby source :)
Solnse has quit [Quit: Leaving.]
Lemur has joined #ruby
KanKava_ has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
hl has quit [Ping timeout: 252 seconds]
lyanchih_ has quit [Client Quit]
lyanchih has joined #ruby
Rylee has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
rokob has quit []
Kabaka has quit [Ping timeout: 240 seconds]
Rylee has joined #ruby
KanKava has quit [Ping timeout: 255 seconds]
i_s has joined #ruby
<n_blownapart> well RubyPanther those two programs I pasted (did you look at them?) were so similar I began to ask a lot of questions. 1) why should they require the arguments in opposite order. 2) Are the pipes where the key/value pairs are set up or is it on the count_hash[word] += 1 line. ? It seems that the pipe arguments work in an often arbitrary / mysterious fashion. http://pastie.org/9170664
x1337807x has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
lethjakman has joined #ruby
mr_snowf1ake has quit [Ping timeout: 265 seconds]
hl has joined #ruby
b00stfr3ak has joined #ruby
jack_rabbit has quit [Ping timeout: 250 seconds]
agjacome has joined #ruby
i_s has quit [Ping timeout: 276 seconds]
KAO has joined #ruby
x1337807x has quit [Ping timeout: 245 seconds]
combusean has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
mrnugget has quit [Read error: Connection reset by peer]
swerter has joined #ruby
scv_good_to_go has joined #ruby
<scv_good_to_go> Anyone have any guidance on benchmarking concurrent code?
<scv_good_to_go> I want to check how much faster my code is on Rubinius vs. MRI
mrnugget has joined #ruby
lyanchih has quit [Quit: lyanchih]
aganov has joined #ruby
chipotle has joined #ruby
speakingcode has quit [Quit: Lost terminal]
aiguu has joined #ruby
oo_ has quit [Remote host closed the connection]
SCommette has joined #ruby
zz_flazz is now known as flazz
swerter has quit [Quit: see ya]
<scv_good_to_go> hello?
no6 has quit [Quit: leaving]
flazz is now known as zz_flazz
<havenwood> scv_good_to_go: have it trigger something when it's done and compare start time to end time
alpha123 has quit [Ping timeout: 255 seconds]
debajit has joined #ruby
Kabaka has joined #ruby
kenneth has joined #ruby
mrnugget has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
<atmosx> havenwood: to convert this into a hash on the fly: a = ["2", "h", "60", "s"]; h = Hash[a]; end ... should work right?
<atmosx> but I get: wrong element type String at 0 (expected array
lyanchih has joined #ruby
mrnugget has joined #ruby
lyanchih has quit [Client Quit]
mrnugget has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
<popl> >> Hash[*(1..10).to_a]
<eval-in__> popl => {1=>2, 3=>4, 5=>6, 7=>8, 9=>10} (https://eval.in/150356)
Cache_Money has quit [Quit: Cache_Money]
Macaveli has joined #ruby
brunops has joined #ruby
mrnugget has joined #ruby
memorozovm has quit [Remote host closed the connection]
timonv has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
mrnugget has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
GriffinHeart has joined #ruby
aspires has joined #ruby
memorozovm has joined #ruby
mrnugget has joined #ruby
<Hanmac> atmosx: try Hash[*a]
<popl> I just fucking said that
<popl> :P
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
<atmosx> popl: you're not Hanmac though
<atmosx> lol
mrnugget has quit [Client Quit]
<havenwood> atmosx: or: a.each_slice(2).to_h
<popl> that method is suggested at the URL I mentioned
kate_r has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Bumptious has quit [Remote host closed the connection]
fantazo has joined #ruby
Bumptious has joined #ruby
Spami has joined #ruby
<popl> oh, I misread that
<popl> Hash[a.each_slice(2)] is suggested
<popl> havenwood: that won't work
<havenwood> popl: sure it will
<havenwood> >> ["2", "h", "60", "s"].each_slice(2).to_h
<eval-in__> havenwood => {"2"=>"h", "60"=>"s"} (https://eval.in/150357)
MatthewsFace has quit [Quit: This computer has gone to sleep]
s2013 has quit [Ping timeout: 258 seconds]
<popl> interesting
memorozovm has quit [Ping timeout: 240 seconds]
<popl> I just tried it in pry and it gave me a method not found error
<havenwood> popl: only in newer rubies
akonny has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
<havenwood> 2.1?
datafirm has quit [Quit: Computer has gone to sleep.]
<popl> 1.9.3
<atmosx> Also is there any method/way to 'exclude?' instead of include? I'd like to raise an error if any ther letters are included except from a specific set.
lbwski has joined #ruby
<havenwood> popl: yeah, not yet implemented - a new nicety
datafirm has joined #ruby
<popl> AWESOME
<atmosx> there's exclude? cool
<atmosx> oh its in enumerable not in array class
tobago has joined #ruby
<atmosx> unless it is
tobago-work has joined #ruby
JasmeetQA has joined #ruby
Arkaniad has quit [Ping timeout: 276 seconds]
datafirm has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
<n_blownapart> atmosx: unless @players.include?(player.name) do; code ; end ??
<havenwood> atmosx: i think you're thinking ActiveSupport :P
carlyle has joined #ruby
livcd has joined #ruby
havenwood has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
havenwood has joined #ruby
havenn has joined #ruby
havenwood has quit [Client Quit]
brunops has quit [Quit: leaving]
St_Marx has joined #ruby
<havenn> atmosx: although almost shorter to monkey patch it than cherry pick the include: module Enumerable; def exclude?(object); !include?(object) end end
_justin has joined #ruby
memorozovm has joined #ruby
AlexRussia has joined #ruby
chipotle has quit [Quit: cya]
n_blownapart has quit [Remote host closed the connection]
<atmosx> hmm thanks fr the suggestions
carlyle has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
raspberryfan has quit [Remote host closed the connection]
JasmeetQA1 has joined #ruby
livcd has quit [Ping timeout: 265 seconds]
<havenn> hrm, you can: require 'active_support/core_ext/enumerable'
raspberryfan has joined #ruby
<havenn> but how do you get just #exclude?
<havenn> normally just the method name, does question mark bork it, hem
s2013 has joined #ruby
Morkel has joined #ruby
<havenn> ah, i guess that is as close you can pick with #exclude?
aspires has quit []
tagrudev has joined #ruby
mjs2600 has joined #ruby
JasmeetQA has quit [Ping timeout: 265 seconds]
rollypolio has joined #ruby
rollypolio has left #ruby [#ruby]
Aaaal has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
alexju has joined #ruby
yfeldblum has quit [Remote host closed the connection]
__main__ has joined #ruby
mjs2600 has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
akonny has quit [Quit: akonny]
nfk has joined #ruby
jhass|off has quit [Remote host closed the connection]
bijan07077 has quit [Quit: bijan07077]
raspberryfan has quit [Ping timeout: 258 seconds]
AlSquire has quit [Ping timeout: 265 seconds]
bijan07077 has joined #ruby
rshetty has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
__main__ has joined #ruby
i_s has joined #ruby
dayepa has quit [Quit: dayepa]
mercwithamouth has quit [Ping timeout: 255 seconds]
raspberryfan has joined #ruby
LexicalScope has quit [Ping timeout: 250 seconds]
livcd has joined #ruby
sinkensabe has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 258 seconds]
tectonic has joined #ruby
sinkensabe has joined #ruby
p8952 has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
yfeldblu_ has joined #ruby
scv_good_to_go has quit [Quit: scv_good_to_go]
AlSquire has joined #ruby
jhass|off has joined #ruby
bijan07077 has quit [Quit: bijan07077]
jhass|off is now known as jhass
sinkensabe has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
combusean has joined #ruby
tobago-work has quit [Quit: Leaving]
raspberryfan has quit [Remote host closed the connection]
timonv has joined #ruby
raspberryfan has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
EthanHuntAgain has joined #ruby
luckyruby has quit [Quit: Leaving...]
combusean has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 240 seconds]
subraminion has joined #ruby
apeiros has joined #ruby
EthanHuntAgain has quit [Client Quit]
KAO has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
malutskis has joined #ruby
<malutskis> How would you perform "BCD additions" on the following pairs of hexadecimal numbers: 23267 49684 in ruby?
timonv has joined #ruby
anarang has joined #ruby
djbkd has quit [Remote host closed the connection]
bal has joined #ruby
djbkd has joined #ruby
reactormonk has quit [Ping timeout: 252 seconds]
Beoran__ has joined #ruby
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ratdaddy has quit [Quit: Connection closed for inactivity]
apeiros has quit [Ping timeout: 240 seconds]
MZAWeb_ has quit [Quit: WeeChat 0.4.3]
Mon_Ouie has quit [Ping timeout: 252 seconds]
<Hanmac> malutskis: like that? so you got the numbers in decimal
<Hanmac> >> "23267 49684".split(" ").map(&:hex)
<eval-in__> Hanmac => [143975, 300676] (https://eval.in/150382)
ktun has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
ktun has quit [Client Quit]
bal has quit [Ping timeout: 265 seconds]
bal has joined #ruby
ghr has joined #ruby
sinkensabe has joined #ruby
dseitz has joined #ruby
Spami has joined #ruby
<malutskis> Hanmac: No, I am supposed to add them.
<malutskis> I should only get 1 number oyutput
<Hanmac> i dont know what "BCD additions" means
ghr has quit [Ping timeout: 276 seconds]
<Hanmac> >> "23267 49684".split(" ").map(&:hex).inject(0,:+).hex
<eval-in__> Hanmac => undefined method `hex' for 444651:Fixnum (NoMethodError) ... (https://eval.in/150386)
<Hanmac> >> "23267 49684".split(" ").map(&:hex).inject(0,:+).to_s(16)
<eval-in__> Hanmac => "6c8eb" (https://eval.in/150387)
popl has left #ruby [#ruby]
alexju has quit [Remote host closed the connection]
_tpavel has joined #ruby
Aaaal has quit [Quit: Aaaal]
AnoGen has joined #ruby
amundj has joined #ruby
<malutskis> > let addr x y | x + y < 10 = x + y; addr x y | x + y == 10 = 16; addr _ _ = error "sum too large!" in showHex (addr 0x9 0x1) ""
fantazo has quit [Ping timeout: 276 seconds]
JasmeetQA1 has quit [Quit: Leaving.]
frosgy has joined #ruby
djbkd has quit [Quit: Leaving...]
amundj has quit [Ping timeout: 255 seconds]
JasmeetQA has joined #ruby
xcesariox has joined #ruby
akonny has joined #ruby
frogssgy has quit [Ping timeout: 245 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
brtdv has joined #ruby
carlyle has joined #ruby
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
obs has joined #ruby
noop has joined #ruby
klaut has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
carlyle has quit [Ping timeout: 255 seconds]
Martxel has joined #ruby
agjacome has quit [Quit: leaving]
xorgnak has joined #ruby
davedev24_ has quit [Remote host closed the connection]
yacks has joined #ruby
davedev24 has joined #ruby
Martxel has quit [Ping timeout: 255 seconds]
ktun has joined #ruby
xorgnak has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
davedev24 has quit [Ping timeout: 264 seconds]
yfeldblu_ has quit [Remote host closed the connection]
livcd has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
Yuzuk0 has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
andikr has joined #ruby
malutskis has quit [Ping timeout: 240 seconds]
kate_r has quit [Ping timeout: 258 seconds]
havenn has quit [Remote host closed the connection]
livcd has joined #ruby
amclain has quit [Quit: Leaving]
havenwood has joined #ruby
Xeago has joined #ruby
i_s has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
livcd has quit [Ping timeout: 265 seconds]
malutskis has joined #ruby
mehlah has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
i_s has quit [Ping timeout: 252 seconds]
yuu has joined #ruby
LadyRainicorn has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
claymore has joined #ruby
pagios has quit [Remote host closed the connection]
cjsarette has quit [Max SendQ exceeded]
kke has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kke> someone know if ThreadsOnFork workers for backburner require the code to be thread safe?
HashNuke has joined #ruby
CADBOT has joined #ruby
<CADBOT> root 'controller#action'
<CADBOT> rout to: 'controller#azion'
<CADBOT> What's the difference? thanks!
<CADBOT> I believe the latter does a redirect
tectonic has quit []
<CADBOT> While the first one sets the root of the webapp in full
ayaz has joined #ruby
<CADBOT> Or are they really the same?
<CADBOT> sans the types >_>
<sevenseacat> #rubyonrails
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjsarette has joined #ruby
kilk_ has joined #ruby
kilk_ has quit [Client Quit]
<CADBOT> Apologies, I tried joining #rails and found nothing there. Must have gotten the channel wrong
<LadyRainicorn> There are multiple Rails channels.
<LadyRainicorn> Why this is so is beyond me.
kitak_ has quit [Remote host closed the connection]
<sevenseacat> there's only one listed on the rails site *shrugs*
kitak_ has joined #ruby
<LadyRainicorn> But multiple one is actuality.
<LadyRainicorn> Which is confusing, to say the least
cjsarette has quit [Max SendQ exceeded]
<LadyRainicorn> They should be forced to ## since they're unofficial.
funburn has quit [Quit: funburn]
tvw has joined #ruby
_justin has quit [Quit: _justin]
apeiros has joined #ruby
_justin has joined #ruby
<CADBOT> Thanks, posted over there!
ktun has joined #ruby
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
LiohAu has quit [Quit: LiohAu]
malutskis has quit [Ping timeout: 240 seconds]
kitak_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
mjs2600 has joined #ruby
SegFaultAX has quit [Ping timeout: 245 seconds]
imkmf has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
Tarential has quit [Ping timeout: 276 seconds]
Hien has quit [Ping timeout: 252 seconds]
imkmf has joined #ruby
Tarential has joined #ruby
jenrzzz has joined #ruby
SegFaultAX has joined #ruby
Hien has joined #ruby
Xeago has joined #ruby
livcd has joined #ruby
cjsarette has joined #ruby
kitak_ has joined #ruby
Hamled has quit [Ping timeout: 264 seconds]
pagioss has joined #ruby
cjsarette has quit [Max SendQ exceeded]
_Andres has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
fabrice31 has joined #ruby
Hamled has joined #ruby
ndrei has joined #ruby
Burgestrand has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
kitak_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
zigomir has joined #ruby
Xeago has joined #ruby
kitak_ has joined #ruby
obs has quit [Remote host closed the connection]
subraminion has quit [Quit: Computer has gone to sleep.]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
JBreit has joined #ruby
mansi has quit [Ping timeout: 258 seconds]
carlyle has joined #ruby
datafirm has joined #ruby
mjs2600 has quit [Remote host closed the connection]
tesuji has joined #ruby
JBreit has left #ruby [#ruby]
ndrei has quit [Remote host closed the connection]
carlyle has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
datafirm has quit [Ping timeout: 258 seconds]
Xeago has quit [Remote host closed the connection]
Zimsky has joined #ruby
timonv has joined #ruby
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
LiohAu has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
subraminion_ has joined #ruby
alem0lars has quit [Quit: Going AFK...]
relix has joined #ruby
rshetty has quit [Remote host closed the connection]
yacks has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
subraminion has quit [Ping timeout: 276 seconds]
yacks has joined #ruby
bricker`LA has quit [Ping timeout: 276 seconds]
end_guy has quit [Remote host closed the connection]
kiri has joined #ruby
end_guy has joined #ruby
TripTastic has joined #ruby
timonv has quit [Remote host closed the connection]
TripTastic is now known as JBreit2
timonv has joined #ruby
dANOKELOFF has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
RaptorJesus_ has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
alem0lars has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
RaptorJesus has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 255 seconds]
alem0lars has quit [Client Quit]
funburn has joined #ruby
havenwood has joined #ruby
i_s has joined #ruby
alex88 has joined #ruby
monsieurp has quit [Ping timeout: 252 seconds]
monsieurp has joined #ruby
RaptorJesus_ is now known as RaptorJesus
Aaaal has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
Morrolan has quit [Ping timeout: 265 seconds]
KanKava_ is now known as KanKava
i_s has quit [Ping timeout: 264 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
blackmesa has joined #ruby
winny_ has joined #ruby
razrunelord has joined #ruby
dayepa has joined #ruby
cjsarette has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
ktun has quit [Ping timeout: 252 seconds]
shvelo has joined #ruby
klaut_ has joined #ruby
razrunelord has quit [Ping timeout: 255 seconds]
ktun has joined #ruby
jprovazn has joined #ruby
subraminion_ has quit [Quit: Computer has gone to sleep.]
_JamieD_ has quit [Quit: _JamieD_]
klaut has quit [Ping timeout: 276 seconds]
Rojo has quit [Ping timeout: 252 seconds]
subraminion_ has joined #ruby
RohanRNS has quit [Quit: Connection closed for inactivity]
subraminion_ has quit [Remote host closed the connection]
rdark has joined #ruby
subraminion_ has joined #ruby
AlSquire has quit [Quit: Quitte]
_justin has quit [Quit: _justin]
ghr has joined #ruby
Burgestrand has joined #ruby
ndrei has joined #ruby
heftig has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
krz has quit [Ping timeout: 245 seconds]
livcd has joined #ruby
Morrolan has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
Nilium has quit [Ping timeout: 245 seconds]
krz has joined #ruby
Emmanuel_Chanel has joined #ruby
livcd has quit [Ping timeout: 250 seconds]
jimbauds has joined #ruby
timonv has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
Nilium has joined #ruby
einarj has joined #ruby
nvrch has joined #ruby
alem0lars has quit [Quit: Going AFK...]
havenwood has quit [Ping timeout: 272 seconds]
lolmaus has joined #ruby
mikecmpbll has joined #ruby
kaspergrubbe has joined #ruby
memorozovm has quit []
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
Royalb15_1 has quit [Read error: Connection reset by peer]
klaut_ has quit [Remote host closed the connection]
Royalb15_1 has joined #ruby
_justin has joined #ruby
cjsarette has quit [Max SendQ exceeded]
root3d has joined #ruby
carlyle has joined #ruby
datafirm has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
j416 has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
Aaaal has quit [Read error: Connection reset by peer]
<j416> is there a difference between %[] and %{} apart from one using square brackets and the other curly braces?
mansi has joined #ruby
<apeiros> no
<j416> thank you
<apeiros> all %-literals accept a large number of delimtiers
<apeiros> *delimiters
agrinb has joined #ruby
<apeiros> >> % hello .class
<eval-in__> apeiros => String (https://eval.in/150440)
olivier_bK has joined #ruby
<j416> ooh
<j416> %|foo| worked just fine
<j416> cool
datafirm has quit [Ping timeout: 258 seconds]
<apeiros> >> %<html>
<eval-in__> apeiros => "html" (https://eval.in/150441)
<j416> I guess I'd just pick whatever I won't be using in the string
<DefV> >> %%foo%
<eval-in__> DefV => "foo" (https://eval.in/150442)
<apeiros> there are style guides
carlyle has quit [Ping timeout: 255 seconds]
<DefV> is my favourite
<DefV> :-)
<j416> I suppose {} is fairly common though
<apeiros> I prefer [] for array types and {} for scalar types
<DefV> %%100%% :-D
<j416> is %[] preferred over %{}?
<apeiros> many use () for all
<j416> alright
<j416> thanks
JensOfSw_ has joined #ruby
alem0lars has joined #ruby
frobrob has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
JensOfSweden has quit [Ping timeout: 245 seconds]
agrinb has quit [Remote host closed the connection]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
Martxel has joined #ruby
marr has joined #ruby
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
rshetty has joined #ruby
alem0lars has quit [Quit: Going AFK...]
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
wallerdev has quit [Quit: wallerdev]
havenwood has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
root_empire has joined #ruby
DouweM has quit [Ping timeout: 276 seconds]
orthos has joined #ruby
hamakn has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<Hanmac> apeiros: or # ;P
<Hanmac> >> %# A # # C
<eval-in__> Hanmac => " A " (https://eval.in/150450)
i_s has joined #ruby
hamakn has joined #ruby
orthos has quit [Remote host closed the connection]
alem0lars has joined #ruby
orthos has joined #ruby
i_s has quit [Ping timeout: 250 seconds]
nvrch has quit [Quit: nvrch]
ikaros has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
razrunelord has joined #ruby
sooik has joined #ruby
workmad3 has joined #ruby
wolf__ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
moritzschaefer has joined #ruby
klaut has joined #ruby
Guest33413 is now known as yvemath
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has quit [Ping timeout: 252 seconds]
cjsarette has joined #ruby
<j416> hah
<LadyRainicorn> >> %♥hi♥
<eval-in__> LadyRainicorn => /tmp/execpad-34038e90067a/source-34038e90067a:2: invalid multibyte char (UTF-8) ... (https://eval.in/150454)
<LadyRainicorn> aww
<LadyRainicorn> >> "♡"
<eval-in__> LadyRainicorn => "♡" (https://eval.in/150455)
<j416> yes it's a shame it doesn't support that
subraminion_ has quit [Quit: Computer has gone to sleep.]
<j416> I wonder why
<j416> and how is it an invalid multibyte char o_O
<j416> perfectly valid multibyte char
lkba has quit [Read error: Connection reset by peer]
<LadyRainicorn> >> %¤testing¤
<eval-in__> LadyRainicorn => /tmp/execpad-9c49bdfc7708/source-9c49bdfc7708:2: invalid multibyte char (UTF-8) ... (https://eval.in/150456)
<LadyRainicorn> nope
alem0lars has quit [Quit: Going AFK...]
<Hanmac> i think only ascii chars are supported as delimiter
psyko666 has quit [Remote host closed the connection]
nvrch has joined #ruby
bricker`LA has joined #ruby
<LadyRainicorn> That is annoying.
subraminion_ has joined #ruby
alem0lars has joined #ruby
subraminion_ has quit [Remote host closed the connection]
ktun has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> >> eval("%\btest\b")
<eval-in__> LadyRainicorn => "test" (https://eval.in/150457)
<LadyRainicorn> haha
subraminion_ has joined #ruby
<j416> what's \b o_O
<LadyRainicorn> >> eval("%\nhi\n")
<eval-in__> LadyRainicorn => "hi" (https://eval.in/150458)
<LadyRainicorn> ASCII backspacr
<LadyRainicorn> backspace
workmad3 has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
<LadyRainicorn> >> eval("%\r\nwindoze\r\n")
<eval-in__> LadyRainicorn => "windoze" (https://eval.in/150459)
<LadyRainicorn> huh, interesting behaviour.
<apeiros> I expected "\nwindoze"
Martxel has quit [Quit: .]
<LadyRainicorn> Me too.
nari has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
<apeiros> maybe ruby folds \r\n internally?
livcd has joined #ruby
<apeiros> yupp
<LadyRainicorn> >> eval("%\rwindoze\r\n")
<eval-in__> LadyRainicorn => (eval):1: warning: encountered \r in middle of line, treated as a mere space ... (https://eval.in/150460)
<apeiros> >> eval("'\r\n'")
<eval-in__> apeiros => "\n" (https://eval.in/150461)
dANOKELOFF has quit []
andrewlio has joined #ruby
<LadyRainicorn> >> eval("%(\r\n)")
<eval-in__> LadyRainicorn => "\n" (https://eval.in/150464)
<LadyRainicorn> s t r a n g e
elaptics is now known as elaptics`away
<apeiros> not really
<apeiros> it means ruby normalizes all source code with \r\n -> \n
toretore has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
<LadyRainicorn> That is strange behaviour.
workmad3 has quit [Ping timeout: 252 seconds]
CADBOT has quit [Ping timeout: 255 seconds]
mercerist has joined #ruby
<LadyRainicorn> I would not expect string literals to be mangled in that way at all.
diegoviola has quit [Quit: WeeChat 0.4.3]
root3d has quit [Ping timeout: 240 seconds]
root3d has joined #ruby
JensOfSw_ is now known as JensOfSweden
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
<apeiros> it's not the literal which gets mangled
workmad3 has joined #ruby
<apeiros> it's the whole source code
<apeiros> bottom line: if you want carriage returns in your string literals, you'll have to use \r
sevenseacat has quit [Quit: Leaving.]
certainty has quit [Disconnected by services]
canton7-mac has joined #ruby
mengu has quit [Remote host closed the connection]
e^0 has joined #ruby
havenwood has joined #ruby
alem0lars has joined #ruby
drager_ has quit [Changing host]
drager_ has joined #ruby
drager_ is now known as drager
funburn has quit [Quit: funburn]
<LadyRainicorn> It is interesting that carriage returns are mangled in eval as well.
nari has joined #ruby
decoponio has joined #ruby
Morrolan has quit [Quit: ZNC: Shutting down.]
ktun has joined #ruby
moritzschaefer has quit [Ping timeout: 252 seconds]
mjs2600 has joined #ruby
carlyle has joined #ruby
datafirm has joined #ruby
subraminion_ has quit [Quit: Computer has gone to sleep.]
winny_ has quit [Quit: Page closed]
Aaaal has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
mansi has joined #ruby
ktun has quit [Ping timeout: 255 seconds]
bakflash has joined #ruby
zergood_ has joined #ruby
datafirm has quit [Ping timeout: 264 seconds]
mjs2600 has quit [Ping timeout: 265 seconds]
carlyle has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
shvelo has quit [Ping timeout: 255 seconds]
havenwood has quit [Ping timeout: 272 seconds]
lxsameer has quit [Quit: Leaving]
debajit has quit [Quit: Leaving...]
mansi has quit [Ping timeout: 264 seconds]
xcesariox has joined #ruby
root3d has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
<Cymew> someone here who have really messed with nokogiri and xpath? I want to do something like this, but it returns nothing. Can't you grab multiple attributes in that way? @bigdoc.xpath('//CI[@typeName="Virtual Device"][@name="OS Type"][@datumType="String"]')
ndrei has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
i_s has joined #ruby
Rahul_Roy has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
agrinb has quit [Ping timeout: 252 seconds]
Maple__ has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
kyb3r_ has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
i_s has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
JensOfSweden has quit [Remote host closed the connection]
JensOfSweden has joined #ruby
root_empire has quit [Remote host closed the connection]
michael_lee has quit [Remote host closed the connection]
flagg0204_ has quit [Ping timeout: 245 seconds]
_tpavel has quit [Ping timeout: 240 seconds]
alem0lars has quit [Quit: alem0lars]
funburn has joined #ruby
havenwood has joined #ruby
razrunelord has quit [Ping timeout: 252 seconds]
mengu__ has joined #ruby
subraminion_ has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
flagg0204 has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
funburn has quit [Quit: funburn]
_tpavel has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
livcd has joined #ruby
anaeem1__ has joined #ruby
postmodern has quit [Quit: Leaving]
ephemerian has joined #ruby
tjr9898__ has quit [Remote host closed the connection]
livcd has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 272 seconds]
RubyPanther has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
sski has joined #ruby
fabrice31 has joined #ruby
bal1 has joined #ruby
Hobogrammer has quit [Ping timeout: 258 seconds]
carlyle has joined #ruby
datafirm has joined #ruby
bal has quit [Ping timeout: 265 seconds]
Morrolan has joined #ruby
sensen has quit [Quit: leaving]
sski has quit [Ping timeout: 255 seconds]
RubyPanther has joined #ruby
mansi has joined #ruby
datafirm has quit [Ping timeout: 252 seconds]
carlyle has quit [Ping timeout: 255 seconds]
Melpaws has joined #ruby
<Melpaws> hate to ask because i'm sure asked a thousand times in a thousand places - but is there a coursera alternative or online course for ruby?
mercwithamouth has joined #ruby
aviator7 has joined #ruby
Maple__ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
aviator7 has quit [Remote host closed the connection]
<jimbauds> We use ruby in this course but this is a SaaS course. Not ruby only.
<Melpaws> thank you!
funburn has joined #ruby
Hobogrammer has joined #ruby
havenwood has joined #ruby
<jimbauds> First homework is due in 2 days. You can still register for a certificate! ;) Good Luck!
<Melpaws> thanks
JZTech101 has joined #ruby
rshetty has quit [Remote host closed the connection]
sooik has quit [Ping timeout: 258 seconds]
sooik has joined #ruby
rshetty has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
nvrch has quit [Quit: nvrch]
rshetty has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
i_s has joined #ruby
hgl has joined #ruby
chinkung has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
sooik has quit [Ping timeout: 245 seconds]
i_s has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
ValicekB has quit [Ping timeout: 245 seconds]
e^0 has quit [Quit: WeeChat 0.4.3]
Maple__ has quit [Ping timeout: 265 seconds]
Ardenzi has joined #ruby
kyb3r_ has quit [Quit: Leaving]
agjacome has joined #ruby
razrunelord has joined #ruby
sski has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 276 seconds]
razrunelord has quit [Ping timeout: 258 seconds]
raspberryfan has quit [Remote host closed the connection]
subraminion_ has quit [Quit: Computer has gone to sleep.]
_justin has quit [Quit: _justin]
raspberryfan has joined #ruby
orthos has quit [Quit: orthos]
orthos has joined #ruby
SegFaultAX has quit [Ping timeout: 252 seconds]
bakflash has quit [Ping timeout: 252 seconds]
certainty has joined #ruby
ValicekB has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
orthos has quit [Client Quit]
SegFaultAX has joined #ruby
freggles has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
freggles has quit [Changing host]
freggles has joined #ruby
Shidash has joined #ruby
orthos has joined #ruby
karupa is now known as zz_karupa
rdark has joined #ruby
_justin has joined #ruby
livcd has joined #ruby
orthos has quit [Client Quit]
troulouliou_dev has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
nari has joined #ruby
livcd has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Ping timeout: 276 seconds]
w7635ill has joined #ruby
rshetty has joined #ruby
dsdeiz_ has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
agjacome has quit [Quit: leaving]
havenwood has joined #ruby
mntzn has quit [Quit: Lost terminal]
mengu__ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
mengu has joined #ruby
subraminion_ has joined #ruby
jxf has joined #ruby
subraminion_ has quit [Client Quit]
tjr9898 has joined #ruby
subraminion has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
agjacome has joined #ruby
dumdedum has quit [Quit: foo]
datafirm has joined #ruby
carlyle has joined #ruby
obs has joined #ruby
lyanchih_ has joined #ruby
JensOfSw_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
mansi has joined #ruby
datafirm has quit [Ping timeout: 264 seconds]
carlyle has quit [Ping timeout: 255 seconds]
JensOfSweden has quit [Ping timeout: 258 seconds]
maximski has joined #ruby
lyanchih_ has quit [Ping timeout: 265 seconds]
will300 has joined #ruby
certainty has quit [Quit: Lost terminal]
mansi has quit [Ping timeout: 264 seconds]
aiguu has quit [Ping timeout: 276 seconds]
will300 has quit [Client Quit]
havenwood has quit [Ping timeout: 272 seconds]
railsbro has joined #ruby
e^0 has joined #ruby
w7635ill has quit [Ping timeout: 276 seconds]
alaing has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
e^0 has quit [Client Quit]
lyanchih_ has joined #ruby
lyanchih_ has quit [Client Quit]
rdark has joined #ruby
yuu has quit [Quit: Page closed]
anaeem___ has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
troulouliou_dev has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
tjr9898 has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
Trudko has joined #ruby
<Trudko> Hi guys, is there any important difference between linux and windows when developing for ruby?
mehlah has quit [Quit: Leaving...]
Morkel has joined #ruby
phutchins has joined #ruby
anaeem1__ has quit [Ping timeout: 240 seconds]
<apeiros> Trudko: other than windows being much more annoying?
<apeiros> a couple of methods are non-portable. e.g. fork
<workmad3> Trudko: it's quite non-trivial to get windows set up with a sane build tool-chain suitable for many native gems too
<workmad3> or at least, I always found it so back when I was insane enough to try that :)
i_s has joined #ruby
zergood_ has quit [Ping timeout: 265 seconds]
lyanchih_ has quit [Client Quit]
thoolihan has joined #ruby
chrisseaton has joined #ruby
frobrob has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 252 seconds]
dayepa has quit [Ping timeout: 252 seconds]
dayepa has joined #ruby
sk87 has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
franzip has joined #ruby
dumdedum has joined #ruby
razrunelord has joined #ruby
tjr9898 has joined #ruby
maximski_ has joined #ruby
maximski has quit [Ping timeout: 252 seconds]
Maple__ has joined #ruby
Maple__ has quit [Changing host]
Maple__ has joined #ruby
<Trudko> I see
mpajor_op5 is now known as mpajor
thoolihan has quit [Quit: out]
yfeldblum has quit [Ping timeout: 255 seconds]
cpruitt has joined #ruby
madhatter has quit [Remote host closed the connection]
razrunelord has quit [Ping timeout: 258 seconds]
thoolihan has joined #ruby
sambao21 has joined #ruby
phoo1234567 has joined #ruby
havenwood has joined #ruby
bluenemo has joined #ruby
Trudko has left #ruby [#ruby]
troulouliou_dev has joined #ruby
xcesariox has joined #ruby
cpruitt has quit [Ping timeout: 252 seconds]
Rojo has joined #ruby
eka has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
jespada has joined #ruby
Hanmac1 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
_justin has quit [Ping timeout: 252 seconds]
livcd has joined #ruby
eka has quit [Client Quit]
Snarkz has joined #ruby
andrewjanssen has joined #ruby
ephemerian has quit [Quit: Leaving.]
andrewjanssen has quit [Client Quit]
Maple__ has quit [Ping timeout: 265 seconds]
mercerist has joined #ruby
<matti> Ruby on Windows is like self-mutilation.
_justin has joined #ruby
<ddv> I don't use Windows but isn't RubyInstaller pretty easy to use?
kitak_ has quit [Remote host closed the connection]
spyderman4g63 has quit []
seawolf has joined #ruby
fukuyamaken has quit [Remote host closed the connection]
fukuyamaken has joined #ruby
seawolf has left #ruby [#ruby]
danshultz has joined #ruby
livcd has quit [Ping timeout: 258 seconds]
tjr9898 has quit [Remote host closed the connection]
klaut has joined #ruby
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
Maple__ has joined #ruby
Maple__ has quit [Changing host]
Maple__ has joined #ruby
sooik has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
workmad3 is now known as wm3|away
nvrch has joined #ruby
blenny has quit [Ping timeout: 264 seconds]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
atraylen has joined #ruby
nateberkopec has quit [Quit: Leaving...]
motoford has left #ruby [#ruby]
JBreit2 has left #ruby ["Leaving"]
blenny has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sooik has quit [Ping timeout: 252 seconds]
mark_locklear has joined #ruby
datafirm has joined #ruby
carlyle has joined #ruby
ndrei has joined #ruby
spyderman4g63 has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
krz has quit [Quit: WeeChat 0.4.3]
subraminion has quit [Quit: Computer has gone to sleep.]
datafirm has quit [Ping timeout: 276 seconds]
dANOKELOFF has joined #ruby
carlyle has quit [Ping timeout: 255 seconds]
iuuui has joined #ruby
ker2x has joined #ruby
<ker2x> hello again
tjr9898 has joined #ruby
rshetty has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
rshetty has joined #ruby
<ker2x> i have a class A with a method that call A.new. new if i have a class B < A i want this inerithed methode to call B.new
<ker2x> how ?
<ker2x> now*
obs_ has joined #ruby
<ker2x> no, how
<ker2x> argh
yvemath has quit [Excess Flood]
funburn has quit [Quit: funburn]
<LadyRainicorn> self.class.new
upsell5 has joined #ruby
<apeiros> and if it's in a class method, just plain `new`
<ker2x> self.class.new is working :)
<ker2x> (new alone isn't)
<ker2x> thank you
rshetty has quit [Ping timeout: 258 seconds]
mengu has quit [Remote host closed the connection]
<apeiros> ker2x: *if it's in a class method*. that part matters
ldnunes has joined #ruby
<ker2x> but... it is
<ker2x> afaik
<apeiros> no
<banister> ker2x cant be
<apeiros> if it was, you'd just call Class.new
<ker2x> ok it's not
mengu has joined #ruby
<apeiros> since self.class in a class method will return Class
subraminion has joined #ruby
sunya7a_ has joined #ruby
subraminion has quit [Remote host closed the connection]
<apeiros> hey banister - I was just (finally) configuring my pry prompt - line number is still not available, right?
subraminion has joined #ruby
<apeiros> ah, wait… now that I say it… it might just be that in that app, pry was never updated in the bundle
havenwood has joined #ruby
<banister> apeiros baby dont remember
mjsmith2 has joined #ruby
<apeiros> hm, doesn't seem like in a new version of pry either.
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
tjr9898 has joined #ruby
<apeiros> extra_sticky_locals sounds interesting :D
anaeem___ has quit [Remote host closed the connection]
rshetty has joined #ruby
SirFunk has quit [Remote host closed the connection]
zergood_ has joined #ruby
anaeem1_ has joined #ruby
yvemath has joined #ruby
SirFunk has joined #ruby
i_s has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jmurray has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
freggles has quit [Ping timeout: 258 seconds]
mjsmith2 has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
razrunelord has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hgl has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
bluenemo has quit [Quit: Verlassend]
yfeldblum has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
blackmesa has joined #ruby
razrunelord has quit [Ping timeout: 258 seconds]
noop has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
Rainicorn has joined #ruby
cpruitt has quit [Ping timeout: 255 seconds]
blackmesa has quit [Client Quit]
jimbauds has quit [Ping timeout: 250 seconds]
LadyRainicorn has quit [Ping timeout: 240 seconds]
dsdeiz has joined #ruby
qwyeth has joined #ruby
sunya7a_ has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
_justin has quit [Quit: _justin]
dblessing has joined #ruby
sunya7a has joined #ruby
hgl has joined #ruby
livcd has joined #ruby
agrinb has quit [Remote host closed the connection]
Burgestrand has quit [Ping timeout: 265 seconds]
creativeembassy has joined #ruby
Burgestrand has joined #ruby
livcd has quit [Ping timeout: 265 seconds]
tjr9898 has quit []
tkuchiki has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
simono has joined #ruby
SCommette has joined #ruby
kpshek has joined #ruby
obs_ has quit [Remote host closed the connection]
motoford has joined #ruby
stef_204 has joined #ruby
mrmargolis has joined #ruby
<ddv> baby?
doodlehaus has joined #ruby
<ddv> :-)
sambao21 has joined #ruby
aspiers has quit [Ping timeout: 240 seconds]
wm3|away has quit [Ping timeout: 252 seconds]
sunya7a has quit [Ping timeout: 264 seconds]
rshetty has quit [Ping timeout: 276 seconds]
fantazo has joined #ruby
havenwood has joined #ruby
markolson has left #ruby ["Leaving..."]
paulfm has joined #ruby
sambao21 has quit [Ping timeout: 258 seconds]
dEPy has joined #ruby
agrinb has joined #ruby
banister has joined #ruby
datafirm has joined #ruby
danman has joined #ruby
gfunc has joined #ruby
Maple__ has quit [Quit: bbl]
lxsameer has quit [Quit: Leaving]
Ariadeno has joined #ruby
Maple__ has joined #ruby
Maple__ has quit [Changing host]
Maple__ has joined #ruby
wm3|away has joined #ruby
sunya7a has joined #ruby
mansi has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
DouweM has joined #ruby
gfunc has quit [Remote host closed the connection]
datafirm has quit [Ping timeout: 240 seconds]
MrPop has joined #ruby
kate_r has joined #ruby
snath has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
kate_r has quit [Max SendQ exceeded]
[1]Ariadeno has joined #ruby
kate_r has joined #ruby
<MrPop> Hi all. I can't require 'json' on ruby 2.0.0, the require method returns false. Does anyone know why this might be?
garndt has joined #ruby
iuuui has quit [Quit: Page closed]
<cout> MrPop: because it's already required
<cout> false doesn't mean failure
mary5030 has joined #ruby
<kaspergrubbe> MrPop: Something else might have loaded it for you
mary5030 has quit [Remote host closed the connection]
<MrPop> ooh
<MrPop> thanks :)
mary5030 has joined #ruby
[2]Ariadeno has joined #ruby
<MrPop> Should have RTFM a little better- I thought false was failure
dEPy has quit [Quit: Lingo - http://lingoirc.com]
fukuyamaken has quit [Read error: Connection reset by peer]
<MrPop> Seeya gang!
MrPop has left #ruby ["WeeChat 0.3.8"]
Beoran__ has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 258 seconds]
fukuyamaken has joined #ruby
<apeiros> „The normal require functionality of returning false if that file has already been loaded is preserved.“
<apeiros> straight from the docs :-p
<apeiros> oh, he's gone
Ariadeno has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit []
wm3|away is now known as workmad3
kaspergrubbe has joined #ruby
JensOfSw_ has quit [Remote host closed the connection]
Ariadeno has joined #ruby
JensOfSweden has joined #ruby
mansi has joined #ruby
[1]Ariadeno has quit [Ping timeout: 252 seconds]
troulouliou_dev has quit [Ping timeout: 245 seconds]
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
Rainicorn is now known as LadyRainicorn
troulouliou_dev has joined #ruby
Hanmac has joined #ruby
Ariadeno is now known as Guest16234
sambao21 has joined #ruby
[2]Ariadeno has quit [Ping timeout: 276 seconds]
Kazii has joined #ruby
mansi has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
hgl has quit [Ping timeout: 255 seconds]
mansi has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
mjsmith2 has joined #ruby
dsdeiz has quit [Ping timeout: 258 seconds]
badosu has joined #ruby
Guest16234 has quit [Ping timeout: 276 seconds]
Kazii has quit [Client Quit]
benzrf is now known as benzrf|offline
arturaz has joined #ruby
treehug88 has joined #ruby
Guest69805 has joined #ruby
aspiers has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
beef-wellington has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
aspiers has left #ruby [#ruby]
hgl has joined #ruby
rudisimo has joined #ruby
zachallett has joined #ruby
nateberkopec has joined #ruby
yubrew has joined #ruby
meatherly has joined #ruby
vpretzel is now known as vpretzel|1573
mengu has joined #ruby
mengu has joined #ruby
cjsarette has quit [Excess Flood]
i_s has joined #ruby
krz has joined #ruby
Advocation has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Guest69805 has quit [Ping timeout: 252 seconds]
benzrf|offline is now known as benzrf
warren has joined #ruby
madhatter has joined #ruby
warren has left #ruby ["Leaving"]
fukuyamaken has quit [Read error: Connection reset by peer]
fukuyamaken has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
mizmo has joined #ruby
paulfm has quit []
<mizmo> hi - i have what i hope is a super simple newb q, but i can't find answers in the docs or on stack exchange or anything like that -
mark_locklear has quit [Ping timeout: 276 seconds]
mduk is now known as TheNewJosh
<mizmo> i need to search an array but exact match, not partial
cjsarette has joined #ruby
zz_flazz is now known as flazz
flazz has left #ruby ["WeeChat 0.4.3"]
sunya7a has quit [Ping timeout: 240 seconds]
TheNewJosh is now known as mduk
i_s has quit [Ping timeout: 264 seconds]
cjsarette has quit [Max SendQ exceeded]
<Ankhers> mizmo: Of one value, or the entire array?
<mizmo> so for example, the array page_classes["docs", "docs_index"] should be returning nil when i search for 'index' but it is returning because of the "docs_index" item
motoford has quit [Quit: motoford]
yfeldblum has joined #ruby
<mizmo> Ankhers, i just want an exact match for one value in the array - does that make sense?
motoford has joined #ruby
<canton7-mac> define "exact match"?
<canton7-mac> you want to see if an array contains a value?
<atmosx> But who is going to fight Tyrion?
moritzschaefer has joined #ruby
<atmosx> I thought the 'hand of the King' but now I read apparently they will have to pick a 'champion'
<mizmo> canton7-mac, if i search for "index", it will only say there's a match if there is "index" not "omgindex" or "foo-index" or "index-bar"
<canton7-mac> mizmo, so, yes, you want to see if an array contains a value?
<canton7-mac> >> ["foo", "bar", "foo-bar"].include?("foo")
<eval-in__> canton7-mac => true (https://eval.in/150608)
<mizmo> canton7-mac: i tried that, it's returning partial matches
<canton7-mac> mizmo, define a partial match
<mizmo> oh wait hold on
<canton7-mac> what code are you using
agrinb has quit [Remote host closed the connection]
razrunelord has joined #ruby
<mizmo> yeh that returns partial match
<canton7-mac> what is "that"?
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
cpruitt has joined #ruby
<canton7-mac> >> ["bar", "foo-bar"].include?("foo")
<eval-in__> canton7-mac => false (https://eval.in/150609)
paulfm has joined #ruby
<mizmo> canton7-mac, if i use ["bar", "foo-bar"].include?("foo"), then it'll return "foo-bar" - I consider that a partial match not an exact match
Macaveli has quit [Ping timeout: 252 seconds]
<DouweM> mizmo: I want to see this magic #include? that does partial matches
<canton7-mac> mizmo, no. it returns false
Hanmac1 has joined #ruby
<canton7-mac> as demonstrated just above ;)
<mizmo> canton7-mac, not in this stupid middleman setup i have :-/
<workmad3> >> ["bar", "foo-bar"].include?(/foo/)
<eval-in__> workmad3 => false (https://eval.in/150610)
<canton7-mac> mizmo, right, so middleman is somehow involved
<workmad3> hmm, it doesn't even do regex :)
<canton7-mac> mizmo, we need code. pastie a short example which demonstrates the problem in its entirety
<DouweM> >> ["bar", "foo-bar"].any? { |x| x.include?("foo") }
<eval-in__> DouweM => true (https://eval.in/150613)
tkuchiki has joined #ruby
<canton7-mac> mizmo, otherwise, how are we going to find out all the things you aren't telling us? like middleman...
<DouweM> but I'm guessing you're not doing that
aganov has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 258 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
<mizmo> i don't know why middleman would change how the array methods work in ruby?
<mizmo> this is the snippet i'm working with:
jeregrine has joined #ruby
<mizmo> if i print page_classes for index.html, it spits out "index"
pezhore has joined #ruby
<mizmo> if i print page_classes for docs.html, it spits out "docs docs_index"
agrinb has joined #ruby
<mizmo> this code snippet, when run, prints out the index graphic on both index.html and docs.html http://pastie.org/9172133
<canton7> mizmo, what is 'page_classes'?
rails426 has joined #ruby
<canton7> mizmo, I think it's a string...
<DouweM> yeah, I'm going with canton7
<mizmo> canton7, ok. (sorry im a total newb) are strings arrays as they are in other langs?
<DouweM> mizmo: of course "docs docs_index" includes "index"
<canton7> mizmo, as in C? no.
<canton7> as in most other languages? yes
<pezhore> using rails, if I want to define a function that anything can call (e.g. grape api post/gets), where would the best place to put said function be?
havenwood has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has quit [Ping timeout: 258 seconds]
<mizmo> DouweM, that's why i'm interested in an exact match. If I search for paper to write on, and there's only "toilet paper" in the box, i dont' want ruby to hand me a roll of toilet paper
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<canton7> >> "fooobar".include?("foo")
<DouweM> mizmo: Array#include? checks if any element equals the passed object, String#include? checks if the passed string is a substring of the first string
<eval-in__> canton7 => true (https://eval.in/150614)
vpretzel|1573 is now known as vpretzel
<DouweM> mizmo: that's completely expected behaviour. split on " " so you get an array, and then use #include? if you want to check for exact element matches
<canton7> mizmo, you're not searching a box. I don't think 'page_classes' is an array of strings. I think it's a single string
SCommette has quit [Quit: SCommette]
beef-wellington has joined #ruby
<DouweM> >> page_classes = "bar foo-bar"; page_classes.split(" ").include?("foo")
<eval-in__> DouweM => false (https://eval.in/150615)
moritzschaefer has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
<mizmo> omg thank you guys, that did it
<DouweM> mizmo: learn the difference between strings and arrays :)
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<canton7> mizmo, always keep in mind what data type you're working with. if you think that something's an array, CHECK that it's an array
Shidash has quit [Ping timeout: 265 seconds]
<mizmo> is there any kind of handy debug thing i can use to spit out the type of a variable?
<apeiros> ary.class
<apeiros> also, variables don't have types, objects have ;-)
relix has joined #ruby
<mizmo> sorry, im a C programmer :( :(
<DouweM> mizmo: but I think in this case you knew page_classes was a string, you were just confused over what #include? is supposed to do
<mizmo> thanks for your patience and helpfulness
<benzrf> mizmo: C has the worst type system ever
<benzrf> mizmo: get that shit out of ur head o_o
<benzrf> mizmo: anyway in ruby there arent really types
<benzrf> only classes
<benzrf> objects are objects
<benzrf> they dont have types
<benzrf> they may be a string or a fixnum
<benzrf> but that's not a /type/
fabrice31 has quit [Remote host closed the connection]
<benzrf> that's just what class the object uses for its methods
<mizmo> okay makes sense
arturaz has quit [Remote host closed the connection]
jgabrielygalan has joined #ruby
fabrice31 has joined #ruby
<workmad3> benzrf: many people would regard the object's class as a type ;) and doing so gives ruby a stronger type system than C, as you cannot just treat one type as another
cjsarette has joined #ruby
markolson has joined #ruby
ce_afk is now known as cescalante
<apeiros> workmad3: it's an attempt at language-overarching terminology
<benzrf> mizmo: similarly, you may regard some car as being 'of type car', but that's not really the most accurate perception
_justin has joined #ruby
<benzrf> mizmo: a car is a blob of matter like any other that happens to support the driving operation
<apeiros> there was a good article making a point about why classes are not types. I like that use of terminology. but it assumes people universally agree on a set terminology :)
troulouliou_dev has quit [Quit: Leaving]
hgl has quit [Ping timeout: 258 seconds]
<DefV> haha, people, universally agreeing on anything
<DefV> good one
danman has quit [Quit: danman]
<apeiros> I see that you see the problem :D
livcd has joined #ruby
<workmad3> DefV: 'universally agreeing' == 'people who don't agree are rightfully classed as insane' <-- how's that? :)
<workmad3> (btw, if you don't agree, you are quite obviously insane...)
<cout> workmad3: maybe they are typed as insane
hgl has joined #ruby
<apeiros> workmad3: we, the insane, disagree with your use of the word "insane".
<cout> and we should all be classed as inane
<apeiros> workmad3: and due to your own definition, you're now insane too :-p
<workmad3> apeiros: would it help if I clarified - insane in this case means holding an opinion that differs from my own
troulouliou_dev has joined #ruby
<apeiros> workmad3: too late
<workmad3> apeiros: nope... you're insane, your views don't count ;)
<apeiros> now you disagree with what you've said before. you're just going deeper into insanity.
<DefV> workmad3: I'm pretty sure I am insane
<DefV> but I'm not sure I disagree
JasmeetQA has joined #ruby
EagleDelta has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
freerobby has joined #ruby
livcd has quit [Ping timeout: 265 seconds]
pezhore has left #ruby [#ruby]
danman has joined #ruby
rostam has quit [Remote host closed the connection]
vpretzel is now known as vpretzel|1254
tobago has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
s2013 has joined #ruby
Melpaws has quit [Quit: Leaving.]
Melpaws has joined #ruby
stef_204 has joined #ruby
dstynchula has joined #ruby
dik_dak has joined #ruby
dstynchula has quit [Client Quit]
kevind has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Ping timeout: 240 seconds]
ffranz has joined #ruby
rostam has joined #ruby
tkuchiki has quit [Remote host closed the connection]
root3d has joined #ruby
Xeago has quit [Remote host closed the connection]
Melpaws has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
andrewjanssen has joined #ruby
tkuchiki has joined #ruby
User385 has joined #ruby
<User385> stu "d!ckless" lantz betrays all; trannys & queers(chaste Homos/a$$holes), rule; http://en.wikipedia.org/wiki/Lists_by_country
<User385> gone
User385 has quit [Client Quit]
agrinb has quit [Remote host closed the connection]
<testol> I can only imagine the grand purpose behind delivering that message
<apeiros> I can't estimate the amount of brain damage required to think it was a worthwhile activity
Hanmac1 has quit [Ping timeout: 252 seconds]
fukuyamaken has quit [Read error: Connection reset by peer]
cina has joined #ruby
fukuyamaken has joined #ruby
sunya7a has joined #ruby
sinkensabe has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
_justin has quit [Quit: _justin]
SCommette has joined #ruby
alexju has joined #ruby
mercerist has joined #ruby
Hanmac has joined #ruby
agrinb has joined #ruby
SCommette has quit [Client Quit]
datafirm has joined #ruby
bijan07077 has joined #ruby
mengu has quit []
mehlah has joined #ruby
SCommette has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
tagrudev has quit [Remote host closed the connection]
banister has joined #ruby
_justin has quit [Client Quit]
tesuji has quit [Ping timeout: 240 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
rudisimo has quit []
banister has quit [Max SendQ exceeded]
rudisimo has joined #ruby
sunya7a has quit [Ping timeout: 255 seconds]
datafirm has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 258 seconds]
marr has quit []
geggam has joined #ruby
subraminion has joined #ruby
larissa has joined #ruby
subraminion has quit [Client Quit]
maximski_ has quit [Read error: Connection reset by peer]
maximski has joined #ruby
meatherly has quit [Remote host closed the connection]
kate_r has joined #ruby
maximski has quit [Max SendQ exceeded]
meatherly has joined #ruby
cescalante is now known as ce_afk
yfeldblum has joined #ruby
HashNuke has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yacks has quit [Ping timeout: 250 seconds]
ce_afk is now known as cescalante
<ericwood> A+ spamming
ndrei has joined #ruby
zcreative has joined #ruby
JumpMast3r has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
meatherl_ has joined #ruby
anarang has quit [Quit: Leaving]
zergood_ has quit [Ping timeout: 255 seconds]
mansi has joined #ruby
tylerkern has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
noop has joined #ruby
mansi has joined #ruby
ixti has joined #ruby
Xeago has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
rails426 has quit []
yacks has joined #ruby
rizzatti has joined #ruby
hamakn has joined #ruby
sunya7a has joined #ruby
agrinb has joined #ruby
akonny has quit [Quit: akonny]
pothibo has joined #ruby
banister has joined #ruby
<vali> hi guys
banister has quit [Max SendQ exceeded]
thesheff17 has joined #ruby
<havenwood> good morning
i_s has joined #ruby
hgl has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
obs_ has joined #ruby
alpha123 has joined #ruby
lw has joined #ruby
sputnik1_ has joined #ruby
<vali> I'm trying to install a module called podio
andreyvystavkin has joined #ruby
<vali> and it seems to install forever ?
csmrfx has quit [Ping timeout: 240 seconds]
<vali> NameError: uninitialized constant Podio
zz_jrhorn424 is now known as jrhorn424
sski has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 264 seconds]
<vali> and after ignoring that...I just see the constant error
<Ankhers> vali: What did you do to 'install' this module?
sski has joined #ruby
jamto11 has joined #ruby
<vali> Ankhers, gem install podio
<Ankhers> vali: Did you require it in whatever file you are attempting to use it?
<vali> yes
<vali> gem install podio
<vali> Successfully installed podio-1.0.0
<vali> 1 gem installed
<vali> jruby 1.7.11 (1.9.3p392) 2014-02-24 86339bb on Java HotSpot(TM) Client VM 1.7.0_55-b13 [linux-i386]
Fire-Dragon-DoL has joined #ruby
oo_ has quit [Remote host closed the connection]
BWStearns has joined #ruby
upsell5 has quit [Quit: upsell5]
andreyvystavkin has left #ruby [#ruby]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
raspberryfan has quit []
zigomir has quit [Remote host closed the connection]
Advocation has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
cina has quit [Quit: leaving]
ixti has quit [Ping timeout: 265 seconds]
<Ankhers> vali: And you are sure you have both require 'rubygems' and require 'podio'?
<vali> yep
<vali> testing again..
bal1 has quit [Quit: bal1]
<havenwood> no need for `require 'rubygems'`
sooik has joined #ruby
sputnik1_ has quit [Ping timeout: 258 seconds]
zigomir has joined #ruby
SilkFox has joined #ruby
p8952 has joined #ruby
sski has quit [Ping timeout: 252 seconds]
hgl has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
setra has joined #ruby
hamakn has joined #ruby
razrunelord has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
<pothibo> is it possible to tell rubygems to cache the gems like bundler does? I have a gem that requires like 20 other gems and the boot up is awfully slow
cina has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
alpha123 has quit [Ping timeout: 255 seconds]
andrewjanssen has joined #ruby
meatherl_ has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
claymore has quit [Quit: Leaving]
razrunelord has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
momomomomo has quit [Quit: momomomomo]
sdwrage has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
r_s_h has joined #ruby
Vu1k has joined #ruby
momomomomo has joined #ruby
<Vu1k> Hi, anyone can help me with ruby setup in ubuntu 12.04?
meatherl_ has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
meatherly has quit [Read error: No route to host]
sooik has quit [Ping timeout: 264 seconds]
<Ankhers> Vu1k: What do you need to know?
bluOxigen has joined #ruby
paulfm has quit []
<Vu1k> I have installed ruby 2.0.0 and when I want to run 'rhodes app store'
cescalante is now known as ce_afk
<Vu1k> I get this bash: /usr/local/bin/rhodes: /usr/bin/ruby1.8: bad interpreter: No such file or directory
<Vu1k> and I can't find any solution by googling
banister has joined #ruby
sdwrage has quit [Client Quit]
<Vu1k> the same thing happens with 1.8.7 and 1.9.3
fukuyamaken has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
<canton7> looks like whatever you install requires /usr/bin/ruby1.8 to exist
eka has joined #ruby
mikepack has joined #ruby
SilkFox has joined #ruby
<canton7> if you distro doesn't create a file at that location, rhodes is going to not like you
tvw has quit []
centrx has joined #ruby
mweshi has joined #ruby
<apeiros> pothibo: rubygems doesn't differ from bundler in that regard
<canton7> intall 1.8.7, create a symlink at /usr/bin/ruby1.8 pointing to wherever the ruby 1.8.7 binary was installed
<apeiros> pothibo: if you have slow *bootup* (not install) time with 20 gems, you should profile
<apeiros> pothibo: I had a case of a bad gem doing essentially glob("/**/*"), which of course was horribly slow
<Vu1k> I installed ruby with rvm
<Vu1k> not with apt-get
andrewlio has quit [Remote host closed the connection]
sooik has joined #ruby
<canton7> Vu1k, doesn't change the fact that rhodes is looking for /usr/bin/ruby1.8
francisfish has joined #ruby
<canton7> so change ir, or create a symlink there
<Vu1k> canton7: I have already installed 1.8.7
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<canton7> Vu1k, does /usr/bin/ruby1.8 exist?
<Vu1k> canton7: No, the setup was in my profile
maletor has joined #ruby
<canton7> Vu1k, and there is the issue
mercerist has quit [Quit: Computer has gone to sleep.]
<canton7> do you understand what's worng?
<pothibo> apeiros ok, I'm loading rails, it could be that. How would you do the profiling?
<canton7> or why rhodes is unhappy, rather
<Vu1k> canton7: yes, the binary does not exist
danijoo has quit [Read error: Connection reset by peer]
<canton7> right. so fix that :) either make that file exist, or edit rhodes
<Vu1k> but I don't know where is it
<Vu1k> I can run ruby -v
<Vu1k> but whereis ruby does not show me anything
danijoo has joined #ruby
existensil has quit [Quit: WeeChat 0.4.1]
jimeh has joined #ruby
eka has quit [Client Quit]
sdwrage has joined #ruby
<canton7> which ruby
livcd has joined #ruby
ce_afk is now known as cescalante
_tpavel has quit [Quit: Leaving]
<Vu1k> '/home/Vu1k/.rvm/rubies/ruby-2.0.0-p451/bin/ruby'
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<havenwood> Vu1k: which gem
SilkFox has quit [Quit: WeeChat 0.4.3]
<Vu1k> '/home/Vu1k/.rvm/rubies/ruby-2.0.0-p451/bin/gem'
<havenwood> Vu1k: gem install rhodes
<Vu1k> havenwood: I already did that, but I am trying again
<havenwood> Vu1k: you may want to remove system Ruby, since it seems to be confusing you :)
omosoj has joined #ruby
<havenwood> Vu1k: it appears to me you did that with system 1.8, but not with RVM's 2.0
kenneth has quit [Ping timeout: 252 seconds]
<havenwood> Vu1k: hence it being installed on 1.8
<havenwood> Vu1k: but still in your path
arrubin has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
rippa has joined #ruby
<Vu1k> I apt-get 'ed remove all my ruby components before installing them again with rvm
sooik has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 276 seconds]
_JamieD_ has joined #ruby
<havenwood> it rapidly approaches 1400000000 unix time!
bakflash has joined #ruby
<havenwood> >> 1400000000 - Time.now.to_i
<eval-in__> havenwood => 4776 (https://eval.in/150630)
livcd has quit [Ping timeout: 276 seconds]
idoru has quit [Quit: Working as programmed]
<omosoj> is 4776 in seconds?
idoru has joined #ruby
<LadyRainicorn> Yes.
<havenwood> >> 1400000000 - Time.now.to_i
<apeiros> pothibo: rails does take ages to load, no matter what
<eval-in__> havenwood => 4656 (https://eval.in/150631)
<apeiros> pothibo: your only chance is to avoid loading the full rails
fabrice31 has quit [Remote host closed the connection]
yubrew has quit []
kenneth has joined #ruby
<apeiros> pothibo: profiling: -rprofile f.ex.
<pothibo> well, I'm talking a 20 secs boot... it'S like 8 times slower than if I type rails console in a rails project
<omosoj> >> (1400000000 - Time.now.to_i)/60
<eval-in__> omosoj => 76 (https://eval.in/150632)
<apeiros> tbh, I didn't have to profile anything since 2.0, so not sure whether there's something new. google is your friend
<apeiros> pothibo: well, you can try to write a file with explicit gem activations
codeurge has joined #ruby
<apeiros> that might speed up the process of rubygems resolving
<havenwood> Vu1k: sudo apt-get purge rubygems
<pothibo> Ok I'll try to figure out the differences between the two. thanks
ixti has joined #ruby
yubrew has joined #ruby
<havenwood> Vu1k: you probably uninstalled ruby but not rubygems (which in 1.8 was a separate package from ruby)
failshell has joined #ruby
jume_ has joined #ruby
<Vu1k> I just do gem install rhodes
RandyT has quit [Quit: ZNC - http://znc.in]
<Vu1k> then I do 'rhodes app store' and get this http://pastebin.com/Z01nX4dB
<havenwood> Vu1k: okay, you're on the right ruby now :P
<Vu1k> :-P
maletor has quit [Quit: Computer has gone to sleep.]
hgl has quit [Ping timeout: 240 seconds]
mercerist has joined #ruby
<Vu1k> I was reading about this message means that iconv is deprecated
<apeiros> havenwood: bah, 1_400_000_000 is uninteresting. wake me up from cryo sleep when it's 2_000_000_000
rgiscard has joined #ruby
<havenwood> apeiros: roger roger
<apeiros> oh, actually no cryo sleep needed for that
<apeiros> it's in less than 20y :)
<Vu1k> then the solution would be downgrade, but when I downgrade my setup via '\curl -sSL https://get.rvm.io | bash -s stable --ruby=[version]'
RandyT has joined #ruby
<Vu1k> I get the ruby1.8 error
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
phinfonet has joined #ruby
snath has joined #ruby
sputnik1_ has joined #ruby
codeurge has quit [Ping timeout: 240 seconds]
<havenwood> Vu1k: rvm pkg install iconv
paulfm has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 276 seconds]
<havenwood> Vu1k: then reinstall Ruby with RVM, but might as well go to 2.1.2: rvm get latest && rvm install ruby && rvm --default use ruby-2.1.2
<havenwood> Vu1k: The RVM channel is #rvm by the way.
apeiros has quit [Remote host closed the connection]
<havenwood> Vu1k: Ruby 1.8 is past End-of-Life, I'd avoid it.
zigomir has quit [Remote host closed the connection]
<Vu1k> havenwood: thnks I'm trying right now, I will let you know the result
datafirm has joined #ruby
jhass is now known as jhass|off
codeurge has joined #ruby
subraminion has joined #ruby
jume_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
<Vu1k> I did it... I get ruby-2.1.1 and iconv (with warnings about it is deprecated) then I have the same iconv error
datafirm has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
datafirm has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
zigomir has joined #ruby
dANOKELOFF has quit []
jhass|off is now known as jhass
sdwrage has quit [Quit: This computer has gone to sleep]
bashrw_ has joined #ruby
datafirm has quit [Ping timeout: 252 seconds]
JumpMast3r has quit [Ping timeout: 258 seconds]
bijan07077 has quit [Quit: bijan07077]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
maletor has joined #ruby
Megtastique has joined #ruby
marcdel has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
aiguu has joined #ruby
torresga has joined #ruby
<shevy> is iconv still in use?
<r_s_h> Anyone feel like assisting a ruby newbie? I need to iterate over a hash and do somethings with the values.
einarj has quit [Remote host closed the connection]
jume_ has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
<shevy> r_s_h the description is not complete
<shevy> hash.each_pair {|key, value| value * 2 }
<shevy> r_s_h problem solved!
<r_s_h> :)
heftig has quit [Quit: Quitting]
marcdel has quit [Ping timeout: 258 seconds]
Advocation has quit [Quit: Advocation]
Shidash has joined #ruby
marcdel has joined #ruby
<shevy> no r_s_h
<shevy> I need 2 extra clicks
<shevy> one on the privmsg, one back to #ruby
binaryhat has joined #ruby
<shevy> if you are ashamed to ask on #ruby, don't ask. otherwise, ask.
yfeldblum has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<r_s_h> gotcha. hah, not ashamed, just didn't want to bother others.
zcreative has joined #ruby
AnoGen has quit [Remote host closed the connection]
oo_ has joined #ruby
fantazo has quit [Ping timeout: 255 seconds]
<jgabrielygalan> people can learn from other's questions
AnoGen has joined #ruby
<atmosx> Hello
<atmosx> is there a problem is I use 'sleep' for 2-3 hours?
<shevy> r_s_h I let the people on #ruby even know what kind of underwear I am wearing
<r_s_h> I'm grabbing JSON and parsing it into a hash. Then I want to iterate over the hash, and there are four values (which are time stamps). I want to take two of these time stamps (the first and the last) and subtract them so that I can a total time.
<shevy> atmosx perhaps the ruby script will never wake up when it sleeps for too long a time!
<atmosx> shevy: why?!
<atmosx> why deos it matter?
ixti has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
zigomir has quit [Remote host closed the connection]
badosu has quit [Remote host closed the connection]
AlexRussia has joined #ruby
sdwrage has joined #ruby
badosu has joined #ruby
<shevy> atmosx nah
<shevy> I don't think there will be any problems
badosu has quit [Remote host closed the connection]
<shevy> it counts in milliseconds anyway or?
paulfm has quit []
<atmosx> shevy: seconds
andrewjanssen has quit [Quit: Leaving...]
<havenwood> atmosx: if you need more flexibility or multiple timers at once, maybe look at the timers gem: https://github.com/celluloid/timers#readme
meatherl_ has quit [Remote host closed the connection]
<havenwood> (uses hitimes exts internally, fast and accurate)
meatherl_ has joined #ruby
<shevy> hittimes!
datafirm has joined #ruby
<havenwood> atmosx: I wonder what the longest sleeping Ruby process is?
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
sunya7a has quit [Ping timeout: 245 seconds]
datafirm has quit [Read error: Connection reset by peer]
acrussell has joined #ruby
datafirm has joined #ruby
bijan07077 has joined #ruby
<benzrf> >> '1010100010'.bin
<eval-in__> benzrf => undefined method `bin' for "1010100010":String (NoMethodError) ... (https://eval.in/150652)
<benzrf> >> 34.bin
<eval-in__> benzrf => undefined method `bin' for 34:Fixnum (NoMethodError) ... (https://eval.in/150653)
<benzrf> huh
<benzrf> what lang has bin then
<shevy> haskell
paulfm has joined #ruby
<centrx> :one_zero_one_zero_one_zero_zero_zero_one_zero
<centrx> >> :one_zero_one_zero_one_zero_zero_zero_one_zero
<eval-in__> centrx => :one_zero_one_zero_one_zero_zero_zero_one_zero (https://eval.in/150654)
marcdel has quit []
<benzrf> shevy: youre just jelly cuz ur brain cant handle it B)
cpruitt has quit [Quit: cpruitt]
mikepack_ has joined #ruby
<atmosx> havenwood: mine is 2 hours and 10 minutes. I put it on cron, wiat I'll show the code
<atmosx> so you can guys comment
Martxel has joined #ruby
<shevy> benzrf the odd thing is, it makes me happy to have to learn less and less :)
lkba has joined #ruby
agrinb has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
yvemath has quit [Excess Flood]
agrinb has joined #ruby
fukuyamaken has joined #ruby
subbyyy has joined #ruby
<mikecmpbll> and sass and sass.
happytux has joined #ruby
<happytux> hi
<happytux> So just requiring another rake file would be the usual way for reusing rake tasks, right?
apeiros has joined #ruby
agrinb has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
aspires has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
Advocation has joined #ruby
VTLob has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
mercerist has quit [Remote host closed the connection]
troyready has quit [Remote host closed the connection]
rbennacer has joined #ruby
<rbennacer> hello
rOOb has quit [Ping timeout: 250 seconds]
andrewjanssen has joined #ruby
dideler has quit [Ping timeout: 240 seconds]
fontanon has joined #ruby
yvemath has joined #ruby
AnoGen has quit [Remote host closed the connection]
<happytux> rbennacer: hi
<happytux> rbennacer: are you using Rake? More or less intensely?
cpruitt has joined #ruby
<fontanon> Hi everybody, is there an easy way to pretty print an XML string ?
<rbennacer> so i realize that DateTime.parse("5/13/2014 12:00:00 AM ") is not working because the invalid format, it thinks 13 is a month
<rbennacer> how can i solve this?
ari-_-e has quit [Read error: Connection reset by peer]
<rbennacer> if i run it in rails console it gets parsed
<centrx> rbennacer, Use #strptime to specify the expected format
momomomomo has quit [Quit: momomomomo]
brtdv has quit [Ping timeout: 250 seconds]
rOOb has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
dangerousdave has quit [Read error: Connection reset by peer]
<havenwood> rbennacer: or you can cherry pick activesupport's Date core_ext or use the chronic gem
<rbennacer> the problem is that sometime it has padding and sometime ti hasnt
<shevy> heisenbug
<havenwood> rbennacer: squish it down before processing it?
<shevy> heisenpad
<rbennacer> squish it?
chipotle has quit [Quit: cya]
setra has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
<shevy> "abc " to "abc" ?
<shevy> .strip
livcd has joined #ruby
<rbennacer> yeah but this is not the problem
maletor has joined #ruby
<rbennacer> how would you use strp on something like this 5/13/2014 12:00:00 AM
<fontanon> does anybody knows why can't I find REXML in the ruby gem repositories ?
redondos has quit [Excess Flood]
<havenwood> fontanon: in the stdlib
<fontanon> havenwood, really? for ruby 1.9.1 ?
nvrch has quit [Quit: nvrch]
aiguu has quit [Ping timeout: 240 seconds]
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
<omosoj> >> (1400000000 - Time.now.to_i)/60
<eval-in__> omosoj => 22 (https://eval.in/150662)
kate_r has joined #ruby
lw has quit [Quit: s]
Ariadeno has joined #ruby
<havenwood> >>19 require 'rexml/document'
<eval-in__> havenwood => /tmp/execpad-4267285510ea/source-4267285510ea:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/150664)
<rbennacer> >> DateTime.parse("5/13/2014 12:00:00 AM ")
<eval-in__> rbennacer => uninitialized constant DateTime (NameError) ... (https://eval.in/150665)
<fontanon> havenwood, oh! you're right ...
<rbennacer> >> require 'datetime'; DateTime.parse("5/13/2014 12:00:00 AM ")
<eval-in__> rbennacer => (https://eval.in/150667)
sdwrage has quit [Quit: This computer has gone to sleep]
<fontanon> havenwood, I was misstyping an 's' at the end of rexml/documents ... thanks
<havenwood> fontanon: de nada
<fontanon> :D
subraminion has quit [Remote host closed the connection]
ixti has joined #ruby
thomasxie has quit [Quit: Leaving.]
dangerousdave has joined #ruby
subraminion has joined #ruby
<centrx> rbennacer, The format string documentation is here: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/DateTime.html#method-i-strftime
rizzatti has quit [Quit: Leaving...]
<rbennacer> ok i will try it
<rbennacer> thanks
Bumptious has quit [Remote host closed the connection]
livcd has quit [Ping timeout: 276 seconds]
benzrf is now known as benzrf|offline
subraminion_ has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
Ankhers has quit [Ping timeout: 272 seconds]
<centrx> rbennacer, And there are some examples at the documentation for the strptime method
datafirm has joined #ruby
thumpba_ has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
einarj has joined #ruby
Ankhers has joined #ruby
andrewlio has joined #ruby
<rbennacer> centrx, why is this not working? DateTime.strptime("5/13/2014 12:00:00 AM","%-m/%-d-%Y %l-%M-%S %p")
<rbennacer> oooops
<centrx> I don't know where the dashes came from
<rbennacer> not padded
<rbennacer> DateTime.strptime("5/13/2014 12:00:00 AM","%-m/%-d/%Y %l:%M:%S %p")
<rbennacer> last version
<rbennacer> still not working
subraminion has quit [Ping timeout: 276 seconds]
lw has joined #ruby
dideler has joined #ruby
marr has joined #ruby
troyready has joined #ruby
cpruitt has quit [Quit: cpruitt]
<centrx> >> DateTime.strptime("5/13/2014 12:00:00 AM","%-m/%-d/%Y %l:%M:%S %p")
<eval-in__> centrx => uninitialized constant DateTime (NameError) ... (https://eval.in/150674)
<centrx> >> require 'datetime'; DateTime.strptime("5/13/2014 12:00:00 AM","%-m/%-d/%Y %l:%M:%S %p")
<eval-in__> centrx => (https://eval.in/150675)
ndrei has quit [Ping timeout: 258 seconds]
timonv has quit [Remote host closed the connection]
<rbennacer> centrx, i don't think you can require libraries :(
toastynerd has joined #ruby
<centrx> Actually it's in 'date' library
timonv has joined #ruby
locriani has joined #ruby
<centrx> rbennacer, I still don't see where those dashes came from
<LadyRainicorn> >> Time.now.to_i
<eval-in__> LadyRainicorn => 1399999276 (https://eval.in/150677)
cpruitt has joined #ruby
datafirm has quit [Ping timeout: 255 seconds]
<LadyRainicorn> omg so close
<centrx> >> require 'date'; DateTime.strptime("5/13/2014 12:00:00 AM","%m/%d/%Y %l:%M:%S %p")
<eval-in__> centrx => #<DateTime: 2014-05-13T00:00:00+00:00 ((2456791j,0s,0n),+0s,2299161j)> (https://eval.in/150678)
<LadyRainicorn> like 10 min
binaryhat has quit [Ping timeout: 258 seconds]
<LadyRainicorn> >> Time.new(1400000000).utc
<eval-in__> LadyRainicorn => 1399999999-12-31 23:00:00 UTC (https://eval.in/150683)
<rbennacer> it says in the doc %-m no-padded (1..12)
<LadyRainicorn> err.
<shevy> ponicorn errs!
cina has quit [Ping timeout: 240 seconds]
AndChat| has joined #ruby
<LadyRainicorn> >> Time.at(1400000000).utc
<eval-in__> LadyRainicorn => 2014-05-13 16:53:20 UTC (https://eval.in/150685)
xcesariox has joined #ruby
cina has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 258 seconds]
jmurray has quit [Quit: jmurray]
jgabrielygalan has quit [Quit: Leaving]
<atmosx> centrx: use strftime
zigomir has joined #ruby
<atmosx> going to the super market, grab some salad
<atmosx> another shitty day today
tcstar has joined #ruby
<LadyRainicorn> aw
* LadyRainicorn gives atmosx a hug.
JasmeetQA has quit [Ping timeout: 245 seconds]
agrinb has joined #ruby
benzrf|offline is now known as benzrf
carlyle has joined #ruby
xcesariox has quit [Ping timeout: 264 seconds]
ari-_-e has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
cina has quit [Quit: leaving]
wiku5 has joined #ruby
rizzatti has joined #ruby
Xeago has joined #ruby
deric_skibotn has joined #ruby
Bumptious has joined #ruby
<shevy> well
<shevy> if you have to eat salad
<shevy> then I can see why the day is a shitty day ;-)
carlyle has quit [Ping timeout: 255 seconds]
<omosoj> >>Time.at(1400000000).est
<eval-in__> omosoj => undefined method `est' for 2014-05-13 18:53:20 +0200:Time (NoMethodError) ... (https://eval.in/150699)
livcd has joined #ruby
chrisseaton has quit []
<wiku5> QUESTION! Processes like Snort or Suricata, from my understanding, they run as a daemon and analyze packets as they go through the network correct?
<wiku5> kind of like running wireshark?
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
nathancahill has quit [Quit: nathancahill]
nathancahill has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
<shevy> are these ruby programs
wallerdev has quit [Quit: wallerdev]
thumpba_ has quit [Remote host closed the connection]
troulouliou_dev has quit [Remote host closed the connection]
ndrei has joined #ruby
xcesariox has joined #ruby
francisfish has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
<hoelzro> wireshark isn't, that's for sure
<hoelzro> wiku5: I believe snort does this, yes
eguim has quit [Ping timeout: 240 seconds]
<LadyRainicorn> shevy: Yes.
<LadyRainicorn> In fact iptables itself was recently ported to Ruby.
<LadyRainicorn> It offered a dramatic speed boost to the new kernel.
aiguu has joined #ruby
nowthatsamatt_ has joined #ruby
chipotle has joined #ruby
Spami has joined #ruby
danshultz has quit [Remote host closed the connection]
datafirm has joined #ruby
oo_ has quit [Remote host closed the connection]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
kate_r has joined #ruby
danshultz has joined #ruby
<mordof> shevy: strange..? i really enjoy salad\
<shevy> you are pulling a ponicorn leg on me now LadyRainicorn!
shanlar has joined #ruby
ascarter has joined #ruby
jume_ has quit [Remote host closed the connection]
saarinen has joined #ruby
<LadyRainicorn> maaaay-be
jume_ has joined #ruby
omosoj has quit [Ping timeout: 258 seconds]
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
eguim has joined #ruby
carraroj has joined #ruby
qwyeth has quit [Remote host closed the connection]
ramin has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
SilkFox has joined #ruby
blackmesa has joined #ruby
Ariadeno has quit [Ping timeout: 240 seconds]
aspires has quit []
relix has joined #ruby
aspires has joined #ruby
larissa has quit [Quit: Leaving]
djbkd has joined #ruby
moritzschaefer has joined #ruby
codeFiend has joined #ruby
nowthatsamatt_ is now known as nowthatsamatt
i_s has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
yvemath has quit [Excess Flood]
lethjakman has joined #ruby
<happytux> Why does this Rake doesn't work?!!!
<happytux> task :smoke => :symlink:create
<happytux> Smoke is meant for a smoke test (puppet)
<happytux> task :create is in namespace :symlink
Stalkr_ has joined #ruby
<shevy> nobody likes rake
olivier_bK has quit [Remote host closed the connection]
<mordof> shevy: sometimes i wonder if you just hang out here to make opposing statements to what others say, lol
razrunelord has joined #ruby
rbennacer has left #ruby ["Leaving"]
ramin has left #ruby [#ruby]
jxf has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
olivier_bK has joined #ruby
yvemath has joined #ruby
<shevy> mordof not at all
JasmeetQA has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
<shevy> mordof the things I don't mention are often somewhat acceptable
<shevy> like gem
olivier_bK has quit [Client Quit]
benzrf|offline is now known as benzrf
wallerdev has joined #ruby
<shevy> sure it has some huge flaws, namely such that there can always be only one gem name
olivier_bK has joined #ruby
<shevy> there is a gem called configuration
<shevy> there is also a gem called display
<shevy> problem is that I don't use any of them in my gems, but if I am to specify a dependency, the dependency automatically goes to these
<shevy> and there is no way to avoid this other than omitting such a dependency, which defeats the purpose of having a dependency-based system in the first place really
<shevy> the rubygem authors also don't want to change their flawed system
<shevy> still, gem itself is somewhat acceptable
failshel_ has joined #ruby
<shevy> github offers more flexibility here though
<shevy> there can be a million "gems" with the same name
zigomir has quit [Remote host closed the connection]
failshel_ has quit [Client Quit]
<workmad3> shevy: hey, look, a problem that bundler solves ;)
alex88 has quit [Quit: Leaving...]
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
torresga has quit [Quit: torresga]
<shevy> almost
<shevy> it does a lot more stuff than that
olivier_bK has quit [Read error: No route to host]
<shevy> may I quote something here:
<workmad3> shevy: I doubt we could stop you :P
<shevy> banisterfiend> somehow bundler is getting in the way but i didnt ask bundler to do a damn thing
<mordof> quick, everyone /ignore shevy before he can ... oh darn
sooik has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
<workmad3> shevy: heh
<shevy> workmad3 I like to collect quotes
jrhorn424 is now known as zz_jrhorn424
<shevy> but most of the time I forget to save them :(
<mordof> xD
Adran has quit [Quit: Este é o fim.]
<shevy> I need to start collecting stuff about mordof
<workmad3> shevy: I wonder if that was from when banister was using rvm and it had just started installing rubygems-bundler :)
dangerousdave has quit [Read error: Connection reset by peer]
<mordof> shhhh
<mordof> shevy: it's all an illusion
<shevy> workmad3 well it's quite old... from 2012 :(
mikecmpbll has joined #ruby
<workmad3> shevy: could be then :)
combusean has joined #ruby
<shevy> mordof hmm
<shevy> mordof I could come up with fake quotes
<shevy> mordof> damn, my first project will be so kick-ass!
<mordof> >.>; that would be dishonest of you
<shevy> yeah
zigomir has joined #ruby
<shevy> sooner or later I will find a real quote from you though
<workmad3> shevy: you could find quotes from crazy people and 'accidentally' mis-attribute them to mordof
<shevy> probably when you are tired
<shevy> and enraged
jume_ has quit [Remote host closed the connection]
<mordof> haha
djbkd has quit [Remote host closed the connection]
<shevy> workmad3 I don't really know enough about mordof to align him to much at all right now
<mordof> shevy: i generally don't swear though - so you'd have to filter that out in order for it to be relatively believable
<shevy> except that he likes html
<workmad3> "You don't need more than 640kb of memory" - mordof
<shevy> lol
<mordof> hahaha
<mordof> workmad3: nice
benzrf is now known as benzrf|offline
<shevy> mordof yeah, you don't swear but it will happen sooner or later
combusean has quit [Client Quit]
subbyyy has quit [Ping timeout: 252 seconds]
<shevy> you need to go into some kind of ugly pit first
combusean has joined #ruby
<mordof> haha
<shevy> like by using ubuntu or something
<mordof> xD
<workmad3> shevy: pfft, don't let a lack of knowledge stop you from forming opinions about what sort of crazy stuff mordof will say
* mordof has used ubuntu for several years
<workmad3> shevy: after all, he thinks you only need 640kb of RAM!
<shevy> omg he really uses ubuntu :(
s2013 has joined #ruby
<mordof> used*
<mordof> shevy: that was back before it got *even more* bloated, and before unity became a part of the picture
<shevy> today I realized that the technical university here also uses ubuntu for the student login computers at the institute of chemical engineering... it has some pinkish background
<shevy> like that... what is the name...
<shevy> unity thing?
<shevy> I wanted to click close button on the top right
<shevy> THEY MOVED IT TO THE TOP LEFT!!!
<mordof> lol
<workmad3> shevy: they copied apple ;)
yfeldblum has joined #ruby
<mordof> that's more gnome 3
<mordof> unity is the desktop environment
<shevy> mordof hmm could be
carlyle has joined #ruby
<workmad3> hipster apple put the close buttons in the top left before it was cool
<mordof> shevy: and primarily the default theme they chose for it
klaut has quit [Remote host closed the connection]
jume_ has joined #ruby
<mordof> though it seems that's coming to be a more regular occurance on certain linux distros
danshultz has joined #ruby
<workmad3> I use ubuntu on the server, but I'd rather not touch it on the desktop
<mordof> workmad3: likewise
<workmad3> but shevy looks down on me even for that ;)
i_s has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Burgestrand]
<mordof> workmad3: most people in here look down on me for the desktop OS i use, haha
g0bl1n has joined #ruby
Eiam_ is now known as Eiam
danshultz has quit [Remote host closed the connection]
<shevy> workmad3 do you use ubuntu ruby
Adran has joined #ruby
<workmad3> shevy: no
<shevy> cheater
<shevy> :D
danshultz has joined #ruby
<shevy> mordof do you use ubuntu ruby
<workmad3> shevy: I'm not *that* crazy :P
<shevy> it's kinda funny
<mordof> shevy: i don't use ruby on my ubuntu vps
<shevy> people who tend to be on #ruby don't use default debian/ubuntu ruby
<workmad3> shevy: that's because the ruby packages are shit
moritzs has joined #ruby
lkba has joined #ruby
i_s has joined #ruby
<workmad3> shevy: I do love some of ubuntus versioning at times though... 'ruby1.9.1' - installs ruby 1.9.3...
sooik has quit [Ping timeout: 265 seconds]
<mordof> haha
<havenwood> workmad3: and ruby 1.9.3 installs 1.9.1
trey has left #ruby [#ruby]
<workmad3> and I encountered a postgres version once of 'postgres9.1.<patch>.really.9.3.<patch>'
obs has quit [Remote host closed the connection]
<havenwood> fedora ftw?
<workmad3> and it installed postgres 9.1...
<havenwood> haha
djbkd has joined #ruby
<shevy> wow
qwyeth has joined #ruby
<shevy> do they have an explanation for that?
mikecmpbll has quit [Quit: i've nodded off.]
<havenwood> shevy: working as intended
ikaros has quit [Quit: Ex-Chat]
<workmad3> shevy: I was worried if I asked, I'd just get the response of 'Cthulhu fhtagn!'
freggles has joined #ruby
mikepack_ has quit [Remote host closed the connection]
<shevy> havenwood it may be working but that doesn't explain the ruby 1.9.3 to 1.9.1
<shevy> apt-get install ruby-1.9.3
<shevy> "Done installing ruby 2.1.2!"
mikepack has joined #ruby
<workmad3> shevy: oh, the 1.9.3 to 1.9.1 was because of ABI nonsense...
<havenwood> shevy: i jest, the 1.9.3 is an alias to 1.9.1, which is actually 1.9.3
canton7-mac has quit [Remote host closed the connection]
<centrx> workmad3, what ABI nonsense was that
AndChat| has quit [Ping timeout: 240 seconds]
eka has joined #ruby
mweshi has quit [Quit: Page closed]
danshultz has quit [Ping timeout: 265 seconds]
bijan07077 has quit [Quit: bijan07077]
<havenwood> centrx: the endless confusion of telling people to `sudo apt-get install ruby1.9.1` to get Ruby 1.9.3
<havenwood> Then they come here and ask questions about Ruby 1.9.1. :(
mikecmpbll has joined #ruby
Advocation has quit [Quit: Advocation]
<workmad3> it's similar to people saying 'my gem isn't working because it's installed for 1.9.1 but I'm using 1.9.3'
<workmad3> I kinda understand the rationale behind having a declared ABI compatibility version... but man is it annoying at times :)
ndrei has quit [Ping timeout: 276 seconds]
<havenwood> more annoying than sane
<centrx> what was changed in Ruby that required a new ABI version?
<workmad3> right, I'm being called away now anyway
<workmad3> hf :)
mercwithamouth has joined #ruby
s2013_ has joined #ruby
<havenwood> centrx: 1.9.1 being the ABI version fro 1.9.3 but also not a stable release is frustratingly confusing
s2013 has quit [Disconnected by services]
s2013_ is now known as s2013
<centrx> Normally it would be 1.9.0? was something changed in 1.9.1
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
<centrx> oh 1.9.0 was a mix up
Advocation has joined #ruby
<centrx> a development release I guess...
ari-_-e has quit [Quit: Leaving]
<centrx> "Please note that Ruby 1.8 still remains. 1.8.8 will be released this year." --what
<havenwood> heh
<havenwood> kill it with fire!
<yxhuvud> wtf
omosoj has joined #ruby
upsell5 has joined #ruby
<yxhuvud> I'm in the last stages of killing 1.8 at work. that is a damned good feeling.
<havenwood> yxhuvud: nice :D
ndrei has joined #ruby
grieg has joined #ruby
<havenwood> so glad they decided to kill it rather than 1.8.8
papercode has joined #ruby
<havenwood> no python 3 situation \o/
einarj has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
SilkFox has joined #ruby
<wallerdev> well i dont think ruby wouldve ended up like python 3 anyway
bwilson has joined #ruby
<centrx> Python has turned itself into a joke
erikruthven has joined #ruby
jume_ has quit [Remote host closed the connection]
<havenwood> poor, poor python 3
dumdedum has quit [Quit: foo]
<yxhuvud> some of the actions in the gui do not take 8 minutes to accomplish anymore ! (only like 1 minute -_-)
<wallerdev> ruby developers usually are trying to use the latest and greatest, python developers are trying to use something stable that works consistently
Hobogrammer has joined #ruby
<wallerdev> just because of the big science community for python
<centrx> Python 3 is a mirror universe version of Perl 6
aagdbl has joined #ruby
<LadyRainicorn> Python fucked itself with stability.
andrewjanssen has quit [Quit: Leaving...]
nvrch has joined #ruby
<shevy> python 3 is better than perl 6 - you need perl 5 to bootstrap & compile parrot, you dont need python2 to compile python3
chrisja has joined #ruby
nvrch has quit [Client Quit]
<centrx> Python 3 has been out for more than five years now
aagdbl has quit [Client Quit]
<hoelzro> shevy: that's assuming you're using Parrot
koderok has joined #ruby
oponder has joined #ruby
<hoelzro> rakudo (the leading implementation for Perl 6) has moved on from Parrot
<shevy> hoelzro what else is there to use for perl 6?
<hoelzro> MoarVM
<wallerdev> python and ruby are both dying anyway
<wallerdev> long live javascript
<havenwood> shevy: Rakudo or Maor!
<hoelzro> or the JVM now
<havenwood> Moar*
<havenwood> RakudoJVM
codezomb has joined #ruby
<havenwood> isn't that the most complete implementation by a bit at the moment actually?
doodlehaus has quit [Ping timeout: 240 seconds]
<mordof> wallerdev: ruby dying?
<hoelzro> I think Rakudo on Moar passed it recently
<wallerdev> rip in peace
aagdbl has joined #ruby
<hoelzro> ever since Moar got concurrency
<shevy> "Building Rakudo from the sources requires Perl 5.8"
<havenwood> hoelzro: Nice to see things coming together. :)
<hoelzro> you were complaining about Parrot needing Perl 5
fantazo has joined #ruby
<hoelzro> requiring Perl 5.8 to build something isn't that big a deal
<shevy> I am complaining about the future requiring the best
jackneill has joined #ruby
<hoelzro> Perl 5.8 (or better) comes on most Unixes anyway
<shevy> erm, the past
<shevy> do I need ruby 1.8 to compile ruby 2.1.2
moritzschaefer has quit [Ping timeout: 252 seconds]
<wallerdev> you need gcc lol
moritzs has quit [Ping timeout: 276 seconds]
<havenwood> shevy: what distro do you use again?
<shevy> havenwood no distro, all source compilation
<havenwood> shevy: oh, i mean for OS.
<shevy> linux
<hoelzro> I believe that Perl 5 is only required for the configuration step anyway
<havenwood> shevy: which distro though, or you're saying no distro?
mattmcclure has joined #ruby
<hoelzro> I don't think it's that big of an impediment, honestly
<shevy> havenwood well I usually start with slackware actually, the glibc here is still from slackware for instance
<havenwood> shevy: aha
<shevy> hoelzro yeah, I have perl5, some things require it indirectly, like with the XML-parser
<hoelzro> havenwood: if you're interested in tracking the Perl 6 project's progress, stop by #perl6 sometime
<shevy> and python2 for things like xcb-* :(
<hoelzro> a regular there just wrote a space invader clone in Perl 6
chrisja has quit [Quit: leaving]
chrisja has joined #ruby
<havenwood> hoelzro: sweet
banghouse2 has joined #ruby
<shevy> cool
banghouse2 has quit [Remote host closed the connection]
jhulten has joined #ruby
jhulten has quit [Remote host closed the connection]
<shevy> has $.width;
<shevy> has $.height;
kenneth has joined #ruby
jhulten has joined #ruby
banghouse2 has joined #ruby
Ankhers has joined #ruby
mehlah has joined #ruby
<hoelzro> Perl 6 took a lot of great ideas from Ruby
Oxddf has joined #ruby
<hoelzro> I encourage Rubyists to play with it
<wallerdev> perl is dead
<LadyRainicorn> Perl syntax is just too awful.
<havenwood> perl is dead, long live perl6!
<havenwood> not quite time for a coronation yet :P
maximski has joined #ruby
livcd has quit [Read error: Connection reset by peer]
<hoelzro> haha, very true =)
<havenwood> or an obit...
oponder has quit []
mikepack_ has joined #ruby
livcd has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<shevy> well
<shevy> perl 6 may be sooner ready than python 2 dead
<havenwood> shevy: i think that is likely
poguez_ has joined #ruby
<hoelzro> python 2 isn't going anywhere
nanoyak has joined #ruby
<shevy> if only ruby 1.8 would have been like python 2!
AlexRussia has quit [Ping timeout: 264 seconds]
<wallerdev> ruby 2 = python 2
<wallerdev> youll see
SegFaultAX has quit [Excess Flood]
Megtastique has quit []
AlexRussia has joined #ruby
<havenwood> wallerdev: there'd have to be a Ruby 3 that nobody switches to...
Oxddf|2 has joined #ruby
<wallerdev> there will be
mikepack has quit [Ping timeout: 240 seconds]
Ariadeno has joined #ruby
Oxddf|2 has quit [Client Quit]
SegFaultAX has joined #ruby
<mordof> why do you think nobody would switch to Ruby 3?
<mordof> that entirely depends on how they choose to do Ruby 3 also
<wallerdev> they're going to make parenthesis required on the puts method
<hoelzro> hahaha
<mordof> if it doesn't solve any current problems - then that's a good bet
<wallerdev> itll be the end of ruby as we know it
<mordof> lol
thumpba_ has joined #ruby
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> wallerdev omg
<shevy> to add mandatory parens to ruby 3
codabrink has joined #ruby
<wallerdev> thats what happened with python 3
<wallerdev> and why no one uses it
<shevy> well, they had mandatory parens in python though
jack_rabbit has joined #ruby
<shevy> python 2 simply was too good
<wallerdev> you could do print "one = two" in python 2
<wallerdev> now you HAVE to do print("one = two")
<shevy> hehe
<wallerdev> all these parenthesis, might as well be using lisp
<shevy> what I don't get
<shevy> guido once said, if he were to change one thing
<shevy> he would get rid of mandatory indent levels
<shevy> instead he changes print to print()
<shevy> hmmmmmm
Ariadeno has quit [Ping timeout: 264 seconds]
thumpba_ has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
koderok has joined #ruby
lazyguru has quit [Ping timeout: 250 seconds]
BarnacleBob has joined #ruby
<BarnacleBob> can someone help me out here. i'm trying to wrap a open call in a timeout but i get undefined method when i try to return uri_data: http://pastebin.com/q3rYTkHR i'm thinking its a scope problem. i'm new to ruby
dblaney1 has joined #ruby
<happytux> So one ruby file imports another (Rake) and how can the imported ruby file use the variables in global scope of importing ruby file?
<BarnacleBob> the undefined method i think is cause this is a class method and i have a missing method defined to send it to a hash variable
<happytux> ?
JasmeetQA has quit [Read error: Connection reset by peer]
lazyguru has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<dblaney1> I need to get just the text from a docx file. write now I have got it down to this. wt = xml.root.xpath("//w:t", {"w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main"})
alexju has quit [Read error: Connection reset by peer]
<dblaney1> this gives me an output like this <w:t xml:space="preserve">The </w:t><w:t>Employee Activity Committee</w:t><w:t xml:space="preserve"> is selling </w:t><w:t>DISCOUNTED</w:t><w:t xml:space="preserve"> tickets</w:t><w:t xml:space="preserve"> to
<dblaney1> i need to get rid of the w:t tags and just get the text in between
alexju has joined #ruby
bakflash has quit [Quit: Konversation terminated!]
enebo has quit [Quit: enebo]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<r_s_h> For hashes, how do you discard a key but retain the value? Is there something more simple than assigning the value to a variable and wiping out the hash?
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
eam has joined #ruby
<mordof> dblaney1: regex replace /</?w:t.*?>/ with ""
djbkd has quit [Read error: Connection reset by peer]
<mordof> well
djbkd has joined #ruby
<mordof> /<\/?w:t[^>]*>/ would be better - and not broken
codeFiend has quit [Quit: codeFiend]
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<mordof> dblaney1: also - time to learn some regex :)
djbkd has quit [Remote host closed the connection]
<dblaney1> i know regex in other languages
<dblaney1> i just started ruby today period lol
<dblaney1> whats the correct syntax for that who line
EminenceHC has joined #ruby
<dblaney1> still getting errors
<dblaney1> whole*
<EminenceHC> How can I turn "05/15/2014" <--- string which will always be a different value but same format, into a date?
chipotle has quit [Quit: cya]
RohanRNS has joined #ruby
sambao21 has joined #ruby
<mordof> newstr = oldstr.gsub( pattern, replacestr )
<mordof> parens optional
subbyyy has joined #ruby
<dblaney1> dblaney1: regex replace /</?w:t.*?>/ with "" whats the correct line. someone said this is wrong
Megtastique has joined #ruby
<mordof> dblaney1: i said it's wrong. and then i corrected it right after
<dblaney1> yeah i tried subsituting yours and it still is giving an error
fontanon has quit [Quit: Saliendo]
<mordof> dblaney1: can you show your code and the error in a gist then?
<dblaney1> i have this
<dblaney1> regex replace /<\/?w:t[^>]*>/ with ""
* mordof facepalms
<BarnacleBob> ok i rewrote my test code. how do i access a variable in a timeout block? i keep getting undefined variable or method: http://pastebin.com/N1cH1xzS
bakflash has joined #ruby
freerobby has quit [Quit: Leaving.]
<dblaney1> project.rb:11: syntax error, unexpected tIDENTIFIER, expecting $end
<dblaney1> regex replace /<\/?w:t[^>]*>/ with ""
<mordof> dblaney1: that's plain english
<dblaney1> oh ok
<happytux> I want to define a variable and this variable should be used by all imported other ruby files.
<happytux> How can I do this?
<dblaney1> lol
SilkFox has quit [Ping timeout: 245 seconds]
<mordof> dblaney1: that'd be why you're getting errors, hehe
kaspergrubbe has joined #ruby
<arrubin> EminenceHC: require 'date'; Date.strptime("05/15/2014", "%m/%d/%Y")
<arrubin> EminenceHC: I am not sure whether there is a better way.
<dblaney1> so what would the line be lol
<mordof> dblaney1: google search regex replace in ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
<dblaney1> text is in wt
<dblaney1> variable wt
<mordof> dblaney1: i gave you the regular expression to use - just fill in the rest with google search
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
* mordof doesn't hand out a copy-paste answer specifically
<EminenceHC> arrubin: Ok thanks, I guess I can just pass my actual date as a variable into the .strptime
akonny has joined #ruby
andrewjanssen has joined #ruby
<BarnacleBob> nm i figured it out
BarnacleBob has left #ruby ["Leaving"]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
marcdel has joined #ruby
<arrubin> EminenceHC: Take a look over http://www.ruby-doc.org/stdlib-2.1.1/libdoc/date/rdoc/Date.html if you want other options.
andrewjanssen has quit [Client Quit]
andrewjanssen has joined #ruby
Ankhers has joined #ruby
treehug88 has quit []
vlad_starkov has joined #ruby
sk87 has joined #ruby
root3d has quit [Remote host closed the connection]
alpha123 has joined #ruby
<shevy> hmm
<shevy> I just received a .tif file
codeurge has quit [Quit: Quit.]
<shevy> can I convert this to .pdf via ruby? :(
marcdel has quit [Ping timeout: 240 seconds]
sk87 has quit [Client Quit]
jmurray has joined #ruby
<happytux> Does Rake clobber include Rake clean?
terrellt has quit [Read error: Connection reset by peer]
terrell_t has joined #ruby
alexju has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
grieg has quit [Remote host closed the connection]
alexju has joined #ruby
codeurge has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
<shevy> ah
<shevy> mordof seems to be more like images, I thought .tif was text; first time I read that
marcdel has joined #ruby
<mordof> shevy: tif is image format isn't it?
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> could be!
<shevy> if it is TIFF then I know it
<shevy> but tif ... hey
peret has joined #ruby
<shevy> ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
scotje has joined #ruby
SilkFox has joined #ruby
<mordof> tif and tiff are both tiff format
<shevy> tim and tom are both toms
Spami has quit [Quit: This computer has gone to sleep]
moritzschaefer has joined #ruby
<shevy> tiffany!
baweaver has joined #ruby
grieg has joined #ruby
<shevy> mordof are you finished with your first ruby project
obs_ has quit [Remote host closed the connection]
<mordof> shevy: almost
alex88 has joined #ruby
rdark has quit [Quit: leaving]
<scotje> Does anyone here know about an issue in Net::HTTP where #get fails to reassemble out-of-order TCP packets correctly, but #request_get handles them fine?
<mordof> shevy: i'm putting the new logic structure into place for the entire thing now. then i can add the couple improvements i want
<mordof> shevy: then it'll be simple to touch it up as needed
postmodern has joined #ruby
tylerkern has joined #ruby
kenneth has joined #ruby
jespada has quit [Ping timeout: 258 seconds]
timonv has joined #ruby
carlyle_ has joined #ruby
alexju has quit [Read error: Connection reset by peer]
alexju_ has joined #ruby
kate_r has joined #ruby
jespada has joined #ruby
kevind has quit [Quit: kevind]
jume_ has joined #ruby
sl has joined #ruby
carlyle has quit [Ping timeout: 255 seconds]
<dblaney1> that regex isn't matching anything
<dblaney1> also tried it here
bijan07077 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
sl has left #ruby [#ruby]
<mordof> sec
<mordof> dblaney1: matches perfectly fine for me
<mordof> copying and pasting both your data, and my regex
<dblaney1> wait one sec
frogssgy has joined #ruby
<dblaney1> http://regexpal.com/?flags=g&regex=%2F%3C%5C%2F%3Fw%3At%5B%5E%3E%5D*%3E%2F&input=%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3EThe%20%3C%2Fw%3At%3E%3Cw%3At%3EEmployee%20Activity%20Committee%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20is%20selling%20%3C%2Fw%3At%3E%3Cw%3At%3EDISCOUNTED%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20tickets%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%2
<dblaney1> 2preserve%22%3E%20to%20%3C%2Fw%3At%3E%3Cw%3At%3ESix%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EFlags%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EGreat%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EAdventure%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3
<dblaney1> At%3ETheme%20Park%3C%2Fw%3At%3E%3Cw%3At%3E%2C%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20Wild%20Safari%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20and%3C%2Fw%3At%3E%3Cw%3At%3EHurricane%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EHarbor%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E.%20%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspac
<dblaney1> e%3D%22preserve%22%3EThis%20year%20we%20are%20selling%20the%203%20Park%20Season%20Pass%20%3C%2Fw%3At%3E%3Cw%3At%3Efor%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%241%3C%2Fw%3At%3E%3Cw%3At%3E0%3C%2Fw%3At%3E%3Cw%3At%3E5%3C%2Fw%3At%3E%3Cw%3At%3E.00%20per%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3Epass%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22prese
<dblaney1> l%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EHarbor%3C%2Fw%3At%3E%3Cw%3At%3E.%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3EThe%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3ESeason%20Pass%20for%20the%20Theme%20Park%20%26amp%3B%20Safari%20%3C%2Fw%3At%3E%3Cw%3At%3Eis%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%24%3C%2Fw%3At%3E%3Cw%3At%3E85%3C%2Fw%3At%3E
<dblaney1> rve%22%3E%2C%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3Ethis%20entitles%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3Eyou%20%3C%2Fw%3At%3E%3Cw%3At%3Eto%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20visit%20the%20Theme%20Park%2C%20Safari%20and%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EHurricane%3C%2Fw%3At%3E%3Cw%3At%20xm
<dblaney1> %3Cw%3At%3E.00%20per%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3Epass%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%2C%20%3C%2Fw%3At%3E%3Cw%3At%3Eno%20minimum%20number%20of%20Season%20Passes%20necessary.%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3ERegular%20daily%20admission%20tickets%20for%20the%20Theme%20Park%20and%20Safari%20%3C%2Fw%3At
<dblaney1> %3E%3Cw%3At%3Ewill%20be%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%24%3C%2Fw%3At%3E%3Cw%3At%3E2%3C%2Fw%3At%3E%3Cw%3At%3E8%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E.00%20per%20ticket.%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3ERegular%20daily%20admission%20tickets%20for%20Hurricane%20Harbor%20will%20be%20%2426.00%20per%20ticket.%20%3C%2Fw%3At%3E%3Cw%3At%2
<dblaney1> 0xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3ESince%20thrill%20seekers%20come%20in%20all%20sizes%20there%20%3C%2Fw%3At%3E%3Cw%3At%3Eis%20tons%20of%20fun%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20for%20little%20ones%20to%20enjoy%20on%20their%20own%20and%20with%20an%20adult.%20%20%20There%20are%20plenty%20of%20rides%20that%20spin%2C%20fly%2
<dblaney1> 0and%20promise%20to%20take%20kids%20on%20a%20magical%20journey%20that%20are%20perfect%20for%20their%20height%20and%20age.%3C%2Fw%3At%3E%3Cw%3At%3EYou%20will%20also%20find%20some%20of%20the%20fastest%2C%20tallest%2C%20wildest%2C%20gut-wrenching%20rides%20in%20the%20country%2C%20including%20a%20few%20record%20breakers.%20%20You%20can%20check%20out%20the%20video%20for%20many%20of%20these%20rides%3C%2F
<mordof> agghghgh
Advocation has quit [Quit: Advocation]
<dblaney1> http://regexpal.com/?flags=g&regex=%2F%3C%5C%2F%3Fw%3At%5B%5E%3E%5D*%3E%2F&input=%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3EThe%20%3C%2Fw%3At%3E%3Cw%3At%3EEmployee%20Activity%20Committee%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20is%20selling%20%3C%2Fw%3At%3E%3Cw%3At%3EDISCOUNTED%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20tickets%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%2
<dblaney1> At%3ETheme%20Park%3C%2Fw%3At%3E%3Cw%3At%3E%2C%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20Wild%20Safari%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20and%3C%2Fw%3At%3E%3Cw%3At%3EHurricane%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EHarbor%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E.%20%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspac
<dblaney1> 2preserve%22%3E%20to%20%3C%2Fw%3At%3E%3Cw%3At%3ESix%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EFlags%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EGreat%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EAdventure%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3
<dblaney1> e%3D%22preserve%22%3EThis%20year%20we%20are%20selling%20the%203%20Park%20Season%20Pass%20%3C%2Fw%3At%3E%3Cw%3At%3Efor%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%241%3C%2Fw%3At%3E%3Cw%3At%3E0%3C%2Fw%3At%3E%3Cw%3At%3E5%3C%2Fw%3At%3E%3Cw%3At%3E.00%20per%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3Epass%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22prese
<dblaney1> rve%22%3E%2C%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3Ethis%20entitles%20%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3Eyou%20%3C%2Fw%3At%3E%3Cw%3At%3Eto%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20visit%20the%20Theme%20Park%2C%20Safari%20and%3C%2Fw%3At%3E%3Cw%3At%20xml%3Aspace%3D%22preserve%22%3E%20%3C%2Fw%3At%3E%3Cw%3At%3EHurricane%3C%2Fw%3At%3E%3Cw%3At%20xm
<mordof> noo
<havenwood> ah, i see your problem
<dblaney1> that was a link
treehug88 has joined #ruby
<dblaney1> let me do tinyurl
<mordof> dblaney1: lol
<rcs> That was a mighty fine link.
<havenwood> dblaney1: maybe stop posting that link?
danshultz has joined #ruby
grieg has quit [Remote host closed the connection]
<havenwood> an image?
<dblaney1> thats the data and the regex
klaut has joined #ruby
Aaaal has quit [Quit: Aaaal]
moritzs has joined #ruby
<mordof> dblaney1: works just fine, once you remove the delimiters that are meant to show it's a regular expression to the language
x1337807x has joined #ruby
<mordof> well
<mordof> no it doesn't actually
swillits has joined #ruby
<arrubin> dblaney1: Impressive URL.
mikepack_ has quit [Remote host closed the connection]
Aaaal has joined #ruby
<mordof> somewhere alniog the line, it's messing up the matching
frosgy has quit [Ping timeout: 265 seconds]
mercerist has joined #ruby
Aaaal has quit [Client Quit]
<mordof> doesn't make much sense
<dblaney1> is there some way in the xml parsing to just get the stuff between the tags
<dblaney1> using nokogiri
paulfm has quit []
<dblaney1> it returned it with the tags
_Andres has joined #ruby
aagdbl0 has joined #ruby
aagdbl has quit [Ping timeout: 252 seconds]
* mordof has not used nokogiri
<swillits> Can anyone explain why Time.strptime() doesn't seem to work with %V %U %W etc? v2.1
<swillits> s = Time.parse("2014-05-07 16:41:48").strftime('%Y%U') # 201418
<swillits> t = Time.strptime(s, '%Y%U') # 2014-01-01 00:00:00 -0800
telling has quit [Remote host closed the connection]
<mordof> dblaney1: have you consulted the documentation?
subraminion_ has quit [Quit: Computer has gone to sleep.]
<dblaney1> i have
x1337807x has quit [Client Quit]
<dblaney1> thats my code
<dblaney1> i took the regex out for now
<dblaney1> since it doesn't match quite right
paulfm has joined #ruby
alexju_ has quit [Read error: Connection reset by peer]
bijan07077 has quit [Quit: bijan07077]
pietr0 has joined #ruby
aspires has quit []
alexju has joined #ruby
<mordof> i would say inner_text() is possibly what you're looking for
<mordof> with nokogiri
<mordof> (after looking at the documentation)
dseitz has joined #ruby
skaflem has joined #ruby
<mordof> Node#inner_text or Node#text
<mordof> and if that doesn't work, then your text is probably a child node - and you'll need to traverse to that child node and grab the text from it
papercode has joined #ruby
<dblaney1> where on that line am i putting that. I saw a lot of stuff like that on the documentation
telling has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
x1337807x has joined #ruby
<dblaney1> wt = xml.root.xpath("//w:t", {"w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main"})
<mordof> dblaney1: what sort of programming background do you have?
<dblaney1> most java, c++
paulfm has quit [Client Quit]
<atmosx> mordof: logo
<dblaney1> i am very object oriented
<mordof> atmosx: hm?
<atmosx> I'm turtle oriented
<atmosx> I see turtles everyone
<atmosx> err everywhere
jume_ has quit [Remote host closed the connection]
<mordof> dblaney1: have you ever traversed a hierarchy before?
<dblaney1> a little
<mordof> dblaney1: that's what you need to do here
kirun has joined #ruby
<dblaney1> so what am i doing with Node#inner_text
<mordof> traversing to a node, and calling that method
aspires has joined #ruby
bwilson has quit [Quit: bwilson]
mercwithamouth has quit [Ping timeout: 245 seconds]
rgiscard has quit [Remote host closed the connection]
Ardenzi has quit [Ping timeout: 276 seconds]
bbloom has quit [Ping timeout: 264 seconds]
<dblaney1> i am completely lost
ascarter has joined #ruby
maveonair has joined #ruby
<mordof> dblaney1: if you're not using regex to match or strip out portions to clean it up.. then you'll likely need to gather the text from each node and build up the cleaned up string yourself (if nokogiri doesn't have that capability already, i don't know if it does... again: i've never used it)
Spami has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
<mordof> which means you need to loop through each node, and grab the inner text and append it to a string
AntelopeSalad has quit []
combusean has quit [Ping timeout: 258 seconds]
<dblaney1> ok
nanoyak has quit [Quit: Computer has gone to sleep.]
Bumptiou_ has joined #ruby
yairgo has quit [Ping timeout: 252 seconds]
<dblaney1> i got it
<dblaney1> wt = xml.root.xpath("//w:t", {"w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main"}).text
<dblaney1> did what i needed
rubynewbie has joined #ruby
<mordof> lol - so it did have the capability to grab just text.
<dblaney1> yeah. their documentation was horrible
<dblaney1> i just ended up guessing
<dblaney1> by putting .text on the end
kaspergrubbe has quit [Remote host closed the connection]
<dblaney1> and it worked
cpruitt has quit [Quit: cpruitt]
sambao21 has quit [Quit: Computer has gone to sleep.]
Oxddf has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<mordof> dblaney1: i did mention it had both .text and .inner_text on nodes
<mordof> which is exactly what you just used
<dblaney1> lol
<dblaney1> you get some credit lol
zcreative has joined #ruby
<dblaney1> just glad I got it working
zcreative has quit [Client Quit]
<dblaney1> thanks
* mordof nods
<mordof> also
<mordof> the reason why the regex wasn't working is because you had a fancy quote in there
Bumptious has quit [Ping timeout: 264 seconds]
<dblaney1> not my document
<mordof> and to normal strings, it breaks it
<mordof> yes
<mordof> your document
<mordof> i copy/pasted your stuff
<dblaney1> i mean I didn't make it lol
<dblaney1> thats the one they wanted me to do it with
<mordof> ah
combusean has joined #ruby
<rubynewbie> hi, i have a question using gem install. Encountering the error: Forbidden 403 (http://rubygems.org/latest_specs.4.8.gz) Is this the right place to ask for assistance?
moritzs has quit [Ping timeout: 240 seconds]
<havenwood> rubynewbie: Sure this is a fine place.
<rubynewbie> Thank you.
<mordof> dblaney1: https://gist.github.com/anonymous/deeeae6e6ba1cbd58d9a that's a working version of your input with the regex after i removed the fancy '
<havenwood> rubynewbie: not https i see
djbkd has quit [Remote host closed the connection]
<rubynewbie> I'm getting that error when running it from a RHEL 6.5 system, but not when I run gem install from my workstation.
moritzschaefer has quit [Ping timeout: 276 seconds]
codeurge has quit [Ping timeout: 276 seconds]
<havenwood> rubynewbie: what version of Ruby on RHEL?
<havenwood> rubynewbie: using the yum package?
meatherl_ has quit [Remote host closed the connection]
<rubynewbie> I belive it's 1.8. It's part of the OpenShift Enterprise broker installation.
marcdel has quit []
<havenwood> rubynewbie: I wonder if you can update RubyGems at least?: gem update --system
<rubynewbie> the installed packages are all 193, the gems seem to be located in /usr/lib/ruby/1.8
HashNuke has quit [Quit: Connection closed for inactivity]
bbloom has joined #ruby
<Hanmac> RHEL still exist? i thought the disks with it on them already rot
workmad3 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
<mordof> Hanmac: lol - brand new RHEL installs happen all the time
<rubynewbie> Hanmac: LOL, you so funny :)
<arrubin> Hanmac: RHEL is very popular among large companies who decided to adopt Linux.
codeurge has joined #ruby
<Hanmac> arrubin: centos is also popular ... and the minimalisic didnt even have man installed oO
yairgo has joined #ruby
<arrubin> Hanmac: Large companies prefer to pay for things.
<rubynewbie> havenwood: I'd rather not update the packages yet, since OSE has separate channels for its components.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> rubynewbie: maybe try?: gem sources -c -a https://rubygems.org
doodlehaus has joined #ruby
<rubynewbie> Just not able to get past the error on the rubygems.org site. 403 Forbidden.
<shevy> rubynewbie when does that error show up?
<rubynewbie> ok, jam.
<havenwood> rubynewbie: My guess is that the issue is your source set to http when https is required, but dunno
Sawbones has joined #ruby
<rubynewbie> shevy: gem install builder -p <proxy>
<atmosx> what is RHEL?
<mordof> redhat enterprise linux
<workmad3> atmosx: dated even on new-release day?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof> lol
paulfm has joined #ruby
razrunelord has quit [Remote host closed the connection]
<mnemon> workmad3: when you want stable server os, you usually end up with rather dated one :P
kpshek has quit []
vlad_starkov has quit [Read error: No route to host]
<atmosx> workmad3: redhat? ... I see. I thought no one was using it anymore, except from coprs that is
<atmosx> isn't fedore the spi-onff?
<atmosx> spin-off
<mnemon> fedora and centos
<yxhuvud> workmad3: Install the latest released centos/redhat and you will get ruby 1.8.7. Nuff said.
<arrubin> atmosx: Fedora and CentOS.
toastynerd has quit [Remote host closed the connection]
<atmosx> workmad3: lol
<havenwood> atmosx: RedHat bought Fedora and CentOS now too, yup.
<arrubin> atmosx: Large companies want support.
<atmosx> I see, rpm still exist?
<workmad3> atmosx: fedora was the spinoff of desktop redhat
<havenwood> atmosx: indeed
<workmad3> atmosx: RHEL is their server distro
<havenwood> Fedora is nice.
<atmosx> I see
* yxhuvud has spent the last week packaging gems into rpms.
* atmosx FreeBSD > *
vlad_starkov has joined #ruby
bwilson has joined #ruby
<atmosx> I was using gentoo though, before getting a mac as a desktop
* shevy source > *
<workmad3> shevy: LFS user? :)
<shevy> nah, LFS unfortunately follows crap like the FHS
zz_jrhorn424 is now known as jrhorn424
jrhorn424 is now known as zz_jrhorn424
paulfm has quit [Client Quit]
<atmosx> gentoo is LFS + package-manage (the most flexible around, although I think apt-get is the best one)
<havenwood> shevy: Submit to the standard!
<rubynewbie> havenwood: I think you're on to something, but I ran into something odd. I ran gem sources -c then gem sources -l and http://rubygems.org is still there.
<rubynewbie> havenwood: Can't seem to clear that entry.
<atmosx> PSIX for the \o/
marcdel has joined #ruby
<shevy> havenwood but I think the FHS standard should not even exist
<havenwood> rubynewbie: make sure it's not in your `~/.gemrc` or another gemrc file?
<havenwood> shevy: oooor, we could follow it :P
mark_locklear has joined #ruby
<shevy> havenwood nope, I sold my soul to appdirs, they are superior in every way to the FHS model
geggam has quit [Remote host closed the connection]
<shevy> did you know that you must have /usr/share/man/ if you are to conform to the FHS
alem0lars has joined #ruby
paulfm has joined #ruby
toastynerd has joined #ruby
<shevy> but, man1 man2 etc... inside of that are all optional suddenly
djbkd has quit [Remote host closed the connection]
<shevy> workmad3 in fairness though, LFS has a lot of useful information even independent of it adhering to the FHS
<havenwood> shevy: huh, they *must* be in the dir unless empty!
<rubynewbie> havenwood: Thank you, I modified the .gemrc file. Still not working, but http://rubygem is no longer in the path.
<shevy> havenwood oh? hmm
Adran has quit [Quit: Este é o fim.]
akonny_ has joined #ruby
chipotle has joined #ruby
geggam has joined #ruby
<shevy> a couple years ago, the coolest reason was why /usr/X11R6 was mandatory :D
jonasac has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubynewbie> havenwood: I think I found something: I have the entry http_proxy <proxy> in my .gemrc file. I added the entry http.proxy <proxy> and it appears to have worked.
<havenwood> rubynewbie: aha, nice
marcdel has quit []
akonny has quit [Ping timeout: 258 seconds]
akonny_ is now known as akonny
kaspergrubbe has joined #ruby
kate_r has quit []
Adran has joined #ruby
<rubynewbie> havenwood: thank you for your help. I may come back with more questions later, but for now I'll see how much progress I can make. Thanks again!
jonasac has joined #ruby
Musashi1 has joined #ruby
bricker`LA has quit [Ping timeout: 255 seconds]
wraakbrasil has quit [Ping timeout: 265 seconds]
<shevy> guys
<shevy> a general question
<shevy> I have a ruby project that wants to log stuff, like what it was doing, when etc...
<shevy> now the big question is:
<shevy> Where to store this to?
jume_ has joined #ruby
bwilson has quit [Quit: bwilson]
skaflem has quit [Quit: Leaving]
<Hanmac> shevy /dev/null has enough space to store everything
<workmad3> shevy: send it to syslog, let the sysadmin figure it out
moritzs has joined #ruby
moritzschaefer has joined #ruby
<atmosx> lol
<atmosx> shevy: /var/log?
<atmosx> or as workmad3 syslog.log or if the admin cares probably uses metalog
<shevy> atmosx well it must work on windows too
EminenceHC has quit [Remote host closed the connection]
<shevy> should I store into the gem-named project dir? like if the gem is called foo/, I could probably store into log/ or something there
<shevy> foo/log/
root3d has joined #ruby
<workmad3> atmosx: no, I wasn't suggesting sending it to a 'syslog.log'... I was suggesting sending it to the syslog logging service (probably with a localN facility) and let the sysadmin configure where it then gets placed in the file system ;)
mikepack has joined #ruby
agrinb has quit [Remote host closed the connection]
<workmad3> shevy: windows? boo :( I guess you could try and send it to the event log or something
<peret> windows isnt going anywhere.
Bumptiou_ has quit [Remote host closed the connection]
<peret> no matter how much we would like it to go away.
agrinb has joined #ruby
<wallerdev> windows is dead just like python 3
phutchins has quit [Ping timeout: 240 seconds]
Shidash has quit [Quit: Leaving.]
SCommette has quit [Quit: SCommette]
<shevy> lol wallerdev
rizzatti has quit [Quit: Leaving...]
<shevy> we should hold votings to the funniest guy in the channel
<atmosx> shevy: windows? omg
<shevy> wallerdev will easily make it into top 3
<wallerdev> <3
<atmosx> that's a sacrilege! but windos keeps logs too... somwhere somehow
<atmosx> so just go with standards
jack_rabbit has quit [Remote host closed the connection]
jxf has joined #ruby
<wallerdev> the typical windows application will create a folder in your My Documents named My Cool App Logs and put things there
ndrei has quit [Ping timeout: 276 seconds]
<wallerdev> because windows has no standards haha
wiku5 has quit [Quit: WeeChat 0.4.2]
<xybre> Windows has a system logger as well
<workmad3> wallerdev: oh yeah... at least, new apps do because windows says 'no, don't dump stuff into Program Files, that's bad' so they stopped doing log dumps there
mikepack has quit [Remote host closed the connection]
<wallerdev> really they should be logging to %APPDATA%/App Name/whatever you want here
<wallerdev> unless the user needs access to it
mikepack has joined #ruby
<xybre> There are Windows standards (well, now there are, since like Vista, but no one started paying attention until recently).
<havenwood> why are devs using win?
Vu1k has quit [Quit: Vu1k]
<mordof> havenwood: i'm used to it. that's why i use it
<havenwood> mordof: hmm
bwilson has joined #ruby
<mordof> i can make more progress in windows because i don't have to fight with my environment
jeebster has joined #ruby
<xybre> Most of an applications files should go into the home appdata directory.
<mordof> (usually)
<wallerdev> if you're doing ruby dev on windows you will have to fight your environment
<mordof> wallerdev: haven't encountered that yet
<jeebster> hey y'all - any ruby scripts or libraries that reconcile data between S3 buckets?
<wallerdev> are you running cygwin?
<mordof> wallerdev: no
<workmad3> mordof: I spent massive amounts of time fighting against windows when I tried it for dev when I was younger :(
<xybre> The Windows standards are better than the unix convention of "dump everything into your home directory".
<wallerdev> youll have the issue then if you try to install any gems that use c libs
<havenwood> mordof: nice to know someone's having a good Ruby dev experience on Win! i imagined it to be not fun.
<mordof> wallerdev: i've only installed a few gems
<xybre> But BeOS/Haiku's version is the best and most ported apps work well with it.
<havenwood> mordof: try `gem install nokogiri` and report back!
Bumptious has joined #ruby
<shevy> hehe
<workmad3> mordof: have you installed mingw?
<mordof> havenwood: do i have to use it to see a problem?
<mordof> nokogiri just installed without a hitch
<havenwood> mordof: nice :)
<mordof> workmad3: no
<wallerdev> windows is amazing
<wallerdev> lol
<havenwood> mordof: if it installs you should be good
<workmad3> nokogiri has pre-compiled mingw binaries from rubygems nowadays
<workmad3> which it'll pull down on windows
<shevy> ok wallerdev is the official channel comedian
<havenwood> workmad3: ahhh
<mordof> workmad3: yeah, it did
<workmad3> mordof: try loading it
<mordof> how?
<wallerdev> lol
<shevy> mordof THEY WANT TO BREAK YOUR SYSTEM!!!
<workmad3> mordof: in irb, type 'require "nokogiri" '
<wallerdev> if it has precompiled binaries on windows it should be fine
<mordof> true
<shevy> FAMOUS LAST COMMANDS!!!
<wallerdev> but most gems arent worried about windows compiling at all
chrisseaton has joined #ruby
<shevy> if I ever go back on windows
<workmad3> wallerdev: not if they're linked to mingw dlls that aren't present...
<shevy> I will compile everything from source
<mordof> workmad3: reported true - does that mean it's fine?
<workmad3> mordof: hmm, seems it
<shevy> it m ight break lateron!
<workmad3> guess it's nicely self-contained nowadays :)
datafirm has quit [Quit: Computer has gone to sleep.]
meatherly has joined #ruby
datafirm has joined #ruby
<mordof> it may take longer to get things properly on windows - but generally if people want it there, it'll happen sooner or later
<mordof> i just wait a bit longer to dive into things that have been ported
wraakbrasil has joined #ruby
wraakbrasil has quit [Max SendQ exceeded]
<xybre> No one ever hacked the planet using a windows system.
<wallerdev> or built jurassic park
wraakbrasil has joined #ruby
wraakbrasil has quit [Max SendQ exceeded]
<mordof> pfft, jurassic park was so built on windows. that's why it failed - BSOD
wraakbrasil has joined #ruby
wraakbrasil has quit [Max SendQ exceeded]
<mordof> BSOD's happen *much* less frequently now though, thankfully
mr_snowf1ake has joined #ruby
<workmad3> mordof: no it wasn't... it's quite clearly stated by the 12yo girl in the film that it's built on UNIX, and she knows UNIX so can hack the system
<mordof> can't remember the last time i've had one occur on me
<xybre> Jurassic Park was explicitly built on a Unix system, it was mentioned in both books and the movie.
<mordof> well fine then. i forgot - and was just bashing windows about it
<workmad3> of course, I'm still waiting for the release of the awesome 3d file browser she uses in the film...
rgiscard has joined #ruby
wraakbrasil has joined #ruby
<xybre> workmad3: Nah, I had one, they're not that great.
<workmad3> xybre: :D
<workmad3> xybre: was it the one from the film?
<wallerdev> in high school i thought about making a 3d game where you had to walk to your files to use them
wraakbrasil has quit [Max SendQ exceeded]
nathancahill has quit [Quit: nathancahill]
datafirm has quit [Ping timeout: 240 seconds]
<wallerdev> i think if i presented that today i could get some VC funding
wraakbrasil has joined #ruby
aspires has quit []
<shevy> ok
<shevy> so people hated you in high school
<mordof> haha
nanoyak has joined #ruby
afex has joined #ruby
<wallerdev> ive never met someone who hated me
agrinb has quit [Remote host closed the connection]
<shevy> xybre I think movies back then like jurassic park but also terminator 2, kinda brought something new into the movie world
<wallerdev> dinosaurs
<shevy> nowadays, I just hate movies like avatar, it looks like crap
<shevy> completely animated ones like toy story 3 are cool though
agrinb has joined #ruby
<shevy> wallerdev they probably were afraid to tell that to your face
<wallerdev> avatar was amazing
mr_snowf1ake has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
<wallerdev> you probably didn't watch it in 3d
<shevy> wallerdev they looked like blue giant freaks!
<wallerdev> well they were aliens
IceDragon has joined #ruby
<shevy> the alien in alien 1 was a good alien
<shevy> or perhaps alien 2
<xybre> workmad3: It was pretty close. I sued a bunch of 3D desktop environments in the early 2000s, they just weren't that useful.
bijan07077 has joined #ruby
jottr has joined #ruby
<shevy> you really sued them?
mikepack has quit [Remote host closed the connection]
<xybre> used^
<workmad3> :)
<wallerdev> lol
* xybre sues shevy
mikepack has joined #ruby
jackneill has quit [Remote host closed the connection]
<shevy> hey
<shevy> sue someone with money instead!
<rgiscard> hey, so anybody successfully installed nokogiri 1.6.2 on osx? (1.6.1 installs fine for me, 1.6.2 bombs during libxml2 2.8 patching)
djbkd has joined #ruby
<dblaney1> so I got all that working. now I just can't figure out how to add seperators between each node
eguim has quit [Ping timeout: 255 seconds]
bpgoldsb has quit [Ping timeout: 245 seconds]
<wallerdev> rgiscard: works fine on windows
<shevy> lol wallerdev
agrinb has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
<shevy> wget ftp://xmlsoft.org/libxml2/libxml2-2.9.1.tar.gz
<shevy> dblaney1 that is an awful pastie
<shevy> can't you use gist github or pastie.org
bpgoldsb has joined #ruby
<rgiscard> shevy: tried installed libxml2/libiconv/libxslt (via homebrew), though the rumor has it that nokogiri does not work with 2.9.x libxml
paulfm has quit []
g0bl1n has quit [Ping timeout: 255 seconds]
vpretzel|1254 is now known as vpretzel
nilobject has joined #ruby
<dblaney1> any thoughts ?
elaptics`away is now known as elaptics
_1_Aaron has joined #ruby
<_1_Aaron> hi
paulfm has joined #ruby
codeurge has quit [Ping timeout: 255 seconds]
eguim has joined #ruby
<dblaney1> need to add seperators between each node
mehlah has joined #ruby
Olipro has quit [*.net *.split]
justinxreese has quit [*.net *.split]
wraakbrasil has quit [Read error: Connection reset by peer]
codeurge has joined #ruby
vlad_starkov has quit []
toastynerd has quit [Remote host closed the connection]
<shevy> rgiscard, yeah no idea, I gave up on xml altogether
tylerkern has joined #ruby
blackmesa has joined #ruby
_1_Aaron has quit [Remote host closed the connection]
abra has joined #ruby
agrinb has joined #ruby
<rgiscard> shevy: thanx 8-) fwiw, nokogiri github shows a few tickets with install issues. at least previous veresion works.
noop has quit [Ping timeout: 258 seconds]
rizzatti has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<mordof> bah... messed up my logic
decoponio has quit [Quit: Leaving...]
<shevy> mordof what did you do
wallerdev has quit [Quit: wallerdev]
<mordof> oooh i know what i did
<shevy> mordof what did you do
<mordof> shevy: i just forgot to change the state after one spot
<shevy> hmm
agrinb has quit [Ping timeout: 255 seconds]
jeebster has left #ruby [#ruby]
root3d has quit [Remote host closed the connection]
<happytux> hii
<happytux> shevy: hi
<end_guy> hi
<happytux> FileList['**/*.pp']
<happytux> Can I make it follow them without actually changing the code?
havenwood has quit [Ping timeout: 272 seconds]
agrinb has joined #ruby
rgiscard has quit [Remote host closed the connection]
justinxreese has joined #ruby
Olipro has joined #ruby
<shevy> FileList sounds like custom crap
havenwood has joined #ruby
Olipro has quit [Max SendQ exceeded]
coz has joined #ruby
bal1 has joined #ruby
<shevy> this is all your code and you don't know what it does?
<shevy> we have File.symlink? and File.readlink, that should be more than enough to do anything symlink-related in ruby that you can do in a shell like bash as well
sambao21 has joined #ruby
<shevy> damn
<shevy> mosquitos :(
Olipro has joined #ruby
bal1 has quit [Client Quit]
SCommette has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<happytux> shevy: FileList is from Rake, it doesn't seem to follow symlinks which I find very bad
sepp2k has joined #ruby
djbkd has quit [Remote host closed the connection]
jume_ has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> as suspected, custom crap
<shevy> thankfully, as you can use ruby, you are not constrained that way
csmrfx has joined #ruby
agrinb has quit [Remote host closed the connection]
tylerkern has joined #ruby
alpha123 has quit [Ping timeout: 258 seconds]
tylerkern has quit [Client Quit]
akonny has quit [Quit: akonny]
benzrf|offline is now known as benzrf
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sambao21 has quit [Quit: Computer has gone to sleep.]
agrinb has joined #ruby
saarinen has quit [Quit: saarinen]
IceDragon has quit [Ping timeout: 264 seconds]
carraroj has quit [Quit: Konversation terminated!]
timonv has joined #ruby
end_guy has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
sambao21 has joined #ruby
tacos1de has quit [Ping timeout: 272 seconds]
atmosx has quit [Ping timeout: 272 seconds]
tacos1de has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
tylerkern has joined #ruby
alaing_ has joined #ruby
atmosx has joined #ruby
bluOxigen has quit []
IceDragon has joined #ruby
saarinen has joined #ruby
yfeldblum has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
<Stalkr_> What's your favorite SSG? Is it Jekyll or are there better alternatives?
timonv has quit [Ping timeout: 240 seconds]
<Stalkr_> I don't understand there isn't some Rake tasks for generating new posts and pages with Jekyll
alaing has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
koderok has quit [Ping timeout: 252 seconds]
nathancahill has joined #ruby
end_guy has joined #ruby
<mordof> shevy: there - got it all working with a much better logic :)
djbkd has quit [Remote host closed the connection]
saarinen has joined #ruby
afex has quit [Ping timeout: 258 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carlyle_ has quit []
mrsolo has joined #ruby
m8 has joined #ruby
mrsolo has left #ruby [#ruby]
acrussell has quit [Quit: Leaving.]
Hanmac has joined #ruby
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
oracal has joined #ruby
LadyRainicorn has quit [Quit: Bye]
blackmesa has quit [Quit: WeeChat 0.4.3]
jume_ has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
akonny has joined #ruby
chipotle has quit [Quit: cya]
mengu has joined #ruby
rizzatti has quit [Quit: Leaving...]
wolf__ has quit [Quit: This computer has gone to sleep]
CorySimmons has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
combusean has joined #ruby
jhass is now known as jhass|off
CorySimmons has quit [Client Quit]
yvemath has quit [Excess Flood]
aspires has joined #ruby
maveonair has quit [Ping timeout: 252 seconds]
g0bl1n has joined #ruby
Musashi1 has joined #ruby
saarinen has quit [Quit: saarinen]
ukd1 has joined #ruby
Valesk has joined #ruby
wallerdev has joined #ruby
sdwrage has joined #ruby
terrell_t is now known as terrellt
RaptorJesus_ has joined #ruby
djbkd has joined #ruby
sinkensabe has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
RaptorJesus has quit [Ping timeout: 272 seconds]
gigetoo has quit [Remote host closed the connection]
anaeem1 has joined #ruby
nilobject has quit [Quit: nilobject]
kenneth has joined #ruby
kenneth has quit [Client Quit]
gigetoo has joined #ruby
djbkd has quit [Ping timeout: 258 seconds]
kenneth has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sinkensabe has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
Bumptious has quit [Remote host closed the connection]
saarinen has joined #ruby
kenneth has quit [Client Quit]
<shevy> mordof if only it would be an awesome project as well!
timonv has joined #ruby
palafito32 has joined #ruby
djbkd has joined #ruby
<mordof> shevy: :p
datafirm has joined #ruby
funburn has joined #ruby
the_f0ster has joined #ruby
djbkd has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
<shevy> :)
djbkd has joined #ruby
sambao21 has joined #ruby
nanoyak has joined #ruby
sinkensabe has joined #ruby
swillits has left #ruby [#ruby]
mark_locklear has quit [Ping timeout: 240 seconds]
agrinb has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
paulfm has quit []
agrinb has joined #ruby
ukd1 has quit [Quit: Leaving...]
akonny has quit [Quit: akonny]
elaptics is now known as elaptics`away
paulfm has joined #ruby
x1337807x has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
paulfm has quit [Client Quit]
alexju has quit [Remote host closed the connection]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
jume_ has quit [Remote host closed the connection]
jume_ has joined #ruby
paulfm has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
anaeem1 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
Ankhers has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
testcore has joined #ruby
r_s_h has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
jespada has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
nanoyak has joined #ruby
blackmesa has joined #ruby
crelix has joined #ruby
anaeem1 has joined #ruby
nanoyak has quit [Client Quit]
chrisramon has joined #ruby
zigomir has quit [Remote host closed the connection]
coz has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
nanoyak has joined #ruby
<upsell5> I'm looping threw model attributes (rails) for some reason the attr_value is empty always, the attr_name is fine, any reason why?
<upsell5> <% @user.attributes.each do |attr_name, attr_value | %>
wallerdev has quit [Quit: wallerdev]
nanoyak has quit [Client Quit]
wallerdev has joined #ruby
<toretore> upsell5: more code
razrunelord has joined #ruby
nanoyak has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<upsell5> <%= attr_name %><% attr_value %><br/> <% end %>
baweaver has quit [Remote host closed the connection]
paulfm has quit [Ping timeout: 240 seconds]
<end_guy> upsell5: Your values in the hash are nil.
centrx has quit [Quit: All this computer hacking is making me thirsty]
yacks has quit [Ping timeout: 265 seconds]
Norrin has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
bashrw_ has quit [Quit: Connection closed for inactivity]
<upsell5> end_guy: i want to see the column name and mysql type
lw has quit [Quit: s]
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
<end_guy> puts @user.attributes
saarinen has joined #ruby
<end_guy> what does that return?
BWStearns has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
amccloud has joined #ruby
cpruitt has joined #ruby
three18ti has quit [Ping timeout: 240 seconds]
Squarepy has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
<Xeago> end_guy: nil
<upsell5> end_guy: #<user:0x00000000>
epochwolf has quit [Ping timeout: 252 seconds]
<Xeago> puts returns nil
<toretore> upsell5: how do you know it's "empty"
<toretore> ?
Hien has quit [Ping timeout: 252 seconds]
nathancahill has quit [Quit: nathancahill]
<upsell5> puts @user.inspect still only shows the values.
SegFaultAX has quit [Ping timeout: 245 seconds]
<upsell5> it doesnt' show the mysql type
kyb3r_ has joined #ruby
<upsell5> its not empty…it is outputing the attributes fine…i want the mysql type also
<amccloud> While mapping a enumerable is there a way to access the previous value returned?
<toretore> you are giving us no data to work with here
razrunelord has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Xuerian has joined #ruby
<toretore> upsell5: *how* do you know it's "empty"?
<toretore> be very specific and elaborate
Xeago has quit [Remote host closed the connection]
pothibo has joined #ruby
joost_like_toast has joined #ruby
yfeldblum has joined #ruby
<upsell5> sure, thought doing a .each on the attributes would return the column name and type. When I loop, it only shows the column name for the model.
razrunelord has joined #ruby
baweaver has joined #ruby
<toretore> hhhhooooowwwwww?
claymore has quit [Quit: Leaving]
<toretore> "it shows"
<toretore> how?
<upsell5> i'm outputting in my rails view
<toretore> how?
<upsell5> the code I pasted earlier
<toretore> code
<toretore> paste again
<toretore> paste the entire view on gist.github.com
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Ping timeout: 276 seconds]
palafito32 has quit [Quit: Page closed]
saarinen has quit [Ping timeout: 252 seconds]
<toretore> i suspect i know the exact reason, but i want you to understand that it was only by accident that i noticed it
<upsell5> oh..i missed the =
<toretore> yes
epochwolf has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
<upsell5> ok, so it still isn't what I am after. It now shows the column_name and value…. I am looking for column type.
SCommette has quit [Quit: SCommette]
<monsieurp> upsell5: use something like ideone
<monsieurp> pls
crelix has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> upsell5: you are being very difficult to help
baweaver has joined #ruby
<toretore> all this text and all it amounts to is basically "my code doesn't work"
Sawbones has quit [Remote host closed the connection]
<upsell5> "doing a .each on the attributes would return the column name and type"
zachallett has quit [Remote host closed the connection]
<upsell5> i said type :)
ctp has joined #ruby
<toretore> where do you get this information from?
ldnunes has quit [Quit: Leaving]
<upsell5> toretore: please ignore my q i'll fiddle with it.
<toretore> no problem at all
yfeldblum has quit [Ping timeout: 264 seconds]
three18ti has joined #ruby
Xeago has joined #ruby
<upsell5> thanks anyhow.
agrinb has quit [Remote host closed the connection]
einarj has joined #ruby
bubbajones has joined #ruby
anaeem1 has quit [Remote host closed the connection]
maletor has joined #ruby
maveonair has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
agrinb has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
<maletor> If I use Ruby 2, I don't need `# encoding: UTF-8`, right?
workmad3 has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
rizzatti has joined #ruby
chrisramon has quit [Quit: chrisramon]
amccloud has quit [Quit: amccloud]
<geggam> so.. stupid question... ||= .... what is that exactly doing
rudisimo has quit []
<geggam> as an assignment
Hien has joined #ruby
<Xeago> geggam: a = a || b if I recall correctly
kirun has quit [Quit: Client exiting]
<maletor> Xeago: correct
jottr has quit [Quit: WeeChat 0.4.2]
jmurray has quit [Quit: jmurray]
<geggam> and if a = '' and b='foo' then a == foo ?
<Xeago> no, it is a || a = b
<workmad3> geggam: a || a = b is more accurate
<Xeago> (looked it up)
<workmad3> but even then, not quite
<Xeago> a = a || b has different semantics
<workmad3> no assignment occurs if a is set (a = a || b always assigns)
<workmad3> but a || a = b will cause an error if 'a' is a new local variable
<workmad3> >> a || a = b
<eval-in__> workmad3 => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/150775)
<workmad3> >> a ||= b
<eval-in__> workmad3 => undefined local variable or method `b' for main:Object (NameError) ... (https://eval.in/150776)
_maes_ has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: Going AFK...]
creativeembassy has quit [Quit: FO SHO]
<workmad3> geggam: but mostly, it's saying 'assign b to a if a is nil or false'
mityaz has quit [Quit: See ya!]
<geggam> that is the result i was seeing workmad3 ... i was wondering if i could rely on it :)
Morkel has quit [Quit: Morkel]
andrewjanssen has joined #ruby
yfeldblum has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maveonair has quit [Ping timeout: 258 seconds]
borodin has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
g0bl1n has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
<dideler|work> can you have comments in your .env file?
atraylen has quit [Read error: Connection reset by peer]
dsdeiz has joined #ruby
rizzatti has quit [Quit: Linkinus - http://linkinus.com]
SegFaultAX has joined #ruby
<borodin> I have a hash {"email" => "bob@google.com", "email" => "sally@yahoo.com", "email" => "fred@hp.com"} and I want to remove from the hash any pair that has an hp.com email. I tried hash.reject{ |k,v| v =~ \hp.com\} but admittedly I'm over my head
<borodin> can anyone advise?
yfeldblum has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
<snath> I'm having an issue with Net::SSH, anybody here who can help?
SCommette has joined #ruby
arrubin has quit []
alaing_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0.1/20140506152807]]
sent-hil has joined #ruby
lw has joined #ruby
dsdeiz has quit [Ping timeout: 258 seconds]
tuxy-j has joined #ruby
<DouweM> borodin: you have a hash with three identical keys with different values? it doesn't work that way
<DouweM> snath: state the issue and perhaps someone will lend a hand
Norrin has joined #ruby
dideler|work has quit [Quit: WeeChat 0.4.4-dev]
sailias has quit [Ping timeout: 245 seconds]
sent-hil has left #ruby [#ruby]
beef-wellington has joined #ruby
dideler|work has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Biohazard has joined #ruby
<snath> I'm trying to use Net::SSH with password authentication and it is failing. password is ok, ssh gets me in just fine
aagdbl0 has quit [Quit: Leaving]
BWStearns has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
SilkFox has quit [Ping timeout: 258 seconds]
marcdel has quit []
danshultz has quit [Remote host closed the connection]
awestroke has joined #ruby
<awestroke> jesus how can "gem install" still be so slow
danshultz has joined #ruby
beef-wellington has quit [Ping timeout: 258 seconds]
agjacome has quit [Ping timeout: 276 seconds]
b00stfr3ak has quit [Ping timeout: 265 seconds]
doodlehaus has quit [Remote host closed the connection]
<shevy> depends
<shevy> the docu-install part can be slow like hell
<ericwood> --no-ri --no-rdoc
<ericwood> makes it faster
gregf has quit [Remote host closed the connection]
<shevy> otherwise it should be quite fast, unless you must install something that depends on a lot of stuff
b00stfr3ak has joined #ruby
alex88 has quit [Quit: Leaving...]
gregf has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
<awestroke> ericwood: I have that in my .gemrc
<awestroke> it
<awestroke> it's stuck on "Successfully installed x"
mjsmith2 has quit [Remote host closed the connection]
sambao21 has joined #ruby
<awestroke> which sources are the fastest?
sambao21 has quit [Client Quit]
<shevy> wat
<shevy> smaller gems should be faster than larger gems
cescalante is now known as ce_afk
upsell5_ has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
upsell5 has quit [Ping timeout: 264 seconds]
upsell5_ is now known as upsell5
Biohazard has joined #ruby
dsdeiz has joined #ruby
yairgo has quit [Ping timeout: 252 seconds]
danman has quit [Quit: danman]
joost_like_toast has quit [Quit: Computer has gone to sleep.]
maveonair has joined #ruby
maletor_ has joined #ruby
sambao21 has quit [Client Quit]
Squarepy has quit [Quit: Leaving]
maletor has quit [Ping timeout: 240 seconds]
lw has quit [Read error: Connection reset by peer]
borodin has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
baweaver has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
saarinen has joined #ruby
olausm has joined #ruby
phinfone_ has joined #ruby
phinfonet has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
EagleDelta has quit []
maveonair has quit [Ping timeout: 252 seconds]
bakflash has quit [Quit: Konversation terminated!]
afex has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
jume_ has quit []
treehug88 has quit []
BWStearns has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
BWStearns has joined #ruby
ellbot has joined #ruby
terrell_t has joined #ruby
banghouse2 has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
olausm has quit []
combusean has quit [Ping timeout: 258 seconds]
nfk has quit [Quit: yawn]
RaptorJesus_ is now known as RaptorJesus
atmosx_ has joined #ruby
qwyeth has quit [Quit: Leaving]
dblessing has quit [Read error: Connection reset by peer]
dblessing has joined #ruby
Xeago has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 240 seconds]
atmosx has quit [Ping timeout: 272 seconds]
danijoo has quit [Read error: Connection reset by peer]
combusean has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
terrell_t is now known as terrellt
meatherly has quit [Remote host closed the connection]
nateberkopec has joined #ruby
thesheff17 has quit [Ping timeout: 258 seconds]
dayepa has joined #ruby
dblessing has quit [Client Quit]
SCommette has quit [Quit: SCommette]
jrhe has joined #ruby
BWStearns has quit [Read error: Connection reset by peer]
BWStearns has joined #ruby
<ExceptionlCatch> ok i'm stumped, i'm using 'json' and am trying to generate json from a ruby class. i've implemented the to_h() and to_hash() methods but JSON.generate() still errors when passing in the object
nanoyak has joined #ruby
m8 has quit [Quit: Sto andando via]
livcd has joined #ruby
ktun has joined #ruby
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
ellbot has quit [Quit: Lost terminal]
livcd has quit [Ping timeout: 252 seconds]
b00stfr3ak has quit [Read error: Connection reset by peer]
awestroke has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
einarj has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
s2013_ has joined #ruby
b00stfr3ak has joined #ruby
pskosinski has joined #ruby
s2013 has quit [Ping timeout: 258 seconds]
VTLob has quit [Quit: VTLob]
Fcker has joined #ruby
<Fcker> F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! 26403 F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL!
<Fcker> PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! 53311 PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL!
<Fcker> F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! 45212 F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL!
<Fcker> F{}CK 66682 F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK F{}CK
<hoelzro> apeiros: cleanup on aisle 4
<Fcker> MOTHER F{}CKERS!!! 81339 MOTHER F{}CKERS!!! MOTHER F{}CKERS!!! MOTHER F{}CKERS!!! MOTHER F{}CKERS!!! MOTHER F{}CKERS!!! MOTHER F{}CKERS!!! MOTHER F{}CKERS!!!
sambao21 has joined #ruby
<Fcker> PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! 20352 PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL! PHUCK U ALL!
Fcker was kicked from #ruby by apeiros [Fcker]
Fcker has joined #ruby
<Fcker> F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! 61234 F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL! F{}CK YOU ALL!
<Fcker> 12787 F{}CKERS 22785 F{}CKERS 40979 F{}CKERS 37700 F{}CKERS F{}CKERS F{}CKERS F{}CKERS F{}CKERS F{}CKERS F{}CKERS
<Fcker> F{}CK YOU ALL!!!F{}CK YOU ALL!!!F{}CK YOU ALL!!! F{}CK YOU BITCH!!! F{}CK YOU ALL!!! 51067 F{}CK YOU BITCH!!!
* xybre yawns
Fcker has left #ruby [#ruby]
* hoelzro cheers
<hoelzro> thanks apeiros
<jenrzzz> why
<drPoggs> he must be new to the Internet, that's so 1997
<xybre> F{}ck? Really?
<apeiros> I'll never get what motivates people to do that
<jenrzzz> f_ck that
<drPoggs> "F\{\}ck"
<shevy> f___ ____
<apeiros> "weee I wrote a bot which spams channels, I'm so awesome!"
<xybre> Some people just want to watch the world burn?
<shevy> the joker!
<shevy> my idol!
s2013_ is now known as s2013
<xybre> Yeah, I don't think they qualify high enough to be compared to the joker, so I retract my statement.
<xybre> Also, you need some better role models.
<Hanmac1> apeiros: no, writing a bot would be to much for him, that was simply copy-paste
sambao21 has quit [Client Quit]
<apeiros> probably
garndt has quit [Quit: Connection closed for inactivity]
<xybre> I'm waiting for him to PM you and be like "woops wrong channel"
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxf has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: alem0lars]
Martxel has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
livcd has joined #ruby
ItSANgo_ has quit [Quit: Leaving...]
Hanmac has joined #ruby
agrinb has joined #ruby
razrunelord has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 264 seconds]
jayne_ is now known as jayne
<benzrf> bbl
livcd has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
benzrf is now known as benzrf|offline
<shevy> Hanmac omg what a horror pic
saarinen has quit [Quit: saarinen]
timonv has joined #ruby
<shevy> I grew up with tom and jerry
agrinb_ has joined #ruby
<shevy> those fat monster hamsters anime style are so scary
agrinb has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
oddie_ has quit [Quit: bye]
andrewjanssen has quit [Quit: Leaving...]
sdwrage has quit [Quit: This computer has gone to sleep]
mansi has quit [Remote host closed the connection]
reset has joined #ruby
mansi has joined #ruby
binaryhat has joined #ruby
SCommette has joined #ruby
andrewjanssen has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
rm__ has joined #ruby
zkay11 has joined #ruby
rm__ is now known as sassamo
ItSANgo has joined #ruby
upsell5 has quit [Quit: upsell5]
mansi has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
nathancahill has joined #ruby
marcdel has joined #ruby
mjsmith2 has joined #ruby
Hanmac has quit [Quit: Leaving.]
Arkaniad has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
nhhagen has quit [Remote host closed the connection]
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
marcdel has joined #ruby
funburn has joined #ruby
saarinen has quit [Client Quit]
zz_jrhorn424 is now known as jrhorn424
mary5030 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
datafirm has quit [Quit: Computer has gone to sleep.]
nateberkopec has quit [Quit: Leaving...]
kartouch has quit [Ping timeout: 245 seconds]
jxf has joined #ruby
datafirm has joined #ruby
SCommette has quit [Quit: SCommette]
codeurge has quit [Ping timeout: 252 seconds]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
winny has joined #ruby
dideler has quit [Ping timeout: 265 seconds]
mikepack_ has joined #ruby
<winny> hello, can somebody give me a usecase of when one may find use for String#replace?
mjsmith2 has quit [Remote host closed the connection]
thomasxie has joined #ruby
kartouch has joined #ruby
codeurge has joined #ruby
datafirm has quit [Ping timeout: 258 seconds]
<wallerdev> >> x = "hello world"; def cool(x); x.replace('result'); nil; end; cool(x); x
<eval-in__> wallerdev => "result" (https://eval.in/150787)
tkuchiki has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<winny> as opposed to returning a new string?
<wallerdev> winny: but yeah you probably should never use it, people don't expect strings to change by reference
mikepack_ has quit [Ping timeout: 245 seconds]
<winny> ok thanks :-)
<winny> the nil; statement is the what the method returns right?
<wallerdev> yeah
mikecmpbll has joined #ruby
<wallerdev> >> x = "hello world"; def cool(x); "result"; end; x = cool(x); x
<eval-in__> wallerdev => "result" (https://eval.in/150788)
<wallerdev> thats how you should do things
<winny> ok, that makes sense
jrhorn424 is now known as zz_jrhorn424
Companion has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
the_f0ster has quit [Remote host closed the connection]
nanoyak has joined #ruby
phoo1234567 has quit [Quit: Leaving]
saarinen has joined #ruby
phutchins has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
kitak has quit [Remote host closed the connection]
charliesome has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
kitak has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
nathancahill has quit [Quit: nathancahill]
mrmargolis has joined #ruby
upsell5 has joined #ruby
benzrf|offline is now known as benzrf
kies has quit [Ping timeout: 265 seconds]
cpruitt has quit [Quit: cpruitt]
s2013 has quit [Ping timeout: 265 seconds]
<shevy> I am bored
<shevy> wallerdev say something funny
<wallerdev> your face
<winny> good one
<wallerdev> thanks
nathancahill has joined #ruby
mehlah has quit [Quit: Leaving...]
<shevy> lol
snath has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
dblaney1 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- s0 d4Mn l33t |t'z 5c4rY!]
IceDragon has quit [Ping timeout: 240 seconds]
andrewlio has quit [Quit: Leaving.]
bwilson has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
predator117 has joined #ruby
St_Marx has quit [Ping timeout: 272 seconds]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
livcd has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
danijoo has joined #ruby
rkazak has joined #ruby
ascarter has joined #ruby
predator217 has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
chrisseaton has quit []
kies has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
sambao21 has quit [Quit: Computer has gone to sleep.]
St_Marx has joined #ruby
phutchins has quit [Ping timeout: 258 seconds]
geggam has quit [Remote host closed the connection]
livcd has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
razrunelord has quit [Remote host closed the connection]
mercerist has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
<kenneth> what is the recommended / best supported decimal math library on ruby?
dideler has joined #ruby
<Nilium> BigDecimal?
<benzrf> Rational
<benzrf> ?
<havenwood> Rational \o/
tylerkern has joined #ruby
<Nilium> That should work too.
<benzrf> > 3.5.to_r
Slavox is now known as Slavox|AFK
<benzrf> >> 3.5.to_r
<eval-in__> benzrf => (7/2) (https://eval.in/150794)
banghouse2 has joined #ruby
<benzrf> :-D
<benzrf> >> 0.1.to_r
<eval-in__> benzrf => (3602879701896397/36028797018963968) (https://eval.in/150795)
<havenwood> >> 7/2r
<eval-in__> havenwood => (7/2) (https://eval.in/150796)
<benzrf> ew
<benzrf> >> 0.1r
<eval-in__> benzrf => (1/10) (https://eval.in/150797)
<benzrf> sweet
<shevy> benzrf, it's time for you to continue writing squeak for ruby
mikecmpbll has quit [Quit: ciao.]
IceDragon has joined #ruby
<benzrf> lol sorry but i gave up on that
<shevy> :(
mercerist has joined #ruby
<benzrf> it was too brittle to ever be really usable
<benzrf> maybe someday ill start over :I
<benzrf> perhaps using FUSE was a bad idea
<benzrf> how else do i interface with it though
oracal has quit [Quit: Leaving]
<sweeper> I have a filesystem I'm working on in python :P
<sweeper> where "working on" stands for "haven't touched in a couple of months"
<benzrf> i know that feel man
cjsarette has quit [Max SendQ exceeded]
<Nilium> In that case, I'm working on my VM.
* Nilium stares at the neglected Rusalka project.
<sweeper> all I wanted was file replication across a heterogenous JBOD...but noooo, life had to stick its oar in and take all my times
<kenneth> >> 1.2 - 1.0 == 0.2
<eval-in__> kenneth => false (https://eval.in/150798)
<benzrf> JBOD?
<kenneth> >> 1.2.to_r - 1.0.to_r == 0.2.to_r
<eval-in__> kenneth => false (https://eval.in/150799)
<Nilium> Really, the only thing I need to do with it write now is write the damn code loader, but good god do I hate C-based IO.
<Nilium> .. right now
<kenneth> well, sounds like rational numbers don't solve my problem
cjsarette has joined #ruby
<kenneth> > 1.2r - 1.0r == o.2r
<kenneth> >> 1.2r - 1.0r == 0.2r
<eval-in__> kenneth => true (https://eval.in/150800)
<kenneth> oh wait, maybe they do
<benzrf> kenneth: 0.2 is a float
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> when you convert it to r you get what it was as a float
<benzrf> >> 0.2.to_r
cjsarette has quit [Max SendQ exceeded]
<eval-in__> benzrf => (3602879701896397/18014398509481984) (https://eval.in/150802)
codeurge has joined #ruby
<kenneth> yeah, figured
<benzrf> 0.2r is a rational to start with
<benzrf> >> 0.2r
<eval-in__> benzrf => (1/5) (https://eval.in/150804)
<benzrf> you can also do
saarinen has joined #ruby
mercerist has quit [Ping timeout: 240 seconds]
<benzrf> > Rational(1, 20)
<benzrf> >> Rational(1, 20)
<eval-in__> benzrf => (1/20) (https://eval.in/150806)
<kenneth> >> 10.56r
<eval-in__> kenneth => (264/25) (https://eval.in/150807)
<benzrf> or
<Nilium> floats be all inexact as fuck yo.
<benzrf> >> 1/20r
<eval-in__> benzrf => (1/20) (https://eval.in/150808)
<benzrf> >> 1 / 20r
<eval-in__> benzrf => (1/20) (https://eval.in/150810)
<benzrf> oops
<benzrf> looks like that's just division >.>
<kenneth> so say i want to do accurate math for money
<kenneth> the built-in rational number support is good enough?
<kenneth> i don't need some kind of external library?
toretore has quit [Quit: This computer has gone to sleep]
Shidash has joined #ruby
<Nilium> As long as you only use rationals: probably?
<Nilium> What're the chances you're going to randomly insert a float and not notice?
<kenneth> >> 10.56r + 10r * 100r
<eval-in__> kenneth => (25264/25) (https://eval.in/150812)
bijan07077 has quit [Quit: bijan07077]
<Spami> Nokogiri segfaults for some reason on my machine https://gist.github.com/anonymous/484633a9cfde1a5574fb Any idea someone ?
saarinen has quit [Client Quit]
dideler has quit [Ping timeout: 252 seconds]
<kenneth> what about serializing and deserializing rationals; is there any build-in support for json?
fantazo has quit [Ping timeout: 240 seconds]
<Nilium> Tried reinstalling it?
<kenneth> >> 0.2r.to_json
<eval-in__> kenneth => undefined method `to_json' for (1/5):Rational (NoMethodError) ... (https://eval.in/150816)
<benzrf> kenneth: require it first
<kenneth> >> {blah: 0.2r}.to_json
<eval-in__> kenneth => undefined method `to_json' for {:blah=>(1/5)}:Hash (NoMethodError) ... (https://eval.in/150818)
<kenneth> >> require 'json'; {blah: 0.2r}.to_json
<eval-in__> kenneth => (https://eval.in/150820)
<benzrf> >> require 'json'; 0.2r.to_json
<eval-in__> benzrf => (https://eval.in/150822)
<benzrf> o:
<Nilium> Is there something stopping you from writing your own to_json for them?
cjsarette has joined #ruby
<benzrf> c-could it not require json?
kitak_ has joined #ruby
<sweeper> everything needs json