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…]
<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.
<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]
<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>
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?
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
<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.
<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]
<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
<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?
<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]
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
<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]
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?
<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
<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
<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.
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
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]
<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
<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]
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…]
<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
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]
<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.]
<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.
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
<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?
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.
<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]
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
<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]
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>
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!