havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
meatherly has joined #ruby
unop has quit [Ping timeout: 264 seconds]
minimalism has joined #ruby
zenguy_pc has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
minimalism has quit [Client Quit]
iamninja has joined #ruby
phutchins has joined #ruby
havenwood has joined #ruby
sanjayu has quit [Remote host closed the connection]
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
zenguy_pc has quit [Read error: Connection reset by peer]
jjasonclark has joined #ruby
cndiv has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
tubuliferous_ has quit [Ping timeout: 240 seconds]
`mrspock has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jxv has quit [Remote host closed the connection]
`mrspock has quit [Client Quit]
workmad3 has joined #ruby
cndiv has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
<eam> Ox0dea: oh come on, a quote operator to suppress magic is bad because the syntax is too magic?
shmilan has joined #ruby
platzhirsch has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 240 seconds]
<Ox0dea> No, I was only having a go at regular expressions in general.
<Ox0dea> \Q...\E is pretty convenient; it's quite strange that so featureful an engine as Onigmo doesn't have something like it.
freerobby has joined #ruby
marr has quit [Ping timeout: 252 seconds]
tenseiten has joined #ruby
seitensei has quit [Ping timeout: 252 seconds]
ddrmanxbxfr has joined #ruby
zenguy_pc has joined #ruby
michael_mbp has quit [Excess Flood]
yfeldblum has joined #ruby
michael_mbp has joined #ruby
jgt1 has joined #ruby
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
cantaberry has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
yfeldblum has joined #ruby
benlieb has quit [Quit: benlieb]
platzhirsch has quit [Ping timeout: 256 seconds]
doublemalt_ has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
opensource_ninja has quit [Ping timeout: 246 seconds]
strcmp1 has joined #ruby
<strcmp1> test
wookiehangover has quit [Ping timeout: 240 seconds]
willharrison has joined #ruby
<bronson> failed
wookiehangover has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
amystephen has quit [Quit: amystephen]
Technodrome has joined #ruby
charliesome has joined #ruby
pecpec has joined #ruby
pecpec has quit [Ping timeout: 240 seconds]
drewvanstone has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
stardiviner has joined #ruby
ckuhn has joined #ruby
shmilan has quit [Quit: Leaving]
centrx has joined #ruby
Guest53916 has quit [Ping timeout: 256 seconds]
jgt1 has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
chills42 has joined #ruby
pontiki has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: Technodrome]
cb_ has joined #ruby
cb_ has joined #ruby
drewvanstone has joined #ruby
thang has quit [Ping timeout: 246 seconds]
Newtonianb has quit [Ping timeout: 264 seconds]
thang has joined #ruby
dorei has quit []
XiaoJiang has joined #ruby
<XiaoJiang> dfdfd
<Ox0dea> >> require 'digest/bubblebabble'; Digest.bubblebabble 'XiaoJiang'
<ruboto> Ox0dea # => "xikak-nemik-zydak-nimik-vonix" (https://eval.in/436434)
XiaoJiang has left #ruby [#ruby]
weemsledeux has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Juanchito has quit [Quit: Connection closed for inactivity]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
jjasonclark has quit [Quit: jjasonclark]
deg_ has joined #ruby
segfalt has quit [Quit: segfalt]
einarj has joined #ruby
einarj has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
cb_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segfalt has joined #ruby
benlieb has quit [Quit: benlieb]
mary5030 has joined #ruby
willharrison has joined #ruby
<pontiki> wat
Technodrome has joined #ruby
ICantCook has joined #ruby
cb_ has joined #ruby
pecpec has joined #ruby
postmodern has joined #ruby
<jt__> is there a documentation/resource I can find more about Proxy class pattern? I'm on my last Koan and don't want a spoiler from good but I need something to read more about Proxy classes
ckuhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
vdamewood has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
havenwood has joined #ruby
chills42 has quit [Read error: Connection reset by peer]
chills42 has joined #ruby
pecpec has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
<Ox0dea> pontiki: BubbleBabble is like MD5 with aliens.
A124 has quit [Read error: Connection reset by peer]
<Ox0dea> jt__: It might help to think of a proxy class as a sort of middleman.
<pontiki> i think i'll start using that GUIDs!
Guest37085 has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 255 seconds]
Guest37085 is now known as gmci
<jt__> why/when do we need it?
<Ox0dea> jt__: When you can't/would rather not modify the object being proxied.
<Ox0dea> Your proxy class, for all intents and purposes, *is* the object it's proxying, except you have free reign to inject extra behavior as and where appropriate.
A124 has joined #ruby
<jt__> that helped clear things up. Is it like the decorator in Python?
<Ox0dea> jt__: No, not quite; that's for tacking additional behavior onto methods, not objects.
cb__ has joined #ruby
cb__ has joined #ruby
<rgb-one> Hey
cb_ has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
<rgb-one> I would appreciate some assistancee
<rgb-one> thanks
<Ox0dea> jt__: A decorator goes "above" the method it's decorating, whereas a proxy object is more in the middle.
danman has joined #ruby
<jt__> I'll read more about it, your description is quite clear I probably look for concrete example for it's usage
<Ox0dea> rgb-one: Are you not even executing your code?
<Ox0dea> rgb-one: You have two syntax errors and an undefined variable.
<rgb-one> sorry about that
beast has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Newtonianb has joined #ruby
mary5030_ has joined #ruby
Melpaws has joined #ruby
mary5030_ has quit [Remote host closed the connection]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
<Ox0dea> rgb-one: What do you think `value` is in the code you provided?
Rodya_ has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
<Ox0dea> rgb-one: You should familiarize yourself with the (Regexp, Hash) form of #gsub.
<rgb-one> Ox0dea: can you give me an example?
<Ox0dea> >> map = {'a' => 1, 'b' => 2}; 'ababba'.gsub(/\w/, map) # rgb-one
<ruboto> Ox0dea # => "121221" (https://eval.in/436436)
<Ox0dea> Observe that the keys must be Strings, not Symbols.
<rgb-one> Ox0dea: cool
mary5030_ has quit [Ping timeout: 240 seconds]
<Ox0dea> Isn't it?
<rgb-one> or I could use .to_s right?
<Ox0dea> But then you've got to open an explicit block and forfeit the convenience of this form.
<Ox0dea> If you're worried about performance or some such, you needn't; Hash keys are frozen by default.
<Ox0dea> >> {'a'=>1}.keys[0].frozen?
<ruboto> Ox0dea # => true (https://eval.in/436437)
ekain has quit [Quit: Textual IRC Client: www.textualapp.com]
<rgb-one> What is the advantage to using symbols?
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<rgb-one> advantage of using symbols*
meatherly has quit []
<rgb-one> Ox0dea: Better formulated, What have you found symbols most useful for?
vF3hNGxc47h8 has quit [Ping timeout: 250 seconds]
<Ox0dea> rgb-one: If you ever see the same String more than once or twice in your code, it should almost certainly be a Symbol.
<Ox0dea> They're much more "computationally effective", so to speak, in both time and space.
jjasonclark has joined #ruby
<Ox0dea> When you compare two Strings, Ruby has to walk each one and compare every single character until it runs out or realizes they can't possibly match.
ledestin has joined #ruby
<Ox0dea> That could translate to hundreds or even thousands of CPU instructions.
<Ox0dea> Symbols, on the other hand, are Strings with a secret: they have ID numbers, and comparing two numbers is typically a single CPU instruction.
<rgb-one> O(1)?
<Ox0dea> Aye, O(1).
<Ox0dea> O(1) is love, O(1) is life.
<rgb-one> lol
<rgb-one> is there an alternative to \w but for symbols?
<Ox0dea> rgb-one: There is \W, which is the exact opposite of \w, which might be what you want.
<rgb-one> Interesting
<Ox0dea> There's also the [:punct:] character class for strictly matching those characters which the current locale defines to be punctuation.
flughafen has quit [Ping timeout: 265 seconds]
<Ox0dea> >> 'a$%b(cd&!e*'.scan /[[:punct:]]/
<ruboto> Ox0dea # => ["%", "(", "&", "!", "*"] (https://eval.in/436438)
FrankD has quit [Ping timeout: 265 seconds]
swgillespie has joined #ruby
sp4rrow has joined #ruby
segfalt has quit [Quit: segfalt]
<rgb-one> slick
<Ox0dea> rgb-one: Did you figure out how to do your slang transformation with a single #gsub, then?
solocshaw has quit [Ping timeout: 255 seconds]
<rgb-one> Ox0dea: No, I tried /\W/ but it doesn't work
banjara has joined #ruby
<Ox0dea> rgb-one: Hm, why shouldn't \w suffice?
<rgb-one> I didn't try it
araujo_ has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
<rgb-one> I get the same result
araujo_ has quit [Max SendQ exceeded]
<Ox0dea> Are you using the (Regexp, Hash) form?
araujo_ has joined #ruby
<Ox0dea> rgb-one: You're only matching a single "word" character; surely you want to match several? :P
<Ox0dea> You've also got your regular expression in quotes, which makes it a string, which you don't want.
rushed has quit [Quit: rushed]
<Ox0dea> >> ['foo bar'.scan(/\w/), 'foo bar'.scan(/\w+/)]
<ruboto> Ox0dea # => [["f", "o", "o", "b", "a", "r"], ["foo", "bar"]] (https://eval.in/436439)
Oka has joined #ruby
tttttttts has joined #ruby
tejasmanohar_ has joined #ruby
tejasmanohar has quit [Ping timeout: 252 seconds]
tejasmanohar_ is now known as tejasmanohar
flughafen has joined #ruby
<rgb-one> :) Do you have a blog?
<Ox0dea> Just barely.
<Ox0dea> rgb-one: Did you follow all that, then?
<rgb-one> Indeed
<rgb-one> w+ for words
<rgb-one> w for characters
<Ox0dea> A workable distillaton of the thing for now, sure.
<Ox0dea> The '+' "metacharacter" means "repeat" for many more things than just \w.
rurik has quit [Ping timeout: 256 seconds]
tttttttts has quit [Quit: WeeChat 1.3]
rurik has joined #ruby
jjasonclark has quit [Quit: jjasonclark]
dzv has left #ruby [#ruby]
allcentury has quit [Ping timeout: 268 seconds]
<rgb-one> until it meets a whitespace after which it will split the other text into another element
<rgb-one> ?
sp4rrow has quit [Ping timeout: 246 seconds]
<Ox0dea> rgb-one: Right, \w+ means "match 'word' characters as long as you can".
<Ox0dea> It'll only "go to the next one" if you're using a method like #scan, which tries to find every occurrence.
<Ox0dea> The #match method, for instance, stops after just the one.
<Ox0dea> >> 'foo bar'.match(/\w+/)
<ruboto> Ox0dea # => #<MatchData "foo"> (https://eval.in/436440)
banjara has quit [Quit: Leaving.]
<Ox0dea> I'm going to stop oversaturating now; I wanna see this sentence get properly slangified.
<Ox0dea> I'm gonna roll. One more drink if I don't get all Strings.
<Ox0dea> >> [*ObjectSpace.each_object].sample 3
<ruboto> Ox0dea # => [<RubyVM::InstructionSequence:block in reset@/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/rubygem ...check link for more (https://eval.in/436441)
<rgb-one> The slang is indeed inserted but all the content from the original sentence is removed
<Ox0dea> rgb-one: Update the Gist?
<rgb-one> Ox0dea: all the other content that is. what remains is the content of the hash
Rickmasta has joined #ruby
jjasonclark has joined #ruby
<Ox0dea> We're nearly there, and I think you'll like this next part. :)
<Ox0dea> Yep, you got it. So... what's happening?
xcesariox has joined #ruby
<rgb-one> only "4 Y U" is in the slang
<Ox0dea> rgb-one: Look at it the other way.
<rgb-one> "4 U Y" i meant
nofxx has quit [Ping timeout: 244 seconds]
<rgb-one> Ox0dea: what do you mean?
<Ox0dea> It's the keys that matter, since that's what #gsub is using to find replacements.
nofxx has joined #ruby
dreadnought8971 has quit [Remote host closed the connection]
mondayrain has joined #ruby
<rgb-one> I see so it disregards all else, ie. NOW and ASK
<Ox0dea> rgb-one: Nope, it isn't disregarding them.
<Ox0dea> Print the value of hash["NOW"]. :)
<rgb-one> there is no hash["NOW"]
jjasonclark has quit [Client Quit]
<Ox0dea> Aha!
<Ox0dea> But what is its value?
<rgb-one> nil
<Ox0dea> >> nil.to_s
<ruboto> Ox0dea # => "" (https://eval.in/436442)
<rgb-one> :)
<Ox0dea> So you see, #gsub is replacing "NOW" and "ASK" with "".
vdamewood has quit [Ping timeout: 240 seconds]
<headius> duncan_bayne: the thread pooling was mostly to reduce the cost of spinning up Ruby Threads a long time ago, but it was never really much better than just starting a new native thread each time
<headius> so it has been removed in 9k
eminencehc has joined #ruby
agent_white has joined #ruby
<rgb-one> I would have to try a different method in order for show NOW and ASK, where hash doen't use NOW and ASK as values it seems.
pecpec has joined #ruby
<Ox0dea> rgb-one: And now for the piece de résistance!
<Ox0dea> >> foo = Hash.new { |h, k| k * 2 }; foo[21]
<ruboto> Ox0dea # => 42 (https://eval.in/436444)
<Ox0dea> You can tell Hashes to "do something" in order to return something other than nil for nonexistent keys.
<rgb-one> Ox0dea: I see
mrtomme has quit [Ping timeout: 264 seconds]
<Ox0dea> Note well that this "default proc" will only be invoked for missing keys; those with explicit values will respond as usual.
mrtomme has joined #ruby
rushed has joined #ruby
gener1c_ has joined #ruby
pecpec has quit [Ping timeout: 260 seconds]
umgrosscol has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
linuxboytoo has joined #ruby
<rgb-one> so I would include something in the hash = {} function that would return the word instead of nil
gener1c has quit [Ping timeout: 255 seconds]
shinnya has quit [Ping timeout: 246 seconds]
dreadnought8971 has joined #ruby
<rgb-one> as the key
<rgb-one> as the value*
<Ox0dea> rgb-one: `hash = {}` just defines a regular ol' Hash.
<Ox0dea> You'll have to use Hash.new with a block to get this special behavior.
braincras has quit [Quit: bye bye]
<Ox0dea> The block receives two arguments, the Hash being queried, and the specific key being requested.
<Ox0dea> You're not particularly interested in the Hash itself, since you don't intend to modify it in any way.
chills42 has quit [Remote host closed the connection]
linuxboytoo has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linuxboytoo has joined #ruby
<Ox0dea> You just want to capture the key and respond with, well, that same key, since you're only interested in preventing non-slangable words from returning nil and becoming "" in the replacement string.
tejasmanohar has quit [Quit: tejasmanohar]
<rgb-one> >> foo = Hash.new { |h, k| k }; foo[21]
<ruboto> rgb-one # => 21 (https://eval.in/436445)
braincrash has joined #ruby
<Ox0dea> rgb-one: Yep. And now try sticking a few actual key-value pairs onto `foo` and see what happens.
pepperbreath1 has quit [Ping timeout: 250 seconds]
<rgb-one> I would do that by simply doing something like foo = { "a" => "1", "b" => "2" }?
nettoweb has joined #ruby
<Ox0dea> rgb-one: No, that would redefine `foo` and throw away the special behavior from before.
sotojuan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Hashes are "mutable"; we can change them whenever we want.
<Ox0dea> >> foo = {a: 1}; foo[:b] = 2; foo[:c] = 3; foo
<ruboto> Ox0dea # => {:a=>1, :b=>2, :c=>3} (https://eval.in/436446)
nettoweb has quit [Client Quit]
nsuke has joined #ruby
<Ox0dea> rgb-one: It's all in place now. The finish line should be in sight. :)
<rgb-one> I can't see it lol
<Ox0dea> Well, you know how to create a Hash that conveniently "lies" about its contents, and you know how to stick truthful pairs into such a Hash.
<Ox0dea> That's exactly the kind of Hash you need in your call to #gsub.
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
mondayrain has quit [Quit: Leaving]
baweaver has joined #ruby
<rgb-one> I can't astick the pairs into those hashes all at once? I have to do it individually?
diegoviola has quit [Ping timeout: 265 seconds]
<Ox0dea> rgb-one: ^_^ There is indeed one more thing, but make sure doing it indiviually works first?
<Ox0dea> *individually
iateadonut has joined #ruby
dEPy has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
Cache_Money has joined #ruby
diego1 is now known as diegoviola
<Ox0dea> rgb-one: Regarding Lines 5-7, one of those things is not like the other. :P
ramfjord has joined #ruby
<Ox0dea> *others
umgrosscol has quit [Remote host closed the connection]
darkf has joined #ruby
mary5030 has joined #ruby
araujo__ has joined #ruby
<rgb-one> haha
<Ox0dea> Did you get it?
<rgb-one> Indeed
devbug has joined #ruby
<Ox0dea> Excellent.
araujo_ has quit [Ping timeout: 246 seconds]
<Ox0dea> So, we can create "special" Hashes and then put "regular" pairs into them.
tkuchiki has joined #ruby
<Ox0dea> It'd be nice if we could just make a "regular" Hash and stick the "special" behavior on after, huh?
<rgb-one> Yea
<rgb-one> foo = [k] = k?
<Ox0dea> Whoa, definitely not that. :)
<rgb-one> foo[k] = k?
<Ox0dea> Nah, we've got to use one of the many convenient methods Ruby provides us with.
devbug_ has quit [Ping timeout: 252 seconds]
<Ox0dea> Its name is #default_proc.
<rgb-one> proc = process?
<Ox0dea> "Procedure" is better.
mary5030 has quit [Ping timeout: 250 seconds]
ckuhn has joined #ruby
<Ox0dea> >> foo = {1=>:one, 2=>:two}; foo.default_proc = proc { |h, k| k * 10 }; [foo[2], foo[1], foo[4.2]]
<ruboto> Ox0dea # => [:two, :one, 42.0] (https://eval.in/436448)
voxxit has quit [Remote host closed the connection]
dreadnought8971 has quit [Remote host closed the connection]
<Ox0dea> So you can define your slang transformation is a nice Hash literal as you were, and then tack on that "lie about your existence, non-slangable words" behavior afterwards.
<Ox0dea> *in a nice
voxxit has joined #ruby
gix has quit [Ping timeout: 246 seconds]
<rgb-one> cool :)
tkuchiki has quit [Ping timeout: 240 seconds]
rurik has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
rurik has joined #ruby
rurik has quit [Changing host]
rurik has joined #ruby
<rgb-one> ruboto is an irb session right?
<Ox0dea> rgb-one: No, it starts a new Ruby process each time.
<Ox0dea> >> require 'English'; $PROCESS_ID
<ruboto> Ox0dea # => 20136 (https://eval.in/436453)
<Ox0dea> >> require 'English'; $PROCESS_ID
<ruboto> Ox0dea # => 20140 (https://eval.in/436454)
gix has joined #ruby
<rgb-one> Ox0dea: What gems (if any) do you use when creating command line applications?
<Ox0dea> rgb-one: Thor is quite nice.
<baweaver> You don't _really_ need any honestly.
devbug_ has joined #ruby
<Ox0dea> baweaver parses command-line options manually, uphill both ways.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> I'd start with just ARGV for basics and move from there to something like Optparse and then Thor
<Ox0dea> rgb-one: Just to cap all this off: https://gist.github.com/0x0dea/11c33823029559ba270f
<baweaver> helps to understand what you're abstracting some times.
duncannz has quit [Remote host closed the connection]
<baweaver> and given earlier code, they probably only need basic inputs for now.
michael_mbp has quit [Excess Flood]
bruno- has joined #ruby
blik71 has quit [Ping timeout: 250 seconds]
renan has joined #ruby
renan has left #ruby [#ruby]
ddrmanxbxfr has quit [Quit: Leaving]
<rgb-one> groovy :)
michael_mbp has joined #ruby
rurik has quit [Ping timeout: 240 seconds]
<rgb-one> #{word} converts word from a symbol to a string?
devbug has quit [Ping timeout: 264 seconds]
<Ox0dea> >> "#{:foo}"
<ruboto> Ox0dea # => "foo" (https://eval.in/436457)
<Ox0dea> String interpolation calls #to_s on the object being interpolated.
Luming has joined #ruby
<Ox0dea> All interpolation, I belive, just not for strings.
<Ox0dea> >> class Foo; def to_s; 'ohai'; end end; /#{Foo.new}/
<ruboto> Ox0dea # => /ohai/ (https://eval.in/436460)
<Ox0dea> *not just for
weemsledeux has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
rurik has joined #ruby
swgillespie has joined #ruby
dreadnought8971 has joined #ruby
dreadnought8971 has quit [Remote host closed the connection]
workmad3 has joined #ruby
jxv has quit [Quit: Leaving]
rurik has quit [Ping timeout: 255 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 244 seconds]
toretore has quit [Quit: This computer has gone to sleep]
jordanm has quit [Read error: Connection reset by peer]
rurik has joined #ruby
jordanm has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
marsjaninzmarsa has quit [Disconnected by services]
marsjani- has joined #ruby
tejasmanohar has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
pecpec has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
diego1 is now known as diegoviola
Meow-J has joined #ruby
techietrash has joined #ruby
marsjaninzmarsa has joined #ruby
otacon- has quit [Quit: Lost terminal]
houhoulis has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marsjani- has quit [Quit: ZNC - http://znc.in]
pecpec has quit [Ping timeout: 265 seconds]
eminencehc has quit [Remote host closed the connection]
jordanm has quit [Quit: Konversation terminated!]
Cache_Money has quit [Quit: Cache_Money]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-438-e879203 - http://znc.in]
marsjaninzmarsa has joined #ruby
pepperbreath has joined #ruby
sotojuan has joined #ruby
bigmac has joined #ruby
tmtwd has joined #ruby
zenguy_pc has joined #ruby
ddrmanxbxfr has joined #ruby
krz has joined #ruby
swgillespie has joined #ruby
rurik has quit [Ping timeout: 256 seconds]
weemsledeux has joined #ruby
<rgb-one> I have another intesting problem.
<rgb-one> Maybe I should leave this until a bit later
<rgb-one> Ox0dea: Give you a break eh :p
Fire1o6 has quit [Ping timeout: 240 seconds]
code1o6 has quit [Ping timeout: 240 seconds]
<Ox0dea> rgb-one: I'll roll. Help if I don't get all Strings. :)
<Ox0dea> >> [*ObjectSpace.each_object].sample 3
<ruboto> Ox0dea # => ["activated=", "@segments", "\\1\\2"] (https://eval.in/436472)
<Ox0dea> Sorry. :<
rurik has joined #ruby
rurik has joined #ruby
jordanm has joined #ruby
<rgb-one> I would like an alternative to product for making combinations of arrays
* pontiki has visions of Ox0dea DMing a Ruby RPG
<pontiki> baweaver is, of course, the paladin
wookiehangover has quit [Ping timeout: 240 seconds]
krz has quit [Remote host closed the connection]
beauby has quit [Read error: Connection reset by peer]
beauby has joined #ruby
<baweaver> Chaotic Good, love. Me and rules don't quite get along.
rushed has quit [Quit: rushed]
banjara has joined #ruby
<pontiki> well, you do seem to like making them :D
rurik has quit [Ping timeout: 252 seconds]
<baweaver> A valid point in some regards
<baweaver> though that's mainly to prevent people from wasting hours debating on the readability of ternaries or some other such nonsense.
wookiehangover has joined #ruby
Rickmasta has joined #ruby
<baweaver> Programming languages have alignments too
xcesariox has quit [Ping timeout: 246 seconds]
yeticry has quit [Ping timeout: 272 seconds]
<rgb-one> I think you suggested gsub or something?
rakm has joined #ruby
<rgb-one> Ox0dea: ^
<baweaver> Python is Lawful Good, Ruby is Chaotic Good, Java is Lawful Evil, RPG is Chaotic Evil
yeticry has joined #ruby
<baweaver> C is pure Neutral
<baweaver> C and Lisp
<ckuhn> Java isn't that bad
<baweaver> might be an interesting chart to make later.
* baweaver triggered
<baweaver> oh, we're going to have fun
<baweaver> Java is an abysmal language
<ckuhn> its successful for a reason
<pontiki> i think i've seen one someplace...
<ckuhn> i just dont know what one lol
<pontiki> but i'll never find it now
<baweaver> Unnecessary verbosity, nearly religious adherence to patterns in what can only be described as a cargo cult
<ckuhn> agree
<baweaver> don't confuse success with goodness
<baweaver> PHP is still popular
<ckuhn> True
<pontiki> we're strictly speaking of alignements, anyway
<baweaver> One example then I'll lay off this line
<baweaver> That is Hadoop wordcount
<rgb-one> It is what it is man
<baweaver> https://spark.apache.org/examples.html - That's spark
<baweaver> Five lines, and that's only because they're being nice for tutorial reasons.
krz has joined #ruby
<pontiki> oh hell man, you have to remove the comment lines...
tubuliferous_ has joined #ruby
<baweaver> see the wordcount on spark
<ckuhn> But the java for that spark example isnt really that bad
<baweaver> Spark is written in Scala
<ckuhn> I know?
<baweaver> It's still needlessly verbose.
<pontiki> Java is like High Church Episcopalean
<ckuhn> It is verbose
<baweaver> I prefer Scientology as a parallel
<ckuhn> Right tool for the right job
<ckuhn> That's all im sayin
<pontiki> not just verbose, highly ritualized, much pomp and gilt
<baweaver> Java is not the right tool for any job
rurik has joined #ruby
<ckuhn> If you have existing architecture in Java then it is..
<baweaver> If only there were languages which could leverage the JVM....
<ckuhn> truue
<baweaver> I don't advocate rewriting legacy, too much work, but the point is you'd have to be mental to start new projects in those languages.
<pontiki> i've never experienced any scientology ... i don't even know the right word to use ... "service?"
<ckuhn> anyways. english homework needs to be done
<pontiki> come back to the programming!! we love you!!
<baweaver> pontiki: I'll write up a comparison between Scientology and Java some time for fun.
* baweaver despises Java
<ckuhn> baweaver: Please share
* ckuhn meh
<baweaver> it'll show up on baweaver.com eventually
<pontiki> i don't know as i'd have an appreciation for it :/
zenguy_pc has quit [Read error: Connection reset by peer]
<baweaver> Spent a good half year on a hadoop team hating life, never again
tkuchiki has joined #ruby
<pontiki> but then i suppose quite a few folks have never been to a High Chruch Episcopal service, either
<pontiki> Church*
ckuhn has left #ruby ["Textual IRC Client: www.textualapp.com"]
dEPy has quit [Quit: (null)]
<baweaver> Catholic and Orthodox for me
<baweaver> so close enough
<pontiki> oh, then of course there's the Eastern Orthodox.. well there youare
<baweaver> Good friend is EO
<baweaver> Protestant myself, though I have a thing for histories.
<pontiki> thing is though, i can really enjoy things like that, it's a bit of spiritual tourism, where writing Java is never anything like that
<baweaver> So I suppose I have even more reason to compulsively follow rules.
<baweaver> Scientology is a straight cult, so too would I call GoF pattern card holders
<pontiki> zen here, which probably fits with pre-CL lisp too much
<havenwood> I grew up Quaker but now I'm a Rubyist.
<baweaver> I can tell what language people originally used when they start ruby
<baweaver> amusing sometimes
<pontiki> oh sure
<baweaver> Maybe I'll do a writeup on that for humor some time.
<pontiki> i have an acquaintance that no matter which language he tries, he writes in Pascal
<baweaver> Accents in Rubyland
<pontiki> oh that would be funny
<baweaver> http://www.willamette.edu/~fruehr/haskell/evolution.html - reminds me of this in a way.
tkuchiki has quit [Ping timeout: 240 seconds]
<pontiki> yes :)
tjbiddle has joined #ruby
f00dMonsta has quit [Remote host closed the connection]
<pontiki> ok, it's getting late
<baweaver> 'night
<pontiki> ttfn o/
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
Feyn has joined #ruby
cb_ has joined #ruby
cb_ has quit [Changing host]
cb_ has joined #ruby
cb__ has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
allcentury has joined #ruby
roger_rabbit has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
bigmac has quit [Ping timeout: 250 seconds]
zenguy_pc has joined #ruby
sanjayu has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
allcentury has joined #ruby
snsei has joined #ruby
* baweaver goes back to Mastering Algorithms with C
tmtwd has quit [Ping timeout: 252 seconds]
framling has joined #ruby
j4cknewt has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
pecpec has joined #ruby
naftilos76 has joined #ruby
nyon has quit [Quit: F...ix you, Emacs!]
ramfjord has quit [Ping timeout: 252 seconds]
Soda has joined #ruby
nyon has joined #ruby
pawnbox has joined #ruby
pecpec has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
zenguy_pc has joined #ruby
roger_rabbit has joined #ruby
framling has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
Rodya_ has quit [Quit: Leaving...]
dhjondoh has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
allcentury has joined #ruby
karapetyan has joined #ruby
pawnbox has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yottanami_ has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
<yottanami_> I want to use an Soap API, As I checked the stable version of Savon does not support wsdl imports, Is any alternative?
karapetyan has quit [Ping timeout: 268 seconds]
ddrmanxbxfr has quit [Quit: This computer has gone to sleep]
sotojuan has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has joined #ruby
bodie_ has quit [Quit: ZNC - http://znc.in]
sanjayu has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
sanjayu has joined #ruby
pawnbox has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> "I want to use an Soap API" is up there with the likes of "I enjoy physical suffering"
tejasmanohar_ has joined #ruby
swgillespie has joined #ruby
tejasmanohar has quit [Ping timeout: 244 seconds]
tejasmanohar_ is now known as tejasmanohar
workmad3 has joined #ruby
Soda has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 246 seconds]
codenapper has joined #ruby
paradisaeidae has joined #ruby
xcesariox has joined #ruby
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
claw has quit [Ping timeout: 265 seconds]
claw has joined #ruby
drewvanstone has quit [Ping timeout: 255 seconds]
Rickmasta has joined #ruby
gambl0re has quit [Ping timeout: 240 seconds]
<yottanami_> Nilium, I have to work with Soap, I need to use an API that is WSDL
<yottanami_> any recommendation?
<yottanami_> Which gem should I use?
Newtonianb has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
khebbie has joined #ruby
araujo__ has quit [Quit: Leaving]
yardenbar has joined #ruby
<Nilium> Not a clue. Finding maintained gems is kind of a pain.
Neverdie has quit [Quit: http://radiux.io/]
tjbiddle has quit [Quit: tjbiddle]
last_staff has joined #ruby
roxtrongo has quit [Remote host closed the connection]
<shevy> hehehe
<shevy> write once, abandon always
roxtrongo has joined #ruby
<shevy> it would be nice if gems could have some tags on rubygems.org like "hey people, I wrote this in 2010 but I don't have time to maintain it; if anyone wants to maintain it, send an email"
j4cknewt has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
<Nilium> Closest you can really get to that is checking the gem release date. The better thing would be to make the search feature on rubygems.org not awful.
agent_white has left #ruby [#ruby]
<Nilium> i.e., allow pruning results based on last release time, whether there's ever been a non-1.x.y or greater release, whether the author is a deranged lunatic, etc.
j4cknewt has joined #ruby
pecpec has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
alexUaN has joined #ruby
pecpec has quit [Ping timeout: 240 seconds]
joufflu has quit [Read error: Connection reset by peer]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
psy_ has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
strcmp1 has quit [Ping timeout: 264 seconds]
doublemalt_ has quit [Remote host closed the connection]
eGGsha has joined #ruby
ramfjord has joined #ruby
lsmola has joined #ruby
Rollabunna has quit [Quit: Leaving...]
zotherstupidguy has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
lapide_viridi has joined #ruby
zenguy_pc has quit [Read error: No route to host]
techietrash has quit [Quit: Bye! <(^_^<)]
tkuchiki has joined #ruby
firstdayonthejob has joined #ruby
emilkarl has joined #ruby
raddazong has joined #ruby
raddazong has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
raddazong has quit [Changing host]
raddazong has joined #ruby
raddazong is now known as madhatter
karapetyan has quit [Remote host closed the connection]
lapide_viridi has quit [Quit: Leaving]
diegoviola has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Quit: Outta here...]
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
cantaberry has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
weemsledeux has joined #ruby
Pupeno has joined #ruby
bigkevmcd has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
j4cknewt_ has joined #ruby
jas02 has joined #ruby
skullcrasher has joined #ruby
Raboo has quit [Ping timeout: 255 seconds]
j4cknewt has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
swgillespie has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
vondruch has quit [Ping timeout: 272 seconds]
howdoi has joined #ruby
Raboo has joined #ruby
arup_r has joined #ruby
zotherstupidguy has joined #ruby
bluOxigen has joined #ruby
niemcu has joined #ruby
schaary|afk is now known as schaary
yfeldblum has joined #ruby
niemcu has quit [Ping timeout: 264 seconds]
dede__ has joined #ruby
andikr has joined #ruby
mondayrain has joined #ruby
devoldmx has quit [Remote host closed the connection]
platinumchrome has joined #ruby
tubuliferous_ has quit [Read error: Connection reset by peer]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev2_ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
yottanami_ has quit [Quit: Leaving]
pecpec has joined #ruby
ramfjord has joined #ruby
devbug_ has quit [Ping timeout: 260 seconds]
Guest21 has joined #ruby
rushed has joined #ruby
niemcu has joined #ruby
User458764 has joined #ruby
Guest21 is now known as az0ne
arup_r_ has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
towski_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
vondruch has joined #ruby
iyan has joined #ruby
faces has joined #ruby
wpp has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
face has quit [Ping timeout: 256 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 264 seconds]
psy_ has quit [Ping timeout: 250 seconds]
etvr has quit [Quit: Verlassend]
stardiviner has joined #ruby
workmad3 has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
mondayrain has quit [Ping timeout: 272 seconds]
firstdayonthejob has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
roxtrongo has quit [Remote host closed the connection]
j4cknewt_ has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
pecpec_ has joined #ruby
pecpec has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: Ex-Chat]
vondruch has joined #ruby
pawnbox_ has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
roxtrongo has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
iyan has quit [Ping timeout: 240 seconds]
keen__ has joined #ruby
keen_ has quit [Ping timeout: 240 seconds]
sanjayu has quit [Ping timeout: 256 seconds]
zeroDivisible has quit [Ping timeout: 255 seconds]
tejasmanohar has quit [Quit: tejasmanohar]
pawnbox_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
pawnbox has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
darkhex has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
SCHAAP137 has joined #ruby
ndrei has joined #ruby
towski_ has quit [Remote host closed the connection]
drewvanstone has joined #ruby
tkuchiki has quit [Remote host closed the connection]
allcentury has joined #ruby
Balzrael has joined #ruby
karapetyan has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
drewvanstone has quit [Ping timeout: 246 seconds]
Pathfinder has joined #ruby
Guest13124 is now known as nw
allcentury has quit [Ping timeout: 255 seconds]
tjbiddle has joined #ruby
ruurd has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
Hounddog has joined #ruby
blaxter has joined #ruby
superspring has quit [Remote host closed the connection]
sanjayu has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
roxtrongo has quit [Remote host closed the connection]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
platinumchrome has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tesuji has joined #ruby
charliesome has quit [Client Quit]
anisha_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
dyleted has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
tomphp has joined #ruby
tjbiddle has joined #ruby
manfe has joined #ruby
ICantCook has quit [Quit: Leaving]
terlar has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
terlar has joined #ruby
allcentury has joined #ruby
krisquigley has joined #ruby
Igorshp has joined #ruby
Juanchito has joined #ruby
tjbiddle has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
allomov has joined #ruby
j4cknewt has joined #ruby
allomov_ has joined #ruby
allomov has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
charliesome has quit [Ping timeout: 260 seconds]
arup_r_ has quit [Remote host closed the connection]
tjbiddle has joined #ruby
marr has joined #ruby
jschmid has joined #ruby
SOLDIERz has joined #ruby
rdark has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
charliesome has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
beauby has quit [Ping timeout: 268 seconds]
c0m0 has joined #ruby
Alina-malina has joined #ruby
arup_r has joined #ruby
karapetyan has quit [Remote host closed the connection]
Pathfinder has quit [Remote host closed the connection]
Pathfinder has joined #ruby
Pumukel has joined #ruby
stardiviner has joined #ruby
leafybasil has quit [Remote host closed the connection]
j4cknewt has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 246 seconds]
slack232323 has joined #ruby
Pathfinder_ has joined #ruby
Pathfinder has quit [Ping timeout: 244 seconds]
ruurd has quit [Ping timeout: 256 seconds]
slack232323 has quit [Remote host closed the connection]
bruno- has joined #ruby
Pumukel has quit [Ping timeout: 255 seconds]
stan has joined #ruby
ruurd has joined #ruby
blik71 has joined #ruby
blik71 has quit [Client Quit]
tvw has joined #ruby
Balzrael has quit [Remote host closed the connection]
<yorickpeterse> morning
arup_r has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
<rgb-one> A good morning to you. Happy Peace Day!
<yorickpeterse> Ther's a day for that?
<rgb-one> Indeed
sepp2k has quit [Quit: Leaving.]
einarj has joined #ruby
j4cknewt has joined #ruby
leafybasil has joined #ruby
leafybas_ has joined #ruby
chthon has joined #ruby
howdoi has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
lacrosse has quit [Remote host closed the connection]
jmhmccr has quit [Remote host closed the connection]
Guest85414______ has quit [Remote host closed the connection]
shelling__ has quit [Remote host closed the connection]
Meow-J has quit [Remote host closed the connection]
pmarreck has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
krainboltgreene has quit [Remote host closed the connection]
Heero has quit [Remote host closed the connection]
dede__ has quit [Remote host closed the connection]
prosodyC has quit [Remote host closed the connection]
preyalone has quit [Remote host closed the connection]
benlakey has quit [Remote host closed the connection]
countryHick has quit [Remote host closed the connection]
lancetw has quit [Remote host closed the connection]
machty has quit [Remote host closed the connection]
AckZ has quit [Remote host closed the connection]
bove has quit [Remote host closed the connection]
akitada has quit [Remote host closed the connection]
iamdevnul has quit [Remote host closed the connection]
Juanchito has quit [Remote host closed the connection]
im0b has quit [Write error: Broken pipe]
neersighted has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 256 seconds]
DoYouKnow has quit [Remote host closed the connection]
jabreity has quit [Remote host closed the connection]
twodayslate has quit [Remote host closed the connection]
yo61 has quit [Remote host closed the connection]
Lloyd has quit [Remote host closed the connection]
codeitagile has quit [Remote host closed the connection]
marr has quit [Ping timeout: 246 seconds]
nsuke has quit [Remote host closed the connection]
<jhass> you mean Burger King day?
leafybasil has quit [Ping timeout: 268 seconds]
ruurd has quit [Read error: Connection reset by peer]
mprelude has joined #ruby
howdoi has joined #ruby
davedev24 has joined #ruby
Guest85414______ has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
Guest32 has joined #ruby
davedev24 has quit [Remote host closed the connection]
Pumukel has joined #ruby
jmhmccr has joined #ruby
ELLIOTTCABLE has joined #ruby
wpp has quit []
pmarreck has joined #ruby
platzhirsch has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby
krainboltgreene has joined #ruby
im0b has joined #ruby
lkba has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
neersighted has joined #ruby
keyvan has joined #ruby
Pumukel has quit [Excess Flood]
jschmid has quit [Remote host closed the connection]
arup_r has joined #ruby
ruurd has joined #ruby
wookiehangover has joined #ruby
shelling__ has joined #ruby
akitada has joined #ruby
twodayslate has joined #ruby
khebbie_ has joined #ruby
<quazimodo> anyone know how to get bundle/bundler/setup.rb to require correctly when using bundler in standalone mode?
benlovell has joined #ruby
AckZ has joined #ruby
postmodern has quit [Quit: Leaving]
dede__ has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
j4cknewt_ has joined #ruby
khebbie has quit [Ping timeout: 250 seconds]
lacrosse has joined #ruby
machty has joined #ruby
yo61 has joined #ruby
<jhass> doesn't install it a binstub?
<quazimodo> nvm
<quazimodo> :D
<quazimodo> i have no idea what binstubs are or how to use them
<jhass> bin/bundle exec ruby foo.rb or something iirc
<quazimodo> oh
<quazimodo> cool
<quazimodo> no idea
<quazimodo> looks like it
bove has joined #ruby
<quazimodo> but it's a standalone bundler, so i have to include the script it builds (setup.rb)
benlakey has joined #ruby
khebbie_ has quit [Ping timeout: 256 seconds]
<jhass> thus bin/bundle and not bundle
workmad3 has joined #ruby
lancetw has joined #ruby
terlar has quit [Read error: No route to host]
xcesariox has quit [Ping timeout: 246 seconds]
alexUaN has quit [Ping timeout: 250 seconds]
solars has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
<jhass> mmh, guess I'm wrong
ruurd has quit [Read error: Connection reset by peer]
preyalone has joined #ruby
<quazimodo> meh
timonv has joined #ruby
<jhass> I guess you'd just add the bundle directory to the loadpath
<jhass> ruby -Ibundle -rbundler/setup foo.rb
prosodyC has joined #ruby
dmolina has joined #ruby
<jhass> or $LOAD_PATH.unshift(File.join(__dir__, "bundle")) or something in code
ruurd has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
alexUaN has joined #ruby
chipotle has quit [Quit: cheerio]
Juanchito has joined #ruby
countryHick has joined #ruby
ValicekB has joined #ruby
startupality has joined #ruby
platzhirsch has quit [Quit: Leaving.]
platzhirsch has joined #ruby
Heero has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
tkuchiki has joined #ruby
tomphp_ has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
Balzrael has joined #ruby
hs366 has joined #ruby
manfe has quit [Ping timeout: 250 seconds]
ruurd has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
Guest32 has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BlackCoyote has quit [Remote host closed the connection]
bweston92 has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
bweston92 has joined #ruby
cb_ has quit [Remote host closed the connection]
Meow-J has joined #ruby
Igorshp has quit [Remote host closed the connection]
terlar has joined #ruby
iamdevnul has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
flughafen has quit [Remote host closed the connection]
j4cknewt_ has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
Lloyd has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
flughafen has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
DoYouKnow has joined #ruby
codeitagile has joined #ruby
joaomdmoura has joined #ruby
<flughafen> hey shevy certainty
Igorshp has joined #ruby
pontiki has joined #ruby
arup_r_ has joined #ruby
khebbie has joined #ruby
<platzhirsch> flughafen.. really?
<flughafen> hi platzhirsch
jabreity has joined #ruby
<yorickpeterse> platzhirsch: ᕕ(ᐛ)ᕗ
<platzhirsch> Has anyone of you used a fuzzy searcher? I installed fzf yesterday and integrated it into Vim for Ruby and I must have wetted myself several times on that evening
<pontiki> you mean in an editor, not in a ruby program?
arup_r has quit [Ping timeout: 268 seconds]
<yorickpeterse> Nop, I use Fish
ifmy has joined #ruby
<yorickpeterse> https://github.com/junegunn/fzf if you're referring to this fzf
DrCode has joined #ruby
Beoran_ has quit [Ping timeout: 256 seconds]
darkhex has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> maybe it's not going so well ...
stamina has joined #ruby
<shevy> flughafen you were in the news again; this time the entry hall is about to collapse: http://www.tagesspiegel.de/berlin/hauptstadtflughafen-schoenefeld-ber-terminal-wegen-einsturzgefahr-gesperrt/12344298.html
<flughafen> WHAT!!!
allcentury has joined #ruby
<flughafen> for being a new aiport, it looks lame
DrCode has quit [Quit: ZNC - http://znc.in]
devoldmx has joined #ruby
az0ne has quit [Ping timeout: 244 seconds]
Beoran_ has joined #ruby
<platzhirsch> yorickpeterse: yes
<platzhirsch> pontiki: yes
<platzhirsch> shevy: haha, it's so ridiculous, I feel sorry for my beloved home town
ericjphillips has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
Pathfinder_ has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 264 seconds]
<yorickpeterse> platzhirsch: https://asciinema.org/a/dbpikjegylgdchpkxuy32710w Fish in action
<yorickpeterse> that's mostly history complete though, but it does also come with command completion
<rgb-one> Thanks in advance
<platzhirsch> yorickpeterse: looks pretty sick, they definitely serve different purposes from what I can tell, does it replace bash?
quazimodo has quit [Ping timeout: 264 seconds]
<yorickpeterse> Yes
<yorickpeterse> But that's a good thing, at least for me
<yorickpeterse> So far the only thing from Bash that I miss is `set -e`
<yorickpeterse> Fish doesn't have anything like that
<platzhirsch> yeah I am a bit reluctant to do that I think
<platzhirsch> that's why I didn't touch zsh
<yorickpeterse> You can do something like `command1 and command2 and command3` and it will only execute the next one if the former one succeeds
<platzhirsch> or however it's called
<yorickpeterse> oh, I used bash for years and only recently made the switch
jgt1 has quit [Ping timeout: 240 seconds]
<yorickpeterse> http://i.imgur.com/pZ8Tgvo.gif basically sums it up
shafire has joined #ruby
<darix> zsh 4 life
<shafire> hi
<shevy> you are such a chicken yorickpeterse!!!
<yorickpeterse> bok bok
<shafire> is there any way to get a "static" type system into ruby?
<darix> shafire: what do you mean?
<yorickpeterse> shafire: no
<yorickpeterse> Ruby is dynamically typed with no way to chance that. There are some Gems that implement runtime contracts for methods, but that's about it
<yorickpeterse> but honestly runtime type checking does more harm than good I'd say
<shafire> these contracts look good
<shafire> want some type safety between scala/jruby
<shafire> thanks
Salehi has joined #ruby
<darix> shafire: how does your scala and ruby communicate with each other?
<yorickpeterse> This does not give you type safety
<darix> ah jruby
<darix> in process
<yorickpeterse> At least not compile time type safety
<ccooke> There's http://crystal-lang.org/ which is a language based on ruby (but importantly is not ruby) which does static typing
<yorickpeterse> meaning it's not any more useful than writing proper tests
moeabdol has joined #ruby
<platzhirsch> darix: on which OS are you?
<darix> platzhirsch: opensuse
<platzhirsch> ah okay, I always thought zsh is a OS X thing because their bash sucks
ruurd has quit [Quit: ZZZzzz…]
<shevy> lol
<platzhirsch> guess I am WRONG
<shevy> I settled for bash because I am so lazy
<yorickpeterse> zsh certainly is popular amongst the OS X hipsters
<shafire> if you use zsh, use also oh-my-zsh :-)
<darix> platzhirsch: bash is probably the same on osx as it is on linux. their default config might suck.
<yorickpeterse> funny enough I've met quite a few that use oh-my-zsh and then complain about their terminal taking forever to start
<yorickpeterse> darix: No, OS X Bash is a few years behind IIRC
CloCkWeRX has quit [Ping timeout: 264 seconds]
<shevy> cuz they are hipsters
<darix> aha
<platzhirsch> yeah
<shafire> xaxa
<platzhirsch> Thanks you dear MacBook coders and MongoDB users
<darix> yorickpeterse: my .zshrc is 21 lines and 16 of that is my irp shell functions for quick "i need a package of this gem" ^^
khebbie has quit [Remote host closed the connection]
<yorickpeterse> excluding a bunch of separate functions
<certainty> flughafen: hi :)
<platzhirsch> That's too fishy for me yorick
<shevy> fish shell
<shevy> it has good ideas
<yorickpeterse> platzhirsch: badum tsh
<yorickpeterse> at least it's not phish-shell amirite?
DrCode has joined #ruby
Rickmasta has joined #ruby
<platzhirsch> phish did a huge broadcast on our platform
<platzhirsch> such a good stream
<yorickpeterse> who?
<yorickpeterse> oh wait
<yorickpeterse> did I just get outpunned?
tjbiddle has quit [Quit: tjbiddle]
<yorickpeterse> darix: line 1 just explains everything that sucks about Linux
<shevy> I sure hope no shell called phish exists
<flughafen> hi!
Thr3d_ has quit [Ping timeout: 240 seconds]
<darix> yorickpeterse: you mean it sucks that my server OS doesnt launch a ssh-agent as part of the session?;) the desktop does. ;)
<darix> yorickpeterse: and does e.g. osx server behave differently when you ssh into?:)
Jammyhammy|Works has joined #ruby
unop has joined #ruby
<yorickpeterse> darix: it sucks that you have to use eval to get some basic env variables injected in your shell
<yorickpeterse> but yeah, at least desktops usually do this for you
<yorickpeterse> nfi about OS X, don't touch that
karapetyan has joined #ruby
<pontiki> shevy: do you know what phish shell is for? :)
<yorickpeterse> I just have to hear people complain about how Google Drive apparently eats their CPU
<yorickpeterse> or how their Mac is slow when they have 12093812039819023 Chrome tabs open
<yorickpeterse> or how with every OS X update people have to redownload Xcode, which then messes up everything
Jammyhammy|Work has quit [Ping timeout: 246 seconds]
<shevy> pontiki no... is that like phishing sites?
<darix> yorickpeterse: you dont need eval for setting env vars. only if you want to do that from the output of another program.
<darix> yorickpeterse: it would be like expecting foo=`bar` in ruby to define additional variables
<yorickpeterse> darix: that's the thing, you typically start gpg/ssh daemon and it spits out a bunch of env vars
<yorickpeterse> which you then have to eval() to get in your shell
<yorickpeterse> clearly what we need here are JSON APIs
tkuchiki has joined #ruby
<darix> not xml?
<yorickpeterse> No, we're in 2015
karapetyan has quit [Ping timeout: 250 seconds]
<yorickpeterse> Node.js and JSON APIs are the way to go
<yorickpeterse> If you want easy deployments, use Go
<yorickpeterse> because single binaries and all that
<darix> hm
<darix> no
<shevy> rather crystal than Go!!!
skade has joined #ruby
<pontiki> shevy: PHP interactive shell :D
<shevy> omg
Kallis has joined #ruby
<yorickpeterse> Ah yes, the PHP Hyper Pain Preprocessor
Kallis has quit [Max SendQ exceeded]
tjbiddle has joined #ruby
CloCkWeRX has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
allcentury has joined #ruby
tjbiddle has quit [Client Quit]
Kallis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjbiddle has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
lkba_ has joined #ruby
startupality has quit [Quit: startupality]
jas02 has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
last_staff has quit [Ping timeout: 255 seconds]
Hrorek has joined #ruby
startupality has joined #ruby
farn has quit [Remote host closed the connection]
glenn_ has quit [Quit: Konversation terminated!]
Hrorekr has joined #ruby
Hrorek has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rurik has quit [Ping timeout: 246 seconds]
krz has quit [Quit: WeeChat 1.2]
Coldblackice has quit [Ping timeout: 240 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
ndrei has joined #ruby
favadi has joined #ruby
radgeRayden_ has quit [Read error: Connection reset by peer]
pravee___ has joined #ruby
roxtrongo has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
shafire has quit [Quit: Page closed]
benlovel1 has joined #ruby
rodfersou has joined #ruby
benlovell has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
Ropeney has joined #ruby
Igorshp has quit [Remote host closed the connection]
youngbaks has joined #ruby
workmad3 has joined #ruby
charliesome has joined #ruby
[k- has joined #ruby
phutchins has joined #ruby
robwri32 has joined #ruby
robwri32_ has joined #ruby
jgt1 has quit [Ping timeout: 250 seconds]
SenpaiSilver has joined #ruby
rgb-one has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
Pumukel has joined #ruby
frmendes has joined #ruby
hays_ has joined #ruby
Thr3d_ has joined #ruby
darwingr has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has quit [Quit: tjbiddle]
hays has quit [Ping timeout: 244 seconds]
robwri32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robwri32_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hrorekr has quit [Read error: Connection reset by peer]
pecpec_ has quit [Remote host closed the connection]
chills42 has joined #ruby
Voker57 has joined #ruby
Igorshp has joined #ruby
rurik has joined #ruby
rurik has quit [Max SendQ exceeded]
quazimodo has joined #ruby
dede__ has quit [Quit: Connection closed for inactivity]
rurik has joined #ruby
rurik has quit [Max SendQ exceeded]
rurik has joined #ruby
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rurik has quit [Max SendQ exceeded]
rurik has joined #ruby
pawnbox_ has joined #ruby
ValicekB has quit [Ping timeout: 272 seconds]
jgt1 has joined #ruby
FernandoBasso has joined #ruby
but3k4 has joined #ruby
Kallis has quit [Ping timeout: 240 seconds]
cantaberry has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
strcmp1 has joined #ruby
arup_r_ has quit [Remote host closed the connection]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
toretore has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
arup_r has joined #ruby
elperdut has joined #ruby
ldnunes has joined #ruby
elperdut has quit [Client Quit]
y0da has joined #ruby
but3k4 has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
<platzhirsch> Is Crystal the PHP of Ruby?
suchness has joined #ruby
<apeiros> more like the hack of ruby
roxtrongo has quit [Remote host closed the connection]
<apeiros> at least if I remember correctly what hack is
aswen has joined #ruby
<[k-> what do you mean by php :o
<platzhirsch> something offensive
<platzhirsch> like an insult
drewvanstone has joined #ruby
<[k-> supporters of crystal wouldn't be happy
Igorshp has quit [Remote host closed the connection]
<[k-> jhass has worked very hard
<platzhirsch> I have no clue, don't mind me
syath has joined #ruby
<jhass> platzhirsch: why would you say so :(
tjbiddle has quit [Ping timeout: 250 seconds]
<platzhirsch> oh no
<platzhirsch> I don't know.. I just wanted to stir
<jhass> even if, what's PHP's Ruby then?
bodie_ has joined #ruby
atzorvas has quit [Quit: leaving]
strcmp1 has quit [Ping timeout: 246 seconds]
<platzhirsch> More like Ruby's PHP?
khebbie has joined #ruby
elperdut has joined #ruby
drewvanstone has quit [Ping timeout: 252 seconds]
<jhass> "Crystal is to Ruby like PHP is to ???"
ndrei has quit [Ping timeout: 250 seconds]
<platzhirsch> HTML5
<jhass> that makes even less sense
<jhass> what did you drink and where can I get my share of it?
<shevy> doesn't facebook use some compiled php variant?
<apeiros> jhass: you want to damage your brain? o0
<[k-> so mean
<jhass> apeiros: seems easier than dealing with the brain damaged all the time
tjbiddle has joined #ruby
<elaptics> if you can't beat 'em, join 'em?
<apeiros> shevy: yes, that'd be hack. which is why I mentioned it before
arup_r_ has joined #ruby
<apeiros> i.e., "crystal is to ruby like hack is to php". not sure that truly applies, though.
<jhass> elaptics: old zombie apocalypse truth. Just not appealing to watch hence you won't see it in the movies
Igorshp has joined #ruby
<platzhirsch> jhass: fair enough, when you asked the question I thin my face melted
devoldmx has joined #ruby
<[k-> this is why we cant have nice things in the world
nateberkopec has joined #ruby
Kallis has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
Kallis has quit [Max SendQ exceeded]
<shevy> apeiros omg... what a horrible name...
<shevy> on a brighter note, that automatically upgrades the name halsbe :>
<apeiros> shevy: indeed
Kallis has joined #ruby
<apeiros> "go" is just about as terrible a name for a language, though
<apeiros> shevy: na, I'll rename it to "the".
DrCode has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
<[k-> how dare you choose the most commonly used word in the English language!
<tobukiah> how dare you choose the / most commonly used word in / the English language!
<apeiros> that'll make for some hilarious dialogues: "do you use the?" - "the what?"
<apeiros> "the, the language" - "are you stuttering?"
futilegames has joined #ruby
<[k-> what the hell!
<jhass> I should name a project "​" (that's a zero width space)
<shevy> yeah go is also a strange way... they seem to like to pick action-able names... like apple with "swift"
Ropeney has joined #ruby
<shevy> *name
<apeiros> jhass: nonbreaking, I hope?
<jhass> lol, no
<jhass> not that fancy
toretore has quit [Quit: This computer has gone to sleep]
<apeiros> aw come on
<apeiros> where's the fun in that?
<jhass> is there even a non-breaking zero width space?
<shevy> I know there is invisible unicode out there
<shevy> it's like dark matter in physics
<apeiros> yes, eam was going on about it just a few days ago :)
davedev24 has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<apeiros> and reading the WP article I now know why it looked like a BOM
<[k-> WP is workers party or wordpress
Ropeney has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
<shevy> wikipedia!
futilegames has quit [Client Quit]
abyss_ is now known as abyss
pravee___ has quit [Read error: Connection reset by peer]
<apeiros> washington post, of course
praveen__ has joined #ruby
meatherly has joined #ruby
<[k-> > of course
dionysus69 has joined #ruby
skullcrasher_ has joined #ruby
skullcrasher has quit [Ping timeout: 246 seconds]
strcmp1 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
hmnhf has joined #ruby
allomov_ has quit [Remote host closed the connection]
<[k-> who follows ("subscribes") to /r/ruby
youngbaks has quit [Ping timeout: 250 seconds]
strcmp1 has quit []
ValicekB has joined #ruby
<maloik> I do
rurik has quit [Ping timeout: 264 seconds]
DrCode has joined #ruby
fllll has joined #ruby
<fllll> hey
yardenbar has quit [Ping timeout: 240 seconds]
allomov_ has joined #ruby
DrCode has quit [Remote host closed the connection]
<apeiros> hi fllll
<[k-> i don't even read it anymore though
<maloik> why do you ask?
<[k-> these days i just read /r/programming
allomov_ has quit [Remote host closed the connection]
<[k-> it's a poll to see how interesting /r/ruby is
allomov has joined #ruby
<maloik> I dunno I just browse to it once a day or something, see if anything interesting pops up
<[k-> but does anything pop up,m
<[k-> ?*
iceyec has joined #ruby
<fllll> can you recommend me any book/tutorials/videos to start with ruby? I'm python programmer, I know how to code (like I don't wanna waste my time on reading how loops/conditions/classes work, just wanna learn syntax and some advanced conspect of programming in ruby)
<maloik> yea from time to time
<fllll> what would you recommend to learn for a person who has a good background in programming
ericjphillips has quit [Quit: Leaving.]
<jhass> fllll: tryruby.org to get familiar with the base syntax, then head to the rubykoans
<jhass> ?quickref
<[k-> functional programming
<jhass> and have this one open
startupality has quit [Quit: startupality]
<fllll> rubykoans look good
<fllll> anything else?
<jhass> fllll: then have the docs open (ruby-doc.org / devdocs.io / ri for CLI), get pry (pryrepl.org) and try to port some of your simpler python scripts. If you succeeded with that post it here for review
<[k-> codewars, exercism.io, etc, etc
allomov has quit [Ping timeout: 268 seconds]
strcmp1 has joined #ruby
startupality has joined #ruby
<fllll> [k-: didn't know that codewars and exercism; what's 'etc'? Do you know more websites like that?
<[k-> etc is an expression that generally means "and others"
<fllll> yup, that's what I mean, can you list other websites like that (if you know more)
<[k-> well, there is project euler, codingames
<jhass> I still don't think project euler is any helpful in learning any language
strcmp1 has quit [Remote host closed the connection]
<jhass> it trains your algorithm skills maybe, but not your language skills
sgambino has joined #ruby
umgrosscol has joined #ruby
<[k-> im sure jhass knows a lot more
<jhass> actually I don't
<[k-> :(
<jhass> well, there's ruby warrior
<[k-> but you python to ruby!
shadeslayer has quit [Remote host closed the connection]
<[k-> well there are a lot of *code and code* sites
strcmp1 has joined #ruby
<[k-> i just don't know them
rurik has joined #ruby
exadeci has joined #ruby
umgrosscol has quit [Read error: Connection reset by peer]
shadeslayer has joined #ruby
dgutierrez1287 has joined #ruby
victortyau has joined #ruby
bronson has quit [Remote host closed the connection]
<fllll> ok guys thanks for help!
<jhass> ?guys fllll
<ruboto> fllll, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
CloCkWeRX has left #ruby [#ruby]
fllll has quit [Quit: Page closed]
Igorshp has quit [Remote host closed the connection]
atomical has joined #ruby
rgb-one has joined #ruby
<rgb-one> Hello
pawnbox has joined #ruby
meatherly has quit []
zenguy_pc has quit [Read error: Connection reset by peer]
p0wn3d__ has joined #ruby
pawnbox_ has quit [Ping timeout: 265 seconds]
Salehi has quit [Quit: Leaving]
meatherly has joined #ruby
Jardayn has joined #ruby
zenguy_pc has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<[k-> such Ox0dea
<[k-> much interesting
ckuhn has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has joined #ruby
freezevee has joined #ruby
<[k-> if you are only using %w for one letters, it is actually easier to do this: "abcdefg".chars
elperdut has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meatherly has quit []
startupality_ has joined #ruby
startupality has quit [Ping timeout: 240 seconds]
startupality_ is now known as startupality
stardiviner has quit [Ping timeout: 255 seconds]
DrCode has joined #ruby
rushed has quit [Quit: rushed]
DrCode has quit [Remote host closed the connection]
stardiviner has joined #ruby
JoshL has joined #ruby
<strcmp1> jhass: dude.. :|
bruno- has joined #ruby
<strcmp1> jhass: is 'guys' not gender neutral to begin with?
JDiPierro has joined #ruby
<jhass> ?guys2 strcmp1
<ruboto> strcmp1, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
praveen__ has quit [Remote host closed the connection]
mission712[AFK] is now known as mission712
allcentury has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
<strcmp1> i don't want to discuss it, believe me, but this is getting just a tad bit ridiculous
pawnbox has quit [Ping timeout: 256 seconds]
jmignault has joined #ruby
kedare has quit [Ping timeout: 244 seconds]
<strcmp1> your attempts to be inclusive seem to alienate and disrupt so far, to be honest
Kendos-Kenlen has joined #ruby
* ckuhn so confused
<apeiros> strcmp1: if somebody considers this to be difficult to do, I have not much problems alienating them. I prefer supporting the others in this equation.
<[k-> confuseeeeeeeezaaaaaaaallllllll
DrCode has joined #ruby
darwingr has quit [Ping timeout: 246 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
<strcmp1> apeiros: it's not a word in my vocabulary, however, i think you are misguided if you believe this type of policing of words is actually a good thing. it's the other extreme. no extreme is good.
<apeiros> strcmp1: #ruby-offtopic
blackmesa has joined #ruby
sanjayu has quit [Ping timeout: 264 seconds]
<strcmp1> not interested. lets leave it there.
<ckuhn> is this the yt comment section?
bruno- has quit [Ping timeout: 244 seconds]
<apeiros> ckuhn: yt?
<[k-> yt comment section is much much worse
Igorshp has joined #ruby
<strcmp1> yt = youtube
<[k-> a gazillion times worse
* [k- laughs at apeiros
<ckuhn> true true
workmad3 has joined #ruby
<apeiros> surprised it isn't abbreviated as ut
DrCode has quit [Remote host closed the connection]
<[k-> we now know apeiros is very old and only engages in newspapers
UtkarshRay has joined #ruby
<apeiros> [k-: news*paper*? what's that? some newfangled thingyism attempting to replace papyrus?
strcmp1 has quit [Remote host closed the connection]
yardenbar has joined #ruby
<[k-> yes, it is in wide production today
strcmp1 has joined #ruby
allcentury has joined #ruby
* apeiros pondering to just straight kick people voicing from the off on "?guys"
centrx has joined #ruby
<apeiros> that is, people whom never said a word before
<apeiros> who?
<[k-> whom
<[k-> (i believe)
<ckuhn> we could all say "you peeps"?
<[k-> people whom had never?
davidt has joined #ruby
<[k-> i forgot how to use whom :/
<strcmp1> say the words that flow naturally
<strcmp1> nothx for thought police
<strcmp1> if i wanted that id join #northkorea
<apeiros> !locl strcmp1 not the place
<apeiros> !kick strcmp1 not the place
strcmp1 was kicked from #ruby by ruboto [not the place]
pawnbox has joined #ruby
strcmp1 has joined #ruby
<strcmp1> sigh
Rollabunna has quit [Quit: Leaving...]
<strcmp1> sad state of affairs indeed
Melpaws has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 246 seconds]
JDiPierro has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 250 seconds]
DrCode has joined #ruby
<strcmp1> apeiros: I won't return to this channel anymore. I think this is just unbelievably ridiculous. I am came here to discuss ruby, that's it. I do not care if people used words towards me that are in no way derogatory unless you take an extreme position which considers 'guys' to be a derogatory word. females use that word to describe a group of females, and males do the same. i know this, because i am a native english speaker, and you are not.
<apeiros> !ban strcmp1 good bye
<apeiros> !ban strcmp1 !P good bye
strcmp1 was banned on #ruby by ChanServ [strcmp1!*@*]
strcmp1 was kicked from #ruby by ChanServ [Banned: good bye]
shredding has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
DrCode has quit [Remote host closed the connection]
segfalt has joined #ruby
minimalism has quit [Quit: leaving]
benlieb has joined #ruby
benlieb has quit [Client Quit]
decoponio has joined #ruby
lkba_ has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
ndrei has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
jgt1 has joined #ruby
andikr has quit [Remote host closed the connection]
s00pcan has joined #ruby
khebbie has quit [Remote host closed the connection]
khebbie has joined #ruby
beauby has joined #ruby
y0da has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
andyrs has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
KnownSyntax_ has joined #ruby
ckuhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
icbm has quit [Quit: Computer sleeping]
UtkarshRay has quit [Ping timeout: 240 seconds]
UtkarshRay has joined #ruby
ckuhn has joined #ruby
KnownSyntax has quit [Read error: Connection reset by peer]
toretore has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
kstuart has joined #ruby
marr has joined #ruby
tkuchiki has joined #ruby
kstuart has quit [Client Quit]
chills42 has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
allomov has joined #ruby
UtkarshRay has quit [Ping timeout: 240 seconds]
deg__ has joined #ruby
bruno- has joined #ruby
kgirthofer has left #ruby [#ruby]
bruno- is now known as Guest80990
bkulbida has joined #ruby
khebbie has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
UtkarshRay has joined #ruby
havenwood has joined #ruby
chills42 has joined #ruby
djcp has joined #ruby
jgpawletko has joined #ruby
allomov has quit [Read error: Connection reset by peer]
deg_ has quit [Ping timeout: 255 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
allomov has joined #ruby
ruby0nrails_ has joined #ruby
<ruby0nrails_> hi.
<ruby0nrails_> Can someone explain how ||= works?
<apeiros> ruby0nrails_: `a ||= b` expands to `a || a = b`
<apeiros> ruby0nrails_: in other words, if a is falsy (nil or false), b will be assigned to a.
<ruby0nrails_> How does the || operator work?
bronson has joined #ruby
<apeiros> logical "or". returns the first truthy value
<adaedra> Hi
<ruby0nrails_> Right so if a isn't defined, it'll be false, so it'll return the right value?
<shevy> its undeadra
s00pcan_ has joined #ruby
<apeiros> ruby0nrails_: there's no undefined in ruby.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> So it can't be a function.
<apeiros> if `a ||= b` is the first occurrence of a, it'll be set to nil
<DylanJ> apeiros: what's defined?() for then?
<ruby0nrails_> how does ruby apply || on "a" and "a=b" if a isn't defined?
<ckuhn> if a is undefined it is a falsy value
<apeiros> DylanJ: to test for existence
<apeiros> DylanJ: unlike e.g. JS where a variable can indeed have the value `undefined`
<ruby0nrails_> but then why can't i do "if a; puts true; end"
<ruby0nrails_> when a isn't defined
<apeiros> once a variable exists, it does reference an object, always.
inteq has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
nzst has joined #ruby
<ruby0nrails_> NameError: undefined local variable or method `a' for main:Object
iceyec has quit [Ping timeout: 240 seconds]
<nzst> Hi, does anyone know how to cleanly upgrade ruby for the server and app running rails in production?
<nzst> I asked in #rubyonrails
nettoweb has joined #ruby
<ckuhn> >> if a; puts 'true'; end
<ruboto> ckuhn # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/436749)
linuxboytoo has quit [Remote host closed the connection]
s00pcan_ has quit [Ping timeout: 264 seconds]
<ruby0nrails_> If an undefined variable is false, then why am I getting an error?
linuxboytoo has joined #ruby
iceyec has joined #ruby
ruurd_ has joined #ruby
<ckuhn> ruby0nrails_: the following works
<ckuhn> >> if a ||= false; puts 'true'; end
<ckuhn> >> if a ||= false; puts 'true'; end
<ruboto> ckuhn # => nil (https://eval.in/436756)
Neverdie has joined #ruby
<ckuhn> >> if a ||= true; puts 'true'; end
ruurd has quit [Read error: Connection reset by peer]
<ruboto> ckuhn # => true ...check link for more (https://eval.in/436757)
<[k-> syntactic sugar
<ckuhn> I think it is because the if operator doesn't check for truthy/falsy but the || operator does
<ruby0nrails_> Okay, why can't I directly just do a || a= 2
karapetyan has joined #ruby
whippythellama has joined #ruby
<ckuhn> a ||= 2
<ruby0nrails_> If a ||= 2 is the same as a || a = 2, why doesn't a || a = 2 work?
krz has joined #ruby
<chris2> ||= is not completely syntactic sugar, e.g. with -w and globals
<yorickpeterse> Today I wrote a parser for Logentries' crazy ass webhook format, using StringScanner
<yorickpeterse> today was a good day
<chris2> ruby0nrails_: a += b is a = a + b; thus a ||= b is a = a || b
<yorickpeterse> only a little bit of grumping involved
<chris2> stringscanner is quite nice
<adaedra> yorickpeterse: were you on a bike?
<yorickpeterse> but meh, Ragel >>>>>> StringScanner
<yorickpeterse> adaedra: I'm on a bike twice a day
<yorickpeterse> at least
<ruby0nrails_> I don't thing a ||= b is the same as a = a || b
<ruby0nrails_> think*
<adaedra> it's not
<jhass> chris2: I think that's even more misleading to picture it, since a.b ||= c is not a.b=(a.b || c)
<adaedra> >> a = a || b
<ruboto> adaedra # => undefined local variable or method `b' for main:Object (NameError) ...check link for more (https://eval.in/436764)
linuxboytoo has quit [Ping timeout: 260 seconds]
<ruby0nrails_> The easiest way to remember a ||= 2 is just to accept that a gets set to 2 if it isn't defined. at least that's how i'll remember it.
<chris2> jhass: what does that even do... only call the getter?
<yorickpeterse> x ||= y is the same as `x = y unless x`
<chris2> yorickpeterse: not for globals and -w tho :P
<jhass> chris2: it only calls the setter if it actually is set
beauby has quit [Ping timeout: 260 seconds]
<ruby0nrails_> yorickpeterse: that's the best way to understand it i think. yeah.
<yorickpeterse> chris2: not sure if I follow
<jhass> chris2: whereas your expansion would call it always
<chris2> % ruby -w -e '$a = 2 unless $a'
<chris2> -e:1: warning: global variable `$a' not initialized
<yorickpeterse> lol wtf Ruby
<yorickpeterse> granted -w is kinda, well, stupid to begin with
<chris2> so you need a defined? there too
<chris2> no, -w should be default :P
<yorickpeterse> -w shouldn't exist, any of those requirements should be hard requirements
<yorickpeterse> just as how overwriting constants shouldn't trigger a warning but just shouldn't be possible
<DylanJ> ruby0nrails_: a ||= b => a = (defined?(a) ? a||b : b
<chris2> jhass: i cant make it call the setter right now, fun
<yorickpeterse> -w reminds me of PHP's warning system too much
<ruby0nrails_> Does a ||= b internally get converted to a || a = b ?
<yorickpeterse> Either throw a hard error or don't, anything in between is just going to be ignored
<chris2> ah, the getter needs to return a false value ofc
<adaedra> ruby0nrails_: it's a bit more complicated than that. Did you try?
Feyn has quit [Quit: Leaving]
stardiviner has quit [Ping timeout: 260 seconds]
luksaur has joined #ruby
<ruby0nrails_> "a = b unless a" works
<ruby0nrails_> like a ||= b
<jhass> >> A ||= 1
<ruboto> jhass # => 1 (https://eval.in/436772)
<jhass> >> A = 1 unless A
<ruboto> jhass # => uninitialized constant A (NameError) ...check link for more (https://eval.in/436773)
<jhass> >> A || A = 1
<ruboto> jhass # => uninitialized constant A (NameError) ...check link for more (https://eval.in/436774)
prestorium has joined #ruby
<jhass> constant kills them all
ckuhn has left #ruby ["Textual IRC Client: www.textualapp.com"]
<jhass> so it's merely about finding the best analogy
ckuhn has joined #ruby
Guest6844 has joined #ruby
<ruby0nrails_> Do I have to know what a ||= b gets converted to internally? or can I just know that a gets set to b unless a is defined?
benlieb has joined #ruby
<jhass> ruby0nrails_: s/defined/is false or nil/, then best just remember that
<jhass> well actually defined, nil or false
moeabdol has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
banister has joined #ruby
ruby0nrails_ has quit [Quit: Page closed]
<waxjar> I'm dealing with an external server that does not do HTTP very well. This server returns some HTML when it encounters a 500 Internal Server Error but does not indicate so in it's status code, nor does it always indicate it's sending HTML in its Content-Type header. Is there a lightweight way to check if the response body is valid JSON, so I can consider the response a success?
rurik has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
tatsuo has joined #ruby
<yorickpeterse> You can check if the first character (minus whitespace) starts with a <
<yorickpeterse> If so, then it's not JSON
rodfersou has quit [Read error: Connection reset by peer]
<yorickpeterse> I'd also suggest sending angry Emails to whoever provides the service :P
<waxjar> Hmm, I think that'll do :p
devoldmx has joined #ruby
<yorickpeterse> so basically `if input.strip[0] == '<' .... end`
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
rodfersou has joined #ruby
kristofferR has joined #ruby
Igorshp has quit [Remote host closed the connection]
kristofferR has quit [Client Quit]
bigmac has joined #ruby
startupality has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
<adaedra> .start_with?
tesuji has quit [Ping timeout: 250 seconds]
<yorickpeterse> yeah that works too, still need the .strip though
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Luming has quit [Ping timeout: 256 seconds]
ckuhn has quit [Ping timeout: 246 seconds]
Luming has joined #ruby
<jhass> .lstrip
<jhass> :P
<jhass> .match /\s*</
<jhass> eh \A
platzhirsch has left #ruby [#ruby]
pawnbox_ has joined #ruby
rurik has joined #ruby
<waxjar> meh, regexpes :p
<yorickpeterse> Yeah, because a regular expression isn't a total overkill for this
pawnbox has quit [Ping timeout: 240 seconds]
<yorickpeterse> might as well write a fully blown JSON+HTML parser while you're at it
dcarmich has joined #ruby
drewvanstone has joined #ruby
<yorickpeterse> if input.strip.start_with?('<'); Oga.parse_html(input); else; JSON.load(input); end
<yorickpeterse> ᕕ(ᐛ)ᕗ
casadei_ has joined #ruby
<waxjar> lol
beauby has joined #ruby
meatherly has joined #ruby
ndrei has joined #ruby
chills42 has quit [Remote host closed the connection]
kobain has joined #ruby
ericjphillips has joined #ruby
prestorium has quit [Quit: Konversation terminated!]
karapetyan has quit [Remote host closed the connection]
hmnhf has quit [Ping timeout: 265 seconds]
nfk|laptop has quit [Ping timeout: 252 seconds]
drewvanstone has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
<[k-> sanitise!
dopie has quit [Ping timeout: 240 seconds]
freezevee has quit [Remote host closed the connection]
bigbadbear has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
tenderlove has quit [Ping timeout: 265 seconds]
hinbody has joined #ruby
arup_r_ has quit []
ndrei has quit [Ping timeout: 252 seconds]
khebbie has joined #ruby
<hostess> So I'm trying to write a simple caesar cipher which has been done 100 times, but I seem to be having a problem with backslashes in my alphabet. Can anyone tell me why in this simple code, the backslash is shifting? http://pastebin.com/D2XumDNP
<ruboto> hostess, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fec2209650c81175c69a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Igorshp has joined #ruby
Hrorek has joined #ruby
hashrocket has joined #ruby
dopamean_ has quit [Ping timeout: 268 seconds]
rurik has quit [Ping timeout: 246 seconds]
nickjj_ has joined #ruby
pecpec has joined #ruby
bluOxigen has quit []
khebbie has quit [Remote host closed the connection]
Mars__ has joined #ruby
<Mars__> Wut is this place
<Mars__> Free Mason?
Zai00 has joined #ruby
<Mars__> Illuminati's nest
nickjj has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
Mars__ has quit [Client Quit]
<havenwood> Mars__: This is for the Ruby programming language.
Newtonianb has joined #ruby
drewvanstone has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
emilkarl has quit [Quit: emilkarl]
JoshL has joined #ruby
<adaedra> Interesting.
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
mary5030 has joined #ruby
<shevy> lol
mary5030 has quit [Remote host closed the connection]
<shevy> when I join #ruby I essentially wait and expect free beer, as the name of the channel implies
d10n-work has joined #ruby
drewvanstone has quit [Ping timeout: 250 seconds]
<apeiros> hostess: that's a peculiar one, the answer is in the docs:
nickjj__ has joined #ruby
<adaedra> ?beer shevy
<ruboto> shevy, I don't know anything about beer
<adaedra> aw.
mary5030 has joined #ruby
<apeiros> hostess: „The backslash character </code> can be used to escape ^ or - and is otherwise ignored unless it appears at the end of a range or the end of the from_str or to_str“
<adaedra> Is ruboto under 18? :)
nsuke has joined #ruby
nickjj__ is now known as nickjj
<apeiros> hostess: in other words: you must place the \ and the corresponding translation char at the end of from_str and to_str (I wonder how that's supposed to work, though - maybe the wording is bad?)
tenderlove has joined #ruby
stardiviner has joined #ruby
kies^ has joined #ruby
krisquigley has quit [Remote host closed the connection]
nickjj_ has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<gregf_> rofl.... 'hostess'
who_ has joined #ruby
mikecmpbll has joined #ruby
delianides has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hostess> i like snack cakes ;)
<gregf_> heh
<who_> i like beluga whales ;)
<hostess> apeiros: I'm not sure I follow what you're saying, and it's making me feel dumber
Aztec has joined #ruby
axl_ has joined #ruby
Aztec is now known as Guest40690
<apeiros> hostess: from the docs it seems like \ may not just occur at any place in from_/to_str
Guest40690 is now known as Aztec__
juanpablo_ has joined #ruby
tomphp has quit [Max SendQ exceeded]
<hostess> apeiros: at runtime, the string seems to be fine...
chills42 has joined #ruby
who_ has quit [Client Quit]
<Aztec__> has anyone ever tried to react to redis messages by writing to a PTY's STDIN?
beast has joined #ruby
Hrorek has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
<Aztec__> aka spawn a PTY, subscribe to a redis channel and, when a certain message comes flying in, write to the PTY's STDIN
<apeiros> >> "\\x".tr('x\\', '\\x')
<ruboto> apeiros # => "xx" (https://eval.in/436814)
naftilos76 has quit [Ping timeout: 255 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rurik has joined #ruby
<apeiros> \ only works at the end of the string. so if it's in both from and to, you seem to have a problem :(
icbm has joined #ruby
<apeiros> >> "\\x".tr('x\\', 'Zx')
<ruboto> apeiros # => "xZ" (https://eval.in/436815)
emilkarl has joined #ruby
<hostess> hmm, i think i may have found a way around it by just not using the tr function
atomical has joined #ruby
gyre007 has joined #ruby
tjohnson has joined #ruby
Newtonianb has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
<gyre007> hey all, is there any subcommand in gem which allows me to list the gem details ?
bigmac has quit [Ping timeout: 260 seconds]
<gyre007> like pip show <pkg> or rpm -qi <pkg> ?
ckuhn has joined #ruby
umgrosscol has joined #ruby
chouhoulis has joined #ruby
victortyau has quit [Ping timeout: 240 seconds]
<Aztec__> gyre007 gem help commands
victortyau has joined #ruby
workmad3 has joined #ruby
ckuhn has quit [Remote host closed the connection]
bigmac has joined #ruby
<gyre007> uh
wpp has joined #ruby
<gyre007> query seems to give me what im after, but it prints out info about all installed gem
rurik has quit [Remote host closed the connection]
dopamean_ has joined #ruby
<gyre007> *gems
<gyre007> I want to query an info of one particular gem
spcmastertim has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
victortyau has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
timonv has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
pawnbox_ has quit [Remote host closed the connection]
arup_r has joined #ruby
rurik has joined #ruby
victortyau has joined #ruby
michael_mbp has quit [Excess Flood]
victortyau has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 264 seconds]
ekain has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
inteq has joined #ruby
darwingr has joined #ruby
victortyau has joined #ruby
codecop has quit [Remote host closed the connection]
polishdub has joined #ruby
Neverdie has joined #ruby
michael_mbp has joined #ruby
<jhass> a very verbose variant would be gem specification <gem>
pawnbox has joined #ruby
dorei has joined #ruby
solars has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 255 seconds]
<Aztec__> what sort of info do you mean, gyre007?
Liothen has quit [Ping timeout: 260 seconds]
umgrosscol has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
ndrei has joined #ruby
retornam has quit [Ping timeout: 272 seconds]
jas02 has quit [Quit: jas02]
drewvanstone has joined #ruby
papercode has quit [Ping timeout: 256 seconds]
mblagden has quit [Ping timeout: 256 seconds]
ruby-lang064 has joined #ruby
wildlander has joined #ruby
mblagden has joined #ruby
momomomomo has quit [Quit: momomomomo]
ruby-lang064 has left #ruby [#ruby]
Liothen has joined #ruby
retornam has joined #ruby
papercode has joined #ruby
NeverDi__ has joined #ruby
ruby-lang165 has joined #ruby
<ruby-lang165> hi!
sshuff|gone is now known as sshuff
tatsuo has quit [Remote host closed the connection]
centrx has quit [Ping timeout: 260 seconds]
<ruby-lang165> can someone help me improve the speed of a pattern matcher I've got going on? git@gist.github.com:fc34b142f8af3cb49f32.git
Neverdie has quit [Ping timeout: 256 seconds]
<ruby-lang165> I can't seem to make it go faster, maybe ruby not the best approach here?
ruurd_ has quit [Quit: ZZZzzz…]
casadei_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
startupality has quit [Quit: startupality]
NeverDi__ is now known as NeverDie
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<ruby-lang165> NeverDie: yeah, thats it
<ruby-lang165> sorry, havenwood
<gregf_> NeverDie ?
<ruby-lang165> sry about that :)
ndrei has quit [Ping timeout: 246 seconds]
<gregf_> haven == "never" && wood == "die" <== en portugues?
startupality has joined #ruby
michael_mbp has joined #ruby
emilkarl has quit [Quit: emilkarl]
dgutierrez1287 has quit [Remote host closed the connection]
<NeverDie> What.
<gregf_> heh. dont worry. i was joking ;)
<ruby-lang165> ;)
Guest6844 has quit [Ping timeout: 268 seconds]
<ruby-lang165> I'm the originator of the mixup though
cschneid_ has joined #ruby
<apeiros> ruby-lang165: you should not abort() in your methods, only raise
bluOxigen has joined #ruby
<ruby-lang165> I'll take note of that, the abort was just so I could get a message on exit, I'll replace it
CloCkWeRX has joined #ruby
<apeiros> @loader.words.map { |w| w if w[filter] && w != word } + .compact --> use .select
<ruby-lang165> apeiros, select faster?
<apeiros> slightly. it's more about showing intent.
<apeiros> you can speed it up by preparing your data for the search
dyleted has joined #ruby
dyleted has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
<apeiros> so that you don't have to scan the full dictionary every time
dionysus69 has joined #ruby
<apeiros> the first way to segment it would be word length, since you never look for words of different lengths
<ruby-lang165> OK, that's something I can do
radgeRayden has joined #ruby
<apeiros> then a poor way to segment more would be to actually have a lookup table with all wildcard variants of the word. costs more for preparation but speeds up graphing. the more often you build a graph during the same run, the bigger the gain
ruby-lang755 has joined #ruby
ruby-lang755 has quit [Client Quit]
dionysus70 has joined #ruby
<apeiros> e.g. cat -> {'?at' => ['cat', 'bat', 'fat', …], 'b?t' => ['bat', 'bet', …], …}
jgt1 has quit [Ping timeout: 272 seconds]
ericjphillips has quit [Quit: Leaving.]
ruurd has joined #ruby
aswen has joined #ruby
<ruby-lang165> yeah, gonna do it like this
<ruby-lang165> wordz = @loader.words.select { |w| w if w.size = word.size } edges += wordz.select { |w| w if w[filter] && w != word }
<ruby-lang165> should speed it up a bit
<apeiros> .select { |w| w if w.size = word.size } --> .select { |w| w.size = word.size }
tatsuo has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
<apeiros> I'd probably do it in the loader: @words = File.read(path).split("\n").group_by(&:size).sort.values_at(*1..maxlen)
<apeiros> errr, drop the sort
<apeiros> (already handled by values_at)
hs366 has quit [Quit: Leaving]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
<apeiros> will have to handle lengths which have no words
dionysus70 is now known as dionysus69
dionysus69 has quit [Remote host closed the connection]
atomical has joined #ruby
tkuchiki has joined #ruby
dionysus69 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
ndrei has joined #ruby
retornam has quit [Ping timeout: 240 seconds]
mblagden has quit [Ping timeout: 240 seconds]
Liothen has quit [Changing host]
Liothen has joined #ruby
Junaos has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
<ruby-lang165> apeiros, appreciate it
Junaos has joined #ruby
<ruby-lang165> going a bit faster now, this should be anough
mblagden has joined #ruby
eminencehc has joined #ruby
rurik has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
anisha_ has quit [Quit: Leaving]
rbennacer has joined #ruby
eminencehc has quit [Remote host closed the connection]
retornam has joined #ruby
sharkman has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
rurik has joined #ruby
<sharkman> i have a nokogiri object. if i do @nokogiri_thing.text it joins the text in one big blob
ruby0onrails_ has joined #ruby
<sharkman> how can i join the text, but separate each text element with a comma
<ruby0onrails_> Hey. Can anyone explain how are ranges used in condtions?
drewvanstone has quit [Ping timeout: 250 seconds]
eminencehc has joined #ruby
<apeiros> sharkman: you walk the tree, append to an array and in the end .join(', ') it
<jhass> sharkman: .xpath("//@text").join(",") I think, maybe with .map(&:text) in between, maybe there's a better way
OrbitalKitten has joined #ruby
ebragaparah has joined #ruby
<ruby0onrails_> Or maybe a link to a guide that might help?
<yorickpeterse> @text doesn't do anything
<jhass> really? wonder why it's a thing then...
Kendos-Kenlen has joined #ruby
Soda has joined #ruby
<yorickpeterse> @nokogiri_thing.xpath('descendant-or-self::text()').to_a.join(',')
<yorickpeterse> something along those lines
<sharkman> apeiros, how do i walk the tree? its not a simple list, its nested
<apeiros> ruby0onrails_: the same way any other object is used - you form an expression which evaluates to a truthy/falsy value
<ruby0onrails_> No I mean the flip-flop operator.
<dorei> speaking of xpath, is there a way to use xpath2 from within ruby?
<ruby0onrails_> That's what it's called, right?
arturmartins has joined #ruby
<sharkman> that worked yorickpeterse thanks
RandyT has quit [Quit: ZNC - http://znc.in]
ragingcake has joined #ruby
wpp has quit [Quit: ZZZzzz…]
ruby-lang165 has quit [Quit: Page closed]
krz has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
RandyT has joined #ruby
rcvalle has joined #ruby
ruby0onrails_ has quit [Quit: Page closed]
startupality has quit [Quit: startupality]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
momomomomo has quit [Quit: momomomomo]
DoubleMalt has quit [Remote host closed the connection]
youngbaks has joined #ruby
niemcu has quit [Ping timeout: 264 seconds]
yardenbar has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/]
SCHAAP137 has quit [Remote host closed the connection]
ebragaparah has quit [Remote host closed the connection]
pulgolino has joined #ruby
bazbing80 has joined #ruby
momomomomo has joined #ruby
Zai00 has left #ruby [#ruby]
meatherly has quit [Ping timeout: 255 seconds]
youngbaks has quit [Read error: Connection reset by peer]
<bazbing80> okay. I create a module, it doesn't contain a method. I include that module in any totally unrelated class and suddenly it contains that method. Could someone explain? This code hasn't been run but I believe it encapsulates my query https://gist.github.com/anonymous/e8dcad79ded2c4dc35b7
icbm has quit [Quit: Leaving]
<shevy> bazbing80 but is this not default behaviour? you define a method in a module, you include it in a class, it becomes available
<apeiros> bazbing80: that's one of the points of modules
<apeiros> and of including modules
<apeiros> bazbing80: also, you can't use an instance method of a module without using include/extend
allcentury has quit [Ping timeout: 265 seconds]
<bazbing80> shevy apeirons: Awesome, I was not aware of this!
<shevy> apeiros people do not like your nick :)
Cache_Money has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> bring back apieros!
<apeiros> ?tabnick bazbing80
<ruboto> bazbing80, pro-tip - use tab completion for nicks. avoids typos in nicks.
linuxboytoo has joined #ruby
codecop has joined #ruby
<bazbing80> apeiros: I do haha just didnt work with two nicks in one message
<jhass> shevy: let's code a bot that joins with all the alternations and relays the messages to apeiros
<shevy> hah
<apeiros> jhass: I already have most mutilations in my highlight-list
<shevy> aperos
<havenwood> levenstein highlights
pawnbox has quit [Remote host closed the connection]
<shevy> ape-iron
malconis has joined #ruby
linuxboytoo has quit [Client Quit]
ruurd has quit [Read error: Connection reset by peer]
dopie has joined #ruby
Guest80990 has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
<jhass> havenwood: I guess me and jhack would dislike that feature
<havenwood> jhass: Yeah, no doubt. It's way too broad and not fine-grained enough to be useful.
<shevy> havenwood has an even longer nick
<shevy> I think it is the combination of a-e-i-o
<shevy> that is hard to type by letter :D
<adaedra> Yeah, who has nicks with so many vowels, and so easy to mess up
<tobukiah> Yeah, who has nicks with / so many vowels, and so / easy to mess up
<jhass> I think the issue is that apeiros has more vowels than not
<adaedra> wat
<shevy> adedra
<jhass> tobukiah: ?
<adaedra> What does this bot do
<shevy> tokubiah is also a hard nick
danman has joined #ruby
<shevy> similar to how some assume ruboto to be a real person
<bazbing80> adaedra: I have to ask, is your nick an Elder Scrolls reference?
pecpec has quit [Ping timeout: 250 seconds]
<adaedra> bazbing80: no.
Asher has joined #ruby
[Butch] has joined #ruby
ruurd has joined #ruby
Hounddog has quit [Remote host closed the connection]
<bazbing80> adaedra: oh.. :|
Marsupermammal has joined #ruby
mjuszczak has joined #ruby
JDiPierro has joined #ruby
<adaedra> But you're not the first to ask.
n008f4g_ has joined #ruby
Guest52550 has joined #ruby
kirun has joined #ruby
Lucky__ has joined #ruby
roxtrongo has joined #ruby
chills42 has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
chills42 has joined #ruby
<adaedra> tobukiah: are you doing haikus? (addressing to the bot, as I don't know who did this.)
<Ox0dea> >> 'tobukiah'.reverse
<ruboto> Ox0dea # => "haikubot" (https://eval.in/436896)
allomov has quit [Remote host closed the connection]
<adaedra> ... right.
mjuszczak has quit [Ping timeout: 240 seconds]
rubyonrails_ has joined #ruby
JDiPierro has quit [Ping timeout: 240 seconds]
davispuh has joined #ruby
<rubyonrails_> How does a flip-flop operator work in a condition? For example: (line =~ /first/) .. (line =~ /third/)
dfockler has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<adaedra> I didn't even know this existed
karapetyan has joined #ruby
The_Phoenix has joined #ruby
<apeiros> rubyonrails_: iirc it is false until the left side is true. it will then stay true until the right side is true. from then on it'll be false
<apeiros> that is, over multiple hits of the expression. not sure though. this construct is IMO too obscure to be used.
Jammyhammy|Works has quit [Read error: Connection reset by peer]
skullcrasher_ has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 256 seconds]
<rubyonrails_> apeiros: It'll stay true until the right side is true but then after that it'll become false?
<adaedra> yes
<apeiros> yes
<apeiros> as said, over multiple times of testing
<rubyonrails_> apeiros: It is quite obscure though...
mjuszczak has joined #ruby
<adaedra> in your sample, it will be false by default, until you have something that maches first. then, it will stay true until something matches third. And then, start again, I guess
<apeiros> i.e. on first evaluation, left side is false -> whole expression is false (right side doesn't matter)
amclain has joined #ruby
<apeiros> on second evaluation left side is true -> whole expression is true (right side doesn't matter)
<apeiros> on third evaluation, right side is false -> whole expression is true (left side doesn't matter)
<apeiros> on 4th evaluation, right side is true -> whole expression is false (left side doesn't matter)
<apeiros> and now the cycle starts from anew
aswen has quit [Ping timeout: 260 seconds]
<rubyonrails_> on 4th evaluation, right side becomes true but the whole expression is also true.
Guest52550 has quit [Ping timeout: 264 seconds]
<apeiros> ah might be that it'll be false only after the 4th evaluation
<apeiros> (in that example)
<rubyonrails_> This syntax is borrowed from Perl right?
<rubyonrails_> No wonder it's so obscure.
<apeiros> I think so, yes
eminencehc has quit [Remote host closed the connection]
<rubyonrails_> I heard this might be removed in Ruby 3.0?
davispuh has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 240 seconds]
dgutierrez1287 has joined #ruby
<apeiros> I wouldn't miss it
Caius has joined #ruby
Caius has joined #ruby
<rubyonrails_> I'm currently using Ruby 1.9.3. Are there huge differences in Ruby 2.0 or just minor?
naftilos76 has quit [Ping timeout: 244 seconds]
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> First 1.9.3 is not supported anymore
<apeiros> you should use 2.2.3 unless you have specific reasons not to
<adaedra> There are the kwargs
<apeiros> and IMO the differences from 1.9 to 2.2 are not huge, but still valuable
rubyonrails_ has quit []
pen has joined #ruby
SCHAAP137 has joined #ruby
allcentury has joined #ruby
jcoe has joined #ruby
jxv has joined #ruby
eminencehc has joined #ruby
Aztec__ has quit [Ping timeout: 246 seconds]
Ox0dea has left #ruby ["WeeChat 1.3"]
eminencehc has quit [Remote host closed the connection]
tobukiah has quit [Remote host closed the connection]
nfk has joined #ruby
bronson has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
elperdut has joined #ruby
pietr0 has joined #ruby
j4cknewt has joined #ruby
spalenza has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
spalenza has quit [Client Quit]
NeverDie has joined #ruby
eminencehc has joined #ruby
maletor has joined #ruby
stan has quit [Quit: Leaving]
p0wn3d__ has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
NuckingFuts has quit [Ping timeout: 240 seconds]
maletor has quit [Ping timeout: 244 seconds]
ndrei has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
petricore has joined #ruby
ndrei has joined #ruby
allcentury has joined #ruby
tomphp has quit [Ping timeout: 265 seconds]
stan has joined #ruby
Rollabunna has joined #ruby
ndrei has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
spider-mario has joined #ruby
towski_ has joined #ruby
RandyT has quit [Read error: Connection reset by peer]
RandyT has joined #ruby
workmad3 has joined #ruby
axl_ has quit [Quit: axl_]
axl_ has joined #ruby
j4cknewt_ has joined #ruby
nuck has joined #ruby
atzorvas has joined #ruby
decoponyo has joined #ruby
blackmesa has joined #ruby
mondayrain has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
wpp has joined #ruby
drewvanstone has joined #ruby
p0wn3d__ has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
wpp has quit [Client Quit]
NeverDie has quit [Quit: http://radiux.io/]
<shevy> people are lazy
Ox0dea has joined #ruby
ebragaparah has joined #ruby
niemcu has joined #ruby
<apeiros> no w
<shevy> hmm
<shevy> >> RUBY_VERSION
dyleted has quit [Ping timeout: 240 seconds]
<ruboto> shevy # => "2.2.0" (https://eval.in/436903)
tobukiah has joined #ruby
tobukiah has quit [Read error: Connection reset by peer]
decoponio has quit [Ping timeout: 240 seconds]
<shevy> ruboto is lazy
Kricir has joined #ruby
tobukiah has joined #ruby
cb_ has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
NeverDie has joined #ruby
startupality has joined #ruby
centrx has joined #ruby
iateadonut has quit [Quit: Leaving.]
rakm has joined #ruby
darwingr has quit [Ping timeout: 240 seconds]
benlovel1 has quit [Ping timeout: 240 seconds]
terabytes has joined #ruby
nsuke has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
JoshL has quit [Read error: No route to host]
startupality has quit [Quit: startupality]
havenwood has quit [Ping timeout: 246 seconds]
JoshL has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
delianides has quit [Remote host closed the connection]
dionysus69 has joined #ruby
devoldmx has joined #ruby
krisquigley has quit [Remote host closed the connection]
it_tard has joined #ruby
nfk has quit [Disconnected by services]
it_tard is now known as nfk
rubyonrails has joined #ruby
rubyonrails has quit [Client Quit]
Narzew has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
DrCode has joined #ruby
nanoz has joined #ruby
platzhirsch has joined #ruby
nanoz has quit [Client Quit]
ramfjord has joined #ruby
cb_ has quit [Remote host closed the connection]
cb_ has joined #ruby
casadei_ has joined #ruby
spider-mario has quit [Ping timeout: 250 seconds]
cb_ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
tvw has quit [Remote host closed the connection]
spider-mario has joined #ruby
cb_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
jgt1 has joined #ruby
pawnbox has joined #ruby
crack_user has joined #ruby
<crack_user> hello guys
DrCode has quit [Remote host closed the connection]
<crack_user> somo one here is familiar with nokogiri? I'm trying to parse a xml but the HTML entities in there is missing
<centrx> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
workmad3 has joined #ruby
<crack_user> so that is my question, parse a xml without losing the html entities
<apeiros> crack_user: provide an example. code, input, expected output, actual output
<apeiros> preferably on gist.github.com
j4cknewt has joined #ruby
<apeiros> because right now the answer would be "you're mistaken, html entities don't go lost with nokogiri". and that doesn't help you solve your problem.
hahuang61 has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
wryfi has joined #ruby
tatsuo has quit [Quit: Leaving...]
Hrorek has joined #ruby
<wryfi> i'm trying to use chruby and bundler together. i have bundler install gems to .gem in my $HOME, but bundler installs them under .gem/ruby/2.2.0, while my ruby version is 2.2.2, and so chruby doesn't see the bundled gems.
<crack_user> the is:
rurik has quit [Ping timeout: 246 seconds]
<wryfi> any ideas?
<crack_user> to prove that is not my mistake
dmolina has quit [Quit: Leaving.]
lkba has joined #ruby
<adaedra> ?abi wryfi
<ruboto> wryfi, Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, like 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's shared among one release series, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is 2.1.0.
atzorvas has quit [Quit: leaving]
petersaints has quit [Ping timeout: 255 seconds]
<apeiros> crack_user: interesting
<wryfi> ok, so why does bundler use the ABI version, while chruby changes the $PATH to the ruby version?
<wryfi> is this a chruby bug?
<apeiros> crack_user: simple solution
<wryfi> ruboto, adaedra: ^
<apeiros> crack_user: &Eacute; is not valid XML. use the HTML parser.
<apeiros> crack_user: i.e., use Nokogiri::HTML.parse instead
dima_ has joined #ruby
<crack_user> apeiros: do you know if is some major diference between HTML and XML parse beyond that?
workmad3 has quit [Ping timeout: 256 seconds]
petersaints has joined #ruby
howdoico1 has joined #ruby
michaeldeol has joined #ruby
<apeiros> no idea
<adaedra> wryfi: can you show: `gem env` `which bundle`
snockerton has joined #ruby
<adaedra> crack_user: I think HTML is more tolerant, i.e. accept non-closed blocks
hanmac has quit [Ping timeout: 246 seconds]
farn has joined #ruby
<crack_user> adaedra: I will try that here
<shevy> we can program in html!
<shevy> <if>
<adaedra> don't past in the channel, crack_user
blackmesa has joined #ruby
<adaedra> paste*
<crack_user> adaedra: paste what?
<adaedra> The result of the commands
<adaedra> Wait, wrong person
<adaedra> Never mind
banjara has joined #ruby
<crack_user> adeponte: it's ok
<adaedra> You have the same nick color as wryfi :)
stan has quit [Ping timeout: 255 seconds]
stamina has quit [Quit: WeeChat 1.3]
rgb-one has quit [Remote host closed the connection]
firevolt has quit [Quit: Updating details, brb]
djbkd has joined #ruby
makufiru has joined #ruby
Igorshp has quit [Remote host closed the connection]
agent_white has joined #ruby
Igorshp has joined #ruby
roxtrongo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yardenbar has joined #ruby
Igorshp has quit [Remote host closed the connection]
nickjj has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<sharkman> this is in the rails console
<sharkman> why cant i select the entries this table has
<sharkman> irb(main):001:0> EspnPbpBaseballSource
<sharkman> => EspnPbpBaseballSource (call 'EspnPbpBaseballSource.connection' to establish a connection)
<sharkman> irb(main):002:0> EspnPbpBaseballSource.all
<sharkman> (Object doesn't support #inspect)
yfeldblum has joined #ruby
<platzhirsch> I want to generate a random slug out of [0-9] and [a-z] and it should be unique based on a conesecutive number -> 1, 2, 3, 4.. etc would generate all unique slugs. Any ideas?
<jhass> platzhirsch: base36=
<jhass> ?
agent_white has quit [Client Quit]
agent_white has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
wldcordeiro has joined #ruby
agent_white has left #ruby [#ruby]
<centrx> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<sharkman> k thanks
j4cknewt_ has joined #ruby
<platzhirsch> jhass: ah well it should start with 5 characters
Olipro has quit [Ping timeout: 252 seconds]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
<jhass> platzhirsch: pad with leading zeros?
<wryfi> adaedra: it's a bug in chruby
sysx1000 has joined #ruby
<platzhirsch> doesn't look random :D sorry
blackmesa has quit [Ping timeout: 240 seconds]
<jhass> pad with random stuff then?
<jhass> well, gotta get hard to reconstruct then I guess :P
hanmac has joined #ruby
apt-get has joined #ruby
<platzhirsch> haha
j4cknewt has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
UtkarshRay has quit [Ping timeout: 240 seconds]
<shevy> who is going to get hard in here
Jackneill has joined #ruby
nickjj has joined #ruby
oddjob001 has joined #ruby
<oddjob001> hello all. question. how can I check a string against each/every string inside an array?
<platzhirsch> dude, better give me a CS solution to my problem shevy
<apeiros> oddjob001: depends. what do you want to check?
Hrorek has quit [Ping timeout: 244 seconds]
<shevy> platzhirsch .sample !
<apeiros> oddjob001: common methods are #include?, #any?, #all?, #none?, #one? etc.
<platzhirsch> that's just wrong
<oddjob001> apeiros: ooh might be all. let me go look at that. brb
krisquigley has joined #ruby
<shevy> platzhirsch can't you generate the whole sample and then just pick one from that?
<platzhirsch> no it's ongoing for newly generatated table entries
<apeiros> do we have the complete requirements on the slugs yet? :)
_aeris_ has quit [Ping timeout: 256 seconds]
<platzhirsch> Random strings consisting of numbers and letters (case-insensitive), length 5 characteres
<oddjob001> apeiros: basically if i have string = red and i have array = ['red' , 'blue', 'one', 'monkey'] I want that string to be checked against EACH/ALL of those. So it would return false because it doesnt match each of them
The_Phoenix has quit [Read error: Connection reset by peer]
<platzhirsch> for instance 7Hx53
CDunce has joined #ruby
workmad3 has joined #ruby
<apeiros> platzhirsch: you omitted the sequential this time :-p
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Sou|cutter> platzhirsch: are you going to generate it and save it so you can look it up, or does the same value have to generate the same slug every time?
dionysus69 has quit [Ping timeout: 272 seconds]
snockerton has quit [Quit: Leaving.]
<platzhirsch> Sou|cutter: the former one, but I guess the latter one would help to keep it unique
<apeiros> oddjob001: I'm confused. you want to test whether all items in array are `== string`?
nickjj has quit [Ping timeout: 240 seconds]
wryfi has left #ruby [#ruby]
<oddjob001> whether each/all yes. so if i had a conditional in my example it would fail because the string provided does not match ALL string in the array
sshuff is now known as sshuff|gone
howdoico1 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
<apeiros> oddjob001: you should not use "match" to describe "equal"
krisquigley has quit [Ping timeout: 244 seconds]
<apeiros> oddjob001: well, a) `ary.all? { |item| item == string }`, b) `ary.uniq == [string]`
freerobby1 has quit [Quit: Leaving.]
<oddjob001> apeiros: %w[string].all? { |word| word.include?('string') } - or would this be way off?
apt-get has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
<apeiros> that's horrible :)
<oddjob001> ok lol. its like my 2nd month with ruby :P
<apeiros> every .include? loops over the whole array
apt-get has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
<oddjob001> ah yes that wouldnt make sense
<apeiros> oh
<apeiros> wait
<apeiros> maybe I misunderstood
workmad3 has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
<platzhirsch> Sou|cutter: right it should kinda work like a URL shortener, as seen on bitly or twitter
_aeris_ has joined #ruby
snockerton has joined #ruby
last_staff has quit [Quit: last_staff]
RobertBirnie has joined #ruby
sysx1000 has left #ruby [#ruby]
<oddjob001> %w[red white blue].all? { |word| word == 'red' } ?
ragingcake has quit [Quit: ragingcake]
<oddjob001> lol
tvw has joined #ruby
<apeiros> yes
ericjphillips has joined #ruby
<oddjob001> that would iterate over each string in the array and return true only if they all matched red ?
<apeiros> if they're all equal to 'red'. yes.
<oddjob001> apeiros: perfect. tyvm
<apeiros> yw
<platzhirsch> This explains a good implementation I reckon https://en.wikipedia.org/wiki/URL_shortening#Techniques
karapetyan has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 240 seconds]
andyrs has joined #ruby
c0m0 has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
luksaur has quit [Ping timeout: 246 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dasher00 has joined #ruby
havenwood has joined #ruby
OrbitalKitten has joined #ruby
<apeiros> platzhirsch: what was wrong with base36 or 62 again?
tomphp has joined #ruby
<platzhirsch> apeiros: :- ) nothing, I guess I was missing a bijective function to make it longer
<apeiros> huh?
freerobby has quit [Quit: Leaving.]
postmodern has joined #ruby
subscope has joined #ruby
<platzhirsch> well, I don't know..
<platzhirsch> using just base36 I would end up with something like "5" for input id = 5, maybe I need to bring it into a higher plane of numbers
<apeiros> either add 10000 or pad
<apeiros> I think padding was suggested already
face has joined #ruby
OrbitalKitten has quit [Ping timeout: 256 seconds]
faces has quit [Ping timeout: 272 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
cb_ has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
suchness has quit [Ping timeout: 268 seconds]
naftilos76 has joined #ruby
nickjj has joined #ruby
baweaver has joined #ruby
skinkitten has joined #ruby
mjuszczak has quit []
tjohnson has quit [Quit: Connection closed for inactivity]
Zai00 has joined #ruby
Zai00 has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 252 seconds]
<platzhirsch> yeah sorry, I didn't think it through :)
yfeldblum has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
<apeiros> platzhirsch: bijective_ there is redundant
<apeiros> decode/encode already expresses that
<Ox0dea> oddjob001: Using "match" and "equal" interchangeably is not the best idea.
<platzhirsch> apeiros: did you criticize the naming convention he chosen?
<apeiros> yupp
<platzhirsch> good
<apeiros> now you confuse me :D
<platzhirsch> it's not my code :)
<apeiros> ok, so the other criticisms are pointless then? :D
dima_ has quit [Quit: This computer has gone to sleep]
luksaur has joined #ruby
elperdut has joined #ruby
<Ox0dea> platzhirsch: reddit uses auto-incrementing base-36 and gets along just fine.
<Ox0dea> Bothering about padding seems masochistic.
blackmesa has joined #ruby
elperdut has quit [Max SendQ exceeded]
krisquigley has joined #ruby
<shevy> don't indent!!!
<platzhirsch> Ox0dea: not if you're dealing with a smaller number of entities
<Ox0dea> platzhirsch: Why?
elperdut has joined #ruby
<platzhirsch> it's easy to say that for Reddit, they get shitloads of stuff in every second
<platzhirsch> but if you just have a couple of hundreds it doesn't look as nicely random to the outside
baweaver has quit [Remote host closed the connection]
<Ox0dea> What is "nicely random" and why is it good?
firstdayonthejob has joined #ruby
<shevy> hey wait a moment
<shevy> are you not playing nicely random games with ruboto here Ox0dea :)
<platzhirsch> Ox0dea: makes the impression to you that it's randomly generated
<apeiros> platzhirsch: just put some bitmask over it
<Ox0dea> shevy: No, I always get all Strings. :/
rbennacer has quit []
delianides has joined #ruby
CDunce has left #ruby ["Konversation terminated!"]
rbennacer has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
podman has joined #ruby
circ-user-FkDR0 has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
platzhirsch has left #ruby [#ruby]
beauby has joined #ruby
djbkd has quit [Remote host closed the connection]
j4cknewt has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
manfe has joined #ruby
baweaver has joined #ruby
Musashi007 has joined #ruby
djbkd has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has joined #ruby
malconis has joined #ruby
j4cknewt_ has quit [Ping timeout: 265 seconds]
gregf has quit [Quit: WeeChat 1.3]
tomphp has joined #ruby
<apeiros> damn platzhirsch. now I'm doing stupid things again.
webopsx has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
lkba has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
webopsx has quit [Max SendQ exceeded]
sanjayu has joined #ruby
vbatts|work has joined #ruby
startupality has quit [Quit: startupality]
thomskaf has joined #ruby
ips|malc has joined #ruby
ips|malc has quit [Client Quit]
bb010g has joined #ruby
vbatts|work has left #ruby ["found the other side of the rainbow"]
<thomskaf> Someone know how I can get webrick to not log requests for favicon.ico ?
Drakevr has joined #ruby
eminencehc has quit [Remote host closed the connection]
Zai00 has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
startupality has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
Igorshp has joined #ruby
Coldblackice has joined #ruby
dfockler has joined #ruby
rezzack has joined #ruby
andyrs has joined #ruby
startupality has quit [Client Quit]
tkuchiki has joined #ruby
youngbaks has joined #ruby
tjbiddle has joined #ruby
Igorshp has quit [Ping timeout: 240 seconds]
<shevy> you may have to modify the source
eminencehc has joined #ruby
<shevy> there is WEBrick::BasicLog and then there is Log
snockerton has quit [Quit: Leaving.]
<shevy> class Log seems to do the timestamps: @time_format = "[%Y-%m-%d %H:%M:%S]"
tkuchiki has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
benlieb has quit [Quit: benlieb]
disconnekted has joined #ruby
blt has joined #ruby
ndrei has joined #ruby
workmad3 has joined #ruby
s2013 has joined #ruby
djbkd has quit [Remote host closed the connection]
skinkitten has left #ruby ["Leaving"]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<thomskaf> Thank you, shevy - then I know what to look for :)
ragingcake has joined #ruby
pocketprotector has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
tjohnson has joined #ruby
arturmartins has joined #ruby
rdark has quit [Quit: leaving]
radgeRayden has quit [Read error: Connection reset by peer]
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> thomskaf: http://git.io/vnRLi
<Ox0dea> That's the method you'd need to modify.
arturmartins has quit [Client Quit]
pawnbox has quit [Ping timeout: 250 seconds]
<Ox0dea> Stick a `return if req.request_uri =~ /favicon/` in there somewhere.
karapetyan has joined #ruby
pothibo has joined #ruby
freerobby has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
snockerton has joined #ruby
naftilos76 has quit [Ping timeout: 265 seconds]
pulgolino has quit [Quit: WeeChat 0.4.2]
pragmatism has joined #ruby
jackjackdripper has joined #ruby
gregf has joined #ruby
yqt has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
pothibo has quit [Quit: pothibo]
Pupeno has quit [Remote host closed the connection]
<apeiros> meh. and now I have a slug generator with masking.
p0wn3d__ has quit [Ping timeout: 240 seconds]
catbusters has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
catbusters has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vifino has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
freerobby has joined #ruby
pocketprotector has joined #ruby
pawnbox has joined #ruby
vifino has joined #ruby
freerobby has quit [Client Quit]
blaxter has quit [Quit: foo]
howdoico1 has joined #ruby
disconnekted has quit []
thomskaf has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 260 seconds]
j4cknewt has joined #ruby
timonv has joined #ruby
mary5030 has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
shinnya has joined #ruby
Timba-as has joined #ruby
Coldblackice_ has joined #ruby
Coldblackice has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
pragmatism has quit [Remote host closed the connection]
pragmatism has joined #ruby
OrbitalKitten has joined #ruby
workmad3 has joined #ruby
sanjayu has quit [Quit: Leaving]
saddad has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
_aeris_ has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
godzillaenlacasa has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
dasher00 has quit [Quit: Leaving]
crack_user has quit [Quit: Leaving.]
jcoe has quit [Quit: Textual IRC Client: www.textualapp.com]
solars has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
mondayrain has quit [Quit: Leaving]
mary5030 has joined #ruby
JoshL has quit []
bruno- has joined #ruby
tejasmanohar has joined #ruby
tomphp has joined #ruby
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
benlieb has joined #ruby
_aeris_ has joined #ruby
wookiehangover has joined #ruby
leafybas_ has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
howdoico1 has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
howdoico1 has joined #ruby
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
andyrs has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
youngbaks has quit [Quit: WeeChat 1.3]
dhollinger has joined #ruby
kirun has quit [Quit: Client exiting]
luksaur has quit [Ping timeout: 240 seconds]
marr has quit []
andyrs has quit [Client Quit]
andyrs has joined #ruby
andyrs has quit [Client Quit]
andyrs has joined #ruby
delianides has quit []
sharkman has quit [Ping timeout: 246 seconds]
darkf has quit [Quit: Leaving]
andyrs has quit [Client Quit]
s2013 has quit [Read error: Connection reset by peer]
cmisenas has joined #ruby
dhollinger has quit [Client Quit]
kirun has joined #ruby
strax has joined #ruby
oitnelis has joined #ruby
strax is now known as sebstrax
willywos has joined #ruby
dmolina has joined #ruby
Musashi007 has quit [Quit: Musashi007]
phutchins has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
solars has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 264 seconds]
VeryBewitching has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jgpawletko has quit [Quit: jgpawletko]
bluOxigen has quit [Ping timeout: 240 seconds]
marr has joined #ruby
Zai00 has joined #ruby
momomomomo_ has joined #ruby
roxtrongo has quit [Remote host closed the connection]
roxtrongo has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
mprelude has quit [Ping timeout: 246 seconds]
leafybasil has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
workmad3 has joined #ruby
jottr has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
p0wn3d__ has joined #ruby
oitnelis has quit [Ping timeout: 268 seconds]
SylarRuby has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
<Technodrome> anyone here ever used mechnizee before for scraping web pages?
DoYouKnow has quit []
sharkman has joined #ruby
jgpawletko has joined #ruby
<centrx> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
niemcu has quit [Ping timeout: 265 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Stalkr_ has joined #ruby
<Stalkr_> Is there an easy way to figure out the minimum supported version of Ruby for your app? I just want to specifiy it in Gemfile or should I just use the latest?
DoubleMalt has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<abyss> General question;) When you write some script to automate something like some daily sys admin routine or so , you write it using class or just structured language?
<centrx> either
<centrx> Stalkr_, depends on what features used in the code
dhollinger has joined #ruby
<Stalkr_> centrx: There isn't an easy way to check what versions of Ruby is supported?
Kricir has quit [Remote host closed the connection]
<centrx> Stalkr_, Not that I know of. What's the app for?
ragingcake has quit [Quit: ragingcake]
<Stalkr_> Just a simple REST API using Grape, it isn't very important
<centrx> Seems like you're not distributing it to the public then, so just use the latest version
<centrx> or I guess it's a library?
<centrx> 1.9 and up are very similar
<Stalkr_> Just a little REST API being used internally for another site
dyleted has joined #ruby
dyleted has joined #ruby
<centrx> Have to check if the code uses keywords arguments or other things in 2.0 or 2.1 etc
ndrei has quit [Remote host closed the connection]
<Stalkr_> so just by me, could get by using the latest version, but just curious if I created a library some day
<Stalkr_> Would be neat with a library that could check it automatically though
vifino has quit [Ping timeout: 246 seconds]
<centrx> yes it would
ericjphillips has quit [Quit: Leaving.]
cajone has joined #ruby
ndrei has joined #ruby
vifino has joined #ruby
codecop has quit [Remote host closed the connection]
niemcu has joined #ruby
Musashi007 has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
OrbitalKitten has joined #ruby
DeweyD has joined #ruby
eminencehc has joined #ruby
DeweyD has left #ruby [#ruby]
dfockler has quit [Remote host closed the connection]
krisquigley has joined #ruby
Musashi007 has quit [Client Quit]
OrbitalKitten has quit [Client Quit]
dgutierrez1287 has joined #ruby
Musashi007 has joined #ruby
djbkd has quit [Remote host closed the connection]
havenwood has joined #ruby
eminencehc has quit [Ping timeout: 255 seconds]
crack_user has joined #ruby
workmad3 has joined #ruby
OrbitalKitten has joined #ruby
djbkd has joined #ruby
Balzrael has quit [Ping timeout: 260 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Client Quit]
Musashi007 has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
bender_unit has joined #ruby
OrbitalKitten has quit [Client Quit]
OrbitalKitten has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
failshell has joined #ruby
dgutierrez1287 has joined #ruby
djbkd has joined #ruby
helpa has quit [Remote host closed the connection]
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
helpa has joined #ruby
p0wn3d__ has quit [Ping timeout: 250 seconds]
DrCode has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
chills42 has quit [Remote host closed the connection]
RandyT has joined #ruby
benlieb has quit [Quit: benlieb]
krz has quit [Quit: WeeChat 1.2]
blt has quit [Ping timeout: 264 seconds]
Balzrael has joined #ruby
tw1sted has quit [Remote host closed the connection]
Technodrome has quit [Quit: Technodrome]
devoldmx has joined #ruby
MasterPiece has joined #ruby
DrCode has quit [Remote host closed the connection]
allomov has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
godzillaenlacasa has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
Kendos-Kenlen has joined #ruby
Technodrome has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
eminencehc has quit [Remote host closed the connection]
tekacs has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
[spoiler] has quit [Ping timeout: 246 seconds]
adamholt has quit [Ping timeout: 240 seconds]
Takumo has quit [Ping timeout: 250 seconds]
allomov has quit [Remote host closed the connection]
moeabdol1 has joined #ruby
benlieb has joined #ruby
EvilJStoker has quit [Ping timeout: 256 seconds]
JoL1hAHN has quit [Ping timeout: 246 seconds]
JStoker has quit [Ping timeout: 256 seconds]
rj-code has quit [Ping timeout: 256 seconds]
adamholt has joined #ruby
MasterPiece has quit [Remote host closed the connection]
Takumo has joined #ruby
Takumo has joined #ruby
rj-code has joined #ruby
craysiii has joined #ruby
maletor has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
ray____ has joined #ruby
lele has quit [Ping timeout: 240 seconds]
Oka has quit [Quit: o/]
pawnbox has quit [Remote host closed the connection]
ray____ has quit [Client Quit]
blt has joined #ruby
cndiv has joined #ruby
stamina has joined #ruby
failshell has quit [Remote host closed the connection]
tekacs has joined #ruby
JStoker has joined #ruby
dgutierrez1287 has quit [Read error: Connection reset by peer]
JoL1hAHN has joined #ruby
nettoweb has joined #ruby
Guest59784 has joined #ruby
[spoiler] has joined #ruby
<tubbo> Stalkr_: `bundle gem modernizr` ;()
<tubbo> ;)*
[Butch] has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
Guest59784 has quit [Excess Flood]
lele has joined #ruby
EvilJStoker_ has joined #ruby
[Butch] has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
failshell has quit [Client Quit]
<Stalkr_> tubbo: Doubt I'm able to make something like that :-)
dhollinger has quit [Quit: leaving]
skullcrasher has joined #ruby
syath has quit [Quit: WeeChat 1.2]
dhollinger has joined #ruby
umgrosscol has joined #ruby
howdoico1 has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Quit: Leaving]
elperdut has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
snockerton1 has joined #ruby
dhollinger has quit [Client Quit]
snockerton has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
finisherr has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tobyx has joined #ruby
dhollinger has joined #ruby
startupality has joined #ruby
Juanchito has joined #ruby
tomphp has joined #ruby
dhollinger has joined #ruby
elektronaut has quit [Ping timeout: 240 seconds]
Morrolan has quit [Ping timeout: 250 seconds]
tobyx_ has quit [Remote host closed the connection]
Drakevr has quit [Ping timeout: 240 seconds]
p7r has quit [Ping timeout: 240 seconds]
tw1sted has joined #ruby
canton7 has quit [Ping timeout: 240 seconds]
Ketchy has joined #ruby
n008f4g_ has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
Takumo has quit [Ping timeout: 240 seconds]
elektronaut has joined #ruby
Ketchy has quit [Client Quit]
dholling1r has joined #ruby
kaspergrubbe has joined #ruby
p7r has joined #ruby
Drakevr has joined #ruby
krisquigley has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
Morrolan has joined #ruby
canton7 has joined #ruby
canton7 has quit [Changing host]
canton7 has joined #ruby
frmendes has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
dhollinger has quit [Ping timeout: 252 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamesaxl has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
Ketchy has joined #ruby
EvilJStoker_ is now known as EvilJStoker
dholling1r has quit [Quit: leaving]
prasselpikachu_ is now known as prasselpikachu
NeverDie has joined #ruby
dhollinger has joined #ruby
Ketchy has quit [Quit: Leaving]
snockerton has joined #ruby
snockerton1 has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
skullcrasher has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 255 seconds]
blt has quit [Quit: WeeChat 1.3]
startupality has joined #ruby
baweaver has joined #ruby
dhollinger has quit [Client Quit]
dhollinger has joined #ruby
Musashi007 has joined #ruby
<dfockler> >> ~3 #huh?
<ruboto> dfockler # => -4 (https://eval.in/436984)
<dfockler> Inverse minus one operator?
unop has quit [Ping timeout: 265 seconds]
oddjob001 has quit [Read error: Connection reset by peer]
<jhass> binary complement
rurik has joined #ruby
phutchins has joined #ruby
<dfockler> ahh haha thanks
jobewan has joined #ruby
baweaver has quit [Remote host closed the connection]
<Sou|cutter> out of curiousity, is there a way to tell if send(:remove_const, "Foo") will fail? const_defined? can return true if you inherit from a class that defines a constant, but you (rightfully) get a NameError trying to remove it
yardenbar has joined #ruby
<Sou|cutter> >> class A; B=1; end; class C < A; end; C.const_defined?(:B)
<ruboto> Sou|cutter # => true (https://eval.in/436985)
<Sou|cutter> >> class A; B=1; end; class C < A; end; C.send(:remove_const, :B)
<ruboto> Sou|cutter # => constant C::B not defined (NameError) ...check link for more (https://eval.in/436986)
mary5030 has quit [Remote host closed the connection]
momomomomo has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
naftilos76 has joined #ruby
eminencehc has joined #ruby
<jhass> >> class A; B=1; end; class C < A; end; const_defined?("C::B")
<ruboto> jhass # => undefined method `const_defined?' for main:Object (NoMethodError) ...check link for more (https://eval.in/436987)
<jhass> >> class A; B=1; end; class C < A; end; Object.const_defined?("C::B")
<ruboto> jhass # => false (https://eval.in/436988)
dhollinger has quit [Quit: leaving]
<jhass> >> class A; B=1; end; class C < A; end; C.constants
<ruboto> jhass # => [:B] (https://eval.in/436989)
jpiche has joined #ruby
vdamewood has joined #ruby
<jhass> mh
dhollinger has joined #ruby
<jhass> ah
<jhass> >> class A; B=1; end; class C < A; end; C.const_defined?(:B, false) # Sou|cutter
<ruboto> jhass # => false (https://eval.in/436990)
<jhass> reading docs helps ^.^
Voker57 has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 265 seconds]
howdoico1 has joined #ruby
<Sou|cutter> ahhh ha!
dhollinger has quit [Quit: leaving]
dhollinger has joined #ruby
dhollinger has quit [Remote host closed the connection]
<dfockler> I didn't know you can index into the bits of a fixnum
Igorshp has joined #ruby
dhollinger has joined #ruby
crack_user has quit [Quit: Leaving.]
dhollinger has quit [Read error: Connection reset by peer]
jottr has joined #ruby
arup_r has quit [Quit: Leaving]
dhollinger has joined #ruby
dhollinger has quit [Remote host closed the connection]
dhollinger has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
allcentury has quit [Ping timeout: 240 seconds]
mondayrain has joined #ruby
<jhass> yeah, it's great for when you think you have an array but actually have a number. yay ducktyping!
Musashi007 has joined #ruby
karapetyan has joined #ruby
allomov has joined #ruby
eminencehc has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 256 seconds]
eminencehc has joined #ruby
troyready has quit [Quit: Leaving]
mwlang has joined #ruby
<Ox0dea> >> -1[Float::MAX]
<ruboto> Ox0dea # => 1 (https://eval.in/437004)
<Ox0dea> Your abstractions are leaking!
JimmyNeutron has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang> I’m re-implementing an old Ruby SOAP app that makes use of http://ruby-doc.org/stdlib-1.8.7/libdoc/soap/rdoc/SOAP/EncodingStyle/ASPDotNetHandler.html
<mwlang> This library isn’t documented, so I’m wondering if anybody has a clue what this library does.
<adaedra> The only soap that won't make you clean
KnownSyntax_ has quit [Quit: Leaving]
KnownSyntax_ has joined #ruby
<mwlang> heh. Definitely getting my hands dirty with this one.
jmignault has quit [Quit: rcirc on GNU Emacs 24.5.1]
karapetyan has quit [Ping timeout: 256 seconds]
KnownSyntax_ has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 240 seconds]
KnownSyntax has joined #ruby
allomov has quit [Remote host closed the connection]
<mwlang> ouch: ASPDotNetHandler is intended to be used for accessing an ASP.NET doc/lit service as an rpc/encoded service. in the situation, local elements should be qualified. propagate parent's namespace to children.
momomomomo has quit [Ping timeout: 240 seconds]
rurik has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
rurik has joined #ruby
ldnunes has quit [Quit: Leaving]
nzst has quit [Ping timeout: 240 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
Musashi007 has quit [Quit: Musashi007]
Soda has quit [Remote host closed the connection]
solocshaw has joined #ruby
tkuchiki has joined #ruby
FernandoBasso has joined #ruby
workmad3 has joined #ruby
sharkman has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
troyready has joined #ruby
vipaca has joined #ruby
Pupeno has quit [Remote host closed the connection]
Cache_Money has left #ruby [#ruby]
riceandbeans has joined #ruby
<riceandbeans> question
umgrosscol has quit [Quit: End of Line]
<riceandbeans> if array.include(foo) will check for a literal match of exactly foo in an array element, how do I check for a partial match
<riceandbeans> like....let's say the array is ['foo', 'bar', 'baz']
<apeiros> riceandbeans: what's a "partial match"?
<riceandbeans> let's say I want to match against 'ba'
<riceandbeans> sa bar and baz would pass the true test
workmad3 has quit [Ping timeout: 240 seconds]
<apeiros> you can use array.any? with a block to test for any predicate of your choice
<riceandbeans> so if the array contains anything with 'ba'
<apeiros> .include? doesn't test for a "literal match" btw., it tests against ==
<riceandbeans> ok, I'm sorry my phrasing was incorrect
<riceandbeans> so array.any?('ba') should return true?
<adaedra> any? takes a block
apt-get has quit [Remote host closed the connection]
<adaedra> so you have to write a block which test what you are looking for
<Ox0dea> See! #any? and friends need to be more like #grep. :(
tomphp has joined #ruby
Jackneill has quit [Remote host closed the connection]
<adaedra> There's a `#grep`?
<Ox0dea> Yes, it's like #select, but it uses case equality.
<Ox0dea> It's great.
<adaedra> nice
<Ox0dea> >> %w[foo bar baz].grep(/a/)
<ruboto> Ox0dea # => ["bar", "baz"] (https://eval.in/437007)
<Ox0dea> >> [1, 2.3, 'foo', :bar, 1i].grep(Numeric)
<ruboto> Ox0dea # => [1, 2.3, (0+1i)] (https://eval.in/437008)
tomphp has quit [Client Quit]
<Ox0dea> We should be able to say `all?(Numeric)` and the like, I feel.
<toretore> yeah, writing your own predicate is such a hassle
<dfockler> That would be nice
craysiii has quit [Remote host closed the connection]
bigbadbear has quit [Ping timeout: 244 seconds]
niemcu has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
<adaedra> &ri Array#any? Array#grep @riceandbeans
<adaedra> hum, ruby.
<adaedra> &ri Enumerable#any? *
benlieb has quit [Quit: benlieb]
yardenbar has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
<Ox0dea> >> %i[any? all? one? none?].select { |m| [].method(m).owner == Enumerable }
<ruboto> Ox0dea # => [:all?, :one?, :none?] (https://eval.in/437009)
<riceandbeans> so, I want a true/false return from checking to see if /foo/ is within the results somehow
decoponyo has quit [Quit: Leaving...]
tomphp has joined #ruby
<adaedra> well, either you make a block to any?, either you adapt Ox0dea example and use grep
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
<dfockler> what's the rationale for =~ returning the index or nil?
<riceandbeans> >> ['foo', 'bar', 'baz'].grep?(/ba/)
<ruboto> riceandbeans # => undefined method `grep?' for ["foo", "bar", "baz"]:Array (NoMethodError) ...check link for more (https://eval.in/437010)
dmolina has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
dmolina has joined #ruby
<Ox0dea> dfockler: What would you prefer it returned?
<dfockler> true or false?
cndiv has quit [Quit: Be back later ...]
<Ox0dea> So... less information?
<dfockler> Yeah
<Ox0dea> Why?
<riceandbeans> grep on command line can be true/false for output
<riceandbeans> here's my rationale....
<riceandbeans> action 1 creates array with a series of things
mjuszczak has joined #ruby
<Ox0dea> Too many words.
naftilos76 has quit [Remote host closed the connection]
<Ox0dea> Stop and think about what you really need to say.
<riceandbeans> action 2 checks to see if system running this script is in the array of stuff in action 1
<riceandbeans> if it is, it runs some other code
yfeldblum has quit [Read error: Connection reset by peer]
<riceandbeans> but action 1 isn't giving back data in the exact way I antipated
<riceandbeans> I thought it was going to literally be column value from a mysql call
howdoico1 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<riceandbeans> it's a mysql type with a hash inside and the keys being the column name
quazimodo has joined #ruby
banjara has quit [Read error: Connection reset by peer]
axl__ has joined #ruby
banjara has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
howdoico1 has joined #ruby
<toretore> how about you show us some real code and data riceandbeans ?
axl_ has quit [Ping timeout: 246 seconds]
axl__ is now known as axl_
mondayrain has quit [Remote host closed the connection]
<Ox0dea> We're out of paint, and we were gonna do a shade of brown anyway; let him keep going.
chipotle has joined #ruby
<dfockler> Ox0dea: I guess =~ operates the same as true and false but the extra info can be used like you said
workmad3 has joined #ruby
<Ox0dea> dfockler: Right, there are many methods like this.
<Ox0dea> Greater information density is a Good Thing.
crack_user has joined #ruby
bender_unit has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
dhollinger has quit [Client Quit]
<riceandbeans> .any? seems to be returning true for everything
<Ox0dea> >> [false, nil].any?
<ruboto> Ox0dea # => false (https://eval.in/437012)
<Ox0dea> >> [false, nil].any? { |element| element == false }
<ruboto> Ox0dea # => true (https://eval.in/437013)
<adaedra> >> %w[foo bar baz].any? {
<ruboto> adaedra # => /tmp/execpad-424d3e651770/source-424d3e651770:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/437014)
<Ox0dea> Well done.
<adaedra> grmbl
<adaedra> >> %w[foo bar baz].any? { |e| e == 'failure' }
<ruboto> adaedra # => false (https://eval.in/437015)
victortyau has quit [Quit: Leaving]
<adaedra> Blame the french keyboards I have to use at work with their two-line return key.
bkulbida has quit [Ping timeout: 265 seconds]
<Ox0dea> apeiros: It would be better if the eval.in link weren't appended for simple returned expressions; it's just noise in such cases.
Stalkr_ has quit [Quit: Leaving...]
baweaver has joined #ruby
<riceandbeans> >> ['foo', 'bar', 'baz'].each { |x| x =~ /magicalness/ }.any?
<ruboto> riceandbeans # => true (https://eval.in/437016)
<Ox0dea> ruboto: That's not how #each works.
<Ox0dea> riceandbeans: ^ You want #map.
<Ox0dea> Or just use #any? correctly.
<riceandbeans> I'm trying
<adaedra> here you pass the block as argument to each
<adaedra> and call any? on the result of each
<dfockler> >> ["huh", "wut"].grep(/wu/)
<ruboto> dfockler # => ["wut"] (https://eval.in/437018)
Newtonianb has joined #ruby
<toretore> >> ['foo', 'bar', 'baz'].any?{|w| w =~ /ba/ } # riceandbeans
<ruboto> toretore # => true (https://eval.in/437020)
<toretore> >> ['foo', 'bar', 'baz'].any?{|w| w =~ /bab/ } # riceandbeans
<ruboto> toretore # => false (https://eval.in/437021)
yfeldblum has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
dfinninger has joined #ruby
baweaver has quit [Ping timeout: 244 seconds]
<riceandbeans> in looks like it works here but on my data object it's failing
<riceandbeans> it's a mysql query result from mysql2
JimmyNeutron has joined #ruby
SylarRuby has quit [Remote host closed the connection]
ragingcake has joined #ruby
<toretore> riceandbeans: as i said: show us the code.
<riceandbeans> I have DB queries in the code, I can't copy paste that
kies^ has quit [Ping timeout: 260 seconds]
ebragaparah has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Wolland has joined #ruby
polly_wog has joined #ruby
sharkman has joined #ruby
<sharkman> whats the name of the rails channel!?
yfeldblum has quit [Read error: Connection reset by peer]
<Ox0dea> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<sharkman> can i ask a question about rails here or would you shoot me
<Ox0dea> I would burn you.
bender_unit has joined #ruby
yfeldblum has joined #ruby
<riceandbeans> I would put you incorrectly in a .any? method and let ruby segfault you out
<Ox0dea> riceandbeans: You're getting segfaults in your attempts to use #any? on some MySQL thing?
<sharkman> oh shit
<sharkman> okay
<jhass> okay I can see why people claim this channel is hostile now I guess
<sharkman> this channel is SUPER hostile
<riceandbeans> Ox0dea: no, I was trying to make a funny
<riceandbeans> I guess I failed
<havenwood> Hi folk, happy afternoon!
polishdub has quit [Quit: Leaving]
<dfockler> bring in the jhass! the channel getting crazy
<Ox0dea> jhass: GIGO, in this case.
<Ox0dea> I'm usually a very helpful person, but sharkman is a known semi-troll.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sharkman> what does this mean
devoldmx has joined #ruby
<sharkman> But the original developers had made some poor decisions, and you could see that if the same idioms were followed much more, the system would start to follow what is a common Rails progression, calcifying as heavy coupling starts to make it more and more difficult to make small changes without negatively influencing other parts
rezzack has quit [Ping timeout: 246 seconds]
<sharkman> why is that a common pattern in ruby? what is heavy coupling?
<riceandbeans> it means there is more magic than some people like and some people think the extra magic is detrimental
<jhass> Ox0dea: I see
<sharkman> well they say that it slows development
<sharkman> how would magic slow development
<riceandbeans> I think they mean more that it slows performance
mary5030 has joined #ruby
Wolland_ has joined #ruby
<riceandbeans> but you shouldn't care about performance of a product that doesn't exist or you don't finish because you had to do too much work
<havenwood> Ox0dea: Part man, part shark... I guess we should expect it bites. ;)
<sharkman> yeah but why, what is special about ruby that causes that
<riceandbeans> it's not
<ragingcake> sharkman, coupling is measure of dependency betwen modules/classes. Ideally we strive for loose coupling.
<sharkman> oh thats what the article contends
<sharkman> oh i see
TheHodge has joined #ruby
<toretore> 10 Ways In Which You Would Not Believe Rails Is Detrimental To Your Developer Experience
Guest39549 has left #ruby ["WeeChat 1.3-dev"]
<havenwood> sharkman: Are you familiar with the difference between monoliths and microservices?
<sharkman> no
devoldmx has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
Wolland has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
sebstrax has quit [Quit: Connection closed for inactivity]
Timba-as has quit [Quit: Be back later ...]
RandyT has quit [Quit: ZNC - http://znc.in]
Timba-as has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
<ragingcake> The 12 Factor App is also an interesting read, http://12factor.net
Timba-as has quit [Client Quit]
tiagonobre has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
inteq has quit [Remote host closed the connection]
<dfockler> POODR!
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
RandyT has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
oitnelis has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
Zai00 has quit [Quit: Zai00]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Balzrael has quit [Quit: Leaving]
phutchins has quit [Ping timeout: 240 seconds]
mjuszczak has quit []
<shevy> POODLE!
sanguisdex has quit [Ping timeout: 250 seconds]
spcmastertim has quit [Ping timeout: 264 seconds]
NeverDie has quit [Quit: http://radiux.io/]
weemsledeux has joined #ruby
<sharkman> what does this mean
<sharkman> This is all symptomatic of the Rails world only now just coming to terms with some of the Domain Driven Design concepts of Services, and at the same time having the project leader stand behind a really badly thought out approach to handling complex large software projects.
tkuchiki has quit [Remote host closed the connection]
platzhirsch has joined #ruby
benlieb has joined #ruby
<platzhirsch> Oh dear, 700 more HN headlines to read, please help
djbkd has joined #ruby
[k- has quit [Quit: -a- IRC for Android 2.1.23]
<sharkman> what is domain driven design concept mean
Pathfinder has joined #ruby
dmolina has quit [Quit: Leaving.]
cmisenas has quit [Quit: cmisenas]
ferz_ has joined #ruby
<toretore> what does anything mean really
<platzhirsch> sharkman: It means if you don't own <name of your startup>.com, you should rename your startup
mjuszczak has joined #ruby
willywos has quit [Ping timeout: 250 seconds]
NeverDie has joined #ruby
ramfjord has joined #ruby
baweaver has joined #ruby
<Ox0dea> platzhirsch: Are you pg?
charliesome has joined #ruby
<sharkman> yikes
<platzhirsch> Is that a rhetorical question?
mahuebel has left #ruby [#ruby]
<shevy> sharkman I guess he means to design around typical rails idioms
jgt1 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch> Ox0dea: I know this post, cheers
axl_ has quit [Quit: axl_]
<sharkman> what is a typical rails idiom
<Ox0dea> platzhirsch: I know you know this post.
jottr has joined #ruby
<platzhirsch> I knew you would know that I know this post
<shevy> sharkman if you look at typical rails code you see that they use all sorts of strange voodoo
<shevy> has :mice, eats :dogs, use :chicken_bones
dfockler has quit [Remote host closed the connection]
<ragingcake> shevy, it’s MVC how is this voodoo it facilitates implmenting a common desing pattern.
<shevy> link to: :naughties
opensource_ninja has joined #ruby
<shevy> see sharkman? they even talk in strange ways
wildlander has quit [Quit: Saliendo]
<ragingcake> shevy, given your stature yes.
<Ox0dea> His stature?
<sharkman> yes interesting
ferz_ has quit [Quit: Leaving]
<Ox0dea> shevy: How tall are you?
<shevy> a proud 185cm!
<ragingcake> it was worth a try.
startupality has quit [Quit: startupality]
<riceandbeans> holy smoke
<riceandbeans> 18.5 hectameters?
<toretore> mvc is one pattern. rails is a large framework that utilizes many.
startupality has joined #ruby
rbennacer has quit [Remote host closed the connection]
bkulbida has joined #ruby
<Ox0dea> riceandbeans: shevy is almost 1.9555e-16 lightyears tall!
<bougyman> rails is MVC meets Frank Sinatra.
umgrosscol has joined #ruby
<bougyman> "My Way"
<shevy> Ox0dea I can't talk about physics anymore, I watched Interstellar...
<Ox0dea> On the movie night that I might've seen Interstellar, I picked Gravity instead.
mwlang has quit [Quit: mwlang]
RandyT has quit [Quit: ZNC - http://znc.in]
rbennacer has joined #ruby
dopamean_ has quit [Ping timeout: 265 seconds]
<shevy> good call, that way Sanity was preserved
spider-mario has quit [Remote host closed the connection]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Did seeing Interstellar make you question the very foundation of existence?
startupality has quit [Client Quit]
jottr has quit [Quit: WeeChat 1.3]
startupality has joined #ruby
dfinninger has quit []
RandyT has joined #ruby
Musashi007 has joined #ruby
cornerma1 has joined #ruby
roxtrongo has joined #ruby
<Ox0dea> Oh, time dilation.
crack_user has quit [Quit: Leaving.]
rattatmatt has joined #ruby
<baweaver> I watch Doctor Who, screw your notions of spacetime
<shevy> it broke the moment the astronauts had to explain to each other what a black hole was
<Ox0dea> shevy: Nothing's really touching.
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
umgrosscol has quit [Quit: End of Line]
rakm has joined #ruby
rurik has quit [Ping timeout: 268 seconds]
beauby has quit [Ping timeout: 244 seconds]
<Ox0dea> Electrostatic repulsion makes electrons be like "gimme my space", and they always oblige one another.
bender_unit has quit [Ping timeout: 240 seconds]
mondayrain has joined #ruby
dfockler has joined #ruby
<shevy> halfway through I was rooting for Matt Damon
<Ox0dea> Who is his opponent?
<dfockler> Matt Nomad
glundgren has joined #ruby
<glundgren> hey guys
cndiv has joined #ruby
<glundgren> good evening
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<glundgren> i have a question about gsub
<glundgren> var = "_0x6389[0] - _0x6389[1]"; arr = ['str1', 'str2']; puts var.gsub(/_0x6389\[(\w)\]/, arr['\1'.to_i])
_blizzy_ has joined #ruby
<glundgren> it only gets the first match occurency
<Ox0dea> glundgren: Do you solemnly swear that you're up to no good?
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<glundgren> ?
<glundgren> i think its a bug
rbennacer has quit [Remote host closed the connection]
<Ox0dea> glundgren: Where did you get that string?
djbkd has quit [Remote host closed the connection]
<glundgren> im trying to reverse eng a js
<Ox0dea> I knew it.
RandyT has quit [Quit: ZNC - http://znc.in]
<glundgren> so, do you see, why it only gets the first ocurrence?
<glundgren> if i use it out of the arr[]
startupality has quit [Quit: startupality]
<glundgren> it writes correctly
<glundgren> theres anything im missing?
djbkd has joined #ruby
bkulbida has quit [Ping timeout: 246 seconds]
<baweaver> morality
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
<glundgren> guys, im not using this javascript for anything
<glundgren> im just trying to learn using gsub
<glundgren> a friend showed me a js obfuscated
mjuszczak has quit []
<glundgren> i went into the topic
blackmesa has quit [Ping timeout: 240 seconds]
<glundgren> and i found a opportunity to learn about regex and gsub
RandyT has joined #ruby
<glundgren> dont say i have no morals
cndiv has quit [Ping timeout: 240 seconds]
<glundgren> asshole
<havenwood> glundgren: Be nice.
<baweaver> not very nice
<glundgren> he said i have no morality man
<glundgren> im a man
<glundgren> respect
<shevy> I usually refine the regex on rubular.com
<dfockler> ^
<dfockler> also we shouldn't condemn someone until we know the context in which they are working with the code
diegoviola has joined #ruby
<Ox0dea> glundgren: The most moral thing to do in this scenario would be to link us to this obfuscated JavaScript.
<shevy> glundgren you use only one () ?
<shevy> rubular.com/r/RjnHvh3V8p
baweaver has quit [Remote host closed the connection]
mondayrain has quit [Quit: Leaving]
<glundgren> shevy
<glundgren> i was on rubular
<glundgren> i mean, the gsub works
freerobby has joined #ruby
<glundgren> it returns me the matches correctly
cschneid_ has quit [Remote host closed the connection]
<glundgren> but if i put it on a arr['\1'.to_i]
<glundgren> it gets me only the first \1
<glundgren> it repeats
wldcordeiro has quit [Ping timeout: 264 seconds]
<glundgren> you know
kirun has quit [Quit: Client exiting]
dopie has quit [Quit: This computer has gone to sleep]
<glundgren> this var = "_0x6389[0] - _0x6389[1]"; arr = ['str1', 'str2']; puts var.gsub(/_0x6389\[(\w)\]/, arr['\1'.to_i])
<Ox0dea> glundgren: '\1'.to_i isn't doing what you think it's doing.
<Ox0dea> >> nil.to_i
<glundgren> returns this: str1 - str1
<ruboto> Ox0dea # => 0 (https://eval.in/437032)
<glundgren> var = "_0x6389[0] - _0x6389[1]"; arr = ['str1', 'str2']; puts var.gsub(/_0x6389\[(\w)\]/, '\1')
<glundgren> returns this: 0 - 1
<Ox0dea> Yes, '\1' only has special meaning in simple substitutions.
<shevy> glundgren hmm have you tried the {} variant of .gsub ?
allcentury has joined #ruby
<glundgren> shevy, like gsup(/whatever/) { |number| arr[number] }
<glundgren> ?
<shevy> yeah
karapetyan has joined #ruby
<glundgren> let me try
<shevy> gsub not gsup
<shevy> it's not wassup :D
<toretore> >> '\1'.to_i
<ruboto> toretore # => 0 (https://eval.in/437033)
<glundgren> yeah sorry :)
<toretore> "_0x6389[0] - _0x6389[1]"; arr = ['str1', 'str2'].gsub(/_0x6389\[(\w)\]/, arr[0])
<glundgren> so, it gives me the same result
<toretore> >> "_0x6389[0] - _0x6389[1]"; arr = ['str1', 'str2'].gsub(/_0x6389\[(\w)\]/, arr[0])
<ruboto> toretore # => undefined method `[]' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/437034)
<toretore> >> arr = ['str1', 'str2']; "_0x6389[0] - _0x6389[1]".gsub(/_0x6389\[(\w)\]/, arr[0])
<ruboto> toretore # => "str1 - str1" (https://eval.in/437035)
tejasmanohar has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
<Ox0dea> glundgren: Unless your #gsub replacement is a simple String, '\1' is not special; it's just a String of length 2.
<toretore> >> arr = ['str1', 'str2']; "_0x6389[0] - _0x6389[1]".gsub(/_0x6389\[(\w)\]/){ arr[$1.to_i] }
<ruboto> toretore # => "str1 - str2" (https://eval.in/437036)
<glundgren> $1 ?
<Ox0dea> Or the argument yielded to the block, but yeah, $1 is fine.
kidoz has joined #ruby
<Ox0dea> >> 'abc'.gsub(/\w/) { |m| m.hex }
<ruboto> Ox0dea # => "101112" (https://eval.in/437037)
Rickmasta has joined #ruby
<glundgren> nice ox0
<glundgren> thats correct
<Ox0dea> >> 'abc'.gsub(/\w/, &:hex) # or even this madness
<ruboto> Ox0dea # => "101112" (https://eval.in/437038)
karapetyan has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has quit [Remote host closed the connection]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<glundgren> and baweaver, you dont look like a very tough guy...
<glundgren> i believe you never said this kind of stuff face to face to a guy, right?
<glundgren> i believe you dont have courage
tejasmanohar has quit [Ping timeout: 260 seconds]
<glundgren> you look weak
<toretore> $1 and m are not the same
<toretore> glundgren: stop it with the bs
workmad3 has joined #ruby
<glundgren> toretore: ok
AlexAltea has quit [Ping timeout: 244 seconds]
shellie_ has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
yqt has quit [Ping timeout: 250 seconds]
jgt1 has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
weemsledeux has joined #ruby
cantaberry has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
<glundgren> toretore: sorry, but im kind of old school, i dont admit this kind of behaviour with me or my friends, you know
rakm has joined #ruby
Jardayn has quit [Quit: Leaving]
<glundgren> toretore: and that's something the first world is missing, some balls to fight these spoiled kids that hides behind a curtain of politically correctness
workmad3 has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
djbkd has quit [Remote host closed the connection]
roxtrongo has quit [Read error: Connection reset by peer]
roxtrong_ has joined #ruby
dyleted has quit [Ping timeout: 244 seconds]
<toretore> glundgren: so you're a macho dickhead who makes up for lack of self esteem by being an asshole
<Ox0dea> Headshot.
<glundgren> toretore: man, my self esteem is great
<glundgren> its the politically correctness that is killing me
<glundgren> its a disease spreading through the world
<glundgren> to hide totalitarian mindsets and makes them protected
<toretore> your self esteem is not great if it depends on external affirmation
<glundgren> toretore: im pretty good, yeah
<glundgren> really :)
chouhoulis has joined #ruby
<glundgren> but this macho mindset is what lacks
<Ox0dea> glundgren: Any relation to Dolph?
<toretore> no, you revealed that you have low self esteem because you were offended
<glundgren> Ox0dea: hahaha
<Ox0dea> I wasn't being facetious?
ICantCook has joined #ruby
<glundgren> toretore: man, morals is something very important for me
<glundgren> my country is deep in corruption
Newtonianb has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 250 seconds]
<glundgren> its a topic that is very sensitive for most of use
<glundgren> us
<Ox0dea> Morality is objective, you say?
<glundgren> in the last years
nzst has joined #ruby
baweaver has joined #ruby
<glundgren> morality is the ethic you have to yourself
<glundgren> when you re alone
tejasmanohar has joined #ruby
<glundgren> and nobody is wathing you
<glundgren> :)
<glundgren> morality, ethic, courage
<Ox0dea> glundgren: By your logic, we shouldn't do anything we wouldn't do if we were the only sentient being in existence?
<glundgren> its something that is fading away
<glundgren> depends on your morality ox
<Ox0dea> Yes, I'm specifically asking about yours.
circ-user-FkDR0 has quit [Remote host closed the connection]
<glundgren> but yes, i usually dont do what i doesnt want others do with me
<Ox0dea> That's not what I asked you.
drewvanstone has quit [Ping timeout: 268 seconds]
<glundgren> well
<Ox0dea> > when you re alone... and nobody is wathing you
djbkd has joined #ruby
<glundgren> if youre the only human being on earth
<glundgren> morality lost its values
<Ox0dea> Exactly.
<eam> glundgren: we are PC bros here, join our frat or get hazed
<Ox0dea> You concede that your original proposition was retarded.
<glundgren> absolutely not
<glundgren> hahaha 7 billion people dont allows it
nzst has quit [Ping timeout: 256 seconds]
<glundgren> but if you want to live without morality, no problem
<glundgren> but i want to develope some values
<glundgren> 'macho' values
<glundgren> its something personal
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has quit [Remote host closed the connection]
<eam> glundgren: you can be macho and PC -- in fact most are
<glundgren> what is pc?
<snockerton> lol, suddenly #ruby has turn into #bash
<eam> politically correct
<glundgren> no eam
<eam> south park recently did an entire episode about it
<snockerton> with fewer F bombs
* baweaver sighs
<glundgren> i cant agree with tought police
rcvalle has quit [Quit: rcvalle]
<glundgren> we here where i live
<glundgren> are in deep sh* because of this thing
Technodrome has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
<glundgren> and united states kind of is losting its freedom
Kallis has quit [Read error: Connection reset by peer]
<glundgren> because of that too
<glundgren> losing*
<baweaver> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
Technodrome has joined #ruby
<glundgren> cool
St1gma has quit [Ping timeout: 265 seconds]
<snockerton> or head over to #bash, they always appreciate a good fight
<glundgren> not fighting, just talking
<eam> snockerton: or #ruby, for that matter
allcentury has quit [Ping timeout: 264 seconds]
<snockerton> lol
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure|dc is now known as Azure
<glundgren> eam: do you want go to offtopic? so i can explain why it sucks?
<eam> glundgren: I'm already there
<glundgren> ok
JDiPierro has joined #ruby
cb_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
wkoszek has joined #ruby
chouhoulis has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
bigmac has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
ebragaparah has joined #ruby
last_staff has quit [Quit: last_staff]
Ropeney has joined #ruby
tejasmanohar has quit [Read error: No route to host]
finisherr has quit [Quit: finisherr]
<wkoszek> Do you guys know any channel where Middleman is discussed? Tried #thoughbox, #middleman and #middlemanapp, but with no success.
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
St1gma has joined #ruby
workmad3 has joined #ruby
phutchins has joined #ruby
bender_unit has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
deric_skibotn has joined #ruby
bigmac has joined #ruby
<shevy> perhaps #rack
Musashi007 has quit [Quit: Musashi007]
<shevy> middleman is very rarely mentioned on #ruby
s00pcan has joined #ruby
<shevy> you could still try to ask though, perhaps 1 out of 1048 knows something!
workmad3 has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 264 seconds]
tejasmanohar has joined #ruby
swgillespie has joined #ruby