apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
<kandinski> I now have rbenv and rbenv shims in my path, but `bundle install` installs the gems to my system. Quite confusing.
mmitchell has quit [Ping timeout: 240 seconds]
Spaceboy has quit [Remote host closed the connection]
Spaceboy has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Russell^^ has quit [Quit: Russell^^]
<waxjar> isn't that a bug in asciidoc? it's clearly loaded, because if you look at the backtrace of the error it raises an error
jlwestsr has joined #ruby
bronson has quit [Quit: bronson]
jds_ has quit [Remote host closed the connection]
grzywacz has quit [Quit: :wq]
nat2610 has joined #ruby
cakehero has joined #ruby
nat2610 has quit [Client Quit]
<kandinski> waxjar: yeah, but still I can't believe this is a bug in the github project, because it's a showstopper. It has to be my install/configuration
chimkan has quit [Quit: chimkan]
SuperrMann has joined #ruby
timonv has joined #ruby
bakis has quit [Ping timeout: 245 seconds]
manizzle_ has quit [Ping timeout: 252 seconds]
jrist-afk is now known as jrist
nat2610 has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
x82_nicole has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 246 seconds]
_solomon has quit [Quit: _solomon]
xclite has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
twopoint718 has joined #ruby
seanstickle has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 244 seconds]
<waxjar> but the error originates from a file in that gem, so it can't be anything with bundler or your path
jslowe has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
burlesona has joined #ruby
bakis has joined #ruby
bakis has quit [Changing host]
bakis has joined #ruby
sn0wb1rd has joined #ruby
bricker has joined #ruby
<burlesona> Question re: testing methods for a helper module. In Sinatra (and other cases) there's a local oject/method 'request' which you can call in your views, and also helper methods can call it. If I want to write tests for a helper method, though, that request object isn't available inside the method. What's the appropriate way to stub a local variable/method like that so it's available in the module method you're testing?
<kandinski> waxjar: yeah, been chasing a wild goose. Thanks. I'll try to install it on MacOS and on a clean Ubuntu instance, see if it's either a Mac/Ubuntu difference or some cruft on my system.
<shevy> hmm guys, stylistic question
<shevy> given a class, in def initialize, let's say you have:
<shevy> def initialize(a, b)
xastion has quit [Quit: Lost terminal]
<shevy> set_b(b)
<waxjar> you could just clone the project from github kandinski, see if it raises the same error without sinatra?
<shevy> set_a(a)
<shevy> it's better to do this in order as the arguments come in, right?
<kandinski> waxjar: I cloned the project from github. It's just that it uses sinatra as its frontend.
<seanstickle> shevy: yes
fire_wall has quit [Ping timeout: 252 seconds]
<shevy> set_a() and set_b() are just examples, the real code is larger and different... it just struck me that I was calling in opposite order in old code, and did not know why I do so
<kandinski> waxjar: otherwise, what did you mean?
<shevy> ok seanstickle
<waxjar> shevy: it's what i would expect if i were glancing over the code
<shevy> yeah I too! my own code confused me hehe :)
<waxjar> kandinski, nvm then. i thought u were trying to use asciidoc in a sinatra app of your own
solidoodlesuppor has quit [Remote host closed the connection]
<kandinski> waxjar: no, this is a project that uses sinatra and asciidoc, and it happens to install the asciidoc gem from github too (probably because they have fixed or added stuff). Thanks a lot.
khimera has quit [Quit: khimera]
Axsuul has joined #ruby
cakehero has quit [Ping timeout: 252 seconds]
xnm has quit [Ping timeout: 248 seconds]
alanp_ is now known as alanp
axl_ has joined #ruby
twopoint718 has quit [Ping timeout: 255 seconds]
cakehero has joined #ruby
manizzle has joined #ruby
cakehero has quit [Max SendQ exceeded]
cakehero has joined #ruby
arya has quit [Ping timeout: 260 seconds]
cakehero has quit [Max SendQ exceeded]
cirwin has left #ruby [#ruby]
cakehero has joined #ruby
nat2610 has quit [Quit: Leaving.]
cakehero has quit [Max SendQ exceeded]
tommyvyo_ has joined #ruby
hsbt is now known as hsbt_away
GoGoGarrett has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
arya has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
fire_wall has joined #ruby
cakehero has quit [Max SendQ exceeded]
alx- has joined #ruby
alx- has quit [Client Quit]
cakehero has joined #ruby
<shevy> this is interesting, they use something similar to the old chris pine "learn to program" example
<shevy> but, it is interactive!
<shevy> people dont need to use offline irb... they can try right as they read the tutorial :)
<seanstickle> Yeah, I sent that to my research colleagues at work
<seanstickle> To try and wean them from SPSS
<shevy> hehehe
<shevy> well, I love the old chris pine tutorial... but man, interactive really rocks
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
jds_ has joined #ruby
<shevy> I could run and write ruby scripts in the cloud! :D
bricker has quit [Quit: Lost terminal]
nat2610 has joined #ruby
<kandinski> hmm, the output of `bundle viz` is of no use in a bug report, I guess. This is something they already know. Apart from the traceback on the console and the sinatra show_exception output, what else should I put in a bug report?
<kandinski> 01:31 < shevy> this is interesting, they use something similar to the old chris pine "learn to program" example
<kandinski> 01:31 < shevy> but, it is interactive!
<kandinski> oops, that was a mispaste, sorry
rasbonics has quit [Quit: rasbonics]
<shevy> kandinski, perhaps the ruby version
pkrnj has joined #ruby
thone has joined #ruby
<shevy> Ruby Version: ruby 1.8.7 (2012-06-29 patchlevel 370) [i686-linux]
<shevy> I am testing on 1.8.7 again ... :P
<kandinski> yeah, did that too, explained I am using rbenv and 1.9.3.psomething as per the instructions
jonathanwallace1 has quit [Ping timeout: 250 seconds]
dmiller has joined #ruby
burlesona has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 264 seconds]
thone_ has quit [Ping timeout: 250 seconds]
Banistergalaxy has joined #ruby
vasile has quit [Ping timeout: 265 seconds]
<shevy> \o/ you made them happy already, now they must make you happy, after you sent the report
igro has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 260 seconds]
<xybre> Looking for a way to simply find and map an enumerable. ex: {a: 1, b:2}.find_and_map {|key, value| if key == :a; value; end } #=> 1
<xybre> So it would find the first match and return the result of the block, instead of the full element.
dmiller has quit [Ping timeout: 265 seconds]
<xybre> find returns [:a, 1]
<xybre> And map returns [1, nil]
<kandinski> havenn: I see you submitted to the Magic Book Project. Did you get it running? On which platform?
jeffreybaird has quit [Quit: jeffreybaird]
<xybre> So I'm looking for a simple hybrid without compact'ing or explict returns in the middle of the loop, or having to do nil checks if the search fails.
babinho has quit [Remote host closed the connection]
arya has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
Banistergalaxy has joined #ruby
buibex has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jds_ has quit [Ping timeout: 248 seconds]
jjang has quit [Remote host closed the connection]
danneu has quit [Ping timeout: 260 seconds]
moshee has quit [Ping timeout: 264 seconds]
moshee has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
PhilK has quit [Read error: Operation timed out]
pkircher has quit [Quit: pkircher]
tommyvyo has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
PhilK has joined #ruby
_nitti has joined #ruby
krawchyk has joined #ruby
mmitchell has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
pr0ton has joined #ruby
tommyvyo has joined #ruby
<pr0ton> i have some questions about thin
<pr0ton> i'm running Sinatra with it
<pr0ton> : i run my program as "ruby -rubygems server.rb"
<pr0ton> how can i set thin specific settings without moving over to config.ru / config.yml ?
GitNick has quit [Quit: Linkinus - http://linkinus.com]
Naeblis has quit [Ping timeout: 264 seconds]
<pr0ton> alternately is there a nice way for me to move to using thin for running my servers ?
<pr0ton> any tutorials… most of them i found were outdated / confusing
CaptainJet has quit []
pyr0commie has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
_nitti has quit [Ping timeout: 240 seconds]
robotmay has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
robotmay has joined #ruby
LouisGB has quit [Ping timeout: 256 seconds]
freeayu has joined #ruby
Jasko has joined #ruby
ewag has joined #ruby
robotmay has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 264 seconds]
<waxjar> pr0ton: ruby server.rb --help will give you all help options iirc
daniel_hinojosa has quit [Ping timeout: 265 seconds]
danneu has joined #ruby
<pr0ton> waxjar: sure, but those give me options for sinatra
<pr0ton> i want to modify the thin options
<waxjar> ah, well thin --help then :) sinatra passes them on automatically (see sinatra's --help)
<pr0ton> oh really?
<pr0ton> thats neat
<xybre> So heres my solution to my above question, I jsut wonder if theres an easier way: github.com/acook/find_and_map
<pr0ton> waxjar: doesn't seem to do that!
<xybre> I literally just wrote that to solve my problem.
arya has joined #ruby
<pr0ton> waxjar: it throws this - "sinatra/main.rb:15:in `<class:Application>': invalid option: --max-persistent-conns (OptionParser::InvalidOption)"
fyolnish has joined #ruby
Naeblis has joined #ruby
werdnativ has quit [Ping timeout: 244 seconds]
sailias has joined #ruby
fyolnish has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
johnmilton has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
apeiros_ has joined #ruby
<waxjar> hmm, i could swear it did that pr0ton, i think i'm confusing it with some other tool then
<pr0ton> so there must be another way to solve it
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
<pr0ton> right now i just have a simple file server.rb
<pr0ton> which just declares endpoints as it is
<pr0ton> now i'd like to convert it into a class which inherits from Sinatra::Base
<pr0ton> and then run it in config.ru?
<pr0ton> does that sound right?
dagnachew has joined #ruby
dmiller has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mathie has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Ping timeout: 255 seconds]
LouisGB has joined #ruby
lenovodroid has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Nick|laptop has joined #ruby
Xeago has joined #ruby
pyreal has quit [Read error: Connection reset by peer]
igro has joined #ruby
marr has quit [Ping timeout: 240 seconds]
leonardorb has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
mdpatrick has joined #ruby
pyreal has joined #ruby
slainer68 has quit [Remote host closed the connection]
cczona has joined #ruby
cakehero has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cczona has quit [Client Quit]
<mdpatrick> Say I have the following array… first_array = [["bill, "some other data"], ["jenny", "some other data"]] … how would I find out the position the array containing jenny within first_array?
_solomon has joined #ruby
<mdpatrick> Coming from PHP background and the conflation PHP does between what Ruby calls hash and actual array has presented a challenge for me :)
Shadow_S has quit [Quit: Textual IRC Client: www.textualapp.com]
<seanstickle> mdpatrick: first_array[0].index("jenny")
cakehero has joined #ruby
cakehero has quit [Max SendQ exceeded]
<mdpatrick> seanstickle: actually, given first_array I supplied that line returns nothing
<seanstickle> :D
<seanstickle> That's because I screwed it up.
<seanstickle> More importantly, what would you want to do that for?
cakehero has joined #ruby
<seanstickle> There are other Rubyish ways of dealing with the contents of arrays than in using indexes
<mdpatrick> I have an array like the following...
cakehero has quit [Max SendQ exceeded]
<mdpatrick> historic_market_data = [ ["Dec-1931", {"s_and_p": 0.07, "some_other_industrial_average": 0.09}], ["Dec-1932", {"s_and_p": 0.09, "some_other_industrial_average": 0.04}] ]
<mdpatrick> Right?
<seanstickle> Ok
<mdpatrick> So I want to see if I am iterating over the array and I get to dec-1945
cakehero has joined #ruby
<mdpatrick> How many years I have left until the end of the array
<seanstickle> Why?
<mdpatrick> based on the length of historic_market_data
cakehero has quit [Max SendQ exceeded]
<blazes816> use a real data structure
<blazes816> make a struct probably
kzrl has quit [Ping timeout: 260 seconds]
banjara has quit [Quit: Leaving.]
cakehero has joined #ruby
tyfighter has quit [Quit: tyfighter]
aetcore has quit [Ping timeout: 248 seconds]
<seanstickle> mdpatrick: I know I sound boorish, but I want to get to the heart of your need, and see if there is a more Rubyish way of doing it for you
centipedefarmer has quit [Remote host closed the connection]
<seanstickle> mdpatrick: whenever people bring up indexes, it's usually because they're applying PHP or Perl style knowledge to Ruby, which is usually a bad fit
<mdpatrick> seanstickle: Function takes a number of years to run a calculation on, and a specific year to begin calculation at. If use inputs 30 years, but they told the function to start in 2009 it needs to raise an exception
<mdpatrick> hehe… yup, well, that about sums it up :)
<seanstickle> Ah, interesting.
<seanstickle> You might could do something like this
jenrzzz has quit [Ping timeout: 265 seconds]
kzrl has joined #ruby
<seanstickle> historic_market_data.count{|x| x.first > user_date }
centipedefarmer has joined #ruby
Nick|laptop has quit [Ping timeout: 264 seconds]
Virunga has quit [Remote host closed the connection]
<seanstickle> And then compare that to the number of years they want to run
<mdpatrick> ahhhhhhhh
<mdpatrick> ok that sounds closer let me tinker with that
<mdpatrick> thank you :)
<seanstickle> That's sort of pseudocodish, but the logic applies
<seanstickle> Sure thing
aetcore has joined #ruby
cakehero has quit [Remote host closed the connection]
<jsilver> new node server's faster, more stable, uses less memory. please excuse the use of coffee (unless you like it) https://github.com/jsilverMDX/GlobalChat2/blob/master/Node-GChatServ/server.coffee
<waxjar> you're in #ruby jsilver :p
xnm has joined #ruby
<jsilver> waxjar: 90% of the project is ruby with 1 coffee file
blazes816 has quit [Quit: blazes816]
macabre has joined #ruby
<jsilver> here's ruby equivelent
r4um has quit [Ping timeout: 244 seconds]
<jsilver> marvel in a direct port :)
<seanstickle> That is some terrible looking coffeescript
jeffreybaird has joined #ruby
<jsilver> and it works
<jsilver> it smells like shit too, i smelled it
dantesun has quit [Quit: Leaving.]
benlieb has joined #ruby
moos3 has joined #ruby
dantesun has joined #ruby
r4um has joined #ruby
baphled has joined #ruby
fred909 has quit [Ping timeout: 264 seconds]
bigmac has joined #ruby
_mdp_ is now known as percival_
googya has joined #ruby
dantesun has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
dantesun has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Ping timeout: 252 seconds]
LouisGB has quit [Ping timeout: 250 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
<jsilver> it's strange to provide a shitton of opensource code to freenode and then just keep getting bullied again for various reasons
<jsilver> real mature
jsilver has left #ruby ["Leaving..."]
axl_ has joined #ruby
banisterfiend has joined #ruby
alexim has quit [Quit: sleep]
dantesun has quit [Ping timeout: 250 seconds]
axl_ has left #ruby [#ruby]
NiteRain has joined #ruby
dantesun has joined #ruby
dantesun has quit [Max SendQ exceeded]
mathie has joined #ruby
pu22l3r has joined #ruby
g-ram has joined #ruby
Drekonus has joined #ruby
jlast has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Remote host closed the connection]
x82_nicole has joined #ruby
pu22l3r has joined #ruby
slainer68 has joined #ruby
_nitti has joined #ruby
axl_ has joined #ruby
banjara has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
dantesun has joined #ruby
dantesun has quit [Max SendQ exceeded]
iamvery has joined #ruby
jankly has joined #ruby
c0rn has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
jenrzzz has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Ping timeout: 256 seconds]
banjara has quit [Quit: Leaving.]
ttt has joined #ruby
Drewch has quit [Ping timeout: 252 seconds]
ffranz has quit [Ping timeout: 264 seconds]
juri_over9000 has joined #ruby
juri_over90001 has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 252 seconds]
whowantstolivefo has quit [Ping timeout: 244 seconds]
yacks has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
daniel_hinojosa has quit [Ping timeout: 246 seconds]
daniel_hinojosa has joined #ruby
mikepack has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
generalissimo has joined #ruby
Drewch has joined #ruby
jrist is now known as jrist-afk
bel3atar has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
Guest19638 has quit [Ping timeout: 248 seconds]
jarred_ has quit [Quit: jarred_]
Drewch has quit [Ping timeout: 265 seconds]
freakazoid0223 has joined #ruby
Nisstyre-laptop has joined #ruby
froy has quit [Quit: kablam!]
sepp2k has joined #ruby
Guest38266 has quit [Read error: Connection reset by peer]
viktor has joined #ruby
babonk has quit [Quit: babonk]
viktor is now known as Guest30365
moos3 has quit [Quit: Computer has gone to sleep.]
rjmt___ has quit [Ping timeout: 246 seconds]
dantesun has joined #ruby
banjara has joined #ruby
Tearan has joined #ruby
nari has joined #ruby
dagnachew has quit [Quit: Leaving]
ffranz has joined #ruby
aharris6 has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
RickSchmitty has quit [Ping timeout: 252 seconds]
Aiur has quit [Quit: Computer has gone to sleep.]
Nick|laptop has joined #ruby
banjara has quit [Quit: Leaving.]
ryanlecompte has joined #ruby
forced_request has joined #ruby
tr4656 has joined #ruby
ffranz has quit [Quit: Leaving]
havenn has quit [Remote host closed the connection]
mjolk has joined #ruby
mathie has quit [Ping timeout: 244 seconds]
aharris6 has quit [Remote host closed the connection]
leonardorb has joined #ruby
baphled has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
daniel_hinojosa has quit [Ping timeout: 252 seconds]
xnm has quit [Ping timeout: 240 seconds]
lenovodroid has quit [Ping timeout: 246 seconds]
osvico has joined #ruby
macmartine has joined #ruby
mrsolo has quit [Quit: Leaving]
jrajav has joined #ruby
leonardorb has quit [Ping timeout: 246 seconds]
io_syl has quit [Ping timeout: 264 seconds]
khimera has joined #ruby
krz has joined #ruby
aharris6 has joined #ruby
xnm has joined #ruby
scruple has joined #ruby
doritostains has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
maletor has quit [Quit: Computer has gone to sleep.]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
khimera has quit [Quit: khimera]
GoGoGarrett has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
rakl has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
SuperrMann has quit [Quit: Computer has gone to sleep.]
daniel_hinojosa has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
centipedefarmer has quit [Remote host closed the connection]
voodoofish430 has quit [Quit: Leaving.]
jeffreybaird has quit [Quit: jeffreybaird]
jenrzzz has joined #ruby
khimera has joined #ruby
vasile has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
daniel_hinojosa has quit [Ping timeout: 264 seconds]
_nitti has joined #ruby
xpen has joined #ruby
sn0wb1rd has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
jeffreybaird has joined #ruby
manizzle has quit [Ping timeout: 256 seconds]
headius has quit [Quit: headius]
viktor_ has joined #ruby
mneorr has quit [Remote host closed the connection]
Hanmac has joined #ruby
mneorr has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
Guest30365 has quit [Ping timeout: 245 seconds]
Hanmac1 has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
zastern has joined #ruby
_alejandro has joined #ruby
fyolnish has joined #ruby
baphled has quit [Ping timeout: 250 seconds]
rakl has quit [Quit: sleeping]
Seich is now known as seich
khimera has quit [Quit: khimera]
maletor has joined #ruby
Ruler_Of_Heaven_ has joined #ruby
pipopopo has quit [Ping timeout: 264 seconds]
krawchyk has quit [Remote host closed the connection]
aharris6 has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
aharris6 has joined #ruby
pu22l3r_ has joined #ruby
zastern has quit [Remote host closed the connection]
zastern has joined #ruby
ewag has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 264 seconds]
xyzodiac has quit [Ping timeout: 252 seconds]
jsilver has joined #ruby
zastern has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
jenrzzz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
aruntomar has joined #ruby
daniel_hinojosa has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
<krz> brainfart today. how would i return 0.09 from 0.09712230215827339
xnm has quit [Ping timeout: 252 seconds]
dmiller has quit [Remote host closed the connection]
<jrajav> krz: You want to truncate it, not round?
medik has quit [Quit: medik has no reason]
adeponte has joined #ruby
mathie has joined #ruby
Mnkras-Laptop has joined #ruby
Mnkras-Laptop has joined #ruby
Mnkras-Laptop has quit [Changing host]
twopoint718 has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<seanstickle> krz: (0.09712230215827339 * 100).to_i.to_f/100
<seanstickle> Note: may cause weirdness due to floating point numbers
<seanstickle> Do you just need to print this?
brianpWins has joined #ruby
pkrnj has joined #ruby
mathie has quit [Ping timeout: 244 seconds]
pkrnj has quit [Client Quit]
mascool has quit [Read error: Operation timed out]
gridaphobe has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
beachandbytes has joined #ruby
headius has joined #ruby
statarb3 has quit [Remote host closed the connection]
aharris6 has quit [Remote host closed the connection]
Choobie has joined #ruby
arya has quit [Ping timeout: 265 seconds]
Naeblis has quit [Quit: Leaving]
arya has joined #ruby
rakl has joined #ruby
aharris6 has joined #ruby
havenn has joined #ruby
Drekonus has quit [Quit: Leaving.]
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
L1 has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
khimera has joined #ruby
headius has quit [Quit: headius]
vasile has quit [Read error: Operation timed out]
khimera has quit [Client Quit]
khimera has joined #ruby
_nitti has joined #ruby
havenn has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 240 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
rohit has joined #ruby
axl_ has quit [Quit: axl_]
Zolrath has quit [Ping timeout: 252 seconds]
GitNick has joined #ruby
ryanf has quit [Quit: leaving]
slainer68 has joined #ruby
td123 has joined #ruby
pkrnj has joined #ruby
<td123> I am trying to use the ruby mongodb driver to delete a specific record, and it seems like I should be deleting something, but in reality, it is left in the database when I query for it again: https://gist.github.com/4221668
khimera has quit [Quit: khimera]
slainer68 has quit [Ping timeout: 265 seconds]
macmartine has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
rakl has quit [Quit: gone]
cyong has joined #ruby
arya has quit [Ping timeout: 265 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
kil0byte has joined #ruby
mahmoudimus has joined #ruby
cableray has joined #ruby
eroc has joined #ruby
froy has joined #ruby
love_color_text has quit [Remote host closed the connection]
arya has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
Nick|laptop has quit [Ping timeout: 260 seconds]
g-ram has joined #ruby
danneu has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
rjmt___ has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
ElderFain has quit [Ping timeout: 264 seconds]
uris has quit [Quit: Leaving]
macmartine has quit [Quit: Computer has gone to sleep.]
mathie has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<td123> fixed it
<td123> 1, was using really outdated nonofficial lib
<td123> 2, needed to put BSON::ObjectId around the id
radic has quit [Disconnected by services]
radic_ has joined #ruby
seanstickle has quit [Quit: seanstickle]
x82_nicole has quit [Quit: Computer has gone to sleep.]
Tref_ has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
mathie has quit [Ping timeout: 264 seconds]
davidcelis has joined #ruby
<jrajav> *ding* Next!
osvico has quit [Ping timeout: 264 seconds]
joofsh has quit [Remote host closed the connection]
GitNick has quit [Quit: Leaving...]
Goles has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
skaczor has quit [Ping timeout: 265 seconds]
arya has quit [Ping timeout: 260 seconds]
love_color_text has joined #ruby
arya has joined #ruby
yshh has joined #ruby
dmiller has quit [Remote host closed the connection]
zaki has quit [Read error: Operation timed out]
KindTwo has quit [Ping timeout: 255 seconds]
arya has quit [Ping timeout: 250 seconds]
banjara has joined #ruby
jlast has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
arya has joined #ruby
_nitti has joined #ruby
jalcine has quit [Ping timeout: 245 seconds]
icole has quit [Remote host closed the connection]
Juul has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
joeycarmello has joined #ruby
dcope is now known as neckbead
neckbead is now known as neckbeard
twopoint718 has quit [Ping timeout: 246 seconds]
a_a_g has joined #ruby
yshh has quit [Remote host closed the connection]
slainer68 has joined #ruby
nwertman has quit [Quit: leaving]
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
drago757 has joined #ruby
maletor has joined #ruby
mahmoudimus has quit [Ping timeout: 256 seconds]
zaki has joined #ruby
ner0x has joined #ruby
chanced has joined #ruby
ananthakumaran has joined #ruby
headius has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Remote host closed the connection]
_JamieD__ has joined #ruby
Goles has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
ewag has joined #ruby
chanced has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
joshman_ has quit [Quit: Computer has gone to sleep.]
_JamieD_ has quit [Ping timeout: 264 seconds]
_JamieD__ is now known as _JamieD_
artm has joined #ruby
browndawg has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
googya has quit [Quit: Leaving.]
neckbeard is now known as dcope
googya has joined #ruby
Slivka has joined #ruby
dmiller has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
td123 has left #ruby [#ruby]
Slivka has joined #ruby
Solnse has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
macabre has quit [Remote host closed the connection]
BoomCow has joined #ruby
mikepack has joined #ruby
a_a_g has quit [Quit: Leaving.]
xnm has joined #ruby
DrShoggoth has joined #ruby
keyvan has joined #ruby
gridaphobe has joined #ruby
mikepack has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
love_color_text has quit [Ping timeout: 264 seconds]
jsilver has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
Iszak has quit [Read error: Operation timed out]
xnm has quit [Ping timeout: 246 seconds]
Slivka has quit [Read error: Connection reset by peer]
mathie has joined #ruby
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
dmiller has quit [Remote host closed the connection]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
headius has quit [Quit: headius]
ewag has quit [Ping timeout: 255 seconds]
Iszak has joined #ruby
KindTwo has joined #ruby
nga4 has quit [Ping timeout: 260 seconds]
jalcine has joined #ruby
mathie has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
burgestrand has quit [Quit: Leaving.]
chimkan has joined #ruby
adeponte has quit [Remote host closed the connection]
Lataril has joined #ruby
Lataril has quit [Client Quit]
ananthakumaran has quit [Quit: Leaving.]
jeremywrowe has joined #ruby
jsilver has joined #ruby
drago757 has quit [Quit: drago757]
arya has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
rezzack has quit [Quit: Leaving.]
Mnkras-Laptop has quit [Quit: Mnkras-Laptop]
arya has joined #ruby
bpfh has quit [Remote host closed the connection]
_nitti has joined #ruby
rakunHo has joined #ruby
JohnBat26|2 has joined #ruby
hsbt_away is now known as hsbt
aaronmacy has quit [Quit: Leaving.]
kil0byte_ has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
kil0byte has quit [Ping timeout: 248 seconds]
jx-w_ has joined #ruby
TomRone has quit [Ping timeout: 264 seconds]
redgetan has joined #ruby
kil0byte has joined #ruby
jlast has joined #ruby
ananthakumaran has joined #ruby
slainer68 has joined #ruby
love_color_text has joined #ruby
kil0byte_ has quit [Ping timeout: 252 seconds]
chimkan has quit [Quit: chimkan]
jackdanger has joined #ruby
TomRone has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
love_col_ has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
epwhorl has joined #ruby
huoxito has quit [Quit: Leaving]
aaronmacy has joined #ruby
keyvan has quit [Ping timeout: 255 seconds]
slainer68 has quit [Ping timeout: 264 seconds]
cableray has quit [Ping timeout: 265 seconds]
love_color_text has quit [Ping timeout: 265 seconds]
a_a_g has joined #ruby
ner0x has quit [Remote host closed the connection]
aruntomar has quit [Ping timeout: 244 seconds]
jeremywrowe has left #ruby [#ruby]
tjbiddle has quit [Quit: tjbiddle]
adeponte has joined #ruby
Zolrath has joined #ruby
zodiak has quit [Ping timeout: 245 seconds]
aruntomar has joined #ruby
joeycarmello has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
andrewhl has quit [Remote host closed the connection]
ewag has joined #ruby
eroc has quit [Quit: eroc]
xpen_ has joined #ruby
pcarrier has quit []
freeayu has joined #ruby
xpen__ has joined #ruby
joeycarmello has quit [Ping timeout: 246 seconds]
xpen has quit [Ping timeout: 246 seconds]
cantonic_ has joined #ruby
xpen_ has quit [Ping timeout: 246 seconds]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
pr0ton has quit [Quit: pr0ton]
LucidDreamZzZ has joined #ruby
kil0byte_ has joined #ruby
browndawg has joined #ruby
adeponte has quit [Remote host closed the connection]
atno has joined #ruby
r4um has quit [Quit: leaving]
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
zodiak has joined #ruby
beachandbytes has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
mathie has joined #ruby
kil0byte has quit [Ping timeout: 244 seconds]
redgetan has quit [Quit: Leaving]
DaZ has quit [Read error: Connection reset by peer]
margle has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
x82_nicole has joined #ruby
mathie has quit [Ping timeout: 252 seconds]
areil has joined #ruby
LucidDreamZzZ has joined #ruby
benlieb has quit [Quit: benlieb]
finges has joined #ruby
tagrudev has joined #ruby
finges has quit [Client Quit]
DaZ has joined #ruby
atno has quit [Read error: Connection reset by peer]
atno has joined #ruby
Choobie has quit [Ping timeout: 244 seconds]
pu22l3r_ has quit [Remote host closed the connection]
rohit has quit [Quit: Leaving]
tommyvyo has joined #ruby
sepp2k has quit [Remote host closed the connection]
c0rn has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 256 seconds]
atno has quit [Quit: Leaving]
postmodern has joined #ruby
iamjarvo has quit [Quit: Leaving.]
x82_nicole has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
_nitti has joined #ruby
BoomCow has joined #ruby
maletor has quit [Ping timeout: 255 seconds]
Choobie has joined #ruby
Choobie has joined #ruby
Choobie has quit [Changing host]
arya_ has joined #ruby
x82_nicole has joined #ruby
adeponte has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
pen has quit [Remote host closed the connection]
jx-w_ has quit [Quit: Leaving]
_nitti has quit [Ping timeout: 246 seconds]
x82_nicole has quit [Client Quit]
bronson has joined #ruby
cableray has joined #ruby
slainer68 has joined #ruby
matrixise has quit [Read error: Operation timed out]
browndawg has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 240 seconds]
matrixise has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
BoomCow has quit [Quit: This computer has gone to sleep]
babonk has quit [Quit: babonk]
viktor_ has quit [Ping timeout: 245 seconds]
generalissimo has quit [Remote host closed the connection]
browndawg has joined #ruby
cj3kim has joined #ruby
maesbn has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
hemanth_ has joined #ruby
<hemanth_> what's wrong? http://codepad.org/b4nWqi7s
<hemanth_> i'm trying to extend InputElement
<hemanth_> and the Watir gem has InputElement class in watir module
vlad_starkov has joined #ruby
mneorr has quit [Remote host closed the connection]
jsilver has quit [Remote host closed the connection]
mneorr has joined #ruby
scruple has quit [Ping timeout: 252 seconds]
zommi has joined #ruby
jsilver has joined #ruby
BoomCow has joined #ruby
jsilver has quit [Remote host closed the connection]
ewag has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
c0rn has quit []
haxrbyte_ has joined #ruby
mathie has joined #ruby
eldariof has joined #ruby
c0rn has joined #ruby
workmad3 has joined #ruby
leslie_ has joined #ruby
aharris6 has quit [Remote host closed the connection]
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
viktor has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
leslie_ has left #ruby [#ruby]
viktor is now known as Guest95615
mjolk has quit [Quit: returning some videotapes]
tobinharris has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
mathie has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
banjara has quit [Quit: Leaving.]
robbyoconnor has joined #ruby
Elhu has joined #ruby
c0rn has quit [Ping timeout: 248 seconds]
gridaphobe has quit [Ping timeout: 246 seconds]
Guest95615 is now known as coliflor
tvw has joined #ruby
c0rn has joined #ruby
aaronmacy has quit [Quit: Leaving.]
locriani has quit [Read error: Operation timed out]
elico has joined #ruby
banjara has joined #ruby
aganov has joined #ruby
Juul has quit [Ping timeout: 252 seconds]
pen has joined #ruby
locriani has joined #ruby
jds has joined #ruby
hamed_r has joined #ruby
Proshot has joined #ruby
xnm has joined #ruby
coliflor has quit [Ping timeout: 245 seconds]
pdtpatrick has quit [Remote host closed the connection]
timonv has joined #ruby
buibex has joined #ruby
Morkel has joined #ruby
jds has quit [Ping timeout: 256 seconds]
bronson has quit [Quit: bronson]
piotr_ has joined #ruby
_nitti has joined #ruby
Proshot has quit [Quit: Leaving]
Proshot has joined #ruby
cauffe has joined #ruby
rippa has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g1 has joined #ruby
banjara has quit [Quit: Leaving.]
yshh has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
<cauffe> Anyone here use Ruby with Cocos2D?
charliesome has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
matrixise has quit [Ping timeout: 265 seconds]
cauffe has quit [Client Quit]
Morkel has quit [Read error: Connection reset by peer]
Morkel_ has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
aaronmacy has joined #ruby
slainer68 has joined #ruby
pen has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 246 seconds]
iaj has quit [Quit: leaving]
zigomir has joined #ruby
dr_bob has joined #ruby
slainer68 has quit [Ping timeout: 265 seconds]
fire_wall has quit [Ping timeout: 252 seconds]
rakl has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lenovodroid has joined #ruby
foohey has joined #ruby
filipe has joined #ruby
rhys has quit [Ping timeout: 246 seconds]
virtuose has quit [Read error: No route to host]
lampe2 has joined #ruby
stnly has quit [Ping timeout: 244 seconds]
iaj has joined #ruby
rippa has quit [Ping timeout: 264 seconds]
tvw has quit [Remote host closed the connection]
<dawkirst> Hello. Stupid question (really new to Ruby): I'm including a few gems, and then I want to include a class in a separate file. The application isn't finding that class. I'm assuming this has something to do with the load path?
jds has joined #ruby
k610 has joined #ruby
BadLarry has quit [Ping timeout: 246 seconds]
brandon__ has joined #ruby
virtuose has joined #ruby
<dawkirst> nm, sorted with the require_relative
<charliesome> you should probably avoid require_relative
jsilver has joined #ruby
<charliesome> instead, put code code in a lib directory and add that to the load path
brandon_ has quit [Ping timeout: 260 seconds]
hsbt is now known as hsbt_away
BadLarry has joined #ruby
timonv has quit [Remote host closed the connection]
segv- has joined #ruby
verto is now known as verto|off
stnly has joined #ruby
fire_wall has joined #ruby
Shamgar has quit [*.net *.split]
jbw has quit [*.net *.split]
alta has quit [*.net *.split]
voodoofish has quit [*.net *.split]
Bosma has quit [*.net *.split]
dawkirst2 has quit [*.net *.split]
wereHamster has quit [*.net *.split]
Yarou has quit [*.net *.split]
Guedes has quit [*.net *.split]
maxmanders has quit [*.net *.split]
mnaser has quit [*.net *.split]
asuka has quit [*.net *.split]
xsdg has quit [*.net *.split]
Derander has quit [*.net *.split]
ionte has quit [*.net *.split]
kandinski has quit [*.net *.split]
hackeron has quit [*.net *.split]
shadewin1 has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
tessi has quit [*.net *.split]
RailWolf has quit [*.net *.split]
matled has quit [*.net *.split]
witchdoc has quit [*.net *.split]
klaas has quit [*.net *.split]
xea has quit [*.net *.split]
cout has quit [*.net *.split]
six has quit [*.net *.split]
phreax has quit [*.net *.split]
goraxe has quit [Write error: Connection reset by peer]
witchdoc has joined #ruby
witchdoc has quit [Changing host]
witchdoc has joined #ruby
wereHamster has joined #ruby
xsdg has joined #ruby
cout has joined #ruby
matled has joined #ruby
kandinski has joined #ruby
sixteneighty has joined #ruby
Shamgar has joined #ruby
asuka has joined #ruby
xea has joined #ruby
phreax has joined #ruby
ionte has joined #ruby
Bosma has joined #ruby
hackeron has joined #ruby
six has joined #ruby
maxmanders has joined #ruby
Yarou has joined #ruby
shadewind has joined #ruby
Yarou has quit [Changing host]
Yarou has joined #ruby
alta has joined #ruby
Guedes has joined #ruby
voodoofish has joined #ruby
jbw has joined #ruby
RailWolf has joined #ruby
rhys has joined #ruby
dawkirst2 has joined #ruby
goraxe has joined #ruby
klaas has joined #ruby
mnaser has joined #ruby
tessi has joined #ruby
mathie has joined #ruby
Derander has joined #ruby
undersc0re97 has joined #ruby
jimeh has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
baphled has joined #ruby
margle has joined #ruby
rellin2 has quit [Ping timeout: 260 seconds]
tonini has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
pcarrier has joined #ruby
buibex has quit [Remote host closed the connection]
jackbrownhf has quit [Quit: Sto andando via]
nemesit has joined #ruby
Ruler_Of_Heaven_ is now known as pipopopo
sspiff has joined #ruby
hoelzro|away is now known as hoelzro
arturaz has joined #ruby
epwhorl has quit [Quit: Leaving]
fire_wall has quit [Ping timeout: 260 seconds]
cardoni has joined #ruby
hotovson has joined #ruby
Hanmac_ has joined #ruby
apeiros_ has joined #ruby
xnm has quit [Ping timeout: 248 seconds]
c0rn has quit []
eldariof has quit [Ping timeout: 246 seconds]
beachandbytes has joined #ruby
tvw has joined #ruby
Virunga has joined #ruby
nat2610 has joined #ruby
ryanf has joined #ruby
fire_wall has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
Phoop has joined #ruby
zz_chrismcg is now known as chrismcg
jwang has joined #ruby
robustus has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
Elhu has joined #ruby
beachandbytes has quit [Ping timeout: 265 seconds]
_nitti has joined #ruby
baphled has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
cardoni has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
kil0byte has joined #ruby
klune has joined #ruby
_nitti has quit [Ping timeout: 248 seconds]
cableray has quit [Quit: cableray]
lolcathost has joined #ruby
igro has joined #ruby
straind has quit [Ping timeout: 248 seconds]
matrixise has joined #ruby
r0bby has joined #ruby
bigmac has joined #ruby
nat2610 has quit [Quit: Leaving.]
jds has quit [Remote host closed the connection]
eldariof has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 255 seconds]
cableray has joined #ruby
tvw has quit [Read error: Connection reset by peer]
r0bby has quit [Read error: Connection reset by peer]
wereHamster has quit [Changing host]
wereHamster has joined #ruby
r0bby has joined #ruby
odyssey4me has joined #ruby
BiHi has joined #ruby
greenarrow has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
greenarrow has joined #ruby
nomenkun has joined #ruby
nomenkun_ has joined #ruby
slainer68 has joined #ruby
lolmaus has joined #ruby
fyolnish has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
robotmay has joined #ruby
mguy has quit [Ping timeout: 244 seconds]
r0bby_ has joined #ruby
marr has joined #ruby
wildcard0 has quit [Ping timeout: 260 seconds]
adambeynon has joined #ruby
leonardorb has joined #ruby
r0bby has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
mguy has joined #ruby
pcarrier has quit []
Vainoharhainen has joined #ruby
lenovodroid has quit [Ping timeout: 244 seconds]
LouisGB has joined #ruby
jds has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby
jojosiao has joined #ruby
dekz has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 246 seconds]
moeSeth has quit [Remote host closed the connection]
cableray has quit [Quit: cableray]
Zai00 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
nilg has quit [Ping timeout: 260 seconds]
Rix has quit [Ping timeout: 245 seconds]
vjt has quit [Ping timeout: 264 seconds]
jds has quit [Ping timeout: 255 seconds]
emergion has joined #ruby
bel3atar has quit [Ping timeout: 246 seconds]
_JamieD_ has quit [Quit: _JamieD_]
margle has quit [Quit: Computer has gone to sleep.]
robotmay has quit [Remote host closed the connection]
Rix has joined #ruby
_nitti has joined #ruby
elico has quit [Quit: elico]
yaroslav has joined #ruby
workmad3 has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
browndawg has quit [Ping timeout: 246 seconds]
gyre007 has joined #ruby
browndawg has joined #ruby
ircmouser has joined #ruby
ExxKA has joined #ruby
bel3atar has joined #ruby
wallerdev has quit [Quit: wallerdev]
hoelzro is now known as hoelzro|away
elaptics`away is now known as elaptics
adeponte has quit [Remote host closed the connection]
F1skr has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
vjt has joined #ruby
klune has quit [Ping timeout: 245 seconds]
cdt has joined #ruby
cdt has quit [Read error: Connection reset by peer]
leonardo_ has joined #ruby
timmow has joined #ruby
cdt has joined #ruby
igro has joined #ruby
Synthead has quit [Write error: Broken pipe]
pcarrier has joined #ruby
leonardorb has quit [Ping timeout: 246 seconds]
yaroslav has quit [Quit: yaroslav]
pcarrier has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
pcarrier has joined #ruby
dekz has joined #ruby
moeSeth has joined #ruby
ikaros has joined #ruby
<shevy> yeah
<shevy> interesting that people don't love require_relative that much
maasha has joined #ruby
<maasha> hi
<Hanmac_> imo they are only to lazy to change ther own code
hoelzro|away is now known as hoelzro
<maasha> How can I add an extend call to some Class' initialize method?
krz has quit [Quit: krz]
ryanf has quit [Quit: leaving]
<Hanmac_> show us what you want to do
Synthead has joined #ruby
<maasha> I want to add a line self.extend(Foo) to the initialize method for a Class that I otherwise dont want to mess with.
tk___ has joined #ruby
<maasha> I can open the class and redefine the initialize method, but then I risk breaking it.
<maasha> I think
<JonnieCache> create a module with its own initialize method and mix that module into your class
<apeiros_> the module's initialize will not be invoked
<JonnieCache> in your new module's initialize method, call super and this will call the previous initialize
<JonnieCache> well something like that will work surely?
<apeiros_> the module is considered the parentclass
<JonnieCache> hmmm
<apeiros_> so its initialize is "behind" the class' own initialize
<apeiros_> you can "savely" redefine initialize, like so:
<Hanmac_> you could use "super if defined?(super)"
mafolz has joined #ruby
<JonnieCache> does super work like that in the context of a reopened class?
<apeiros_> alias initialize_without_FEATURE initialize; def initialize_with_FEATURE(*args, &block); initialize_without_FEATURE(*args, &block); do_your_stuff; end; alias initialize initialize_with_FEATURE
<apeiros_> Hanmac_: missing the point
<maasha> Well, I am exploring the options to resolve this issue: http://www.ruby-forum.com/topic/4408749
<JonnieCache> i was hoping to avoid recommending alias_method_chain
<apeiros_> Hanmac_: you'd still have to modify the original class' initialize
aaronmacy has quit [Quit: Leaving.]
<maasha> Surely there must be a real simple way.
<apeiros_> again, an included module's method comes *after* the class' own methods
<Hanmac_> if A is a module included in B than the method chain is [B,A,Object] so defining initialize in A does not affect anything when B does not call super ...
schaary has joined #ruby
<apeiros_> since the module will be a "superclass" of the class which includes the module
aaronmacy has joined #ruby
<apeiros_> Hanmac_: correct
tonini has quit [Remote host closed the connection]
nkts has joined #ruby
tobinharris has quit [Quit: tobinharris]
browndawg1 has joined #ruby
banjara has quit [Quit: Leaving.]
browndawg has quit [Ping timeout: 246 seconds]
aaronmacy has quit [Client Quit]
aruntomar has left #ruby [#ruby]
<workmad3> and all of this just adds to the 'prefer composition over inheritance' arguments :)
* maasha is confused
hotovson has quit [Remote host closed the connection]
<Hanmac_> maasha or like this: http://pastie.org/5488147
<workmad3> maasha: it's a whole set of implicit behaviour and rules to do with inheritance (with module mixin being a form of inheritance), which get convoluted when you start dealing with overrides and further convoluted when you're dealing with overriding 'hook' methods
<maasha> Hanmac_: yes, that is nice. I was just trying to avoid extending each instance of Seq.
<workmad3> maasha: and the simplest way to avoid such issues is frequently to restructure your code so that you're not (mis-)using inheritance
<maasha> workmad3: yeah, I think its confusing. I woud like better organization if possible.
<maasha> *would
matthewrobbins has joined #ruby
<workmad3> maasha: grab the book 'Practical Object Oriented Design in Ruby'
<workmad3> maasha: that should at the very least give you food for thought ;()
<workmad3> *;)
<maasha> workmad3: so my current organization is totally fubar, or there is room for improvement after digesting advanced literature?
<workmad3> maasha: there's always room for improvement
hamed_r has quit [Ping timeout: 264 seconds]
<workmad3> maasha: part of being practical is recognising when it's worth the extra investment
wildcard0 has joined #ruby
<maasha> workmad3: thats why I am asking! :o)
Solnse2 has joined #ruby
xlogic has joined #ruby
slainer6_ has joined #ruby
sepp2k has quit [Quit: Leaving.]
<workmad3> maasha: and that's why I'm pointing you at that book... it explains various strategies, styles and approaches in a much better way than IRC can, IMO
Solnse has quit [Ping timeout: 245 seconds]
slainer68 has quit [Read error: Connection reset by peer]
<Hanmac_> sometimes i dont care about "strategies" because sometimes i know it better :P
<workmad3> it's basically down to code design, which requires a fair bit of context in order to make informed decisions... and explaining the context takes space and time
slainer68 has joined #ruby
<maasha> sure. right thanks.
<workmad3> Hanmac_: sure, and that's part of being practical too :)
_nitti has joined #ruby
wargasm1 has quit [Ping timeout: 240 seconds]
slainer6_ has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
<dawkirst> Is FileUtils.mv supposed to overwrite files?
mafolz has quit [Read error: Connection reset by peer]
fire_wall is now known as hack
_nitti has quit [Ping timeout: 240 seconds]
wermel has joined #ruby
lkba has joined #ruby
RickSchmitty has joined #ruby
mafolz has joined #ruby
timonv has joined #ruby
jenrzzz has joined #ruby
adeponte has joined #ruby
adeponte has quit [Remote host closed the connection]
matthewrobbins has quit [Ping timeout: 248 seconds]
matthewrobbins has joined #ruby
matthewrobbins has quit [Client Quit]
matthewrobbins has joined #ruby
tvw has joined #ruby
Xeago has joined #ruby
odyssey4me has quit [Read error: Connection reset by peer]
odyssey4me has joined #ruby
hack has quit [Read error: Operation timed out]
wildcard0 has quit [Ping timeout: 252 seconds]
nerd has joined #ruby
nerd is now known as hack
larissa has joined #ruby
ddd has joined #ruby
buibex has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
Spaceboy has quit [Remote host closed the connection]
Goles has joined #ruby
sepp2k has joined #ruby
nomenkun has joined #ruby
wildcard0 has joined #ruby
xpen__ has quit [Remote host closed the connection]
Averna has joined #ruby
segv- has quit [Quit: segv-]
buibex has quit [Read error: Connection reset by peer]
cmarques has joined #ruby
kil0byte_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
Naeblis has joined #ruby
<shevy> dawkirst hmm lemme test
kil0byte has quit [Ping timeout: 240 seconds]
<shevy> dawkirst seems to be the case that it will silently overwrite
banisterfiend has joined #ruby
<shevy> "If file and dest exist on the different disk partition, the file is copied then the original file is removed."
<dawkirst> shevy, thanks
hamed_r has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
nomenkun has joined #ruby
gyre007 has joined #ruby
Phoop has quit [Quit: Phoop]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
slainer68 has quit [Remote host closed the connection]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
<shevy> :)
<shevy> FileUtils has strange options...
rohit has joined #ruby
grzywacz has joined #ruby
zeppelin has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nomenkun has quit [Read error: Connection reset by peer]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
nomenkun has joined #ruby
Phoop has joined #ruby
juri_over9000 has left #ruby [#ruby]
undersc0re97 has quit [Ping timeout: 265 seconds]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
undersc0re97 has joined #ruby
_nitti has joined #ruby
rohit has quit [Quit: Leaving]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
_nitti has quit [Ping timeout: 264 seconds]
igro has quit [Quit: Computer has gone to sleep.]
odyssey4me has quit [Read error: Connection reset by peer]
odyssey4me has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
includex has joined #ruby
<Naeblis> Is there something like ipython for Ruby?
<Xeago> irb tho you should use pry
<Xeago> ruby comes with irb
<sepp2k> Naeblis: What does ipython offer that plain python does not (or more to the point what does it offer that IRB does not)?
<Naeblis> yes, I'm familiar with irb. I'd like tab-completion and syntax highlight anyway.
<sepp2k> Naeblis: irb has tab completion
mafolz has quit [Ping timeout: 265 seconds]
<kapowaz> anybody here used Guard with SASS / Bourbon? I'm using it in a project and Guard raises this exception when I save the application.css.scss file: Sass::SyntaxError: File to import not found or unreadable: bourbon
<Naeblis> sepp2k, well, ipython's main advantage is the notebook, tbh.
<Naeblis> how can I get tab-completion?
<sepp2k> What's that?
<Naeblis> interactive in-browser python
lushious has quit [Remote host closed the connection]
Goles has quit [Remote host closed the connection]
samphippen has joined #ruby
nkts has quit [Remote host closed the connection]
<sepp2k> Naeblis: Put require 'irb/completion' into your .irbrc
zigomir has quit [Quit: zigomir]
Solnse2 has quit [Ping timeout: 260 seconds]
<Naeblis> thanks
mafolz has joined #ruby
<Naeblis> also, just found wirble
<Xeago> wirble is nice, also irb_rocket
<Xeago> looks cool and saves vertical space
jackbrownhf has quit [Ping timeout: 264 seconds]
BiHi has quit [Quit: Computer has gone to sleep]
hemanth_ has quit [Ping timeout: 264 seconds]
BiHi has joined #ruby
BiHi has quit [Client Quit]
fcoury has joined #ruby
banisterfiend has quit [Remote host closed the connection]
googya has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
bel3atar has quit [Ping timeout: 246 seconds]
rakunHo has quit [Remote host closed the connection]
matthewrobbins has quit [Quit: matthewrobbins]
odyssey4me has quit [Read error: Connection reset by peer]
odyssey4me has joined #ruby
gbchaosmaster has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
slainer68 has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
<banisterfiend> Naeblis: if u want other ipython-like features aside from tab completion (like source/doc browsing and debugging features) then check out pry: http://pryrepl.org
<Naeblis> banisterfiend, awesome!
hotovson has joined #ruby
grauwoelfchen has joined #ruby
browndawg1 has left #ruby [#ruby]
kil0byte has joined #ruby
bel3atar has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Hanmac_> that is the only link you should klick from banister, you should avoid the others
igro has joined #ruby
timonv has quit [Remote host closed the connection]
niklasb has joined #ruby
grauwoelfchen has quit [Quit: grauwoelfchen]
ddd has quit [Quit: rebooting to fix display. damned iStats]
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
berserkr has joined #ruby
<falkenbt> hi
<falkenbt> how would I do something like: a=b <- if b is set otherwise a=c in the best way?
timonv has joined #ruby
<Xeago> a = b || c
<Xeago> ?
<falkenbt> does not work if b is not set
<Xeago> you mean not declared?
<falkenbt> yes
<Xeago> or defined?
<falkenbt> both :)
<Xeago> a = c; a = b if defined?(b) or something
<Xeago> or a ternary if
ddd has joined #ruby
<Xeago> a = defined?(b)?b:c
Goles has joined #ruby
<falkenbt> thanks. could you explain what the ?b:c does?
<Xeago> ?: is an inline if, or ternary if if I remember correctly
<Xeago> conditional ? true : false
fyolnish has joined #ruby
ewag has joined #ruby
osvico has joined #ruby
margle has joined #ruby
paolooo has joined #ruby
<Hanmac_> PS: you cant trust defined?(localvariable)
samphippen has quit [Quit: Computer has gone to sleep.]
<falkenbt> it is a global variable
ffranz has joined #ruby
frihd has joined #ruby
<k610> how should i set a configuration file (username & password) for my gem ?
vlad_starkov has joined #ruby
<Hanmac_> global variables are more worse
luminous has joined #ruby
jds has joined #ruby
<Hanmac_> falkenbt global variables are set to nil when used undefined, so you should not have a problem
banisterfiend has quit [Ping timeout: 252 seconds]
<falkenbt> hmm..I have to find out what this thing does. An object gets instantiated through a file. I want to use a default value for "a" unless there is something else set in the file.
shiin has joined #ruby
jds has quit [Ping timeout: 248 seconds]
moos3 has joined #ruby
_nitti has joined #ruby
tobinharris has joined #ruby
zigomir has joined #ruby
nari has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
<Hanmac_> then you should not get problems because there should no value "undefined", they should be nil
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
ltsstar has joined #ruby
rakl has quit [Quit: sleeping]
s1n4 has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
samphippen has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
pcarrier has quit []
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
r0bby_ has quit [Ping timeout: 246 seconds]
haxrbyte has quit [Ping timeout: 244 seconds]
niklasb has quit [Ping timeout: 260 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
beardyjay has joined #ruby
mark_locklear has joined #ruby
pavilionXP has joined #ruby
BiHi has joined #ruby
kil0byte_ has joined #ruby
ewag has quit [Ping timeout: 244 seconds]
kil0byte has quit [Ping timeout: 260 seconds]
ttt has quit [Remote host closed the connection]
mikepack has joined #ruby
thomasfedb has quit [Quit: ZNC - http://znc.sourceforge.net]
thomasfedb has joined #ruby
mmitchell has joined #ruby
vasile has joined #ruby
Goles has quit [Ping timeout: 246 seconds]
jrist-afk is now known as jrist
pyreal has quit [Quit: pyreal]
blaxter has joined #ruby
Guedes has quit [Ping timeout: 240 seconds]
iamvery has quit [Remote host closed the connection]
iamvery has joined #ruby
iamvery has quit [Remote host closed the connection]
Goles has joined #ruby
Takehiro has joined #ruby
hack is now known as video
ChronocityLC has joined #ruby
geekbri has joined #ruby
osvico has quit [Ping timeout: 255 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
swex has joined #ruby
tommyvyo has joined #ruby
mathie has quit [Quit: Sleeping...]
niklasb has joined #ruby
swex_ has quit [Ping timeout: 240 seconds]
video has quit [Quit: WeeChat 0.3.9.2]
nerd has joined #ruby
ChronocityLC has quit [Ping timeout: 256 seconds]
babinho has joined #ruby
Iszak has joined #ruby
Guedes has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
k611 has joined #ruby
hsbt_away is now known as hsbt
GitNick has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
k612 has joined #ruby
k610 has quit [Ping timeout: 264 seconds]
jeffreybaird has joined #ruby
k610 has joined #ruby
k611 has quit [Ping timeout: 256 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
k612 has quit [Ping timeout: 255 seconds]
wookiehangover has quit [Ping timeout: 246 seconds]
chimkan_ has joined #ruby
ner0x has joined #ruby
k611 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
d34th4ck3r has joined #ruby
odyssey4me has quit [Read error: Connection reset by peer]
odyssey4me has joined #ruby
chad6 has joined #ruby
alx- has joined #ruby
k610 has quit [Ping timeout: 246 seconds]
willob has joined #ruby
ccooke has quit [Read error: Operation timed out]
ccooke has joined #ruby
jhowarth has quit [Ping timeout: 240 seconds]
patricksroberts has quit [Read error: Operation timed out]
patricksroberts has joined #ruby
pvh has quit [Ping timeout: 240 seconds]
Spaceghost|cloud has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
Dwarf has quit [Ping timeout: 246 seconds]
Guest30882 has joined #ruby
mathie has joined #ruby
SeanTAllen has quit [Read error: Operation timed out]
dekz has quit [Ping timeout: 246 seconds]
rcsheets has quit [Read error: Operation timed out]
rcsheets has joined #ruby
ctevie has quit [Ping timeout: 240 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
SeanTAllen has joined #ruby
plu has quit [Ping timeout: 264 seconds]
nerd has quit [Quit: WeeChat 0.3.9.2]
z has quit [Ping timeout: 240 seconds]
dkannan has quit [Ping timeout: 240 seconds]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
nerd has joined #ruby
NimeshNeema has quit [Ping timeout: 240 seconds]
ohcibi has quit [Ping timeout: 240 seconds]
burgestrand has quit [Quit: Leaving.]
<ner0x> Would anyone see a benefit to geocoder having a looking for their own lat/long db?
aef has quit [Ping timeout: 264 seconds]
ohcibi has joined #ruby
alee has quit [Ping timeout: 276 seconds]
drizz has quit [Ping timeout: 276 seconds]
GitNick has quit [Quit: Linkinus - http://linkinus.com]
atmosx has quit [Ping timeout: 276 seconds]
im0b has quit [Ping timeout: 276 seconds]
sepuku has quit [Ping timeout: 276 seconds]
octarine has quit [Ping timeout: 276 seconds]
plu has joined #ruby
drizz has joined #ruby
z has joined #ruby
joofsh has joined #ruby
z is now known as Guest61565
topek has quit [Quit: Leaving.]
sepuku has joined #ruby
topek has joined #ruby
macabre has joined #ruby
Nick|laptop has joined #ruby
aef has joined #ruby
<alx-> hey, i have to run an external ffmpeg process. what's the best way to do this? how can i know when the process is finished or whether it timed out?
<ichilton> Does require load into the same scope as the current file?
pcarrier has joined #ruby
<apeiros_> ichilton: no. require loads into toplevel.
<ichilton> Ah
<apeiros_> also, local variables in toplevel of a file stay local to that file.
uris has joined #ruby
<ichilton> Ah
im0b has joined #ruby
octarine has joined #ruby
<ichilton> I'm in a Rails app and requiring this -> https://github.com/markevans/dragonfly/blob/master/lib/dragonfly/rails/images.rb from config/initializers/dragonfly.rb, but then i'm trying to use app (which is set in the require) from the initializer - is there a way I can do that?
atmosx has joined #ruby
pcarrier has quit [Ping timeout: 260 seconds]
invisime has joined #ruby
philcrissman has joined #ruby
axl_ has joined #ruby
alee has joined #ruby
pcarrier has joined #ruby
philcrissman has quit [Remote host closed the connection]
Guest61565 has quit [Changing host]
Guest61565 has joined #ruby
Guest61565 is now known as z
Uranio has joined #ruby
philcrissman has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
nari has quit [Ping timeout: 246 seconds]
kil0byte has joined #ruby
sebastianb has joined #ruby
hydrozen has joined #ruby
samphippen has joined #ruby
skaczor has joined #ruby
Nick|laptop has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Coolhand_ has joined #ruby
kil0byte_ has quit [Ping timeout: 240 seconds]
Coolhand_ is now known as Coolhand|laptop
Coolhand|laptop has quit [Client Quit]
Coolhand|laptop has joined #ruby
chendo_ has quit [Ping timeout: 260 seconds]
levicole has quit [Ping timeout: 260 seconds]
Averna has quit [Ping timeout: 260 seconds]
aetcore has quit [Ping timeout: 244 seconds]
[Neurotic] has quit [Ping timeout: 246 seconds]
alx- has quit [Remote host closed the connection]
alx- has joined #ruby
sebastianb has quit [Ping timeout: 246 seconds]
jlwestsr has joined #ruby
browndawg has joined #ruby
mikepack has quit [Remote host closed the connection]
osvico has joined #ruby
leonardo_ has quit [Remote host closed the connection]
<ner0x> Trying to contact the maintainer of geocoder... but no email or anything to be found... How do I find this out? (new to ruby and the community)
* ner0x is trying to contribute. :)
emergion has joined #ruby
Dwarf has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
emergion has quit [Client Quit]
jharris has joined #ruby
alee has quit [Remote host closed the connection]
levicole has joined #ruby
atmosx has joined #ruby
_solomon has quit [Quit: _solomon]
osvico has quit [Ping timeout: 252 seconds]
larissa has quit [Quit: Leaving]
sebastianb has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
aetcore has joined #ruby
Averna has joined #ruby
vasile has quit [Ping timeout: 252 seconds]
solidoodlesuppor has joined #ruby
sailias has joined #ruby
<JonnieCache> ner0x: send him a message on github i guess
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
rippa has joined #ruby
adamnbowen has joined #ruby
alee_ has joined #ruby
chussenot has joined #ruby
khimera has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
freeayu has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
arya has joined #ruby
beachandbytes has joined #ruby
niklasb has joined #ruby
s0ber has quit [Remote host closed the connection]
s0ber has joined #ruby
<ner0x> JonnieCache: How the hell do you do that? I've been looking for 10 minutes. lol
Targen has joined #ruby
alanp has quit [Quit: No Ping reply in 180 seconds.]
alanp has joined #ruby
Targen has quit [Remote host closed the connection]
<GeekOnCoffee> pretty sure github doesn't have messages anymore
glupo has joined #ruby
<GeekOnCoffee> ner0x: how are you trying to contribute?
vlad_starkov has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
beachandbytes has quit [Ping timeout: 264 seconds]
<ner0x> GeekOnCoffee: Adding two backend lookups.
margle has quit [Quit: Computer has gone to sleep.]
elico has joined #ruby
<GeekOnCoffee> ner0x: you could file an issue/pull request
muloka has joined #ruby
<GeekOnCoffee> if you've got it coded with tests, file a pull request, otherwise I'd suggest filing an issue to see if he'd be open to merging it
tobinharris has quit [Quit: tobinharris]
<GeekOnCoffee> given that there are recent commits on it though, I imagine he would be
<ner0x> GeekOnCoffee: That's the plan. I wanted to ask his advice on one of the lookups since it's sort of unorthodox.
bbttxu has joined #ruby
dmiller_ has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
Goles_ has joined #ruby
carlyle has joined #ruby
huoxito has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
CamonZ has joined #ruby
tk___ has quit [Quit: ばいばい]
hsbt is now known as hsbt_away
dmiller has quit [Ping timeout: 246 seconds]
Goles has quit [Ping timeout: 240 seconds]
elico has quit [Remote host closed the connection]
stopbit has joined #ruby
lampe2 has quit [Quit: Leaving.]
tagrudev has quit [Quit: 0_o]
nerd has quit [Quit: WeeChat 0.3.9.2]
rhys has quit [Quit: Leaving]
juarlex has quit [Read error: No route to host]
heftig has quit [Quit: leaving]
mikepack has joined #ruby
Takehiro has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
dmiller has joined #ruby
nerd has joined #ruby
schaary has quit [Quit: Leaving.]
_alejandro has quit [Remote host closed the connection]
banisterfiend has joined #ruby
leonardorb has joined #ruby
Takehiro has joined #ruby
dmiller_ has quit [Ping timeout: 265 seconds]
virtuose has quit [Read error: Operation timed out]
whowantstolivefo has joined #ruby
obryan has joined #ruby
<JonnieCache> ner0x: make a pull request with an initial version of your code then, with a message asking for feedback
virtuose has joined #ruby
<JonnieCache> by making a pull request youre not saying "MERGE THIS CODE AS-IS!" pull requests almost always go through several iterations
cakehero has joined #ruby
IrishGringo has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
jlwestsr has quit [Quit: Ex-Chat]
<Hanmac_> hm that remind me ... i need to add Licence information to my bindings on github ...
<rking> Hanmac_: CC0 FTW
<banisterfiend> Hanmac_: write it in german
<Hanmac_> currently my bindings miss any information about Licence, but i want to mark them as LGPLv3
<rking> Hanmac_: Any license that requires you to include the license is a virus
_solomon has joined #ruby
kil0byte has joined #ruby
<Hanmac_> how does the users know that my code is LPGLv3 when i dont notic that?
<rking> You say it's CC0, then anyone looking at your codebase knows it's completely, truly free from restrictions. If some doofsauce other guy clones your work and does something weird with it, it's on them.
kil0byte_ has quit [Ping timeout: 260 seconds]
hamed_r has quit [Ping timeout: 264 seconds]
chimkan_ has quit [Ping timeout: 265 seconds]
headius has joined #ruby
<shevy> I think Hanmac likes restrictions
postmodern has quit [Ping timeout: 252 seconds]
<shevy> "everytime you modify this code, you must send me one bottle of beer."
hamed_r has joined #ruby
SCommette has joined #ruby
vasile has joined #ruby
<Hanmac_> "or a jar of honey"
iamjarvo has joined #ruby
Goles_ has quit [Remote host closed the connection]
NiteRain has joined #ruby
Goles has joined #ruby
tobinharris has joined #ruby
<Hanmac_> rking i would like it that you could use my binding in each project, but i want that forks are forced to be free too
<rking> Hanmac_: If you love it, let it go.
notwen has quit [Quit: Lost terminal]
<shevy> like a marriage
<shevy> do we have ruby code in GPL?
<rking> Yes, just like a… wait no
<shevy> most ruby code seems to have more liberal ones similar to the BSD ones
pavilionXP has quit [Ping timeout: 264 seconds]
<shevy> or perhaps I can't remember otherwise :\
<ner0x> JonnieCache: That I can do.
chad6 has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Computer has gone to sleep.]
cpruitt has joined #ruby
enroxorz-work has joined #ruby
fumbe has quit [Read error: Operation timed out]
infinitiguy has quit [Quit: Leaving.]
jgarvey has joined #ruby
v0n has joined #ruby
Mnkras-Laptop has joined #ruby
Mnkras-Laptop has quit [Changing host]
Mnkras-Laptop has joined #ruby
fumbe has joined #ruby
infinitiguy has joined #ruby
kpshek has joined #ruby
infinitiguy has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
infinitiguy has joined #ruby
<Hanmac_> shevy my bindings are nearly 99% C++ code
nemesit has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
zommi has left #ruby [#ruby]
obryan has quit [Quit: Konversation terminated!]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
x82_nicole has joined #ruby
_alejandro has joined #ruby
tobinharris has quit [Quit: tobinharris]
vasile has quit [Ping timeout: 260 seconds]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
piotr_ has quit [Ping timeout: 246 seconds]
peregrine81 has joined #ruby
shiin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
arya has quit [Ping timeout: 244 seconds]
tobinharris has joined #ruby
arya has joined #ruby
nemesit has joined #ruby
mercwithamouth has joined #ruby
chimkan_ has joined #ruby
macabre has left #ruby [#ruby]
yekta has joined #ruby
nemesit has quit [Client Quit]
maasha has quit [Ping timeout: 245 seconds]
segv- has joined #ruby
hamed_r has quit [Ping timeout: 246 seconds]
arya_ has joined #ruby
BeLucid_ has quit [Read error: Connection reset by peer]
nemesit has joined #ruby
arya has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
dobbymoo` has quit [Remote host closed the connection]
juarlex has joined #ruby
Mnkras-Laptop has quit [Quit: Mnkras-Laptop]
BeLucid has joined #ruby
theRoUS has quit [Quit: Leaving]
jgarvey has quit [Ping timeout: 246 seconds]
odyssey4me has quit []
tobinharris has quit [Quit: tobinharris]
lampe2 has joined #ruby
generalissimo has joined #ruby
nemesit has quit [Ping timeout: 256 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
eldariof has quit [Ping timeout: 252 seconds]
kil0byte has quit [Remote host closed the connection]
ewag has joined #ruby
wookiehangover has joined #ruby
tjbiddle_ has joined #ruby
hsbt is now known as hsbt_away
danneu has joined #ruby
C0deMaver1ck has joined #ruby
lolcathost has quit [Ping timeout: 255 seconds]
lolcathost has joined #ruby
lolcathost has quit [Client Quit]
s1n4 has quit [Quit: leaving]
bradhe has quit [Remote host closed the connection]
lolcathost has joined #ruby
sepp2k has quit [Quit: Leaving.]
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
tobinharris has joined #ruby
cakehero has joined #ruby
bradhe has joined #ruby
Phoop has quit [Quit: Phoop]
jrajav has joined #ruby
jgarvey has joined #ruby
lampe2 has quit [Quit: Leaving.]
jonahR has joined #ruby
frihd has quit [Read error: Operation timed out]
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
malte_ has quit [Quit: malte_]
bradhe has quit [Ping timeout: 265 seconds]
nemesit has joined #ruby
xclite has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo1 has joined #ruby
<UukGoblin> hi
peregrine81 has quit [Quit: Goodbye.]
Nisstyre-laptop has quit [Ping timeout: 244 seconds]
<UukGoblin> is there a way to check if the .rb file currently being processed was require()d from somewhere else (as opposed to called directly from commandline)?
abner_ has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
kidoz has joined #ruby
tvw has quit [Remote host closed the connection]
maletor has joined #ruby
beiter has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jonathanwallace has joined #ruby
frihd has joined #ruby
Hanmac_ has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Client Quit]
jonathanwallace has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jhowarth has joined #ruby
<rking> UukGoblin: caller works
dkannan has joined #ruby
pvh has joined #ruby
Spaceghost|cloud has joined #ruby
dekz has joined #ruby
ctevie has joined #ruby
d2dchat has joined #ruby
mafolz has quit [Quit: mafolz]
_nitti has quit [Remote host closed the connection]
mattupstate has joined #ruby
mattupstate has left #ruby [#ruby]
mattupstate has joined #ruby
rektide has joined #ruby
NimeshNeema has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
joeycarmello has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
rellin has joined #ruby
osvico has joined #ruby
nwertman has joined #ruby
paolooo_ has joined #ruby
paolooo_ has quit [Client Quit]
io_syl has joined #ruby
jrist is now known as jrist-afk
<UukGoblin> rking, ah, nice, thanks
hashpuppy has joined #ruby
<hashpuppy> what am i missing here
_nitti has joined #ruby
<hashpuppy> why nil?
<hashpuppy> i would expect a.first[:rate_plan] to yield the same result as b[:rate_plan]
maesbn has quit [Remote host closed the connection]
alx- has quit [Quit: alx-]
arya_ has quit [Ping timeout: 244 seconds]
arya has joined #ruby
<hashpuppy> a.first["max_length"] prints 5
jakehow has joined #ruby
<hashpuppy> actually... i see the issue
hashpuppy has left #ruby [#ruby]
heftig has joined #ruby
mneorr has quit [Remote host closed the connection]
headius has quit [Quit: headius]
mneorr has joined #ruby
<rking> Hehe
yekta has quit [Quit: yekta]
_nitti has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Mnkras-Laptop has joined #ruby
arya_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
mattupstate has quit [Quit: Leaving.]
ewag has quit [Ping timeout: 252 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
browndawg has quit [Quit: Leaving.]
arya has quit [Ping timeout: 244 seconds]
mattupstate has joined #ruby
beachandbytes has joined #ruby
aganov has quit [Quit: aganov]
Mnkras-Laptop has quit [Quit: Mnkras-Laptop]
tobinharris has quit [Quit: tobinharris]
marr has quit [Ping timeout: 264 seconds]
samphippen has joined #ruby
answer_42 has joined #ruby
nemesit has quit [Read error: Connection reset by peer]
joeycarmello has quit [Remote host closed the connection]
digitalcakestudi has joined #ruby
hsbt_away is now known as hsbt
cakehero has quit [Quit: Computer has gone to sleep.]
digitalcakestudi has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
alx- has joined #ruby
nemesit has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
Edwan has joined #ruby
digitalcakestudi has joined #ruby
arietis has joined #ruby
Phoop has joined #ruby
Phoop has quit [Client Quit]
abner_ has quit [Ping timeout: 252 seconds]
abner_ has joined #ruby
filipe has quit [Ping timeout: 252 seconds]
nemesit has quit [Read error: Operation timed out]
jrajav has joined #ruby
k611 has quit [Quit: Leaving]
jlast has joined #ruby
nemesit has joined #ruby
hotovson has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
kil0byte has joined #ruby
sepp2k has joined #ruby
d34th4ck3r has quit [Ping timeout: 250 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
johnmilton has joined #ruby
gyre007 has quit [Remote host closed the connection]
kpshek has quit []
doritostains has quit [Quit: Leaving...]
cj3kim has quit [Quit: This computer has gone to sleep]
arya has joined #ruby
DatumDrop has joined #ruby
hamed_r has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
devdazed has quit [Quit: Bye]
hsbt is now known as hsbt_away
Naeblis has quit [Ping timeout: 252 seconds]
Jasko2 has joined #ruby
<banisterfiend> Hanmac: kreiswichs
filipe has joined #ruby
imami|afk has quit [Ping timeout: 248 seconds]
jakehow has quit [Ping timeout: 256 seconds]
hderms has quit [Ping timeout: 264 seconds]
WanderingGlitch has quit [Ping timeout: 240 seconds]
Jasko has quit [Ping timeout: 240 seconds]
hderms has joined #ruby
digitalcakestudi has quit [Quit: Leaving.]
CamonZ has quit [Ping timeout: 255 seconds]
mattupstate has left #ruby [#ruby]
slash_nick has joined #ruby
Kovensky has quit [Ping timeout: 252 seconds]
kstephens has quit [Quit: PredictTheFuture]
Bry8Star has quit [Ping timeout: 276 seconds]
ozzloy has quit [Ping timeout: 248 seconds]
DatumDrop has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 264 seconds]
<Xeago> anyone want to co-code a padding oracle attack?
DatumDrop has joined #ruby
jakehow has joined #ruby
<Xeago> need some help with http related parts
foucist has quit [Remote host closed the connection]
bitZero_1 has quit [Ping timeout: 248 seconds]
nateberkopec has joined #ruby
mercwithamouth has joined #ruby
foucist has joined #ruby
qubit has quit [Ping timeout: 264 seconds]
malcolmva has quit [Ping timeout: 264 seconds]
ner0x has quit [Ping timeout: 252 seconds]
<Guest___> Can someone refactor this? http://pastie.org/private/dogjyjhvvfd7j71biye7q
bitZero__ has joined #ruby
qubit has joined #ruby
<slash_nick> Yes Guest___
rektide has left #ruby [#ruby]
digitalcakestudi has joined #ruby
KarlHung1s has joined #ruby
WanderingGlitch has joined #ruby
<slash_nick> Someone :)
<Guest___> slash_nick: :) would you please show me
x82_nicole has quit [Ping timeout: 252 seconds]
poisonarms has quit [Ping timeout: 260 seconds]
<davidcelis> __GUEST__
dross has quit [Ping timeout: 264 seconds]
davidcelis has quit [Quit: K-Lined.]
banseljaj has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
AllStruck has quit [Ping timeout: 252 seconds]
Guest____ has joined #ruby
justinweiss has quit [Ping timeout: 264 seconds]
dross has joined #ruby
Iszak has quit [Read error: Operation timed out]
poisonarms has joined #ruby
Guest____ is now known as iCelebrity
<banisterfiend> iCelebrity: order.map { |v| hash[v] }
JohnBat26|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
justinweiss has joined #ruby
KarlHungus has quit [Ping timeout: 252 seconds]
ner0x has joined #ruby
AlSquirikou has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Ping timeout: 248 seconds]
jeffreybaird has joined #ruby
AlSquirikou has joined #ruby
x82_nicole has joined #ruby
zigomir has joined #ruby
kstephens has joined #ruby
<nateberkopec> I recently heard "if you see someone assigning an empty array and doing an each, that's a map."
bricker_ has quit [Ping timeout: 252 seconds]
TheFuzzball has quit [Ping timeout: 244 seconds]
<nateberkopec> so that's a nice little refactoring rule
a_a_g has joined #ruby
AllStruck has joined #ruby
frihd has quit [Ping timeout: 265 seconds]
chrisbolton has joined #ruby
malcolmva has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
DaZ has quit [Ping timeout: 265 seconds]
bricker has joined #ruby
nerd has quit [Quit: WeeChat 0.3.9.2]
gyre007 has joined #ruby
WanderingGlitch has quit [Ping timeout: 240 seconds]
nerd has joined #ruby
<banisterfiend> nateberkopec: each_with_object is also k00
WanderingGlitch has joined #ruby
Kovensky has joined #ruby
<nateberkopec> banisterfiend: i use .map and .reduce to get chicks tho, ladies love the map/reduce
ozzloy has quit [Remote host closed the connection]
hoelzro is now known as hoelzro|away
Iszak has joined #ruby
philcrissman has quit [Remote host closed the connection]
ozzloy has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
TheFuzzball has joined #ruby
<banisterfiend> nateberkopec: not the pretty ones
<nateberkopec> lol
Naeblis has joined #ruby
DaZ has joined #ruby
philcrissman has joined #ruby
frihd has joined #ruby
macmartine has joined #ruby
arturaz has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
arya has quit [Ping timeout: 244 seconds]
iCelebrity has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
joeycarmello has joined #ruby
mmitchel_ has joined #ruby
arya has joined #ruby
rakuN has joined #ruby
mmitchell has quit [Ping timeout: 264 seconds]
ryanlecompte has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
d2dchat has quit [Ping timeout: 260 seconds]
advorak has quit [Quit: This computer has gone to sleep]
brianpWins has quit [Quit: brianpWins]
lurch_ has joined #ruby
answer_42 has joined #ruby
bronson has joined #ruby
gyre007 has quit [Remote host closed the connection]
C0deMaver1ck has quit [Disconnected by services]
C0deMaver1ck has joined #ruby
Iszak has quit [Ping timeout: 252 seconds]
froy has quit [Remote host closed the connection]
mlue has joined #ruby
joshman_ has joined #ruby
kiplitton has joined #ruby
dawkirst has quit [Remote host closed the connection]
moos3 has quit [Quit: Off to blow shit up!]
Iszak has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
frihd has quit [Quit: Leaving.]
moos3 has joined #ruby
arya has quit []
stkowski has joined #ruby
love_col_ has quit [Remote host closed the connection]
zodiak has quit [Ping timeout: 246 seconds]
arya has joined #ruby
love_color_text has joined #ruby
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rakl has joined #ruby
arya has quit [Client Quit]
havenn has joined #ruby
bbttxu has quit [Quit: bbttxu]
adeponte has joined #ruby
adeponte has quit [Remote host closed the connection]
beachandbytes has quit [Ping timeout: 248 seconds]
Dreamer3 has quit [Quit: Leaving...]
froy has joined #ruby
osvico has quit [Ping timeout: 244 seconds]
adeponte has joined #ruby
a_a_g has quit [Quit: Leaving.]
gyre007 has joined #ruby
BoomCow has joined #ruby
BoomCow has quit [Remote host closed the connection]
dmiller_ has joined #ruby
maletor has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
nat2610 has joined #ruby
DaZ has quit [Read error: Connection reset by peer]
rakm has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zigomir has quit [Quit: zigomir]
rdark has quit [Quit: leaving]
adeponte has quit [Ping timeout: 252 seconds]
<maetthew> I'm new to Ruby and I cannot figure out why this won't save with DataMapper. I included the console message and the concerned files in this Gist. The #save in mention is located at line 93 in tf2mixbot.rb -- https://gist.github.com/4226004
GoGoGarrett has joined #ruby
Guest30882 is now known as Jackneill
Jackneill has quit [Changing host]
Jackneill has joined #ruby
philips_ has quit [Excess Flood]
BadLarry has quit [Ping timeout: 255 seconds]
aetcore has quit [Ping timeout: 248 seconds]
davidcelis has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
nomenkun has quit [Remote host closed the connection]
philips_ has joined #ruby
Edwan has quit [Quit: Edwan]
jrist-afk is now known as jrist
aetcore has joined #ruby
BadLarry has joined #ruby
nemesit has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Quit: jeffreybaird]
nemesit has joined #ruby
arya has joined #ruby
nerd has quit [Quit: WeeChat 0.3.9.2]
hsbt_away is now known as hsbt
nerd has joined #ruby
zodiak has joined #ruby
vasile has joined #ruby
dmiller_ has quit [Ping timeout: 260 seconds]
DaZ has joined #ruby
heyduck has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
burlesona has joined #ruby
burlesona has left #ruby [#ruby]
elkclone has joined #ruby
<lectrick> I did not know that if you have a method def with one of the middle args defaulted, you can pass one less arg than the apparent arity of that method when you call it:
marr has joined #ruby
<lectrick> def wtf_args(one, two, three=nil, four); puts one+two+(three||'<default_three>')+four; end; wtf_args('w ','t ', ' f')
<lectrick> I don't know if I like this.
brianpWins has joined #ruby
Dreamer3 has joined #ruby
chrismcg is now known as zz_chrismcg
<lectrick> I mean... it makes sense I guess... seems brittle tho. If I pass in a 4th arg, then what was the original "4th arg" becomes the 3rd arg.
dawkirst has joined #ruby
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
queequeg1 has quit [Read error: Operation timed out]
queequeg1 has joined #ruby
dmiller has joined #ruby
<shevy> I know that I do not like this at all, hence I do not use it in my own code
timonv has quit [Remote host closed the connection]
freakazoid0223 has quit [Quit: Leaving]
eldariof has joined #ruby
alfism has joined #ruby
adeponte has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
hsbt is now known as hsbt_away
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
shiin has joined #ruby
blazes816 has joined #ruby
alvaro_o has joined #ruby
nga4 has joined #ruby
rapha has joined #ruby
<rapha> Hi!
<rapha> Is there a more succinct way of typing https://gist.github.com/4226512 ?
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle has joined #ruby
<rking> lectrick: Positional args are dead. Keywords FTW
bradhe has joined #ruby
<rking> Oh wait Smalltalk's been doing that all along say whaaat?
doug has joined #ruby
<doug> given a Module, how can i enumerate the things defined within it?
dmiller has quit [Ping timeout: 256 seconds]
AlSquire has joined #ruby
<rking> doug: "things"?
daniel_- has joined #ruby
proper337 has joined #ruby
AlSquirikou has quit [Read error: Connection reset by peer]
<lectrick> rking: yeah i know. either in ruby 2.0 directly or via options hashes today :)
<rking> doug: There's mod.methods, mod.constants
<lectrick> doug: also mod.instance_methods, mod.class_methods etc
<rking> lectrick: Yeah. AFAIK the 2.0 stuff is only callee sugar, right? Like we already have the full functionality in 1.9 from the caller side.
<doug> things, like stuff.
cdt has quit [Ping timeout: 246 seconds]
babonk has joined #ruby
babonk has joined #ruby
babonk has quit [Changing host]
mpereira has joined #ruby
<doug> doohickeys if you must
chussenot has quit [Quit: chussenot]
<workmad3> doug: thingamabobs?
<lectrick> rking: yeah, if you pass in a hash you automatically get local vars defined as the keys of that hash? that sort of thing?
<rking> class Module; def stuff; [constants, methods, instance_methods] end end
<rking> (I didn't see .class_methods)
<workmad3> rking: that would be self.class.methods
ephemerian has quit [Quit: Leaving.]
<workmad3> rking: and don't forget about instance_variables
<rking> lectrick: Yeah, which is great and will encourage more of the practice, but I'm thinking we could already be designing the externally-facing APIs the same, if we weren't lazy on the method implementations.
luminous has quit [Quit: leaving]
<rking> workmad3: Of a Module?
<workmad3> rking: it's still an instance of something ;)
TomRone has quit [Ping timeout: 265 seconds]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
<workmad3> rking: and also, don't forget about singleton_class.methods, just in case...
<workmad3> it's not like you can make the request any more ridiculous after all... :P
niklasb has quit [Ping timeout: 252 seconds]
<rking> Haha
apeiros_ has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
delinquentme has joined #ruby
<delinquentme> gem to do speed testing on ruby?
<lectrick> require 'bm'
<lectrick> delinquentme: ^ (it's the Benchmark gem and object)
<apeiros_> require 'autoperfimprover', and your whole ruby will run ~250% faster
<workmad3> delinquentme: 'time ruby script_name.rb'
<delinquentme> workmad3, +1
twopoint718 has quit [Ping timeout: 255 seconds]
<maetthew> I'm new to Ruby and I cannot figure out why this won't save with DataMapper. I included the console message and the concerned files in this Gist. The #save in mention is located at line 93 in tf2mixbot.rb -- https://gist.github.com/4226004
<workmad3> delinquentme: although you'll get nicer and more detailed output from the benchmark stuff :)
<lectrick> apeiros_: I did that for our unit tests and made them run in half the time. The black magic was making them use an in-memory sqlite db instead of mysql like the rest of the test suite :O
Dreamer3 has quit [Quit: Leaving...]
<rking> apeiros_: You mean the falcon patch?
<delinquentme> workmad3, i like dirty
<workmad3> which, despite lectrick's claim, isn't a gem, it's a part of the stdlib
<apeiros_> lectrick: the second part of the magic would be to use transactions ;-)
<delinquentme> >_<;;;;
<lectrick> So there ARE instances when a simple require might zip up your tests, if you're clever enough
<lectrick> workmad3: ah yes. it's not a gem. it's stdlib.
* apeiros_ wonders whether pg has in-memory tables too…
mlue has quit [Quit: leaving]
<lectrick> apeiros_: i hope so. mysql does although they are too broken
mlue has joined #ruby
<rking> lectrick: How are they broken? (This is a FUD-free zone)
* lectrick automatically assumes anything ugly or broken in mysql is beautiful and functional in postgres
<lectrick> rking: Have you ever tried actually using them?
love_color_text has quit [Remote host closed the connection]
<rking> lectrick: No. I just don't like general "is broken" comments. I can't take anything away from that
TomRone has joined #ruby
jakehow has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
<lectrick> rking: Here's an exercise. Take a Rails test suite, and have it try to use an in-memory mysql database. You will run into the limitations fairly quickly. It's a totally different database type with its own set of limitations (including things you can't do with the schema, etc.)
willob has quit [Remote host closed the connection]
<apeiros_> lectrick: oooh, different db engine?
<apeiros_> like myisam vs. innodb?
<lectrick> rking: It would be great if it was just, say, "innodb as RAM disk"... but it's not
<lectrick> apeiros_: yeah. it's a different table type entirely
* apeiros_ finds it also funny how the important stuff is only in innodb, yet all perf-tests for mysql are with myisam…
includex has quit [Quit: Leaving...]
<apeiros_> at least it was that way ~5y ago
<lectrick> and there's a bunch of gotchas. in essence- without a lot of maintenance, not usable, at least for testing production code that normally runs on top of things like innodb
<apeiros_> no idea how it is today. today I have to frack around with oracle :(
<workmad3> apeiros_: and even better, the perf tests are deliberately written to not actually expose the myisam limitations... such as it's table-level lock on inserts
<apeiros_> workmad3: so it's still that way? :)
werdnativ has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
<workmad3> apeiros_: I've encountered several 'benchmarks' of mysql that do that :)
slainer68 has quit [Remote host closed the connection]
<lectrick> workmad3: yeah that page lists some of the gotchas/caveats, but there are more than are listed there, as I found out the hard way
bradhe has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
<lectrick> i am not keen on mysql, especially after the Oracle acquisition
a_a_g has joined #ruby
willob has joined #ruby
<lectrick> If anything I consider postgres in a separate league above it, and postgres could use some competition because mysql is not it
<workmad3> lectrick: is the memory table transactional? that's not mentioned at all there :)
<lectrick> workmad3: good question. it may not be. not sure.
hamed_r has quit [Quit: Leaving]
<workmad3> lectrick: postgres has competition... oracle :P
<lectrick> workmad3: also it might be impossible to join across in-memory tables and on-disk ones.
<apeiros_> workmad3: only in enterprises
<apeiros_> outside enterprises, oracle is a non-option
<lectrick> workmad3: oracle seems bloated and crusty.
<apeiros_> (well, not talking about oracle's mysql)
jenrzzz has joined #ruby
<apeiros_> lectrick: it doesn't just seem, it *is*
jakehow has joined #ruby
<apeiros_> it's a fracking turd. that's what it is.
<apeiros_> and the argument "but you get support with it!" - I can't hear that anymore
<lectrick> he said it, not me. rking had a good point about not accepting simple "it sucks" arguments :)
<apeiros_> if you have to weigh every question you have against the budget, you never get support
tPl0ch has joined #ruby
delinquentme has quit [Quit: Leaving]
lurch_ has quit [Quit: lurch_]
under has joined #ruby
<lectrick> i suppose the competition for both mysql and postgres are nosql solutions
<apeiros_> lectrick: ok, 1000 items limit in IN() queries, been ~50x slower than sqlite for a query of mine, 30 chars limit on *all* identifiers (tables, columns, sequences, …)
<apeiros_> prohibitively expensive support
<apeiros_> prohibitively expensive per-core/per-performance pricing
<lectrick> apeiros_: 1000 items limit in IN() queries? In ORACLE? Seriously? lol
<rking> apeiros_: 30 char limit? I wonder what they do with the other 2 chars.
<apeiros_> buggy utf-8/windows-1252 conversion
<lectrick> i'm not surprised
<workmad3> wait? you mean people *aren't* willing to pay $1,000,000p.a. for an install of oracle?
<lectrick> that codebase is like 20+ years old
<apeiros_> lectrick: well, it does make some sense (the 1000 limit), it's actually bad of rails/AR not to use subselects instead of IN's
<apeiros_> but subselects aren't applicable in all situations…
<lectrick> apeiros_: exactly.
<lectrick> apeiros_: maybe it does that for compatibility reasons?
slash_nick is now known as slash_me
headius has joined #ruby
* lectrick brb work meeting... argh... meetings
<apeiros_> lectrick: no, it does it for "it's old and crusty code and nobody dares to touch it" reasons
<apeiros_> and probably for "Oh shit we don't have tests for that" reasons
rdk has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
<rdk> hi, which is the best book for ruby that I can start with?
love_color_text has joined #ruby
tvw has joined #ruby
Shamgar has quit [Ping timeout: 264 seconds]
<walbert> rdk: Are you familiar with any other programming languages or techniques?
<rdk> I am little bit familiar with ruby
<rdk> and with C and C++
margle has joined #ruby
elico has joined #ruby
<under> Hi :)
piotr has joined #ruby
<rking> rdk: http://www.ruby-lang.org/en/documentation/quickstart/ then probably the Pickaxe
<walbert> perhaps something like Eloquent Ruby would fit you. I'm a fan of it, personally - but it won't hold your hand if you don't understand what an if statement is or such.
bradhe has joined #ruby
voodoofish430 has joined #ruby
<rking> rdk: Oh, and after you get done with that tutorial (or during, if you're not afraid to see some output differences), gem install pry-plus and then use pry everywhere where you would've used irb
maletor has quit [Quit: Computer has gone to sleep.]
Adget has joined #ruby
iamvery has joined #ruby
<rdk> rking: thanks , i will go through your link
<rking> rdk: Feel free to ask any and all questions. It's fun to help people transition.
fred909 has joined #ruby
tobinharris has joined #ruby
<rdk> walbert: can I order this book ? " Eloquent Ruby"
arusso has left #ruby [#ruby]
lolmaus has quit []
dankest has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
tobinharris has quit [Client Quit]
Uranio has quit [Quit: WeeChat 0.3.8]
maletor has joined #ruby
<walbert> rdk: Yeah, that's the one I'd recommend if you have some C and C++ experience.
AlSquire has quit [Read error: Connection reset by peer]
matrixise has quit [Ping timeout: 252 seconds]
answer_42 has quit [Quit: WeeChat 0.3.9.2]
AlSquire has joined #ruby
answer_42 has joined #ruby
<lectrick> rdk: you can always use http://tryruby.org/ to get a feel for the lang if you're a complete noob
iamvery has quit [Client Quit]
Shamgar has joined #ruby
iamvery has joined #ruby
<iamvery> What's the _right_ way to bundle private/offline gems? I was using `bundle package`, but I didn't like the idea of including the packaged gems in my repo. Ideally, I don't want to host these gems
gbchaosmaster has joined #ruby
tenmilestereo has joined #ruby
<iamvery> (btw, I tried #bundler but its pretty quiet there)
mascool has joined #ruby
dr_bob has left #ruby [#ruby]
<C0deMaver1ck> iamvery: do these gems have their own repos?
<shevy> my right way is to avoid bundler
<iamvery> yes, but only locally for now
<iamvery> It would never been published on GH
dmiller has joined #ruby
wermel has quit [Remote host closed the connection]
<iamvery> It COULD be put on a locally hosted repo, but I wanted to avoid that setup for now if possible
arietis has quit [Quit: Computer has gone to sleep.]
AlSquire has quit [Ping timeout: 256 seconds]
<C0deMaver1ck> I was gonna say you could use the whole
cakehero has joined #ruby
<C0deMaver1ck> 'gem "blah", :git => "git://"
tjbiddle_ has joined #ruby
<iamvery> @C0deMaver1ck I imagined being able to commit and/or supply the .gem for only my private repos and somehow pointing the Gemfile to that
<walbert> yeah, I think that the argument to :git could simply be an absolute path to a local git repo
<C0deMaver1ck> ^
jenrzzz has quit [Ping timeout: 264 seconds]
<iamvery> @walbert it can, but I didn't necessarily want to code a path for other devs sake
mmitchel_ has quit [Remote host closed the connection]
<rking> You can use gem 'foo', path: 'some/path'
<iamvery> realy I could just put in comments / readme that its expected to exist
<rking> Which combines well with git submodules added to the project tree
<iamvery> @rking that's an idea!
<gyre007> is there any good gem with AWS utilities ? I would only need S3 upload simple utility
<gyre007> cant find any..
<iamvery> so I could add the other repos as a submodule?
arietis has joined #ruby
rakuN has quit [Ping timeout: 246 seconds]
<walbert> gyre007: AWS publishes their own gem. 'aws-sdk'
<rking> iamvery: Yep, and it works great — except people will have to start cloning recursively
DaZ has quit [Ping timeout: 240 seconds]
<ner0x> After looking at the docs is there a way to specify you want index 0, 3, and 4 from array var_array ?
<gyre007> walbert: thats SDK dude
<gyre007> I want functional tool
<rking> Otherwise it's a great way to stay in sync. E.g. the outer repo tells you that the submodule is dirty
<iamvery> @rking that's an interesting options.. i think i quite like
<ner0x> I know varray[index, length] but not selecting each individually.
<rking> But you can edit the submodule code in-place as you need
<iamvery> @rking i haven't dealt with submodules much so I'm not sure about their quriks... can you check them at at particular branches, tags, etc?
a_a_g has quit [Quit: Leaving.]
<rking> iamvery: For sure.
AlSquire has joined #ruby
<rking> iamvery: You're basically committing the submodule as a url + commit to the outer tree.
<banisterfiend> rking: most people even on #git says submodules suck big time
brianpWins_ has joined #ruby
<banisterfiend> maybe they've improved with recent git releases though, i hvaen't kept up
<iamvery> @rking I see, so it is tied to a particular commit in the sub-repository
<rking> So if you cd into the submod and do stuff, then commit there, when you cd back to the outer it shows up as a diff where the one commit became the new one.
brianpWins has quit [Read error: Connection reset by peer]
brianpWins_ is now known as brianpWins
pogo has quit [Read error: Connection reset by peer]
<rking> banisterfiend: No, it's just some people are made of weaksauce.
<iamvery> @rking thanks for the idea. I'm going to look into it
heyduck_ has joined #ruby
pogo has joined #ruby
tommyvyo has joined #ruby
<rking> iamvery: Yes, and 'git pull' to the outer dir updates the submodule.
<iamvery> @rking I see...
<rking> banisterfiend ♥ FUD, 4ever.
heyduck has quit [Ping timeout: 265 seconds]
heyduck_ is now known as heyduck
punkrawkR^Home has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
heftig has quit [Quit: leaving]
<walbert> rking: I thought you had to do a "git submodule foreach git pull" to update all submodules?
<ner0x> invalid byte sequence in UTF-8 # while doing a split.
JustinAiken has joined #ruby
<ner0x> Seems the city is french. Ideas?
jenrzzz has joined #ruby
<banisterfiend> rking: i used them a while ago and found them a pain, anyway, i've since forgotten why i found them a pain though
<rking> walbert: That would move each of those submodules' HEAD forward to their upstream. But once *you* do that and teest the updates + commit to the outer repo, all *I* have to do is 'git pull' the outer
<iamvery> @banisterfiend @rking Is there a way to reference a .gem directly vs. look up in a source or path?
chussenot has joined #ruby
Solnse has joined #ruby
DaZ has joined #ruby
<iamvery> I tried using :path => 'directory/containing/gem_file' but it doesn't seem to actually install the gem when I bundle install. I just bundles successfully using the dependency tree i guess
<JustinAiken> could someone that uses amqp tell me what i'm doing wrong here - https://gist.github.com/bd184aae1d5ba7691355 ?
elementz has joined #ruby
heyduck has quit [Quit: heyduck]
Adget1 has joined #ruby
<rking> banisterfiend: Thanks for the link. Now I'm 100% sure that people are being whiny when they oppose submodules. It takes some adjusting, yes, but they're entirely workable.
<rking> iamvery: gem 'foo', :path => refers to the directory that has the foo.gemspec
<elementz> hi all. i am a bit stuck. i have an array of strings. on those strings i would like to run the strip!-function. e.g. : >> foo[0].each{|k| k}
<elementz> => ["Mo ", "06:00 - 08:00 ", " "]
Russell^^ has joined #ruby
<iamvery> @rking right on :-/
Adget has quit [Read error: Operation timed out]
<elementz> running strip on that array like so: >> pp foo[0].each{|k| p k.strip!}
<elementz> returns nil for each value. what am i missing?
d2dchat has joined #ruby
<rking> iamvery: I could be wrong (I've never done it), but if I wanted to use a specific .gem file, I'd look at the `source foo` directive, normally just `source :rubygems`. Surely you could provide your own URL for it, and that URL could possibly just be a local path
<rking> iamvery: But when designing these Bundler-related solutions be sure to keep in mind the chief benefit of Bundler is that everything stays in sync between developers and deployments.
<iamvery> @rking thanks for the tip, I'm reading up on the bundler site now
Takehiro has quit [Read error: Connection reset by peer]
Adget1 has quit [Read error: Operation timed out]
<walbert> elementz: the arguments passed to each are immutable, and assuming foo is your array, you probably don't want to iterate through its first element[0] - you want to iterate through the whole array. I think you want something like new_foo = foo.map{ |k| k.split }
Takehiro has joined #ruby
<iamvery> @rking right :-/... keeps feeling like the final solution will require us to have privately hosted gems... we'll get there eventually i guess
<rking> (So if you were to do like :path => '../somegem', and that path isn't in the clone, then people have to sync that ../somegem dir outside of the bundler workflow)
<rking> iamvery: That doesn't sound like a bad solution. If I had infrequently-varying private gems, I'd do exactly that. If they're frequently-varying I'd use a submodule + gem … :path =>
lushious has joined #ruby
<iamvery> @rking yeah this is a pretty fluid app. Its very much experimental so there will probably be frequent updates all around
<rking> iamvery: Are you likely to be using the outer app, then need to make a change in the gem to support it?
filipe has quit [Remote host closed the connection]
<iamvery> @rking I would say I'm more likely to edit the outer app, but both are fair game for sure
<walbert> iamvery: that's a pretty strong argument for using source control for your gems, though, no? :)
Adget has joined #ruby
<iamvery> @walbert we certainly are, just not hosted at the moment
<rking> iamvery: Well, in that case I would personally do the submodule thing. If you have problems feel free to nick-ping or privmsg me about it
<elementz> walbert: hmm. actually, my datastructure looks more like this: foo = [["a", "b"]["c","d"]] thats why i wrote foo[0]
wargasm has joined #ruby
hydrozen has joined #ruby
<iamvery> @rking cool man. I'm going to do some more reading on this and see what I can find out. Thanks for all your help
<rking> Np. ☺
BoomCow has joined #ruby
Choobie has left #ruby ["End"]
<elementz> walbert: maybe its better i post my real data: [["Mo ", "06:00 - 08:00 ", " "], ["Di ", "06:00 - 08:00 ", " "], [" ", "17:00 - 20:00 ", "sometext "]]
baphled has joined #ruby
<walbert> elementz: if everything is nested consistently, then perhaps new_foo = foo.map{ |bar| bar.map{ |k| k.split } }
glupo has quit [Remote host closed the connection]
<elementz> walbert: kk. will try that
<elementz> walbert: thank you
willob has quit [Remote host closed the connection]
<walbert> strip, rather - not split.
Banistergalaxy has quit [Ping timeout: 252 seconds]
<elementz> oh yeah, overread that too. hehe
sn0wb1rd has joined #ruby
willob has joined #ruby
babonk has quit [Quit: babonk]
bricker has quit [Quit: leaving]
bricker has joined #ruby
tjbiddle_ has quit [Read error: Connection reset by peer]
alexim has joined #ruby
tjbiddle has joined #ruby
rakuN has joined #ruby
wallerdev has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
banjara has joined #ruby
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
twopoint718 has joined #ruby
mathie has quit [Quit: Sleeping...]
alfism has quit [Quit: alfism]
nemesit has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
jekotia has joined #ruby
AlSquirikou has joined #ruby
rdk has left #ruby [#ruby]
Solnse has quit []
AlSquirrel has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
aetcore has quit [Ping timeout: 260 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
artm has quit [Quit: artm]
sn0wb1rd has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
iamvery has quit [Remote host closed the connection]
AlSquirikou has quit [Read error: Connection reset by peer]
aetcore has joined #ruby
sepp2k has quit [Remote host closed the connection]
Highschool has joined #ruby
artm has joined #ruby
philcrissman has quit [Remote host closed the connection]
AlSquire has joined #ruby
schaerli has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
gbchaosmaster has quit [Ping timeout: 255 seconds]
philcrissman has joined #ruby
falkenbt has quit [Ping timeout: 245 seconds]
dmiller has quit [Remote host closed the connection]
dukedave has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
jackbrownhf has quit [Quit: Sto andando via]
bakis has quit [Ping timeout: 246 seconds]
<elementz> walbert: thats so strange, running upcase on the strins in my array works without problems: foo.map{|k| k.map{|j| pp j.upcase}} => returns each string as uppercase. When running strip or strip! on those string elements still does not change anything at all.
wallerdev has quit [Quit: wallerdev]
daniel_- has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
<apeiros_> elementz: careful with map + strip! (the bang version), strip! can return nil
x82_nicole has quit [Quit: Computer has gone to sleep.]
<elementz> apeiros_: yeah, thats what i get: either nil when running with strip! But strip also does not change anything on my string array
<apeiros_> elementz: care to paste a minimal reproduceable case?
<apeiros_> (preferably on gist.github.com)
<elementz> apeiros_: sure, hold on
gbchaosmaster has joined #ruby
<dukedave> Hey all, I have day-of-the-week as a symbol, e.g. :wednesday. I'd like to turn it into something I can call + on with an Integer to move that number of day.
<dukedave> I bet there's an elegant solution out there? :)
bakis has joined #ruby
bakis is now known as Guest73603
donkdonk has joined #ruby
<apeiros_> dukedave: array of all weekdays, +Array#index +Integer#% (modulo)
<donkdonk> anyone know some good reading material on passenger vs. unicorn?
osvico has joined #ruby
x82_nicole has joined #ruby
<dukedave> apeiros_: Hmm, yes, that kind of thing :)
JustinAiken has left #ruby [#ruby]
<dukedave> I was hoping to wrap it up in one object, rather than maintaining the array and index separately
jlwestsr has joined #ruby
<dukedave> But I suppose it's not so bad
<apeiros_> dukedave: sure, a proper class is a good idea
<elementz> apeiros_: sorry took me some time. had to clean up first: https://gist.github.com/4227375
rezzack has joined #ruby
osvico has quit [Ping timeout: 255 seconds]
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
elaptics is now known as elaptics`away
under has quit [Ping timeout: 260 seconds]
<apeiros_> elementz: works for me
<apeiros_> # => [["Mo", "06:00 - 08:00", ""], ["Di", "06:00 - 08:00", ""]]
<apeiros_> that's the return value I get, which is what I'd expect…
<elementz> what?! strange
mmitchell has joined #ruby
Goles_ has joined #ruby
heftig has joined #ruby
<elementz> apeiros_: ok thats strange. i just launched a new instance of irb, ran the exact same code, and now it works
Goles_ has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
Drewch has joined #ruby
yacks has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
Highschool has quit []
timonv has joined #ruby
devdazed has joined #ruby
arya has quit []
fms has joined #ruby
ebouchut has joined #ruby
nat2610 has quit [Quit: Leaving.]
theRoUS has quit [Ping timeout: 248 seconds]
bbttxu has joined #ruby
tvw has quit [Remote host closed the connection]
atno has joined #ruby
nat2610 has joined #ruby
mathie has joined #ruby
xlogic has quit [Remote host closed the connection]
icole has joined #ruby
atno has quit [Read error: Connection reset by peer]
atno has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
atno has quit [Read error: Connection reset by peer]
atno has joined #ruby
chussenot has quit [Quit: chussenot]
pr0ton has joined #ruby
bluOxigen has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.2]
c0rn has joined #ruby
<ner0x> Are there any general purpose data converters out there?
<heftig> "general purpose"?
<ner0x> IE pull in csv, manipulate it per rules, export new csv.
areil has quit [Remote host closed the connection]
<ner0x> A way to set rules. "Merge these three fields, strip these, remove these, add these with #{this_val}" etc.
<apeiros_> I doubt that it'd be worth it
<apeiros_> doing that by hand in ruby is just too cheap
<apeiros_> and the amount of edge-cases…
mathie has quit [Ping timeout: 250 seconds]
Guest73603 is now known as bakis
bakis has quit [Changing host]
bakis has joined #ruby
<ner0x> That's how I've done it so far.
<ner0x> It works but I figured I'd ask.
<apeiros_> sure, asking is (almost) never wrong :)
d34th4ck3r has joined #ruby
<doug> huh, can't seem to find any reference to the precedence of method calls (function application) over operators
macmartine has joined #ruby
<doug> the one stackoverflow q i can find has 3 wrong answers (http://stackoverflow.com/questions/7722369/whats-the-precedence-of-rubys-method-call)
<doug> but method arg, arg && cond is clearly different from method arg, arg and cond
<apeiros_> I think zenspiders quickref lists precedence
<apeiros_> but if your code requires you to think about precedence, then it's IMO not clear enough.
<doug> oh ya, ryan davis
<doug> i'm kinda suspicious of "making the code clear"
theRoUS has joined #ruby
Mon_Ouie has joined #ruby
kirun has joined #ruby
<doug> had people tell me i don't need comments or any documentation whatsoever if i write my code clearly enough
<doug> but i'm pretty sure that's total bullshit
slainer68 has joined #ruby
<apeiros_> it's not
<apeiros_> you need documentation as not everybody wants to read your code
<apeiros_> but you can omit almost all in-code comment
<doug> i haven't seen an example of that that truly works for me
moshee has quit [Ping timeout: 250 seconds]
<doug> and plenty of examples to the contrary
<apeiros_> i.e., "docs as summary and guide to entry points" is always a good idea IMO. no matter how well written the code is.
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
<apeiros_> hm, I've seen plenty of code that was a pleasure to read
tjbiddle_ has joined #ruby
hotovson has joined #ruby
<apeiros_> but the opposite is clearly far more often the case :-/
arya has joined #ruby
<doug> i imagine some of the arguments are along the lines of "well, if that's not clear, refactor!" without taking into consideration that the refactoring might require that you spend 3 hours touching 7 levels of calls and submitting 3 pull requests as a result
Vert has joined #ruby
enroxorz-work has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<apeiros_> if you have 7 levels of calls in the refactor of one method, then you've an issue right there :-p
<apeiros_> coupling is bad, m'kay?
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
<apeiros_> anyway, my opinion on in-code comments: if you explain *what* your code does there, then your code is bad.
Coolhand|laptop has quit [Quit: No Ping reply in 180 seconds.]
wallerdev has joined #ruby
Coolhand|laptop has joined #ruby
geekbri has quit [Remote host closed the connection]
<apeiros_> (or your expectation of your fellow coders ability is very low :D)
lolcathost is now known as Catnaroek
Virunga has quit [Remote host closed the connection]
darthdeus has joined #ruby
DatumDrop has quit [Remote host closed the connection]
guns has joined #ruby
Takehiro has joined #ruby
shevy has quit [Read error: Operation timed out]
c0rn has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 244 seconds]
dawkirst has quit [Ping timeout: 255 seconds]
dawkirst2 has quit [Ping timeout: 264 seconds]
undersc0re97 has quit [Quit: Leaving]
gyre007 has quit [Remote host closed the connection]
arya has joined #ruby
abner_ has quit [Quit: Saindo]
gbchaosmaster has quit [Ping timeout: 264 seconds]
c0rn has joined #ruby
nomenkun has joined #ruby
<dukedave> apeiros_: Further to my day-of-week question earlier: I'd like a DayOfWeek class to behave like a symbol for identity purposes.
<dukedave> So in my case I'd like to be able to initialize a Hash with { DayOfWeek(:tuesday): 123 }, and later do hash[DayOfWeek(:tuesday)]
<dukedave> Does that sound like a good idea?
<dukedave> E.g. when I say Wednesday + 2, I want to get the system Friday, not a new Friday
Takehiro has quit [Ping timeout: 255 seconds]
danshultz has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
<apeiros_> that sounds like a sensible thing to do
frihd has joined #ruby
<apeiros_> I'd simply use a multiton pattern. i.e., DayOfWeek(:tuesday) # => DayOfWeek::Tuesday
<apeiros_> in that case, you wouldn't even need to do anything special
<apeiros_> otherwise you have to implement #hash and #eql?
SuperrMann has joined #ruby
Banistergalaxy has joined #ruby
grzywacz has joined #ruby
_nitti_ has joined #ruby
<dukedave> apeiros_: Ah excellent, I didn't know that was the name for that pattern
Slivka has joined #ruby
Slivka has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
proper337 has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
ckrailo has joined #ruby
nat2610 has quit [Ping timeout: 255 seconds]
nat2610 has joined #ruby
<elementz> apeiros_: i am starting to question my sanity: https://gist.github.com/8ad726152607940c8a76 still fighting with strip. would you mind having a look again?
Jackneill has quit [Quit: Jackneill]
<apeiros_> dukedave: no idea whether that's an official name, it's just how I call it :)
nat26101 has joined #ruby
<dukedave> apeiros_: Wikipedia agrees with you! :)
<dukedave> But little commentary on its use in Ruby
Steppen has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros_> elementz: might not be a string.
<apeiros_> I look
Mystique has joined #ruby
nat2610 has quit [Ping timeout: 252 seconds]
<Mystique> hey all sorry to bother..
<Mystique> I have inherited someone's old redmine install; and I am not a ruby person..
<apeiros_> elementz: na, it's a string, but not a space
<Mystique> apparently it was running under thin (on freebsd) with a custom prefix
<apeiros_> "Mo ".unpack("U*") => [77, 111, 160]
<Mystique> there is a thin-redmine.yml that starts the app; but
<apeiros_> " ".unpack("U*") # => [32]
<Mystique> errors out saying 'not the owner'
<apeiros_> 32 != 160
<Mystique> starting redmine via webrick works, but no 'custom prefix'
<apeiros_> I think that might be a non-breaking space (&nbsp;)
<apeiros_> @ elementz
Xeago has joined #ruby
<Mystique> google has zero results for 'thin error while processing request: not owner'
<elementz> apeiros_: oh, man. no wonder this breaks. any recommendations on how i could fix it?
mikepack has joined #ruby
doug has left #ruby [#ruby]
<apeiros_> elementz: use regex & \p{Space}
schaerli has quit [Remote host closed the connection]
havenn has joined #ruby
<elementz> apeiros_: ok. thx again.
<apeiros_> "Mo ".gsub(/\A\p{Space}*|\p{Space}*\z/, '') # => "Mo"
havenn has quit [Remote host closed the connection]
<elementz> apeiros_: even better, :)
havenn has joined #ruby
<apeiros_> or define it as ustrip (unicode strip)
<elementz> ok will try
arya has quit [Ping timeout: 244 seconds]
DatumDrop has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
supergiantrobot has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
margle has joined #ruby
Morkel_ has quit [Quit: Morkel_]
beardyjay has quit [Ping timeout: 252 seconds]
_nitti_ has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
Goles has quit [Ping timeout: 252 seconds]
rakuN has quit [Quit: rakuN]
Takehiro has joined #ruby
KevinSjoberg has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
bradhe has quit [Remote host closed the connection]
bel3atar has quit [Ping timeout: 246 seconds]
cableray has joined #ruby
erichmenge has left #ruby [#ruby]
elico has quit [Quit: elico]
erichmenge has joined #ruby
gbchaosmaster has joined #ruby
_nitti has joined #ruby
mathie has joined #ruby
d34th4ck3r has quit [Ping timeout: 252 seconds]
twopoint718 has quit [Ping timeout: 255 seconds]
Takehiro has quit [Ping timeout: 255 seconds]
Mystique has left #ruby [#ruby]
Beoran_ has joined #ruby
mathie has quit [Ping timeout: 245 seconds]
Beoran__ has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
KarlHung1s is now known as KarlHungus
Neomex has joined #ruby
rakl has quit [Quit: sleeping]
margle has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
Neomex has quit [Client Quit]
ltsstar has quit [Quit: ltsstar]
geekbri has joined #ruby
<Xeago> anyone know a tutorial on ruby http stuff?
<Xeago> or nice gems?
<wildcard0> rails? :)
Choobie has joined #ruby
bel3atar has joined #ruby
dmiller_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<invisime> not rails. sinatra. :-P
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
nemesit has joined #ruby
aquaranto has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<wildcard0> bah, too heavywight. HttpServer !
<wildcard0> i like of code
bradhe has joined #ruby
<wildcard0> er 1 line of code
<wildcard0> i can type
rakl has joined #ruby
DatumDrop has quit [Remote host closed the connection]
postmodern has joined #ruby
davidcelis has joined #ruby
Goles has joined #ruby
eldariof has quit []
<postmodern> rking, all licenses require you include the license
bel3atar has quit [Ping timeout: 252 seconds]
<postmodern> rking, also copyright requires you at least include Name/Date/Author
postmodern has quit [Client Quit]
<rking> postmodern better run.
<rking> That's some ignorant stuff right there.
reset has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
<rking> postmodern: Totally false.
<rking> You're saying I have no right to release something and tell people they don't have to include my name on it? C'mon. Use some friggin common sense.
<postmodern> rking, all licenses must include LICENSE/COPYING file is what i meant
<postmodern> rking, otherwise it's considered all rights reserved code
noric has joined #ruby
<rking> So let's say I do echo Public domain. Do what you want. > LICENSE
<rking> Then you take that code and use it however you want, private commercial, say. And then I come back and try to sue you for copyright violation.
DrShoggoth has quit [Ping timeout: 246 seconds]
<rking> Under what court of law will I win that lawsuit?
dmiller_ has quit [Remote host closed the connection]
dmiller_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<rking> postmodern: Right. The default copyright is all rights reserved.
<rking> But I can (and do) exercise that right to give that right away.
<postmodern> rking, yep, copyright and common sense don't mix :P
ryanlecompte has quit [Ping timeout: 246 seconds]
<rking> No, so far we haven't mentioned any non-common sense thing.
jsilver has quit [Read error: Connection reset by peer]
osvico has joined #ruby
<rking> It's good that rights are reserved by default.
ryanlecompte has joined #ruby
c0rn has joined #ruby
axl_ has quit [Quit: axl_]
<noric> I'm writing a non-graphical game engine in ruby and have performance problems. The game is a server and the process lifetime is measured in weeks. I've heard that GC can be a bottleneck for long-running 1.9.2 processes which create and destroy objects on a sub-second basis. I prefer ruby but am also considering python or the JVM. What's the deal with GC and 1.9.2 perf for long-running processes?
funnyfingers has joined #ruby
blaxter has quit [Quit: foo]
monkegjinni has joined #ruby
musl has quit [Quit: WeeChat 0.3.9.2]
<C0deMaver1ck> noric: you'll probably be better off running it on JRuby
dankest is now known as dankest|away
Virunga has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
burgestrand has joined #ruby
bel3atar has joined #ruby
tenmilestereo has quit [Quit: Leaving]
<funnyfingers> When sending a multipart/form-data post to ruby as cgi, should I be able to stream in bytes or does it have to be encoded. If encoded, do I have to change the encoding when I hit a binary file?
workmad3 has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
<noric> C0de: I know JRuby has true parallelism vs the GIL in MRI. I see it now supports 1.9 (I'm a bit outdated :). In broad strokes, will JRuby give me the stability and perf I need for a long-running game server with lots of I/O, mem, cpu, and object creation/destruction?
x82_nicole has joined #ruby
<noric> C0de: Simply, do any red flags come to mind?
lampe2 has joined #ruby
<noric> C0deMaverick: ^
elementz_ has joined #ruby
elementz_ has quit [Changing host]
elementz_ has joined #ruby
booski is now known as dimka
axl_ has joined #ruby
elementz has quit [Read error: Operation timed out]
bel3atar has quit [Ping timeout: 244 seconds]
arya_ has joined #ruby
dmiller_ has quit [Remote host closed the connection]
<havenn> noric: If you are worried about 1.9 GC, install falcon patch for Ruby 1.9.3 or use 2.0.0-dev then no prob.
workmad3 has quit [Ping timeout: 252 seconds]
Xeago has quit [Read error: Connection reset by peer]
<havenn> noric: JRuby has a slowish startup time and first few operations can cost but very, very stable.
artm has quit [Quit: artm]
Xeago has joined #ruby
<havenn> 1.9.3 --fatch falcon or JRuby 1.7.1 are both very nice options.
<davidcelis> keep in mind the falcon patch is not applicable to p327
axl_ has quit [Client Quit]
<eka> davidcelis: not it is AFAIK
<havenn> s/fatch/patch
donkdonk has left #ruby [#ruby]
<eka> havenn: also GFLAGS is good option to speed up ruby
<davidcelis> eka: i dont know what you just said
arya has quit [Ping timeout: 244 seconds]
<eka> davidcelis: *now it is... lol
jenrzzz has joined #ruby
<davidcelis> oh snap
<noric> havenn, eka: any reason to use 1.9.3 falcon / optimizations versus jruby for my long-running process?
love_col_ has joined #ruby
jrunning2 has joined #ruby
<eka> noric: don't know... never used jruby... maybe 1.9.3 compatibility? does jruby support 1.9.3?
<havenn> noric: Not really. Both are performant and stable.
<noric> looks like they do now
<noric> thanks guys, much appreciated.
<havenn> eka: Jruby support for 2.0.0 is just around the corner.
<eka> noric: you can also try rbx.. slow startup but it gets faster on the long run (didn't test it myself)
<eka> havenn: ok... didn't know
Goles has quit [Quit: Computer has gone to sleep.]
<havenn> Heck, even Maglev 1.9 support is coming along nicely, I hear. :)
<eka> havenn: so no differences... only that jruby support proper threading :)
dmiller has joined #ruby
arya has joined #ruby
Goles has joined #ruby
Naeblis has quit [Quit: Leaving]
<pr0ton> so i had a question
timonv has joined #ruby
DrShoggoth has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
brianpWins has quit [Quit: brianpWins]
bel3atar has joined #ruby
answer_42 has quit [Ping timeout: 240 seconds]
jwg2s has joined #ruby
elementz_ has quit [Quit: leaving]
<pr0ton> i'm writing a ruby proxy that makes requests to external servers
<pr0ton> and then sends back the response
<pr0ton> so i'm using thin
savage- has joined #ruby
<pr0ton> but something weird is happening, i lsof'd the process
<pr0ton> and found that there are only 30 inbound connections to this said proxy
<pr0ton> maximum connections is the default at 1024
cascalheira has joined #ruby
ryanlecompte has quit [Ping timeout: 265 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lampe2 has quit [Quit: Leaving.]
pizzahead has joined #ruby
jackbrownhf has joined #ruby
Jasko2 has quit [Read error: Connection reset by peer]
Coolhand|laptop has quit [Read error: Connection reset by peer]
Jasko2 has joined #ruby
lampe2 has joined #ruby
<davidcelis> eka: Huh, I tried using burke's updated gist to patch 327 and it gets build failures, just like it was before
cmarques has quit [Ping timeout: 252 seconds]
<eka> davidcelis: I did it with rvm
joeycarmello has quit [Ping timeout: 255 seconds]
<davidcelis> And it installed p327?
affix has quit [Ping timeout: 260 seconds]
<eka> davidcelis: yes
<eka> let me see
beilabs has quit [Remote host closed the connection]
<davidcelis> hm
<eka> davidcelis: yes
<eka> davidcelis: I used --patch falcon
<eka> davidcelis: what time this gives you? time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
riley526 has joined #ruby
Coolhand|laptop has joined #ruby
riley526 has quit [Client Quit]
<davidcelis> eka: it didn't install at all; like it said, there are build failures
joeycarmello has joined #ruby
bel3atar has quit [Ping timeout: 260 seconds]
<davidcelis> the patch fails for me using rbenv on OS X
riley526 has joined #ruby
<eka> davidcelis: not using rbenv... rvm on osx also
<davidcelis> :(
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
perun_ has quit [Ping timeout: 248 seconds]
mathie has joined #ruby
<pizzahead> anyone have a suggestion for an alternative to bluepill?
stkowski has quit [Quit: stkowski]
<eka> pizzahead: you want to make daemon scripts? is there any reason not to do a normal one and use supervisord?
pothibo has joined #ruby
<eka> pizzahead: I see... you can try supervisord... works with any executable
rosscooperman has joined #ruby
affix has joined #ruby
elkclone has quit [Quit: It's never too late to unplug and run.]
mathie has quit [Ping timeout: 244 seconds]
snearch has joined #ruby
ryanf has joined #ruby
geekbri has quit [Remote host closed the connection]
<pizzahead> eka: we've had bluepill controlling rails on our servers but I'm seeing an issue where it doesn't seem to be aware that it is spawning multiple processed of bluepilld and unicorn. after some time one process of each is running but it looks like it's delaying startup time and I'd like to fix it. bluepill has been handy with respawning unicorn when there have been memory or cpu issues detected.
funnyfingers has left #ruby [#ruby]
<pizzahead> eka: I've found other mentions of it and there seems to be patches up to 0.60 that supposedly help but I can't figure out why it's happening and upgrading to 0.60 didn't help
daniel_- has quit [Ping timeout: 252 seconds]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
cakehero has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bel3atar has joined #ruby
jlast has quit [Remote host closed the connection]
x82_nicole has joined #ruby
musl has joined #ruby
CamonZ has joined #ruby
perun_ has joined #ruby
cakehero has quit [Client Quit]
hotovson has quit [Remote host closed the connection]
<Eiam> is there such a thing as a ruby audio book? =0 I wonder if it would do me any good
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<wildcard0> Eiam: code samples are hard in audio
<Eiam> I suddenly find myself having 1+ hour commutes now that my motorcycle is gone and thought gosh, I sould spend that time doing something useful
twopoint718 has quit [Ping timeout: 250 seconds]
<Eiam> yeah, i figured it could have some problems..
<maetthew> I'm new to Ruby and I cannot figure out why this won't save with DataMapper. I included the console message and the concerned files in this Gist. The #save in mention is located at line 93 in tf2mixbot.rb -- https://gist.github.com/4226004
<waxjar> there are podcasts (ruby rogues i believe)
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
gridaphobe has joined #ruby
mark_locklear has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
byennen has joined #ruby
niklasb has joined #ruby
<waxjar> maetthew, try not to nest your if-statements so deeply. it reads incredibly annoying and is generally not necessary
<maetthew> waxjar, I know this is due to my noob-status :)
<maetthew> I don't know how it should be done otherwise
<Eiam> could have a handle_response method
<Eiam> that encapsulates all that logic for you, it looks like almost the same set of cases with slightly diffferent language
Mon_Ouie has quit [Ping timeout: 240 seconds]
<Eiam> could use a case as those don't have as much indention involved in them
<Eiam> case/switch
beiter has quit [Quit: beiter]
pothibo has quit [Quit: pothibo]
jrunning2 has quit [Ping timeout: 244 seconds]
<apeiros_> oy, wow, 800 ppl in the channel?
<apeiros_> awesome
byennen has quit [Remote host closed the connection]
<Eiam> I see success, something went wrong, already running, you need to sign up, invalid informatin
<Eiam> you could move ALL those failure cases to a single case
<waxjar> maetthew: are you sure line 93 is ever executed though? it seems like no error is raised
lindenle has quit [Ping timeout: 260 seconds]
pothibo has joined #ruby
<maetthew> waxjar, if i do a "if @signup.save puts "done" else puts "fail" end"
<maetthew> it returns "fail"
daniel_- has joined #ruby
rosscooperman has quit [Quit: rosscooperman]
Mon_Ouie has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
<waxjar> might be some constraints of the db
osvico has quit [Ping timeout: 276 seconds]
<waxjar> too long a string or something.
<wildcard0> check your log to see if the db is returning errors
jenrzzz has quit [Ping timeout: 250 seconds]
<wildcard0> it could be just a typo in a yml file or something
<maetthew> wildcard0, the log of sqlite3 it self?
<maetthew> there is no yml files btw
<wildcard0> im not sure how you're calling the db
<wildcard0> so...at some point your db connection should return data. you should take a look at that
L1 has joined #ruby
L1 has quit [Changing host]
L1 has joined #ruby
jenrzzz has joined #ruby
Zai00 has joined #ruby
<wildcard0> also, verify you can run the same query on the command line with the same user/pass
<waxjar> ah, that's it probably, you don't connect to a db anywhere.
<maetthew> waxjar; wildcard0: The database connection looks like this
<maetthew> DataMapper::Logger.new($stdout, :debug)
<maetthew> DataMapper.setup(:default, 'sqlite:///Users/ma/dev/ruby/tf2mixbot/database.db')
<maetthew> my other methods work with the database. it's just this method I'm having problems with for some reason
<wildcard0> do other methods write to it?
<maetthew> yes
<maetthew> cmd_signup and cmd_setupmix works as expected
<wildcard0> sec, looking at the datamapper docs
snearch has quit [Quit: Verlassend]
<maetthew> thanks
<waxjar> ah ok, well i think you're giving it some data that the database doesn't like. you could try checking the errors on @singup, see if any validations failed
<wildcard0> where does that :debug stuff go?
<wildcard0> it will probably give you clues
<waxjar> should go to stdout
workmad3 has joined #ruby
<maetthew> waxjar, hmm i'm not following. How would i go about to check errors on @signup?
Catnaroek is now known as lolcathost
mildfate has joined #ruby
<pr0ton> waxjar: i have a system design question
sailias has quit [Read error: No route to host]
<pr0ton> can you help me?
grzywacz has quit [Ping timeout: 248 seconds]
<mildfate> I have a hash which represents multiple metro stations. The key-value pairing is station_name -> Station Object. Within each Station Object is the station's name (in a field). Is this poor practice? I.e. having the redundancy of the station name mapping to the station object which already has a station name field?
<mildfate> Is there a pattern that resolves this simply?
<gbchaosmaster> pr0ton: Just ask, if anyone can help they will.
<pr0ton> okay
<pr0ton> so i'm writing a ruby service that does this
Nimsical has joined #ruby
bbttxu has quit [Quit: bbttxu]
<wildcard0> mildfate: i see no problem with that if it work with your application
<pr0ton> it uses httpclient to make a request and it serves back the response
<pr0ton> i'm using nahi's HTTPClient and making async calls (which i believe runs it in a ruby thread)
<pr0ton> i've written it to use sinatra and thin
<mildfate> wildcard0: Ok, it just felt weird writing it that way
<pr0ton> now thin's config says it's set to a maximum of 1024 connections
savage- has quit [Remote host closed the connection]
<pr0ton> but when i lsof the process, and look for open TCP connections, there are only 30 inbound connections
<pr0ton> and 5-6 outbound connections
<pr0ton> shouldn't i be getting better throughput ?
<wildcard0> mildfate: you could use a symbol if you wanted to save space :)
<mildfate> nah
davidcelis has quit [Quit: K-Lined.]
undersc0re97 has quit [Quit: Leaving]
emmanuelux has joined #ruby
<pr0ton> gbchaosmaster: my alternative is to spin up multiple instances (thin start -s50) and then use something like nginx to load balance (alternately it's really easy for me to modify my program to pick a random port from the range of created instances
Zai00 has quit [Quit: Zai00]
tommyvyo has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
dankest|away is now known as dankest
jlwestsr has quit [Quit: Ex-Chat]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
pavilionXP has joined #ruby
pyr0commie has joined #ruby
alx- has quit [Quit: alx-]
dankest has quit [Quit: Linkinus - http://linkinus.com]
Vert has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby
Animawish has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
<pr0ton> nobody ?
baphled has quit [Ping timeout: 252 seconds]
muloka has quit []
jlast has quit [Ping timeout: 244 seconds]
axl_ has joined #ruby
frem has joined #ruby
<Animawish> is it possible to use box drawing characters in a ruby program that i'm running in mac os terminal?
Banistergalaxy has quit [Ping timeout: 240 seconds]
davidcelis has joined #ruby
baphled has joined #ruby
Banistergalaxy has joined #ruby
<havenn> pr0ton: httpclient doesn't support async requests
<pr0ton> havenn: yes it does
<havenn> pr0ton: Touche, yup - you are correct.
<pr0ton> it puts it in a thread
<havenn> pr0ton: Are you using a GILless Ruby?
<pr0ton> unfortunately not
<pr0ton> Ruby1.9.3 which has GIL from what i know
jrajav has joined #ruby
<pr0ton> besides isn't it a Ruby green thread
<pr0ton> so why does it even matter ?
<pr0ton> i can use fibers :|
igro has joined #ruby
<havenn> pr0ton: I'm curious how Puma performs with httpclient.: http://puma.io/
<pr0ton> i tried it
<pr0ton> it just locks up :\
<pr0ton> like stops making requests after a while
<pr0ton> i have no idea why
<havenn> pr0ton: Hehe. And Unicorn?
<Mon_Ouie> Ruby 1.9 uses native, as opposed to green, threads
<pr0ton> haven't tried
<pr0ton> Mon_Ouie: really?
<pr0ton> et me chcek
<havenn> pr0ton: I think you're thinking 1.8.
<pr0ton> so i chcked via "ps -eLf" and it shows 3 threads
<pr0ton> i have more than 3 threads if it were using real threads
<Mon_Ouie> Yes. And if one of them is busy doing IO, they can effectively run in parallel (because the lock gets released before some IO operations)
Banistergalaxy has quit [Remote host closed the connection]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<pr0ton> yes, that is the case
<pr0ton> 3 threads doesn't indicate a real thread to me though
<pr0ton> perhaps i'm doing something wrong ?
<havenn> pr0ton: Maybe use Unicorn with MRI? Or can you try Thin on JRuby?
_nitti has quit [Remote host closed the connection]
<pr0ton> you've got any tutorials for me to test unicorn ?
<havenn> pr0ton: What platform?
<pr0ton> ubuntu -> prod
<pr0ton> local is mac
frihd has quit [Quit: Leaving.]
senj has joined #ruby
mathie has joined #ruby
<pr0ton> ty
<pr0ton> btw weird stuff
<pr0ton> i changed it from Sinatra::Base to Sinatra::Application
<pr0ton> a
<havenn> pr0ton: Most of that is Nginx... but unicorn setup is pretty dimple.
<pr0ton> nd lowered my concurrent connections to 256
<pr0ton> seems to be moving much much faster!
<havenn> s/dimple/simple
<pr0ton> i think we've got nginx installed
<pr0ton> lol. dimple is cute, and probably likable hahahahah
monkegjinni has quit [Remote host closed the connection]
<havenn> pr0ton: An advantage of Unicorn on MRI is it runs in forks not threads, doesn't care about thread safety.
<pr0ton> interesting
<pr0ton> so i believe there is a parent process
<pr0ton> and it forks child processes
<pr0ton> and communicates using unix sockets ?
jrist is now known as jrist-afk
<havenn> pr0ton: Yeah, so no GIL problems.
<pr0ton> true
<havenn> pr0ton: More memory.
Goles has quit [Quit: Out.]
maletor has quit [Quit: Computer has gone to sleep.]
<pr0ton> i'd presume that won't be an issue
adambeynon has joined #ruby
<havenn> pr0ton: If you want evented on top of Unicorn, there is Rainbows! too. http://rainbows.rubyforge.org/
<pr0ton> holy god, now i'm confused
<havenn> pr0ton: A Thin-like event machine... that runs in forks. :P
IceDragon has joined #ruby
<havenn> pr0ton: Unicorn behind Nginx is a good MRI setup. :)
<pr0ton> um
mathie has quit [Ping timeout: 264 seconds]
<wildcard0> i use that in production right now
mildfate has quit [Quit: Leaving.]
<pr0ton> i'm wondering if i should just run thin with "-sX"
<havenn> pr0ton: Ooh, there was a good Rubyconf talk on Unicorn internals. Sec.
ephemerian has joined #ruby
<pr0ton> and then pick a random port from the one that accesses my proxy
mildfate has joined #ruby
dankest has joined #ruby
osvico has joined #ruby
<pr0ton> wildcard0: you use unicorn + nginx + rainbows in prod ?
<wildcard0> not rainbows. just unicorn + nginx
jslowe has joined #ruby
<havenn> pr0ton: Rainbows! is used instead of Unicorn (IS Unicorn plus Evented IO).
<pr0ton> Ah i see
kirun has quit [Quit: Client exiting]
<pr0ton> interesting
<pr0ton> i was looking at the tutorial
<havenn> pr0ton: Unicorn behind Nginx handles the fact that Unicorn isn't for slow clients.
<pr0ton> i see
<pr0ton> so unicorn is probably a bad choice for me
<havenn> pr0ton: Nginx handles load balancing and slow client, unicorn serves up the fast stuff.
<pr0ton> got it
maletor has joined #ruby
timonv has quit [Remote host closed the connection]
<mildfate> if I have 3.times{}, can I grab the "counter" in order to use it in my code block?
<mildfate> I want to use 1, 2, 3...
<havenn> mildfate: 3.times { |n| puts n }
Averna has quit [Quit: Leaving.]
jrunning1 has joined #ruby
<havenn> mildfate: Will be 0 1 2 though. :P
<wildcard0> mildfate: 3.times.with_index
<wildcard0> it will be 0-2 anyway though
phantasm66 has quit [Ping timeout: 264 seconds]
<wildcard0> though (45..50).each_with_index will be different
<havenn> mildfate: 1.upto(3) { |n| print n } # 123
<havenn> mildfate: 3.times { |n| print n + 1 } # 123
Nimsical has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
<havenn> mildfate: Try: [1,2,3].each_with_index { |number, index| puts "#{number} is index #{index}"
<mildfate> 1.upto works
u89 has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
SJr has quit [Excess Flood]
axl_ has joined #ruby
SJr has joined #ruby
frem has quit [Ping timeout: 260 seconds]
arya has quit []
jrajav has quit [Quit: I tend to be neutral about apples]
yaymukund has joined #ruby
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
SJr has quit [Excess Flood]
igro has quit [Quit: Computer has gone to sleep.]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
SJr has joined #ruby
stkowski has joined #ruby
baphled has quit [Ping timeout: 240 seconds]
Coolhand|laptop has quit [Ping timeout: 255 seconds]
igro has joined #ruby
<yaymukund> dumb question. I'm just trying to use my lib/myapp.rb in bin/myapp.rb. What am I doing wrong? https://gist.github.com/4831f4ee69a330847fdc
BoomCow has left #ruby ["Leaving"]
<yaymukund> The require seems to fail. if I open up irb and try to `require 'myapp'`, that fails too.
DrShoggoth has joined #ruby
froy has quit [Quit: kablam!]
<yaymukund> oo looks like bundle exec myapp works. I am using rbenv
jrunning1 has quit [Ping timeout: 264 seconds]
<apeiros_> yaymukund: lib is not in the load path
<apeiros_> $LOAD_PATH
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
mildfate has quit [Quit: Leaving.]
g-ram has joined #ruby
<postmodern> yaymukund, ruby -Ilib bin/command
<apeiros_> +1
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
digitalcakestudi has quit [Read error: Operation timed out]
<yaymukund> doesn't the $LOAD_PATH stuff in my gemspec fix that?
Animawish has left #ruby [#ruby]
emergion has joined #ruby
<postmodern> yaymukund, no, the gemspect is only loaded when building the gem
digitalcakestudi has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
jrist-afk is now known as jrist
<yaymukund> ah
<waxjar> in development run with the -I flag like postmodern said, if it's installed in a gem, the lib is automatically in the load path, so require 'whatever' will work
<yaymukund> gonna test a bit more, I think that makes sense
<waxjar> *installed as a gem (e.g. production)
solidoodlesuppor has quit [Remote host closed the connection]
<yaymukund> so if I've already run, `gem install myapp`, shouldn't the lib be in the load path?
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<pr0ton> havenn: i'm running into this weird issue
<pr0ton> where it's throwing load errors when i'm running rainbows
<pr0ton> k nvm! my bad
twopoint718 has quit [Ping timeout: 250 seconds]
<waxjar> yes yaymukund, but with rbenv you have to do some reloading stuff or something
<waxjar> i usually just open a new shell
<yaymukund> still has the same error, hm
nari has joined #ruby
SuperrMann has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Remote host closed the connection]
<yaymukund> `gem list` shows it
hsbt_away is now known as hsbt
jonahR has joined #ruby
Xeago has joined #ruby
<postmodern> yaymukund, what does `which myapp` show? and what is it's contents?
<pr0ton> okay something strange is happening after i'm running with rainbows
stopbit has quit [Quit: Leaving]
<yaymukund> ./bin/myapp, and it's in the gist https://gist.github.com/4831f4ee69a330847fdc#file_bin_myapp
<yaymukund> just `require 'myapp'`, which errors out
jobicoppola has joined #ruby
jgarvey has quit [Quit: Leaving]
<postmodern> yaymukund, ruby -Ilib ./bin/myapp
codingenesis has joined #ruby
<yaymukund> that fails on a later line. hold on, I think it might be because I have a dash in the gem name :x
<yaymukund> didn't realize that was important, oops
emergion has quit [Quit: Computer has gone to sleep.]
<gbchaosmaster> yaymukund: Bundler makes running your executables easy. After you've ran `bundle install`, you can run `bundle exec myapp`.
Adget has quit [Remote host closed the connection]
<gbchaosmaster> yaymukund: You'll want a simple Gemfile that references the gemspec if you wish to do that:
<gbchaosmaster> source :rubygems
<gbchaosmaster> gemspec
jmeeuwen_ has joined #ruby
pcarrier has quit []
nerd has quit [Ping timeout: 260 seconds]
<postmodern> bundler isn't necessary if your app has 1-2 dependencies
jwg2s has quit [Quit: jwg2s]
<postmodern> ruby -Ilib ./bin/command should work
<yaymukund> ruby -Ilib ./bin/command works
<postmodern> also once the gem is installed, the command should just work (tm)
<yaymukund> but I'm trying to figure out why I need to do that :p
daniel_- has quit [Ping timeout: 240 seconds]
<yaymukund> the gem *is* installed
<yaymukund> see the gist
<postmodern> yaymukund, because lib isn't automatically added to $LOAD_PATH
jmeeuwen has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<postmodern> yaymukund, rubygems handles that once the gem is installed
codingenesis is now known as nerd
jmeeuwen_ is now known as jmeeuwen
<waxjar> yaymukund, try opening a new shell window/tab and running myapp
<postmodern> yaymukund, once installed "myapp" should just work
bronson has quit [Quit: bronson]
mpereira has quit [Ping timeout: 252 seconds]
alee_ has quit [Remote host closed the connection]
<yaymukund> waxjar: that still didn't work
moted has quit [Remote host closed the connection]
daniel_- has joined #ruby
daniel_- has quit [Client Quit]
<yaymukund> ahh now we're getting somewhere
<yaymukund> I removed the dash, opened new window, ran which myapp and it spat out: /Users/mukund/.rbenv/shims/twitchdb
<yaymukund> er /Users/mukund/.rbenv/shims/myapp
syamajala has joined #ruby
<postmodern> yaymukund, right, since rbenv adds shims for every bin script
theRoUS has joined #ruby
<postmodern> yaymukund, which requires you run `rbenv rehash` after installing executables
<postmodern> yaymukund, i'd recommend using RVM, rbfu or chruby to avoid shims
<yaymukund> right, same error when I run it though
vasile has quit [Ping timeout: 264 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
<yaymukund> let me install it globally and see if that works
axl_ has quit [Read error: Connection reset by peer]
<waxjar> ah, you didn't install the gem globally?
<yaymukund> no, I was using rbenv
<waxjar> did you install it with gem install myapp?
<postmodern> yaymukund, RVM, rbfu, chruby don't use shims
<yaymukund> waxjar: yes
<waxjar> because that should install it globally
x82_nicole has joined #ruby
<waxjar> for that specific ruby version, that is
axl_ has joined #ruby
willob has quit [Quit: Leaving.]
<yaymukund> oh sorry, yes, I installed it globally for the rbenv version
<yaymukund> I'm now trying to install it for my system version
emergion has joined #ruby
adamnbowen has quit [Quit: Textual IRC Client: www.textualapp.com]
ner0x has quit [Quit: Leaving]
Nisstyre has joined #ruby
alee has joined #ruby
khimera has quit [Quit: khimera]
jrist is now known as jrist-afk
workmad3 has quit [Ping timeout: 265 seconds]
ninp0 has joined #ruby
_nitti has joined #ruby
carlyle has quit [Remote host closed the connection]
jsilver has joined #ruby
jonahR has quit [Quit: jonahR]
slash_me has quit [Quit: Lost terminal]
nemesit has quit [Quit: Leaving...]
ryanf has quit [Ping timeout: 264 seconds]
jharris has quit [Quit: WeeChat 0.3.8]
mathie has joined #ruby
<waxjar> yaymukund, i think i know your problem
_nitti has quit [Ping timeout: 264 seconds]
<waxjar> have you committed lib/myapp.rb to the git repository?
<pr0ton> havenn: what rainbows concurrency model do you recommend ?
v0n has quit [Ping timeout: 264 seconds]
<yaymukund> oooo, I'm using ls-files
<yaymukund> this was in radar's guide too!
<yaymukund> waxjar: you're a genius
<yaymukund> let me try it
NiteRain has quit [Ping timeout: 246 seconds]
<waxjar> try Dir.glob('lib/*.rb'), it works wonderfully
tPl0ch has quit [Quit: Verlassend]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<davidcelis> ^
<yaymukund> waxjar: wooo! that worked :D
<waxjar> nice :D
havenn has quit [Remote host closed the connection]
<davidcelis> `git ls-files` is a neat trick but you end up adding unncessary files to the .gem package, like all the tests and shit
<gbchaosmaster> waxjar: Dir["lib/**/*.rb"] is a little more complete.
<yaymukund> haha thank you. I was beginning to think I was going nuts
mathie has quit [Ping timeout: 260 seconds]
<gbchaosmaster> Depends on the source structure.
<gbchaosmaster> Dir::[] being just an alias to Dir::glob. Cleaner IMO.
daniel_hinojosa has quit [Ping timeout: 260 seconds]
* apeiros_ uses Dir[] if he wants the return value, and Dir.glob to iterate
<apeiros_> ([] can't take a block, glob can)
<gbchaosmaster> apeiros_: Good point there.
<apeiros_> I always cringe when I see Dir.glob(foo).each :)
<apeiros_> like, *dude*, do you foo.each.each too? because you know, you totally can do that! :D
<gbchaosmaster> My personal Ruby cringe is at arr.map { foo }.flatten.
<waxjar> lol
<waxjar> ^ guilty
banisterfiend has quit [Remote host closed the connection]
<gbchaosmaster> Array#flat_map, for the lazy.
<apeiros_> gbchaosmaster: ah, yes. but with that, you at least have the excuse of old code
<apeiros_> flat_map hasn't been around that long
<gbchaosmaster> apeiros_: That's true.
<apeiros_> but yes
<shevy> hmmm
<apeiros_> any new code - totally cringeworthy :)
<shevy> flat_map combines flatten and map? :\
<gbchaosmaster> shevy: Yep.
<apeiros_> shevy: yes, flatten(1) actually
<shevy> weird...
<davidcelis> werd*
C0deMaver1ck has quit [Remote host closed the connection]
<gbchaosmaster> Does anyone know if it's a performance improvement over map.flatten, off the top of their head?
<shevy> going to grep through my code whether I ever had to combine these two
<gbchaosmaster> Or is it just sugar?
<apeiros_> gbchaosmaster: no idea, but I doubt that it is significant
<shevy> oh I have, once!
<davidcelis> gbchaosmaster: write a benchmark, but it's probably not different
<shevy> @duplicates.flatten!.map! {|_| _ = '--'+_}
<davidcelis> or at least not different enough
<waxjar> if it doesn't have any performance benefit i find #map{ … }.flatten a lot more readable than #flap_map to be honest
<davidcelis> shevy: that's different
<davidcelis> shevy: you're flattening and then mapping
<shevy> hmm
<shevy> waxjar flap_map ??
<davidcelis> shevy: flat_map does a map and then flattens the result by one
<gbchaosmaster> shevy: #flat_map is the equivalent to mapping, then flattening the result.
<shevy> aaaah ok
marr has quit [Ping timeout: 264 seconds]
<shevy> waxjar, what's with the flap_map there ... ;)
<waxjar> lol, typo
piotr has quit [Ping timeout: 240 seconds]
<gbchaosmaster> ack "\.map\s+\{.*\}\.flatten"
<gbchaosmaster> ;)
d2dchat has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 255 seconds]
d2dchat has joined #ruby
d2dchat has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
AlSquirrel has joined #ruby
<yaymukund> is that 1.9?
<yaymukund> oh no, it's been around for awhile
<yaymukund> wow, tmyk. I should idle here more
yakko has joined #ruby
ryanf has joined #ruby
<davidcelis> flat_map is 1.9
<yaymukund> oh, OH. 1.9 has been around for awhile.
friskd has joined #ruby
AlSquire has quit [Ping timeout: 240 seconds]
<shevy> indeed, not works on the ancient 1.8.x NoMethodError: undefined method `flat_map' for #<Array:0xb71c8704>
<yaymukund> I just saw a thread from '09 and incorrectly assumed it was 1.8.x.
moted has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dross has quit [Ping timeout: 260 seconds]
_alejandro has quit [Remote host closed the connection]
capaterra has quit [Quit: Leaving]
banisterfiend has joined #ruby
vasile has joined #ruby
dross has joined #ruby
xclite has quit [Remote host closed the connection]
<apeiros_> @ waxjar, gbchaosmaster, shevy - for an array(100){array(5)} flat_map is ~2x faster
<apeiros_> than map.flatten(1)
<dukedave> I'm trying to write a Hash subclass, and I'd like to do this in initialize: super { |h, k| [] }
<dukedave> But I get "wrong number of arguments"
<dukedave> What gives?
<apeiros_> dukedave: full code please
<apeiros_> on gist
<dukedave> Is that not the correct calling syntax?
<apeiros_> and full error
<shevy> aha
<apeiros_> dukedave: note that super { … } will pass on all arguments passed to initialize
<shevy> ok, going to remember that flat_map is fast
<apeiros_> you need super() { … } if you don't want that
otters has quit [Ping timeout: 260 seconds]
<apeiros_> (yes, it's a special case)
pac1 has joined #ruby
<dukedave> apeiros_: Bingo
<dukedave> Thanks
<dukedave> That's a good one
vasile has quit [Ping timeout: 265 seconds]
<apeiros_> dukedave: but for future reference - full errors, full pastes (of minimal reproduceable cases)
<dukedave> apeiros_: Roger that
<waxjar> yea, it seems significantly faster apeiros_, good to know (https://gist.github.com/4229547)
nari has quit [Ping timeout: 264 seconds]
<apeiros_> waxjar: 1_000.times.map --> Array.new(1_000) { … }
GoGoGarrett has quit [Remote host closed the connection]
<apeiros_> less to time, clearer about intent