apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<mwlang> Aaaahhh….method_missing
<mwlang> that would explain why I couldn’t track it down…because its passing any missing methods up to the contained String class instance
<jhass> first 1.8.7 preview is 15 Apr 2008
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
shinobi_one has quit [Ping timeout: 244 seconds]
<zenspider> I'm still taking a guess on that one.
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you're trying to run ruby code written almost 6 months before the first preview
<zenspider> you could test it out in the rails console with tracer
<jhass> and wonder that it breaks
<mwlang> zenspider: I’m pretty sure you’re right…I saw method_missing in ActiveSupport’s multibyte module doing just that.
goodenough has quit [Remote host closed the connection]
<mwlang> tracer?
moritzs has quit [Remote host closed the connection]
nobitanobi has quit []
toretore has quit [Quit: This computer has gone to sleep]
chiramiso has joined #ruby
<mwlang> jhass: ah, I think cart before the horse is indeed the issue.
<mwlang> my main problem is I’m migrating the Rails 1.2 app off an aging Windows server onto a Linux box
<mwlang> the thing’s crashing all the time.
<jhass> kvm a windows 98 in it or something
<zenspider> >> require "tracer"; Tracer.on { "blah".chars }
<eval-in_> zenspider => #0:/tmp/execpad-68bfff997bda/source-68bfff997bda:2::-: require "tracer"; Tracer.on { "blah".chars } ... (https://eval.in/200910)
rubyonrailed has quit []
pietr0 has joined #ruby
<jhass> mwlang: it's probably less of an effort to rewrite the whole thing on rails 4.1 on ruby 2.1
<mwlang> jhass: am going to.
<mwlang> just got the contract, though.
<mwlang> gotta get them stablized.
<zenspider> jhass: that's laughable
hellome has joined #ruby
<jhass> I run archlinux. My tolerance for stuff < 2010 is low :P
Spami has quit [Quit: This computer has gone to sleep]
<zenspider> mwlang: do the tracer bit in rails console with chars undef'd
Phrogz_ has joined #ruby
<mwlang> I’m actually impressed with this app though. Rails 1.2, a couple 100 model classes, several thousand views, 10 million products in their database and its going pretty strong.
<zenspider> the problem is you're changing too many variables at once
freezey has quit [Ping timeout: 260 seconds]
chamblin has quit [Ping timeout: 245 seconds]
<zenspider> windows -> linux + ruby 1.8.6 -> 1.8.7 = disaster
cndiv has quit [Ping timeout: 260 seconds]
<mwlang> zenspider: yeah, true. I figured 1.8.7 was safe, but I may need to back up and get 1.8.6 environment working for real.
<zenspider> but 1.8.6 was a pissy bitch when it came to compiling
<zenspider> if you can get it compiled, great
<mwlang> zenspider: I can get it compiled.
chiramiso has quit [Ping timeout: 272 seconds]
<zenspider> but you might need an old linux :)
<mwlang> I *can’t* get all the gems the app needs compiled.
Insanity133 has joined #ruby
<zenspider> that too
<mwlang> namely the odbc stuff.
Takle has joined #ruby
<mwlang> I can get all the gems working on 1.8.7
<mwlang> but, that’s a crapshoot as its turning out.
niklasb_ has joined #ruby
<mwlang> oh, and phusion passenger only goes back to 1.8.7 and I really, really don’t want to get back into the mongrel/monit nightmare.
<zenspider> class String; undef chars; end; require "tracer"; Tracer.on { "blah".chars }
<zenspider> if it is the method_missing route, then you're prolly fine w/ the undef (for now)
Phrogz_ has quit [Ping timeout: 246 seconds]
xuing has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
odlox has joined #ruby
odlox has quit [Max SendQ exceeded]
Insanity133 has quit [Ping timeout: 244 seconds]
kristofferR has joined #ruby
<zenspider> that's in a rails console with bootstrap done?
thejamespinto has joined #ruby
odlox has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
<mwlang> yup.
xuing has left #ruby [#ruby]
oso96_2000 is now known as oso|away
Takle has quit [Ping timeout: 250 seconds]
<zenspider> huh. I'm a bit stumped then
<zenspider> maybe the map(&:chr) is the best route?
<mwlang> you know what, let me make sure the boot, environment, etc. scripts are solid.
<mwlang> I still suspect everything’s not bootstrapped properly.
justinmburrous has joined #ruby
<zenspider> *nod*
blackmesa has quit [Quit: WeeChat 1.0]
<mwlang> Ok, reading 1.8.7 docs, it looks like String#chars actually does return Enumerable, but all the ActiveSupport code is expecting an array.
willgo has quit [Quit:]
<mwlang> so I ought to be able to remap it like you showed above…. with real_char.to_a
overdamped has joined #ruby
tylersmith has quit [Remote host closed the connection]
RichardLitt has quit [Quit: RichardLitt]
<mwlang> yeah, now that I’m in 1.8.7, class String; alias :real_chars :chars; def chars; bytes.map(&:chr); end; end; "blah".chars => ["b", "l", "a", "h"]
Ankhers has quit [Ping timeout: 264 seconds]
<mwlang> if *only* I had a solid unit test suite on the app. :-p
hooper has quit [Ping timeout: 260 seconds]
jasooon has joined #ruby
jasooon_ has joined #ruby
Trynemjoel has joined #ruby
Trynemjoel has quit [Client Quit]
j_mcnally has quit [Ping timeout: 272 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #ruby
havenwood has joined #ruby
solo_ has joined #ruby
Trynemjoel has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
jasooon_ has quit [Ping timeout: 245 seconds]
jamfade has joined #ruby
Spami has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
spicerack has joined #ruby
thejamespinto has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
niklasb_ has quit [Ping timeout: 240 seconds]
thagomizer has quit [Quit: Leaving.]
<overdamped> I was wondering if there's a well agreed upon decent project that exhibits good object oriented design. I'd like to study it.
jhass is now known as jhass|off
pietr0 has quit [Quit: pietr0]
oo_ has joined #ruby
fgo has quit [Remote host closed the connection]
lewix has joined #ruby
charliesome has joined #ruby
<zenspider> mwlang: you're back on track?
zz_karupa is now known as karupa
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mwlang> zenspider: I think so. I fixed a config/boot.rb that was definitely out of whack. I’m deploying and about to give it a whirl now.
jamfade has quit [Quit: Leaving]
<mwlang> I think recasting the chars Enumerator to Array did the trick, tho.
<zenspider> kk. I'm about to leave for beer && code and I'll be out of the loop. good luck
<zenspider> horrible... but good :)
<mwlang> zenspider: thanks for your help. I don’t jump in IRC often, but I remember jumping in and you helping me about 5 years ago.
<mwlang> so that makes 2 I owe ya.
xcv_ has quit [Remote host closed the connection]
GinoMan has joined #ruby
<havenwood> overdamped: i'm not sure such agreement exists
<mwlang> hehehe. Yeah, I’ll get the folks over the bump here and on to better times down the road
Ankhers has joined #ruby
Trynemjoel2 has joined #ruby
jonmorehouse has quit [Ping timeout: 250 seconds]
bbloom has quit [Quit: Computer has gone to sleep.]
<zenspider> mwlang: PLUS INTEREST ;)
Trynemjoel has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 246 seconds]
Georg3 has quit [Quit: Computer has gone to sleep.]
<havenwood> overdamped: just a random selection, but maybe take a look at jeremyevans/roda, puma/puma, celluloid/reel, patriciomacadden/hobbit, postmodern/spidr
Georg3 has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
Georg3 has quit [Client Quit]
kristofferR has joined #ruby
<mwlang> zenspider: LOL! I’ll send you 3 beers
<mwlang> Terrapin Rye Cubed rocks, btw.
odlox has quit []
<overdamped> havenwood: yeah., I figured, but one could hope right :)
<overdamped> I'll take a look at those. '
charliesome has joined #ruby
<rubie> hi all, is there anyway to evaluate only the letters in this array? ["+", "d", "+", "3", "+", "s", "+"]
fabrice31 has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
<havenwood> rubie: letters like alpha?
<rubie> like, if the letter has a + before and after it will return true
wjimenez5271 has joined #ruby
bricker`work has quit [Ping timeout: 245 seconds]
<havenwood> >> ["+", "d", "+", "3", "+", "s", "+"].grep /\w/
<eval-in_> havenwood => ["d", "3", "s"] (https://eval.in/200917)
t0rc has quit [Quit: WeeChat 1.0.1]
aspires has quit []
<havenwood> rubie: ^ that is just checking for word chars
oo_ has joined #ruby
<havenwood> rubie: maybe say more what you're wanting to do
aspires has joined #ruby
Trynemjoel2 is now known as Trynemjoel
Ankhers has quit [Remote host closed the connection]
mferrier has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<rubie> i need something to iterate over the array
<rubie> when it comes to a letter
<zenspider> each does that
<rubie> check to see if there is a "+" before and after that letter
lukevinc has joined #ruby
<zenspider> didn't we go through this already?
<rubie> and if all the letters have "+" signs before and after them to return true
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> rubie: and return what if it isn't the case?
<rubie> yes but i didn't understand all those regular expressions
<rubie> false
coderdad has joined #ruby
overdamped has quit [Ping timeout: 250 seconds]
<zenspider> you're going about writing an interpreter w/o doing ANY of the steps of writing an interpreter
Ankhers has joined #ruby
Ankhers has quit [Remote host closed the connection]
<zenspider> you should back up and actually think about this.
splud has quit [Quit: splud]
<zenspider> you say this isn't homework, but it is... you're just not in a class
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> this is for you to actually REASON about so you LEARN something.
wjimenez5271 has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
<zenspider> go watch my "Let's write an interpreter!" talk
<zenspider> and then back up on this problem
justinmburrous has quit [Remote host closed the connection]
<mwlang> rubie: definitely start learning reg expressions. they’re used heavily in a lot of ruby code.
<havenwood> rubie: the only regexp i used was a simple one explained in the docs: /\w/
<havenwood> rubie: TL;DR: /\w/ - A word character ([a-zA-Z0-9_])
overdamped has joined #ruby
<havenwood> ["+", "d", "+", "3", "+", "s", "+"].grep /[[:alpha:]]/
<zenspider> the ruby quickref is also good for that stuff
<havenwood> rubie: ^ #=> ["d", "s"]
mjwhitta has joined #ruby
oo_ has quit [Remote host closed the connection]
<solo_> Anyone ran into issues with heroku and ruby's OpenSSL library?
<havenwood> rubie: consider what the result of the following would be?: ["+", "d", "+", "3", "+", "s", "+"].map { |char| char != "+" }
mjwhitta has left #ruby [#ruby]
<rubie> would be ["d","3","s"]
<zenspider> no
<zenspider> what's the method?
<rubie> map
<zenspider> what's map do?
lukeholder has joined #ruby
dorei has quit []
lolmaus has joined #ruby
ephemerian has quit [Quit: Leaving.]
<rubie> returns an array
lukeholder has quit [Max SendQ exceeded]
nhhagen has joined #ruby
lukeholder has joined #ruby
aspires has quit []
<rubie> (if you give it a block)
lukeholder has quit [Max SendQ exceeded]
mikeg has quit [Remote host closed the connection]
lukeholder has joined #ruby
<rubie> so it returns an enumerator array?
lukeholder has quit [Max SendQ exceeded]
endash has quit [Quit: endash]
aboudreault has quit [Ping timeout: 245 seconds]
lukeholder has joined #ruby
Fezzler has joined #ruby
oo_ has joined #ruby
jonmorehouse has joined #ruby
<rubie> thats where im at
<rubie> a = [ "a", "b", "c", "d" ] a.map! {|x| x + "!" } a #=> [ "a!", "b!", "c!", "d!" ]
<rubie> why does the one before return [true, false, etc.]
mikeg has joined #ruby
<havenwood> rubie: "Creates a new array containing the values returned by the block."
<havenwood> rubie: What is the value returned by the block?
<rubie> ahh
nhhagen has quit [Ping timeout: 250 seconds]
bricker`work has joined #ruby
sevenseacat has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
gigetoo has joined #ruby
aboudreault has joined #ruby
shinobi_one has joined #ruby
<rubie> [false, true, false, true, false, true, false] so can you evaluate this array to see if a true is surrounded by two false?
skammer has quit [Ping timeout: 272 seconds]
larissa has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
hollyw00d_ has joined #ruby
tectonic has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has joined #ruby
hollyw00d_ has left #ruby [#ruby]
<sevenseacat> .each_with_index and then use the index to get the previous/next value ?
shinobi_one has quit [Ping timeout: 244 seconds]
chiramiso has joined #ruby
charliesome has quit [Quit: zzz]
ndrei has joined #ruby
mary5030 has quit [Remote host closed the connection]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has quit [Ping timeout: 272 seconds]
davispuh has quit [Ping timeout: 245 seconds]
zorak8 has joined #ruby
Phrogz_ has joined #ruby
overdamped has quit [Ping timeout: 258 seconds]
chiramiso has quit [Ping timeout: 272 seconds]
shosti has quit [Ping timeout: 272 seconds]
<havenwood> rubie: just to illustrate a couple other methods you could consider using:
<havenwood> >> ["+", "d", "+", "3", "+", "s", "+"].each_cons(3).select { |before, _, after| [before, after].all? { |char| char == "+" } }
<eval-in_> havenwood => [["+", "d", "+"], ["+", "3", "+"], ["+", "s", "+"]] (https://eval.in/200922)
overdamped has joined #ruby
<rubie> thanks for the help, i'll look those up as im reading the documentation more carefully
<eam> >> [false, true, false, true, false, true, false].map(&:to_s).join.match(/falsetruefalse/) ? true : false
<eval-in_> eam => true (https://eval.in/200923)
overdamped has left #ruby [#ruby]
<rubie> eam that makes sense to me
axl_ has joined #ruby
<eam> I guess it's more ruby-ish to write
<eam> >> !![false, true, false, true, false, true, false].map(&:to_s).join.match(/falsetruefalse/)
<eval-in_> eam => true (https://eval.in/200924)
jasooon has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
overdamped has joined #ruby
Phrogz_ has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Remote host closed the connection]
jasooon_ has joined #ruby
Mso150 has joined #ruby
spyderman4g63 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Wolland_ has joined #ruby
emmesswhy has joined #ruby
caustic has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
spyderman4g63 has quit [Ping timeout: 250 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
Wolland has quit [Ping timeout: 272 seconds]
Tricon has quit [Quit: Leaving...]
skarn has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
justinmburrous has joined #ruby
skolman_ has joined #ruby
bbloom has joined #ruby
fold has quit [Quit: WeeChat 0.4.0]
fold has joined #ruby
pwh has quit []
zcreative has joined #ruby
mastr_bennett[x] has joined #ruby
skarn has joined #ruby
jehosogo has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pwh has joined #ruby
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ybit is now known as heath
aleatorik has joined #ruby
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
krisquigley has joined #ruby
triple_b has joined #ruby
wjimenez5271 has joined #ruby
pgba has joined #ruby
AtumT has quit [Remote host closed the connection]
<rubie> so i was going through the documentation and came across this example
msmith has joined #ruby
<rubie> a = [1,2,3] e = a.to_enum p e.next #=> 1
<rubie> except it creates an error, anyone know why
<rubie> a = [1,2,3]
<rubie> e = a.to_enum
<rubie> p e.next
pgba has left #ruby [#ruby]
GinoMan has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
WormDr1nk has joined #ruby
msmith has quit [Read error: Connection reset by peer]
msmith_ has joined #ruby
caustic has quit []
eat_multi has quit [Quit: leaving]
mferrier has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
mferrier has joined #ruby
WormDrink has quit [Ping timeout: 260 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
pr00t has quit [Remote host closed the connection]
duncannz has joined #ruby
bricker`work has quit [Ping timeout: 272 seconds]
boombadaroomba has joined #ruby
jgrevich_ has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
Mso150 has quit [Ping timeout: 245 seconds]
bricker`work has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
overdamped has quit [Ping timeout: 244 seconds]
Mso150 has joined #ruby
mferrier has quit [Ping timeout: 245 seconds]
coderdad has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 245 seconds]
mikepack_ has joined #ruby
tylersmith has joined #ruby
mikepack_ has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 260 seconds]
agjacome has quit [Quit: leaving]
duncannz has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
duncannz has joined #ruby
mikepack has quit [Ping timeout: 250 seconds]
KC9YDN has quit [Ping timeout: 240 seconds]
enamurium_lorem has joined #ruby
peterhu has quit [Quit: leaving]
Mso150_a has joined #ruby
Mso150 has quit [Ping timeout: 245 seconds]
jasooon has quit [Ping timeout: 240 seconds]
thisislulu has joined #ruby
mikeg has quit [Ping timeout: 258 seconds]
jasooon_ has quit [Ping timeout: 260 seconds]
<havenwood> rubie: What error are you getting?
<havenwood> >> a = [1,2,3]; e = a.to_enum; p e.next
<eval-in_> havenwood => 1 ... (https://eval.in/200968)
<rubie> (eval):14: (eval):14:in `next': ./generator.rb:255: syntax error, unexpected kDO_COND, expecting kEND (SyntaxError) ./generator.rb:276: syntax error, unexpected kEND, expecting $end from (eval):14
gccostabr has quit [Quit: ZZZzzz…]
<rubie> running in http://repl.it/
bmurt has quit []
Avahey has joined #ruby
peterhu has joined #ruby
bmurt has joined #ruby
sinkensabe has joined #ruby
coderdad has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
Mso150_a has quit [Ping timeout: 260 seconds]
RichardLitt has joined #ruby
solo_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jonmorehouse has quit [Ping timeout: 250 seconds]
tonybird has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
nettoweb has joined #ruby
bricker`work has quit [Ping timeout: 246 seconds]
nettoweb has quit [Max SendQ exceeded]
codeFiend has quit [Quit: codeFiend]
nettoweb has joined #ruby
skammer has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 272 seconds]
deric_skibotn has quit [Ping timeout: 260 seconds]
Tricon has joined #ruby
ejnahc has quit [Remote host closed the connection]
Insanity133 has joined #ruby
enamurium_lorem has left #ruby ["Leaving"]
mikeg has joined #ruby
skolman has quit [Ping timeout: 272 seconds]
tokik has joined #ruby
wallerdev has quit [Quit: wallerdev]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
badhatter has quit [Read error: Connection reset by peer]
ejnahc has joined #ruby
shinobi_one has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
Insanity133 has quit [Ping timeout: 260 seconds]
tyll_ has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solo_ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
Phrogz_ has joined #ruby
chiramiso has joined #ruby
one_egg_each has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
one_egg_each has quit [Client Quit]
tyll has quit [Ping timeout: 272 seconds]
Phrogz_ has quit [Read error: No route to host]
Phrogz_ has joined #ruby
Phrogz_ has quit [Changing host]
Phrogz_ has joined #ruby
sevenseacat has quit [Ping timeout: 258 seconds]
sdwrage has joined #ruby
nettoweb has quit [Ping timeout: 245 seconds]
chiramiso has quit [Ping timeout: 272 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
jamz has joined #ruby
tectonic has joined #ruby
triple_b has joined #ruby
jehosogo has joined #ruby
jonmorehouse has joined #ruby
nettoweb has joined #ruby
amclain has joined #ruby
hamakn has joined #ruby
zcreative has quit [Quit: Lingo - http://www.lingoirc.com]
jehosogo has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
segmond has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
echevemaster has quit [Quit: Leaving]
Hobogrammer has quit [Ping timeout: 272 seconds]
jonmorehouse has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
charliesome has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
Georg3 has joined #ruby
awc737 has joined #ruby
awc737 has quit [Max SendQ exceeded]
hackeron has quit [Ping timeout: 245 seconds]
mferrier has joined #ruby
hackeron has joined #ruby
thomasxie has joined #ruby
gsd has joined #ruby
fabrice31 has joined #ruby
jasooon has joined #ruby
jasooon_ has joined #ruby
<rubie> ran it threw my console and it worked, must be an issue with the iste
Georg3 has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
gccostabr has joined #ruby
gsd has quit [Client Quit]
jasooon_ has quit [Client Quit]
nonmadden has joined #ruby
jonmorehouse has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
ghr has joined #ruby
mikeg has quit [Ping timeout: 258 seconds]
jasooon has quit [Quit: leaving]
fabrice31 has quit [Ping timeout: 272 seconds]
yetanotherdave has joined #ruby
nonmadden has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 272 seconds]
bwilson has quit [Quit: bwilson]
jamz has quit []
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #ruby
awc737 has joined #ruby
krz has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
gccostabr has joined #ruby
icebourg has joined #ruby
icebourg has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gkra has quit [Remote host closed the connection]
icebourg_ has joined #ruby
icebourg has quit [Read error: Connection reset by peer]
fgo has joined #ruby
Killerkeksdose has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
Killerkeksdose has joined #ruby
comma8 has quit [Remote host closed the connection]
fgo has quit [Read error: No route to host]
fgo has joined #ruby
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
klmlfl has quit [Read error: Connection reset by peer]
svexican has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reset has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
russt has joined #ruby
klmlfl has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
skammer has joined #ruby
nhhagen has quit [Ping timeout: 244 seconds]
magic has joined #ruby
narcan has joined #ruby
solo_ has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
svexican has left #ruby ["WeeChat 1.0.1"]
havenwood has joined #ruby
klmlfl has quit [Ping timeout: 272 seconds]
skammer has quit [Ping timeout: 260 seconds]
shinobi_one has joined #ruby
sevenseacat has joined #ruby
arescorpio has joined #ruby
emocakes has quit []
havenwood has quit [Ping timeout: 264 seconds]
chiramiso has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
braincra- has quit [Quit: bye bye]
gsd has joined #ruby
GluonQuark has quit [Quit: Leaving]
chiramiso has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
havenwood has joined #ruby
gsd has quit [Ping timeout: 272 seconds]
Phrogz_ has quit [Remote host closed the connection]
dnordstrom has joined #ruby
Phrogz_ has joined #ruby
zlude has joined #ruby
bmurt has quit []
<zlude> Hello guys! I'm learning ruby on rails, and in my source of study i see using capyraba alto, its used in real world? Some projects uses just capybara or capybara + rspec for example?
<sevenseacat> you cant use capybara by itself
krisquigley has joined #ruby
<sevenseacat> most projects that do integration testing would use rspec and capybara both (or minitest and capybara)
<zlude> and tests arw writen after or before code application?
<sevenseacat> generally before is better.
<zlude> Becauase i see more code of inregration test than ruby code in views, models and controllers
<zlude> Its funny haha
<sevenseacat> ...okay?
mary5030 has joined #ruby
iamjarvo has joined #ruby
bbloom has quit [Quit: Computer has gone to sleep.]
<zlude> Thank you! Recommend something for me? Im doing first contacts with rails. Im creating a todo list app with autentication, really trying, :)
krisquigley has quit [Ping timeout: 245 seconds]
jasooon has joined #ruby
simplyaubs has joined #ruby
mferrier has quit [Remote host closed the connection]
simplyaubs has quit [Client Quit]
mlm_ has joined #ruby
jobewan has joined #ruby
Cache_Money has joined #ruby
bmurt has joined #ruby
russt has quit [Quit: russt]
b00stfr3ak has quit [Ping timeout: 272 seconds]
russt has joined #ruby
justinmburrous has quit [Remote host closed the connection]
zlude has quit [Remote host closed the connection]
flowerhack has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thisislulu has quit [Ping timeout: 272 seconds]
mastr_bennett[x] has joined #ruby
justinmburrous has joined #ruby
j_mcnally has joined #ruby
mlm_ has left #ruby [#ruby]
patrick99e99 has joined #ruby
x1337807x has joined #ruby
gsd has joined #ruby
ghr has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
mikeg has joined #ruby
mary5030 has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 258 seconds]
<pontiki> hey hi
sargas has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
aspires has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
thisislulu has joined #ruby
duncannz has quit [Remote host closed the connection]
Mia has joined #ruby
iamdoo2 has joined #ruby
duncannz has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Remote host closed the connection]
goodenough has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
Insanity133 has joined #ruby
flowerhack has quit [Read error: Connection reset by peer]
bmurt has quit []
flowerhack has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
flowerhack has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flowerhack has joined #ruby
nonmadden has joined #ruby
Insanity133 has quit [Ping timeout: 272 seconds]
msmith_ has quit [Remote host closed the connection]
sinkensabe has joined #ruby
icebourg_ has quit []
Fezzler has quit [Quit: Leaving]
pgmcgee has quit [Ping timeout: 260 seconds]
j_mcnally has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
thomasxie has joined #ruby
Tricon has quit [Quit: Leaving...]
pgmcgee has joined #ruby
iliketurtles has joined #ruby
jasooon has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
pwh has quit []
skammer has joined #ruby
ep3static has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
goodenough has quit [Ping timeout: 272 seconds]
elshaka has joined #ruby
bobishh has quit [Ping timeout: 245 seconds]
comma8 has joined #ruby
skammer has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
shinobi_one has joined #ruby
chiramiso has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
abdulsattar has joined #ruby
oo_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
icebourg has joined #ruby
Ruhk has quit []
icebourg has quit [Client Quit]
buub has joined #ruby
chiramiso has quit [Ping timeout: 272 seconds]
bricker`work has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
thisislulu has quit [Ping timeout: 245 seconds]
jasooon has quit [Ping timeout: 246 seconds]
pgmcgee has quit [Ping timeout: 260 seconds]
hiyosi has quit [Ping timeout: 244 seconds]
pgmcgee has joined #ruby
larissa has quit [Quit: Leaving]
Georg3 has joined #ruby
klmlfl has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
klmlfl has joined #ruby
fabrice31 has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
lukevinc has quit [Ping timeout: 264 seconds]
pgmcgee has quit [Ping timeout: 272 seconds]
klmlfl has quit [Remote host closed the connection]
emmesswhy has joined #ruby
Georg3 has quit [Ping timeout: 272 seconds]
pgmcgee has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
aspires has quit []
aspires has joined #ruby
mikepack has joined #ruby
buub has quit [Ping timeout: 272 seconds]
jonmorehouse has joined #ruby
ndrei has joined #ruby
kobain has joined #ruby
kyb3r_ has joined #ruby
dorbronah has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
ghr has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
Georg3 has joined #ruby
jasooon has joined #ruby
justinmburrous has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 260 seconds]
emocakes has joined #ruby
justinmb_ has joined #ruby
webgen has joined #ruby
flowerhack has quit [Read error: Connection reset by peer]
keen___ has joined #ruby
flowerhack has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Georg3 has quit [Ping timeout: 260 seconds]
keen__ has quit [Ping timeout: 245 seconds]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Insanity133 has joined #ruby
MaciejCzyzewski has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
JoshGlzBrk has joined #ruby
dx7 has quit [Remote host closed the connection]
MaciejCzyzewski has quit [Read error: Connection reset by peer]
dx7 has joined #ruby
MaciejCzyzewski has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
msmith has joined #ruby
rubie has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
MaciejCzyzewski has quit [Client Quit]
flowerhack has quit [Ping timeout: 272 seconds]
dx7 has quit [Ping timeout: 250 seconds]
thomasxie has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
iliketurtles has quit [Remote host closed the connection]
iliketurtles has joined #ruby
msmith has quit [Ping timeout: 244 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
sdwrage has joined #ruby
skammer has joined #ruby
mclosson has joined #ruby
tonybird has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xorax has quit [Ping timeout: 272 seconds]
xorax has joined #ruby
skammer has quit [Ping timeout: 258 seconds]
niklasb_ has joined #ruby
aspires has quit []
emocakes has quit []
shinobi_one has joined #ruby
krisquigley has joined #ruby
chiramiso has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
elshaka has quit [Ping timeout: 244 seconds]
coderdad has quit [Remote host closed the connection]
bricker`LA has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
chiramiso has quit [Ping timeout: 260 seconds]
elshaka has joined #ruby
dawkirst has joined #ruby
nonmadden has quit [Remote host closed the connection]
davasaurous has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
justinmb_ has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
<zipper> Why do I have to install bundler as root to get heroku toolbelt? Shouldn't gem install be enough?
<zipper> I added it to PATH btw
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jontmorehouse has joined #ruby
iamdoo2 has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
Phrogz_ has quit []
jonmorehouse has quit [Ping timeout: 260 seconds]
iamdoo2 has joined #ruby
oleo__ has quit [Quit: Verlassend]
ep3static has quit [Quit: WeeChat 0.4.2]
michaeldeol has joined #ruby
iamcyberbird has joined #ruby
arescorpio has quit [Excess Flood]
sinkensabe has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
roberto_ has joined #ruby
roberto_ has quit [Remote host closed the connection]
robertodecurnex has joined #ruby
havenwood has quit []
davasaurous has quit [Remote host closed the connection]
Cache_Money has joined #ruby
froggy__ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo__ has joined #ruby
c107 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
hellangel7 has joined #ruby
froggy_ has quit [Ping timeout: 244 seconds]
Deele has joined #ruby
nonmadden has joined #ruby
ghr has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
anaeem1_ has joined #ruby
slyslick has joined #ruby
boombadaroomba has joined #ruby
webgen has quit [Quit: Leaving]
mikeg has quit [Ping timeout: 246 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
iliketurtles has quit [Quit: zzzzz…..]
ghr has quit [Ping timeout: 272 seconds]
armyriad has quit [Ping timeout: 260 seconds]
sandelius has joined #ruby
armyriad has joined #ruby
mclosson has quit [Read error: Connection reset by peer]
mclosson has joined #ruby
zipper has quit [Ping timeout: 264 seconds]
boombadaroomba has quit [Ping timeout: 258 seconds]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
bbloom has joined #ruby
nrsk has joined #ruby
jasooon has joined #ruby
tagrudev has joined #ruby
RichardLitt has joined #ruby
klmlfl has joined #ruby
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jasooon has quit [Ping timeout: 245 seconds]
Cache_Money has joined #ruby
niklasb_ has quit [Ping timeout: 258 seconds]
Cache_Money has quit [Client Quit]
gccostabr has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
<tagrudev> certainty, ping pong
hooper has joined #ruby
chipotle has joined #ruby
gccostabr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
msmith has joined #ruby
lxsameer has joined #ruby
thomasxie has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
chiramiso has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
mclosson has quit [Ping timeout: 272 seconds]
chipotle has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
msmith has quit [Ping timeout: 260 seconds]
mikeg has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
elshaka has quit [Quit: Saliendo]
skammer has joined #ruby
klaut has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
davasaurous has joined #ruby
starkhalo has quit [Ping timeout: 260 seconds]
ClarusCogitatio has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
amclain has quit [Quit: Leaving]
skammer has quit [Ping timeout: 258 seconds]
badhatter has joined #ruby
badhatter has joined #ruby
havenwood has joined #ruby
codecop has joined #ruby
davasaurous has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
klmlfl has quit [Remote host closed the connection]
Xeago has joined #ruby
duncannz has quit [Remote host closed the connection]
bal has joined #ruby
deed02392 has quit [Ping timeout: 260 seconds]
axl_ has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
duncannz has joined #ruby
caveat- has quit [Ping timeout: 272 seconds]
caveat- has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Darryl has joined #ruby
Macaveli has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has left #ruby [#ruby]
caveat- has quit [Ping timeout: 272 seconds]
dc__ has joined #ruby
ar has left #ruby [#ruby]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Quit: Konversation terminated!]
jxf has quit [Ping timeout: 246 seconds]
n_e_o has joined #ruby
n_e_o has left #ruby ["Leaving"]
mrap has joined #ruby
sinkensabe has joined #ruby
thomasxie has joined #ruby
<mrap> How would one get the binding context of the begin block from the rescue block?
cjk101010_ is now known as cjk101010
Akagi201 has joined #ruby
slyslick has quit [Ping timeout: 258 seconds]
webgen has joined #ruby
russt has quit [Quit: russt]
alem0lars has joined #ruby
chiramiso has quit [Quit: WeeChat 1.0]
willgo has joined #ruby
caveat- has joined #ruby
Xeago has quit [Remote host closed the connection]
narcan has joined #ruby
clauswitt has joined #ruby
mrap has quit [Quit: Textual IRC Client: www.textualapp.com]
kwd_ has joined #ruby
alem0lars has quit [Quit: AFK..]
ht__th has joined #ruby
thomasxie has quit [Quit: Leaving.]
Tomme has joined #ruby
<certainty> tagrudev: yow
Akagi201 has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
ghr has joined #ruby
sgen has quit [Quit: Leaving]
<robert_> hm, so I'm trying to pass an arbitrary format/argument list pair to printf; only it doesn't want to use my *arg_list as the arguments list; it seems to only want to print the array itself and not use the contents of the array for arguments. :/
dawkirst has quit [Remote host closed the connection]
<shevy> can you put an example robert_
b00stfr3ak has joined #ruby
Morkel has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
dx7 has joined #ruby
thisislulu has joined #ruby
<robert_> wow.. that's.. if i use irb it works
<robert_> if I run the application, it complains about trying to convert an array into a string.
nhhagen has joined #ruby
davasaurous has joined #ruby
mijicd has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby
jgrevich has quit [Quit: jgrevich]
mijicd has quit [Client Quit]
robertodecurnex has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
jgrevich has joined #ruby
jgrevich has quit [Client Quit]
Mso150_a has joined #ruby
terlar has joined #ruby
Takle has joined #ruby
fabrice31 has joined #ruby
Xeago has joined #ruby
justinmburrous has quit [Remote host closed the connection]
willgo has quit [Remote host closed the connection]
hooper has quit [Quit: Leaving.]
justinmburrous has joined #ruby
Advocation has joined #ruby
msmith has joined #ruby
krisquigley has joined #ruby
i8igmac has quit [Ping timeout: 258 seconds]
jottr_ has joined #ruby
hmsimha has joined #ruby
User458764 has joined #ruby
Tiberias has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<Hanmac> robert_: maybe different ruby versions?
Takle has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
msmith has quit [Ping timeout: 244 seconds]
<robert_> nope
<robert_> same box.
<froggy__> What library is most common for scraping/parsing webpages?
<robert_> and 2.1.0 is used in both situations.
codecop has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
skammer has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
iamcyberbird has quit [Quit: Lost terminal]
caveat- has quit [Ping timeout: 260 seconds]
Tiberias has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mclosson has joined #ruby
mercwithamouth has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thisislulu has quit [Ping timeout: 272 seconds]
klmlfl has quit [Remote host closed the connection]
<TTilus> pry's show-method saves my day again!
<Hanmac> robert_: can you show us a tiny pastie?
clauswitt has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
<TTilus> <3 banister
thisislulu has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
codecop_ has quit [Read error: Connection reset by peer]
jthomp has quit [Quit: Textual IRC Client: www.textualapp.com]
<robert_> Hanmac: Uhhh.. I'm quite deep into this.. It involves several Thread::Queues and lots of marshaling data between threads so that it's picked up by a singular logging thread.. <_<
hmsimha_ has joined #ruby
mclosson has quit [Ping timeout: 272 seconds]
<Hanmac> robert_: hm i am currently only interestend in the printf part
caveat- has joined #ruby
hmsimha has quit [Ping timeout: 240 seconds]
<robert_> yeah. printf part gets called by the eventlog's.. event loop.. creative, I know. :P
hmsimha_ has quit [Read error: Connection reset by peer]
shinobi_one has joined #ruby
_KaszpiR_ has quit [Read error: Connection reset by peer]
_KaszpiR_ has joined #ruby
<robert_> I should be able to extract it, though.
<Hanmac> hey, better than with me where the most common variable name is tmp ,P
havenwood has quit [Remote host closed the connection]
Tiberias has joined #ruby
<robert_> :p
havenwood has joined #ruby
<robert_> actually, the thread is eventlog_thread :p
sinkensabe has quit [Remote host closed the connection]
Akuma has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
tylersmith has quit [Remote host closed the connection]
Akuma has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
sprihodko has joined #ruby
abuzze has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larsam has joined #ruby
Tiberias has quit [Quit: Tiberias]
Advocation has quit [Quit: Advocation]
<robert_> Hanmac: It works on its own.. Hmm.
<Hanmac> yeah ... you want to work on a problem ... and then it does disappear .. ;P
<Hanmac> but beware, maybe it has "phasing" so it does appear again if you do not look at it ;P
<robert_> Hanmac, "Hey.. My bug went away!" :p
caveat- has quit [Ping timeout: 272 seconds]
<robert_> also, what's with all the winking at me? :p
nonmadden has quit [Read error: Connection reset by peer]
justinmburrous has quit [Remote host closed the connection]
duncannz has joined #ruby
nonmadden has joined #ruby
thisislulu has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
<Hanmac> i thought you might get that "phasing" is a magic reference xD
apeiros has joined #ruby
<robert_> I meant both times. :p
alem0lars has joined #ruby
<robert_> anyway, yeah. "Scotty, very funny.. Now beam back my bug!"
<robert_> :p
User458764 has quit [Ping timeout: 260 seconds]
<Hanmac> we need to wait 20 minutes until wesley find be bug under his chair
abuzze has joined #ruby
mityaz has joined #ruby
caveat- has joined #ruby
sk87 has joined #ruby
justinmburrous has joined #ruby
mikeg has quit [Ping timeout: 260 seconds]
enali has joined #ruby
cndiv has joined #ruby
ghr has joined #ruby
patrick99e99 has joined #ruby
yetanotherdave has quit [Ping timeout: 260 seconds]
Axy has joined #ruby
mkaesz has joined #ruby
tectonic has quit []
Axy has left #ruby [#ruby]
noop has joined #ruby
davasaurous has quit [Ping timeout: 260 seconds]
tskogberg has quit [Ping timeout: 272 seconds]
wpp has joined #ruby
LekeFly has joined #ruby
dangerousdave has joined #ruby
Takle has joined #ruby
tskogberg has joined #ruby
yetanotherdave has joined #ruby
yetanotherdave has quit [Client Quit]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
andrewlio has joined #ruby
jasooon has joined #ruby
bayed has joined #ruby
Wolland_ has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
Wolland has joined #ruby
jontmorehouse has joined #ruby
Macaveli has quit [Remote host closed the connection]
bobishh has joined #ruby
qba73 has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
Insanity133 has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 240 seconds]
cndiv has quit [Ping timeout: 244 seconds]
jontmorehouse has quit [Ping timeout: 272 seconds]
chthon has joined #ruby
jottr_ has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
emrox has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Insanity133 has joined #ruby
chipotle has joined #ruby
msmith has joined #ruby
duncannz has quit [Remote host closed the connection]
<arcsky> hi, i got some issues with stopping ruby. http://pastebin.com/92m0x45t
duncannz has joined #ruby
<arcsky> .ruby.bin what can that be?
caveat- has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
emrox_ has joined #ruby
emrox_ has quit [Max SendQ exceeded]
yfeldblum has quit [Remote host closed the connection]
emrox_ has joined #ruby
emrox_ has quit [Max SendQ exceeded]
<hilake> what version of ruby are you running arcsky
yfeldblum has joined #ruby
msmith has quit [Ping timeout: 260 seconds]
chipotle has quit [Ping timeout: 272 seconds]
emrox_ has joined #ruby
skammer has joined #ruby
emrox has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
justinmburrous has quit [Remote host closed the connection]
<arcsky> shit after kill it my pc are really fast, ruby is very process intensive
mikecmpbll has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lsmola has joined #ruby
<hilake> this is a linux version?
clauswitt has joined #ruby
<arcsky> hilake: yeah
deavid has quit [Ping timeout: 245 seconds]
<arcsky> of course
<hilake> only reason I ask
<hilake> is I came across this article
<apeiros> "ruby is process intensive" wrong. your program is process intensive.
skammer has quit [Ping timeout: 258 seconds]
<apeiros> but yes, assuming sane code, a ruby implementation will use more resources than say a C implementation, for the same task
<hilake> less efficient
<arcsky> apeiros: i got problem with ruby in following programs , Snorby, Banyard2, Metasploit
<arcsky> dont know why dont write in perl or python
caveat- has joined #ruby
<hilake> metasploit may be very CPU intensive
<apeiros> arcsky: the code is out there, go ahead and rewrite it in your favorite language
<arcsky> apeiros: sorry im not any coder
<apeiros> arcsky: then STFU?
<arcsky> apeiros: ok
<Hanmac> apeiros: hihi i heard the main reason why the new windows version is callled "windows 10" and not "windows 9" ;P because some programs still has version.begin_with?("windows 9") to check for 95 and 98 ;P
<apeiros> Hanmac: yeah, heard that too
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<apeiros> 19 and 16 year old code interfering with your software release… not good :)
<Hanmac> the other reason i heard is that "windows 9" spoken "windows Nine" does sound too much after german "Windows, Nein!" or in english: "Windows, No!" ;PP
justinmburrous has joined #ruby
WormDr1nk has quit [Ping timeout: 260 seconds]
<tobiasvl> maybe they're adding kinect commands
<tobiasvl> like "Xbox, go home"
decoponio has joined #ruby
<Hanmac> hm did you guys also hear that David Cameron is against metric system? http://www.theguardian.com/politics/2014/sep/30/david-cameron-schools-should-teach-mainly-in-imperial-measurements
<apeiros> yeah. what a moron.
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
kate_r has joined #ruby
sk87 has joined #ruby
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
<Hanmac> i think its punishment for the scotts that they wanted out of UK ...
roolo has joined #ruby
DaniG2k has joined #ruby
caveat- has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
dangerousdave has joined #ruby
lolmaus has joined #ruby
Advocation has joined #ruby
<TTilus> oh dear god, imperial measures :(
DaniG2k_ has joined #ruby
<tobiasvl> lol does anyone still want that
elaptics`away is now known as elaptics
Advocation has quit [Remote host closed the connection]
havenwood has joined #ruby
dawkirst has joined #ruby
caveat- has joined #ruby
<krz> lets say i was in the method retweets https://github.com/sferik/twitter/blob/master/lib/twitter/rest/tweets.rb how do i get the module name from here? i.e. Twitter::REST::Tweets
tessi_zz is now known as tessi
enali has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
carraroj has joined #ruby
<sevenseacat> self.class ?
<krz> that retertns the class name
<sevenseacat> what class name? youre not in a class
<krz> twitter = Twitter.new(...)
<krz> self.class.name in retweets, returns Twitter
havenwood has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
<sevenseacat> but,,,, nvm
<sevenseacat> forgot who was talking to
dumdedum has joined #ruby
enali has joined #ruby
akkad has quit [Quit: Emacs must have died]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
jack_rabbit has joined #ruby
dx7 has joined #ruby
DaniG2k_ is now known as DaniG2k
Advocation has quit [Client Quit]
Morkel has quit [Quit: Morkel]
workmad3 has joined #ruby
charliesome has quit [Quit: zzz]
dx7 has quit [Ping timeout: 272 seconds]
hilake is now known as YOURNEWNICK
Deejay_ has joined #ruby
YOURNEWNICK is now known as hilake
jack_rabbit has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 272 seconds]
WormDr1nk has joined #ruby
tvw has joined #ruby
doev has joined #ruby
jontmorehouse has joined #ruby
sepp2k has joined #ruby
Mso150_a has quit [Ping timeout: 258 seconds]
abdulsattar has quit [Ping timeout: 246 seconds]
ephemerian has joined #ruby
joast has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
jhass|off has quit [Ping timeout: 250 seconds]
jasooon has joined #ruby
Spami has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
mikepack has quit [Remote host closed the connection]
moritzs has joined #ruby
jobewan has quit [Quit: Leaving]
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
mikepack has joined #ruby
dangerousdave has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
Aaaal has joined #ruby
pierre1_ has joined #ruby
caveat- has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
<krz> what an odd response
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<krz> must be high again
root3d has joined #ruby
root3d has joined #ruby
root3d has quit [Changing host]
mikepack has quit [Remote host closed the connection]
awc737 has joined #ruby
caveat- has joined #ruby
awc737 has quit [Max SendQ exceeded]
* apeiros senses animosities
JCOLE has joined #ruby
* sevenseacat goes back to poking at sybase
ndrei has joined #ruby
* apeiros hands sevenseacat a stick
* apeiros goes back at parsing gov healthcare data
Takle has quit [Remote host closed the connection]
jhass|off has joined #ruby
jhass|off is now known as jhass
noop has quit [Read error: Connection reset by peer]
enali has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
msmith has joined #ruby
<shevy> lol
<shevy> tobiasvl I don't think the suggestion itself is real - that UK dude just runs an anti-EU campaign, so anything he can do to get away with super old nationalism he'll happily do
<tobiasvl> david cameron runs an anti-EU campaign?
Suchit_ has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
alex88 has joined #ruby
<shevy> yeah
<tobiasvl> he's not a federalist for sure
<shevy> "we'll leave the EU!"
<shevy> he runs that loop {} all the time
nfk has quit [Ping timeout: 246 seconds]
<tobiasvl> yeah maybe so
Takle has joined #ruby
<existensil> Threats of succession and the undeserved belief they are better than others in the union. Sounds like UK is a lot like the Texas of EU.
msmith has quit [Ping timeout: 245 seconds]
<tobiasvl> secession*
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl> existensil: haha yeah
<tobiasvl> what do I know, I'm not even in the EU
skammer has joined #ruby
<tobiasvl> we're like … the canada of the EU
workmad3 has quit [Ping timeout: 260 seconds]
<existensil> where is that?
<tobiasvl> Norway
enali has joined #ruby
emocakes has joined #ruby
Suchit_ has quit [Client Quit]
workmad3 has joined #ruby
<existensil> ah, yeah, oil rich and above it all in in geography and geopolitics, and a government generally regarded as non-corrupt and fair. Does sound like Canada.
<Hanmac> shevy & tobiasvl there was also a comment that the commiter says: "it it isnt that all conservatives are dumb in general, but it seems hat dumb persons are conservative in general" ;P
Suchit_ has joined #ruby
emocakes has quit [Client Quit]
<shevy> existensil well the folks from norway speak better english than the french part of Canada does!
<tobiasvl> existensil: exactly! and a lot of free space between people
emrox_ has quit [Ping timeout: 260 seconds]
caveat- has quit [Ping timeout: 272 seconds]
vinleod has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
JCOLE has left #ruby ["Leaving"]
b00stfr3ak has quit [Ping timeout: 258 seconds]
justinmburrous has joined #ruby
emrox has joined #ruby
rdark has joined #ruby
Suchit_ has quit [Client Quit]
skammer has quit [Ping timeout: 272 seconds]
dbugger has joined #ruby
<dbugger> Hi guys. Is there a clean way to turn a scheme-relative URI into a complete URI?
<existensil> dbugger: can you give an example? You may find what you need in URI.join
<existensil> URI.join(absolute_uri, relative_uri)
noop has joined #ruby
<dbugger> I mean turning something like "//www.mysite.com/icon.png" to "http//www.mysite.com/icon.png" (or https, depending the case)
lewix has quit [Remote host closed the connection]
<apeiros> huh? binding.pry throws me into an entirely wrong context? odd…
<existensil> >> URI.join("foo:///", "//bar.com/some/resource").to_s
<eval-in_> existensil => uninitialized constant URI (NameError) ... (https://eval.in/201030)
ndrei has quit [Ping timeout: 245 seconds]
<existensil> >> require 'uri'; URI.join("foo:///", "//bar.com/some/resource").to_s
<eval-in_> existensil => "foo://bar.com/some/resource" (https://eval.in/201032)
emocakes has joined #ruby
<dbugger> existensil: the thing is that I do not know if it is going to be called http or https? Cant rails guess it?
<existensil> you can inspect the env to see which schema the request was made via
<existensil> not really sure what you mean by "guess"
<sevenseacat> guessing is bad
<sevenseacat> mmkay
caveat- has joined #ruby
marr has joined #ruby
<dbugger> Well, maybe I should have used the word "know" :)
<sevenseacat> scheme-relative URIs only make sense when used in a context that already has a scheme
cherwin has joined #ruby
<existensil> request.scheme will tell you the scheme of the current request within your controllers
<existensil> Or you could just do URI.join(root_url, relative_url) and probably get what you want
emocakes has quit [Ping timeout: 246 seconds]
<apeiros> hm, ok, funny. so if I use pry-byebug, binding.pry throws me into the wrong context. curious. ping banister <--
lukeholder has quit [Quit: Textual IRC Client: www.textualapp.com]
<banister> apeiros yeah it's a known bug, ryanf- pinge dhim about it
kyb3r_ has quit [Read error: Connection reset by peer]
stef_204 has joined #ruby
cherwin has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 272 seconds]
sevenseacat has quit [Quit: Leaving.]
<banister> apeiros he's trying to be too clever, he's doing an automatic 'next'
<banister> which is't good IMO
emocakes has joined #ruby
enali has quit [Read error: Connection reset by peer]
LiohAu_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
caveat- has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Quit: Lost terminal]
cherwin has joined #ruby
<pontiki> is there a workaround for that?
AFKGeek has joined #ruby
<apeiros> I threw byebug out of the gemfile
<workmad3> heh
<apeiros> I don't need a debugger much anyway.
<Hanmac> most of my stuff cant be debugged anyway ;P
Suchit_ has joined #ruby
<flughafen> why can't most stuff be debugged?
Suchit_ has quit [Client Quit]
LiohAu_ has quit [Ping timeout: 260 seconds]
<workmad3> Hanmac: your stuff can't be debugged by internal ruby debuggers... I bet you could achieve breakpoint debuggers if you built your native extensions with debug symbols and attached something like gdb :P
<Hanmac> if somesthing is wrong with my stuff its eigther a seqfault or a bad pointer or a "double free" ... that cant be easy debugged with a ruby debugger ...
caveat- has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
lkba has joined #ruby
<Hanmac> workmad3: hm i do add debug symbols as far as i know (i can see nice backtraces ) but i dont work with breakpoints at that case, ... but last time i did worked well with gdb searching though the addresses of my stuff, searching for a doublefree ...
charliesome has joined #ruby
jontmorehouse has joined #ruby
sk87 has joined #ruby
deavid has joined #ruby
sandelius has joined #ruby
pgmcgee has quit [Ping timeout: 246 seconds]
jlebrech has joined #ruby
justinmburrous has quit [Remote host closed the connection]
<jlebrech> is there a gem to convert ascii art boxes to ruby objects?
mercwithamouth has joined #ruby
pgmcgee has joined #ruby
jontmorehouse has quit [Ping timeout: 272 seconds]
root3d has quit [Ping timeout: 244 seconds]
gaussblurinc1 has joined #ruby
<shevy> lol
<shevy> I nominate this for the funniest question
<gregf_> heh
caveat- has quit [Ping timeout: 260 seconds]
<wasamasa> jlebrech: sounds like a xy problem
* wasamasa decides to be serious
jasooon has joined #ruby
kaspertidemann has quit []
<jlebrech> wasamasa: i was just thinking if ascii boxes could be used as template
<jlebrech> i'm not attempting it
<wasamasa> jlebrech: moar context
tylersmith has joined #ruby
* apeiros forgot what a xy problem is
caveat- has joined #ruby
jontmorehouse has joined #ruby
cocotton has joined #ruby
Poky has joined #ruby
cocotton has quit [Remote host closed the connection]
jespada has joined #ruby
cocotton has joined #ruby
<jlebrech> wasamasa: ok, if I have rectangles made in ascii, i want to interpret the acsii rectangles as Rect objects with x,y,w,h
cocotton has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
dbugger has quit [Quit: Leaving]
<wasamasa> why do you want to do that?
cocotton has joined #ruby
<jlebrech> just for fun haha
<wasamasa> why do you even have ascii rectangles that "need" to be turned into something different
ndrei has joined #ruby
ta has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Remote host closed the connection]
<wasamasa> there are better exercises
<jlebrech> the thought was for a template that works for both the terminal and html
justinmburrous has joined #ruby
<wasamasa> wat
jontmorehouse has quit [Ping timeout: 272 seconds]
<jlebrech> say you have a framework you can dev and test fully in the terminal, and you can spice it up later with css for the web but it's all fully functional beforehand
<wasamasa> so you actually have a problem
<jlebrech> just a thought really
<wasamasa> why not just take a ruby object and either turn it into html+css or ascii graphics depending on the frontend?
caveat- has quit [Ping timeout: 260 seconds]
<jlebrech> maybe you're right
<wasamasa> this is how every framework does it
<wasamasa> why would you convert between lossy representations if you can just take an object and create the representation from that?
AlSquire has joined #ruby
evrei has quit []
<jlebrech> i was thinking of a way to split form and function
<jlebrech> and still have a visual representation of function
alem0lars has quit [Ping timeout: 258 seconds]
<wasamasa> let the code speak
alem0lars_ has joined #ruby
haukur has joined #ruby
voodoofish has quit [Read error: Connection reset by peer]
emocakes has quit [Ping timeout: 272 seconds]
emocakes__ has joined #ruby
caveat- has joined #ruby
dawkirst has quit [Remote host closed the connection]
msmith has joined #ruby
root3d has joined #ruby
voodoofish has joined #ruby
Akagi201 has quit [Read error: No route to host]
Akagi201 has joined #ruby
bluOxigen has joined #ruby
msmith has quit [Ping timeout: 260 seconds]
skammer has joined #ruby
blueOxigen has quit [Ping timeout: 272 seconds]
_lucid_ has quit [Quit: leaving]
User458764 has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
dawkirst has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tessi is now known as tessi_zz
iamdoo2 has quit []
fabrice31 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
jlebrech has quit [Remote host closed the connection]
dx7 has joined #ruby
kaspergrubbe has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
iinzg has joined #ruby
justinmburrous has quit [Remote host closed the connection]
xcv has joined #ruby
manzo has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
iinzng has quit [Ping timeout: 240 seconds]
dawkirst has quit [Read error: Connection reset by peer]
Takle has joined #ruby
roolo has quit [Remote host closed the connection]
nfk has joined #ruby
dawkirst has joined #ruby
roolo has joined #ruby
skammer has joined #ruby
coderhs has joined #ruby
root3d has quit [Quit: Leaving]
roolo has quit [Ping timeout: 245 seconds]
jontmorehouse has joined #ruby
sk87 has joined #ruby
dangerousdave has joined #ruby
Insanity133 has quit []
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
ciampix has joined #ruby
doev has quit [Ping timeout: 245 seconds]
MCDev has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
ganjamanna has joined #ruby
ganjamanna has quit [Client Quit]
charliesome has quit [Quit: zzz]
dawkirst has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
cocotton has quit [Remote host closed the connection]
<shevy> I let my fists speak
shredding has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alem0lars_ has quit [Quit: AFK..]
<shevy> and my feet!
jasooon has joined #ruby
narcan has joined #ruby
xenomorph is now known as {xenomorph}
moritzs has quit [Remote host closed the connection]
roolo has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
cocotton has joined #ruby
shredding has quit [Client Quit]
tylersmith has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
coderhs has quit [Quit: Leaving]
dawkirst has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
mercwithamouth has quit [Quit: leaving]
nhhagen has quit [Remote host closed the connection]
parduse has quit [Read error: Connection reset by peer]
parduse has joined #ruby
{xenomorph} is now known as xenomorph
tylersmith has quit [Ping timeout: 258 seconds]
mkaesz has joined #ruby
manzo has quit [Quit: Leaving]
GriffinHeart has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
charliesome has joined #ruby
jhass has quit [Ping timeout: 272 seconds]
haukur_ has joined #ruby
haukur has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
msmith has joined #ruby
noop has quit [Ping timeout: 260 seconds]
blueOxigen has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
abdulsattar has joined #ruby
jhass has joined #ruby
msmith has quit [Ping timeout: 250 seconds]
chipotle has quit [Ping timeout: 260 seconds]
doev has joined #ruby
MCDev has joined #ruby
xenomorph is now known as {xenomorph}
yfeldblum has joined #ruby
professor_soap has joined #ruby
clauswitt has joined #ruby
professor_soap has left #ruby [#ruby]
DaniG2k has quit [Quit: leaving]
justinmburrous has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
aleatorik has joined #ruby
yfeldblum has joined #ruby
tessi_zz is now known as tessi
roolo has quit [Remote host closed the connection]
<Bish> is there some way to use ruby in the good old php manner? (without having to have a huge rails project)
<tobiasvl> good old… php manner?
<Bish> ... i didn't know how to ask that question, i mean cgi. executing the script
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
{xenomorph} is now known as xenomorph
yfeldblum has quit [Ping timeout: 244 seconds]
<railis> Bish: the same old php manner, as changing the script on remote server directly, or upload it via ftp ? :D
<railis> thanks, I'll pass
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
xenomorph is now known as {xenomorph}
<mikecmpbll> is there a way to initialize a hash with values and a default value in one statement?
dangerousdave has joined #ruby
AndChat| has joined #ruby
dawkirst has joined #ruby
<Bish> 44
<mikecmpbll> Hash.new("default").merge({...}) i guess?
<Bish> no, im just talking about the execution,i write most stuff in vim, so i do not even upload anything
lkba has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
<shevy> Bish yeah. All my knowledgebase is in ruby cgi
<shevy> I don't really use the default ruby .cgi though
ciampix has quit [Ping timeout: 258 seconds]
{xenomorph} is now known as xenomorph
anaeem1_ has quit [Remote host closed the connection]
doev has quit [Quit: Verlassend]
mkaesz has quit [Remote host closed the connection]
<Bish> so, how do you tell the webbrowser to execute it, i mean php has fpm as a service, which makes it pretty easy
startupality has joined #ruby
<shevy> Bish this is how I describe a .cgi page - nevermind that it has so much useless css, I just copy pasted it from a larger example (also, I wanted to write Hello World, not Hell World ... ) http://pastie.org/pastes/9613590/text
<shevy> Bish what webserver do you use?
jontmorehouse has joined #ruby
Takle has quit [Remote host closed the connection]
<shevy> in lighttpd it is: server.modules += ( "mod_cgi" )
<shevy> and then something like:
govg has quit [Quit: leaving]
<shevy> cgi.assign = ( ".rb" => "/System/Executables/ruby" )
qba73 has quit []
<Bish> mwlang, oh cool. i googled that multiple times how could i miss that
<Bish> shevy, nginx
<shevy> oh russian documentation
<shevy> I kinda abandoned apache when they changed their config format :(
tokik has quit [Ping timeout: 272 seconds]
<Bish> how would i do it with fastcgi?
gerep has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
<shevy> dunno
<shevy> have you got it running with normal cgi yet
<mwlang> shevy: when was that? 2003ish?
<shevy> mwlan nope, from 2.2 to 2.4
Takle has joined #ruby
<Bish> shevy, well, as i said php has a fastcgi daemon, which makes it pretty easy, i know how it works, i would know how to built it
carraroj has quit [Ping timeout: 272 seconds]
<Bish> would be cool if it worked out of the box
<mwlang> Bish: I’m just googling your questions: https://blogs.oracle.com/trawick/entry/running_a_simple_ruby_fastcgi
<mwlang> shevy: Ah. I haven’t touched 2.4
<shevy> yeah but you haven't even run a simple .cgi script yet
xenomorph is now known as {xenomorph}
jontmorehouse has quit [Ping timeout: 272 seconds]
<mwlang> mostly doing nginx these days, but when apache is needed, it seems the package managers are still predominently 2.2
<Bish> mwlang, what did u googla :D
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<mwlang> Bish: ruby cgi apache fastcgi
{xenomorph} is now known as xenomorph
alem0lars has quit [Quit: AFK..]
IrishGringo has joined #ruby
phutchins has joined #ruby
<Bish> mwlang, well im using nginx.
alem0lars has joined #ruby
<mwlang> I see plenty of relevant results for nginx, too.
<Bish> okay, i might be an idiot then ;)
<workmad3> Bish: btw, the normal way to have a ruby web-app-esque project would be to write it as a simple rack app or a sinatra app
<workmad3> Bish: rather than trying to execute it as CGI scripts
<workmad3> Bish: which wouldn't involve a 'huge rails project'
alem0lars has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<workmad3> Bish: it still wouldn't be the shitty old PHP 'URLs should expose our file organisation and force our projects to be badly structured' way though :P
clauswitt has joined #ruby
clauswitt has quit [Max SendQ exceeded]
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
clauswitt has joined #ruby
<railis> anyway ruby doesn't fit to the description of optimized web-app
phutchin1 has joined #ruby
<mwlang> the *only* thing I’ve ever used ruby + cgi with is a simple contact us form impelementation on an otherwise static site. I replaced a perl script I simply didn’t grok that was generating a crapload of spam with a ruby script that would weed out that spam and send only legit contact requests.
TorpedoSkyline has joined #ruby
fabrice31 has joined #ruby
<mwlang> I can’t imagine using ruby + cgi for anything more than that. microframeworks (camping, ramaze, sinatra) and pre-compilers (middleman) are the way to go otherwise.
caveat- has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
<mwlang> (for the small stuff) If you gotta build something full-blown, then rails takes the cake.
TorpedoSkyline has quit [Client Quit]
Xeago has joined #ruby
duncannz has quit [Remote host closed the connection]
roolo has joined #ruby
caveat- has joined #ruby
<railis> if you wanna build something full-blown: use grunt + yeoman + backbone, compiled do static site as frontend, and elixir + phoenix as a backend :)
<railis> rendering templates on the server side is passe
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
nonmadden has quit [Remote host closed the connection]
jasooon has joined #ruby
lxsameer has quit [Quit: Leaving]
narcan has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 260 seconds]
emrox has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<mwlang> railis: or backbone + middleman talking to rails_api backend. :-)
starkhalo has joined #ruby
jottr_ has joined #ruby
tylersmith has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
rkalfane has joined #ruby
spyderman4g63 has joined #ruby
fsapo has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspertidemann has quit []
Deejay_ has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tylersmith has quit [Ping timeout: 272 seconds]
larissa has joined #ruby
ldnunes has joined #ruby
toretore has joined #ruby
mastr_bennett[x] has joined #ruby
justinmburrous has joined #ruby
dawkirst has quit [Remote host closed the connection]
<railis> mwlang: rails_api is faster, but still not scallable
<railis> :(
comma8 has quit [Remote host closed the connection]
msmith has joined #ruby
Xeago has quit [Remote host closed the connection]
tessi is now known as tessi_zz
nhhagen has joined #ruby
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
sk87 has joined #ruby
kate_r has joined #ruby
msmith has quit [Ping timeout: 250 seconds]
entrenador has joined #ruby
basldex has joined #ruby
reisl has joined #ruby
mhi^ has joined #ruby
yfeldblum has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emocakes__ has quit []
jbw has quit [Ping timeout: 272 seconds]
shredding has joined #ruby
dangerousdave has joined #ruby
larissa has quit [Ping timeout: 245 seconds]
abdulsattar has quit [Ping timeout: 245 seconds]
dx7 has joined #ruby
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jbw has joined #ruby
haukur_ has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
yfeldblum has quit [Ping timeout: 244 seconds]
dawkirst has joined #ruby
<basldex> hi
<basldex> can anybody help me with that weird problem? https://gist.github.com/alexandermayr/fbecdf2707d24981a7e0
<basldex> it's a hash's key which is in the .keys array, equals the key I'm access with but still .has_key? returns false
<basldex> the keys equal in terms of hash codes and .eql?
Deejay_ has quit [Quit: Computer has gone to sleep.]
dx7 has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
agjacome has joined #ruby
Insanity133 has joined #ruby
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
interweb has joined #ruby
douglasssssss has joined #ruby
<interweb> HI, what is best source to learn Ruby from ? As my first programming language to learn .
<tobiasvl> !book
<mikecmpbll> interweb: !api
<helpa> interweb: For the rails API, check out http://api.rubyonrails.org/
<mikecmpbll> interweb: !guides
<helpa> interweb: http://guides.rubyonrails.org/ - Ruby on Rails guides. Recommended reading.
<mikecmpbll> oops, this is ruby
<interweb> tobiasvl, which book ?
<interweb> tobiasvl, !book ?
<ddv> interweb: just make stuff
<tobiasvl> yeah sorry, wrong command
aleatorik has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinobi_one has joined #ruby
kaspertidemann has joined #ruby
tokik has joined #ruby
<ddv> interweb: ruby is easy to learn, hard to master
<mwlang> railis: its been scalable enough. :-) Until I need something faster, I’ll do as much as I can in ruby.
jontmorehouse has joined #ruby
phutchin1 has quit [Ping timeout: 272 seconds]
<railis> mwlang: unfortunatelly I have faced the problem with ruby being bottleneck twice already, and not only me :(
<banister> zenspider yo can i ping u with a rails q?
<mwlang> railis: same here.
basldex has left #ruby [#ruby]
douglasssssss has quit [Client Quit]
<banister> mikecmpbll actually, you're a bit of a rails head ;) i have two scopes -- and i want to return everything that matches NEITHER of those scopes, i figured i could use where.not somehow, but i can't figure it out
IrishGringo has joined #ruby
narcan has joined #ruby
<mikecmpbll> banister: you can probably do something like .where.not(id: Foo.scope)
emiemia has joined #ruby
emiemia is now known as marlonandrade
<mikecmpbll> but you'll be doing subqueries
aclearman037 has joined #ruby
emocakes has joined #ruby
rkalfane has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
<banister> mikecmpbll ah ok, that'll look pretty cray with two scopes negated too i guess? .where.not(id: Foo.scope1).where.not(id: Foo.scope2) ?
jontmorehouse has quit [Ping timeout: 272 seconds]
<mikecmpbll> yeah, it's kinda crap. there's no logical way to negate a scope other than define a scope that does the opposite
<mikecmpbll> afaik
<railis> banister: de morgan law
<railis> :)
phutchin1 has joined #ruby
interweb has quit [Quit: Leaving]
shachar has joined #ruby
banister has quit [Read error: Connection reset by peer]
willgo has joined #ruby
<railis> mikecmpbll: scope(:not), -> (scope) { scope }
<railis> doesn't that do the work ?
<mikecmpbll> no.
banister has joined #ruby
Insanity133 has quit [Remote host closed the connection]
reisl is now known as larissa
banister has quit [Max SendQ exceeded]
ht has joined #ruby
manzo has joined #ruby
Insanity133 has joined #ruby
klmlfl has joined #ruby
<railis> i mean I always done this, by adding the general scope
<railis> scope :not, ->(scope_name) { where(send(scope_name).where_values.reduce(:and).not) }
<railis> and then
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<railis> Model.not(:scope_name)
justinmburrous has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ht__th has quit [Ping timeout: 260 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
klmlfl has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
moritzs has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
DaniG2k has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<DaniG2k> if anyone wants $10 off hosting from Digitalocean: https://www.digitalocean.com/?refcode=1f20dd93eb01
Insanity133 has quit [Ping timeout: 260 seconds]
bricker`LA has joined #ruby
Deele has quit [Quit: User excited]
<railis> DaniG2k: thanks! :)
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Deele has joined #ruby
<DaniG2k> :)
gerep_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
thejamespinto has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
thejamespinto has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Xeago has joined #ruby
banister has joined #ruby
dangerousdave has joined #ruby
gerep has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
<wasamasa> banister: noo
<banister> wasamasa?
comma8 has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
iiinzg has joined #ruby
<wasamasa> banister: you flooded my scrollback with /quits :<
iinzg has quit [Ping timeout: 260 seconds]
xenomorph is now known as {xenomorph}
<banister> wasamasa sry
jasooon has joined #ruby
paulfm has joined #ruby
startupality has quit [Quit: startupality]
Xeago has quit [Remote host closed the connection]
{xenomorph} is now known as xenomorph
banister is now known as banisterfiend
workmad3 has quit [Ping timeout: 272 seconds]
tylersmith has joined #ruby
<pagioss> hi all, http://pastebin.com/5Y2ZfHV4 when trying to call /start the command fires up but i get a proxy error The proxy server received an invalid response from an upstream server.
<pagioss> any idea?
jasooon has quit [Ping timeout: 244 seconds]
grzywacz has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Ping timeout: 272 seconds]
gerep__ has joined #ruby
nerium has joined #ruby
<nerium> How do I use the new Oniguruma engine with String#scan?
<nerium> It works fine with String#match, but not #scan
Aaaal has quit [Quit: Aaaal]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willgo has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 260 seconds]
gerep_ has quit [Ping timeout: 250 seconds]
kaspertidemann has quit []
ursooperduper has joined #ruby
Insanity133 has joined #ruby
freezey has joined #ruby
<shevy> >> "abc a aa".scan /a/
<eval-in_> shevy => ["a", "a", "a", "a"] (https://eval.in/201107)
<shevy> >> "abc a aa".match /a/
<eval-in_> shevy => #<MatchData "a"> (https://eval.in/201108)
<shevy> nerium these two methods do different things as you can see above ^^^
blueOxigen has quit [Ping timeout: 260 seconds]
<nerium> shevy: I know. Match stops after one match, scan doesn't
<apeiros> nerium: hm? are you using Oniguruma in an older ruby? or how do you mean?
bluOxigen has joined #ruby
<nerium> apeiros: I want to be able to name my match, which I can't manage todo using match
<nerium> Sorry, using scan
<apeiros> nerium: that was not my question
oo_ has quit [Remote host closed the connection]
hellangel7 has quit [Read error: Connection reset by peer]
Aaaal has joined #ruby
<apeiros> nerium: unless you're using a gem or other 3rd party lib, all regex in ruby use the same engine
<apeiros> for newer rubies that is oniguruma
<nerium> apeiros: The Oniguruma engine has support for naming matches
oo_ has joined #ruby
hellangel7 has joined #ruby
<apeiros> nerium: so you do not use a gem, or an older ruby? then scan uses oniguruma too.
<shevy> hehe apeiros will never get an answer :)
<apeiros> anyway, xy question. show what you want to get working instead of your interpretation of how/where it could be solved.
yfeldblum has joined #ruby
<apeiros> shevy: yeah, it's annoying. people these days fail to actually answer a question.
<apeiros> nerium: use a block with scan and $~
<nerium> apeiros: No gem, I use 2.0
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> $~ contains the MatchData object, which provides access to the named captures.
IrishGringo has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
startupality has joined #ruby
shredding has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
sdwrage has quit [Ping timeout: 246 seconds]
twohlix has joined #ruby
lowandslow has quit [Remote host closed the connection]
gerep_ has joined #ruby
<nerium> apeiros: I doesn't look like that works
shachar has quit [Quit: Leaving]
<nerium> $~ doesn't return a list of matches
<nerium> Just a MatchData object
startupality has quit [Client Quit]
yfeldblum has quit [Ping timeout: 272 seconds]
obscured has joined #ruby
cpruitt has joined #ruby
gerep__ has quit [Ping timeout: 245 seconds]
joast has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
coderdad has joined #ruby
zn has quit [Ping timeout: 245 seconds]
mferrier has joined #ruby
iamjarvo has joined #ruby
<toretore> lol
<apeiros> nerium: do you even read?
<toretore> actually, i think he's right
<toretore> scan will create many matches, $~ is only the last one
<apeiros> toretore: you're mistaken
<apeiros> $~ is the MatchData object
<toretore> right, the last one
<apeiros> oh dear
<nerium> … and I need all of them
workmad3 has joined #ruby
gerep__ has joined #ruby
<apeiros> *use* *a* *block*
<apeiros> the block is yielded for *every* *single* *match*
krisquigley has joined #ruby
<nerium> I tried that before, i'll give it a try again
<toretore> oh, you did say use a block
<toretore> nm me
<apeiros> and you'll get the MatchData for *every* *single* *match* in the block using $~
iamjarvo has quit [Client Quit]
danrik has joined #ruby
<apeiros> but yeah, reading. how does it fucking work.
zn has joined #ruby
<apeiros> so difficult.
<apeiros> and yes, I'm pissed.
<nerium> It worked for this simple example, but not my original regexp
<nerium> Sorry for that
justinmburrous has joined #ruby
<nerium> That's why I asked
blueOxigen has joined #ruby
triple_b has joined #ruby
lewix has joined #ruby
jontmorehouse has joined #ruby
pdais has joined #ruby
shredding has quit [Quit: shredding]
bmurt has joined #ruby
<pdais> check
bluOxigen has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
gerep_ has quit [Ping timeout: 246 seconds]
<toretore> nerium: post the exact code that does not work
cherwin has joined #ruby
<apeiros> "THX1138.".named_scan /(?<prefix>[A-Z]+)(?<hyphen>-?)(?<digits>\d+)/ # => [{"prefix"=>"THX", "hyphen"=>"", "digits"=>"1138"}]
<apeiros> (and no, *you* don't have String#named_scan - that's what I wrote, using exactly what I told you to use)
krisquigley has quit [Ping timeout: 244 seconds]
shredding has joined #ruby
Deejay_ has joined #ruby
slester has joined #ruby
sk87 has joined #ruby
<shevy> cool
<shevy> I've never seen .named_scan before
jontmorehouse has quit [Ping timeout: 272 seconds]
<mikecmpbll>
<shevy> hey...
<shevy> that does not exist
<canton7> neat
<shevy> nerium tricked me
bluOxigen has joined #ruby
freerobby has joined #ruby
zz_jrhorn424 is now known as jrhorn424
shinobi_one has joined #ruby
<Hanmac> hmm imo MatchData should have a to_h method ...
ahhMichael has joined #ruby
sk87 has quit [Client Quit]
haukur has joined #ruby
<apeiros> Hanmac: yeah, wrote that too for that :)
<apeiros> really annoying that it doesn't exist
<Hanmac> hmm i think i might do a ticket for that ...
blueOxigen has quit [Ping timeout: 260 seconds]
<Hanmac> my named_scan would look like that:
<Hanmac> >> "THX1138.".to_enum(:scan,/(?<prefix>[A-Z]+)(?<hyphen>-?)(?<digits>\d+)/).map { $~.names.zip($~.captures).to_h }
<eval-in_> Hanmac => [{"prefix"=>"THX", "hyphen"=>"", "digits"=>"1138"}] (https://eval.in/201112)
<apeiros> Hanmac: pretty much how I wrote it
<shevy> yes write a ticket
cocotton has quit [Remote host closed the connection]
<apeiros> I split out MatchData#to_h, though
<apeiros> ah, Hanmac, no. MatchData#to_h must work differently
<apeiros> captures also includes positional captures
cherwin has quit [Ping timeout: 240 seconds]
<apeiros> so my zip part is different. I use map instead with self[name]
phutchins has quit [Ping timeout: 260 seconds]
AndChat| has quit [Ping timeout: 272 seconds]
aleatorik has joined #ruby
kwd_ has quit [Read error: Connection reset by peer]
<mikecmpbll> why do you use to_enum?
shinobi_one has quit [Ping timeout: 244 seconds]
<Hanmac> hm it does work without $~
<Hanmac> >> class String; def named_scan(regexp); to_enum(:scan, regexp).map {|data| regexp.names.zip(data).to_h };end;end; "THX1138.".named_scan /(?<prefix>[A-Z]+)(?<hyphen>-?)(?<digits>\d+)/
<eval-in_> Hanmac => [{"prefix"=>"THX", "hyphen"=>"", "digits"=>"1138"}] (https://eval.in/201113)
cherwin has joined #ruby
<Hanmac> mikecmpbll: scan does not return enumerator, and does use self when using block ..
<apeiros> Hanmac: same problem
kwd_ has joined #ruby
<apeiros> data will include positional captures
<mikecmpbll> array ...
<Hanmac> apeiros: do you know the magic when having a regexp with named groups in two parts of the same regexp parted with | ?
Bounga has joined #ruby
<nerium> toretore: The input and the regexp is a bit to complex to post it here
nerium has quit [Quit: nerium]
<toretore> no it's not
<mikecmpbll> :/
tanath has quit [Remote host closed the connection]
cocotton has joined #ruby
jamz has joined #ruby
<Hanmac> apeiros: look at the named group n in the example:
<Hanmac> >> ["abc","xyz"].map {|s|s.match(/a(?<n>b?)c|x(?<n>y?)z/) }
<eval-in_> Hanmac => [#<MatchData "abc" n:"b" n:nil>, #<MatchData "xyz" n:nil n:"y">] (https://eval.in/201114)
tanath has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
sk87 has joined #ruby
karupa is now known as zz_karupa
arup_r has quit [Quit: Leaving.]
thejamespinto has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
nerium has joined #ruby
thejamespinto has joined #ruby
Channel6 has joined #ruby
b00stfr3ak has joined #ruby
crunk_bear has joined #ruby
pwh has joined #ruby
mclosson has joined #ruby
gerep_ has joined #ruby
jerius has joined #ruby
startupality has quit [Quit: startupality]
Boeing has joined #ruby
<Boeing> Hello
noop has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
<Boeing> is someone have a benchmark between ruby, python and php, for a web crawler ?
Takle has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
gerep__ has quit [Ping timeout: 272 seconds]
<ddv> No
qmfnp has joined #ruby
mary5030 has joined #ruby
startupality has joined #ruby
webgen1 has joined #ruby
abdulsattar has joined #ruby
krz has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
gerep__ has joined #ruby
russt_ has joined #ruby
nettoweb has joined #ruby
lkba has joined #ruby
deed02392 has joined #ruby
<wasamasa> such a benchmark would reveal the differences to be negligible
justinmburrous has quit [Remote host closed the connection]
<wasamasa> since the favoured solutions to parsing html all wrap libxml2
<wasamasa> be it nokogiri for ruby, lxml for python or whatever the hell for php
webgen1 has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<Boeing> ok, so what is the difference between the 3 languages ?
webgen has quit [Ping timeout: 244 seconds]
<Boeing> i mean, what would you recommend to use ?
<mikecmpbll> surely 99
<Boeing> iam not familiar with ruby and pyton
<mikecmpbll> nvm.
<Boeing> i work actually only on php
DaniG2k has joined #ruby
yakko_ has joined #ruby
jasooon has joined #ruby
<wasamasa> that explains everything
<Hanmac> its like the flavor between vanilla, cocolate and stawberry ... and then you get a sandwich ice ...
patrick99e99 has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
<wasamasa> Boeing: do you realize what channel you're in?
<mikecmpbll> USE RUBY.
zz_jrhorn424 is now known as jrhorn424
<workmad3> Hanmac: neopolitan languages? :)
<Boeing> yeah, i see :)
gerep_ has quit [Ping timeout: 245 seconds]
thejamespinto has quit [Ping timeout: 272 seconds]
<wasamasa> anyways, everything will be a step-up from writing shitty php
<Boeing> iam actualy seeing the rubycast#190
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep_ has joined #ruby
<Boeing> and nokigiri seems to be interesting
<Hanmac> workmad3: do you know that sandwich ice i mean? the one where chocolate vanilla and stawberry is together in one
<mikecmpbll> ...
<mikecmpbll> ya neapolitan "D
mastr_bennett[x] has joined #ruby
<workmad3> mikecmpbll: yes, neapolitan, not neo :)
dangerousdave has joined #ruby
* workmad3 made a mistake...
<mikecmpbll> muahahaha.
<Scub> any vagrant fans about?
<shevy> they were all murdered
nonmadden has joined #ruby
gerep__ has quit [Ping timeout: 240 seconds]
jasooon has quit [Ping timeout: 272 seconds]
<shevy> Boeing the difference is the philosophy
<shevy> php philosophy is - we don't give a fuck
<shevy> python philosophy is - there is only one way and guido decides which way it is
<shevy> ruby philosophy is - there is more than one way, though most ways suck
comma8 has quit [Remote host closed the connection]
tylersmith has joined #ruby
cocotton has quit [Remote host closed the connection]
User458764 has joined #ruby
<Hanmac> in ruby there is the bad way, the good way, and the hanmac way, which is like a mix between bad and good way, does makes twice that much fun ;P
slyslick has joined #ruby
<shevy> the hanmac way is the path to madness
<workmad3> shevy: the full python statement is 'there should be one and preferrable only one good way to do something'
<shevy> and guido decides that way
<Hanmac> shevy but we have cookies ;P
<shevy> workmad3 I actually found one project that breaks that python philosophy
skolman has joined #ruby
justinmburrous has joined #ruby
bigkevmcd has joined #ruby
<Boeing> okey thanks guys
<Boeing> i will try to deal with nokigiri
cocotton has joined #ruby
<shevy> "One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.? Things have improved in recent releases, but this can still be frustrating as in Python there should ideally be one right way to do something."
<shevy> :)
iamjarvo has joined #ruby
<shevy> it's like a mantra they chant
germanstudent has quit [Quit: raus]
<shevy> even when they break it hehehe
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beef-wellington has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
oleo has joined #ruby
jxf has joined #ruby
Takle has quit [Remote host closed the connection]
kwd_ is now known as kwd
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
cocotton has quit [Remote host closed the connection]
wpp_ has joined #ruby
wpp has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
cocotton has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
manzo has quit [Quit: Leaving]
Ankhers has joined #ruby
mary5030 has quit [Remote host closed the connection]
msmith has joined #ruby
phutchins has joined #ruby
jottr_ has joined #ruby
AtumT has joined #ruby
<twohlix> Remember, there are only two hard problems in computer science: cache invalidation, naming, and off-by-one errors.
skammer has joined #ruby
startupality has quit [Quit: startupality]
<Kartagis> Remember, there are three types of people: those who can count and those who can't
Takle has joined #ruby
startupality has joined #ruby
<twohlix> Remember, there are two types of companies: those who know they've been hacked and those who don't.
jontmorehouse has joined #ruby
<mikecmpbll> remember, there's only one mikecmpbll.
Photism has quit [Quit: Leaving]
<DaniG2k> mikecmpbll: loool
<apeiros> only dead people understand hex
<DaniG2k> apeiros: i know you want a digitalocean account right
<apeiros> DaniG2k: yer too late, mate
<DaniG2k> :'(
IrishGringo has joined #ruby
<DaniG2k> apeiros: well I'm sending it to you anyway
<DaniG2k> :D
<DaniG2k> woohooo
<apeiros> DaniG2k is a woo-girl? :)
<DaniG2k> yep
startupality has quit [Client Quit]
<DaniG2k> a digital woo-girl
<apeiros> heh
haukur has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 246 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pskosinski has joined #ruby
startupality has joined #ruby
gerep__ has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
ryanleesipes has joined #ruby
postmodern has quit [Quit: Leaving]
jontmorehouse has quit [Ping timeout: 260 seconds]
msmith has quit []
b00stfr3ak has quit [Ping timeout: 258 seconds]
klmlfl has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
freerobby has quit [Quit: Leaving.]
gerep_ has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
aleatorik has quit [Read error: Connection reset by peer]
davispuh has joined #ruby
GinoMan has joined #ruby
snath has quit [Ping timeout: 272 seconds]
klaut has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
labrah has joined #ruby
shinobi_one has joined #ruby
sanguisdex has joined #ruby
labrah has left #ruby [#ruby]
emrox has joined #ruby
justinmburrous has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 245 seconds]
<sanguisdex> trying to do a chown with ruby, is there an example some on knows of where we can expect failure of the function and ask for a sudo password if it happens?
Nieralyte has joined #ruby
russt_ has quit [Quit: russt_]
jrhorn424 is now known as zz_jrhorn424
gerep_ has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
<shevy> sanguisdex how can it fail
<shevy> FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
<shevy> you can rescue Exceptions
<shevy> ArgumentError: can't find group for staff
shinobi_one has quit [Ping timeout: 244 seconds]
<shevy> so do: rescue ArgumentError
<shevy> then invoke that sudo password thing or whatever
<sanguisdex> shevy: thanks I was unaware of resuce exceptions!
AtumT has quit [Remote host closed the connection]
<shevy> resauce
<shevy> :D
<shevy> type with me: r-e-s-c-u-e ... without the -'s of course
<shevy> begin
<shevy> code that can fail here
<shevy> rescue NameOfException
<shevy> you could also do
<shevy> rescue Exception
<sanguisdex> cool
<sanguisdex> thans
<shevy> but that is less specific and might capture exceptions you don't want to capture
gerep__ has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* sanguisdex will be reading all about RESCUE exceptions for a while
startupality has quit [Quit: startupality]
moritzs has joined #ruby
iamjarvo has joined #ruby
endash has joined #ruby
dx7 has joined #ruby
freezey has quit [Remote host closed the connection]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
mike32 has joined #ruby
robert_ has quit [Ping timeout: 260 seconds]
ffranz has joined #ruby
crazed_ is now known as crazed
wpp_ has quit []
gerep__ has joined #ruby
ndrei has joined #ruby
sanguisdex has quit [Ping timeout: 250 seconds]
freezey has joined #ruby
mary5030 has joined #ruby
zz_jrhorn424 is now known as jrhorn424
yakko_ has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
tagrudev has quit [Remote host closed the connection]
alem0lars has joined #ruby
thejamespinto has joined #ruby
gerep_ has quit [Ping timeout: 244 seconds]
b00stfr3ak has joined #ruby
gerep_ has joined #ruby
msmith has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
IrishGringo has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
thejamespinto has joined #ruby
antlong has joined #ruby
danman has joined #ruby
TorpedoSkyline has joined #ruby
b00stfr3ak has quit [Ping timeout: 250 seconds]
gerep__ has quit [Ping timeout: 250 seconds]
gerep__ has joined #ruby
rawc has joined #ruby
atomi has quit [Quit: leaving]
jasooon has joined #ruby
shinobi_one has joined #ruby
zeroNones has joined #ruby
haukur has joined #ruby
shinobi_one has left #ruby [#ruby]
ndrei has joined #ruby
gerep_ has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
haukur has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
JohnBat26 has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
freerobby has joined #ruby
lmickh has joined #ruby
mastr_bennett[x] has joined #ruby
rodj has joined #ruby
benzrf is now known as benzrf|offline
vinleod has joined #ruby
yfeldblum has joined #ruby
mastr_bennett[x] has quit [Client Quit]
klaut has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
jasooon has quit [Ping timeout: 272 seconds]
synergyz has joined #ruby
geggam has joined #ruby
ursooperduper has joined #ruby
tylersmith has joined #ruby
thejamespinto has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
einarj has quit [Read error: Connection reset by peer]
einarj_ has joined #ruby
carraroj has joined #ruby
eneas has joined #ruby
Jinkins has joined #ruby
gerep_ has joined #ruby
Jackneill has joined #ruby
manzo has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
atomi has joined #ruby
synergyz has quit [Remote host closed the connection]
jamz has quit []
Bounga has quit [Quit: Bounga]
tylersmith has quit [Ping timeout: 260 seconds]
mferrier_ has joined #ruby
mferrier_ has quit [Remote host closed the connection]
gerep__ has quit [Ping timeout: 258 seconds]
mferrier_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Takle has quit [Remote host closed the connection]
kwd has quit [Quit: kwd]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mferrier has quit [Ping timeout: 258 seconds]
coderdad has quit [Remote host closed the connection]
JeffBonds has joined #ruby
krisquigley has joined #ruby
coderdad has joined #ruby
jontmorehouse has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #ruby
nickjj has quit [Quit: WeeChat 1.0]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
danrik has quit [Quit: Leaving]
bal has quit [Quit: bal]
chipotle has joined #ruby
Takle has joined #ruby
gerep__ has joined #ruby
haukur has joined #ruby
pwh has quit []
mesamoo has quit [Quit: Konversation terminated!]
bricker`LA has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
mferrier has joined #ruby
mferrier has quit [Remote host closed the connection]
jontmorehouse has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
mferrier has joined #ruby
gerep_ has quit [Ping timeout: 245 seconds]
mwlang has quit [Quit: mwlang]
AFKGeek has quit [Quit: Leaving]
chipotle has quit [Ping timeout: 245 seconds]
b00stfr3ak has joined #ruby
mferrier_ has quit [Ping timeout: 246 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
Tricon has joined #ruby
workmad3 has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
fsapo has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
Xeago has joined #ruby
charliesome has quit [Quit: zzz]
mwlang has joined #ruby
mkaesz has joined #ruby
slester1 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
slester has quit [Ping timeout: 260 seconds]
IcyDragon is now known as IceDragon
dawkirst has quit [Remote host closed the connection]
gaussblurinc1 has quit [Quit: Leaving.]
dawkirst has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
triple_b has joined #ruby
AtumT has joined #ruby
nerium has quit [Quit: nerium]
pdais has quit [Quit: Leaving.]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Ping timeout: 245 seconds]
mkaesz has quit [Quit: Leaving...]
nerium has joined #ruby
fabrice31 has quit [Remote host closed the connection]
snath has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
hooper has joined #ruby
rockosays has joined #ruby
DaniG2k has quit [Quit: leaving]
ndrei has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby
lkba has joined #ruby
ndrei has joined #ruby
benzrf|offline is now known as benzrf
aspires has joined #ruby
splud has joined #ruby
maletor has joined #ruby
abuzze has quit [Ping timeout: 260 seconds]
cndiv has joined #ruby
lukevinc has joined #ruby
claymore has joined #ruby
snath has quit [Quit: Leaving]
snath has joined #ruby
Takle has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
linojon has quit [Ping timeout: 258 seconds]
linojon has joined #ruby
banister has joined #ruby
mferrier_ has joined #ruby
mferrier_ has quit [Remote host closed the connection]
ahhMichael has quit [Ping timeout: 256 seconds]
mferrier_ has joined #ruby
robertodecurnex has joined #ruby
haukur has quit [Remote host closed the connection]
ndrei has quit [Read error: No route to host]
aspires has quit []
banisterfiend has quit [Ping timeout: 250 seconds]
pwh has joined #ruby
robertodecurnex has quit [Remote host closed the connection]
zorak8 has joined #ruby
robertt has joined #ruby
robertt has left #ruby [#ruby]
mferrier has quit [Ping timeout: 260 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
aspires has joined #ruby
slyslick has quit [Ping timeout: 258 seconds]
Insanity133 has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slyslick has joined #ruby
yfeldblum has joined #ruby
sinkensabe has joined #ruby
ndrei has joined #ruby
HelperW has joined #ruby
cndiv has quit [Ping timeout: 260 seconds]
jasooon has joined #ruby
robertt-dex has joined #ruby
fgo has quit []
hellangel7 has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
Boeing has quit []
grzywacz has quit [Ping timeout: 272 seconds]
rkalfane has joined #ruby
_maes_ has joined #ruby
robertt-dex is now known as _robertt-dex
slester1 has quit [Quit: slester1]
haukur has joined #ruby
vt102 has quit [Quit: Leaving]
slester has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mferrier has joined #ruby
mferrier has quit [Remote host closed the connection]
_robertt-dex has quit [Remote host closed the connection]
xenomorph is now known as {xenomorph}
robertt-dex has joined #ruby
haukur has quit [Remote host closed the connection]
mferrier has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
benzrf is now known as benzrf|offline
maletor has quit [Quit: Computer has gone to sleep.]
ahhMichael has joined #ruby
cocotton has quit [Remote host closed the connection]
stunder has joined #ruby
tylersmith has joined #ruby
mferrier_ has quit [Ping timeout: 272 seconds]
kate_r_ has joined #ruby
kate_r_ has quit [Max SendQ exceeded]
kate_r_ has joined #ruby
kate_r_ has quit [Max SendQ exceeded]
robertt-dex is now known as Guest52242
kate_r_ has joined #ruby
Guest52242 has quit [Ping timeout: 258 seconds]
robertt-dex_ has joined #ruby
haukur has joined #ruby
jontmorehouse has joined #ruby
robertt-dex_ has quit [Remote host closed the connection]
agrinb has joined #ruby
siwica has joined #ruby
kate_r has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 250 seconds]
justinmburrous has quit [Remote host closed the connection]
slyslick has quit [Ping timeout: 272 seconds]
jespada has quit [Quit: Leaving]
rippa has joined #ruby
larissa has quit [Quit: Leaving]
tjbiddle has joined #ruby
{xenomorph} is now known as xenomorph
jgrevich has joined #ruby
SCHAAP137 has joined #ruby
cocotton has joined #ruby
kate_r_ has quit [Read error: Connection reset by peer]
jontmorehouse has quit [Ping timeout: 260 seconds]
lukevinc has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.8.0/20000101000000]]
baroquebobcat has joined #ruby
carlyle_ has joined #ruby
iamjarvo has joined #ruby
the_f0ster has joined #ruby
nickjj has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
rodj has quit [Ping timeout: 246 seconds]
haukur has quit [Remote host closed the connection]
emmesswhy has joined #ruby
haukur has joined #ruby
kate_r has joined #ruby
xenomorph is now known as {xenomorph}
{xenomorph} is now known as xenomorph
sarkis has joined #ruby
<sarkis> how do you get rbenv to install in /usr/local/
<sarkis> it likes to default to ~/.rbenv
<sarkis> is it the PREFIX env var? i tried that
<wasamasa> why would you want to do that D:
<sarkis> to have it systemwide?
kate_r_ has joined #ruby
haukur_ has joined #ruby
<wasamasa> to have it system wide you install stuff via package manager
Poky has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
synergyz has joined #ruby
<sarkis> oh i see - so how do you get ruby 2.1.3?
<wasamasa> I do `pacman -S ruby` :P
<sarkis> :)
Ariadeno has joined #ruby
haukur has quit [Read error: Connection reset by peer]
<wasamasa> my co-worker does `apt-get install ruby` on his jessie system
<workmad3> wasamasa: you can set up a compiled or rbenv-installed ruby setup to be 'systemwide' btw
thejamespinto has quit [Read error: Connection reset by peer]
<sarkis> workmad3: forget it
rpag has joined #ruby
<wasamasa> workmad3: well yes, but the former pretty much screams for doing it via the system's package manager
troyready has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<workmad3> sarkis: btw, 'ruby-build 2.1.3 /usr/local'
qohelet_ has joined #ruby
bluOxigen has joined #ruby
thejamespinto has joined #ruby
kate_r has quit [Ping timeout: 272 seconds]
supersym has joined #ruby
dawkirst has quit [Remote host closed the connection]
pgmcgee has quit [Ping timeout: 260 seconds]
<sarkis> workmad3: thank you
xenomorph is now known as {xenomorph}
<sarkis> wasamasa: thanks for sharing that you use archlinux - very helpful
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sarkis> not.
mclosson has quit [Ping timeout: 245 seconds]
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex88 has quit [Quit: Leaving...]
HelperW has quit [Quit: Computer has gone to sleep.]
j2p2 has joined #ruby
HelperW has joined #ruby
sdwrage has joined #ruby
rkalfane has joined #ruby
tewlz has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
bricker`work has joined #ruby
benzrf|offline is now known as benzrf
bluehavana has quit [Quit: Connection closed for inactivity]
tokik has quit [Ping timeout: 250 seconds]
jheg_ has joined #ruby
lewix has quit [Remote host closed the connection]
baroquebobcat_ has joined #ruby
GinoMan has quit [Ping timeout: 260 seconds]
roolo_ has quit [Remote host closed the connection]
pgmcgee has joined #ruby
sepp2k has quit [Quit: Leaving.]
<tewlz> I'm yielding a block to a method. I want to initialize an empty array in the method and then pass that empty array to to block I'm yielding to. I figured it would be as simple as `yield empty_array`, am I making a simple mistake or would you like to see the code?
<sarkis> workmad3: that doesn't work :(
roolo has joined #ruby
iliketurtles has joined #ruby
sepp2k has joined #ruby
<sarkis> workmad3: oh wait i lied, was trying it via rbenv install - trying ruby-build directly now
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has quit []
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
HelperW has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Ping timeout: 244 seconds]
baroquebobcat_ is now known as baroquebobcat
michaeldeol has joined #ruby
<workmad3> tewlz: code pls
kobain has joined #ruby
maletor has joined #ruby
alem0lars has quit [Quit: AFK..]
RichardLitt has joined #ruby
alem0lars has joined #ruby
<sarkis> now i am curious, how would you get ubuntu 12.04 or even 14.04 installed with ruby 2.1 via package?
bluOxigen has quit [Read error: Connection reset by peer]
<sarkis> i found a ppa - but is it ok to be messing with the system ruby version?
bluOxigen has joined #ruby
haukur_ has quit []
roolo has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
badhatter has joined #ruby
badhatter has joined #ruby
tylersmith has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
eneas has left #ruby ["WeeChat 0.4.3"]
bluOxigen has joined #ruby
dorei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shredding has quit [Quit: shredding]
tewlz has quit [Quit: WeeChat 1.0]
thagomizer has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
sinkensabe has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
lewix has joined #ruby
{xenomorph} is now known as xenomorph
bluOxigen has joined #ruby
tuelz has joined #ruby
GinoMan has joined #ruby
rawc has quit [Quit: derp]
<tuelz> sorry lost connect, did I miss a reply to my yield empty array to block Q?
zeroNones has quit [Client Quit]
justinmburrous has joined #ruby
<sarkis> tuelz: just workmad3 asking you for code pls
ephemerian has quit [Quit: Leaving.]
gsd has joined #ruby
b1nd has quit [Ping timeout: 250 seconds]
iliketurtles has quit [Quit: zzzzz…..]
triple_b has joined #ruby
stef_204 has joined #ruby
mclosson has joined #ruby
deric_skibotn has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
jthomp has joined #ruby
<tuelz> sarkis: thanks
sivoais has quit [Remote host closed the connection]
iamjarvo has joined #ruby
triple_b has quit [Client Quit]
sivoais has joined #ruby
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
triple_b has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
tjbiddle has quit [Ping timeout: 272 seconds]
terlar has quit [Ping timeout: 272 seconds]
JeffBonds has quit [Quit: JeffBonds]
patrick99e99 has joined #ruby
thejamespinto has joined #ruby
GinoMan has quit [Ping timeout: 272 seconds]
qohelet_ has quit [Read error: Connection timed out]
the_f0ster has quit [Remote host closed the connection]
<tuelz> I figured it out. I forgot to give a block var for me to pass to
<tuelz> :p
benzrf is now known as benzrf|offline
dumdedum has quit [Quit: foo]
tjbiddle has joined #ruby
ghostmoth has joined #ruby
benzrf|offline is now known as benzrf
xenomorph is now known as {xenomorph}
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
lewix has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
lewix has joined #ruby
yfeldblum has joined #ruby
bluOxigen has joined #ruby
sinkensabe has joined #ruby
b00stfr3ak has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
robertt_dex has joined #ruby
bluOxigen has joined #ruby
alem0lars has joined #ruby
lewix has quit [Remote host closed the connection]
slyslick has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
carlyle_ has quit [Remote host closed the connection]
JeffBonds has joined #ruby
JeffBonds has left #ruby [#ruby]
carlyle_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
janmuffino has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
icebourg has quit []
bluOxigen has joined #ruby
icebourg has joined #ruby
hooper has quit [Quit: Leaving.]
bricker`LA has quit [Ping timeout: 272 seconds]
splud_ has joined #ruby
splud has quit [Ping timeout: 260 seconds]
splud_ is now known as splud
yfeldblum has quit [Ping timeout: 245 seconds]
b1nd has joined #ruby
jontmorehouse has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
wjimenez5271 has joined #ruby
<tuelz> max_by seems to turn hashes into two element arrays. Is there a better method to use than max_by to find the max on the values of a hash?
carlyle_ has quit [Ping timeout: 244 seconds]
gkra has joined #ruby
comma8 has joined #ruby
<jhass> tuelz: .values.max ?
jasooon has joined #ruby
andikr has quit [Remote host closed the connection]
ta has quit [Read error: Connection reset by peer]
Takle has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
pwh has quit []
klaut has quit [Remote host closed the connection]
bluOxigen has joined #ruby
cocotton has quit [Remote host closed the connection]
cndiv has joined #ruby
maestrojed has joined #ruby
nettoweb has joined #ruby
fsapo has joined #ruby
<tuelz> jhass: that would make sense, hah, thanks
ctp has joined #ruby
gerep_ has joined #ruby
boombadaroomba has joined #ruby
cocotton has joined #ruby
b00stfr3ak has joined #ruby
Wolland has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
blahwoop has joined #ruby
ta has joined #ruby
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC]
Wolland_ has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
<rpag> sarkis, ubuntu is usually slow to update ruby but there's a hella lot of options out there to build+manage ruby yourself usually from $HOME, so much that it probably deserves to be in the /topic :P
hellangel7 has quit [Remote host closed the connection]
mclosson has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Remote host closed the connection]
xcv has quit []
bluOxigen has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
gerep__ has quit [Ping timeout: 260 seconds]
<tuelz> I've always wondered. I use archlinux which keeps packages up to date typically the day after release. Is there a way to use my package manager to download the ruby and then have rbenv or rvm then manage it?
<tuelz> I've always used the included installers, which build from source
mikecmpbll has joined #ruby
mikepack has joined #ruby
<tuelz> never thought to try using a package manager until now
lsmola has quit [Ping timeout: 250 seconds]
pdais has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 246 seconds]
Synthead has quit [Quit: Leaving]
<rpag> i think there is 'rvm use system' for that
kate_r_ has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
<rpag> donno about rbenv
<workmad3> tuelz: unlikely
<rpag> i personally use chruby&ruby-install without a system ruby
mekhami has joined #ruby
tvw has quit []
<rpag> it's probably a little daunting if youre new to ruby but often the best way to use ruby in my experience
chthon has quit [Ping timeout: 250 seconds]
gerep__ has joined #ruby
noop has quit [Read error: Connection reset by peer]
justinmburrous has quit [Remote host closed the connection]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<User458764> Hi, I try to serve a static site for heroku with a rack app like this one http://pastie.org/9614242#12 how do I do to serve multiple files and files in folder like /en/index.html or /es/index.html...?
iamjarvo has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
kate_r has joined #ruby
gerep_ has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> tuelz: chruby
<rpag> User458764, you'd add "en" & "es" to urls
<rpag> File.open() like that never closes the underlying filehandle btw
<rpag> File.read() might be better
<havenwood> tuelz: chruby can switch between arbitrary locations and is included in the AUR to boot :)
<User458764> rpag, where please ?
<rpag> :urls => ["/images", "/javascripts", "/stylesheets", "en", "es"]
ptrrr has joined #ruby
<User458764> rpag oh great thanks
jheg_ has quit [Quit: jheg_]
<rpag> i guess you might need the leading /
IceDragon has quit [Ping timeout: 260 seconds]
flughafen_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<User458764> rpag I see another problem I don't know if it is related but whatever I enter in the url like mysite.com/nonexistingfile.html or mysite.com/foo... the index.html is displayed is there a way to avoid this behavior and output a 404 error
stunder_ has joined #ruby
chipotle has joined #ruby
<rpag> i think it does that because of your rack app (the File.open thing), if you just use the middleware then that problem shouldnt happen
gerep_ has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
ta has joined #ruby
tjbiddle_ has joined #ruby
dopie has joined #ruby
spastorino has joined #ruby
rawc has joined #ruby
cerberblue has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
gerep__ has quit [Ping timeout: 245 seconds]
<workmad3> User458764: btw, it looks like you're re-implementing the behaviour of Rack::File
kaspertidemann has joined #ruby
wallerdev has joined #ruby
Suchit_ has joined #ruby
stunder_ has quit [Ping timeout: 260 seconds]
chipotle has quit [Ping timeout: 272 seconds]
russt has joined #ruby
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carlyle_ has joined #ruby
Aaaal has quit [Quit: Aaaal]
noop has joined #ruby
fabrice31 has joined #ruby
justinmburrous has joined #ruby
gerep__ has joined #ruby
HelperW has joined #ruby
Tiberias has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
iliketurtles has joined #ruby
carlyle_ has quit [Read error: Connection reset by peer]
carlyle_ has joined #ruby
ctp has joined #ruby
Jinkins has joined #ruby
Jinkins has quit [Client Quit]
failshell has joined #ruby
Tiberias has quit [Client Quit]
ctp has quit [Read error: Connection reset by peer]
ta has joined #ruby
ctp_ has joined #ruby
lkba has joined #ruby
Lily--- has joined #ruby
b1nd has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
blahwoop has quit []
benzrf is now known as benzrf|offline
workmad3 has quit [Ping timeout: 245 seconds]
gerep_ has quit [Ping timeout: 258 seconds]
Nogbit has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
lmickh has quit [Remote host closed the connection]
ctp_ has quit [Client Quit]
mrsolo has joined #ruby
gregor3005 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 272 seconds]
<gregor3005> hi, i use rvm which work when i code in the shell. but now i try to use eclipse and configured the ruby interpreter it works but it didn't find the installed gems. is there any documentation (which work) how to use rvm and eclipse? i found so much results which doesn't solve my problem
b1nd has joined #ruby
iaj has joined #ruby
mr_dynamix has joined #ruby
havenwood has quit [Remote host closed the connection]
Tiberias has joined #ruby
yxhuvud has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 272 seconds]
slyslick has quit [Ping timeout: 260 seconds]
<rpag> gregor3005, iirc that's an annoying problem because RVM depends on shell vars being set to pick up the right ruby
thejamespinto has quit [Read error: Connection reset by peer]
Tiberias has quit [Remote host closed the connection]
thejamespinto has joined #ruby
twohlix has joined #ruby
Xeago has joined #ruby
gerep_ has joined #ruby
stunder has joined #ruby
thisislulu has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
badhatter has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
RegulationD has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
badhatter has joined #ruby
dangerousdave has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
gerep__ has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
gerep__ has joined #ruby
Insanity133 has joined #ruby
<gregor3005> rpag: yes thats true its annoying
ghr has quit [Ping timeout: 244 seconds]
mclosson has joined #ruby
jontmorehouse has joined #ruby
hamakn has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
rockosays has quit [Quit: Connection closed for inactivity]
hamakn has joined #ruby
jottr_ has joined #ruby
b00stfr3ak has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
kamilc__ has joined #ruby
yxhuvud has joined #ruby
froggy_ has joined #ruby
thejamespinto has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
abdulsattar has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
gerep_ has quit [Ping timeout: 272 seconds]
mferrier has quit []
Insanity133 has quit [Ping timeout: 246 seconds]
iaj has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
jottr_ has quit [Ping timeout: 258 seconds]
froggy__ has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iaj has joined #ruby
Suchit_ has quit [Quit: Computer has gone to sleep.]
emmesswhy has quit [Quit: Leaving]
gerep_ has joined #ruby
shosti has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Suchit_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
icarus has joined #ruby
pdais has quit [Quit: Leaving.]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep__ has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Remote host closed the connection]
jasooon has joined #ruby
thisislulu has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 245 seconds]
jonmorehouse has joined #ruby
alem0lars has quit [Quit: AFK..]
Seventoes has left #ruby [#ruby]
einarj_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
omosoj has joined #ruby
jontmorehouse has quit [Ping timeout: 272 seconds]
<rpag> lol
justinmburrous has joined #ruby
ferr has joined #ruby
Digital-Ghost has joined #ruby
<pagioss> can i open the same file from 2 processes if it is in readonly mode?
momomomomo has joined #ruby
<jhass> even in write mode, you might just get silly results ;)
jasooon has quit [Ping timeout: 260 seconds]
<ferr> Hello, empty line left with Sublime is not shown at github, any ideas?
zy has joined #ruby
<rpag> sure you can, you can put a lock on it so the other process has to wait tho
slester1 has joined #ruby
<rpag> by using flock()
<zy> is there any way to make the sublime text autocompletion not suck for ruby mode?
<zy> when i type "do" i have to press enter just to get the autocomplete to go away -- and it doesnt even add anything, it just completes "do" by itself!
carraroj has joined #ruby
<pagioss> rpag: jhass Failed to load resource: the server responded with a status of 500 (Internal Server Error)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pagioss> i get this error if both are trying to read the same file
<pagioss> using sinatra
Soda has joined #ruby
<jhass> common
<jhass> look into the logs
icarus has quit [Ping timeout: 272 seconds]
<tuelz> how can I create a csvIO object without putting anything in it on creation? I'm trying to create an IO object, then use net/sftp to download a csv file into that io object
slester has quit [Ping timeout: 272 seconds]
GinoMan has joined #ruby
gerep__ has joined #ruby
ta has quit [Remote host closed the connection]
<pagioss> does this open in readonly by default ? YAML.load(File.open('/var/profile.yml'))
Sht0 has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
niklasb has joined #ruby
<jhass> yes but you leak fds that way
dangerousdave has joined #ruby
<jhass> use YAML.load_file
gregor3005 has quit [Ping timeout: 250 seconds]
<tuelz> CSV.new requires at least one argument, which is the data you want to put inside the io object, but my .download requires an io object in it's params
<pagioss> what is FDS?
ffranz has quit [Ping timeout: 245 seconds]
<jhass> file descriptors
davispuh has quit [Remote host closed the connection]
icarus has joined #ruby
<pagioss> i didnt get it
<jhass> did you google it?
Macaveli has quit [Read error: Connection reset by peer]
<pagioss> i didnt understand what you meant to google it
<jhass> the thing you don't understand?
ffranz has joined #ruby
WormDr1nk has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
gerep_ has quit [Ping timeout: 258 seconds]
carlyle_ has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
JBreit has joined #ruby
davispuh has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
phutchins has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
JBreit has left #ruby [#ruby]
gerep_ has joined #ruby
grzywacz has joined #ruby
cocotton has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
Hobogrammer has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
gregor3005 has joined #ruby
bwilson has joined #ruby
davispuh has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
cocotton has joined #ruby
paulfm has quit []
<epitron> tuelz: maybe you need a pipe
paulfm has joined #ruby
thisislulu has joined #ruby
<epitron> r, w = IO.pipe
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep has joined #ruby
<epitron> then you can pass w to the SFTP thing and r to the CSV thing
gerep__ has quit [Ping timeout: 272 seconds]
cocotton_ has joined #ruby
<epitron> (you'll probably have to make one run in a thread)
comma8 has quit [Ping timeout: 260 seconds]
<epitron> for convention's sake, i'd make the SFTP thing the thread :)
nfk has joined #ruby
aclearman037 has quit [Ping timeout: 250 seconds]
pietr0 has joined #ruby
yetanotherdave has joined #ruby
gerep_ has quit [Ping timeout: 258 seconds]
spyderman4g63 has quit [Remote host closed the connection]
hellangel7 has joined #ruby
gerep_ has joined #ruby
cocotton has quit [Ping timeout: 244 seconds]
ctp has joined #ruby
spyderman4g63 has joined #ruby
Xeago has joined #ruby
zz_jrhorn424 is now known as jrhorn424
djstorm has joined #ruby
jonmorehouse has quit [Ping timeout: 272 seconds]
skammer has quit [Ping timeout: 272 seconds]
aclearman037 has joined #ruby
zy has left #ruby ["Leaving..."]
klaut has joined #ruby
aspires has quit []
Mso150_a has joined #ruby
akkad has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
aspires has joined #ruby
spyderma_ has joined #ruby
thejamespinto has joined #ruby
spyderma_ has quit [Remote host closed the connection]
carlyle_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
gerep has quit [Ping timeout: 272 seconds]
gerep__ has joined #ruby
choke has quit [Remote host closed the connection]
bsdbofh has joined #ruby
bwilson has quit [Ping timeout: 250 seconds]
bsdbofh is now known as bwilson
treehug88 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<tuelz> thanks, I'll read into that, I kinda sorta know what a pipe and thread are, but I've never invoked them in code knowingly :p
kriskrop1 is now known as kriskropd
kriskropd has quit [Changing host]
kriskropd has joined #ruby
<tuelz> best I've done is pipe stuff to grep and cat :/
Xeago has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
carraroj has quit [Ping timeout: 258 seconds]
spyderman4g63 has quit [Ping timeout: 245 seconds]
gerep_ has quit [Ping timeout: 260 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
IceDragon has joined #ruby
mclosson has quit [Read error: Connection reset by peer]
ctp_ has joined #ruby
freezey has quit [Remote host closed the connection]
pagioss has quit [Ping timeout: 272 seconds]
tyll_ has quit [Ping timeout: 272 seconds]
ivmx has joined #ruby
awestroke has joined #ruby
justinmburrous has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ctp has quit [Ping timeout: 272 seconds]
tyll has joined #ruby
mclosson has joined #ruby
jheg has joined #ruby
dp_ has joined #ruby
supersym has quit [Ping timeout: 246 seconds]
mr_dynamix_ has joined #ruby
<dp_> as a non-rubyist, what does #intern() actually do?
mclosson has left #ruby [#ruby]
Xeago has joined #ruby
bobishh has quit [Ping timeout: 272 seconds]
<jhass> I think it's an alias for .to_sym ?
<apeiros> it is
mike32 has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
<apeiros> dp_: it returns a Symbol representation of a String
<wmoxam> dp_: it fetches coffees
cocotton_ has quit [Remote host closed the connection]
<wmoxam> My.intern(:fetch_a_coffee)
reset has joined #ruby
fmcgeough has joined #ruby
<rpag> hrhr
Jinkins has joined #ruby
<existensil> symbols are sorta like strings, except they are immutable and only one instance of a symbol ever exists, so :foo.object_id == :foo.object_id
<apeiros> symbols are sorta like integers, except they have an attached string
spyderman4g63 has joined #ruby
<existensil> so they are more efficient and a better choice when you need literals
<rpag> im not sure if 'one instance ever exists' is true anymore since they can be garbage collected now apparently
<Hanmac> i use symbols like Enum stuff from C/C++
thejamespinto has quit [Read error: Connection reset by peer]
gerep_ has joined #ruby
elaptics is now known as elaptics`away
<existensil> well, in the sense that if you compare two identical symbols they will always be the same object
<existensil> in that sense, only one exists
mr_dynamix has quit [Ping timeout: 240 seconds]
mr_dynamix_ is now known as mr_dynamix
<Hanmac> rpag: even if they are garbage collected they still the same object as long as they live
yfeldblum has joined #ruby
<existensil> if you still have a reference to the first one it won't be GC'd
<rpag> Hanmac, so if i create :foo twice, it'd have same object id the second time? (after GC)
thejamespinto has joined #ruby
User458764 has joined #ruby
TorpedoSkyline has joined #ruby
<rpag> that didnt seem likely
LesZedCB has joined #ruby
aclearman037 has quit [Remote host closed the connection]
jheg has left #ruby [#ruby]
reset has quit [Ping timeout: 258 seconds]
iamjarvo has joined #ruby
gerep__ has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
<dp_> so essentially, they're a string singleton
ctp has joined #ruby
<existensil> sure, that's an ok way to think of them
<dp_> k
shosti has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
<existensil> the have a few special properties, but, in practice that mental model will probably work
aclearman037 has joined #ruby
<dp_> thanks much
dp_ has left #ruby [#ruby]
gerep__ has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Remote host closed the connection]
coderdad_ has joined #ruby
spyderman4g63 has joined #ruby
reset has joined #ruby
ctp_ has quit [Ping timeout: 272 seconds]
spyderma_ has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
paulfm has quit []
gerep_ has quit [Ping timeout: 245 seconds]
coderdad has quit [Ping timeout: 246 seconds]
Tarential has quit [Quit: Terminated with extreme prejudice - dircproxy 1.0.5]
rawc has quit [Quit: derp]
justinmburrous has joined #ruby
davispuh has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
LesZedCB has left #ruby [#ruby]
ocx has joined #ruby
<ocx> i am reading continously from a file using 2 clients using xhr, will reading issue a block on the file? i am using ruby on the server side to read the files
krisquigley has joined #ruby
agjacome has quit [Quit: leaving]
shevy has quit [Ping timeout: 245 seconds]
nonmadden has quit [Remote host closed the connection]
paulfm has joined #ruby
<rpag> ocx, no it won't unless you setup a lock
gerep_ has joined #ruby
<ocx> rpag: does it mean i can have 10 processes opening the same file at the same time?
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jay__ has joined #ruby
<gizmore> do i need to use result = `cowsay moo` or can i execute cowsay directly somehow?
<gizmore> without shell... ?
failshell has quit []
pagioss has joined #ruby
<gizmore> soahccc: cowsay was just an example
ahhMichael has quit [Ping timeout: 256 seconds]
maasha has joined #ruby
gerep__ has quit [Ping timeout: 245 seconds]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
chipotle has joined #ruby
<soahccc> gizmore: you can use other methods like open3 but it still uses a shell I think
gerep has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
maletor has quit [Ping timeout: 260 seconds]
tonyhb has joined #ruby
ahhMichael has joined #ruby
abdulsattar has quit [Ping timeout: 260 seconds]
<gizmore> soahccc: ... weird
ndrei has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
jasooon has joined #ruby
pierre1_ has quit [Ping timeout: 250 seconds]
jbw has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 272 seconds]
gerep_ has quit [Ping timeout: 240 seconds]
fmcgeough has quit [Quit: fmcgeough]
<gizmore> soahccc: i use popen3 for git plugin :) ... a friend just asked why i use the shell for cowsay and alike
TorpedoSkyline has joined #ruby
<maasha> hey, why does this turn into an endless loop? I was expecting 10 iterations ... https://gist.github.com/maasha/2ba3be4fdb9283796540
<gizmore> maasha: i am guessing ... the enumerator never stops?
slester1 has quit [Quit: slester1]
jonmorehouse has quit [Ping timeout: 272 seconds]
choke has joined #ruby
<soahccc> gizmore: well there are many ways to open a process but afaik it always uses a (sub)shell
<gizmore> okay, thank you very much :)
frozenfoxx has joined #ruby
<maasha> gizmore: but it displays "lambda called" endlessly
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maasha> so somehow the 10.times loop gets screwed up.
mr_dynamix has quit [Quit: mr_dynamix]
jasooon has quit [Ping timeout: 244 seconds]
<gizmore> maasha: you call that lambda in your enumerator
<soahccc> It's ridiculous if you think about it... Ruby has `` %x exec system open3 IO#popen and maybe even more
buub has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
C4rlosCardona has joined #ruby
<maasha> gizmore: I thought I was sort of nesting 10 enumerators - and that "lambda called" should be displayed 10 times.
<maasha> :oD
<gizmore> soahccc: yeah, just wondered... i am working on a chatbot, in #ricergame ... my cowsay lets you choose the image :P ... https://github.com/gizmore/ricer2/blob/master/app/models/ricer/plugins/art/cowsay.rb
sinkensabe has quit [Remote host closed the connection]
rpag has quit [Quit: Leaving]
shevy has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
<maasha> ah, cowsay :o) a fav of mine for many many years
<soahccc> gizmore: I'm not sure but that seems like a good place for shellshock :D
<gizmore> lol
<maasha> I always install cowsay and sl first on new systems.
<gizmore> [20:39:12] <@Hirsch> ist das moo plugin afällig für shellshock?
carlyle_ has quit [Remote host closed the connection]
<gizmore> soahccc: ecaxtly what my friend asked too!
nonmadden has joined #ruby
<gizmore> is it vuln to shellshock? Oo
chrishou_ has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
<gizmore> i use cowsay with -- param
Jinkins has joined #ruby
<wasamasa> sarkis: I'm sorry for living in bleeding edge land
<sarkis> nothing wrong with it... just that it had nothing to do with the question asked :)
postmodern has joined #ruby
<wasamasa> you didn't specify what distro you're on, therefore
jhass is now known as jhass|off
<wasamasa> anyways, now that 2.1 is slowly, but surely becoming a standard and future releases will break pretty much nothing, I do no longer need to futz around with rvm, rbenv and so on
<wasamasa> which is good
b00stfr3ak has quit [Remote host closed the connection]
<C4rlosCardona> What is this regular expression matching in the parens https://gist.github.com/anonymous/c5ef258da0f3caf2d933 ?
darkness has joined #ruby
<bricker`work> wasamasa: any characer, 1 or more times, non-greedy, and it captures the match
<bricker`work> wasamasa: so, basically everything
darkness is now known as Guest91880
<wasamasa> bricker`work: I agree
iliketurtles has quit [Quit: zzzzz…..]
<bricker`work> wasamasa: okay cool just checking
<bricker`work> C4rlosCardona: ^
<bricker`work> ;)
jbw has joined #ruby
hellangel7 has quit [Ping timeout: 246 seconds]
badhatter has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
iamjarvo has joined #ruby
pierre1_ has joined #ruby
fabrice31 has joined #ruby
skolman has quit [Remote host closed the connection]
skolman has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
Advocation has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
existensil has joined #ruby
jhass|off is now known as jhass
spyderma_ has quit [Remote host closed the connection]
<existensil> did I miss the cat output?
skolman has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
spyderman4g63 has joined #ruby
heyimwill has quit [Ping timeout: 260 seconds]
hamakn_ has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
jokke has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
agjacome has joined #ruby
justinmburrous has quit [Remote host closed the connection]
Mso150_a_u has joined #ruby
<bricker`work> meow
nhhagen has quit [Remote host closed the connection]
badhatter has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
Mso150_a has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
nhhagen has joined #ruby
hamakn has quit [Read error: No route to host]
jokke has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
aspires has quit []
benzrf|offline is now known as benzrf
gerep_ has joined #ruby
benzrf is now known as benzrf|offline
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
anarang has joined #ruby
gerep has quit [Ping timeout: 260 seconds]
<ocx> rpag: does it mean i can have 10 processes opening the same file at the same time?
shredding has joined #ruby
fmcgeough has joined #ruby
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has joined #ruby
entrenad_ has joined #ruby
<ocx> can i have 10 processes opening the same file at the same time?
<ocx> yes/no?
anarang has quit [Client Quit]
<apeiros> yes
comma8 has joined #ruby
Insanity133 has joined #ruby
yfeldblum has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
shredding has quit [Quit: shredding]
niklasb has joined #ruby
heyimwill has joined #ruby
<twohlix> ocx: that is a technique used to lock threads
ciampix has joined #ruby
<twohlix> threads/processes.
nonmadden has quit [Remote host closed the connection]
<ocx> twohlix: why?
apeiros has quit [Remote host closed the connection]
justinmburrous has joined #ruby
<ocx> i dont want to lock threads twohlix
<ocx> i want to allow them to read all at the sme time
apeiros has joined #ruby
<twohlix> right, I'm just pointing out that yes you can, because its a useful thing to lock threads with
<twohlix> its not blocking them
<twohlix> but its like an easily shared piece of data between threads/processes
AlexRussia has joined #ruby
ivmx has left #ruby [#ruby]
<twohlix> ocx: if you dont write to the file, you shouldn't run into any issues, if multiple threads/processes start writing to a file it gets funky fast.
ciampix has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
Insanity133 has quit [Ping timeout: 260 seconds]
lolmaus has joined #ruby
lewix has joined #ruby
jokke has quit [Quit: WeeChat 1.0.1]
flughafen_ has quit [Ping timeout: 258 seconds]
Wolland has joined #ruby
jokke has joined #ruby
entrenad_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pdais has joined #ruby
carlyle_ has joined #ruby
ghr has joined #ruby
dopie has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
aspires has joined #ruby
_maes_ has quit [Ping timeout: 244 seconds]
awestroke has quit [Remote host closed the connection]
freezey has quit []
Wolland_ has quit [Ping timeout: 240 seconds]
carlyle_ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
carlyle_ has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
Xeago has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
kobain has quit [Read error: Connection timed out]
troulouliou_dev has joined #ruby
kobain has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
Mso150_a_u_v has joined #ruby
iliketurtles has joined #ruby
Xeago_ has joined #ruby
kobain has quit [Max SendQ exceeded]
tonini has quit [Remote host closed the connection]
kobain has joined #ruby
Mso150_a_u has quit [Ping timeout: 260 seconds]
kobain has quit [Max SendQ exceeded]
arthurvr has joined #ruby
kobain has joined #ruby
<arthurvr> Hi guys!
Jinkins has quit [Quit: This computer has gone to sleep]
<arthurvr> What are you guys thinking is the best way to learn ruby this times?
spider-mario has joined #ruby
kobain has quit [Max SendQ exceeded]
<existensil> arthurvr: depends on where you are starting from
<existensil> arthurvr: do you know any existing programming languages?
Xeago has quit [Ping timeout: 260 seconds]
<arthurvr> javascript (including Node), PHP and C
gsd has joined #ruby
tonini has joined #ruby
abdulsattar has joined #ruby
<wasamasa> well, uh, forget PHP entirely if you can afford that
robertt_dex has quit [Remote host closed the connection]
<arthurvr> Haha, I'il think about that ;-)
robertt_dex has joined #ruby
<existensil> Then I'd just find a project and dive in, aided by a good book or two, like the ruby pickaxe book
<existensil> or just keep the docs up. they are pretty good.
mityaz_ has joined #ruby
nhhagen has quit [Remote host closed the connection]
IrishGringo has joined #ruby
<eam> best way to learn a new language is to write an irc bot in it
<existensil> arthurvr: there is a free dated version of the pickaxe book here: http://ruby-doc.com/docs/ProgrammingRuby/
<arthurvr> existensil: Thanks!
ciampix has joined #ruby
<existensil> also, Why's Poignant Guide is both free and worthy of a read. It will help understand ruby a little, but is mostly entertaining and will help introduce you to how fun and weird the community tries to be
MCDev has joined #ruby
<arthurvr> existensil: Thanks (again)!
freeone3000 has joined #ruby
<twohlix> eam: write a bot using OpenCL
<existensil> http://www.ruby-doc.org/ and http://api.rubyonrails.org/ (if considering rails) are the two tabs I usually have open
<twohlix> i guess thats not a language really
<eam> lots of c/c++ irc bots
GinoMan has quit [Ping timeout: 272 seconds]
<freeone3000> I'm trying to run a rails serve on windows, but when running `rails s`, execjs complains there's no runtimes available, despite one being present in the gemfile. https://gist.github.com/freeone3000/60f23b1d091e669ec873 is my gemfile and log. What's wrong?
manzo has quit [Ping timeout: 258 seconds]
<existensil> freeone3000: are you trying to use a platform other than MRI?
<existensil> that gem is tied to C-ruby
<existensil> so if you are on jruby, you still haven't specified a JS runtime
abdulsattar has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Read error: Connection reset by peer]
<existensil> therubyrhino I think is the populare jruby option
<freeone3000> existensil: No, C:\Ruby200 has a ruby.exe
jasooon has joined #ruby
<existensil> and you've bundle install'ed ?
<freeone3000> existensil: Yes.
<mary5030> any advise for me here, this doesn't work:
<mary5030> config = TYPE_LOOKUP.detect{ |k,v| k =~ "BigIP- F5 2200-S" }
<mary5030> => nil
<mary5030> config = TYPE_LOOKUP.detect{ |k,v| k =~ "BigIP- F5 2200-S" }
<mary5030> => [/BigIP/, "big_ip"]
TieSoul has joined #ruby
<mary5030> the difference is only one I vs i
Darryl has quit [Quit: Connection closed for inactivity]
<TieSoul> what can I use as alternative to $stdin.ready? in 2.0.0?
icarus has quit [Ping timeout: 245 seconds]
gerep__ has joined #ruby
chrishou_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<freeone3000> mary5030: That sounds like it's working as intended.
<existensil> freeone3000: can you paste your Gemfile.lock ?
<freeone3000> existensil: https://gist.github.com/freeone3000/60f23b1d091e669ec873 <- Gemfile.lock added.
<TieSoul> wait
<TieSoul> why can't I use $stdin.ready?
<TieSoul> :P
arthurvr has left #ruby [#ruby]
sevvie has quit [Quit: leaving]
pietr0 has quit [Quit: pietr0]
<mary5030> freeone3000: yes but i need something more flexible that would;t not return nil on case sensitive
iamvery has joined #ruby
<existensil> freeone3000: ok, clearly not installed. maybe add another gem line, like: gem "therubyracer", platform: "x86-mingw32"
<existensil> I'm really not sure what the platform string should look like on windows
jasooon has quit [Ping timeout: 246 seconds]
<freeone3000> existensil: Now, that's odd. It's using C-Ruby but the list of extensions I'm getting includes jdbc-* which should only be grabbed under :jruby
nfk has quit [Quit: yawn]
<existensil> but it is not including things in the "ruby" platform
omosoj has quit [Quit: leaving]
<existensil> freeone3000: I don't see any jruby stuff actually being installed
gerep_ has quit [Ping timeout: 272 seconds]
ta has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
<existensil> its just installing neither platform
<existensil> its only installing the gems that don't have a platform specified
<TieSoul> erm, can anyone help me? STDIN#ready? errors saying it's an undefined method.
Pumukel has joined #ruby
niklasb has quit [Quit: WeeChat 1.0.1]
<TieSoul> And I don't know why
amil has joined #ruby
<freeone3000> existensil: Ah. Platform is :mri
gerep_ has joined #ruby
niklasb has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
kamilc__ has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
iamvery has quit [Client Quit]
ciampix has quit [Ping timeout: 260 seconds]
<existensil> TieSoul: require 'io/wait'
<existensil> you'll get your ready? back
<TieSoul> oh
<TieSoul> okay
drbrule has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Advocation has quit [Quit: Advocation]
dopie has joined #ruby
gerep has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gerep__ has quit [Ping timeout: 272 seconds]
<freeone3000> existensil: Yep, adding another line with an :mri platform on therubyracer fixed it. Thanks.
<TieSoul> erm, so now #ready? does exist but it always returns nil.
<TieSoul> I'm using raw input
cpruitt has quit [Quit: cpruitt]
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
sinkensa_ has joined #ruby
<existensil> returns boolean for me
epochwolf has quit [Quit: Uh no...]
gerep_ has quit [Ping timeout: 245 seconds]
amil has quit [Quit: Leaving...]
<TieSoul> and nread always returns 0
bobishh has joined #ruby
pietr0 has joined #ruby
ldnunes has joined #ruby
kobain has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
drbrule has quit [Quit: Lost terminal]
Takle has quit [Read error: Connection reset by peer]
jds has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
buub has quit [Ping timeout: 260 seconds]
Seventoes has joined #ruby
sanguisdex has joined #ruby
jack_rabbit has joined #ruby
Seventoes has left #ruby [#ruby]
maasha has quit [Quit: Page closed]
GinoMan has joined #ruby
gregor3005 has quit [Quit: Leaving.]
spyderman4g63 has quit [Ping timeout: 246 seconds]
pietr0 has quit [Client Quit]
kobain has quit [Client Quit]
AlexRussia has quit [Remote host closed the connection]
pietr0 has joined #ruby
momomomomo has joined #ruby
epochwolf has joined #ruby
kobain has joined #ruby
wallerdev has joined #ruby
kobain has quit [Max SendQ exceeded]
silkfox has joined #ruby
beef-wellington has quit [Read error: Connection reset by peer]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
Fabioagain has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Fabioagain has quit [Max SendQ exceeded]
ciampix has joined #ruby
Sawbones has joined #ruby
Fabioagain has joined #ruby
AlexRussia has joined #ruby
kobain has quit [Max SendQ exceeded]
Mso150 has joined #ruby
kobain has joined #ruby
Ulrike_Rayne is now known as Ulibot
maestrojed has joined #ruby
kobain has quit [Read error: Connection reset by peer]
jay__ is now known as rubyonrailed
Mso150_a_u_v has quit [Ping timeout: 272 seconds]
skammer has joined #ruby
Ulibot is now known as Ulrike_Rayne
benzrf|offline is now known as benzrf
alvaro_o has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
oponder has joined #ruby
michaeldeol has joined #ruby
janmuffino has quit [Ping timeout: 246 seconds]
<shevy> give a full code example TieSoul
gerep_ has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
Takle has quit [Remote host closed the connection]
<TieSoul> when I test this with a sample dialog, it simply prints nil every iteration no matter what I press
<TieSoul> oh and I have done 'stty raw -echo' before that
<TieSoul> my intention is to make the text scroll faster when the player presses enter
thejamespinto has quit [Read error: Connection reset by peer]
<existensil> ferr: well, other than the explicit return not being necessary, that looks like a pretty efficient way
tjbiddle has quit [Quit: tjbiddle]
thejamespinto has joined #ruby
gerep has quit [Ping timeout: 245 seconds]
jonmorehouse has joined #ruby
Advocation has joined #ruby
endash has quit [Quit: endash]
skammer has quit [Quit: WeeChat 1.0]
Sht0 has quit []
wallerdev has quit [Quit: wallerdev]
<apeiros> ferr: I'd probably use .delete('^a-z') instead of scan
noop has quit [Ping timeout: 272 seconds]
troulouliou_dev has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
shosti has joined #ruby
momomomomo has quit [Ping timeout: 260 seconds]
mike32 has joined #ruby
momomomomo has joined #ruby
KC9YDN has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
<shevy> TieSoul ok how do you invoke that code?
ghostmoth has joined #ruby
tesaf has joined #ruby
<TieSoul> system('stty raw -echo'); dialog(p = "Some text here", 'Name', [p.index('e')]); system('stty -raw echo')
<TieSoul> I'm using ruby 2.1.3 btw
<shevy> I am getting funny output
<shevy> all indented and nils
<shevy> what should that code do?
thejamespinto has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
<TieSoul> the nils are for testing
<TieSoul> they are the keyboard inputs
<TieSoul> try inputting something and tell me what you see
thejamespinto has joined #ruby
TorpedoSkyline has quit [Ping timeout: 250 seconds]
spider-mario has quit [Read error: Connection reset by peer]
<TieSoul> comment out the p char_if_ready line if you want to see what it does.
chrishough has joined #ruby
<ferr> apeiros, what ^ stands for at .delete('^a-z')?
<apeiros> negates the character class
<apeiros> ^a-z -> everything except a-z
krisquigley has joined #ruby
<shevy> TieSoul but I don't get to do any input
<ferr> Ok, thanks a lot
<TieSoul> it's raw input
<TieSoul> it doesn't wait
ahhMichael has quit [Ping timeout: 256 seconds]
<TieSoul> at least it's supposed to do that
work_op has joined #ruby
<shevy> well it "waits" because of sleep(delay) but it never catches user input right?
<TieSoul> hum
pwh has joined #ruby
<shevy> I don't see where you fetch user input
Mso150 has quit [Ping timeout: 272 seconds]
<TieSoul> in the char_if_ready function
claymore has quit [Quit: Leaving]
<shevy> obviously not if "<TieSoul> comment out the p char_if_ready line if you want to see what it does."
<shevy> and even with that line it runs the method call then exits instantly
<TieSoul> erm
<TieSoul> It's supposed to react to user input at any given moment
<TieSoul> not wait for it
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I can input anything and nothing changes
<shevy> oh
<shevy> if I am quick enough it gets it
TorpedoSkyline has joined #ruby
<shevy> very sneaky of you
<TieSoul> it doesn't get it for me
<TieSoul> that's the problem
<shevy> I managed 5 'e' characters before it quit
<shevy> that's like a game
Asher has quit [Quit: Leaving.]
Takle has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
<TieSoul> do you think it's because the sleep method doesn't allow for even raw input?
justinmburrous has quit [Remote host closed the connection]
dangerousdave has joined #ruby
skammer has joined #ruby
<shevy> no
<shevy> it iterates over the text that you supplied
yfeldblum has joined #ruby
<shevy> dialog(p = "Some text here",
<shevy> and btw, why do you assign to p?
<shevy> ah
<shevy> because of the .index
<shevy> though you could solve that in the method itself
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
duncannz has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
n_blownapart has joined #ruby
iamjarvo has joined #ruby
freerobby has quit [Quit: Leaving.]
wallerdev has joined #ruby
freerobby has joined #ruby
ghr has joined #ruby
pierre1_ has quit [Ping timeout: 272 seconds]
jonmorehouse has quit [Ping timeout: 250 seconds]
Advocation has quit [Quit: Advocation]
icarus has joined #ruby
yetanotherdave has quit [Ping timeout: 245 seconds]
gerep__ has joined #ruby
larissa has joined #ruby
jonmorehouse has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
tonyhb has quit [Quit: peace]
jasooon has joined #ruby
gerep_ has quit [Ping timeout: 246 seconds]
ahhMichael has joined #ruby
Digital-Ghost has quit [Remote host closed the connection]
WormDrink has joined #ruby
Suchit_ has quit [Quit: Computer has gone to sleep.]
seanosaur has joined #ruby
Suchit_ has joined #ruby
Suchit_ has quit [Client Quit]
jasooon has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
pierre1_ has joined #ruby
Suchit_ has joined #ruby
obscured has quit [Quit: leaving]
justinmburrous has joined #ruby
j_mcnally has joined #ruby
mikepack has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 245 seconds]
Suchit_ has quit [Ping timeout: 250 seconds]
Pumukel has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 272 seconds]
<existensil> ferr: I don't konw that you should be pasting every homework assignment. Your solution is fine, but this is much shorter: values.uniq
Takle_ has joined #ruby
mekhami has quit [Remote host closed the connection]
Pumukel has joined #ruby
jonmorehouse has joined #ruby
aspires has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> as a reimplementation of Array#uniq, it is ok, but inefficient
isthisreallife has joined #ruby
<Sou|cutter> or Set.new(values).to_a
Takle has quit [Ping timeout: 246 seconds]
slyslick has joined #ruby
<ferr> Sorry if I bother you guys
<Sou|cutter> ferr: nobody said that
<apeiros> inefficient because it is O(n*n), and optimal solution is O(n)
icarus has quit [Ping timeout: 244 seconds]
<havenwood> [1,2,2,3,3,4,5] #=> [1,4,5] isn't the same as #uniq
<isthisreallife> how to check if given string contains any item from array?
duncannz has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<havenwood> isthisreallife: array.any? { |item| string.include? item }
<apeiros> havenwood: ah indeed
<Sou|cutter> havenwood: hah, right you are
spyderman4g63 has joined #ruby
<apeiros> same thing still applies - optimal solution is O(n)
<Sou|cutter> I would just return [1,4,5] and be O(1)
<Sou|cutter> a broken clock is right twice/day, as they say
<Sou|cutter> (ok, I'm not funny, sorry)
<j2p2> I'll break it down a little bit - basically when you use your solution, it runs through the whole list counting the elements for every element
freerobby has quit [Quit: Leaving.]
<j2p2> you want to find one where you only have to go through the list once
<ferr> Yes
fsapo has quit [Remote host closed the connection]
<heftig> apeiros: make a hash of counts and then filter, I guess?
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
sinkensa_ has quit [Remote host closed the connection]
<heftig> one pass over the array to build the hash, one pass to filter the hash
iamjarvo has joined #ruby
paulfm has quit []
<heftig> If the array is sorted you don't even need the hash and can do it in one pass, I think
mikepack has joined #ruby
akitada__ has quit [Ping timeout: 240 seconds]
HashNuke has quit [Ping timeout: 272 seconds]
mattyohe has quit [Ping timeout: 272 seconds]
incomprehensibly has quit [Ping timeout: 272 seconds]
aclearman037 has quit []
<apeiros> heftig: that's one way, yes
bigmac has joined #ruby
pietr0 has quit [Quit: pietr0]
ggherdov has quit [Ping timeout: 272 seconds]
machty has quit [Ping timeout: 272 seconds]
<apeiros> and yes, if it is guaranteed to be sorted, you can reduce the constant factor/summand (which is removed in O notation)
bigmac has quit [Read error: Connection reset by peer]
<heftig> just keep count of how many times you've seen the last item, and if you get a new item that's different from the last and the count is 1, output the last
yetanotherdave has joined #ruby
HashNuke has joined #ruby
Digital-Ghost has joined #ruby
<j2p2> in any case ferr your solution works and you're definitely thinking about it the right way, these are just performance tips :)
i8igmac has joined #ruby
PhilK has quit [Quit: ZNC - http://znc.in]
PhilK has joined #ruby
<havenwood> a, ahem, fun solution:
<havenwood> >> values.sort.chunk { |i| i }.map(&:last).select(&:one?).map(&:first)
<eval-in_> havenwood => undefined local variable or method `values' for main:Object (NameError) ... (https://eval.in/201272)
mattyohe has joined #ruby
akitada__ has joined #ruby
<havenwood> #=> [1, 4, 5]
<ferr> I see it works but I always show it for you since I want better performance
incomprehensibly has joined #ruby
bmurt has quit []
RichardLitt has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
chipotle has joined #ruby
Takle has joined #ruby
machty has joined #ruby
* havenwood plots inefficiency
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> s/map(&:first)/flatten
tesaf has quit [Quit: Lost terminal]
Wolland has quit [Remote host closed the connection]
stunder has quit [Quit: Leaving]
Wolland has joined #ruby
<Sou|cutter> nice, I didn't know chunk
ciampix has quit [Ping timeout: 260 seconds]
cpruitt has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
Insanity133 has joined #ruby
endash has joined #ruby
gerep_ has joined #ruby
weaksauce has joined #ruby
yokel has joined #ruby
<havenwood> i shoulda done `group_by` instead of `sort.chunk` though, just being verbose
MCDev has quit [Ping timeout: 250 seconds]
ggherdov has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
<havenwood> >> [1, 2, 2, 3, 3, 4, 5].group_by { |i| i }.values.select(&:one?).flatten
<eval-in_> havenwood => [1, 4, 5] (https://eval.in/201273)
gerep__ has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
jonmorehouse has quit [Ping timeout: 260 seconds]
Insanity133 has quit [Ping timeout: 244 seconds]
aboudreault has quit [Ping timeout: 246 seconds]
codecop has quit [Remote host closed the connection]
cr3 has joined #ruby
<apeiros> why on earth do we have Array#one?
KC9YDN has quit [Remote host closed the connection]
alem0lars has joined #ruby
<havenwood> apeiros: for great fun :)
<apeiros> >> Array.instance_methods(false).size
<eval-in_> apeiros => 90 (https://eval.in/201274)
<apeiros> :-S
<cr3> when I have two versions of ruby installed from debian package, what environment variables should I set to install an application using the non-default version?
jonmorehouse has joined #ruby
<havenwood> cr3: update-alternatives
<apeiros> cr3: sounds more like a debian question to me…
<cr3> havenwood: sweet, thanks!
<crome> lol @ one?
<havenwood> cr3: sudo update-alternatives --config ruby
<cr3> apeiros: I was expecting some ruby variables, like RUBY_PATH or RUBY_LIB or somesuch
stunder has joined #ruby
bluOxigen has quit []
skolman has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
x1337807x has joined #ruby
<havenwood> cr3: RUBY_ROOT, GEM_HOME, GEM_PATH
robertt_dex has quit [Remote host closed the connection]
<apeiros> cr3: ruby doesn't concern itself with your package manager's details and mechanisms to install multiple versions of it
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cr3> apeiros: fine, be that way :)
<havenwood> cr3: that's how chruby switches, for example. but update-alternatives is how you'd switch between debian package versions
stunder has quit [Remote host closed the connection]
<apeiros> (nor should it)
ht has quit [Remote host closed the connection]
KC9YDN has joined #ruby
<cr3> havenwood: thanks, update-alternatives returned "no alternatives for ruby" so I'll try the environment variables
x1337807x has quit [Client Quit]
<havenwood> cr3: wait, did you install more than one apt-get ruby?
stunder has joined #ruby
skolman_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
<cr3> havenwood: dpkg confirms that ruby and ruby2.0 are installed (ii)
skolman_ has joined #ruby
mhi^ has quit [Quit: Lost terminal]
<havenwood> hem, i wonder if you're one one where they expect you to use: ruby-switch
AFKGeek has joined #ruby
<havenwood> cr3: anything for?: ruby-switch --list
<havenwood> cr3: If not, i'm baffled. Check out chruby: https://github.com/postmodern/chruby#readme
<ferr> havenwood, thank you very much!
<cr3> havenwood: no such command and apt-file search ruby-switch doesn't return it either
aspires has joined #ruby
msmith has quit [Remote host closed the connection]
<havenwood> cr3: not sure why you have two packages but they're not listed on update-alternatives, odd
<cr3> havenwood: I'm guessing they're considered independent rather than alternatives
RegulationD has quit [Quit: RegulationD]
<havenwood> are they the same package?
<havenwood> what's ruby? so confusing these days. varies by version.
ldnunes has quit [Quit: Leaving]
AFKGeek has quit [Client Quit]
awc737 has joined #ruby
<havenwood> cr3: ruby2.0 is 2.0, but is ruby also 2.0?
iliketurtles has joined #ruby
<havenwood> or 1.8?
<havenwood> what are you expecting?
mike32 has quit [Quit: Leaving]
justinmburrous has quit [Remote host closed the connection]
<cr3> havenwood: 1.9
skolman_ has quit [Ping timeout: 246 seconds]
ozzloy_ is now known as ozzloy
ozzloy has quit [Changing host]
ozzloy has joined #ruby
AFKGeek has joined #ruby
<havenwood> cr3: sudo apt-get install -y ruby1.9 ruby1.9-dev
<havenwood> cr3: then set it with: sudo update-alternatives --config ruby
<cr3> havenwood: I'm expecting to set my environment so that I can run commands like bundle and rake using ruby2.0 rather than the default ruby
<antlong> does activerecord support function index?
<cr3> havenwood: ah, makes sense!
<havenwood> cr3: though if the package is available, consider: sudo apt-get install -y ruby2.1 ruby2.1-dev
hackeron has quit [Ping timeout: 244 seconds]
<apeiros> antlong: you can execute plain sql to create any index you want. also #rubyonrails
<havenwood> antlong: activerecord stuff is better for #rubyonrails
<antlong> ok thank you
seanosaur has quit []
<apeiros> antlong: and cross-posting without telling is rude.
Guest91880 has quit [Read error: Connection reset by peer]
hackeron has joined #ruby
<antlong> i disagree, but noted
<antlong> sounds like reddiquette
<havenwood> antlong: just an aside, but the Sequel gem is a nice SQL toolkit for Ruby outside Rails land: https://github.com/jeremyevans/sequel#readme
<apeiros> antlong: well, did you tell #rubyonrails that you have an answer? no? want to waste people's time because you don't care?
ptrrr has quit [Quit: ptrrr]
<antlong> i dont have an answer, and no one has responded there
<apeiros> 23:19 apeiros: antlong: you can execute plain sql to create any index you want. also #rubyonrails
danman has quit [Quit: danman]
androidbruce has left #ruby ["Leaving"]
<apeiros> you got an answer
<antlong> apeiros thats not what im asking
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<antlong> im asking about active record
<shevy> activerecord derived from the rails ecosystem
<apeiros> antlong: executing plain sql *is part of AR*
Ankhers has quit [Ping timeout: 264 seconds]
<antlong> so it supports it?
hellangel7 has joined #ruby
<apeiros> *eyeroll*
freerobby has joined #ruby
<shevy> hehehe
<apeiros> I'm done with you
jottr_ has quit [Ping timeout: 246 seconds]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
threesixes has joined #ruby
* apeiros should stick to just kick cross posters.
neoxquick has joined #ruby
lewix has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
lewix has joined #ruby
n_blownapart has quit [Remote host closed the connection]
<cr3> havenwood: it seems that after gem2.0 install bundler, the bundle command's shebang points to ruby2.0
<antlong> executing plain sql is it would be problematic when working on different environments
alem0lars has left #ruby [#ruby]
jcdesimp has joined #ruby
duncannz has joined #ruby
mattmcclure has joined #ruby
benzrf|offline is now known as benzrf
jottr_ has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
<havenwood> antlong: using Oracle Database per chance?
<antlong> postgres, havenwood
jonmorehouse has quit [Ping timeout: 260 seconds]
ciampix has joined #ruby
nuck has quit [Remote host closed the connection]
thejamespinto has quit [Read error: Connection reset by peer]
icebourg_ has joined #ruby
icebourg has quit [Read error: Connection reset by peer]
AFKGeek has quit [Quit: Bye]
icarus has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nuck has joined #ruby
cerberblue has quit [Remote host closed the connection]
gerep__ has joined #ruby
x1337807x has joined #ruby
JoshGlzBrk has joined #ruby
<shevy> hmmm
<shevy> I just realized
nrsk has joined #ruby
thejamespinto has joined #ruby
<shevy> gems do not allow you to make per-file dependencies from another gem
<shevy> for instance, I need to use SymlinkProgram.new from file symlink_program.rb in a gem, but I don't need the rest of that project...
codeurge has joined #ruby
<sailias> antlong: aside from raw sql, AR does not support function index
ghr has joined #ruby
<antlong> sailias thats what im looking for, thanks.
<sailias> antlong: someone else on that SO post i'm sure you read had some other weird way of doing
aboudreault has joined #ruby
gerep_ has quit [Ping timeout: 260 seconds]
<sailias> antlong: you might be able to duplicate it, but add_index :people, "someFunc(something)" isn't supported
spyderman4g63 has quit [Remote host closed the connection]
wjimenez5271 has quit []
<antlong> We're launching Tuesday so I can't really experiment much (safely, anyway)
aspires has quit []
wjimenez5271 has joined #ruby
<sailias> antlong: good call
<antlong> thanks for the info.
antlong has left #ruby ["Textual IRC Client: www.textualapp.com"]
aspires has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
thagomizer has quit [Read error: Connection reset by peer]
iliketurtles has quit [Quit: zzzzz…..]
<havenwood> ferr: could even be *real* fancy:
<havenwood> >> [1, 2, 2, 3, 3, 4, 5].group_by(&:real).values.select(&:one?).flatten
<eval-in_> havenwood => [1, 4, 5] (https://eval.in/201276)
uxp has quit [Read error: Connection reset by peer]
thagomizer has joined #ruby
reset has quit [Read error: Connection reset by peer]
uxp has joined #ruby
j2p2 has quit [Read error: Connection reset by peer]
<ferr> I'm gonna check the "real" thing
codeurge has quit [Client Quit]
j2p2 has joined #ruby
moshee has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
<shevy> how to check whether Foo::Bar is available for my project?
<havenwood> >> [1, 2, 2, 3, 3, 4, 5].group_by(&:conjugate).values.select(&:one?).flatten
<eval-in_> havenwood => [1, 4, 5] (https://eval.in/201277)
freeone3000 has left #ruby ["Konversation terminated!"]
Xeago_ has quit [Remote host closed the connection]
<benzrf> conjugate
<benzrf> >> 3.real
<eval-in_> benzrf => 3 (https://eval.in/201278)
ghr has quit [Ping timeout: 260 seconds]
<havenwood> >> 3.conj
<eval-in_> havenwood => 3 (https://eval.in/201279)
Cork has quit [Ping timeout: 258 seconds]
hellangel7 has quit [Read error: Connection reset by peer]
<benzrf> >> [1, 2, 2, 3, 3, 4, 5].group_by(&:real).values
<eval-in_> benzrf => [[1], [2, 2], [3, 3], [4], [5]] (https://eval.in/201280)
TorpedoSkyline has quit [Client Quit]
redondos has quit [Ping timeout: 260 seconds]
<benzrf> >> [1, 2, 2, 3, 3, 4, 5].group_by(&:real)
<eval-in_> benzrf => {1=>[1], 2=>[2, 2], 3=>[3, 3], 4=>[4], 5=>[5]} (https://eval.in/201281)
icarus has quit [Ping timeout: 245 seconds]
cr3 has quit [Ping timeout: 240 seconds]
<benzrf> oh i seee.
jasooon has joined #ruby
<apeiros> havenwood: &:itself
moshee has joined #ruby
<apeiros> apparently that's a thing now
mordof has quit [Ping timeout: 272 seconds]
cr3 has joined #ruby
<havenwood> reaaally? hem
<j2p2> that's pretty neat
<apeiros> hm, 2.2?
Jinkins has joined #ruby
icarus has joined #ruby
<apeiros> 2.1 no have :-( but I saw somebody link source, so it must be 2.2
<ferr> It makes no sense between .values, real and conjugate?
redondos has joined #ruby
aboudreault has quit [Quit: damn]
<ferr> oh sorry, wrong argument
nrsk has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<mroth_> anyone around who is very familiar with Bundler and is willing to read a blog post draft to tell me if I missed something obvious?
mroth_ is now known as mroth
<havenwood> mroth: hit us
mroth has quit [Changing host]
mroth has joined #ruby
mroth has joined #ruby
mroth has quit [Changing host]
TorpedoSkyline has joined #ruby
jottr_ has joined #ruby
Sawbones has quit []
Cork has joined #ruby
michaeldeol has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 260 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has quit []
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
codeurge has joined #ruby
iamjarvo has joined #ruby
michaeldeol has joined #ruby
aboudreault has joined #ruby
j2p2 has quit []
bobishh has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
<shevy> you made him disconnect havenwood
c107 has joined #ruby
coderdad_ has quit [Remote host closed the connection]
MrBoolean has quit [Quit: Leaving...]
C4rlosCardona has quit [Remote host closed the connection]
dorei has quit []
gerep__ has quit [Ping timeout: 260 seconds]
Sawbones has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
AmBienCeD has joined #ruby
JohnBat26 has joined #ruby
aspires has quit []
JohnBat26|2 has joined #ruby
aspires has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tessi_zz is now known as tessi
JohnBat26|2 has quit [Client Quit]
JohnBat26 has quit [Client Quit]
sailias has quit [Quit: Leaving.]
jnylen has joined #ruby
Stranger has joined #ruby
Stranger is now known as Guest60000
d4nku has joined #ruby
<shevy> wow
carlyle_ has quit [Remote host closed the connection]
<shevy> I just heard "hairy weights" rather than "heavyweight"
jonmorehouse has joined #ruby
icarus has quit [Ping timeout: 272 seconds]
HelperW has quit [Quit: Computer has gone to sleep.]
HelperW has joined #ruby
HelperW_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryanleesipes has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
thejamespinto has quit [Read error: Connection reset by peer]
treehug88 has quit []
cpruitt has quit [Quit: cpruitt]
<benzrf> lenn
thejamespinto has joined #ruby
<benzrf> ( ͡° ͜ʖ ͡°)
HelperW has quit [Ping timeout: 272 seconds]
geggam has quit [Quit: commute]
<benzrf> >> [1, 2, 3].conjugate
<eval-in_> benzrf => undefined method `conjugate' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/201284)
skolman_ has joined #ruby
<benzrf> huh
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> >> 3.conjugate
<eval-in_> benzrf => 3 (https://eval.in/201285)
<benzrf> whaa
<benzrf> >> 3.conjugate 4
<eval-in_> benzrf => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/201286)
<benzrf> o_O
Wolland has joined #ruby
manzo has joined #ruby
klaut has quit [Remote host closed the connection]
HelperW_ has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
jobewan has quit [Quit: Leaving]
jonmorehouse has quit [Ping timeout: 245 seconds]
gerep__ has joined #ruby
HelperW_ has joined #ruby
justinmburrous has joined #ruby
mityaz_ has quit [Quit: See ya!]
nhhagen has joined #ruby
sdwrage has quit [Read error: No route to host]
<havenwood> >> 1.conj(&:poppy_seeds).real(&:foxes).conjugate(&:verbs)
<eval-in_> havenwood => 1 (https://eval.in/201287)
MCDev has joined #ruby
codeurge has joined #ruby
<davidcelis> ...
<AlexRussia> davidcelis: whats up?
Guest60000 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sdwrage has joined #ruby
<davidcelis> just... those conj(ugate) calls. what?
HelperW__ has joined #ruby
<AlexRussia> i too nothing understand in that code :(
<apeiros> Complex numbers
<apeiros> and all methods accept blocks, even if they don't do anything with it
<davidcelis> i'm guessing because that method doesnt really take a block?
HelperW_ has quit [Ping timeout: 250 seconds]
<davidcelis> er, do anything with it. yeah
<apeiros> >> 1.to_s { "hello kitty" }
<eval-in_> apeiros => "1" (https://eval.in/201288)
Tomme has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
<benzrf> >> (1/2).conjugate
<eval-in_> benzrf => 0 (https://eval.in/201289)
<benzrf> o_O
RegulationD has joined #ruby
<benzrf> >> (1.0/2).conjugate
<eval-in_> benzrf => 0.5 (https://eval.in/201290)
<benzrf> what do conjugate do
<havenwood> benzrf: self
<benzrf> ooooooooooooooooooooooooooh
<benzrf> wait
<havenwood> just. self.
<benzrf> then why is it just on numbers
<benzrf> >> 'foo'.conjugate
<eval-in_> benzrf => undefined method `conjugate' for "foo":String (NoMethodError) ... (https://eval.in/201291)
<apeiros> because: complex numbers
<apeiros> as said before
<benzrf> oh i missed that
<apeiros> >> Complex(3, 2)
<eval-in_> apeiros => (3+2i) (https://eval.in/201292)
<apeiros> >> Complex(3, 2).conjugate
<eval-in_> apeiros => (3-2i) (https://eval.in/201293)
<apeiros> "returns self" applies to real numbers
<benzrf> kk
jcdesimp has quit [Remote host closed the connection]
oleo__ has joined #ruby
oleo is now known as Guest6399
nhhagen has quit [Ping timeout: 260 seconds]
aspires has quit []
thagomizer has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: i've nodded off.]
krisquigley has quit [Ping timeout: 260 seconds]
gerep__ is now known as gerep
Sawbones has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest6399 has quit [Ping timeout: 272 seconds]
d4nku has quit [Remote host closed the connection]
skammer1 has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
livingstn has quit []
afhammad has joined #ruby
skammer has quit [Ping timeout: 244 seconds]
asklov has joined #ruby
mikecmpbll has joined #ruby
entrenador has joined #ruby
hiyosi has joined #ruby
ducklobster has quit [Ping timeout: 246 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
ValicekB has quit [Ping timeout: 245 seconds]
carlyle_ has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
Takle has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 244 seconds]
tessi is now known as tessi_zz
rafadc has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
snath has quit [Ping timeout: 260 seconds]
rafadc has quit [Client Quit]
wallerdev has quit [Ping timeout: 272 seconds]
skolman_ has quit [Remote host closed the connection]
kaspertidemann has quit []
fabrice31 has joined #ruby
skolman_ has joined #ruby
rezzack1 has joined #ruby
ghr has joined #ruby
<havenwood> ferr: not better: array == array.grep(Fixnum)
RegulationD has left #ruby [#ruby]
justinmburrous has quit [Remote host closed the connection]
<ferr> this would be better since it stops when false?
TDJACR has quit [Quit: ZNC - http://znc.in]
axl_ has quit [Quit: axl_]
rezzack has quit [Ping timeout: 272 seconds]
dnyy has joined #ruby
ahhMichael has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Connection reset by peer]
wjimenez_ has joined #ruby
andregabriel82 has joined #ruby
<havenwood> ferr: that's one reason
TDJACR has joined #ruby
skolman_ has quit [Ping timeout: 258 seconds]
<ferr> and another?
codeurge has joined #ruby
lektrik has joined #ruby
<havenwood> it is preferable to ask the object what you want to know
jasooon has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
<benzrf> >> Fixnum.call
<eval-in_> benzrf => undefined method `call' for Fixnum:Class (NoMethodError) ... (https://eval.in/201294)
<havenwood> ferr: consider `x.nil?` versus `x == nil`
ValicekB has joined #ruby
carlyle_ has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
wjimenez5271 has quit [Ping timeout: 272 seconds]
<havenwood> ferr: ^ which is better and why? (from the Ruby Koans)
<ferr> .nil? due to readability?
sevvie has joined #ruby
willgo has joined #ruby
Jinkins has quit [Quit: Leaving]
rubyonrailed has quit [Remote host closed the connection]
entrenador has quit [Ping timeout: 260 seconds]
staticshock has joined #ruby
snath has joined #ruby
mayanpilot has joined #ruby
jasooon has quit [Ping timeout: 246 seconds]
rubyonrailed has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
apeiros has quit [Remote host closed the connection]
andregabriel82 has quit [Quit: Page closed]
apeiros has joined #ruby
freerobby has quit [Quit: Leaving.]
Fabioagain has quit [Quit: Textual IRC Client: www.textualapp.com]
dp_ has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
mayanpilot has quit [Client Quit]
djstorm has quit [Ping timeout: 272 seconds]
<dp_> can anyone tell me what the GSL::Vector.sum method actually does? I can't seem to find source that documents it
baroquebobcat has quit [Quit: baroquebobcat]
iliketurtles has joined #ruby
<havenwood> dp_: It returns the sum of the vector elements.
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.3/20140923175406]]
<dp_> so if the vector just contains 1, 2, 3, 4, the sum would be 10?
govg has joined #ruby
rubyonrailed has quit [Ping timeout: 260 seconds]
<shevy> I got an array like this: ["N", "H3", "H", "H", "H", "O2"]
<ferr> havenwood, I still can't get the difference between .nil? and == nil
<shevy> now I wonder if there is a simple way to convert it into: ["N", "H6", "O2"]
<shevy> but I guess, a Hash may be the simpler solution altogether?
<havenwood> ferr: there are multiple differences, mediate on them
<havenwood> meditate**
klmlfl has quit [Ping timeout: 246 seconds]
<shevy> ferr I use .nil? all the time
<ferr> I would prefer ^ also
<shevy> I would not know a legit use case for x == nil
<shevy> perhaps for an object that does not have .nil? method
grzywacz has quit [Ping timeout: 246 seconds]
siwica has quit [Quit: siwica]
<shevy> huh
<shevy> >> BasicObject.nil?
<eval-in_> shevy => false (https://eval.in/201298)
<shevy> k then I don't know one indeed
<ferr> lol
<havenwood> to_procability map(&:nil?), arguments increase connascence of name
rubyonrailed has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<dp_> havenwood: am I correct?
<shevy> so he gives more reason to use .nil? :)
aspires has quit []
chrishough has joined #ruby
kenneth has joined #ruby
<ferr> I may only notice this difference http://pastebin.com/nPyyucgh
<dp_> havenwood: the second link gives some information through GSL::Vector#sum, but I can't tell what it's actually doing
larissa has quit [Quit: Leaving]
aspires has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dp_> ah
mary5030 has quit [Remote host closed the connection]
aspires has quit [Client Quit]
Digital-Ghost has quit [Remote host closed the connection]
<havenwood> >> ["N", "H3", "H", "H", "H", "O2"].uniq { |i| i[0] }
<eval-in_> havenwood => ["N", "H3", "O2"] (https://eval.in/201302)
<havenwood> shevy: ^
startupality has joined #ruby
Ankhers has joined #ruby
<shevy> huh
cndiv has quit [Ping timeout: 246 seconds]
<shevy> how does that work
<shevy> oh you discarded 3 H
yetanotherdave has quit [Read error: Connection reset by peer]
<gizmore> >> ["N", "H3", "H", "H", "H", "O2", "NJA"].uniq { |i| i[0] }
<eval-in_> gizmore => ["N", "H3", "O2"] (https://eval.in/201304)
<shevy> I went for a hash, my brain works better with them
<gizmore> thanks havenwood :)
yetanotherdave has joined #ruby
msmith has joined #ruby
Asher has joined #ruby
lektrik has quit [Ping timeout: 272 seconds]
rkalfane has joined #ruby
<havenwood> shevy: oh, i just now understood your question :O
stuligan has joined #ruby
<shevy> I am trying to write a formula calculator for chemistry
<shevy> I already have a molecular_mass calculator
rubie has joined #ruby
<shevy> unfortunately I have to hit the sack now as I have to wake up in a bit more than 5 hours :(
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombadaroomba has quit [Remote host closed the connection]
slyslick has quit [Ping timeout: 260 seconds]
skammer1 has quit [Ping timeout: 260 seconds]
<ferr> So should I use == or eql?
slyslick has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
benzrf is now known as benzrf|offline
justinmburrous has joined #ruby
drawingthesun has quit [Read error: Connection reset by peer]
<havenwood> >> ["N", "H3", "H", "H", "H", "O2"].map { |m| [m[0], (m[1] || "1").to_i] }.group_by(&:first).map { |k, v| "#{k}#{v.map(&:last).inject(:+)}" }
<eval-in_> havenwood => ["N1", "H6", "O2"] (https://eval.in/201305)
stuligan has quit [Quit: stuligan]
n_blownapart has joined #ruby
<havenwood> shevy: well then a rushed ^ stab, g'night! :P
<havenwood> ferr: that is a different case, because they aren't equivalent
<havenwood> shevy: that's a neat problem
benzrf|offline is now known as benzrf
<ferr> Ok
dc__ has quit [Remote host closed the connection]
bmurt has joined #ruby
russt has quit [Ping timeout: 240 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
GinoMan has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
TorpedoSkyline has joined #ruby
wallerdev has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
shosti has quit [Ping timeout: 240 seconds]
twohlix has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
MCDev has joined #ruby
<weaksauce> ferr equal? tests for basic object equality
<weaksauce> every time you create a string it creates a new object
ephemerian has quit [Quit: Leaving.]
ghostmoth has joined #ruby
<ferr> I see
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
silkfox has quit [Ping timeout: 250 seconds]
mikepack has quit [Remote host closed the connection]
<weaksauce> ferr that's why symbols are preferred for static keys so you aren't creating objects all over the place
byte48 has joined #ruby
<weaksauce> :t.equals?(:t) # is true
jrunning has joined #ruby
niklasb has quit [Ping timeout: 272 seconds]
Daemonik has joined #ruby
<Daemonik> I want to deploy a Ruby app. Say this Ruby app depends on a gem named foo, how may I have gem foo version 2.0.1 and version 2.0.2 installed on the same system? There are quite a handful of Ruby gem management systems out there and they all seem overly complex. At this point I feel like I just want to do /opt/ruby-2.0p480 (or whatever) and /opt/ruby-2.0p480/foo-2.0.1 and /opt/ruby-2.0p480/foo-2.0.2 and explicitly point Ruby apps to specific Ruby/Gem
<Daemonik> versions.
Digital-Ghost has joined #ruby
mrsolo has quit [Quit: Leaving]
sanguisdex has quit [Ping timeout: 246 seconds]
<weaksauce> Daemonik use bundler. write a gemfile that specifies the version and then bundle exec ruby ./your_scirpt.rb
hiyosi has joined #ruby
patrick99e99 has quit [Quit: Lost terminal]
mikepack has joined #ruby
narcan has joined #ruby
<weaksauce> Daemonik it takes care of all your worries and works well... it was a really enticing feature that, in part, got me to try out rails
<weaksauce> and ruby
afhammad has quit [Remote host closed the connection]
afhammad has joined #ruby
lewix has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
<Daemonik> weaksauce, Yeah I don't want to do that, because while it's supposed to take care of all my worries it doesn't. The platform I'm using is SmartOS base64 14.2.0 and I want to separate the Ruby/Gems deployment process from the application(s) then have the applications be explicitly pointed to the Ruby/Gem versions.
hiyosi has quit [Ping timeout: 244 seconds]
lewix has joined #ruby
<Daemonik> weaksauce, I need to be able to support arbitrary applications with arbitrary dependencies -- so, I have to cover all dependencies and the Ruby/Gem versions have to be read-only to the apps.
thomasxie has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<jhass> Daemonik: still sounds like a valid job for bundler, chance is you're just using it wrong. Anyway, RubyGems can do this, simply call gem 'foo', '2.0.1' before requiring it
<Daemonik> jhass, Using Bundler wrong is probably what I'm doing. =) What would be the authoritative and most helpful resource on Bundler?
jcdesimp has joined #ruby
<jhass> http://bundler.io and bundle help [subcommand]
mutenewt has joined #ruby
afhammad has quit [Ping timeout: 272 seconds]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
<weaksauce> Daemonik if you want to post a gemfile that you are having problems with we could take a look
thumpba has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
echevemaster has joined #ruby
icebourg_ has quit []
stunder has quit [Remote host closed the connection]
ghr has joined #ruby
<Daemonik> jhass + weaksauce Is there a public-facing Jenkins server that builds Ruby and arbitrary Ruby Gems on popular OSes like CentOS-6, CentOS-7, and SmartOS Base64 14.2.0 ?
gregf has quit [Quit: WeeChat 1.0]
<jhass> not that I know of
<jhass> smartos is popular? had to google it tbh
ghostmoth has quit [Quit: ghostmoth]
gregf has joined #ruby
cndiv has joined #ruby
Takle has joined #ruby
mordof has joined #ruby
davasaurous has joined #ruby
aspires has joined #ruby
jasooon has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<weaksauce> bundler is happy to look in your local paths that you specify for gems
justinmburrous has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
oleo__ is now known as oleo
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
carlyle_ has joined #ruby
<weaksauce> you may need to compile them yourself if there is a problem with them. a bundle install will either succeed or not but it will show you what's wrong. If I had to guess, most gems are not compiled and you shouldn't have too much of an issue with a stock gemfile
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<weaksauce> Daemonik some are though like nokogiri
iamjarvo has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 258 seconds]
magic has quit [Ping timeout: 260 seconds]
slester has joined #ruby
ghostmoth has joined #ruby
carlyle_ has quit [Ping timeout: 244 seconds]
magic_ has joined #ruby
blackdev1l has joined #ruby
afhammad has joined #ruby
Lily--- is now known as viv
viv is now known as viv-
mutenewt has quit [Quit: Leaving]
afhammad has quit [Client Quit]
<weaksauce> Daemonik check #bundler out... they will know more
charliesome has joined #ruby
lewix has quit [Remote host closed the connection]
<jhass> well, he didn't even properly describe his problem with bundler yet
jcdesimp has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
pdais has quit [Quit: Leaving.]
thisislulu has quit [Ping timeout: 260 seconds]
<Daemonik> I'm gonna read up on Bundler and I'll ask #bundler from there.
lkba has quit [Quit: Bye]
cr3 has quit [Quit: leaving]
duncannz has joined #ruby
<rubie> hi all: is there a simple way to solve this problem other than using regular expressions? https://gist.github.com/gabrie30/3450ea91aa723b9693c3
mary5030 has joined #ruby
<jhass> rubie: regexp is probably the most simple
Sawbones has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
lkba has joined #ruby
<rubie> ok
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<rubie> what would be your approach to solving htis