apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
funburn has joined #ruby
ephemerian has quit [Quit: Leaving.]
<shevy> hmmm
|jemc| has joined #ruby
kevind has quit [Quit: kevind]
jprovazn has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
ssvo has quit [Ping timeout: 245 seconds]
Bosox20051 has joined #ruby
mikepack has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
mengu has quit [Quit: This computer has gone to sleep]
mikepack has joined #ruby
moted has quit [Quit: moted]
senayar has joined #ruby
mlpinit has joined #ruby
soheil has quit [Read error: Connection timed out]
soheil has joined #ruby
mikepack has quit [Remote host closed the connection]
anonymus_ has quit [Ping timeout: 248 seconds]
jprovazn has quit [Quit: Leaving]
vlad_starkov has joined #ruby
senayar has quit [Ping timeout: 248 seconds]
rins has quit [Ping timeout: 240 seconds]
bobinator60___ has quit [Quit: bobinator60___]
rcosta has quit [Remote host closed the connection]
tealmage_ has quit [Remote host closed the connection]
tealmage has joined #ruby
rupee has quit [Quit: Leaving]
<BraddPitt> def initialize can take parameters right?
<|jemc|> yes
vlad_starkov has quit [Ping timeout: 248 seconds]
<|jemc|> if you define initialize and not self.new, initialize defines what parameters an object takes on creation
bobinator60_ has joined #ruby
tealmage has quit [Ping timeout: 240 seconds]
<BraddPitt> do you guys put a blank line between methods ending and staring?
<BraddPitt> starting*
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
<pontiki> almost always
<pontiki> almost always some commentary as well
St_Marx has quit [Ping timeout: 240 seconds]
fridim__ has joined #ruby
parzo has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
_maes_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
taternuts has joined #ruby
hamakn has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Ox6abe has joined #ruby
snovak has joined #ruby
Admiral has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has quit [Quit: Leaving.]
Levin_22 has joined #ruby
cj3kim_ has joined #ruby
Ox6abe has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
m00nlight has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
thesheff17 has quit [Quit: Leaving]
mikepack has joined #ruby
thesheff17 has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
angusiguess has joined #ruby
randomautomator has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
justsee has quit [Ping timeout: 240 seconds]
adaoraul has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
cj3kim_ has quit [Ping timeout: 264 seconds]
kilophoton has quit [Ping timeout: 241 seconds]
saarinen has joined #ruby
bobinator60_ has quit [Read error: Connection reset by peer]
bobinator60_ has joined #ruby
premera_j_n_h has quit []
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
Ripp__ has quit []
dankest has quit [Read error: Connection reset by peer]
Dan_ has joined #ruby
Dan_ is now known as Guest22260
mrsolo has quit [Quit: This computer has gone to sleep]
nanoxd_ has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has joined #ruby
nari has quit [Ping timeout: 268 seconds]
sarkis has quit [Ping timeout: 260 seconds]
goleldar has joined #ruby
<goleldar> what is this notation called? values.select &:even?
<goleldar> &:
<|jemc|> it's a shorthand for Symbol#to_proc
<|jemc|> you get the same result with :even.to_proc
<goleldar> pretty slick
<goleldar> nice
<goleldar> found a good explanation here too http://cirw.in/blog/ampex
dkamioka has joined #ruby
<goleldar> so it would be used in cases where there is only one argument you want to iterate over?
flaccid has left #ruby ["Konversation terminated!"]
justsee has quit [Ping timeout: 240 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
<|jemc|> you can iterate over multiple objects
freerobby has quit [Quit: Leaving.]
brunoro has quit [Ping timeout: 248 seconds]
<|jemc|> [1,2,3].map &:to_s
<|jemc|> >> [1,2,3].map &:to_s
<eval-in> |jemc| => ["1", "2", "3"] (https://eval.in/49218)
<|jemc|> the limitation is that you can
<|jemc|> 't pass arguments to that inner method
<|jemc|> so I can't, for example, reduce the following statement in the same way:
Davey has joined #ruby
<|jemc|> >> [10,11,12].map{|x| x.to_s(16)}
<eval-in> |jemc| => ["a", "b", "c"] (https://eval.in/49219)
<|jemc|> where #to_s(16) gives the number as a string in base 16 (hexadecimal)
cmarques has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
cmarques has joined #ruby
sarlalian has quit [Ping timeout: 264 seconds]
katsrc has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
saarinen has quit [Quit: saarinen]
blackmes1 has joined #ruby
dodosan has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
Urizen has quit [Ping timeout: 264 seconds]
thecodethinker has quit [Ping timeout: 248 seconds]
nanoxd has joined #ruby
sevenseacat has joined #ruby
aggregatebot has joined #ruby
kilophoton has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
mansi has quit [Remote host closed the connection]
lele has quit [Ping timeout: 264 seconds]
bobinator60_ has quit [Quit: bobinator60_]
Croms has quit [Quit: Croms]
devoldmx has joined #ruby
parzo has quit [Ping timeout: 240 seconds]
d34th4ck3r has joined #ruby
dhruvasagar has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx27 has joined #ruby
nari has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
devoldmx3 has quit [Ping timeout: 268 seconds]
parzo has joined #ruby
Guest22260 has quit [Quit: Peace]
bradhe has joined #ruby
lele has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
jp- has joined #ruby
kevinykchan has joined #ruby
jsaak has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
Levin_22 has quit [Ping timeout: 245 seconds]
T_T has joined #ruby
parzo has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
bobinator60_ has joined #ruby
GeissT has joined #ruby
bradhe_ has joined #ruby
parzo has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
bradhe_ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
rins has joined #ruby
dmiller has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
ukd1 has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 240 seconds]
bobinator60_ has quit [Quit: bobinator60_]
aeontech has quit [Quit: aeontech]
rickmasta has joined #ruby
dmiller has quit [Remote host closed the connection]
snovak has joined #ruby
znode has joined #ruby
Aryasam has joined #ruby
T_T has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
burlyscudd has joined #ruby
cj3kim_ has joined #ruby
thecodethinker has joined #ruby
bobinator60_ has joined #ruby
gerep has joined #ruby
freerobby has joined #ruby
ericmathison has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
sloucher has joined #ruby
mary5030 has joined #ruby
Lewix has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 245 seconds]
cj3kim_ has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 248 seconds]
reset has joined #ruby
vlad_starkov has joined #ruby
deception has joined #ruby
false_economy has quit [Remote host closed the connection]
taternuts has quit []
ixti has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
mmitchell has joined #ruby
freerobby has quit [Quit: Leaving.]
BillCriswell has joined #ruby
kvirani has joined #ruby
Xaitec has joined #ruby
mootpointer has joined #ruby
Xaitec has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
Ox6abe has joined #ruby
wmoxam has joined #ruby
kvirani_ has joined #ruby
reset has quit [Quit: Leaving...]
saarinen has joined #ruby
wmoxam has quit [Client Quit]
kvirani has quit [Ping timeout: 276 seconds]
brain_shim has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
false_economy has joined #ruby
aeontech has joined #ruby
tealmage has joined #ruby
ssvo has joined #ruby
havenwood has joined #ruby
rellon has joined #ruby
rellon has quit [Remote host closed the connection]
|jemc| has quit [Quit: WeeChat 0.4.1]
|jemc| has joined #ruby
brain_shim has quit [Ping timeout: 240 seconds]
d2dchat has joined #ruby
Ox6abe has quit [Remote host closed the connection]
kil0byte has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zzakh is now known as zzak
parzo has quit [Ping timeout: 245 seconds]
bradhe_ has joined #ruby
ssvo has quit [Ping timeout: 268 seconds]
doritostains has joined #ruby
tealmage has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
Levin_22 has joined #ruby
dodosan has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
znode has quit [Remote host closed the connection]
sarkis has joined #ruby
kobain has joined #ruby
dik_dak has joined #ruby
aeontech has quit [Quit: aeontech]
Levin_22 has quit [Client Quit]
kofno has joined #ruby
false_economy has quit [Remote host closed the connection]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bobinator60_ has quit [Quit: bobinator60_]
dodosan has quit [Ping timeout: 248 seconds]
sergicles has quit [Quit: sergicles]
freerobby has joined #ruby
axl_ has quit [Quit: axl_]
bobinator60_ has joined #ruby
adaoraul has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lethjakman has joined #ruby
lfox has joined #ruby
Bosox20051 has quit [Ping timeout: 248 seconds]
p0wn3d has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
snovak has quit [Read error: Operation timed out]
Nisstyre-laptop has joined #ruby
Suit_Of_Sables has joined #ruby
mlpinit has quit [Remote host closed the connection]
thecodethinker has quit [Ping timeout: 248 seconds]
Fire-Dragon-DoL has left #ruby [#ruby]
ixti has quit [Ping timeout: 264 seconds]
Voodoofish430 has quit [Quit: Leaving.]
burlyscudd has joined #ruby
cj3kim_ has joined #ruby
dodosan has joined #ruby
mary5030 has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
<Suit_Of_Sables> can anyone explain how ruby handles x = "string" differently from x = 'string' ?
burlyscudd has quit [Ping timeout: 248 seconds]
bradhe_ has quit [Remote host closed the connection]
axl_ has joined #ruby
sergicles has joined #ruby
<bnagy> only inasmuch as 'string' and "string" are slightly different
<|jemc|> so, one difference is in escaped characters
<bnagy> the referencing is the same
<|jemc|> >> ['\3'.bytes, "\3".bytes]
<eval-in> |jemc| => [[92, 51], [3]] (https://eval.in/49221)
d34th4ck3r has quit [Quit: d34th4ck3r]
cj3kim_ has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
<|jemc|> another difference is the ability to substitute with #{}
<|jemc|> >> x = 5; ['thing:#{x}', "thing:#{x}"]
<eval-in> |jemc| => ["thing:\#{x}", "thing:5"] (https://eval.in/49222)
UForgotten has quit [Ping timeout: 260 seconds]
sergicles has quit [Client Quit]
<|jemc|> you can evaluate just about any code inside of a #{} subsitution
<|jemc|> >> "#{class A; end; A.new}"
<eval-in> |jemc| => "#<A:0x41e2511c>" (https://eval.in/49223)
gerep has quit [Remote host closed the connection]
d34th4ck3r has joined #ruby
bobinator60_ has quit [Quit: bobinator60_]
bobinator60_ has joined #ruby
sergicles has joined #ruby
<Suit_Of_Sables> I read somewhere that using "" somehow "required more work" than using ''
<|jemc|> more work for the processor?
kvirani_ has quit [Remote host closed the connection]
<|jemc|> or for the programmer?
<Suit_Of_Sables> processor
Bosox20051 has joined #ruby
<Suit_Of_Sables> let me see if I can find it....
brunoro has joined #ruby
kvirani has joined #ruby
io_syl has quit []
<|jemc|> I'm fairly sure (and someone can feel free to correct me) that the performance hit only comes if you actually use a #{} substitution
tkuchiki has quit [Remote host closed the connection]
kofno has joined #ruby
DonRichie has joined #ruby
<|jemc|> also note that ruby makes it really easy to run benchmarks and test your ideas when efficiency is a concern
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
<|jemc|> >> require 'benchmark'; Benchmark.bm { |bm| bm.report { 1000000.times { x = 'hello!' } }; bm.report { 1000000.times { x = "hello!" } } }
<eval-in> |jemc| => user system total real ... (https://eval.in/49224)
DonRichie has quit [Max SendQ exceeded]
snovak has joined #ruby
<|jemc|> so eval bot is actually showing the double quote as a little faster
DonRichie has joined #ruby
<|jemc|> but that's only for a simple assignment
kvirani has quit [Ping timeout: 276 seconds]
<|jemc|> there are other things to take into account, as referenced on that stack overflow post
kil0byte has quit [Remote host closed the connection]
<sevenseacat> benchmarking in ruby is awesome
<|jemc|> but yeah, get friendly with the benchmarking lib
havenwood has joined #ruby
<Suit_Of_Sables> the pickaxe book says the performace hit comes when constructing the string literal. It says that using "" requires ruby to check through the string for substitutions where as, most of the time, using '' does not
<Suit_Of_Sables> I'll do some benchmarking :P
freerobby has quit [Quit: Leaving.]
<|jemc|> well, the eval bot says the performance hit doesn't come until you actually have a subsitution inside
DonRichie has quit [Max SendQ exceeded]
<havenwood> Suit_Of_Sables: I personally like the convention of '' unless interpolating. Performance doesn't come into my reasoning though. :P
<|jemc|> it's possible the implementation has changed since the time of the book's publishing
<|jemc|> in fact, it's quite likely
<Suit_Of_Sables> |jemc|: I hope not, it came out like 3 months ago :o
DonRichie has joined #ruby
<Suit_Of_Sables> it's the edition for 2.0
<sevenseacat> +1 havenwood
<Suit_Of_Sables> havenwood: I also like the look of single quotes
<|jemc|> well, the benchmarking isn't going to lie, either way
<|jemc|> but yeah, I tend to use the same stylistic convention
Targen has quit [Ping timeout: 245 seconds]
tjad has joined #ruby
<ehaliewicz> so mri's getting a generational garbage collector?
<havenwood> ehaliewicz: Christmas.
<|jemc|> link?
<ehaliewicz> about time
JumpMast3r has joined #ruby
<ehaliewicz> :)
<ehaliewicz> i wonder how they're doing it with c extensions ...
<ehaliewicz> deprecation? :D
sergicles has quit [Quit: sergicles]
snovak has quit [Ping timeout: 248 seconds]
<sevenseacat> i may be ignorant in this, but i thought one of the biggest features of ruby 2 was a much-improved GC, and now they're rebuilding it again for 2.1?
<ehaliewicz> sevenseacat: they used generational marking in 2.0 iirc
<havenwood> sevenseacat: 2.0 added CoW friendliness to the existing mark-and-sweep. 2.1 proposes a major overhaul to generational.
<ehaliewicz> this is full-blown generational collection as well
<ehaliewicz> as far as i can tell
Bira has joined #ruby
brain_shim has joined #ruby
<havenwood> sevenseacat: CoW being Copy-on-Write, memory friendly pre-fork.
<sevenseacat> ah okay, cool, that gives me stuff to look into :P
DonRichie has quit [Quit: Verlassend]
<ehaliewicz> yeah, garbage collection is pretty interesting
<havenwood> indeed!
<|jemc|> I wonder how much this is going to affect my ruby work on single core arm boards...
<|jemc|> I've been hoping for another performance boost like I got with 2
<ehaliewicz> i wouldn't even try to use ruby for something like that hha
<sevenseacat> i havent done a lot of testing yet, but i found recently when upgrading an app from ree to 1.9.3 that the app actually got noticeably slower :/
soba has joined #ruby
<havenwood> I'm pretty excited about 2.1 GC changes, but don't understand a lot of it yet.
Aryasam has quit [Ping timeout: 248 seconds]
BillCriswell has quit [Remote host closed the connection]
<|jemc|> thanks for the link, btw, havenwood
<|jemc|> hm. feature freeze this month according to one timeline in that pdf
<havenwood> |jemc|: yup, but i think the term is used loosely based on the past
<havenwood> |jemc|: major idea freeze*
axl_ has quit [Quit: axl_]
Aryasam has joined #ruby
<havenwood> refinements to features still welcome, speaking of which i don't understand the new `using` in main with refinements not working
<sevenseacat> i find the english slides done by someone not completely proficient in english to be endearing
<|jemc|> I love it when foreign idioms get directly translated into to english instead of choosing a familiar idiom to english speakers. so cute.
<havenwood> |jemc|: It does actually come out on Christmas, I didn't just mean it's an expected present. :O
<|jemc|> are those dates more concrete, then?
dmiller has quit [Remote host closed the connection]
<havenwood> |jemc|: Yup.
<sevenseacat> the title collector vs the patch monster
Guest85570 has joined #ruby
jkline has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
m00nlight has quit [Quit: Konversation terminated!]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
chord_ has joined #ruby
chord_ has left #ruby [#ruby]
d34th4ck3r has joined #ruby
tkuchiki has joined #ruby
T_T has joined #ruby
bobinator60_ has quit [Quit: bobinator60_]
forced_request has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
baroquebobcat has joined #ruby
NealJ has quit [Quit: :c]
brain_shim has quit [Ping timeout: 248 seconds]
<|jemc|> ha. the 'shady' objects
rezzack has quit [Ping timeout: 260 seconds]
Urizen has joined #ruby
<Suit_Of_Sables> do you guys perfer stabby lambdas or do you usually just us 'lambda' -> is nice but I like how what follows lambda looks like (at least to me) what I expect a block to look like
<sevenseacat> i find the stabby syntax horrible
<ehaliewicz> stabby is alright
zephdev has joined #ruby
Liothen has quit [Ping timeout: 276 seconds]
<ehaliewicz> i prefer (lambda (args) body)
<ehaliewicz> but i can live with ruby syntax
<Suit_Of_Sables> sevenseacat: it's a shame you can't do something like: my_lambda = -> { |x| puts x }
iamjarvo has joined #ruby
<havenwood> Suit_Of_Sables: I like stabby.
nignaztic has quit [Ping timeout: 260 seconds]
<Suit_Of_Sables> ehaliewicz: Do you usually use the optional () when you code in ruby?
<ehaliewicz> Suit_Of_Sables: for function calls?
<Suit_Of_Sables> havenwood: I may have to use it just so I have an excuse to say "stabby lambda" more often
<ehaliewicz> method calls
<ehaliewicz> or method calls*
saarinen has quit [Quit: saarinen]
Targen has joined #ruby
<havenwood> Suit_Of_Sables: Never using parens unless it breaks VM is typically called "Seattle style" as it's the convention used by Seattle Ruby Brigade.
jkline has quit [Quit: jkline]
funburn has quit [Ping timeout: 268 seconds]
<Suit_Of_Sables> havenwood: Are they like a scary biker-gang of Rubyists?
<havenwood> Suit_Of_Sables: Yes.
<ehaliewicz> I skip the parens for anything that's like a getter, otherwise I usually use them
<ehaliewicz> and parens for boolean expressions often
<ehaliewicz> and i use return inside methods/functions quite a bit
carlyle has quit [Ping timeout: 245 seconds]
<Suit_Of_Sables> ehaliewicz: &gasp8!
ananthakumaran has joined #ruby
<havenwood> Suit_Of_Sables: They maintain certain fiefdoms of Rubyland, particularly RubyGems and Minitest.
<havenwood> Suit_Of_Sables: (That are included in Ruby itself.)
<|jemc|> 23:04:30 ehaliewicz | i wonder how they're doing it with c extensions ...
<ehaliewicz> Suit_Of_Sables: if it's not clear, i'll use a return
<Suit_Of_Sables> ehaliewicz: I do agree an explicit return statement can make code easier to interperet at first glance
saarinen has joined #ruby
flaccid has joined #ruby
<ehaliewicz> sometimes the syntax and everything that's implicit makes things unclear
<flaccid> hmm is there a way to do puts 'yes' unless foo = (false||'false')
<|jemc|> ehaliewicz: it looks like they're keeping backwards compatibility by allowing old style of garbage collection for 'shady' objects
jkline has joined #ruby
<flaccid> oh woops, need == hehe
<havenwood> ehaliewicz: in ruby the last line of a method being a return is never unclear
<ehaliewicz> |jemc|: yeah that's what it looks like
<ehaliewicz> havenwood: it can be easier to see at a glance with a return in front
<havenwood> ehaliewicz: ew
<ehaliewicz> havenwood: well, if you want nice syntax, you gotta use lisp :)
<Suit_Of_Sables> my clinging to return is just something I got from other languages that I'll have to shake
<havenwood> ehaliewicz: Ruby is a List for those who don't like so many parens.
<havenwood> Lisp*
<ehaliewicz> havenwood: it's missing some stuff
<ehaliewicz> not a bad try though ;)
<havenwood> ehaliewicz: Use Clojure when it isn't like-enough with JRuby. :P
<havenwood> ehaliewicz: Macros...
Urizen has quit [Read error: Connection reset by peer]
<ehaliewicz> haven't really used clojure but i probably should try it out at some point.
Urizen has joined #ruby
<ehaliewicz> havenwood: and some other things, but that's a big one
<havenwood> ehaliewicz: I'm about a week in, but really enjoying. Going through Project Euler. The ability to interact between JRuby and Clojure is awesome.
baroquebobcat has quit [Quit: baroquebobcat]
<|jemc|> ooh Ruby 2.1 will also have inline Proc.call invocation
<|jemc|> that happens to be big for me
<havenwood> ehaliewicz: Can certainly get away with less efficient algos in Euler with Clojure than Ruby. Fast, fast.:P
<havenwood> |jemc|: Inline? Whatcha mean?
sergicles has joined #ruby
<Suit_Of_Sables> Has anyone here played with the Elixer languge? I was told it is a language I should look into if I like ruby and want to try an function language
<ehaliewicz> clojure is cool, but i really like how close to the metal you can get with a good common lisp though. not as low as something like forth, but gotos and such are awesome with generated code
Spami has joined #ruby
zeade has joined #ruby
sergicles has quit [Client Quit]
<havenwood> Suit_Of_Sables: Yeah, Clojure or Elixir are the two I'd consider for sure!
<havenwood> Suit_Of_Sables: Or Haskell...
Spami has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 268 seconds]
Spami has joined #ruby
Spami has joined #ruby
<havenwood> ehaliewicz: I hear ya with close-to-metal, but maybe access to JVM libs is more important for most cases.
carlyle has joined #ruby
<havenwood> JVM/CLR/whatev
<Suit_Of_Sables> havenwood: Leaning towards haskell, I'd like to be able to customize xmonad but I guess that isn't the best reason to choose a language before working with it a bit! >.<
<|jemc|> havenwood: that's pretty much a direct quote from near the end of that pdf. I'm assuming it'll bring a performance boost for the proc#call operation
burlyscudd has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<havenwood> Suit_Of_Sables: Elixir was created by a Rubyist (Jose Valim) and is on the venerable Erlang VM. Really seems pretty sweet.
<ehaliewicz> havenwood: for real-word stuff yeah, but for fun, bare metal coding is the best :)
postmodern has quit [Quit: Leaving]
<havenwood> Suit_Of_Sables: Fast, Erlang concurrency model, as fast as Erlang and works with its libs.
<havenwood> Suit_Of_Sables: If you're looking to implement another language or something low level it seems Haskell would be hard to beat. But Clojure and Elixir sure have some huge wins.
funburn has joined #ruby
baroquebobcat has joined #ruby
<ehaliewicz> havenwood: armed bear common lisp runs on the jvm, never used it though
<havenwood> <3 Ruby though most of all!!
bobinator60_ has joined #ruby
<havenwood> ehaliewicz: interesting how JVM attracted so many Lisp dialects
deception_ has joined #ruby
zephdev has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 268 seconds]
zephdev has joined #ruby
mlpinit has joined #ruby
machuga is now known as machuga|away
<havenwood> Clojure, Armed Bear, or the Schemes, Kawa and SISC
<Suit_Of_Sables> havenwood: thanks for the advice!
<ehaliewicz> yeah
nanoxd has joined #ruby
carlyle has quit [Remote host closed the connection]
browndawg has joined #ruby
brain_shim has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
coderhs has joined #ruby
mlpinit has quit [Ping timeout: 264 seconds]
vxxr has quit [Quit: leaving]
cutmail has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
bobinator60_ has quit [Quit: bobinator60_]
Aryasam has joined #ruby
devoldmx27 has quit [Ping timeout: 245 seconds]
nmabry has quit [Quit: nmabry]
kobain has quit []
deception_ has quit [Quit: Goodbye]
KobraKao has joined #ruby
deception has quit [Quit: Goodbye]
sayan has joined #ruby
Fezzler has joined #ruby
aeontech has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Nogbit has joined #ruby
snovak has joined #ruby
devoldmx has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
parzo has joined #ruby
bricker`LA has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
snovak has quit [Ping timeout: 268 seconds]
bradhe has joined #ruby
cj3kim_ has joined #ruby
chopmo has joined #ruby
chopmo_ has quit [Read error: Connection reset by peer]
brunoro has quit [Quit: WeeChat 0.3.8]
Nisstyre-laptop has quit [Quit: Leaving]
mercwithamouth has joined #ruby
polaco is now known as polaco_zZz
Fezzler has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has joined #ruby
Urizen has quit [Ping timeout: 268 seconds]
beneggett has joined #ruby
Fezzler has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jkline has quit [Quit: jkline]
devoldmx3 has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
thecodethinker has joined #ruby
<Suit_Of_Sables> would someone care to comment on the depth of my folly and ignorance for thinking that a class's initialize method might just as well have been called 'new' instead as it is called with .new?
saarinen has quit [Quit: saarinen]
rins has quit [Ping timeout: 245 seconds]
<sevenseacat> i did see a rubytapas episode on just that
devoldmx has quit [Ping timeout: 268 seconds]
aeontech has quit [Quit: aeontech]
Lewix has joined #ruby
baroquebobcat has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<Suit_Of_Sables> sevenseacat: Thanks, I'll try and track that down
kofno has joined #ruby
yacks has quit [Quit: Leaving]
<ehaliewicz> Suit_Of_Sables: i always thought it was weird too
thecodethinker has quit [Ping timeout: 240 seconds]
<Suit_Of_Sables> what do you folks use for making GUIs in ruby?
Bira has quit [Remote host closed the connection]
<jrobeson> Suit_Of_Sables, a web browser
<jrobeson> or at least at web browser component .. like qtwebkit
Clooth has quit [Ping timeout: 245 seconds]
kil0byte has joined #ruby
devoldmx has joined #ruby
fridim__ has quit [Ping timeout: 248 seconds]
mmitchell has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 260 seconds]
aeontech has joined #ruby
Bira has joined #ruby
echevemaster has joined #ruby
devoldmx3 has joined #ruby
havenwood has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
d2dchat has quit [Remote host closed the connection]
dmiller has joined #ruby
ghr has joined #ruby
dmiller has quit [Remote host closed the connection]
Urizen has joined #ruby
bricker`LA has quit [Ping timeout: 268 seconds]
bricker`LA has joined #ruby
Fezzler has quit [Quit: Leaving]
Ubercow has joined #ruby
<Suit_Of_Sables> jrobeson: I assume on can use qt or gtk or whatever libs they want but it will effect what platform your GUI will work with right?
aagdbl has joined #ruby
<jrobeson> Suit_Of_Sables, for example?
<jrobeson> i can't speak for the quality of the ruby bindings for gtk or qt
burlyscudd has joined #ruby
<jrobeson> i don't use any apps built with them.. while i have more than a few built with the python bindings
<Suit_Of_Sables> jrobeson: I just mean that if you make your GUI using qt it will have qt as requirments.
<jrobeson> well yeah..
<Suit_Of_Sables> as opposed to say gtk
<jrobeson> qt and the bindings
<Suit_Of_Sables> just not sure which platforms can/do handle which ones better O_o
Monie has joined #ruby
<jrobeson> qt is likely better than gtk
<Boohbah> s/likely //
pothibo has quit [Quit: pothibo]
<jrobeson> well if your goal is integration with gnome stuffs it isn't
<jrobeson> or other gtk programs
<jrobeson> or if you're already familiar with C and glib
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<Boohbah> if your goal is portability it is
<jrobeson> but that has not yet been stated
<jrobeson> and also portability to what..
burlyscudd has quit [Ping timeout: 248 seconds]
<jrobeson> gtk works fine on the major platforms
<jrobeson> but it is more cumbersome to write imo
<Boohbah> and if your goal is programmer pleasure?
<jrobeson> Boohbah, once again.. not stated
<Boohbah> hmm... guess we'll have to wait for Suit_Of_Sables
<jrobeson> if the bindings were written well.. you might not even notice the difference
<jrobeson> pleasurewise
<Boohbah> this is true
<jrobeson> Boohbah, i do agree that if one wasn't trying to do those thinsg is uggested.. or don't care about C vs C++ to be able to write extensions as needed.. then i would choose Qt
<Suit_Of_Sables> Yeah, I guess i just have to explore the bindings I guess
<jrobeson> Suit_Of_Sables, that's not as important as deciding where you want the app to live
<jrobeson> on what platforms
<jrobeson> really though.. i personally woudln't use ruby either..
<Boohbah> web is the most portable platform
<jrobeson> Boohbah, that's why i initially said.. i use a web browser as my GUI
<jrobeson> and then after that suggested qtwebkit
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
<jrobeson> which is what adium does for various parts of its interface
<jrobeson> webkit i mean
<jrobeson> not qtwebkit specfiically
atno has quit [Ping timeout: 248 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
<jrobeson> there are still things that are hard to do with a web browser and http
<Boohbah> this is true too
<jrobeson> that list gets shorter.. since things like notification and hardware access are available
<Boohbah> you can't write an operating system kernel in javascript... (maybe a really slow one)
<jrobeson> sure you can
ssvo has joined #ruby
<jrobeson> you'd have to develop alot of libraries though :)
<jrobeson> but that isn't important
Splourian has joined #ruby
<jrobeson> Suit_Of_Sables, you really have to think about what the app is going to do.. and how it integrates in the OS before deciding between the two
<jrobeson> and.. i still think using ruby is not the best idea..
<jrobeson> the bindings don't have nearly the wide amount of usage compared to the python ones
pothibo has joined #ruby
krz has quit [Client Quit]
<Boohbah> Suit_Of_Sables: what kind of app is it and who are the users?
atno has joined #ruby
<Suit_Of_Sables> Boohbah: I just have some random ideas, nothing serious, nothing relating to a job. I just wanted to experiment with building GUIs
postmodern has joined #ruby
butblack has quit [Quit: butblack]
<Suit_Of_Sables> I suppose linux based systems is where I'd like my apps to live. Though OSX would be nice too
baroquebobcat has quit [Quit: baroquebobcat]
<Boohbah> what about android and ios?
d34th4ck3r has joined #ruby
vramana has joined #ruby
AdmiraI has joined #ruby
hardbit has joined #ruby
baroquebobcat has joined #ruby
pothibo has quit [Quit: pothibo]
baroquebobcat has quit [Client Quit]
butblack has joined #ruby
aeontech has quit [Quit: aeontech]
schaerli has joined #ruby
RichardBaker has joined #ruby
apeiros has quit [Remote host closed the connection]
coderhs has quit [Quit: Leaving]
jkline has joined #ruby
Splourian has quit [Quit: Leaving]
browndawg has left #ruby [#ruby]
snovak has joined #ruby
Teddy2steper has joined #ruby
<jrobeson> Suit_Of_Sables, just wondering why you don't go straight for the web app then?
baroquebobcat has joined #ruby
schaerli has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
saarinen has joined #ruby
hamakn has quit [Remote host closed the connection]
mary5030 has joined #ruby
hamakn has joined #ruby
<Suit_Of_Sables> jrobeson: Guess I've got some soul searchin' to do
io_syl has joined #ruby
jkline has quit [Quit: jkline]
<jrobeson> not that there aren't valid cases in which to use qt/gtk and such..
dhruvasagar has joined #ruby
snovak has quit [Ping timeout: 259 seconds]
Teddy2steper has quit [Remote host closed the connection]
codecop has joined #ruby
twoism has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
twoism has quit [Remote host closed the connection]
tomsthumb_ has quit [Ping timeout: 264 seconds]
twoism has joined #ruby
ewnd9 has joined #ruby
mary5030_ has joined #ruby
mary5030 has quit [Read error: No route to host]
<Suit_Of_Sables> ok, well here is an equally idiotic question: When implementing the <=> method in a class that includes Comparable, you might write: def <=>(other); self.inst_var <=> other.inst_var; end; my question is, is the <=> call in the method definition's body implied to be super? If not it looks like it would call the class's own <=> method and you would get infinite recursion. Like I said, a dumb question
ewnd9 has quit [Remote host closed the connection]
girija has joined #ruby
ssvo has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
Ripp__ has joined #ruby
jkline has joined #ruby
ewnd9 has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
ewnd9 has quit [Remote host closed the connection]
mary5030 has joined #ruby
ewnd9 has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
vramana has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0/20130803215302]]
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lethjakm1 has joined #ruby
saarinen has quit [Quit: saarinen]
jkline has quit [Quit: jkline]
Aryasam has joined #ruby
lethjakman has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
lethjakman has joined #ruby
doritostains has quit [Quit: Linkinus - http://linkinus.com]
sarkis has quit [Ping timeout: 248 seconds]
lethjakm1 has quit [Ping timeout: 245 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
coderhs has joined #ruby
Urizen has quit [Ping timeout: 248 seconds]
huoxito has quit [Quit: Leaving]
timonv has joined #ruby
apeiros has joined #ruby
yaymukund has joined #ruby
tobago has joined #ruby
hamakn has joined #ruby
<pontiki> it won't call super unless you explicitly tell it to
<pontiki> oh sorry --
<pontiki> when you call the self.inst_var <=> other.inst_var -- it uses the defn of the inst_var's classes
<pontiki> so inst_var.class must also implement <=>
brianpWins has joined #ruby
<pontiki> if self.inst_var.class == self.class, it will recurse
kevinykchan has quit [Quit: Computer has gone to sleep.]
funburn has quit [Quit: funburn]
tomzx_mac has quit [Ping timeout: 240 seconds]
<pontiki> and so on
idiocrash has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
baroquebobcat has quit [Quit: baroquebobcat]
mercwithamouth has joined #ruby
mmitchell has joined #ruby
kilophoton has quit [Remote host closed the connection]
chrisja has quit [Quit: Lost terminal]
Bira has quit [Remote host closed the connection]
byprdct has joined #ruby
burlyscudd has joined #ruby
DanKnox is now known as DanKnox_away
byprdct has quit [Client Quit]
idiocrash has quit [Remote host closed the connection]
byprdct has joined #ruby
m00nlight has joined #ruby
byprdct has quit [Max SendQ exceeded]
mmitchell has quit [Ping timeout: 245 seconds]
idoru has quit [Read error: Connection timed out]
braoru has joined #ruby
jrhorn424 has joined #ruby
<jrhorn424> what are some good google-able words for %[] and %{}. for example, to google about #{} i'd search for string interpolation.
schaerli has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
<Suit_Of_Sables> pontiki: sorry, inst_var was supposed to be an instance variable in my example
mary5030 has quit [Ping timeout: 260 seconds]
<|jemc|> jrhorn424: try http://symbolhound.com/ for searching for symbols
<pontiki> Suit_Of_Sables: i am fully cognizant of that
krz has joined #ruby
<pontiki> that's how i answered
Monie has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
<jrhorn424> |jemc|: great, that's going into bookmarks. thanks.
camilasan has joined #ruby
<pontiki> every instance variable in a class has a class as well
<jrobeson> |jemc|, thanks for that.. i didn't know about it either
ananthakumaran has joined #ruby
Stalkr_ has joined #ruby
<pontiki> Suit_Of_Sables: have you looked at how you make your own class a comparable?
<jrhorn424> wow, those are some really great articles that come up through symbol hound
<pontiki> some examples?
<Suit_Of_Sables> pontiki: ah ok, so if they are strings it uses the <=> method from the string class
<pontiki> bingo
* sevenseacat also bookmarks symbolhound
<Suit_Of_Sables> pontiki: yeah that was an example of how I made my own class comparable. I should have realized the <=> in the definition would the one implemented in the class of what it was called on >.<
<pontiki> as all methods are
<Suit_Of_Sables> exactly, which is why I should have realized that T_T
butblack has quit [Quit: butblack]
osvico has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
postmodern has quit [Quit: Leaving]
jgrep has joined #ruby
jgrep has quit [Max SendQ exceeded]
jgrep has joined #ruby
jgrep has quit [Max SendQ exceeded]
jgrep has joined #ruby
jgrep has quit [Max SendQ exceeded]
ssvo has joined #ruby
jgrep has joined #ruby
jgrep has quit [Max SendQ exceeded]
jgrep has joined #ruby
jgrep has quit [Max SendQ exceeded]
jgrep has joined #ruby
jgrep has quit [Max SendQ exceeded]
Monie has joined #ruby
thecodethinker has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
funburn has joined #ruby
zmansiv has left #ruby ["Textual IRC Client: www.textualapp.com"]
funburn has quit [Client Quit]
Monie has quit [Ping timeout: 248 seconds]
Pixi__ is now known as Xiti
Lewix has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
iamjarvo has quit [Remote host closed the connection]
Lewix has joined #ruby
kil0byte has quit [Remote host closed the connection]
iamjarvo has joined #ruby
snovak has joined #ruby
BizarreCake has joined #ruby
Kneferilis has joined #ruby
saarinen has joined #ruby
camilasan has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
ckampfe has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
T_T has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
dweeb_ has joined #ruby
mary5030 has joined #ruby
andikr has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
hardbit has quit [Quit: hardbit]
brain_shim is now known as vim_shim
corpuscle has joined #ruby
bradhe has joined #ruby
Monie has joined #ruby
nextdropping has joined #ruby
yxhuvud has joined #ruby
Lewix has quit [Remote host closed the connection]
Anarch has joined #ruby
Elhu has joined #ruby
tonni has quit [Remote host closed the connection]
tvw has joined #ruby
Anarch has quit [Quit: WILL TROLL FOR FOOD]
Anarch has joined #ruby
luckyruby has joined #ruby
aagdbl has quit [Quit: Leaving.]
cj3kim_ has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
Ripp__ has quit []
Stalkr_ has quit [Quit: Leaving...]
<luckyruby> Is there a way for a method called from inside a loop to call next on the loop? https://gist.github.com/luckyruby/fa78aacafca12ecd968c
jumpingcloud has joined #ruby
Soliah has joined #ruby
<jrobeson> that doesn't seem ike it'd ever be in scope to do such a thing
thecodethinker has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
mary5030 has quit [Remote host closed the connection]
dweeb_ has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
tonni has joined #ruby
sayan has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
dweeb_ has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
persand has joined #ruby
burlyscudd has joined #ruby
sayan has joined #ruby
emergion has joined #ruby
noop has joined #ruby
emergion has quit [Max SendQ exceeded]
toah has joined #ruby
cj3kim_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 245 seconds]
tonni has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
hogeo has quit [Remote host closed the connection]
emergion has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
emergion has quit [Max SendQ exceeded]
jumpingcloud has quit [Ping timeout: 271 seconds]
zephdev has quit [Remote host closed the connection]
nextdropping has quit [Read error: Connection reset by peer]
nextdropping has joined #ruby
tjad has quit [Ping timeout: 264 seconds]
s0ny123 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnBat26 has joined #ruby
Xeago has joined #ruby
aganov has joined #ruby
filipe has joined #ruby
ayaz has joined #ruby
user258467 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby
<pontiki> oh, crikey, don't do that
tonni has joined #ruby
<pontiki> that completely destroys separation of concerns, couples your code together, etcetc
tonni has quit [Read error: Connection reset by peer]
<pontiki> you can simple call return on items you don't want to process
jsaak has joined #ruby
kaspergrubbe has joined #ruby
hamakn has quit [Remote host closed the connection]
<luckyruby> pontiki: thanks
hamakn has joined #ruby
<luckyruby> my 3AM brain wasn't functioning properly and return seems obvious now
jumpingcloud has joined #ruby
cj3kim has quit [Remote host closed the connection]
snovak has joined #ruby
bradhe has quit [Remote host closed the connection]
Bosox20051 has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 240 seconds]
twoism_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Nogbit has quit [Ping timeout: 260 seconds]
zarul has quit [Read error: Connection reset by peer]
Bosox20051 has joined #ruby
h_kon has joined #ruby
zarul has joined #ruby
snovak has quit [Ping timeout: 268 seconds]
twoism has quit [Ping timeout: 248 seconds]
camilasan has joined #ruby
twoism_ has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
pkrnj has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
DanKnox_away is now known as DanKnox
tjad has joined #ruby
<xybre> D: That code/concept makes baby heyzeus cry.
workmad3 has quit [Ping timeout: 268 seconds]
hamakn has joined #ruby
T_T has joined #ruby
<pontiki> the throw/catch thing to mutate a loop? yeah.. ouch ouch ouch
h_kon has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
Deele has joined #ruby
iliketurtles has joined #ruby
h_kon has joined #ruby
clocKwize has quit [Quit: clocKwize]
Nogbit has joined #ruby
<Nogbit> does anyone know why HTTPI would choose to use HTTPClient on Linux Mint but on CentOS it tries to use NetHTTP.... (it fails with NetHTTP btw), and as I understand it HTTPI first tries to load HTTPClient then Curb then NetHTTP?
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
h_kon has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 264 seconds]
io_syl has quit []
ahawkins has joined #ruby
Clooth has joined #ruby
clocKwize has joined #ruby
iliketurtles has quit [Client Quit]
clocKwize_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
DanKnox is now known as DanKnox_away
ckampfe has quit [Ping timeout: 241 seconds]
marcgg has joined #ruby
alup has joined #ruby
h_kon has joined #ruby
buibex has joined #ruby
dash_ has joined #ruby
dangerousdave has joined #ruby
Aryasam has quit [Ping timeout: 268 seconds]
FastestMilkman has joined #ruby
claymore has joined #ruby
greenride has left #ruby [#ruby]
goleldar has quit [Ping timeout: 245 seconds]
TheRealPygo is now known as pygospa
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrhorn424 has quit [Quit: Computer has gone to sleep.]
zz_michael_mbp is now known as michael_mbp
Xeago has joined #ruby
T_T has quit [Remote host closed the connection]
jumpingcloud has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
grzywacz has joined #ruby
tonni has quit [Read error: Connection reset by peer]
threesome has joined #ruby
Nogbit has quit [Ping timeout: 248 seconds]
Elhu has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
gr33n7007h has quit [Ping timeout: 264 seconds]
parzo has quit [Ping timeout: 248 seconds]
burlyscudd has joined #ruby
Coffers has joined #ruby
luckyruby has quit [Remote host closed the connection]
lxsameer has joined #ruby
zarubin has joined #ruby
gr33n7007h has joined #ruby
<lxsameer> hi is there any miltiline string identifier in ruby like (""" * """) in python ?
filipe has quit [Ping timeout: 268 seconds]
ewnd9 has quit [Read error: Operation timed out]
<apeiros> lxsameer: a quoted string can span multiple lines just like that
<lxsameer> apeiros: thanks
<apeiros> available string literals: "", '', %{}, %Q{}, %q{}, <<HEREDOC (heredoc itself comes in several flavors, check e.g. zenspiders quickref for a list)
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
troessner has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
senayar has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
dagobah has joined #ruby
Nogbit has joined #ruby
relix has joined #ruby
relix has quit [Max SendQ exceeded]
gr33n7007h has quit [Read error: No route to host]
bricker`LA has quit [Ping timeout: 268 seconds]
relix has joined #ruby
tonni has quit [Remote host closed the connection]
persand has quit [Quit: persand]
clocKwize_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clocKwize has quit [Quit: clocKwize]
filipe has joined #ruby
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
Minos__ has joined #ruby
aeontech has joined #ruby
hamakn_ has joined #ruby
nextdropping has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
camilasan has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
aeontech has quit [Client Quit]
ewnd9 has joined #ruby
bamdad has joined #ruby
cj3kim has joined #ruby
snovak has joined #ruby
bradhe has joined #ruby
tesuji has joined #ruby
vince_prignano has joined #ruby
aagdbl has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
Nogbit has quit [Ping timeout: 268 seconds]
buibex has quit [Read error: Connection reset by peer]
taion809_ has joined #ruby
snovak has quit [Ping timeout: 268 seconds]
taion809 has quit [Ping timeout: 260 seconds]
persand has joined #ruby
Apocalypse has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
cj3kim has quit [Ping timeout: 268 seconds]
decoponio has joined #ruby
Apocalypse has joined #ruby
<shevy> hmm
bradhe has quit [Ping timeout: 248 seconds]
hamakn_ has quit [Remote host closed the connection]
bamdad has quit [Quit: bamdad]
apeiros has quit [Remote host closed the connection]
hamakn has joined #ruby
apeiros has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
mklappstuhl has joined #ruby
vmoravec has joined #ruby
filipe has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
bamdad has joined #ruby
dweeb_ has joined #ruby
blackmes1 has joined #ruby
bamdad has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
wlanboy has quit [Quit: ZNC - http://znc.in]
tvw has quit []
wlanboy has joined #ruby
Nogbit has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
justsee has joined #ruby
hamakn has joined #ruby
<shevy> when should I use ... method_defined? and when should I use ... respond_to? ? is there a clear cut difference between these two?
krz has quit [Quit: krz]
mootpointer has quit [Quit: ENOCAFFEINE.]
blackmes1 has quit [Ping timeout: 240 seconds]
lele has left #ruby ["Leaving"]
lethjakman has quit [Ping timeout: 248 seconds]
lurch_ has joined #ruby
elaptics`away is now known as elaptics
locriani has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 260 seconds]
jimeh has joined #ruby
Advocation has joined #ruby
filipe has joined #ruby
nfk has joined #ruby
rdark has joined #ruby
timonv has quit [Remote host closed the connection]
camilasan has joined #ruby
agent_white has quit [Quit: leaving]
kayloos has joined #ruby
toah has quit [Remote host closed the connection]
buibex has joined #ruby
noname001 has joined #ruby
nfk has quit [Remote host closed the connection]
ordinaryman09 has joined #ruby
Soliah has quit [Quit: Soliah]
<TwinkleHood> Hey, is there a way to do something like the python (x,y) = function hence returning and assigning tuples?
<hoelzro> TwinkleHood: sure
<hoelzro> >> def foo return 2, 3 end; a, b = foo(); puts(a, b)
<eval-in> hoelzro => /tmp/execpad-0c7ac4803358/source-0c7ac4803358:2: syntax error, unexpected keyword_return, expecting ';' or '\n' ... (https://eval.in/49251)
<hoelzro> ...
<hoelzro> I can never do Ruby one-liners
<TwinkleHood> But the error is the same as mine
vince_prignano has quit [Remote host closed the connection]
<hoelzro> you get the picture =)
<TwinkleHood> It whines over the comma
<hoelzro> on which line?
<sevenseacat> thats not whining over the comma
burlyscudd has joined #ruby
<sevenseacat> its whining about unexpected return
Kar- has joined #ruby
<sevenseacat> missing ;s
mrsolo has quit [Quit: Leaving]
<TwinkleHood> Ah, right
dik_dak has quit [Quit: Leaving]
funburn has quit [Quit: funburn]
<sevenseacat> >> def foo; return 2, 3; end; a, b = foo(); puts(a, b)
<eval-in> sevenseacat => 2 ... (https://eval.in/49252)
<hoelzro> thanks sevenseacat
<TwinkleHood> ty, ty
DanBoy has quit [Remote host closed the connection]
postmodern has joined #ruby
DanBoy has joined #ruby
Advocation has quit [Quit: Advocation]
KTMBoi88 has joined #ruby
vince_prignano has joined #ruby
<TwinkleHood> I can't get it to work though >_> "syntax error, unexpected ',', expecting ')'
<TwinkleHood> return(1, 0)
<TwinkleHood> ^
<TwinkleHood> Sorry about that paste...
shaunbaker has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
<hoelzro> have you tried without the parens?
<TwinkleHood> Oh.
predator217 has joined #ruby
shaunbak_ has joined #ruby
bricker`LA has joined #ruby
<TwinkleHood> Why does the parens ruin it? O.o
* hoelzro shrugs
Bosox20051 has quit [Ping timeout: 248 seconds]
<canton7> you want return [1, 0] or return([1, 0])
aaronmcadam has joined #ruby
<TwinkleHood> No, i don't.
<TwinkleHood> It works now without parents
saarinen has quit [Quit: saarinen]
ordinaryman09 has quit [Quit: ordinaryman09]
jibi has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
<TwinkleHood> I'm trying to do tuple-assignments for easier recursive definitions, i don't want arrays to make it all fugly.
<canton7> `return 1, 0`, `return [1, 0]` and `return([1, 0])` all mean the same thing
<TwinkleHood> Really?
<canton7> ruby doesn't have a tuple vs array distinction
<hoelzro> return 2, 3 under the hood uses arrays
<TwinkleHood> But does [s,t] = [1,2] make sense?
<TwinkleHood> let me stop myself right there.
nomenkun has joined #ruby
<TwinkleHood> I have an interpreter.
<TwinkleHood> Nah, that don't work.
shaunbaker has quit [Ping timeout: 260 seconds]
<hoelzro> >> s, t = [1, 2]; puts(s, t)
<eval-in> hoelzro => 1 ... (https://eval.in/49253)
<canton7> no. s, t = [1, 2] does, which is the same as s, t = 1, 2
_maes_ has joined #ruby
<TwinkleHood> But what, then is the s, t
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hoelzro> what do you mean?
<canton7> they're two variables
<TwinkleHood> Hm.
nomenkun_ has joined #ruby
flaccid has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 264 seconds]
ping-pong has quit [Ping timeout: 268 seconds]
taion809_ is now known as taion809
Es0teric has quit [Quit: Computer has gone to sleep.]
<TwinkleHood> sevenseacat: How do you have time to be the helping angel that you are?
<TwinkleHood> You're ALWAYS around to help people out o.O
<sevenseacat> TwinkleHood: i have a workplace that will kindly let me spend time on IRC
<sevenseacat> as long as i still get my work done :p
echevemaster has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 245 seconds]
tatsuya_o has joined #ruby
<TwinkleHood> I guess a similar situation to mine.. But if i were helping people as much as you are, I wouldn't get a thing done xD
Zai00 has joined #ruby
<TwinkleHood> (not claiming that capability btw)
persand has quit [Quit: persand]
relix has joined #ruby
relix has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 260 seconds]
persand has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
_maes_ has quit [Ping timeout: 268 seconds]
locriani has joined #ruby
relix has joined #ruby
ferdev has joined #ruby
blackmes1 has joined #ruby
ping-pong has joined #ruby
snovak has joined #ruby
timonv has joined #ruby
lurch_ has quit [Quit: lurch_]
jake has joined #ruby
jake is now known as Guest97760
cj3kim has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 257 seconds]
yfeldblum has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
<Guest97760> What does !! do in Ruby? As in used after a object/variable name?
<hoelzro> Guest97760: you mean like array.sort!
<hoelzro> ?
<|jemc|> after? an object?
<Guest97760> hoelzro: If you are in irb, type in !!
Guest97760 is now known as agent_white
sevenseacat has quit [Quit: Leaving.]
<agent_white> So
<|jemc|> before an object it is double-negation
<agent_white> jemc: Afterwards though
_maes_ has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
<agent_white> As in, in irb, if I just type "!!" and hit return, nothing happens
mattlins has quit [Ping timeout: 260 seconds]
<canton7> it's waiting for the next bit of your input
<agent_white> But, if I hit "!!" hit return, then type "j" it says 'no method 'j' found for main object"
<|jemc|> give us the example where you saw it
vince_prignano has quit [Ping timeout: 248 seconds]
<agent_white> Let me put it in a git snippet
<canton7> agent_white, if you hit enter without entering a full expresion, irb waits for you to complete the expression
krz has joined #ruby
krz has quit [Client Quit]
<canton7> puts "one<enter>two<enter>three<enter>"<enter> for example
krz has joined #ruby
DarthGandalf has joined #ruby
<agent_white> canton: But that gives me return values each time
funburn has joined #ruby
<canton7> hmm?
<canton7> when you enter the final quote and hit enter, it evaluates the whole thing
funburn has quit [Client Quit]
Urizen has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
persand has quit [Quit: persand]
<obiwahn> hi
<obiwahn> i am new to ruby an i am looking for some good introduction
<obiwahn> i have started with http://learnxinyminutes.com/docs/ruby/ to get an impression of the language
<obiwahn> and i have the ruby cookbook here
<obiwahn> are there any online tutorials you would recommend?
ephemerian has joined #ruby
<xybre> obiwahn: tryruby.org is a nice little intro
Urizen has quit [Ping timeout: 240 seconds]
<hoelzro> I wouldn't consult the cookbook until you've built up a greater familiarity with the language
<hoelzro> otherwise you may be tempted to copy and paste the code within without fully understanding how it works
<xybre> cargo culting == badnews
<obiwahn> is there some place like python or where you get quick to the documentation of std libs/modules?
<obiwahn> python.org
skaflem has joined #ruby
cutmail has quit [Remote host closed the connection]
<xybre> obiwahn: apidock.com/ruby rubydoc.info are both good
cutmail has joined #ruby
<agent_white> canton7: I figured out my question I think!
locriani has quit [Ping timeout: 248 seconds]
<agent_white> Why does (x!=x) return false, but (x=!x) return true?
<xybre> obiwahn: official site has a list of docs and tutorials -> https://www.ruby-lang.org/en/documentation/
buibex has quit [Remote host closed the connection]
<hoelzro> agent_white: x != x is a comparison
<hoelzro> x = !x is an assignment
<xybre> I got my start back in 2006 off of Why’s (Poignant) Guide to Ruby
<hoelzro> x != x is probably always false (maybe not for NaN, or tricky classes)
cutmail has quit [Read error: Connection reset by peer]
<hoelzro> assignment statements are expressions that have a value equivalent to the RHS
<hoelzro> so if x is truthy, (x != x) will have a falsy value
<hoelzro> and vice versa
cutmail has joined #ruby
agent_white has quit [Read error: Operation timed out]
|jemc| has quit [Ping timeout: 240 seconds]
polymar has joined #ruby
optimusprimem has joined #ruby
agent_white has joined #ruby
<xybre> I think the problem is the lack of spacing. (x = !x) is "x equals negated x" while (x != x) is "x doesn't equal itself".
<coderhs> what the best ruby library to work with jabber? the once i saw are all outdated
<agent_white> xybre: I got disconnected
buibex_ has joined #ruby
<agent_white> What was the answer to that question?
<hoelzro> coderhs: outdated as in they don't work anymore?
<hoelzro> hang on
<hoelzro> I'll paste
<xybre> agent_white: I was replying to hoelzro's comment to you :)
<agent_white> Oh I didn't see it... life without a laptop battery is life on the edge.
s0ny123 has quit [Read error: Connection reset by peer]
<hoelzro> xybre: the lack of spacing definitely makes it less clear
clocKwize_ has joined #ruby
clocKwize has joined #ruby
<agent_white> hoelzro: Thanks for the reply
<hoelzro> np
<agent_white> I was going to say, my x value was set to nil
<xybre> agent_white: ruby's parser "knows" about the x being set, so it initializes it. Its a little weird.
toah has joined #ruby
funburn has joined #ruby
s0ny123 has joined #ruby
burlyscudd has joined #ruby
levin has joined #ruby
nari has quit [Ping timeout: 265 seconds]
levin is now known as Guest29998
browndawg has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
toah has quit [Remote host closed the connection]
corpuscle has quit [Quit: WeeChat 0.4.1]
clocKwize has quit [Quit: clocKwize]
max9max has joined #ruby
noname001 has quit [Remote host closed the connection]
<max9max> Hi all!
<hoelzro> howdy
Kar- has quit [Read error: Connection reset by peer]
<obiwahn> is there something like chop that only removes white spaces?
<coderhs> xybre: thanks for the link.. most of the gems there i tried except blather let me have a look
<obiwahn> ah chomp:)
clocKwize_ is now known as clocKwize
justsee has quit [Ping timeout: 248 seconds]
<coderhs> hoelzro: ya, its not working much any more.. as i tried to collect to a jabber server, the desktop client and javascript client works but connecting using that library fails
<hoelzro> I though chomp only removed newlines?
<max9max> I'm deploying a rails 4 app in production and am having problems with asset hash suffixes. I have disabled config.assets.compile for production, and ran rake assets:compile. I can access an image directly like this: /assets/hero-site-description-bg-7fbacc801ece8283f9a7469344be3e69.jpg but requesting the image in an SCSS File like this: image-url("hero-site-description-bg.jpg") outputs the filename without the hash and leads to a 404.
<hoelzro> coderhs: what kind of error message do you get?
Astralum has joined #ruby
mengu has joined #ruby
<max9max> (with apache2)
<hoelzro> obiwahn: you could also you a regex
<hoelzro> s/also you/also use/
<obiwahn> probably slow:)
noname001 has joined #ruby
<coderhs> hoelzro: https://gist.github.com/coderhs/f230c98034e25343b8bd have placed the error and the code there
<hoelzro> hmm
<hoelzro> I can't vouch for Ruby's regex engine performance
Killerkeksdose has quit [Ping timeout: 248 seconds]
Killerkeksdose has joined #ruby
<hoelzro> due to inexperience
zephdev has joined #ruby
<hoelzro> hmm
<hoelzro> that could just be a bug in the library
vlad_starkov has joined #ruby
<obiwahn> > "3243423.2­3424".to_f­
<obiwahn> => 3243423.23424
Guest29998 has quit [Remote host closed the connection]
<obiwahn> Result is a Float instead of an Array.
<obiwahn> why the warning?
<coderhs> sadly this xmpp4r, xmpp4r simple is the one that i find as most refered in the net.. But they haven't been updated in 3-4 years
KTMBoi88 has quit [Read error: No route to host]
<xybre> obiwahn: like String#strip?
<xybre> Or you mean remove *all* whitespace?
KTMBoi88 has joined #ruby
ferdev has quit [Quit: ferdev]
<hoelzro> obiwahn: because '3.2 3' isn't a string representation of a float
<obiwahn> oh i did not notice the space:P
<xybre> >> '3243423.2­3424'.split(' ').map(&:to_f)
<eval-in> xybre => [3243423.2] (https://eval.in/49270)
<xybre> Hmm
<obiwahn> >> "d d d d d".to_a
<eval-in> obiwahn => undefined method `to_a' for "d d d d d":String (NoMethodError) ... (https://eval.in/49271)
<agent_white> hoelzro & xybre: Thanks again for the help!
agent_white has quit [Quit: leaving]
<hoelzro> aggregatebot: happy to offer it =)
<hoelzro> obiwahn: you probably want split
<xybre> That was a nbsp??
<xybre> >> '3243423.2 3424'.split(' ').map(&:to_f)
<eval-in> xybre => [3243423.2, 3424.0] (https://eval.in/49272)
<obiwahn> >> "d d d d d".split(' ').to_a
<eval-in> obiwahn => ["d", "d", "d", "d", "d"] (https://eval.in/49273)
<obiwahn> nice
<canton7> you don't even need the to_a there :)
<obiwahn> meh
<xybre> obiwahn: You should use irb to play if you haven't already :)
<obiwahn> i have and i play with the online irb soembody here gave me
<obiwahn> :)
<obiwahn> there is a to_a
<obiwahn> but i wonder what could be converted to an array:)
levin has joined #ruby
<hoelzro> >> (1..10).to_a
<eval-in> hoelzro => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/49274)
<hoelzro> ranges, for one
levin is now known as Guest25835
<obiwahn> (1..10)
<obiwahn> >> (1..10)
<eval-in> obiwahn => 1..10 (https://eval.in/49275)
KobraKao has quit [Quit: Saindo]
funburn has quit [Quit: funburn]
<obiwahn> ah oh i would have expected that to result in some sort of array or tuple directly on the other hand this is better for big ranges so you yield one item at a time:)
sjltaylor has joined #ruby
user__ has joined #ruby
<obiwahn> ruby is quite nice:) and you guys here are friendly as well:))
user__ has left #ruby [#ruby]
MrZYX|off is now known as MrZYX
<shevy> ruby is 90% perfect
<ekarlso> obiwahn: converted from python ? ;)
max9max has left #ruby [#ruby]
obs has joined #ruby
moli has quit [Ping timeout: 264 seconds]
<obiwahn> na - python is awesome and i get quite good around
<obiwahn> but ruby seems to be a bit more flexible and i need it for puppet
andikr has quit [Remote host closed the connection]
snovak has joined #ruby
shredding has joined #ruby
nari has joined #ruby
moli has joined #ruby
cj3kim has joined #ruby
ayaz has quit [Read error: No route to host]
timonv has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 268 seconds]
timonv has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
nomenkun_ has joined #ruby
camilasan has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xybre> >> {a: 1}.to_a
<eval-in> xybre => [[:a, 1]] (https://eval.in/49291)
adambeynon has joined #ruby
mva has joined #ruby
<mva> hi there!
<xybre> oi
zephdev has quit [Remote host closed the connection]
ferdev has joined #ruby
<mva> can anybody advice me, how can I fix 'invalid multibyte escape: /^\xFF\xFE/' error to "when /^\xFE\xFF/" condition? [in vpim gem, actually. It seems, it is incompatible with ruby20]
<hoelzro> looks like someone set up you the BOM
relix has joined #ruby
<mva> bundler? :)
<jrobeson> lol
ayaz has joined #ruby
kayloos has quit [Remote host closed the connection]
Kar- has joined #ruby
schaerli has joined #ruby
tvw has joined #ruby
mrnugget has joined #ruby
mrnugget has quit [Client Quit]
Advocation has joined #ruby
mrnugget has joined #ruby
Kar- has quit [Read error: Connection reset by peer]
Kar- has joined #ruby
Advocation has quit [Client Quit]
locriani has joined #ruby
Aryasam has joined #ruby
tesuji has quit [Ping timeout: 248 seconds]
einarj has joined #ruby
Advocation has joined #ruby
locriani has quit [Ping timeout: 248 seconds]
dodosan has quit [Remote host closed the connection]
<shevy> what do you guys think of using a hash that keeps all instance variables of a class, rather than make separate instance variables?
<shevy> like rather than have @foo @bar @bla, these would become key-value pairs in one main hash
<hoelzro> sounds like you'd incur an extra hash lookup
<canton7> yeah I'm not really seeing the point. What's the advantage?
mrnugget has quit [Quit: mrnugget]
<hoelzro> and if the implementation's compiler is smart enough, it could probably translate @foo, @bar, and @bla to offsets in an object
Aryasam has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
<obiwahn> to_c:))) nice
<ehaliewicz> except they're going to be offsets to pointers anyway
yaymukund has quit [Ping timeout: 245 seconds]
<ehaliewicz> there's so much indirection going on behind the scenes of any non-jitted ruby that it probably wont make much of a difference
<shevy> canton7 right now I pass a hash to a class, which has about 12 entries. I am trying to reorganize the class so that I can initialize it both with such a hash, but also with something simple like a string, and it then builds me the data structures I need. So I started to assign instance variables for each entry... but right now I wonder if this is smart at all, because I need to write so many @ ... :(
<hoelzro> all access to the objects would still be through pointers, true
<hoelzro> I was thinking it might help to keep objects trimmer so you can fit more on a page, and thus more in your caches
<canton7> shevy, so the class contains only data found in the hash?
machuga|away is now known as machuga
<shevy> canton7 hmmmm good question... it kinda changed as the years passed by ... hehehe
<canton7> if so, sounds like you've got a class and a hash basically doing the same thing, except that the former has methods
<canton7> in which case... do you need the hash?
mikecmpbll has joined #ruby
schaerli has quit [Read error: Connection timed out]
zz_michael_mbp is now known as michael_mbp
<shevy> The input could be a string or a hash, the problem is the class must run some sanitization on the dataset
<shevy> but to give an example
<xybre> I often subclass Hash and add methods to it.
<shevy> things are like @hash['foo'] and I wonder if it is better or worse to change this to @foo
burlyscudd has joined #ruby
nfk has quit [Quit: yawn]
schaerli has joined #ruby
<xybre> Then most of that is done for you. You can tweak the initializer and []= methods at will.
vince_prignano has joined #ruby
odinswand has joined #ruby
<odinswand> sgoin on
andikr has joined #ruby
xeon has joined #ruby
<shevy> when I asked here some days ago, I was told that it is not good to subclass Hash ... :P
xeon has quit [Max SendQ exceeded]
odinswand has quit [Client Quit]
timonv has quit [Remote host closed the connection]
<shevy> (but for another project)
persand has joined #ruby
<ehaliewicz> it's actually pretty fun to implement classes and methods with closures
<ehaliewicz> if you're into the whole reinventing the wheel thing
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
<xybre> If I want a hash-like object I shouldn't have to reimplement an innefficient version of it.
<xybre> I also use the Hashie gem pretty often when I want some specific set of functionality.
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
<ehaliewicz> i didn't mean reimplementing hash
renotarize43 has quit [Quit: renotarize43]
<ehaliewicz> just talking about implementing oop with functions
<xybre> ehaliewicz: that was for shevy :)
<ehaliewicz> oh
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
xeon has joined #ruby
<shevy> yeah, I do that a lot too
burlyscudd has quit [Ping timeout: 248 seconds]
<shevy> h = MyHash.new
<shevy> h.abc = 'def'
<shevy> h.abc # => 'def'
xeon has quit [Max SendQ exceeded]
<shevy> not with hashie though
<shevy> and not as subclass from hash
<shevy> hmmmmm
C0C0 has left #ruby [#ruby]
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
xeon has joined #ruby
xeon is now known as svector
kayloos has joined #ruby
svector has quit [Max SendQ exceeded]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
liquidogenous56 has joined #ruby
svector has joined #ruby
svector has quit [Max SendQ exceeded]
m00nlight has quit [Quit: Konversation terminated!]
svector has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
persand has quit [Ping timeout: 259 seconds]
kaspergrubbe has joined #ruby
svector has quit [Max SendQ exceeded]
<shevy> got another question
<shevy> when I have a method like:
<shevy> def foo(input = bla)
svector has joined #ruby
<shevy> how does ruby know whether bla is a variable or a method call?
svector has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
pkrzywicki has joined #ruby
s0ny123 has quit [Ping timeout: 240 seconds]
svector has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
callmeivan has joined #ruby
persand has joined #ruby
<callmeivan> i need to set a hex value formatted like this hex = "\x00"
<callmeivan> but when i add for example 5 to it it becomes "\x005" instead of "\x05"
michael_mbp is now known as zz_michael_mbp
mklappstuhl has joined #ruby
<shevy> this hex is 0 yes?
timonv has joined #ruby
<clocKwize> its still a string
<callmeivan> in the beginning yes
<callmeivan> but then i need to set it based on a value
<clocKwize> "\x00" + "\x05" == "\x00\x05"
<MrZYX> callmeivan: 005 and 5 are the same number, no? ;)
<callmeivan> so far i am only able to set it manually
<clocKwize> why not hold the value as integer?
BillCriswell has joined #ruby
kaspergrubbe has quit [Ping timeout: 248 seconds]
<callmeivan> it is for a dns server
<clocKwize> yeah, maybe explain what you're trying to achieve
<clocKwize> :)
noname001 has quit [Remote host closed the connection]
vince_prignano has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
sparklr has joined #ruby
evenix has joined #ruby
bricker`LA has quit [Ping timeout: 248 seconds]
kayloos has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
kizzx2 has quit [Quit: Leaving.]
<callmeivan> i modified this source
<callmeivan> maybe there is another valid way to set the packets
<callmeivan> but i don't know
<canton7> callmeivan, "\x005" and "\x05" are the same thing - they're representations of an unprintable character in a string
<callmeivan> thats not how it works
<callmeivan> if you try it
<MrZYX> >> "\x005" == "\x05"
<eval-in> MrZYX => false (https://eval.in/49293)
camilasan has joined #ruby
<canton7> yeah, hmm
davy has joined #ruby
Advocation has quit [Quit: Advocation]
polymar has quit [Remote host closed the connection]
<callmeivan> i could map a table but thats pretty stupid
<MrZYX> okay, it's a 0 byte followed by a 5 byte
davy has left #ruby [#ruby]
cutmail has quit [Remote host closed the connection]
cutmail has joined #ruby
<canton7> yeah, I'm being silly. "\x005" is "\x00" + "5", of course
<canton7> so what was the original problem? a null byte concantenated with an ASCII "5"?
kayloos has joined #ruby
<MrZYX> the original problem was "I want to modify that gist of a dns server in ruby"
<MrZYX> that's all we know so far
<canton7> maybe you meant to add it to "\x05" ?
kaldrenon has joined #ruby
<canton7> (someone already said that)
<canton7> yeah...
<callmeivan> i have \x00 i want to add a number
<callmeivan> but that seems impossible
<callmeivan> is that unclear?
<canton7> what exactly do you mean "add a number"?
<canton7> in the integer addition sense?
<callmeivan> yes
<canton7> ('cos "\x00" is a string, not an int)
<canton7> 0 + 5? "\x00".to_i + 5?
kaspergrubbe has joined #ruby
pushpak has joined #ruby
<MrZYX> that only works for the 0 case :P
<callmeivan> i need it to be in hex \x05
aagdbl has quit [Read error: Connection reset by peer]
<MrZYX> >> ["\x00".unpack("C").first+5].pack("C")
<eval-in> MrZYX => "\x05" (https://eval.in/49294)
intuxicated_ has joined #ruby
girija has quit [Read error: Connection reset by peer]
girija has joined #ruby
dsferreira has joined #ruby
cutmail has quit [Ping timeout: 248 seconds]
ehaliewicz has quit [Ping timeout: 248 seconds]
<canton7> MrZYX, yeah good point!
<xybre> What about .ord?
<callmeivan> thanks MrZYX
aagdbl has joined #ruby
<xybre> >> "\u00".ord
<eval-in> xybre => /tmp/execpad-601cae791cf9/source-601cae791cf9:2: invalid Unicode escape ... (https://eval.in/49295)
ndngvr` has quit [Ping timeout: 245 seconds]
<xybre> Oops
<xybre> >> "\x00".ord
<canton7> oh duh good point, #str and #ord
<eval-in> xybre => 0 (https://eval.in/49296)
<canton7> ("\x00".ord + 5).chr
<canton7> #chr, rather
<MrZYX> if we stay at one byte sequences, yeah
kaldrenon has quit [Ping timeout: 245 seconds]
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<callmeivan> great, its working ^^
aagdbl has quit [Read error: Connection reset by peer]
<xybre> And you can always remap strings like "foo".each_char.to_a and "foo".each_char.map(&:ord)
aagdbl has joined #ruby
butblack has joined #ruby
dsferreira has quit [Client Quit]
intuxicated has quit [Ping timeout: 248 seconds]
<xybre> Otherwise you'll need to use pack/unpack and I find them to be kind of awful to use.
mattlins has joined #ruby
dsferreira has joined #ruby
kayloos has quit [Remote host closed the connection]
bricker`LA has joined #ruby
kayloos has joined #ruby
dsferreira has quit [Client Quit]
krandi has joined #ruby
andikr has quit [Ping timeout: 264 seconds]
<canton7> there are also a ton of packages for mapping structs onto byte sequences, e.g. http://bindata.rubyforge.org/manual.html
<canton7> callmeivan, ^^
ndngvr has joined #ruby
Roa_ has quit [Ping timeout: 248 seconds]
<callmeivan> yeah thanks, pretty cool ^^
<obiwahn> File.foreach(path) do |line|
<obiwahn> name, url = line.split(': ')
butblack has quit [Quit: butblack]
<obiwahn> the file foreach accesses every file in path or is it the path to a file and the foreach goes through the lines?
<xybre> canton7: I never thought to look for something like that, thanks :)
<obiwahn> there is no open?
jbpros has joined #ruby
<canton7> xybre, it took me a solid 5 minutes of googling different keywords to find the damn thing. It's impossible to remember what search terms to use...
<canton7> xybre, but yeah, there are a ton of them out there. The page I linked has a good list of alternatives iirc
BillCriswell has quit [Remote host closed the connection]
mlpinit has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
<obiwahn> another question:)
emergion has joined #ruby
pkrzywicki has quit [Read error: Operation timed out]
<obiwahn> >> foo="a beautiful beautiful girl" ; print foo['bautiful']='ugly'
<eval-in> obiwahn => string not matched (IndexError) ... (https://eval.in/49297)
gr33n7007h has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
<obiwahn> >> foo="a beautiful beautiful girl" ; print foo['beautiful']='ugly'
<eval-in> obiwahn => uglynil (https://eval.in/49298)
jbpros has quit [Ping timeout: 248 seconds]
<xybre> >> foo="a beautiful beautiful girl" ; puts foo['beautiful']='ugly' ; foo
<eval-in> xybre => ugly ... (https://eval.in/49299)
<obiwahn> it was from the poem example
<xybre> Ruby always returns the value on the right side of a setter
<clocKwize> Didn't know you could do that! :P
<obiwahn> how do i replace all matches but not only the first
<xybre> obiwahn: check out gsub
<canton7> the String#[]= syntax is rarely used, tbh
emergion has quit [Ping timeout: 260 seconds]
camilasan has quit [Remote host closed the connection]
girija has quit [Ping timeout: 240 seconds]
<canton7> #sub and #gsub are far more common
cutmail has joined #ruby
<obiwahn> xybre why do you use the puts?
camilasan has joined #ruby
<xybre> obiwahn: because `puts\n` is like `print "something\n"
<xybre> gah
<xybre> Not that
<clocKwize> can't you do "blah blah"[/ah/g] = ..
GeissT has quit [Ping timeout: 248 seconds]
<xybre> `puts "something"` is like `print "something\n"`
krandi has quit [Remote host closed the connection]
<xybre> It just adds a newline to the end of each outputted string.
camilasan has quit [Remote host closed the connection]
gerep has joined #ruby
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
camilasan has joined #ruby
s0ny123 has joined #ruby
svector has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
mva has left #ruby [#ruby]
Advocation has joined #ruby
camilasa_ has joined #ruby
emergion has quit [Max SendQ exceeded]
camilasan has quit [Read error: Connection reset by peer]
persand has quit [Ping timeout: 240 seconds]
Kneferilis has quit [Quit: Leaving]
Kneferilis has joined #ruby
emergion has joined #ruby
leonidlm has joined #ruby
emergion has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 245 seconds]
clocKwize has quit [Quit: Textual IRC Client: www.textualapp.com]
emergion has joined #ruby
persand has joined #ruby
<obiwahn> the tryruby is nice but it sucks that you are not allows to copy:(
emergion has quit [Max SendQ exceeded]
ewnd9 has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
emergion has joined #ruby
mmitchell has joined #ruby
Fire-Dragon-DoL has joined #ruby
kayloos has quit [Remote host closed the connection]
emergion has quit [Max SendQ exceeded]
noname001 has joined #ruby
burlyscudd has joined #ruby
shredding has joined #ruby
emergion has joined #ruby
<obiwahn> ohno again a typo at the function definiton:) and it seems ipossilbe to just change the last line
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
<obiwahn> so i have to retype the whole block .. i got a new keyboard without letters on it to improve my typing:) no so good in this case:P
clocKwize_ has joined #ruby
emergion has quit [Max SendQ exceeded]
mmitchell has quit [Remote host closed the connection]
yaymukund has joined #ruby
dodosan has joined #ruby
emergion has joined #ruby
zendeavor has left #ruby ["WeeChat 0.4.1"]
coderhs has quit [Quit: Leaving]
emergion has quit [Max SendQ exceeded]
<lessless> how to iterate through dates range with one week step
burlyscudd has quit [Ping timeout: 240 seconds]
ehaliewicz has joined #ruby
emergion has joined #ruby
mklappstuhl has joined #ruby
funburn has joined #ruby
soba has quit [Ping timeout: 248 seconds]
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
jp- has quit [Ping timeout: 248 seconds]
emergion has quit [Max SendQ exceeded]
girija has joined #ruby
yaymukund has quit [Ping timeout: 245 seconds]
nextdropping has joined #ruby
mrnugget has joined #ruby
postmodern has quit [Quit: Leaving]
emergion has joined #ruby
dodosan has quit [Ping timeout: 268 seconds]
emergion has quit [Max SendQ exceeded]
<xybre> canton7: I started a new list of recent libs here: https://gist.github.com/acook/6622270 :)
emergion has joined #ruby
ehaliewicz has quit [Ping timeout: 240 seconds]
<canton7> cool :)
emergion has quit [Max SendQ exceeded]
dangerousdave has quit [Quit: Leaving...]
funburn has quit [Quit: funburn]
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
blackmes1 has joined #ruby
dangerousdave has joined #ruby
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
<xybre> canton7: yeah I went through that list, most of them are unmainted since like 2009 or before
<xybre> unmaintained^
<canton7> aah, fair enough
<canton7> shasme
<canton7> *shame
<xybre> So I stuck to things updated in the last year
clocKwize_ is now known as clocKwize
emergion has joined #ruby
<canton7> not that I'd necessarily discard them for that - they might just have reached a mature state. the task they're doing hasn't changed for a long, long time
emergion has quit [Max SendQ exceeded]
BillCriswell has joined #ruby
emergion has joined #ruby
sparklr has quit [Read error: Operation timed out]
<xybre> Yeah, but if they've not been touched in 4 years they probably won't work with Ruby 2.
<xybre> And since everything I develop uses Ruby 2 pretty much, that means they're not teribly useful to me.
blackmes1 has quit [Ping timeout: 240 seconds]
bugsinlights has joined #ruby
liquidogenous56 has quit [Quit: liquidogenous56]
<canton7> really? I'd be interested to see. Ruby 2 doesn't break that much
stonesmatch18 has joined #ruby
tdm4 has joined #ruby
banister`gym has quit [Read error: Connection reset by peer]
<tdm4> I need help installing something.. and it's saying bundler isn't installed.. but.. it is! http://pastebin.com/DRxiV8Lx thanks :)
banisterfiend has joined #ruby
io_syl has joined #ruby
<xybre> tdm4: why are you using the full paths?
buibex_ has quit [Remote host closed the connection]
<xybre> canton7: it breaks a lot compared to 1.8 whic hwas still common 4 years ago
<tdm4> xybre: using rvm in /usr/local/rvm to install ruby 2.0.0
emergion has quit [Ping timeout: 254 seconds]
<tdm4> separate to system's ancient 1.8.7
dawkirst has quit [Ping timeout: 245 seconds]
<tdm4> just wondering why it complains bundler isn't there when it clearly is
<tdm4> how do I get the system to see it's actually there?
<xybre> tdm4: it doesn't look like you are using rvm correctly
dawkirst has joined #ruby
<tdm4> what should I do then?
emergion has joined #ruby
<xybre> Did you put `source $HOME/.rvm/scripts/rvm` in your shell configuration or at least run it in your current shell?
io_syl has quit [Client Quit]
lurch_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<tdm4> there is no $HOME/.rvm
<tdm4> basically I'm trying to get puppet to install ruby 2.0.0, rails 3.2.13 and redmine 2.3.3
mklappstuhl has joined #ruby
Stygia has joined #ruby
emergion has quit [Max SendQ exceeded]
<tdm4> and it manages to install ruby 2.0.0 and rails.. and all.. but complains about bundler not being there when it is
haxrbyte has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: Leaving...]
<MrZYX> because your $GEM_PATH etc doesn't include it
emergion has joined #ruby
blackmes1 has joined #ruby
<MrZYX> because you didn't select the installed ruby with rvm use
funburn has joined #ruby
emergion has quit [Max SendQ exceeded]
<tdm4> GEM_HOME=/usr/local/rvm/gems/ruby-2.0.0-p247
<xybre> So you didn't source the rvm setup script, or you just can't read between the lines?
<tdm4> GEM_PATH=/usr/local/rvm/gems/ruby-2.0.0-p247:/usr/local/rvm/gems/ruby-2.0.0-p247@global
<tdm4> I wonder.. do I have to make a @redmine set?
emergion has joined #ruby
<MrZYX> you don't have to
<tdm4> gem list shows them being in local
<tdm4> ok
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
<obiwahn> !doc Hash
snovak has joined #ruby
haxrbyte has joined #ruby
<tdm4> hmm these instructions must be wrong for redmine then.. bundle --gemfile switch doesn't work anymore?
Elhu has quit [Quit: Computer has gone to sleep.]
Apocalypse has quit [Ping timeout: 260 seconds]
coderhs has joined #ruby
kayloos has joined #ruby
<tdm4> I'm totally lost here.. I've never used ruby before.
<tdm4> this gem stuff gives me a headache :(
jkamenik has joined #ruby
Apocalypse has joined #ruby
Ubercow has quit [Quit: Computer has gone to sleep.]
kayloos has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
g0bl1n has joined #ruby
g0bl1n has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
sparklr has joined #ruby
hanmac has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
stonesmatch18 has quit [Ping timeout: 268 seconds]
emergion has quit [Ping timeout: 247 seconds]
<shevy> but it does not seem you have only gem to blame, you also seem to use RVM and bundler
<xybre> Redmine does an awful lot, and I don't know if setting that up is going to be in your best interests. Reading the RVM documentation for how to install and use it would be helpful though.
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
dangerousdave has joined #ruby
emergion has joined #ruby
girija has quit [Ping timeout: 240 seconds]
emergion has quit [Max SendQ exceeded]
buibex has joined #ruby
<xybre> If you're on Linux and don't want to use Vim then Sublime is fine. Gedit should be good enough to get started with.
<shevy> \o/
ffranz has joined #ruby
mark_locklear has joined #ruby
emergion has joined #ruby
mmitchell has joined #ruby
AndChat| has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
<xybre> I really don't see the appeal of the "IDE" concept. But maybe thats because I've spent 7 years writing Ruby and not Java.
schaerli has quit [Remote host closed the connection]
krz has quit [Quit: krz]
<shevy> it depends
emergion has quit [Max SendQ exceeded]
<shevy> if the IDE would be integrated and a component of the overall operating system, like the unix philosophy, then it wouldn't be bad
stonesmatch18 has joined #ruby
dkamioka has quit [Remote host closed the connection]
<xybre> Well, thats what I have the GNU tools, bash/zsh, and vim for.
kayloos has joined #ruby
emergion has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
tdm4 has left #ruby [#ruby]
<shevy> and where is the GUI in your chain? :P
<hanmac> sometimes, when you have bigger projects with more than 200files, or maybe an binding that transports one library from one language into an other its better to have an IDE that manages that for you
emergion has quit [Max SendQ exceeded]
<shevy> I still don't know how hanmac can manage to have so many files open
<xybre> shevy: Its not, except for my terminal and my browser (and gvim).
jibi has quit [Quit: .]
emergion has joined #ruby
dash_ has quit [Quit: dash_]
<xybre> I've dealt with hgue projects without a problem.
emergion has quit [Max SendQ exceeded]
<hanmac> shevy i have enough RAM ;P
gr33n7007h has joined #ruby
girija has joined #ruby
<xybre> I'm pretty sure ctags and ack are going to get me what I want as fast or faster than an IDE tool.
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
hogeo has quit [Remote host closed the connection]
funburn has joined #ruby
emergion has joined #ruby
jlebrech has joined #ruby
emergion has quit [Max SendQ exceeded]
Apocalypse has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
emergion has quit [Max SendQ exceeded]
mklappstuhl has joined #ruby
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
emergion has joined #ruby
lkba has joined #ruby
emergion has quit [Max SendQ exceeded]
Apocalypse has joined #ruby
buibex has quit [Remote host closed the connection]
emergion has joined #ruby
yalue has joined #ruby
coderhs has quit [Quit: Leaving]
mklappstuhl has quit [Ping timeout: 240 seconds]
jp- has joined #ruby
emergion has quit [Max SendQ exceeded]
snath has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
gerep has quit [Ping timeout: 264 seconds]
geremih has joined #ruby
buibex_ has joined #ruby
Elhu has joined #ruby
dangerousdave has quit [Quit: Leaving...]
breakingthings has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
geekbri has joined #ruby
vlad_starkov has joined #ruby
pothibo has joined #ruby
pothibo has quit [Client Quit]
geremih has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
emergion has joined #ruby
gerep has joined #ruby
jibi has joined #ruby
gerep has left #ruby [#ruby]
burlyscudd has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
girija has quit [Ping timeout: 264 seconds]
rdark has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
dangerousdave has joined #ruby
theRoUS has joined #ruby
sailias has joined #ruby
girija has joined #ruby
jibi has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Ping timeout: 240 seconds]
mihirrege has joined #ruby
jibi has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Apocalypse has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: Leaving]
vlad_starkov has joined #ruby
Apocalypse has joined #ruby
kobain has joined #ruby
jdeeburke has joined #ruby
jdeeburke has quit [Read error: Connection reset by peer]
parzo has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
blackmes1 has joined #ruby
snath has joined #ruby
Apocalypse has quit [Ping timeout: 260 seconds]
parzo has quit [Ping timeout: 248 seconds]
krawchyk_ has joined #ruby
dangerousdave has quit [Quit: Leaving...]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Apocalypse has joined #ruby
mikecmpbll has joined #ruby
iamjarvo_ has joined #ruby
persand has quit [Quit: persand]
buibex_ has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 268 seconds]
<lessless> can I use inject with index ?
intuxicated_ is now known as intuxicated
tonni has quit [Remote host closed the connection]
<hanmac> yes, yes you can ;P
intuxicated has quit [Changing host]
intuxicated has joined #ruby
buibex has joined #ruby
<lessless> (84/7).times.inject([]).with_index {|memo, week, index| ...}
<lessless> hanmac, TypeError: [] is not a symbol
brbcoding has joined #ruby
stonesmatch18 has quit [Quit: stonesmatch18]
rdark has joined #ruby
<hanmac> try times.with_index.inject
kayloos has quit [Remote host closed the connection]
Boohbah has quit [Quit: Lost terminal]
<hanmac> and you need to capsule the block variables like this: {|memo, (week, index)|    ...}
Minos___ has joined #ruby
electric-mind has joined #ruby
electric-mind has left #ruby [#ruby]
<lessless> why's that?
cawing01 has joined #ruby
YaNakilon has quit [Ping timeout: 264 seconds]
ekarlso has quit [Quit: Lost terminal]
d34th4ck3r has quit [Quit: d34th4ck3r]
Minos__ has quit [Ping timeout: 268 seconds]
<hanmac> its because inject does capluse them like memo,(other) … so you need to uncapule them
<hanmac> lessless: but PS: with_index does not make any sense with times … or was that only a sample?
Minos___ has quit [Client Quit]
BillCriswell has quit [Remote host closed the connection]
tkuchiki has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
tomzx_mac has joined #ruby
persand has joined #ruby
Advocation has joined #ruby
YaNakilon has joined #ruby
snovak has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
codebeaker has joined #ruby
UForgotten has joined #ruby
<lessless> hanmac, do meen that times passes the index itself?
iamjarvo_ has joined #ruby
persand has quit [Client Quit]
leehambley has quit [Ping timeout: 248 seconds]
io_syl has quit []
<hanmac> lessless: yeah times will be the index
huoxito has joined #ruby
alup has quit [Read error: No route to host]
snovak has quit [Remote host closed the connection]
jonkri has quit [Quit: jonkri]
iamjarvo_ has quit [Ping timeout: 268 seconds]
mklappstuhl has joined #ruby
tjad has quit [Quit: No Ping reply in 180 seconds.]
makarius has joined #ruby
ehc has joined #ruby
Xiti has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
kayloos has joined #ruby
makarius has quit [Client Quit]
axl_ has joined #ruby
devoldmx has joined #ruby
pothibo has joined #ruby
blaxter has quit [Quit: foo]
Ox6abe has joined #ruby
platzhirsch1 has joined #ruby
jerius has joined #ruby
<platzhirsch1> How are loggers in general, and in Sidekiq in particular customized? Just overwrite the call method?
devoldmx3 has quit [Ping timeout: 248 seconds]
guiguidoc has joined #ruby
snovak has joined #ruby
iamjarvo has joined #ruby
pzula has joined #ruby
andikr has joined #ruby
vim_shim has quit [Ping timeout: 264 seconds]
brisbin has quit [Quit: WeeChat 0.4.1]
<platzhirsch1> apparently logger.formatter = a subclass of Logger::Formatter :)
Apocalypse has quit [Ping timeout: 261 seconds]
tjad has joined #ruby
alup has joined #ruby
brisbin has joined #ruby
Apocalypse has joined #ruby
banisterfiend has joined #ruby
freerobby has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
kobain has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Client Quit]
<lessless> how to iterate from Date.new to N weeks before ?
<lessless> *Date.now
dangerousdave has joined #ruby
<lessless> Date.today
noop has quit [Ping timeout: 240 seconds]
tjad has quit [Ping timeout: 248 seconds]
<MrZYX> hm, (Date.today-n*7..Date.today).step(7) ?
devoldmx has quit [Ping timeout: 264 seconds]
Ox6abe has quit [Remote host closed the connection]
<mikecmpbll> ((Date.today).downto(2.weeks.ago.to_date)
<mikecmpbll> -(
banisterfiend has joined #ruby
<MrZYX> uhm, with activesupport
Ox6abe has joined #ruby
axl_ has quit [Quit: axl_]
andikr has quit [Remote host closed the connection]
<hanmac> m i think Date/Time and DateTime should get funny enumerator methods … so you can so "the next N months" (and it iterates over the months not all the dates)
NealJ has joined #ruby
hanmac has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
cj3kim has joined #ruby
<mikecmpbll> MrZYX: my bad, thought i was in #rubyonrails, haha.
Ox6abe has quit [Remote host closed the connection]
ryandeussing has joined #ruby
clocKwize has quit [Quit: Textual IRC Client: www.textualapp.com]
clocKwize_ has joined #ruby
segfalt has joined #ruby
vlad_starkov has joined #ruby
<hanmac> hm some stuff from rails might be nice, but i hate this "2.weeks.ago" ...
dangerousdave has quit [Quit: Leaving...]
cj3kim has quit [Ping timeout: 240 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
kaldrenon has joined #ruby
nbouscal has joined #ruby
Spami has joined #ruby
schaerli has joined #ruby
nbouscal has quit [Max SendQ exceeded]
nanoxd has joined #ruby
dangerousdave has joined #ruby
devdazed has joined #ruby
jaynewstrom has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
shredding has quit [Quit: shredding]
ryandeussing has quit [Remote host closed the connection]
ryandeussing has joined #ruby
ryandeussing has quit [Remote host closed the connection]
ryandeussing has joined #ruby
ryandeussing has quit [Remote host closed the connection]
peregrine81 has joined #ruby
nbouscal has joined #ruby
baordog_ has joined #ruby
wmoxam has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
St_Marx has joined #ruby
mary5030 has quit [Remote host closed the connection]
jpinnix has joined #ruby
cmarques_ has joined #ruby
cmarques has quit [Read error: No route to host]
burlyscudd has joined #ruby
parzo has joined #ruby
Banistergalaxy has joined #ruby
kvirani has joined #ruby
tabolario has joined #ruby
alex__c2022 has joined #ruby
axl_ has joined #ruby
Ziarkaen has joined #ruby
kobain has joined #ruby
h_kon has quit [Remote host closed the connection]
jpinnix has quit [Client Quit]
jpinnix has joined #ruby
platzhirsch1 is now known as platzhirsch
axl_ has quit [Read error: No route to host]
mklappstuhl has quit [Remote host closed the connection]
endash has joined #ruby
parzo has quit [Ping timeout: 248 seconds]
ghr has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Quit: Leaving.]
jpinnix has quit [Client Quit]
lurch_ has quit [Quit: lurch_]
jpinnix has joined #ruby
hogeo has joined #ruby
buibex has quit [Remote host closed the connection]
jpinnix has quit [Client Quit]
jpinnix has joined #ruby
kayloos has quit [Remote host closed the connection]
toah has joined #ruby
jpinnix has quit [Client Quit]
neo_ has joined #ruby
jpinnix has joined #ruby
segfalt has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Quit: Leaving.]
codecop has quit [Quit: Išeinu]
skaflem has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
kayloos has joined #ruby
carlyle has joined #ruby
skaflem has joined #ruby
dangerousdave has quit [Quit: Leaving...]
mrsolo has joined #ruby
Aryasam has joined #ruby
adambeynon has joined #ruby
cody-- has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
neo_ has quit [Quit: Leaving]
lukec has joined #ruby
Kar- has quit [Ping timeout: 264 seconds]
bamdad has joined #ruby
bamdad has quit [Client Quit]
kvirani has quit [Remote host closed the connection]
cody-- has joined #ruby
sevenseacat has joined #ruby
Kar- has joined #ruby
kvirani has joined #ruby
dangerousdave has joined #ruby
cascalheira has joined #ruby
BillCriswell has joined #ruby
dhruvasagar has joined #ruby
lfox has joined #ruby
sambao21 has joined #ruby
Ox6abe_ has joined #ruby
Aryasam has quit [Quit: Bye]
RDash[AW] is now known as RDash
Aryasam_ has joined #ruby
iamjarvo has joined #ruby
snath has quit [Quit: Ex-Chat]
kvirani has quit [Ping timeout: 276 seconds]
nfk has joined #ruby
tomzx_mac has quit [Ping timeout: 268 seconds]
Aryasam has joined #ruby
pushpak has quit [*.net *.split]
Caius has quit [*.net *.split]
Deele has quit [*.net *.split]
Coffers has quit [*.net *.split]
phracker has quit [*.net *.split]
soulcake has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
awkisopen has quit [*.net *.split]
timmow has quit [*.net *.split]
Gate has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
gtc has quit [*.net *.split]
brian`_ has quit [*.net *.split]
angelixd has quit [*.net *.split]
angelixd has joined #ruby
gtc has joined #ruby
brian` has joined #ruby
WanderingGlitch has joined #ruby
Gate has joined #ruby
pushpak has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
momomomomo has joined #ruby
<momomomomo> Morning
<hoelzro> morning
blackmes1 has joined #ruby
alexju has joined #ruby
aryaching has joined #ruby
Aryasam has quit [Client Quit]
ekarlso has joined #ruby
Xiti has joined #ruby
sparklr has quit [Ping timeout: 261 seconds]
sambao21 has quit [Ping timeout: 260 seconds]
BrianJ has joined #ruby
Aryasam_ has quit [Ping timeout: 264 seconds]
ravster has joined #ruby
Kricir has joined #ruby
vlad_starkov has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
Ox6abe_ has quit [Ping timeout: 268 seconds]
dash_ has joined #ruby
funburn has quit [Quit: funburn]
<platzhirsch> So, Sidekiq calls it logger formatter Pretty. Then my override is called Prettier, right? Just following conventions here
blackmes1 has quit [Ping timeout: 240 seconds]
Tricon has joined #ruby
deception has joined #ruby
jlast has joined #ruby
buibex has joined #ruby
peregrine81 has quit []
VTLob has joined #ruby
elux has joined #ruby
Caius has joined #ruby
Coffers has joined #ruby
soulcake has joined #ruby
Deele has joined #ruby
timmow has joined #ruby
tonni has joined #ruby
awkisopen has joined #ruby
ryandeussing has joined #ruby
Gadgetoid has joined #ruby
burlyscudd has joined #ruby
DonRichie has joined #ruby
iamjarvo has quit [Remote host closed the connection]
dml_ has joined #ruby
iamjarvo has joined #ruby
dweeb_ has joined #ruby
negaduck has joined #ruby
jdenen has joined #ruby
girija has joined #ruby
<negaduck> hi! i have a link like "www.example.com". How to convert it to "http://www.example.com"?
fmcgeough has joined #ruby
Kar- has quit [Ping timeout: 240 seconds]
<negaduck> "http://www.example.com/" <- added slash
<tobiasvl> ?
<tobiasvl> url = "www.example.com"; url = "http://#{url}/"
<tobiasvl> ?
<tobiasvl> i don't understand what you mean
<negaduck> i'm sorry. I mean how to convert it when there is no scheme
<tobiasvl> what's a scheme?
<negaduck> http, https, ssh, etc
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
<lupine> convert it from what, to what?
<negaduck> how to normilize it
iamjarvo has quit [Ping timeout: 245 seconds]
Soda has joined #ruby
dangerousdave has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<tobiasvl> ???
yaymukund has joined #ruby
pzula has quit [Ping timeout: 260 seconds]
MrThePlague has joined #ruby
interactionjaxsn has joined #ruby
MrThePlague has joined #ruby
rhys has joined #ruby
kevind has joined #ruby
havenwood has joined #ruby
hogeo_ has joined #ruby
iamjarvo has joined #ruby
jocke_ has joined #ruby
sparklr has joined #ruby
xcfox has joined #ruby
johchri has joined #ruby
<jocke_> what are some good screencasts on application design and structure (possibly going to patterns as well)? ruby would be preferable, but it's not a must
Kar- has joined #ruby
cj3kim has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
<sweeper> what are the rules about assignment causing data to be copied instead of referenced?
<hanmac> jocke_: i think you mean rails right? #rubyonrails
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
<jocke_> hanmac: not necessarily, but i will try my luck there as well :)
iamjarvo_ has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
iamjarvo has quit [Read error: Connection reset by peer]
headius has joined #ruby
aagdbl has quit [Ping timeout: 240 seconds]
sloucher has quit [Quit: sloucher]
<sweeper> jocke_: http://highscalability.com/ <-- I like this site
<hanmac> hm there is not much "application design" … or do you mean the "design patterns in ruby" ?
cj3kim has quit [Ping timeout: 240 seconds]
cescalante has joined #ruby
rehat has joined #ruby
pel_daniel has joined #ruby
<Todd> omg.. I just found some code that rescues on exception and raises the exception that it rescued..
* Todd head.desk
toah has quit [Ping timeout: 264 seconds]
<sweeper> nothing wrong with that
<Todd> it's ridiculous
hogeo_ has quit [Remote host closed the connection]
<cescalante> can you put on pastebin? I might need to replicate it someday
<lupine> Todd, does it do work between the rescue and the raise?
<havenwood> Todd does it do things other than re-raising?
<jocke_> Todd: does it not do anything before reraising it?
<Todd> it does nothing but raise the exception that it catches.. you should avoid rescuing Exception's anyways
<jocke_> hahaha
<Todd> nothing
<havenwood> eek
<sweeper> well if it does nothing, that's silly
<Todd> hang on
<lupine> rescue Exception => e ; raise e ; end is going to be bad
blackmes1 has joined #ruby
<lupine> messes up stack traces and all sorts
<sweeper> rescuing and raising the same exception in and of itself is not bad
<cescalante> …
<cescalante> how would it be useful?
<sweeper> you could do work there but allow the exception to bubble up
aggregatebot has quit [Excess Flood]
<mjc_> hm. I have a hash names = {"name" => "Foo Bar", "code" => "FB"}; I'm trying to turn it into { "Foo Bar" => "FB"}
kayloos has quit [Write error: Broken pipe]
dkamioka has joined #ruby
sarkis has joined #ruby
<lupine> the best you could say of it is that it has a documentary effect
<mjc_> names.map { |x| { x["name"] => x["code"] }.inject(:merge) seems to work
<mjc_> is there a more rubyish way to do that?
<lupine> but it's not a very good thing
<hanmac> Todd, sometimes its nesssary to catch this exceptions … specially when its unknown when they will be raised
<havenwood> Todd: I'd vote that you should put a second `begin...rescue` inside the first rescue, and re-raise a second time. (Just for dramatic effect.)
<Todd> I'm deleting this nonsense
<havenwood> Or that.
headius has quit [Quit: headius]
cawing01 has quit [Ping timeout: 248 seconds]
jbrechtel has joined #ruby
<waxjar> Hash[*names.values]
headius has joined #ruby
RORgasm has joined #ruby
girija has quit [Read error: Connection reset by peer]
pzula has joined #ruby
* hanmac raise his fist :" lets rescue all exceptions and raise them again" ;D
vlad_starkov has quit [Remote host closed the connection]
<MrZYX> but only raise them again after election ;)
tobago has quit [Remote host closed the connection]
<tobiasvl> hanmac: i'll rescue that fist and raise it again!
jbrechtel has quit [Remote host closed the connection]
<hanmac> xDD
cawing01 has joined #ruby
rins has joined #ruby
<Todd> I'm gonna add a few more puts inside the nested begins
<Todd> again, for dramatic effect
<sweeper> so, when does assignment involve a copy, and when doesn't it, in ruby?
workmad3 has joined #ruby
dkamioka has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
<MrZYX> hm, never?
<sweeper> ah, k
ner0x has joined #ruby
sr78ger has joined #ruby
sr78ger has quit [Max SendQ exceeded]
<s2r2> hi #ruby. Is there any specific documentation on hypermedia APIs and lostisland/sawyer? I got the strong feeling that it is a great fit for some API I'm trying to interact with, but I fail with some details (I can't have it read the schema...)
pzula has quit [Read error: Connection reset by peer]
blackmes1 has quit [Ping timeout: 240 seconds]
sr78ger has joined #ruby
<sweeper> troubleshooting a method that seems to have problems with large files
sr78ger has quit [Max SendQ exceeded]
<momomomomo> !code
<momomomomo> oh, this isn't RoR
<momomomomo> sweeper, post your code and errors to http://gist.github.com
sr78ger has joined #ruby
pzula has joined #ruby
wallerdev has quit [Quit: wallerdev]
kevinykchan has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
tonni has quit [Read error: Connection reset by peer]
<sweeper> no errors, just terrible performance, and the code is pretty specific. I know what I'm looking for (something that causes a copy, or otherwise iterates over the file)
s0ny123 has quit [Quit: leaving]
mansi_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
negaduck has quit [Quit: negaduck]
<Morrolan> Reading the whole file into memory at once?
<momomomomo> sweeper: You want to copy a file if it exists, or you want to iterate over it? Which
blackmes1 has joined #ruby
<sweeper> neither, natch
mklappstuhl has joined #ruby
dkamioka has joined #ruby
Targen_ has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
<workmad3> sweeper: so you're looking to optimise... have you run ruby-prof over your code to identify what is actually causing the slowdowns?
cutmail has quit [Remote host closed the connection]
<sweeper> Morrolan: well given current arch, it needs to be in memory (bad I know), but I want to make sure it's only there once, and we're not doing anything stupid
<workmad3> sweeper: or are you just guessing that it's something to do with unnecessary copying of strings?
toah has joined #ruby
<sweeper> workmad3: well I know what method is slow, I'll try profiling it locally...
axl_ has joined #ruby
<workmad3> sweeper: just loading a large file into memory can be harsh on performance ;)
Desert_eagle has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
<sweeper> workmad3: well it's coming in an http request, to a rails app, so not a whole lot I can do atm without reworking the entire infrastructure
thecodethinker has joined #ruby
platzhirsch has quit [Ping timeout: 264 seconds]
<sweeper> (from ngnix/haproxy, I'm not waiting on a slow client)
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<workmad3> sweeper: right... but that gives you a file handle to a temporary file on disk, it doesn't load the entire file into memory
kayloos has joined #ruby
<sweeper> good to know!
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
<workmad3> sweeper: however, if you then go and do something like 'contents = temp_file.read1...
cascalheira has joined #ruby
Xeago has quit [Remote host closed the connection]
<workmad3> s/1/'
corpuscle has joined #ruby
sevenseacat has quit [Quit: Leaving.]
tonni has joined #ruby
Kricir has quit [Remote host closed the connection]
<sweeper> ya, exactly.
snovak_ has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
shaunbaker has joined #ruby
|jemc| has joined #ruby
<workmad3> sweeper: there are ways to iterate over the file contents without loading it all into memory at once though ;)
mlpinit_ has joined #ruby
okinomo has joined #ruby
spacemud has quit [Quit: ZNC - http://znc.in]
<sweeper> yea. so far I'm seeing fairly sane stuff, just pokes at stuff like original_filename and content_type
snovak has quit [Ping timeout: 264 seconds]
corpuscle has quit [Quit: WeeChat 0.4.1]
Kar- has quit [Ping timeout: 240 seconds]
spacemud has joined #ruby
shaunbaker has quit [Ping timeout: 260 seconds]
sparklr has left #ruby [#ruby]
mlpinit has quit [Ping timeout: 264 seconds]
goleldar has joined #ruby
* apeiros bets on a left-over binding.pry in the code :-p
Urizen has joined #ruby
corpuscle has joined #ruby
<apeiros> we had that once. and since then there's an initializer which ensures that binding.pry in production produces a notification and returns
mrsolo has joined #ruby
pzula has quit [Ping timeout: 260 seconds]
Kar- has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
Ripp__ has joined #ruby
alup has quit [Quit: Leaving]
rippa has joined #ruby
alexju has quit [Remote host closed the connection]
Guest76113 is now known as guyz
alex__c2022 has quit [Quit: alex__c2022]
pzula has joined #ruby
saarinen has joined #ruby
guyz is now known as Guest42944
<workmad3> apeiros: heh :) I had that once in a background service through runit
<workmad3> apeiros: where it just crashed the app :(
blackmes1 has quit [Ping timeout: 240 seconds]
tabolario has quit [Quit: Textual IRC Client: www.textualapp.com]
<sweeper> ahhh, we USUALLY don't have the file in memory...unless it comes from dropbox or googledocs
<sweeper> *drive
allsystemsarego has quit [Quit: Leaving]
alexju has joined #ruby
kvirani has joined #ruby
Nogbit has quit [Read error: Operation timed out]
jaimef has quit [Excess Flood]
jaimef has joined #ruby
Nisstyre-laptop has joined #ruby
Advocation has quit [Quit: Advocation]
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
tonni has quit [Ping timeout: 240 seconds]
iamjarvo_ has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Max SendQ exceeded]
okinomo has quit [Ping timeout: 288 seconds]
iamjarvo has joined #ruby
tabolario has joined #ruby
tabolario has quit [Max SendQ exceeded]
Nisstyre-laptop has joined #ruby
havenwood has quit [Remote host closed the connection]
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
geggam_ has joined #ruby
johnnyfuchs has joined #ruby
lethjakman has joined #ruby
havenwood has joined #ruby
carlyle has quit [Remote host closed the connection]
cescalante is now known as ce_afk
Kar- has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
Nogbit has joined #ruby
toah has quit [Ping timeout: 268 seconds]
momomomomo has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
jocke_ has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
ssvo has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
Xiti has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
jprovazn has joined #ruby
Xiti has joined #ruby
burlyscudd has quit [Quit: Leaving.]
OneMT has joined #ruby
IceyEC has joined #ruby
sayan has quit [Ping timeout: 259 seconds]
ssvo has quit [Ping timeout: 248 seconds]
Spami has quit [Quit: This computer has gone to sleep]
dash_ has quit [Quit: dash_]
deception has quit [Quit: Goodbye]
sayan has joined #ruby
DanKnox_away is now known as DanKnox
aspiers has quit [Ping timeout: 246 seconds]
ScottRadcliff has joined #ruby
mrnugget has quit [Quit: mrnugget]
kevinykchan has quit [Ping timeout: 240 seconds]
jbrechtel has joined #ruby
shredding has joined #ruby
clocKwize_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Sou|cutter has quit [Quit: WeeChat 0.4.1]
sambao21 has joined #ruby
clocKwize_ has joined #ruby
toah has joined #ruby
mikepack has joined #ruby
noop has joined #ruby
mansi_ has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
nbouscal has joined #ruby
v0n has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
mansi_ has joined #ruby
baroquebobcat has joined #ruby
Urizen has quit [Ping timeout: 268 seconds]
nbouscal has quit [Client Quit]
ixx is now known as lyd
freerobby has quit [Quit: Leaving.]
lyd is now known as ixx
toah has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
Xiti has quit [Quit: Leaving]
Squarepy has joined #ruby
<OneMT> I want to save every 1000 key value pairs to a json file. Can I clear the array and repeat? And do I need to increment the file name or will it create emails-1 etc.. ?
mklappstuhl has joined #ruby
brain_shim has joined #ruby
sambao21 has quit [Ping timeout: 258 seconds]
Nogbit has quit [Read error: Operation timed out]
dyoung522 is now known as DonovanYoung
mvangala has quit [Remote host closed the connection]
<mikecmpbll> OneMT: have you tried anything yet?
mvangala has joined #ruby
brain_shim has quit [Max SendQ exceeded]
ehaliewicz has quit [Ping timeout: 245 seconds]
brain_shim has joined #ruby
tabolario has joined #ruby
<OneMT> Yes I've tried checking the count over 999 and saving the file. But the count continues and it doesn't write anything after the initial 1000 count.
bradhe has joined #ruby
nfk has quit [Quit: yawn]
mansi_ has quit [Read error: Connection reset by peer]
mansi__ has joined #ruby
dhruvasagar has joined #ruby
burlyscudd has joined #ruby
<OneMT> mikecmpbil, So I figure a way to make sure I'm getting all the files and writing every 1000 count is to clear and repeat.
JohnBat26 has quit [Read error: Operation timed out]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> OneMT: each_slice(1000).map(&:first).to_json
bjhaid has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Remote host closed the connection]
sloucher has joined #ruby
schaerli has quit [Remote host closed the connection]
iamjarvo has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
bricker`LA has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Guest85570 has quit []
<Morrolan> OneMT: Do you want to write every thousandth, or in batches of 1000?
<OneMT> morrolan, batches
RichardBaker has joined #ruby
sambao21 has joined #ruby
<waxjar> mikecmpbll, did you used to hang out in a channel called #indie?
tkuchiki has quit [Remote host closed the connection]
devdazed has quit [Quit: Bye]
iamjarvo has quit [Ping timeout: 256 seconds]
<mikecmpbll> waxjar: i didn't, but i like the sound of it.
<Morrolan> OneMT: Then #each_slice(1000) will get you arrays containing 1000 items each. Loop over those, and write them to a file.
<waxjar> ah nvm then, thought i recognized the name
filipe has quit [Remote host closed the connection]
<Morrolan> OneMT: If you want to write to files à la output_1.json, output_2.json (i.e. with an incrementing number in there), you could use #with_index to avoid having to manually increment a variable. (This isn't Java, after all)
mikepack has quit [Read error: Connection reset by peer]
Squarepy has quit [Ping timeout: 245 seconds]
Teddy2steper has joined #ruby
mikepack has joined #ruby
ScottRadcliff has quit [Remote host closed the connection]
<Morrolan> #each_with_index, sorry.
Teddy2st_ has joined #ruby
devdazed has joined #ruby
timonv has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 245 seconds]
thecodethinker has quit [Ping timeout: 264 seconds]
dagobah has quit [Remote host closed the connection]
Teddy2steper has quit [Ping timeout: 264 seconds]
snovak_ has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
lfox has quit [Quit: ZZZzzz…]
burlyscudd has quit [Quit: Leaving.]
mlpinit_ has quit [Remote host closed the connection]
DanBoy has quit [Remote host closed the connection]
snovak has joined #ruby
kayloos has quit [Remote host closed the connection]
Squarepy has joined #ruby
mlpinit has joined #ruby
senayar_ has joined #ruby
<OneMT> morrolan, each with index instead of each slice?
threesome has joined #ruby
<Morrolan> Oh, no, in addition to each_slice.
<OneMT> morrolan, oh wait no, but
<Morrolan> each_slice will give you slices of the desired length, each_with_index will enumerate them with an index.
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
clov3r has joined #ruby
kraljev2 has joined #ruby
<Morrolan> https://gist.github.com/Lavode/357e2d17b202b9481fab something along those lines will probably do what you want. (Adjust the slices' length as required)
DanBoy has joined #ruby
Nogbit has joined #ruby
sambao21 has joined #ruby
<kraljev2> Is += operator for arrays actually creating new instance
endash has quit [Quit: endash]
<kraljev2> how much is Array#concat faster?
Lewix has joined #ruby
senayar has quit [Ping timeout: 268 seconds]
Sou|cutter has joined #ruby
DanKnox is now known as DanKnox_away
threesome has quit [Max SendQ exceeded]
Advocation has joined #ruby
Stygia has quit [Remote host closed the connection]
Teddy2st_ has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
senayar_ has quit [Ping timeout: 256 seconds]
negaduck has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
polaco_zZz is now known as polaco
jocke_ has joined #ruby
brianpWins has quit [Ping timeout: 240 seconds]
<havenwood> kraljev2: Very, very much faster. Yeah, << mutates the existing Array while += creates a new one for the result each time.
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has joined #ruby
<kraljev2> << is not an equivalent
jbrechtel has quit [Remote host closed the connection]
<Morrolan> That's something which you could benchmark quite easily. :P
<kraljev2> #concat is
kidoz has joined #ruby
pushpak has quit [Ping timeout: 245 seconds]
<kraljev2> and that is painful to write
<havenwood> kraljev2: Yeah, same though.
<Morrolan> A benchmark? That's a matter of half a minute.
T_T has joined #ruby
sarlalian has joined #ruby
freerobby has joined #ruby
lfox has joined #ruby
nextdropping has quit [Ping timeout: 260 seconds]
DanKnox_away is now known as DanKnox
Kricir has joined #ruby
sarlalian has quit [Client Quit]
<havenwood> Competing benchmark: https://gist.github.com/havenwood/6625901
sarlalian has joined #ruby
Teddy2steper has joined #ruby
bradhe has joined #ruby
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
iliketurtles has joined #ruby
<havenwood> Benchmark ALL THE THINGS! \o/
mikepack has quit [Read error: Connection reset by peer]
<Morrolan> The difference in your case is ~1400x, in my case it's ~600x.
enebo has joined #ruby
<Morrolan> I think we can safely say that it's *much* slower. :P
kaldrenon has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
chrismerrill has joined #ruby
maletor has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
jaynewstrom has quit [Read error: Connection reset by peer]
Monie has joined #ruby
robbyoconnor has quit [Client Quit]
mikepack has joined #ruby
ffranz has quit [Remote host closed the connection]
<havenwood> kraljev2: Heh, same difference in result I mean! Obviously not same method, I just misspoke. :P
jaynewstrom has joined #ruby
<havenwood> I need more coffee.
peregrine81 has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
iliketurtles has quit [Client Quit]
aggregatebot has joined #ruby
brain_shim has quit [Ping timeout: 248 seconds]
Xiti has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Kar- has joined #ruby
clov3r has quit [Remote host closed the connection]
Urizen has joined #ruby
threesome has joined #ruby
kraljev2 has left #ruby [#ruby]
<OneMT> morrolan, thank you very much, what is IO write?
zeade has joined #ruby
<havenwood> OneMT: Should be able to drop the `each_` off your `each_with_index`.
zeade has quit [Client Quit]
<Morrolan> IO.write(path, content) writes 'content' to 'path'.
<Morrolan> So just a way to write something to some file.
tvw has quit []
flagg0205 has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
<havenwood> OneMT: File#write is inheriting #write from IO#write.
<Morrolan> Oh, true, File::write might be a more self-explanatory function.
<Morrolan> havenwood: So Enumerator implements #with_index, whereas Array has #each_with_index only?
clov3r has joined #ruby
twoism has joined #ruby
<havenwood> Morrolan: aye, if its already an enumerator then you can skip the each conversion
<Morrolan> I see. :)
cody-- has quit [Quit: derp]
Elhu has quit [Quit: Computer has gone to sleep.]
kidoz has quit [Quit: Ухожу я от вас]
leonidlm has quit [Ping timeout: 260 seconds]
noname001 has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Remote host closed the connection]
Admiral has joined #ruby
avril14th has quit [Remote host closed the connection]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
locriani has joined #ruby
jprovazn has quit [Ping timeout: 264 seconds]
jprovazn has joined #ruby
T_T has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
buibex has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
cj3kim_ has joined #ruby
beneggett has joined #ruby
burlyscudd has joined #ruby
thecodethinker has joined #ruby
Spami has joined #ruby
Kricir has joined #ruby
Admiral is now known as AdmiraI
lfox has quit []
nomenkun_ has quit [Remote host closed the connection]
johnjohnson has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
cj3kim_ has quit [Ping timeout: 248 seconds]
leonidlm has joined #ruby
Minos__ has joined #ruby
lfox has joined #ruby
brianpWins has joined #ruby
stkowski has joined #ruby
Ox6abe has joined #ruby
pzula has quit [Ping timeout: 248 seconds]
shanlar- has joined #ruby
jkline has joined #ruby
rehat has quit [Remote host closed the connection]
Ripp__ has quit []
<hanmac> interesting … an cat can unlock the FingerPrint sensor from the new iPhone … *yeah* :D
<crowell> hanmac: link?
shanlar has quit [Ping timeout: 245 seconds]
DanKnox is now known as DanKnox_away
ehaliewicz has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
chrisja has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Teddy2steper has joined #ruby
kevinykchan has joined #ruby
Stalkr_ has joined #ruby
iliketurtles has joined #ruby
clov3r has quit [Remote host closed the connection]
T_T has joined #ruby
Ripp__ has joined #ruby
dankest has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
ewnd9 has quit [Remote host closed the connection]
<davidcelis> that's awesome
camilasa_ has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
m8 has joined #ruby
cj3kim_ has joined #ruby
zarubin has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
iamjarvo has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
maletor has joined #ruby
Zai00 has quit [Quit: Zai00]
iliketurtles has quit [Quit: zzzzz…..]
jbpros has joined #ruby
Ripp__ has quit []
w3pm has joined #ruby
ephemerian has quit [Quit: Leaving.]
Advocation has quit [Quit: Advocation]
freerobby has quit [Quit: Leaving.]
clocKwize_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: Leaving...]
rickmasta has quit [Quit: Leaving...]
Teddy2steper has quit [Remote host closed the connection]
cody-- has joined #ruby
Kricir has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 264 seconds]
alekst has joined #ruby
troessner has quit [Quit: Leaving]
iliketurtles has joined #ruby
shaunbaker has joined #ruby
shanlar- has quit [Ping timeout: 248 seconds]
Nogbit has quit [Ping timeout: 245 seconds]
nisstyre has quit [Ping timeout: 245 seconds]
chopmo has quit [Remote host closed the connection]
Urizen has quit [Ping timeout: 264 seconds]
kayloos has joined #ruby
<|jemc|> as a bonus, your cat's fingerprint get registered in an NSA database!
alex__c2022 has quit [Quit: alex__c2022]
dodosan has joined #ruby
jkline has quit [Quit: jkline]
Falcore has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
Teddy2steper has joined #ruby
Snow- has joined #ruby
c0rn has joined #ruby
rupee has joined #ruby
gr33n7007h has joined #ruby
geoffharcourt has joined #ruby
kaldrenon has joined #ruby
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
dodosan has quit [Ping timeout: 245 seconds]
<onewheelskyward> That would be funny.
jkline has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
<hanmac> |jemc|: "why are you always wear your cat when you go outside? i need my cat to unlock my iphone"
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
endash has joined #ruby
jaimef has quit [Excess Flood]
vmoravec has quit [Ping timeout: 248 seconds]
yalue has quit [Quit: Leaving]
aeontech has joined #ruby
bobinator60_ has joined #ruby
shredding has quit [Quit: shredding]
jaimef has joined #ruby
jbpros has quit [Quit: jbpros]
browndawg has left #ruby [#ruby]
DanBoy has quit [Remote host closed the connection]
geoffharcourt has quit [Quit: Page closed]
crus` has joined #ruby
Eiam has joined #ruby
ixti has joined #ruby
DanBoy has joined #ruby
lledet has joined #ruby
peregrine81 has quit []
dunc_ has joined #ruby
dunc_ has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
<lledet> hi, is there a short one liner that could convert [[0,1], [1,2], [4,3]] into [1,2,0,0,3] ?
kayloos has quit [Ping timeout: 245 seconds]
crus has quit [Ping timeout: 246 seconds]
nisstyre has joined #ruby
<Eiam> >>[[0,1], [1,2], [4,3]].flatten
<eval-in> Eiam => [0, 1, 1, 2, 4, 3] (https://eval.in/49365)
<Eiam> oh, wait. what
<|jemc|> I don't follow the logic of what you want...
<crowell> yeah
<Eiam> where'd the 0's come from
<|jemc|> and where did the 4 go?
<hanmac> Eiam: "its magic" ;D
alexju has quit [Remote host closed the connection]
<Eiam> lledet: you'll need to explain your data set and its rules for mutation
<Eiam> because its not readily obvious.
<Eiam> it looks like "last value" but that doesn't explain the double 00 in the middle
<lledet> sorry, basically turning the first element into the index of the second array
jkline has quit [Quit: jkline]
Nogbit has joined #ruby
cina has joined #ruby
<lledet> and filling in any non-existing elements with 0s
yaymukund has quit [Ping timeout: 241 seconds]
<Eiam> the first element is [0,1]
locriani has quit [Remote host closed the connection]
c0rn has quit [Quit: Lates.]
jkline has joined #ruby
<Eiam> whats the second array?
yalue has joined #ruby
saarinen has quit [Quit: saarinen]
<lledet> i meant the output array
KTMBoi88 has quit [Quit: Leaving]
<lledet> [0,1] would be output[0] = 1
yaymukund has joined #ruby
dkamioka has joined #ruby
<lledet> [4,3] would be output[4] = 3
snovak_ has joined #ruby
<hanmac> something like:
<hanmac> >> [[0,1], [1,2], [4,3]].each_with_object([]){|(k,v),a|a[k]=v}
<eval-in> hanmac => [1, 2, nil, nil, 3] (https://eval.in/49366)
Ripp__ has joined #ruby
lurch_ has joined #ruby
sambao21 has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
<lledet> hanmac: interesting, thanks!
<Eiam> >> [[0,1], [1,2], [4,3]].each_with_object([]){|(k,v),a|a[k]=v}.map!{|a| if a then a else 0}
<eval-in> Eiam => /tmp/execpad-cb7b4d81ddc6/source-cb7b4d81ddc6:2: syntax error, unexpected '}', expecting keyword_end ... (https://eval.in/49367)
<Eiam> >> [[0,1], [1,2], [4,3]].each_with_object([]){|(k,v),a|a[k]=v}.map!{|a| if a then a else 0 end}
<eval-in> Eiam => [1, 2, 0, 0, 3] (https://eval.in/49368)
renanoronfle has joined #ruby
Targen_ has quit [Ping timeout: 264 seconds]
Urizen has joined #ruby
<Eiam> ;p
amsi has joined #ruby
Nogbit has quit [Ping timeout: 260 seconds]
endash has quit [Quit: endash]
noop has quit [Ping timeout: 248 seconds]
snovak has quit [Ping timeout: 264 seconds]
endash has joined #ruby
ce_afk is now known as cescalante
jocke_ has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
yaymukund has quit [Ping timeout: 260 seconds]
lukec has quit [Quit: lukec]
codecop has joined #ruby
kayloos has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
<hanmac> >> [[0,1], [1,2], [4,3]].each_with_object([]){|(k,v),a|a[k]=v}.map!(&:to_i)
<eval-in> hanmac => [1, 2, 0, 0, 3] (https://eval.in/49369)
tylersmith has joined #ruby
sambao21 has joined #ruby
<hanmac> hm i think Array should get some kind of fill_value or fill_proc …
Kricir has joined #ruby
grzywacz has quit [Ping timeout: 245 seconds]
Teddy2steper has joined #ruby
<lledet> yeah or default value like hash
io_syl has joined #ruby
DanKnox_away is now known as DanKnox
alexju has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
<hanmac> lledet: yeah something like that
<Eiam> hanmac: =p
tatsuya_o has quit [Remote host closed the connection]
freerobby has joined #ruby
tatsuya_o has joined #ruby
shredding has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<C0deMaver1ck> lledet!
<lledet> !
cj3kim_ has joined #ruby
ckampfe has joined #ruby
soheil has quit [Remote host closed the connection]
kayloos has quit [Ping timeout: 264 seconds]
soheil has joined #ruby
peregrine81 has joined #ruby
kayloos has joined #ruby
toastynerd has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
soheil has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
cmarques_ has quit [Remote host closed the connection]
chairabanta has joined #ruby
thecodethinker has quit [Ping timeout: 260 seconds]
Nogbit has joined #ruby
aspiers has joined #ruby
Squarepy_ has joined #ruby
Squarepy has quit [Ping timeout: 260 seconds]
<BraddPitt> should i not use parens when calling methods?
<BraddPitt> is that un-ruby?
fastred has joined #ruby
sambao21 has quit [Ping timeout: 248 seconds]
<canton7> depends on your style - you see both
blackmesa has joined #ruby
Urizen has quit [Ping timeout: 245 seconds]
<canton7> personally, yes, unless it's an accessor
mihirrege has quit [Ping timeout: 240 seconds]
buibex has joined #ruby
Ox6abe has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
false_economy has joined #ruby
Stygia has joined #ruby
moted has joined #ruby
svector has joined #ruby
<jkamenik> BraddPitt: personally I don't because of the barewords concept
<havenwood> BraddPitt: Definitely no parens on methods like #puts, that is agreed upon convention. For other methods, omitting parens when possible is often referred to as "Seattle style" since that is a convention of Seattle Ruby Brigade.
Maokomioko has joined #ruby
apeiros has joined #ruby
sambao21 has joined #ruby
Maokomioko is now known as maoko
<havenwood> BraddPitt: Both ways are common.
<BraddPitt> hmmm
<BraddPitt> okay
<BraddPitt> thanks for the link jkamenik I will watch in a sec
gallon|w has joined #ruby
<hanmac> it depends if you want to use an method on the object ….. meth(arg).func is better than (meth arg).func
<havenwood> best argument i've heard for using more parens is ease of refactoring, but i like the look of fewer
kayloos has quit [Ping timeout: 245 seconds]
sr78ger has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
<|jemc|> ha. "seatlle style"
Es0teric has joined #ruby
momomomomo has quit [Quit: momomomomo]
Ox6abe has joined #ruby
<|jemc|> that's entertaining to me, being from seattle (but not affiliated with seattle.rb)
burlyscudd has joined #ruby
Es0teric has quit [Max SendQ exceeded]
dash_ has joined #ruby
sambao21 has quit [Client Quit]
Teddy2steper has joined #ruby
<hanmac> same for spaces, you can try to avoid them so 3+4 works the same as 3 + 4 … you need to find an good way between them
alekst has quit [Quit: Computer has gone to sleep.]
<hanmac> like this: "[].any?? ?a:?b" its works but it is not so much readable ;D
ffranz has joined #ruby
nuba_ is now known as nuba
zastern has joined #ruby
burlyscudd has quit [Ping timeout: 261 seconds]
Urizen has joined #ruby
ukd1 has joined #ruby
platzhirsch has joined #ruby
rackburn has joined #ruby
<Eiam> I generally prefer parens but I don't put it on things like puts =)
<Eiam> or chains
<Eiam> like .flatten.compact
thecodethinker has joined #ruby
<platzhirsch> I have a 350 MB JSON dump file, which consists of 20 JSON arrays each having again 1000 objects. I need to parse them in order to create an object containing an array with all of these 20k objects. On a 1 GB machine this hits the memory limits quickly, even with Yajl::Parser. Any idea how to approach this?
Nogbit has quit [Ping timeout: 245 seconds]
SiliconDon has joined #ruby
workmad3 has joined #ruby
<Eiam> parse each array one at a time?
<hanmac> Eiam: yeah but when the function needs parameter AND you want to chain them you need () … in one way or another
<Eiam> right, .flatten(1).compact
snovak_ has quit [Remote host closed the connection]
<platzhirsch> Eiam: yes, the problem is I nwould need a stream based JSON encoding and it seems no JSON parser library supports that, the all assume you start with the JSON object in memory...
DanBoy has quit [Remote host closed the connection]
<Eiam> I feel like () shows intent better than spaces
shaunbaker has quit [Remote host closed the connection]
<Eiam> yajl supports streaming
<Eiam> but that wasn't working?
<onewheelskyward> How did you end up with a 350mb json file?
<platzhirsch> it does, but apparently not encoding with a streamed inptut
shaunbaker has joined #ruby
<Eiam> onewheelskyward: ? thats not bad..
jbpros has joined #ruby
<Eiam> I've seen (and have) bigger
Astralum has quit [Ping timeout: 268 seconds]
shanlar has joined #ruby
snovak has joined #ruby
<platzhirsch> The Yajl Parser parse method can take an IO object, which is great. But the encode method expects a hash
lukec has joined #ruby
<platzhirsch> onewheelskyward: it's the data dump of http://publicdata.eu
jbpros has quit [Client Quit]
schaerli has joined #ruby
zz_michael_mbp is now known as michael_mbp
Falcore has quit [Quit: Falcore]
<platzhirsch> or maybe I haven't spotted it yet.. crawling deeper
<onewheelskyward> neat, platzhirsch
c0rn has joined #ruby
Admiral has joined #ruby
johnjohnson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
AdmiraI has quit [Ping timeout: 260 seconds]
<platzhirsch> oh, I guess I am mistaken, it is possible to instantiate the Yajl encoder and encode based on a block
tziOm has joined #ruby
<platzhirsch> " The encoder will do its best to hand you data in chunks that are around 8kb"
<platzhirsch> I hope this is what I want, that would make me happy and my crappy Linode hardware :P
SiliconDon has quit [Ping timeout: 256 seconds]
chopmo has joined #ruby
peregrine81 has quit []
echevemaster has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
corpuscle has quit [Quit: WeeChat 0.4.1]
<platzhirsch> onewheelskyward: Yeah, and it's really not getting better. The US CKAN instance has 100,000 datasets. So probably something over 1 GB, uncompressed. I just consumes hour to harvest the data. I wish everyone would offer a static dump to download
<onewheelskyward> wowser.
<onewheelskyward> Data is a big problem.
cina has quit [Quit: leaving]
ryannielson has joined #ruby
saarinen has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
zarubin has joined #ruby
s2013 has joined #ruby
<s2013> im having trouble understanding the diffrence between collect and map
Falcore has joined #ruby
<s2013> what is the main difference?
malkomalko has joined #ruby
<jkamenik> they are aliases
peregrine81 has joined #ruby
Nogbit has joined #ruby
<|jemc|> difference is nil
<s2013> oh so they are the same thing?
<|jemc|> yeah
<s2013> they should have that in the doc
<s2013> i thought i was going crazy
clov3r has joined #ruby
<|jemc|> the map usage example actually uses the word collect
<|jemc|> and if you click the upper right corner to open the implementation c code
aeontech has quit [Quit: aeontech]
chrishough has joined #ruby
<|jemc|> the method is named enum_collect
<s2013> ok i see.
<|jemc|> so, not entirely straightforward, but discernable
jkline has quit [Quit: jkline]
<Morrolan> There's documentation systems which make it more obvious, adding something like "also known as: #map" next to #collect's definition.
cj3kim has joined #ruby
<apeiros> http://rdoc.info/stdlib/core/Array#map-instance_method shows it quite clearly as aliases
Clooth has quit [Quit: Leaving...]
<apeiros> ri sadly doesn't show it clearly
<s2013> alright
Es0teric has joined #ruby
burlyscudd has joined #ruby
<platzhirsch> Using .collect is bad luck, as opposed to .map which gets you lucky
vmoravec has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
<s2013> im just going through all the functionalities now
jbpros has joined #ruby
jonkri has quit [Quit: BBL!]
jbpros has quit [Client Quit]
false_economy has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 256 seconds]
workmad3 has quit [Read error: Operation timed out]
dsabanin has joined #ruby
false_economy has joined #ruby
clov3r has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
peregrine81 has quit []
maoko has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
Ox6abe has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
johnjohnson has joined #ruby
kevind_ has joined #ruby
atmosx has joined #ruby
cescalante is now known as ce_afk
Soda has quit [Ping timeout: 240 seconds]
aagdbl1 has joined #ruby
g0bl1n has quit [Quit: Ex-Chat]
rdark has quit [Quit: leaving]
iamvery has joined #ruby
g0bl1n has joined #ruby
geekbri has joined #ruby
dangerousdave has joined #ruby
kevind has quit [Ping timeout: 276 seconds]
kevind_ is now known as kevind
aagdbl1 is now known as aagdbl
alex__c2022 has joined #ruby
jkline has joined #ruby
devdazed has quit [Quit: Bye]
devdazed has joined #ruby
<BraddPitt> you can recursively call initialize, right?
svector has quit [Ping timeout: 245 seconds]
soheil has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
tomsthumb has joined #ruby
locriani has joined #ruby
mm__ has joined #ruby
Soda has joined #ruby
a1ph4g33k has joined #ruby
mmm has quit [Ping timeout: 252 seconds]
dodosan has joined #ruby
mengu has joined #ruby
elk_tamer has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
<elk_tamer> is there an #askrubyquestions channel or is this a fair game place to ask?
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
jdenen has quit [Ping timeout: 264 seconds]
alvaro_o_ has joined #ruby
mklappst_ has joined #ruby
jdenen has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
dangerousdave has quit [Read error: Connection reset by peer]
mihirrege has joined #ruby
rezzack has joined #ruby
Dave has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
Dave is now known as Guest98163
moli has quit [Read error: Connection reset by peer]
<platzhirsch> elk_tamer: I don't understand, but you definitely can ask ruby questions here
iamjarvo has joined #ruby
snath has joined #ruby
<elk_tamer> Okay - I'm trying to refactor some stub requests for WebMock and cucumber, and I've come across a small detail where I don't really understand what's going on. I pulled the JSON request from this API: http://maps.google.com/maps/api/geocode/json?address=20001&sensor=false
<elk_tamer> and I don't understand what the results: [
<elk_tamer> part is doing
<elk_tamer> specifically the ":"
burlyscudd has joined #ruby
kirun has joined #ruby
amsi has quit [Ping timeout: 242 seconds]
<elk_tamer> it's more of a syntax question I guess
snath has quit [Client Quit]
malkomalko has quit [Remote host closed the connection]
vmoravec has quit [Ping timeout: 251 seconds]
jkline has quit [Quit: jkline]
<apeiros> elk_tamer: um, that's ordinary json?
<apeiros> {"key": "value"}
Teddy2steper has quit [Remote host closed the connection]
n5red-2 has joined #ruby
jkline has joined #ruby
Gideon has joined #ruby
jkline has quit [Client Quit]
locriani has joined #ruby
thecodethinker has quit [Ping timeout: 260 seconds]
n5red-2 has quit [Read error: Connection reset by peer]
|jemc| has quit [Ping timeout: 248 seconds]
dsferreira has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
burlyscudd has quit [Ping timeout: 240 seconds]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
iamvery has quit [Remote host closed the connection]
thecodethinker has joined #ruby
Guest98163 has quit [Quit: Leaving...]
swordsmanz has quit [Quit: swordsmanz]
f0ster has quit [Ping timeout: 264 seconds]
clov3r has joined #ruby
johnnyfuchs has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
alex__c2022 has joined #ruby
vlad_starkov has joined #ruby
hanmac has quit [Quit: Leaving.]
corpuscle has joined #ruby
false_economy has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
ferdev has quit [Quit: ferdev]
jonathanwallace has joined #ruby
egrotron has joined #ruby
ukd1_ has joined #ruby
<BraddPitt> string.includes?("") will always return true right?
<egrotron> my array keeps deleting it self
vlad_starkov has joined #ruby
clov3r has quit [Remote host closed the connection]
<egrotron> I have the correct pointer.
<egrotron> *p = MyMindCraftBots
<BraddPitt> >mindcraft
mrsolo has joined #ruby
<apeiros> BraddPitt: it will always error :-p
<BraddPitt> :<
<BraddPitt> why
<apeiros> BraddPitt: but yes, .include?("") (not includes?) will always return true
<egrotron> My mindcraft bots farm bitcoins.
<BraddPitt> oh whoops
<BraddPitt> muh syntax
<BraddPitt> thanks apeiros
<apeiros> BraddPitt: why are you asking?
Catie has quit [Ping timeout: 268 seconds]
<BraddPitt> i have a method where i may or may not be searching a string
<BraddPitt> so i was using a default argument
<BraddPitt> query = ""
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<BraddPitt> def parseMessage(message, query = "")
<BraddPitt> messageAry = message.split
<BraddPitt>
<BraddPitt> end
ananthakumaran has joined #ruby
ukd1 has quit [Ping timeout: 264 seconds]
|jemc| has joined #ruby
Catie has joined #ruby
dangerousdave has joined #ruby
jlast_ has joined #ruby
mihirrege has quit [Ping timeout: 240 seconds]
dunc_ has joined #ruby
Urizen has quit [Ping timeout: 248 seconds]
<apeiros> BraddPitt: ruby convention is parse_message, and message_ary (though, I'd just call it messages - no need to tell the "type" of a variable)
<BraddPitt> oh right
<BraddPitt> snake method names
Levin_22 has joined #ruby
jlast has quit [Read error: Operation timed out]
jmccune has quit [Ping timeout: 246 seconds]
zastern has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
Targen has joined #ruby
zastern has joined #ruby
jmccune has joined #ruby
Teddy2steper has joined #ruby
soheil has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
jbrechtel has joined #ruby
susy41y has joined #ruby
chrishough has quit [Quit: chrishough]
<susy41y> hello
<susy41y> where is possible see chat?
pygospa has quit [Read error: Operation timed out]
bruhnsi has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
<|jemc|> you're looking at it right now
bobinator60_ has quit [Quit: bobinator60_]
|jemc| has quit [Quit: WeeChat 0.4.1]
<susy41y> and how can find topics room ?
|jemc| has joined #ruby
<susy41y> where are user info?
postmodern has joined #ruby
pygospa has joined #ruby
<|jemc|> what type of info are you looking for?
<susy41y> topic room?
egrotron has quit [Ping timeout: 248 seconds]
poot has joined #ruby
<poot> hi
<susy41y> here is same to yahoo messenger?
<poot> im trying to write a ruby cgi script that uses `webcam` to take a snapshot and then display it in a webpage
<poot> but its only working on the command line and not in the browser, even though ive configured the permissions correctly
<poot> im not sure whats going on
soheil has joined #ruby
tjbiddle has joined #ruby
<apeiros> poot: I'm not sure whether you intended to ask a question
<BraddPitt> what does this mean in ruby: $~[1]
<BraddPitt> ?
<poot> im using system "webcam /path/to/configurationfile.rc"
<apeiros> BraddPitt: $~ is Regexp.last_match
<BraddPitt> ah
<BraddPitt> ty
alvaro_o_ has quit [Quit: Ex-Chat]
Monie has joined #ruby
<poot> oh forget it
poot has left #ruby [#ruby]
ananthakumaran has quit [Quit: Leaving.]
tatsuya_o has joined #ruby
<Morrolan> |jemc|: Finding channels on Freenode is best done via alis.
tjbiddle has quit [Client Quit]
<Morrolan> '/msg alis help' for further info.
tjbiddle has joined #ruby
alexju has quit [Remote host closed the connection]
<Morrolan> apeiros: How dare you not read poot's mind, now he left. :P
<apeiros> I'm a dare devil!
ddustin has joined #ruby
<ddustin> I can't get bundle install to work, I get this error: $ bundle update Your Ruby version is 1.8.7, but your Gemfile specified 2.0.0
<ddustin> $ ruby --version ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.4.0]
iamjarvo has quit [Remote host closed the connection]
ferdev has joined #ruby
<Morrolan> `which bundle`, check whether it's using the correct one.
<ddustin> $ which bundle /usr/bin/bundle
<tjbiddle> Hey guys. So I have a gem 'git-company', which is a fork of 'git', and am requiring 'trac4r' which relies on 'git' (The original). It seems that my my require for 'git-company' is being ignored. I made sure to require 'git-company' after 'trac4r' to no avail. Not sure what's going on here
bobinator60_ has joined #ruby
iamjarvo has joined #ruby
tvw has joined #ruby
<ddustin> is there another bundle installed somewhere?
<Morrolan> How did you install Ruby 2.0?
renanoronfle has quit [Quit: This computer has gone to sleep]
<ddustin> brew install ruby
soheil has quit [Remote host closed the connection]
<bobinator60_> when is ruby 3 coming out?
BizarreCake has quit [Ping timeout: 268 seconds]
bradhe has quit [Remote host closed the connection]
susy41y has quit []
<ddustin> i moved /usr/bin/ruby to /usr/bin/rubyold as a precaution
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<Morrolan> Argh, don't do that. OSX will rely on Ruby 1.8.7, messing with the system's Ruby is a very bad idea.
<ddustin> Ah, this worked $ /usr/local/bin/ruby `which bundle` install
<tjbiddle> bobinator60_: Ruby 2.0 just came out a couple months ago. I doubt another major version is coming any time soon.
tziOm has quit [Remote host closed the connection]
<tjbiddle> I could be entirely mistaken though - haven't read anything about it.
jdeeburke has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
iamjarvo has quit [Ping timeout: 245 seconds]
bobinator60_ has quit [Client Quit]
jdeeburke has joined #ruby
clov3r has joined #ruby
adambeynon has joined #ruby
peregrine81 has joined #ruby
<ddustin> huh, bundle's first line is this: #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
agent_white has joined #ruby
<ddustin> why would it be set to that
Ripp__ has quit []
<Morrolan> It's probably the bundler which ships with the system's ruby.
<Morrolan> Erm, does `which gem` point to the correct gem binary?
<Morrolan> (i.e. the Ruby 2 one)
<ddustin> $ which gem /usr/local/bin/gem
<Morrolan> Hrm, where is Ruby 2.0's binary?
<ddustin> $ head -n 1 `which gem` #!/usr/local/Cellar/ruby/2.0.0-p195/bin/ruby
false_economy has joined #ruby
<Morrolan> Ah.
<Morrolan> This whole setup looks kinda funny. But given that 'gem' is in /usr/local/bin it's probably the one which was installed by homebrew. Is there a gem in /usr/bin?
ukd1_ has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
vlad_sta_ has quit [Ping timeout: 256 seconds]
<ddustin> yeah
<ddustin> $ head -n 1 /usr/bin/gem #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Guest25835 has quit [Remote host closed the connection]
Ripp__ has joined #ruby
optimusprimem has quit [Read error: Connection reset by peer]
jprovazn has quit [Remote host closed the connection]
clov3r has quit [Ping timeout: 253 seconds]
<Morrolan> Okay. So we have /usr/bin/gem, /usr/bin/bundler and /usr/bin/ruby which are probably part of the system-provided Ruby, and /usr/local/bin/gem and /usr/local/Cellar/ruby/2.0.0-p195/bin/ruby which are part of the Ruby 2.0 which you installed.
<Morrolan> Uh, try to install bundler with the ruby 2.0 gem binary.
decoponio has quit [Quit: Leaving...]
ksh has quit [Quit: ksh]
<Morrolan> Also, are you using a Ruby version manager? It would make these tasks easier, by managing PATH for you.
clov3r has joined #ruby
dsabanin has quit [Quit: Linkinus - http://linkinus.com]
thecodethinker has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
workmad3 has joined #ruby
kevind_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aagdbl has quit [Quit: Leaving.]
soheil has joined #ruby
kevind has quit [Ping timeout: 276 seconds]
kevind_ is now known as kevind
vlad_starkov has joined #ruby
aagdbl has joined #ruby
<|jemc|> Morrolan: why are you telling me about /alis?
jbrechtel has quit [Remote host closed the connection]
<Morrolan> |jemc|: Oh, I slipped by one line, meant to target susy41y.
ce_afk is now known as cescalante
<|jemc|> ah
tacos1de has quit [Ping timeout: 240 seconds]
mklappst_ has quit [Remote host closed the connection]
<|jemc|> I dropped my connection and missed that part of the conversation
mklappstuhl has joined #ruby
<Morrolan> There wasn't any conversations, to be honest. I didn't realise that I had highlighted the wrong person up to now. ;)
jdenen has quit [Ping timeout: 245 seconds]
<Morrolan> And susy41y left by now.
radic has quit [Quit: Verlassend]
shaunbaker has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
jdenen has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
evenix_ has joined #ruby
radic has joined #ruby
evenix has quit [Ping timeout: 245 seconds]
clov3r has quit [Ping timeout: 248 seconds]
sayan has quit [Ping timeout: 248 seconds]
jlast_ has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
workmad3 has quit [Read error: Operation timed out]
dodosan has joined #ruby
staafl has joined #ruby
wicketn00b has quit [Ping timeout: 276 seconds]
balves is now known as fryguy
robustus has quit [Ping timeout: 264 seconds]
wicketn00b has joined #ruby
robustus has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rkrdo has joined #ruby
cescalante is now known as ce_afk
workmad3 has joined #ruby
endash has quit [Ping timeout: 248 seconds]
Squarepy_ has quit [Quit: Leaving]
renanoronfle has joined #ruby
aagdbl has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
radic has quit [Quit: Verlassend]
amsi has joined #ruby
endash has joined #ruby
<Dwarf> I
Soda has quit [Read error: Operation timed out]
<Dwarf> Love
<Dwarf> Ruby.
ckampfe has quit [Ping timeout: 260 seconds]
aagdbl has joined #ruby
dodosan has quit [Remote host closed the connection]
radic has joined #ruby
vince_prignano has joined #ruby
<onewheelskyward> me
<onewheelskyward> 2
Xeago has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
jlast has joined #ruby
kil0byte has joined #ruby
codebeaker has quit [Ping timeout: 240 seconds]
vince_prignano has quit [Remote host closed the connection]
<reactormonk> what's the proper way to use enum_for?
ryannielson has quit [Quit: ryannielson]
Nogbit has quit [Ping timeout: 248 seconds]
leehambley has joined #ruby
dunc_ has quit [Write error: Broken pipe]
klaut has joined #ruby
cody-- has quit [Quit: derp]
Stalkr_ has quit [Read error: Connection reset by peer]
dweeb_ has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
yalue has quit [Quit: Leaving]
ghr has joined #ruby
Falcore has quit [Quit: Falcore]
fcahoon has joined #ruby
bradhe has joined #ruby
soheil has quit [Remote host closed the connection]
devoldmx has joined #ruby
Soda has joined #ruby
evenix_ has quit [Ping timeout: 256 seconds]
soheil has joined #ruby
Newbcake has joined #ruby
NealJ has quit [Ping timeout: 260 seconds]
ce_afk is now known as cescalante
beneggett has joined #ruby
radic has quit [Quit: Verlassend]
radic has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
chairabanta has quit [Quit: Leaving...]
bruhnsi has quit [Ping timeout: 250 seconds]
carraroj has joined #ruby
LMolr has joined #ruby
jkline has joined #ruby
<a1ph4g33k> reactormonk, haven't used it before.
mklappstuhl has joined #ruby
tonni has joined #ruby
bobdobbs has quit [Read error: Connection reset by peer]
Nogbit has joined #ruby
<jkline> One of the jobs of my gem is to create configuration files for an external program. I figure I should render those using erb. I therefore want to include an erb template inside my gem. Can someone recommend please good pattern for doing that? Where in my gem should I store the template.erb file?
zmansiv has joined #ruby
<shevy> reactormonk I think when you want to lateron run #each on it ... perhaps in a lazy way? I am not sure
<shevy> in ruby many things seem cool but I find it hard to find good use cases for them
reset has joined #ruby
schaerli has quit [Remote host closed the connection]
zmansiv has left #ruby ["Textual IRC Client: www.textualapp.com"]
randomautomator has joined #ruby
haxrbyte has joined #ruby
skaflem has quit [Quit: Leaving]
T_T has quit [Remote host closed the connection]
tziOm has joined #ruby
LMolr has quit [Quit: Leaving]
RichardBaker has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
headius has quit [Quit: headius]
nari has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
T_T has joined #ruby
akonny has joined #ruby
vmoravec has joined #ruby
haxrbyte has quit [Remote host closed the connection]
vmoravec has quit [Client Quit]
haxrbyte has joined #ruby
cpruitt has joined #ruby
RDash is now known as RDash[AW]
ce_afk is now known as cescalante
workmad3 has quit [Ping timeout: 260 seconds]
chuckboxx has joined #ruby
robbyoconnor has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
jkamenik has quit [Quit: Leaving.]
Fuzai_ is now known as Fuzai
shaunbaker has quit [Remote host closed the connection]
Xeago has joined #ruby
aagdbl has quit [Quit: Leaving.]
radic has quit [Quit: Verlassend]
ukd1 has joined #ruby
cody-- has joined #ruby
kil0byte_ has joined #ruby
ravster has quit [Quit: Leaving.]
kil0byte has quit [Ping timeout: 246 seconds]
thecodethinker has joined #ruby
Admiral is now known as AdmiraI
fastred has quit [Quit: fastred]
baggypants has joined #ruby
cescalante is now known as ce_afk
troii has joined #ruby
cads has joined #ruby
<troii> ruby is shit.
troii was kicked from #ruby by apeiros [trolls are not welcome]
troii has joined #ruby
troii was kicked from #ruby by apeiros [trolls are not welcome]
jb41 has joined #ruby
mark_locklear has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
radic has joined #ruby
havenwood has joined #ruby
dankest has quit [Quit: dankest]
carraroj has quit [Quit: Konversation terminated!]
spider-mario has quit [Read error: Connection reset by peer]
stkowski has quit [Quit: stkowski]
shredding has joined #ruby
robbyoconnor has quit [Excess Flood]
fmcgeough has quit [Quit: fmcgeough]
ged_ is now known as ged
geekbri has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
<eka> "ruby is the shit" FTFY
<interactionjaxsn> ^
<gf3> ↑
<gf3> →
n5red-2 has joined #ruby
<gf3> ↑↑↓↓←→←→BA
n5red-2 has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
funburn has joined #ruby
thelamest has quit [Quit: reboot yo]
r0bby_ has joined #ruby
<onewheelskyward> start
robbyoconnor has quit [Client Quit]
aryaching has quit [Ping timeout: 240 seconds]
phantasm66 has quit [Quit: *sleeeep….]
jdeeburke has quit [Quit: Leaving.]
snath has joined #ruby
alvaro_o has quit [Ping timeout: 268 seconds]
Gideon has quit [Quit: Page closed]
alvaro_o has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkrdo has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
shredding has joined #ruby
dangerousdave has joined #ruby
dash_ has quit [Quit: dash_]
stkowski has joined #ruby
Igneous has joined #ruby
Kar- has quit [Ping timeout: 248 seconds]
Urizen has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
ner0x has quit [Quit: Leaving]
thelamest has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
Banistergalaxy has quit [Ping timeout: 268 seconds]
Teddy2steper has joined #ruby
freerobby has quit [Quit: Leaving.]
motto has joined #ruby
mansi__ has quit [Remote host closed the connection]
mansi has joined #ruby
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cads has quit [Ping timeout: 260 seconds]
Es0teric has joined #ruby
FDj has quit [Ping timeout: 245 seconds]
brbcoding has quit []
<Igneous> Anybody in here have experience using savon, by chance? Savon seems to keep appending the word "Input" to the operation names in my wsdl. So calling :perfmon_open_session tries to call the PerfmonOpenSessionInput operation on the serverside..
m8 has quit [Ping timeout: 256 seconds]
Stalkr^ has joined #ruby
IceyEC has quit [Quit: IceyEC]
baordog_ has quit [Remote host closed the connection]
jonahR has joined #ruby
Banistergalaxy has joined #ruby
mansi_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
Xeago has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
end_guy has quit [Ping timeout: 240 seconds]
kaldrenon has quit [Remote host closed the connection]
axl_ has joined #ruby
kaldrenon has joined #ruby
end_guy has joined #ruby
michael_mbp is now known as zz_michael_mbp
segfalt has joined #ruby
corpuscle has quit [Quit: WeeChat 0.4.1]
haxrbyte has quit [Remote host closed the connection]
<s2013> how can i get a list of classes from amodule?
Teddy2steper has quit [Remote host closed the connection]
<a1ph4g33k> s2013, you can iterate object_space
FDj has joined #ruby
<MrZYX> Mod.constants.select {|c| c.is_a? Class }
<s2013> there isnt something thatw ould just quickly retrun list of classes?
<MrZYX> but why do you need that?
<s2013> just want to check something
<|jemc|> MrZYX: they're all symbols
<|jemc|> not classes
claymore_ has joined #ruby
<MrZYX> oh, right
<|jemc|> you need const_get
<s2013> so Module.const_get.select .. ?
kaldrenon has quit [Ping timeout: 240 seconds]
babinho has quit [Quit: leaving]
<MrZYX> Mod.constants.map {|c| Mod.const_get c }.select {|c| c.is_a? Class }
chopmo has quit [Remote host closed the connection]
<s2013> oh ok
claymore has quit [Ping timeout: 240 seconds]
<havenwood> >> Module.constants.keep_if { |k| Module.const_get(k).is_a? Class }
<eval-in> havenwood => /tmp/execpad-9ef58557aa89/source-9ef58557aa89:2:in `const_get': Use RbConfig instead of obsolete and deprecated Config. ... (https://eval.in/49392)
<s2013> that worked MrZYX thanks
<s2013> what im trying to figure out how is if something is an object of Mod::ClassA how can I get it to call a method of Mod::ClassB
<s2013> if that makes sense
<MrZYX> s2013: but if it's just for exploring I'd recommend pry
virtualize has quit [Ping timeout: 276 seconds]
<s2013> how would i do it in pry?
<MrZYX> ls Mod
<s2013> ok thanks
prox|a has quit [Ping timeout: 268 seconds]
T__T has joined #ruby
Targen_ has joined #ruby
funburn has quit [Quit: funburn]
<MrZYX> (and no, at least to me that doesn't make a lot sense :P)
Teddy2steper has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
<s2013> so i have an image and its class is Paperclip::Attachment
<s2013> i need to call resize method from Paperclip::Geometry on that image
<s2013> does that make sense?
T_T has quit [Ping timeout: 248 seconds]
crowell has quit [Ping timeout: 256 seconds]
SHyx0rmZ has joined #ruby
<havenwood> the first sentence made sense, the second is ambiguous
cads has joined #ruby
<MrZYX> I doubt that's possible
freerobby has joined #ruby
nfk has quit [Remote host closed the connection]
<s2013> i basically want to resize the image thats all.
ldnunes has quit [Quit: Leaving]
<s2013> im sure im missing something obvious that im overlooking
radic has quit [Quit: Verlassend]
<MrZYX> you can't call abitrary methods from other objects on an object
virtualize has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Remote host closed the connection]
radic has joined #ruby
iamjarvo has joined #ruby
<MrZYX> Paperclip::Attachment is an attachment, it doesn't know how to resize an image
<MrZYX> you need to use the information it provides to initialize another object that knows how to do such things
ckampfe has joined #ruby
sarlalia1 has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<s2013> hmmm im just going to use imagemagick directly. thanks
dangerousdave has joined #ruby
SloggerKhan has quit [Quit: Leaving.]
virt|a has joined #ruby
Urizen has quit [Quit: Lost terminal]
breakingthings has quit []
iamjarvo has quit [Ping timeout: 245 seconds]
sarlalian has quit [Ping timeout: 245 seconds]
ehc has quit [Ping timeout: 268 seconds]
funburn has joined #ruby
Falcore has joined #ruby
jdenen has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 256 seconds]
thecodethinker has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
Monie has joined #ruby
Xeago has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
mercwithamouth has joined #ruby
Xeago has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
mansi_ has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
shredding has quit [Quit: shredding]
cj3kim has quit [Remote host closed the connection]
mansi has joined #ruby
Nenor has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Monie has quit [Client Quit]
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
dallasm_ has joined #ruby
mansi has joined #ruby
momomomomo has joined #ruby
rkrdo has joined #ruby
endash has quit [Quit: endash]
interactionjaxsn has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 256 seconds]
dallasm_ has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
klaut has quit [Remote host closed the connection]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
ukd1 has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
Monie has joined #ruby
ryandeussing has quit [Remote host closed the connection]
T__T is now known as T_T
hamakn has joined #ruby
tziOm has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
ckampfe has quit [Ping timeout: 260 seconds]
Evixion has joined #ruby
kvirani has joined #ruby
jeebster has joined #ruby
ukd1 has joined #ruby
mikepack_ has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
snovak has quit [Remote host closed the connection]
jdeeburke has joined #ruby
freerobby has joined #ruby
mikepack_ has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
baggypants has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dweeb_ has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
kvirani has quit [Ping timeout: 276 seconds]
<xybre> MiniMagick is a nice Ruby wrapper for imagemagick/graphicsmagick if you need to automate it.
<s2013> yeah i was thinking of using rmagick but i also saw vips. ill try that
<s2013> thanks
s2013 has quit [Quit: Leaving]
rins has quit [Ping timeout: 245 seconds]
radic has quit [Quit: Verlassend]
radic has joined #ruby
iliketurtles has joined #ruby
elk_tamer has quit [Remote host closed the connection]
mercwithamouth has quit [Quit: Lost terminal]
fcahoon has quit [Quit: Leaving]
codecop has quit [Remote host closed the connection]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
dankest has joined #ruby
pothibo has quit [Quit: pothibo]
locriani has quit [Remote host closed the connection]
Boohbah has joined #ruby
locriani has joined #ruby
BillCriswell has quit [Remote host closed the connection]
segfalt has quit [Quit: Leaving.]
huoxito has quit [Quit: Leaving]
Es0teric has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Remote host closed the connection]
locriani_ has joined #ruby
locriani has quit [Ping timeout: 260 seconds]
claymore_ has quit [Quit: night]
Ziarkaen` has joined #ruby
Xeago has joined #ruby
dangerousdave has quit [Quit: Leaving...]
duggiefr_ has quit [Remote host closed the connection]
YaNakilon has quit [Ping timeout: 248 seconds]
ehc has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has joined #ruby
lfox has quit [Quit: ZZZzzz…]
ggherdov has joined #ruby
Ziarkaen has quit [Ping timeout: 240 seconds]
T_T has quit [Remote host closed the connection]
volty has joined #ruby
SHyx0rmZ has quit [Read error: Connection reset by peer]
reset has quit [Quit: Leaving...]
_br_ has quit [Ping timeout: 260 seconds]
reset has joined #ruby
obs has quit [Quit: Konversation terminated!]
T_T has joined #ruby
nbouscal has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
reset has quit [Client Quit]
_br_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
ukd1 has joined #ruby
YaNakilon has joined #ruby
duggiefresh has quit [Ping timeout: 256 seconds]
Teddy2steper has quit [Remote host closed the connection]
reset has joined #ruby
dangerousdave has joined #ruby
tvw has quit []
radic has quit [Quit: Verlassend]
ckampfe has joined #ruby
dagnachew has joined #ruby
akonny has quit [Quit: akonny]
Igneous has left #ruby [#ruby]
renanoronfle has quit [Quit: This computer has gone to sleep]
alex__c2022 has quit [Quit: alex__c2022]
radic has joined #ruby
n_blownapart has joined #ruby
fuhgeddaboudit has joined #ruby
peregrine81 has quit []
SHyx0rmZ has joined #ruby
p0wn3d has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Remote host closed the connection]
St_Marx has quit [Read error: Connection reset by peer]
DrCode has quit [Write error: Connection reset by peer]
end_guy has quit [Write error: Connection reset by peer]
Guest65452 is now known as ned
bricker`work is now known as bricker
mklappstuhl has joined #ruby
p0wn3d has joined #ruby
jerius has quit [Ping timeout: 268 seconds]
snovak has joined #ruby
fuhgeddaboudit has quit [Client Quit]
AdmiraI has joined #ruby
brbcoding has joined #ruby
CaptainJet has joined #ruby
jibi has quit [Quit: .]
pothibo has joined #ruby
madhatter has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
dangerousdave has quit [Quit: Leaving...]
Teddy2steper has joined #ruby
sloucher has quit [Quit: sloucher]
jkline has quit [Quit: jkline]
Bry8Star{T2 has joined #ruby
freerobby has quit [Quit: Leaving.]
snovak has quit [Read error: Operation timed out]
mklappstuhl has quit [Ping timeout: 240 seconds]
ColKurtz has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
rickmasta has joined #ruby
rhys has quit [Quit: Leaving]
apeiros has joined #ruby
mrsolo has joined #ruby
freerobby has joined #ruby
Boohbah has quit [Quit: Lost terminal]
agent_white has quit [Quit: leaving]
Quashie has joined #ruby
einarj has quit [Remote host closed the connection]
r0bglees0n has quit [Ping timeout: 245 seconds]
Nenor has quit [Quit: Nenor]
ce_afk is now known as cescalante
agent_white has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
cj3kim has joined #ruby
apeiros has quit [Remote host closed the connection]
geggam_ has quit [Remote host closed the connection]
AFKGeek has joined #ruby
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
CaptainJet has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
freerobby has quit [Quit: Leaving.]
atmosx has quit [Quit: Lost in trance]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
kirun has quit [Quit: Client exiting]
RichardBaker has quit [Quit: RichardBaker]
Es0teric has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Guedes0 has joined #ruby
peregrine81 has joined #ruby
Guedes0 has left #ruby [#ruby]
lledet has quit [Quit: bok bok]
pothibo has quit [Quit: pothibo]
idoru has joined #ruby
locriani_ has quit [Remote host closed the connection]
ckampfe has quit [Ping timeout: 256 seconds]
locriani has joined #ruby
mlpinit has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
madhatter has joined #ruby
s00pcan_ has quit [Client Quit]
s00pcan has quit [Quit: Lost terminal]
nbouscal has joined #ruby
s00pcan has joined #ruby
<sam113101> guys
<sam113101> why are we using two consecutives spaces instead of tabs?
<bnagy> because god said so
<lupine> use tabs if you like. it's your code
brotatos has joined #ruby
locriani has quit [Ping timeout: 256 seconds]
<sam113101> most people use two spaces
tricon_ has joined #ruby
<|jemc|> what's your beef with two spaces?
tacit7 has joined #ruby
<lupine> think of how many bytes you'd save if you moved to tabs instead
<|jemc|> ha
<lupine> you can always set it to display as 2 characters
leehambley has quit [Ping timeout: 246 seconds]
mmitchell has quit [Remote host closed the connection]
<sam113101> the only advantage I see with spaces, is that it looks better on github (where you can't set your own tab width)
leehambley has joined #ruby
twoism has quit [Remote host closed the connection]
tricon- has joined #ruby
<lupine> well, it predates github by a long way
<lupine> but it honestly doesn't matter. use whatever you like
<|jemc|> so, what's the advantage of tabs, then? (other than smaller file sizes as lupin so aptly noted)
<sam113101> I know, I'm just curious
<lupine> "matz preferred it" is probably the answer
<sam113101> |jemc|: you can set them to have the width you want
idoru has quit [Read error: Connection reset by peer]
<banisterfiend> lupine except the MRI source code is terribly inconsistent with respect to thhat
<banisterfiend> it's a bizarre mixture of tabs and spaces
<lupine> mmm
twoism has joined #ruby
<lupine> some of it uses firstDropCamelCase too
idoru has joined #ruby
<bnagy> tabs vs spaces should be an instant godwin on programming channels
tricon_ has quit [Ping timeout: 256 seconds]
<sam113101> don't know what godwin means in that context ;_;
<lupine> conversation-killer
<sam113101> oh
<Eiam> I use tabs because its one keystroke
<Eiam> DRY. why would I use two spaces?
<Eiam> =)
<Eiam> /troll
<shevy> if you would have a habit of indenting code for instance
<shevy> I once indented my code with tabs
<shevy> no
<sam113101> I set vim to replace my tabs by two consecutives spaces, because people I've told me I should do that
<shevy> I mean my *documentation*
<shevy> I indented both with tabs ... :\
<sam113101> s/I've//
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> \t\tx = 5\t # we need to copy a reference here
motto has quit [Quit: Sto andando via]
MrThePlague has quit [Remote host closed the connection]
<|jemc|> Eiam: I prefer spaces because 0x2020 > 0x09
RichardBaker has joined #ruby
elux has quit [Quit: Bye!]
snovak has joined #ruby
AFKGeek has quit [Quit: Leaving]
endash has joined #ruby
iamjarvo has joined #ruby
<Eiam> hmm
<Eiam> >> [0x2020, 0x09].pack('c*')
<eval-in> Eiam => " \t" (https://eval.in/49397)
dagnachew has quit [Quit: WeeChat 0.4.1]
dagnachew has joined #ruby
<|jemc|> >> [0x20,0x20, 0x09].pack('c*')
<eval-in> |jemc| => " \t" (https://eval.in/49398)
<Eiam> meh, its still bigger and more keystrokes in hex too =)
Ubercow has joined #ruby
<Eiam> long live tabs!
Ubercow has quit [Max SendQ exceeded]
<Eiam> =)
brotatos has left #ruby ["WeeChat 0.4.1"]
<Eiam> see spaces are so dumb you can't even figure out the output
<Eiam> oh, its "space\t" !
mansi_ has quit [Remote host closed the connection]
a1ph4g33k has quit [Quit: Leaving]
mansi has joined #ruby
<sam113101> shouldn't there be two spaces?
ffranz has quit [Quit: Leaving]
snovak has quit [Ping timeout: 264 seconds]
<Eiam> sam113101: there are two spaces in |jemc|'s example. all the more reason to point out why spaces suck =p
tacit7 has quit [Ping timeout: 245 seconds]
<Eiam> down with invisible control structures that are hard to make out (and a silent boo/hiss to python for using them)
harrymoreno has joined #ruby
<|jemc|> I have visible whitespace turned on in my editor
kofno has joined #ruby
cj3kim has quit [Remote host closed the connection]
<Eiam> >>[0x20,0x20, 0x09].pack('c*').length
<|jemc|> so opening files with tabs in them drives me crazy
<eval-in> Eiam => 3 (https://eval.in/49399)
mansi has quit [Ping timeout: 264 seconds]
<|jemc|> so many rightward arrows
Bira has joined #ruby
<|jemc|> but it's mostly just groupthink
enebo has quit [Quit: enebo]
funburn has joined #ruby
<|jemc|> coming from python, I thought I'd never want to use 2 spaces instead of 4
nomenkun has joined #ruby
<|jemc|> but after a week or so of fighting it, I just fell in to it and 4 looks so wrong now in ruby code
BillCriswell has joined #ruby
cody-- has joined #ruby
<Eiam> (I honestly don't CARE this much, but given a choice I choose to use tabs that indent as 2 spaces)
clov3r has joined #ruby
<Eiam> like their indent depth is 2 spaces.
pel_daniel has left #ruby [#ruby]
alx- has joined #ruby
<Eiam> I do think that spaces are harder to determine at a glance, especially when you delete them, you only delete 1 space vs a tab deletes them all. I just think tabs have fewer pitfalls that can bite you when you are tired/overworked
MissionCritical has quit [Ping timeout: 264 seconds]
gstamp has joined #ruby
alx- has quit [Client Quit]
<|jemc|> it's more about how your editor treats whitespace than the space itself
<Eiam> but I follow whatever convention is in the code base I'm working on. so if they are jack asses and do if(blah){
<Eiam> {
<Eiam> } I'll do that, but we all know that if (blah)
<Eiam> } is better.
alx- has joined #ruby
dml_ has quit [Quit: Computer has gone to sleep.]
Stalkr^ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jaynewstrom has quit [Disconnected by services]
<shevy> 2 spaces on my grave
Stalkr^ has quit [Read error: Connection reset by peer]
Lauritz_ has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
jaynewst_ has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
AdmiraI has quit [Ping timeout: 264 seconds]
lfox has joined #ruby
<|jemc|> `
<|jemc|> and now I'm ascii puns. is this what my life has come to?
<|jemc|> *I'm making
Falcore has quit [Quit: Falcore]
ddustin has quit [Ping timeout: 250 seconds]
thepumpkin has joined #ruby
<shevy> you made an ascii pun right there ^^^
<shevy> ~
<|jemc|> if I had a daughter I'd name her Ma~
Boohbah has joined #ruby
<chrismerrill> ascii a silly question. get a silly ansi.
<shevy> lol
Lauritz_ has quit [Ping timeout: 264 seconds]
<chrismerrill> :)
<|jemc|> heheh
<shevy> |jemc| that nick actually makes me want to tab-complete
<shevy> Ma~
<shevy> ohhhh
<shevy> Mattias
<|jemc|> Ma-tilde
|jemc| is now known as ma
ma is now known as |jemc|
chuckboxx has quit [Quit: chuckboxx]
<|jemc|> no tilde allowed in irc nicks, I suppose
tomzx_mac has joined #ruby
Mission-Critical has joined #ruby
tricon- has quit [Quit: Linkinus - http://linkinus.com]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chuckboxx has joined #ruby
vDubG__ has joined #ruby
jb41 has quit [Ping timeout: 264 seconds]
_Minos__ is now known as _Minos_
iamjarvo has quit [Remote host closed the connection]
k610 has joined #ruby
ukd1 has quit [Remote host closed the connection]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
iamjarvo has joined #ruby
IceyEC has joined #ruby
bugsinlights has quit [Ping timeout: 261 seconds]
nfk has quit [Quit: yawn]
alx- has quit [Quit: Linkinus - http://linkinus.com]
nbouscal has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
AdmiraI has joined #ruby
Aryasam has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vise890 has joined #ruby
nari has joined #ruby
agent_white has quit [Quit: Lost terminal]
IceyEC has quit [Quit: IceyEC]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
vlad_starkov has joined #ruby
elaptics is now known as elaptics`away
ferdev has quit [Ping timeout: 260 seconds]
Mission-Critical is now known as MissionCritical
cody-- has quit [Quit: derp]
sambao21 has joined #ruby
vise890 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vise890 has joined #ruby
katsrc has joined #ruby
dkamioka has quit [Remote host closed the connection]
k611 has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.1]
mansi has joined #ruby
ismlages has quit [Remote host closed the connection]
sarkis has quit [Read error: Connection reset by peer]
sarkis has joined #ruby
quoin has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
mansi has quit [Remote host closed the connection]
Bosox20051 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Nogbit has quit [Ping timeout: 264 seconds]
volty has quit [Quit: Konversation terminated!]
agent_white has joined #ruby
cody-- has joined #ruby
z_eos has joined #ruby
chrishough has joined #ruby
<z_eos> ruby-1.9.3.448,1 fails to build on FreeBSD 9-STABLE and64, can somebody advise?
forced_request has joined #ruby
jlast has quit [Remote host closed the connection]
AdmiraI has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
beneggett has quit [Ping timeout: 246 seconds]
gallon|w has quit [Ping timeout: 246 seconds]
<bnagy> moar info
cpruitt has quit [Read error: Connection reset by peer]
locriani has joined #ruby
k612 has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
<z_eos> bnagy: please, look at http://pastebin.com/wDVJ4b3B
sambao21 has quit [Quit: Computer has gone to sleep.]
<bnagy> 'this paste has been removed'
<z_eos> oops
lethjakman has quit [Ping timeout: 264 seconds]
k612 has quit [Ping timeout: 248 seconds]
k611 has quit [Ping timeout: 256 seconds]
reset has quit [Quit: Leaving...]
<havenwood> z_eos: Just used ruby-install to successfully compile 1.9.3-p448 with FreeBSD 9-stable 64-bit.
<maletor> Would you consider a MQ system to communicate internally between rails apps A Good Idea(™)? For instance, between a "mailer" app and a "hub" app.
Aryasam_ has joined #ruby
<z_eos> havenwood: I do make in /usr/ports/lang/ruby19
goleldar has quit [Ping timeout: 264 seconds]
goleldar has joined #ruby
chuckboxx has quit [Quit: chuckboxx]
osvico has joined #ruby
sloucher has joined #ruby
Nogbit has joined #ruby
<z_eos> havenwood: can you advise, please?
Aryasam has quit [Read error: Connection reset by peer]
<maletor> Oops wrong channel.
Davey has quit [Quit: Computer has gone to sleep.]
harrymoreno has quit [Quit: harrymoreno]
chrismerrill has left #ruby [#ruby]
lukec has quit [Quit: lukec]
<havenwood> maletor: Could ask in #RubyOnRails. An alternative to one of the MQs would be Drb.
tacit7 has joined #ruby
<havenwood> z_eos: I'll try the port, not sure what the matter is.
snovak has joined #ruby
Aryasam_ has quit [Ping timeout: 264 seconds]
<havenwood> z_eos: Does work with ruby-install though. :P
<havenwood> would be nice if they'd update the port to 2.0.0
ferdev has joined #ruby
mrsolo has joined #ruby
<havenwood> z_eos: Different error for me, but also failed unexpectedly.
<z_eos> havenwood: ruby-install is weird :(
<z_eos> havenwood: is it expected? http://pastebin.com/pm2kXtt2
<havenwood> yup
<havenwood> z_eos: to get latest stable ruby: ruby-install ruby
<havenwood> z_eos: or to get latest stable 1.9.3: ruby-install ruby 1.9
twoism has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
snovak has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
tacit7 has quit [Quit: tacit7]
<havenwood> z_eos: A tool that pairs nicely is chruby, which changes the current Ruby. Especially nice if you use multiple Rubies: https://github.com/postmodern/chruby#readme
<z_eos> havenwood: let me build bash first :(
GeissT has joined #ruby
Stalkr^ has joined #ruby
<z_eos> havenwood: no ... all I need is portupgrade ...
<havenwood> z_eos: I don't primarily use FreeBSD, but I guess someone should let the Ruby port maintainer know it is broken!
cj3kim has joined #ruby
<z_eos> yes, I'll try to email him
<havenwood> z_eos: :D
<havenwood> z_eos: chruby will autodetect the Ruby installed by ruby-install, btw
aryaching has joined #ruby
brbcoding has quit [Ping timeout: 248 seconds]