apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
eka has joined #ruby
asteros has quit [Client Quit]
kenneth has joined #ruby
Soda has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 245 seconds]
econerd4ever has quit [Remote host closed the connection]
russt has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
xymbol____ has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
xymbol____ has joined #ruby
asmodlol has joined #ruby
CpuID has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
CpuID has joined #ruby
Takle_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
Takle has joined #ruby
Guest84271 has joined #ruby
tokik has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
djdarkbeat has quit [Quit: djdarkbeat]
ghostmoth has joined #ruby
Timgauthier is now known as timgauthier_away
ghostmoth has quit [Client Quit]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pika_pika has quit [Ping timeout: 258 seconds]
SirCmpwn has quit [Ping timeout: 240 seconds]
digdeep has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 272 seconds]
Takle has quit [Ping timeout: 244 seconds]
asmodlol has quit [Ping timeout: 244 seconds]
cesarstafe has joined #ruby
SirCmpwn has joined #ruby
asmodlol has joined #ruby
huddy has joined #ruby
adriancb has quit [Remote host closed the connection]
seamon has quit [Remote host closed the connection]
chishiki has quit [Ping timeout: 256 seconds]
SirCmpwn has quit [Excess Flood]
deric_skibotn has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
SirCmpwn has joined #ruby
chishiki has joined #ruby
fgo has quit [Quit: WeeChat 1.0]
rylev has quit [Ping timeout: 245 seconds]
jstad has joined #ruby
SirCmpwn has quit [Excess Flood]
SirCmpwn has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
wjimenez5271 has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 264 seconds]
asmodlol has quit [Ping timeout: 240 seconds]
graydot has joined #ruby
yeticry has joined #ruby
olivier_bK has quit [Ping timeout: 258 seconds]
Guest84271 has quit [Quit: Saliendo]
sailias has quit [Quit: Leaving.]
nicolastarzia has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
asmodlol has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
babykosh has quit [Quit: babykosh]
spyderman4g63 has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
duncannz has joined #ruby
AndyBotwin has joined #ruby
ghostmoth has joined #ruby
spyderma_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
tejas-manohar has quit [Quit: Page closed]
peterhu_ is now known as peterhu
jack_rabbit has joined #ruby
mikepack has quit [Remote host closed the connection]
adriancb has joined #ruby
startupality has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
adriancb has quit [Remote host closed the connection]
<zenspider> ericwood: you do interesting shit. where do you live? you should come to seattle.rb sometime and speak. :D
ohaibbq has quit [Remote host closed the connection]
doodlehaus has joined #ruby
nicolastarzia has joined #ruby
pu22l3r has joined #ruby
<pipework> ericwood: Tjat
<pipework> ericwood: That's pretty cool. I've never been invited for the stuff I do, you should totally go to seattle.rb if you can and present.
<zenspider> I need a working midi setup for ruby in order to fix rubygems-sing and get siren-song finally working.
<zenspider> seems like the midi gems have bitrotted or gotten Byzantine
boombadaroomba has quit [Remote host closed the connection]
jobewan has quit [Remote host closed the connection]
yfeldblum has joined #ruby
konsolebox has joined #ruby
jeff-ooh has joined #ruby
crack_user has joined #ruby
oo_ has joined #ruby
<crack_user> hello guys
pauly_oc has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
asmodlol has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
Avahey has joined #ruby
razieliyo has quit [Quit: Saliendo]
startupality has quit [Quit: startupality]
<jhass> hi
asmodlol has joined #ruby
jeff-ooh has quit [Ping timeout: 258 seconds]
jstad has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pauly_oc has quit [Read error: Connection reset by peer]
delianides has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pauly_oc has joined #ruby
startupality has joined #ruby
procat has joined #ruby
emmesswhy has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
delianid_ has quit [Ping timeout: 244 seconds]
procat has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
russt has quit [Quit: russt]
asmodlol has joined #ruby
workmad3 has joined #ruby
asmodlol has quit [Ping timeout: 258 seconds]
giuseppesolinas has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
<unholycrab> how do i install gems in a way that is accessible to a user that does not have a shell?
asmodlol has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
<unholycrab> i did gem install json --user-install as the root user, and then sudo -u nagios sh -c 'gem list' and don't see any gems
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
<jhass> --user-install installs for the current user
<unholycrab> thanks jhass
robustus has quit [Ping timeout: 250 seconds]
<pipework> Unless they need write access, just install it to a location they can read.
<jhass> specifically it installs to $HOME/.gem
<pipework> Then you might need to manage some gem path stuff.
melik has joined #ruby
karmatr0n has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has quit [Quit: ZZZzzz…]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Techguy305 has joined #ruby
Parker0 has joined #ruby
graydot has quit [Quit: graydot]
postmodern has quit [Quit: Leaving]
valeriansaliou has joined #ruby
pu22l3r has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
djdarkbeat has joined #ruby
Techguy305|2 has quit [Ping timeout: 250 seconds]
DonOtreply has quit [Quit: DonOtreply]
postmodern has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
valeriansaliou has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
pietr0 has quit [Quit: pietr0]
sailias has joined #ruby
<zenspider> sudo gem install gemname
DrCode has quit [Ping timeout: 250 seconds]
D9 has quit [Quit: Leaving]
maestrojed has joined #ruby
gsd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
reinaldob has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Crazy_Atheist has joined #ruby
dseitz has joined #ruby
yfeldblum has joined #ruby
fmcgeough has joined #ruby
icbm has joined #ruby
tkuchiki has joined #ruby
fabrice31 has joined #ruby
ghostmoth has joined #ruby
ghostmoth has quit [Client Quit]
Nigel_ is now known as G
asmodlol has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
asmodlol has joined #ruby
DrCode has joined #ruby
delianides has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
dorei has quit []
wallerdev has joined #ruby
sailias has quit [Quit: Leaving.]
bmichelsen has joined #ruby
gsd has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
drewvanstone has joined #ruby
rwy has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
sailias has joined #ruby
fivetwentysix has joined #ruby
drewvanstone has quit [Client Quit]
mikepack has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
adriancb has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
rastro has joined #ruby
chipotle_ has joined #ruby
fivetwentysix has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 255 seconds]
spyderma_ has quit []
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
jimmyhoughjr has joined #ruby
renderful has joined #ruby
babykosh has joined #ruby
babykosh has quit [Client Quit]
zz_twistedpixels is now known as twistedpixels
jenrzzz has joined #ruby
doodlehaus has quit [Remote host closed the connection]
roolo has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
studiotate has joined #ruby
mgberlin has joined #ruby
CrazyM4n has joined #ruby
jeremywrowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
eka has joined #ruby
renderful has quit [Ping timeout: 264 seconds]
stunder has quit [Remote host closed the connection]
<rastro> pretty quiet here, but here goes... anyone know of a solution to unzipping "from Unix" files as described here: https://www.ruby-forum.com/topic/149335
TDJACR has quit [Ping timeout: 264 seconds]
NotADJ is now known as TDJACR
hdrv has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 264 seconds]
Neomex has quit [Quit: Leaving]
AmirolAhmad has joined #ruby
phutchins has joined #ruby
fivetwentysix has joined #ruby
mroach has joined #ruby
dideler has joined #ruby
hyperdrive has joined #ruby
fivetwentysix has quit [Remote host closed the connection]
russt has joined #ruby
djbkd has quit [Quit: My people need me...]
russt has quit [Client Quit]
kenneth has joined #ruby
echooo1 has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
econerd4ever has quit [Remote host closed the connection]
dts|pokeball has quit [Quit: Leaving]
dts|pokeball has joined #ruby
echooo has quit [Ping timeout: 272 seconds]
tvw has quit []
rpag has quit [Ping timeout: 255 seconds]
mloveless has quit [Ping timeout: 265 seconds]
bmichelsen has quit [Quit: Bye!]
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
bmichelsen has joined #ruby
claptor has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
sinequanon has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
CrazyM4n has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 258 seconds]
ghostmoth has joined #ruby
asmodlol has joined #ruby
gsd has joined #ruby
gsd has quit [Client Quit]
bricker`work has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
ghostmoth has quit [Client Quit]
mloveless has joined #ruby
amclain has joined #ruby
mloveless has quit [Remote host closed the connection]
ghostmoth has joined #ruby
ghostmoth has quit [Client Quit]
mroach has joined #ruby
<godd2> rastro that issue was posted in 2008. Does Zlib::GzipReader still have that problem?
crack_user has quit [Quit: Leaving.]
hamakn has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
cleopatra has quit [Ping timeout: 240 seconds]
asmodlol has joined #ruby
<rastro> godd2: yes, it does!
<godd2> rastro what version of Ruby are you using?
<godd2> because as of 2.0.0 you can pass an :external_encoding option in Zlib::GzipReader.new
<rastro> looks like 1.9.3.
<rastro> was going to try zipruby just for kicks.
AmirolAhmad has quit [Remote host closed the connection]
<godd2> it also raises an error if the gzip file header is incorrect. that didn't happen in 1.9.3
Sawbones has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rastro> thanks for the confirmation.
chu has joined #ruby
<rastro> unfortunately, it's the ruby in logstash, so it's not a simple upgrade.
<rastro> godd2: any workaround suggestions?
<godd2> other than upgrading your version of ruby?
<rastro> yeah :)
tuelz has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<godd2> I have no idea. I don't even know if what I showed you is the solution to your problem :P
<godd2> are you on linux/mac/pc?
<rastro> sounds encouraging, but out of reach :(
<rastro> linux
<godd2> are you using rvm/rbenv or just the version of ruby installed?
<pipework> Or chruby and ruby-install.
arescorpio has joined #ruby
<rastro> logstash is based on jruby. looks like jruby 1.7.11 is ruby 1.9.3.
<godd2> ah
Sawbones has quit [Remote host closed the connection]
sargas has joined #ruby
<godd2> well you can wait for jruby9k
<godd2> it will implement ruby 2.1.0
checkit has quit [Ping timeout: 244 seconds]
cesarstafe has quit [Ping timeout: 258 seconds]
echooo1 has quit [Quit: echooo1]
jack_rabbit has quit [Remote host closed the connection]
<rastro> and hope the logstash guys pick it up...
echooo has joined #ruby
AmirolAhmad has joined #ruby
delianides has joined #ruby
rshetty has quit [Remote host closed the connection]
<pipework> 1.9 to 2.0 isn't a big leap.
<rastro> at least i can blame microsoft for the formatting issue.
<godd2> If you know Java, you can always implement the fix yourself and then make a pull request to the jruby team :P
fmcgeough has quit [Quit: fmcgeough]
<pipework> haha.
<rastro> i'll think about it. thanks :)
<rastro> i'm sensing some backticks in my future.
pu22l3r has quit [Remote host closed the connection]
procat has joined #ruby
<pipework> Open3 bruh
krz has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
procat has quit [Ping timeout: 258 seconds]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
karmatr0n has quit [Remote host closed the connection]
chipotle has joined #ruby
workmad3 has joined #ruby
delianides has quit [Remote host closed the connection]
<rastro> will try that, pipework.
<rastro> thanks, all
karmatr0_ has joined #ruby
delianides has joined #ruby
wallerdev has quit [Quit: wallerdev]
pengin has quit [Ping timeout: 255 seconds]
sarmiena_ has quit [Quit: sarmiena_]
chipotle_ has quit [Ping timeout: 250 seconds]
sea_local has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
avrc has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
delianides has quit [Ping timeout: 272 seconds]
mroach has quit [Quit: mroach]
spastorino has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
sea_local has joined #ruby
Kryptonical has joined #ruby
valeriansaliou has joined #ruby
tyll has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
tyll_ has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
reset has quit [Ping timeout: 240 seconds]
valeriansaliou has quit [Ping timeout: 244 seconds]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
dc_ has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
axilla_ has quit [Ping timeout: 245 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 250 seconds]
lemur has joined #ruby
bluOxigen has joined #ruby
CpuID has quit [Quit: Leaving]
snath has joined #ruby
CpuID has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
Joufflu has joined #ruby
sankaber has joined #ruby
fella6s has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
fella7s has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
conniemj has quit [Quit: (null)]
russt has joined #ruby
radic has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
radic has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hendricius has quit [Ping timeout: 255 seconds]
mgberlin_ has joined #ruby
aspires has quit []
hendricius has joined #ruby
oo_ has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
oo_ has joined #ruby
pu22l3r has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgberlin has quit [Ping timeout: 244 seconds]
Xuerian has left #ruby [#ruby]
claptor has quit [Quit: this channel is bakas]
oo_ has quit [Ping timeout: 272 seconds]
uber_hulk has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
ajaiswal has joined #ruby
pu22l3r has joined #ruby
jeff-ooh has joined #ruby
echooo has quit [Ping timeout: 264 seconds]
echooo has joined #ruby
sailias has quit [Quit: Leaving.]
claptor has joined #ruby
Parker0 has joined #ruby
wroathe has joined #ruby
<wroathe> I'm trying to add some logging to require and require_relative statements in my application and I've got the following code being sourced before anything else is required: https://gist.github.com/JustinChristensen/a0d02b9e19b192e33ac4
<wroathe> But after requiring that all calls to require_relative fail
<wroathe> With a LoadError
jeff-ooh has quit [Ping timeout: 256 seconds]
asmodlol has quit [Ping timeout: 265 seconds]
<wroathe> Is there something obvious I'm missing?
ramfjord has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
rastro has left #ruby [#ruby]
<jhass> I guess it changes the place from where it is called
asmodlol has joined #ruby
<jhass> so it's relative to your monkeypatch, not the original call
<jhass> I think you want to take a look at the TracePoint API
fantazo has joined #ruby
<wroathe> jhass: Thanks :)
CrazyM4n has joined #ruby
Sawbones has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
MartynKeigher has joined #ruby
psyprus has joined #ruby
mgberlin_ has quit [Read error: Connection reset by peer]
malcolmva has quit [Ping timeout: 264 seconds]
mgberlin has joined #ruby
gilmour has quit [Ping timeout: 258 seconds]
gilmour has joined #ruby
duncannz has joined #ruby
spartak has joined #ruby
<spartak> could it be that some people aren't made for programming?
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
renderful has joined #ruby
coderwill has quit [Remote host closed the connection]
Areessell has joined #ruby
D9 has joined #ruby
dts|pokeball has quit [Ping timeout: 255 seconds]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
kenneth has joined #ruby
renderful has quit [Ping timeout: 256 seconds]
<pipework> spartak: Possibly, but they're probably too busy being vegetables.
sinequanon has joined #ruby
<spartak> what if they're too busy trying to learn the material and having a hard time?
oo_ has joined #ruby
jusmyth has joined #ruby
avrc has quit [Quit: this channel is bakas]
Sawbones has quit [Remote host closed the connection]
zoite_ has joined #ruby
kl has quit [Ping timeout: 245 seconds]
zoite has quit [Ping timeout: 250 seconds]
lemur has quit [Remote host closed the connection]
arup_r has joined #ruby
lemur has joined #ruby
malcolmva has joined #ruby
studiotate has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
braincrash has quit [Quit: bye bye]
unholycrab has quit [Changing host]
unholycrab has joined #ruby
avrc has joined #ruby
pardusf has quit []
adriancb has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
parduse has joined #ruby
sargas has joined #ruby
sarmiena_ has joined #ruby
avrc has quit [Client Quit]
braincrash has joined #ruby
sinequanon has quit []
aspires has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
uber_hulk has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
sk87 has joined #ruby
uber_hulk has joined #ruby
uber_hulk has left #ruby [#ruby]
kiyote23 has quit [Remote host closed the connection]
avrc has joined #ruby
<pipework> Too busy for what?
karmatr0_ has quit [Remote host closed the connection]
mgberlin_ has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
chu_ has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
mgberlin has quit [Ping timeout: 255 seconds]
karmatr0n has joined #ruby
chu has quit [Ping timeout: 272 seconds]
davedev2_ has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
jin_ has joined #ruby
agent_white has joined #ruby
Takle has joined #ruby
procat has joined #ruby
oo_ has quit [Remote host closed the connection]
Hijiri has quit [Read error: Connection reset by peer]
tus has quit []
kiyote23 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
procat has quit [Ping timeout: 258 seconds]
JBreit has joined #ruby
hemanth has joined #ruby
Hijiri has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
<agent_white> evenin'
studiotate has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Quit: Leaving.]
workmad3 has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<ericwood> zenspider: haha I'd be intimidated to hell and back but I'd love to if I'm ever in the area
<ericwood> zenspider: I'm in Austin, though, so it's quite the trek :\
workmad3 has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
aspires has quit []
Channel6 has quit [Quit: Leaving]
jenrzzz has joined #ruby
hasB4K has quit [Remote host closed the connection]
kenneth has joined #ruby
shortCircuit__ has joined #ruby
<shortCircuit__> hi
ARCADIVS has joined #ruby
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
sargas has joined #ruby
kenneth has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
<shortCircuit__> In C if I were asked to print the first 9 prime numbers, I used a while loop with a counter that would count + 1 for every prime number found. How to do that in ruby?
kenneth has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
mloveless has joined #ruby
<waxjar> in ruby we have Prime.take(9) :P
sk87 has joined #ruby
valeriansaliou has joined #ruby
yeticry has joined #ruby
havenwood has joined #ruby
kenneth has quit [Client Quit]
Megtastique has quit []
<shortCircuit__> I have seen that library , but thats only for prime numbers, this uestion could have been for pallindroms , I wanted to mean that if there is a range given I can say (1..n) but what if the n is not provided
<shortCircuit__> *question
<waxjar> but counted loops can be done several ways: 1.upto(9) {}, 9.times {}, (1..9).each {}
zorak8 has quit [Ping timeout: 264 seconds]
<waxjar> 1.step(10, 2) is handy too, increments by 2 instead of 1 :)
<waxjar> the block all take an argument
<shortCircuit__> ok, but in each if them the last term is known
mloveless has quit [Remote host closed the connection]
Prometheian_ has joined #ruby
<waxjar> yes
dideler has quit [Ping timeout: 258 seconds]
TrafficMan has quit [Ping timeout: 258 seconds]
valeriansaliou has quit [Ping timeout: 264 seconds]
jmdade has quit [Ping timeout: 258 seconds]
xymbol____ has quit [Quit: Lingo: www.lingoirc.com]
<havenwood> >> 1.upto(Float::INFINITY).lazy.map(&:abs2).first 5
<eval-in__> havenwood => [1, 4, 9, 16, 25] (https://eval.in/235723)
oo_ has joined #ruby
<shortCircuit__> wow.
psyprus has quit [Ping timeout: 258 seconds]
Dr3amc0dz has quit [Ping timeout: 258 seconds]
theRoUS has quit [Ping timeout: 258 seconds]
hendricius has quit [Ping timeout: 258 seconds]
bascht1 has quit [Ping timeout: 258 seconds]
ammar has quit [Ping timeout: 258 seconds]
hendricius has joined #ruby
ammar has joined #ruby
gr33n7007h has joined #ruby
toretore has quit [Ping timeout: 258 seconds]
amacou has joined #ruby
Prometheian has quit [Ping timeout: 258 seconds]
atomical has quit [Ping timeout: 258 seconds]
<ericwood> welp, I learned something new today
amacou has quit [Client Quit]
jxport has quit [Ping timeout: 258 seconds]
TrafficMan has joined #ruby
jxport has joined #ruby
Dr3amc0d3r|away has joined #ruby
salmonax has quit [Ping timeout: 258 seconds]
brandon_ has quit [Ping timeout: 258 seconds]
salmonax has joined #ruby
brandon_ has joined #ruby
toretore has joined #ruby
_Andres has quit [Ping timeout: 258 seconds]
theRoUS has joined #ruby
kapil__ has joined #ruby
fabrice31 has joined #ruby
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
D9 has quit [Quit: Leaving]
_Andres has joined #ruby
chrishough has joined #ruby
dts|pokeball has joined #ruby
mlue has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<shortCircuit__> lazy
fabrice31 has quit [Ping timeout: 245 seconds]
aarwine has quit [Ping timeout: 258 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
aarwine has joined #ruby
russt has joined #ruby
studiotate has joined #ruby
parabolize has joined #ruby
studiotate has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aurumzx has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
CrazyM4n has quit [Remote host closed the connection]
<shortCircuit__> http://railsware.com/blog/2012/03/13/ruby-2-0-enumerablelazy/ at the end it says map is a Enumerabl#lazy then why .lazy.map ?
Morkel has joined #ruby
psyprus has joined #ruby
<shortCircuit__> no the lazy is for the 1.upto(inf)
<shortCircuit__> I guess
frog|OFF is now known as green-big-frog
yfeldblum has quit [Remote host closed the connection]
britt_ has joined #ruby
<green-big-frog> hi
MartynKeigher has quit [Read error: Connection reset by peer]
chrishough has quit [Ping timeout: 264 seconds]
tyfighter has joined #ruby
<havenwood> hi
<ericwood> hi
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ericwood> I'm finally home and able to hack on this midi stuff but apparently I lost my B-type USB cable to connect my midi controller
<ericwood> pisssssssssssed
banister has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
mloveless has joined #ruby
jeff-ooh has joined #ruby
djdarkbeat__ has joined #ruby
djdarkbeat has quit [Ping timeout: 264 seconds]
russt has quit [Quit: russt]
kyb3r_ has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
pwnz0r has joined #ruby
sevenseacat has joined #ruby
jeff-ooh has quit [Ping timeout: 245 seconds]
arya_ching has joined #ruby
djdarkbeat__ has quit [Ping timeout: 250 seconds]
JBreit has quit [Read error: Connection reset by peer]
wroathe has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby
karmatr0n has quit [Remote host closed the connection]
russt has joined #ruby
jaequery has joined #ruby
apeiros_ has quit [Ping timeout: 245 seconds]
sargas has quit [Quit: This computer has gone to sleep]
sargas has joined #ruby
jaequery has quit [Client Quit]
<zenspider> shortCircuit__: or use the right tool for the job: ruby -rprime -e 'p Prime.first 10'
<zenspider> >> require "prime"; Prime.first 10
<eval-in__> zenspider => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] (https://eval.in/235738)
<gr33n7007h> >> arr=[]; arr<<arr
<eval-in__> gr33n7007h => [[...]] (https://eval.in/235743)
<gr33n7007h> what do the 3 dots mean?
Synthbread has joined #ruby
lxsameer has joined #ruby
rimantas has joined #ruby
goshdarnyou has joined #ruby
devoldmx has joined #ruby
arup_r has joined #ruby
duncannz has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Remote host closed the connection]
<shortCircuit__> ok
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
arya_ching has quit [Ping timeout: 240 seconds]
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
arya_ching has joined #ruby
renderful has joined #ruby
<shortCircuit__> http://patshaughnessy.net/2013/4/3/ruby-2-0-works-hard-so-you-can-be-lazy this article is cool, only that I don't understand from the yield part
aspires has joined #ruby
spartak has quit [Ping timeout: 246 seconds]
Parker0 has joined #ruby
roolo has joined #ruby
valeriansaliou has joined #ruby
duncannz has joined #ruby
D9 has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 256 seconds]
wroathe has joined #ruby
aurumzx has joined #ruby
roolo has quit [Ping timeout: 255 seconds]
wroathe has quit [Ping timeout: 258 seconds]
pu22l3r has quit [Remote host closed the connection]
fernandolopez has quit [Quit: Saliendo]
green-big-frog is now known as frog|OFF
britt_ has quit [Ping timeout: 245 seconds]
stunder has joined #ruby
stunder has quit [Client Quit]
kiyote23 has quit [Remote host closed the connection]
D9 has quit [Quit: Leaving]
Areessell has quit [Ping timeout: 240 seconds]
zoite_ has quit [Read error: Connection reset by peer]
zoite_ has joined #ruby
tobago has joined #ruby
chu_ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hmsimha has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
arya_ching_ has joined #ruby
Takle has joined #ruby
arya_ching has quit [Ping timeout: 250 seconds]
procat has joined #ruby
SOLDIERz has joined #ruby
aZaFred has quit [Remote host closed the connection]
kenneth has joined #ruby
zacts has quit [Quit: Lost terminal]
arya_ching_ has quit [Client Quit]
kenneth has quit [Client Quit]
Takle has quit [Ping timeout: 265 seconds]
procat has quit [Ping timeout: 264 seconds]
Alina-malina has quit [Quit: byebye]
conniemj has joined #ruby
devoldmx has quit [Remote host closed the connection]
melik has quit [Quit: (null)]
sinkensabe has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
workmad3 has joined #ruby
<shortCircuit__> http://stackoverflow.com/a/2732537/1503615 how does the yield work here. Generally if there is an yield block, when we pass a { block } to it, the yield evaluates that.
AlexRussia has quit [Ping timeout: 255 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
kl has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
dc_ has quit [Remote host closed the connection]
conniemj has quit [Ping timeout: 255 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
jack_rabbit has joined #ruby
<shortCircuit__> no
arescorpio has quit [Excess Flood]
workmad3 has quit [Ping timeout: 240 seconds]
aspires has left #ruby [#ruby]
kl has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
AlexRussia has joined #ruby
jenrzzz has joined #ruby
yfeldblum has joined #ruby
<godd2> shevy if you're here, my docs are looking WAY better: http://www.rubydoc.info/github/nicklink483/dare/Dare/Image#draw-instance_method
noop has joined #ruby
kyank_ has quit [Quit: Be back later ...]
yfeldblum has quit [Ping timeout: 272 seconds]
tagrudev has joined #ruby
havenwood has quit []
valeriansaliou has quit [Quit: Be back later ...]
sevenseacat has quit [Remote host closed the connection]
<epitron> >> require "zlib"; bigstr = "hello"*100000; deflated = Zlib.deflate(bigstr); double_deflated = Zlib.deflate(deflated); [deflated.size, double_deflated.size]
<eval-in__> epitron => [756, 49] (https://eval.in/235759)
<epitron> o_O
<epitron> that's a pretty crappy algorithm
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnz0r has quit [Remote host closed the connection]
codecop has joined #ruby
fabrice31 has joined #ruby
Alina-malina has joined #ruby
valeriansaliou has joined #ruby
valeriansaliou has quit [Client Quit]
<epitron> so weird
jdj_dk has quit [Ping timeout: 250 seconds]
<epitron> o shi, bzip2 wins
last_staff has joined #ruby
Areessell has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<epitron> no wait, the ruby program that prints 100_000 hellos actually wins -- only 20 bytes :)
bascht1 has joined #ruby
wroathe has joined #ruby
rshetty has quit [Remote host closed the connection]
kenneth has joined #ruby
apeiros_ has joined #ruby
nicolast_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
wroathe has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
nicolastarzia has quit [Ping timeout: 272 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 256 seconds]
anaeem1_ has joined #ruby
CpuID has quit [Quit: Leaving]
adriancb has joined #ruby
valeriansaliou has joined #ruby
rdark has joined #ruby
mlue has joined #ruby
jeff-ooh has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
valeriansaliou has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
emmesswhy has quit [Quit: Leaving]
jeff-ooh has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
Macaveli has joined #ruby
surs has joined #ruby
Takle has joined #ruby
bal has joined #ruby
DonOtreply has joined #ruby
Takle has quit [Read error: No route to host]
Takle has joined #ruby
sk87 has joined #ruby
Hanmac has joined #ruby
tyfighter has quit [Quit: tyfighter]
apeiros_ has joined #ruby
lolmaus has joined #ruby
s00pcan has quit [Quit: Lost terminal]
asmodlol has quit [Ping timeout: 265 seconds]
asmodlol has joined #ruby
mloveless has quit [Remote host closed the connection]
RTG` has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
shyshy has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
JohnBat26 has joined #ruby
RTG` has joined #ruby
yfeldblum has joined #ruby
Takle_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 264 seconds]
Soda has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
timonv_ has joined #ruby
craigp has joined #ruby
anarang has joined #ruby
sargas has quit [Quit: Leaving]
keen___________3 has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Alina-malina has joined #ruby
keen___________2 has quit [Ping timeout: 250 seconds]
damic has quit []
s00pcan has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
s00pcan has quit [Client Quit]
yeticry has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
KnownSyntax has quit []
armyriad has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
jenrzzz has joined #ruby
armyriad has joined #ruby
asmodlol has joined #ruby
renderful has joined #ruby
agit0 has joined #ruby
andikr has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
sk87 has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
amclain has quit [Quit: Leaving]
renderful has quit [Ping timeout: 250 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
chinmay_dd has joined #ruby
davedev2_ has joined #ruby
ringarin has joined #ruby
oleo has quit [Quit: Verlassend]
davedev24_ has quit [Ping timeout: 240 seconds]
c0rwin has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
uber_hulk has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
Calmoto has joined #ruby
_5kg has quit [Ping timeout: 258 seconds]
chipotle has quit [Quit: cheerio]
bal has quit [Quit: bal]
disperso has quit [Ping timeout: 258 seconds]
gr33n7007h has quit [Ping timeout: 258 seconds]
gr33n7007h has joined #ruby
procat has joined #ruby
suy|BNC has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
anaeem1 has joined #ruby
tesuji has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
aaas has quit [Read error: Connection reset by peer]
aganov has joined #ruby
psyprus has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
procat has quit [Ping timeout: 250 seconds]
valeriansaliou has joined #ruby
TomyWork has joined #ruby
dumdedum has joined #ruby
timonv_ has quit [Remote host closed the connection]
_5kg has joined #ruby
bal has joined #ruby
aswen has joined #ruby
arup_r has quit [Remote host closed the connection]
kyank_ has joined #ruby
twistedpixels has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
valeriansaliou has quit [Ping timeout: 250 seconds]
musicmatze has quit [Ping timeout: 258 seconds]
kl has joined #ruby
twistedpixels has joined #ruby
craigp has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 245 seconds]
craigp has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
kl has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
paramourne has joined #ruby
jalcine has quit [Ping timeout: 258 seconds]
alex88 has joined #ruby
tylersmith has quit [Ping timeout: 258 seconds]
tylersmith has joined #ruby
jalcine has joined #ruby
asmodlol has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
sandelius has joined #ruby
asmodlol has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
comm64 has joined #ruby
<comm64> good early morning all
yfeldblum has joined #ruby
Synthbread has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 258 seconds]
gr33n7007h has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
Xeago has joined #ruby
<comm64> I've read thru P.Coopers Beginning Ruby and I'm looking for a next step...any advice?
Seich has joined #ruby
armyriad has quit [Ping timeout: 272 seconds]
<seitensei> comm64: Try picking up some practical skills.
<seitensei> I've found it helpful to actually work on a project.
craigp has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
<comm64> I thought about calling methods on everything in irb and researching each
aswen has joined #ruby
<comm64> I actually am attempting to implement wordpress in ruby
asmodlol has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
kyank_ has quit [Quit: Be back later ...]
eka has quit [Ping timeout: 244 seconds]
livathinos has joined #ruby
<seitensei> comm64: In that case, are you looking to get right to a workable codebase quick, or do you want to learn from the ground up?
evanjs has quit [Remote host closed the connection]
asmodlol has joined #ruby
Spami has joined #ruby
<comm64> I'd rather learn from ground up
davedev24_ has quit [Ping timeout: 258 seconds]
evanjs has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
sk87 has joined #ruby
<seitensei> comm64: I'd suggest starting with the sinatra gem, and adding in additional code and gems as you find that you need them.
<comm64> sk87: is your real name dylan?
<sk87> nope
davedev24_ has joined #ruby
<dts|pokeball> was the crystal project abandoned?
<comm64> sk87: ok
jgrevich has joined #ruby
arup_r has joined #ruby
weaksauce has quit [Ping timeout: 250 seconds]
<comm64> my initial approach so far has been to work my way through the wp source and rubyfying what has been done in php
<comm64> not so much a 1:1
rurban has joined #ruby
<comm64> though
craigp has joined #ruby
rurban has left #ruby [#ruby]
kAworu has left #ruby [#ruby]
<seitensei> Sinatra will get you off at the bare minimum. http://www.sinatrarb.com/
tvw has joined #ruby
<comm64> seitensei: git clone or gem install?
<seitensei> gem install
arup_r has quit [Remote host closed the connection]
musicmatze has joined #ruby
CustosL1men has joined #ruby
arup_r has joined #ruby
s00pcan has joined #ruby
arup_r has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<comm64> extremly bare lol
kamil has joined #ruby
<apeiros_> seitensei: bare minimum would be rack :-p
Xeago has joined #ruby
phutchins has joined #ruby
KnownSyntax has joined #ruby
comm64 has quit [Remote host closed the connection]
<seitensei> apeiros_: Offered up Sinatra, since it lets you use some of the other servers as well
jgrevich has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
<apeiros_> seitensei: huh?
<apeiros_> what "other servers"?
<seitensei> like puma
<apeiros_> I think you do not understand what rack is.
<apeiros_> sinatra is *based* on rack
<seitensei> unicorn
vvivv has joined #ruby
<apeiros_> and being based on rack is what allows sinatra to use those servers in the first place
jenrzzz has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
<seitensei> apeiros_: I'm thinking webrick when I hear rack, aren't it
<apeiros_> or put differently: any server sinatra runs on, rack *necessarily* runs on too. as otherwise, sinatra wouldn't run on it.
<seitensei> *aren't i
<apeiros_> I don't know. maybe you are. webrick is a webserver in ruby's stdlib
<seitensei> At some point down the line, I forgot rack wasn't part of Ruby, haha
jenrzzz has joined #ruby
kyank_ has joined #ruby
<seitensei> my bad
jgrevich has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
ki0 has joined #ruby
blueOxigen has joined #ruby
wroathe has joined #ruby
_5kg has quit [Ping timeout: 244 seconds]
Akuma has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
chth0n has joined #ruby
msgodf has joined #ruby
rshetty has joined #ruby
wroathe has quit [Ping timeout: 250 seconds]
mylar has joined #ruby
Macaveli has joined #ruby
<pontiki> morning
<apeiros_> moin
<avril14th> morning
_5kg has joined #ruby
rurban has joined #ruby
sea_local has quit [Ping timeout: 264 seconds]
jgrevich_ has joined #ruby
kiyote23 has joined #ruby
jgrevich has quit [Ping timeout: 272 seconds]
jgrevich_ is now known as jgrevich
chth0n has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
eka has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has joined #ruby
rurban has left #ruby ["Leaving"]
kiyote23 has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
jmdade has joined #ruby
davedev24_ has joined #ruby
<aswen> Morning
davedev2_ has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
goodenough has joined #ruby
bluOxigen has joined #ruby
<aswen> How can i find out what the target of a symlink is? (actualy I want to test using File.symlink(file, target) exists and if link "file" has another "target" replace it)
ringarin has quit [Read error: Connection reset by peer]
<aswen> And I don't understand this doc: http://www.rubydoc.info/stdlib/core/File/Stat#symlink%3F-instance_method
joonty has joined #ruby
sandelius has joined #ruby
<tobiasvl> what don't you understand?
eka has quit [Ping timeout: 244 seconds]
blueOxigen has quit [Ping timeout: 272 seconds]
<tobiasvl> aswen: not sure why it doesn't show up at that site, but http://ruby-doc.org/core-2.1.5/File.html#method-c-readlink
yfeldblum has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
xcesariox has joined #ruby
xcesariox has quit [Remote host closed the connection]
TgMts has joined #ruby
xcesariox has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
reset has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
davedev24_ has joined #ruby
ycodr has quit [Remote host closed the connection]
AlSquirrel has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
ycodr has joined #ruby
ta has quit [Remote host closed the connection]
sprihodko has joined #ruby
TgMts has quit [Client Quit]
Grantlyk has joined #ruby
rotor` has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
blueOxigen has joined #ruby
TgMts has joined #ruby
livathin_ has joined #ruby
livathin_ has quit [Remote host closed the connection]
startupality has joined #ruby
livathin_ has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
beilabs has quit [Ping timeout: 272 seconds]
arup_r has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 272 seconds]
MasterPiece has joined #ruby
reset has quit [Quit: Leaving...]
<aswen> tobiasvl: Thanks!
kyb3r_ has quit [Read error: Connection reset by peer]
DaniG2k has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livathinos has joined #ruby
kevinxu has joined #ruby
dionysus69 has joined #ruby
kevinxu is now known as Guest94783
sprihodko has quit [Quit: (null)]
cephalostrum has quit [Ping timeout: 250 seconds]
rshetty_ has joined #ruby
arup_r has joined #ruby
fantazo has quit [Quit: Verlassend]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
livathin_ has quit [Ping timeout: 264 seconds]
jgrevich has quit [Quit: jgrevich]
craigp has quit [Remote host closed the connection]
cephalostrum has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
arup_r_ has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 264 seconds]
procat has joined #ruby
roolo has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
CustosL1men has quit [Ping timeout: 250 seconds]
uber_hulk has quit [Quit: leaving]
renderful has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
procat has quit [Ping timeout: 245 seconds]
valeriansaliou has joined #ruby
roolo has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
AFKGeek has joined #ruby
lolmaus has joined #ruby
marcules has joined #ruby
marcules has quit [Changing host]
marcules has joined #ruby
marcules has quit [Changing host]
marcules has joined #ruby
craigp has joined #ruby
Grantlyk has quit []
valeriansaliou has quit [Ping timeout: 265 seconds]
<marcules> hi
Guest94783 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
kamil has quit [Quit: Leaving...]
kl__ has joined #ruby
kevinxu has joined #ruby
kevinxu is now known as Guest72142
olivier_bK has joined #ruby
zoite__ has joined #ruby
dts|pokeball has quit [Ping timeout: 245 seconds]
ringarin has joined #ruby
oo_ has joined #ruby
duncannz has quit [Remote host closed the connection]
CustosL1men has joined #ruby
zoite_ has quit [Ping timeout: 250 seconds]
<agent_white> /ws
dANO has joined #ruby
kl__ has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
tokik has quit [Ping timeout: 265 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
rshetty_ has quit [Remote host closed the connection]
<dANO> Hi, i created script for read an email and return the url. So i Used URI.extract but my problem now is if in the email I have : <a href="http://www.example.com"> http://www.example.com </a> The URI extract function return two times the same url but I need it only once.
jheg has joined #ruby
aswen has joined #ruby
arup_r_ has quit [Remote host closed the connection]
leo-unglaub has joined #ruby
rshetty has joined #ruby
maletor has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
ringaring has joined #ruby
arup_r has joined #ruby
eka has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
rshetty has quit [Remote host closed the connection]
Aova has joined #ruby
jin_ has quit [Remote host closed the connection]
cesarstafe has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
ki0 has quit [Remote host closed the connection]
ringarin has quit [Ping timeout: 272 seconds]
kl__ has joined #ruby
FooMunki_ has joined #ruby
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
cephalostrum has quit [Ping timeout: 264 seconds]
rshetty has quit [Remote host closed the connection]
uber_hulk has joined #ruby
cephalostrum has joined #ruby
uber_hulk has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
kl___ has joined #ruby
Guest72142 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
oo_ has joined #ruby
rshetty has joined #ruby
Xeago has quit [Remote host closed the connection]
kl__ has quit [Ping timeout: 272 seconds]
AndyBotwin has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
CustosL1men has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
<pontiki> dANO: without actually seeing your code, try something like URI.extract().sort.uniq
<pontiki> whatever goes in the extract method params should still be there, of course
<dANO> it's ok, i find the solution, i just need to add array.uniq
<dANO> thank's
ki0 has joined #ruby
Xeago has joined #ruby
jeff-ooh has joined #ruby
Takle_ has quit [Read error: No route to host]
Takle has joined #ruby
MasterPiece has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
jeff-ooh has quit [Ping timeout: 264 seconds]
Hobogrammer has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
fivetwentysix has joined #ruby
anaeem1_ has joined #ruby
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
anaeem1__ has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
CustosL1men has joined #ruby
axilla has joined #ruby
timonv_ has quit [Remote host closed the connection]
konsolebox has quit [Remote host closed the connection]
timonv_ has joined #ruby
MasterPiece has joined #ruby
<MasterPiece> /var/lib/gems/1.9.1/gems/railties-4.1.8/lib/rails/railtie/configuration.rb:95:in `method_missing'
<MasterPiece> Any Idea ?
<MasterPiece> Thanks in advanced for any help :)
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tobiasvl> MasterPiece: no idea based on just that line, but maybe #RubyOnRails is a better channel for that
wroathe has joined #ruby
uber_hulk has joined #ruby
Cyberheb has joined #ruby
goodenough has quit [Remote host closed the connection]
einarj has joined #ruby
agjacome has joined #ruby
Photism has quit [Quit: Leaving]
hyperdrive is now known as hdrv
hdrv has quit [Changing host]
hdrv has joined #ruby
wroathe has quit [Ping timeout: 250 seconds]
<MasterPiece> and if I prehension the log : http://paste.ubuntu.com/9549436/ , Can you give me an answer please? I need help really :)
<MasterPiece> tobiasvl, ^
armyriad has joined #ruby
sk87 has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
tokik has joined #ruby
<Hanmac> MasterPiece: still a #RubyOnRails question
yfeldblum has joined #ruby
giuseppesolinas has joined #ruby
<MasterPiece> hanmac, tobiasvl Thanks :)
SOLDIERz has quit [Quit: Be back later ...]
oo_ has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
giuseppesolinas has quit [Client Quit]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
Spami_ has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TgMts has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
Spami has quit [Ping timeout: 244 seconds]
<shevy> godd2 I just woke up! \o/
<shevy> still dizzy
<shevy> and hungry ...
<shevy> how do you make :canvas bold?
TgMts has quit [Client Quit]
webguynow has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Quit: Leaving]
uber_hulk has left #ruby [#ruby]
vinleod has joined #ruby
lizhaoxian has joined #ruby
eka has quit [Ping timeout: 264 seconds]
spastorino has joined #ruby
<last_staff> *:canvas*
<pontiki> lol
<last_staff> i really though that would work, too
<last_staff> like *this*
<last_staff> what about * :canvas*?
anaeem1 has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
<shevy> huh I don't see the new docs
<shevy> godd2 http://rubygems.org/gems/dare is not the most recent version right?
rotor` has joined #ruby
sandelius has joined #ruby
Macaveli has quit [Ping timeout: 245 seconds]
jusmyth has quit [Quit: Leaving.]
MasterPiece has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
icbbyf has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
joonty1 has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
Morkel_ has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
SOLDIERz has joined #ruby
narph has joined #ruby
sevenseacat has joined #ruby
rshetty has joined #ruby
SOLDIERz has quit [Ping timeout: 250 seconds]
anaeem1 has joined #ruby
startupality has quit [Quit: startupality]
timonv_ has joined #ruby
anaeem1__ has quit [Ping timeout: 250 seconds]
kaspertidemann has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
procat has joined #ruby
SOLDIERz has joined #ruby
craigp has quit [Remote host closed the connection]
<arup_r> shevy: Hope you are doing well
gfawcettpq has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
fivetwentysix has quit [Quit: fivetwentysix]
doodlehaus has joined #ruby
procat has quit [Ping timeout: 245 seconds]
valeriansaliou has joined #ruby
<shevy> yea
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
chinmay_dd has quit [Quit: Leaving]
<certainty> shevy: so i went out and looked for languages that please me more. I probably aim for visual basic
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
<wasamasa> lol
valeriansaliou has quit [Ping timeout: 272 seconds]
cesarstafe has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
MasterPiece has joined #ruby
<shevy> is that where comments are not with #
renderful has quit [Ping timeout: 272 seconds]
avril14th has quit [Ping timeout: 255 seconds]
eka has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_Andres has joined #ruby
MasterPiece has quit [Ping timeout: 272 seconds]
razieliyo has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
razieliyo has quit [Read error: Connection reset by peer]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
avril14th has joined #ruby
yfeldblum has joined #ruby
ajaiswal has quit [Quit: Leaving]
Joufflu has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
sandelius has joined #ruby
MasterPiece has joined #ruby
jin_ has joined #ruby
Cyberheb has quit [Quit: Textual IRC Client: www.textualapp.com]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Xeago has quit [Remote host closed the connection]
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
avrc has quit [Quit: this channel is bakas]
jin_ has quit [Ping timeout: 240 seconds]
jeremywrowe has joined #ruby
roolo has joined #ruby
Macaveli has joined #ruby
doodlehaus has quit [Remote host closed the connection]
jeremywrowe has quit [Client Quit]
asmodlol has joined #ruby
DaniG2k has quit [Quit: leaving]
n1lo has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
tangorri has joined #ruby
maasha has joined #ruby
<tangorri> hi
agent_wh1te has joined #ruby
<maasha> sup
<tangorri> gem can't find any 'gem' package here ...
agent_white has quit [Read error: Connection reset by peer]
alex88_ has joined #ruby
cesarstafe has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
n1lo_ has joined #ruby
n1lo has quit [Read error: Connection reset by peer]
alex88 has quit [Ping timeout: 250 seconds]
n1lo_ has quit [Client Quit]
<shevy> what trend do we see here:
<shevy> http://www.google.com/trends/explore#q=ruby%2C%20python%2C%20perl%2C%20php%2C%20mruby&cmpt=q
<shevy> tangorri and will you reveal what exact command you used
n1lo has joined #ruby
<tangorri> nice doc shevy
<shevy> just google trend
chthon has joined #ruby
<shevy> I am surprised python isn't higher up there
<tangorri> shevy : I don't understand why on windows only : gem search {gemname} --remote response is empty
<tangorri> and I got ssl certificate error when I do a gem install
rshetty has quit [Remote host closed the connection]
WillAmes has joined #ruby
<shevy> and this works? 'gem list name --remote'
<tangorri> nope
<tangorri> gem install gives : SSL_connect returned=1 errno=0 state=SSLv3
<tangorri> read server certificate B: certificate verify failed
Akuma has quit [Quit: So long sukkas!]
kl___ has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
rshetty has joined #ruby
max96at|off is now known as max96at
kl has joined #ruby
eka has quit [Ping timeout: 264 seconds]
rshetty has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
sk87 has joined #ruby
<shevy> ah so you have some generic SSL problem
<tangorri> well I can do ssh etc
<shevy> there was a way to fix it, I forgot how but jhass knows
<pontiki> are you on windows, tangorri ?
boombadaroomba has joined #ruby
<tangorri> yes pontiki
<pontiki> hum... someone in the other day had the same issues, and it's because missing certs
<pontiki> let me see if i have the web page in my history
SOLDIERz has joined #ruby
gr33n7007h has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<tangorri> thanks pontiki
<pontiki> good luck
doodlehaus has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Max SendQ exceeded]
gr33n7007h has joined #ruby
boombadaroomba has quit [Ping timeout: 250 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
SOLDIERz has quit [Ping timeout: 250 seconds]
sevenseacat has quit [Ping timeout: 264 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
evanjs has quit [Remote host closed the connection]
evanjs has joined #ruby
ringaring has quit [Quit: Leaving]
lizhaoxian has quit [Remote host closed the connection]
<TomyWork> is =begin/=end rather new? I keep seeing syntax highlighters that just ignore it
anaeem1 has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
jusmyth has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
aclearman037 has joined #ruby
<apeiros_> TomyWork: no, it's ancient
<apeiros_> and rarely ever used
_Andres has joined #ruby
<Hanmac> tvtropes would add it to the category "old as dirt" ;P
SOLDIERz has quit [Ping timeout: 250 seconds]
<apeiros_> I have some new dirt. want it?
pwh has quit []
hemanth is now known as Guest62947
wroathe has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
<certainty> shevy: i don't know. i don't use comments
SOLDIERz has joined #ruby
doodlehaus has joined #ruby
hamakn has quit [Remote host closed the connection]
Timgauthier has joined #ruby
aeo1ackn has joined #ruby
kalz has quit [Ping timeout: 265 seconds]
gr33n7007h has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
<TomyWork> apeiros_ well it's the only block comment i'm aware of
<TomyWork> is there another?
gr33n7007h has joined #ruby
_5kg has joined #ruby
chinmay_dd has joined #ruby
<Timgauthier> wello
<Timgauthier> so i totes got a udemy.com course yesterday from my father for christmas
<Timgauthier> normally 199, was on sale for 50 thanks to a facebook link, its a learn switf course!
<certainty> Timgauthier: strange timezone you're in
LouisRoR has joined #ruby
kl has quit [Ping timeout: 250 seconds]
SOLDIERz has quit [Ping timeout: 245 seconds]
<certainty> here christmas is a week ahead
<Timgauthier> hah
<Timgauthier> no
<Timgauthier> i'm north american, we don't wait for christmas for shit like that :P
<certainty> i see
fandi has joined #ruby
<Timgauthier> when do you christmas/
<Timgauthier> http://dsh.re/2b8dc this looks amazing
wroathe has quit [Ping timeout: 255 seconds]
<certainty> TomyWork: i'm not aware of another. I usually call for help from my editor. It can do those things pretty well
doodlehaus has quit [Remote host closed the connection]
<Timgauthier> http://dsh.re/0bd86
* soahccc was eating christmas candies for the last 4 months :>
<Timgauthier> wrong room :P but man thats a nice site
claptor has quit [Quit: this channel is bakas]
krz has quit [Quit: WeeChat 1.0.1]
<soahccc> Timgauthier: you mean the highlight, etc.?
<certainty> swifty
<Timgauthier> yea, its a very nice onboarding experience, very simple to do
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
<TomyWork> certainty this has to be as unobstructive as possible in this case. It's part of a Vagrantfile and it should be clear which part is to be commented out and which isn't. I'm actually quite happy with the syntax itself, apart from the missing ability to indent =begin/=end.
tesuji has quit [Ping timeout: 244 seconds]
<shevy> certainty hehe
_5kg has quit [Ping timeout: 245 seconds]
<Timgauthier> maybe i'll stop with the php :P
<Timgauthier> jk
<certainty> TomyWork: hmm strange i actually dislike =begin =end for the fact that you *don't* see well what is commented. Compared to lines starting with #
<shevy> YES
<shevy> FINALLY
kalz has joined #ruby
<shevy> come back to ruby Timgauthier
<Timgauthier> certainty TomyWork, i agree, each line started with # is nicer
<TomyWork> certainty no i mean which line needs to be toggled.
<TomyWork> better 2 than 20 :)
<certainty> TomyWork: i see. but you don't do this by hand for every line anyway, do you?
<TomyWork> and the minimum editor i can guarantee everyone has is windows notepad :)
<Timgauthier> i use select then the comment shortcut in my sublime
<certainty> ah ok
<certainty> TomyWork: then go with =begin and =end :)
<TomyWork> :)
felipedvorak has quit [Read error: Connection reset by peer]
<soahccc> I would rather code myself another editor before using notepad :<
felipedvorak has joined #ruby
jusmyth has left #ruby [#ruby]
<Timgauthier> lol
wpp has joined #ruby
pika_pika has joined #ruby
<Timgauthier> yeah, but a lot of windows users !=
<Timgauthier> that said, i always recommend sublime text for windows users
<avril14th> In RSpec, is there a way to test whether a piece of code generates detabase queries or not?
mikecmpbll has joined #ruby
yalue has joined #ruby
<icbm> Notepad is a butter knife, and we are surgeons. Sometimes we butter our toast in the morning, but...
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<soahccc> avril14th: interesting question but I can only think of something very hackish by closing the connection and catch the exception or something :S
atomical has quit [Read error: Connection reset by peer]
<certainty> monkey patch the connection adapter :p
<certainty> not better either
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
atomical has joined #ruby
<certainty> or probably use a custom one
<certainty> that just records the queries
<soahccc> icbm: notepad is a rusty piece of metal impregnated with a silty crust of doom... I don't want my toast like that :D
spyderman4g63 has joined #ruby
<certainty> avril14th: there is nulldb which might be usable
zorak8 has joined #ruby
<icbm> soahccc: O_o sounds like that thing I got from Taco Bell last night.
SOLDIERz has joined #ruby
<avril14th> thx certainty, it looks cool, but I use mongoid instead of AR so I doubt it will work
<certainty> avril14th: isn't mongodb restful or something? forgive my ignorance
<shevy> don't forgive his ignorance!
<certainty> :p
<avril14th> ok
<Timgauthier> BURN THE HERITIC!
<avril14th> I don't forgive your ignorance!
<Timgauthier> BLOOD FOR THE BLOOD GOD
<avril14th> and since I don't know either
<Timgauthier> i wish i had a massive scary ascii art for that
russt has joined #ruby
<avril14th> I don't forgive mine too!
hmsimha has joined #ruby
<shevy> Timgauthier let's find one
<Timgauthier> yes yes!
SOLDIERz has quit [Ping timeout: 264 seconds]
Kilo`byte has quit [Ping timeout: 250 seconds]
Xeago_ has quit [Remote host closed the connection]
<shevy> Timgauthier hmm how about this one http://pastie.org/pastes/9786234/text
prasselpikachu has quit [Ping timeout: 265 seconds]
<shevy> ASCII art is rather limited :(
<Timgauthier> yes sadly that isn't evil and scary enough for me :P{
<shevy> if we would use unicode, we could make a halloween snowman like this http://www.fileformat.info/info/unicode/char/2603/index.htm
yeticry has quit [Ping timeout: 265 seconds]
<shevy> but with an evil grin and a scythe
<soahccc> shevy: you never watched star wars via telnet did you?
prasselpikachu has joined #ruby
<Timgauthier> oh shit, the village fire alarm is going off...
yeticry has joined #ruby
<shevy> I almost never watched star wars at all
joonty1 has quit [Quit: Leaving]
<soahccc> shevy: telnet towel.blinkenlights.nl
<shevy> I saw the first two I think long ago
<shevy> didn't watch the latest 3 ones. computer animation if done wrong is so awful
sevenseacat has joined #ruby
<certainty> that's a classic :)
<shevy> "independence day" was one of the most awful CGI effects. they literally just cloned like 1000 of those airborne thingies
Kilo`byte has joined #ruby
<Hanmac> shevy hm did you try to watch "independence day" with VLC in ASCII art mode? ;P
procat has joined #ruby
<shevy> what for, it won't become any better
yfeldblum has joined #ruby
dstarh has joined #ruby
Xeago has joined #ruby
<shevy> youtube and torrents have kinda replaced my normal watching TV/video habits (when I actually watch videos that is)
SOLDIERz has joined #ruby
karmatr0n has joined #ruby
tvw has quit []
<soahccc> TV is shit, it's a bit better if you have 3 hours buffer for two channels... then you can find something to fill a few minutes :)
triple_b has joined #ruby
top4o has joined #ruby
agent_wh1te has quit [Quit: leaving]
<Timgauthier> shevy a good option is to either watch the recuts that people have done, or watch EP 4, 5, 2, 3, 6 order
icbm has quit [Quit: Computer sleeping]
<tangorri> thanks guys , with .pem added gem works as before
agent_white has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
valeriansaliou has joined #ruby
<shevy> Timgauthier hehe
procat has quit [Ping timeout: 255 seconds]
aeo1ackn has quit [Ping timeout: 250 seconds]
<Timgauthier> ep 1 is shit, and doesn't tell you anything useful story wise
triple_b has quit [Client Quit]
aeo1ack has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
beef-wellington has joined #ruby
<shevy> Timgauthier talking about recuts ... I saw this first before I saw the official video https://www.youtube.com/watch?v=3wFwYBPvYu8 - it's much better than the original lyrics-wise ;)
SOLDIERz has quit [Ping timeout: 264 seconds]
<Timgauthier> what is it a cover of?
<Timgauthier> nevermind link
arrubin has quit []
valeriansaliou has quit [Ping timeout: 265 seconds]
<alex88_> shevy: that is awesome! :D
kaspertidemann has quit []
alex88_ is now known as alex88
<Areessell> Uh what channel is this?
<Timgauthier> awesome?
<Timgauthier> wait
<Timgauthier> ##awesome
<shevy> ##fabulous
<shevy> did I even spell that right?
<Timgauthier> who cares?
<Timgauthier> :P
<shevy> hahaha
<alex88> was just reading, how can pg gem still not at 1.0?
allcentury has joined #ruby
<Timgauthier> so rhianna is from like a small island nation (i thought she was amerikant) and that explains why she sounds the way she does... its an accent!
mikedugan has joined #ruby
<Areessell> You mean retarded?
<Timgauthier> we don't say the R word here
<Timgauthier> lets use Mentally Challenged okay?
<Timgauthier> she sounds mentally challanged.
<Areessell> Ruby?
<Timgauthier> :P
arup_r has quit [Remote host closed the connection]
<Timgauthier> i'm going to end up with mentally challenged children :(
<shevy> no Areessell this here is not ##php
Macaveli has joined #ruby
<Areessell> Jokes on you! You can't have children
<Areessell> .... Sorry to break it to you like this
<alex88> +1
<certainty> why not?
<Timgauthier> oh man that'd be so much better! :P
<Timgauthier> what a relief Areessell :P
<shevy> do you really want to raise children in a world filled with php code
* Areessell shivers
<Timgauthier> lol
workmad3 has quit [Ping timeout: 244 seconds]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
SOLDIERz has joined #ruby
triple_b has joined #ruby
delianides has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
<Timgauthier> but there is good php! :P
<deepy> There's functional php and there's broken php
<Timgauthier> lol
<Timgauthier> i tend to write the functional
blueOxigen has quit [Ping timeout: 245 seconds]
<deepy> It's an oxymoron
gr33n7007h has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
SOLDIERz has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
<Timgauthier> :P
<certainty> functional php? like working or like a single referential transparent expression build of smaller referential transparent expressions?
lxsameer has quit [Quit: Leaving]
renderful has joined #ruby
_5kg has joined #ruby
cpruitt has joined #ruby
St_Marx has quit [Quit: WeeChat 1.0.1]
bal has quit [Ping timeout: 240 seconds]
tier has joined #ruby
St_Marx has joined #ruby
dumdedum has quit [Quit: foo]
eichenwald has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
paulfm has joined #ruby
paulfm has quit [Client Quit]
renderful has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
vvivv has quit [Ping timeout: 240 seconds]
bal has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
_Andres has joined #ruby
bodgix_wrk has joined #ruby
dfinninger has joined #ruby
LekeFly has joined #ruby
hamakn has joined #ruby
<Areessell> The second thing.
jin_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
paulfm has joined #ruby
aclearma_ has joined #ruby
tkuchiki has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
workmad3 has joined #ruby
spyderman4g63 has joined #ruby
aclearman037 has quit [Ping timeout: 272 seconds]
wroathe has joined #ruby
tristanp has joined #ruby
dfinninger has quit [Remote host closed the connection]
jin__ has joined #ruby
jin_ has quit [Ping timeout: 258 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
_beechnut has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Client Quit]
Parker0 has joined #ruby
dblessing has joined #ruby
robertt_dex has joined #ruby
sailias has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
siaw has joined #ruby
oo_ has joined #ruby
jeff-ooh has joined #ruby
<siaw> how do i make this returen true or false object? /abc/.match("The alphabet starts with abc.")
sankaber has joined #ruby
sevenseacat has quit [Remote host closed the connection]
doodlehaus has joined #ruby
<agent_white> siaw: !!(/abc/.match("The alphabet starts with abc."))
<agent_white> >> !!(/foo/.match("bar baz")
<eval-in__> agent_white => /tmp/execpad-4e4a484bccee/source-4e4a484bccee:3: syntax error, unexpected keyword_rescue, expecting ')' ... (https://eval.in/235863)
<siaw> agent_white: thanks :)
oo_ has quit [Remote host closed the connection]
<siaw> i was doing this: /abc/.match("The alphabet starts with abc.”)?
<siaw> and this: /abc/.match?("The alphabet starts with abc.")
rimantas has quit [Quit: rimantas]
<agent_white> siaw: Ahhh. Yeah "!!" is bool eval of an object
phutchins has joined #ruby
eka has joined #ruby
oo_ has joined #ruby
enebo has joined #ruby
<siaw> so why won’t this work? agent_white !!”hello”
tristanp has joined #ruby
jeff-ooh has quit [Ping timeout: 245 seconds]
<Areessell> It doesnt?
<Hanmac> siaw: becaue your OS is shitty and see the difference between !!”hello” and !!"hello"
<Areessell> =p
<agent_white> siaw: It should? What does it say
<siaw> agent_white: NOTHING
<siaw> goes to next line hahaha
<Hanmac> agent_white: "wrong OS, please use Linux"
vinleod has joined #ruby
<shevy> yay \o/
<agent_white> hanmac: Hahaha :D
<Timgauthier> woah the best is that one is a smart quote and one isn't
<Timgauthier> "...”
gheegh has joined #ruby
<siaw> NOW i need an explanation for this!
<siaw> i trye this in tryruby.org and !!”hello” returns true
krz has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
bal1 has joined #ruby
<Hanmac> siaw: your thing does shows this for me: "!!”hello”=> #<SyntaxError: <script>:2: syntax error,"
stef204 has joined #ruby
<siaw> i think i know why
<Areessell> Me too
jenrzzz has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<Hanmac> siaw: you have OSX right?
<siaw> irb was expecting more input after i typed “hello”? the first time
yfeldblum has joined #ruby
<siaw> hanmac: yes OSX
<siaw> it work now hanmac
<siaw> works
<siaw> thanks
Seich has joined #ruby
oleo has joined #ruby
bal has quit [Ping timeout: 240 seconds]
iamninja has quit [Quit: ZZZzzz…]
<shevy> siaw hmm you are using funny delimiters on IRC
<shevy> €�
<shevy> siaw can you try with eval-in__ here? with leading >> to invoke him
<shevy> >> "hello"
<eval-in__> shevy => "hello" (https://eval.in/235866)
<siaw> shevy: got it ;)
<shevy> I wanna see if the bot works! :(
hiyosi has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
dumdedum has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<shevy> what are the most typical chmod values?
<Areessell> 777
<shevy> yeah; I think I have the 7-row in the clear
<shevy> what about 333 or 111 or something like that?
Xeago_ has quit [Remote host closed the connection]
<certainty> wat?
<Areessell> 4 8 15 16 23 42
<shevy> 755 and 744 seem the most typical ones
<agent_white> I think 700, 644, 600
chrisja has joined #ruby
<agent_white> 755
<certainty> 0755, 0644, 0600
<certainty> i agree
<Areessell> Just use a random number generator like everyone else
<madhatter> Can anybody help me figure out why the albino gem does not work on one single machine here? https://github.com/github/albino
<shevy> certainty well I wanted an Array with all possibilities, but then I wondered because many of them I never used at all
jerius has joined #ruby
<shevy> Areessell so you are saying a random number generator will yield me chmod values
<madhatter> It's used in a jekyll plugin I use. But on one machine there is no output comming out of albino.
<Areessell> madhatter: From the site - "Note: This library is deprecated in favor of pygments.rb."
<certainty> shevy: there are possible values that don't make much sense, like having executable permissions but no read or write
<certainty> i'd go with those that are actually used
<Areessell> >> 3.times.collect { rand(8) }.join
<eval-in__> Areessell => "776" (https://eval.in/235870)
<madhatter> Areessell: Yes, I read that. But as it is not my plugin/code and it works on two machines, I thought there might be a workaround
<Areessell> Perfect!
<shevy> hmm
<certainty> also there are special ones like sticky and suid
<shevy> 3.times.collect { rand(8) }.join # => "432"
jeanlinux has joined #ruby
<Areessell> See how can you go wrong?
<Areessell> Security by obscurity
hamakn has quit [Remote host closed the connection]
<shevy> I see where your suggestion can go wrong
kl has joined #ruby
adriancb has joined #ruby
<shevy> certainty yeah - so ... 0755, 0644, 0600 ... 700 ... +1 when sticky ... suid... I think that's about a dozen common chmod-operations when it goes up high
<agent_white> Speaking of... what's the fancy way to do decimal to octal?
tvw has joined #ruby
<jhass> to_s(8) ?
<Areessell> Fancy? Drink champaign and use to_s(int)
<jhass> Array.new(3) { rand(8) } btw
<agent_white> Areessell: That was the problem, I wrote down a snippet on how to do it on a sticky note after a bit of champagne.
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aeo1ack has quit [Ping timeout: 264 seconds]
<Areessell> Don't do things so fancily, then =p
dstarh has joined #ruby
<shevy> agent_white a sticky note?
<shevy> where on did it stick?
dstarh has quit [Client Quit]
<Hanmac> shevy his IRC client is broken ... while typing "" it does turn into ””
AlexRussia has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
<shevy> cool
<agent_white> I wrote down... `"%." % 13359 => 10777`
<shevy> hanmac what is his OS?
<agent_white> where I got "%." ... I have no idea.
arup_r has joined #ruby
<ponga> hi shevy
<shevy> agent_white and where did you get the 13359
kaspertidemann has joined #ruby
<shevy> pongi hi
<shevy> erm
<Hanmac> shevy as he said siaw did use OSX ... that poor little fool ;P
<shevy> hi ponga
<shevy> hanmac ah no wonder then
<ponga> i friend of mine who's a big fan of java changed his profile picture of himself in a suit
nickbelhomme has joined #ruby
<agent_white> shevy: From `File.stat("foo").mode`
<ponga> i don't think its a coincidence
<Areessell> Something wrong with OS X all of a sudden?
<shevy> ponga hehehe
<ponga> you guys were right lol
<nickbelhomme> anyone here that knows how to use capistrano (a ruby project)
<ponga> gem java guy a suit
<Areessell> Haha'
<nickbelhomme> does anyone know how I can access ALL project + stage variables in a task? I want to loop them, so i can inspect their name before acting. The vars set depend per stage... so I cannot target by name.
<ponga> it really happened this morning
<Areessell> Yes I'm sure we all have used capistrano
<Hanmac> Areessell: do you want the long list or the short lis with the stuff that is not wrong?
<shevy> ponga well it's another culture in asia... like the term salaryman, we never had such a term for working people here http://en.wikipedia.org/wiki/Salaryman
tvw has quit [Client Quit]
<Areessell> hanmac: The long one
<shevy> or karoshi
siaw has left #ruby [#ruby]
josephndenton has joined #ruby
<wasamasa> shevy: I've read a pretty good article about that part of japanese culture once
<Hanmac> Areessell: OSX does turn "" it does turn into ”” ... for normal typing it might be okay ... for an irc bot like eval-in it is not
<ponga> actually shevy he's new zealander
<shevy> ponga hahaha
<ponga> and he got suit... for a reason
<shevy> ponga maori style?
<ponga> that we all know
<Areessell> It does? Ley me check. "Hm no it doesnt"
<nickbelhomme> Areessell, I am not proficient enough in ruby to extract that information from the code of the capistrano repository... and the docs do not mention it.
rshetty has quit [Remote host closed the connection]
<madhatter> Areessell: Okay. I replaced albino by pygments. :)
<shevy> wasamasa oh yeah I've read that too but it somewhat conflicted with what other foreigners wrote who were working in japan too for a long time, or what manveru from #ruby-lang said about japan when he was working there
Sunlorhic has joined #ruby
eka has quit [Ping timeout: 256 seconds]
<Areessell> Any other fake superficial reasons to hate on a (Unix based) operating system for no reason? =p
dawkirst has joined #ruby
<arup_r> shevy: How is my Hat? That's a gift for coming Xmas from SO :)
<certainty> nickbelhomme: what's the problem?
<shevy> arup_r what hat?
<ponga> shevy:
<arup_r> see my profile pic.. :)
<ponga> 'Don’t have a wife? You might quite reasonably think “I don’t have time to even think about that.” Don’t worry — the company will fix your social calendar for you. It is socially mandatory that your boss, in fulfillment of his duties to you, sees that you are set up with a young lady appropriate to your station. '
<ponga> so asian, yet so true
evanjs has joined #ruby
<ponga> lol
<nickbelhomme> certainty, I want to loop all the capistrano configuration variables...
Takle has quit [Remote host closed the connection]
<ponga> boss would be glad to fix you up!
<Hanmac> Areessell: maybe you already change that, per default it does
<nickbelhomme> but it is in ruby and the docs don't mention on how to do that
<agent_white> Areessell/shevy: I FOUND IT!
<nickbelhomme> so I tried to extract that from reading the code, but I failed
<shevy> you don't have a hat there!
<wasamasa> shevy: I think it's a bit too sarcastic
<arup_r> shevy: That's Winter Bash ceremony
aeo1ack has joined #ruby
<agent_white> >> x = 13359; p "%o" % x;
<eval-in__> agent_white => "32057" ... (https://eval.in/235871)
<Areessell> hanmac: I've literally never even seen it change it to those fancy double quotes and no, I havn't "changed" anything O_o
<agent_white> Nope wait
<agent_white> that's not right
<arup_r> Are they making me fool :( Shevy..
<shevy> wasamasa yeah though I guess it may depend on where one lives... tokyo is so big that it has like 3 central places
Roa has quit [Ping timeout: 255 seconds]
<shevy> Areessell but siaw outputs weird characters
SOLDIERz has joined #ruby
<ponga> shevy: i can confirm the boss fixing you on lady matter is true even these days
<dawkirst> hey guys, can someone please look at http://exercism.io/submissions/c8b26a944d64ab7e0ff9d7d8 and tell me what they think of the solution
procat has joined #ruby
<shevy> ponga really?
<Areessell> I dunno. I program on OSX, Win 8, and Arch Linux and never had a problem and any of them.
<shevy> here in central europe this would be outrageous because it would be an attempt to influence on the personal life of a workforce
<ponga> yes shevy you can trust me on these stuff
<certainty> nickbelhomme: i'd expect something like Capistrano::Configuration.env.keys to return all keys. then you can use these to fetch the values
<Areessell> dawkirst: It's asking us to login. So I doubt anyone will see it
<ponga> shevy: workforce and personal life don't seperate that well here
<ponga> we all know this ser
<shevy> ewww
<ponga> i've told million times
<dawkirst> Areessell: ah, thanks, let me look
<nickbelhomme> certainty, let me try
it0a has joined #ruby
<certainty> nickbelhomme: that's for capistrano3. I didn't use that yet. I just looked it up in the sources
<ponga> and plus if you boss wants a sip after work you have to follow (escort , if you will lol) shevy
<ponga> its kinda peer pressure like
<dawkirst> Areessell: alas, there's no way to make it public (i.e. you'll have to log in). thanks anyway
<Areessell> ponga: You do WHAT for your boss? Gross
<shevy> ponga well after work is fine
<agent_white> >> x = 0644; "%04o" % x;
<eval-in__> agent_white => "0644" (https://eval.in/235873)
<ponga> Areessell: its about a pint of beer
<ponga> don't misjudge it!
<Areessell> For that cheap?! Man oh man
<shevy> it's not the getting together or anything that shocks me, but the attempt at couple match-mating
<nickbelhomme> certainty, I get the following: undefined method `env' for Capistrano::Configuration:Class
<agent_white> >> x = 0511; "%04o" % x;
<eval-in__> agent_white => "0511" (https://eval.in/235874)
<shevy> erm *match-making
kl has quit [Ping timeout: 258 seconds]
<ponga> here i see yet again another yoropean having difficulty to understand us
larissa has joined #ruby
<ponga> it happens all the time hehe
AFKGeek has quit [Quit: Fades into the shadows]
icbm has joined #ruby
<certainty> nickbelhomme: which capistrano version is this?
<ponga> don't worry Areessell at least boss will buy you drink and food along, its involved in the culture
<ponga> boss has to buy everything on food matter
<ponga> which can make shevy happier perhaps
<shevy> ponga well one thing I understand is asian cuisine - I loved dolsot bibimbap, bulgogi burgers... sushi ...
<arup_r> ponga: hehehe
<ponga> 2 korean 1 japan
<ponga> i feel sorry for chinese now
kl has joined #ruby
<shevy> don't feel sorry for them
<shevy> they outnumber you! :D
<ponga> yeah i think chinese and indian cuisine are so grandeur in quantity and quality that its not counted part of asian cuisine
<shevy> what's it like ... both korea + japan... would reach 200 million people; that's 1/7 of china or something like that
<ponga> its stand-alone
<shevy> indian cuisine?!
<shevy> so much curry
<shevy> the rice is good though
<ponga> good curry and rice, what can you ask more of
Roa has joined #ruby
<certainty> nickbelhomme: try just variables
<certainty> i vagueley remember something. mom
last_staff has quit [Quit: last_staff]
mary5030 has joined #ruby
dionysus69 has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
<shevy> don't call ur mom!
<Areessell> Mom!!!
<certainty> :p
<shevy> now you did it certainty
rshetty has joined #ruby
<ponga> lol
<shevy> all the crybabies will now call for their mom here
kobain has joined #ruby
<shevy> "mom, can you write this little ruby script for me today?
<certainty> nickbelhomme: yeah it was variables. it's a hash
<Areessell> Mom, fix my coooode c'moooon I'm seriously!
rodfersou has quit [Remote host closed the connection]
<ponga> i like ' i'm seriously' Areessell
zorak8 has quit [Ping timeout: 245 seconds]
<ponga> made it even better
rodfersou has joined #ruby
joonty has joined #ruby
iamninja has joined #ruby
<certainty> shevy: wasn't crybaby an early john travolta movie?
<certainty> maybe jonny depp?
<shevy> dunno, don't like john fatolta
<certainty> my memory
<certainty> i'm getting old
kamilc__ has joined #ruby
<shevy> only role in where he was good was pulp fiction
<certainty> he certainly was
<certainty> dunno if that's the only one though
<shevy> it was!
<shevy> don't say you enjoyed his dancing
<certainty> ok i wont
pengin has joined #ruby
<certainty> whatabout password swordfish?
<shevy> though he wasn't yet fat therein
<shevy> I hated swordfish
<certainty> well he wasn't good there
<shevy> thankfully I never watched it completely
<shevy> the john woo movie was ok
<shevy> but implausible
<shevy> "Face Off"
<Areessell> Did you know that his son was kidnapped for extortion
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
<nickbelhomme> certainty, indeed capistrano doesn't throw an error anynore, but it doesn't work either... I am debugging now
anarang has quit [Quit: Leaving]
tristanp has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
freerobby has joined #ruby
eka has joined #ruby
Xeago has joined #ruby
<shevy> guys
hornairs has joined #ruby
<shevy> should we query an instance variable directly in a class, or should we use a method for it?
Xeago has quit [Remote host closed the connection]
<shevy> if @use_colours
<shevy> vs
<shevy> if use_colours?
Takle has joined #ruby
<certainty> nickbelhomme: have fun
doodlehaus has quit []
<certainty> shevy: @use_colours
{xenomorph} has quit [Ping timeout: 258 seconds]
<certainty> we've had that conversation some time back
<shevy> hmm
<shevy> but why
tylersmith has quit [Ping timeout: 258 seconds]
<certainty> shevy: we're talking about a class querying its own instance variables right?
<shevy> yes, internal use
<certainty> there is no advantage of the method generally
<shevy> will it be slower?
<certainty> i think apeiros_ even did some more research on that
<ponga> use method?
<certainty> shevy: it certainly will
<Areessell> It has to do through the call stack each time with the method
pengin has quit [Remote host closed the connection]
<Areessell> the var is just a var
tylersmith has joined #ruby
{xenomorph} has joined #ruby
sk87 has joined #ruby
pengin has joined #ruby
<shevy> makes sense
aeo1ack has quit [Ping timeout: 245 seconds]
Channel6 has joined #ruby
hamakn has quit [Remote host closed the connection]
<ponga> shevy tell me the answer after you've found it plz
<ponga> im interested to know which is better
hornairs_ has joined #ruby
<shevy> ponga first I will try to determine how much slower the method invocation is
<godd2> shevy you are correct. ill be pushing out a newer version of dare either today or tomorrow
tristanp has joined #ruby
<Areessell> ponga: Referencing the variable is clearly better O_o
<shevy> godd2 \o/
<ponga> so querying is faster than method
jaequery has joined #ruby
Xeago has joined #ruby
dts|pokeball has joined #ruby
hornairs has quit [Ping timeout: 240 seconds]
pengin has quit [Ping timeout: 255 seconds]
jpstokes has joined #ruby
<jpstokes> Mongoid question: Hello....I'm getting the following error when I run the site test on a project that I just took over. I'm not sure what's causing it: https://gist.github.com/jpstokes/b004aec6952295bc1872
<ponga> hm
noop has quit [Ping timeout: 245 seconds]
fmcgeough has joined #ruby
tobago has quit [Remote host closed the connection]
<Areessell> `ancestors` must be empty
banister has joined #ruby
<godd2> ancestors is a liar anyway
tokik has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
maestrojed has joined #ruby
banister has quit [Read error: Connection reset by peer]
paulfm has quit [Quit: Zzzzz...]
<godd2> >> a = Object.new; a.singleton_class.singleton_class.ancestors
<eval-in__> godd2 => [#<Class:#<Class:#<Object:0x40cb9018>>>, #<Class:Object>, #<Class:BasicObject>, Class, Module, Object, Kernel, BasicObject] (https://eval.in/235875)
tangyumeng has joined #ruby
<tangyumeng> hi
<godd2> ooh, its not lying there
Xeago has quit [Remote host closed the connection]
devoldmx has joined #ruby
obscured has joined #ruby
<agent_white> shevy: IRC bugged out. Best to use the instance variable in the method?
valeriansaliou has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<nickbelhomme> certainty, THX man!!!
<nickbelhomme> it works
<nickbelhomme> you are a life saver
<certainty> great
tagrudev has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
paulfm has joined #ruby
<Areessell> godd2: ancestors what the name of a variable in that code =p
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ta has quit [Remote host closed the connection]
<Areessell> s/what/was
dopie has quit [Remote host closed the connection]
tangyumeng has quit [Client Quit]
dawkirst has quit [Quit: Leaving...]
agjacome has quit [Quit: leaving]
tangyumeng has joined #ruby
kiyote23 has joined #ruby
felipedvorak341 has joined #ruby
<shevy> agent_white well from what I gathered, it was said it is best to just use the @ivar and no method at all as it will be slower
<shevy> *slower with a method
valeriansaliou has quit [Ping timeout: 245 seconds]
<Areessell> Why in the world would anyone think otherwise? O_o
mondongo has joined #ruby
<agent_white> Ohsweet
FooMunki_ has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
<Areessell> "Instead of talking to you directly, I'd like to go somewhere else and call you on the phone."
Axy has joined #ruby
karmatr0n has quit [Remote host closed the connection]
tvw has joined #ruby
<godd2> Yes it is 66% "slower" to use a method instead of a straight ivar, but each one is lightning fast anyway.
valeriansaliou has joined #ruby
felipedvorak has quit [Ping timeout: 250 seconds]
tangyumeng has quit [Client Quit]
paulfm has quit [Quit: Zzzzz...]
Mia has quit [Ping timeout: 240 seconds]
FooMunki has joined #ruby
<godd2> a method call to get an ivar takes 0.0000793 ms on my machine and a direct ivar call takes 0.0000477 ms
<Areessell> Those are some sexy numbers
tangyumeng has joined #ruby
<godd2> stupid sexy zeros
lampd1 has quit []
timonv_ has quit [Remote host closed the connection]
felipedvorak2552 has joined #ruby
kl has quit [Ping timeout: 240 seconds]
<godd2> all in all, I'd say the benefits of using a method call outweigh the cpu burden
lmickh has joined #ruby
paulfm has joined #ruby
<godd2> but that's more of an opinion
Xeago has joined #ruby
kl has joined #ruby
pandaant has quit [Remote host closed the connection]
tangyumeng has quit [Client Quit]
nickbelhomme has quit [Ping timeout: 265 seconds]
leo-unglaub has quit [Remote host closed the connection]
felipedvorak341 has quit [Ping timeout: 250 seconds]
rshetty has quit [Remote host closed the connection]
leo-unglaub has joined #ruby
leizzer has joined #ruby
klmlfl has joined #ruby
tier has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cheerio]
MasterPiece has quit [Quit: Leaving]
stunder has joined #ruby
Axy has quit [Ping timeout: 255 seconds]
<shevy> hmm
Vivex has joined #ruby
<shevy> is that a benchmark?
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<godd2> a very crude one, but yes
craigp has quit [Remote host closed the connection]
<shevy> speaking of which
<shevy> why is this a Dog
<godd2> you may want to drop a couple 0s if you run it on your machine
craigp has joined #ruby
<shevy> oh yeah I am adapting that code right now
<godd2> because Dogs have legs
<shevy> biggest hurdle for me is the name of the class
<shevy> right
tangyumeng has joined #ruby
<godd2> how many other things have legs? not many
<shevy> well
<shevy> how about class Cat
<godd2> Yea but then I'm typing all the letters with one hand
<shevy> I tested it with somewhat higher values
<shevy> 1.124592697
<shevy> 1.74161578
<godd2> the ratio is what's important here
<godd2> obviously the numbers themselves will be diffferent on different machines
tier has joined #ruby
<shevy> 1.312450785
<shevy> 1.917416059
<godd2> >> 1.0 - 1.74161578/1.124592697
<eval-in__> godd2 => -0.5486636047397346 (https://eval.in/235927)
Xeago has quit [Remote host closed the connection]
<godd2> 54% slower to do a method call
<shevy> :(
<shevy> we need a new ruby
<godd2> how many times did you run each loop?
<shevy> and call it ruby-lightning
<shevy> last one N_TIMES = 17_500_000
klmlfl has quit [Remote host closed the connection]
<godd2> right so a method call took 1.74161578/17_500 ms
<godd2> >> 1.74161578/17_500
<eval-in__> godd2 => 9.952090171428571e-05 (https://eval.in/235928)
<godd2> thats not a lot of time
craigp has quit [Ping timeout: 264 seconds]
<godd2> so unless you're twitter or google, it makes no difference
Xeago has joined #ruby
wroathe has quit [Ping timeout: 272 seconds]
zB0hs has joined #ruby
<godd2> being a little more optimal with your cpu is a good thing in general, but this isn't one of those place
<godd2> places*
jobewan has joined #ruby
<certainty> i don't think speed is the main argument. The question is what does it gain you to use the method?
<shevy> hey it is slower
<godd2> readability
<certainty> godd2: how is that more readable?
mocker has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<shevy> I find it more readable too btw
<godd2> it doesnt have an @ polluting the reading
<shevy> but if it is slower than that kills it for me :(
<certainty> shevy: hehe i don't care about speed most of the time :)
<godd2> lol shevy if 0.00001 ms is killin it for you, I suggest you find another language :P
studiotate has joined #ruby
wpp has quit [Quit: ZZZzzz…]
<shevy> no
<shevy> imagine you use ruby for the next 50 years
<shevy> write 500.000 more .rb files
divi has joined #ruby
<certainty> godd2: that's probably a subjective thing then. There are many other tokens that might have the same effect
<shevy> execute it daily
<shevy> that's like 3 hours won that I could spend on pr0n!
<shevy> godd2 I am trying to find better languages but ruby spoiled me :(
felipedvorak2552 has quit [Quit: Leaving]
<godd2> I often think about the 3 lost hours of pr0n ill miss over the next 50 years
<shevy> I mean ... can you go back to php after ruby?
<certainty> shevy: visual basic
banister has joined #ruby
<shevy> godd2 just wait until you get older :D
<godd2> lol I think I'm older than you
<certainty> i mean. he/she is god :)
<godd2> that's the REAL reason I use Dog
tier has quit [Remote host closed the connection]
<certainty> OTOH shevy is really old
<godd2> the anagram
<shevy> certainty visual basic has really awful syntax man
<shevy> End Sub
mondongo has quit [Quit: mondongo]
<shevy> certainty how can you justify this ^^^
<certainty> yeah i love it
<certainty> on error resume next
<certainty> love that too
kl has quit [Ping timeout: 244 seconds]
AmirolAhmad has joined #ruby
<shevy> you can't mention visual basic
<certainty> i can
<certainty> i did
renderful has joined #ruby
dts|pokeball has quit [Ping timeout: 245 seconds]
<certainty> sue me
kobain has joined #ruby
<deepy> Do you work at a financial institute?
<shevy> they'll think you are a COBOL guy - just without any knowledge in COBOL
davedev24_ has joined #ruby
<workmad3> shevy: don't you know, the entire world runs on VB6 and COBOL
<shevy> certainty hey - sueing people here has only one profiteer... the lawyer!
<certainty> hehe same here
<certainty> workmad3: indeed!
AmirolAhmad has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<workmad3> shevy: unless you're in something scientific... then its matlab and fortran
<certainty> at least the important bits do
AmirolAhmad has joined #ruby
<certainty> shevy is in biology
<workmad3> maybe some python if you're lucky ;)
Morkel has quit [Quit: Morkel]
timonv_ has joined #ruby
<certainty> or the wolfram language if you're really fancy
<workmad3> certainty: if he's not using matlab, python and fortran, it's not serious stuff ;)
kiyote23 has quit [Remote host closed the connection]
<certainty> heh
<certainty> shevy: are you seriously looking for a different language?
<workmad3> certainty: speaking of weird, crappy legacy stuff
gkra_ is now known as gkra
<certainty> workmad3: blitz basic?
<workmad3> certainty: have you ever come across someone who has managed to get a java program to be tied to a specific processor?
tier has joined #ruby
bal1 has quit [Quit: bal1]
geggam has joined #ruby
kiyote23 has joined #ruby
<workmad3> (note processor... not processor architecture...)
<godd2> workmad3 you mean like, inadvertently?
<certainty> workmad3: hmm no i think i didn't
<workmad3> godd2: I hope it was inadvertant :)
renderful has quit [Ping timeout: 258 seconds]
<shevy> certainty sure. but there simply is not one suitable, ruby is better
shortCircuit__ has quit [Ping timeout: 264 seconds]
mloveless has joined #ruby
tangyumeng has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eka has quit [Ping timeout: 240 seconds]
<certainty> shevy: why? i mean what are you missing?
<shevy> nimrod was interesting but I don't like some syntax decisions, and it always felt as if I'd have to do extra work compared to ruby
kapil__ has quit [Quit: Connection closed for inactivity]
<workmad3> shevy: have you taken a look at quorum yet?
<shevy> certainty I find ruby too complex
yfeldblum has quit [Ping timeout: 240 seconds]
tier_ has joined #ruby
<certainty> shevy: well then scheme
<certainty> i'm serious
<shevy> never heard about quorum... sounds physicist
<shevy> certainty that is with () right?
<certainty> yeah
<certainty> get over it
_Andres has joined #ruby
rshetty has joined #ruby
<workmad3> shevy: they're constructing and modifying the language based on empirical evidence
<godd2> most of ruby's awesomeness lies in its optional semicolons and parens, its blocks, and its singleton classes
<waxjar> what about lua shevy?
<shevy> workmad3 empirical evidence?
<workmad3> shevy: yeah, as in running experiments with lots of languages to determine the best syntax choices
<shevy> waxjar lua feels as if it is so light that I'd be missing a lot of stuff
<shevy> lua-5.2.3.tar.xz 197K
<shevy> I dunno that does not inspire much confidence in me about lua :\
<certainty> also this sounds promising: http://shenlanguage.org/
<shevy> and we'll have mruby one day! \o/
<certainty> i meant to have a close look
<shevy> hey cool... http://shevylanguage.org/
<certainty> workmad3: strange stuff
<shevy> what does shen stand for? shenanigans?
<workmad3> certainty: they discovered some great stuff in the quorum experiments :)
kiyote23 has quit [Ping timeout: 255 seconds]
Timgauthier is now known as timgauthier_away
<shevy> I also haven't looked at jhass' favourite crystal either
eka has joined #ruby
<jin__> shevy: shen means diety in mandarin
rismoney1 has joined #ruby
<jin__> deity*
<certainty> shevy: like in crystal meth?
tier has quit [Ping timeout: 245 seconds]
<workmad3> certainty: like perl ranking with a placebo when it comes to language newcomers being able to figure it out :)
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maasha has quit [Quit: Page closed]
<shevy> " However, all of the following names are not allowed: "
<shevy> "integer _sally = 10 //an underscore cannot be the first character"
<shevy> :(
<certainty> workmad3: lol. I'm currently reading on the page. I don't know if that's something for me but it sounds interesting
<workmad3> (their placebo was a language with randomly chosen keywords and types)
<godd2> If I can't try your language in the browser, I don't wanna learn it
agit0 has quit [Quit: This computer has gone to sleep]
<shevy> hehehe
redondos- has quit [Ping timeout: 264 seconds]
<shevy> jin__ cool
<workmad3> certainty: same... interesting work, even if it's not something I'd necessarily use :)
Xeago has quit [Remote host closed the connection]
rippa has joined #ruby
jin__ is now known as jin_
dc_ has joined #ruby
dumdedum has quit [Quit: foo]
tristanp has quit [Remote host closed the connection]
Jackneill has joined #ruby
banister has quit [Read error: Connection reset by peer]
dc_ has quit [Ping timeout: 255 seconds]
yakko has joined #ruby
DonOtreply has joined #ruby
jalcine has quit [Ping timeout: 258 seconds]
camilasan has quit [Ping timeout: 258 seconds]
frog|OFF is now known as green-big-frog
Tamal has joined #ruby
eichenwald has quit [Quit: Leaving]
jalcine has joined #ruby
<green-big-frog> hi
bahamas has joined #ruby
livathinos has quit []
<bahamas> hello. anyone know how to disable host key checking for net::ssh?
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<Areessell> Turn off host
Tamal is now known as tamal
<bahamas> Areessell: how do you mean?
camilasan has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
kiyote23 has joined #ruby
<certainty> bahamas: the first step is to think about whether you really want that
<jpstokes> Mongoid question: Hello....I'm getting the following error when I run the site test on a project that I just took over. I'm not sure what's causing it: https://gist.github.com/jpstokes/b004aec6952295bc1872
<bahamas> certainty: this is for serverspec used in conjunction with vagrant
<Areessell> jpstokes: I already told you ancestors must be empty. inspect it
<bahamas> since I use the same IP for multiple VMs, I don't want to have this check
<jpstokes> Areessell: oh
<bahamas> so I want net::ssh to not stop if the host doesn't match what exists in the user's known_hosts
pu22l3r has joined #ruby
<Areessell> jpstokes: The method is expecting an argument and it's receiving an exploded array so the array must be empty.
Parker0 has quit [Ping timeout: 250 seconds]
<certainty> bahamas: i don't know it. what i just looked up is that there is the paranoid option for Net::SSH.start which can be set to false
<jpstokes> gotcha...I'm inspecting now...thankx
<Areessell> Yep
Calmoto1 has joined #ruby
yakko has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
joonty has quit [Quit: Leaving]
kiyote23 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
AmirolAhmad has joined #ruby
<bahamas> certainty: ok, thanks
yakko has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Calmoto has quit [Ping timeout: 240 seconds]
fivetwentysix has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
apeiros_ has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 258 seconds]
apeiros_ has joined #ruby
fabrice31 has joined #ruby
mwebb has joined #ruby
renderful has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
mwebb has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
tus has joined #ruby
jheg has quit [Quit: jheg]
GaryOak_ has joined #ruby
einarj has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
dkphenom has joined #ruby
iwishiwerearobot has quit [Quit: >:(]
fivetwentysix has quit [Ping timeout: 250 seconds]
<godd2> jpstokes on line 258 you're running Page.criteria.for_ids(*ancestors) and its telling you that you aren't passing any arguments
chrishough has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
<Areessell> godd2: We've been over this a few times now
fivetwentysix has joined #ruby
mikepack has joined #ruby
AmirolAhmad has joined #ruby
Megtastique has joined #ruby
yakko has quit [Ping timeout: 250 seconds]
aswen has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
aganov has quit [Quit: Leaving]
pengin has joined #ruby
mengu__ has joined #ruby
Prometheian_ has quit [Remote host closed the connection]
jaequery has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
klmlfl has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
droidburgundy has joined #ruby
kaspertidemann has quit []
spyderman4g63 has quit [Ping timeout: 250 seconds]
Parker0 has joined #ruby
timonv_ has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
zarubin has quit [Remote host closed the connection]
delianides has quit []
kiyote23 has joined #ruby
karmatr0n has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
kiyote23 has quit [Remote host closed the connection]
devoldmx has joined #ruby
gsd has joined #ruby
seejohnrun has joined #ruby
seejohnrun has quit [Client Quit]
seejohnrun has joined #ruby
kiyote23 has joined #ruby
msgodf has quit [Ping timeout: 244 seconds]
CustosL1men has quit [Ping timeout: 265 seconds]
wroathe has joined #ruby
boombadaroomba has joined #ruby
jobewan has quit [Quit: Leaving]
ArchBeOS has joined #ruby
jobewan has joined #ruby
djdarkbeat has joined #ruby
tristanp has joined #ruby
kiyote23 has quit [Ping timeout: 265 seconds]
allcentury has quit [Ping timeout: 244 seconds]
n80 has joined #ruby
<ArchBeOS> I have a weird question. I have a collection that normally I would go coll[:outer][:inner][:value][:something] (I didnt create it, it's passed back to me). I also get an array of symbols from another place [:inner, :value, :something]. Is there a way that I can transverse through my initial collection and use the new array of symbols I get as a way to get to what I need to get in the collection (this is tough to explain).
Xeago has joined #ruby
wroathe has quit [Ping timeout: 245 seconds]
eka has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
boombadaroomba has quit [Ping timeout: 245 seconds]
tier_ has quit [Remote host closed the connection]
Calmoto1 is now known as calmoto
<shevy> ArchBeOS wat
<canton7> ArchBeOS, sure :)
<shevy> so you have a hash and an array
<canton7> the array describes how to traverse the hash
<ArchBeOS> bingo canton7
<canton7> I've done this before :P
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ArchBeOS> i have no idea how to do this
<shevy> the way how canton7 explains it sounds so much simpler
kiyote23 has joined #ruby
yakko has joined #ruby
<canton7> #inject's probably the easiest way to do it
<canton7> hang on... gonna throw together an example
eka has joined #ruby
seejohnrun has quit [Quit: leaving]
<ArchBeOS> thanks canton7
seejohnrun has joined #ruby
<canton7> >> a = {outer: { inner: { value: { something: 'foo' } } } }; b = [:outer, :inner, :value, :something]; b.inject(a){ |hash,key| hash[key] }
<eval-in__> canton7 => "foo" (https://eval.in/235932)
<canton7> make sure you understand that before using it ;)
<canton7> also make sure you comment that :P
yfeldblum has quit [Ping timeout: 264 seconds]
<ArchBeOS> ok
<avril14th> what's the regex POSIX bracket expression to match \t \n and like control characters excluding spaces?
<ArchBeOS> let me look at this for a second
CustosL1men has joined #ruby
<avril14th> ArchBeOS as in Be Operating System?
<ArchBeOS> yup
kiyote23 has quit [Remote host closed the connection]
<avril14th> you are my instant friend, why are you not in #haiku? :)
rippa has joined #ruby
larissa has quit [Quit: Leaving]
lemur has joined #ruby
AlSquirrel has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
spider-mario has joined #ruby
AlSquirrel has joined #ruby
apeiros_ has joined #ruby
larissa has joined #ruby
byprdct has joined #ruby
ghostmoth has joined #ruby
<ArchBeOS> canton7: let me see if i can explain whats going on. after setting up our hash and array we then inject our array into our hash. Kinda like map, but we are transversing the array and calling the injected object (the hash). The hash isn't transversed since it's the injected item. Am I correct?
<canton7> ArchBeOS, not sure - not 100% sure I understood you explanation
leo-unglaub has quit [Remote host closed the connection]
<ArchBeOS> ok let me try gain
mylar has quit []
pika_pika has quit [Ping timeout: 258 seconds]
arup_r1 has joined #ruby
jaequery has joined #ruby
<ArchBeOS> inject lets us loop through the array passing in each array element and the hash as a whole. we then call hash[key] knowing that hash (the first arg in the block) hasnt changed state.
<ArchBeOS> was that better canton7 or am i just rubbish?
jdj_dk has quit [Remote host closed the connection]
Avahey has joined #ruby
<avril14th> yes
Parker0_ has joined #ruby
Parker0 has quit [Read error: Connection reset by peer]
<avril14th> it passes whatever was previously returned
jdj_dk has joined #ruby
<avril14th> or for the first item, what you initializedinject with
<ArchBeOS> OH!
<ArchBeOS> I see it now
* canton7 stops typing and lets avril14th explain :)
treehug88 has joined #ruby
znn has joined #ruby
sailias has quit [Quit: Leaving.]
<znn> is there a channel for discussion around rake?
* avril14th delegate :answer, :to => canton7, :allow_nil => true
arup_r has quit [Ping timeout: 258 seconds]
<canton7> :P
<avril14th> znn: here or #rubyonrails
<ArchBeOS> hash[key] is returned and the next itteration has the new hash object
lemur has quit [Remote host closed the connection]
<avril14th> yes
<avril14th> whatever you returned
<ArchBeOS> avril14th: thanks for my eureka moment
<avril14th> so watch out to always return something
<ArchBeOS> and thanks canton7
nickbelhomme has joined #ruby
<znn> thanks avril14th
lemur has joined #ruby
<canton7> hehe, no worries
tsunamie has quit [Max SendQ exceeded]
tsunamie has joined #ruby
tsunamie has quit [Max SendQ exceeded]
<ArchBeOS> so array.inject(hash) { |in, a| in[a] #out }
fivetwentysix has quit [Ping timeout: 250 seconds]
tsunamie has joined #ruby
<avril14th> in[a] will be passed to next interation
dts|pokeball has joined #ruby
Areessell has quit [Ping timeout: 265 seconds]
lorn_ has joined #ruby
tsunamie has quit [Max SendQ exceeded]
<shevy> I always forget how .inject works
Timgauthier has joined #ruby
pengin has quit [Remote host closed the connection]
goodenough has joined #ruby
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tsunamie has joined #ruby
pengin has joined #ruby
<avril14th> ArchBeOS: you have a gist?
tsunamie has quit [Max SendQ exceeded]
<ArchBeOS> yes i do, avril14th. thanks.
spyderman4g63 has joined #ruby
<avril14th> ahah
alex88 has quit []
dANO has quit []
tsunamie has joined #ruby
atmosx has joined #ruby
StoneCypher has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
Megtastique has quit []
lemur has quit [Ping timeout: 258 seconds]
chthon has quit [Ping timeout: 264 seconds]
atmosx has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
sambao21 has joined #ruby
ramfjord has joined #ruby
atmosx has joined #ruby
pengin has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
pietr0 has joined #ruby
karmatr0n has quit [Remote host closed the connection]
jstad has joined #ruby
bricker`work has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeff-ooh has joined #ruby
<shevy> can't wait for avril15th
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
jgrevich has joined #ruby
<avril14th> me too actually, but that's if Richard gets back to work
<godd2> shevy inject is just reduce
anaeem1 has quit [Remote host closed the connection]
jeff-ooh has quit [Ping timeout: 272 seconds]
<shevy> ok but that means what
<shevy> what is reduced?
<godd2> recude reduces a collection by one dimension
<godd2> for example an array into the sum of its elements
<shevy> godd2 btw I decided to seriously learn both rails and C next year (that is, I learned snippets in both but gave up due to boredom). Which one should I start with though?
<godd2> >> [1,2,3,4,5].reduce {|acc, i| acc + i}
<eval-in__> godd2 => 15 (https://eval.in/235935)
powersurge has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
rshetty has quit [Remote host closed the connection]
<Hanmac> godd2: i still prefer #inject over it
banister has joined #ruby
<powersurge> if I have a switch statement inside of a while loop and do a 'break' will it break out of the while loop as I expect or will it be swallowed up by the switch statement even though ruby's case has an implicit break?
<godd2> you 'reduce' from 'many' to 'one'
<Hanmac> shevy if you learn C first you might help me with rwx and other stuff
<godd2> or you can 'inject' from 'many' into 'one'
jeremywrowe has joined #ruby
<godd2> of course, that 'one' can be 'one array' e.g.
<shevy> well reduce is a better term
<shevy> inject reminds me of a syringe and I hate syringes
<godd2> >> [1,2,3,4,5].reduce([]) {|acc, i| acc << i }
<eval-in__> godd2 => [1, 2, 3, 4, 5] (https://eval.in/235936)
<shevy> hanmac yeah I could also help with ruby-gnome
adriancb has quit [Remote host closed the connection]
<shevy> powersurge what is a "switch statement"
Hanmac has quit [Quit: Leaving.]
<godd2> [] is the default accumulator there. it's the 'one' thing into which the 'many' elements of [1,2,3,4,5] are being reduced from
<banister> shevy i always figured you were a foldl kind of guy
<shevy> powersurge if you use break though then you will exit the loop {}
<powersurge> well, in ruby it's a case statement, I guess
<shevy> yeah powersurge; break will work fine
<avril14th> yeah, case when then
<shevy> case @user_input
<godd2> polymorphism > case :P
<powersurge> so break will break the while loop?
<powersurge> cool
<powersurge> thanks :>
<shevy> yeah
<shevy> loop { break if game_over? }
mikecmpbll has quit [Quit: ciao.]
Seich has quit [Ping timeout: 258 seconds]
<godd2> you forgot else keep_playing!
bodgix_wrk1 has joined #ruby
bodgix_wrk has quit [Ping timeout: 245 seconds]
twistedpixels is now known as zz_twistedpixels
<jhass> godd2: when you write an inject that always returns the same object, consider each_with_object instead
<shevy> well I usually combine it with some kind of user input or user action. Been a while since I last tried to write a game in rubygnome... but I was using ruby 1.8.7; I still haven't ported like 80% of my ruby-gnome code to 2.x era...
jfran has joined #ruby
sk87 has joined #ruby
CustosL1men has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
olivier_bK has quit [Ping timeout: 245 seconds]
Seich has joined #ruby
renderful has quit [Remote host closed the connection]
dstarh has joined #ruby
<godd2> jhass may I ask why?
valeriansaliou has quit [Quit: Be back later ...]
<jhass> because it communicates intention much better
<godd2> to whom?
<shevy> to jhass
valeriansaliou has joined #ruby
pika_pika has joined #ruby
<jhass> the reader of your code of course
patrick99e99 has joined #ruby
<shevy> I wouldn't know the first thing about any difference between .inject or .each_with_object, although the name .each_with_object would seem to make more sense - but it does not seem to match to what godd2 described .reduce does
<jhass> inject/reduce reduce a set of values to a single value, map/each_with_object transform a set of values into a set of new values
bodgix_wrk1 has quit [Client Quit]
<shevy> .each_with_object is the same as .map ?
bodgix_wrk has joined #ruby
<jhass> no
<godd2> "inject/reduce reduce a set of values to a single value" yea and my code reduced a set of values into a single array
<jhass> an array is a set of values
ramfjord has quit [Ping timeout: 258 seconds]
msgodf has joined #ruby
Xeago has quit [Remote host closed the connection]
<godd2> its also a single vlue
tangorri has quit [Read error: Connection reset by peer]
rismoney1 has quit [Ping timeout: 250 seconds]
terlar has quit [Ping timeout: 256 seconds]
<jhass> well, everything is, not the point
<shevy> godd2 I keep on asking myself why there are not more games written in ruby
bodgix_wrk has quit [Client Quit]
<havenwood> shevy: map is: each_with_object [] do |item, array| array << block.call(item) end
<jhass> also you don't have to care about ; foo or that << returns self
JBreit has joined #ruby
tier has joined #ruby
tier has quit [Read error: Connection reset by peer]
djdarkbeat has quit [Read error: Connection reset by peer]
<godd2> jhass well I'll agree that each_with_object probably conveys intention better in general, but I don't agree with your reasons :P
Megtastique has joined #ruby
tier has joined #ruby
anaeem1 has joined #ruby
n80 has quit [Quit: n80]
jdj_dk has joined #ruby
<jhass> what are your reasons then?
dseitz has joined #ruby
Parker0_ has quit [Ping timeout: 272 seconds]
<godd2> my reason is that "each_with_object" has the words "each" "with" and "object"
centrx has joined #ruby
<epitron> shevy: lsegal tried writing bindings to opencl in ruby.... the problem was that shitloads if integers have to be exchanged between MRI and opencl, and in ruby, they're objects
djdarkbeat has joined #ruby
<epitron> so it becomes a huge bottleneck
karmatr0n has joined #ruby
<epitron> things like that kind stuck in ruby
econerd4ever has joined #ruby
<epitron> that's probably why mruby is being developed
nickbelhomme has quit [Ping timeout: 258 seconds]
<havenwood> >> require 'set'; [Set.new, 1, 2, 3].inject :<<
<eval-in__> havenwood => #<Set: {1, 2, 3}> (https://eval.in/235945)
<epitron> havenwood: lol
arya_ching has joined #ruby
<epitron> use reduce btw
jack_rabbit has joined #ruby
<havenwood> each_with_object ftw!
rdark has joined #ruby
<godd2> epitron it's okay, reduce and inject have the same number of letters
<epitron> yeah, but reduce is better :)
<havenwood> >> [1, 2, 3].each.with_index(42).to_h
<eval-in__> havenwood => {1=>42, 2=>43, 3=>44} (https://eval.in/235950)
<shevy> epitron hmm I see, that actually is a really good explanation
<havenwood> ^ that's where each_with_index falls short
larissa has quit [Quit: Leaving]
<epitron> nice
agit0 has joined #ruby
<epitron> I never knew with index took an argument
<shevy> yesterday I read a complaint from someone about inversing a hash
<godd2> >> module Enumerable; alias :fold :reduce; end; [1,2,3].fold(0, :+)
<eval-in__> godd2 => 6 (https://eval.in/235951)
<godd2> fold is way better
<epitron> yes!
<havenwood> >> ?a.upto(?c).with_index(1).to_a
<eval-in__> havenwood => [["a", 1], ["b", 2], ["c", 3]] (https://eval.in/235952)
<epitron> I love fold
arup_r has joined #ruby
<havenwood> foldl
arup_r1 has quit [Ping timeout: 250 seconds]
jeremywrowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
renderful has joined #ruby
<epitron> :D
<havenwood> :)
tyfighter has joined #ruby
<shevy> >> {"hey"=>3, "there"=>3, "yippie"=>3, "ack"=>2, "ackack"=>9, "thore"=>3, "yippa"=>9}.invert
<eval-in__> shevy => {3=>"thore", 2=>"ack", 9=>"yippa"} (https://eval.in/235953)
Timgauthier is now known as timgauthier_away
<shevy> that's how an inverted hash looks like!
agent_white has quit [Quit: brb]
<havenwood> shevy: you've lost data!
<godd2> havenwood no its okay, he didn't use the ! version
<shevy> do you know if python does the same?
<shevy> hmm that behaviour is not documented http://www.ruby-doc.org/core-2.1.5/Hash.html#method-i-invert
ta has joined #ruby
<godd2> epitron you have interleave in there?
shazaum has joined #ruby
<jhass> shevy: it is, with the example
<epitron> that's just zip.flatten
agent_white has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
<shevy> jhass you call that documented?
<jhass> it's in the docs!
<shevy> hehe
<jhass> but for rubydocs we have to, yeah
<havenwood> epitron: why doesn't transpose have an unzip alias? that seems nice!
ponga has quit [Remote host closed the connection]
<jhass> lots of the core methods behavior is only described in the examples still
jenrzzz has joined #ruby
<havenwood> untranspose :P
ponga has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
wroathe has joined #ruby
Joufflu has joined #ruby
<epitron> havenwood: :D
<shevy> would be nice if ruby-core could have a specific doc-subsection
rdark has quit [Ping timeout: 245 seconds]
<shevy> because it is not a "bug" and not really a "feature" either
iamninja has quit [Quit: ZZZzzz…]
emmesswhy has joined #ruby
<godd2> havenwood because the inverse of a function isn't always a function
kenneth has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
<havenwood> godd2: but when it is, it is
<shevy> what is the inverse of an object
<havenwood> shevy: a tcejbo
<shevy> lol
shazaum has left #ruby ["Leaving"]
<godd2> o
<godd2> b
<godd2> j
<godd2> e
<godd2> c
<godd2> t
<epitron> havenwood: this one would be nice, if i could get it working properly -- http://www.rubydoc.info/github/epitron/epitools/Enumerable#deep_map-instance_method
jenrzzz has quit [Ping timeout: 245 seconds]
ponga has quit [Ping timeout: 264 seconds]
suy|BNC has quit [Ping timeout: 258 seconds]
suy|BNC has joined #ruby
<godd2> havenwood when it is, just run transpose twice. it's its own inverse
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> epitron: mmm, yeah that's enough of a pain to do it'd be particularly nice
<godd2> >> {a: 3, b: 7}.invert.invert
<eval-in__> godd2 => {:a=>3, :b=>7} (https://eval.in/235957)
Takle has quit [Read error: No route to host]
<epitron> havenwood: especially if it didn't turn hashes into arrays :)
commmmodo has quit [Quit: commmmodo]
Takle has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
byprdct has joined #ruby
commmmodo has joined #ruby
roolo has quit [Remote host closed the connection]
<epitron> there's a lot of methods that would be nice for working with json
roolo has joined #ruby
<epitron> this is another one i wanted to finish: http://www.rubydoc.info/github/epitron/epitools/Hash#query-instance_method
jeff-ooh has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
byprdct has quit [Client Quit]
<epitron> it lets you query a hash by using another hash -- it matches the fields in the query hash that are there, and fills in the ones that are missing
<epitron> it's a bit like a template match
<epitron> {"name" => nil}
arya_ching has quit []
byprdct has joined #ruby
agit0 has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
chinmay_dd has quit [Quit: Leaving]
DonOtreply has joined #ruby
roolo has quit [Ping timeout: 258 seconds]
Techguy305 has joined #ruby
pengin has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<havenwood> epitron: so what're the deep_map problems? just stack level too deep?
fivetwentysix has joined #ruby
tristanp has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
sailias has quit [Quit: Leaving.]
PrincessAuv is now known as Auv
n1lo has quit [Ping timeout: 250 seconds]
n1lo has joined #ruby
sambao21 has quit [Client Quit]
tristanp has joined #ruby
kaspertidemann has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Auv is now known as PrincessAuv
karmatr0n has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
boombadaroomba has joined #ruby
karmatr0n has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dc_ has joined #ruby
geggam has quit [Ping timeout: 265 seconds]
adriancb has joined #ruby
ki0 has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
<epitron> hah, no, i just couldn't wrap my head around the recursion when i was writing it
<epitron> made 2 or 3 attempts, and i gave up
<epitron> abstractly it was simple
<epitron> it was a few years ago -- i can't remember what was hard about it anymore
<epitron> i'll uncomment the specs if you wanna try it :)
geggam has joined #ruby
seanosaur has joined #ruby
Stoge88 has joined #ruby
<epitron> ohhh, i think i remember the problem
<epitron> i think there was some case with hashes where i couldn't figure out what it should do
<epitron> like, the block has to take one argument
<havenwood> hrmmm
<epitron> what should it do for hashes?
wjimenez5271 has joined #ruby
shuber_ has joined #ruby
supersym has joined #ruby
dc_ has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Ping timeout: 258 seconds]
fabrice31 has joined #ruby
sea_local has joined #ruby
c0rwin has quit [Ping timeout: 255 seconds]
sailias has joined #ruby
beef-wellington has joined #ruby
m8 has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<epitron> maybe deep_map and deep_select should be different methods on Enumerable and Hash
tristanp has quit [Remote host closed the connection]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<epitron> different assumptions if you call it on a hash
supersym has quit [Client Quit]
<epitron> or an option to say whether to map the values or the keys of the hash?
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> thing.deep_map(hash: :keys) { |e| ... }
<havenwood> epitron: looks like facets took an interesting approach: http://www.rubydoc.info/github/rubyworks/facets/Hash:recursively
<epitron> haha
<epitron> i dunno if a recursor is necessary
<havenwood> seems involved
<arup_r> I got confused with something very easy.. I added the root dir to the LOAD_PATH https://github.com/aruprakshit/ToDoList/blob/master/todo.rb#L1 .. Then still why it is needed to do like require './task' instead of 'task' ? https://github.com/aruprakshit/ToDoList/blob/master/spec/task_spec.rb#L2
<epitron> it could check the arity of the block to determine what to do actually
fabrice31 has quit [Ping timeout: 264 seconds]
noop has joined #ruby
<epitron> lol
<epitron> that's such a weird way to do it
<havenwood> arup_r: are you meaning `__dir__` not `__FILE__`?
shazaum has joined #ruby
deric_skibotn has joined #ruby
<havenwood> arup_r: add directories, not files, to the load path
<epitron> whee, functors
Altonymous has joined #ruby
lectrick is now known as pmarreck
<havenwood> arup_r: oh, you did dirname, nevermind me - but you want full path, yeah?
<havenwood> arup_r: don't add "." to the $LOAD_PATH, etc
dfinninger has joined #ruby
<arup_r> inside the spec file, I did require './task'... Doesn't `.` mean spec/ dir itself ?
timmmaaaayyy has left #ruby ["Leaving..."]
yokel has quit [Ping timeout: 244 seconds]
robertt_dex has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
<epitron> arup_r: require_relative is another approach...
<havenwood> arup_r: shorthand for: File.dirname(File.realpath(__FILE__))
<arup_r> I know..epitron
<epitron> k :)
<havenwood> arup_r: try with an absolute path, __dir__ is the nicest way
<Altonymous> So a co-worker and I are having a debate. It’s about handling null/nil values in data.. The example is data is pulled out of a database.. in this case sometimes the data contains null/nil values. We want to truncate the data to only the first few characters. We could use coalesce to convert nulls to empty strings or we could call .to_s on the data after it out before doing the truncation. Lastly we could do both. The truncation
<Altonymous> happens after some data manipulation has occured, but that field is not changed, but doesn’t mean it won’t be in the future. Any opinions on which we should do?
<arup_r> But I tried require 'task' and got Load error.. and then did require './task' worked.. But didn't get why worked
frem has joined #ruby
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
timgauthier_away has quit [Max SendQ exceeded]
<arup_r> havenwood: my question is why `.` needed ?
Techguy305 has joined #ruby
ramfjord has joined #ruby
crueber has joined #ruby
gr33n7007h has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
<epitron> Altonymous: truncate unless field.nil? :)
<havenwood> arup_r: in Ruby 1.8, "." was in the $LOAD_PATH. they decided that was a *bad idea*, removed it from $LOAD_PATH and created #require_relative and __dir__
<havenwood> arup_r: change `File.dirname(__FILE__)` to `__dir__` or `File.dirname(File.realpath(__FILE__))` and see how that works?
<Altonymous> epitron, ultimately we want the nulls to be empty strings when we put the data into the next table.. so we want to convert it.. we are just debating when we should.
Timgauthier has joined #ruby
kirun has joined #ruby
<Altonymous> 1 of us says we should do it in 1 place and it doesn’t matter where.. the other says we should do it in both places to be safe.
<arup_r> havenwood: Ok
Timgauthier has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
<epitron> i stole a __DIR__ method from the guy who made ramaze :)
<epitron> never really used it much though
SHyx0rmZ has quit [Remote host closed the connection]
<apeiros_> manveru
<epitron> that's the one!
<epitron> i wonder where he is now
<epitron> he was working on an editor in ruby last time i saw
<epitron> he made nice things
<havenwood> Nix
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geggam has quit [Remote host closed the connection]
<epitron> Altonymous: lol, i don't think it really matters. this is like arguing about what colour to paint a bike shed
lolmaus has quit [Quit: Konversation terminated!]
<epitron> it's like throwaway code, right?
<epitron> it's just importing some data?
<Altonymous> epitron, i think it does matter. It’s not throwaway code
<Altonymous> no it’s a backend process that is summarizing data
SHyx0rmZ has joined #ruby
yokel has joined #ruby
<epitron> *shrug*
arrubin has joined #ruby
<epitron> why don't you do both
<epitron> and see what happens
<epitron> each coworker implements their preferred solution
<epitron> you see what happens to the system
baweaver has joined #ruby
<Altonymous> 1 is concerned if the data is manipulated between when it’s pull and when it’s truncated it will throw an error and the code will fail. The other says it should throw an error to identify that the data was manipulated incorrectly, which the counter argument is that is the point of the test cases not the point of code to catch problems in other areas of the code.
<Altonymous> Because we process terrabytes of data per hour..
<arup_r> havenwood: used... __dir__.. Now require './task.rb' or require 'task.rb' neither works... Then what is the point to add the project root to the $LAOD_PATH ?
<Altonymous> we can’t just throw it in and see what happens.. we have to address multiple cases
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
<epitron> lol
<epitron> i didn't say to ship it with both implementations
<havenwood> arup_r: i guess first say why you're not using require_relative?
<epitron> experiments don't need to be shipped
<havenwood> arup_r: but the point of adding directories to the load path is to make code relative to them loadable via require
<havenwood> typically
<epitron> this is computer science bro! do an experiment!
<arup_r> Yes.. That's the only thing I have to use.. :)
<epitron> it's probably better to mock it up than to just argue
<havenwood> Altonymous: to_s when you want a string
<arup_r> havenwood: Yes then how would I require.. as with __dir__, none of them worked..
<arup_r> got your point......... havenwood:
gr33n7007h has quit [Ping timeout: 245 seconds]
n80 has joined #ruby
<havenwood> arup_r: note that `__dir__` (the directory of the file from which the method was called) is not always the same as `Dir.pwd` (the current working directory).
<banister> epitron hey eppy
wjimenez5271 has quit []
pu22l3r_ has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
_5kg has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
<arup_r> havenwood: Got it... What if, I add all the project directories to the load path? Is it bad approach ?
gfawcettpq has quit [Ping timeout: 272 seconds]
tristanp has joined #ruby
pu22l3r has joined #ruby
jamesaxl has joined #ruby
fernandolopez has joined #ruby
geggam has joined #ruby
snath has quit [Ping timeout: 245 seconds]
<havenwood> arup_r: not sure i follow what a project dir is. but typically you add only lib/ then require relative to that, by namespace.
<havenwood> arup_r: is this a gem? an app?
<arup_r> Sinatra app
<arup_r> I'm writing
green-big-frog is now known as frog|OFF
melik has joined #ruby
jdj_dk has joined #ruby
yfeldblum has joined #ruby
baweaver has quit [Remote host closed the connection]
agit0 has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 256 seconds]
jgrevich_ is now known as jgrevich
AlSquirrel has quit [Quit: This computer has gone to sleep]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
<havenwood> arup_r: in your spec, you don't get the $LOAD_PATH you set in ./todo.rb until *after* you've required todo.rb.
mozzarella has quit [Ping timeout: 250 seconds]
<arup_r> havenwood: Yes.. I am changing now.. one by one :)
yfeldblum has quit [Ping timeout: 245 seconds]
<havenwood> arup_r: often folk have a helper.rb that does the requiring for all the specs
<arup_r> ok.... havenwood that arrangement I'll make later
<arup_r> I'll remember your point
<arup_r> I'm doing it in tiny steps
Seich has quit [Ping timeout: 258 seconds]
<havenwood> arup_r: Don't go crazy modifying $LOAD_PATH, try to keep it minimal. :)
<arup_r> yes yes...
hornairs_ has quit [Quit: hornairs_]
<shevy> listen to havenwood arup_r - he has fathered a great many ruby objects in his life
chinmay_dd has quit [Quit: Leaving]
marcules has quit [Ping timeout: 246 seconds]
seanosaur has quit []
tylersmith has quit [Ping timeout: 258 seconds]
pengin has quit [Ping timeout: 255 seconds]
pengin_ has joined #ruby
Seich has joined #ruby
tylersmith has joined #ruby
kaspertidemann has quit []
ponga has joined #ruby
robertt_dex has joined #ruby
baweaver has joined #ruby
melik has quit [Quit: (null)]
melik has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
Hobogrammer has joined #ruby
mozzarella has joined #ruby
Guest18421 is now known as C0deMaver1ck
sambao21 has joined #ruby
agjacome has joined #ruby
jin_ has quit [Ping timeout: 255 seconds]
pandaant has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
kiyote23 has joined #ruby
<arup_r> havenwood: One more question.. You can see, here I did remove the line require 'rspec'. And now I am running my test, still it is working.. How it is getting the rspec lib.. I mean from where? https://github.com/aruprakshit/ToDoList/commit/a578a4e20ba1708f382006da5e192149ad7d7d6a
<arup_r> something is happening under the curtain.. I want to know what is that?
goodenough has quit [Remote host closed the connection]
<havenwood> arup_r: how are you running the specs?
<arup_r> rspec spec
agit0 has quit [Quit: This computer has gone to sleep]
<arup_r> and all test got passed
<arup_r> previously I used in each file require 'rspec'
<arup_r> Now I removed... and all tests are passing
* arup_r found out something strange.......... :(
huddy has quit [Quit: Connection closed for inactivity]
asmodlol has quit [Ping timeout: 245 seconds]
wjimenez5271 has quit []
karmatr0n has joined #ruby
shazaum has quit [Quit: Leaving]
<jidar> is there a way to in pry, set a breakpoint of some sort to enter a debugger?
Stoge88 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jidar> is that a pry-debug thing?
asmodlol has joined #ruby
shazaum has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
goodenough has joined #ruby
<havenwood> arup_r: if you run the spec `ruby task_spec.rb` it'll fail as you expect. i think it's likely that rspec-core that your rspec executable is coming from does the require.
seejohnrun has quit [Ping timeout: 272 seconds]
gsd has joined #ruby
<havenwood> jidar: binding.pry
kaspertidemann has joined #ruby
<arup_r> havenwood: But there is a need atleast one place who will do the job..... and where it is..
yfeldblum has joined #ruby
<arup_r> I have no answer
<havenwood> arup_r: huh?
<arup_r> means ?
<jidar> oh!
<jidar> thanks havenwood
arietis_ has joined #ruby
seejohnrun has joined #ruby
Altonymous has quit [Quit: Altonymous]
<havenwood> arup_r: you're running rspec with `rspec`, it's doing it. try running it with `ruby` if you don't want to look through the rspec-core code: https://github.com/rspec/rspec-core
chipotle has joined #ruby
<arup_r> ok
<arup_r> one moment
yfeldblum has quit [Remote host closed the connection]
jstad has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<arup_r> havenwood: Hehehe.. Correct! Got it ...
shazaum has quit [Client Quit]
wjimenez5271 has joined #ruby
LouisRoR has quit [Ping timeout: 258 seconds]
shazaum has joined #ruby
* arup_r is wishing, havenwood "Happy new year", in advance!
shazaum has quit [Changing host]
shazaum has joined #ruby
<shevy> hey
<shevy> still 2 weeks to go
timonv_ has joined #ruby
* arup_r don't know God's plan... :(
* arup_r playing do-or-die with Ruby....
powersurge has left #ruby ["WeeChat 0.4.3"]
baweaver has quit [Remote host closed the connection]
snath has joined #ruby
zoite__ has quit [Quit: Leaving]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_twistedpixels is now known as twistedpixels
chipotle has quit [Remote host closed the connection]
atmosx_ has joined #ruby
livathinos has joined #ruby
chipotle has joined #ruby
sailias has quit [Quit: Leaving.]
supersym has joined #ruby
sailias has joined #ruby
xsdg_ has quit [Quit: Reconnecting]
xsdg has joined #ruby
atmosx has quit [Ping timeout: 258 seconds]
jdj_dk has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
mwlang has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
<mwlang> what’s the best way to send a fully-formed SOAP xml message to a server? I wanted to use savon, but it doctors the messages by adding an uneeded envelope/body around the xml message I have constructed
shuber_ has quit [Remote host closed the connection]
<mwlang> I was thinking to use something like restclient, but its interface doesn’t really lend itself to just sending a raw message.
jack_rabbit has quit [Ping timeout: 250 seconds]
C0deMaver1ck has quit [Ping timeout: 258 seconds]
Akuma has joined #ruby
mengu__ has quit [Remote host closed the connection]
arietis_ is now known as arietis
Seich has joined #ruby
C0deMaver1ck has joined #ruby
mordocai has joined #ruby
<mwlang> faraday looks promising…(checking it out now)
atmosx has joined #ruby
RandyT has joined #ruby
seejohnrun has quit [Quit: leaving]
shuber_ has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
allcentury has quit [Ping timeout: 264 seconds]
atmosx_ has quit [Ping timeout: 256 seconds]
timonv_ has quit [Read error: Connection reset by peer]
tyll_ has joined #ruby
baweaver has joined #ruby
kiyote23 has quit [Remote host closed the connection]
tyll has quit [Ping timeout: 256 seconds]
max96at is now known as max96at|off
kiyote23 has joined #ruby
klmlfl_ has joined #ruby
DonOtreply has joined #ruby
rudisimo has joined #ruby
agit0 has joined #ruby
atmosx has quit [Ping timeout: 244 seconds]
aswen has joined #ruby
klmlfl has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
rpag has joined #ruby
baweaver has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
crdpink2 has quit [Quit: q term]
crdpink2 has joined #ruby
byprdct has joined #ruby
crdpink2 has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
crdpink has joined #ruby
jin_ has joined #ruby
pengin_ has quit [Remote host closed the connection]
jdj_dk has joined #ruby
st0mar has joined #ruby
pengin has joined #ruby
tristanp has quit [Remote host closed the connection]
doodleha_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
ozzloy_ is now known as ozzloy
LouisRoR has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
timonv_ has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
jin_ has quit []
jin_ has joined #ruby
sambao21 has joined #ruby
sandelius has joined #ruby
msgodf has quit [Ping timeout: 245 seconds]
conniemj has joined #ruby
pengin has quit [Ping timeout: 265 seconds]
mordocai has quit [Ping timeout: 258 seconds]
sambao21 has quit [Client Quit]
tristanp has joined #ruby
sarmiena_ has joined #ruby
dkphenom has joined #ruby
davedev2_ has joined #ruby
divi has joined #ruby
benweint has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
Stoge88 has joined #ruby
comm64 has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
pengin has joined #ruby
<comm64> say I have some ruby source that isnt commented and there is no documentation, is there anything that can generate documentation based on the source code?
wroathe has quit [Quit: leaving]
kish` has quit [Changing host]
kish` has joined #ruby
ponga has joined #ruby
allcentury has joined #ruby
<comm64> rdoc
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
obscured has quit [Quit: leaving]
benweint has quit [Quit: Computer has gone to sleep.]
kish` is now known as kih
kih is now known as kish
DonOtreply has quit [Quit: DonOtreply]
sambao21 has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
jgrevich has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 258 seconds]
dfinninger has joined #ruby
livathinos has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
oleo has quit [Quit: Verlassend]
sambao21 has joined #ruby
baweaver has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
oleo has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
oleo has quit [Max SendQ exceeded]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
rodfersou has quit [Quit: leaving]
oleo has joined #ruby
shuber_ has joined #ruby
oleo has quit [Read error: Connection reset by peer]
dopiee has joined #ruby
evanjs has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
oleo has joined #ruby
shuber_ has quit [Read error: Connection reset by peer]
g0bl1n has joined #ruby
chipotle has joined #ruby
shuber_ has joined #ruby
sailias has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 264 seconds]
chipotle has quit [Client Quit]
sailias has joined #ruby
msull92 has joined #ruby
evanjs has joined #ruby
chipotle has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
shuber_ has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
msgodf has joined #ruby
<jhass> and yard
adriancb has quit [Remote host closed the connection]
chipotle has joined #ruby
<jhass> in both cases special comments enhance the generated docs
<jhass> but the generation is not fundamentally based on them
jenrzzz has joined #ruby
msull92 has left #ruby [#ruby]
tus has quit [Ping timeout: 250 seconds]
shuber_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
evanjs has quit [Quit: Leaving...]
wallerdev has joined #ruby
evanjs has joined #ruby
chipotle has quit [Client Quit]
chipotle has joined #ruby
pengin has quit [Remote host closed the connection]
ArchBeOS has quit [Quit: Page closed]
tus has joined #ruby
pengin has joined #ruby
chipotle has quit [Client Quit]
sea_local has quit [Remote host closed the connection]
chipotle has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
msgodf has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
chipotle has quit [Client Quit]
chipotle has joined #ruby
axilla has quit [Ping timeout: 255 seconds]
kiyote23 has quit [Remote host closed the connection]
pengin has quit [Ping timeout: 258 seconds]
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kiyote23 has joined #ruby
chipotle has quit [Client Quit]
timonv_ has joined #ruby
Azure has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
FooMunki has quit [Quit: FooMunki]
axilla has joined #ruby
byprdct has joined #ruby
chipotle has quit [Client Quit]
byprdct has quit [Max SendQ exceeded]
chipotle has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
kiyote23 has quit [Ping timeout: 256 seconds]
kiyote23_ has joined #ruby
sea_local has joined #ruby
mikepack has joined #ruby
znn has quit [Quit: leaving]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
asterite has joined #ruby
adriancb has joined #ruby
dts|pokeball has quit [Ping timeout: 272 seconds]
timonv_ has quit [Read error: Connection reset by peer]
TDJACR has quit [Ping timeout: 258 seconds]
LBRapid has quit [Ping timeout: 258 seconds]
<rpag> yard predicts the return value of predicates and #initialize
tristanp has quit [Remote host closed the connection]
LBRapid has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
<rpag> i dont think rdoc gives any 'free docs' like that
Neomex_ has joined #ruby
khem_ has quit [Ping timeout: 258 seconds]
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Techguy305 has joined #ruby
khem_ has joined #ruby
Techguy305 has quit [Client Quit]
TDJACR has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has joined #ruby
icbbyf has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
nobitanobi has joined #ruby
tristanp has joined #ruby
chipotle has quit [Quit: cheerio]
allcentury has joined #ruby
TDJACR has quit [Excess Flood]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nobitanobi has quit []
sandelius has joined #ruby
djbkd has quit [Remote host closed the connection]
oleo is now known as Guest5890
oleo__ has joined #ruby
jxf has joined #ruby
jin_ has quit [Ping timeout: 256 seconds]
oleo__ has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
sambao21 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<arup_r> Any idea why the syntax error ? https://gist.github.com/aruprakshit/3ad0427885c327fb2923
econerd4ever has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<asterite> arup_r what’s that single `do` doing there? https://gist.github.com/aruprakshit/3ad0427885c327fb2923#file-seq-rb-L7
<asterite> The error message says it (more or less): syntax error, unexpected keyword_do_block
jenrzzz has quit [Ping timeout: 265 seconds]
Guest5890 has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
LouisRoR has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 264 seconds]
karmatr0n has quit []
Smujo_ has joined #ruby
econerd4ever has quit [Ping timeout: 240 seconds]
benweint has joined #ruby
pu22l3r has joined #ruby
russt has joined #ruby
TDJACR has joined #ruby
oleo__ has joined #ruby
baweaver has quit [Remote host closed the connection]
jam__ has joined #ruby
ponga has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit [Read error: Connection reset by peer]
jam___ has joined #ruby
sanguisdex has joined #ruby
oleo__ is now known as oleo
Seich has quit [Ping timeout: 258 seconds]
decoponio has quit [Quit: Leaving...]
rylev has joined #ruby
Haiiro has quit [Ping timeout: 256 seconds]
jgrevich has joined #ruby
ponga has quit [Ping timeout: 272 seconds]
jgrevich has quit [Client Quit]
mengu has joined #ruby
mengu has joined #ruby
axilla_ has joined #ruby
baweaver has joined #ruby
Seich has joined #ruby
shuber_ has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 256 seconds]
jzinedine has joined #ruby
pengin has joined #ruby
tristanp has quit [Remote host closed the connection]
Akuma has quit [Quit: So long sukkas!]
jzinedine has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
olivier_bK has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
treehug8_ has joined #ruby
studiotate has joined #ruby
treehug88 has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 258 seconds]
kaspertidemann has quit []
shuber_ has joined #ruby
treehug88 has joined #ruby
kaspertidemann has joined #ruby
reinaldob has quit [Remote host closed the connection]
shazaum has quit [Quit: Leaving]
studiotate has quit [Ping timeout: 258 seconds]
Seich has joined #ruby
adriancb has quit [Remote host closed the connection]
treehug8_ has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
kyank__ has joined #ruby
nrsk has joined #ruby
shuber_ has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yalue has quit [Quit: return 0;]
shuber_ has joined #ruby
gsd_ has joined #ruby
kyank_ has quit [Ping timeout: 258 seconds]
Areessell has joined #ruby
gsd has quit [Ping timeout: 272 seconds]
NightMonkey has joined #ruby
asterite has quit [Quit: asterite]
kyank__ has quit [Ping timeout: 250 seconds]
JohnBat26 has joined #ruby
sambao21 has joined #ruby
treehug8_ has joined #ruby
baweaver has joined #ruby
DonOtreply has joined #ruby
AndyBotwin has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
nicolast_ has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
treehug88 has quit [Ping timeout: 255 seconds]
klmlfl_ has quit [Remote host closed the connection]
klmlfl has joined #ruby
dc_ has joined #ruby
n1lo has quit [Quit: Leaving]
adriancb has joined #ruby
C0deMaver1ck has quit [Ping timeout: 258 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
econerd4ever has joined #ruby
Seich has joined #ruby
baweaver has quit [Remote host closed the connection]
rismoney1 has joined #ruby
C0deMaver1ck has joined #ruby
LBRapid has quit [Ping timeout: 258 seconds]
jalcine has quit [Ping timeout: 258 seconds]
jalcine has joined #ruby
dc_ has quit [Ping timeout: 250 seconds]
LBRapid has joined #ruby
parduse has quit []
klmlfl has quit [Ping timeout: 245 seconds]
JBreit has left #ruby ["Leaving"]
emmesswhy has quit [Quit: This computer has gone to sleep]
DonOtreply has quit [Quit: DonOtreply]
<codehotter> Can I do a kind of bait and switch with classes? Let's say calling code does Resource.new(info), but Resource class 'turns itself' into ResourceA or ResourceB depending on info?
ixti has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
_ixti_ has quit [Ping timeout: 264 seconds]
DonOtreply has joined #ruby
<jhass> codehotter: you would need to overwrite Resource::new but don't do that
parduse has joined #ruby
<jhass> although this couples the parent sort of to the child classes, which you seem to want to do anyway, I would suggest Resource.build or something like that
tristanp has joined #ruby
rajeshchawla has joined #ruby
<jhass> that is add a class method that does what you want, don't break new
caiges has joined #ruby
<apeiros_> (don't break the common expectation on new)
<jhass> also perhaps make Resource a module if there's never an instance of it
Jackneill has quit [Remote host closed the connection]
parduse has quit [Client Quit]
thumpba has joined #ruby
caiges has quit [Client Quit]
caiges_ has joined #ruby
codecop has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
<nickjj> if i wanted to convert a string such as: '1..100' into a proper range, do you guys think: Range.new(*self.split('..').map(&:to_i)) is the most clear implementation?
tkuchiki has joined #ruby
Sunlorhic has quit [Ping timeout: 265 seconds]
asterite has joined #ruby
spyderman4g63 has joined #ruby
chrishough has joined #ruby
thumpba_ has joined #ruby
asterite has quit [Read error: Connection reset by peer]
axilla has joined #ruby
parduse has joined #ruby
<Areessell> Just out of curiosity... why do you want to do this?
spyderma_ has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
axilla_ has quit [Ping timeout: 264 seconds]
<nickjj> Areessell: i have an app setting which populates a select dropdown box in a rails app with the range of 1-100 , and i wanted to store the range as a setting in a yaml based config without hard coding an array
thumpba has quit [Ping timeout: 258 seconds]
Calmoto1 has joined #ruby
freerobby has quit [Quit: Leaving.]
Kristien has joined #ruby
<Areessell> Just store the start and end values. As decimals.
ebahsini9 has joined #ruby
<Areessell> Or use the Ruby range within the YAML file
spyderman4g63 has quit [Ping timeout: 245 seconds]
<nickjj> whoa, i can just do foo: 1..100
Kristien has left #ruby ["Leaving..."]
g0bl1n has quit [Quit: g0bl1n]
rismoney1 has quit [Ping timeout: 244 seconds]
mwlang has quit [Quit: mwlang]
TgMts has joined #ruby
calmoto has quit [Ping timeout: 258 seconds]
<Areessell> Uhh no you cant that'll store as a String
rpag has quit [Quit: Leaving]
Kristien has joined #ruby
giuseppesolinas has joined #ruby
jenrzzz has joined #ruby
<nickjj> right, prefixed with !ruby/range
atmosx has joined #ruby
timonv_ has joined #ruby
Kristien has left #ruby ["Leaving..."]
davedev2_ has quit [Ping timeout: 240 seconds]
davedev24_ has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
postmodern has joined #ruby
rshetty has joined #ruby
rajeshchawla has joined #ruby
freerobby has joined #ruby
studiotate has joined #ruby
huddy has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
evanjs has quit [Remote host closed the connection]
fabrice31 has joined #ruby
ponga has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
yfeldblu_ has joined #ruby
pecg has joined #ruby
cesarstafe has quit [Ping timeout: 258 seconds]
timonv_ has quit [Remote host closed the connection]
<pecg> Hello, I'm just initiating with Ruby, but I want to use a general purpose databse gem that can use databases in PostgreSQL and its complete objects.
havenwood has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
<centrx> pecg, Something like 'Sequel' or 'ActiveRecord' ?
yfeldblum has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
ponga has quit [Ping timeout: 258 seconds]
<pecg> I just found this one: https://github.com/RDBI/rdbi
<pecg> Has anyone tried it?
<centrx> pecg, That doesn't look any different than using the database connector pg gem
aclearma_ has quit [Quit: I'm out!]
<atmosx> pecg: I'd go with sequel
<atmosx> pecg: you want to write raw SQL queries or you want to use an ORM?
rajeshchawla has quit [Remote host closed the connection]
roolo has joined #ruby
arup_r has quit [Quit: Leaving.]
<zenspider> Using the 'pg' gem is just fine. if you want more abstractions on top I'd go with activerecord or sequel.
<pecg> certainty, atmosx: Sequel looks with heavy active maintainance
<zenspider> activerecord is warning free. sequel is not. so I'm biased towards activerecord
<zenspider> I need my tests to run clean
sambao21 has quit [Quit: Computer has gone to sleep.]
<atmosx> pecg: ORMs makes your life easier and create an abstraction layer between you and the DB. But if you want go use SQL directly, go with the pg gem
powersurge has joined #ruby
<powersurge> I got here via stepping through an exception I was receiving with the delayed_job
<Areessell> The block is the default value of new keys
<powersurge> I can gather that it's iterating in some way and that h is probably the hash that is newly instantiated, but I don't know how it's deciding on what to slip into klass or what it's iterating over
rajeshchawla has joined #ruby
<Areessell> >> h = Hash.new { 42 }; h[:new_key]
<eval-in__> Areessell => 42 (https://eval.in/236027)
sambao21 has joined #ruby
<powersurge> ah, interesting
tier has quit [Remote host closed the connection]
<atmosx> powersurge: I don't think Psych has a bug
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> powersurge: probably your code has something wrong :-P
<Areessell> Yeah you should follow bugs into your own code unless theres an open issue or something in the library you're using
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
roolo has quit [Ping timeout: 256 seconds]
<powersurge> oh I'm sure I'll pop out into my own code soon
<powersurge> all I've done is obj.delay.method_call and it's throwing an error from https://github.com/tenderlove/psych/blob/master/lib/psych/visitors/yaml_tree.rb#L74
<pecg> atmosx: ORM is easier I know, but I just want to invoke functions and procedures from the database directly. I have some heavy programming in postgres
<powersurge> when a nil is in there as klass and it calls klass.name it tosses a 'nil doesn't have a name method error'
<powersurge> but I'm not really sure where the nil is coming from so I'm working backwards from the library code
rajeshchawla has quit [Client Quit]
<zenspider> powersurge: are you using YAMLtree directly?
rajeshchawla has joined #ruby
<powersurge> no, I'm not even using psych directly
<powersurge> delayed_job
<zenspider> pecg: then just use the pg gem
<zenspider> powersurge: so where is the klass.name part? is that in your code?
<powersurge> no, that's in psych
chu has joined #ruby
<powersurge> I was stepping through the code with pry to see where the breakdown was happening
chu has quit [Changing host]
chu has joined #ruby
<zenspider> well... the caller is passing in nil
<zenspider> so go up one level
<zenspider> the args are: Hash.new { |hash, key| ... }
<pecg> zenspider: I guess it also works with calling procedures for insertions and updates, considering I can write ruby functions to call them and give them some arguments
TgMts has joined #ruby
<zenspider> so the key itself is the nil
<powersurge> yep
rajeshchawla has quit [Remote host closed the connection]
<powersurge> trying to figure out atm why a nil is getting passed in
mloveless has joined #ruby
<powersurge> but I had to get to this point to even discover that that was the problem in the first place
ebahsini9 has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
rajeshchawla has joined #ruby
<powersurge> debugging this is such a pain in the tuckus because it looks like the function is being memoized which means I have to reload everything to step through it again
<codehotter> I write this a lot: def initialize(a,b,c) @a = a, @b = b, @c = c, etc. Is there a shorthand for that?
<zenspider> powersurge: jesus. the only place where that cache is used in that file is passing in target.class... how that's nil? not really possible/likely.
<zenspider> so delayed_job must be doing some wacky shit on their own (or it is elsewhere in psych)
<powersurge> I'll get back to you once I work it out ha ha
<powersurge> I'll get to the bottom of it :>
geggam has quit [Ping timeout: 264 seconds]
<zenspider> just go up a few levels and poke around
<zenspider> powersurge: do this: copy that method (including scoping) and put in your pry hook if klass is nil
thumpba_ has quit [Remote host closed the connection]
rajeshchawla has quit [Remote host closed the connection]
<zenspider> codehotter: class MyClass < Struct.new(:a, :b, :c); ... other methods ... end
davedev24_ has quit [Ping timeout: 244 seconds]
dblessing has quit [Ping timeout: 245 seconds]
pecg has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
charliesome has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
<apeiros_> Struct.new(:a, :b, :c) do …class body… end
Calmoto1 has quit [Ping timeout: 240 seconds]
beef-wellington has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 245 seconds]
<zenspider> still need to assign it. I prefer `class` for that
<apeiros_> creates an unnecessary additional level in the lookup chain
<zenspider> so?
atmosx_ has joined #ruby
echevemaster has joined #ruby
nfk has quit [Quit: yawn]
<zenspider> yours creates an open closure instead of a closed one for class scoping. there are always tradeoffs
n80 has joined #ruby
<zenspider> or should I say "unnecessary open closure" ?
geggam has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros_> what's an "open closure"? I mean, is there a diff between "closure" and "open closure"?
watermel0n has joined #ruby
<zenspider> no diff
<zenspider> what's the diff between "unnecessary additional level" and "additional level"?
atmosx has quit [Ping timeout: 240 seconds]
<apeiros_> that an "additional level" can have a use while an "unnecessary additional level" doesn't provide any benefit
<apeiros_> given that I put classes into separate files, I don't think the closure matters
<zenspider> and I don't think the subclass matters. it's a mentabatory concern
<shevy> does anyone of you know of some website, ideally with code available, that uses solely markdown .md files? a bit like a static blog perhaps
<atmosx_> mentabatory?
sambao21 has quit [Quit: Computer has gone to sleep.]
tristanp has quit [Remote host closed the connection]
<atmosx_> shevy: octopress?!
<shevy> hmm
<shevy> let me see
<atmosx_> shevy: a jekyll based blogging platform?
b-dean has joined #ruby
<zenspider> atmosx_: mental masturbation
<atmosx_> zenspider: oh I see
<b-dean> is this a good place to ask a question about openssl and ruby?
<zenspider> shevy: mine doesn't JUST do markdown...
<zenspider> shevy: do you _just_ want a simple markdown -> html setup? Use rake. should be ~5 lines
Photism has joined #ruby
thumpba has joined #ruby
shuber_ has quit [Remote host closed the connection]
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<atmosx_> when using class MyClass < Struct.new(:var) .. there's an instance variable @var created?
<shevy> zenspider I am not sure yet what I want, I kind of want to try to use something new. I was thinking with markdown I could get a simple style layout already
<apeiros_> zenspider: "zomg, don't think! you'll mentarbate". sorry. I agree with you that one can go overboard with thinking about a problem. but just applying it to everything is stupid.
<zenspider> atmosx_: ri Struct
dfinninger has quit []
baweaver has quit [Remote host closed the connection]
sinequanon has joined #ruby
rajeshchawla has joined #ruby
<zenspider> I don't apply it to everything. I apply it to needless bullshit like "unnecessary additional level" when it doesn't matter in the least.
<apeiros_> your level of agitation makes it sound like it did matter to you…
AndyBotwin has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> you assume I'm agitated.
tamal has quit [Quit: Textual IRC Client: www.textualapp.com]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
<apeiros_> and the "unnecessary" is factual. whether it matters or not is a different concern.
<zenspider> that's nice.
<shevy> atmosx_ how did you document your thesis project?
<atmosx_> shevy: yes
leizzer has quit [Quit: WeeChat 0.4.2]
<atmosx_> shevy: I will add some more options in the future though. I might add some JS if by summer I'm comfortable enough with it
reinaldob has quit [Ping timeout: 240 seconds]
jfran_ has joined #ruby
St_Marx has quit [Quit: WeeChat 1.0.1]
Techguy305 has joined #ruby
karmatr0n has joined #ruby
watermel0n has quit [Quit: Lingo: www.lingoirc.com]
St_Marx has joined #ruby
watermel0n has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
<powersurge> zenspider: do you have recommendations for navigating up the stack?
Techguy305 has joined #ruby
<powersurge> trying pry-stack_explorer but it doesn't seem to do what I want
<zenspider> shevy: well... I do my entire website (~1700 pages) with zenweb. it's sorta like jekyll except that it uses rake to do dependencies properly so you don't spend 10 minutes rebuilding the site everytime you save
Axy has joined #ruby
<zenspider> powersurge: I thought there was a pry-debugger or somesuch... or that pry itself had an "up"
jfran has quit [Ping timeout: 240 seconds]
<b-dean> ruby -ropenssl -e "OpenSSL::X509::Certificate.new(IO.read('/etc/pki/tls/certs/ca-bundle.trust.crt'))" gives me "nested asn1 error" are there some kinds of certs that openssl can't read? if I just do openssl x509 -text -in ca-bundle.trust.crt it can read it fine
jerius has quit [Ping timeout: 264 seconds]
<zenspider> powersurge: if not... then just `puts caller.join "\n"`
<apeiros_> powersurge: there's pry-byebug and pry-stack_explorer. there's probably more.
<powersurge> pry itself doesn't have an up
<powersurge> I'm using pry-byebug already, but it doesn't include up & down
Mia has quit [Read error: Connection reset by peer]
<powersurge> very frustrating
momomomomo has joined #ruby
baweaver has joined #ruby
<zenspider> caller has file:line, so my editor can just jump through to the right place
jfran has joined #ruby
bascht2 has joined #ruby
m8 has quit [Quit: Sto andando via]
bascht1 has quit [Ping timeout: 245 seconds]
CrazyM4n has joined #ruby
jfran_ has quit [Read error: Connection reset by peer]
kyank__ has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
jfran has quit [Read error: Connection reset by peer]
Azure has joined #ruby
n80 has quit [Quit: n80]
sinequanon has quit []
allcentury has joined #ruby
<zenspider> powersurge: https://github.com/pry/pry/wiki/Exceptions says that you can use "wtf?" ... that should be all you really need
<zenspider> the rest you can do by simple reasoning
<zenspider> there's pry-rescue. that was the one I was thinking of
<powersurge> wtf wasn't grabbing the exception for me, unfortunately
<powersurge> I have to go through the call stack of 2-3 libraries and roughly 10 funciton calls to find what's happening
baweaver has quit [Remote host closed the connection]
<powersurge> I know this because I went *down* but it's not obvious where the flaw is going down
rajeshchawla has quit []
bascht3 has joined #ruby
<powersurge> going up however may be easier to see
Techguy305|2 has joined #ruby
rajeshchawla has joined #ruby
bascht2 has quit [Ping timeout: 255 seconds]
Sawbones has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
Stalkr_ has quit [Quit: Leaving...]
caiges_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> powersurge: down won't help. you're already at the problem. you need to go up and reason about how the nil worked its way down
rajeshchawla has quit [Client Quit]
<powersurge> yep
<zenspider> powersurge: is this something I can repro on my side?
<powersurge> I agree
rajeshchawla has joined #ruby
<powersurge> if I knew how to reproduce it there's a good chance I'd be able to fix it ha ha
marr has quit [Ping timeout: 258 seconds]
<powersurge> thanks for the offer though
<zenspider> fair
<zenspider> can you paste the backtrace?
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Techguy305 has quit [Ping timeout: 245 seconds]
giuseppesolinas has joined #ruby
rajeshchawla has quit [Client Quit]
havenwood has joined #ruby
rajeshchawla has joined #ruby
Sawbones has quit [Ping timeout: 250 seconds]
rajeshchawla has quit [Client Quit]
Techguy305 has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
graydot has left #ruby [#ruby]
Techguy305|2 has quit [Ping timeout: 245 seconds]
pecg has joined #ruby
pecg is now known as Guest15965
josephndenton has quit [Ping timeout: 240 seconds]
MrIlyas has joined #ruby
Dreamer3 has joined #ruby
zz_Haiiro has joined #ruby
<Dreamer3> is there a way to get the full version info from iside the runtime?
<Dreamer3> such as ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
<Dreamer3> is there a way to get the full version info from iside the runtime?
<powersurge> it doesn't look particularly useful but I'll paste it zenspider
<Dreamer3> such as ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
<powersurge> I was working in rails c so it looks like pry swallowed it all
charliesome has quit [Quit: zzz]
sea_local has quit [Remote host closed the connection]
bascht3 has quit [Ping timeout: 272 seconds]
ponga has quit [Ping timeout: 244 seconds]
<zenspider> powersurge: that's a backtrace caused by you calling backtrace bare
<zenspider> we want the exception's backtrace
rylev has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
sailias has quit [Quit: Leaving.]
jam__ has quit [Quit: Connection closed for inactivity]
jam___ has quit [Quit: Connection closed for inactivity]
atmosx_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dc_ has joined #ruby
<powersurge> in pry it just gave me a regular one liner, looks like just the exceptions message
<powersurge> that's the output from wtf?
<zenspider> _ex_.backtrace
geggam has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
meatchicken has joined #ruby
<Areessell> Hey ask the same question exactly the same multiple times. That'll get people to like you enough to answer you!
Techguy305|2 has joined #ruby
<meatchicken> Hello
shuber_ has joined #ruby
kirun has quit [Quit: Client exiting]
<zenspider> mmmm chicken
<meatchicken> If I have a script at ruby.rb -> how would I test it?
<powersurge> k, when I retrigger it I'll get the output for ya
<meatchicken> just create test.rb and include minitest?
<powersurge> takes ages for this function to run to the failure point
<meatchicken> zenspider: A lot tastier than spider
<zenspider> I think a chicken might disagree :)
<powersurge> aha, raw byebug allows me to navigate up :>
Techguy305 has quit [Ping timeout: 240 seconds]
<zenspider> meatchicken: depends on the script and what sort of testing you want to do... but generally, yes.
<zenspider> or you'll have bin/script + lib/blah.rb... then you add test/test_blah.rb
<zenspider> and hopefully have a Rakefile with a test task
livcd has quit [Remote host closed the connection]
b-dean has quit [Quit: Leaving]
kaspertidemann has quit []
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<meatchicken> zenspider: okay thanks
spyderma_ has quit [Ping timeout: 245 seconds]
rudisimo has quit [Remote host closed the connection]
pika_pika has quit [Ping timeout: 258 seconds]
<powersurge> https://github.com/tenderlove/psych/blob/master/lib/psych/visitors/yaml_tree.rb#L76 this is the culprit. when it checks out the superclass it recurses until it hits BasicObject.superclass which is nil
livathinos has joined #ruby
nicolastarzia has joined #ruby
<Areessell> This again? You're in a deep rabbit hole, friend
<powersurge> what a pain
<powersurge> ridiculous how easy it was to pin down the culprit when I was actually able to traverse the stack
livathinos has quit [Client Quit]
Avahey has quit [Quit: Connection closed for inactivity]
cantonic has joined #ruby
wallerdev has quit [Quit: wallerdev]
<shadeslayer> hey, so I want to parse something like these options : -a 1,2,3 -b foo
<shadeslayer> but
<shadeslayer> 1,2,3 can be empty as well
<zenspider> powersurge: ah. so then the question is what method is trying to be called and why doesn't it exist anywhere?
<shadeslayer> so basically : foo.rb -a -b foo
<shadeslayer> in which case optparse goes a bit crazy and parses -b as the value for option a
<shadeslayer> any clue how I can allow empty values for the first option?
<zenspider> powersurge: if you can get a repro for this, I think this IS a bug in psych... it should have at least raised an ArgumentError or something saying the method is missing
nicolastarzia has quit [Ping timeout: 256 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
cpruitt has quit [Quit: cpruitt]
doodleha_ has quit [Remote host closed the connection]
Guest15965 has left #ruby [#ruby]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crueber has quit [Quit: Leaving.]
benweint has quit [Quit: Computer has gone to sleep.]
Soda has quit [Remote host closed the connection]
<powersurge> I'm using httparty and it looks like ultimately an httparty::response makes it in there and that subclasses basicobject rather than object and there's no method in psych to handle that
<powersurge> basicobject's superclass is non-existant so it sends nil which causes the error
yakko has quit [Read error: Connection reset by peer]
<powersurge> now I gotta figure out why on earth httparty::response is in there in the first place
<zenspider> powersurge: gotcha. yeah. that seems like a bug is psych's handling of (probably) proxy objects.
<zenspider> tho tenderlove might just claim GIGO
yakko has joined #ruby
watermel0n has quit [Quit: Busy]
<powersurge> GIGO?
dopiee has quit [Quit: Leaving]
tenderlove has joined #ruby
dopie has joined #ruby
uptownhr has joined #ruby
<uptownhr> anybody here have experience with sequel?
<zenspider> powersurge: garbage in, garbage out
bascht3 has joined #ruby
<uptownhr> i have a model that is using the Decimal 10,2 scheme
djbkd has quit [Remote host closed the connection]
<uptownhr> whenever i throw i a value, it turns it into some scientific notation value
<uptownhr> ie: 99.99 turns in to 0.9999E4
thumpba_ has joined #ruby
<zenspider> not sure, but I think there is a #sequel channel
mwlang has joined #ruby
procat has quit [Ping timeout: 250 seconds]
<uptownhr> thanks, i asked in there as well
charliesome has joined #ruby
Sawbones has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
supersym has quit [Ping timeout: 256 seconds]
marr has joined #ruby
mary5030 has quit [Remote host closed the connection]
treehug8_ has quit []
mary5030 has joined #ruby
djbkd has joined #ruby
thumpba_ has quit [Ping timeout: 240 seconds]
benweint has joined #ruby
sea_local has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
Spami_ has joined #ruby
Spami_ has quit [Remote host closed the connection]
thumpba has joined #ruby
DonOtreply_ has joined #ruby
DonOtreply has quit [Ping timeout: 258 seconds]
DonOtreply_ is now known as DonOtreply
mary5030 has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
Spami_ has joined #ruby
djbkd has joined #ruby
robertt_dex has quit [Remote host closed the connection]
_beechnut has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
rshetty has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jobewan has quit [Remote host closed the connection]
ohaibbq has joined #ruby
sailias has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
icbm has quit [Quit: Computer sleeping]
fabrice31 has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
mjmac has quit [Ping timeout: 258 seconds]
rockdon has quit [Ping timeout: 258 seconds]
quazimodo has quit [Ping timeout: 264 seconds]
Menorah has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Remote host closed the connection]
GaryOak_ has quit [Read error: Connection reset by peer]
LouisRoR has joined #ruby
ohaibbq has quit [Remote host closed the connection]
apeiros_ has joined #ruby
nicolastarzia has joined #ruby
akaiiro has quit [Ping timeout: 255 seconds]
DonOtreply has quit [Quit: DonOtreply]
fabrice31 has quit [Ping timeout: 264 seconds]
akaiiro has joined #ruby
fandi has quit [Quit: Leaving]
ghostmoth has quit [Quit: ghostmoth]
Axy is now known as Mia
baweaver has joined #ruby
snath has joined #ruby
mjmac has joined #ruby
sevvie has joined #ruby
rockdon has joined #ruby
wallerdev has joined #ruby
momomomomo has quit [Quit: momomomomo]
LouisRoR has quit [Ping timeout: 244 seconds]
rubyonrailed has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
<rubyonrailed> Hey, i'm trying to use `Json.parse' in a script, but i'm getting `uninitialized constant Json (NameError)` this back. I have require 'json' at the top of my file. Am I missing something else?
sambao21 has quit [Quit: Computer has gone to sleep.]
<nickjj> rubyonrailed: it's JSON not Json
ohaibbq has joined #ruby
<rubyonrailed> Oh thanks haha
reinaldob has joined #ruby
lampd1 has joined #ruby
josephndenton has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
rudisimo has joined #ruby
<lampd1> so... newb question
<lampd1> i need to strip quotes from a string
<lampd1> i.e. timeframe = "q3"
<lampd1> i need timeframe = q3
<lampd1> or to at least return the value like such
ponga has joined #ruby
<bricker`work> lampd1: I'm confused, is your string "timeframe = \"q3\"" ?
reset has joined #ruby
<lampd1> no timeframe is a variable storing the string
<lampd1> or should i pass the value into the function differently? instead of some_function('q3')
stunder has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<nickjj> lampd1: have you tried printing the value of timeframe in your example?
mengu has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 250 seconds]
<jhass> and if so, how did you do that exactly?
yfeldblu_ has quit [Ping timeout: 240 seconds]
<lampd1> i'm sitting on a pry breakpoint right inside my function ;)
sevvie has joined #ruby
<lampd1> trying something like `data.calendar.events.timeframe.each do |show|`
<lampd1> but it breaks bc timeframe needs to not be a str
powersurge has quit [Quit: WeeChat 0.4.3]
ponga has quit [Ping timeout: 240 seconds]
<nickjj> you're trying to run .each on a string
<lampd1> exactly ;)
<lampd1> which is what i dont want to do
LouisRoR has joined #ruby
dkphenom has joined #ruby
<jhass> what would you expect to be the values for show?
reinaldob has quit [Remote host closed the connection]
sailias has joined #ruby
<lampd1> data from a yaml file
<jhass> ?!
<nickjj> lampd1: is this what you want? http://codepad.org/GW5xGl08
jtdoncas has quit [Remote host closed the connection]
<jhass> so, timeframe is a string
<jhass> or rather returns one
Menorah has quit [Quit: This computer has gone to sleep]
<lampd1> well i'm passing it as a string in a template to a helper function
momomomomo has joined #ruby
<jhass> I'm giving up
<lampd1> lol
<jhass> lampd1: Please share your code on https://gist.github.com
<jhass> you provide 0 context
<lampd1> because there shouldn't be any needed
_JokerDoom has joined #ruby
baweaver has quit [Remote host closed the connection]
<lampd1> i need `timeframe => q3` and not `timeframe => "q3"`
<lampd1> simple