apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
<apeiros> foo= just being defined as `def foo=(value); @foo = value; end` is the common case, though. and most often it's done by using `attr_accessor :foo`
baweaver has joined #ruby
failshell has joined #ruby
lidenskap has quit [Remote host closed the connection]
<ebonics> apeiros, are there varargs
<apeiros> foo(*args)
<apeiros> the *args will collect all remaining arguments into an array
attlasbot has quit [Quit: Leaving]
<baweaver> >> viv = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }; viv[:a][:b][:c] = 5; v
<ruboto> baweaver # => undefined local variable or method `v' for main:Object (NameError) ...check link for more (https://eval.in/335736)
<baweaver> >> viv = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }; viv[:a][:b][:c] = 5; viv
<ruboto> baweaver # => {:a=>{:b=>{:c=>5}}} (https://eval.in/335737)
<apeiros> that is, in `def foo(*args)` it does that. when calling it, then `foo(*args)` will expand an array into a list of arguments
<baweaver> >> [*(1..10),11,12]
<ruboto> baweaver # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] (https://eval.in/335738)
<baweaver> >> [*(1..10),*('a'..'g')]
<ruboto> baweaver # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "a", "b", "c", "d", "e", "f", "g"] (https://eval.in/335739)
<baweaver> spat operator makes for some fun.
<baweaver> splat*
<apeiros> you can even omit the parens
spider-mario has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<apeiros> >> [*1..3, *"a".."d"]
<ruboto> apeiros # => [1, 2, 3, "a", "b", "c", "d"] (https://eval.in/335740)
<baweaver> Habit.
xxneolithicxx has joined #ruby
aldarsior has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
failshell has quit [Ping timeout: 265 seconds]
<harlen> what does the * do there?
<Radar> harlen: Splats it
<Radar> [1..3, "a".."d"]
<Radar> >> [1..3, "a".."d"]
<ruboto> Radar # => [1..3, "a".."d"] (https://eval.in/335741)
<adaedra> expands the array as parameters
<apeiros> *obj expands the values of obj to a list
<apeiros> and if obj is not an array, it'll call to_a on obj
robustus|Off has joined #ruby
<adaedra> >>[*"Hello"]
<ruboto> adaedra # => ["Hello"] (https://eval.in/335742)
robustus|Off is now known as robustus
^conner has joined #ruby
<adaedra> huh.
<apeiros> no String#to_a
ismaelga has quit [Remote host closed the connection]
<apeiros> so it remains a single value list ;-)
<adaedra> ok
<^conner> is using `extend self` in a module considered good practice? I'd like to use something like this https://gist.github.com/jhoblitt/e6a7d75f4f663028dd62 so that I only have to define methods once that are mixed in as both instance and class methods
<ebonics> i have no idea what im doing anymore
<apeiros> ^conner: avdi likes it. I prefer module_function
Leef_ has quit [Quit: Leaving]
juanpablo_____ has joined #ruby
FernandoBasso has quit [Quit: leaving]
<^conner> apeiros, module_function doesn't give you a class method
<apeiros> ^conner: rational in favor of module function: a) Kernel & Math do it that way, b) your module's instance methods should be private (since they're obviously not intended to be used from the outside) and your module's class methods should be public - module_function does that for youc
<apeiros> ^conner: have you even tried it? of course it does.
<^conner> it give you a class method in the defining module, not the class that's including it
<apeiros> ^conner: um, including *never* gives you class methods
<apeiros> extend self doesn't change that.
<^conner> apeiros, explain my example ;)
<apeiros> def self.included(klass)
<apeiros> that's a callback
<^conner> yes
<^conner> a call back that's called when... ?
<apeiros> which is called when something includes your module
<apeiros> and *entirely* unrelated to using extend self or module_function
<^conner> so your saying that including does give you class methods ;)
<apeiros> ^conner: do you even read?
<^conner> "<apeiros> ^conner: um, including *never* gives you class methods"
<^conner> except that it does
<^conner> which the right magic
<apeiros> no, including does not give you class methods. the klass.extend does.
<^conner> in any event, if you remove the self extend, the act of inclusion does not give you both class and instance methods
<apeiros> *sob*
<apeiros> wrong
granthatcher has quit []
<^conner> self#include needs a class method to work with
<apeiros> you know, you can be all smug when you actually understand what you talk about.
<apeiros> no
juanpablo_____ has quit [Ping timeout: 245 seconds]
<^conner> apeiros, ok - I believe you. Can you give me an example that gives me the same result but with a different module implementation?
<apeiros> >> module A; def foo; "wee"; end; def self.included(k); k.extend self; end; end; class B; include A; end; B.foo
<ruboto> apeiros # => "wee" (https://eval.in/335748)
<apeiros> ^ there, no `extend self`, and lo and behold, we have a class method in B.
<ebonics> lmao i dont think i have enough knowledge of ruby to do this
<ebonics> this is horrible
<apeiros> and IMO your code is an anti-pattern ^conner
endash has quit [Quit: endash]
<ebonics> apeiros, halp
<ebonics> i'm the biggest trashcan honestly
<apeiros> ebonics: Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) } deals with your problem for hashes, so how about focusing on arrays?
<ebonics> i am apeiros
<ebonics> but the hash could arbitrarily contain arrays
<ebonics> thats what that code is _supposed_ to solve
<^conner> apeiros, why is it an antipattern? Your example is not equivalent, B.new.foo does not work
<ebonics> but i dont even know what it does anymore
<apeiros> ^conner: can you stop with making claims which are clearly not true?
<apeiros> >> module A; def foo; "wee"; end; def self.included(k); k.extend self; end; end; class B; include A; end; [B.foo, B.new.foo]
<ruboto> apeiros # => ["wee", "wee"] (https://eval.in/335776)
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> ebonics: That's full vivification and it won't work
<apeiros> there
<baweaver> Ruby doesn't play nice on that one
<baweaver> If you want it one deep you can though
<Radar> !popcorn
<baweaver> >> h = Hash.new { [] }; h[1] = 5
<ruboto> baweaver # => 5 (https://eval.in/335777)
startupality has quit [Quit: startupality]
<baweaver> >> h = Hash.new { [] }; h[1] = 5; h
<ruboto> baweaver # => {1=>5} (https://eval.in/335778)
<baweaver> >> h = Hash.new { [] }; h[1].push 5; h
<ruboto> baweaver # => {} (https://eval.in/335779)
Contigi has joined #ruby
<baweaver> off to pry for a sec.
esasse has joined #ruby
<baweaver> odd...
<baweaver> Probably something stupid I've done on it.
<^conner> apeiros, I had miss-read the code. I'll have to think about that. Is it simple to make the including methods private?
<apeiros> ^conner: I think you're misusing include/extend. I'd still like to see the actual use-case. I'm pretty sure you could axe a lot of code and just go with YourModule.meth
<ebonics> apeiros, that.. makes alot more sense lmao
senayar has joined #ruby
senayar has joined #ruby
<ebonics> although i dont think it will work exactly how i want out of the box
<ebonics> ima play with it <3 thanks
<apeiros> yw
<ebonics> i doubt what i want to do it possible like baweaver implied
<^conner> apeiros, I could but would need to assign it to constant in the class because the namespace is pretty deep
longfeet has joined #ruby
<^conner> for readability reasons
<baweaver> arbitrary vivification can be done in perl, but Ruby uses the same syntax for both hash and array making it a bit difficult if not impossible.
<apeiros> or you could *cough* include the namespace containing the module
DynamicMetaFlow has joined #ruby
momomomomo has quit [Quit: momomomomo]
* baweaver tries to grab some popcorn from Radar
<Radar> thanks :)
<Radar> oh, I read that as 'for'
<baweaver> heh
esasse has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<^conner> apeiros, I'm not following
jerematic has quit [Remote host closed the connection]
<apeiros> or you could use module_function, not have that ludicrous self.included hook, and just use include/extend appropriately.
<^conner> those are orthogonal concerns
<^conner> Not wanting to type ThisReally::Deep::ClassTree::Util is seperate from inclusions vs calling as a class method
<apeiros> >> module X; module Y; def self.a; "a"; end; end; module A; module B; module C; module D; module E; include X; Y.a; end; end; end; end; end
<ruboto> apeiros # => /tmp/execpad-f4734788b0bd/source-f4734788b0bd:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/335781)
<apeiros> damn
<apeiros> I thought I counted the ends correctly :D
<apeiros> >> module X; module Y; def self.a; "a"; end; end; end; module A; module B; module C; module D; module E; include X; Y.a; end; end; end; end; end
<ruboto> apeiros # => "a" (https://eval.in/335782)
<ebonics> yeah baweaver i think it is possible
michaeldeol has quit [Ping timeout: 255 seconds]
<ebonics> it's just a headache cause you need to redefine [] and []= for both
jerematic has joined #ruby
<baweaver> I'd probably just look for a different way to do whatever you think this might be useful for
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> unless it's academic or playing about
<baweaver> then by all means
<Radar> ^conner: do you have a real example of what you're trying to solve that we can play around with? I think we're having major communication issues here because we're talking about theories.
<baweaver> Sometimes it can be fun to poke ruby with a stick and see what happens.
GaryOak_ has quit [Remote host closed the connection]
<ebonics> baweaver, i'm doing it mainly as a learning exercise at this point. initially it was cause i was lazy but i kinda like ruby so i figure it's a good way to learn
<^conner> Radar, sort of, I have functionality I want to move out of a base class into a mixin
<Radar> ^conner: thanks
<ebonics> being able to do like []{}{}{}[]{}{}{} arbitrarily would be kinda cool :o
doodlehaus has joined #ruby
<Radar> ebonics: I think the word you're looking for is "nightmare"
<ebonics> how so Radar ;o
<Radar> ebonics: It's hard to keep a data structure that complex in your head.
<Radar> Debugging it if one element in that changed would be painful
<baweaver> and that's why it's possible in Perl :P
that1guy has joined #ruby
<ebonics> idk what you mean
<^conner> ebonics, make a system call to perl and have it return json ;)
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
GriffinHeart has joined #ruby
<ebonics> i want to do it because i need to add arbitrary json output
<Radar> ebonics: Do you have an example?
<baweaver> Almost sounds like a case for a serializer like Virtus
<ebonics> it's actually fine if i instantiate each hash or array manually before adding values
diegoviola has joined #ruby
<ebonics> it's just redundant haha
<baweaver> So you're taking arbitrary JSON and converting it into usable ruby objects?
<ebonics> no the other way around
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
davedev24_ has joined #ruby
<baweaver> Ruby objects to json
<Radar> JSON.dump(obj)
<Radar> problem solved
<ebonics> i need to build the object though
<mwlang> whoot: Not only did I get selenium and phantomjs working together to log into my bank’s website and get account summaries, I got it under rspec specs with vcr to boot so I can continue developing without alarming my bank with too many logins.
<ebonics> it's weird
<Radar> ebonics: An example would really help us to understand what you're talking about.
<ebonics> i either have to model the object and do that
<baweaver> Example code would help on that.
<ebonics> ok 1 sec
<baweaver> ninja'd
* mwlang feeling somewhat surprised it all worked out
davedev2_ has quit [Ping timeout: 244 seconds]
rkazak has joined #ruby
pontiki has joined #ruby
jeramy_s has joined #ruby
<^conner> apeiros, so I think I can use including the an entire module for some utility methods but I don't think that helps me in the case where I have subclasses
<mwlang> now to try bank #2 and do some refactoring into a more structured library. What shall I call a gem that can aggregate balances from various financial websites (think capital one, fidelity, charles schwab, credit union, bank of america, wells fargo, etc.)
<^conner> that need to use the included methods
<^conner> I guess I could refactor that out
<mwlang> I want to build a standardized library/api structure kinda like Active Merchant
<apeiros> ^conner: I see no point in continuing this without the actual use-case.
pygospa has quit [Ping timeout: 240 seconds]
esasse has joined #ruby
<^conner> 7 minutes ago :)
<apeiros> I love it how github sometimes drops the indents
<ebonics> baweaver, Radar https://dpaste.de/R2cs
<ebonics> check the bottom for how i want the output
bebijlya has quit [Quit: kthxbai]
doodlehaus has quit [Remote host closed the connection]
<Radar> ebonics: wow
bebijlya has joined #ruby
<ebonics> that's how the output is, it's fine. but i have to create the hash each time with mhash g_critical, :debug
<ebonics> for example
<apeiros> `class_variable_set(:@@cli_auth_required, false)` fun…
<^conner> there very well could be indent errors. I just squashed about 70 commits worth of history down and had to manually resolve some merge issues
exadeci has quit [Quit: Connection closed for inactivity]
<ebonics> what Radar
<apeiros> ^conner: no. github sometimes loses all indents. reload helps.
oo_ has joined #ruby
<Radar> ebonics: that's a lot of code :)
<ebonics> Radar, it's just a sample
<ebonics> there's like a shitton more
<ebonics> hehe
<apeiros> don't know whether it's only on some browsers, though
<ebonics> i was just trying to illustrate how it's arbitrary
<Radar> ebonics: Yeah, it's missing a whole heap of context around it
rkazak has quit [Ping timeout: 250 seconds]
<ebonics> i'll show you how i'm doing the stuff now
<^conner> apeiros, #class_variable_set isn't required in that class but it is in the subclasses that come out of a classgenerator that you pass a block too. Bare @@'s get scoped incorrected in that case
<baweaver> So what's mhash?
<ebonics> @baweaver
vikaton has joined #ruby
<apeiros> ^conner: I think I'll not go and talk about that.
<^conner> class data is the correct solution in this case. The subclasses need to share the state. Its intentional
frem has quit [Quit: Connection closed for inactivity]
<^conner> it's the only time I've ever used class variables
<apeiros> ^conner: anyway, I see no `extend self` or `self.included` in that code.
<^conner> correct
<baweaver> Well that's one way to vivify
b00b00 has joined #ruby
<b00b00> hello
<^conner> I'm asking questions before refactoring ;)
<mwlang> ebonics: wordpress? :-o
yfeldblu_ has quit [Remote host closed the connection]
<ebonics> mwlang, it's the wpscan code
<apeiros> ok. well. bed time for me anyway. good night.
<ebonics> some library for detecting vulnerabilities in wordpress
<ebonics> but i want the output in json
yfeldblum has joined #ruby
doodlehaus has joined #ruby
<mwlang> ebonics: ah, vulnerability scanner.
<b00b00> i am new with ruby, my question is how i get https page cntent? i get the error "`connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)" , I use (Net::HTTP.get) and require 'net/https' and require 'uri', thanks for help
<b00b00> with http all working fine
<baweaver> I'd have to think about that one honestly.
<mwlang> b00b00: set the verify certificate off
rgb-one has joined #ruby
<b00b00> mwlang: how? (http.verify_mode = OpenSSL::SSL::VERIFY_NONE) ?
esasse has quit [Quit: Textual IRC Client: www.textualapp.com]
PhantomS_ has quit [Remote host closed the connection]
<b00b00> that way you mean?
<mwlang> b00b00: yes
<b00b00> i tried this already... :/
<mwlang> b00b00: Is all you’re doing is requesting an html page that’s over https?
MatthewsFace[SEA has joined #ruby
paulcsmith has joined #ruby
fschuindt has quit [Quit: WeeChat 1.1.1]
PhantomSpank has joined #ruby
<b00b00> mwlang: yes, just https url with some .yml file
<baweaver> I'd treat the program more as a ruleset that scans for certain things and collects them
PhantomSpank has quit [Read error: Connection reset by peer]
bebijlya has quit [Quit: kthxbai]
PhantomSpank has joined #ruby
<baweaver> meanwhile filtering them into the associated areas such as warning, danger, etc
bebijlya has joined #ruby
<baweaver> then assemble at the end into a JSON response.
<baweaver> that way you don't have to nest it as deeply.
doodlehaus has quit [Remote host closed the connection]
<ebonics> baweaver, this is an existing library
<baweaver> or make an Object out of it with properties for warning, error, etc
<ebonics> it outputs how it outputs haha
<ebonics> im TRYING to nest it deep
<ebonics> for better semantics
<baweaver> well, not modifying the output per-se, but the generation techniques.
bebijlya has quit [Remote host closed the connection]
<ebonics> true
PhantomS_ has joined #ruby
<ebonics> i started out a few hours ago knowing 0 ruby
<ebonics> so i figured this was easiest
<ebonics> maybe i can tackle the internals now
<baweaver> It'll take some thought though in mapping your domain model
bebijlya has joined #ruby
<baweaver> I'd spend a few hours on that first
<baweaver> get a good model, and then develop on that
<ebonics> baweaver, yeah
<baweaver> anonymous models can make it a bit hard to reason about later.
<ebonics> i have been thinking about it
<ebonics> but the way it works it's kind of just like
<baweaver> whiteboards are definitely handy if you can grab one
<baweaver> arbitrarily nested structures.
A205B064 has quit [Remote host closed the connection]
<ebonics> plus if they update their code
<ebonics> and i have modified it too much
<ebonics> it will be hard to reimplement
<ebonics> so i just wanted a thin sheet
<baweaver> whatever you can do to make it not so arbitrary will probably be to your benefit
<ebonics> yeah, the whole "general" thing is an effort to do that
Phantom__ has joined #ruby
Zen-Zen has quit []
<ebonics> there's other classes of output
<baweaver> If you can get sample responses, you can generate serializers for it.
paulcsmith has quit [Ping timeout: 256 seconds]
<baweaver> which would allow you to reason about them as objects
<ebonics> yeah, but that requires parsing strings
<baweaver> though that in and of itself may be adding too much overhead.
bigmac has joined #ruby
<baweaver> To generate a serializer?
<ebonics> wait
<ebonics> you mean serialize the whole ruby instance
<baweaver> serialize a json response to a ruby object
PhantomSpank has quit [Ping timeout: 276 seconds]
<mwlang> b00b00: probably not the greatest way in the world to do it, but it works: https://gist.github.com/mwlang/8108cfb9be87295d9e69
<baweaver> which gives you a way to put it back later if you want
nini1294 has joined #ruby
that1guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> https://github.com/baweaver/valor - It's old but it can rip some JSON into Virtus models.
PhantomSpank has joined #ruby
<ebonics> it's funny because a big reason i'm doing this at all is because i didnt want to touch ruby
<ebonics> i wrote some middleware to ease the pain
PhantomSpank has quit [Read error: Connection reset by peer]
<ebonics> but now i think ruby's not so bad so i might just scrap it
<mwlang> b00b00: personally, I’d use Faraday or RestClient gem or even Mechanize.
Akagi201 has joined #ruby
<baweaver> yeah, it'd take me more than a few hours to really have a good solution on that one
PhantomS_ has quit [Ping timeout: 276 seconds]
PhantomSpank has joined #ruby
Phantom__ has quit [Ping timeout: 276 seconds]
iteratorP has joined #ruby
<ebonics> baweaver, it sucks cause this thing is just really poorly designed
<ebonics> but its functionality is good
PhantomS_ has joined #ruby
<baweaver> nontrivial at least.
<ebonics> i would just rewrite the whole thing
DynamicMetaFlow has quit [Quit: Leaving]
mistermocha has joined #ruby
<ebonics> but the vuln database they use is under their control
<ebonics> so if they change something fundamental about it then i'm kinda screwed
DynamicMetaFlow has joined #ruby
doodlehaus has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
mistermocha has quit [Read error: Connection reset by peer]
failshell has joined #ruby
mistermocha has joined #ruby
Phantom__ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
uptownhr has joined #ruby
senayar has quit []
PhantomSpank has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
pygospa has joined #ruby
<b00b00> mwlang: thanks man, worked :)
Astrologos_ has quit []
<b00b00> mwlang: was read about what you mentioned now, but need something basic for tests
PhantomSpank has joined #ruby
nini1294 has quit [Read error: Connection reset by peer]
<mwlang> what is the so-called “active” data pattern? I thought it was a term coined by Martin Fowler for CRUD objects that closely mimics underlying tables…but I see all these gems on rubygems named “active[something]” that doesn’t really seem to have that much of a correlation to the active data pattern.
PhantomS_ has quit [Ping timeout: 250 seconds]
<b00b00> mwlang: can you very shurt explain why that worked? whats this (each{|o| puts o}) ?
<ebonics> BLOCKS BRO
<mwlang> b00b00: #each iterates over the lines of the response giving it the variable named “o” puts just prints.
TheHodge has quit [Quit: Connection closed for inactivity]
<b00b00> i see, thanks again
bricker has quit [Quit: leaving]
PhantomS_ has joined #ruby
<ebonics> if i call them closures instead am i gonna get flamed
<mwlang> b00b00: #open works because I included the ‘open-uri’ library….otherwise #open only knows how to open a local file.
failshell has quit [Ping timeout: 265 seconds]
<aewffwea> mwlang: Martin Fowler is evil... Don't follow him
<ebonics> block is such a dumb word for a closure considering how well defined they are
Phantom__ has quit [Ping timeout: 276 seconds]
<mwlang> aewffwea: heh. what’d he do?
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
nini1294 has joined #ruby
Phantom__ has joined #ruby
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
<aewffwea> mwlang: He claimed he "invented" dependency injection, or something like that, and it's the best thing ever, or something like that
<baweaver> or something like that
doodlehaus has quit [Remote host closed the connection]
* baweaver is skeptical of the proper founding of aforementioned evil
PhantomSpank has quit [Ping timeout: 276 seconds]
penzur has joined #ruby
<baweaver> Gang of Four never claimed they invented it, just standardized it into reusable patterns.
<aewffwea> baweaver: I consider Dependency Injection frameworks to be evil, so anyone who heavily proposes that, it's also evil xD
<mwlang> aewffwea: oh….he had an Al Gore moment. :-p
<Radar> mwlang: "active" isnt a patter
<Radar> n
<ebonics> why are dependency injection frameworks evil?
<Radar> mwlang: Active Record is a pattern
<Radar> Active Support is just following the naming scheme
PhantomSpank has joined #ruby
<aewffwea> ebonics: Because they promote bad code (not as bad as using global variables), but bad still
<mwlang> Radar: any idea why we have 100’s of gems starting with the word “active”?
<ebonics> i highly, highly, highly disagree
<ebonics> i think it's the complete opposite
charliesome has joined #ruby
<mwlang> I mean, what’s it supposed to signify?
<baweaver> naming schemes mainly
<Radar> mwlang: Why do we have thousands of gems starting with the letter "r"?
<aewffwea> mwlang: People are afraid of claiming they like "passive" things
<Radar> mwlang: Why are there a lot of Smiths in the phone book?
<ebonics> dependency injection promotes writing modular, decoupled code
<aewffwea> Radar: Smiths reproduce like rabbits
PhantomS_ has quit [Ping timeout: 276 seconds]
<mwlang> Radar: so you’re saying prefixing a gem’s name with “active” is like prefixing apple product names with “i”?
Mohan_ has quit [Ping timeout: 256 seconds]
<Radar> mwlang: yes
<aewffwea> ebonics: It also promotes using "singletons" or whatever you want to call the beans thing... (They are not technically singletons though)
<ebonics> bindings?
<aewffwea> ebonics: yes
PhantomS_ has joined #ruby
<ebonics> those are amazing too wtf
<mwlang> Radar: there’s lots of smiths because there were black smiths, gold smiths, silver smiths, ad infintum…:-p
<aewffwea> ebonics: Most people I know use Dependency Injection to use global variables without using global variables directly
<Radar> mwlang: and there's a lot of active* gems because people are not imaginative
<ebonics> most people you know suck
<ebonics> brb need food
<aewffwea> @Bean("DBConnection") // this is a global variable DBConnection
<baweaver> ebonics: keep it classy, uncalled for there mate.
noname1 has quit [Ping timeout: 256 seconds]
<aewffwea> ebonics: I agree... Sadly, most people I don't know suck too...
<ebonics> i was kidding baweaver
Phantom__ has quit [Ping timeout: 272 seconds]
<ebonics> it's the way he phrased it himself lol
Mohan_ has joined #ruby
<baweaver> still a bit harsh
<aewffwea> ebonics: That's partly the issue with DI frameworks xD
workmad3 has joined #ruby
tcrypt has quit [Remote host closed the connection]
mbff has joined #ruby
<ebonics> aewffwea, i think as long as the bean is wrapped in an object that's intended to be used by _any_ module
<baweaver> Speaking of food though, Chipotle is calling. 'night
Phantom__ has joined #ruby
<ebonics> then that design is perfectly fine
<mwlang> heh…I’m currently unimaginative…can’t think of a name for my new gem. :-p
<aewffwea> ebonics: You are also breaking "encapsulation" and "abstraction" when you use DI frameworks
<mbff> I am trying to use bundler's rake release command to push a gem to rubygems.org however I get an error I haven't gotten before using the same workflow as I am now.
<ebonics> aewffwea, no you're not
<mbff> To git@github.com:marshallford/strike_api.git
<mbff> * [new tag] v1.0.5 -> v1.0.5
<mbff> ! [rejected] v1.0.4 -> v1.0.4 (already exists)
<mwlang> thought maybe, “activebank” but seems incredibly unimaginative.
<penzur> hello, world!
<ebonics> typically you have ONE singleton with all of the "global" data encapsulated inside
<aewffwea> ebonics: The fact that your whole application has a big large shared configuration doesn't makes noise to you?
PhantomSpank has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
<ebonics> no i think that's fine
<aewffwea> ebonics: I don't :)
<ebonics> fight me then
<ebonics> brb food :D
Hobogrammer has joined #ruby
<aewffwea> Why should I fight you?
<aewffwea> I love peace
avahey has joined #ruby
<penzur> aw!
PhantomSpank has joined #ruby
<mwlang> sorry, penzur hello, helloworld, hello-world, hello_world are all taken as gem names. I need a better name. :-)
redjack1964 has quit [Remote host closed the connection]
<aewffwea> mwlang: hello-mwlang
<penzur> wtf?
<penzur> hehe
<aewffwea> mwlang: That's also cool... You can name your gem WTF as penzur suggested
<aewffwea> require 'wtf'
<mbff> The tag gets created on github properly. If I remove the tag on Github and re-run "rake release", it will create the tag again just fine.
<mwlang> penzur: :-D Just trying to dream up a new gem name. timing of your greeting caught my humor slightly askewed.
PhantomS_ has quit [Ping timeout: 272 seconds]
dfinninger has joined #ruby
<mwlang> aewffwea: LMAO…that’s a good one.
mrconfused has quit [Remote host closed the connection]
<penzur> name your gem `try`
<penzur> haha
<mwlang> aewffwea: unfortunately, there’s already a gem for that.
kyrylo has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
PhantomS_ has joined #ruby
<penzur> mwlang: wadiwasi
Phantom__ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
<mwlang> penzur: then I’d want to try ‘require’ rather than require ‘try’ it.
<mwlang> penzur: dipping into foreign vocabularies?
bmurt has joined #ruby
<penzur> yeah
<penzur> how about `fish`
<penzur> haha
doodlehaus has quit [Remote host closed the connection]
<aewffwea> penzur: require 'quartz' ?
Phantom__ has joined #ruby
failshell has joined #ruby
PhantomSpank has quit [Ping timeout: 240 seconds]
<penzur> require 'coal' # my awesome gem
tuelz has quit [Ping timeout: 244 seconds]
Phantom__ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<mwlang> maybe I can call it “greed”
<mwlang> since I’m aggregating bank balances. :-)
PhantomS_ has quit [Ping timeout: 240 seconds]
<aewffwea> mwlang: require 'money' makes more sense :p
<penzur> peny
<penzur> call it perl
<penzur> haha
mbff has quit [Quit: Leaving]
<aewffwea> require 'green_franklin'
PhantomS_ has joined #ruby
<mwlang> aewffwea: but “money” is taken….I’d go for “opm” but it ain’t other people’s money…
<aewffwea> mwlang: what about my_money?
agent_white has joined #ruby
wallerdev has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
aldarsior has quit [Quit: aldarsior]
<mwlang> aewffwea: we have a contender.
doodlehaus has quit [Remote host closed the connection]
Phantom__ has joined #ruby
<aewffwea> mwlangl ?
tuelz has joined #ruby
aldarsior has joined #ruby
PhantomSpank has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
<mwlang> following the waddiwasi (train of thought)…could call it Glisseo (transforms a staircase into a smooth slide) from Harry Potter.
PhantomSpank has joined #ruby
<mwlang> which is certainly what I feel like I’m doing with these silly banking websites.
car has joined #ruby
<aewffwea> o_O
PhantomS_ has quit [Ping timeout: 265 seconds]
<aewffwea> mwlang: That's slightly nerdish
<aewffwea> mwlang: What does your app do?
DynamicMetaFlow has quit [Remote host closed the connection]
PhantomS_ has joined #ruby
car_ has joined #ruby
<mwlang> aewffwea: log into your bank’s website, gets your balance on every account you have there and also transactions (for certain ranges) and reports ‘em back to ya.
<aewffwea> mwlang: Nice...
<aewffwea> mwlang: There is no way in hell I'm using that app though...
Phantom__ has quit [Ping timeout: 255 seconds]
<mwlang> aewffwea: why not? I didn’t say it was a service in the cloud.
<aewffwea> mwlang: I wouldn't trust it unless it came from a very very very trustworthy publisher, or I reviewed the 100% of the source code, which I'm not going to do
nini1294 has quit [Read error: Connection reset by peer]
Phantom__ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
PhantomSpank has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
<aewffwea> mwlang: I think the app is useful though... I'd certainly use it if I had coded it :)
<aewffwea> mwlang: But the trust issue is too big
tjohnson has quit [Quit: Connection closed for inactivity]
<Radar> mwlang: Sounds like Pocketbook.
car has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
b00b00 has quit [Ping timeout: 255 seconds]
<aewffwea> Radar: That's nice...
PhantomSpank has joined #ruby
<aewffwea> Radar: I still wouldn't use pocketbook for the same reason...
<Radar> Read only access into my bank account
PhantomS_ has quit [Ping timeout: 255 seconds]
<aewffwea> Radar: How do you guarantee is read only? How do you guarantee a dumb programmer from the companies steals and sells all your data?
<mwlang> aewffwea: LOL lets get the power of open source going!
aldarsior has quit [Quit: aldarsior]
<aewffwea> mwlang: I wouldn't trust my bank information to any open source project that doesn't has 1m user and has actually been audited by an external company
aldarsior has joined #ruby
PhantomS_ has joined #ruby
<Radar> *cough*
<mwlang> well, I’m gonna use it to save me oodles of time. That’s good enough for me. :-D
Phantom__ has quit [Ping timeout: 272 seconds]
<aewffwea> Radar: I still don't trust it :)
unreal_ has joined #ruby
nettoweb has quit [Client Quit]
Sembei has quit [Read error: Connection reset by peer]
PhantomS_ has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
PhantomS_ has joined #ruby
<aewffwea> Radar: Most of those things can only prevent you from an external threat... If someone inside the company is doing something evil, you are still vulnerable
umby24 is now known as umby24|offline
<pontiki> so you must keep all your money stuffed in your mattress
nobitanobi has quit [Remote host closed the connection]
<aewffwea> pontiki: I use each banks own website...
<Radar> ^
Sembei has joined #ruby
RegulationD has quit [Remote host closed the connection]
PhantomSpank has quit [Ping timeout: 272 seconds]
<pontiki> heaven knows a bank couldn't have staff that steals from the customers
<aewffwea> pontiki: BTW: I've found more than once, that one of the banks uses http images on their https website :/
danzilio has joined #ruby
nettoweb has quit [Client Quit]
<aewffwea> pontiki: They can, but at least they have audits of the code, and their staff...
<aewffwea> pontiki: They have regular audits, and systems that are auditing in real time...
nettoweb has joined #ruby
PhantomSpank has joined #ruby
<Radar> aewffwea: Your tinfoil hat is showing
<aewffwea> pontiki: tinfoil?
agent_white has quit [Read error: Connection reset by peer]
<pontiki> not me
nettoweb has quit [Client Quit]
<aewffwea> pontiki: I used to work for banks...
unreal has quit [Ping timeout: 264 seconds]
<aewffwea> pontiki: And created part of those systems...
<ebonics> it obviously depends how much money you have
multi_io has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
<pontiki> i don't care
<ebonics> if you have a few grand in your bank then who cares
* sevenseacat cares
agent_white has quit [Read error: Connection reset by peer]
Guest1421 has quit [Ping timeout: 276 seconds]
<aewffwea> ebonics: I have 3 billon dollars in my account (?)
<ebonics> lol
* sevenseacat cares about all her goddamn money
<Radar> aewffwea: now we know where Moldova's 1bn went.
agent_white has joined #ruby
<aewffwea> They had to put me in a special server, because I caused a integer overflow on their server
agent_white has quit [Read error: Connection reset by peer]
moeabdol1 has joined #ruby
<ebonics> idiots using signed ints
Phantom__ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
multi_io has joined #ruby
PhantomS_ has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
uptownhr has quit [Quit: uptownhr]
agent_white has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
mary5030 has joined #ruby
PhantomSpank has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
Phantom__ has quit [Ping timeout: 246 seconds]
moeabdol1 has quit [Ping timeout: 264 seconds]
Phantom__ has joined #ruby
mary5030 has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
yqt has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
PhantomS_ has quit [Ping timeout: 265 seconds]
PhantomS_ has joined #ruby
<eam> how are they going to log in without my 2fa token?
PhantomSpank has quit [Ping timeout: 265 seconds]
AlphaAtom has joined #ruby
nini1294 has joined #ruby
nini1294 has quit [Client Quit]
gaboesqu_ has quit [Remote host closed the connection]
doodlehaus has joined #ruby
PhantomSpank has joined #ruby
nini1294 has joined #ruby
Phantom__ has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
pontiki has quit [Quit: leaving]
nini1294 has quit [Client Quit]
nini1294 has joined #ruby
fedexo has joined #ruby
Phantom__ has joined #ruby
PhantomS_ has quit [Ping timeout: 240 seconds]
vikaton has quit []
vikaton has joined #ruby
havenwood has joined #ruby
tuelz has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
PhantomS_ has joined #ruby
tuelz has joined #ruby
PhantomSpank has quit [Ping timeout: 240 seconds]
djbkd has quit [Quit: My people need me...]
claptor has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
Phantom__ has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
PhantomS_ has joined #ruby
Phantom__ has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
willharrison has joined #ruby
juanpablo_____ has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nini1294 has quit [Ping timeout: 272 seconds]
PhantomSpank has quit [Ping timeout: 264 seconds]
claptor has quit [Quit: this channel is bakas]
DynamicMetaFlow has joined #ruby
PhantomSpank has joined #ruby
Perdomo has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 265 seconds]
Fire-Dragon-DoL has quit []
kies has quit [Ping timeout: 264 seconds]
PhantomS_ has joined #ruby
Phantom__ has quit [Ping timeout: 272 seconds]
juanpablo_____ has quit [Ping timeout: 264 seconds]
Phantom__ has joined #ruby
michael_mbp has quit [Excess Flood]
PhantomSpank has quit [Ping timeout: 272 seconds]
phutchins1 has quit [Ping timeout: 244 seconds]
PhantomSpank has joined #ruby
michael_mbp has joined #ruby
PhantomS_ has quit [Ping timeout: 272 seconds]
PhantomS_ has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Phantom__ has quit [Ping timeout: 276 seconds]
Papierkorb has quit [Ping timeout: 265 seconds]
bmurt has quit []
Phantom__ has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
PhantomSpank has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
sevvie has joined #ruby
PhantomSpank has joined #ruby
failshell has quit [Remote host closed the connection]
chipotle has joined #ruby
Phanto___ has joined #ruby
PhantomS_ has quit [Ping timeout: 276 seconds]
tus has quit []
Phantom__ has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
PhantomS_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
failshell has joined #ruby
havenwood has quit []
car_ has quit [Quit: Leaving]
amclain has joined #ruby
PhantomSpank has quit [Ping timeout: 272 seconds]
PhantomS_ has quit [Read error: No route to host]
PhantomSpank has joined #ruby
kies has joined #ruby
Phanto___ has quit [Ping timeout: 272 seconds]
PhantomSpank has quit [Read error: No route to host]
PhantomSpank has joined #ruby
fedexo has quit [Ping timeout: 265 seconds]
PhantomSpank has quit [Read error: No route to host]
PhantomSpank has joined #ruby
Guest1421 has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
PhantomSpank has quit [Read error: No route to host]
PhantomSpank has joined #ruby
GriffinHeart has joined #ruby
simpyll has joined #ruby
jayeshsolanki has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PhantomSpank has quit [Read error: No route to host]
PhantomSpank has joined #ruby
mistermocha has joined #ruby
bebijlya has quit [Ping timeout: 256 seconds]
iasoon has quit [Ping timeout: 252 seconds]
CodyReichert has quit [Ping timeout: 264 seconds]
turtil has quit [Quit: WeeChat 1.1.1]
PhantomSpank has quit [Read error: No route to host]
PhantomSpank has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
failshell has quit [Remote host closed the connection]
PhantomS_ has joined #ruby
PhantomSpank has quit [Ping timeout: 256 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<harlen> can the status choices be modified on a per-project basis in redmine?
<harlen> sorry wrong window.
PhantomS_ has quit [Ping timeout: 256 seconds]
arescorpio has joined #ruby
DerisiveLogic has joined #ruby
wolfleemeta has quit [Remote host closed the connection]
wolfleemeta has joined #ruby
jeramy_s has quit [Quit: Peace out!]
RegulationD has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
PeterHsieh has joined #ruby
segfalt has joined #ruby
slash_nick has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DEA7TH_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
greenbagels has quit [Quit: Leaving]
cibs has quit [Read error: Connection reset by peer]
car has joined #ruby
cibs has joined #ruby
lidenskap has joined #ruby
MrSamuel has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
rahult has joined #ruby
Eiam_ has joined #ruby
lidenskap has quit [Ping timeout: 250 seconds]
bigmac has quit [Ping timeout: 246 seconds]
rahult is now known as rahult_
mistermocha has quit [Remote host closed the connection]
rahult_ has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
GriffinHeart has quit [Ping timeout: 264 seconds]
wolfleemeta_ has joined #ruby
scripore has joined #ruby
mistermocha has joined #ruby
almostworking has joined #ruby
mary5030 has joined #ruby
wolfleemeta has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
almostworking has left #ruby [#ruby]
TheNet has joined #ruby
GriffinH_ has joined #ruby
millerti has joined #ruby
<TheNet> I made a ruby script for managing multiple git names/emails if anyone wants to critique it: https://github.com/iNety/gitu
zenspider has quit [Remote host closed the connection]
juanpablo_____ has joined #ruby
danzilio has quit [Quit: Baiii!]
workmad3 has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Ping timeout: 276 seconds]
<simpyll> ive been using the netbeans ruby plugin for my IDE. I'm sure its been discussed before but was wondering if anyone has suggestions on an awesome ide
lidenskap has joined #ruby
car has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
penzur has quit [Quit: quit]
juanpablo_____ has quit [Ping timeout: 272 seconds]
bigmac has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<Eiam_> simpyll: emacs
ozialien has quit [Ping timeout: 264 seconds]
braincras has quit [Quit: bye bye]
<Eiam_> simpyll: + Robe
zenspider has joined #ruby
<simpyll> using arch linux as my os
<simpyll> let me look
scripore has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
CodyReichert has joined #ruby
<TheNet> I mean... vim's nice too... (:
bmurt has joined #ruby
<Eiam_> TheNet: yep, so just http://www.emacswiki.org/emacs/Evil
<Eiam_> =)
<Eiam_> all the nice of vim, plus everything else =)
Spami has joined #ruby
<TheNet> lol I can hear the fanbases clashing
<simpyll> This is exactly what I was looking for.
hobodave has joined #ruby
<simpyll> Thanks yo
<Eiam_> yup
<TheNet> Eiam_: do all the plugins have to be ports?
<Eiam_> TheNet: hmm ?
bebijlia has joined #ruby
<Eiam_> anyone have a decent template for multiple sinatra modular apps?
<Eiam_> I'm tempted to fire up Padrino again, but not sure I want to deal with all the rest of the baggage it brings
<TheNet> Eiam_: evil-surround, evil-rails, etc.
bebijlia has quit [Max SendQ exceeded]
Guest1421 has quit [Ping timeout: 252 seconds]
mistermocha has quit [Remote host closed the connection]
bebijlia has joined #ruby
<Eiam_> TheNet: oh. well evil is just a mode within emacs, designed to ya know, mimic VI's awesome text manipulation stuff
jayeshsolanki has quit [Ping timeout: 256 seconds]
<Eiam_> you can have multiple modes & such
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
<TheNet> Eiam_: ah I see
<TheNet> has anyone tried RubyMine?
agent_white has joined #ruby
bootstrappm has quit [Remote host closed the connection]
bebijlia has quit [Max SendQ exceeded]
rahult has joined #ruby
bebijlia has joined #ruby
TheNet has quit [Ping timeout: 246 seconds]
bmurt has quit []
j_mcnally has joined #ruby
MrSamuel has left #ruby [#ruby]
towski_ has quit [Remote host closed the connection]
apurcell has quit [Quit: Be back later ...]
tubuliferous_ has quit [Ping timeout: 272 seconds]
thatslifeson has joined #ruby
gambl0re has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
thatslifeson has joined #ruby
car has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
A205B064 has joined #ruby
moeabdol1 has joined #ruby
rodfersou has quit [Quit: leaving]
cibs has quit [Read error: Connection reset by peer]
jerematic has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
DynamicMetaFlow has quit [Remote host closed the connection]
Joufflu has joined #ruby
ramfjord has joined #ruby
snath has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
aldarsior has quit [Quit: aldarsior]
djbkd has joined #ruby
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
moeabdol1 has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
aldarsior has joined #ruby
Aww is now known as PrincessAww
jerius has quit [Quit: /quit]
zotherstupidguy has quit [Ping timeout: 264 seconds]
aldarsior has quit [Client Quit]
aldarsior has joined #ruby
zotherstupidguy has joined #ruby
agent_white has quit [Quit: Bai.]
tuelz has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
lidenskap has quit [Remote host closed the connection]
Hijiri has joined #ruby
MrSamuel has joined #ruby
MrSamuel has quit [Client Quit]
dvlwrk has quit [Ping timeout: 255 seconds]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
lidenskap has joined #ruby
uptownhr has joined #ruby
lidenskap has quit [Remote host closed the connection]
uptownhr has quit [Client Quit]
lidenskap has joined #ruby
cibs has joined #ruby
uptownhr has joined #ruby
bruno- has joined #ruby
cibs has quit [Read error: Connection reset by peer]
al2o3-cr is now known as Guest74306
lidenskap has quit [Remote host closed the connection]
Mongey has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
lidenskap has joined #ruby
Guest74306 has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 246 seconds]
cibs has joined #ruby
GriffinH_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Hirzu has joined #ruby
baweaver has joined #ruby
Yzguy has joined #ruby
Yzguy has left #ruby [#ruby]
snath has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 256 seconds]
doodlehaus has quit []
iamninja has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
Hirzu has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
Guest1421 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
scripore has quit [Client Quit]
uptownhr has quit [Quit: uptownhr]
Guest1421 has quit [Ping timeout: 256 seconds]
uptownhr has joined #ruby
that1guy has joined #ruby
electriv has joined #ruby
askhat has joined #ruby
askhat has quit [Client Quit]
askhat has joined #ruby
askhat is now known as ubermonkey
ubermonkey is now known as askhat
sohrab has quit [Ping timeout: 272 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
that1guy has quit [Ping timeout: 264 seconds]
askhat is now known as ubermonkey
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
swgillespie has joined #ruby
crazydiamond has joined #ruby
slash_nick has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
duderonomy has quit [Ping timeout: 272 seconds]
failshell has joined #ruby
<ubermonkey> Sup guys! I'm curious is there exists kinda regexp library? For purpose of validates :email, with: RegexpLib.email
al2o3-cr has quit [Ping timeout: 256 seconds]
uptownhr has quit [Quit: uptownhr]
<baweaver> There are RFCs for that
<baweaver> as far as a lib for it, not sure.
<baweaver> ebonics: be nice.
<ebonics> sry :|
<ubermonkey> Be sure, googling is quite easier then irc, so i've spend some time on it
<baweaver> Though to be fair, that was the third result under ruby regex library
failshell has quit [Ping timeout: 250 seconds]
<ubermonkey> Oh boy, how could I unnotice this... Thankyou!
jeromelanteri has joined #ruby
<harlen> i'm of a mixed mined about email regexps. i think it's better to have a basic one that allows too much, and validate it with a confirmation email, rather than risking rejecting something that the regexp hasn't been updated for.
aldarsior has quit [Quit: aldarsior]
tubuliferous_ has joined #ruby
RegulationD has joined #ruby
<baweaver> harlen: Fair enough, and in this case you're right that it probably should be more lax
<ebonics> it definitely depends how much traffic you get
<ebonics> bouncing emails contributes to spam score
<baweaver> touche
al2o3-cr has joined #ruby
<harlen> for example: https://fightingforalostcause.net/content/misc/2006/compare-email-regex.php is the reference given in that ruby library for the email regex it uses. search for "james watts". you can see all the email addresses it actually fails on which it shouldn't.
bluOxigen has quit []
michaeldeol has joined #ruby
<baweaver> XKCD did a thing on meta regex
zenspider has quit [Quit: bye]
<baweaver> so Peter Norvig solved it in classic fashion
<baweaver> good read
<baweaver> (though it's in Python)
uptownhr has joined #ruby
rahult is now known as rahult_
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
d5sx43 has joined #ruby
ubermonkey has quit []
askhat has joined #ruby
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<mwlang> for selenium, how do I use driver.find_elements to retrieve “article” <ARTICLE> tags?
askhat has quit [Client Quit]
askhat has joined #ruby
<baweaver> What have you tried?
<baweaver> (*disclaimer* haven't used selenium)
<ebonics> mwlang, idk about inr uby
<ebonics> but in other languages you can literally just select by tag
<mwlang> find_elements(css: “article”) and find_elements(xpath: “//article”)
<ebonics> the xpath one doesn't work?
P1RATEZ has joined #ruby
tuelz has joined #ruby
uptownhr has quit [Client Quit]
diegoaguilar has joined #ruby
<mwlang> nope, it doesn’t.
uptownhr has joined #ruby
askhat has quit []
askhat has joined #ruby
lidenskap has joined #ruby
gaboesquivel has joined #ruby
<ebonics> mwlang, it simply should work. but you may want to try the selenium firefox plugin
<ebonics> to grab the info you want
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
<ebonics> i suspect you're doing something else wrong though :|
<Eiam_> god, sometimes I just want to stab stack overflow. half the ruby questions provide answers that only apply to RAISL
<Eiam_> rails
tuelz has quit [Ping timeout: 256 seconds]
<sevenseacat> yeeeep
askhat has quit [Client Quit]
<Eiam_> "uh, datetime does not have a .change method..
ubermonkey has joined #ruby
<baweaver> It does if you include ActiveSupport :D
<mwlang> ebonics: I’m using the phantomjs one, but may try firefox if I get desperate. I’ll probaby just pop over to nokogiri before that, though. ;-)
<Eiam_> well gosh if only I wanted rails
<mwlang> what does a #change method on DateTime do?
<mozzarella> no one uses ruby, except rails programmers
<mozzarella> ( ͡° ͜ʖ ͡°)
longfeet has quit [Ping timeout: 272 seconds]
* mwlang thinks it sets system date and time...
<baweaver> So is there a question in there that we could help with, or just bereavements of SO?
<mwlang> mozzarella: no, no. Only rails programmers ask questions on S/O because they don’t know Ruby.
<ebonics> mwlang, you may want to try adding a . to the beginning of the xpath
* mwlang ducks
* baweaver used ruby without rails for 2 years
<mwlang> ebonics: like this? xpath: ".//article"
<ebonics> yeah mwlang
<Radar> mwlang: The change method transports you through time. Use Space#change if you wish to be transported through space as well.
<sevenseacat> lol
d5sx43 has quit []
<Radar> yes
<Radar> exactly like that
<mwlang> Radar: Ah. Who needs Rails for that when you can use TimeCop or Delorean? :-D
<baweaver> Use that if you want both
rahult has joined #ruby
lidenskap has quit [Remote host closed the connection]
<baweaver> see also: My twitter pic https://twitter.com/keystonelemur
<Eiam_> baweaver: eh, i was looking to see if I could force a datetime into another timezone. im just going to minus my offset from the resulting value
penzur has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ebonics> baweaver, you're into devops?
<Eiam_> the deployed server has its timezone set to UTC, and im in PST
<baweaver> Among various other things
* baweaver prefers dev
<ebonics> "infrastructure automation engineer" screams devops
swgillespie has joined #ruby
<baweaver> Mainly Rails and AngularJS for making a frontend to AWS Console
<ebonics> ah
<baweaver> because universal access for all isn't very kosher with our security team
<Eiam_> it looks like Time will do it, but not DateTime
<mwlang> sheez bank websites are slow.
<ebonics> that sounds like the most ruby-esque thing in the world
segfalt has quit [Read error: Connection reset by peer]
<mwlang> 39.53 seconds just to log in and look at account summary.
<ebonics> brb guys writing our deployment stack in #angular and #ruby <3
<baweaver> There are only two hard things in computer science: Cache Invalidation, DateTime manipulation, and off by one errors
rgb-one_ has joined #ruby
<ebonics> lol
segfalt has joined #ruby
<Eiam_> always heard it as naming things, cache invalidation, and off by one errors =p
<baweaver> Chef is Ruby y'know
<baweaver> Well, Erlang on the backend
<ebonics> how about
* baweaver still loathes Chef
<ebonics> just use docker
<ebonics> and that's it
<ebonics> job done
* baweaver sighs
<mwlang> baweaver: so pixel-perfect web pages fall into the off by one error category?
<ebonics> omfg
<baweaver> as does CSS, yes
juanpablo_____ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> one color, one pixel, one margin, one border, one holly hack
rgb-one has quit [Ping timeout: 264 seconds]
<ebonics> that's the worst thing ever. "nudging" in css
<baweaver> I rarely had problems with it.
<mwlang> baweaver: so it ain’t just me that’s splitting hairs over that crap.
workmad3 has joined #ruby
<baweaver> CSS gives most people problems
Mohan_ has quit [Ping timeout: 256 seconds]
jack_rabbit has quit [Ping timeout: 256 seconds]
<mwlang> I should say it’s gotten a lot better since IE 6 has exited the main stage.
<ebonics> it's not the CSS per se
<sevenseacat> i like css.
<baweaver> though once you know the box model it's not that bad.
<ebonics> it's the damn nudging lol
maletor has joined #ruby
chimche has quit [Remote host closed the connection]
<baweaver> and it's like software, you just rock code and you'll have nudging as well. It works out a lot better if you plan things and wireframe
<ebonics> it's nice if it's a simple design where your SASS design works perfectly out of the box
<ebonics> but for more complex layouts thats unrealistic
diegoaguilar has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webguynow has quit [Remote host closed the connection]
Mohan has joined #ruby
<ebonics> baweaver, you're saying you plan out your media queries and everything?
* baweaver isn't going to argue this
webguynow has joined #ruby
<ebonics> you like an architect of the web or something?
Mohan is now known as Guest19950
<ebonics> i aint got time for that
GriffinHeart has joined #ruby
* baweaver shrugs
* baweaver goes back to watching FMA Brotherhood
<ebonics> i've never seen anyone do that tbh
<ebonics> thats a great anime baweaver :)
<sevenseacat> the fuck is 'nudging'?
juanpablo_____ has quit [Ping timeout: 252 seconds]
<ebonics> umm when you havbe to keep adjusting elements by like 1 px until it looks good
<baweaver> it's a few pixels off
<ebonics> or fits in your layout or we
<sevenseacat> i see
<baweaver> Most of which being solved by proper wireframing and planning
<sevenseacat> yep
<ebonics> in 1200px space sure
<sevenseacat> if youre making up the design as you go along, sure, you spend some time fiddling
<baweaver> especially if you have the luxury of a design team
oo_ has joined #ruby
<Eiam_> i just draw out my websites on graph paper
<sevenseacat> just like the designers spend time fiddling when they actually make the design
<Eiam_> then i do the wireframe of that in html & css
<Eiam_> usually works out well enough
workmad3 has quit [Ping timeout: 255 seconds]
wldcordeiro_ has joined #ruby
<ebonics> sometimes designs arent easily mapped 1:1 to a bit of css
jack_rabbit has joined #ruby
<Eiam_> ok
<sevenseacat> !popcorn2
<sevenseacat> dammit helpa
<ebonics> i mean in regard to the designers doing all the fiddling :P
<sevenseacat> personally, I've done enough css that its a no-brainer for me
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<ebonics> sevenseacat, do you use SASS or LESS?
<sevenseacat> until you get into some types of css3 stuff anyway
<sevenseacat> sass
<ebonics> ex. triangles or circles or any math requirements
mengu has joined #ruby
mengu has joined #ruby
<ebonics> that arent explicitly stated anywhere in the design documents :D
<sevenseacat> i've never been asked to build triangles or math equations in css.
<sevenseacat> and if i was, i'd push back
<ebonics> i guess that's why everything is a no brainer haha
oo_ has quit [Ping timeout: 264 seconds]
* sevenseacat raises eyebrow
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
akkad has quit [Excess Flood]
arescorpio has quit [Quit: Leaving.]
_whitelogger has joined #ruby
riotjones has joined #ruby
akkad has joined #ruby
al2o3-cr has quit [Ping timeout: 245 seconds]
rkazak has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
apurcell has quit [Ping timeout: 240 seconds]
<mwlang> Eiam: DateTime.now - 60 * 60 * 3
<Eiam_> minus to a Datetime does days
uptownhr has joined #ruby
<Eiam_> http://ruby-doc.org/stdlib-2.2.2/libdoc/date/rdoc/Date.html#method-i-2D If the other is a numeric value, returns a date object pointing other days before self
zotherstupidguy has quit [Ping timeout: 245 seconds]
<mwlang> Ah, geez. I’m usually using Time objects for time diffs.
<mwlang> DateTime for when I want to do decades
<mwlang> and Date when I don’t care about time at all, just dates.
zotherstupidguy has joined #ruby
<Eiam_> also Time looks like - is seconds
Rickmasta has joined #ruby
<mwlang> Eiam: that’s why I did 60 * 60 * 3 for three hours.
<Eiam_> ah yes right
<Eiam_> mm
<Eiam_> Time.parse(DateTime.now.to_s) - 60 * 60 * 3 is..
<Eiam_> not very nice
<Eiam_> (datetime.now is an example; I have a datetime object that isn't now)
riotjones has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 256 seconds]
<mwlang> If you don’t mind active_support, then require ‘active_support’; require ‘active_support/time’; Time.now.in_time_zone(-7) => Thu, 07 May 2015 22:12:17 PDT -07:00
duderonomy has joined #ruby
<Eiam_> rather stay away from active anythign
<Eiam_> rails monkeypatches so many base classes i forget whats real ruby
kyrylo has quit [Quit: Konversation terminated!]
kyrylo has joined #ruby
<mwlang> strange, if DateTime’s #to_a actually worked, you could’ve done Time.new(*DateTime.now.to_a)
<mwlang> Eiam: I used to have that problem until I ditched all things Rails for 4 years. :-)
diegoviola has quit [Quit: WeeChat 1.1.1]
mistermocha has joined #ruby
<Eiam_> well, hence me trying to avoid all things rails
<Eiam_> i have not actually done any rails in.. ha maybe 4 years now
moeabdol1 has joined #ruby
failshell has joined #ruby
<sevenseacat> its all 'real ruby'
<sevenseacat> anything written in ruby is 'real ruby'
<mwlang> Eiam: why not DateTime.now.to_time ?
<Eiam_> sevenseacat: figured someone would take issue after I said that
<mwlang> sevenseacat: heh…the spirit of his remark was what’s in Ruby core classes vs bolted on by active_whatnot
* baweaver uses monkeypatches
<sevenseacat> its was a very poor way to express it
<Eiam_> baweaver: sure, i monkey patch some things as well, but its all clearly mentioned in my code and its not exported out side my world
<sevenseacat> and if we're being really honest, half of what we like about ruby isnt in core anyway
<baweaver> Mainly for getting set-like features for hashes
rkazak has quit [Quit: Sleep.....ing....]
<sevenseacat> its in stdlib
sevvie has joined #ruby
moeabdol1 has quit [Ping timeout: 264 seconds]
<baweaver> that, and 'true'.to_bool
<baweaver> because that's freaking annoying
Rollabunna has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
<mwlang> hold on, I got one that takes the cake…lemme find it because I don’t wanna misquote…
gambl0re has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
<mwlang> yeah, here’s my all time favorite truth test in Ruby => if check.type.to_s == "TrueClass"
failshell has quit [Ping timeout: 276 seconds]
<sevenseacat> ugh
<baweaver> not quite. I keep 0 as true
<baweaver> that's only used on inbound booleans from json
edwinvdg_ has quit [Remote host closed the connection]
nricciar_ has quit [Ping timeout: 264 seconds]
mistermocha has quit [Remote host closed the connection]
parduse has joined #ruby
tejasmanohar has joined #ruby
<mwlang> that’s from 1.8.6 when #type used to return the class name, btw.
aganov has joined #ruby
uptownhr has quit [Quit: uptownhr]
rahult has left #ruby ["Back to the world of zombies"]
crazydiamond has quit [Remote host closed the connection]
uptownhr has joined #ruby
JoshGlzBrk has joined #ruby
mistermocha has joined #ruby
djbkd has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
mistermocha has quit [Remote host closed the connection]
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vikaton has quit [Quit: Connection closed for inactivity]
sevvie has quit [Ping timeout: 244 seconds]
lidenskap has joined #ruby
riotjones has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
sevvie has joined #ruby
car has quit [Ping timeout: 265 seconds]
uptownhr has quit [Quit: uptownhr]
RegulationD has joined #ruby
<flughafen> hey sevenseacat certainty shevy
maletor has quit [Quit: Computer has gone to sleep.]
<sevenseacat> guten Morgen
<flughafen> hows it going certainty
<flughafen> sevenseacat: *
JoshGlzBrk has joined #ruby
hmsimha_ has joined #ruby
uptownhr has joined #ruby
arup_r has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
<baweaver> No shevy? For shame, for shame.
<arup_r> hahaha
nricciar_ has joined #ruby
thatslifeson has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
<flughafen> hey arup_r
<flughafen> hey baweaver
uptownhr has quit [Quit: uptownhr]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
rippa has joined #ruby
<agent_white> Good evening!
bigmac has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
swgillespie has joined #ruby
Hirzu has joined #ruby
<flughafen> ahoy
uptownhr has joined #ruby
uptownhr has quit [Client Quit]
uptownhr has joined #ruby
mikecmpbll has quit [Quit: ciao.]
bigmac has joined #ruby
Aeyrix has joined #ruby
Aeyrix has quit [Client Quit]
rahult has joined #ruby
yfeldblum has quit [Remote host closed the connection]
codecop has joined #ruby
codecop_ has joined #ruby
codecop has quit [Client Quit]
<ebonics> is it possible to get the line that a method was called from
<ebonics> arbitrarily
Aeyrix has joined #ruby
<shevy> just woke up \o/
sinkensabe has quit [Remote host closed the connection]
Aeyrix has quit [Client Quit]
<arup_r> flughafen: o/
Aeyrix has joined #ruby
<arup_r> ebonics: yes
<arup_r> ..sorry no
<certainty> moin
<arup_r> moin certainty
<certainty> o/
<flughafen> oi
<ebonics> arup_r, huh lol
<ebonics> so no it's not? :\
<baweaver> 'mornin shevy
<ebonics> maybe if i throw an exception and take the second item in the stack trace
<arup_r> I know how to find the line number where the method is defined inside the class.. but no idea about your question
casadei_ has quit [Remote host closed the connection]
<ebonics> seems pretty dirty to do that though
PhantomSpank has joined #ruby
<certainty> ebonics: you can use caller and process it
<certainty> but it's dirty
<ebonics> certainty, not sure what that is ill check it tout though
<ebonics> i only need it for edge cases anyway
<certainty> caller gives you the callstack
<certainty> an arry of strings
<certainty> but information about the linenumber is there
<ebonics> oh that's nice
<ebonics> too bad i prob have to parse strings tho huh lol
<ebonics> certainty, there's caller_location actually
<ebonics> i'll just use that, thanks
PhantomSpank has quit [Ping timeout: 255 seconds]
<certainty> oh nice i didn't know
<certainty> looks just like caller
<certainty> might be an alias
apurcell has joined #ruby
MatthewsFace[SEA has quit [Remote host closed the connection]
<ebonics> i don't think this is dirty certainty :)
<ebonics> you might need it for writing your own exceptions and stuff
<certainty> depends on what you want to do with it
<ebonics> library i'm using strips the exception meta data, so i'm just going to add it back in without having to modify the lib
<certainty> stringe library
<certainty> strange
<ebonics> well actually its an end-user application
tubuliferous_ has joined #ruby
<certainty> :)
<ebonics> i'm just rigging it to be a library
<ebonics> :P
astrobunny has quit [Remote host closed the connection]
<certainty> alright gotta start work
<certainty> later guys
sigurding has quit [Quit: sigurding]
emilkarl has joined #ruby
apurcell has quit [Ping timeout: 256 seconds]
duncannz has joined #ruby
astrobunny has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
<baweaver> Is it bad that I find these things incredibly pretentious?
<sevenseacat> they do reek of a certain arrogance, but given the amount of applicants for software jobs that cant do such basic things, well
<baweaver> granted
<baweaver> Some I can see uses for, but others like 5 are pointless
<sevenseacat> yeah there are tricks to those kinds of ones, and if you dont know the trick, you'll never be able to do it
<sevenseacat> i couldnt do that
<baweaver> >> ('a'..'c').zip(1..3).flatten
<ruboto> baweaver # => ["a", 1, "b", 2, "c", 3] (https://eval.in/336560)
mengu has joined #ruby
tuelz has joined #ruby
<baweaver> It's dynamic programming
<baweaver> brute force
<sevenseacat> ah hah
<baweaver> kinda pointless though really
<Aeyrix> @baweaver: no
<Aeyrix> they're ~~okay~~
<baweaver> You might look into progfun on coursera
lidenskap has quit [Remote host closed the connection]
<baweaver> Fundamentals of Functional Programming in Scala by Martin Odersky (sp?)
<baweaver> Problem 1-3 goes into it
<baweaver> change counter problem
<baweaver> given a list of coins [1,2,3] list the number of combinations that gets you the amount 4 given that coins are unlimited
<baweaver> 1+1+1+1, 1+1+2, 2+2, 3+1
Hirzu_ has joined #ruby
<baweaver> sevenseacat: I'd be impressed if it doesn't give you a headache honestly
* baweaver doesn't want to admit how long it took him the first time on that thing
<sevenseacat> yeah not into those kind of things
konsolebox has quit [Quit: Leaving]
<baweaver> Most of my questions are functional in interviews anymore
<baweaver> transform this data into that data
<baweaver> the standard easy tests are reversing a string and implementing a map function
Ellis has joined #ruby
<sevenseacat> i dont do interviewing, but i think i would like to ask questions on debugging
avahey has quit [Quit: Connection closed for inactivity]
<baweaver> One of my favorites for ops came from a coworker
tuelz has quit [Ping timeout: 244 seconds]
<baweaver> list a unix tool for every letter of the alphabet
PhantomSpank has joined #ruby
dickchansey3 has joined #ruby
<certainty> echo can be used for every letter :p
PhantomSpank has quit [Read error: Connection reset by peer]
<Ellis> i want to use my mac’s built in cam, does anyone know how i can do this or what i can search to figure it out
al2o3-cr has quit [Ping timeout: 240 seconds]
PhantomSpank has joined #ruby
DerisiveLogic has quit [Ping timeout: 240 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
<baweaver> Lookup ruby webcam gem
Hirzu has quit [Ping timeout: 272 seconds]
<baweaver> Once had a guy with 15+ years experience that struggled to reverse a string without a built in method
<Aeyrix> top lel
PhantomS_ has quit [Read error: Connection reset by peer]
<Aeyrix> did he end up writing a loop for it or what?
<sevenseacat> interesting
<baweaver> Thought I was being harsh, then an intern candidate destroyed my entire list
jerematic has joined #ruby
<baweaver> they could barely write a for loop
<sevenseacat> i'd write a loop, to iterate over the chars and build up a new string.
* sevenseacat lazy
<ebonics> lmao baweaver idk if you remember what i was trying to do. but i though tof the most disgusting yet genius way to accomplish what i need
<Aeyrix> >lazy
<baweaver> I don't care if it's recursive or what
<Aeyrix> >not using the inbuilt method
<baweaver> if it works it works
<Aeyrix> wtf man
<Aeyrix> String#reverse
<ebonics> lmao it's bad as hell
<ebonics> whatever though
* sevenseacat looks for a man who is getting wtfed at
<sevenseacat> baweaver: oh, thats probably you.
wolfleemeta_ has quit [Remote host closed the connection]
<Aeyrix> <sevenseacat> i'd write a loop
<baweaver> It appears so
bebijlia has quit [Ping timeout: 255 seconds]
<Aeyrix> I was "wtfing" at that
wolfleemeta_ has joined #ruby
<baweaver> ah
<ebonics> you'd not write a loop?
<sevenseacat> Aeyrix: you did read the part about this being an interview question, right?
<baweaver> whoops
thumpba has joined #ruby
<Aeyrix> o
<Nilium> Someone has an opposition to loops?
<Aeyrix> "without a built in method"
* baweaver does give points for mentioning built in methods
<Aeyrix> my bad
moeabdol1 has joined #ruby
<Aeyrix> I read that as "with a built-in method"
<baweaver> then I ask for it without that
harlen has quit [Remote host closed the connection]
<Aeyrix> i c
sinkensabe has joined #ruby
wolfleemeta__ has joined #ruby
<sevenseacat> Aeyrix: i accept your apology, both for insulting me and then for presuming my gender.
<Ellis> baweaver: thanks
<baweaver> Another easier one is I want a hash of People (first_name, last_name, age) grouped by their age
<ebonics> sevenseacat, is it offensive if someone called you "man" irl
<baweaver> Ellis: Not a problem mate.
<Aeyrix> sevenseacat: I generally don't attempt to guess someone's gender on a purely text medium.
<Aeyrix> ebonics: Apparently yes.
<ebonics> like not in a "youre a man" way
<ebonics> but like a comradery way
<baweaver> Aeyrix: ebonics: suggested to drop that line
jerematic has quit [Ping timeout: 256 seconds]
<Aeyrix> u wot
<sevenseacat> ebonics: where i come from, people dont do that.
konsolebox has joined #ruby
<Aeyrix> sevenseacat: Where I come from, people do.
<Aeyrix> :)
<Aeyrix> Thank you for presuming my culture.
<ebonics> sevenseacat, idk i understand how it could be offensive over the internet
<baweaver> In San Francisco it's a good way to get chewed up and down
<Aeyrix> Lucky I don't live in San Francisco, nor do I want to.
* Nilium finds this all very strange.
<sevenseacat> my advice is to stay away from gendered words unless you want to annoy people. thats all.
<baweaver> It's not difficult to use gender neutral pronouns
<Aeyrix> sevenseacat: lol
<ebonics> it actually is for me
<ebonics> my lexicon is limited
<ebonics> i say "man" and "dude" more than anything else
<Aeyrix> Same.
<baweaver> you're using words like lexicon
<Nilium> That can be remedied through practice and being considerate.
<sevenseacat> and if 'man' is a gender neutral word to you, well
<Aeyrix> >debating it this much
<Aeyrix> Just stop
<Aeyrix> don't you have other things to care about?
tejasmanohar has left #ruby ["WeeChat 1.1.1"]
<Aeyrix> If you don't, find some.
<ebonics> nah i totally agree tbh
andikr has joined #ruby
<ebonics> it's a flaw
vickleton has joined #ruby
moeabdol1 has quit [Ping timeout: 252 seconds]
<baweaver> Being treated like an equal is not something to be taken lightly.
<Aeyrix> Some people's predisposition towards certain pronouns due to habit shouldn't be offensive.
<Ellis> calling someone man is offensive? if they are not a man? or even if they are a man?
psy_ has quit [Ping timeout: 272 seconds]
<Aeyrix> Ellis why
wolfleemeta_ has quit [Ping timeout: 272 seconds]
<Ellis> why what
<certainty> is it ok to use gendered words if i know the gender? (and the gendered words match that gender)
juanpablo_____ has joined #ruby
<baweaver> In the case of a female it's not appropriate.
<Aeyrix> Isn't it?
<baweaver> It is, but normally safer to use neutral words unless you know.
<Nilium> Is it really this hard to just apologize and not try to rationalize inconsiderate behavior?
<ebonics> i think the point is that there's no reason to use gendered words when the gender is ambiguous when you don't have to
<Ellis> whatever they say is approriate is appropriate, that’s my rule
<Aeyrix> Are you making a sweeping generalisation that all females will take offence?
<Aeyrix> (Hint: many don't)
<ebonics> it's just courtesy really
workmad3 has joined #ruby
<baweaver> Anyways, in general it's considered rude to some and that's all that should really matter.
<Aeyrix> I got asked on the phone the other day if I was female or male.
<Aeyrix> I didn't drop what I was doing and lecture the individual on the line.
<baweaver> They asked
<ebonics> Aeyrix, it doesn't matter though. if you don't know if the woman doesn't like getting called 'man' then it's not much effort to not do it
rgb-one_ has left #ruby ["Good Bye"]
<Aeyrix> ebonics: Entirely depends.
<Aeyrix> I mentioned before, it's based on habit due to culture.
* Nilium stares at #ruby.
hanmac1 has joined #ruby
<ebonics> yeah i do it too :)
<Aeyrix> So therefore
<ebonics> but i guess i'll try to not do it now
<Aeyrix> it's not "not much effort"
arup_r has quit [Remote host closed the connection]
<Aeyrix> as you've got to make a conscious change
<Aeyrix> >habit
Spami has quit [Quit: This computer has gone to sleep]
<ebonics> not much effort once you've put in the time to not do it!
* sevenseacat offers Nilium some popcorn
<Aeyrix> Correct.
<Nilium> Does this always happen?
gauke has joined #ruby
<Aeyrix> lmao sevenseacat
<Aeyrix> you argue
<Aeyrix> then sit back and pretend you're just watching it
<Aeyrix> ok m8
<ebonics> Aeyrix, you're so me though actually
<Aeyrix> o.O
<Aeyrix> Come again?
<ebonics> i think the same way you do
<ebonics> it's cute
<Aeyrix> I'm so sorry.
<ebonics> btw baweaver lmao i'm actually the worst programmer in existence. you know my whole vivication problem
<Ellis> have y/all heard of toro y moi? band is dope!
Spami has joined #ruby
<ebonics> vivification*
al2o3-cr has joined #ruby
<baweaver> Oh trust me, I've interviewed worse
<Aeyrix> Ellis: genre?
<Aeyrix> baweaver: Nonprogrammers who think they can program?
juanpablo_____ has quit [Ping timeout: 256 seconds]
<ebonics> nahhh
<Aeyrix> They're the most aggravating, imo.
<Ellis> star gazy lounge post psychedleic? https://www.youtube.com/watch?v=O0_ardwzTrA
<certainty> i've seen programmers who think they can program
<Aeyrix> It's one thing to want to learn, but those who think that their VB course in '01 will help them...
<ebonics> i'm going to classify the type of object that's getting output by overriding puts and checking the line number from caller_locations
<ebonics> :D
<ebonics> >so legit
<Aeyrix> "You realise this position requires thorough understanding of ANSI C, right?"
<Aeyrix> Ellis: o_O
<Aeyrix> That sound
<Aeyrix> s
uptownhr has quit [Quit: uptownhr]
<baweaver> Well you have a point(er)
<Aeyrix> Any vocals? Can't watch atm.
* baweaver is stopping with the puns
<Aeyrix> Yeah don't do that.
<Eiam_> what in the world
workmad3 has quit [Ping timeout: 256 seconds]
<ebonics> ah man i remember VB in highschool
willharrison has quit [Ping timeout: 272 seconds]
<Aeyrix> I actually didn't learn any programming in high school, it was kind of lame.
<ebonics> teacher was like HEY YOU HAVE TO DEFINE THE SIZE OF THE ARRAY. THATS PART OF BEING A PROGRAMMER
<Ellis> there are vocals
<ebonics> im like m8 pls
<Aeyrix> C/++/# in my own time.
<ebonics> you're old, gtfo
<Aeyrix> No use for it in school.
<Aeyrix> I'm actually not. ( ._.)
<Aeyrix> If you learned VB in high school you're probably older than me.
<ebonics> no talking aout my teacher
<Aeyrix> Oh.
<ebonics> i'm 23
arup_r has joined #ruby
<Aeyrix> Yeah you're older. ;)
<Aeyrix> -2.
<ebonics> youngen'
<baweaver> +1
<Aeyrix> Here's my lawn permit, sir.
<baweaver> Almost +2, I can rent cars without getting jacked an extra $50 at signing....
<ebonics> bastard
al2o3-cr has quit [Ping timeout: 264 seconds]
<Aeyrix> I manage to do that by not living in the USA.
<Aeyrix> :>
<ebonics> same but i still get that charge in canada
<Aeyrix> tbf I pay "tax" on everything else.
<baweaver> Yep, that's all you have to look forward to past 21 here until retirement
<ebonics> actually in canada when you're 25 your car insurance goes down dramatically
<ebonics> so there's that
<Aeyrix> 18 for everything here.
<Aeyrix> Oh something is 21, I forget.
<Aeyrix> Teaching other scrubs to drive or something.
roolo has joined #ruby
<baweaver> Ah, that too
thatslifeson has joined #ruby
<ebonics> when i was 18 i had 20/20 vision, last week i got prescribed glasses :D
<Aeyrix> rekt
<Aeyrix> I've had contact lenses for about four years. Highly recommend if you can get used to touching your eye.
<ebonics> nah dude contacts seem so inconvenient
<ebonics> i mean, sir
<Aeyrix> I have monthlys.
<ebonics> i mean..
<ebonics> person
<Aeyrix> kek
adac has joined #ruby
charliesome has quit [Quit: zzz]
<Aeyrix> oh shit charlie's in here
anisha has joined #ruby
<Aeyrix> anyway yeah monthlys yo
<ebonics> what do you even put there
<Aeyrix> Put 'em in on the first, take 'em out on the last.
<ebonics> nah <?>, contacts seem so inconvenient
<Aeyrix> Leave 'em out overnight.
<Aeyrix> Fellow human being?
<ebonics> Aeyrix, what about if something gets inside or some shit
<Aeyrix> Inside what?
<ebonics> or like you drop it
<ebonics> the contact
<Aeyrix> You can rinse it with a special liquid.
<Aeyrix> Just water works fine, but it can irritate your eye.
<Aeyrix> The solution doesn't.
<ebonics> seems not up my alley
<ebonics> think i'll stick with the glasses
<Aeyrix> #shrug
charliesome has joined #ruby
<Aeyrix> My prescription is so strong that I can't into glasses without looking like I'm using submarine portholes.
<baweaver> >> [50, 2, 1, 9].map(&:to_s).permutation.flat_map { |a| a.join.to_i }.max
<ruboto> baweaver # => 95021 (https://eval.in/336638)
<Aeyrix> h charliesome
<ebonics> wtf baweaver
<sevenseacat> baweaver: oh nice.
<baweaver> problem #4 on that site.
<ebonics> .map(&:to_s)
<ebonics> what's that do
<Aeyrix> Guess.
thatslifeson has quit [Ping timeout: 240 seconds]
<baweaver> 1.to_s
vickleton has quit [Quit: Ex-Chat]
<baweaver> >> 1.to_s
<ruboto> baweaver # => "1" (https://eval.in/336639)
<Aeyrix> >>50.to_s
<ruboto> Aeyrix # => "50" (https://eval.in/336640)
<Aeyrix> etc
<ebonics> >> &:to_us
<ruboto> ebonics # => /tmp/execpad-cf2d88829c05/source-cf2d88829c05:2: syntax error, unexpected & ...check link for more (https://eval.in/336641)
<baweaver> >> (1..10).map { |v| v.to_s }
<ruboto> baweaver # => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] (https://eval.in/336642)
Macaveli has joined #ruby
<baweaver> >> (1..10).map(&:to_s)
<ruboto> baweaver # => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] (https://eval.in/336643)
<ebonics> >> &:to_s
<ruboto> ebonics # => /tmp/execpad-e283b4dea192/source-e283b4dea192:2: syntax error, unexpected & ...check link for more (https://eval.in/336644)
<baweaver> Symbol to proc
<ebonics> what's that language construct
<ebonics> oh
<baweaver> calls that method on the object
<Aeyrix> You mean `&`?
<baweaver> yeah
Macaveli has quit [Client Quit]
<baweaver> >> (1..10).map(&:to_s) == (1..10).map { |v| v.to_s }
<ruboto> baweaver # => true (https://eval.in/336645)
<ebonics> i didnt know you can use a symbol of a method like that
<Aeyrix> p hot
<baweaver> Shorthand
<Aeyrix> Learn something new every day. :D
<baweaver> Also works for problem 1
<ebonics> i staretd ruby like 10 hours ago
<baweaver> >> (1..10).reduce(:+)
<ruboto> baweaver # => 55 (https://eval.in/336647)
<Aeyrix> What's the link again?
<Aeyrix> I lost it.
<Aeyrix> thank
<Nilium> I should go to sleep. Probably going to have to head into work at 6am and won't be leaving until 9pm.
<Aeyrix> Ouch.
wolfleemeta__ has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
<Nilium> Major deployments are tricky beasts.
wolfleemeta__ has joined #ruby
* baweaver automates major deployments for breakfast
<Aeyrix> >not automating
<Aeyrix> Dammit baweaver.
<baweaver> ./me for that by the way
<Nilium> There's no good way to automate this at the moment since we're basically hot-swapping a legacy system for one that can be automated.
<Aeyrix> I've spent too many times on the chans.
<Aeyrix> Uhhh
<Aeyrix> too much time *
<Aeyrix> Nilium: Oh, so you mean 9pm the following day right?
<baweaver> They're tricky, no doubt
<baweaver> We just use AWS and remake servers every time.
<baweaver> sevenseacat: that's the lazy solution
<baweaver> the better one is probably to string sort the thing
<baweaver> >> [50, 2, 1, 9].map(&:to_s).sort.reverse.join.to_i
<ruboto> baweaver # => 95021 (https://eval.in/336656)
<baweaver> have to test it with multiple same leads
<baweaver> doubt it works
lidenskap has joined #ruby
<baweaver> nope
Cust0sL1men has quit [Ping timeout: 252 seconds]
<baweaver> lower precedence to lesser lengths
<baweaver> >> [50, 2, 1, 9, 90, 91].map(&:to_s).sort.reverse.join.to_i
<ruboto> baweaver # => 919095021 (https://eval.in/336659)
<baweaver> >> [50, 2, 1, 9, 90, 91].map(&:to_s).permutation.flat_map { |a| a.join.to_i }.max
<ruboto> baweaver # => 991905021 (https://eval.in/336660)
<ebonics> can yyou redefine a method like that
<baweaver> ?
<ebonics> >> [1,2,3].[] { |e| ~e }
<ruboto> ebonics # => wrong number of arguments (0 for 1..2) (ArgumentError) ...check link for more (https://eval.in/336693)
yfeldblum has joined #ruby
<ebonics> like inline redefine a method for just that instance
<Aeyrix> Hmm?
<baweaver> >> [50, 2, 1, 9, 90, 91].map(&:to_s).group_by { |s| s[0] }.values.reverse.map { |v| v.sort_by { |s| s[0] } }.flatten.join.to_i
<ruboto> baweaver # => 990911250 (https://eval.in/336696)
<baweaver> ahaha, still doesn't work
<baweaver> almost
anisha has quit [Quit: Leaving]
anisha has joined #ruby
<Aeyrix> That looks horrendous.
<baweaver> also flat_map is a thing
<baweaver> welcome to repl hacking
<ebonics> >> Module.new
<ruboto> ebonics # => #<Module:0x4143047c> (https://eval.in/336702)
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
f3lp has quit [Ping timeout: 264 seconds]
<ebonics> >> [1,2,3].extend (Module.new do; end;)
<ruboto> ebonics # => /tmp/execpad-ba00a3a6e17c/source-ba00a3a6e17c:2: syntax error, unexpected ';', expecting ')' ...check link for more (https://eval.in/336708)
<ebonics> >> [1,2,3].extend (Module.new do; end)
<ruboto> ebonics # => [1, 2, 3] (https://eval.in/336712)
Macaveli has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ebonics> >> [1,2,3].extend (Module.new do; def [] e; super[e]-1;end)
<ruboto> ebonics # => /tmp/execpad-a0492e68c924/source-a0492e68c924:2: syntax error, unexpected ')', expecting keyword_end ...check link for more (https://eval.in/336718)
toretore has joined #ruby
MatthewsFace[SEA has joined #ruby
ki0 has joined #ruby
<baweaver> forgot an end there
<ebonics> >> [1,2,3].extend (Module.new do; def [] e; super[e] - 1; end; end)
<ruboto> ebonics # => [1, 2, 3] (https://eval.in/336720)
<ebonics> mmm
<ebonics> doesn't work
<ebonics> >> [1,2,3].extend (Module.new do; def [] e; super[e] - 1; end; end).[0]
<ruboto> ebonics # => /tmp/execpad-ead7269803da/source-ead7269803da:2: syntax error, unexpected '[', expecting '(' ...check link for more (https://eval.in/336724)
wpp has joined #ruby
<ebonics> ok too much spam sry
* baweaver is tinkering with a sort that favors shorter numbers heavily
<baweaver> ...aha
MatthewsFace[SEA has quit [Remote host closed the connection]
<ebonics> o i did it
edwinvdgraaf has joined #ruby
<ebonics> >> ([1,2,3].extend (Module.new do; def [] e; super[e] - 1; end; end))[2]
<ruboto> ebonics # => -1 (https://eval.in/336757)
pontiki has joined #ruby
<pontiki> hello
<ebonics> k no i didnt
<ebonics> hi pontiki
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ellis has quit [Quit: Ellis]
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
ahmetkapikiran has joined #ruby
<baweaver> >> [50, 2, 1, 9, 90, 91].map(&:to_s).group_by { |s| s[0] }.values.map { |vs| vs.group_by(&:length).values.reverse }.sort.flatten(2).reverse.join.to_i
<ruboto> baweaver # => 991905021 (https://eval.in/336769)
<baweaver> ha!
<baweaver> got the devil
<ebonics> baweaver, nice :)
<ebonics> baweaver, how come my code doesnt work properly
<baweaver> Now to see if it performs at all
<baweaver> no clue
<baweaver> never tried that one
Ellis has joined #ruby
<certainty> group_by(&:first)
Macaveli has joined #ruby
<baweaver> doesn't work on strings
<certainty> right you are
<baweaver> %w(foo bar baz).group_by(&:first)
<certainty> that's an odd thing
<baweaver> >> %w(foo bar baz).group_by(&:first)
<ruboto> baweaver # => undefined method `first' for "foo":String (NoMethodError) ...check link for more (https://eval.in/336770)
<baweaver> yeah, tried it
<Ellis> i wrote something to create fibonacci numbers. i think it’s my best code yet :) https://gist.github.com/ellismarte/34390fa79ab052af554f
f3lp has joined #ruby
ahmetkapikiran has quit [Client Quit]
hanmac has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
astrobunny has quit [Remote host closed the connection]
<baweaver> yeah, that way kills the permutations one in terms of speed handily
<baweaver> ran 100_000 times at 1.489 seconds
<baweaver> other one? still going
<Ellis> what do u mean kills the permutations one in terms of speed
<Ellis> so it’s good :)?
<Ellis> eee so excited
uptownhr has joined #ruby
astrobun_ has joined #ruby
RegulationD has joined #ruby
bigsky has joined #ruby
<bigsky> hi all
<bigsky> how to get rid of DL is deprecated, please use Fiddle?
bruno- has quit [Ping timeout: 264 seconds]
<baweaver> on 1000x it's 0.02 vs 0.87
<baweaver> or something like
<baweaver> >> (0.021019 / 0.877803) * 100
<ruboto> baweaver # => 2.3945008162423687 (https://eval.in/336786)
<baweaver> >> (0.021019 / 0.877803)
<ruboto> baweaver # => 0.023945008162423686 (https://eval.in/336789)
<baweaver> 2.4% as long
<ebonics> i really don't understand this
* baweaver needs to sleep, he's tripping
<Ellis> that code seems a bit advanced for me, ill have to take a look @ it tomorrow when i wake up
<ebonics> >> ([1,1].extend (Module.new do; def [] e; super[e+1] = super[e] + super[e-1]; puts self[e+1]; end; end))[1]
<ruboto> ebonics # => undefined method `[]=' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/336792)
<ebonics> what's up with that error?
<ebonics> isn't super[e] referring to the array
<baweaver> []= is a different method
<ebonics> i mean
<ebonics> super is the array right
<baweaver> []= is a setter
<ebonics> yeah i know, but it should still be underlying right
<baweaver> [] is a getter
<baweaver> Too esoteric too late for me to be any use honestly.
<ebonics> np lol
freeze has quit [Ping timeout: 256 seconds]
<ebonics> think i learned a good amount of ruby today tbh
<ebonics> i should do this for every programming languae i try to learn
<ebonics> just jump into some mongoloid codebase and refactor it lol
RegulationD has quit [Ping timeout: 244 seconds]
rdark has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Ellis has quit [Quit: Ellis]
TheHodge has joined #ruby
<ebonics> ive changed my approach like 5 times cause i learn new concepts
Spami has joined #ruby
<ebonics> brb selling "how to learn any program language in 10 hours" for $5.99 on amazon
freeze has joined #ruby
Spami has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subtwo has quit [Quit: (null)]
G has joined #ruby
ahmetkapikiran has joined #ruby
pontiki has quit [Quit: leaving]
hanmac has joined #ruby
<hanmac1> ebonics: super() is not doing what you want
<ebonics> hanmac1, i figured that. how would you access the array instance from the module?
<hanmac1> ebonics: i mean you do super [] but you need super()
<baweaver> learnxinyminutes.com
P1RATEZ has quit []
<hanmac1> >> ([1,1].extend (Module.new do; def [] e; self[e+1] = super(e) + super(e-1); puts super(e+1); end; end))[1]
<ruboto> hanmac1 # => 2 ...check link for more (https://eval.in/336823)
charliesome has quit [Quit: zzz]
<baweaver> .....dangit, that solution won't work for 3 digit numbers +
<baweaver> ah well
<baweaver> bed time
<ebonics> hanmac1, it's supposed to actually be an infinite fibonnaci loop
<ebonics> the puts is supposed to refer to self
<ebonics> and call it recursively
Askilada has joined #ruby
<ebonics> oh
<hanmac1> ebonics: hm you can try, but doing it like that i got stack errors ... i think there are more cleaner ways to do that
<ebonics> hanmac1, i'm just doing it for fun
<ebonics> and yeah it works with your code i believe hanmac1
<ebonics> you just won't see it work :)
<baweaver> >> fibonacci = Hash.new { |h,k| [0,1].include?(k) ? 1 : fibonacci[k - 1] + fibonacci[k - 2] }; fibonacci[5]
<ruboto> baweaver # => 8 (https://eval.in/336831)
<baweaver> :D
<ebonics> noob
<baweaver> >> fibonacci = Hash.new { |h,k| [0,1].include?(k) ? 1 : fibonacci[k - 1] + fibonacci[k - 2] }; fibonacci[100]
<ruboto> baweaver # => (https://eval.in/336832)
<ebonics> not even extending an inline module
<ebonics> 2/10
<baweaver> >> fibonacci = Hash.new { |h,k| [0,1].include?(k) ? 1 : fibonacci[k - 1] + fibonacci[k - 2] }; fibonacci[10]
<ruboto> baweaver # => 89 (https://eval.in/336833)
<baweaver> >> fibonacci = Hash.new { |h,k| h[k] ||= [0,1].include?(k) ? 1 : fibonacci[k - 1] + fibonacci[k - 2] }; fibonacci[100]
<ruboto> baweaver # => stack level too deep (SystemStackError) ...check link for more (https://eval.in/336834)
<baweaver> hehe
<ebonics> >> ([1,1].extend (Module.new do; def [] e; self[e+1] = super(e) + super(e-1); puts self[e+1]; end; end))[1]
<ruboto> ebonics # => stack level too deep (SystemStackError) ...check link for more (https://eval.in/336836)
<ebonics> hanmac1 solved it
<ebonics> actually, i have no idea why i used super
<ebonics> >> ([1,1].extend (Module.new do; def [] e; self[e+1] = self[e] + self[e-1]; puts self[e+1]; end; end))[1]
<ruboto> ebonics # => stack level too deep (SystemStackError) ...check link for more (https://eval.in/336838)
<baweaver> >> caller = Hash.new { |h,k| method(k).to_proc }; caller[:p][1]
<ruboto> baweaver # => 1 ...check link for more (https://eval.in/336873)
<baweaver> now bed
ki0 has quit []
thatslifeson has joined #ruby
Hirzu has joined #ruby
infoget has joined #ruby
baweaver has quit [Remote host closed the connection]
rkazak has joined #ruby
Hirzu_ has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
thatslifeson has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
oo_ has joined #ruby
ki0 has joined #ruby
otisZart has quit [Ping timeout: 250 seconds]
iateadonut has joined #ruby
<iateadonut> join #rvm
infoget has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
arup_r has joined #ruby
rkazak has quit [Ping timeout: 245 seconds]
infoget has joined #ruby
marr has joined #ruby
ki0 has quit [Remote host closed the connection]
blackmesa has joined #ruby
msgodf has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
connor_goodwolf has quit [Ping timeout: 255 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
crantron has joined #ruby
oo_ has quit [Remote host closed the connection]
tuelz has joined #ruby
joonty has joined #ruby
tvw has joined #ruby
Zai00 has joined #ruby
CloCkWeRX has joined #ruby
nszceta has joined #ruby
Hirzu has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
Hirzu has joined #ruby
tuelz has quit [Ping timeout: 265 seconds]
subtwo has joined #ruby
rahult_ has joined #ruby
moeabdol1 has joined #ruby
ki0 has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
rahult_ has quit [Client Quit]
ramfjord has quit [Ping timeout: 272 seconds]
rahult has quit [Ping timeout: 246 seconds]
moeabdol1 has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
oo_ has joined #ruby
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
juanpablo_____ has joined #ruby
workmad3 has joined #ruby
crazydiamond has joined #ruby
einarj has joined #ruby
msgodf has joined #ruby
juanpablo_____ has quit [Ping timeout: 240 seconds]
uptownhr has quit [Quit: uptownhr]
GriffinHeart has quit [Ping timeout: 256 seconds]
astrobun_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
lidenska_ has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
neanderslob has quit [Remote host closed the connection]
Cust0sL1men has joined #ruby
lidenskap has quit [Ping timeout: 264 seconds]
blackmesa has quit [Quit: WeeChat 1.1.1]
dawkirst has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
selu has joined #ruby
blackmesa has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
dseitz has quit [Ping timeout: 265 seconds]
attlasbot has joined #ruby
iateadonut has quit [Quit: Leaving.]
doertedev has joined #ruby
sigurding has joined #ruby
dumdedum has joined #ruby
zotherstupidguy has quit [Quit: Lost terminal]
GriffinHeart has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
ayaz has joined #ruby
f3lp has quit [Ping timeout: 265 seconds]
iamninja has joined #ruby
fawefeawfewa has joined #ruby
thatslifeson has joined #ruby
zotherstupidguy has joined #ruby
failshell has joined #ruby
aewffwea has quit [Ping timeout: 248 seconds]
thatslifeson has quit [Ping timeout: 256 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
attlasbot has quit [Remote host closed the connection]
craigp has joined #ruby
startupality has joined #ruby
attlasbot has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
livathinos has joined #ruby
postmodern has quit [Quit: Leaving]
Ropeney has quit [Remote host closed the connection]
colli5ion has joined #ruby
<bigsky> failed to run rails new xx,why
wldcordeiro_ has quit [Ping timeout: 240 seconds]
<hanmac1> bigsky: did you try to run "gem install binding_of_caller -v '0.7.2'" too?
anurag_ has joined #ruby
<bigsky> hanmac1: yep, after i updated this gem, another error will come out and telling me i should update another gem, times and times again, i am tired:
<bigsky> hanmac1: can it install updates automatically?
ubermonkey has quit [Remote host closed the connection]
<hanmac1> bigsky: looks like either a bundler problem, ask at #bundler or #RubyOnRails
<anurag_> HI, I am following errorr " can't yield from root fiber (FiberError)" while using 'parallel' gem in sinatra..Anyone has any idea about it?
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
b00b00 has joined #ruby
<b00b00> hello
lloyd is now known as Lloyd
<Aeyrix> h
workmad3 has joined #ruby
<b00b00> i downloaded page content and saw line like "#<StringIO:0x00000002bd5298>" appended to content, how can i get rid of it? thanks
<jhass> b00b00: not enough context
<Aeyrix> b00b00: That generally indicates you're trying to output a class.
<Aeyrix> As in, the class object, not an attribute or the return value of a function call.
<b00b00> Aeyrix: yes, i created a function to get url content, and it appended at the end of the content
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
<b00b00> i see, thanks
<Aeyrix> I'm really grateful for whoever implemented that into ruboto.
RegulationD has joined #ruby
yqt has joined #ruby
startupality has quit [Quit: startupality]
nszceta has quit [Read error: Connection reset by peer]
bigsky_ has joined #ruby
nszceta has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
<jhass> b00b00: .each{|o| puts o} what do you think what this does?
rdark has quit [Ping timeout: 265 seconds]
<jhass> btw use p, not puts for debug prints
rdark has joined #ruby
quimrstorres has joined #ruby
bigsky has quit [Ping timeout: 265 seconds]
roolo has quit [Quit: Leaving...]
<jhass> er, not awake yet
zoras has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
<jhass> but answer still
thumpba has joined #ruby
anurag_ has quit [Quit: Page closed]
<b00b00> jhass: i know it removes |o| from each line appended in https for some reason
gigetoo has quit [Ping timeout: 272 seconds]
attlasbot has quit [Quit: Leaving]
rahult has joined #ruby
<jhass> can you try to rephrase? that sentence doesn't make a whole lot of sense tbh
roolo has joined #ruby
<jhass> let's dissect, it, what does puts o do?
<shevy> b00b00 why does it remove something?
thumpba has quit [Ping timeout: 246 seconds]
<shevy> b00b00 have a look at the example from the official documentation btw, you can remodel your code according to the example: http://ruby-doc.org/stdlib-2.1.0/libdoc/open-uri/rdoc/OpenURI.html
<b00b00> without this i didnt get the content (https), if there is a better way it would be nice
<shevy> just look at the examples ;)
<b00b00> thanks
<shevy> the object will have specific methods, for example, f.content_type; for obtaining the content of the webpage, usually the .read method can be used
<jhass> b00b00: there's a bunch of better ways, however it doesn't help if you don't understand them and you won't understand them if you don't understand your own code
<shevy> I usually use open-uri like that: result = open(URL_GOES_HERE).read
<shevy> in your case it may have to be a bit more complicated as you seem to want to make use of openssl as well
ta has quit [Remote host closed the connection]
<b00b00> thanks a lot guys
<jhass> b00b00: so, there's a bunch of questions you need to know the answer of: what does .each do? what is o? what does puts do? what does that mean for what puts o does?
jenrzzz has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
sevenseacat has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
sevenseacat has joined #ruby
<bigsky_> can i use rbenv on windows?
bigsky_ is now known as bigsky
valkyrka has joined #ruby
<Aeyrix> No.
<Aeyrix> But you don't need to.
startupality has quit [Quit: startupality]
<bigsky> Aeyrix: confronted with one terrible error when using rails new
<Aeyrix> Hmm?
<sevenseacat> whats the error?
<Aeyrix> I have rails working on Windows.
<Aeyrix> I'm on OSX now so I can't follow along with you but I only installed it about a month ago.
bruno- has joined #ruby
<Aeyrix> Also, #rubyonrails
A205B064 has quit [Ping timeout: 250 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bigsky> Aeyrix: why you change to osx?
<jhass> it's shiny!
<Aeyrix> I work in security and as a programmer. It's easier for me to do a lot of the work I do than Windows, and it's actually usable in comparison to Linux.
<Aeyrix> It's an almost perfect medium between the two.
zotherstupidguy has quit [Ping timeout: 246 seconds]
<Aeyrix> It takes a lot of getting used to but now I probably wouldn't go back. It's just too easy for me personally.
zotherstupidguy has joined #ruby
Leef_ has joined #ruby
<sevenseacat> guess no error
<Aeyrix> Calm down
<Aeyrix> The conversation moved to OS X.
<sevenseacat> is cool
bruno- has quit [Ping timeout: 256 seconds]
<hanmac1> "OSX usable in comparision to Linux" ... while parsing that sentence my brain got a syntax error
denver has joined #ruby
<Aeyrix> hanmac1: Entirely subjective.
<Aeyrix> And to state otherwise is purely farcical.
<Aeyrix> I used Linux for years.
<Aeyrix> Then I got a Macbook, because my Linux laptop got stolen so I claimed it on insurance.
<Aeyrix> I cannot see myself going back.
<Aeyrix> I don't have to fuck with X11 or any other stupid shit.
<jhass> my main issue would be that you compare a DE to a kernel.... :P
hmsimha_ has quit [Quit: Leaving]
<Aeyrix> >OS X is a DE
<Aeyrix> uh
<Aeyrix> sure
leafybasil has joined #ruby
<sevenseacat> i miss using linux
<Aeyrix> I honestly don't.
<hanmac1> last time i did use OSX i need to compile everything myself because other than on linux you dont have a nice package management
<Aeyrix> hanmac1: What?
<Aeyrix> Do you have hemispatial neglect?
<Aeyrix> >homebrew
<Aeyrix> >macports
<Aeyrix> >the app store
<Aeyrix> ??????????
<sevenseacat> he said nice
<agent_white> I am using Linux! Friends, come back to the light! Do not stray!
blackmesa has quit [Ping timeout: 256 seconds]
<Aeyrix> Uh
<Aeyrix> homebrew is nice
<Aeyrix> `brew install ruby`
<Aeyrix> done
<jhass> well, point is that Linux still is only the kernel
<Aeyrix> wow so hard
leafybasil has quit [Remote host closed the connection]
<Aeyrix> jhass: Are you arguing that Ubuntu is fundamentally more different from Fedora than OS X?
leafybasil has joined #ruby
<sevenseacat> ubuntu 15.04 is rock solid. but now my work machine is a MBP -_-
<jhass> there are many aspects to compare, so in some yes, in some not
<Aeyrix> Linux is fantastic as a server.
<Aeyrix> I would never use anything else.
<agent_white> jhass: True! But I refuse to acknowledge the other half being GNU. :D
<Aeyrix> But as a desktop machine it's simply still missing too much.
<hanmac1> Aeyrix: the stuff i need are not in the app store, and homebrew/macports are not always working as i wanted ... also on ubuntu i like the "apt-get build-dep" command
<jhass> What's missing?
<Aeyrix> Meh.
<Aeyrix> Works for you.
<Aeyrix> It *worked* for me.
<Aeyrix> I just prefer OS X.
<Aeyrix> I hate iOS, I'm in no way a blind fanboy.
* agent_white shrugs
<Aeyrix> But I'd be lying if I said OS X wasn't the sleekest OS I've used.
yeticry has quit [Ping timeout: 265 seconds]
<Aeyrix> (in my experience, for my use, personally)
<Aeyrix> Again, I work in security and as a programmer. I also play video games.
<agent_white> If it doesn't have a tiling wm, count me out. I like boxes!
<Aeyrix> It's a happy medium.
<hanmac1> i once had a problem that my stuff did not work on osx because i did need a *.app dir or something funcy like that
<Aeyrix> .app is a uh
<Aeyrix> how to put this in english
<jhass> I'm totally willing to accept "I like working with OS X more than working with Gnome", but "I like working with OS X more than with Linux" is like saying "I like hammers more than stone"
<Aeyrix> jhass: Come on mate, I thought you were better than such an obtuse stance.
<jhass> (without even specifying the task you like hammers for)
<Aeyrix> It's entirely subjective.
<Aeyrix> I also specified my tasks.
<Aeyrix> [19:51:16] <Aeyrix>Again, I work in security and as a programmer. I also play video games.
<agent_white> Well it just doesn't make sense.
<Aeyrix> hanmac1: Hold on let me
<Aeyrix> work out how to English it
yeticry has joined #ruby
<Aeyrix> It's almost like a .zip but not compressed.
<agent_white> Aeyrix: You've seen those DE's that are complete replicas of OSX, right? If you used one, would you know you weren't using OSX?
<Aeyrix> agent_white: Yes.
<Aeyrix> Because I wouldn't be able to play Diablo 3.
tubuliferous_ has joined #ruby
* sevenseacat totally does not understand this conversation
ta has joined #ruby
<agent_white> Aeyrix: Ah.
failshell has joined #ruby
<Aeyrix> agent_white: Yes. Once again, it's a *happy medium* for me between Windows and Linux.
<hanmac1> Aeyrix: i am doing a binding for wxWidgets using ruby scripts ... tell me how i should put that in a .app stuff ? imo it doesnt make much sense when i want a script file but OSX want something different
<Aeyrix> And I need that medium.
<agent_white> I only find OSX to be sleek in it's fisher-price UI. Stripped of that, meh.
<agent_white> Aeyrix: Fair enough :)
bartkoo has joined #ruby
<jhass> https://appdb.winehq.org/objectManager.php?sClass=version&iId=29952 has a whole bunch of gold ratings, just sayin'
<toretore> i used to like os x too; now i can't wait to get back to linux. i'm done with the form-over-function pretty bs
<Aeyrix> jhass: Gold isn't good enough?
<Aeyrix> s/\?/./
<sevenseacat> toretore: hear hear
<sevenseacat> i dont understnad how some of the most basic stuff can be broken, like finder
<toretore> once you start poking the surface of os x, the cracks appear
<Aeyrix> ??
rocknrollmarc has joined #ruby
<Aeyrix> That works fine yo.
<toretore> and i want a tiling wm :/
rocknrollmarc has quit [Max SendQ exceeded]
<toretore> windows are bs
tubuliferous_ has quit [Ping timeout: 276 seconds]
tuelz has joined #ruby
<Aeyrix> toretore: I personally dislike tiling WMs tbh.
rocknrollmarc has joined #ruby
<Aeyrix> Prefer my floaties.
<agent_white> :(
rocknrollmarc has quit [Max SendQ exceeded]
<agent_white> But... tiling is the golden ratio.
<Aeyrix> :(
<Aeyrix> I have more windows than screen space.
failshell has quit [Ping timeout: 256 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
<agent_white> I didn't think I'd like them. But I realized I don't really use any GUI apps besides a web-browser, and I enjoy movement via my keyboard more than my mouse.
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
<hanmac1> Aeyrix: https://github.com/Hanmac/rwx/tree/master/samples/widgets thats the widgets sample ... how do i need to rewrite it so that it gets working on osx ?
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
dorei has joined #ruby
lidenska_ has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
tuelz has quit [Ping timeout: 265 seconds]
SouL_|_ has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
colorados has joined #ruby
<Aeyrix> hanmac1: tbh idk
gigetoo has joined #ruby
<sevenseacat> not surprising
moeabdol1 has joined #ruby
blackmesa has joined #ruby
mengu has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
<Aeyrix> sevenseacat: DAE HATE APEL????!?!?!?!
<Aeyrix> lmao such angst in here
<Aeyrix> >i choose to use a tool
<Aeyrix> so much mad
<sevenseacat> who's mad?
<Aeyrix> You're being cynical a/f
<Aeyrix> so probably you idk
<sevenseacat> i'm always cynical.
<Aeyrix> Wouldn't have guessed. :^)
Guest19950 has quit [Ping timeout: 256 seconds]
<jhass> Aeyrix: "and it's actually usable in comparison to Linux" sounds like an objective statement, so that's why this happens ;)
ahmetkapikiran has quit [Quit: ahmetkapikiran]
moeabdol1 has quit [Ping timeout: 264 seconds]
adac has quit [Ping timeout: 272 seconds]
<toretore> more like someone's getting all offended and take it personally when others criticize their tool of choice
<Aeyrix> jhass: If you can't infer that I'm not qualified enough to make that as an objective statement
<Aeyrix> then
<Aeyrix> that's kind of an issue you need to resolve yourself
Hounddog has joined #ruby
<Aeyrix> because it'll probably come up again someday
<Aeyrix> toretore: not really
<Aeyrix> just so much iAngst though
Mohan_ has joined #ruby
<Aeyrix> Or should it be GNU/Angst?
<sevenseacat> toretore: i wasnt gonna say it, but yeah
<toretore> you're the only one that keeps going on about it..
yeticry has quit [Ping timeout: 252 seconds]
<Aeyrix> toretore: because responding to people is being "the only one that keeps going on about it"
uptownhr has joined #ruby
<Aeyrix> don't be a moron
<sevenseacat> Aeyrix: official warning. don't insult people.
<Aeyrix> You say, while encouraging others to do the same.
mengu has joined #ruby
juanpablo_____ has joined #ruby
<sevenseacat> i'm not encouraging anyone to do anything. we all like and use different tools. you're the only one getting shirty about it.
<Aeyrix> ...
<Aeyrix> Reread
<Aeyrix> the entire conversation
<Aeyrix> please
<sevenseacat> i've been here the entire time.
<Aeyrix> evidently not
<sevenseacat> if you'd like to not obey the channel rules, i can invite you to leave.
yeticry has joined #ruby
iteratorP has quit [Remote host closed the connection]
<Aeyrix> >disobeys channel rules
<Aeyrix> >is an oper tho so it's k
jayeshsolanki has joined #ruby
<sevenseacat> feel free to point out the rules i have broken, and i can provde you a list of other ops to take up your issues with.
<Aeyrix> Please do.
<Aeyrix> The latter, that is.
<jhass> !ops
<Aeyrix> The fact I even had to defend my "tool of choice" which was mentioned as a passing comment while attempting to assist someone is...
<ruboto> sepp2k, fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, Karpah, miah, workmad3, Coraline
<sevenseacat> !ops
<ruboto> sepp2k, fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, Karpah, miah, workmad3, Coraline
<Aeyrix> actually kind of expected
<sevenseacat> there we go.
<Aeyrix> from the #ruby community
<Aeyrix> tbh
<Aeyrix> thank
<sevenseacat> contact any one of them. except Karpah, because thats me.
<Aeyrix> I'm aware that's you.
<jhass> Aeyrix: I'd like to see the list too, accompanied with examples and explanations why the example breaks the rule
<sevenseacat> good good, just making sure.
<Aeyrix> jhass: No point.
<Aeyrix> I'm
<Aeyrix> discussing you too :)
<Aeyrix> Since I knew you were an oper as well, hence the "I thought you were better than that" earlier
<sevenseacat> apeiros is the most senior person here, feel free to take up issues with him.
<jhass> I like to learn though
<Aeyrix> ok
<Aeyrix> what tz?
<jhass> CEST
<Aeyrix> jhass: Couldn't actually tell.
<Aeyrix> HM.
<sevenseacat> err.... he's in europe somewhere.
n008f4g_ has joined #ruby
<Aeyrix> ok
<Aeyrix> probably working
ismaelga has joined #ruby
<hanmac1> imo its shitty to read sentences where the Author does use Enter after every SINGLE word ...
<Aeyrix> Deal with it.
uptownhr has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
<Aeyrix> I'm sure you're capable. You are, after all, capable of being rude about my choice of toolset.
<toretore> george is getting angry!
<Aeyrix> Who's george? o_O
juanpablo_____ has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
<tobiasvl> costanza
startupality has joined #ruby
<toretore> actually, i believe the correct phrasing is "george is getting upset"
colli5ion has quit [Remote host closed the connection]
startupality has quit [Client Quit]
gizless has joined #ruby
gizmore has quit [Ping timeout: 250 seconds]
yaw has joined #ruby
<Aeyrix> u wot
Alina-malina has quit [Quit: Leaving]
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
quimrstorres has quit [Remote host closed the connection]
lessless has joined #ruby
serivich has joined #ruby
quimrstorres has joined #ruby
alex88 has joined #ruby
sdothum has joined #ruby
ta has quit [Remote host closed the connection]
* zotherstupidguy thinkin "the summer of george"
<Aeyrix> Seinfeld right?
<Aeyrix> Yas apparently.
<zotherstupidguy> sevenseacat what is MBP?
<sevenseacat> zotherstupidguy: macbook pro
kyrylo has quit [Ping timeout: 276 seconds]
<toretore> imagen sinefeld on tv in today's time... gorge use os x, doesnt work proprly, GEORGE is gettin UPSET, BABY!!!
<zotherstupidguy> agent_white if you like tiling wms then you use monitors or big screens, correct?
chipotle has quit [Quit: cheerio]
zoras_ has joined #ruby
<agent_white> zotherstupidguy: I have 3 monitors, 2 connectd to one computer, the 3'rd is a seperate machine.
<Aeyrix> Dem.
<agent_white> zotherstupidguy: No really 'big screens' though. :)
<Aeyrix> I can't use more than one at a time.
<Aeyrix> Sometimes I plug a few in and they just kind of... idle.
sevenseacat has quit [Quit: Me dun like you no more.]
zoras_ has quit [Client Quit]
zoras has quit [Ping timeout: 265 seconds]
serivichi has joined #ruby
joonty has quit [Quit: joonty]
serivich has quit [Ping timeout: 240 seconds]
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
startupality has joined #ruby
codecop_ has quit [Remote host closed the connection]
chipotle has joined #ruby
<agent_white> This third monitor I use is basically my dedicated IRC monitor :P The other 2 vary. Generally the one I face straight-foward is my browser for searching, or main code, and to my left is for scrolling logs, less important code, misc stuff
dawkirst has quit [Remote host closed the connection]
<agent_white> (music player, etc.0
joonty has joined #ruby
* zotherstupidguy thinkin "the jerk store called... and they're running out of you"
<Aeyrix> They have plenty of me. :^)
<zotherstupidguy> agent_white have you tried ncmpcpp before?
reinaldo_ has joined #ruby
reinaldo_ has quit [Remote host closed the connection]
startupality has quit [Client Quit]
<zotherstupidguy> agent_white you know i always wanted more than one screen but it sucks to use more than one keyboard, is there a way to fix that?
chipotle_ has joined #ruby
<Aeyrix> zotherstupidguy: There's a program for that actually.
blackmesa has quit [Ping timeout: 264 seconds]
<Aeyrix> It was made by Stardock.
chipotle has quit [Ping timeout: 264 seconds]
* zotherstupidguy is deemed to be a linux user
yqt has joined #ruby
<Aeyrix> Oh.
<Aeyrix> Maybe there's something
<toretore> why do you have to use more than one keyboard?
<toretore> they're not connected to the same computer?
<shevy> he has 4 hands
dumdedum has quit [Quit: foo]
<adaedra> zotherstupidguy: look at synergy
<zotherstupidguy> shevy one pipe and six urethras, who am i?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> bill gates
<zotherstupidguy> NO, a penis shaped fountain!
AlphaAtom has joined #ruby
<zotherstupidguy> toretore i got laptops
<shevy> wat
<shevy> a fountain??
startupality has joined #ruby
* zotherstupidguy apologizes! its a joke
<Darkwater> why can't I define a Config class?
<shevy> you don't apologize on IRC man
<Darkwater> it tells me Config is obsolete and that I should use RbConfig
<shevy> Darkwater do you get an error?
<Darkwater> yes
<shevy> aah so you get a warning
<shevy> the problem was that the name was too common
<Darkwater> TypeError
timonv has joined #ruby
<shevy> so the leading "Rb" was added there
<shevy> RbConfig::CONFIG['sitelibdir']
<Darkwater> so I should use another name?
<shevy> you can use another name in a namespace
<shevy> for instance, if you have a project 'foobar'
<shevy> module Foobar
<shevy> class Config
<shevy> CONFIG
<shevy> :)
<Darkwater> meh, I'll just use another name, thanks
<shevy> hehe
DerisiveLogic has joined #ruby
<shevy> toplevel names are often already in use; for instance, "module Kernel" or "class Object" or "class Module"
<shevy> I once tried to write a MUD in ruby. I thought "every object must be of class Object"
<shevy> I did not use namespaces back then yet and was confused when I got strange behaviour from modifying class Object
<Darkwater> heh
colorados has quit [Ping timeout: 245 seconds]
<Darkwater> well I could use namespaces
<shevy> \o/
<Darkwater> but it's an application and not a library, so I'm not sure if it'
<Darkwater> ll be too much of a hassle
<zotherstupidguy> Darkwater and you can use irb or pry to check if the name is reserved or even ri
<shevy> yeah, if you use a longer name, it's rare to clash
<shevy> class BankAccount
<Darkwater> fuck it, I'll just go namespace
<shevy> or whatever that app is doing
<shevy> lol
Aeyrix has quit [Quit: ZNC - http://znc.in]
<zotherstupidguy> the point taken here is with metaprogramming namespacing kinda matters more
Leef_ has quit [Quit: Leaving]
tuelz has joined #ruby
startupality has quit [Quit: startupality]
mengu has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
dawkirst has joined #ruby
lidenskap has joined #ruby
rodfersou has joined #ruby
<toretore> Darkwater: just use a namespace; most of your code will be running inside it anyway, so you don't have to actually write it out
<Darkwater> yeah
tuelz has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
<toretore> if it's a program, there will be like one `MyNamespace::App.new.run` at the bottom
RegulationD has joined #ruby
ahmetkapikiran has joined #ruby
<Darkwater> will I get burned if I use Main as name?
wWw-BukoLay-Com has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deck` has joined #ruby
avril14th has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
<toretore> Darkwater: not inside a module, no
moeabdol1 has joined #ruby
moeabdol1 has quit [Client Quit]
RegulationD has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
terlar has joined #ruby
workmad3 has joined #ruby
<Darkwater> kk
iasoon has joined #ruby
<shevy> I guess Main is not available by default anyway
<shevy> so you could use class Main too
<shevy> >> Main.class
<ruboto> shevy # => uninitialized constant Main (NameError) ...check link for more (https://eval.in/337485)
<shevy> but it's not very descriptive as a name :D
tuelz has joined #ruby
<shevy> now you also may begin to understand why there are so many ruby projects with strange names... thor ... rainbow ... puma ... unicorn ... god ...
<shevy> picking a name can be hard
lidenskap has quit [Ping timeout: 246 seconds]
<Darkwater> now how would you recommend using rspec with this?
<Darkwater> if everything's in the same module
rkazak has joined #ruby
<Darkwater> just describe Module::Class everywhere?
kibou has joined #ruby
<Darkwater> or maybe there's a flag or something for .rspec/
<Darkwater> ?*
Leef_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phutchins1 has joined #ruby
colorados has joined #ruby
rkazak has quit [Ping timeout: 244 seconds]
<shevy> not sure, I never got far into rspec
ta has joined #ruby
Akagi201 has quit [Remote host closed the connection]
nettoweb has joined #ruby
<jhass> Darkwater: yeah, just always use the full thing
<Darkwater> kk
_tpavel has joined #ruby
chipotle_ has quit [Quit: cheerio]
rahult has joined #ruby
jayeshsolanki has quit [Ping timeout: 256 seconds]
kent\n has joined #ruby
_tpavel has quit [Quit: Leaving]
Mohan_ has quit [Ping timeout: 256 seconds]
mike_c_11 has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
Deck` has quit [Read error: Connection reset by peer]
Mohan has joined #ruby
Mohan is now known as Guest78477
jeromelanteri has joined #ruby
bigsky has quit [Ping timeout: 250 seconds]
jayeshsolanki has joined #ruby
bartkoo has quit [Quit: bartkoo]
bigsky has joined #ruby
ldnunes has joined #ruby
JDiPierro has joined #ruby
tesuji has quit [Ping timeout: 256 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ismaelga has quit [Remote host closed the connection]
colorados has quit [Ping timeout: 272 seconds]
gregf_ has quit [Ping timeout: 246 seconds]
gregf_ has joined #ruby
rahult has quit [Read error: Connection reset by peer]
rahult has joined #ruby
shazaum has joined #ruby
tubuliferous_ has joined #ruby
failshell has joined #ruby
iasoon has quit [Ping timeout: 265 seconds]
rahult has quit [Read error: Connection reset by peer]
codecop has joined #ruby
rahult has joined #ruby
valkyrka has quit [Quit: valkyrka]
terlar has quit [Quit: WeeChat 1.1.1]
tubuliferous_ has quit [Ping timeout: 244 seconds]
failshell has quit [Ping timeout: 256 seconds]
kartouch has joined #ruby
rahult has quit [Client Quit]
qwertme has joined #ruby
hewenhong has joined #ruby
rahult has joined #ruby
Squarepy has joined #ruby
SouL_|_ has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
iasoon has joined #ruby
colorados has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
banister has joined #ruby
sgambino has joined #ruby
startupality has joined #ruby
dvlwrk has joined #ruby
Hirzu has quit [Read error: Connection reset by peer]
Hirzu has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
AlexRussia has quit [Ping timeout: 256 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Lloyd is now known as lloyd
infoget has quit [Quit: Leaving.]
zenguy_pc has quit [Remote host closed the connection]
juanpablo_____ has joined #ruby
<maxmanders_> I'm using Thor, and have a subcommand class called SQS... the default banner calls the subcommand 's_q_s' (as per Ruby conventions) but 'sqs' works... any idea how I'd coerce my class to call itself 'sqs' in the help banner that's generated?
rahult has joined #ruby
hewenhong has quit []
colorados has quit [Ping timeout: 265 seconds]
ubermonkey has joined #ruby
colorados has joined #ruby
zenguy_pc has joined #ruby
startupality has quit [Quit: startupality]
SouL_|_ has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
<lessless> hey folks, in array of sorted numbers, how to get first bigger number than n?
tuelz has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
juanpablo_____ has quit [Ping timeout: 276 seconds]
but3k4 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
jeromelanteri has quit [Ping timeout: 245 seconds]
moeabdol has joined #ruby
valkyrka has joined #ruby
ubermonkey has quit [Ping timeout: 264 seconds]
Guest78477 has quit [Ping timeout: 265 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest85239
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
<banister> lessless lol r u for real
SouL_|_ has joined #ruby
failshell has joined #ruby
startupality has quit [Quit: startupality]
<banister> might be better to do a binary search
zz_Outlastsheep is now known as Outlastsheep
dawkirst_ has joined #ruby
AlexRussia has joined #ruby
dawkirst has quit [Read error: Connection reset by peer]
<adaedra> wait, what
bartkoo has joined #ruby
hanachin has joined #ruby
joonty has quit [Quit: joonty]
startupality has joined #ruby
<shevy> lessless you can usually make your query-filters, such as through .select {|entry| entry > n } or .find as djellemah
ki0 has quit []
<banister> adaedra if the list of numbers is sorted u can do a binary search
Soda has joined #ruby
DEA7TH_ has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
<adaedra> yes you can, but .find { } is quicker to write, and I was reacting to your other message, actually
mostlybadfly has joined #ruby
moeabdol has joined #ruby
Hirzu has quit [Remote host closed the connection]
sevenseacat has joined #ruby
iasoon has quit [Ping timeout: 272 seconds]
Hirzu has joined #ruby
lloyd is now known as Lloyd
sinkensa_ has quit [Remote host closed the connection]
<adaedra> then give the method directly >_>
thatslifeson has joined #ruby
sarid has quit [Quit: ZNC - http://znc.in]
<banister> array.bsearch { |x| x > n }
blackmesa has joined #ruby
aldarsior has joined #ruby
<maxmanders_> Should lib/ in a Ruby gem follow Module structure; or should all the files live flat in lib/ regardless of the modules that may be nested in the files themselves?
<adaedra> usually, you should follow module structure
<adaedra> so you can have A::B::C by including 'a/b/c'
sinkensabe has joined #ruby
unreal_ is now known as unreal
thatslifeson has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
<shevy> what is the '#' called ideally as short as possible? hash key? hmm
kyrylo has joined #ruby
<banister> pound
GriffinHeart has joined #ruby
<canton7> pound / hash. Note that in the UK, 'pound' is £, not #
quimrstorres has quit [Remote host closed the connection]
nini1294 has joined #ruby
CamonZ has joined #ruby
freerobby has quit [Quit: Leaving.]
<pipework> maxmanders_: Do that which makes sense, and failing that, do what everyone else does.
sinkensabe has joined #ruby
loechel has joined #ruby
GriffinHeart has quit [Ping timeout: 256 seconds]
tuelz has joined #ruby
subtwo has quit [Quit: (null)]
tvw has quit [Read error: Connection reset by peer]
Rapier- has joined #ruby
valkyrka has quit [Quit: valkyrka]
SOLDIERz has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<maxmanders_> Thanks jhass / pipework !
denver has quit [Read error: Connection reset by peer]
joonty has joined #ruby
maxmanders_ is now known as maxmanders
rocknrollmarc has quit [Ping timeout: 264 seconds]
systemd0wn has quit [Remote host closed the connection]
ismaelga has joined #ruby
kubunto has joined #ruby
mengu has joined #ruby
craigp has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
sankaber has joined #ruby
systemd0wn has joined #ruby
cyberarm has joined #ruby
diegoaguilar has joined #ruby
dstarh has joined #ruby
nini1294 has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
apurcell has joined #ruby
RegulationD has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 256 seconds]
apurcell has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
JDiPierro has joined #ruby
claw has quit [Ping timeout: 272 seconds]
Deele has joined #ruby
claw has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
PrincessAww is now known as Aww
oo_ has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
<Darkwater> now that someone mentioned it anyways
TheNet has joined #ruby
<Darkwater> what are _ and ? often called?
<Darkwater> aside from underscore and question mark
<shevy> don't know if they have other names
<Darkwater> but single-syllable names are important!
<shevy> I realized that describing this single-character tokens with a word, takes longer :(
ubermonkey has joined #ruby
dblessing has joined #ruby
<shevy> def colourized_pound_character; green('#'); end
enebo has joined #ruby
<shevy> or green_pound :P
Guest85239 has quit [Ping timeout: 246 seconds]
<shevy> self-descriptive and shorter it would go via '#'.green
sanguisdex has quit [Quit: Leaving.]
Hirzu has quit [Remote host closed the connection]
Hirzu has joined #ruby
rahult is now known as rahult_
Mohan has joined #ruby
Mohan is now known as Guest78908
rahult_ is now known as rahult
jerius has joined #ruby
cyberarm has quit [Ping timeout: 256 seconds]
claw has quit [Ping timeout: 256 seconds]
ubermonkey has quit [Ping timeout: 264 seconds]
claw has joined #ruby
banister has quit [Read error: Connection reset by peer]
juanpablo_____ has joined #ruby
griffindy has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
sanguisdex has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
mgorbach has joined #ruby
sigurding has quit [Quit: sigurding]
gizless has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
towski_ has joined #ruby
Lloyd_ has joined #ruby
tuelz has quit [Ping timeout: 265 seconds]
airdisa has joined #ruby
Lloyd has quit [Ping timeout: 256 seconds]
Lloyd_ is now known as Lloyd
chipotles has joined #ruby
qwertme has joined #ruby
apurcell has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
<TheNet> Darkwater: dead snake and upside-down kneeling person
bartkoo has quit [Quit: bartkoo]
zenguy_pc has joined #ruby
ki0 has joined #ruby
thatslifeson has joined #ruby
<Darkwater> ques tion mark
<Darkwater> up side down knee ling per son
<Darkwater> that's even worse v:
<Darkwater> might call _ snake though
<Darkwater> fits with the term snake case
tuelz has joined #ruby
apurcell has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
nettoweb has joined #ruby
gizmore has joined #ruby
banister has joined #ruby
scripore has joined #ruby
<hanmac1> hm like that? ;P
dawkirst_ has quit [Quit: Leaving...]
tubuliferous_ has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
kubunto has quit [Quit: I have no special talent I am only passionately curious]
ta has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
bMalum has joined #ruby
startupality has joined #ruby
thatslifeson has quit [Ping timeout: 256 seconds]
SouL_|_ has quit [Ping timeout: 252 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
tubuliferous_ has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
riotjones has quit [Remote host closed the connection]
rbennacer has joined #ruby
deric_skibotn has quit [Read error: Connection reset by peer]
<shevy> guys
<shevy> I have identified another snake
<shevy> you thought that python is the only slithering way to program but no
<shevy> var _random = Random()
deric_skibotn has joined #ruby
<shevy> isn't that awesome?
lavros has joined #ruby
<Darkwater> I shivered
Akagi201 has joined #ruby
startupality has quit [Quit: startupality]
mengu has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
thatslifeson has joined #ruby
cajone has joined #ruby
sinkensabe has joined #ruby
<canton7> ah, that's a .net language
<canton7> thought I recognized some of the class names
willharrison has joined #ruby
<shevy> hehehe
<shevy> There is also a squirrel programming language http://squirrel-lang.org/
<wasamasa> a language whose name I cannot pronounce properly?
<wasamasa> awesome
sevenseacat has quit [Quit: Me dun like you no more.]
allcentury has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<TheNet> that website is glorious
nricciar_ is now known as nricciar
agent_white has joined #ruby
agent_white has quit [Changing host]
agent_white has joined #ruby
ta has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<shevy> wasamasa haha that reminds me of seinfeld bloopers ... "wait a minute ... is this the group that goes out and mutilates squirrrrrrrrrrrls?"
penzur has quit [Quit: zzzz]
al2o3-cr has joined #ruby
nini1294 has joined #ruby
f3lp has joined #ruby
dvlwrk has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 255 seconds]
iamninja has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
scripore has joined #ruby
kibou has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
livathinos has joined #ruby
Guest78908 has quit [Ping timeout: 264 seconds]
Guest1421 has joined #ruby
roolo_ has joined #ruby
alderamin has joined #ruby
Mohan_ has joined #ruby
bMalum has quit [Quit: bMalum]
decoponio has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Askilada has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has joined #ruby
mengu has joined #ruby
emilkarl has quit [Quit: emilkarl]
ayaz has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
bMalum has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
agent_white has joined #ruby
agent_white has quit [Client Quit]
leafybas_ has joined #ruby
lidenskap has quit [Ping timeout: 245 seconds]
selu has joined #ruby
zotherstupidguy has quit [Ping timeout: 272 seconds]
leafybasil has quit [Ping timeout: 252 seconds]
willharrison has joined #ruby
wpp has quit []
Mohan_ has quit [Ping timeout: 255 seconds]
werelivinginthef has joined #ruby
tagrudev has quit [Remote host closed the connection]
ubermonkey has joined #ruby
Mohan has joined #ruby
Bira has joined #ruby
mengu has quit []
Mohan is now known as Guest47102
Kricir has joined #ruby
andikr has quit [Remote host closed the connection]
wasamasa is now known as vms
workmad3 has joined #ruby
livathinos has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
airdisa_ has joined #ruby
Aww has left #ruby ["Leaving"]
arup_r has quit []
vms is now known as wasamasa
vikaton has joined #ruby
airdisa has quit [Ping timeout: 256 seconds]
ubermonkey has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
mitchellhenke has joined #ruby
edwinvdgraaf has quit [Ping timeout: 272 seconds]
gambl0re has quit [Ping timeout: 265 seconds]
loechel has quit [Ping timeout: 265 seconds]
johnhame_ has joined #ruby
<gregf_> fortunately squirrels taste quite decent
Pumukel has quit [Ping timeout: 264 seconds]
electriv has quit [Quit: Textual IRC Client: www.textualapp.com]
j_mcnally has joined #ruby
aldarsior has quit [Quit: aldarsior]
aldarsior has joined #ruby
colorados has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
catcher has joined #ruby
Mon_Ouie has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL_|_ has joined #ruby
lessless has joined #ruby
dc has joined #ruby
<dudedudeman> see i wouldn't be able to even tell you what something like squirrel would be good for
livathinos has quit []
rbennacer has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
rbennacer has joined #ruby
symbol has joined #ruby
Channel6 has joined #ruby
willharrison has quit [Quit: leaving]
colorados has joined #ruby
Leef_ has quit [Quit: Leaving]
<johnhame_> Hey guys, I have a reasonably popular gem called diplomat, I'm working on cleaning up its codebase somewhat - I have a lot of methods like the ones here: https://github.com/wearefarmgeek/diplomat/blob/0c0049a21a0c7a2e066f312117e0a9aba30665e8/lib/diplomat/check.rb#L97 How can I refactor this to be cleaner without breaking the API?
jobewan has joined #ruby
riotjones has joined #ruby
Guest47102 has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
DerisiveLogic has quit [Ping timeout: 250 seconds]
n008f4g_ has quit [Ping timeout: 276 seconds]
mrdmi has quit [Ping timeout: 256 seconds]
<jhass> johnhame_: how about module_function?
Porfa has joined #ruby
Mohan_ has joined #ruby
<^conner> johnhame_, If you didn't have create a new Diplomat::Check object for every call, you could mixing those methods directly
<^conner> jhass, aren't included module_function methods private?
tuelz1 has joined #ruby
zzing has joined #ruby
<jhass> no?
bMalum has quit [Quit: bMalum]
riotjones has quit [Ping timeout: 240 seconds]
<jhass> ah, you still need initialize?
<jhass> but a new instance each call? mh
Squarepy has quit [Quit: Leaving]
tjohnson has joined #ruby
LJT has joined #ruby
<jhass> johnhame_: is Check.new public API?
endash has joined #ruby
mallu has joined #ruby
x1337807x has quit [Client Quit]
tuelz has quit [Ping timeout: 246 seconds]
symbol has quit [Quit: WeeChat 1.1]
<jhass> btw you have a doc mismatch
<jhass> your methods return bools, not the status code
digitalextremist has quit [Remote host closed the connection]
<johnhame_> jhass: yeah it is :)
<johnhame_> jhass: yeah I'm working through the issues here as well: https://inch-ci.org/github/wearefarmgeek/diplomat/branch/master/suggestions
<hanmac1> johnhame_ checkout this: def self.method_missing(methId, *args); method_defined?(methId) ? new.send(methId, *args) : super; end
shellfu is now known as shellfu_broke
mrdmi has joined #ruby
<johnhame_> hanmac1: thanks I'll give that a go :)
<jhass> I'm not sure I'd use method_missing here, probably not
<jhass> could proxy unwanted methods
tuelz1 has quit [Ping timeout: 244 seconds]
<johnhame_> jhass: this is true. I can filter by an array of acceptable methods though?
<johnhame_> I'd also like to have that method in the parent class, RestClient
<johnhame_> so it's a bit more DRY
<jhass> if cleaning up the class design is undesired (since all follow up question towards it were ignored), I'd go for %i(...).each do |method| + define_singleton_method + public_send
jobewan has quit [Quit: Leaving]
thatslifeson has quit [Remote host closed the connection]
tuelz1 has joined #ruby
jobewan has joined #ruby
jobewan has quit [Client Quit]
<johnhame_> oh oops I missed those messages
<mallu> Can you please take a look at this code snippet and tell me how I can create both preprod and prod project if compartment is null? https://dpaste.de/zeCE
alexherbo2 has joined #ruby
<jhass> mallu: what does null mean?
aldarsior has quit [Quit: aldarsior]
<jhass> the none value in Ruby is nil
<jhass> do you have the String null or...?
<mallu> jhass; if there is no value in pdata['compartment']
<jhass> if compartment == "prod" || compartment.nil?; ...; end; if compartment == "preprod" || compartment.nil?; ...; end;
<mallu> jhass: so I should create a method everything below "# creating project" so that it can iterate over the method and create preprod and prod projects?
nini1294 has quit [Read error: Connection reset by peer]
<mallu> jhass: My goal is if compartment has no value, I want to create prod and preprod projects
<jhass> I guess so, there might be a solution more idiomatic to the framework you're using
<jhass> but that's nothing #ruby can answer
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nini1294 has joined #ruby
<mallu> jhass: thank you
Caius has quit [Ping timeout: 276 seconds]
mrdmi has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
airdisa_ has quit []
snath has quit [Ping timeout: 255 seconds]
umgrosscol has joined #ruby
DerisiveLogic has joined #ruby
<Porfa> can anyone help me out solve my loop issue?
<Porfa> https://gist.github.com/anonymous/eb33f5c872158c7ab05d <---- instead of fetching me the strings from 10 different items, it repeats the strings of the first item in the site, 10 times.
<mwlang> I must be doing something wrong with selenium + phantomjs. “document = Nokogiri::HTML connection.page_source” leads to an HTML request being sent to “/session/772d0660-f591-11e4-80e0-07267ae42b35/source” rather than giving me the HTML of the current page. That, of course, gives 404 response since “source” isn’t a valid route.
<jhass> Porfa: I'll look at the code after you properly indented it
<Porfa> jhass: ok, i'll do it know then thank you
Caius has joined #ruby
rbennacer has quit [Remote host closed the connection]
<Porfa> i'll do it know, thank you*
<Porfa> NOW*
bMalum has joined #ruby
mrdmi has joined #ruby
Hounddog has quit [Remote host closed the connection]
<jhass> and here I always thought phantomjs and selenium are alternatives for the same job
shellfu_broke is now known as shellfu
failshell has quit [Remote host closed the connection]
speakingcode has quit [Remote host closed the connection]
<mwlang> jhass: phantomjs is a driver for selenium.
<Porfa> is this it? https://gist.github.com/anonymous/4f760b691008b9ceed9e is it properly dented?
<mwlang> selenium automates browser interactions, so the driver can be firefox, chrome, etc. or in my case the headless phantomjs “browser"
vudew has quit [Ping timeout: 256 seconds]
<jhass> oh, TIL, I always thought selenium is FF only
leafybas_ has quit [Remote host closed the connection]
yalue has joined #ruby
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gauke has quit [Quit: gauke]
leafybasil has joined #ruby
<jhass> Porfa: nope, first of all ruby community standard is two spaces. Why did you indent line 19 a level further compared to line 18? and why did you indent line 10ff at all?
vudew has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
<mwlang> jhass: way back in the day, I think it was FF only.
Bira has quit []
casadei_ has joined #ruby
<wasamasa> it doesn't need any extras to work in firefox
<wasamasa> which is pretty cool
<Porfa> jhass: because I'm a moron i guess, i don't have the code etiquette because i didn't learn it, sorry
<jhass> Porfa: I'm going hard on you here about it because indentation is key to follow the flow of your own program, being pedantic about it pays off ;)
diegoaguilar has quit [Remote host closed the connection]
<Porfa> i agree with you and I'm actually thankful, because when i learn online from websites, i don't have a real person to pull my eras, so thank you i guess! :)
<Porfa> eras/ears
avahey has joined #ruby
Filete has joined #ruby
havenwood has joined #ruby
thatslifeson has joined #ruby
ndrei has joined #ruby
<jhass> Porfa: so, let's think about it, what's wone inside your loop?
umgrosscol has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 264 seconds]
mrdmi has quit [Ping timeout: 256 seconds]
snath has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilenceTi has joined #ruby
<SilenceTi> hello
dfinninger has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
<SilenceTi> `singleton class': undefined method `default_specifications_dir' for class `Class' (NameError)
<SilenceTi> i'm having this error
<jhass> SilenceTi: great!
<SilenceTi> someone knows why? or could give me a little help?
<SilenceTi> please
<jhass> maybe if you provide some more information
mrdmi has joined #ruby
<SilenceTi> sorry
<Darkwater> looks like the method default_specifications_dir doesn't exist on class
<SilenceTi> for example when i do this: gem install bundler
<SilenceTi> error: /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:34:in `singleton class': undefined method `default_specifications_dir' for class `Class' (NameError)
<jhass> looks like your ruby installation is borked, how did you get it?
dvlwrk has joined #ruby
<SilenceTi> apt-get install
danman has joined #ruby
startupality has quit [Quit: startupality]
<SilenceTi> i'm going to remove it
<jhass> debian I guess?
<SilenceTi> yes,
<SilenceTi> ubuntu
pdoherty has joined #ruby
longfeet has joined #ruby
tubuliferous_ has joined #ruby
anisha has joined #ruby
jenrzzz has joined #ruby
bMalum has quit [Quit: bMalum]
doertedev has quit [Quit: Lost terminal]
<hanmac1> ahh "inch" ... it does look interesting and funny but for now i cant use it yet :/
kblake has joined #ruby
uptownhr has joined #ruby
<SilenceTi> jhass: any tips? :)
failshell has joined #ruby
<SilenceTi> i've removed ruby
<jhass> SilenceTi: try the brightbox packages, recent and less broken
<SilenceTi> thanks
<SilenceTi> i'll try it :)
juanpaucar has joined #ruby
kblake has quit [Read error: Connection reset by peer]
kblake_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
rhllor has joined #ruby
alex88 has quit []
momomomomo has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
kblake_ has quit [Read error: Connection reset by peer]
umgrosscol has joined #ruby
kblake has joined #ruby
momomomomo has quit [Client Quit]
danman has quit [Quit: danman]
snockerton has joined #ruby
hanmac1 has quit [Quit: Leaving.]
icebourg has joined #ruby
Channel6 has quit [Quit: Leaving]
kblake has quit [Read error: Connection reset by peer]
kblake_ has joined #ruby
charliesome has joined #ruby
mistermocha has joined #ruby
That1Guy has joined #ruby
demophoon has joined #ruby
kblake_ has quit [Read error: Connection reset by peer]
kblake has joined #ruby
haxrbyte has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
connor_goodwolf has joined #ruby
haxrbyte has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
MasterPiece has quit [Quit: Leaving]
Pupeno has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
jph98 has joined #ruby
Cust0sL1men has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
moeabdol1 has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rocknrollmarc has joined #ruby
naftilos76 has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
msgodf has quit [Ping timeout: 256 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
momomomomo_ has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
blackmesa has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
crazydiamond has quit [Ping timeout: 276 seconds]
aldarsior has joined #ruby
psmolen has quit [Ping timeout: 265 seconds]
haxrbyte has quit [Remote host closed the connection]
<naftilos76> Hi, how can i express the following with a regex condition: tmp = "one"; I want to check if the last char is 'e' and at the same time if the char next to the last one is not 'n' . I know that i can do tmp !~ /e.$/ but i do know how to combine both in one condition. How can i do both at the same time?
konsolebox has quit [Ping timeout: 264 seconds]
<jhass> naftilos76: negative lookbehind
<jhass> (google it)
SilenceTi has quit [Quit: Page closed]
<naftilos76> thanks man
<jhass> also note that $ is end of line, \z is end of string
<naftilos76> ok thanks
haxrbyte has joined #ruby
knikolov has quit [Quit: WeeChat 1.2-dev]
gambl0re has joined #ruby
rocknrollmarc has joined #ruby
roolo has joined #ruby
nini1294 has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Max SendQ exceeded]
jph98 has quit [Quit: jph98]
psmolen has joined #ruby
gaboesquivel has quit []
Mohan_ has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
TheNet has joined #ruby
Mohan has joined #ruby
slash_nick has joined #ruby
roolo_ has quit [Ping timeout: 272 seconds]
Mohan is now known as Guest63868
tus has joined #ruby
tuelz1 has quit [Ping timeout: 256 seconds]
Rollabun_ has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
SouL_|_ has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mistermocha has joined #ruby
Pupeno has quit [Remote host closed the connection]
ki0 has quit []
momomomomo has quit [Quit: momomomomo]
Pupeno has joined #ruby
sdothum has joined #ruby
jobewan has joined #ruby
gazay_ has joined #ruby
freerobby has quit [Quit: Leaving.]
ebernhardson has joined #ruby
ebernhardson has left #ruby [#ruby]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wWw-BukoLay-Com has quit []
shadoi has joined #ruby
nobitanobi has joined #ruby
TheNet has joined #ruby
momomomomo has joined #ruby
GaryOak_ has joined #ruby
zotherstupidguy has joined #ruby
Guest1421 has quit [Ping timeout: 272 seconds]
<zotherstupidguy> hi, how to test web apis with minitest?
<momomomomo> zotherstupidguy: !ask
<zotherstupidguy> hi, how to test web apis with minitest?
michaelreid has joined #ruby
<zotherstupidguy> !ask
<GaryOak_> haha
shadoi1 has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
<gambl0re> !ask
bricker has joined #ruby
<zotherstupidguy> !ask
<momomomomo> zotherstupidguy: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
<zotherstupidguy> momomomo !ask
<momomomomo> also, don’t ask the same question twice in quick succession
joonty has quit [Quit: joonty]
penzur has joined #ruby
* zotherstupidguy We're Trying To Live in a Society Here!!!
ubermonkey has joined #ruby
tuelz1 has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #ruby
vikaton has quit []
<jhass> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<zotherstupidguy> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<zotherstupidguy> ruboto knows me :D
timonv has quit [Ping timeout: 255 seconds]
Dopagod has joined #ruby
<zotherstupidguy> how to test web apis with minitest, pure minitest?
momomomomo has quit [Quit: momomomomo]
<jhass> bye!
umgrosscol has quit [Ping timeout: 272 seconds]
<jhass> mh, still need a good keyname for a guide like mike's there
rkazak has joined #ruby
ubermonkey has quit [Ping timeout: 244 seconds]
<zotherstupidguy> jhass, "hi" :)
njs126 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
* zotherstupidguy you got me at hello
* zotherstupidguy you had me at hello
ismaelga has quit [Client Quit]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
nini1294 has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
rkazak has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 255 seconds]
haxrbyte has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haxrbyte has quit [Remote host closed the connection]
baweaver has joined #ruby
dfinning_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
<jhass> !mk fact answers How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
<jhass> !fact mk answers How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
<ruboto> jhass, I will remember that answers is How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
mdw has joined #ruby
ta has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
ta has joined #ruby
LJT has quit [Quit: Sleeping...]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has quit [Quit: Leaving]
TheNet has joined #ruby
JDiPierro has joined #ruby
<gambl0re> any github experts here???
<zotherstupidguy> experts?
yaw has joined #ruby
<dudedudeman> well, git or github?
<tuelz1> what's a github expert?
<zotherstupidguy> gambl0re try #github
<tuelz1> I've used a webrowser before and a few times I typed http://www.github.com if that counts :p
haxrbyte has joined #ruby
Papierkorb has joined #ruby
konsolebox has joined #ruby
<jhass> also
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has, they will respond.
michaeldeol has joined #ruby
<gambl0re> are you serious? #github is like a funeral home.
Akagi201 has quit [Remote host closed the connection]
<mwlang> for those of you doing selenium or getting into it, here’s a great cheat sheet I just stumbled upon: https://gist.github.com/kenrett/7553278
<tuelz1> gambl0re: try asking a real question if you want a real answer
ndrei has joined #ruby
LJT has joined #ruby
<b00b00> I have a few lines string variable, what is the best way in ruby if i want to replace or remove a few chars/manipulate each line ?
scripore has quit [Quit: This computer has gone to sleep]
michaeldeol has quit [Client Quit]
<jhass> .lines.map ?
<zotherstupidguy> b00b00 ri String
<jhass> depends on the specifics really
mistermocha has quit [Remote host closed the connection]
<jhass> .gsub?
<tuelz1> b00b00: gsub
umgrosscol has joined #ruby
rbennacer has joined #ruby
<jhass> .tr?
sohrab has joined #ruby
rbennacer has quit [Remote host closed the connection]
<tuelz1> if I had to guess
<jhass> []= ?
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> gambl0re: I get answers in #git all the time, including github questions.
<jhass> so many possibilities...
rbennacer has joined #ruby
scripore has joined #ruby
mistermocha has joined #ruby
baweaver has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
<gambl0re> i asked my question in #git also....do you know the tv show The Walking Dead?
<tuelz1> lolwut
<dudedudeman> you still haven't asked your question here. :(
<zotherstupidguy> gambl0re whats ur question?
<mwlang> b00b00: best ask how to do something specific on that one. interpreted languages almost were born to process strings.
failshell has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
iamninja has joined #ruby
<tuelz1> unless you're taking a survey of how many github experts have watched the walking dead in the #ruby channel. Those aren't real questions
<tuelz1> we really would like to help. That's why we're here
<tuelz1> helping people makes us feel superior
<tuelz1> the more we help the bigger our heads get
DerisiveLogic has quit [Ping timeout: 264 seconds]
<dudedudeman> ok, i'll ask a question then. this is activerecord outside of rails, btw. How do i capture and display validation errors within my template? currently my app is catching my validations and not letting my input get written to the database, but i'm trying to figure out how to show my errors associated with that..
blackmesa has quit [Ping timeout: 272 seconds]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
poguez_ has joined #ruby
<tuelz1> dudedudeman: activerecord should be attaching validation errors to the AR object which you can just read from after validation I believe
<mwlang> dudedudeman: capture the validation messages to a variable at the point you call valid? or otherwise trigger validations on your objects.
thumpba has joined #ruby
gaboesquivel has joined #ruby
rahult is now known as rahult_
DerisiveLogic has joined #ruby
<mwlang> dudedudeman: or as tuelz1 says…my answer assumes you’re somehow clearing the validation messages from the AR objects.
<dudedudeman> currently i'm not doing anything with the messages. all i have are my validations within my model, with a message attached to them
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
<dudedudeman> so it looks like i need to go down the path of .valid?
<tuelz1> dudedudeman: the message is attached to the AR object you're building up and then validating, not to some validation object most liekly
choke|work has quit [Remote host closed the connection]
exadeci has joined #ruby
<dudedudeman> ah, yes. i've created no such object for it
thumpba_ has joined #ruby
jenrzzz has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.1.1]
mjuszczak has quit [Client Quit]
<tuelz1> so a typical lifecycle might be you take some POST params, build up an AR object - try to save the object which hits validation callbacks and presents you back with the same AR object that now has an error message attached to it...all this depends on what callbacks you hit, etc. though. Stuff I can't remember off the top of my head
rhllor has quit [Quit: rhllor]
<dudedudeman> so it would be worth creating that object on my post, then. which duh, makes the most sense
<tuelz1> dudedudeman: sounds reasonable, of course all of this would be easier to verify with a code sample
failshell has joined #ruby
qwertme has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
<dudedudeman> lemme go attempt to write out what we've been talking about in actual code
<tuelz1> dudedudeman: ugh that sounds awful
<dudedudeman> lol
<tuelz1> talking about code is so much more fun, are sure you wouldn't rather do that?
<dudedudeman> sure. lemme see if i can do both. lol
<tuelz1> srta off topic, am I unique in that I hate actually writing the code?
jenrzzz has quit [Ping timeout: 255 seconds]
That1Guy has joined #ruby
<dudedudeman> no, that would just make you a good senior level dev. :P
<tuelz1> hahaha I'm aiming for that manager position already!
penzur has quit [Quit: zzzz]
<dudedudeman> there you go
<tuelz1> (not really I'm actually still a jr. level idiot who specializes in sounding like I know what's going on)
<dudedudeman> it would probably also make you a fairly good speaker/presenter because you could lead people through your ideas, and then watch them try to code them to see if they actually work.
* wasamasa wonders just how many people that skill got a job
<dudedudeman> hey, fellow junior checking in!
<tuelz1> wasamasa: at least one ;)
apurcell has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
baweaver has joined #ruby
<dudedudeman> well, fellow one day junior
<wasamasa> tuelz1: I recall reading an article about people being angry about other people who
<tuelz1> dudedudeman: the secret to becoming a junior is the same in every field. Fake it until you make it.
<wasamasa> 're less good at programming getting a programming related job
<tuelz1> wasamasa: I can't help that the interview process is so entirely backwards that I'm the type of person who gets rewarded
ada2358 has joined #ruby
<wasamasa> tuelz1: yup
gauke has joined #ruby
<b00b00> mwlang: I actually want in that multiline string, replace the whole line with a specific char, and other lines replace or append the (") char around a few words, but lets start about how to do the first with replace whole line with a specific char, that case first line, thanks
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
<tuelz1> b00b00: I would regex for the newline character and split the string based on that. Then work with each string however you want
rocknrollmarc has joined #ruby
Spami has joined #ruby
startupality has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
gauke has quit [Client Quit]
deuterium has joined #ruby
rocknrollmarc has joined #ruby
<dudedudeman> tuelz1: i have some code, but it's in various parts of my app. what's the best way to show it to you?
<jhass> b00b00: if you want any sane answers, make a gist with your input and expected output
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
<tuelz1> I thought my answer was pretty sane :(
Pupeno has quit [Remote host closed the connection]
<jhass> for the amount of input given, it is
<tuelz1> horray #feelingvalidated
<Darkwater> what about eachh_line?
<scripore> is there any way I can reduce this code?
<scripore> sum_of = 0
<scripore> (1..num).each {|element| sum_of += (element ** 2)}
<tuelz1> Darkwater: yeah that would make sense if you actually knew all the methods in the stdlib ><
<tuelz1> :p
baweaver has quit [Remote host closed the connection]
<Darkwater> :v
<jhass> scripore: literally that code?
<jhass> there's probably a formula for it :P
<tuelz1> dudedudeman: hard to answer that question unfortunately, just give it your best shot and I'll help as best I can :)
<scripore> yeah, just that. I feel like it could be better
<tuelz1> dudedudeman: I do prefer gists, though
<jhass> anyway, dumb version: (1..num).inject(0) {|sum, n| sum + element**2 }
<jhass> sum_of =
<dudedudeman> tuelz1: word. i'm currently combing through fixing the NoMethodError it's giving me. i know it's doing that, just trying to figure out how to fix it
gauke has joined #ruby
<tuelz1> scripore: you'll never hurt anyones feelings if your code is more readable than condensed
<scripore> jhass, I was trying to get it to work using the inject method previous
nini1294 has quit [Read error: Connection reset by peer]
rbennacer has quit [Read error: Connection reset by peer]
<scripore> tuelzi, yeah, I agree. just wanted to see how it could be done better
<jhass> so sum_of = (2*num**3 + 3*num**2 + num)/6
<tuelz1> jhass: that's pretty nerdy that you knew the name of the formula he wanted. I'm nerdpressed.
rbennacer has joined #ruby
<jhass> tuelz1: nah, just wp skills
<tuelz1> still impressed so get used to it ;)
<jhass> I only recognized that it's a series
<tuelz1> I would actually love to see math formulas translated into ruby. Has anyone done this?
<tuelz1> I have to imagine it exists somewhere
Guest63868 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
wldcordeiro_ has joined #ruby
Mohan has joined #ruby
<tuelz1> dudedudeman: I will say that you should consider it a code smell if you're having a hard time showing the code that is causing a specific problem, although that isn't super useful as I can't really tell you how to do it better yet either
<dudedudeman> tuelz1: no no! I have one for you! https://gist.github.com/anonymous/1000b8c8a9051c797482
Mohan is now known as Guest41493
<tuelz1> but it's still a good idea as a jr. to start recognizing when your code could be structured better even before you know HOW to structure it better
blackmesa has joined #ruby
gazay_ has quit [Quit: gazay_]
<dudedudeman> the post where i'm trying to create my errors object is the calibration_post.rb, and the index where i'm trying to show my error is the index.rb. though i realized that should be index.erb
paulcsmith has joined #ruby
rocknrollmarc has quit [Ping timeout: 265 seconds]
<tuelz1> dudedudeman: first thing I notice is that cal is a local variable, does your template have access to that variable? I'm presuming not
n008f4g_ has joined #ruby
lolmaus has joined #ruby
ghostmoth has joined #ruby
<dudedudeman> let's go with no
<tuelz1> fix that then debug whether the errors are actually on cal like you expect
<dudedudeman> so i would just need to @ all of that
<dudedudeman> ok
<weaksauce> dudedudeman you are gisting two separate things
Zackio has quit [Remote host closed the connection]
rahult_ has quit [Max SendQ exceeded]
<dudedudeman> weaksauce: well, i guess it intially started with me wanting to display AR errors in my view. but then i'm quickly realizing that i didn't have an errors object at all
zotherstupidguy has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
<weaksauce> a redirect probably won't keep those errors btw. it will start another context in the handler for the redirected page
zotherstupidguy has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> a better approach would be to gist the controller in it's entirety
<dudedudeman> my entire app.rb?
<weaksauce> yeah. I assume it's not huge
<dudedudeman> stand by
<tuelz1> what routing library are you using OR what framework are you using?
<weaksauce> sinatra and AR
<dudedudeman> activerecord with sinatra
<dudedudeman> ^
byprdct has joined #ruby
<dudedudeman> weaksauce knows me
Zackio has joined #ruby
chinmay_dd has joined #ruby
wallerdev has joined #ruby
<tuelz1> haha, I've never used sinatra, but I would imagine redirect would in fact start up another context entirely
SexGirL has joined #ruby
<tuelz1> if render is a thing in sinatras routing lib I would bet that's what you want
<weaksauce> erb
<weaksauce> apparently is render in sinatra
<tuelz1> gotcha
<dudedudeman> i'm still getting nomethoderror on nilclass
<weaksauce> dudedudeman so you are losing your monitor info when you redirect I'd assume.
<tuelz1> essentially you're telling sintra to drop everything and go down this path instead you should be telling sinatra to build up a view with the current context
scripore has quit [Quit: This computer has gone to sleep]
davedev2_ has joined #ruby
<weaksauce> the last redirect will never happen dudedudeman
scripore has joined #ruby
<dudedudeman> i just removed it. don't know what to put in it's place, but i removed it
<weaksauce> delete that and change the second redirect on line 97 to erb
<dudedudeman> like this? erb :"/monitors/#{params[:tag]}/calibrations/new"
<weaksauce> yeah minus the :
<dudedudeman> done
yvemath has quit [Remote host closed the connection]
BLuEGoD has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 244 seconds]
<dudedudeman> good to know that's the render then
<weaksauce> well that's likely not going to work but it's a start
<dudedudeman> where am i going wrong with my errors on nilclass?
ubermonkey has joined #ruby
<dudedudeman> WAIT
<weaksauce> you probably need to use erb with the path to the template.
<tuelz1> well first find out if @cal exists in the template at all
BLuEGoD has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
SexGirL has quit []
ghr has quit [Ping timeout: 264 seconds]
<dudedudeman> weaksauce: ok, that would just be erb :monitor_new then
<weaksauce> yeah.
sohrab has quit [Ping timeout: 265 seconds]
<dudedudeman> tuelz1: would that be like a cal.inspect?
<weaksauce> you can send local variables to the template like this dudedudeman
<weaksauce> erb :something, locals: {list: foos}
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
<dudedudeman> ahhhhhh that's what locals is used for!
<tuelz1> dudedudeman: sure, render that out in your erb. Not my preferred way to debug, but it would work.
<weaksauce> then inside the template you would use it like <%= list %>
gsd has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<weaksauce> dudedudeman there are two ways to populate variables from a controller to a view(template).
<weaksauce> 1 is to make it an instance variable to the class. @something = something_else
<tuelz1> 1: magic 2: blackmagic?
<weaksauce> 2. is explicitly send it in via a locals hash
ubermonkey has quit [Ping timeout: 240 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
PhantomSpank has joined #ruby
<tuelz1> does sinatra use naming conventions to require in classes?
<dudedudeman> ok, i went hte locals route for this one, and when passing cal(my local) in to the view, i get undefined local variable or method `cal' for #<DreamColorApp:0x00000002ccbdc8>>
<weaksauce> the locals keys become bound to the view context as local variables. so locals: {this: var1, that: var2} exposes this and that as local variables that you can use inside the view
<tuelz1> cal != @cal
<dudedudeman> tuelz1: by making it a local, doesn't that mean i don't need the @?
einarj has quit [Remote host closed the connection]
<weaksauce> dudedudeman gist your views
<tuelz1> just making sure you understand the difference. Are you passing in the instance var and calling the local in your view? That SHOULD work.
<dudedudeman> yes. created the instance variable in my controller, passedi n the local in my view
<dudedudeman> here's the gist
leafybasil has quit [Ping timeout: 256 seconds]
nobitanobi has quit [Read error: Connection reset by peer]
<tuelz1> 404
<tuelz1> for me
<tuelz1> github die?
serivichi has quit [Ping timeout: 255 seconds]
<tuelz1> ohhh I grabbed the .
<dudedudeman> sorry, yeah. accidentally typed that in
<tuelz1> you're calling @cal
<tuelz1> line 29
<dudedudeman> ok, i just removed that
<dudedudeman> now i get this: undefined local variable or method `cal'
<tuelz1> can you update with your current app.rb code?
<tuelz1> (you can update a gist without making a new one
<tuelz1> )
colorados has quit [Quit: Leaving]
<tuelz1> easier for me to follow
<weaksauce> dudedudeman also on line 29, you should change key and values to something descriptive like monitor, calibrations
<weaksauce> but do that later
nobitanobi has joined #ruby
<weaksauce> key and value is bad for all but the most generic loops
<dudedudeman> tuelz1: can i update a gist if it's anonymous?
<tuelz1> dudedudeman: yup
<dudedudeman> and weaksauce, i'll definitely do that
PhantomSpank has quit [Read error: Connection reset by peer]
<dudedudeman> tuelz1: ugh. i'm missing that then
<weaksauce> and while you are at it, for key.to_s you can drop the .to_s as that's implicitly called
PhantomSpank has joined #ruby
<dudedudeman> weaksauce: done
<tuelz1> does erb implicit symbol to string?
<dudedudeman> thanks, that's good to know
<weaksauce> tuelz1 it should yeah
<tuelz1> or is that sinatra?
<tuelz1> ok, cool
<weaksauce> erb
chinmay_dd_ has joined #ruby
<weaksauce> well, string interpolation in general I think actually
<dudedudeman> tuelz1: weaksauce: here's the updated app.rb
<weaksauce> >> "#{:test}"
<ruboto> weaksauce # => "test" (https://eval.in/338372)
<dudedudeman> i couldn't figure out how to edit it :/ forgive for i have sinned
<weaksauce> yeah
<tuelz1> no biggy
alexherbo2 has joined #ruby
ubermonkey has joined #ruby
<tuelz1> is the local key/value backwards?
<tuelz1> should it be :cal => @cal?
<tuelz1> I forget
<tuelz1> well not even forgetting, this is sinatra I have no idea how they do locals :p
chinmay_dd has quit [Ping timeout: 256 seconds]
Cust0sL1men has joined #ruby
<weaksauce> yes it's backwards
ramfjord has joined #ruby
<dudedudeman> f my life
<dudedudeman> it's :locals
<dudedudeman> not locals:
<weaksauce> I prefer the newer syntax as well.
Guest1421 has joined #ruby
<weaksauce> that's the correct way
vickleton has joined #ruby
mtakkman has joined #ruby
<tuelz1> dudedudeman: sometimes you can't mix old vs new hash syntax. It's a subtle thing, but important to know
<tuelz1> :key => 'value' == old
<tuelz1> key: 'value' == new
aldarsior has quit [Quit: aldarsior]
<tuelz1> however there are some gotchas like if the key is a string you have to use old
<dudedudeman> sinatra docs have it like so: :locals => {:foo => "bar"}
<tuelz1> in the example you *might* (not really sure here) be able to mix with :locals => { key: value }
<tuelz1> night not**
<weaksauce> you can
<weaksauce> as long as the key is a symbol it works either way
<tuelz1> k, I seem to remember that not working in rails at some point for some reason
Akagi201 has joined #ruby
<weaksauce> >> x = {:test => {this: :out}}
<ruboto> weaksauce # => {:test=>{:this=>:out}} (https://eval.in/338373)
<dudedudeman> i'm still getting undefined local variable on that
<tuelz1> welp your error is probably sinatra specific now
<weaksauce> gist it man. you should know by now that gisting the error is just about the only way for us to diagnose it
<weaksauce> the full stack trace
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol1 has quit [Ping timeout: 240 seconds]
<dudedudeman> ok. when you say full stack t race
<Porfa> hellos
<tuelz1> Porfa: yo
<Porfa> hey this shows me char 3 to 7 from the start of the string.. what if i want that but from the end of the string?… [3..7]
<tuelz1> dudedudeman: it's the error message you get that has a bunch of crap with the top line telling you 'nomethoderror'
lidenskap has joined #ruby
<tuelz1> or w.e. it's telling you now
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alkoma has joined #ruby
<weaksauce> dudedudeman that's the full stacktrace
<Porfa> -n..-7 ? hmm trying
<tuelz1> Porfa: you can use [0..-1] to get a full string
<dudedudeman> so i gist'ed that right?
<Porfa> tuelz1: thanks!
PhantomSpank has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
gauke has quit [Quit: gauke]
bluOxigen has left #ruby [#ruby]
PhantomSpank has joined #ruby
<tuelz1> dudedudeman: you did, yes
<dudedudeman> #winning
pontiki has joined #ruby
<dudedudeman> i'm practically charlie sheen over here
<weaksauce> dudedudeman is your project on github anywhere?
<dudedudeman> yes
<dudedudeman> can i pm it to you?
BLuEGoD has joined #ruby
<dudedudeman> tuelz1: you too, if you want
<tuelz1> sure, I'll be glad to look
<weaksauce> sure. commit your changes and push it
<tuelz1> preferably commit to a poopoo branch and name it poopoo
<tuelz1> that is my preference.
<tuelz1> I also accept doodoo and dookie
Akagi201 has quit [Ping timeout: 272 seconds]
<dudedudeman> well, while i am the same, i just committed everything. everything is one big branch
<tuelz1> #notwinning
<dudedudeman> #lameiknow
<weaksauce> meh
lidenskap has quit [Remote host closed the connection]
<dudedudeman> ok, just sent it to both of you
<weaksauce> you can massage your commit history later if you want to
Igorshp has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 264 seconds]
lidenskap has joined #ruby
<pontiki> hi
<tuelz1> so I don't know sinatra
<tuelz1> but obviously you have access to the DreamCalibrationWhatever object
<tuelz1> object/model
<tuelz1> do you have accesss to calibration model?
PhantomSpank has quit [Read error: Connection reset by peer]
pgunnars has joined #ruby
<tuelz1> since cal is a calibration object?
PhantomSpank has joined #ruby
<dudedudeman> i'm going to say yes, because I was able to write to a database with it?
blackmesa has quit [Ping timeout: 250 seconds]
<pgunnars> wasup bruvs: gem --version 2.4.6 ruby --version ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]. sudo gem install librarian-chef ERROR: Error installing librarian-chef: ohai requires Ruby version >= 2.0.0.
ndrei has quit [Ping timeout: 240 seconds]
<pontiki> i bet the ruby you run under sudo is not the ruby you referenced there
qwertme has joined #ruby
ducklobster has quit [Ping timeout: 272 seconds]
<pgunnars> correct, dam dass stupid
mtakkman has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Quit: Outta here...]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
<pontiki> a hugely common mistake
<pgunnars> holy shit rvm is stupid
vudew has quit [Quit: Lost terminal]
<tuelz1> dudedudeman: okay so what url are you hitting to go to index? Are you sure you're not just hitting something default that isn't even hitting your action that defines cal?
SouL_|_ has joined #ruby
<weaksauce> dudedudeman you still have the redirect on line 100
scripore has quit [Quit: This computer has gone to sleep]
<tuelz1> dudedudeman: because I imagine index.erb gets hit with more than just the route we've been eyeballing
<weaksauce> delete that
<weaksauce> you shouldn't be redirected to the index at all
<dudedudeman> deleted. ugh, sorry.
<dudedudeman> :(
<weaksauce> try it now
Guest41493 has quit [Ping timeout: 272 seconds]
<tuelz1> well index.erb is where he is calling all the cal stuff so I think he DOES want to go to index on error
alexherbo2 has quit [Quit: WeeChat 1.1.1]
<tuelz1> oh, but not REDIRECTED, gotcha
<dudedudeman> still not working
<tuelz1> stacktrace
<tuelz1> XD
scripore has joined #ruby
BLuEGoD has quit [Quit: oh cruel destiny]
zz_Outlastsheep is now known as Outlastsheep
<dudedudeman> in this case, from the particular url i'm at, i want to stay on the same page. which is calibrations/new. just with it displaying my error.... which oh my god, why am i trying to put these errors on the index then. f*ck
Mohan has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
Mohan is now known as Guest87517
seal has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
<tuelz1> dudedudeman: it feels like you're hitting index.erb but not going through the route which defines cal
rocknrollmarc has joined #ruby
<tuelz1> dudedudeman: so for instance if you were hitting the default route with something like localhost:PORT#/
AlphaAtom has joined #ruby
<tuelz1> it would likely default to index.erb
<tuelz1> try to render and say holy shit cal doens't exist
<dudedudeman> ugh. the 'correct' error: https://gist.github.com/anonymous/e029bd1b22cfa116ab5b
startupality has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
dfinning_ has quit [Remote host closed the connection]
BLuEGoD has joined #ruby
AlphaAtom has joined #ruby
<tuelz1> dudedudeman: that ISN'T monitor/:stuff/calib/new you're hitting is it? Which is where you're defining cal
startupality has quit [Client Quit]
<dudedudeman> tuelz1: where i'm writing to my database through AR is on my calibration_new erb template. that's where i want to stay when the errors pop up. currently, before i started attempting any of this, if i hit submit with all fields blank, it would just 'redirect' me back to the same calibration_new erb template, just with no calibration added
AlphaAtom has quit [Max SendQ exceeded]
That1Guy has joined #ruby
<tuelz1> looks like you're erb'ing show not new
<tuelz1> or rather hitting show route not new route
<tuelz1> new route is where you've defined cal
AlphaAtom has joined #ruby
<dudedudeman> blaah, i see that now
<tuelz1> this `GET /monitors/753731/calibrations` is the route you're hitting before getting the error
AlphaAtom has quit [Max SendQ exceeded]
startupality has joined #ruby
<tuelz1> that isn't taking you to your new route
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
alexherbo2 has joined #ruby
<weaksauce> dudedudeman what's the command you are using to run your app?
alexherbo2 has quit [Client Quit]
<dudedudeman> ok, here's the stack after changing my erb to point to the correct page.. https://gist.github.com/anonymous/6a1ed493c74afc278664
AlexRussia has quit [Ping timeout: 245 seconds]
<dudedudeman> rackup -p $PORT -o $IP
<tuelz1> dudedudeman: nope, gave me wrong stack or you still arent' hitting new with POST
startupality has quit [Client Quit]
wldcordeiro_ has quit [Quit: Konversation terminated!]
<dudedudeman> the -p and all that extra stuff are just waht i need to get it running in my environment(cloud9)
rbennacer has quit [Remote host closed the connection]
<tuelz1> the webserver should say something like `POST /mon/#s/calib/new`
* jalcine cringes at cloud9
<jalcine> never got that working
kenneth has joined #ruby
startupality has joined #ruby
Morkel has joined #ruby
<tuelz1> only when you post to the route will you hit the route which defines your crap
<dudedudeman> jalcine: ha, i hear you. it's actually great for me since i don't work full-time on code, i can just pop up my code on my work computer during downtime(boss approved)
<dudedudeman> don't have to drag my computer around
<jalcine> does cloud9 define a means of running webapps? like how heroku recommends using foreman?
<dudedudeman> tuelz1: i read what you are saying, and it makes sense. then i turn and look at my code and go... dammit.
<dudedudeman> jalcine: well, i don't think i can host on it. but i can sandbox and dev on it. and run things in multiple types of browers within the ide itself
<tuelz1> dudedudeman: what exactly are you typing in your url bar in your browser to hit that?
jayeshsolanki has quit [Quit: bye!]
<tuelz1> dudedudeman: or what is the href of the link you're clicking
startupality has quit [Client Quit]
arashb has quit [Remote host closed the connection]
<dudedudeman> <a href="/monitors/<%= @monitor.tag %>/calibrations/new">Add Calibration</a>
<tuelz1> dudedudeman: there's youre problem
startupality has joined #ruby
<tuelz1> you're hitting the GET LSKJDLSJDF:LJKSDF/new
quimrstorres has quit [Remote host closed the connection]
<tuelz1> not the POST asdlfkjasd;lfjad/new
<tuelz1> dudedudeman: I'm PMing you the lines where the route takes you
<dudedudeman> prior to adding in this error stuff and this chat we have right now, clicking that link was working
startupality has quit [Client Quit]
<tuelz1> magic?
<dudedudeman> ha, sure sure
<dudedudeman> ok, i saw your pm
<dudedudeman> does that mean i need to be defining all of these errors and the object... somewhere else?
<tuelz1> dudedudeman: no, that means you need a conditional (I guess I'm not sure what idiomatic sinatra is) that says if cal exists post errors if they exist
<tuelz1> if it doesn't exist just render the rest of the crap
momomomomo has joined #ruby
<tuelz1> maybe someone in #sinatra can give you advice on idiomatic sinatra because that feels ugly
<weaksauce> dudedudeman are you restarting sinatra after you make a change?
<pontiki> there's no idioms in sinatra like that
<pontiki> sinatra is a route response framework. controllers and views
<pontiki> that's it
AlphaAtom has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<pontiki> you make up everything else
<tuelz1> I'm too lazy to think about a better way to code that, but feel free to look into it
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
<dudedudeman> tuelz1: i see exactly what you're saying now
<dudedudeman> i'm pointing to a route where none of the info i want exists
moeabdol1 has joined #ruby
<tuelz1> dudedudeman: knowing is half the battle, you're 50% there according to GI Joe
AlphaAtom has quit [Max SendQ exceeded]
b00b00 has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
* tuelz1 wonders if that saying comes from gi joe or whether my brain is fried because I have low stamina with reading code...
b00b00 has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<dudedudeman> yes, that's a GI Joe PSA
<tuelz1> #winning
PhantomSpank has joined #ruby
rdark has quit [Quit: leaving]
<dudedudeman> "The show featured physical fighting and high-tech weapons as a way to compensate for toned-down violence and lack of bullets in what was intended to be children's program. The show also featured public service announcements placed at the end of each show. These PSAs ended with the phrase: "Now I know!" "And knowing is half the battle."[25] The series ran for a total of 95 episodes, from 1985 to 1986."
thatslifeson has quit [Remote host closed the connection]
<tuelz1> damnit dude, fix your code, don't google gi joe crap. I need resolution, and my brain is already fried
<dudedudeman> tuelz1: trust me, i want to. lol. i was supposed to go to lunch an hour ago :/
<tuelz1> in aprox 5 minutes I'll actually start making your app worse than it is
<dudedudeman> :( :(
<tuelz1> and neither of us will realize it
thatslifeson has joined #ruby
<tuelz1> until we both give up
PhantomSpank has quit [Read error: Connection reset by peer]
<dudedudeman> i'm about 5 minutes ahead of you on the giving up part
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<tuelz1> LOL
j_mcnally has joined #ruby
<tuelz1> cool, well if you're done I'm cool with that
PhantomSpank has joined #ruby
<tuelz1> walking away is a legit strat for recognizing problems
<dudedudeman> ha, i'm desparate to fix this, but i also should have gone to lunch an hour ago
<dudedudeman> desperate?*
<tuelz1> I highly recommend walking away once you understand the problem. Then you can come back with fresh eyes on a problem you understand and need to fix
alkoma` has joined #ruby
alkoma has quit [Remote host closed the connection]
<dudedudeman> ok. then i will graciously do that
alkoma` has quit [Remote host closed the connection]
Guest1421 has quit [Ping timeout: 256 seconds]
<tuelz1> I think I'm walking away for a few myself. be back in probably 10ish
<dudedudeman> tuelz1: weaksauce thank you SO much for your help
<tuelz1> indeed, good luck
<dudedudeman> i've already learned a lot just talking through this
<tuelz1> next time make a new branch named poop or I won't help you though
alkoma has joined #ruby
* dudedudeman off to see the wizard about lunch
chinmay_dd_ has quit [Quit: Leaving]
Hijiri has joined #ruby
drocsid has quit [Ping timeout: 276 seconds]
deuterium has quit [Quit: zzZZZzzz..]
thatslifeson has quit [Ping timeout: 264 seconds]
coventry has joined #ruby
thatslifeson has joined #ruby
dfinninger has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Astrologos_ has joined #ruby
seal has quit [Quit: Ex-Chat]
ghostmoth has quit [Quit: ghostmoth]
<atmosx> hello
<atmosx> what's 'the wizard about lunch' ?
lavros_ has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
lavros has quit [Ping timeout: 245 seconds]
<pontiki> a reference to the wizard of oz, vaguely
<pontiki> ?
<atmosx> I see. I always confuse 'the wizard of OZ' with 'Alice in wonderland' haven't read neither though
<pontiki> that's from the movie, the song
<atmosx> It's not a common reading for Europeans I assume..
<atmosx> ah
<pontiki> no one reads them in the US either
<atmosx> didn't saw the movie either
<pontiki> popular culture is movies, tv
<atmosx> pontiki: really? I thought it was kinda like... in the standard reading for a kid you know, in the US.
baweaver has joined #ruby
dorei has quit [Ping timeout: 252 seconds]
<pontiki> hardly
<atmosx> hm, I see.
tuelz1 is now known as tuelz
djbkd has quit [Remote host closed the connection]
<shevy> what is standard reading in the USA anyway
<shevy> donald duck?
<pontiki> are you referring to the literature required by public education?
<atmosx> shevy: Moby Dick
<atmosx> ?
<pontiki> or typical?
<atmosx> pontiki: typical
<pontiki> not any more atmosx
<shevy> dunno, default school one I would assume
<eam> we don't read anymore
PhantomS_ has joined #ruby
<shevy> hehehe
Astrologos_ is now known as dorei
PhantomSpank has quit [Read error: Connection reset by peer]
<jhass> except for everyones emails you mean
gauke has joined #ruby
<eam> the material specifics depend on whether the public school has a signed deal with coke or pepsi
workmad3 has quit [Ping timeout: 252 seconds]
towski_ has quit [Remote host closed the connection]
<pontiki> literature skills are not part of the Great Test
djbkd has joined #ruby
SafeMoneyOnl has joined #ruby
<atmosx> eam: you're joking right?
<atmosx> pontiki: what 'great test'?
<eam> half joking
AlexRussia has joined #ruby
rocknrollmarc has quit [Ping timeout: 272 seconds]
<atmosx> I totally screwed a rails project lol.
n80 has joined #ruby
<atmosx> fuck it I'll wipe it and restart from scratch...
<pontiki> we've long had what's referred to as "Standardized Testing" at a few grade levels.
lrcezimbra has joined #ruby
gauke has quit [Quit: gauke]
<atmosx> pontiki: yes but you should read things like, I don't know T.S. Eliot for example?
rbennacer has joined #ruby
jtdowney has joined #ruby
<pontiki> but with the "No Child Left Behind" policies initiated in the Bush era, and continued in the Obama era, the emphasis on raising US test scores has pushed the education system to teaching to the test
<pontiki> not on learning
<atmosx> I mean it shoul be standard education or something
<atmosx> I see
<pontiki> atmosx: *I* have read TS Eliot, and read him to my kids, to the point they can quote him
<atmosx> so it's working, no child is left behind? lol
<atmosx> pontiki: awesome :D
<pontiki> nope. everyone's shoes are nailed to the starting line the same way.
<eam> corporate sponsorship is, in fact, bleeding over into public school policies
lkba has joined #ruby
ramfjord has joined #ruby
<eam> I don't think they're writing the textbooks yet, though
<atmosx> I can quote only 3 major Greek poets, some shakespeare and hmm maybe Kipling (the most commonly known poem at least).
Astrologos_ has joined #ruby
<eam> at least not directly
<pontiki> the deep purpose of education is to prepare the masses to submit to be wage slaves
<atmosx> pontiki: I like your perspective.
yqt has joined #ruby
<pontiki> eam: not directly, true, but the funding for the writing, and the funding to push the Texas School Board (biggest influence on textbook publishers in the US)
<pontiki> let me rephrase slightly: US Education System
A205B064 has joined #ruby
<pontiki> not education per se
<atmosx> pontiki: what is your fav poem from TS Eliot, give me something to read :-)
dorei has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
<pontiki> i confess, it's Old Possum's Book of Practical Cats
benlieb has joined #ruby
<pontiki> but Four Quartets is probably the most powerful
<atmosx> pontiki: isn't that for children?
andrew-l has joined #ruby
<atmosx> The poem begins with two epigraphs taken from the fragments of Heraclitus: ... okay I think I'll order it now.
<atmosx> it's a collection of just 4 poems?
<shevy> atmosx follows the long tradition of Sokrates
Outlastsheep is now known as zz_Outlastsheep
<atmosx> shevy: lol, what's that?
<shevy> poems I guess?
<shevy> theater
<atmosx> shevy: Heraclitus was a pre-socratic philosopher :-P
<shevy> reading lots of lots of plays
<shevy> I only know Sokrates and nobody else
BLuEGoD has quit [Remote host closed the connection]
pgunnars has quit [Ping timeout: 246 seconds]
<pontiki> atmosx: a lot of stuff i read is intended for young people
<atmosx> ah, yes I love theater, especially shakespear, Greek (ancient) theather... I live near one of the oldest theaters in Greece, I get to see many tragedies in the summer, some of them are well-made others suck. But generally I like more reading about them (before watching them).
mistergibson has quit [Quit: Leaving]
<atmosx> Reading an analysis of the themes helps you gain a deeper understanding of what you're watching.
<atmosx> pontiki: hm, why is that?
paulcsmith has quit [Quit: Be back later ...]
<pontiki> some of it is more honest
BLuEGoD has joined #ruby
<pontiki> a lot of adult lit is rather banal
<pontiki> i just finished The Goldfinch, last year's pulitzer prize winner
<pontiki> i found it rather insufferable
DynamicMetaFlow has joined #ruby
<shevy> The Goldfish?
<pontiki> no
<pontiki> Goldfinch
<shevy> :)
<pontiki> the bird
<pontiki> a painting really
paulcsmith_ has joined #ruby
<atmosx> pontiki: I was reading the 'immitation game' the book. But it felt like reading an essay on Turing's life more than a book and I stopped.
<pontiki> everyone's been talking about the art talked about in it
<pontiki> but the character is a complete weasel
michaeldeol has joined #ruby
baweaver has quit [Remote host closed the connection]
<atmosx> pontiki: now I'm reading 'A letter to humans' http://www.eglimatologia.gr/letter-in-humans/ ...it's a short essay more than book. But it's incredibly deep. I admire deeply both Ghandi and Tolstoy so it resonates with me...
<pontiki> good
nobitanobi has quit [Read error: Connection reset by peer]
<atmosx> weird the title of the book can't be found in English hehe
Hijiri has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
dc has quit []
<atmosx> It's a collection of letters between Ghandi and Tolstoy and then Einstein and Freud.
<atmosx> about war, faith and violence.
<pontiki> i'd love to read that
paulcsmith_ has quit [Ping timeout: 264 seconds]
dc has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
phutchins1 has quit [Ping timeout: 256 seconds]
<atmosx> pontiki: oh that's it, yes.
nobitano_ has joined #ruby
BLuEGoD has joined #ruby
kibou has joined #ruby
mistergibson has joined #ruby
<benlieb> I use allow_any_instance_of and expect_any_instance_of in rspec pretty often. But I can't find these on the rspec site. Have they been deprecated or replaced?
<atmosx> That's the first of the book though. I finnished it's pretty powerful. I was amazed by the clearness of Tolstoy view... Also, you'll probably see where many of Ghandi's ideas come from.
nobitanobi has quit [Read error: Connection reset by peer]
cajone has left #ruby [#ruby]
<GaryOak_> That's so cool to read when really smart people talk to each other
<atmosx> benlieb: I can see it on v3 of rspec... but I'm more of a minitest guy so I don't know what to tell you.
<shevy> GaryOak_ we two should talk too
lolmaus has quit [Quit: Konversation terminated!]
<GaryOak_> shevy: we're two underachievers talking
<GaryOak_> at least me lol
<shevy> GaryOak_ you mean like dudedudeman too?
<shevy> we are just going to work for our fortune more than others!
kibou has quit [Client Quit]
DerisiveLogic has joined #ruby
blackmesa has joined #ruby
LJT has quit [Quit: Sleeping...]
<GaryOak_> my most basic instinct is 'meh'
swgillespie has joined #ruby
<pontiki> "working more" sounds like the antithesis of the underachiever :D
<dudedudeman> under achiever checking in!
<atmosx> this whole startup thing has put a lot of pressure on you guys...
kirun has joined #ruby
<pontiki> who is in a startup?
riskish has joined #ruby
pdoherty has joined #ruby
Hijiri has joined #ruby
* dudedudeman stares at code and wonders how he even got here. what is life? what is code? is this real life? do i exist?
nobitano_ has quit [Ping timeout: 255 seconds]
<SafeMoneyOnl> Win 20.000-30.000 Euro Per year (1700-2500 Euro per month) With 1 H per day for 365 days. At start you will earn little money but with time your starting to learn much more at start you can win 0.5 euro per day first week and after a month you will earn 10-20 euro per day Its Verry simple just Make an account on my link and i will train you and i will be your guide as much you need Sign Up
<SafeMoneyOnl> here And good Luck -----> http://www.marketglory.com/strategygame/lolopoco
SafeMoneyOnl has quit [K-Lined]
Porfa has quit [Quit: Porfa]
<atmosx> 'lolopoco'
blahwoop has joined #ruby
<GaryOak_> everyone has a startup these days, where can I buy one?
<GaryOak_> I need to learn RoR so I can work at a startup
<blahwoop> hi i'm looking for some feedback on my code: https://github.com/iRichLau/quirkychallenge/blob/master/boggle_solver_dp.rb
rgb-one has joined #ruby
<blahwoop> any feedback or refactoring tips would be great
<pontiki> put your classes in separate files
DerisiveLogic has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
DerisiveLogic has joined #ruby
<shevy> hehe
orion has joined #ruby
<shevy> GaryOak_ damn
Bira has joined #ruby
<shevy> GaryOak_ we should do a non-rails startup
<blahwoop> ok pontiki. thanks!
<GaryOak_> It'll be called We Don't Use Rails
<dudedudeman> ruby off rails is a thing
<orion> Hi. When I'm writing a regular expression like this: /FOO\[.*\]/ how can I get the contents of .*? Is it $2?
<atmosx> blahwoop: add some comments.
<atmosx> blahwoop: other than that, looks nice :-)
<blahwoop> got it atmosx thanks!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> orion no you must use ()
scripore has quit [Quit: This computer has gone to sleep]
<shevy> >> string = 'FOO[bar]'; string =~ /FOO(\[.*\])/; p $1
<ruboto> shevy # => "[bar]" ...check link for more (https://eval.in/338594)
<pontiki> blahwoop: no specific suggestion, but the Board class looks a bit janky
<orion> shevy: I see, thanks!
<shevy> \o/
<pontiki> blahwoop: specifically Board#set_neighbors
<pontiki> i think it can be simplified, but i haven't brainpower right now
<blahwoop> i see
<blahwoop> hmm ok i'll take a look into it
charliesome has quit [Quit: zzz]
<blahwoop> thank
<blahwoop> s
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
SouL_|_ has quit [Ping timeout: 244 seconds]
<dudedudeman> shevy: save me
<shevy> haha
<atmosx> blahwoop: the next step would be to put your classes in sep files and write some tests. Write a custom rakefile to execute the script :-)
railsForDaiz has joined #ruby
<shevy> dudedudeman today I wanna be productive and do high quality stuff
<pontiki> shevy: get the heck off irc then :D
<shevy> I'd wish it would be easier to write a GUI and a web-GUI at the same time
* dudedudeman realizes he is not high quality
lavros_ has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 252 seconds]
<jhass> blahwoop: have a look at File.readlines and File.foreach
<atmosx> shevy: an icon tha launches a browser at 127.0.0.1 ...?
<shevy> pontiki I have to idle to power together with GaryOak_ and dudedudeman!
startupality has joined #ruby
<shevy> atmosx everything! How did you get into sinatra btw? I mean, to have a fully working and functional thing for your university-related project back then? I still don't have a sinatra-ftp part finished...
<blahwoop> jhass: i was using that before
marr has joined #ruby
spider-mario has joined #ruby
<jhass> What's wrong with it?
<atmosx> shevy: sorry talking to gf. brb :-P
<dudedudeman> atmosx: you a sinatra guru?
kyrylo has quit [Quit: Konversation terminated!]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<blahwoop> better to use read_lines instead of open? and do a for_each?
<atmosx> dudedudeman: nope far from it
<shevy> blahwoop .foreach may be better for big files
<shevy> or is it each_line hmmmm
graydot has joined #ruby
<blahwoop> shevy: im using each_line now
graydot has quit [Client Quit]
<jhass> blahwoop: yes, it's a call and a level of nesting less
railsForDaiz has quit [Read error: Connection reset by peer]
<shevy> I know that reading in a 13MB log file through File.readlines isn't the fastest thing in the world
andrew-l has quit [Read error: Connection reset by peer]
andrew-l has joined #ruby
<jhass> blahwoop: you don't need the to_a on line 20
fawefeawfewa has quit [Ping timeout: 248 seconds]
<blahwoop> jhass: good catch thanks!
BTRE has quit [Quit: Leaving]
<GaryOak_> shevy: I haven't written code for work in a few days :(
michaeldeol has joined #ruby
startupality has quit [Quit: startupality]
bigmac has quit [Ping timeout: 264 seconds]
<atmosx> dudedudeman: I just write sinatra apps, but I don't feel that I have deep knowledge of the framework.
tmi has joined #ruby
scripore has joined #ruby
<atmosx> dudedudeman: I use a skeleton, which turns sinatra into MVC-like.
<dudedudeman> atmosx: i have not heard of that...
* dudedudeman off to visit the wizard of the skeletons
lrcezimbra has quit [Quit: Konversation terminated!]
Soda has quit [Remote host closed the connection]
nobitanobi has joined #ruby
6A4ABYMS5 has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
<dudedudeman> apparently i've looked in to this before, because that google link is purple
crazydiamond has joined #ruby
<GaryOak_> atmosx: because the framework isn't that deep
<jhass> blahwoop: http://paste.mrzyx.de/pkclkcohk IMO easier to follow
DynamicMetaFlow has quit [Remote host closed the connection]
jglauche has joined #ruby
kyrylo has joined #ruby
<blahwoop> jhass: thanks. much more rubyish
<atmosx> dudedudeman: heard of what?
tuelz has quit [Ping timeout: 272 seconds]
bruno- has quit [Quit: Lost terminal]
<jglauche> hey, is there a way to make a "wildcard" for attr_accessor?
naftilos76 has quit [Remote host closed the connection]
<jglauche> like a class having accessors to every instance variable defined?
banister has joined #ruby
<dudedudeman> meh. i can't read. i had a 'beverage' over lunch and now can't read
<dudedudeman> 'a skeleton'
Akagi201 has joined #ruby
_ixti_ has joined #ruby
baweaver has joined #ruby
<atmosx> dudedudeman: check this out https://github.com/atmosx/pritory ... the directory structure is predefined.
<atmosx> btw I stopped working on this one
<dudedudeman> oh i like that a lot.m
<dudedudeman> mind if i follow this?
wallerdev has quit [Quit: wallerdev]
<atmosx> dudedudeman: no why should I? :-)
<atmosx> dudedudeman: but I'm not going to add any other code probably.
lidenskap has quit [Remote host closed the connection]
johnhame_ has quit []
<dudedudeman> oh that's fine. i like following along with things and end up usually taking methodology from pieces of it. in this case, the folder structure will be something that will be good to look at in the future
Kricir has quit [Remote host closed the connection]
tonyhb has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
woodruffw_ has joined #ruby
woodruffw has quit [Read error: Connection reset by peer]
woodruffw_ is now known as woodruffw
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blahwoop> jhass: is this better? File.readlines(dictionary).each { |line| self.words << line.downcase.chomp
tuelz has joined #ruby
* jglauche is wondering if to tinker with nomethoderror to set accessors on-the-fly
<jhass> blahwoop: just File.foreach(dictionary) do |line|
Akagi201 has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
slash_nick has quit [Ping timeout: 255 seconds]
jackjackdripper has quit [Quit: Leaving.]
serivichi has joined #ruby
paulcsmith_ has joined #ruby
yvemath has joined #ruby
SouL_|_ has joined #ruby
postmodern has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wolfleemeta___ has joined #ruby
Kricir has joined #ruby
Rapier- has quit [Quit: (null)]
<baweaver> Ha, got the devil finally.
<baweaver> Problem #4 without permutation
<baweaver> >> [50, 9, 10, 1].map(&:to_s).group_by { |s| s[0] }.values.sort.map { |s| s.sort_by { |v| v[0] * (v.chars.map(&:to_i).reduce(:+) / v.length)}.reverse }.reverse.flatten
<ruboto> baweaver # => ["9", "50", "1", "10"] (https://eval.in/338663)
* dudedudeman checks over shoulder to see how baweaver knew what he was reading.....
<baweaver> >> [50, 9, 10, 1].map(&:to_s).group_by { |s| s[0] }.values.sort.map { |s| s.sort_by { |v| v[0] * (v.chars.map(&:to_i).reduce(:+) / v.length)}.reverse }.reverse.flatten.join.to_i
<ruboto> baweaver # => 950110 (https://eval.in/338664)
wolfleemeta__ has quit [Ping timeout: 250 seconds]
<baweaver> >> [50, 9, 90, 900, 90001, 10, 1].map(&:to_s).group_by { |s| s[0] }.values.sort.map { |s| s.sort_by { |v| v[0] * (v.chars.map(&:to_i).reduce(:+) / v.length)}.reverse }.reverse.flatten.join.to_i
<ruboto> baweaver # => 9909009000150110 (https://eval.in/338665)
<baweaver> The key to it is sorting by an assigned scoring algorithm
<baweaver> in which you take the number n, with its digits d, and: d[0].to_i * (d.map(&:to_i).reduce(:+) / d.length)
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> take the first digit and multiply it by the average of its digits
<baweaver> so 9 would be 9 * 9
<dudedudeman> this is fascinating. i was reading that and no clue how to get there
<baweaver> 90 would be 9 * 4.5
<baweaver> posting a nicer version of it with comments in a bit
That1Guy has joined #ruby
<baweaver> So the more digits it has the more higher order digits it needs to rank highly
<baweaver> so things like 9000001 get killed on score
<baweaver> while 99 is the same as 9
sohrab has joined #ruby
<shevy> beaver mathematic ^^^ :D
<shevy> 42 is the final end result
Channel6 has joined #ruby
A205B064 has quit [Ping timeout: 244 seconds]
dickchansey3 has quit [Quit: kthxbai]
momomomomo has joined #ruby
That1Guy has quit [Client Quit]
bebijlia has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
lxsameer has joined #ruby
bigmac has joined #ruby
<baweaver> https://gist.github.com/baweaver/bd1ad62ac3a7f8dbfa16 - dudedudeman explained edition
<baweaver> nice and broken up
banister has joined #ruby
Rollabun_ has quit [Quit: Leaving...]
<GaryOak_> beautiful chaining in Ruby
DerisiveLogic has quit [Ping timeout: 265 seconds]
<baweaver> could probably be optimized a bit more, but this performs over 50x faster than a permutation solution
ReK2WiLdS has joined #ruby
<shevy> lol
aelevadoan has joined #ruby
<baweaver> took a while to come up with though
<shevy> a special dudedudeman explained edition
<aelevadoan> o/
<aelevadoan> hey
<baweaver> heh
<aelevadoan> trying to install ruby on ubuntu 14.04 trusty
ReK2WiLdS is now known as ReK2
<shevy> you poor man
<baweaver> god help you
<aelevadoan> baweaver: why?
ReK2 is now known as ReK2WiLdS
<baweaver> aelevadoan: just yanking your chain mate
<shevy> if apt-get install ruby ain't solve it, nothing will
<baweaver> Look into rbenv or rvm
<aelevadoan> the thing is that Im using rbenv
<aelevadoan> yeah
<aelevadoan> im following that documentation
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> shevy just started it and I figured it was too good to pass up ;)
<aelevadoan> but I get stuck in exec $SHELL
<shevy> well he is actually using rbenv
<shevy> so he is already past the ubtuntu-ruby stage
<dudedudeman> love me some dudedudeman 'splainin
<shevy> *ubuntu
noname has quit [Ping timeout: 272 seconds]
<shevy> dudedudeman it's the efficient one - no buzzwords, explanation fit to 3 years old. this is our level man
<aelevadoan> baweaver: shevy: http://pastie.org/10178519
<GaryOak_> goraillas.com, I claim that URL
<shevy> aelevadoan and as what user runs that? seems as if that user has not enough permission
<aelevadoan> shevy: a regular user
<shevy> GaryOak_ isn't that misspelled?
<shevy> aelevadoan yeah but obviously not as the user funga
<aelevadoan> thats why I did sudo
<aelevadoan> but it didnt recognize it
aewffwea has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
startupality has joined #ruby
DerisiveLogic has joined #ruby
Rollabunna has joined #ruby
Kricir has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bruno-_ has joined #ruby
<blahwoop> hey jhass: the set_neighbor method you showed me only worked for half the board
<blahwoop> then it just errors out
<shevy> don't think it has to do with recognizing, the unix permission model is simple. just set the permission to allow everyone to change it aelevadoan and try again
<jhass> yeah, I guess I couldn't quite decipher your logic
<shevy> or wget ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz and compile this
startupality has quit [Client Quit]
<jhass> "just errors out" means what though?
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<aelevadoan> shevy: everyone to change what?
TheHodge has quit [Quit: Connection closed for inactivity]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> aelevadoan the home directory there
paulcsmith_ has quit [Quit: Lingo: www.lingoirc.com]
<aelevadoan> oh
<aelevadoan> to 755?
mitchellhenke has joined #ruby
<shevy> aelevadoan well I don't know the current permissions, just change to 777 for now, retry, then change it back to the original one?
<jhass> that sounds like a very bad advice
<aelevadoan> what permissions should home regularly have?
* jhass reads logs
<blahwoop> jhass: it can't set the nieghbors
<jhass> blahwoop: common, you can do better
<blahwoop> lol
<jhass> proper error description please
<shevy> aelevadoan I have 0755 for my main user
A205B064 has joined #ruby
<baweaver> shoot, it's weak to 980 vs 909
<jhass> aelevadoan: let's actually figure out your situation, what's ls -la | grep .rbenv ?
wallerdev has joined #ruby
<aelevadoan> drwxr-xr-x 9 root root 4096 May 8 15:26 .rbenv
<jhass> so you ran git clone git://github.com/sstephenson/rbenv.git .rbenv with sudo?
<aelevadoan> yes
<jhass> there you go
<jhass> ?root
<ruboto> I don't know anything about root
<jhass> meh
ghr has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
<aelevadoan> aha
wallerdev has quit [Client Quit]
noname has joined #ruby
<aelevadoan> so I should change those permissions to 755
<jhass> aelevadoan: never run stuff as root/with sudo by default/to fix things, only do it when explicitly instructed or when you know why it can't possibly work otherwise
<aelevadoan> on both .rbenv
<aelevadoan> and ~?
<jhass> no
<aelevadoan> jhass: I think it didnt let me do git clone without sudo
<jhass> aelevadoan: what's your output for?: id
zotherstupidguy has joined #ruby
<aelevadoan> "id"?
<jhass> yes
<aelevadoan> uid=1000(funga) gid=1000(funga) groups=1000(funga),27(sudo),996(piratas)
<jhass> sudo chown -R funga:funga .rbenv
<aelevadoan> ok
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sohrab has quit [Ping timeout: 245 seconds]
gizless has joined #ruby
<aelevadoan> jhass: ok, it works now
mitchellhenke has quit [Quit: Computer has gone to sleep.]
gizmore has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
jwingfi has joined #ruby
bigsky has left #ruby [#ruby]
<jhass> !fact mk root eneral advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<ruboto> jhass, I will remember that root is eneral advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
Guest24 is now known as lele
ghr has quit [Ping timeout: 265 seconds]
<blahwoop> jhass: 78:in `match_word': undefined method `each' for nil:NilClass . trying to figure out what part of it is broken
shazaum has quit [Quit: Leaving]
griffindy has joined #ruby
jackjackdripper has joined #ruby
orion has left #ruby [#ruby]
<jhass> blahwoop: well, I guess next unless (0...grid.size) === r and next unless (0...grid.size) === c never fired because those can't get true
<shevy> jhass eneral advise?
<weaksauce> eternal perhaps
<jhass> oh, c&p fail, thanks
<shevy> or veneral
<shevy> meneral
SafeMoneyOnl has joined #ruby
<jhass> !fact ed root General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<ruboto> jhass, I stand corrected that root is General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<shevy> the english language has too many words anyway
<blahwoop> yeah
<weaksauce> venerable it would be
<_blizzy_> I just typed 'rails db:migrate'
workmad3 has quit [Ping timeout: 255 seconds]
<_blizzy_> ._.
<jhass> blahwoop: so I guess you build relying on your code not doing what your intent was
moretti has joined #ruby
<shevy> there are some english novelists who tend to use really strange words that I don't get to read otherwise
<jhass> er, meh, can't write anymore :(
<blahwoop> jhass: haha yea. let me look into more
<pontiki> _blizzy_: you're anticipating rails 5 :)
<_blizzy_> pontiki, lol.
Astrologos_ is now known as dorei
<jhass> blahwoop: "guess you build code relying on your other code not doing what your intent as"
<jhass> *was, goddammit
Dopagod has quit [Ping timeout: 276 seconds]
<jhass> I should just give up
<gambl0re> do i need to install a package in order to use "brew install" command?
<shevy> a bit off-topic ... because I am trying to clone "ls" in ruby ...
<blahwoop> i get what youre saying lol
<weaksauce> you need to install homebrew gambl0re
<gambl0re> ok
<shevy> I see option --all, and option --almost-all; the difference seems to be displaying . and .. - are these two useful for display when one performs a "ls"?
<pontiki> can be, especially if you intend to pipe the output somewhere and not wish to have to worry about stripping those two out
<aelevadoan> shevy: http://pastie.org/10178565
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
baweaver has quit [Remote host closed the connection]
<_blizzy_> I'm serious thinking about naming it chirp
<_blizzy_> instead of tweet
<shevy> aelevadoan seems to be some failure in the ubuntu environment
<shevy> pontiki hmm I see
<shevy> _blizzy_ animal noises?
<shevy> grunt! winnie!
<aelevadoan> am I using the wrong ruby-build plugin?
<_blizzy_> shevy, bird animal noises
<shevy> cackadoo!
<_blizzy_> for this social network in rails
<_blizzy_> I'm making
<shevy> chirrup
Bira has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
zzing has joined #ruby
<jhass> aelevadoan: Killed could mean out of memory, check dmesg
rbennacer has quit [Ping timeout: 252 seconds]
<shevy> aelevadoan well we can conclude that it tried to download ruby-2.2.2
<aelevadoan> jhass: yes, it is out of memory
<shevy> when it reached 98% [954/967] transcode.c it died, but the error isn't in the log is it?
<aelevadoan> jhass: [27507015.705719] Out of memory in UB 3963: OOM killed process 16991 (ruby) score 0 vm:348384kB, rss:292472kB, swap:920kB
gaboesquivel has joined #ruby
<jhass> there you go
lkba_ has joined #ruby
jaequery has joined #ruby
<aelevadoan> my vps has a memory limit, right?
<jhass> most likely
<aelevadoan> and how is that memory consumed?
<aelevadoan> I was wondering that the other day
<jhass> programs use it
DerisiveLogic has quit [Remote host closed the connection]
<Nilium> Time to run a profiler.
bricker has quit [Quit: leaving]
<jhass> not really
michaeldeol has joined #ruby
<Nilium> Memory profiler, maybe.
bricker has joined #ruby
<Nilium> Just to get leaks.
<jhass> Nilium: context is compiling ruby
<aelevadoan> jhass: is there a way to optimize it?
<Nilium> Hm
<jhass> aelevadoan: add more memory or swap
scripore has quit [Quit: This computer has gone to sleep]
<weaksauce> it's surprising that the compiler isn't just swapping already
<jhass> there probably is no swap
<jhass> it's a VPS
<aelevadoan> but that means paying more, right?
<aelevadoan> isnt there a way of optimizing what i have?
<jhass> depends on your hoster
mrdmi has quit [Quit: Leaving]
<jhass> swapfile could work
<Nilium> There are ways of optimizing stuff, but that's what profiling is for.
<aelevadoan> That memory is assigned per month or what?
<aelevadoan> Nilium: profiling?
lkba has quit [Ping timeout: 264 seconds]
<pontiki> that must be a tiny vps
<jhass> aelevadoan: when programs run, they need to work on data right?
<pontiki> i can compile ruby 2.1 on a RPi
<pontiki> (it's slow)
<ebonics> aelevadoan, who's your host
tjbiddle has joined #ruby
<aelevadoan> jhass: yeah
<aelevadoan> ebonics: edis
<jhass> aelevadoan: they do that in memory (aka RAM)
<gambl0re> instead of using brew, can i use apt-get?
<Nilium> I don't think I have any VPSs with over 512mb of memory, and none under 'cause I can't go lower >:(
<ebonics> e what
<ebonics> aelevadoan, how much do you pay for your vps
<aelevadoan> 6 euros apro
<jhass> gambl0re: brew is for OS X what apt-get is for Debian/Ubuntu
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium> Also MacPorts, if you're one of thooose people
wallerdev has joined #ruby
<ebonics> grab the 6gb one
<aelevadoan> ebonics: i dont want to change vps for now
<ebonics> you really should
<gambl0re> i have to install imagemagick and they're telling me to use "brew install imagemagick"
<aelevadoan> Disk Space 50 GB Bandwidth 1000 GB Memory 512 MB VSwap 128 MB
<gambl0re> brew is for mac??
<pontiki> that should be quite adequate to compile ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nilium> Yes.
<ebonics> aelevadoan, that one there is about 12x more memory for cheaper
<pontiki> what *else* is running on your vps?
<weaksauce> aelevadoan what does the `free` command report?
<ebonics> #justsaying
<Nilium> Most Ruby devs are on OS X, so most instructions are OS X-based.
<aelevadoan> im using 52% of my memory
havenwood has quit []
<pontiki> with *what*
yalue has quit [Quit: return 0;]
<aelevadoan> 81% of my vswap usage
<weaksauce> lol. I was thinking that you'd gist the output of free.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ebonics> you can hit like 200mb just running a non-minimal debian with nothing else
Rollabunna has quit [Remote host closed the connection]
<jhass> ebonics: that must be the most overbooked host ever...
Rollabunna has joined #ruby
<ebonics> jhass, nope
<ebonics> it's quite good tbh
ducklobster has joined #ruby
<aelevadoan> weaksauce: http://pastie.org/10178582
<jhass> ebonics: I just can't stand OpenVZ though
<ebonics> why
<jhass> because I can't pick the kernel
<ebonics> L
<jhass> -> no modern systemd etc
Filete has joined #ruby
jwingfi has quit [Remote host closed the connection]
<weaksauce> aelevadoan try ruby-install
Peetooshock has quit [Remote host closed the connection]
<aelevadoan> weaksauce: i dont understand
<Nilium> Should use FreeBSD, save you some OS memory ಠ_ಠ
<weaksauce> apt-get install ruby-install
<aelevadoan> weaksauce: instead of using rbenv?
<weaksauce> ruby-install ruby 2.2.2
<Nilium> rbenv doesn't have its own installer, as far as I know
<Nilium> It just works with e.g., ruby-install
<weaksauce> you can use rbenv to switch rubies after you get it installed
lidenskap has joined #ruby
jwingfi has joined #ruby
<Nilium> Reminds me, I switched to chruby on my new machine, still need to see how that works out in practice since I haven't done anything ruby-based in a while.
<aelevadoan> weaksauce: bash: ruby-install: command not found
<aelevadoan> weaksauce: according to the digital ocean documentation, I already have swap
That1Guy has joined #ruby
rocknrollmarc has joined #ruby
Channel6 has quit [Quit: Leaving]
<weaksauce> according to free you already have it as well
towski_ has joined #ruby
<aelevadoan> weaksauce: yeah, thats where I checked it out
swgillespie has joined #ruby
Perdomo has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
<shevy> Nilium you abandoned ruby :(
Hijiri has joined #ruby
<weaksauce> aelevadoan try `rehash`
<aelevadoan> weaksauce: if I am out of memory at some point, do I have to wait until less memory is used and then run the program again or what?
<weaksauce> then try `ruby-install ruby 2.2.2`
swgillespie has quit [Client Quit]
<aelevadoan> bash: rehash: command not found
<weaksauce> sudo rehash then
<aelevadoan> nope
<aelevadoan> command not found
<weaksauce> did you install ruby-install?
<weaksauce> apt-get install ruby-install
lidenskap has quit [Ping timeout: 256 seconds]
<aelevadoan> E: Unable to locate package ruby-install
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
<blahwoop> blah can.t seem tl figure it out
<weaksauce> what os are you on?
Bira has joined #ruby
<weaksauce> actually I guess there is no package for it aelevadoan
<weaksauce> follow the instructions on that page
jenrzzz has joined #ruby
DynamicMetaFlow has joined #ruby
<aelevadoan> weaksauce: and whats the difference of using ruby-install vs. rbenv install
kadoppe has quit [Ping timeout: 265 seconds]
<mwlang> is it possible to detect that javascripts are actively building a loaded page in selenium? I basically need to reliably wait until all dynamic sections of a page is loaded before moving forward.
<weaksauce> different ways to achieve the same goal aelevadoan... ruby-install might use less memory etc..
crazydiamond has quit [Remote host closed the connection]
<jhass> blahwoop: looks like your code was adding the diagonals too, mine isn't
kadoppe has joined #ruby
<mwlang> Using the webdriver’s Selenium::WebDriver::Wait.new(:timeout => 10) and watching for “Loading” to go away is proving a tad bit unreliable.
<jhass> blahwoop: so like http://paste.mrzyx.de/p6oxhkq6e
<jhass> no idea if yours actually depends on the order
werelivinginthef has quit [Remote host closed the connection]
<shevy> curious that ls has an option called "--ignore-backups"
<weaksauce> shevy probably for the things that had the archive flag set on them.
<shevy> if it would be that sophisticated :-)
<shevy> the docu I look at states "Do not list implied entries ending with ~"
<Nilium> shevy: No, I've just never used it for anything other than what I already use it for.
<shevy> I don't think I have any file like that on my system
<Nilium> i.e., it is what I use instead of shell scripting.
infinitone_ has joined #ruby
<shevy> Nilium \o/
lidenskap has joined #ruby
<Nilium> Anything more advanced is Go.
<mwlang> ugh…nevermind. It’s my own friggin’ fault. false alarm about “wait” being unreliable.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
Deele has quit [Ping timeout: 256 seconds]
tonyhb has quit [Quit: peace]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
foureight84 has joined #ruby
tubuliferous_ has joined #ruby
<weaksauce> shevy actually i was mistaken windows had the archive flag. man chattr shows all the linux flags
ebonics has quit [Ping timeout: 250 seconds]
kirun has quit [Quit: Client exiting]
<Nilium> Are there any good mysql gems?
<Nilium> Looked at mysql2, but it's kind of.. limited.
<Nilium> Really, very limited.
<ericwood> you could use datamapper or activerecord + their adapters if you wanted to go the ORM orute
<ericwood> *route
<blahwoop> jhass: thanks.
pdoherty has quit [Ping timeout: 240 seconds]
tonyhb has joined #ruby
<Nilium> I really would rather not write a one-off CLI script that needed ActiveRecord and an ORM
duderonomy has quit [Ping timeout: 240 seconds]
<weaksauce> shevy and it appears that the dump bit is only for ex2/3 fs
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<weaksauce> Nilium require 'pg' :P
tjbiddle has quit [Quit: tjbiddle]
<Nilium> I don't get to choose the DB.
codecop has quit [Remote host closed the connection]
s2013 has joined #ruby
s2013 has quit [Client Quit]
<atmosx> since you're using an ORM you shouldn't anyway
freerobby has joined #ruby
infinitone has quit []
<Nilium> I'm not using an ORM.
<atmosx> I'd say if not AR use Sequel
<Nilium> This is a CLI script.
<Nilium> I don't need heavy-weight bullshit.
Bira has joined #ruby
<atmosx> then sequel 100%
<Nilium> That should probably do it.
<Nilium> Looks way less awful than mysql2 at least.
scripore has joined #ruby
tubuliferous_ has quit [Ping timeout: 272 seconds]
<atmosx> of course... that's the point
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
<atmosx> lol, I was about to write another method on my scrapper script and ... the website which was meant to index is in maintainence mode ... go figure.
<atmosx> never saw that website down or in maint. mode before
<Nilium> Thanks
<Nilium> For the sequel pointer
<dudedudeman> i do dev work for a shopify store and i swear that site goes in to maintenance more than it should
decoponio has quit [Quit: Leaving...]
<ericwood> I had to work with spree today
<ericwood> >.<
ubermonkey has quit [Remote host closed the connection]
tonyhb has quit [Quit: peace]
GaryOak_ has joined #ruby
ubermonkey has joined #ruby
Xiti has joined #ruby
bartkoo has joined #ruby
<blahwoop> jhass: seems like it was broken from the beginning. even adding the diagonals it still gave me the same error but with more word results
<alderamin> Is there a way to use Enumerable.map on a Hash? I need to perform an (unordered) operation on every value in the hash and return the results.
<jhass> blahwoop: kay, then I give up deciphering what it did :P
<blahwoop> haha. thanks jhass
JDiPierro has quit [Remote host closed the connection]
<jhass> alderamin: .map {|k, v| [op(k), op(v)] }.to_h
<_blizzy_> if I made a Guardian of the Galaxy website in rails
<_blizzy_> would I rename root_path to groot_path
pdoherty has joined #ruby
dc has quit [Remote host closed the connection]
<jhass> ?rimshot
<alderamin> jhass: I need to return an array. Without the .to_h is that what it returns?
last_staff has quit [Ping timeout: 256 seconds]
<jhass> alderamin: yeah
DynamicMetaFlow has quit [Quit: Leaving]
<jhass> alderamin: sounds like you never even tried to call map on hash ;)
<alderamin> jhass: so my_hash.map {|_, v| op(v)} ?
<jhass> ?try
<ruboto> Why don't you try it and see for yourself?
<blahwoop> jhass: nevermind i think it was just conflicting with the Benchmark
yfeldblum has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
selu has joined #ruby
aelevadoan has left #ruby [#ruby]
workmad3 has joined #ruby
simpyll has quit [Ping timeout: 256 seconds]
rbo has joined #ruby
<alderamin> jhass: Thanks, seems like it's working like I intend.
<rbo> wheres the rails chat?
<jhass> #RubyOnRails
<dudedudeman> #rubyonrails
bmurt has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
<dudedudeman> rbo: you'll need to make sure your nick is registered
<rbo> thx
scripore has quit [Quit: This computer has gone to sleep]
* rbo having trouble installing it on 2 different boxes so sounds like user error :P
kenneth__ has joined #ruby
<dudedudeman> ha, no worries. I'm sure we all have some user error stories
Akagi201 has joined #ruby
DerisiveLogic has joined #ruby
<rbo> I was coding rails back in '03 when it first came out with no troubles at all, now it feels like a mystery to install things.
kenneth has quit [Ping timeout: 256 seconds]
<Eiam> ha, the 'naught' gem uses Maybe & Just
<Eiam> cute cute
<rbo> haha
banister has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
catcher has quit [Quit: Leaving]
<rbo> Eiam, lets hope gem update works :\
dfinninger has quit [Remote host closed the connection]
phutchins1 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
icebourg has quit [Read error: Connection reset by peer]
Akagi201 has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Remote host closed the connection]
jglauche has left #ruby [#ruby]
Rollabunna has joined #ruby
icebourg has joined #ruby
alexherbo2 has joined #ruby
dfinninger has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
allcentury has quit [Ping timeout: 265 seconds]
ldnunes has quit [Quit: Leaving]
cjim_ has joined #ruby
xxneolithicxx has left #ruby [#ruby]
kenneth has joined #ruby
sepp2k has joined #ruby
dc has joined #ruby
xxneolithicxx has joined #ruby
tuelz has quit [Ping timeout: 255 seconds]
mdw has joined #ruby
michaeldeol has joined #ruby
Guest87517 has quit [Ping timeout: 246 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerius has quit [Quit: /quit]
ghr has joined #ruby
michaeldeol has quit [Client Quit]
Mohan has joined #ruby
Mohan is now known as Guest35288
momomomomo has joined #ruby
<shevy> Eiam maybe it was just a naughty gem
pdoherty has quit [Remote host closed the connection]
Astrologos_ has joined #ruby
jottr has joined #ruby
jonr22 has joined #ruby
nettoweb has joined #ruby
michaeldeol has joined #ruby
BTRE has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorei has quit [Ping timeout: 264 seconds]
Astrologos_ is now known as dorei
knikolov has joined #ruby
tvw has joined #ruby
j_mcnally has joined #ruby
jtdowney has quit [Ping timeout: 256 seconds]
ubermonkey has quit []
Rollabunna has quit [Quit: Leaving...]
steffes has joined #ruby
djbkd has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has joined #ruby
scripore has joined #ruby
icarus has joined #ruby
TheHodge has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 255 seconds]
FernandoBasso has joined #ruby
Astrologos_ has joined #ruby
mengu has joined #ruby
dorei has quit [Ping timeout: 256 seconds]
jonr22 has quit [Quit: WeeChat 1.1.1]
Pupeno has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Astrologos_ is now known as dorei
x1337807x has joined #ruby
jottr has joined #ruby
baweaver has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807x has quit [Client Quit]
Channel6 has joined #ruby
x1337807x has joined #ruby
pontiki has quit [Ping timeout: 265 seconds]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
That1Guy has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
ghostmoth has joined #ruby
SafeMoneyOnl has quit [K-Lined]
djbkd has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jackjackdripper has joined #ruby
frem has joined #ruby
sinkensabe has joined #ruby
Morkel has quit [Quit: Morkel]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
BTRE has quit [Quit: Leaving]
<rbo> Eiam, found out where my problem lay, i didn't run xcode-select --install, so essentially missing some build tools
badhatter has quit [Read error: Connection reset by peer]
<Eiam> whoops
<rbo> god I can't wait throw away my pc
badhatter has joined #ruby
BTRE has joined #ruby
snockerton has quit [Quit: Leaving.]
wldcordeiro_ has joined #ruby
Squarepy has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
baweaver has joined #ruby
dc has quit []
Bira has joined #ruby
Bira has quit [Client Quit]
Akagi201 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
<b00b00> There is something i want to check if it possible, is there a way on ruby to convert format from yml to jason without using yaml or jason libs? like what is the best way to do so with this example: https://raw.githubusercontent.com/plamoni/SiriProxy/master/config.example.yml? thanks
djbkd has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Client Quit]
enebo has quit [Quit: enebo]
alexherbo2 has quit [Quit: WeeChat 1.1.1]
<elaptics> b00b00: what do you mean by not using libs? yaml and json are both libraries in ruby's standard lib so you just need to require them, no need to install any gems or anything
Akagi201 has quit [Ping timeout: 276 seconds]
SouL_|_ has quit [Ping timeout: 240 seconds]
redjack1964 has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
jobewan has quit [Quit: leaving]
blahwoop has quit [Remote host closed the connection]
jobewan has joined #ruby
jobewan has quit [Client Quit]
tcrypt has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
leafybasil has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
yeticry has joined #ruby
jackjackdripper has quit [Client Quit]
<b00b00> elaptics: i mean for text manipulation as they do, i need an example or direction how to do this for some reason , if there is a way, like how to do the text manipulation for that, it would be nice
jackjackdripper has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
Pupeno has joined #ruby
foureight84 has quit [Ping timeout: 272 seconds]
pdoherty has joined #ruby
gsd has quit [Ping timeout: 256 seconds]
bartkoo has quit [Quit: bartkoo]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alvaro_o has joined #ruby
juanpablo_____ has quit [Quit: (null)]
uptownhr has quit [Quit: uptownhr]
juanpablo_ has joined #ruby
nettoweb has joined #ruby
That1Guy has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoaguilar has joined #ruby
gsd has joined #ruby
djbkd has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
digitalextremist has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
meph has joined #ruby
s2013 has joined #ruby
sinkensabe has joined #ruby
steffes has quit []
Pupeno has quit [Quit: Leaving...]
duderonomy has joined #ruby
gsd has quit [Max SendQ exceeded]
diegoaguilar has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
jenrzzz has joined #ruby
dfinninger has quit [Remote host closed the connection]
gsd has quit [Max SendQ exceeded]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
<elaptics> b00b00: not sure I understand what you mean
scripore has quit [Quit: This computer has gone to sleep]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
tubuliferous_ has joined #ruby
Astrologos_ has joined #ruby
gsd has joined #ruby
jackjackdripper has joined #ruby
<meph> process_shared fails on ARM, Invalid argument - error in mmap (Errno::EINVAL) from ~/.gem/gems/process_shared-0.2.0/lib/process_shared/posix/shared_memory.rb:62 :(
gsd has quit [Max SendQ exceeded]
ghr has joined #ruby
gsd has joined #ruby
freerobby has quit [Quit: Leaving.]
gsd has quit [Max SendQ exceeded]
baweaver has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
astro-logos has joined #ruby
gsd has joined #ruby
gaboesquivel has joined #ruby
dorei has quit [Ping timeout: 256 seconds]
gsd has quit [Max SendQ exceeded]
astro-logos is now known as dorei
gsd has joined #ruby
scripore has joined #ruby
tubuliferous_ has quit [Ping timeout: 245 seconds]
alexherbo2 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Astrologos_ has quit [Ping timeout: 250 seconds]
gambl0re has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
gsd has quit [Ping timeout: 256 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avahey has joined #ruby
ebonics has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
gsd has joined #ruby
serivichi has joined #ruby
blackmesa has joined #ruby
gsd has quit [Max SendQ exceeded]
infinitone_ is now known as infinitone
umgrosscol has quit [Remote host closed the connection]
gsd has joined #ruby
mistermo_ has joined #ruby
vickleton has quit [Ping timeout: 240 seconds]
thatslifeson has quit [Remote host closed the connection]
snath has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
michaeldeol has joined #ruby
bricker has quit [Quit: leaving]
lxsameer has quit [Quit: Leaving]
Hirzu_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
gaboesquivel has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
swgillespie has joined #ruby
willharrison has joined #ruby
Hirzu has quit [Ping timeout: 245 seconds]
yaw has joined #ruby
banister has joined #ruby
yaw has quit [Max SendQ exceeded]
<willharrison> what is line 9 doing? I am confused by chunk. https://gist.github.com/willharrison/3f61be462b916d546601#file-gistfile1-rb-L9
mary5030 has quit [Remote host closed the connection]
pdoherty has quit [Quit: Leaving]
mary5030 has joined #ruby
qwertme has joined #ruby
bricker has joined #ruby
nettoweb has joined #ruby
Ellis has joined #ruby
<willharrison> baweaver thanks
gaboesquivel has quit [Ping timeout: 256 seconds]
astro-logos has joined #ruby
dfinninger has joined #ruby
cjim_ has quit [Quit: (null)]
wldcordeiro_ has quit [Ping timeout: 265 seconds]
blackmesa has quit [Quit: WeeChat 1.1.1]
mary5030 has quit [Ping timeout: 256 seconds]
tuelz has joined #ruby
Astrologos_ has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
dorei has quit [Ping timeout: 264 seconds]
iasoon has joined #ruby
astro-logos has quit [Ping timeout: 272 seconds]
casadei_ has quit [Remote host closed the connection]
Kricir has joined #ruby
casadei_ has joined #ruby
<b00b00> elaptics: i mean just if i have a yml file and i want to format it to jason, what is the best way to do it BUT not using the yam2jason like libs/ways available, i mean if i have line like: (foo: "bar") and i want to convert it to jason like format: ("foo": "bar",)
snath has joined #ruby
gsd has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
tuelz has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
<elaptics> b00b00: why wouldn't you just use the standard libraries to do it?
gsd has joined #ruby
<elaptics> b00b00: it can be one line once you've required the libs, e.g.
<elaptics> b00b00: YAML.parse(open("https://raw.githubusercontent.com/plamoni/SiriProxy/master/config.example.yml").read).transform.to_json
gsd has quit [Max SendQ exceeded]
gsd has joined #ruby
<willharrison> baweaver I am confused on what capture is in that documentation. can you help explain it?
gsd has quit [Max SendQ exceeded]
casadei_ has quit [Ping timeout: 276 seconds]
<baweaver> regex capture groups
<baweaver> there'll be a lot better documentation in the wild on that, you're going to want to read up on REGEX
<baweaver> rubular is a good testing ground
hackeron has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GaryOak_> is there a class pointer in ruby?
gsd has joined #ruby
<willharrison> baweaver ok, will do. thanks
<baweaver> It's too large a field
FernandoBasso has quit [Quit: leaving]
dorei has joined #ruby
roolo has quit [Remote host closed the connection]
hackeron has joined #ruby
Squarepy has quit [Quit: Leaving]
Astrologos_ has quit [Ping timeout: 272 seconds]
dorei has quit [Ping timeout: 240 seconds]
<Ellis> i want to learn how to interact with my computer’s hardware, specifically the webcam. can someone tell me what topic i should read about to begin learning the knkowledge i need to do that
<baweaver> Probably searching for Ruby webcam gems
<baweaver> Did we go over this last night?
<baweaver> seems familiar
dorei has joined #ruby
sankaber has joined #ruby
<Ellis> baweaver, we did, but i don’t want to use the gem without knowing how everything works. like how do i write code that accesses the camera myself. what topic would i study to learn that?
<willharrison> Ellis find the gem, read the code
<baweaver> ^
<baweaver> Honestly I wouldn't know where to start except to dissect something that already does it.
<Ellis> here’s the code for the gem: it doesn’t really teach me anything https://github.com/TyounanMOTI/rb_webcam/blob/master/lib/rb_webcam.rb
<Ellis> oh ok. thanks the
<Ellis> then*
wallerdev has quit [Quit: wallerdev]
<GaryOak_> Ellis: this code is calling probably a C/C++ library
icebourg has quit []
thatslifeson has joined #ruby
kyrylo has quit [Ping timeout: 245 seconds]
<baweaver> Yeah, Ruby doesn't seem like it'd have enough low level bindings itself to swing that.
<willharrison> yeah the nice ffi is allowing c code
<Ellis> garyoak_: word …
<Ellis> so should i learn c?
<Ellis> ha
<GaryOak_> Wouldn't hurt :)
<baweaver> Oh it'll hurt
<GaryOak_> lol yeah
<willharrison> lol
dorei has quit [Ping timeout: 244 seconds]
<shevy> hahaha
<GaryOak_> unless you can somehow dump the webcam's buffer into a file, and access it as a stream
<Ellis> haha
<Ellis> what’s a buffer?
<baweaver> it'll hurt a lot
<baweaver> Want a pointer?
bigmac has joined #ruby
<GaryOak_> *heres_a_pointer
<baweaver> 0xFAE90234
<GaryOak_> haha
<adaedra> void *
juanpablo_ has quit [Quit: (null)]
<Ellis> would a language like english technically be an abstract data type?
<adaedra> GaryOak_: joke aside, under Linux, webcam stream is surely a node in /dev
juanpablo_ has joined #ruby
<GaryOak_> yep
Spami has joined #ruby
<shevy> Ellis dunno. there is lexical analysis from language linguists, like from Noam Chomsky when he was younger
<shevy> real languages are very fluid
<Ellis> u don’t like chomsk’s politics?
<shevy> that was solely towards him as language linguist, politics have little to do with analysis of languages :)
<Ellis> :)
shellfu is now known as shellfu_afk
<shevy> in programming language you have a lexer and tokens
<GaryOak_> A real language has more meaning and intention than is expressed in a programming language
<infinitone> Noam Chomsky is a freaken saint
<infinitone> you take that back!
<shevy> you can specify a grammar to follow, and if errors occur, the parser will scream
<shevy> imagine if, before you can speak, you must approve all what you want to say prior to saying it
jottr has quit [Ping timeout: 264 seconds]
<GaryOak_> Or if the parser had a personality and you had to code different based on your history together
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* adaedra takes that back
juanpablo_ has quit [Ping timeout: 246 seconds]
<GaryOak_> adaedra: is it not just dumped to a file?
<adaedra> GaryOak_: the node in /dev? No, should be real access to the webcam stream
<shevy> in linux everything is a file
<shevy> in ruby everything is an object
n80 has quit [Quit: n80]
duderonomy has quit [Ping timeout: 240 seconds]
<shevy> in linby everything is a fibject
uptownhr has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<GaryOak_> to a king everyone is a subject
<shevy> haha
<shevy> yeah
<shevy> damn dictators
jenrzzz has quit [Ping timeout: 255 seconds]
<shevy> I always watch monty python's holy grail to cheer me about
haxrbyte_ has joined #ruby
<adaedra> you silly english knits
<shevy> Dennis: What I object to is you automatically treat me like an inferior.
<adaedra> shall I taunt you shevy?
<shevy> King Arthur: Well, I am king.
<shevy> Dennis: Oh, king eh? Very nice. And how'd you get that, eh? By exploiting the workers. By hanging on to outdated imperialist dogma which perpetuates the economic and social differences in our society.
<shevy> adaedra nah I am sort of half sleeping already
<adaedra> 'k
<adaedra> Fetchez la vache !
<shevy> haha
havenwood has joined #ruby
<shevy> qua?
<adaedra> quoi ?*
<havenwood> condicio sine qua non
<shevy> the french must adopt the english language
<adaedra> no
<shevy> no baguette
<adaedra> it's enough that English is the lingua franca
haxrbyte has quit [Ping timeout: 264 seconds]
<shevy> lingua ingles?
jackjackdripper has joined #ruby
<shevy> languages should bring people together!
jottr has joined #ruby
<GaryOak_> lingua omnibus
<adaedra> "C'est un cadeau!" – "Un quoi ?" – "A present" – "Ah, un cadeau"
<adaedra> A møøse once bit my sister…
<shevy> I see that you have memorized all the french parts of said movie
jottr has quit [Read error: Connection reset by peer]
<adaedra> oh, I memorized some english parts too
<shevy> the bridge of death
<willharrison> bravely brave sir robin, rode forth from camelot
<adaedra> What. is your name.
<shevy> what is your favourite colour
jottr has joined #ruby
baweaver has quit [Remote host closed the connection]
Sembei has quit [Read error: Connection reset by peer]
<shevy> actually, that question is a problem
<shevy> what if you don't have a favourite colour?
<adaedra> "None"
<adaedra> "nil"
<shevy> what now
pipework is now known as spaceghostc2c
<shevy> you can't give two answers
<shevy> :)
<shevy> you'll be tossed into the ... gorge of eternal peril... or whatever it was named
Sembei has joined #ruby
dfinninger has quit [Remote host closed the connection]
<adaedra> I'll toss the salad
<havenwood> Schrödinger's monad
jwingfi has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
mistermo_ has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX1 has joined #ruby
spaceghostc2c is now known as pipework
<Ellis> do u think this is where ill find info on accessing the webcam etc? https://developer.apple.com/library/mac/navigation/#section=Topics&topic=Audio%20%26amp%3B%20Video
<Ellis> havenwood: ty
contradictioned_ is now known as contradictioned
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ebonics> >> 1 / 3 * BigDecimal('Infinity')
<ruboto> ebonics # => undefined method `BigDecimal' for main:Object (NoMethodError) ...check link for more (https://eval.in/339289)
Akagi201 has joined #ruby
lidenskap has joined #ruby
baweaver has joined #ruby
uptownhr has quit [Quit: uptownhr]
<havenwood> ebonics: zero times infinity?
uptownhr has joined #ruby
<ebonics> havenwood, hm?
<havenwood> >> 1 / 3
<ruboto> havenwood # => 0 (https://eval.in/339298)
Guest1421 has joined #ruby
<ebonics> wtf
<ebonics> how does one math
<havenwood> >> 1/3r
<ruboto> havenwood # => (1/3) (https://eval.in/339305)
DEA7TH_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dvlwrk has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
dvlwrk has joined #ruby
<havenwood> >> 1.fdiv 3
<ruboto> havenwood # => 0.3333333333333333 (https://eval.in/339307)
marr has quit []
Akagi201 has quit [Ping timeout: 276 seconds]
GaryOak_ has quit [Remote host closed the connection]