apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: 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
ebobby has joined #ruby
klaut has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 240 seconds]
emocakes has quit [Quit: Leaving...]
lagweezle has joined #ruby
lagweezle is now known as lapweezle
Brolen has quit [Quit: Brolen]
<lapweezle> howdy folks
<benzrf> sup lapweezle
<lapweezle> Kind of hoping someone here is knowledgeable on AWS...
relix has joined #ruby
<benzrf> lapweezle: my only experience with anything aws related is using heroku
<benzrf> ;p
jameshyde has joined #ruby
Wolland has joined #ruby
<lapweezle> I'm fiddling with it as a possible persistent IRC system, and sort lightweight hosty thingy, but trying to figure out how storage land works.
<lapweezle> I suppose I should care less, given how inexpensive 1GB of space is. A whopping 10-12 cents per month.
blarghmatey__ has quit [Ping timeout: 245 seconds]
croaky has joined #ruby
g0bl1n has joined #ruby
joriso has quit [Remote host closed the connection]
bricker`LA has joined #ruby
melvinsh has joined #ruby
meatherly has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
coffeina has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
phipes has joined #ruby
mneorr has joined #ruby
skulker has joined #ruby
kalamazoo has quit [Remote host closed the connection]
marshjello has joined #ruby
croaky has quit [Ping timeout: 245 seconds]
spider-mario has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
subbyyy has joined #ruby
skulker has quit [Remote host closed the connection]
kalamazoo has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melvinsh has quit [Remote host closed the connection]
<shevy> now now
mklappstuhl has quit [Ping timeout: 240 seconds]
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
<shevy> what would be cool would be if we were like the BORG
<shevy> and we could all collectively code in ruby
Megtastique has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Kricir has joined #ruby
<kc8qvp_> hrm, I think it is bundle and not gem that is doing sudo when I'm not looking
nateberkopec has quit [Quit: Leaving...]
<apeiros> do you have passwordless sudo? or how can it do that behind your back?
<benzrf> kc8qvp_: it has done that
<benzrf> apeiros: it somehow taps into your existing sudo status
<benzrf> so if you sudo something, then bundle install, it will work
<benzrf> IME
<apeiros> benzrf: you mean the normal "I used sudo once and then I don't need a password for the next N minutes"?
<benzrf> yeah
<benzrf> iirc
ace_striker has quit [Ping timeout: 272 seconds]
mib_mib has joined #ruby
byprdct has joined #ruby
subbyyy has quit [Quit: #om]
<lapweezle> I feel like I missed part of a conversation...
<kc8qvp_> apeiros: passwordless sudo, yes, but as mentioned it's incredibly typical for sudo to not require a password for X minutes after a successful run.
lkba has joined #ruby
<Xeago> kc8qvp_: isn't that the normal mode of operation?
estebistec has joined #ruby
<Xeago> you can use sudo -K to reset it
subbyyy has joined #ruby
mib_mib has quit [Client Quit]
<kc8qvp_> Xeago: it is, yes
freezey has joined #ruby
mojjojo has quit [Quit: mojjojo]
<kc8qvp_> I have no problem with sudo, just with other apps calling it w/o telling me
mklappstuhl has joined #ruby
jmo has joined #ruby
<lapweezle> +!
<lapweezle> er, +1, even
<shevy> hah
<shevy> bundler!
<shevy> Hanmac1 I told ya
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
mklappstuhl has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
guardianx has quit [Ping timeout: 265 seconds]
<shevy> damn
<shevy> Array#uniq changed
skulker has joined #ruby
<benzrf> shevy: hm?
<shevy> though
<shevy> in all fairness I have to admit, I can't recall having had to ever pass a block to #uniq before ...
guardianx has joined #ruby
<existensil> you can pass a block? i'm guessing that allows you to compare values manually or something?
DrOwl has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
<shevy> I guess it's not a bug, but the documentation not be up to date or sufficiently explicit
<benzrf> whaaat
<benzrf> but *I* used that
<benzrf> :[
markfletcher has joined #ruby
<shevy> but it's odd that it can change so easily between two versions
<shevy> no real idea existensil, the example he used was arr2 = arr.uniq {|p| p}
<shevy> I don't even know what he is trying to do there
matchaw has joined #ruby
phipes has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<existensil> it would make more sense if he was doing something else in that block. in that case it should behave identical to arr.uniq
croaky has joined #ruby
<existensil> the docs say you return the value you want used for comparison
<existensil> so like teachers.uniq{|t| t.name }
markfletcher has quit [Client Quit]
markfletcher has joined #ruby
ebobby has quit [Ping timeout: 252 seconds]
<waxjar> if i understood it correctly, #uniq and #uniq { |x| x } should behave identical, but don't
droo has quit [Ping timeout: 245 seconds]
zarul has quit [Ping timeout: 272 seconds]
zarul has joined #ruby
wildroman2 has quit [Ping timeout: 252 seconds]
estebistec has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
estebistec has joined #ruby
<lapweezle> Erm, so, I'm fairly certain that https://gist.github.com/ncolton/77720e671510a316288b could be done with much less repetition, but I'm a noob and dunno what approach I should take.
<lapweezle> h4lp?
<benzrf> lapweezle: glancin
m8 has quit [Quit: Sto andando via]
dfried has quit [Quit: Connection closed for inactivity]
<lapweezle> ty ty
chomskiii has quit [Ping timeout: 260 seconds]
predator217 has joined #ruby
markfletcher has left #ruby ["Leaving"]
<benzrf> commented
predator117 has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
croaky has quit [Ping timeout: 272 seconds]
<shevy> lapweezle now you have an epic benzrf comment
<shevy> lapweezle if you would like to, I could post some profanity to bring things down to my level!
<lapweezle> Okay, two things: gists are awesome, and so are you. :)
<lapweezle> hah shevy :)
<benzrf> thx m8
simoz8 has quit [Ping timeout: 252 seconds]
guardianx has quit [Remote host closed the connection]
nateberkopec has joined #ruby
<lapweezle> aye, and ty
robustus has quit [Ping timeout: 245 seconds]
<lapweezle> Will adapt this for the future ones. Thanks again!
dogweather has quit [Remote host closed the connection]
skulker has quit [Remote host closed the connection]
tedstriker has joined #ruby
<benzrf> np!
dogweather has joined #ruby
axl_ has quit [Quit: axl_]
JJMalina has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
robustus has joined #ruby
nisstyre has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Liothen has quit [Quit: System of a down……]
freezey has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
nanoyak has joined #ruby
dogweather has quit [Ping timeout: 245 seconds]
shedd has joined #ruby
dogweather has joined #ruby
ambushsabre has quit [Quit: rip]
JJMalina has quit [Ping timeout: 272 seconds]
<lapweezle> hmm. dinner time. Must log. must get that instance set up...
lapweezle has quit [Quit: leaving]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
chomskiii has joined #ruby
droo has joined #ruby
benzrf is now known as benzrf|afk
t_p has joined #ruby
vlad_starkov has joined #ruby
okinomo has joined #ruby
WJW has joined #ruby
tectonic has joined #ruby
jmimi has joined #ruby
<WJW> This channel cites http://www.modruby.net/ which appears to be garbage based on Google Translate of it.
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
Virtualize has joined #ruby
<shevy> WJW 10 years ago it was probably great
Liothen has joined #ruby
m00nlight_ has quit [Quit: Konversation terminated!]
<shevy> emocakes ack
lyanchih has joined #ruby
<shevy> they even include ';' in the ruby code :)
mklappstuhl has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
Jake232 has joined #ruby
croaky has joined #ruby
Liothen has quit [Quit: System of a down……]
Liothen has joined #ruby
butblack has joined #ruby
Asher has joined #ruby
ambushsabre has joined #ruby
lagweezle has joined #ruby
jamesaanderson has joined #ruby
dogweather has joined #ruby
havenwood has quit [Remote host closed the connection]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
shime has quit [Ping timeout: 260 seconds]
dogweather has quit [Ping timeout: 265 seconds]
laphlaw has joined #ruby
cow_ has joined #ruby
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
aspires has quit []
croaky has quit [Ping timeout: 245 seconds]
totalmajor has joined #ruby
simoz8 has joined #ruby
Brolen has joined #ruby
agent_white has joined #ruby
simoz9 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Client Quit]
estebistec has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
estebistec has joined #ruby
falood has joined #ruby
rjhunter has joined #ruby
simoz8 has quit [Ping timeout: 252 seconds]
totalmajor has quit [Ping timeout: 272 seconds]
lagweezle has quit [Quit: leaving]
ebobby has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
pwh has quit []
chrisan has joined #ruby
skulker has joined #ruby
ambushsabre has quit [Quit: rip]
ebobby has quit [Ping timeout: 246 seconds]
lagweezle has joined #ruby
agent_white has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<lagweezle> Well, initial step working ... I think... irssi running on an EC2 instance.
agent_white has joined #ruby
echevemaster has joined #ruby
cbetta is now known as cbetta_afk
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
f0ster has joined #ruby
agent_white has quit [Client Quit]
skulker has quit [Ping timeout: 252 seconds]
<shevy> lagweezle ewww irssi
marr has quit [Ping timeout: 272 seconds]
emocakes has quit [Quit: Leaving...]
skulker has joined #ruby
<benzrf|afk> shevy: u wot m8
benzrf|afk is now known as benzrf
Deele has quit [Ping timeout: 260 seconds]
<shevy> lagweezle come to hexchat man!
<shevy> leave your dark past behind
agent_white has joined #ruby
ambushsabre has joined #ruby
Monie has joined #ruby
Monie has quit [Max SendQ exceeded]
emocakes has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
Tentra has joined #ruby
agent_white has quit [Client Quit]
Monie has joined #ruby
pwh has joined #ruby
Monie has quit [Max SendQ exceeded]
agent_white has joined #ruby
agent_white has quit [Client Quit]
simoz9 has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
phipes has joined #ruby
Tentra has quit [Client Quit]
Monie has quit [Max SendQ exceeded]
agent_white has joined #ruby
skulker has quit [Ping timeout: 246 seconds]
frabrunelle has joined #ruby
Monie has joined #ruby
skulker has joined #ruby
jameshyde has quit [Quit: Leaving.]
pwh has quit [Client Quit]
lewix has quit [Remote host closed the connection]
ziikutv has joined #ruby
<ziikutv> Doesanyone knowhow to convert the following to a url format s/t i can use it with HTTParty.get function?
<ziikutv> curl -d "appID={appIDHERE}&apiKey={apiKEYHere}&stopNo=6137&format=json" https://api.octranspo1.com/v1.2/GetNextTripsForStopAllRoutes
jameshyde has joined #ruby
mneorr has quit [Remote host closed the connection]
phipes has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
cjk101010 has quit [Ping timeout: 246 seconds]
flubba_ has quit [Read error: Connection reset by peer]
skulker has quit [Ping timeout: 246 seconds]
<ziikutv> By the way this is the documentation of that API
tedstriker has quit [Quit: Anti-Fraping status set.]
nateberkopec has joined #ruby
skulker has joined #ruby
laphlaw has quit [Quit: Lingo - http://www.lingoirc.com]
flubba has joined #ruby
tedstriker has joined #ruby
agent_white has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
g0bl1n has quit [Quit: Ex-Chat]
estebistec has quit [Remote host closed the connection]
agent_white has joined #ruby
colonolGron has quit [Quit: Lost terminal]
croaky has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
ambushsabre has quit [Quit: rip]
skulker has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
skulker has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
ambushsabre has joined #ruby
lukec has quit [Quit: lukec]
byprdct has joined #ruby
dogweather has joined #ruby
skulker has quit [Ping timeout: 272 seconds]
skulker has joined #ruby
danshultz has joined #ruby
Soliah has quit [Quit: Soliah]
gja has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
freezey has joined #ruby
chrisan has quit [Ping timeout: 241 seconds]
hadees has joined #ruby
tt1187 has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
aspires has quit []
Xeago has quit [Remote host closed the connection]
skulker has quit [Ping timeout: 245 seconds]
gja has quit [Client Quit]
Xeago has joined #ruby
croaky has quit [Ping timeout: 245 seconds]
jameshyde has quit [Quit: Leaving.]
skulker has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
sharms has joined #ruby
gja has joined #ruby
estebistec has joined #ruby
aspires has joined #ruby
<pontiki> doesn't HTTParty do POST?
banghouse has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
skulker has quit [Ping timeout: 272 seconds]
axl_ has quit [Quit: axl_]
skulker has joined #ruby
jameshyde has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
<ziikutv> yea
<ziikutv> thanks
<jmbrown412> Created a gem, add rspec to the gem. I am trying to build a spec to test /lib/equifaxxy/response. I am getting "Cannot load such file" Confused as to why. Any thoughts?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shedd has quit [Remote host closed the connection]
skulker has quit [Ping timeout: 245 seconds]
<jmbrown412> Also spec_helper.rb is requiring /lib/equifaxxy/response
closures999 has joined #ruby
skulker has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
ziikutv has left #ruby [#ruby]
jamesaanderson has quit [Max SendQ exceeded]
hadees has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<benzrf> Hash#merge! and Hash#update are the same right
aspires has quit []
mehlah has quit [Quit: Leaving...]
frabrunelle has left #ruby ["Leaving..."]
skulker has quit [Ping timeout: 252 seconds]
Mars has joined #ruby
skulker has joined #ruby
Mars is now known as Guest73974
butblack has quit [Quit: butblack]
cow_ has quit [Remote host closed the connection]
flame_ has quit [Quit: Computer has gone to sleep.]
cow_ has joined #ruby
aspires has joined #ruby
Virtualize has quit [Quit: Leaving...]
skulker has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
<agent_white> Scored poodr as an Xmas gift. Wewt!
jameshyde has quit [Quit: Leaving.]
skulker has joined #ruby
<benzrf> neat
nicebub has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
<pontiki> nice!
Hanmac has joined #ruby
tomasso has left #ruby [#ruby]
S0da has quit [Read error: Connection reset by peer]
skulker has quit [Ping timeout: 272 seconds]
skulker has joined #ruby
apeiros has joined #ruby
gregoriokusowski has joined #ruby
nicebub has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
banghouse has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
banghouse is now known as Guest12886
_HolyCow has quit [Read error: Connection reset by peer]
croaky has joined #ruby
kung has joined #ruby
kung has quit [Read error: Connection reset by peer]
skulker has quit [Ping timeout: 245 seconds]
kung has joined #ruby
<WJW> jmbrown412, are you using a relative pathname for loading some file?
skulker has joined #ruby
diegoviola has joined #ruby
sharms has joined #ruby
<jmbrown412> I have tried both ways with no luck
ewnd9 has joined #ruby
<jmbrown412> I am using RubyMine and if I do a 'Go To Delcaration' RM will take me to the file.
<jmbrown412> But my spec doesn't seem to find it.
<pontiki> how are you doing the require?
<WJW> jmbrown412, is it your own "load" or something happening down in the bowels of rspec?
vlad_starkov has joined #ruby
<pontiki> showing actual code might be helpful
<jmbrown412> ok just a sec
udoprog1 is now known as udoprog
cj3kim_ has joined #ruby
<jmbrown412> ^spec_helper
<WJW> benzrf, sounds likely, but I'd check the docs.
<jmbrown412> ^.gemspec
<jmbrown412> ^response
<pontiki> jmbrown412: you can add multiple files to the same gist. there's that button on the bottome that says "Add File"
<jmbrown412> oh ok sorry.
<jmbrown412> I have one more
aspires has quit []
<pontiki> makes it much nicer than having to jump between windows
gja has quit [Quit: This computer has gone to sleep]
<jmbrown412> sorry added my spec to that last link I posted
skulker has quit [Ping timeout: 260 seconds]
jameshyde has joined #ruby
skulker has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
gja has joined #ruby
cj3kim_ has quit [Ping timeout: 252 seconds]
fschuindt has joined #ruby
nateberkopec has joined #ruby
aspires has joined #ruby
jmo has quit [Ping timeout: 246 seconds]
mmr has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
croaky has quit [Ping timeout: 246 seconds]
skulker has quit [Ping timeout: 272 seconds]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
Guest73974 has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
RoryHugh_ has quit []
closures999 has quit [Read error: Connection reset by peer]
linhmtran has joined #ruby
linhmtran has quit [Remote host closed the connection]
skulker has joined #ruby
klip has quit [Ping timeout: 240 seconds]
klip has joined #ruby
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
jameshyde has quit [Quit: Leaving.]
tedstriker has quit [Quit: Anti-Fraping status set.]
gja has quit [Quit: This computer has gone to sleep]
Mars has joined #ruby
mary5030 has joined #ruby
Mars is now known as Guest26670
m00nlight has joined #ruby
tedstriker has joined #ruby
skulker has quit [Remote host closed the connection]
gja has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
tylersmith has quit [Remote host closed the connection]
mary5030_ has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
gja has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
butblack has joined #ruby
skulker has joined #ruby
lfox has joined #ruby
cjk101010 has joined #ruby
jameshyde has joined #ruby
Hanmac1 has joined #ruby
<jmbrown412> So I have managed to get rid of the "Cannot load such file" and now I get "Unitialized constant"
<jmbrown412> weee
<WJW> That diagnostic seems to explain itself pretty well.
tharindu has joined #ruby
beakr has joined #ruby
Bumptious has quit [Read error: Connection reset by peer]
phipes has joined #ruby
Bumptious has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<jmbrown412> Apparently not because I am not sure what is wrong. Code: response = Equifaxxy::Response.new(code)
<beakr> What's the current situation of YAML? I seem to be hearing from lots of people to stay away from it.
cfoch has joined #ruby
<popl> What do you mean by situation?
<WJW> jmbrown412, what constant is it complaining about?
<jmbrown412> Equifaxxy::Response
<WJW> jmbrown, is Equifaxxy a module or class defined in some file you are loading?
jamesaanderson has joined #ruby
<cfoch> what are :: ?
<jmbrown412> a class
<WJW> The :: mean the thing on the left qualifies the thing on the right.
<beakr> popl: I've heard its insecure a lot, inefficient, etc.
<WJW> jmbrown412, inside the definition of class Equifaxxy, is there a definition of Response?
<jmbrown412> no
<cfoch> A::B A is a class of B ?
<WJW> jmbrown412, then you have found the problem.
axl_ has quit [Quit: axl_]
<WJW> cfoch, in A::B, A could be a module or a class, and B must be defined inside A.
<jmbrown412> WJW, thanks. So there was /lib/equifaxxy.rb and then I had lib/equifaxxy/response.rb
<WJW> cfoch, B is not necessarily an instance of A even if A is a class.
<jmbrown412> Is that not valid? Do all my classes need to be inside 'lib/equifaxxy.rb'?
getthechip has joined #ruby
<WJW> jmbrown412, your classes can be in any files that you cause to be loaded.
<cfoch> how do ruby programmers calls to :: ?
<cfoch> *call
<WJW> cfoch, it's a syntax in the source code, no need for a call other than uttering "::".
<jmbrown412> thanks WJW
<WJW> jmbrown, a class can even be split across files.
subbyyy has joined #ruby
emocakes has quit [Quit: Leaving...]
<popl> YAML is as secure as JSON, I guess.
sickweezle has joined #ruby
mklappstuhl has joined #ruby
<WJW> cfoch, Class or Module might support some call like constant_named(a_name).
<cfoch> I would like to read a tutorial where it explains about :: and : But I don't know how to search them: Google doesn't read :: or :
<benzrf> is :: a method alias or is it a primitive that only works on modules and classes period?
<benzrf> cfoch: it's fairly simple
<WJW> I think it's a primitive.
<benzrf> cfoch: classes and modules can contain constants
charliesome has joined #ruby
<benzrf> cfoch: :: is exactly the same as . except that it can also be used to look up constants inside modules and classes
tharindu is now known as tharindu|away
tkuchiki has joined #ruby
varfoo has joined #ruby
danshultz has quit [Remote host closed the connection]
Hanmac has joined #ruby
<WJW> There's an example of :: at http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Variables_and_Constants#Constants but it's not a comprehensive explanation and the usage it illustrates is uncommon.
skulker has quit [Remote host closed the connection]
tharindu|away is now known as tharindu
mklappstuhl has quit [Ping timeout: 252 seconds]
croaky has joined #ruby
dogweather has quit [Remote host closed the connection]
skulker has joined #ruby
dogweather has joined #ruby
Hanmac2 has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
<cfoch> I think I've understood
<cfoch> thanks
Hanmac has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 245 seconds]
skulker has quit [Ping timeout: 260 seconds]
benzrf has quit [Quit: leaving]
NewYearInterpol has joined #ruby
<WJW> It's surprisingly hard to find a straightforward reference on Ruby syntax with semantics.
kewubenduben has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
<NewYearInterpol> What would anybody reccomend as a good game development library for Ruby?
jmimi has quit [Quit: Leaving.]
<NewYearInterpol> Prefferably one that's relatively up to date. I've been looking around and all I could find was Gosu.
<WJW> Foo::Bar means the value of a constant Bar defined inside of Foo. Bar could be of any type, but usually it would be a module or a class. Foo would have to be a module or a class.
croaky has quit [Ping timeout: 240 seconds]
m00nlight has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
shedd has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Soda has joined #ruby
m00nlight has joined #ruby
kitak has joined #ruby
skulker has joined #ruby
travisjeffery has joined #ruby
totalmajor has joined #ruby
russt has joined #ruby
nateberkopec has joined #ruby
endash has quit [Quit: endash]
shedd has quit [Ping timeout: 272 seconds]
robertrv has joined #ruby
totalmajor has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
Guest12886 has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
tonni has quit [Read error: Connection reset by peer]
RubyPanther has joined #ruby
tonni has joined #ruby
law has joined #ruby
<law> what's a good way to strip a consistently-formatted Time object out of a string?
<law> like:
<law> Wed Jan 1 01:21:13 2014: #somechannel: <law!law@dopefish.fuzzy-logic.org> arbitrary text
<law> that time format will consistently be like that
Jetchisel has joined #ruby
vlad_starkov has joined #ruby
jandersatl has joined #ruby
<law> I just want to be able to parse a log file and say "Grab the Time object off the beginning of that string, and then blow through a case statement to do 'stuff' based on the rest of the string"
<WJW> If Time doesn't have a parsing function, I'd probably try hacking at it with regular expressions.
<apeiros> law: if it's always in the same place, String#[] with positions
<apeiros> if it's in the string multiple times, String#scan
<law> nope, it'll always be in the same place
<law> I was trying to shoehorn Datetime.strptime, but for whatever reason that's not working for me
ziikutv has joined #ruby
sharms has joined #ruby
<ziikutv> What if i have a class depicted by a variable called leagueTest..and do puts leagueTest how do I change the default behaviour? to print something else instead of #<GetTeamInfo:0x000000012d81c8> perhaps something from the methods in the class?
<ziikutv> if you can point me to the right documentation that would be fine too.
baroquebobcat has quit [Quit: baroquebobcat]
<WJW> Define to_s on it? Define inspect on it?
vlad_starkov has quit [Ping timeout: 245 seconds]
<WJW> I usually don't puts things that aren't strings.
NewYearInterpol has quit [Ping timeout: 245 seconds]
cow_ has quit [Remote host closed the connection]
<law> hrm, I'm not seeing how String#[] would help me in this case...
<law> I'm reading http://ruby-doc.org/core-2.0.0/String.html, if that's the right place
jamesaanderson has joined #ruby
<law> I could say
<WJW> >> "Is the interpreter running?"
pwh has joined #ruby
<newton> when making a string like: "%{name}" % { name: 'test' } - is there a way to do "%{name} %{something}{one}" % { name: 'test', something: { one: 1 } }?
<law> date = "Wed Jan 1 01:21:13 2014: #somechannel: <law!law@dopefish.fuzzy-logic.org> arbitrary text"[0,24]....
<WJW> law, "foo"[1] => "o"
<law> oh wait, I'm an idiot
<law> I was thinking a date with 2 digits would add a field, but I see now the extra space in "Jan 1"
<law> so the tenth would be "Jan 10"
<law> derp :-p
<WJW> law, "foo"[1...3] => "oo"
jamesaanderson has quit [Client Quit]
<WJW> newton, not sure what you're asking.
<newton> WJW: basically I have stuff coming in as a hash, and I'd like to do "%{value} ... %{some_other_value} % hash
mneorr has joined #ruby
<WJW> newton, you are using Ruby to build up JS code?
<newton> taking json and formatting it to other output
psyl0n has quit [Remote host closed the connection]
<WJW> newton, the #{expr} syntax inside double quotes is often useful in formatting output.
dayepa has quit [Ping timeout: 246 seconds]
aspires has quit []
<WJW> x = "I mean it"; "foo #{x} bar" => "foo I mean it bar"
<newton> yes, I'm aware of that - but I'm trying to keep the lines a little shorter
<newton> the json is being parsed into a hash (json comes from a webhook)
<newton> right now I'm doing "%{blah} %{blah2}" % hash so I don't have to do "#{hash['blah']}..."
aspires has joined #ruby
<newton> but I'm not sure if it's possible to access the nested information with the %{value} syntax
<WJW> newton, the last part of your desired output looks like json.
gquental has quit [Ping timeout: 252 seconds]
tedstriker has quit [Quit: Anti-Fraping status set.]
<WJW> I am not aware there's a %{value} syntax in Ruby. In what context can it be used?
dayepa has joined #ruby
braincrash has quit [Quit: bye bye]
<newton> "%{name}" % { name: 'WJW' } => "WJW"
skulker has quit [Remote host closed the connection]
tedstriker has joined #ruby
okinomo has quit [Read error: Connection reset by peer]
<WJW> OK, that's the sprintf operator.
<apeiros> sprintf and family. as of 1.9
russt has quit [Ping timeout: 240 seconds]
skulker has joined #ruby
okinomo has joined #ruby
russt has joined #ruby
<WJW> I guess they expanded it beyond what it does in C.
<apeiros> before 1.9 already. %p is for inspect (which doesn't exist in C)
jmbrown412 has quit []
braincrash has joined #ruby
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig has quit [Quit: Quitting]
skulker has quit [Ping timeout: 265 seconds]
<ziikutv> ty
ziikutv has quit [Quit: Leaving.]
jamesaanderson has joined #ruby
marshjello has quit [Read error: Connection reset by peer]
<WJW> Sprintf is never the first tool in the toolbox I tend to reach for.
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has joined #ruby
butblack has quit [Ping timeout: 260 seconds]
<WJW> But then I'm not the most efficient programmer.
getthechip_ has joined #ruby
braincra- has joined #ruby
maletor has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
mechanicles has joined #ruby
byprdct has joined #ruby
<rjhunter> According to Rubinius' test suite, String#% learned the "%{key}" in Ruby 1.9.2
getthechip has quit [Ping timeout: 265 seconds]
getthechip_ is now known as getthechip
heftig has joined #ruby
travisjeffery has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
<law> alright, I suspect I'm approaching this an incredibly wrong way
<WJW> I like to define % for pairing things http://ideone.com/lJokdO
Hanmac has joined #ruby
<law> basically, I want to parse my ircd log files (which contain server status messages along with assorted channel messages) and turn them into HTML based on the date and channel name
okinomo has joined #ruby
gquental has joined #ruby
<law> however, ircd doesn't split the logs based on channel name, it just throws everything together in one big ol' logfile
<WJW> law, why not use brute force?
<law> so I'll have 6+ channel logs all in one file. At least everything is in chronological order
<law> I think I *am* brute-forcing it, but I just want to check with those who know better, to see if I'm about to shoot myself in the foot
gja has joined #ruby
Hanmac2 has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
<law> so, we start parsing the logfile. I'm going line by line, grabbing the date off the beginning and turning it into a Time object
travisjeffery has quit [Client Quit]
<law> then I slice the line, removing the date, and then see if the line starts with a channel-name
mmr has quit [Quit: leaving]
<law> i.e. "#<somechannelname>: arbitrary text..."
okinomo has quit [Client Quit]
okinomo has joined #ruby
<law> if it does, see if a file exists under YYYY/MM/DD/channelname.html. If it doesn't, make the dir structure and open that file for writing
<rjhunter> sounds reasonable to me
schreceng has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<law> if it does exist... now I don't know what
butblack has joined #ruby
<WJW> Track what files you have open, so you can close them eventually.
<law> how can I tell if I've parsed this line before? how can I track what files I have open?
_HolyCow has joined #ruby
<WJW> Hashes and such.
tacos1de has joined #ruby
mklappstuhl has joined #ruby
<rjhunter> channel_file_handles[channelname] = File.open(...)
<law> I can put filehandles in as keys to a hash?
<WJW> No, I wouldn't do that.
tylersmith has quit [Ping timeout: 245 seconds]
<apeiros> you can, but I don't think that was the suggestion
<WJW> Make the keys what they mean, the channel names.
Hanmac has quit [Ping timeout: 260 seconds]
<apeiros> you can use pretty much anything as a hash key. all it needs is proper #hash and #eql? methods
<WJW> Make the filehandles the values.
<WJW> You *can*, but you only should if you have reason to.
kitak has quit [Remote host closed the connection]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centipedefarmer has quit [Remote host closed the connection]
<rjhunter> i can't think what benefit you'd get from using file handles as keys
Hanmac1 has quit [Ping timeout: 246 seconds]
<law> I can't think what value I'd get from using file handles as values...
<WJW> Keys are for what you want to look up by.
mklappstuhl has quit [Ping timeout: 245 seconds]
<WJW> If you aren't going to look up, you can just use an array.
<rjhunter> channel_file_handles['#ruby'].puts "a line of text"
<law> well, I want to do some parsing on the line
<law> I'd like to do some basic css tags, so eventually it pops out like this: http://www.nubae.com/logs/ltsp20110228_pg1.html
<Nowaker> apeiros: ruby no longer does this weird -pX version numering since ruby 2.1. please change the version in the topic to just 2.1.0 :) https://www.ruby-lang.org/en/news/2013/12/21/semantic-versioning-after-2-1-0/
maletor has quit [Quit: Computer has gone to sleep.]
<WJW> No more patchlevels?
<WJW> law, you're writing HTML?
<law> eventually I'd like to, yes
byprdct has joined #ruby
<WJW> There are libraries for that.
<law> very simple html, just so it's a little prettier than raw text
ace_striker has joined #ruby
<WJW> You want to escape "<", "&", etc.
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
<law> right now if I can just parse out this gigantic logfile into directories-by-date and channels sorted by time, that'd be super
<WJW> law, from what you said, it seems that all your dates and channel names are at fixed column numbers.
estebistec has quit []
udoprog has quit [Ping timeout: 272 seconds]
<law> kind of
<law> the dates are definitely fixed
burlyscudd has quit [Quit: Leaving.]
<WJW> and the channel names start at a fixed location?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<law> sometimes a channel name follows a date, sometimes a 'status' line like "somenick just authenticated" follows
nateberkopec has joined #ruby
<WJW> So the channel name is either at the fixed location or it's missing, in which case you want to ignore the line?
<law> yes
<law> oh, and sometimes the channel name is at the END of the line
<law> if the line is "so and so has joined #channelname"
<WJW> I'd use a regex to detect that case.
<WJW> The regex can also extract the channel name from the end.
<law> or a part, "NeonLicht (~NeonLicht@darwin.ugr.es) left irc: Ping timeout: 265 seconds"
browndawg has joined #ruby
<law> but those cases are both regexable...
kitak has joined #ruby
<law> actually, I might be overcomplicating this...
jmo has joined #ruby
phipes has quit [Remote host closed the connection]
Hanmac has joined #ruby
phipes has joined #ruby
danshultz has joined #ruby
<law> line.match(/^#\w\:/) { |channelname| test if file exist...}
nateberkopec has quit [Ping timeout: 260 seconds]
mechanicles has quit [Quit: Computer has gone to sleep.]
mechanicles has joined #ruby
<rjhunter> law: does that account for when someone mentions another channel? #ruby
<law> if it's at the beginning of the line, it has to be either somebody's nick or a channelname
jmo has quit [Ping timeout: 245 seconds]
<law> and inspircd doesn't let you be a nick starting with a hash :-)
dogweather has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
<law> thankfully, I can safely assume the logfile is in descending chronological order
<rjhunter> the approach that https://github.com/ssoroka/irc-log-parser/blob/master/lib/parser.rb takes is case/when the line against a series of regexes
jimmyy has joined #ruby
<cfoch> what are : ?
mechanicles has quit [Ping timeout: 245 seconds]
<law> the raw line is of the format:
<law> #hammerclub: <botmarley!nodebot@localhost> http://gifs.gifbin.com/092010/1285616410_ship-launch-floods-street.gif
<WJW> cfoch, which : where?
<rjhunter> cfoch: you mean, code that has words with :punctuation in front of them?
<cfoch> resources :posts
<WJW> cfoch, symbol literal.
<cfoch> root to: "welcome#index"
lyanchih has quit [Quit: lyanchih]
<WJW> cfoch, like ' in Lisp or # in Smalltalk.
kitak has quit [Remote host closed the connection]
<rjhunter> cfoch: both of those are what ruby calls "symbols". you can think of them the same way you think of variable names. a bit like a string.
<WJW> to: "welcome#index" means :to => "welcome#index" in newer versions of Ruby.
tylersmith has joined #ruby
cow_ has joined #ruby
agent_white has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<WJW> The main thing about symbols is they equal themselves but they don't equal any other symbol.
<WJW> :foo == :foo; :bar != :foo
<cfoch> WJW: wait... I remember Smalltalk... a = #(1, 2, 3, 4) It is an array I think...
<cfoch> WJW: but I think you don
<cfoch> you're not refering to that
<WJW> If I remember right, #foo in Smalltalk is like :foo in Ruby.
jameshyde has quit [Quit: Leaving.]
<WJW> and 'foo in Lisp.
<cfoch> I don't know Lisp
<WJW> The selectors to find methods are symbols.
beakr has left #ruby [#ruby]
<WJW> foo.send :bar, *some_args is the same as foo.bar *some_args
vlad_starkov has joined #ruby
kitak has joined #ruby
kitak has quit [Remote host closed the connection]
kitak_ has joined #ruby
thumpba has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
jameshyde has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cfoch> ohhh
charliesome has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
<cfoch> I think I understand it
agent_white has joined #ruby
<WJW> Fundamentally the purpose of symbols is efficiency of comparison, but Javascript doesn't have them and seems to do fine just using strings.
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lewix has joined #ruby
<WJW> I suppose Javascript interpreters cache an identifier with each string that gets used as a method selector.
Brolen has quit [Quit: Brolen]
kitak_ has quit [Ping timeout: 245 seconds]
pdtpatr1ck has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
mjburgess has quit [Ping timeout: 246 seconds]
iamdoo2 has joined #ruby
kalamazoo has quit [Remote host closed the connection]
Megtastique has quit []
cj3kim has joined #ruby
travisjeffery has joined #ruby
rjhunter has quit [Remote host closed the connection]
kalamazoo has joined #ruby
virtualroot has left #ruby [#ruby]
<law> will Dir.mkdir create directories recursively?
hexus0 has quit [Quit: Quantum dynamics are affecting the transistors]
jameshyde has quit [Quit: Leaving.]
Awhite has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tedstriker has quit [Quit: Anti-Fraping status set.]
drusepth has joined #ruby
byprdct has joined #ruby
fuhgeddaboudit has joined #ruby
lyanchih_ has joined #ruby
<law> nm, found FileUtils.mkdir_p
droo has quit [Ping timeout: 272 seconds]
browndawg has quit [Quit: Leaving.]
diegoviola has quit [Quit: WeeChat 0.4.2]
Hanmac has quit [Ping timeout: 245 seconds]
robertrv has quit [Quit: Leaving]
Hanmac has joined #ruby
cow_ has quit [Remote host closed the connection]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow_ has joined #ruby
cow_ has quit [Ping timeout: 245 seconds]
lfox has quit [Quit: ZZZzzz…]
Hanmac1 has joined #ruby
stryek has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
banghouse has joined #ruby
mklappstuhl has joined #ruby
banghouse is now known as Guest86252
lfox has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
subbyyy has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
lukec has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
farn has quit [Read error: Connection reset by peer]
drusepth has quit [Ping timeout: 272 seconds]
mklappstuhl has quit [Ping timeout: 240 seconds]
Guest86252 has quit [Ping timeout: 245 seconds]
phipes has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
Awhite has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
gregoriokusowski has quit [Quit: gregoriokusowski]
AlSquire has joined #ruby
nateberkopec has joined #ruby
JJMalina has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
phipes has joined #ruby
subbyyy has joined #ruby
niklasb has quit [Ping timeout: 272 seconds]
<law> File.open(filepath, 'w') {|f| f.write(header)} will automatically close the filehandle, right?
tkuchiki has quit [Remote host closed the connection]
JJMalina has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: night]
ace_striker_ has joined #ruby
Solnse has quit [Remote host closed the connection]
totalmajor has joined #ruby
mary5030_ has quit [Remote host closed the connection]
ace_striker has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
<WJW> Law, yes.
dukz has joined #ruby
DrShoggoth has joined #ruby
IceDragon has quit [Quit: Space~~~]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mccloudy has joined #ruby
totalmajor has quit [Ping timeout: 246 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
Hanmac1 has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: Leaving]
postmodern has joined #ruby
Hanmac has joined #ruby
kitak has joined #ruby
vlad_starkov has joined #ruby
mechanicles has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest26670 has quit [Remote host closed the connection]
cow_ has joined #ruby
OdNairy has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
freerobby has joined #ruby
lukec has quit [Quit: lukec]
Mars has joined #ruby
yacks has quit [Quit: Leaving]
Mars is now known as Guest12217
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
bricker`LA has quit [Quit: Lost terminal]
Guest50446 is now known as mbff
kate_r has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
BrixSat has quit [Remote host closed the connection]
nateberkopec has joined #ruby
jameshyde has joined #ruby
jameshyde has quit [Max SendQ exceeded]
BrixSat has joined #ruby
jameshyde has joined #ruby
jameshyde has quit [Max SendQ exceeded]
jameshyde has joined #ruby
bricker`LA has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
mechanicles has quit [Quit: Computer has gone to sleep.]
cow_ has quit [Remote host closed the connection]
<pipecloud> law: The documentation claims to do so, so it's not beyond reason to think so.
ambushsabre has quit [Quit: rip]
lfox has quit [Quit: ZZZzzz…]
nateberkopec has quit [Ping timeout: 245 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Angel_of_Sorrow has joined #ruby
<Angel_of_Sorrow> You all work for Brother Miguel, so that you may keep me his.
Angel_of_Sorrow has quit [Killed (idoru (Spam is off topic on freenode.))]
iamdoo2 has quit [Ping timeout: 265 seconds]
phansch has joined #ruby
John445 has joined #ruby
pranny has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
jameshyde has quit [Quit: Leaving.]
bricker`LA has quit [Quit: Lost terminal]
sleetdrop has joined #ruby
Wolland has quit [Remote host closed the connection]
jameshyde has joined #ruby
byprdct has joined #ruby
gja has quit [Client Quit]
cow_ has joined #ruby
fire has joined #ruby
laphlaw has joined #ruby
rjhunter has joined #ruby
John445 has left #ruby [#ruby]
madb055 has joined #ruby
mechanicles has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
BrixSat_ has joined #ruby
iamdoo2 has joined #ruby
cfoch has quit [Remote host closed the connection]
BrixSat has quit [Quit: No Ping reply in 180 seconds.]
freerobby has joined #ruby
im0b_ has quit [Ping timeout: 240 seconds]
banister has joined #ruby
mechanicles has quit [Client Quit]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
madb055 has quit [Remote host closed the connection]
im0b__ has joined #ruby
mechanicles_ has joined #ruby
mklappstuhl has joined #ruby
getthechip has quit [Quit: getthechip]
krz has joined #ruby
mechanicles_ has quit [Client Quit]
iamdoo2 has quit [Read error: Connection reset by peer]
iamdoo2 has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
iamdoo2 has quit [Client Quit]
lewix has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
pskosinski has joined #ruby
cj3kim has quit [Remote host closed the connection]
bluehavana___ is now known as bluehavana
okinomo has joined #ruby
jamesaanderson has joined #ruby
grep_awesome is now known as grep_away
jmo has joined #ruby
Guest12217 has quit [Remote host closed the connection]
gja has joined #ruby
jamesaanderson has quit [Client Quit]
jamesaanderson has joined #ruby
CaptainJet has quit []
jmo has quit [Ping timeout: 246 seconds]
jamesaanderson has quit [Client Quit]
aagdbl has joined #ruby
teenwolf has quit [Quit: Leaving...]
Deele has joined #ruby
noop has joined #ruby
Awhite has joined #ruby
agent_white has joined #ruby
sayan has joined #ruby
byprdct has quit [Ping timeout: 272 seconds]
butblack has quit [Quit: butblack]
Mars has joined #ruby
Mars is now known as Guest37015
aspires has quit []
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
stkowski has quit [Quit: stkowski]
mengu has joined #ruby
law has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
h0rrorvacui has quit [Ping timeout: 252 seconds]
jandersatl has quit [Quit: jandersatl]
Solnse has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
okinomo has joined #ruby
mechanicles_ has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
jmimi has joined #ruby
jonjames has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcgg has joined #ruby
echevemaster has quit [Remote host closed the connection]
h_kon has joined #ruby
dagobah has joined #ruby
marcgg_ has quit [Ping timeout: 272 seconds]
mrnugget has joined #ruby
Guest37015 has quit [Remote host closed the connection]
rjhunter has joined #ruby
nism has joined #ruby
bricker`LA has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
gja has joined #ruby
falood has quit []
browndawg1 has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
aagdbl has quit [Disconnected by services]
aagdbl1 has joined #ruby
aagdbl1 has quit [Client Quit]
aagdbl has joined #ruby
banghouse has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
law has joined #ruby
Wolland has joined #ruby
banghouse is now known as Guest53393
falood has joined #ruby
kitak has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
_honning_ has joined #ruby
kitak has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
laphlaw has quit [Quit: Computer has gone to sleep.]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Ping timeout: 245 seconds]
croaky has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
Guest53393 has quit [Ping timeout: 245 seconds]
law has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 246 seconds]
ViPi2 has joined #ruby
flubba has quit [Remote host closed the connection]
jmaister_ is now known as jmaister
ace_striker_ has quit [Ping timeout: 272 seconds]
Kneferilis has joined #ruby
flubba_ has joined #ruby
charliesome has joined #ruby
flubba__ has joined #ruby
banister has joined #ruby
abra has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
rjhunter has joined #ruby
flubba_ has quit [Ping timeout: 240 seconds]
tharindu has quit [Quit: Leaving...]
dukz has quit []
mjburgess has joined #ruby
dukz has joined #ruby
croaky has quit [Ping timeout: 246 seconds]
totalmajor has joined #ruby
Mars has joined #ruby
Mars is now known as Guest11816
Guest11816 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
tectonic has quit []
L8D has quit [Ping timeout: 272 seconds]
CpuID has quit [Ping timeout: 252 seconds]
rjhunter has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
dukz has quit [Client Quit]
dukz has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tharindu has joined #ruby
totalmajor has quit [Ping timeout: 260 seconds]
banister has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
bubbajones has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
abra has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
monkegjinni has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
m00nlight has quit [Quit: Konversation terminated!]
m00nlight has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
banister has joined #ruby
mjburgess has quit [Ping timeout: 246 seconds]
kalamazoo has quit [Remote host closed the connection]
kalamazoo has joined #ruby
_honning_ has quit [Ping timeout: 245 seconds]
phansch has quit [Quit: Leaving]
tagrudev has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
tagrudev has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ahawkins has joined #ruby
ahawkins has quit [Client Quit]
jmo has joined #ruby
kalamazoo has quit [Ping timeout: 272 seconds]
m00nlight has quit [Ping timeout: 245 seconds]
r0bby_ has joined #ruby
floyd20183 has joined #ruby
ageis has quit [Quit: http://ageispolis.net]
robbyoconnor has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
jmo has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
ahawkins has joined #ruby
banister_ has joined #ruby
banister has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 240 seconds]
Guest77847 has joined #ruby
floyd20183 has quit [Read error: Operation timed out]
croaky has joined #ruby
endash has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
_honning_ has joined #ruby
jameshyde has quit [Quit: Leaving.]
ViPi2 has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
predator117 has joined #ruby
CpuID has joined #ruby
<pontiki> (wth?)
sayan has quit [Ping timeout: 240 seconds]
Yarou has quit [Quit: This computer has gone to sleep]
joaosa_ has quit [Ping timeout: 272 seconds]
nisstyre has joined #ruby
freerobby has joined #ruby
floyd20183 has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: No buffer space available]
claymore has joined #ruby
dapz has joined #ruby
croaky has quit [Ping timeout: 272 seconds]
r_s has joined #ruby
aganov has joined #ruby
mklappstuhl has joined #ruby
jprovazn has joined #ruby
freerobby1 has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
okinomo has quit [Ping timeout: 260 seconds]
Kricir has quit []
mklappstuhl has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
ewnd9 has joined #ruby
phipes has quit [Remote host closed the connection]
floyd20183 has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
floyd20183 has joined #ruby
mechanicles_ has quit [Quit: Computer has gone to sleep.]
senayar has joined #ruby
awestroke has joined #ruby
okinomo has joined #ruby
mneorr has joined #ruby
koaps has joined #ruby
zxd has joined #ruby
<koaps> hello all
<pontiki> hi koaps
joaosa has joined #ruby
<koaps> I was hoping someone might be able to help out with a ffi issue i'm seeing
pskosinski has quit [Quit: Til rivido Idisti!]
<koaps> seems like ffi_lib only loads one of the libs in the array, from what I can see in google its supposed to work
CpuID has quit [Quit: This computer has gone to sleep]
rjhunter has joined #ruby
andikr has joined #ruby
<pontiki> sadly, i know nothing about ffi. keep lurking tho, someone might have an answer later, if not sooner
mneorr has quit [Ping timeout: 252 seconds]
<koaps> yea, i'm just walking around blind trying to figure it out, might go back to trying to use a extension, I seemed to get more closer to working
N00D is now known as zz_N00D
klaut has joined #ruby
<bgy> Hi
floyd20183 has quit [Ping timeout: 245 seconds]
<pontiki> hi bgy
noname001__ has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
_honning_ has quit [Ping timeout: 240 seconds]
r_s has quit [Ping timeout: 265 seconds]
browndawg1 has quit [Quit: Leaving.]
croaky has joined #ruby
Mars has joined #ruby
Mars is now known as Guest46737
lkba has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
soobus has joined #ruby
monkegjinni has joined #ruby
relix has joined #ruby
floyd20183 has joined #ruby
Guest46737 has quit [Ping timeout: 245 seconds]
kitak has joined #ruby
olivier_bK has joined #ruby
blackmes1 has joined #ruby
skaflem has joined #ruby
codenapper has joined #ruby
nateberkopec has joined #ruby
dawe has joined #ruby
troessner has joined #ruby
charliesome has joined #ruby
narcan has joined #ruby
floyd20183 has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
roolo has joined #ruby
gja has joined #ruby
croaky has quit [Ping timeout: 260 seconds]
frxx has joined #ruby
nateberkopec has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
thumpba has joined #ruby
madb055 has joined #ruby
monkegjinni has joined #ruby
tziOm has joined #ruby
bubbajones has joined #ruby
mityaz has joined #ruby
frx has quit [Ping timeout: 272 seconds]
admin0 has joined #ruby
codenapper has quit [Quit: codenapper]
lsmola_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
huttan- has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
bubbajones has quit [Ping timeout: 240 seconds]
bubbajones has joined #ruby
agjacome has quit [Ping timeout: 272 seconds]
floyd20183 has joined #ruby
wildroman2 has joined #ruby
renklaf has joined #ruby
thumpba has quit [Ping timeout: 260 seconds]
jhaals has joined #ruby
Gestahlt_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
wildroman2 has quit [Remote host closed the connection]
freerobby has joined #ruby
razibog has joined #ruby
floyd20183 has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
banghouse has joined #ruby
law has joined #ruby
banghouse is now known as Guest92193
cbetta_afk is now known as cbetta
freerobby has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhaals has joined #ruby
Radcircle has joined #ruby
<Radcircle> this may be a stupid question.. but how is the boolean TRUE in this case?
Guest92193 has quit [Ping timeout: 246 seconds]
<Radcircle> # boolean_3 = 2**3 == 8 && 3**2 == 9
<Radcircle> boolean_3 = true
<Radcircle> from what codecademy taught me, 2**3 = 2x2x2 and 3**2 = 3x3
law has quit [Ping timeout: 252 seconds]
<frxx> yes
ephemerian has joined #ruby
farn has joined #ruby
<Radcircle> oh wow, just see it now
<pontiki> Radcircle: both sides of the && equate to truthy
<popl> Radcircle: What's the precedence in that statement?
ewnd9 has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Ping timeout: 272 seconds]
<Radcircle> no i just failed to see that both sides were true. for some reason i assumed it was false because the values werent equal to each other
<Radcircle> thank you gents and ladies!
<popl> hm?
<Radcircle> 2**3 is equal to 8, which is true then we have the boolean operator and && with the otherside 3**2 equaling 9
<Radcircle> just started learning ruby today :P
Bumptious has quit [Remote host closed the connection]
<pontiki> congrats
rmabbi has joined #ruby
croaky has joined #ruby
relix has joined #ruby
Bumptiou_ has joined #ruby
mneorr has joined #ruby
larissa has joined #ruby
rmabbi has quit [Quit: This computer has gone to sleep]
razibog has quit [Remote host closed the connection]
boreliash has joined #ruby
rjhunter has joined #ruby
boreliash is now known as guinslym
totalmajor has joined #ruby
timonv has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 240 seconds]
Al_ has joined #ruby
klaut has quit [Remote host closed the connection]
ewnd9 has joined #ruby
Al_ is now known as Guest11107
klaut has joined #ruby
alex88 has joined #ruby
mojjojo has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
totalmajor has quit [Ping timeout: 245 seconds]
croaky has quit [Ping timeout: 252 seconds]
<Radcircle> if you have !(true && false)
razibog has joined #ruby
<Radcircle> does the ! operator get "distributed" in on both sides? as compared to (!true && false)
fire has quit [Quit: WeeChat 0.4.1]
fire has joined #ruby
user258467 has joined #ruby
<pontiki> not really the right way to look at it Radcircle
<Radcircle> then what is? :o
<Radcircle> that wikipedia page is confusing
<Radcircle> ⇔ is a metalogical symbol meaning "can be replaced in a logical proof with"
<popl> Click on the Simple English link for a simpler explanation.
<tobiasvl> Radcircle: !(true && false) is the same as (!true || !false)
<popl> ^
<tobiasvl> anyway, just think of it like this: the expression inside the parentheses is evaluated first, then the return value replaces the entire parenthesis
<tobiasvl> !(true && false) => !false => !false => true
<popl> It's very useful to have a grasp on propositional logic, Radcircle. Khan Academy's got some great videos on the subject.
<tobiasvl> oops, remove one step there
<Radcircle> my understanding was that
<Radcircle> !(true && false) = (!true && !false) which => false, because both sides arent true
<popl> no
rickruby has quit [Remote host closed the connection]
<popl> (!true || !false)
<tobiasvl> no, that's completely wrong Radcircle
<tobiasvl> why would you think that
rickruby has joined #ruby
<Radcircle> guess i'm used to distribution laws from high school lol
<Radcircle> man it's been a while
<Radcircle> guess i'll watch that khan academy video
<popl> or just follow some links on Wikipedia
<Radcircle> that as well, thank you! :)
<tobiasvl> "both true and false aren't true" is not the same as "true is not true and false is not true"
floyd20183 has joined #ruby
<Radcircle> ^ thing is, codecademy said that if you have &&, both sides need to be true
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radcircle> true && false doesn't satisfy the && operator, no?
wildroman2 has joined #ruby
<tobiasvl> nope
<tobiasvl> so it's false
wildroman2 has quit [Remote host closed the connection]
<Radcircle> right
<tobiasvl> and !false is true
<Radcircle> true && false = false
<tobiasvl> yes
<Radcircle> true && !false = true
<tobiasvl> yes
wildroman2 has joined #ruby
<Radcircle> so how is (!true && !false) not result in false?
<Radcircle> because that's saying false && true
metallisto has left #ruby ["Verlassend"]
<tobiasvl> it does!
<tobiasvl> who said it didn't?
rickruby has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
<Radcircle> 10:55 tobiasvl: no, that's completely wrong Radcircle
<Radcircle> :\ lol
<tobiasvl> 10:54:43 Radcircle | !(true && false) = (!true && !false) which => false, because both sides arent true
<popl> what?
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasvl> !(true && false) is NOT the same as (!true && !false)
<tobiasvl> the former is TRUE, the latter is FALSE (as you just correctly stated)
<Radcircle> OHHHH
<Radcircle> okay, got it now
Hanmac1 has joined #ruby
<Radcircle> i should have used ==> instead of just = to illustrate my point
<Radcircle> thanks for putting up with my noobishness! :D
gregoriokusowski has joined #ruby
fire has quit [Quit: WeeChat 0.4.1]
jmo has joined #ruby
fire has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
jhaals has joined #ruby
<guinslym> hi! I'm trying to make an . hash and apply an .count method but there is no output of it. any help? gist :: https://gist.github.com/guinslym/8217189
jmo has quit [Ping timeout: 245 seconds]
fire has left #ruby [#ruby]
charliesome has joined #ruby
camilasan has joined #ruby
jmo has joined #ruby
timonv has joined #ruby
drumusician has joined #ruby
Bumptiou_ has quit [Read error: Connection timed out]
tharindu has quit [Quit: Leaving...]
marr has joined #ruby
sec^nd has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
Guest28193 has joined #ruby
croaky has joined #ruby
kitak has quit [Remote host closed the connection]
mehlah has joined #ruby
mojjojo has quit [Quit: mojjojo]
banghouse has joined #ruby
Hanmac has joined #ruby
banghouse is now known as Guest57640
sec^nd has joined #ruby
emocakes has joined #ruby
mojjojo has joined #ruby
ephemerian has joined #ruby
aapzak_ is now known as aapzak
Hanmac1 has quit [Ping timeout: 272 seconds]
mojjojo has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
huttan_ has quit [Ping timeout: 246 seconds]
tharindu has joined #ruby
huttan- has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
okinomo has joined #ruby
RoryHughes has joined #ruby
larissa has quit [Ping timeout: 272 seconds]
RoryHughes has quit [Max SendQ exceeded]
t_p has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 252 seconds]
RoryHughes has joined #ruby
mklappstuhl has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jmo has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
croaky has quit [Ping timeout: 246 seconds]
kitak has joined #ruby
huttan has joined #ruby
mengu has quit [Remote host closed the connection]
razibog has quit [Ping timeout: 245 seconds]
marcoecc has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
marcoecc is now known as Guest70257
mklappstuhl has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 260 seconds]
pranny has quit [Quit: Leaving.]
plotter has joined #ruby
decoponio has joined #ruby
phipes has joined #ruby
nemesit|znc has joined #ruby
decoponio has quit [Client Quit]
Guest70257 has quit [Quit: auth]
xiphias has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
xiphias has joined #ruby
Guest95227 is now known as andredieb
andredieb is now known as Guest67468
mneorr has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Awhite has quit [Read error: Connection reset by peer]
h_kon has quit [Remote host closed the connection]
robert_ has quit [Read error: Connection reset by peer]
ephemerian has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
h_kon has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
fire has joined #ruby
Guedes has left #ruby ["Saindo"]
okinomo has quit [Read error: Connection reset by peer]
juni0r has quit [Ping timeout: 245 seconds]
dawe has quit [Quit: leaving]
Speed has joined #ruby
juni0r has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
jmo has joined #ruby
banister_ has quit [Ping timeout: 252 seconds]
xiphias has joined #ruby
r0bby_ is now known as robbyoconnor
phipes has quit [Remote host closed the connection]
law has joined #ruby
TheNumb has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
TheNumb has joined #ruby
frxx has quit []
xiphias has quit [Ping timeout: 240 seconds]
frx has joined #ruby
huttan has quit [Ping timeout: 272 seconds]
Loaft has joined #ruby
xiphias has joined #ruby
ffio has joined #ruby
law has quit [Ping timeout: 240 seconds]
huttan has joined #ruby
banister has joined #ruby
okinomo has joined #ruby
wildroman2 has joined #ruby
nateberkopec has joined #ruby
workmad3 has joined #ruby
crashx has joined #ruby
fire has quit [Quit: WeeChat 0.4.1]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mojjojo has quit [Quit: mojjojo]
fijimunkii has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Ping timeout: 245 seconds]
lyanchih_ has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
falood has quit [Remote host closed the connection]
kep has joined #ruby
m8 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
razibog has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
larissa has joined #ruby
eka has joined #ruby
fire has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
maasha has joined #ruby
ym2ha0 has joined #ruby
ym2ha0 has left #ruby [#ruby]
thumpba has joined #ruby
Hanmac1 has joined #ruby
<maasha> hi
huttan has quit [Ping timeout: 240 seconds]
<maasha> I am looking for a way to test if stderr is emtpy when using popen3?
wildroman2 has quit [Remote host closed the connection]
Awhite has joined #ruby
<tobiasvl> maasha: hmm, what exactly do you mean by an empty stderr?
alexherbo2 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
okinomo has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<maasha> tobiasvl: if I run a command using popen3 and there are verbose input in stderr - then I would like to know before openening a file and writing it to disk.
<maasha> ehrhm. verbose output
lkba has joined #ruby
monkegjinni has joined #ruby
<tobiasvl> stdout.read
<tobiasvl> ?
<tobiasvl> i mean stderr.read (if you've called it stderr that is
thumpba has quit [Ping timeout: 272 seconds]
<maasha> tobiasvl: then I need to rewind or some other dirty hackery thing.
intuxicated has joined #ruby
<maasha> tobiasvl: I think eof? does the trick.
<maasha> yup. eof? it is.
endash has quit [Quit: endash]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 272 seconds]
huttan has joined #ruby
tomsthumb has joined #ruby
mklappstuhl has joined #ruby
chrisan has joined #ruby
psyl0n has joined #ruby
rickruby has joined #ruby
Radcircle has quit [Remote host closed the connection]
blackmes1 has joined #ruby
rjhunter has joined #ruby
m00nlight has joined #ruby
<pontiki> or .rewind
cow_ has quit [Remote host closed the connection]
fire has quit [Quit: WeeChat 0.4.1]
eval-in has quit [Remote host closed the connection]
cow_ has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
pranny has joined #ruby
eval-in has joined #ruby
<maasha> $> is stdout?
RoryHughes has quit []
rickruby has quit [Ping timeout: 272 seconds]
joonty has quit [Ping timeout: 246 seconds]
cow_ has quit [Ping timeout: 252 seconds]
marcoecc has joined #ruby
crashx has quit [Quit: crashx]
pranny has quit [Ping timeout: 252 seconds]
senayar_ has joined #ruby
RoryHughes has joined #ruby
butblack has joined #ruby
<maasha> confirmed.
joaoh82 has quit [Remote host closed the connection]
agjacome has joined #ruby
Kar- has joined #ruby
aagdbl has quit [Quit: Leaving.]
eval-in has quit [Remote host closed the connection]
aagdbl has joined #ruby
eval-in has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
senayar_ has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
mneorr has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
totalmajor has joined #ruby
axl_ has quit [Client Quit]
sayan has joined #ruby
NewYearInterpol has joined #ruby
adambeynon has joined #ruby
agjacome has quit [Ping timeout: 245 seconds]
derebos has joined #ruby
jamesaxl has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
NewYearInterpol is now known as LinearInterpol
<shevy> 8) is smiley?
<shevy> confirmed!
mzdravkov has joined #ruby
senayar has quit [Remote host closed the connection]
totalmajor has quit [Ping timeout: 260 seconds]
<popl> U+0038 (38): DIGIT EIGHT [8] U+0029 (29): RIGHT PARENTHESIS [)]
agent_white has quit [Read error: Connection reset by peer]
Awhite has quit [Read error: Connection reset by peer]
joonty has joined #ruby
tharindu has quit [Quit: Leaving...]
relix has joined #ruby
relix has quit [Max SendQ exceeded]
relix has joined #ruby
huttan has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
huttan has joined #ruby
nateberkopec has joined #ruby
kitak has quit [Remote host closed the connection]
varfoo has quit [Quit: WeeChat 0.4.0]
kodcuadambot has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
railslearner1 has joined #ruby
crashx has joined #ruby
Gonzih has joined #ruby
kitak has joined #ruby
kodcuadambot has quit [Remote host closed the connection]
senayar has joined #ruby
kitak has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
railslearner1 has quit [Client Quit]
calleerlandsson has joined #ruby
calleerlandsson has quit [Client Quit]
nateberkopec has joined #ruby
flame_ has joined #ruby
senayar has quit [Remote host closed the connection]
kitak has joined #ruby
<shevy> huh
rickruby has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
mrnugget has quit [Quit: mrnugget]
Awhite has joined #ruby
agent_white has joined #ruby
dukz_ has joined #ruby
pranny has quit [Ping timeout: 252 seconds]
<emocakes> wut?
flame_ has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.2]
dukz has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
flame_ has joined #ruby
<shevy> emocakes popl speaketh in strange ways
LinearInterpol has quit [Ping timeout: 272 seconds]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
flame_ has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
Gonzih has joined #ruby
freerobby has joined #ruby
bluenemo has joined #ruby
nemesit|znc has quit [Ping timeout: 252 seconds]
bluenemo has quit [Remote host closed the connection]
dukz_ has quit [Remote host closed the connection]
nemesit|znc has joined #ruby
dukz has joined #ruby
crashx has quit [Quit: crashx]
vlad_starkov has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 260 seconds]
joaoh82 has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
mrnugget has joined #ruby
dukz has quit [Client Quit]
rickruby has joined #ruby
xjiujiu has quit [Ping timeout: 272 seconds]
centipedefarmer has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
joaoh82 has quit [Ping timeout: 265 seconds]
phutchins has quit [Ping timeout: 245 seconds]
rickruby has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
vlad_starkov has joined #ruby
cow_ has joined #ruby
Guest11107 is now known as __Al__
mzdravkov has left #ruby [#ruby]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
razibog has quit [Ping timeout: 265 seconds]
kaldrenon has joined #ruby
butblack has quit [Quit: butblack]
danshultz has joined #ruby
Guest67468 is now known as andredieb
tomsthumb has quit [Quit: Leaving.]
mneorr has joined #ruby
andredieb is now known as Guest9268
jonjames has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
mojjojo has quit [Quit: mojjojo]
Guest9268 is now known as andredeib
andredeib is now known as andredieb
andredieb has quit [Changing host]
andredieb has joined #ruby
xjiujiu has joined #ruby
<WJW> Radcircle, DeMorgan's Laws.
crashx has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
kep has quit [Quit: WeeChat 0.4.2]
kung has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
kung has joined #ruby
browndawg has joined #ruby
mojjojo has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 265 seconds]
<WJW> guinslym, are you here?
nemesit|znc has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<WJW> guinslym, I get 6. Your console is hosed up. Your Ruby may be hosed up.
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
andikr has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
jonjames has joined #ruby
dr_bob has joined #ruby
max96at has joined #ruby
shime has joined #ruby
m00nlight_ has joined #ruby
senayar has joined #ruby
m00nlight has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
huttan has quit [Read error: Connection reset by peer]
huttan has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
pranny has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
ffranz has joined #ruby
ffranz has quit [Read error: Connection reset by peer]
pengunix has joined #ruby
<pengunix> So I installed a gem, can I run the tests for that gem somehow?
pranny has quit [Ping timeout: 252 seconds]
mccloudy has quit [Remote host closed the connection]
agjacome has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
pranny has joined #ruby
guinslym has quit [Ping timeout: 240 seconds]
pranny has quit [Client Quit]
pranny has joined #ruby
RubNoob has joined #ruby
Emmanuel_Chanel has joined #ruby
banister has joined #ruby
ffranz has joined #ruby
pranny has quit [Read error: Connection reset by peer]
mehlah has quit [Quit: Leaving...]
<Morrolan> pengunix: I usually just cd into the gem's installation directory, and run `rake`.
<pengunix> Morrolan: and how can I specify to install the latest gem in a Gemfile?
<pengunix> Morrolan: 'mygem', 'latest' doesn't work
<Morrolan> Not specifying a version should make it fetch the latest published version.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
floyd20183 has quit [Ping timeout: 265 seconds]
alvinsj has joined #ruby
<Morrolan> (As long as no Gemfile.lock exists, of course. If there is one already, and you want to update, then `bundle update` is required.)
<pengunix> Morrolan: right
<pengunix> I just found out it is case sensitive, and it simply couldn't find the gem.
<Morrolan> Oh, heh. :D
<pengunix> Morrolan: hm, and apparently native gem extensions have to be compiled under root, right?
alvinsj has left #ruby [#ruby]
<WJW> NO ROOT
yacks has joined #ruby
<WJW> pengunix, there are 'rbenv' and other similar tools that will help you compile your Ruby in userland, and the gems along with it.
freerobby has joined #ruby
<WJW> 'rbenv', 'rvm', ...
vlad_starkov has quit [Remote host closed the connection]
<shevy> pengunix I think only the "make install" step, the make step should have made the binaries in the directory where the gem was extracted to
<shevy> you can try manually, extract the gem via gem unpack
<shevy> once you have the binaries/bindings, you can copy them all over the filesystem at your leisure
<pengunix> the termios gem requires root apparently.
mojjojo has joined #ruby
Sp4rKy has joined #ruby
mjburgess has joined #ruby
CptJeanLucPicard is now known as ArchBeOS
pen has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
<Morrolan> Compiling should never be done as root.
<shevy> I tried to compile termios
<shevy> I cant even get it to compile
<shevy> termios.c:404:30: error: request for member 'f' in something not a structure or union
<shevy> Makefile:206: recipe for target 'termios.o' failed
timonv has quit [Remote host closed the connection]
joaoh82 has joined #ruby
<banister> shevy i set sail in a tear drop and escaped beneath the door sill, cause the smell of her perfume echoes in my head still
<shevy> pengunix what ruby version are you using?
<banister> shevy i see my people trying to drown the sun in weekends of whiskey sours, cause how many times can you wake up in this comic book and plant flowers?
<pengunix> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<pengunix> debian ruby package
<shevy> hmm
<pengunix> I can also install others using rbenv, but I don't need it
wildroman2 has quit [Remote host closed the connection]
<shevy> termios gem: last release 0.9.4 September 24, 2004 (11 KB)
<shevy> I think 1.9.x did not exist in 2004
mojjojo has quit [Quit: mojjojo]
dru has joined #ruby
<pengunix> alright, it is not maintained anymore
<pengunix> I use highline as alternative now and it seems to work, too.
<shevy> highline is nice
mklappstuhl has joined #ruby
crashx has quit [Quit: crashx]
jkamenik has joined #ruby
<pengunix> yes, installed without any problems
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<pengunix> it is used for blanking a password input on console.
joaosa has quit [Ping timeout: 246 seconds]
andikr has quit [Remote host closed the connection]
crashx has joined #ruby
Brolen has joined #ruby
<shevy> yeah
<shevy> ask("Enter your password: ") { |q| q.echo = false }
<pengunix> shevy: it is used by capistrano for passphrase input for private key.
<pengunix> shevy: but I will use a ssh forward so this won't be necessary, too.
diegoviola has joined #ruby
joaoh82 has quit [Ping timeout: 252 seconds]
vpretzel has joined #ruby
r0bby_ has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: No route to host]
joaoh82 has joined #ruby
wildroman2 has joined #ruby
timonv has joined #ruby
Kar- has quit [Ping timeout: 252 seconds]
madb055 has quit [Ping timeout: 245 seconds]
Brolen has quit [Quit: Brolen]
nannes has joined #ruby
<nannes> Hi there
<nannes> I cannot find the package called "ruby-bundle" in debian
<WJW> nannes, what would it be good for?
<nannes> do you know how is it called? (sometimes distros just change name to the packages)
lowski has joined #ruby
<nannes> WJW: To install the requireg gems for a program
<Morrolan> Sounds like bundler.
<nannes> yeah sorry, typo
<Morrolan> That'd be a question for #debian, though. Did you ask in there, yet? :)
<WJW> nannes, loading any Ruby-related thing from a package is a bad idea, to the best of my understanding.
niklasb has joined #ruby
<Morrolan> Apart from that, just use packages.debian.org and search for "bundler" in your distro's index.
<WJW> nannes, Use 'rbenv' to get Ruby and use 'gem' to get gems.
<WJW> nannes, gem install bundler
<nannes> Morrolan: Yes, I did. They told me to ask here xD
<Morrolan> ... why would they do that.
<nannes> The same thing I told them, Morrolan, Indeed I think it's a debian issue, just like you
<nannes> WJW: thanks
mneorr has joined #ruby
breakingthings has joined #ruby
phansch has joined #ruby
LinearInterpol has joined #ruby
<Morrolan> And yea, if you intend to do more than just playing around with Ruby, I'd set up a ruby env which is separate from the system-provided one, too. (E.g. via rbenv, rvm, chruby, ...)
<WJW> I never install a system Ruby.
<Morrolan> As for your original question: use http://www.debian.org/distrib/packages
<WJW> Ruby belongs in userland.
joaosa has joined #ruby
totalmajor has joined #ruby
<Morrolan> E.g. in sid the package would be "bundler" - http://packages.debian.org/unstable/ruby/bundler
<Morrolan> WJW: There are probably a few systems around which use it for internal scripts, instead of Perl or Python.
vlad_starkov has joined #ruby
<Morrolan> a few distros*
<WJW> In that case, they have a good reason to have Ruby to support those scripts.
<WJW> Xubuntu doesn't.
<Morrolan> Frankly if one of their users installs some software which relies on Ruby, having the package manager provide it is the way to go.
<Morrolan> Imagine Ubuntu showing a popup "Sorry, if you want to use this software you need to install Ruby via a tool intended for devs". ;D
<Morrolan> Their target audience would probably faint!
ambushsabre has joined #ruby
<WJW> To date I haven't encountered a case of software being distributed that depends on Ruby except the web sites I work on with my colleagues.
mneorr has quit [Ping timeout: 252 seconds]
totalmajor has quit [Ping timeout: 260 seconds]
LeoSWE has joined #ruby
<LeoSWE> Hello
<Morrolan> Vagrant comes to mind. But that's about it.
<WJW> nannes, are you installing Ruby to fulfill a dependency of some other software you are downloading, or do you want to work with Ruby yourself?
ambushsabre has quit [Ping timeout: 240 seconds]
<nannes> WJW: The first.
postmodern has quit [Quit: Leaving]
<WJW> nannes, in that case, the crucial question is what that other software actually requires. As Morrolan says, it might really be designed to work with the same version of Ruby, Bundler, etc. provided in packages in the distro.
wildroman2 has quit [Remote host closed the connection]
<LeoSWE> I have a question about hosting RoR application, is it possible on a shared server of 1and1 like "performance" ?
johnyboy6000 has joined #ruby
sethen has quit [Read error: Connection reset by peer]
gregoriokusowski has quit [Quit: gregoriokusowski]
ambushsabre has joined #ruby
<nannes> WJW: I don't know whether it actually requires specific versions of those packages, but I can say there's nothing about this written in the install page
<WJW> LeoSWE, there is a channel #rails.
<LeoSWE> thank you
<nannes> Anyway, I've just installed bundler with gem, as you suggested, and then I created a simbolic link to /bin/bundle
<nannes> Launched it, and got an error, about the environment variable
<nannes> Should I set it some way?
<nannes> $ bundle install
<WJW> nannes, I may have mislead you, spoke from developer viewpoint.
<nannes> /usr/bin/env: ruby: No such file or directory
<WJW> nannes, it's looking for 'ruby'.
<WJW> nannes, 'ruby' isn't in your $PATH anywhere.
<nannes> it is
wildroman2 has joined #ruby
<WJW> nannes, maybe PATH is getting stomped somewhere along the way?
wildroman2 has quit [Remote host closed the connection]
<nannes> /usr/bin/ruby1.8
johnyboy6000 has quit [Remote host closed the connection]
<nannes> do you know how is it called the env variable to set?
<nannes> $ruby maybe? xD
<WJW> nannes, is there /usr/bin/ruby ?
<nannes> I mean, I don't know how to manually set it
<olivier_bK> how i can do for install only gem for ruby ?
wildroman2 has joined #ruby
<nannes> I have 2 ruby versions
<nannes> 1.8
<nannes> and 1.9.1
<nannes> I think I'll uninstall 1.9.1, since I'm using 1.8
<WJW> nannes, it's looking for the name 'ruby' plain.
<apeiros> 1.8 is long dead
<olivier_bK> nanashiRei, or rv use ruby 1.8
<rjhunter> olivier_bK: I don't understand your question. What are you trying to do?
<nannes> WJW: oh ok, I'll link it with ln -s
<olivier_bK> rvm use ruby 1.8 ( sorry )
LeoSWE has left #ruby [#ruby]
RaCx has joined #ruby
<WJW> olivier_bK, you want to install some gem?
<olivier_bK> rjhunter, i would want to install only gem
<rjhunter> olivier_bK: you want to install a gem called "only"?
phansch has quit [Remote host closed the connection]
<nannes> ok, another error
<nannes> $ bundle install
<nannes> /bin/bundle:3:in `require': no such file to load -- bundler (LoadError)
<nannes> from /bin/bundle:3
joaosa has quit [Ping timeout: 240 seconds]
razibog has joined #ruby
danshultz has joined #ruby
joaosa has joined #ruby
phansch has joined #ruby
momomomomo has joined #ruby
<rjhunter> nannes: that means your Ruby can't find your Bundler. If they're both installed from Debian packages, that's a bit surprising.
<nannes> no, they are not
<nannes> I mean, not both of them
<nannes> only ruby is
nateberkopec has joined #ruby
<WJW> rjhunter, I tricked nannes into not installing from debian packages.
* Hanmac1 point and laugh about bundler
<rjhunter> ah, if you're mixing and matching, they won't find each other
Hanmac1 is now known as Hanmac
<WJW> nannes and rjhunter, I should be ashamed of myself.
<nannes> no way WJW ;) ;) you're great!
browndawg1 has joined #ruby
<WJW> I made you mix and match.
grep_away is now known as grep_awesome
<nannes> Do you know if there's a way to ake them point to each other?
<nannes> (without reinstalling)
<rjhunter> nannes: Mix and match can work, but it's much more complicated. (playing around with RUBYPATH and similar)
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
freebs has joined #ruby
<nannes> rubypath, ok, I'll check taht
<WJW> nannes, in the end you may have to appeal to experts on the tool you are trying to run that depends on Ruby, and ask what they usually do to provide Ruby and bundler and such friends.
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
zipper has quit [Quit: Lost terminal]
<rjhunter> ^
tannerburson has quit [Quit: tannerburson]
<rjhunter> nannes: What are you trying to install, out of interest?
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
senayar has quit [Remote host closed the connection]
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
danshultz has quit [Ping timeout: 245 seconds]
browndawg has quit [Ping timeout: 245 seconds]
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
<nannes> WJW: I don't think they provide it into their package itself
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
<rjhunter> Hmm, those instructions seem to imply that the Debian packages should do just fine.
<WJW> Maybe there is a community around it or you could raise the author.
nateberkopec has quit [Ping timeout: 252 seconds]
<nannes> rjhunter: Yes, but I have a little problem
aqabiz has joined #ruby
L8D has joined #ruby
aqabiz has quit [Max SendQ exceeded]
<nannes> I have the old-stable debian (squeeze), and ruby-bundler is not available in it
jprovazn has quit [Quit: Leaving]
sharms has quit [Ping timeout: 240 seconds]
<rjhunter> ahhh, in that case i'd suggest looking for a "backport" of ruby-bundler
phansch_ has joined #ruby
aqabiz has joined #ruby
mrnugget has quit [Ping timeout: 272 seconds]
aqabiz has quit [Max SendQ exceeded]
joaoh82 has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
<nannes> rjhunter: I've already tried, it's not even available in the backports :((
sec^nd has quit [Remote host closed the connection]
zipper has joined #ruby
stryek has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
phansch has quit [Ping timeout: 245 seconds]
aqabiz has joined #ruby
sec^nd has joined #ruby
jerius has joined #ruby
<pengunix> rbenv?
nowthatsamatt has joined #ruby
Virtualize has joined #ruby
sharms has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<rjhunter> Can you run another server with a more up-to-date OS? It's 2014 -- you can spin up new machines in the cloud for nothing (or next to nothing) with Amazon or Heroku etc
<rjhunter> in fact, I notice that the app you're trying to install has instructions for deploying to Heroku
wildroman2 has joined #ruby
<nannes> I've sent an email to my provider, I'm still waiting for their reply
<nannes> To change the operating system.
Albymig has joined #ruby
<rjhunter> that's what's great about the cloud -- no sending email, just click the "new server" button and choose the OS you want
aqabiz has quit [Client Quit]
dapz has quit [Quit: Textual IRC Client: www.textualapp.com]
<WJW> cloudwise yes, I use Digital Ocean.
<WJW> $60/yr.
dapz has joined #ruby
arturaz has joined #ruby
psyl0n has quit [Remote host closed the connection]
<Takumo> Quick question about Nokogiri XML Builder, how do you create a tag wihich has a hyphen `-` in the name ¿
psyl0n has joined #ruby
<rjhunter> several big cloud providers have a free tier which might be sufficient if you're not doing anything too heavy
<WJW> pengunix, rbenv is one of the tools that helps with installing whatever versions of Ruby interpreters you need.
<nannes> rjhunter: I actually have a cloud, but that's particular
<nannes> Usually, with KVM it works like you've just described
<pengunix> Yes, I mean this related to the problem that someone in irc had the wrong ruby version.
<WJW> pengunix, do you want to try programming in Ruby, or are you installing Ruby to make some other tool work?
<nannes> But I've got an OVZ
sayan has quit [Ping timeout: 272 seconds]
jmo has quit [Ping timeout: 260 seconds]
<Albymig> !list
<pengunix> WJW: making other tools work
duracrisis has joined #ruby
<pengunix> WJW: so the point is that I can install the ruby shipped with Debian as package
<pengunix> WJW: is this a good idea?
duracrisis is now known as Guest11109
<WJW> pengunix, then you might do best to ask the experts on those other tools, to see what Ruby they need or how it is usually provided.
Guest11109 has left #ruby [#ruby]
<Jamo> ruby is one of those languages, that yoy want to have multiple version avaliable
<Albymig> !list
starship has joined #ruby
burlyscudd has joined #ruby
<Jamo> and usually you can get only old versions of ruby via your operating systems package manager
starship has quit [Changing host]
starship has joined #ruby
mlpinit has joined #ruby
<Jamo> thus installling ruby via ruby version manager (rbenv, rvm) is recommended
<Jamo> (or compiling and installing it manually)
senayar has joined #ruby
<Jamo> (you can install rbenv via homebrew)
starship has left #ruby [#ruby]
freerobby has joined #ruby
senayar has quit [Remote host closed the connection]
starship has joined #ruby
starship has quit [Changing host]
starship has joined #ruby
senayar has joined #ruby
ewnd9 has joined #ruby
phansch has joined #ruby
ambushsabre has quit [Remote host closed the connection]
<pengunix> ok, so if debian already ships with rbenv as package, I could install it, right?
<Takumo> Anyone know how to use Nokogiri::XML::Builder to make a tag with a name like <foo-bar>... ?
tt1187 has joined #ruby
ambushsabre has joined #ruby
phansch_ has quit [Ping timeout: 260 seconds]
ambushsabre has quit [Client Quit]
freerobby has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
gregoriokusowski has joined #ruby
shime has quit [Ping timeout: 245 seconds]
<nw> Takumo: xml["tag.name"] { ... }
<nw> eh
<nw> xml["tag-name"], that is
<nw> been a while since i used nokogiri, but that should work iirc
emocakes has quit [Quit: Leaving...]
Brolen has joined #ruby
<Takumo> ah so I need to pass |xml| into the block too?
<shevy> pengunix I would not trust anything debian ships
<nw> yeah, i was assuming you were doing it like this: http://nokogiri.org/Nokogiri/XML/Builder.html
<shevy> pengunix when you use those debian things, you often end up having to use things which debian modified
<nw> but instead of the dot notation, you can use brackets if you need to have something like a hyphen in your tag name
<shevy> for instance, by default the debian guys remove mkmf
<Takumo> I was doing it the second way, without passing anything as I don't require the scope nw , just need to generate the exact same XML every time
<nw> Takumo: ah, of course
<pengunix> right
<nw> yeah, i don't know if there's a way to do it without passing |xml|
<pengunix> anyone here with some capistrano experience, specifically version 3?
<dagobah> Does ruby treat the '_' variable in any special way, e.g in terms of memory.
<pengunix> I know there is #capistrano, but it is dead.
shredding has quit [Client Quit]
jprovazn has joined #ruby
bmaland has joined #ruby
jimmyy has quit []
shredding has joined #ruby
sambao21 has joined #ruby
jrd00 is now known as jrd0
<rjhunter> nw: interestingly, the [] method is documented as being for namespaces (but I'm pretty sure it happens to work for tag names anyway)
jrd0 is now known as jrd00
jrd00 is now known as jrd0
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<nannes> guys, what does actually happen when I run "bundle install"? Does it read the necessary packages from a particular file in the actual folder and install them, or... anything else?
<rjhunter> pengunix: i haven't used capistrano for a while, but i'm quite familiar with the project
spider-mario has joined #ruby
<pengunix> rjhunter: ok, so I just found out that capistrano v3 only supports git pull
<pengunix> rjhunter: earilier capistranos were able to create a tar.gz and upload it using sftp.
<pengunix> *earlier
spider-mario has quit [Read error: Connection reset by peer]
<pengunix> rjhunter: all this is not possible anymore with cap v3
<rjhunter> nannes: it reads dependencies from the file called `Gemfile`, contacts the Rubygems server to figure out which versions to install, then installs them
<nannes> great
<nannes> just a problem
lowski has quit [Quit: Textual IRC Client: www.textualapp.com]
<nannes> It's working, but...
Albymig has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
spider-mario has joined #ruby
<nannes> The bundler I've installed is for ruby 1.8 (indeed it's located now in /var/lib/gems/1.8/gems/bundler-1.5.1/bin/bundle)
thumpba has joined #ruby
<nannes> and indeed I got an error after fetching all the packages... do you think it's possible to fetch gems only for ruby1.9?
doodlehaus has joined #ruby
meatherly has joined #ruby
jedimind has joined #ruby
r0bby_ has quit [Excess Flood]
<rjhunter> nannes: bundler will install the gems for the ruby you run it with
r0bby_ has joined #ruby
<rjhunter> nannes: if you run bundler with Ruby 3.5 on Windows, you'll get the dependencies for Ruby 3.5 on Windows
iamjarvo has joined #ruby
starship has quit [Quit: WeeChat 0.4.3-dev]
<pengunix> rjhunter: ?
thumpba has quit [Ping timeout: 260 seconds]
fire has joined #ruby
ganesh has joined #ruby
<WJW> Duplicate channels for the same purpose, so far as I can tell: #ruby and #ruby-lang.
sailias has joined #ruby
Landshark753 has joined #ruby
<WJW> This is nuts.
motto has joined #ruby
nemesit|znc has quit [Ping timeout: 245 seconds]
<rjhunter> I thought #ruby-lang was for developing the ruby language itself
<YOURBESTFRIEND> #ruby-lang is for the language itself and this one is about the interpreter
jmo has joined #ruby
<YOURBESTFRIEND> just kidding
<YOURBESTFRIEND> they do the same thing
<nannes> rjhunter: yeah, but actally I have both versions installed (1.8 and 1.9)
<nannes> And I cannot remove 1.8, cause it's a dependance for 1.9
<WJW> I asked over there, and someone says they are run by different groups.
<nannes> Can't tell you why, but that's it
huttan has quit [Read error: Connection reset by peer]
<rjhunter> nannes: right, but when you run `bundler`, the line `/usr/bin/env ruby` runs whichever ruby version is called "ruby" in your PATH
huttan has joined #ruby
spondbob has joined #ruby
<nannes> And since the "bundle" gem is under the folder 1.8 ... I had that doubt
<nannes> this is the error http://imagebin.org/284844
mary5030 has joined #ruby
<apeiros> #ruby-lang is about the programming language, #ruby is about the gemstones. ye'r all doin it wrong!
jedimind has quit [Quit: Textual IRC Client: www.textualapp.com]
m8 has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
<rjhunter> apeiros: :-)
nemesit|znc has joined #ruby
OdNairy has joined #ruby
<WJW> GemStone is a DBMS.
wmoxam_ has quit [Quit: leaving]
<nannes> rjhunter: oh I forgot to tell you that It was a mistake to link "bundler", indeed now I linked "bundle" that is a different executable, and the command at least started his job
wmoxam has joined #ruby
wmoxam has quit [Changing host]
wmoxam has joined #ruby
B064F377 has quit [Ping timeout: 245 seconds]
<rjhunter> nannes: oh yeah, sorry, the executable is called "bundle", the library is called "bundler"
asobrasil has joined #ruby
B064F377 has joined #ruby
sethen has joined #ruby
<nannes> ok, and so, this is the error I got http://imagebin.org/284844
jmo has quit [Ping timeout: 240 seconds]
xjiujiu has quit [Ping timeout: 272 seconds]
phansch_ has joined #ruby
clamstar has joined #ruby
<rjhunter> pengunix: You're right, Capistrano 3 always deploys by executing commands on servers (although the specific commands can be mapped)
<pengunix> rjhunter: [...] (although the specific commands can be mapped)
<pengunix> rjhunter: so I can also use sftp using some remapping?
danshultz has joined #ruby
mneorr has quit [Ping timeout: 265 seconds]
l0gicpath has joined #ruby
tannerburson has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
samsonasu has joined #ruby
samsonasu has quit [Client Quit]
_HolyCow1 has joined #ruby
phansch has quit [Ping timeout: 272 seconds]
<rjhunter> pengunix: capistrano's "git" scm (the default) will execute commands like `git clone foo`. You can map the git command to, say, `sudo my-other-git` and the result will be `sudo my-other-git clone foo`
B064F377 has quit [Ping timeout: 245 seconds]
<rjhunter> pengunix: capistrano no longer deals with sftp or scp or anything other than running commands through ssh (and locally)
Landshark753 has quit [Ping timeout: 240 seconds]
B064F377 has joined #ruby
nateberkopec has joined #ruby
_HolyCow has quit [Ping timeout: 240 seconds]
l0gicpath has left #ruby [#ruby]
larissa has quit [Quit: Leaving]
meatherly has quit [Read error: Connection reset by peer]
<rjhunter> pengunix: you can use SSHKit to copy thing up if you want. Capistrano uses SSHKit to run commands, so they work well together.
meatherly has joined #ruby
samsonasu has joined #ruby
<pengunix> rjhunter: So I want to let it create a tar.gz, upload it using SFTP and extracting it on the target, the symlink stuff can stay the same afterwards.
terrellt has quit [Ping timeout: 260 seconds]
devdazed has joined #ruby
<rjhunter> pengunix: that sounds like a different "scm" for capistrano
wildroman2 has quit [Remote host closed the connection]
Landshark753 has joined #ruby
AlSquire has joined #ruby
l0gicpath has joined #ruby
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby
ehc has joined #ruby
B064F377 has quit [Ping timeout: 240 seconds]
h_kon has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
B064F377 has joined #ruby
ahawkins has quit [Quit: leaving]
jamesaxl has joined #ruby
terrellt has joined #ruby
h_kon has joined #ruby
popl has quit [Ping timeout: 272 seconds]
<rjhunter> pengunix: can I ask why you want a tar.gz involved at all?
Landshark753 has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
snath has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
centipedefarmer has joined #ruby
phansch_ has quit [Ping timeout: 252 seconds]
shredding has joined #ruby
<pengunix> rjhunter: yes, currently it is requires to have a repository server and which allows inbound connections for git pull
Landshark753 has joined #ruby
<pengunix> rjhunter: in many deployment scenarios the customer only got a simple vserver and there is no repository server which can be connected to.
momomomomo has quit [Quit: momomomomo]
Landshark753 has quit [Max SendQ exceeded]
<pengunix> rjhunter: so instead of git pull I want rather a git push from the deployment system or, what I find even more elegant, a simple sftp upload using a tar.gz
<pengunix> rjhunter: because git wasn't really made for deployment stuff
<pengunix> rjhunter: jenkins calls capistrano at the end as deployment job
vpretzel has left #ruby [#ruby]
<pengunix> rjhunter: the whole stuff resides already in a folder then
Landshark753 has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
dagnachew has joined #ruby
dagnachew has quit [Max SendQ exceeded]
arturaz has quit [Ping timeout: 240 seconds]
Landshark753 has quit [Max SendQ exceeded]
dagnachew has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
enebo has joined #ruby
Landshark753 has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Landshark753 has quit [Max SendQ exceeded]
kalamazoo has joined #ruby
jameshyde has joined #ruby
centipedefarmer has joined #ruby
lyanchih has joined #ruby
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
h_kon has quit [Remote host closed the connection]
mechanicles_ has joined #ruby
Landshark753 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rjhunter> pengunix: I don't think capistrano v3 will do what you directly
Landshark753 has quit [Max SendQ exceeded]
<rjhunter> *what you want
<rjhunter> you could use ssh port forwarding to let the target hosts access the repository via the deploy host
m8 has joined #ruby
iamjarvo has quit [Remote host closed the connection]
Landshark753 has joined #ruby
tt1187 has quit [Remote host closed the connection]
motto has quit [Ping timeout: 245 seconds]
tt1187 has joined #ruby
iamjarvo has joined #ruby
<rjhunter> or you could use a couple of Before hooks to create/upload/extract a git tarball, and leave `git pull` to point at the results
eregon_ is now known as eregon
Chillectual has joined #ruby
<rjhunter> someone on the mailing list might have a better suggestion to achieve what you want
blandflakes has joined #ruby
skulker has joined #ruby
jameshyde has quit [Ping timeout: 260 seconds]
LinearInterpol has quit [Disconnected by services]
Chillectual is now known as LinearInterpol
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
skulker has quit [Remote host closed the connection]
<pengunix> rjhunter: yes, this 'upload the git repository to target and then let capistrano pull from it' approach is inefficient.
jedimind has joined #ruby
<pengunix> rjhunter: and there aren't tasks anymore but just hooks, right?
Chillectual has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
lyanchih has quit [Ping timeout: 240 seconds]
LinearInterpol has quit [Disconnected by services]
Chillectual is now known as LinearInterpol
B064F377 has quit [Ping timeout: 252 seconds]
Landshark753 has quit [Ping timeout: 240 seconds]
B064F377 has joined #ruby
<rjhunter> pengunix: my understanding is that it's all rake tasks now, so all the regular rake rules apply
wildroman2 has joined #ruby
iamjarvo_ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<pengunix> rjhunter: is there somewhere a table or diagram for capistrano v3 where all tasks are listed / described?
fire has quit [Quit: WeeChat 0.4.1]
wildroman2 has joined #ruby
<rjhunter> pengunix: rake -T
coffeina has joined #ruby
<rjhunter> pengunix: or rather, cap -T
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
kcombs has joined #ruby
axl_ has joined #ruby
momomomomo has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
cow_ has quit [Remote host closed the connection]
Landshark753 has joined #ruby
cow_ has joined #ruby
<pengunix> rjhunter: Can I override an existing task?
<rjhunter> pengunix: yup, all the rake rules apply
RaCx has joined #ruby
grzywacz has joined #ruby
cow__ has joined #ruby
<pengunix> rjhunter: ok, can I also inherit from an existing task so I don't have to copy everything?
<maasha> Can someone please explain to me why I get a "stack level too deep" error from this: https://gist.github.com/maasha/974ac9902b648295da46
<apeiros> maasha: yeilder vs. yielder
<apeiros> doubt that's the source of a stack level too deep, but it's certainly an issue
<rjhunter> pengunix: yup. standard rake rules apply. re-defining appends by default.
cow_ has quit [Ping timeout: 240 seconds]
Landshark753 has quit [Ping timeout: 240 seconds]
joaoh82 has joined #ruby
<maasha> apeiros: ah, typo :o( - but the error persists?
<apeiros> maasha: you know, pasting the exception would help. with corresponding lines…
<maasha> apeiros: I did - its in the gist comment field
cow__ has quit [Ping timeout: 265 seconds]
spondbob has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mosez has quit [Quit: Switching back to real life]
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
ambushsabre has joined #ruby
snapr has joined #ruby
Sp4rKy has quit [Ping timeout: 245 seconds]
kevind has joined #ruby
workmad3 has joined #ruby
mklappstuhl has joined #ruby
<pengunix> rjhunter: ok, so the only thing I want to change is that git pull thing
joaoh82 has quit [Ping timeout: 245 seconds]
<pengunix> rjhunter: git:check already does pulling
<pengunix> rjhunter: so I have to change it
Sp4rKy has joined #ruby
mengu has quit [Remote host closed the connection]
lukec has joined #ruby
fantazo has joined #ruby
intuxicated has quit [Ping timeout: 240 seconds]
<nannes> UFFFFFFFFFFFF
<nannes> WHY
<nannes> rbenv :command not found? :( :(
derf-- is now known as derf_
derf_ is now known as derf-
Landshark753 has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
<rjhunter> maasha: stack level too deep normally means you're calling X from within X, forever.
<rjhunter> maasha: If it's not obvious what X is in your case, you can add a couple of `puts` lines to figure out where
joaosa has quit [Ping timeout: 252 seconds]
<rjhunter> nannes: are you running rbenv yourself?
<nannes> ye, triyng to
<WJW> nannes, again, suggest you consult the author of the tool you are trying to run.
mklappstuhl has quit [Ping timeout: 272 seconds]
B064F377 has quit [Ping timeout: 272 seconds]
rehat has joined #ruby
wald0 has joined #ruby
B064F377 has joined #ruby
tlmq has joined #ruby
<wald0> i see in google multiple gems for FFMPEG, which is the best one ? (easier, more maintained, etc)
<rjhunter> nannes: or just follow the instructions to deploy on heroku
<nannes> WJW: Don't worry, while I wait a reply I wanna try this one
_HolyCow1 is now known as _HolyCow
<nannes> upp
<nannes> Ehm, I just need to set ruby 1.9.1 as default
<nannes> cause right now the default one is 1.8
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tagrudev has quit [Read error: Connection reset by peer]
<nannes> I need help just in this
<alex88> nannes: for what?
sambao21 has joined #ruby
<alex88> changing ruby version on heroku?
<nannes> nope
<nannes> changing ruby version on my normal debian box
<alex88> you use rvm/rbenv?
<rjhunter> nannes: are both your rubies still installed from debian packages?
<nannes> if I actually try to uninstall 1.8, even 1.9.1 gets uninstalled. Probably it depends on the former
<nannes> rjhunter: yes, both rubies, yes
<rjhunter> nannes: debian manages defaults using its own system (called "alternatives")
<nannes> alex88: When I try rbenv to set it, I get a Command Not Found :/ that's he problem :/
<rjhunter> nannes: rbenv is a different way of managing rubies
<rjhunter> nannes: it's a separate download and install.
Landshark753 has quit [Ping timeout: 240 seconds]
LinearInterpol has quit [Ping timeout: 245 seconds]
<maasha> rjhunter: right
<WJW> Can't mix & match rvm & rbenv.
noop has quit [Ping timeout: 260 seconds]
ambushsabre has quit [Quit: rip]
smathieu has joined #ruby
<rjhunter> nannes: you can manage your rubies with any *one* of the following methods: debian packages / rvm / rbenv /chruby / manual management
ambushsabre has joined #ruby
ankov has joined #ruby
<nannes> okay
<WJW> If you have had rvm and are getting rid of it, remember to rip it out of your .bashrc
totalmajor has joined #ruby
Landshark753 has joined #ruby
burlyscudd has joined #ruby
tlmq has quit [Quit: Textual IRC Client: www.textualapp.com]
asteve has joined #ruby
fijimunkii has joined #ruby
<maasha> rjhunter: apeiros I suppose the answer is that the Enumerator is modified while being iterated leading to an endless loop
jmo has joined #ruby
_maes_ has joined #ruby
shredding has quit [Quit: shredding]
mneorr has joined #ruby
ankov has quit [Remote host closed the connection]
Landshark753 has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has joined #ruby
jetblack has joined #ruby
fedesilva has joined #ruby
B064F377 has quit [Ping timeout: 252 seconds]
jmo has quit [Ping timeout: 260 seconds]
Megtastique has joined #ruby
michael_lee has joined #ruby
mehlah has joined #ruby
figgleberry has joined #ruby
Landshark753 has joined #ruby
B064F377 has joined #ruby
ankov has joined #ruby
Landshark753 has quit [Read error: Connection reset by peer]
ankov has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
Landshark753 has joined #ruby
maasha has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<shevy> nannes real men pick the manual way
zxd has quit [Ping timeout: 272 seconds]
ankov has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
ankov has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
pablovilas has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
<rjhunter> shevy: as true as that might be, nannes isn't trying to develop in ruby. he or she is trying to run an application that happens to be written in ruby.
<shevy> yeah, he fell into the debian trap
CalimeroTeknik_ is now known as CalimeroTeknik
<shevy> people should really use distributions where you can use any version you'd like to
<shevy> like NixOS
<shevy> or gobolinux :>
zxd has joined #ruby
tfitts has quit [Remote host closed the connection]
tfitts has joined #ruby
joaoh82 has joined #ruby
deception has joined #ruby
lsmola_ has quit [Ping timeout: 246 seconds]
B064F377 has quit [Ping timeout: 272 seconds]
B064F377 has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ankov has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mojjojo has joined #ruby
LinearInterpol has joined #ruby
B064F377 has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
B064F377 has joined #ruby
Guest57640 is now known as banghouse
jamesaxl has quit [Ping timeout: 252 seconds]
thiago__ has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Write error: Connection reset by peer]
iamjarvo has joined #ruby
Jake232 has joined #ruby
fuhgeddaboudit has joined #ruby
bean has joined #ruby
digital-ghost has joined #ruby
mojjojo has quit [Quit: mojjojo]
jamesaanderson has joined #ruby
bentonrr has joined #ruby
jameshyde has joined #ruby
aspires has joined #ruby
michael_lee has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
RoryHughes has quit []
drago777 has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
hl has quit [Ping timeout: 246 seconds]
snapr has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Go on, try it!]
burlyscudd has quit [Quit: Leaving.]
psyprus has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
psyprus has joined #ruby
grzywacz has quit [Quit: :wq]
jameshyde has quit [Ping timeout: 272 seconds]
mansi_ has joined #ruby
drago777 has joined #ruby
drumusician has joined #ruby
w_alexus has joined #ruby
Virtualize has quit [Quit: Leaving...]
totalmajor has quit [Ping timeout: 272 seconds]
monkegjinni has quit [Remote host closed the connection]
thiago__ has joined #ruby
threesome has quit [Ping timeout: 272 seconds]
phansch has joined #ruby
razibog has quit [Remote host closed the connection]
cameronbarton has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
zaychenok has joined #ruby
jidar has joined #ruby
`MArceLL` has joined #ruby
jprovazn has quit [Quit: Odcházím]
burlyscudd has joined #ruby
interactionjaxsn has joined #ruby
jetblack has quit [Quit: leaving]
B064F377 has quit [Ping timeout: 245 seconds]
snath has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Remote host closed the connection]
B064F377 has joined #ruby
iamjarvo has joined #ruby
baroquebobcat has joined #ruby
Landshark753 has quit [Ping timeout: 240 seconds]
ace_striker has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
skulker has joined #ruby
Deejay_ has joined #ruby
drago777 has joined #ruby
smathieu has quit [Remote host closed the connection]
Landshark753 has joined #ruby
smathieu has joined #ruby
freerobby has quit [Quit: Leaving.]
Landshark753 has quit [Max SendQ exceeded]
B064F377 has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
kindjal has joined #ruby
Landshark753 has joined #ruby
danshult_ has joined #ruby
admin0 has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
Brolen has quit [Remote host closed the connection]
cow_ has joined #ruby
Landshark753 has joined #ruby
jprovazn has joined #ruby
mechanicles_ has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 240 seconds]
froy has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
cow_ has quit [Ping timeout: 252 seconds]
Landshark753 has quit [Ping timeout: 240 seconds]
B064F377 has joined #ruby
mechanicles_ has joined #ruby
deception has quit [Ping timeout: 240 seconds]
Virtualize has joined #ruby
Landshark753 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedesilv_ has joined #ruby
rjhunter has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
fedesilva has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
smathieu has joined #ruby
RaCx_ has joined #ruby
senj has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
RaCx_ is now known as RaCx
B064F377 has quit [Ping timeout: 260 seconds]
B064F377 has joined #ruby
mojjojo has joined #ruby
Landshark753 has quit [Ping timeout: 240 seconds]
danshult_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
mojjojo has quit [Client Quit]
maletor has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
yacks has quit [Quit: Leaving]
mojjojo has joined #ruby
deception has joined #ruby
pengunix has quit [Ping timeout: 252 seconds]
carlyle has joined #ruby
cameronbarton has joined #ruby
drago777 has joined #ruby
roolo has quit [Remote host closed the connection]
Deejay_ has quit [Quit: Textual IRC Client: www.textualapp.com]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
Diranged has joined #ruby
Landshark753 has joined #ruby
mojjojo has quit [Client Quit]
Landshark753 has quit [Max SendQ exceeded]
<Diranged> Hey anyone have any tips for making a 'rake spec' command that only runs rake-spec on files inside of directories that have been modified (as a git pre-commit check)
wildroman2 has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
Landshark753 has joined #ruby
<Diranged> ie .. i touched /modules/foo/manifest/mypuppetclass.pp … so run the spec tests in /modules/foo/**/*_spec.rb
Landshark753 has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 265 seconds]
Landshark753 has joined #ruby
senj has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
sec^nd has quit [Ping timeout: 240 seconds]
tannerburson has quit [Quit: tannerburson]
jamesaanderson has joined #ruby
snath has quit [Quit: Leaving]
jamesaanderson has quit [Max SendQ exceeded]
snath has joined #ruby
Hanmac1 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
mojjojo has quit [Client Quit]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
mityaz has quit [Quit: See ya!]
burlyscudd has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
Hanmac has quit [Ping timeout: 265 seconds]
B064F377 has quit [Ping timeout: 245 seconds]
drago777 has quit [Ping timeout: 240 seconds]
jamesaanderson has joined #ruby
Virtualize has quit [Quit: Leaving...]
kalamazoo has quit [Remote host closed the connection]
larissa has joined #ruby
skulker has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
Virtualize has joined #ruby
drago777 has joined #ruby
lsmola_ has joined #ruby
kaldreno_ has joined #ruby
ambushsabre has quit [Quit: rip]
ffranz has quit [Quit: Leaving]
threesome has joined #ruby
derebos has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
krz has quit [Ping timeout: 247 seconds]
fuhgeddaboudit has joined #ruby
nemesit|znc has quit [Ping timeout: 246 seconds]
RaCx_ has joined #ruby
ambushsabre has joined #ruby
interactionjaxsn has joined #ruby
RaCx_ has quit [Client Quit]
interact_ has joined #ruby
motto has joined #ruby
RaCx_ has joined #ruby
krz has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
RaCx_ is now known as RaCx
maletor has quit [Quit: Computer has gone to sleep.]
Coolhand has joined #ruby
m8 has quit [Ping timeout: 272 seconds]
r0bby_ has quit [Excess Flood]
dann_ has joined #ruby
huttan has quit [Read error: Connection reset by peer]
huttan has joined #ruby
r0bby_ has joined #ruby
ankov has quit [Remote host closed the connection]
RoryHughes has joined #ruby
interactionjaxsn has quit [Ping timeout: 245 seconds]
FooBarWidget has joined #ruby
<FooBarWidget> I'm trying to debug some segmentation faults in the ruby interpreter
Tamal has joined #ruby
timonv has quit [Remote host closed the connection]
<FooBarWidget> it seems to crash on totally innocent code
Coolhand has quit [Client Quit]
<FooBarWidget> for example it seems to crash in 'CFUNC :loop'
kalamazoo has joined #ruby
niharvey has joined #ruby
<FooBarWidget> there is no evidence so far that native extensions are the culprit. the segmentation fault backtraces never show any native extensions
<FooBarWidget> how do I find out why my ruby interpreter segfaults?
burlyscudd has quit [Quit: Leaving.]
RoryHughes has quit [Client Quit]
hl has joined #ruby
mark_locklear has joined #ruby
<Morrolan> FooBarWidget: Might want to give #ruby-lang a shot, too. I *think* there you'll find more people who are familiar with the inner workings of Ruby.
<Morrolan> Worst case, try the mailing list.
derebos has joined #ruby
crashx has quit [Quit: crashx]
kevind_ has joined #ruby
huttan has quit [Ping timeout: 245 seconds]
Sthebig has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Megtastique has quit []
ffranz has joined #ruby
law has joined #ruby
huttan has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
kevind has quit [Ping timeout: 245 seconds]
kevind_ is now known as kevind
sambao21 has joined #ruby
pskosinski has joined #ruby
zeade has joined #ruby
mneorr has joined #ruby
flubba__ has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
flubba has joined #ruby
ehc has quit [Quit: ehc]
sharms has joined #ruby
wildroman2 has joined #ruby
Kar- has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
<dann_> what's the easy way to turn "example" into "e x a m p l e"
mbytes has joined #ruby
maletor has joined #ruby
drago777 has joined #ruby
<FooBarWidget> example".split("").join(" ")
niharvey has quit [Ping timeout: 252 seconds]
<Hanmac1> dann_: "example".chars.join(' ') #=> "e x a m p l e"
burlyscudd has joined #ruby
<DouweM> Hanmac1: NoMethodError: undefined method `join' for #<Enumerator: "example":chars>
<Hanmac1> DouweM: depends on the ruby version
<Hanmac1> yours it to old ;P
Hanmac1 is now known as Hanmac
<DouweM> fair point :P
Virtualize has quit [Quit: Leaving...]
<apeiros> "example".gsub(/.(?!\z)/, '\0 ')
* Morrolan stabs apeiros
mansi_ has quit [Read error: Connection reset by peer]
troessner has quit [Read error: Connection reset by peer]
mansi has joined #ruby
troyready has joined #ruby
dagobah has quit [Remote host closed the connection]
maletor has quit [Client Quit]
maletor has joined #ruby
Megtastique has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
dann_ has quit [Ping timeout: 272 seconds]
* apeiros dies a horribly painful and slow death
<apeiros> whyyyyyyyy?!?
mklappstuhl has joined #ruby
* waxjar screams dramatically
freezey has quit [Remote host closed the connection]
<Hanmac> "US the biggest threat to world peace in 2013 – poll" http://rt.com/news/us-biggest-threat-peace-079/ xD
* Morrolan puts a bandaid on apeiros' wound.
<Morrolan> But don't you do such a thing again. :<
bentonrr has quit [Read error: Operation timed out]
kung has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
cameronbarton has quit [Quit: cameronbarton]
<apeiros> murdered by a fellow countryman…
bentonrr has joined #ruby
<apeiros> and the corpse mocked by a bandaid
kung has joined #ruby
<apeiros> can it get worse?
* Morrolan grins
dogweather has quit [Remote host closed the connection]
danshultz has quit [Read error: Connection reset by peer]
kalamazoo has quit [Remote host closed the connection]
dogweather has joined #ruby
mjburgess has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
drago777 has joined #ruby
croaky has joined #ruby
g0bl1n has joined #ruby
Ven-2 has joined #ruby
<Ven-2> Hello
psyl0n has quit [Remote host closed the connection]
EngierkO has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
sharms has quit [Ping timeout: 240 seconds]
<apeiros> yes, yes it can get worse! my solution is even slower :(
Gonzih has quit [Ping timeout: 272 seconds]
dogweather has quit [Ping timeout: 240 seconds]
<Ven-2> How i can found in Array n=['a','j','ja','o'] is starting of napis='jaki' . function for found index in n Array '2' (if i search better in length)
Virtualize has joined #ruby
dann_ has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
thumpba has joined #ruby
sharms has joined #ruby
wallerdev has joined #ruby
gregoriokusowski has joined #ruby
kalamazoo has joined #ruby
dblessing has joined #ruby
RaCx has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
<dann_> browser crashed
RaCx has quit [Client Quit]
drumusician has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
<dann_> "example".chars is an Enumerable, so you have to convert it to an array before using join(' ')
<apeiros> dann_: only in "old" rubies ;-)
krz has joined #ruby
<dann_> like so: "example".chars.to_a.join(' ') #=> "e x a m p l e"
<dann_> oh yeah
<DouweM> When did that change?
maletor has joined #ruby
<dann_> I'm using 1.9.3
<apeiros> I think in 2.0
andrewhl has joined #ruby
<dann_> dang
<apeiros> might be it only changed in 2.1, not sure
jmo has joined #ruby
<dann_> do any of you know if gosu works on 2.0?
<DouweM> apeiros: where's that defined? Can't find it on the Enumerator or Enumerable docs pages
mneorr has quit [Remote host closed the connection]
<apeiros> DouweM: String#chars?
Eiam has joined #ruby
<DouweM> ooh
<DouweM> Returns an array now rather than an enumeator
<apeiros> ok, 2.0 already returns an Array for String#chars
mneorr has joined #ruby
<DouweM> I thought #join would be on enumerator
<apeiros> #each_char still returns an enumerator
<DouweM> Right. Makes more sense
<dann_> what's the point of enumerators anyway
<apeiros> DouweM: whaaat? noooo, that'd make no sense :)
<dann_> enlighten me
<DouweM> apeiros: I'm saying the >=2.0 situation makes sense ;)
bentonrr has quit [Remote host closed the connection]
<DouweM> apeiros: with #each_char returning an enumerator and #chars an array
<apeiros> ah
<apeiros> yeah
ephemerian has quit [Quit: Leaving.]
ace_striker has quit [Ping timeout: 272 seconds]
Kar- has quit [Ping timeout: 265 seconds]
niharvey has joined #ruby
jmo has quit [Ping timeout: 240 seconds]
<dann_> looking into the logs of what I missed, «apeiros: "example".gsub(/.(?!\z)/, '\0 ') »
jonjames has quit [Quit: Leaving]
<dann_> using that
ephemerian has joined #ruby
law has quit [Quit: leaving]
geggam has joined #ruby
Soda has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 241 seconds]
cameronbarton has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
subbyyy has joined #ruby
rjhunter has joined #ruby
totalmajor has joined #ruby
h0rrorvacui has joined #ruby
mehlah has quit [Quit: Leaving...]
ffranz has quit [Quit: Leaving]
Virtualize has quit [Quit: Leaving...]
drago777 has joined #ruby
mbytes has quit [Remote host closed the connection]
carraroj has joined #ruby
krz has quit [Ping timeout: 272 seconds]
mbytes has joined #ruby
RaCx has joined #ruby
Kar- has joined #ruby
nobitanobi has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
sarcher has joined #ruby
niharvey has quit [Ping timeout: 246 seconds]
krz has joined #ruby
senayar has quit []
RaCx has quit [Client Quit]
niharvey has joined #ruby
<Hanmac> Ven-2: napis='jaki';n=['a','j','ja','o'];n.max_by{|c| napis[c].to_s.length} #=> "ja"
mereghost has joined #ruby
<apeiros> dann_: that's actually slower than .split("").join(" ")
flubba has quit [Remote host closed the connection]
<Hanmac> gosu? ah my old friend ... i dropped it after i found a better gl lib with more functions
<apeiros> Hanmac: small bugs - you don't test for "starts with", only "contains", and he said "index"
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ffranz has joined #ruby
ebobby has joined #ruby
mansi has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
mansi has joined #ruby
rickruby has joined #ruby
DrShoggoth has quit [Quit: Leaving]
brennanMKE has joined #ruby
w4pm has joined #ruby
timonv has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
<dann_> apeiros: :(
psyl0n has joined #ruby
dr_bob has quit [Quit: Leaving.]
sharms has joined #ruby
Sthebig has joined #ruby
lukec has quit [Quit: lukec]
Sthebig has quit [Changing host]
Sthebig has joined #ruby
jhaals has joined #ruby
drago777 has joined #ruby
jameshyde has joined #ruby
_bart has joined #ruby
totalmajor has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
brennanM_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
totalmajor has joined #ruby
onewheelskyward_ is now known as onewheelskyward
sambao21 has quit [Quit: Computer has gone to sleep.]
totalmajor has quit [Read error: Connection reset by peer]
brennanMKE has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
totalmajor has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
Megtastique has quit []
Kar- has quit [Ping timeout: 260 seconds]
dapz has quit [Ping timeout: 245 seconds]
michael_lee has quit [Quit: Ex-Chat]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
tannerburson has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
jameshyde has quit [Ping timeout: 272 seconds]
zxd has quit [Ping timeout: 272 seconds]
sambao21 has quit [Client Quit]
sharms has joined #ruby
Virtualize has joined #ruby
brennanM_ has quit [Ping timeout: 246 seconds]
carlyle has quit [Ping timeout: 246 seconds]
drago777 has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
rehat has quit [Remote host closed the connection]
<Ven-2> Hanmac, thanks
phus1on_ is now known as phus1on
<Ven-2> Hanmac, tell me another problem
Landshark753 has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
<Ven-2> Hanmac, I have string = 'jakis text ten test is good' How optimal cuting them to a minimal substring?
smathieu has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
carraroj has quit [Quit: Konversation terminated!]
<Ven-2> 'jakis text ten test is good' = 'ja-k-is- -te-xt- -te-n- ...
smathieu has joined #ruby
mehlah has joined #ruby
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
ce_afk is now known as cescalante
Chillectual has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
dagnachew has quit [Quit: Leaving]
guinslym has joined #ruby
carraroj has joined #ruby
LinearInterpol has quit [Disconnected by services]
Chillectual is now known as LinearInterpol
mjburgess has joined #ruby
<Hanmac> Ven-2: 'jakistexttentestisgood'.scan(Regexp.union(%w{ja k is te xt n st g o d})) #=> ["ja", "k", "is", "te", "xt", "te", "n", "te", "st", "is", "g", "o", "o", "d"]
RaCx has joined #ruby
<Ven-2> Not exactly, I no have any substring
ace_striker has quit [Ping timeout: 272 seconds]
<Ven-2> I need optimal
Advocation has joined #ruby
<Ven-2> array of it
smathieu has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
noop has joined #ruby
<terrellt> "Optimal"?
Kar- has joined #ruby
dogweather has joined #ruby
<Ven-2> Hanmac, I need all combination, all posibility of cut them (recurection?)
iamjarvo has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 272 seconds]
<Ven-2> optimal for length (minimal element of substring)
carraroj has quit [Client Quit]
<Ven-2> terrellt, yes optimal
g0bl1n has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
<Ven-2> how cut string for every possibility of substring
TheHodge has left #ruby [#ruby]
interact_ has quit [Remote host closed the connection]
Landshark753 has joined #ruby
mneorr has joined #ruby
tylersmith has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
interactionjaxsn has joined #ruby
smathieu has joined #ruby
<dann_> which is faster: 640/32 or 360/18
maletor has joined #ruby
Landshark753 has joined #ruby
Mars has joined #ruby
<dann_> i'm talking about the division, yes
<Hanmac> Ven-2: try this: s='jakistexttentestisgood';s.each_char.with_index.map {|c,i| [s[0..i],s[i+1..-1]] }
Landshark753 has quit [Max SendQ exceeded]
Mars is now known as Guest23844
drago777 has quit [Ping timeout: 240 seconds]
<IceDragon> dann_: 360/18 possibly
dogweather has quit [Client Quit]
<IceDragon> less bits to process
flubba has joined #ruby
<Hanmac> Ven-2 ok flat_map is better
Landshark753 has joined #ruby
bean has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
lukec has joined #ruby
bentonrr has joined #ruby
Kar- has quit [Ping timeout: 240 seconds]
ebobby has quit [Ping timeout: 246 seconds]
ebobby has joined #ruby
<Ven-2> Hanmac, it's cut but not optimal not found 'te' (twice) 'is'=2 ....
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
<cschneid> is 2.1.0 still the current released version, a coworker claims he has 2.1.1 installed - but I don't see that on the internets anywhere.
drago777 has joined #ruby
browndawg1 has left #ruby [#ruby]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<cschneid> or did he end up w/ a prereleased verison
Landshark753 has joined #ruby
<guinslym> WJW: thks! I had to add "puts || print || p" to make it work.
<Ven-2> Hanmac, I send You a optimal cutting (in my opinion ;-) ) in dialog window
kalamazoo has quit [Remote host closed the connection]
<shevy> dann_ I concur with IceDragon!
Landshark753 has quit [Max SendQ exceeded]
interactionjaxsn has quit [Ping timeout: 240 seconds]
kalamazoo has joined #ruby
<shevy> cschneid no idea, ask him to output the version
<dann_> http://puu.sh/66VYo.png everything falling into place
<shevy> cschneid as far as official releases, though, this is easy to answer
Landshark753 has joined #ruby
Landshark753 has quit [Client Quit]
<shevy> the latest ones are on ftp://ftp.ruby-lang.org/pub/ruby/2.1/ right now
<shevy> this one ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.bz2
bentonrr has quit [Remote host closed the connection]
hostess has joined #ruby
<cschneid> https://github.com/ruby/ruby/blob/ruby_2_1/version.h -- that has 2.1.1, he got ruby head somehow, or head of 2.1 branch or something
<shevy> cschneid so if he has 2.1.1 which is possible, he must have fetched it directly from source
<shevy> yeah
<cschneid> no biggie, was just wondering :)
mklappstuhl has joined #ruby
<Ven-2> Hanmac, 'jakistexttentestisgood' = 'jak-is-te-xt-te-n-te-st-is-good'
<shevy> your coworker must be as impatient as Hanmac here - Hanmac also has 2.1.1
<dann_> maybe 2.1.1 implements time travel
<shevy> I am on 1.9.3something :(
<dann_> same here shevy
<shevy> hehe
carraroj has joined #ruby
<terrellt> We just locked a project to >= 2.0.0. Just because we wanted prepend.
<Ven-2> terrellt, any idea?
<terrellt> Ven-2: I don't understand what you want, so I can't really help.
mklappstuhl has quit [Read error: No route to host]
Guest23844 has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
croaky has quit [Read error: Connection reset by peer]
FooBarWidget has left #ruby [#ruby]
stkowski_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
stkowski_ has quit [Client Quit]
kalamazoo has quit [Ping timeout: 264 seconds]
<Ven-2> terrellt, this is simple I need cut string similar this: 'jakistexttentestisgood' = 'jak-is-te-xt-te-n-te-st-is-good' optimal cut string for minimal count of elements
<terrellt> optimal cut string for minimal count of elements
<terrellt> [10:28] * Landshark753 (~textual@119.70-40-226.netnet.net) has joined #ruby
<terrellt> Bah
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<terrellt> I don't know what "optimal cut string for minimal count of elements" means.
<shevy> Ven-2 this was no explanation man ;)
<Ven-2> minimal element in output, max length of this element
<shevy> nope, it still was no explanation
* Ven-2 my english is bad ;(
<shevy> j-a-k-i-s-t-e etc...
<apeiros> Ven-2: don't say it's simple if you couldn't solve it yourself :-p
<shevy> that's minimal element and max length too
drago777 has joined #ruby
mark_locklear has quit [Remote host closed the connection]
<Ven-2> shevy, is is twice in first string
<shevy> hehe
<Ven-2> 'te' too
<shevy> te is
<shevy> actually three times
noop has quit [Ping timeout: 246 seconds]
dogweather has joined #ruby
croaky has joined #ruby
<Ven-2> apeiros, it simple to undestuud but dificult to implement. in my opinion i need search all combination.
noop has joined #ruby
r_s has joined #ruby
dann__ has joined #ruby
<terrellt> Oh, wow, that's not simple. I think I get it. You want to split a string in such a way that for every element s in the array that element appears the least number of times possible.
gja has joined #ruby
<terrellt> -Why-
<Ven-2> Please tell me HOW i can cut my string in every possible combination, and get optimal
dann__ is now known as weenle
OdNairy has joined #ruby
deception has quit [Read error: Connection reset by peer]
31NAAG89Y has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
dann_ has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
ankov has joined #ruby
<Eiam> yeah I don't understand the question
ankov has quit [Remote host closed the connection]
<Eiam> I don't see how 'jak-is-te-xt-te-n.." is an "optimal" cut of anything
_bart has quit []
<Eiam> it looks arbitrary, or like it requires understandings of phonograms or something
<weenle> requesting immediate support http://puu.sh/66X2o.png
<Ven-2> Eiam, ok, 1. I have string 2. i would like to cut him in all ways
<Eiam> "all ways"
<Eiam> Ven-2: for this given string "hello" give me an example of it being cut it "all ways"
wildroman2 has quit [Remote host closed the connection]
<Eiam> every possible permutation.
ankov has joined #ruby
gja has quit [Ping timeout: 246 seconds]
<Eiam> (that you think meets whatever your criteria is)
<Ven-2> 'hello'=optimal= 'he-l-l-o'
wildroman2 has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
<shevy> Ven-2 "abcdefh".split(//) # => ["a", "b", "c", "d", "e", "f", "h"]
<shevy> why is this "optimal"
LinearInterpol has quit [Ping timeout: 240 seconds]
<Eiam> Ven-2: how did you define that you should cut on "he" and not "ll" or "lo" ?
gja has joined #ruby
<shevy> Eiam I think he somehow counts the amount of occurance of this letter in the whole string
<Ven-2> is optimal because Your string does not contain repetitions, no substring
deception_ has joined #ruby
<shevy> his 'hello' example didn't seem to make sense though
<Eiam> Ven-2: so you are saying cut a string until you hit a repeating character, then cut again?
<Ven-2> Eiam, You example is not good
<shevy> lol
<Eiam> that doesn't make sense either because you'd see "he-l-lo"
<Eiam> Ven-2: no dude, your explanation is not very good =)
<weenle> l repeats twice in a row, so it is "cut"
joaosa has joined #ruby
<Eiam> weenle: no
Megtastique has quit [Client Quit]
<Eiam> weenle: 'jakis text ten test is good' = 'ja-k-is- -te-xt- -te-n- ...
<shevy> hehe
<Eiam> why cut on jack ?
<Eiam> ja-k
<Eiam> no repeat there
<shevy> yep, he used two different examples, with two different outputs
<weenle> hm
<Eiam> Ven-2: sit down and figure out 1) your input 2) all the possible outputs for that input 3) then ask your question
<shevy> Yes!
<shevy> Ven-2, do that ^^^
<Eiam> you are confusing and making no sense so I don't want to help you
<weenle> http://rubular.com save yourself Ven-2
<Ven-2> 'isatestornotatext' = is-ate-stornot-ate-xt'
b00stfr3ak has joined #ruby
<Ven-2> Eiam, ok, tell me what i can show all possible output
<Eiam> wtf
<Ven-2> HOW i can cut my string in every possibility substring
<Eiam> Ven-2: what is the logic that determines what the hell a substring is!
<Eiam> Ven-2: what rule dictates that you cut "isate" on "is" and "ate" ?
noop has quit [Ping timeout: 246 seconds]
<Eiam> because it looks 100% arbitrary to me.
<Ven-2> substring is= maximum of length substring
ewnd9 has quit [Ping timeout: 252 seconds]
<shevy> wat
<shevy> maximum is: 'isatestornotatext' == 'isatestornotatext'
ehc has joined #ruby
<Eiam> Ven-2: no, that makes no sense.
<Ven-2> i need cut string in minimal element , each element will be largest to posibility)
<shevy> what does this mean "largest to possibility"... what possibility
<terrellt> Ven-2: What's your native language?
bricker has joined #ruby
<Ven-2> Polish
<weenle> Ven-2: maybe what you need is simply not possible in regex
<terrellt> Any translators up in here?
falkn0r has joined #ruby
<shevy> matti speaks polish
<Eiam> Ven-2: a substring is a portion of another string. A "substring" cannot be the "maximum length substring" because then it would be "the whole string"
<shevy> matti wake up!
noop has joined #ruby
<weenle> >> 4 / 4 * 3
<eval-in> weenle => 3 (https://eval.in/85039)
<Eiam> so clearly you need a substring thats a long as it can be until it hits *something* that indicates a rule that it should make a new substring
<weenle> >> (4 / 4) * 3
<Eiam> Ven-2: so whats the rule that determines when a substring can be no longer?
<eval-in> weenle => 3 (https://eval.in/85040)
<matti> shevy: ?
<Eiam> matti: speak polish to Ven-2
<shevy> matti, Ven-2 tries to say something in english
<matti> What for?
nanoyak has joined #ruby
<Ven-2> How to divide a string optimally due to the length of the elements. Yes, to the number of elements as small as possible and at the same time to each element was the longest as possible. W jaki sposób podzielic string optymalnie ze względu na długość elementów. Tak, by ilośc elementów była jak najmniejsza i jednocześnie aby kazdy element był najdłuzszy jak to tylko jest możliwe.
<shevy> there it is
lsmola_ has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
<shevy> matti can you babelfish this to us please :>
<matti> No.
<matti> Go on Google Translate.
<Ven-2> Eiam, no whole, because number of substring is 1 not > than one
kep has joined #ruby
<Eiam> w/e, paying work to do now.
<Eiam> Ven-2: I'm sorry dude I don't understand the rules you are trying to define
mbytes has quit [Ping timeout: 272 seconds]
sharms has quit [Ping timeout: 240 seconds]
<matti> ?
<matti> There is plenty of stuff like this.
<matti> Especially for homework.
<Eiam> oh is THAT what he's asking?!
havenwood has joined #ruby
<matti> No idea.
<matti> It would seem so, but I am not sure.
<Eiam> w/e its got pseudocode, Ven-2 go translate it to ruby
<Eiam> looks simple.
<matti> As even his/hers explanation in Polish is a little bit simplistic.
<Ven-2> matti, yes this is good link, for me optimal is any output with minimum element
jhaals has joined #ruby
meatherly has quit [Remote host closed the connection]
lfox has joined #ruby
Megtastique has joined #ruby
<matti> Ven-2: This is the most common approach.
alex88 has quit [Quit: Leaving...]
<matti> There is a whole range of such problems: http://en.wikipedia.org/wiki/Longest_repeated_substring_problem
meatherly has joined #ruby
sharms has joined #ruby
<terrellt> Yeah, I give up. Off to do real work
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 240 seconds]
__Al__ has quit [Quit: __Al__]
agent_white has quit [Ping timeout: 249 seconds]
Awhite has quit [Ping timeout: 249 seconds]
lmickh has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
bricker has joined #ruby
danshult_ has joined #ruby
danshult_ has quit [Read error: No buffer space available]
bricker has quit [*.net *.split]
jhaals has quit [*.net *.split]
31NAAG89Y has quit [*.net *.split]
mjburgess has quit [*.net *.split]
rickruby has quit [*.net *.split]
psyl0n has quit [*.net *.split]
ckrailo has quit [*.net *.split]
bluehavana has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
jokke has quit [*.net *.split]
lupine has quit [*.net *.split]
z has quit [*.net *.split]
Taranis has quit [*.net *.split]
ereslibre_laptop has quit [*.net *.split]
aspiers_ has quit [*.net *.split]
JStoker has quit [*.net *.split]
pipecloud has quit [*.net *.split]
bgy has quit [*.net *.split]
Megtastique has quit [Ping timeout: 240 seconds]
<shevy> hehe
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<matti> What? ;]
<shevy> awww :(
danshultz has joined #ruby
<shevy> I had hoped there would be some polish-polish interaction here
jamesaxl_ has joined #ruby
pskosinski has quit [Remote host closed the connection]
<matti> shevy: You and your fetish.
meatherl_ has joined #ruby
psyl0n has joined #ruby
meatherly has quit [Ping timeout: 264 seconds]
gja has quit [Quit: This computer has gone to sleep]
<shevy> matti see
jhaals has joined #ruby
<shevy> his english as it is is worse than matz' english
<shevy> and we can't allow that!
drago777 has quit [Ping timeout: 240 seconds]
Virtualize has quit [Quit: Leaving...]
<shevy> THE WORLD WOULD COME TO AN END IF THAT WERE TO HAPPEN!!!
<shevy> and it's only the second day of 2014 too, so...
timonv has joined #ruby
<matti> shevy: I am sorry not to provide your with entertainment.
<shevy> :(
Megtastique has joined #ruby
<matti> shevy: Busy eating dinner and playing Baldur's Gate: EE at the moment.
<shevy> hehe
kalamazoo has joined #ruby
<matti> shevy: My team of adventurers is exploring Nashkel Mines at the moment.
<mereghost> shevy: you can make some sense of matz english, tho.
* Morrolan blinks
croaky has quit [Ping timeout: 246 seconds]
<Morrolan> Nashkel Mines? Don't remember those.
SHyx0rmZ has joined #ruby
<shevy> mereghost yeah
qurve has joined #ruby
<havenwood> shevy: Matz' English is the reference implementation. We're all the ones doing it wrong.
drago777 has joined #ruby
<Morrolan> Oh, BG, not BG II. My bad. .)
<matti> ;]
<shevy> matti it was like 20 years since I last played baldur's gate
<matti> 20?
<qurve> Hey all, very long time ruby/rails developer, but have never authored my own gem and I need to: Does anyone have any suggested "Read this before you build your first gem"
<matti> shevy: U NUTS?
<matti> ;]
Galgorth has joined #ruby
<Morrolan> Only plaid through that one once, a long time ago. :)
<qurve> Mostly looking for best practices, common pitfalls.
<shevy> time passes by quickly man
<matti> shevy: Old git.
<matti> shevy: That makes me an ancient git.
<shevy> qurve nah, start doing it. write a .gemspec
<qurve> Rad.
<shevy> qurve hehe
<shevy> the do-it-yourself route is more painful but you learn more that way
<matti> Morrolan: I never finished it back then...
<qurve> Yeah, I usually just go with it and learn along the way.
subbyyy has joined #ruby
<matti> Morrolan: Since BG:EE supports modern hardware, I took upon the task.
<shevy> qurve did you already write a file that details usage example of your gem?
<matti> Morrolan: ;]
bgy has joined #ruby
mtraptor4 has joined #ruby
aspiers_ has joined #ruby
pipecloud has joined #ruby
mjburgess has joined #ruby
Taranis has joined #ruby
bluehavana has joined #ruby
bricker has joined #ruby
ereslibre_laptop has joined #ruby
JStoker has joined #ruby
lupine has joined #ruby
rickruby has joined #ruby
jokke has joined #ruby
Guest85414______ has joined #ruby
z has joined #ruby
ckrailo has joined #ruby
<qurve> Sometimes there's a few "OK, you're going to screw up X, just don't try to do Y"
<shevy> also do you have specified all dependencies of your gem already
<Morrolan> matti: Yea, it's a nice revamp.
bricker has quit [Quit: leaving]
<Morrolan> Though the ingame store for characters did annoy me a tad.
<shevy> qurve and the directory structure may be important as well, depending on whether you use tests or specs that is
<Morrolan> But there's a bunch of nifty additions.
<qurve> That is the next step, in my case this is an internal gem that is basically just a custom thor setup.
<mereghost> qurve: not really.
Diranged has left #ruby [#ruby]
<shevy> release early, release often!
bricker has joined #ruby
<shevy> release as if your internal is in fact the whole world audience!
sid_ has quit [Excess Flood]
<qurve> Agreed 100%
drumusician has joined #ruby
<qurve> I document all my own code and I'm a one man shop :)
<qurve> Nothing is worse than looking at code you write 6 months ago.
<shevy> yeah
jhaals has quit [Ping timeout: 240 seconds]
<shevy> and your own code confuses you
<matti> Morrolan: Hehe
khismetix has joined #ruby
<mereghost> Nothing is worse than looking at the code you wrote last week. =/
<matti> Morrolan: BG and Mass Effect are my all time favourite.
<shevy> happens to me right now, I am trying to turn an old project into a gem... cfdg... it does fancy things like http://www.contextfreeart.org/gallery/ ...
<Morrolan> Mass Effect is very nice too, yes.
<shevy> and my own old code confuses me and makes me angry
ankov has quit [Remote host closed the connection]
<shevy> then I imagine that this code was not written by me, instead matti wrote it. then I am not as angry anymore, I just wonder at the amount of sheer incompetence in these files!!!
khismetix is now known as npq101
<mereghost> shevy: hahaha
Megtastique has quit []
<Morrolan> Is that your revenge for him not providing you with the desired polish-on-polish action, shevy? ;)
cameronbarton has quit [Quit: cameronbarton]
bentonrr has joined #ruby
jameshyde1 has joined #ruby
jameshyde1 has quit [Max SendQ exceeded]
sid_ has joined #ruby
<qurve> Thanks again guys.
croaky has joined #ruby
<shevy> Morrolan nah, we have a long past relationship, he is like my ex now
qurve has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
* shevy cuddles matti
<shevy> I'd wish he would code in ruby though :<
<Eiam> read my own code 6 months later? please, that tool will have been torn down and execs will ask for something new
byprdct has joined #ruby
razibog has joined #ruby
<Eiam> why document or unit test any of it!
* Eiam sobs in the corner
* Morrolan grins
npq101 has left #ruby [#ruby]
<Morrolan> Look at it another way - you'll never be in danger of loosing your job, there's always work left to do.
<shevy> 6 months later is ok
<Eiam> oh ain't that the truth, and thats totally *without* any code work!
<shevy> 6 years later is dreadful
byprdct has joined #ruby
<Eiam> nah I'll never look at a piece of code that old
<Eiam> ever.
Morrolan has left #ruby ["Parting..."]
Morrolan has joined #ruby
Kricir has joined #ruby
<shevy> Eiam I lately discovered one reason why testing is actually useful
<Eiam> software process changes too fast around here
drago777 has quit [Ping timeout: 240 seconds]
<shevy> not because of finding bugs or ensuring that it works
<shevy> but, when I want to refactor, to actually remind me what functionality I used to have (10 years ago...)
Czupa has joined #ruby
<Eiam> shevy: sure, so when I do a huge refactor because everyone changed their mind once they got what they asked for, I can refactor with confidence! =)
ankov has joined #ruby
<Eiam> I keep meaning to write out a list of "lessons learned from confident ruby" so i can refer to it as I code
<ericwood> ugh I can't keep track of which channel I'm in
<shevy> I am porting an old project and I already lost quite a lot of things I once was able to do with it... but I can not remember what it was, I did not write everything down back then :(
<ericwood> just tried answering a JS question in ruby
<ericwood> then realized it was #javascript
<matti> shevy: Cuddles?
<shevy> Eiam yeah, it may also be related to how large a project is. for small projects, I just never seem to run into the sheer amount of problems I end up with when doing larger projects
<popl> #firstworldanarchy
Solnse has quit [Quit: Leaving.]
<shevy> matti no not now, I have a headache
<Eiam> yeah I don't think I really have 'large" projects I guess
<Eiam> I used to have a big ass obj-c app that was like 8 years old
<shevy> Eiam define large :)
<Eiam> that sucked
<matti> shevy: LOL
<shevy> I start at "more than one file" lately :D
<matti> shevy: I want divorce.
RaCx has joined #ruby
<shevy> or perhaps... less than 500 lines of code. hmm
<Eiam> most of my code/files is view's anyway
<shevy> matti ok but I will be sad, and socially isolated for a while
<Eiam> lots of haml
<Eiam> just visualizing the same data in lots of different ways mostly
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> hmm
jhaals has joined #ruby
<Eiam> by team, due date, assignee, schedule, so on
<shevy> I guess you work in a very specialized environment
croaky has quit [Ping timeout: 262 seconds]
<mereghost> shevy: "Large project" is relative to its complexity.
<shevy> mereghost how large is your largest :D
carraroj has joined #ruby
<waxjar> we all know i got the largest
<Eiam> shevy: hmm.. as specialized as "shipping software to millions" gets I suppose
<Eiam> shevy: which I'm sure plenty of companies do
<shevy> whoa
nannes has quit [Read error: Connection reset by peer]
jamesaxl_ has quit [Ping timeout: 240 seconds]
<terrellt> Eiam: Which software is this?
<mereghost> shevy: I actually have no idea. Currently I'm working on something that is approaching 50k lines of code spread between multiple libs.
<mereghost> shevy: And it's like 20% of the full project.
<shevy> wow
asobrasil has left #ruby [#ruby]
maletor has joined #ruby
jamesaxl_ has joined #ruby
<Ven-2> how I can cut from begining of string , variable? str='this is the thing'; z='th' ; how cut only first 'th' from variable 'z'
<terrellt> You know, that sounds like a lot, but I don't think 50k is that ridiculous.
<Eiam> I don't even count lines of code, or pay attention to it =0
croaky has joined #ruby
<terrellt> Eiam: Right.
<mereghost> terrellt: And it isn't. =)
<shevy> I think my largest standalone project is at 9000 lines, but including newlines and a lot of comments and some yaml files usually
larissa has quit [Quit: Leaving]
derebos has quit [Ping timeout: 260 seconds]
drago777 has joined #ruby
<terrellt> Eiam: If I start counting lines somebody above me will hear and I'll get "why not more lines? Hmmm?"
bean has joined #ruby
<mereghost> We don't use this metric. The thing is that the amount of stuff that need to be generated on the fly is pretty high.
<Eiam> terrellt: operating systems and software updates to them
weenle has quit [Ping timeout: 272 seconds]
bentonrr has quit [Remote host closed the connection]
Muz_ is now known as Muz
carlyle has joined #ruby
totalmajor has quit [Remote host closed the connection]
<shevy> you guys scare me
<shevy> that would be way too much code to handle
iamjarvo has joined #ruby
<mereghost> hahahaha! Not really.
<Eiam> shevy: eh my code is split out into discrete "mini apps"
<Eiam> one "app" that just mounts mini "apps" on routes under it
krz has quit [Quit: WeeChat 0.4.2]
totalmajor has joined #ruby
<mereghost> Eiam: The exact approach my team took.
<Eiam> so whenever I want to make a change its usually 1-2 files inside a mini app somewhere down the branch, its pretty easy to find what I'm after
<shevy> Eiam yeah but mereghost has 50k lines!!!
<Eiam> shevy: sure, I'm sure mine is easily near that?
sharms has quit [Ping timeout: 240 seconds]
<Eiam> especially if you count the 3 custom gems that support those apps too
<shevy> well nah that would be cheating
<shevy> if I would count all gems then I'd be in that range too
bentonrr has joined #ruby
<guinslym> Hi! I have a "case when" syntax. And ruby expected an '}' bracket? But I don't see the needs of it since the "case when" syntax doesn't require one: my gist :: https://gist.github.com/guinslym/8224915
croaky_ has joined #ruby
<Eiam> no no, these are gems that I wrote/maintain that are internal only =)
olivier_bK has quit [Ping timeout: 260 seconds]
<Eiam> and often need modification to support new requests. I don't see why I wouldn't count them =)
mengu has joined #ruby
<shevy> guinslym did you try to remove the lines before 'case'
<waxjar> guinslym: i think you need brackets around number-50
sharms has joined #ruby
<shevy> btw that code works in irb for me
interactionjaxsn has joined #ruby
<shevy> so I am rather sure your error happens somewhere else
totalmajor has quit [Read error: Connection reset by peer]
<ericwood> the rails project I work on has 30457 lines of code
Mars has joined #ruby
<ericwood> sorrry files not LOC
<shevy> omg
<ericwood> the largest has quite a few lines of code
croaky has quit [Ping timeout: 264 seconds]
<mereghost> guinslym: hmmm... your code runs fine here.
Mars is now known as Guest89664
<shevy> that's a lot of files
<ericwood> it's a really big rails project
<guinslym> waxjar: when I put a bracket I have 2 errors
<ericwood> lots of separation into files (it's a good thing)
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skaflem has quit [Quit: Leaving]
<mereghost> ericwood: ouch. =O
bricker_ has joined #ruby
<guinslym> mereghost: i'll run it again
bricker_ is now known as bricker`work
bricker has quit [Disconnected by services]
joaoh82 has quit [Remote host closed the connection]
<ericwood> it's really not that bad at all
<ericwood> lots of functionality, but it's all split up into a nice folder structure
<mereghost> guinslym: Missing } are usually a symptom of unclosed hashes, blocks or lambdas.
<ericwood> and we're moving a lot of things into their own Rails engines
<Eiam> okay I did a quick find | wc -l
<shevy> guinslym I think your file must be larger than that
<Eiam> 13,197
kep has quit [Quit: WeeChat 0.4.2]
joaoh82 has joined #ruby
<shevy> and the error must be in other areas of that .rb file
<mereghost> ericwood: Seems like a quite cool arch.
<ericwood> it's just rails
cbetta is now known as cbetta_afk
bentonrr has quit [Remote host closed the connection]
<shevy> hehe
kate_r has quit [Ping timeout: 272 seconds]
<Eiam> for what I currently maintain anyway, doesn't count any older things
<ericwood> granted, there's quite a bit of cruft, but we're removing a lot of it little by little
<mereghost> ericwood: Did you started the project with this kind of modularity in mind or was it bolted on after a bit?
drago777 has quit [Ping timeout: 240 seconds]
<ericwood> mereghost: the whole project is 6 years old, it started with a very early version of rails
colonolGron has joined #ruby
<ericwood> and we've migrated it all the way up to rails 3 since
<terrellt> Eiam: Was that the whole command?
<ericwood> I've only been on the project for 2 years though
<Eiam> terrellt: no lol
voodoofish has quit [Ping timeout: 240 seconds]
<mereghost> ericwood: nice! :) The step between rails 1 to rails 2 was a real pita. =/
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<ericwood> yeah luckily I wasn't here for that lol
<ericwood> but 2-3 was pretty tough, it took us a while
drago777 has joined #ruby
<Ven-2> ok, I'm return with smalest trouble: I have str='thisismythesis' tab = ['is','th','m','y','es'] how get array %w(th is is m y th es is) is possible to match only in begining of string
<ericwood> granted, after that all future upgrades should be a lot easier since we refactored things
<havenwood> guinslym: i'd prolly: Date::MONTHNAMES[number]
mklappstuhl has joined #ruby
kate_r has joined #ruby
<mereghost> ericwood: We are on the process of migrating the front-end (the rails piece) to Rails4. *sigh*
<ericwood> good luck
kate_r has quit [Max SendQ exceeded]
<guinslym> mereghost: you right I forgot to close a bracket before calling this function thks
<ericwood> Ven-2: can you give a bit more information? I'm not 100% sure what you're asking
<Ven-2> ok, I'm return with smalest trouble: I have str='thisismythesis' tab = ['is','th','the','t','m','y','es'] how I can get this array %w(th is is m y th es is)
kate_r has joined #ruby
<mereghost> guinslym: yw =)
kate_r has quit [Max SendQ exceeded]
<Ven-2> ericwood, simple i have Array tab and string
<Ven-2> how cut the string using element of tab
deception_ is now known as deception
<ericwood> aaah I see now
Virtualize has joined #ruby
<guinslym> shevy: Yes it is I didn't put the line that I called the function. now I did add it on my gist
<Ven-2> (if this is simplest can You use matches only in begining of string)
mehlah has quit [Quit: Linkinus - http://linkinus.com]
<shevy> guinslym In general, you should make the last } on a new line by itself
<shevy> that is easier to read
<guinslym> shevy: thks
kate_r has joined #ruby
<Eiam> terrellt: find . -name "*.rb" -or -name "*.haml" | xargs wc -l
<shevy> the code still works as is guinslym
<shevy> are you sure you have this parse error? :>
colonolGron has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
<shevy> btw if your method is as simple, you can omit all "return" in your method
colonolGron has joined #ruby
<guinslym> shevy: yes it's working right now. It's the last '}' that I was missing
<Eiam> terrellt: technically i should also include all my .js too as there is quite a bit of custom javascript code too..
<Eiam> i guess sass can be ignored? does that count as code? =)
bentonrr has joined #ruby
soobus has quit [Ping timeout: 252 seconds]
psyl0n has quit [Remote host closed the connection]
LinearInterpol has joined #ruby
pushpak has joined #ruby
bentonrr has quit [Remote host closed the connection]
<shevy> guinslym this is how I would rewrite that btw https://gist.github.com/shevegen/8225224
VictorSK has joined #ruby
cloaked1 has joined #ruby
<shevy> if the case menu stays as simple as that, perhaps use a hash instead
drago777 has joined #ruby
VictorSK has quit [Client Quit]
sharms has quit [Ping timeout: 240 seconds]
<shevy> or an array
<shevy> yeah... an array would work best
Asher has quit [Quit: Leaving.]
<cloaked1> I find a bunch of questions/answers on SO about Socket Recv timeout but I'm probably not crafting my query correctly. Perhaps someone could point me to a good article or other documentation that allows me to do the following: I am connecting to a remote host using raw TCP (not a webserver). The remote side sends the data I am expecting but it never properly closes the connection when the data is done getting sent so my client just si
<Ven-2> Anybody can help me? I have str='thisismythesis' tab = ['is','th','the','t','m','y','es','s'] how I can get this array %w(th is is m y the s is)
<cloaked1> would like to set a timeout on the receive so that I can just close the connection when I get my data...
diegoviola has joined #ruby
<WJW> I think the point of iterators is nonstrict (i. e. "lazy") evaluation.
coffeina has quit [Quit: Wychodzi]
earthquake has joined #ruby
<cloaked1> in other words, I'd like to keep the connection open for n time and then just close the connection
<guinslym> shevy: thks I had too much tabulations
joaosa has quit [Ping timeout: 240 seconds]
nisstyre has quit [Ping timeout: 240 seconds]
leandroico has quit [Quit: Connection closed for inactivity]
carraroj has quit [Quit: Konversation terminated!]
sharms has joined #ruby
<mereghost> cloaked1: does any kind of keepalive would help you?
<shevy> guinslym perhaps this is better? https://gist.github.com/shevegen/8225329
<WJW> Hanmac: "... my country ... the greatest purveyer of violence in the world today ..." -- MLK Jr.
drago777 has quit [Ping timeout: 240 seconds]
ebobby has quit [Quit: Lost terminal]
<shevy> Ven-2 you know that %w() is an array in ruby?
cameronbarton has joined #ruby
voodoofish has joined #ruby
<ericwood> shevy: he does
<Ven-2> shevy, yes this is array
jmo has joined #ruby
<WJW> dann_: I think the point of enumerators is lazy evaluation.
pen has quit []
andrewhl has quit [Quit: andrewhl]
<cloaked1> all of the documentation I'm finding is setting recv timeout to do something if timeout is reached BEFORE the recv starts...not the recv itself. Anyone? I need the recv itself... IE I should be able to get everything I need in n seconds and if I don't, close the connection gracefully and return what I got.
roodee has joined #ruby
nisstyre has joined #ruby
motto has quit [Ping timeout: 246 seconds]
<WJW> >> "This interpreter is running again."[6...(6 + "interpreter".length)]
<eval-in> WJW => "nterpreter " (https://eval.in/85045)
drago777 has joined #ruby
<WJW> Ven-2, that is how you extract a substring.
<shevy> hmm guys... the only way to turn a 'string' into an ['string'] array element, is by doing i.e. (if it is a variable) var = 'string'; var = [var] right?
<shevy> I am just wondering whether there is a #to_ method or something else
<cloaked1> you could use to_a
<DouweM> there's no method that would turn a string into an array *in place*
<cloaked1> but that just makes a single element array with your string as index 0
<shevy> hmm
<DouweM> you'd still need to reassign the var
Gonzih has joined #ruby
<cloaked1> you could: array = string.split(//)
jmo has quit [Ping timeout: 246 seconds]
<WJW> shevy, you can do it directly instead of through the intermediary of the variable.
aspires has quit []
<WJW> >> ["a string", "another string"]
<eval-in> WJW => ["a string", "another string"] (https://eval.in/85046)
m8 has joined #ruby
<WJW> >> "interpreter".length
<eval-in> WJW => 11 (https://eval.in/85047)
<cloaked1> hmm
roodee has left #ruby [#ruby]
<cloaked1> what about map
<WJW> >> 5 + 11
<eval-in> WJW => 16 (https://eval.in/85048)
<guinslym> shevy: Yes that's really shorter than what I did. I'm learning ruby by following a book and by doing in ruby all the assignment that I had in a java course that I had 2 years ago.
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
roodee has joined #ruby
<mereghost> shevy: You can use Array(your_string)
mklappstuhl has joined #ruby
<WJW> >> "This interpreter is running again."[5...16]
<eval-in> WJW => "interpreter" (https://eval.in/85049)
<DouweM> >> "This interpreter is running again"[5,11]
<eval-in> DouweM => "interpreter" (https://eval.in/85050)
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<DouweM> WJW: just specify the length as the second argument to String#[] :)
<Eiam> shevy: yah I do .split
<cloaked1> "this is a string".split(//).map.to_a
<Eiam> >> "hello".split()
<eval-in> Eiam => ["hello"] (https://eval.in/85051)
sambao21 has quit [Quit: Computer has gone to sleep.]
drumusician has quit [Ping timeout: 272 seconds]
<shevy> ohhh...
<shevy> interesting
<Ven-2> WJW, I have string='thisismythesis' and Array tab = ['is','th','the','t','m','y','es','s'] how I can get this array ['th','is' 'is' 'm' 'y' 'the' 's' 'is']
<havenwood> cloaked1: Just: "this is a string".chars
<cloaked1> ah
<Ven-2> no optimal matches
<shevy> >> "hello".split
<eval-in> shevy => ["hello"] (https://eval.in/85052)
<shevy> that's like a .to_a!
<havenwood> shevy: in case `string` is `nil` i'd usually: [*string]
<WJW> Ven-2, do software engineering.
<havenwood> Ven-2: Sounds like homework? :P
<shevy> :P
<Eiam> havenwood: you guys are going down a rabbit hole we already did with Ven-2
sambao21 has joined #ruby
<havenwood> Eiam: haha, i missed it
<WJW> Ven-2, you understand how to extract a substring from a specified location, right?
sharms has quit [Ping timeout: 240 seconds]
<Ven-2> no, this is my hobby
<Hanmac> Ven-2 i already showed you hours ago you can do this, i dont want to repeat myself
<shevy> I think the problem is that he did not use ruby
<shevy> before
<Eiam> Ven-2: then take an interest in your hobby and read up on the many algorithms that implement it
<Ven-2> Eiam, no. this is to complicateg
<Hanmac> shevy no the problem is that he is not listening
<Ven-2> only cut element from begining of string
<Ven-2> and put it on output array
<shevy> Hanmac he does not understand you ;)
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
mneorr has quit [Remote host closed the connection]
noop has quit [Ping timeout: 264 seconds]
<WJW> Ven-2, do you understand yet how to take a substring in Ruby?
<shevy> Ven-2 Hanmac spricht Deutsch, frag mal auf Deutsch nach, dann gibt er bessere Antworten
<Hanmac> shevy no i showed him the excact code line how to do that and he still does not know
sambao21 has quit [Client Quit]
<havenwood> Ven-2: not that simple, it starts with both 't' and 'th'
<Ven-2> no optimal matches, only cut string using array elements
<Hanmac> >>>>> (19:22:11) Hanmac: Ven-2: 'jakistexttentestisgood'.scan(Regexp.union(%w{ja k is te xt n st g o d})) #=> ["ja", "k", "is", "te", "xt", "te", "n", "te", "st", "is", "g", "o", "o", "d"]
mbytes has joined #ruby
<WJW> Ven-2, is it a discussion on a problem in software engineering, or a question on the Ruby language?
<Ven-2> Hanmac, thanks
RubyRonin has joined #ruby
<mereghost> WJW
<Ven-2> it looks good
burlyscudd has joined #ruby
<mereghost> WJW: seems a conflict of different languages.
<shevy> hehehe
<mereghost> WJW: Real world ones. :)
RaCx has quit [Quit: Computer has gone to sleep.]
joaosa has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
kirun has joined #ruby
<WJW> Maybe when everyone talks at her at once, she gets overwhelmed.
sharms has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
Virtualize has quit [Quit: Leaving...]
xiphias has joined #ruby
pixelgremlins has quit [Ping timeout: 272 seconds]
m8 has quit [Max SendQ exceeded]
psyprus has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
m8 has joined #ruby
psyprus has joined #ruby
alex88 has joined #ruby
mary5030 has quit [Remote host closed the connection]
gregoriokusowski has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Remote host closed the connection]
mary5030 has joined #ruby
gregoriokusowski has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
cameronbarton has quit [Quit: cameronbarton]
iamjarvo has joined #ruby
mary5030 has joined #ruby
sambao21_ has joined #ruby
<Hanmac> Ven-2 if the string is encoded corectly than String#size works, except you have a deadly outdated ruby
<Ven-2> Hanmac, Thanks ok,
sambao21 has quit [Ping timeout: 240 seconds]
sambao21_ is now known as sambao21
sharms has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
flame_ has joined #ruby
mbytes` has joined #ruby
mbytes has quit [Ping timeout: 240 seconds]
Virtualize has joined #ruby
drago777 has joined #ruby
xiphias has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
psyprus has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
joaosa has quit [Ping timeout: 240 seconds]
iamjarvo_ has joined #ruby
klaut has quit [Remote host closed the connection]
jamesaxl_ has quit [Remote host closed the connection]
croaky_ has quit [Ping timeout: 260 seconds]
jameshyde1 has joined #ruby
Asher has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
ankov has quit [Remote host closed the connection]
xiphias has joined #ruby
sepp2k has joined #ruby
zleslie has left #ruby ["WeeChat 0.4.2"]
<Ven-2> Hanmac, Your answers is good but have one small trouble. if in my Array tab no include element apear in string script nothing reporting, simple skip this substring/element of tab Array.
Guest89664 has quit [Remote host closed the connection]
mlpinit has quit [Read error: Connection reset by peer]
<Ven-2> this is trouble for me. I don;t know about my mistake in tab construct
mlpinit has joined #ruby
jprovazn has quit [Quit: Odcházím]
jameshyde1 has quit [Ping timeout: 264 seconds]
gregoriokusowski has quit [Write error: Broken pipe]
tzzzzz has joined #ruby
tzzzzz has quit [Quit: tzzzzz]
fantazo has quit [Ping timeout: 272 seconds]
gregoriokusowski has joined #ruby
cameronbarton has joined #ruby
timonv has quit [Remote host closed the connection]
dru has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
mbytes` has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
mary5030_ has quit [Read error: Connection reset by peer]
sharms has joined #ruby
mary5030_ has joined #ruby
aspires has joined #ruby
pablovilas_ has joined #ruby
rankine has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
az has left #ruby [#ruby]
drago777 has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
end_guy has quit [Remote host closed the connection]
blackmes1 has quit [Write error: Broken pipe]
totalmajor has joined #ruby
pablovilas has quit [Ping timeout: 252 seconds]
Guest28193 has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
joaosa has joined #ruby
winux has joined #ruby
Vivekananda has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
winux has quit [Client Quit]
hl has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
xiphias has quit [Ping timeout: 240 seconds]
Mars has joined #ruby
madb055 has joined #ruby
Mars is now known as Guest61035
xiphias has joined #ruby
cbetta_afk is now known as cbetta
SHyx0rmZ has joined #ruby
<Ven-2> how split string with not cuting separators? this delete sep 'abcdef'.split(/[a|c|bc|f]/) this 'abcdef'.scan(/[a|c|bc|f]/) delete some substring 'de'
sambao21 has joined #ruby
jxport has quit [Ping timeout: 246 seconds]
jxport has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
iamjarvo has joined #ruby
hl has joined #ruby
kewubenduben has quit [Read error: Connection reset by peer]
xiphias has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
kewubenduben has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
xiphias has joined #ruby
lfox has quit [Quit: ZZZzzz…]
sambao21 has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
mneorr has joined #ruby
Megtastique has joined #ruby
pablovilas_ has quit [Remote host closed the connection]
razibog has quit [Remote host closed the connection]
monomyth has quit [Ping timeout: 272 seconds]
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
sheap has joined #ruby
monomyth has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
Sthebig has quit [Ping timeout: 240 seconds]
sheap has left #ruby [#ruby]
aryaching has quit [Ping timeout: 252 seconds]
razibog has joined #ruby
vlad_starkov has joined #ruby
includex has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mzdravkov has joined #ruby
psyl0n has joined #ruby
sambao21 has joined #ruby
lethjakman has joined #ruby
<lethjakman> hey, with File.open do is there a way to check if it wrote or not?
<WJW> lethjakman, look in your file?
<lethjakman> no, I want to check if f.write is successful
Sthebig has joined #ruby
<WJW> lethjakman, if it falls through to the next command and doesn't raise an exception, that indicates that it succeeded, I am so sure.
psyl0n has quit [Remote host closed the connection]
phipes has joined #ruby
<WJW> lethjakman, I take it back. http://www.ruby-doc.org/core-2.1.0/IO.html#method-c-write says that 'write' returns the count of bytes written. Check whether that is the count you expect.
<havenwood> lethjakman: the length-written return value of #write is the confirmation
<havenwood> ya
Voodoofish430 has joined #ruby
psyl0n has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
bentonrr has joined #ruby
<shevy> guys
<shevy> we get our ass beaten
<WJW> The doc doesn't seem to say that 'write' can take a block.
clamstar has quit [Quit: Computer has gone to sleep.]
asteve has joined #ruby
<havenwood> shevy: i have a suspicion of bias due to it beginning in "py" :P
asteve has quit [Max SendQ exceeded]
<shevy> hehehe
endash has joined #ruby
<shevy> havenwood can I calm your bias by citing TIOBE? :>
<wmoxam> shevy: 9th? Whoa that's wayyyy too popular. Time to find something more obscure!
<WJW> Ruby's "make" is "rake"; do you know what is Python's "make"?
<shevy> we have wmoxam!!! TIOBE says ruby is stinking 12th!
asteve has joined #ruby
<havenwood> shevy: Tiobe, ha...
asteve has quit [Max SendQ exceeded]
drago777 has joined #ruby
asteve has joined #ruby
<havenwood> shevy: Google various language then rank the result with a bizarre and severely flawed filters then rank the order? No thanks!!
reset has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
drumusician has joined #ruby
<WJW> lethjakman: The doc doesn't seem to say that 'write' can take a block.
kcombs has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
bentonrr has quit [Ping timeout: 246 seconds]
mosez has joined #ruby
relix has joined #ruby
benlieb has joined #ruby
danshultz has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
<wmoxam> lol TIOBE: "Transact-SQL programming language of 2013!"
Brolen has joined #ruby
zipper has joined #ruby
iamjarvo has joined #ruby
<WJW> Unix has "make"; in Ruby we have "rake", for Python, it's "snake".
<benlieb> anyone know how to get heroku logs when you don't have access to the command line?
<wallerdev> its snake in python? thats awesome lol
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> WJW waaaat? python has really snake?
<waxjar> haha, that's pretty good
<WJW> Absolutely, it's their equivalent of rake.
<WJW> Another language has "cake".
<wallerdev> too bad python is a dead language
<waxjar> coffeescript?
<wallerdev> rip python 3
<WJW> Yeah, coffeescript. Coffee and cake.
brennanMKE has joined #ruby
<shevy> did they finally destroy python2?
totalmajor has quit [Remote host closed the connection]
<wallerdev> no i read an article a few days ago that said python 3 had like 2% usage rate after 5 years haha
<WJW> The author of XKCD seems to like Python and never mentions Ruby.
<wallerdev> those numbers may not be accurate, my memory is pretty bad
<shevy> WJW no wait
Soda has joined #ruby
<wmoxam> Python2 will be around for a long time
relix has quit [Ping timeout: 260 seconds]
<wmoxam> it's got such good external lib support
<wmoxam> much better than Ruby
<wallerdev> yeah its just kinda sad that no one uses python 3
<waxjar> why didnt they phase features out and slowly replace them, like they do in ruby?
<wmoxam> wallerdev: yeah, they did a poor job of managing that
<wmoxam> waxjar: they can still do that
<wmoxam> just depricate a feature at a time and keep on pumping python2 point releases
<havenwood> shevy: (some bot posted a ton of cpan perl stuff in 2009 >.>)
iamjarvo has quit [Ping timeout: 240 seconds]
<waxjar> yeah, they could do that too
<havenwood> why we must kill 1.8! long live 2.x!
<wmoxam> 1.8 is dead
<havenwood> ;)
polysics has joined #ruby
<shevy> damn WJW you are right, I cant find ruby on XKCD
psyl0n has quit [Remote host closed the connection]
mlpinit has quit [Quit: Leaving...]
<waxjar> i heard they've got a tool that translate python 2 code to python 3 code but it doesn't really work so you basically have to maintain two versions of your code
polysics has left #ruby [#ruby]
<waxjar> *translates
lfox has joined #ruby
<apeiros> what does a tool matter which doesn't work?
<shevy> apeiros a tool that does not work is better than no tool at all!!!
<waxjar> it works sometimes? :p idk
<shevy> lol waxjar
<shevy> 50% chance to work
<wallerdev> they should just write a tool to convert python to ruby
<wallerdev> problem solved
<waxjar> haha
subbyyy has quit [Read error: Operation timed out]
relix has joined #ruby
<havenwood> python devs have been urging people to move to 3 for ages, but very few pythonistas are willing
<shevy> guido does not want to be obsolated like that by a script
<waxjar> the numbercrunchers wont be happy with that
<havenwood> <3 Ruby
<shevy> havenwood, yeah you must force people
<shevy> like perl 6!
deception has quit [Quit: Goodbye]
ssvo has joined #ruby
<wallerdev> python is like windows, no one wants to upgrade because everything still works on their current version :p
cameronbarton has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
falkn0r has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
codenapper has joined #ruby
<WJW> The pythonistas would probably raise an exception to being compared to Microsoft anything.
<havenwood> what is it Pythonistas say? later is better than now, but never is better than later?
bentonrr has joined #ruby
l0gicpath has left #ruby [#ruby]
<havenwood> ^ my version of the zen of python
<shevy> they say: Sszszs hsh ShshSSSssss!!
benlieb has quit [Remote host closed the connection]
<shevy> they have banned the nick python from #python :(
Virtualize has quit [Quit: Leaving...]
<shevy> I always thought they are about fun
totalmajor has joined #ruby
<wallerdev> ruby is the fun community, python is for serious people
Advocation has joined #ruby
<shevy> serious cat
drago777 has joined #ruby
lfox has quit [Ping timeout: 240 seconds]
Advocation has quit [Client Quit]
<wallerdev> also we're one of the few languages with 2 irc channels for the same purpose
<shevy> hehe
<WJW> wallerdev, LOL
<shevy> the #ruby-lang guys are splinters
benlieb has joined #ruby
<ericwood> ruby-lang is more for core language discussion
<WJW> Implementaiton?
<wallerdev> i remember the days when #ruby-lang was the real #ruby channel :O
<ericwood> yeah more implementation stuff
<shevy> *splitter
Czupa has quit [Ping timeout: 260 seconds]
<wallerdev> then rails came out and everyone joined #ruby because they didnt know about #ruby-lang :p
<shevy> yeah but #ruby-lang added voice registration
totalmajor has quit [Remote host closed the connection]
<shevy> which was when I decided to quit it
mengu has quit [Remote host closed the connection]
<ericwood> I like that but every once and a while nickserv forgets about me and I have to part and rejoin >.<
<shevy> some guys from #ruby-lang never go to #ruby
<wmoxam> shevy: it became too hard to troll?
baordog_ has joined #ruby
<shevy> wmoxam it became too hard to SPEAK AND BE HEARD
<shevy> :>
<WJW> They're just chatting over there about not-Ruby stuff.
<shevy> hehehe
mklappstuhl has joined #ruby
<apeiros> unlike here
<apeiros> which is totally focused on ruby :D
<ericwood> #pwnt
<shevy> man, we mention ruby every third sentence
klaut has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<shevy> did we ever have more than 1000 folks here on #ruby yet?
<Hanmac> shevy i dont think so, but we should have ;P
codenapper has quit [Quit: codenapper]
Solnse has joined #ruby
jameshyde1 has joined #ruby
<wallerdev> anyone here work for a company hiring in the SF area?
drago777 has quit [Ping timeout: 240 seconds]
totalmaj_ has joined #ruby
Asher has quit [Quit: Leaving.]
derebos has joined #ruby
benlieb has quit [Quit: benlieb]
aspires has quit []
mlpinit has joined #ruby
sethen has quit [Quit: Leaving]
ehc has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
* apeiros wants to work in the science fiction area too!
ehc has joined #ruby
<WJW> >> "e" * 20
<eval-in> WJW => "eeeeeeeeeeeeeeeeeeee" (https://eval.in/85077)
Virtualize has joined #ruby
mklappstuhl has quit [Ping timeout: 264 seconds]
<wallerdev> :P
clamstar has joined #ruby
<apeiros> oh, eval-in is back?
<shevy> the science fiction area
mechanicles_ has quit [Quit: Computer has gone to sleep.]
drago777 has joined #ruby
nannes has joined #ruby
Megtastique has quit []
<nannes> guys
<apeiros> nannes
<wallerdev> >> "\u2665"
<eval-in> wallerdev => "♥" (https://eval.in/85079)
<nannes> "error installing debugger-linecache" "checking for vm_core.h... no"
<wallerdev> neat
<wallerdev> haha
aspires has joined #ruby
Virtualize has quit [Client Quit]
<WJW> Virtuous machine?
LiquidInsect has joined #ruby
ffranz has quit [Quit: Leaving]
jameshyde1 has quit [Ping timeout: 260 seconds]
<apeiros> Veritable Manga
<shevy> wow
<shevy> Manga is sexy
croaky has joined #ruby
Mohan has quit [Read error: Connection reset by peer]
<shevy> nannes obviously you lack that .h file
<mneorr> I have a Ruby - UNIX question, not sure if it'll make sense. I have a formatter https://github.com/mneorr/xcpretty that's meant to be piped after the `xcodebuild` command. The problem is that if `xcodebuild` exits with 1, my script after pipe exits with 0. What we want to achieve is transfer the `pipestatus` over from the previous command
<nannes> no, shevy
<nannes> It's a bundle install
carlyle has quit [Remote host closed the connection]
<shevy> oh bundler. I can't touch that, Hanmac can
<Hanmac> i only do with a long pointy needle
SHyx0rmZ has quit [Ping timeout: 246 seconds]
sharms has quit [Ping timeout: 240 seconds]
<mneorr> The manual way of solving the problem would be `xcodebuild | xcpretty; exit ${PIPESTATUS[0]}` but i'm looking if there
<alex88> someone ever tried to get a page screenshot using something like capybara-webkit but not during tests?
<nannes> shevy: Let's put it this way: the same happens with gem install
<mneorr> 's a way to embed that into script.
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<WJW> mneorr, is your script setting up the pipeline?
<shevy> nannes good! now let's see... the name of the gem is debugger-linecache, and it wants a file called vm_core.h
phutchins has quit [Ping timeout: 260 seconds]
<mneorr> WJW: nope, the script is used by the end users
sambao21 has quit [Quit: Computer has gone to sleep.]
soulcake has quit [Read error: Connection reset by peer]
<WJW> mneorr, the end users type the pipeline into their shells?
<nannes> shevy: Shouldn't it be part of perl?
<mneorr> the users are already using the fugly `xcodebuild`. so if they wanna make the output readable, they pipe it to `xcpretty`
<shevy> nannes perl?
<mneorr> wjw: yup
<shevy> nannes
<shevy> Fetching: debugger-linecache-1.2.0.gem (100%)
<shevy> Successfully installed debugger-linecache-1.2.0
<shevy> Installing ri documentation for debugger-linecache-1.2.0
<shevy> 1 gem installed
<shevy> worked fine for me
soulcake has joined #ruby
<WJW> mneorr, then I don't think there is a solution.
<mneorr> wjw: sample usage: `xcodebuild | xcpretty -c`
<WJW> mneorr, if xcodebuild dies badly, the shell will catch it, not scpretty, which has no visibility on how xcodebuild exits.
sharms has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy> nannes I grepped through the source of that gem, no vm_core.h file. perhaps bundler has another error and does not show you.
croaky has quit [Ping timeout: 260 seconds]
<nannes> I told you gem gives the same error
ph88 has joined #ruby
jkamenik has quit [Quit: Leaving.]
burlyscudd has quit [Ping timeout: 240 seconds]
<ph88> hey what's going on here? i can't install gems?? http://pastebin.com/HKL0djVj
<nannes> If you don't get the error means nothing
<ph88> ???
<nannes> I do get it
<nannes> which is your perl version?
<ph88> i dont know
<ph88> i did gem install fpm --- gem not found . Ok no ruby ... so i did sudo yum install ruby
havenwood has quit [Remote host closed the connection]
<ph88> then i did again gem install fpm ... is what you see in the paste
<Hanmac> ph88 what is your ruby version? what is your os?
drumusician has quit [Read error: Connection reset by peer]
<ph88> perl 5 version 18
havenwood has joined #ruby
<wallerdev> lol
<nannes> lol
<ph88> ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
<ph88> Fedora 20
<nannes> ph88: Sorry, I should have mentioned the nick I was talking to
<Hanmac> ph88 how did you install ruby? as package or self compiled?
<nannes> ...and that's not yours :D
<wallerdev> sounds like he just needs to apt-get install ruby-dev
<ph88> Hanmac: sudo yum install ruby
<wallerdev> or however you do that on fedora
<wallerdev> lol
SHyx0rmZ has joined #ruby
<Hanmac> ph88 is there a ruby-dev or ruby-devel package you can install too?
ehaliewicz has joined #ruby
<alex88> ph88: hi man :D
<alex88> hanging out here too? :P
<ph88> Hanmac: ruby-devel.x86_64
<ph88> alex88: don't watch me here, im too noob for this chan xD
<Hanmac> ph88: yeah is that installed too?
<ph88> Hanmac: no not yet, will install now
Megtastique has joined #ruby
Asher has joined #ruby
<alex88> ph88: pm are welcome if you need help
Galgorth has quit [Ping timeout: 246 seconds]
colonolGron has quit [Quit: Lost terminal]
colonolGron has joined #ruby
<mneorr> WJW: thanks
phansch has quit [Quit: Leaving]
<ph88> Hanmac: after installing that package, different error http://pastebin.com/ZHcWRY10
<Hanmac> ph88 install gcc
<shevy> nannes I dont even have perl
sambao21 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alex88> ph88: you might need all of these "yum install make automake gcc gcc-c++ kernel-devel"
<nannes> great.
SHyx0rmZ has quit [Ping timeout: 240 seconds]
<n88> ph88: cool nick
<ph88> thx :)
_maes_ has joined #ruby
Galgorth has joined #ruby
Galgorth has quit [Client Quit]
bricker has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 245 seconds]
derebos has quit [Ping timeout: 260 seconds]
sharms has quit [Ping timeout: 240 seconds]
<shevy> wtf
<shevy> what's with all those 88 nicks
<alex88> lol
<ph88> Hanmac: yes works now, thx thx
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> Hanmac lol I need that
sharms has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
totalmajor has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<shevy> oh interesting
<shevy> .split(' ') is not the same as .split(/ /)
mary5030 has joined #ruby
smathieu has quit [Remote host closed the connection]
<shevy> x = " abc def"
totalmajor has quit [Remote host closed the connection]
<shevy> split ' ' # => ["abc", "def"]
<shevy> .split(/ /) # => ["", "", "", "abc", "def"]
<shevy> hmm I need the leading padding
meatherl_ has quit [Remote host closed the connection]
<apeiros> shevy: I hope it's not what I originally learned 88 to stand for…
<shevy> I don't know what 88 stands for
camilasan has quit [Ping timeout: 252 seconds]
<shevy> I would assume people born 1988
nanoyak has joined #ruby
Virtualize has joined #ruby
<apeiros> >> [nil, *'A'..'Z'][8]
<eval-in> apeiros => "H" (https://eval.in/85089)
drago777 has joined #ruby
<apeiros> shevy: and now twice that character
<shevy> 2H?
<slash_nick> apeiros: that's my understanding too
coca_rails has quit [Remote host closed the connection]
smathieu_ has joined #ruby
<slash_nick> shevy: HH
totalma__ has joined #ruby
<apeiros> no, HH, short for "Heil Hitler", a neo-nazi greeting
<shevy> hey slasher
<shevy> aaaah
totalmaj_ has quit [Ping timeout: 246 seconds]
<apeiros> (or just nazi greeting, actually)
sharms has quit [Ping timeout: 240 seconds]
smathieu_ has quit [Read error: No buffer space available]
meatherly has joined #ruby
croaky has joined #ruby
smathieu has joined #ruby
jmo has joined #ruby
sharms has joined #ruby
tannerburson has quit [Quit: tannerburson]
allsystemsarego has quit [Quit: Leaving]
Underbyte has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
g0bl1n has joined #ruby
Kricir has joined #ruby
jmo has quit [Ping timeout: 264 seconds]
ganesh has quit [Quit: Konversation terminated!]
Guedes0 has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<Hanmac> yeah we still have a little nazi problem in germany ... but hopefuly the party gets in the next votings under 5% (you need >5% to get into the goverment) ... currently there are some trails against member of this party because the stole goverment money and didnt paid the bills ... otherwise they still try to forbit this nazi party ... but they didnt manage to do that
camilasan has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
Guedes0 has quit [Client Quit]
drago777 has quit [Ping timeout: 240 seconds]
DGuedes has joined #ruby
meatherly has joined #ruby
DrShoggoth has joined #ruby
r0bby_ is now known as robbyoconnor
croaky has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Max SendQ exceeded]
LinearInterpol has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
subbyyy has joined #ruby
ambushsabre has quit [Quit: rip]
croaky has joined #ruby
<shevy> Hanmac criminal incompetence ;)
drago777 has joined #ruby
threesome has quit [Ping timeout: 240 seconds]
drago777 has quit [Excess Flood]
smathieu has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
DGuedes is now known as Guedes
drago777 has joined #ruby
smathieu has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
millerti has joined #ruby
Underbyte has joined #ruby
<shevy> hmm
<shevy> how can I split at / /, but exclude start of string ^ ?
<Hanmac> shevy the covernment are only competent in doing something criminal
<millerti> Something weird is going on that I don't understand. I'm creating a hash with initializer like this: fitters = Hash.new { LineFitter.new }
maletor has quit [Quit: Computer has gone to sleep.]
<millerti> When I call methods on objects like this, it's almost as though it's creating a new object each time: fitters[0].add(0,0)
pdtpatr1ck has quit [Ping timeout: 240 seconds]
gregoriokusowski has joined #ruby
motto has joined #ruby
sharms has joined #ruby
<millerti> Yup. That's what it's doing.
diegoviola has quit [Quit: WeeChat 0.4.2]
Guedes has left #ruby ["Saindo"]
Kricir has quit [Ping timeout: 264 seconds]
<Hanmac> millerti: fitters = Hash.new { |hash, key| hash[key]=LineFitter.new }
pdtpatr1ck has joined #ruby
<millerti> Why is it if I access myhash[0] twice, it initializes a new element.
<millerti> Hanmac: Yeah, but isn't the other method supposed to work too? Otherwise, so much for stupid blogs.
smathieu has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
<millerti> Hanmac: Anyhow, your solution fixed it. Thanks!
m8 has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has quit [Read error: Operation timed out]
burlyscudd has joined #ruby
danshultz has joined #ruby
Solnse has quit [Remote host closed the connection]
colonolGron has quit [Ping timeout: 246 seconds]
axl_ has quit [Quit: axl_]
colonolGron has joined #ruby
axl_ has joined #ruby
maletor has joined #ruby
sambao21 has joined #ruby
jimmyy has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
jameshyde1 has joined #ruby
jameshyde1 has quit [Max SendQ exceeded]
drago777 has joined #ruby
shadoi has joined #ruby
Ven-2 has quit [Quit: Wychodzi]
pwh has quit []
cloaked1 has quit [Quit: Page closed]
JoeTheGuest has quit [Ping timeout: 246 seconds]
von___ has quit [Ping timeout: 246 seconds]
ceej has quit [Ping timeout: 246 seconds]
strax has quit [Ping timeout: 246 seconds]
jedimind has quit [Quit: Textual IRC Client: www.textualapp.com]
pwh has joined #ruby
zero7_ has quit [Ping timeout: 260 seconds]
nhmood has quit [Ping timeout: 245 seconds]
IceDragon has quit [Read error: Connection reset by peer]
JoeTheGuest has joined #ruby
machty has quit [Ping timeout: 246 seconds]
mroth has quit [Ping timeout: 272 seconds]
karnowski_ has quit [Ping timeout: 272 seconds]
Zespre has quit [Ping timeout: 272 seconds]
akitada has quit [Ping timeout: 260 seconds]
mtraptor4 has quit [Ping timeout: 246 seconds]
narcan has joined #ruby
antonishen has quit [Ping timeout: 245 seconds]
dekz_ has quit [Ping timeout: 245 seconds]
chuk_ has quit [Ping timeout: 246 seconds]
andrewstewart has quit [Ping timeout: 246 seconds]
ckrailo has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
iaj has quit [Ping timeout: 272 seconds]
dmyers has quit [Ping timeout: 272 seconds]
niftylettuce has quit [Ping timeout: 272 seconds]
wildharvest__ has quit [Ping timeout: 245 seconds]
Asher has quit [Quit: Leaving.]
mtraptor4 has joined #ruby
antonishen has joined #ruby
ggherdov has quit [Ping timeout: 272 seconds]
bedouin has quit [Ping timeout: 246 seconds]
karnowski_ has joined #ruby
Avahey has quit [Ping timeout: 252 seconds]
nhmood_ has joined #ruby
im0b__ has quit [Ping timeout: 245 seconds]
Tranquility_ has quit [Ping timeout: 245 seconds]
zero7_ has joined #ruby
pu22l3r has joined #ruby
dotemacs has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
poikon has quit [Ping timeout: 272 seconds]
Asher has joined #ruby
iaj has joined #ruby
xpirator has quit [Ping timeout: 272 seconds]
axl_ has quit [Quit: axl_]
monkegjinni has joined #ruby
mneorr has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 240 seconds]
frode15243 has quit [Ping timeout: 246 seconds]
wildharvest__ has joined #ruby
ceej has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
drago777 has joined #ruby
Fire-Dragon-DoL has joined #ruby
mneorr has joined #ruby
ambushsabre has joined #ruby
rndstr has quit [Ping timeout: 259 seconds]
gyre007 has quit [Ping timeout: 259 seconds]
niftylettuce has joined #ruby
im0b__ has joined #ruby
olleromo has quit [Ping timeout: 272 seconds]
flowerhack_ has quit [Ping timeout: 272 seconds]
xerxas has quit [Ping timeout: 272 seconds]
blooberr_ has quit [Ping timeout: 272 seconds]
Jakee` has quit [Ping timeout: 272 seconds]
mattmcclure has quit [Ping timeout: 252 seconds]
poikon has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has joined #ruby
akitada has joined #ruby
Avahey has joined #ruby
dmyers has joined #ruby
denysonique_ has quit [Ping timeout: 245 seconds]
ckrailo_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
notbrent__ has quit [Ping timeout: 246 seconds]
yo61 has quit [Ping timeout: 246 seconds]
davorb has quit [Ping timeout: 245 seconds]
RKornmeyer has quit [Ping timeout: 245 seconds]
antonishen has quit [Ping timeout: 264 seconds]
dziga has quit [Ping timeout: 246 seconds]
dotemacs has quit [Ping timeout: 245 seconds]
shaileshg____ has quit [Ping timeout: 245 seconds]
mattmcclure has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
culturelabs has quit [Ping timeout: 272 seconds]
jrhe has quit [Ping timeout: 272 seconds]
yuhsien_ has quit [Ping timeout: 272 seconds]
tommyvyo has quit [Ping timeout: 272 seconds]
xpirator has joined #ruby
pipecloud has quit [Ping timeout: 246 seconds]
yo61 has joined #ruby
olleromo has joined #ruby
antonishen has joined #ruby
lectrick has quit [Ping timeout: 272 seconds]
landon__ has quit [Ping timeout: 246 seconds]
ceej has quit [Ping timeout: 246 seconds]
sharms has joined #ruby
mattyohe has quit [Ping timeout: 246 seconds]
mneorr has quit [Ping timeout: 245 seconds]
octarine has quit [Ping timeout: 260 seconds]
kapowaz__ has quit [Ping timeout: 260 seconds]
mjburgess has quit []
frem has quit [Ping timeout: 259 seconds]
JoeTheGuest has quit [Ping timeout: 246 seconds]
bluehavana has quit [Ping timeout: 246 seconds]
mtraptor4 has quit [Ping timeout: 264 seconds]
joshwines_ has quit [Ping timeout: 272 seconds]
IceDragon has joined #ruby
ambushsabre has quit [Ping timeout: 264 seconds]
landon__ has joined #ruby
dotemacs has joined #ruby
[0x1a]_ has quit [Ping timeout: 245 seconds]
garndt has quit [Ping timeout: 245 seconds]
ziyadb has quit [Ping timeout: 246 seconds]
dnyy has quit [Ping timeout: 272 seconds]
dmoe has quit [Ping timeout: 272 seconds]
notbrent__ has joined #ruby
nism has quit [Quit: Leaving]
alol has quit [Ping timeout: 245 seconds]
machuga is now known as machuga|away
moeSeth_ has quit [Ping timeout: 272 seconds]
mostlybadfly has quit [Ping timeout: 259 seconds]
ggherdov has joined #ruby
bricker`work has quit [Quit: leaving]
JoeTheGuest has joined #ruby
[Neurotic] has quit [Ping timeout: 272 seconds]
jpinnix_ has quit [Ping timeout: 272 seconds]
garndt has joined #ruby
Jakee` has joined #ruby
RKornmeyer has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
BRMatt has quit [Ping timeout: 246 seconds]
olleromo has quit [Ping timeout: 246 seconds]
culturelabs has joined #ruby
mtraptor4_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
joshwines_ has joined #ruby
ceej has joined #ruby
dnyy has joined #ruby
davorb_ has joined #ruby
mostlybadfly has joined #ruby
[0x1a]_ has joined #ruby
moeSeth_ has joined #ruby
CpuID has joined #ruby
dmoe has joined #ruby
drago777 has joined #ruby
[Neurotic] has joined #ruby
BRMatt has joined #ruby
alol has joined #ruby
jpinnix_ has joined #ruby
shaileshg____ has joined #ruby
mattmcclure has quit [Ping timeout: 264 seconds]
zero7_ has quit [Ping timeout: 245 seconds]
mattmcclure has joined #ruby
notbrent__ has quit [Ping timeout: 264 seconds]
olleromo has joined #ruby
zero7_ has joined #ruby
colonolGron has quit [Quit: Lost terminal]
denysonique_ has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
mengu has quit []
timonv has quit [Remote host closed the connection]
nanoyak has joined #ruby
Avahey has quit [Ping timeout: 240 seconds]
gazoombo has quit [Ping timeout: 240 seconds]
dnyy has quit [Ping timeout: 264 seconds]
RKornmeyer has quit [Ping timeout: 264 seconds]
yo61 has quit [Ping timeout: 264 seconds]
olleromo has quit [Ping timeout: 245 seconds]
sharms has joined #ruby
poikon has quit [Ping timeout: 246 seconds]
ckrailo_ has quit [Ping timeout: 246 seconds]
niftylettuce has quit [Ping timeout: 246 seconds]
moeSeth_ has quit [Ping timeout: 246 seconds]
wildharvest__ has quit [Ping timeout: 246 seconds]
dogweath_ has joined #ruby
zero7_ has quit [Ping timeout: 264 seconds]
dmoe has quit [Ping timeout: 246 seconds]
xpirator has quit [Ping timeout: 246 seconds]
landon__ has quit [Ping timeout: 246 seconds]
culturelabs has quit [Ping timeout: 245 seconds]
guilleiguaran has quit [Ping timeout: 246 seconds]
ceej has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
jpinnix_ has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
[0x1a]_ has quit [Ping timeout: 240 seconds]
culturelabs has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Quit: Leaving.]
dogweather has quit [Read error: Operation timed out]
Avahey has joined #ruby
dioms_ has quit [Read error: Connection reset by peer]
Brolen has quit [Remote host closed the connection]
drago777 has joined #ruby
burlyscudd has joined #ruby
dmyers has quit [Ping timeout: 240 seconds]
RKornmeyer has joined #ruby
dioms_ has joined #ruby
ddv has joined #ruby
moeSeth_ has joined #ruby
ckrailo_ has joined #ruby
wildharvest__ has joined #ruby
ceej has joined #ruby
zero7_ has joined #ruby
jpinnix_ has joined #ruby
adambeynon has quit [Ping timeout: 245 seconds]
dmoe has joined #ruby
xpirator has joined #ruby
dmyers has joined #ruby
davorb_ has quit [Ping timeout: 246 seconds]
landon__ has joined #ruby
ziyadb has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
itamaryu has quit [Ping timeout: 260 seconds]
Bumptious has quit [Read error: Connection reset by peer]
yo61 has joined #ruby
guilleiguaran has joined #ruby
poikon has joined #ruby
Bumptious has joined #ruby
mneorr has joined #ruby
[0x1a]_ has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
colonolGron has joined #ruby
nhmood_ has quit [Ping timeout: 240 seconds]
geggam has quit [Ping timeout: 246 seconds]
dnyy has joined #ruby
BRMatt has quit [Ping timeout: 246 seconds]
moeSeth_ has quit [Ping timeout: 246 seconds]
joshwines_ has quit [Ping timeout: 246 seconds]
wildharvest__ has quit [Ping timeout: 240 seconds]
sethen has joined #ruby
itamaryu has joined #ruby
niftylettuce has joined #ruby
mtraptor4_ is now known as mtraptor4
dmyers has quit [Ping timeout: 246 seconds]
mattmcclure has quit [Ping timeout: 246 seconds]
shaileshg____ has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
xpirator has quit [Ping timeout: 245 seconds]
dmoe has quit [Ping timeout: 245 seconds]
Bumptiou_ has joined #ruby
robmozart has quit [Ping timeout: 246 seconds]
yo61 has quit [Ping timeout: 245 seconds]
figgleberry has quit [Ping timeout: 245 seconds]
geggam has joined #ruby
dblessing has quit [Quit: dblessing]
nhmood_ has joined #ruby
guilleiguaran has quit [Ping timeout: 264 seconds]
xpirator has joined #ruby
BRMatt has joined #ruby
shaileshg____ has joined #ruby
garndt has quit [Ping timeout: 240 seconds]
yo61 has joined #ruby
cj3kim has joined #ruby
figgleberry has joined #ruby
mattmcclure has joined #ruby
poikon has quit [Ping timeout: 246 seconds]
Bumptious has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
joshwines_ has joined #ruby
guilleiguaran has joined #ruby
garndt has joined #ruby
dotemacs has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 264 seconds]
zero7_ has quit [Ping timeout: 264 seconds]
itamaryu has quit [Ping timeout: 240 seconds]
ggherdov has quit [Ping timeout: 240 seconds]
[0x1a]_ has quit [Ping timeout: 245 seconds]
mtraptor4 has quit [Ping timeout: 245 seconds]
drago777 has joined #ruby
coffeina has joined #ruby
itamaryu has joined #ruby
Asher has quit [Quit: Leaving.]
poikon has joined #ruby
dnyy has joined #ruby
mtraptor4_ has joined #ruby
moeSeth_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Virtualize has quit [Quit: Leaving...]
g0bl1n has quit [Read error: Operation timed out]
mansi has joined #ruby
landon__ has quit [Ping timeout: 240 seconds]
Avahey has quit [Ping timeout: 245 seconds]
malcolmva has quit [Ping timeout: 260 seconds]
ggherdov has joined #ruby
totalma__ has quit [Remote host closed the connection]
jmimi1 has joined #ruby
landon__ has joined #ruby
zero7_ has joined #ruby
RKornmeyer has quit [Ping timeout: 246 seconds]
guilleiguaran has quit [Ping timeout: 246 seconds]
[0x1a]_ has joined #ruby
jmimi has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
RKornmeyer has joined #ruby
Avahey has joined #ruby
guilleiguaran has joined #ruby
medecau has joined #ruby
jmimi1 is now known as jmimi
dnyy has quit [Ping timeout: 264 seconds]
skulker has joined #ruby
workmad3 has joined #ruby
<WJW> millerti, see whether the doc for Hash.new says that if you pass a block, it holds that block and evaluates it every time.
<medecau> Hi, I'm trying to understand what is going on here: https://github.com/jordansissel/ruby-grok/blob/master/patterns/pure-ruby/base
<medecau> I don't know any ruby so this is a bit over my head
mattmcclure has quit [Ping timeout: 246 seconds]
culturelabs has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
dnyy has joined #ruby
<medecau> mainly I am trying to figure out how those patterns are being loaded into memory and wondering if this is ruby only
<pontiki> nothing is going on there except a bunch of constants are getting set
landon__ has quit [Ping timeout: 245 seconds]
zero7_ has quit [Ping timeout: 245 seconds]
drago777 has quit [Ping timeout: 240 seconds]
<shevy> medecau this is not ruby
interactionjaxsn has quit [Read error: Operation timed out]
<WJW> Looks like a grammar for some lexer.
<medecau> shevy: ok, that clears out some of the doubt
<shevy> yeah
<shevy> I think it is something for some regex thingy
blandflakes has quit [Quit: Page closed]
<medecau> shevy: yes, it's called grok
culturelabs has joined #ruby
<shevy> DATA .*?
<shevy> GREEDYDATA .*
<medecau> pretty neat for what I understand
landon__ has joined #ruby
sailias has quit [Read error: Connection reset by peer]
<shevy> dunno
<shevy> I hate regexes
axl_ has quit [Quit: axl_]
<shevy> there is no real beauty in them!
<medecau> my question is how it is being read
moeSeth_ has quit [Ping timeout: 264 seconds]
zipper has quit [Ping timeout: 260 seconds]
<shevy> regex?
ckrailo_ has quit [Ping timeout: 245 seconds]
<medecau> no, just these files
<WJW> medecau, see where the filename is mentioned elsewhere in the code.
guilleiguaran has quit [Ping timeout: 246 seconds]
karnowski_ has quit [Ping timeout: 246 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> well... File.readlines('your_file').map {|entry| entry.split(' ') }
<shadoi> medecau: This is where that file gets parsed: https://github.com/jordansissel/ruby-grok/blob/master/lib/grok-pure.rb#L65
<shevy> cool shadoi found it
<medecau> WJW: seems to only be used once more but I don't understand how it's used
drago777 has joined #ruby
alol has quit [Ping timeout: 264 seconds]
moeSeth_ has joined #ruby
<WJW> Next step is to look for docs for the package that's reading it.
nhmood_ has quit [Ping timeout: 246 seconds]
xpirator has quit [Ping timeout: 246 seconds]
karnowski_ has joined #ruby
<medecau> shadoi: thanks, that's the defenition I guess
mattyohe has joined #ruby
<pontiki> what are you using this for, medecau ?
alol has joined #ruby
<medecau> pontiki: I want to make use of theses files in a different implementation
cameronbarton has joined #ruby
<medecau> I mean to use it for a python lib
IceDragon_ has joined #ruby
Kricir has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
[0x1a]_ has quit [Ping timeout: 245 seconds]
<medecau> but I came here hoping you could help me understand the ruby parts
kirun has quit [Quit: Client exiting]
<pontiki> what does it do?
ckrailo_ has joined #ruby
fixl has joined #ruby
tropicalmug has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
niftylettuce has quit [Ping timeout: 264 seconds]
nhmood_ has joined #ruby
IceDragon_ is now known as IceDragon
<medecau> pontiki: the lib I intend to write?
cescalante is now known as ce_afk
baordog_ has quit [Remote host closed the connection]
RKornmeyer has quit [Ping timeout: 240 seconds]
<pontiki> or the one you are drawing from
<WJW> No, the one you are looking at.
rickruby has quit [Read error: Connection reset by peer]
<pontiki> either/both
moeSeth_ has quit [Ping timeout: 245 seconds]
ddv has quit [Ping timeout: 245 seconds]
culturelabs has quit [Ping timeout: 246 seconds]
Guest85414______ has quit [Ping timeout: 246 seconds]
BRMatt has quit [Ping timeout: 240 seconds]
geggam has quit [Quit: Leaving]
rickruby has joined #ruby
poguez has quit [Ping timeout: 272 seconds]
HashNuke_ has quit [Ping timeout: 272 seconds]
<medecau> grok provides short and tested patterns for different patterns
bklane has joined #ruby
landon__ has quit [Ping timeout: 245 seconds]
dogweath_ has quit [Remote host closed the connection]
<medecau> what am I saying?
dnyy has quit [Ping timeout: 240 seconds]
itamaryu has quit [Ping timeout: 240 seconds]
[Neurotic] has quit [Ping timeout: 240 seconds]
joshwines_ has quit [Ping timeout: 246 seconds]
<pontiki> i have no idea
mtraptor4_ has quit [Ping timeout: 246 seconds]
<bklane> Looking at different ways of validating a website field, HTTP or URI but they all seem overly complex, anyone know a simpler way?
dogweather has joined #ruby
<pontiki> bklane: the URI module is made for that
RubyRonin has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
LinearInterpol has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
<bklane> it just fails instead of nil, so just need to do rescue I guess
<medecau> basically it seems to give you easier ways of doing regex matches without having to write regex patterns
platzhirsch has joined #ruby
<platzhirsch> peng.
nowthatsamatt has quit [Quit: nowthatsamatt]
razibog has quit [Quit: Leaving.]
danshultz has quit [Remote host closed the connection]
mtraptor4_ has joined #ruby
moeSeth_ has joined #ruby
BRMatt has joined #ruby
guilleiguaran has joined #ruby
landon__ has joined #ruby
itamaryu has joined #ruby
mary5030 has quit [Remote host closed the connection]
RKornmeyer has joined #ruby
ggherdov has quit [Ping timeout: 246 seconds]
poikon has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
ambushsabre has joined #ruby
<shevy> pong.
culturelabs has joined #ruby
joshwines_ has joined #ruby
Guest85414______ has joined #ruby
poikon has joined #ruby
dogweath_ has joined #ruby
dogweather has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
alex88 has quit [Quit: Leaving...]
sayan has joined #ruby
ambushsabre has quit [Ping timeout: 240 seconds]
<shadoi> Grok is basically about producing filters for log files, it gives you a sort of menu of common filters, and allows you to define new ones that aren't language specific.
ceej has quit [Ping timeout: 246 seconds]
m00nlight_ is now known as m00nlight
drago777 has joined #ruby
<shadoi> ie. "apache logs 3rd field == IP address" or whatever
Guest85414______ has quit [Ping timeout: 245 seconds]
culturelabs has quit [Ping timeout: 264 seconds]
ambushsabre has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
Guest85414______ has joined #ruby
Jakee` has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
jameshyde1 has joined #ruby
colonolGron has quit [Quit: Lost terminal]
geggam has joined #ruby
Jakee` has joined #ruby
jpinnix_ has quit [Ping timeout: 245 seconds]
shedd has quit [Remote host closed the connection]
ceej has joined #ruby
sayan has quit [Excess Flood]
dogweath_ has quit []
CpuID has quit [Quit: This computer has gone to sleep]
ggherdov has joined #ruby
coca_rails has joined #ruby
sayan has joined #ruby
niftylettuce has joined #ruby
w_alexus has quit [Read error: Operation timed out]
ace_striker has joined #ruby
coca_rails has quit [Remote host closed the connection]
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
momomomomo has quit [Quit: momomomomo]
cgcardona_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
Guest77847 has quit [Read error: Operation timed out]
flame_ has quit [Quit: Computer has gone to sleep.]
culturelabs has joined #ruby
jameshyde1 has quit [Ping timeout: 246 seconds]
jpinnix_ has joined #ruby
Guest14883 has joined #ruby
<WJW> This is the second time in the last couple of days someone wanted to read logs, but the other time, it was chat logs.
fedesilva has joined #ruby
<cgcardona_> hi, i'm using the encryptor gem (https://github.com/attr-encrypted/encryptor) to encrypt some auth and refresh tokens. I'm then saving the encrypted tokens, salt, and initilization_vector to a postgres db. However when I try to decrypt I'm getting the following error: 'OpenSSL::Cipher::CipherError (wrong final block length)'
flame_ has joined #ruby
<cgcardona_> i think it has to do with the initialization vector coming back as binary- what data format should I store it in?
sharms has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
freebs has quit [Quit: Leaving.]
LinearInterpol has quit [Read error: Connection reset by peer]
drago777 has joined #ruby
LinearInterpol has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
enebo has quit [Quit: enebo]
<WJW> cgcardona_, what formats are you trying now?
grep_awesome is now known as grep_away
fedesilv_ has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
tannerburson has joined #ruby
meatherly has quit [Remote host closed the connection]
<cgcardona_> I'm storing it as binary now. and i'm generating it w/ `iv = OpenSSL::Cipher::Cipher.new('aes-256-cbc').random_iv`
meatherly has joined #ruby
fedesilva has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<WJW> cgcardona_, do the docs for postgres say that binary format could pad to some length?
bklane has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
claymore has quit [Quit: Leaving]
CpuID has joined #ruby
grieg has joined #ruby
bklane has joined #ruby
<WJW> cgcardona_, for testing purposes, try storing on a file.
andrewstewart has joined #ruby
delinquentme has joined #ruby
<WJW> cgcardona_, or just try storing, reading back, and comparing to what you thought you stored; that's even easier.
aryaching has quit [Ping timeout: 246 seconds]
bklane_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 246 seconds]
<shevy> var = !var
<shevy> that acts like a toggle from true to false and from false to true, right?
cameronbarton has joined #ruby
<WJW> shevy, yes.
Kricir has quit [Ping timeout: 246 seconds]
<shevy> cool
<delinquentme> whats a really simple blog system that I can run off github?
<shevy> you can't imagine how awful I wrote ruby things 6 years ago
<WJW> shevy, good software engineering avoids togglese.
<delinquentme> simpler than jekyll
<WJW> toggles
<shevy> WJW how do you provide commandline options that a user can overrule/change?
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
drago777 has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
<WJW> shevy, do you define the options, or are you implementing options someone else defines?
klaut has quit [Remote host closed the connection]
Azure has quit [Quit: My MBP went to sleep.]
<shevy> yeah, I define the options, all flags/options that the script can respond to. Most of the time from the commandline, sometimes directly from within other scripts
mansi has quit [Remote host closed the connection]
byprdct has quit [Ping timeout: 260 seconds]
<WJW> So make each option mean something, and in your code, interpret that meaning by setting flags and responding to how they are set.
<shevy> This script generates some images, and can also generate webpages. Sometimes a user may want to do both, sometimes only one of these two
mansi has joined #ruby
drago777 has joined #ruby
SHyx0rmZ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<WJW> shevy, some writers in this chat channel have mentioned some package that helps parse command line options.
tannerburson has quit [Quit: tannerburson]
mansi has joined #ruby
skulker has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
Azure has joined #ruby
mikemac has quit [Ping timeout: 265 seconds]
<terrellt> Co-workers use docopts for CLI.
<terrellt> delinquentme: ...HTML?
awestroke has quit [Remote host closed the connection]
<shevy> guys
<shevy> would you write it "hardcoded" or "hard-coded"?
Kricir has joined #ruby
figgleberry has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
freebs has joined #ruby
<terrellt> shevy: Would you write it as color or colour?
<WJW> I've done both today.
<shevy> well colour :(
madb055 has quit [Read error: Connection reset by peer]
<shevy> but only because I was taught british english in school, the rest of the world uses color
<terrellt> Well, there you go, write it as you wish.
shadoi1 has joined #ruby
klaut has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
<WJW> Also, "hard coded".
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharms has joined #ruby
<WJW> class BiblPageHardcoding; ...; end
<shevy> hmm
Tranquility_ has joined #ruby
<shevy> the ' ' disturbs me more than the other two variants
drago777 has quit [Ping timeout: 240 seconds]
<shevy> curious that I actually never see soft coded or softcoded or soft-coded
<WJW> I guess soft is the default.
ssvo has quit [Quit: Lost terminal]
madb055 has joined #ruby
skulker has joined #ruby
shedd has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
hololeap has joined #ruby
shedd has quit [Read error: Connection reset by peer]
<WJW> "tyre", "boot", "pressurise".
shedd has joined #ruby
centipedefarmer has joined #ruby
MattStratton has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
<WJW> British say "in three hours' time"; US say "in three hours".
drago777 has joined #ruby
skulker has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
havenwood has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
Virtualize has joined #ruby
Virtualize has quit [Read error: Connection reset by peer]
gregoriokusowski has joined #ruby
ambushsabre has quit [Quit: rip]
sharms has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
jmo has joined #ruby
<shevy> hmm another question
spider-mario has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<shevy> is there like a system in ruby based on hooks where you specify that certain methods must always be called when before or with other methods, other than specifying these inside of the method at hand
emocakes has joined #ruby
<WJW> Rails does that.
<WJW> or more specifically Active Record.
breakingthings has quit []
<WJW> but it's not a general facility, that I know of.
<terrellt> shevy: wat
motto has quit [Quit: Sto andando via]
bklane_ has left #ruby ["Leaving..."]
drago777 has quit [Ping timeout: 240 seconds]
ambushsabre has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
<WJW> Active Record: before_save :set_blah_cache
flame_ has quit [Quit: Computer has gone to sleep.]
banghouse has quit [Remote host closed the connection]
<shevy> terrellt hmm
<shevy> right now I do things like that
<shevy> def foo
<shevy> bar
<shevy> inside of bar, I always call ble
drago777 has joined #ruby
medecau has quit [Quit: medecau]
<shevy> now when there is a lot of code, with lots of methods, lots of classes, I lose track
reset has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
virt|away has joined #ruby
phipes has quit []
derebos has joined #ruby
<shevy> I am looking at old code I did and wondering wtf is going on
<shevy> was I drunk
<shevy> did I have a head injury
bentonrr_ has joined #ruby
<shevy> WJW that's an interesting way
Kricir has joined #ruby
shanlar- has joined #ruby
phipes has joined #ruby
<shevy> what does before_save mean here - it means that, before some data is stored into the database, some other action is run?