apeiros changed the topic of #ruby to: Rules & more: 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/ruby/
kidoz_ has quit [Quit: Ухожу я от вас]
fullofcaffeine has joined #ruby
charliesome has quit [Quit: zzz]
d2dchat_ has quit [Remote host closed the connection]
charliesome has joined #ruby
ponga has quit [Remote host closed the connection]
<Ox0dea> > You shoot the gun, but the bullet gets trapped in the IO monad.
bayed has quit [Quit: Connection closed for inactivity]
<baweaver> what an uplifting thought
<dfockler> You shot 'service restart sshd', you can't shoot anymore
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
mistermocha has quit [Remote host closed the connection]
countryHick has joined #ruby
<charliesome> does anyone have any opinions on Net::DNS vs Resolv (which is built-in) vs just shelling out to dig
<charliesome> looking at some code that uses Net::DNS, but I'm not sure if there's any reason to use that gem over the Resolv stdlib
fedexo has joined #ruby
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
<drbrain> Resolv lets you do everything, but the API is not the best
<diegoviola> why I can't have a constant like this in a method: class Foo; def bar; NUMBERS = %w(1 2 3 4 5); end end?
<drbrain> I've used Resolv to work around broken DNS resolution in cloud stuff, and to do MDNS resolution
jbw has quit [Ping timeout: 255 seconds]
eggoez has quit [Ping timeout: 252 seconds]
rehat has joined #ruby
<charliesome> drbrain: oh interesting
<drbrain> charliesome: if you don't trust getaddrinfo() why would you trust `dig`?
relix has quit [Ping timeout: 244 seconds]
<Ox0dea> diegoviola: You can, but constant redefinition kind of defeats the purpose.
<charliesome> drbrain: need to query for specific record types
<Ox0dea> diegoviola: Note well that you're only being warned, not triggering an error.
<diegoviola> Ox0dea: how I'm redefining it/
<diegoviola> ?
<Mon_Ouie> No, you can't because of Ruby's syntax rules
jbw has joined #ruby
<Mon_Ouie> >> def x; A = 2; end
<ruboto> Mon_Ouie # => /tmp/execpad-3927fc81f292/source-3927fc81f292:2: dynamic constant assignment ...check link for more (https://eval.in/413376)
<drbrain> charliesome: the nice thing about Resolv is that it doesn't add a dependency, but Net::DNS' API might be nicer (I haven't used it though)
<diegoviola> Ox0dea: no, I'm getting an error
<Ox0dea> Oh, wow.
<diegoviola> SyntaxError: (eval):2: dynamic constant assignment
<Ox0dea> Yeah, sorry about that.
serivichi has joined #ruby
<Ox0dea> diegoviola: Just stick the constant on the class.
<charliesome> drbrain: yeah agreed
eggoez has joined #ruby
<charliesome> that said the code already uses Net::DNS so I'm just gonna leave it be
<diegoviola> and isn't %w just the same as declaring the array with NUMBERS = [1,2,3,4,5] ?
graydot has joined #ruby
<diegoviola> so I don't see how I'm redefining it?
<Mon_Ouie> No, %w is array of strings
<diegoviola> Ox0dea: why do I have to add it to the class?
<loincloth> diegoviola: i think you are caught up partly on a wording choice
relix has joined #ruby
<loincloth> it maybe be the first time it was defined but because it was declared in a method body you are getting that error
<diegoviola> loincloth: ?
<loincloth> not sure on that, though
bootstrappm has left #ruby [#ruby]
<mwlang> Ox0dea: the fingerprint is developer’s choice more so than algo. basically what I have is a hash with say 200 keys. They’re soap messages that have been turned into hashes with the Nori gem. The developers of the exchange partner didn’t really follow Soap specs which says only one complex datatype definition per named data type and namespace.
<diegoviola> loincloth: what do you mean?
<Ox0dea> diegoviola: The constant would get redefined every time you called the method.
<loincloth> sorry if i'm off base, but i thought you were confused by it saying you are "redefining" when you haven't defined it before
<diegoviola> Ox0dea: oh
<Ox0dea> That said, you can use Object.const_set if you simply *must* define a constant in a method, which you really oughtn't.
<Mon_Ouie> And constants can only exist inside modules (including classes). There's no such thing as a constant local to a method or something.
serivich has quit [Ping timeout: 250 seconds]
<mwlang> So, what I did was look for keys that distinguished one from the other and let the Factory choose the right Ruby object class to instantiate and populate. I found that out of 200 keys, I only needed 4 or 5 to correctly identify which Ruby class to instantiate for the hash.
<diegoviola> loincloth: I haven't defined the constant before
<diegoviola> I was trying to create a constant with some words in it
<loincloth> i believe you :D
<mwlang> I just had the idea as I was looking at the implementation to automatically scan for every object with a fingerprint class method and check that each one is unique to the other.
<diegoviola> inside a method
<diegoviola> so constants shouldn't be inside methods?
<Ox0dea> diegoviola: Why do you think it needs to live in the method?
<loincloth> diegoviola: it's not the best design
serivichi has quit [Ping timeout: 244 seconds]
myztic has joined #ruby
<Ox0dea> diegoviola: Defining a literal constant in a method is, as you've discovered, a syntax error.
<diegoviola> Ox0dea: why it needs to live inside a class?
<Ox0dea> Dynamically doing so just attaches the constant to the surrounding module.
zacstewart has quit [Remote host closed the connection]
<loincloth> diegoviola: i'm not sure all the reasons but i think at the least it just violates semantics to do it that way
<Ox0dea> diegoviola: If you think about it, method-local constants don't make a great deal of sense.
<diegoviola> I want to know the reason why it needs to be in a class and not a method
<loincloth> as noted, you can actually dynamically define constants, but it's not a feature you should be looking to very often
<shevy> constants that can be changed lateron also don't make sense
<loincloth> you might want an instance variable instead, for example
<Ox0dea> diegoviola: It's not *constant* if it gets a "new" value every time the method is invoked.
<shevy> then why can it be changed?
<diegoviola> ok
<Ox0dea> Because Ruby.
<shevy> Because we can.
<loincloth> yeah
dfockler has quit []
<diegoviola> %w is just a shorthand for defining a array of words? it won't redefine the array or anything, right?
dr3w has quit [Ping timeout: 260 seconds]
<Radar> diegoviola: try it and find out :D
<shevy> >> %w( cat dog mouse )
<ruboto> shevy # => ["cat", "dog", "mouse"] (https://eval.in/413377)
<diegoviola> Radar: right
<Ox0dea> diegoviola: You're getting hung up on syntax rather than semantics.
chouhoulis has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
<diegoviola> Ox0dea: not hung up at all
<diegoviola> just got confused about constant in class vs methods
<Ox0dea> diegoviola: Then why're you talking about %w arrays?
<diegoviola> works fine now that I moved my constant to the class
<loincloth> \o/
<diegoviola> Ox0dea: because someone mentioned redefinition and it confused me
<diegoviola> Ox0dea: but it's clear now, I tried it in pry
<loincloth> well fwiw i mentioned it because your mentioned it via the error message you got :P
<Ox0dea> >> $ids = []; def foo; bar = %w[a b c]; $ids << bar.object_id end; foo; foo; $ids # diegoviola
aaeron has joined #ruby
<ruboto> Ox0dea # => [543776550, 543776510] (https://eval.in/413378)
<loincloth> but i'm sorry if i hurt more than i helped
<Ox0dea> diegoviola: That's what I meant about "redefinition"; the %w[a b c] is a different object every time the method gets called.
<Ox0dea> Thus demonstrating the futility of method-local "constants".
blue_deref has joined #ruby
mleung has quit [Quit: mleung]
failshell has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
krz has quit [Quit: WeeChat 1.2]
fullofcaffeine has quit [Remote host closed the connection]
<Ox0dea> diegoviola: In the event you're ever looking to emulate C's `static` keyword to only initialize an object the first time through a method, you can use `@ivar ||= foo`.
ecksit has joined #ruby
ecksit has left #ruby [#ruby]
dblessing has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
paulcsmith___ has joined #ruby
Tempesta has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PhantomSpank has quit []
<diegoviola> thanks
PhantomSpank has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
dblessing has quit [Client Quit]
<loincloth> diegoviola: sweet name btw :D
Rollabunna has joined #ruby
pwnd_nfsw has quit [Read error: Connection reset by peer]
dblessing has joined #ruby
major_majors has quit [Ping timeout: 246 seconds]
dblessing has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
major_majors has joined #ruby
Rickmasta has joined #ruby
s2013 has joined #ruby
marr has quit [Ping timeout: 264 seconds]
valetudo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
zacstewart has joined #ruby
oo_ has joined #ruby
fullofcaffeine has joined #ruby
oo_ has quit [Remote host closed the connection]
EllisTAA has joined #ruby
oo_ has joined #ruby
failshell has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
<diegoviola> loincloth: ?
fullofcaffeine has quit [Remote host closed the connection]
zacts has joined #ruby
fullofcaffeine has joined #ruby
safeforge has quit [Remote host closed the connection]
bffff_ has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has joined #ruby
tubuliferous_ has joined #ruby
zacstewart has quit [Remote host closed the connection]
RegulationD has joined #ruby
havenwood has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
failshell has quit []
baweaver has quit [Remote host closed the connection]
<loincloth> diegoviola: nevermind
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Ping timeout: 245 seconds]
jbw has quit [Ping timeout: 260 seconds]
_reset has quit [Ping timeout: 252 seconds]
RegulationD has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
centrx has joined #ruby
<havenwood> hi all
EllisTAA has quit [Quit: EllisTAA]
<hays> is there a simple/small web framework in ruby similar to pocoo/flask
sevenseacat has joined #ruby
<havenwood> hays: Sinatra is quite popular (I think it inspired Flask) or Roda is a very, very nice alternative.
texasmade has quit [Ping timeout: 240 seconds]
<diegoviola> Roda is very cool indeed
yqt has quit [Ping timeout: 260 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
sdothum has quit [Ping timeout: 250 seconds]
<pontiki> hihi again
tmtwd has quit [Ping timeout: 244 seconds]
paulcsmith___ has quit [Quit: Be back later ...]
mistermocha has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
jbw has joined #ruby
<shevy> yo pontiki - what greatness will you code today?
devoldmx_ has joined #ruby
baroquebobcat has joined #ruby
michael_mbp has quit [Excess Flood]
rodfersou has quit [Remote host closed the connection]
Ropeney has joined #ruby
michael_mbp has joined #ruby
<pontiki> nothing today
<pontiki> i'm working out some architecture
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
pietr0 has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
jhack has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
omegamike has joined #ruby
arooni-mobile has joined #ruby
cina has quit [Ping timeout: 260 seconds]
cina has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<miah> sinatra is neat so far
tkuchiki has joined #ruby
[k- has quit [Ping timeout: 246 seconds]
<shevy> I am still at a level of noobness with sinatra... I tried to make a site that allows one to connect via a ftp-interface... so far I semi-failed
<shevy> screenshots!
omegamike has quit [Ping timeout: 252 seconds]
<miah> i am writing a user/group management interface for ldap
Rollabunna has joined #ruby
mdavid613 has quit [Quit: Leaving.]
Oka has quit [Quit: さようなら]
PaulCapestany has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
towski_ has quit [Quit: Leaving...]
Rollabunna has quit [Ping timeout: 246 seconds]
grotewold has quit [Quit: ZZZzzz…]
j4cknewt_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<shevy> hmm I am trying to modify Gtk
kies^ has joined #ruby
loincloth has quit [Ping timeout: 264 seconds]
<shevy> I have code that looks like this: http://pastie.org/10334740
<shevy> I need to modify the original initialize to call the specific custom method
<shevy> but when I re-define initialize, I get a warning: gtk_module.rb:42: warning: method redefined; discarding old initialize
<shevy> any idea how to get rid of the warning?
zacstewart has joined #ruby
<diegoviola> shevy: write GTK::Entry instead
baroquebobcat has quit [Quit: baroquebobcat]
<diegoviola> I don't want to be pedantic, but GTK is an acronym
<pontiki> does Rack speak FTP??
<havenwood> pontiki: nope
fullofcaffeine has quit [Remote host closed the connection]
<havenwood> diegoviola: Being pedantic, it's not an acronym it's an initialism.
<pontiki> i didn't think so
allcentury has quit [Ping timeout: 265 seconds]
<havenwood> diegoviola: It isn't pronounced.
apt-get_ has quit [Remote host closed the connection]
<pontiki> shevy: how were you trying to get sinatra to connect via FTP?
devoldmx_ has quit [Ping timeout: 250 seconds]
<havenwood> guhtehkuh
phutchins has joined #ruby
<shevy> pontiki via my ftp wrapper; I don't know how to keep track of persistent data though, like "remain logged in" and continue to issue commands via that webinterface, and display that new thing in-page. I assume I may have to use javascript? no idea right now
<shevy> diegoviola did you use ruby-gtk before?
bruno- has quit [Ping timeout: 246 seconds]
<pontiki> shevy: i'm woefully confused. you have an FTP wrapper that emulates ftpd?
<diegoviola> havenwood: I'm confused now
<shevy> nono, I am using the ruby ftp stuff
<Aeyrix> shevy: Yeah you're gonna need AJAX or something.
<shevy> it works fine from the commandline and via ruby-gnome so far
<Aeyrix> Because you're gonna need a backend-ish to keep a persistent connection via KEEPALIVE.
michaeldeol has quit [Ping timeout: 246 seconds]
<havenwood> diegoviola: An acronym is pronounced. So like NATO.
<shevy> ok
rbennacer has joined #ruby
<havenwood> diegoviola: While an initialism isn't. So like IBM.
<diegoviola> I'm still confused
<havenwood> diegoviola: I-B-M
texasmade has joined #ruby
<Aeyrix> >not pronouncing IBM "ibem"
<havenwood> diegoviola: naahtoh
baroquebobcat has joined #ruby
<diegoviola> oh
<sevenseacat> scoooooba
<pontiki> nay-toh
<Aeyrix> ^
rbennacer has quit [Remote host closed the connection]
<Aeyrix> Nayto
<Aeyrix> woot
<havenwood> fermented soy beans..
<pontiki> natto
oddmunds has quit [Ping timeout: 245 seconds]
<pontiki> i'll see your natto and raise you a can of surstromming
<havenwood> pontiki: natto is so gross!
scripore has joined #ruby
scorp007 has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
oddmunds has joined #ruby
<pontiki> surstromming is registered as the worst smell ever
<shevy> diegoviola you can be pedantic - however had, if you write GTK::Entry then it would not work. If you would know ruby-gtk then you would know why, so I assume you never used it
<havenwood> pontiki: i believe
<pontiki> natto is tactical; surstromming is strategic
blueOxigen has joined #ruby
<pontiki> mind you , i never want to be near either one when they're opened
<diegoviola> shevy: I never used it
phutchins has quit [Ping timeout: 244 seconds]
<diegoviola> `/j ##english
fullofcaffeine has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
<diegoviola> crap I made a mistake in a git commit message
<diegoviola> about acronyms and initialism
rbennacer has joined #ruby
RegulationD has joined #ruby
<diegoviola> :S
dimasg has joined #ruby
hj2007 has joined #ruby
wafflemachine has joined #ruby
<havenwood> diegoviola: Out-pedanted you!
<diegoviola> :(
<diegoviola> that's fine at least I've learned something
hj2007 has quit [Client Quit]
bricker has quit [Ping timeout: 246 seconds]
<wafflemachine> How beneficial to my upcoming compsci degree (going into freshman year of college) is spending a weekend hacking around with rails?
RegulationD has quit [Ping timeout: 250 seconds]
<pontiki> a weekend? and then what?
<sevenseacat> you won't learn much in a weekend
<pontiki> no learning is wasted, though
<sevenseacat> true.
<wafflemachine> It's amazing how powerful rails is
<pontiki> quanifying benefit for that is quite impossible though
<wafflemachine> like actually, I'm used to Node-based crap
<wafflemachine> and python-django/flask
<wafflemachine> This gives me so much flexibility and customizability
<pontiki> i'd be surprised if you used any of those in comp sci courses, though
<wafflemachine> yeah... I know :/
nateberkopec has quit [Ping timeout: 265 seconds]
pietr0 has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
<wafflemachine> it gives me more leeway to ask to test out of intro, though. Only got a 3 on the AP test which means I actually have to take the class...
<pontiki> i guess the question throws me off. who *cares* if it's of benefit to your comp sci degree? it's worth it anyway
<wafflemachine> I mean, will it help me with any core concepts of compsci?
<wafflemachine> I dunno
robbyoconnor has joined #ruby
<pontiki> mainly cause it's *fun*
<pontiki> no
<pontiki> not any more than the other things you mentioned
<sevenseacat> it doesnt relate to 'core concepts of comp sci'
<pontiki> core concepts are algorithms, data structures
<pontiki> representations, abstractions
oo_ has joined #ruby
<pontiki> architecture, composition, ...
<pontiki> gods, it's been decades
Jandre has joined #ruby
<wafflemachine> Sounds like I'm in for a party...
Jandre is now known as Guest69331
<pontiki> one of the early core classes in my program, called "fundamentals of computer science" was entirely about functional decomposition
texasmade has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
<pontiki> i.e., how to break problems into smaller and smaller bits until you have a set of easily solvable components
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<heftig> methodology is a big part of any sci degree
<wafflemachine> Okay
devoldmx has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
<wafflemachine> What do you mean by methodology?
<wafflemachine> Like, how one codes?
<wafflemachine> how one abstracts things?
<wafflemachine> all of the above?
poguez_ has quit [Quit: Connection closed for inactivity]
<Radar> Programming: It Makes You Think.
<heftig> learning how to solve problems generally; not solving certain problems
hj2007 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<heftig> how to solve problems, conduct experiments, evaluate results, write papers
stardiviner has joined #ruby
hj2007 has quit [Client Quit]
hj2007 has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
djbkd has quit [Quit: My people need me...]
Rollabunna has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
iateadonut has joined #ruby
workmad3 has joined #ruby
blue_deref has quit [Quit: bbn]
MIGGERS_SUCK has joined #ruby
<MIGGERS_SUCK> hi
Rollabunna has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 260 seconds]
<Aeyrix> yes hello
<Radar> !mute MIGGERS_SUCK
<Aeyrix> nice
* Ox0dea is implementing some of the GNU coreutils in LOLCODE.
<Ox0dea> It's a shame "LOLUtils" is the name of a virus. :/
workmad3 has quit [Ping timeout: 260 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loincloth has joined #ruby
tenderlove has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<wafflemachine> Ox0dea: LOLTools?
<wafflemachine> or coreLOLs
<wafflemachine> ... I can't do names.
fenjamin has joined #ruby
<fenjamin> /msg NickServ identify a#%zS*S*b
<Ox0dea> Whoops.
<fenjamin> woops
<Ox0dea> /msg nickserv identify hunter2
<Radar> Big whoops.
<wafflemachine> Oh man
tmtwd has joined #ruby
<fenjamin> don't you touch my reputation!!
fenjamin has quit [Disconnected by services]
<wafflemachine> fenjamin: consider changing your password asap
Ox0dea is now known as fenjamin
<al2o3-cr> hi rublings
<Radar> Someone didn't change their password in time.
fenjamin_ has joined #ruby
<wafflemachine> oh jeeze...
oo_ has joined #ruby
<fenjamin_> do you have any idea how hard i worked for this reputation on irc
<fenjamin_> how dare you touch this username
<fenjamin> Look at all this free reputation!
<Radar> fenjamin_: You should change your original nick's password.
<wafflemachine> Relax, man :)
<fenjamin_> hours! hours! on irc!
<al2o3-cr> dicks!
<wafflemachine> fenjamin_, just do /msg nickserv help
<wafflemachine> there are a few commands to help you reclaim your account
<fenjamin_> wafflemachine i'm just joking. its a username. it doesn't matter.
<fenjamin> But then I'll become a ghost...
<fenjamin_> keep it!
<Radar> fenjamin_: Well done for not using the same password on GitHub.
<wafflemachine> There are some people who take IRC far too seriously
fenjamin has quit [Disconnected by services]
<Radar> :D
tubuliferous_ has joined #ruby
<Radar> This is fun.
<fenjamin_> fenjamin knows more than me
Ox0dea has joined #ruby
<fenjamin_> point i'm trying to make!
<al2o3-cr> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<wafflemachine> Radar: see if his FB username is the same
<Radar> wafflemachine: Na I should do real work instead :)
<Radar> Ox0dea: wb
<Ox0dea> Danke.
<fenjamin_> have at it. i'm the lifelock guy without lifelock
<wafflemachine> fenjamin_ that's... not a good thing
wafflemachine is now known as tuxwaffle
<fenjamin_> so the cs solution to the pretty right triangle where for every star printed on a new row a space is subtracted
<tuxwaffle> Wait, what?
* Radar is also confused
<tuxwaffle> Sounds like you need more recursion
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<Ox0dea> >> 42.times { |i| puts ?**i }
<ruboto> Ox0dea # => ...check link for more (https://eval.in/413382)
<Ox0dea> fenjamin_: You mean that?
<al2o3-cr> hi Ox0dea :)
<tuxwaffle> Is that... ruby?
<fenjamin_> yes. i'm trying to read this correctly
<Radar> tuxwaffle: It sure is.
<Aeyrix> lmfao
<Aeyrix> i got an alert about that nickserv pass
<Aeyrix> i collect them :^)
<al2o3-cr> Radar: Aeyrix sevenseacat
tubuliferous_ has quit [Ping timeout: 256 seconds]
<al2o3-cr> Hi
<tuxwaffle> Man, I've been playing with Python for too long..
<Aeyrix> al2o3-cr: Yes?
<Aeyrix> Oh, hi.
<Radar> al2o3-cr: hello.
<tuxwaffle> I need to learn ruby hacking :D
willywos has joined #ruby
<sevenseacat> al2o3-cr: good morning
<Aeyrix> I need to go home.
<al2o3-cr> morning all :)
<fenjamin_> ok this solution looks a bit beyond my scope
poguez_ has joined #ruby
millerti has quit [Ping timeout: 265 seconds]
<fenjamin_> i have to create a method
<al2o3-cr> what's going on?
<Radar> fenjamin_: maybe take just one line to explain what you're trying to do?
<Ox0dea> fenjamin_: ? raised to the power n is n asterisks; what's the problem?
bmurt has joined #ruby
<Ox0dea> >> ?**5
<ruboto> Ox0dea # => "*****" (https://eval.in/413383)
<al2o3-cr> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
bruno- has joined #ruby
<sevenseacat> al2o3-cr: no it's not
<Aeyrix> al2o3-cr can you please stop doing that
<Radar> al2o3-cr: You sure do like claiming that something is offtopic when it's not.
<Aeyrix> fucking hell, it's obnoxious
<BraddPitt> ahahaha
<fenjamin_> write a method that prints * for n number of rows
<Radar> PILE ON
<Aeyrix> I'm fairly sure that's by far and away the most-said thing by you, to be honest.
<BraddPitt> literally getting shit on
hj2007 has quit [Quit: This computer has gone to sleep]
<Radar> BraddPitt: not literally
<al2o3-cr> shit
<al2o3-cr> damn
Vile` has quit [Ping timeout: 272 seconds]
<BraddPitt> yes Radar thank you for correcting me :^)
atomical has joined #ruby
<Aeyrix> :^^^^)
<fenjamin_> while i want to print * for n number of rows, I also want to i guess remove? " " for n number of rows
<al2o3-cr> billy bull shit
<Ox0dea> "Literally" literally means "figuratively" now.
<Ox0dea> English a shit.
<Radar> !mute al2o3-cr
<sevenseacat> indeed.
<Radar> Shhhh
<Aeyrix> n i c e m e m e
<Ox0dea> fenjamin_: How do spaces come into it?
<Radar> fenjamin_: Maybe give us an example of what you wnat?
<Ox0dea> >> 42.times { |i| puts ?**i } # Radar
<ruboto> Ox0dea # => ...check link for more (https://eval.in/413384)
<Ox0dea> fenjamin_ has said that that's what he's trying to do.
<Aeyrix> Has he tried doing
<Aeyrix> 42.times { |i| puts ?**i }
<Ox0dea> That won't work.
CanTonic has joined #ruby
<fenjamin_> that's above my understanding
<Aeyrix> because I hear that works well when you're trying to emulate the behaviour of `42.times { |i| puts ?**i }`.
rbennacer has quit [Remote host closed the connection]
<fenjamin_> i've got to make it look like i'm studying code. unless someone could explain it?
<Aeyrix> fenjamin_: You want an explanation of that one-liner?
<fenjamin_> i'm beginning.
baweaver has joined #ruby
<Radar> !unmute al2o3-cr
Alayde has joined #ruby
<fenjamin_> basic for loops and and conditionals
<fenjamin_> i'm happy to jump ahead as long as i can defend what i create.
<fenjamin_> people are holding me accountable.
bruno- has quit [Ping timeout: 246 seconds]
<Radar> ?popcorn
<ruboto> I don't know anything about popcorn
<Radar> Damn.
<fenjamin_> i would enjoy using that solution but i need to explain it and most likely produce results consistent with this solution
<fenjamin_> which would be incredible.
<Ox0dea> You really shouldn't use that solution, mind.
<Aeyrix> Does this make sense to you?
<Aeyrix> The bigger block outputs this: https://eval.in/413386
<Aeyrix> Basically the same, but uses X's.
jackjackdripper has quit [Quit: Leaving.]
<Aeyrix> Identical to swapping "?*" to "X" in Ox0dea's code.
<Ox0dea> Objection! Misleading quotation.
<Aeyrix> doot doot dootdootdootdoot
<Aeyrix> stop
<fenjamin_> i really like that
<Aeyrix> .mp3
<Ox0dea> > thank mr skeltal
<Aeyrix> Nah it was an old mp3 from Tumblr which, to my dismay, I lost.
<fenjamin_> can i use this in a method body with a parameter?
<Aeyrix> Yeah sure.
<fenjamin_> they're going to think i'm jack and the beanstalk
<fenjamin_> "where did you get these magic beans??"
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
graydot has quit [Quit: graydot]
<fenjamin_> i always wonder if there's a citation standard in programming someone is honorable and genuinely talented or a scriptkiddy
oo_ has quit [Remote host closed the connection]
<fenjamin_> *so people can understand if something is honorable and genuinely talented or a scriptkiddy
<Aeyrix> There is, more or less.
<Aeyrix> You can tell when they understand the code they are writing.
tjbiddle has joined #ruby
<Aeyrix> fenjamin_: https://eval.in/413391
<Aeyrix> Does *that* code make sense to you, without comments?
<fenjamin_> hehe
<fenjamin_> actually
<Aeyrix> You said you wanted it in a method body. :^)
<fenjamin_> thats pseudocode IN the code code!
<Ox0dea> It's just code, mate.
<Aeyrix> Nope, that's just Ruby. :^)
<fenjamin_> ok im going to use the solution but this will come back around
<Ox0dea> fenjamin_: 2 * 3 == 2 + 2 + 2 == 6, 'x' * 3 == 'x' + 'x' + 'x' == 'xxx'
<Aeyrix> ok
<Ox0dea> It's really quite intuitive.
<Aeyrix> Ox0dea: fuckin stop
<Ox0dea> Stop explaining what String#* does?
<fenjamin_> i still need my signature style!
<saddad> /query bougyman
<Aeyrix> [ laughtrack ]
<saddad> /query bougyman question
<bougyman> that didn't work so well.
<fenjamin_> this place is like a morning zoo in text
<Ox0dea> /query saddad What are you doing?
<Aeyrix> /query i am not good with computer ples 2 help
<bougyman> / Ox0dea wtf, yo?
<Ox0dea> bougyman: People don't think it be like it is.
<Aeyrix> but it do
<Ox0dea> Do it, doe?
PhantomSpank has quit [Read error: Connection reset by peer]
<Aeyrix> think it do, yo
dh64 has joined #ruby
<Aeyrix> heh
<fenjamin_> yo i go commando EVERY DAY
MIGGERS_SUCK has quit [Ping timeout: 246 seconds]
<fenjamin_> my gangsta rhyme line for bohemian lifestyle
<al2o3-cr> joke!
PhantomSpank has joined #ruby
bmurt has quit []
countryHick has quit [Quit: Connection closed for inactivity]
<fenjamin_> that's my only line
<Ox0dea> Minecraft > /r/outside confirmed.
rakm has joined #ruby
<fenjamin_> which is better said for python
<al2o3-cr> fenjamin_: isthat you?
dimasg has joined #ruby
oo_ has joined #ruby
<al2o3-cr> it's a bit dodgy fenjamin_ never spoke before, hmmm....
<al2o3-cr> must think ya daft!
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
dorei has quit []
<fenjamin_> it would be wonderful to scope an entire song from that one line
omegamike has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<al2o3-cr> meh
tjbiddle has quit [Ping timeout: 265 seconds]
<fenjamin_> "but yo im lookin hungry with my hair in a bun/but spend my time starving because i'm looking for something that smells good and cant escape my own odor"
braincrash has quit [Quit: bye bye]
<al2o3-cr> :D
tjbiddle has joined #ruby
<tuxwaffle> Wait, so, I know a bit of ruby. What should I code (somewhat practical) to get my skills from whack (bad) to whack (good)
<tuxwaffle> Coming from Python with codecademy Ruby experience
<fenjamin_> ok ask for an extension!
omegamike has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
<fenjamin_> codewars.com
<fenjamin_> rubymonk.com
loincloth has quit [Remote host closed the connection]
braincrash has joined #ruby
<al2o3-cr> Ox0dea: lol
<Aeyrix> What the hell is going on in this channel?
<al2o3-cr> Ox0dea: is trolling
<Aeyrix> Are any of you actually speaking English, or just in incoherent image macros?
<Aeyrix> Without the images.
tjbiddle has quit [Ping timeout: 245 seconds]
fella7s has joined #ruby
Rollabunna has joined #ruby
<willywos> no speako any englisho
<al2o3-cr> When English is good, easy to spot
arooni-mobile__ has joined #ruby
<fenjamin_> ok back to research. you've been great!
fella6s has quit [Ping timeout: 244 seconds]
fenjamin_ has quit [Quit: 离开]
<sevenseacat> mi ne parolas la anglan.
* Aeyrix is not getting involved in language wars.
lannonbr has quit [Quit: WeeChat 1.2]
<al2o3-cr> tuxwaffle: come on!
Rollabunna has quit [Ping timeout: 246 seconds]
banister has quit [Ping timeout: 244 seconds]
kfpratt has quit [Remote host closed the connection]
darkf has joined #ruby
aaeron has quit [Quit: Leaving.]
kfpratt has joined #ruby
Blaguvest has quit []
Musashi007 has joined #ruby
<al2o3-cr> haha
<tuxwaffle> al2o3-cr: que?
<tuxwaffle> no hablo ingles, hombre...
oo_ has quit [Remote host closed the connection]
arooni-mobile__ has left #ruby ["Leaving"]
<al2o3-cr> yeah, homie
<tuxwaffle> Tried codewars with python
<tuxwaffle> realized I like verbose, clear code more than one liners
<tuxwaffle> got schooled by one-liners
ferock has joined #ruby
Chau has joined #ruby
<willywos> but what about javascript
<willywos> ?
<al2o3-cr> tuxwaffle: inconito heh
<willywos> thats fun
s2013 has quit [Read error: Connection reset by peer]
<tuxwaffle> willywoos: I have a particular disdain for JS
<willywos> what! undefined isn't even a function
_blizzy_ has joined #ruby
jester13 has joined #ruby
myztic has quit [Ping timeout: 244 seconds]
<tuxwaffle> More like I hate how Node has become the new Java
<tuxwaffle> or something
<tuxwaffle> ... the caffeine is wearing off and my thoughts are less coherent
<willywos> i thought everyone was leaving javascript for go
<tuxwaffle> that and marathoning "Silicon Valley" isn't helping
<tuxwaffle> Is Go webscale though? :P
ferock has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]
<willywos> lol
<tuxwaffle> I'm just gonna learn how to do everything in Ruby
<tuxwaffle> and be a dual Ruby/Python god
<al2o3-cr> weird, how 2 nicks trevor agaisnt each other?
Muhannad has quit [Ping timeout: 240 seconds]
<tuxwaffle> ?
Alayde has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
gix has quit [Ping timeout: 250 seconds]
<willywos> i hate that trevor, such an ass
zacstewart has quit [Remote host closed the connection]
<tuxwaffle> I think my brain is broken now
<tuxwaffle> night
<tuxwaffle> exit
tuxwaffle has quit [Quit: leaving]
scripore has joined #ruby
dgutierrez1287 has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
_blizzy_ has quit [Read error: Connection reset by peer]
<diegoviola> I was talking with someone the other day and mentioned how expressive Ruby can be that you can do some really nice one-liners and make methods smaller, and then this person said "Really? Do you know code minification with JavaScript? Do you know how difficult that is to read?", I feel that he completely missed the point
gix has joined #ruby
jackjackdripper has joined #ruby
_blizzy_ has joined #ruby
<Ox0dea> diegoviola: Properly utilizing Ruby's expressiveness has nothing to do with LOC.
<diegoviola> Ox0dea: I know
<Ox0dea> Clearly not.
<sevenseacat> do you?
fullofcaffeine has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
<diegoviola> it's why I said the other person was missing the point
oo_ has joined #ruby
<Ox0dea> diegoviola: Why bother to mention LOC in defense of Ruby's expressiveness?
<diegoviola> why not?
<Aeyrix> Because semantics.
<diegoviola> you're not making much sense
<diegoviola> semantics?
<Aeyrix> If we don't get our daily quota of arguing about semantics, this channel might start to look like a place where people can get help.
<Aeyrix> Gotta make sure that doesn't happen.
ap4y has quit [Ping timeout: 246 seconds]
<diegoviola> you just want someone to argue with, I'm not interested
<Aeyrix> Oh, I don't. I was being sarcastic.
<Aeyrix> The others, probably.
kfpratt has quit [Remote host closed the connection]
dopie has joined #ruby
ap4y has joined #ruby
kfpratt has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<diegoviola> code minification in JS and refactoring code to make methods smaller are different things
myztic has joined #ruby
<al2o3-cr> >> >> self.class === BasicObject
<ruboto> al2o3-cr # => /tmp/execpad-6a5f09dca00b/source-6a5f09dca00b:2: syntax error, unexpected >> ...check link for more (https://eval.in/413398)
<Aeyrix> nice
Chau has quit [Ping timeout: 260 seconds]
<Aeyrix> >> self.class === BaseObject
<ruboto> Aeyrix # => uninitialized constant BaseObject (NameError) ...check link for more (https://eval.in/413399)
<Aeyrix> >> self.class === BasicObject
<ruboto> Aeyrix # => true (https://eval.in/413400)
<Aeyrix> Third time lucky.
<al2o3-cr> shit
myztic has quit [Remote host closed the connection]
<willywos> what does that even do?
<Ox0dea> willywos: It shows that BasicObject is an Object.
<Ox0dea> Crazy, right?
<willywos> yeah
dopamean_ has quit [Read error: Connection reset by peer]
<Ox0dea> Everything on which you can invoke a method is an Object.
michael_mbp has quit [Excess Flood]
fullofcaffeine has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
dimasg has quit [Ping timeout: 255 seconds]
Muhannad has joined #ruby
blt has quit [Quit: WeeChat 1.2]
michael_mbp has joined #ruby
davedev24 has joined #ruby
loincloth has joined #ruby
<al2o3-cr> >> 5==5
<ruboto> al2o3-cr # => true (https://eval.in/413403)
d2dchat has joined #ruby
<havenwood> al2o3-cr: I can confirm that. Just checked.
<al2o3-cr> that can't right
<Aeyrix> I'm so glad we have this bot.
kfpratt has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
<al2o3-cr> how can 5 equal 5?
<Ox0dea> >> 5 == 4.99999999999999999999999
<ruboto> Ox0dea # => true (https://eval.in/413406)
<havenwood> al2o3-cr: It... does.
<Aeyrix> n i c e m e m e
<al2o3-cr> but how?
<havenwood> al2o3-cr: is five equal to five?
shadoi has quit [Quit: Leaving.]
<al2o3-cr> havenwood: idk is it?
<havenwood> al2o3-cr: I don't understand the objection.
joneshf-laptop has joined #ruby
<havenwood> al2o3-cr: Yup.
<Ox0dea> al2o3-cr: lrn2peano
dopamean_ has joined #ruby
kfpratt has joined #ruby
<al2o3-cr> >> 0 ** 0
<ruboto> al2o3-cr # => 1 (https://eval.in/413407)
charliesome has quit [Quit: zzz]
<al2o3-cr> HOW?
jonee has joined #ruby
<Ox0dea> Metaphysically, 1 == 1 because fuck you, that's why.
<al2o3-cr> haha lol :D
<willywos> lol
<al2o3-cr> Ox0dea: cheeky shit
<Ox0dea> al2o3-cr: GIGO.
<al2o3-cr> still..
<Ox0dea> al2o3-cr: Read the Principia or something.
<al2o3-cr> Ox0dea: chill, fucking with ya
<Ox0dea> And I with you, only I'm also trying to learn you something.
lordkryss has quit [Quit: Connection closed for inactivity]
<al2o3-cr> :D
dopieee has joined #ruby
<havenwood> >> 0 - 0 ** 0 == -1
<ruboto> havenwood # => true (https://eval.in/413409)
dopie has quit [Ping timeout: 260 seconds]
<al2o3-cr> havenwood: lol
myztic has joined #ruby
Chau has joined #ruby
<al2o3-cr> havenwood: knows is maths
<havenwood> >> 0 ** 0 == 1 ** Math.sqrt(Math::E)
<ruboto> havenwood # => true (https://eval.in/413410)
[k- has joined #ruby
<Ox0dea> havenwood: So oily.
<Ox0dea> Wait, no, I thought you were doing Euler's identity.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> >> Math::E ** (Math::PI * 1i) + 1 == 0
<ruboto> Ox0dea # => false (https://eval.in/413411)
<Ox0dea> Dammit. That's true on my system.
<al2o3-cr> >> 144 == (12**2.0)
<ruboto> al2o3-cr # => true (https://eval.in/413412)
<havenwood> Ox0dea: :O
<Ox0dea> havenwood: Euler's identity is pretty sexy.
<Ox0dea> I don't know why it doesn't hold on 32-bit systems, though.
chu has joined #ruby
brendan- has joined #ruby
<al2o3-cr> how many zero's 32bt?#
pietr0 has joined #ruby
<havenwood> mathy!
<diegoviola> Question please
<al2o3-cr> ask ruby
MatthewsFace has quit [Remote host closed the connection]
blimpdev has joined #ruby
<diegoviola> why is that when I do: 10**2000.class I get a: TypeError: Class can't be coerced into Fixnum, but when I do (10**2000).class I get a Bignum
<Aeyrix> Yeah?
<Aeyrix> Order of operations.
<havenwood> diegoviola: 10**(2000.class)
s1kx has quit [Ping timeout: 264 seconds]
<diegoviola> what is the meaning of the parens in this case
<diegoviola> havenwood: ok that makes more sense
<havenwood> diegoviola: an expression
<al2o3-cr> precedence
<diegoviola> 10 is an object and ** is a method and you pass 2000.class as a parameter
oo_ has quit [Remote host closed the connection]
<havenwood> diegoviola: yup
<Aeyrix> >> 10.**(2)
<ruboto> Aeyrix # => 100 (https://eval.in/413416)
htmldrum has joined #ruby
<al2o3-cr> >> (2**32)-1
<ruboto> al2o3-cr # => 4294967295 (https://eval.in/413417)
yh__ has quit [Ping timeout: 240 seconds]
<diegoviola> (foo).class doesn't make much sense though, what is () exactly?
<al2o3-cr> running out
<Aeyrix> diegoviola: What
<diegoviola> is it just a keyword?
<Aeyrix> do you not remember mathematical order of operations?
<Aeyrix> it's basically the same thing
framling has joined #ruby
Rollabunna has joined #ruby
<al2o3-cr> >> 2 << 32 (-1)
<ruboto> al2o3-cr # => /tmp/execpad-30d08b52790b/source-30d08b52790b:2: syntax error, unexpected '(', expecting keyword_end ...check link for more (https://eval.in/413418)
<al2o3-cr> shit
<havenwood> diegoviola: it delimits the beginning and ending of an expression
<diegoviola> havenwood: right
perrier has quit [Remote host closed the connection]
<al2o3-cr> lol
<diegoviola> thanks
perrier has joined #ruby
<al2o3-cr> >> -> n { n << 32-1 }[2]
<ruboto> al2o3-cr # => 4294967296 (https://eval.in/413420)
Rollabun_ has joined #ruby
<al2o3-cr> >> -> n { n << 32-1 }.(5)
<ruboto> al2o3-cr # => 10737418240 (https://eval.in/413421)
<al2o3-cr> diegoviola: ruby is the bomb!
Rollabunna has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<diegoviola> al2o3-cr: what is that supposed to mean?
<al2o3-cr> the one and only :D
PhantomSpank has quit [Remote host closed the connection]
<Ox0dea> diegoviola: Your elementary school deserves to have its funding revoked.
<Aeyrix> I'm lucky I chose to stop drinking before I switched back to this channel.
<al2o3-cr> drink, drink fackin drink lol
govg has quit [Ping timeout: 250 seconds]
<diegoviola> Ox0dea: I'd rather not get into that discussion, can you also please stop with the belittling about education?
<al2o3-cr> father ted, funny
<Ox0dea> diegoviola: Check your privilege, mate.
<Aeyrix> stop.mp3
charliesome has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
tmtwd has quit [Read error: Connection reset by peer]
<al2o3-cr> mpv stop.mp3
<Ox0dea> Aeyrix: This song sounds a lot like 4'33".
<Ox0dea> New favorite!
<diegoviola> Ox0dea: not all countries have great education systems, that's one of the reasons I value the internet and open access to information a lot
<Ox0dea> diegoviola: Let it go, dude.
Chau has quit [Quit: Leaving]
<al2o3-cr> why's it not playing?
mistermocha has joined #ruby
<Aeyrix> Ox0dea: It was brass
<Aeyrix> playing
<diegoviola> Ox0dea: Sure. You might also want to be less offtopic and less passive aggressive
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
<Aeyrix> 1/4 1/4 1/2 1/2 1/4 1/4
<al2o3-cr> awesomeness
<Aeyrix> then someone saying "stop"
<Aeyrix> and that was it
<Ox0dea> diegoviola: When I joined the Internet, expression grouping was one of the first things they taught us during onboarding. We had to read SICP in the snow, uphill both ways.
texasmade has joined #ruby
texasmade has left #ruby [#ruby]
<blimpdev> 0x0dea: Can you please fuck off dude we all don't like you at all
<Ox0dea> Yeah! Fuck off, 0x0dea!
<Aeyrix> 0x0
<Aeyrix> 0xO
<blimpdev> dude i misspelled your shit because i fucking hate you
<blimpdev> piece of cock
<Ox0dea> All my feels.
<Aeyrix> m o d s
<Aeyrix> o
<Aeyrix> d
<Aeyrix> s
<Ox0dea> Aeyrix: No! Y U DO DIS?
<Aeyrix> Can we stop the angst now, on all sides.
<Radar> !mute blimpdev
<Ox0dea> :'(
<Radar> Anyone else want one?
* Ox0dea raises hand, but only if you're gentle.
<Aeyrix> Does it come with an action figure?
<al2o3-cr> the billy joel song i like https://www.youtube.com/watch?v=gxEPV4kolz0
freerobby has quit [Quit: Leaving.]
Inside has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
tubuliferous_ has joined #ruby
<al2o3-cr> and the only one
h4ckurate has joined #ruby
jester13 has quit [Ping timeout: 264 seconds]
<al2o3-cr> whoa, what happened?
jackjackdripper has joined #ruby
benlovell has joined #ruby
<al2o3-cr> i only searched for a song :/
<Aeyrix> People started getting rude.
xxneolithicxx has quit [Quit: Leaving.]
fullofcaffeine has quit [Remote host closed the connection]
<al2o3-cr> Aeyrix: yeah, scrolled up, wow
loincloth has joined #ruby
loincloth has quit [Remote host closed the connection]
<al2o3-cr> i should take joins/quits off
tubuliferous_ has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
pietr0 has quit [Quit: pietr0]
<al2o3-cr> tune this
benlovell has quit [Ping timeout: 260 seconds]
Mendenhall has joined #ruby
blimpdev has quit [Quit: WeeChat 1.2]
kfpratt has quit [Remote host closed the connection]
zacstewart has joined #ruby
<al2o3-cr> who's watched 'max'
halcyone3 has joined #ruby
<Aeyrix> Is that like
<Aeyrix> Mad Max
<Aeyrix> before he went mad?
sepp2k has quit [Read error: Connection reset by peer]
<Ox0dea> Mad Min is a pretty good show.
<al2o3-cr> max (THE WAR DOG)
<Radar> Ironic that the person who spams ?offtopic is now posting offtopic messages in this channel.
<Ox0dea> I think that's just hypocrisy.
<al2o3-cr> not bad film
* Ox0dea just drank a fifth of dihydrogen monoxide.
kfpratt has joined #ruby
<al2o3-cr> very much respect to the the veteran and dog (you need balls, big balls for that career)
<wmoxam>
zacstewart has quit [Ping timeout: 252 seconds]
GeissT has joined #ruby
casadei_ has quit [Remote host closed the connection]
kp666 has joined #ruby
<baweaver> Aeyrix: you can always !.ops to get their attention too (without the dot)
<Aeyrix> I know.
<Aeyrix> But I try and remind everyone before using that.
<baweaver> fair
<Ox0dea> Plus nice memes.
<Aeyrix> Ox0dea: I tried to get that as a command for #ror's bot.
<al2o3-cr> so many young people dying, over a war that not be won
<Aeyrix> Didn't work.
<Aeyrix> Is al2o3-cr a Markov chain bot?
<Ox0dea> He's just... different.
kfpratt has quit [Ping timeout: 260 seconds]
<al2o3-cr> Aeyrix: no just speaking the truth
<wmoxam> al2o3-cr: I agree. Programming language wars are the worst
<baweaver> so just high then, ok.
<baweaver> Java should die in a fire.
<al2o3-cr> just fucking gets to me, not even lived and getting killed over a fucking war that's as beem going on for over a 1000 years (government pricks)
<al2o3-cr> and this country is a JOKE
<Ox0dea> /part #soapbox
<sevenseacat> al2o3-cr: can you like, settle a little?
<wmoxam> al2o3-cr: it's true that the Ruby community can be a bit tough on PHP and Java folk, but I'd say on a whole we're an accepting bunch
bruno- has joined #ruby
pdoherty has quit [Quit: Leaving]
<al2o3-cr> grandmothers and grandfathers fought in world war 2 possibly 1 and can't get shit, it's wrong, it needs to change
<sevenseacat> al2o3-cr: enough.
<al2o3-cr> k
<Ox0dea> "Be the change you wish to see in the world."
<Aeyrix> thank mr philosophy
<wmoxam> oh yes, I remember the text editor wars
<baweaver> I'm just Mr Pun
<Radar> !mute al2o3-cr
<wmoxam> they were *brutal*
<Radar> Anyone else?
<Aeyrix> wmoxam: They still happen! :D
<baweaver> Radar has spoken, so it shall be
<Aeyrix> I'm like 80% sure one of my colleagues uses Emacs.
<Aeyrix> idk what he uses as a text editor though
<wmoxam> oh boy
<baweaver> Just grew up administering headless servers so Vim is kinda second nature to me anymore.
<Aeyrix> I always stuck to nano because I was just lazy and often was only doing very simple text editing.
<baweaver> Would I tell a fresh newbie to use it? No, they have enough to learn as is.
<Aeyrix> I can use vi/m, but I tend not to.
<Ox0dea> baweaver: But that's the antithesis of indoctrination!
<baweaver> It takes getting used to definitely.
<baweaver> I'm far more a pragmatist, use what works best for you
<baweaver> which of course can be overridden for the sake of greater pragmatism, ie style guides
<wmoxam> baweaver: that attitude is what led to the end of the war
<wmoxam> ;)
<Aeyrix> ONE
<Aeyrix> HUNDRED
<Aeyrix> YEARS
djbkd_ has joined #ruby
<Ox0dea> OF
<Ox0dea> SOLITUDE
<Aeyrix> ALL FOR NOTHING
<Ox0dea> Well, I think it won a Pulitzer or some such.
loincloth has joined #ruby
loincloth has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 272 seconds]
<Ox0dea> Scratch that, but it did contribute to Márquez's Nobel Prize, so there's that.
<Aeyrix> Vim?
<Ox0dea> "One Hundred Years of Solitude".
<Aeyrix> Oh.
<Ox0dea> It's wunna dem book thangs.
<Aeyrix> So, yeah, Vim.
<wmoxam> and Vim as well
auzty has joined #ruby
<Aeyrix> On the topic of software winning prizes, I wish I could do these reports in LaTeX.
<Aeyrix> MSWord crashes so fucking frequently on OS X right now.
<Ox0dea> 7/10
<Aeyrix> [10]
bronson has quit [Ping timeout: 260 seconds]
<wmoxam> why are you using MS Word?
<Aeyrix> wmoxam: MSWord templates.
<Aeyrix> LibreOffice gets 'em wrong.
oo_ has joined #ruby
<wmoxam> :/
<wmoxam> I only use Google Docs anymore
<wmoxam> or if I want a good layout, HTML
ascarter has joined #ruby
<wmoxam> :p
MatthewsFace has joined #ruby
djbkd_ has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
omegamike has joined #ruby
charliesome has quit [Quit: zzz]
<Ox0dea> The hell is Ring -2?
abcd1234 has quit [Read error: Connection reset by peer]
<wmoxam> Ox0dea: HW exploit?
<wmoxam> ie: microcode?
<wmoxam> (just guessing)
loincloth has joined #ruby
abcd1234 has joined #ruby
<Ox0dea> wmoxam: Well, yeah, but Ring -1 is the hypervisor; what's under that?
loincloth has quit [Remote host closed the connection]
<havenwood> "we'll release proof-of-concept code exploiting the vast, unexplored wasteland of forgotten x86 features, to demonstrate how to jump malicious code from the paltry ring 0 into the deepest, darkest realms of the processor"
omegamike has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 265 seconds]
<wmoxam> Ox0dea: turtles
<havenwood> deep water turtles that like the dark
pawnbox has joined #ruby
<havenwood> Ox0dea: ring super sekret
<sevenseacat> computers, how do they work?
<sevenseacat> we're all fooked
<wmoxam> ring -2 is where they keep the magic smoke
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psmolen has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
ramfjord has joined #ruby
<havenwood> Ox0dea: System Management Mode (SMM) apparently.
psmolen has joined #ruby
GeissT has quit [Quit: Bye!]
<havenwood> looking at that pdf
<Ox0dea> >> eax = 42; eax ^= eax
<ruboto> Ox0dea # => 0 (https://eval.in/413423)
<Ox0dea> A dedicated zero register seems just dumb enough to be useful.
<Aeyrix> Oh hey
<Aeyrix> this is relevant to my expertise
<Aeyrix> :^)
<Ox0dea> Aeyrix: It's sinkhole's author's GitHub handle.
<Aeyrix> I meant the sinkhole itself.
<Ox0dea> Ah. ELI5?
<Aeyrix> The actual thing?
pawnbox has quit [Remote host closed the connection]
<Aeyrix> Basically x86 has a more privileged area beyond ring 0 - kernel - where things just go full MC Hammer and AV can't touch it.
shoutsid has quit [Remote host closed the connection]
<Aeyrix> There's plenty of layers of protection over these areas with x86, but 40-odd years of code and models leave a really nice mess.
niemcu has quit [Ping timeout: 272 seconds]
<Aeyrix> One of the key niceties of "ring -2" is the fact that it can bypass Intel's TXT (trusted execution tech), giving it tip-top tier privileges on even modern processors.
psy_ has quit [Ping timeout: 264 seconds]
<Aeyrix> There's not a full paper yet because the talk hasn't happened afaik.
<Ox0dea> Is it not technically feasible for whitehats (read: AV writers) to use the same principle for good?
<Aeyrix> No.
<Aeyrix> This attack isn't like
halcyone3 has quit [Ping timeout: 246 seconds]
renanoronfle has quit [Ping timeout: 246 seconds]
Rollabun_ has quit [Remote host closed the connection]
<Aeyrix> it's not a punchhole vulnerability
<Aeyrix> where you're just breaking a level of protection and can do anything
<Aeyrix> it's actually quite limited in its first stage.
psy_ has joined #ruby
<Aeyrix> It's more the second stage which is much, much more potent.
<Aeyrix> Because it now has access to this ring -2.
crdpink2 has quit [Ping timeout: 244 seconds]
<Aeyrix> The main problem with this vulnerability is at "ring -2" nobody, nothing can see what you're doing.
TvL2386 has joined #ruby
crdpink has joined #ruby
<Aeyrix> It's kind of what most people imagine ring 0 is all about, by an order of magnitude
<Aeyrix> I described it to someone else as like getting SYSTEM / root but for the hardware itself, not just the OS.
ascarter has joined #ruby
crdpink has quit [Client Quit]
tkuchiki has joined #ruby
<Ox0dea> Aeyrix: I can't quite wrap my head around ring-2 residents not being able to see each other; how does that work?
crdpink has joined #ruby
<Ox0dea> *Ring -2
<Aeyrix> Because if malware gets there first, it runs the place.
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
<Aeyrix> This is amusingly all possible because of a miniscule patch to fix a small subset of systems two decades ago.
Ox0dea has quit [Ping timeout: 256 seconds]
fedexo has quit [Ping timeout: 246 seconds]
Gribo has joined #ruby
loincloth has joined #ruby
slackbotgz has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 245 seconds]
htmldrum has joined #ruby
<[k-> >> 1 ^= 1
<ruboto> [k- # => /tmp/execpad-b2168bdf8214/source-b2168bdf8214:2: syntax error, unexpected tOP_ASGN, expecting keywor ...check link for more (https://eval.in/413430)
<[k-> :o
<[k-> does it work for 1?
mistermocha has joined #ruby
Musashi007 has quit [Ping timeout: 246 seconds]
youch has quit [Ping timeout: 260 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
aganov has joined #ruby
Musashi007 has joined #ruby
<bnagy> hypervisor isn't that esoteric and tons of AV companies want in there
<bnagy> smm is crazypants
<Aeyrix> Hypervisor is "ring -1"
<Aeyrix> in quotes because there's only three true rings and I don't care what anyone says.
<Aeyrix> >:(
<bnagy> hahah
<Aeyrix> Also FWIW this sinkholing is fixed as of Intel's Sandy Bridge generation of processors.
<Aeyrix> About three years ago?
astrobun_ has joined #ruby
<Aeyrix> Sandy / Ivy / Haswell
<Aeyrix> yeah
zacstewart has joined #ruby
<bnagy> well SMM attacks in general are very not-dead
<Aeyrix> bnagy: Have you seen the actual restrictions they had?
<Aeyrix> It's insane.
mistermocha has quit [Ping timeout: 246 seconds]
<bnagy> yeah, I was just reacting to "below ring 0 means AV can't touch it"
<Aeyrix> Oh, yeah.
loincloth has quit [Remote host closed the connection]
<Aeyrix> Unless explicitly allowed by things like vSphere. ;)
<bnagy> you can run more-or-less-normal code at -1, lots of things use it
axl_ has quit [Ping timeout: 245 seconds]
halcyone3 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> although I definitely agree that the 'ring' monikers are dumb
<bnagy> below 0 anyway
<Aeyrix> 0 - 3 made sense.
<Aeyrix> -1 was... i don't know
<Aeyrix> yeah
Renich has joined #ruby
kfpratt has joined #ruby
amclain has quit [Quit: Leaving]
Synthead has quit [Ping timeout: 244 seconds]
<bnagy> the arm TZ talk also got pulled which is >:(
arescorpio has quit [Quit: Leaving.]
zacstewart has quit [Ping timeout: 244 seconds]
saddad has quit [Ping timeout: 260 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
d2dchat has quit [Remote host closed the connection]
i8igmac has joined #ruby
astrobun_ has quit [Ping timeout: 265 seconds]
astrobun_ has joined #ruby
axl_ has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
arooni-mobile has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
elton has joined #ruby
TomyLobo has joined #ruby
oo_ has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
mdavid613 has joined #ruby
oo_ has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
ap4y has quit [Ping timeout: 255 seconds]
Renich has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
oo_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
safeforge has joined #ruby
kfpratt has quit [Ping timeout: 246 seconds]
niemcu has joined #ruby
oo_ has joined #ruby
frem has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<Aeyrix> diegoviola: lol did you quote Linus on regression testing
<diegoviola> Aeyrix: yes, why?
<Aeyrix> You realise that quotation was sarcasm, right?
sdrew has joined #ruby
<diegoviola> Aeyrix: no
<Aeyrix> I thought so.
<Aeyrix> It was sarcasm.
<diegoviola> Aeyrix: how do you know? none of his projects do any regression testing
<Aeyrix> Because I know where the quote came from.
<diegoviola> Aeyrix: where did it come from?
graydot has joined #ruby
<Aeyrix> An email in 1998.
<diegoviola> interesting
<diegoviola> I've seen this email before
sdrew has quit [Client Quit]
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
graydot has quit [Client Quit]
roolo has joined #ruby
tubuliferous_ has joined #ruby
towski_ has joined #ruby
DifferentLambda has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
<diegoviola> Aeyrix: oh 2 years before I started with Linux, interesting
<Aeyrix> neat
<TomyLobo> sarcasm came from an email in the 90s?
PhantomSpank has joined #ruby
<[k-> "Raw brain taste test"
<[k-> oh shit wrong channel
<[k-> ahhhhh
<Aeyrix> lmao
ponga has joined #ruby
<[k-> you guys saw nothing!
tubuliferous_ has quit [Ping timeout: 240 seconds]
<TomyLobo> the answer is probably "like chicken" anyway
khebbie has quit [Remote host closed the connection]
yardenbar has joined #ruby
tsvenson has joined #ruby
PhantomSpank has quit [Ping timeout: 252 seconds]
DoubleMalt has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Remote host closed the connection]
safeforge has quit [Remote host closed the connection]
Ox0dea has joined #ruby
<Ox0dea> >> Class.is_a? Module # TomyLobo
<ruboto> Ox0dea # => true (https://eval.in/413505)
havenwood has quit [Ping timeout: 250 seconds]
<Ox0dea> Because I wasn't around to blow your mind earlier. :P
<[k-> BOOM!
* [k- raises CircularDependencyError
<Ox0dea> [k-: ^= is a compound assignment; you can't assign to integer literals.
norc has quit [Quit: Page closed]
<Ox0dea> Also, a mutual dependency isn't necessarily circular.
kfpratt has joined #ruby
<[k-> i know what = means!
<Ox0dea> Then why did you `1 ^= 1`?
<[k-> a moment of foolishness.
<Ox0dea> Humility becomes you.
umop3plsdn has quit [Read error: Connection reset by peer]
htmldrum has joined #ruby
<[k-> in Soviet Russia, you become humility
duderonomy has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
TomyLobo has joined #ruby
kfpratt has quit [Ping timeout: 246 seconds]
Renich has quit [Quit: Lost terminal]
dgutierrez1287 has joined #ruby
hahuang65 has joined #ruby
canternet has joined #ruby
arup_r_ has joined #ruby
arup_r has quit [Read error: No route to host]
pawnbox has quit [Read error: Connection reset by peer]
towski_ has quit [Remote host closed the connection]
eGGsha has joined #ruby
PhantomSpank has joined #ruby
tenderlove has joined #ruby
khebbie has joined #ruby
safeforge has joined #ruby
saltsa has quit [Ping timeout: 250 seconds]
dgutierrez1287 has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
lele is now known as Guest24
<baweaver> >> -~1
<ruboto> baweaver # => 2 (https://eval.in/413520)
<baweaver> >> ~-1
<ruboto> baweaver # => 0 (https://eval.in/413521)
Mendenhall has quit [Ping timeout: 246 seconds]
<Ox0dea> "Nice haircut," said 1+1.
khebbie has quit [Remote host closed the connection]
<atmosx> aloha ppl
bayed has joined #ruby
canternet is now known as DifferentLambda
<diegoviola> LaTeX is sort of annoying to use, but the quality of the documents is great
abcd1234 has quit [Read error: Connection reset by peer]
<Ox0dea> (That was two's compliment, for any confused.)
tenderlove has quit [Ping timeout: 264 seconds]
omegamike has joined #ruby
nhhagen has joined #ruby
<diegoviola> Ox0dea: are you referring to my comment?
abcd1234 has joined #ruby
<Ox0dea> diegoviola: No, baweaver gave a demonstration of two's complement arithmetic.
<Ox0dea> And then I punned.
<diegoviola> oh sorry
<Ox0dea> No worries.
<baweaver> I am the one who puns
<diegoviola> sorry for the offtopic too, I thought I was on #archlinux for a second :P
<baweaver> Just so we're crystal clear here
techsethi has joined #ruby
<diegoviola> not sure about that
TomyLobo has quit [Ping timeout: 255 seconds]
<diegoviola> what is pun/punned?
<baweaver> joke ___/ diegoviola \____
<diegoviola> english is not my primary language
<baweaver> wouldn't help in this case.
<baweaver> It was a Breaking Bad pun
<diegoviola> not sure I understand, nvm
<baweaver> probably won't, it's a show
<baweaver> you'd have to watch it to catch the joke
<diegoviola> I know Breaking Bad, never watched it though
<Ox0dea> baweaver: A guy opens his mouth and puns and you think that of me?!
PhantomSpank has quit []
omegamike has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
<Ox0dea> diegoviola: Punning is arguzia verbale.
<diegoviola> Arguzia?
<Ox0dea> Blame Google.
<baweaver> we're just word playing
<baweaver> Ox0dea: http://thecodelesscode.com/ is fun
<Ox0dea> I enjoyed it.
<Ox0dea> Probably should've kept a list of my favorites, in hindsight.
<baweaver> http://thecodelesscode.com/case/29 is a decent enough starting point
<baweaver> story of two ponds
djbkd has quit [Quit: My people need me...]
skade has joined #ruby
keeguon has joined #ruby
mdavid613 has quit [Quit: Leaving.]
charliesome has quit [Quit: zzz]
sdrew has joined #ruby
arup_r_ has quit [Read error: Connection reset by peer]
arup_r__ has joined #ruby
arup_r__ has quit [Client Quit]
saltsa has joined #ruby
stan has joined #ruby
arup_r_ has joined #ruby
arup_r_ has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
singalaut has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
lampshades has joined #ruby
pawnbox has joined #ruby
arup_r has joined #ruby
greenarrow has joined #ruby
AlphaAtom has joined #ruby
j4cknewt has joined #ruby
eL_bAmba has joined #ruby
devoldmx has quit [Remote host closed the connection]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest53725
diego1 is now known as diegoviola
last_staff has joined #ruby
Guest53725 has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
codecop has joined #ruby
cornerma1 has joined #ruby
i8igmac has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
Guest69331 has quit [Ping timeout: 272 seconds]
Mendenhall has joined #ruby
scroff has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
diegoviola has quit [Quit: WeeChat 1.2]
scroff has joined #ruby
cornerman has quit [Ping timeout: 244 seconds]
nhhagen has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
arup_r has quit []
segfalt has quit [Ping timeout: 240 seconds]
terlar has joined #ruby
Jandre has joined #ruby
DoubleMalt has joined #ruby
zacstewart has joined #ruby
Jandre is now known as Guest47556
nhhagen has joined #ruby
<Kero> baweaver: thx for that link (thecodelesscode), I think I'll enjoy it, too!
scroff has quit [Ping timeout: 250 seconds]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
qiukun has joined #ruby
roolo has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Violentr has joined #ruby
Ann has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
ap4y has joined #ruby
arup_r has joined #ruby
abcd1234 has quit [Read error: Connection reset by peer]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
preller has quit [Ping timeout: 246 seconds]
Feyn has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abcd1234 has joined #ruby
koglinjg has joined #ruby
mistermocha has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
preller has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
shoutsid has joined #ruby
eGGsha has joined #ruby
noethics has quit [Quit: Leaving]
Trynemjoel has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
khebbie has joined #ruby
renanoronfle has joined #ruby
Musashi007 has joined #ruby
shpoont has joined #ruby
anisha has joined #ruby
Philipp__ has joined #ruby
koglinjg has quit [Quit: Page closed]
khebbie has quit [Remote host closed the connection]
conor_ has joined #ruby
khebbie has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
scroff has joined #ruby
benlovell has joined #ruby
pawnbox has joined #ruby
workmad3 has joined #ruby
loincloth has quit [Remote host closed the connection]
Guest47556 has quit [Ping timeout: 272 seconds]
khebbie has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
riffraff has joined #ruby
Jandre_ has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
_ht has joined #ruby
singalaut has quit [Quit: WeeChat 1.3-dev]
alexherbo2 has quit [Remote host closed the connection]
shpoont has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has quit [Quit: Musashi007]
yardenbar has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
eL_bAmba has quit [Ping timeout: 250 seconds]
rdark has joined #ruby
marr has joined #ruby
baweaver has quit [Remote host closed the connection]
Lildirt has quit [Ping timeout: 255 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 256 seconds]
eGGsha has joined #ruby
WizJin has joined #ruby
edwinvdgraaf has joined #ruby
DoubleMalt has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
preller has quit [Read error: Connection reset by peer]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
eGGsha has quit [Max SendQ exceeded]
devoldmx has joined #ruby
Lildirt has joined #ruby
fullofcaffeine has joined #ruby
eGGsha has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
eGGsha has quit [Max SendQ exceeded]
ishahnaz has joined #ruby
eGGsha has joined #ruby
loincloth has joined #ruby
eGGsha has quit [Max SendQ exceeded]
yardenbar has joined #ruby
eGGsha has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
Lildirt has quit [Ping timeout: 264 seconds]
Iskarlar has joined #ruby
loincloth has quit [Remote host closed the connection]
systemd0wn has quit [Remote host closed the connection]
systemd0wn has joined #ruby
apfeluser has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Lildirt has joined #ruby
Iskarlar has quit [Client Quit]
scroff has quit []
relix has joined #ruby
tkuchiki has joined #ruby
krz has joined #ruby
DoubleMalt has joined #ruby
Mendenhall has quit [Ping timeout: 272 seconds]
hahuang65 has joined #ruby
tenderlove has joined #ruby
mikecmpbll has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<symm-> any way to start the default browser with an arbitrary url from ruby?
djbkd has joined #ruby
<adaedra> depend on the system
<adaedra> there's
<adaedra> ugh
hahuang65 has quit [Ping timeout: 252 seconds]
<Ox0dea> `xdg-open` is pretty standard.
<adaedra> there's xdg-open command on Linux and open on Mac OS X
kfpratt has joined #ruby
pawnbox has quit [Remote host closed the connection]
h4ckurate has quit [Quit: h4ckurate]
<symm-> oh nvm found it - system("start http://www.google.com")
<symm-> (windows here)
jds has joined #ruby
<symm-> thanks guys
radgeRayden has quit [Ping timeout: 250 seconds]
djbkd has quit [Client Quit]
tenderlove has quit [Ping timeout: 246 seconds]
chthon has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.2]
fullofcaffeine has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
al2o3-cr has quit [Client Quit]
al2o3-cr has joined #ruby
kfpratt has quit [Ping timeout: 244 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
edwinvdg_ has joined #ruby
niemcu has quit [Ping timeout: 265 seconds]
irctc594 has joined #ruby
<irctc594> hello anyone here?
<adaedra> no one.
<adaedra> :)
charliesome has quit [Quit: zzz]
yfeldblum has joined #ruby
Muhannad has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
<yorickpeterse> g'day children
<yorickpeterse> you all behaved nicely?
<yorickpeterse> not doing any drugs?
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
<adaedra> winners don't do drugs
<adaedra> good thing I'm not a winner I guess
mistermocha has joined #ruby
kidoz has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
<irctc594> so im getting this error, {"code"=>101, "error"=>"object not found for update"} when trying to do this https://gist.github.com/anonymous/18675c26e5470999808d
<[k-> and?
oo_ has quit [Remote host closed the connection]
c0m0 has joined #ruby
<sevenseacat> I hate whe n that happens.
Trynemjoel has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
khebbie has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
niiamon has joined #ruby
<irctc594> can anyone help with my issue?
<Ox0dea> irctc594: Do you have a local variable named object_id?
<sevenseacat> what about it?
<irctc594> yes i do have a local variable.
<sevenseacat> and what is it?
bruno- has joined #ruby
<irctc594> i dont know why its saying object not found for update when i have the column in parse
<irctc594> object_id = session[:object_id]
<sevenseacat> and what is it?
hewenhong has joined #ruby
hewenhong has quit [Client Quit]
<jhass> meh, I want a way so that some_symbol.to_f_s returns a frozen string and always the same one for the same symbol
eGGsha has joined #ruby
<irctc594> i just said what it was
<sevenseacat> for all we know, session[:object_id] is nil, so
<sevenseacat> thats why I asked what it is
eGGsha has quit [Max SendQ exceeded]
Iskarlar has joined #ruby
slash_nick has quit [Ping timeout: 256 seconds]
<Ox0dea> irctc594: Whose code do you reckon is more likely to be wrong, Parse's or yours?
oo_ has joined #ruby
<irctc594> obviously mine
niemcu has joined #ruby
krz has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 244 seconds]
slash_nick has joined #ruby
Hounddog has joined #ruby
<Ox0dea> irctc594: Good, then you've the sense to appreciate that "object not found for update" is a concise and accurate explanation for the problem you're having.
eGGsha has joined #ruby
<irctc594> yeah
eGGsha has quit [Max SendQ exceeded]
<Ox0dea> irctc594: I trust you realize that application ID and API key aren't the same thing?
Jandre_ has quit [Ping timeout: 272 seconds]
<Ox0dea> Your code indicates that you're using the same value for both.
<irctc594> yes
<irctc594> but in my real code i have it differntly, i just changed it for posting on gist
f4cl3y__ has joined #ruby
<sevenseacat> so..... did we work out what object_id was yet?
Iskarlar has quit [Client Quit]
Pupeno_ has quit [Remote host closed the connection]
<Ox0dea> irctc594: Aye, you should confirm that session[:object_id] is what you think it is.
<Ox0dea> According to Parse's API docs, it should be a ten alphanumerics.
<Ox0dea> -a
krz has joined #ruby
<irctc594> yeah the users objectid
<Ox0dea> This guy.
<sevenseacat> lol
blackmesa has joined #ruby
<sevenseacat> I don't think we're asking a super-hard question here
<Ox0dea> irctc594: You're *certain* you're not inadvertently invoking the #object_id method?
<sevenseacat> what value is currently stored in the variable object_id ?
<Ox0dea> That's PII, after a fashion.
eGGsha has joined #ruby
<sevenseacat> so change some numbers or letters then
<sevenseacat> but for all we know, they're calling the api with their ID from their own database, which is not the right ID
<irctc594> whoever is logged in their user objectid is taken to use, so in this case its 6i9wY1E7pb
tomphp_ has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
<sevenseacat> so thats what you got when you printed out object_id in the console when you made that request or something?
dgutierrez1287 has joined #ruby
<sevenseacat> and you're 1000000% sure that matches a user record in the Parse database?
<adaedra> that's a big number
<irctc594> yes 1000000000% lol
ferhaty has joined #ruby
benlovell has joined #ruby
<irctc594> yeah i have it right now so whoever is logged in, it outputs their objectid. and it matches
f4cl3y__ has quit [Ping timeout: 250 seconds]
<sevenseacat> then you just broke the internet. god job.
<sevenseacat> good even
ferhaty has quit [Client Quit]
pawnbox has joined #ruby
<irctc594> not really helpful lol
dgutierrez1287 has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 256 seconds]
stamina has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
<sevenseacat> well you said Parse isnt broken, and your code is perfect. what else are we supposed to say?
* apeiros just rehashing what the others already said:
benlovell has quit [Ping timeout: 260 seconds]
<apeiros> irctc594: store url & message body in a variable, print that url and the message body, use that variable. to make sure what you print is what you actually use
<apeiros> the most likely reason for the break is your request being faulty. so that's where I'd spend time investigating.
benlovell has joined #ruby
zacstewart has joined #ruby
yeticry has joined #ruby
yh has joined #ruby
Iskarlar has joined #ruby
krzkrz has joined #ruby
<irctc594> i mean i cant find any errors in my request
<apeiros> well, then what sevenseacat said.
i8igmac has joined #ruby
f4cl3y__ has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 272 seconds]
<irctc594> so i just do nothing? haha
<apeiros> no. you figure out where you went wrong with your assertions and/or testing methodology. we do nothing.
frem has quit [Quit: Connection closed for inactivity]
<apeiros> mostly because there's nothing we could do - you didn't give us anything to work with.
Musashi007 has quit [Quit: Musashi007]
bodgix has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
matp has quit [Ping timeout: 256 seconds]
kedare has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 246 seconds]
doertedev has joined #ruby
<irctc594> how can i give u something to work with?
<Ox0dea> irctc594: local_variables.each { |v| puts "#{v}: #{eval v.to_s}" }
buub has joined #ruby
<irctc594> what is that for?
<Ox0dea> All your state are belong to us.
halcyone3 has quit [Ping timeout: 246 seconds]
ELLIOTTCABLE is now known as a_single_keto
platzhirsch has left #ruby [#ruby]
<[k-> i don't want the state, get away!
a_single_keto is now known as ELLIOTTCABLE
pawnbox has joined #ruby
astrobun_ has quit [Remote host closed the connection]
bazbing80 has quit [Ping timeout: 272 seconds]
suchness has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Amval has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
* jhass shouts "away! over here!"
<jhass> mmh, doesn't respond, sorry
Amval has quit [Ping timeout: 246 seconds]
withnale_ has joined #ruby
<adaedra> stop shouting, some people are trying to sleep
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> yeah, like away
<dostoyevsky> will my c extension gems working with ruby1.9 still be able to be installed with ruby2 and later?
<jhass> maybe
<jhass> after all the ABI changed with 2.0, 2.1 and 2.2
relix has joined #ruby
<jhass> but that doesn't mean any part you use changed
<jhass> so there's only try and see left
AlexRussia has quit [Read error: Connection reset by peer]
DexterLB has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
oo_ has joined #ruby
Iskarlar has joined #ruby
<apeiros> yay! thanks ICAO, transliteration tables :D
DaniG2k has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ap4y has quit [Remote host closed the connection]
DexterLB has joined #ruby
krzkrz has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
tubuliferous_ has joined #ruby
Vile` has joined #ruby
sideshowcoder has quit [Remote host closed the connection]
eGGsha has joined #ruby
Iskarlar has quit [Client Quit]
TaxtacalJackl has joined #ruby
irctc594 has quit [Ping timeout: 246 seconds]
sideshowcoder has joined #ruby
spider-mario has joined #ruby
dangerousdave has joined #ruby
TaxtacalJackl has quit [Max SendQ exceeded]
tubuliferous_ has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
<Ox0dea> apeiros: Doesn't seem like the sort of thing you'd have to rely on an organization to provide?
AlxAlt is now known as AlexAltea
HayesHimself has joined #ruby
<Ox0dea> In hindsight, it seems likely that I completely misinterpreted your comment.
Iskarlar has joined #ruby
<[k-> it seems we have seen much reflection on Ox0dea's part today
_blizzy_ has quit [Read error: Connection reset by peer]
tomphp__ has joined #ruby
preller has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
preller has joined #ruby
benlovell has quit [Ping timeout: 245 seconds]
Karpah has joined #ruby
tomphp_ has quit [Ping timeout: 256 seconds]
symm- has joined #ruby
preller has quit [Read error: Connection reset by peer]
<atmosx> dostoyevsky: you have a bad-ass nickname
sevenseacat has quit [Ping timeout: 245 seconds]
terlar has quit [Ping timeout: 260 seconds]
cb__ has joined #ruby
preller has joined #ruby
allcentury has joined #ruby
Kalov has quit []
tomphp__ has quit [Read error: Connection reset by peer]
sideshowcoder has quit [Remote host closed the connection]
tomphp_ has joined #ruby
<Ox0dea> "[The Brothers Karamazov] can teach you everything you need to know about life." -- Kurt Vonnegut, Schlachthof-fünf
zacstewart has joined #ruby
<tobiasvl> aka Slaughterhouse-Five
<tobiasvl> in English
devoldmx has joined #ruby
leafybasil has quit [Remote host closed the connection]
tomphp_ has quit [Max SendQ exceeded]
tomphp_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tenderlove has joined #ruby
sideshowcoder has joined #ruby
apfeluser has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
zacstewart has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
bruno- has joined #ruby
M-mistake has quit [Remote host closed the connection]
MatrixBridge has quit [Remote host closed the connection]
M-prosodyContext has quit [Remote host closed the connection]
oleksandriuzikov has joined #ruby
omegamike has joined #ruby
tomphp_ has quit [Ping timeout: 244 seconds]
russt has quit [Ping timeout: 244 seconds]
jtperreault has quit [Ping timeout: 244 seconds]
mahlon has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
DLSteve has joined #ruby
xsdg has quit [Ping timeout: 244 seconds]
MatrixBridge has joined #ruby
xsdg has joined #ruby
russt has joined #ruby
wlanboy has quit [Ping timeout: 244 seconds]
ElSif has quit [Ping timeout: 244 seconds]
bhorn1|away has quit [Ping timeout: 244 seconds]
TheMoonMaster has quit [Ping timeout: 244 seconds]
Paradox has quit [Ping timeout: 244 seconds]
blueOxigen has quit []
tenderlove has quit [Ping timeout: 255 seconds]
lordkryss has joined #ruby
kp666 has quit [Ping timeout: 244 seconds]
Criten has quit [Ping timeout: 244 seconds]
farn has quit [Ping timeout: 244 seconds]
Schmidt has quit [Ping timeout: 244 seconds]
Takumo has quit [Ping timeout: 244 seconds]
Nowaker has quit [Ping timeout: 244 seconds]
camt has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 256 seconds]
Criten has joined #ruby
pawnbox has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
jbw has quit [Ping timeout: 244 seconds]
Contigi has quit [Ping timeout: 244 seconds]
swills has quit [Ping timeout: 244 seconds]
swills has joined #ruby
pocketprotector has quit [Ping timeout: 244 seconds]
amcoder has quit [Ping timeout: 244 seconds]
shredding has joined #ruby
camt has joined #ruby
zacstewart has joined #ruby
rakm has quit [Ping timeout: 244 seconds]
Takumo has joined #ruby
Takumo has joined #ruby
dualbus has quit [Ping timeout: 244 seconds]
hays has quit [Ping timeout: 244 seconds]
lokulin has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
Nowaker has joined #ruby
sideshowcoder has quit [Remote host closed the connection]
mahlon has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
ged has quit [Ping timeout: 244 seconds]
wlanboy has joined #ruby
sdothum has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Paradox has joined #ruby
sn0wb1rd has quit [Ping timeout: 244 seconds]
jtperreault has joined #ruby
preller has quit [Read error: Connection reset by peer]
klaas has quit [Ping timeout: 244 seconds]
mclee has quit [Ping timeout: 244 seconds]
sn0wb1rd has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
Shibo has joined #ruby
khebbie has joined #ruby
omegamike has quit [Ping timeout: 265 seconds]
<apeiros> Ox0dea: take a look at page 38 (in the pdf it's labeled as page 30, section 6a) in http://www.icao.int/publications/pages/publication.aspx?docnum=9303 (part 3), tell me whether you prefer to have a given table or come up with it yourself :p
Gribo has quit [Ping timeout: 244 seconds]
jxie_ has quit [Ping timeout: 244 seconds]
ukd1 has quit [Ping timeout: 244 seconds]
<apeiros> splitty net?
tomphp_ has joined #ruby
ukd1 has joined #ruby
bmichelsen has joined #ruby
kp666 has joined #ruby
<apeiros> Ox0dea: also, even if you'd come up with it yourself - if you need it for what I need it, you have to follow the standard anyway
ged has joined #ruby
jxie has joined #ruby
camt has quit [Ping timeout: 244 seconds]
bmichelsen has quit [Client Quit]
jbw has joined #ruby
farn has joined #ruby
TheMoonMaster has joined #ruby
tennis_ has joined #ruby
Karpah is now known as sevenseacat
luzidco has quit [Ping timeout: 244 seconds]
tomphp_ has quit [Max SendQ exceeded]
leafybasil has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
WizJin has quit []
luzidco has joined #ruby
klaas has joined #ruby
sts_ has joined #ruby
tomphp_ has joined #ruby
sts_ is now known as Guest70057
ta_ has joined #ruby
shock_one has joined #ruby
gamename has quit [Ping timeout: 244 seconds]
kent\n has quit [Ping timeout: 244 seconds]
Guest82709 has quit [Ping timeout: 244 seconds]
oleksandriuzikov has left #ruby [#ruby]
oleksandriuzikov has joined #ruby
kent\n has joined #ruby
<Ox0dea> It explicitly mentions its source as being that Document 9303.
bronson_ has joined #ruby
lokulin has joined #ruby
rakm has joined #ruby
tomphp_ has quit [Max SendQ exceeded]
yokel_ has joined #ruby
Iskarlar has joined #ruby
bhorn1|away has joined #ruby
ta has quit [Remote host closed the connection]
Contigi777 has joined #ruby
yokel has quit [Remote host closed the connection]
kadoppe_ has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<shock_one> Hi, guys. I'm reading the Sandi Metz' book and she has an interesting approach to testing. The idea is that if a method call to the object you test causes a side effect, but by means of a different object, you shouldn't test the side effect, instead you should test that the second object has received the correct incoming message. What do you think of this and do you use it in everyday life?
<Ox0dea> As an aside, Perl programmers really are strange: q!1 1...2 2! to delimit a multiline string.
tomphp_ has joined #ruby
khebbie has quit [Remote host closed the connection]
<shock_one> Does my sentence even make sense?
oo_ has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 264 seconds]
<Mon_Ouie> >> %q!1 1...1 2!
<ruboto> Mon_Ouie # => "1 1...1 2" (https://eval.in/413640)
phutchins has joined #ruby
malcolmva has quit [Ping timeout: 244 seconds]
<Ox0dea> Testing whether an object receives a given message is extremely common, yes.
Jandre has joined #ruby
Jandre is now known as Guest55542
<Ox0dea> Mon_Ouie: Sure, but have you ever seen something like that in wild Ruby code?
<shock_one> Ox0dea: I understand how to achieve it, but I'm wondering if it's a good idea. By the end of the day I don't care what methods my object calls, I only care if the side effect took place.
dionysus69 has joined #ruby
<Ox0dea> shock_one: You mistook my intent; I meant to show you that it's "the done thing".
hays has joined #ruby
<Mon_Ouie> Maybe not I guess
chthon has quit [Ping timeout: 244 seconds]
sshuff|gone has quit [Ping timeout: 244 seconds]
janno has quit [Quit: Lost terminal]
stan has quit [Ping timeout: 244 seconds]
Guest55542 has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
cb__ has quit []
malcolmva has joined #ruby
hays has quit [Ping timeout: 244 seconds]
yokel_ has quit [Changing host]
yokel_ has joined #ruby
yokel_ is now known as yokel
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
janno has joined #ruby
sshuff|gone has joined #ruby
mistermocha has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
kadoppe_ has quit [*.net *.split]
Contigi777 has quit [*.net *.split]
Hounddog has quit [*.net *.split]
marr has quit [*.net *.split]
qiukun has quit [*.net *.split]
cornerman has quit [*.net *.split]
techsethi has quit [*.net *.split]
DifferentLambda has quit [*.net *.split]
araujo has quit [*.net *.split]
elton has quit [*.net *.split]
perrier has quit [*.net *.split]
joneshf-laptop has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
Kruppe has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
axisys has quit [*.net *.split]
akurilin has quit [*.net *.split]
hectortrope has quit [*.net *.split]
ccooke has quit [*.net *.split]
niko has quit [*.net *.split]
tercenya has quit [*.net *.split]
icedp has quit [*.net *.split]
ghormoon has quit [*.net *.split]
M-Technic has quit [*.net *.split]
Platini has quit [*.net *.split]
jso has quit [*.net *.split]
zenspider has quit [*.net *.split]
lhz has quit [*.net *.split]
gnarf has quit [*.net *.split]
Janusz1 has quit [*.net *.split]
devyn has quit [*.net *.split]
hfp_work has quit [*.net *.split]
slani has quit [*.net *.split]
jhass has quit [*.net *.split]
marsjaninzmarsa has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
freeze has quit [*.net *.split]
lotherk has quit [*.net *.split]
nomadic has quit [*.net *.split]
DefV has quit [*.net *.split]
ejnahc has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
Matadoer has quit [*.net *.split]
drbrain has quit [*.net *.split]
nuck has quit [*.net *.split]
dling has quit [*.net *.split]
theRoUS has quit [*.net *.split]
`derpy has quit [*.net *.split]
Urocyon has quit [*.net *.split]
saaki has quit [*.net *.split]
ltd has quit [*.net *.split]
sindork has quit [*.net *.split]
uxp has quit [*.net *.split]
redondos has quit [*.net *.split]
finges has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
gregf_ has quit [*.net *.split]
lorn has quit [*.net *.split]
low-profile has quit [*.net *.split]
nwhirschfeld has quit [*.net *.split]
demophoon has quit [*.net *.split]
spectra_ has quit [*.net *.split]
pjaspers_ has quit [*.net *.split]
patronus has quit [*.net *.split]
rfi has quit [*.net *.split]
ericwood has quit [*.net *.split]
Roa has quit [*.net *.split]
dogeuira has quit [*.net *.split]
sarid has quit [*.net *.split]
Coraline has quit [*.net *.split]
DmitryM has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
ironcamel has quit [*.net *.split]
jayne has quit [*.net *.split]
adam12 is now known as adam
luckyruby has joined #ruby
adam is now known as Guest63985
tylersmith has joined #ruby
eGGsha has quit [Ping timeout: 240 seconds]
stan has joined #ruby
hays has joined #ruby
<yardenbar> How can I set root user to use ruby 2.0 instead of 1.9.3 ?
j4cknewt has quit [Remote host closed the connection]
bodie_ has quit [Ping timeout: 244 seconds]
oo__ has joined #ruby
kadoppe_ has joined #ruby
Contigi777 has joined #ruby
Hounddog has joined #ruby
Kruppe has joined #ruby
axisys has joined #ruby
marr has joined #ruby
ccooke has joined #ruby
JimmyNeutron has joined #ruby
perrier has joined #ruby
araujo has joined #ruby
hectortrope has joined #ruby
michael_mbp has joined #ruby
low-profile has joined #ruby
rfi has joined #ruby
ghormoon has joined #ruby
uxp has joined #ruby
ejnahc has joined #ruby
lhz has joined #ruby
tommylommykins has joined #ruby
ltd has joined #ruby
mhenrixon has joined #ruby
sindork has joined #ruby
patronus has joined #ruby
Platini has joined #ruby
nuck has joined #ruby
zenspider has joined #ruby
lorn has joined #ruby
drbrain has joined #ruby
ironcamel has joined #ruby
cornerman has joined #ruby
spectra_ has joined #ruby
jso has joined #ruby
icedp has joined #ruby
devyn has joined #ruby
nomadic has joined #ruby
jhass has joined #ruby
qiukun has joined #ruby
gnarf has joined #ruby
Roa has joined #ruby
Urocyon has joined #ruby
Janusz1 has joined #ruby
akurilin has joined #ruby
Coraline has joined #ruby
M-Technic has joined #ruby
niko has joined #ruby
joneshf-laptop has joined #ruby
hfp_work has joined #ruby
DefV has joined #ruby
tercenya has joined #ruby
jayne has joined #ruby
pjaspers_ has joined #ruby
redondos has joined #ruby
marsjaninzmarsa has joined #ruby
sarid has joined #ruby
freeze has joined #ruby
elton has joined #ruby
techsethi has joined #ruby
slani has joined #ruby
dling has joined #ruby
`derpy has joined #ruby
saaki has joined #ruby
gregf_ has joined #ruby
finges has joined #ruby
dogeuira has joined #ruby
DmitryM has joined #ruby
nwhirschfeld has joined #ruby
Matadoer has joined #ruby
demophoon has joined #ruby
theRoUS has joined #ruby
lotherk has joined #ruby
fluchtreflex has joined #ruby
Sp4rKy has joined #ruby
ericwood has joined #ruby
DifferentLambda has joined #ruby
pocketprotector has joined #ruby
axisys has quit [Max SendQ exceeded]
marr has quit [Max SendQ exceeded]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axisys has joined #ruby
krzkrz has quit [Ping timeout: 244 seconds]
dualbus has joined #ruby
bodie_ has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
marr has joined #ruby
krzkrz has joined #ruby
<shock_one> yardenbar: just make sure that the folder with the correct ruby binary comes first in your PATH variable.
<yardenbar> Checking
<apeiros> Ox0dea: so: yay icao :-p
bjeanes has quit [Ping timeout: 244 seconds]
Guest85414______ has quit [Ping timeout: 244 seconds]
<apeiros> but yes, of course, I'll see whether there's a ruby library, or a table for AS' transliteration according to icao.
shredding has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
bjeanes has joined #ruby
sshuff|gone has quit [Read error: Connection refused]
Guest85414______ has joined #ruby
sshuff|gone has joined #ruby
<startupality> how can i reference my application.scss (SASS file) for use with PDFkit? can i make it work with SASS files instead of CSS and can I use my web site's css styles?
lampshades has quit [Remote host closed the connection]
zenspider has quit [Ping timeout: 255 seconds]
moted has quit [Ping timeout: 250 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
drbrain has quit [Ping timeout: 255 seconds]
halcyone3 has joined #ruby
conor_ has quit [Remote host closed the connection]
freeze has quit [Ping timeout: 255 seconds]
zenspider has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
zacts has quit [Ping timeout: 264 seconds]
pocketprotector has quit [Ping timeout: 244 seconds]
jds has quit [Quit: Connection closed for inactivity]
freeze has joined #ruby
rakm has quit [Ping timeout: 250 seconds]
niko has quit [Ping timeout: 624 seconds]
drbrain has joined #ruby
Lildirt has quit [Ping timeout: 260 seconds]
dgutierrez1287 has joined #ruby
jbw has quit [Ping timeout: 252 seconds]
qiukun has quit [Quit: qiukun]
eGGsha has joined #ruby
raz has left #ruby ["*fump*"]
Lildirt has joined #ruby
startupality has quit [Quit: startupality]
wookiehangover has joined #ruby
khebbie has quit [Remote host closed the connection]
rakm has joined #ruby
<apeiros> um, Ox0dea - that lib you linked is a joke
<apeiros> it defines maybe 3% of the transliteration table
lampshades has joined #ruby
zacts has joined #ruby
pocketprotector has joined #ruby
rodfersou has joined #ruby
niko has joined #ruby
renderful has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
conor_ has joined #ruby
jenrzzz has joined #ruby
AlexRussia has joined #ruby
<[k-> buuuuurn
<[k-> side effects are bad! always work with pure code!
dionysus69 has quit [Remote host closed the connection]
<[k-> its not like ruby cant do it or anything
jenrzzz has quit [Ping timeout: 272 seconds]
matp has joined #ruby
rodfersou has quit [Ping timeout: 255 seconds]
platzhirsch has joined #ruby
<yorickpeterse> clearly haskell is the answer
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> I mean
renderfu_ has joined #ruby
<apeiros> must never print, must never persist. it's all sideeffects!
lampshades has quit []
<[k-> clearly that is the way
ndrei has quit [Remote host closed the connection]
<[k-> it's all meaningless when you factor in the entire universe
rikkipitt has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
jbw has joined #ruby
chills42 has joined #ruby
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby
preller has quit [Read error: Connection reset by peer]
omegamike has joined #ruby
blackmes1 has joined #ruby
niiamon has quit []
j4cknewt has joined #ruby
bazbing80 has joined #ruby
dionysus69 has joined #ruby
terlar has joined #ruby
<[k-> however, we need money
<[k-> haskell lets us do side effects too
greenarrow has quit [Quit: 500]
blackmesa has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
fgo has joined #ruby
chills42 has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
omegamike has quit [Ping timeout: 252 seconds]
<yorickpeterse> and it doesn't give us money
chills42 has joined #ruby
<yorickpeterse> :>
jonee has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 260 seconds]
<shevy> what a useless language
greenarrow has joined #ruby
jbw has quit [Ping timeout: 255 seconds]
<[k-> more useful than you!
<[k-> ooooooo buuuuuuurn
<tuor> hi, i need to do a tree traversal but not binary, it can have more then 2 child.
yeticry has joined #ruby
ta has joined #ruby
<tuor> I'm looking for an example to see how I can do it.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> sounds like homework :P
<tuor> jhass, no work.
riotjone_ has quit [Remote host closed the connection]
HayesHimself has quit [Quit: Textual IRC Client: www.textualapp.com]
<tuor> ^^. I mean I can do it, but I think it will be to comlicated and long if I try it just my self.. (and it takes much time).
<jhass> the recursive approach is generally more elegant, but given no practical tail call optimization it easily overflows the stack in Ruby
but3k4 has joined #ruby
<jhass> best is you come up with your own approach and post it here
<jhass> and ask for alternatives/tips/improvements
<[k-> so you want us to do the work for you?!
jbw has joined #ruby
<[k-> u need a better excuse!
yeticry has quit [Ping timeout: 246 seconds]
dgutierrez1287 has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
<tuor> [k-, no, I searched for examples in the inter but only found ones for binary trees. I'm just looking for an example how to do it. I'm not asking how to do it in my code. I think maybe someone knows one.
scroff has joined #ruby
yeticry has joined #ruby
tubuliferous_ has joined #ruby
qiukun has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
<[k-> adapt the binary trees then
<jhass> tuor: I mean it, show your own approach, that will make it easier for us to suggest something appropriate but more importantly improve your own learning experience tremendously if you really thought through your problem on your own first
<[k-> [19:30:19] <tuor> ^^. I mean I can do it, but I think it will be to comlicated and long if I try it just my self.. (and it takes much time).
<[k-> --- sounds very much like an excuse
benlovell has quit [Ping timeout: 252 seconds]
jackjackdripper has quit [Quit: Leaving.]
<apeiros> tuor: start by traversing the first level of children
<apeiros> when you've written that, show us the tree you traverse and the code you use
<tuor> apeiros, ok.
<maloik> Is anyone aware of any challenges/games much like http://honeypot.softwareskills.se/ ?
<apeiros> the tree should contain more than one level of children, though. it's just that for the start you only traverse one level.
<maloik> I'd love to try and program some of those game loop things, but the languages they have their aren't exactly my strong suits
govg has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
HoloIRCUser1 has joined #ruby
serivich has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
<tuor> apeiros, i have a try but didn't tested it for now. This is how I would do it. Just not ready to test it because not all code around (other methods) is done: https://gist.github.com/anonymous/1d05f61d961781cc74a0
edwinvdgraaf has joined #ruby
<apeiros> tuor: I don't see a tree
HoloIRCUser1 has quit [Remote host closed the connection]
ledestin has joined #ruby
<tuor> a template has multiple dependencies, each of them has dependencies again and so on.
<apeiros> tuor: also if you're not sure how to traverse a tree yet, then leave away all code which is unrelated to traversing itself. solve traversal in isolation.
jbw has quit [Ping timeout: 260 seconds]
<apeiros> tuor: I know what a tree is. I don't ask for an abstract. I want *your* *specific* tree
<jhass> ... in your specific datastructure
<[k-> but wouldn't that increase coupling
edwinvdg_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
s83941 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
Iskarlar has joined #ruby
<tuor> with comments what it should do: https://gist.github.com/anonymous/f12d082598eb9ccc8678
allcentury has quit [Ping timeout: 252 seconds]
<[k-> the singular form of dependencies is dependency
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> tuor: is there a specific order you need to process the nodes in?
<canton7> and the plural of child is children
<shevy> is kids!!!
<tuor> connor_goodwolf, ^^ sry
<tuor> oh man sry again. I ment canton7.
eL_bAmba has joined #ruby
<canton7> :P
<yorickpeterse> That processes nodes in order
<shevy> I am sure connor_goodwolf needs some love as well
<yorickpeterse> (in order of their appearance)
<apeiros> yorickpeterse: in order? why not pre order? or post order? :D
<apeiros> or even breadth-first?
scripore has joined #ruby
<yorickpeterse> apeiros: read docs
<yorickpeterse> it's bread-first + depth-first
<yorickpeterse> errr
<yorickpeterse> breadth
<yorickpeterse> heh, bread first
<apeiros> yorickpeterse: uh, you should look up tree traversal terminology :-p
<canton7> that's how my day starts
<yorickpeterse> apeiros: I'm familiar with pre/post order
<yorickpeterse> canton7: I'm more a fan of cereal-first order
* canton7 wonders whether there's a pun in first-order cereal
mistermocha has quit [Ping timeout: 256 seconds]
conor_ has quit [Remote host closed the connection]
<Mon_Ouie> Wouldn't that be more efficient with #pop and #<< instead of #shift and #unshift which would both be O(n)?
rideh has joined #ruby
<[k-> it's the other way round in Haskell
jewel_ has joined #ruby
<[k-> the more you know!
<yorickpeterse> Mon_Ouie: IIRC then the order is no longer correct
<Mon_Ouie> For linked lists, not for arrays
tenderlove has joined #ruby
rikkipitt has quit [Remote host closed the connection]
jewel_ has left #ruby ["Leaving"]
<[k-> yeah? it is faster to remove the head or add the head
<[k-> not the back
conor_ has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
<yorickpeterse> Mon_Ouie: Ah yes, if you use #<< and #pop the order goes bonkers
<yorickpeterse> I actually remember trying something like that initially
doertedev has quit [Quit: Lost terminal]
<Mon_Ouie> You're prepending elements and removing the first element. If you just swap the places where you reverse the array and instead append elements and remove them from the end, it should be strictly equivalent
dimasg has joined #ruby
<[k-> this is a LIFO right!
conor_ has quit [Remote host closed the connection]
voxxit has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<yorickpeterse> Mon_Ouie: computer says no
<jhass> [k-: for linked lists it is (given singly linked, no tail pointer), for arrays it's slower since it needs to shift all later elements in memory
<yorickpeterse> Mon_Ouie: oh hm, seems it does do it in order when the initial array is in reverse _and_ the iteration is in reverse
eGGsha has joined #ruby
<yorickpeterse> but I honestly doubt it would make much of a difference, Array#unshift isn't that bad performance wise
<[k-> yeah i know that, i read about it in algorasaurous
<[k-> i think thats how you spell it
<[k-> i hope
blackmes1 has joined #ruby
tenderlove has quit [Ping timeout: 245 seconds]
rajatt has joined #ruby
Yiota has joined #ruby
<yorickpeterse> Mon_Ouie: Yeah, there's pretty much no performance difference
<yorickpeterse> nevertheless shift/unshift shouldn't be needed so I'll get rid of that
jbw has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
conor_ has joined #ruby
krzkrz has joined #ruby
rajatt has quit [Quit: Page closed]
conor_ has quit [Remote host closed the connection]
conor_ has joined #ruby
<jhass> yorickpeterse: if you still have the benchmark open I'd be curios if visit.concat current.children.to_a.reverse would be faster or slower. Given that most arrays there should be relatively small I'd expect the allocation to be more expensive than the additional method calls, but still
<shevy> concat!
<shevy> a cat!
devoldmx has quit [Ping timeout: 260 seconds]
oo__ has quit [Remote host closed the connection]
[k-_ has joined #ruby
bronson_ has quit [Ping timeout: 246 seconds]
conor_ has quit [Remote host closed the connection]
nveselinov has joined #ruby
conor_ has joined #ruby
sideshowcoder has joined #ruby
oo_ has joined #ruby
<yorickpeterse> jhass: why would #concat be faster than #<< ?
oo_ has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 246 seconds]
conor_ has quit [Remote host closed the connection]
<jhass> because it can expand the array to the target size and because you have less method calls / transitions between Ruby / C land
s83941 has quit [Ping timeout: 240 seconds]
<yorickpeterse> Well, #<< doesn't re-allocate on every call IIRC
<yorickpeterse> it only re-allocates when needed and last I checked re-allocates in chunks
safeforge has quit [Remote host closed the connection]
<connor_goodwolf> tuor: lazy tabber!!! *polishes his big teeth*
<jhass> yeah it does, but that's a heuristic while with concat you can guarantee it
vt102 has joined #ruby
Schmidt has joined #ruby
<jhass> idk whether MRI does it but in theory concat could also do a single memcopy
<tuor> sry.
j4cknewt has quit [Remote host closed the connection]
<Mon_Ouie> If you need to insert 1000 elements in an array whose capacity was initially 16 it will have to increase the buffer's size several times. #concat should only need to do it once.
shredding has joined #ruby
omegamike has joined #ruby
doertedev has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
<yorickpeterse> Computer says no
<yorickpeterse> it's actually a tad slower
ldnunes has joined #ruby
<yorickpeterse> as in, using reverse_each it runs at 3258 iterations/sec
<yorickpeterse> using visit.concat(current.children.to_a.reverse) it runs at 3033 iterations/sec
<jhass> as said there's an expected transition point, you probably bench with small arrays
<yorickpeterse> No, it's 10 MB of XML with in total....
<jhass> and thus the .reverse becomes more expensive
<jhass> how many levels?
Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> 420241 nodes to traverse
<jhass> how many nodes per level on average?
arup_r has quit [Remote host closed the connection]
safeforge has joined #ruby
mclee has joined #ruby
<yorickpeterse> Varies widely, no idea what the average is
kp666 has quit [Remote host closed the connection]
<jhass> mmh, then the reverse is just too expensive I guess
jbw has joined #ruby
sgambino has joined #ruby
sgambino has quit [Client Quit]
arup_r has joined #ruby
sgambino has joined #ruby
<Mon_Ouie> https://gist.github.com/230ec3c8d4ff6486a0e6 try with different tree width/depth
<shevy> flughafen ... I just read that Imtech has went bankrupt, I am sorry that you won't take off anytime soon :(
<Mon_Ouie> oops
flegerCovateam1 has joined #ruby
<yorickpeterse> Mon_Ouie: please don't use Benchmark for benchmarks
flegerCovateam1 has left #ruby [#ruby]
<yorickpeterse> Even with bmbm it's pointless
<yorickpeterse> also that looks like massive overengineering for something as simple as iterating a tree
SOLDIERz has joined #ruby
<yorickpeterse> Especially since the nodes are already there: they're XML nodes
<Mon_Ouie> It's fun.
<jhass> the thing about each_node3 is that it can blow up the stack
Philipp__ has quit [Read error: Connection reset by peer]
<Mon_Ouie> Also what's wrong with Benchmark?
riotjones has joined #ruby
camt has joined #ruby
<yorickpeterse> Mon_Ouie: it performs exactly 2 iterations when using bmbm
<yorickpeterse> whereas benchmark-ips takes care of warming things up and automatically calculating a decent number of iterations
<yorickpeterse> This can make _huge_ differences when benchmarking Rubies using a JIT
<yorickpeterse> or something that caches data
<yorickpeterse> The common pattern you see is Benchmark.bmbm { |b| b.report { 1000.times { .... } } }` but that's just as broken
<yorickpeterse> Here the number of iterations is fixed and usually picked for no particular reason other than "oh, 10 000 should be enough"
<yorickpeterse> But if your algorithm runs in 0.0000001 seconds you probably won't get very useful numbers when only running 10 000 iterations
bruno- has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
riotjones has quit [Ping timeout: 246 seconds]
techsethi has quit [Quit: techsethi]
michael_mbp has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
zacstewart has quit []
jwaldrip has joined #ruby
auzty has quit [Read error: Connection reset by peer]
yqt has joined #ruby
jbw has quit [Ping timeout: 265 seconds]
benlovell has joined #ruby
ndrei has joined #ruby
<yorickpeterse> Yeah
<yorickpeterse> Though each_node3 will smash the stack pretty quickly
DaniG2k has quit [Ping timeout: 250 seconds]
jwaldrip has quit [Ping timeout: 246 seconds]
<yorickpeterse> e.g. the default stack size for me is 8192, that's a limit that you'll hit really quickly
stamina has quit [Quit: WeeChat 1.2]
RegulationD has joined #ruby
<Mon_Ouie> Yup, can deal with trees that are ~1500 levels deep here
Feyn has quit [Quit: Leaving]
tmtwd has joined #ruby
ascarter has joined #ruby
i8igmac has quit [Ping timeout: 252 seconds]
victortyau has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
jbw has joined #ruby
<[k-_> so many string instantiations
<[k-_> looks painful
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* tuor uses vim and is happy with it
<tuor> ;)
<tuor> first I wanted to do one more level.
htmldrum has joined #ruby
Iskarlar has joined #ruby
s00pcan has joined #ruby
danzilio has joined #ruby
htmldrum has quit [Read error: Connection reset by peer]
blackmes1 has quit [Ping timeout: 244 seconds]
DaniG2k has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 260 seconds]
allcentury has quit [Quit: WeeChat 1.2]
NeverDie has joined #ruby
ndrei has joined #ruby
<tuor> This does what I want. So are there better ways?
El3k0n has joined #ruby
eL_bAmba has quit [Remote host closed the connection]
nhhagen has quit []
safeforge has quit [Remote host closed the connection]
Zai00 has joined #ruby
Guest50 has joined #ruby
<[k-_> not initializing so many strings?
atomical has joined #ruby
<[k-_> using a λ?
<[k-_> using a λ*
<[k-_> ugh
<[k-_> stupid macro
<canton7> "lambda"
<[k-_> yes, thank you!
<canton7> :)
Hounddog has quit [Remote host closed the connection]
blackmes1 has joined #ruby
dblessing has joined #ruby
sarkyniin has joined #ruby
hinbody has joined #ruby
bmurt has joined #ruby
<[k-_> >> a, b, c = {}
<ruboto> [k-_ # => {} (https://eval.in/413754)
<[k-_> >> a, b, c = {}; [a, b, c]
<ruboto> [k-_ # => [{}, nil, nil] (https://eval.in/413755)
<[k-_> hm
bmurt has quit [Client Quit]
baroquebobcat has joined #ruby
dblessing has quit [Ping timeout: 260 seconds]
hj2007 has joined #ruby
freerobby has joined #ruby
hj2007 has quit [Client Quit]
<[k-_> algosaurus actually uses an array to represent a binary tree
hinbody has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
charliesome has joined #ruby
devoldmx has joined #ruby
charliesome has quit [Client Quit]
lannonbr has joined #ruby
scroff has quit []
rippa has joined #ruby
bronson has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
scroff has joined #ruby
lele|w has joined #ruby
sevenseacat has quit [Quit: .]
JoshL has joined #ruby
conor_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
willywos has joined #ruby
<tuor> this is now in my code. I don't have a "prebuild" tree, the tree is "build" while traversing. The tree exist, but not as object in ruby only logical. https://gist.github.com/anonymous/aa0222b37d6ea8d76daf
hinbody has joined #ruby
lele|w has quit [Remote host closed the connection]
<tuor> [k-_, ^^ o man. yeas this would have save some time^^
DaniG2k has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
juanpaucar has joined #ruby
thisirs has joined #ruby
freerobby1 has joined #ruby
<[k-_> tuor: you already used the unless modifier in line 10, why not for line 8 too?
dgutierrez1287 has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
hinbody has quit [Read error: Connection reset by peer]
<jhass> tuor: .each on an empty array shouldn't be more expensive than comparing it to an empty array or even calling .empty?, just get rid of that silly unless there
freerobby1 has quit [Client Quit]
<tuor> ok.
<tuor> -> jhass
<tuor> [k-_, the line would be longer the 80 letters...
<jhass> tuor: so, that's the elegant recursive solution, but not it'll blow up if your tree depth exceeds your stack size
<jhass> *note
<tuor> jhass, the tree depth should normaly be max at 3 level or very max 5
<[k-_> use a λ!
<jhass> then it's fine
<[k-_> ugh the macro striked again!
<jhass> [k-_: what for?
<[k-_> recursive!
<jhass> [k-_: stop blabbering nonesense
blackmes1 has joined #ruby
<yorickpeterse> They did too much Haskell
<tuor> [k-_, I don't get what you say. Can you tell me what I have to search online for understanding what you write?
<yorickpeterse> They've gone mad
dorei has joined #ruby
<[k-_> dont lambdas not produce so much stack
danzilio_ has joined #ruby
<jhass> tuor: I'd move the already imported check into import_template
danzilio has quit [Quit: Baiii!]
danzilio_ is now known as danzilio
jbw has quit [Ping timeout: 255 seconds]
<tuor> jhass, ah nice idea! thx
lele|w has joined #ruby
<adaedra> [k-_: lambda
jbw has joined #ruby
<jhass> or as return if to the start, you probably don't need to bother checking deps if you already imported
whippythellama has joined #ruby
<jhass> [k-_: no, Proc#call is a normal method call
tubuliferous_ has joined #ruby
<jhass> no TCO at all in a normal MRI build
<tuor> jhass, yes. Then i does a litle less disk IO. But I don't realy know which would be faster. Both is ok.
<Mon_Ouie> And those recursive calls aren't tail calls anyway
<tuor> To have it in import_template is nice.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-_> i used to think that if checks were expensive
<[k-_> and rescuing was not
<[k-_> ¯\_(ツ)_/¯
ndrei has quit [Quit: Lost terminal]
sdrew has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<tuor> [k-_, no checks aren't but when there is code which is not need, then why not remove it.
havenwood has joined #ruby
<[k-_> tuor: i said i used to think ;p
<tuor> ^^ :)
relix has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmes1 has quit [Ping timeout: 244 seconds]
aganov has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 260 seconds]
pico-pete has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
relix has quit [Client Quit]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
malconis has joined #ruby
Rickmasta has joined #ruby
skade has quit [Ping timeout: 265 seconds]
relix has joined #ruby
casadei_ has joined #ruby
shock_one has joined #ruby
ElSif has joined #ruby
jerius has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
relix has quit [Client Quit]
devdazed has joined #ruby
DaniG2k has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
codecop has quit [Remote host closed the connection]
hectortrope has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
sarkyniin has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
scripore has quit [Quit: This computer has gone to sleep]
benlovel1 has joined #ruby
_blizzy_ has joined #ruby
Zai00 has joined #ruby
JoshL has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
jerius has quit [Quit: /quit]
dopamean_ has quit [Ping timeout: 252 seconds]
jerius has joined #ruby
jerius has quit [Client Quit]
jerius has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hinbody_ has joined #ruby
hinbody_ has quit [Client Quit]
centrx has joined #ruby
hinbody_ has joined #ruby
hinbody_ is now known as hinbody
platzhirsch has left #ruby [#ruby]
doertedev has quit [Quit: Lost terminal]
jeremy04 has joined #ruby
jeremy04 has quit [Remote host closed the connection]
scripore has joined #ruby
jeremy04 has joined #ruby
tenderlove has joined #ruby
definiv has joined #ruby
govg has quit [Read error: Connection reset by peer]
scripore has quit [Client Quit]
DaniG2k has quit [Quit: leaving]
chills42 has quit [Remote host closed the connection]
Zai00 has quit [Ping timeout: 260 seconds]
TomyWork has quit [Remote host closed the connection]
nalley has joined #ruby
definiv has quit [Remote host closed the connection]
zombiema has quit [Quit: Connection closed for inactivity]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
tenderlove has quit [Ping timeout: 265 seconds]
<j416> what's a good up-to-date place to learn how to properly create a gem?
shock_one has quit [Remote host closed the connection]
chills42 has joined #ruby
<apeiros> j416: guides.rubygems.org
<j416> thanks
<apeiros> all you really need is a .gemspec. following the conventions with regards to directory structure is a good idea, though :)
ascarter has joined #ruby
mistermocha has joined #ruby
<havenwood> here's a Gist that's a gem: https://gist.github.com/havenwood/2f58ca4bbbb8c5720dc6
<havenwood> itsy bitsy gem
definiv_ has joined #ruby
<havenwood> could be smaller i guess
paulcsmith___ has joined #ruby
<apeiros> isn't it a bit dirty to have the gem's code in the gemspec? o0
<havenwood> but yeah, of course follow gem structure!
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Iskarlar has joined #ruby
blackmes1 has joined #ruby
<havenwood> apeiros: way dirty! guess I could use a gist with multiple files. :)
<apeiros> how do you actually require that?
<havenwood> apeiros: just wanted to show it can be done
<havenwood> apeiros: i was just pondering that, hah
<apeiros> by activating the gem via Kernel#gem?
<havenwood> apeiros: ah, check the comment
<apeiros> the comment only concerns itself with installation, no?
<havenwood> apeiros: you can install it straight from the gist with RubyGems' new gemdeps stuff
<havenwood> apeiros: ah, you require like any other gem
<havenwood> once installed
<apeiros> you require a gem by requiring a file from its lib dir
<apeiros> this gem doesn't have a file
<havenwood> oh yeah, good point
<apeiros> require 'gemname' only works if you actually have lib/gemname.rb in your gem :)
<havenwood> i haven't extensively used this gem :P
<havenwood> i guess a gist can't have a lib folder
<apeiros> unless of course I'm mistaken and rubygems falls back…
<havenwood> apeiros: no, i think you're right
<yorickpeterse> maybe one day we no longer have RubyGems loading all Gemspecs in memory and keeping them there
<yorickpeterse> but one can only hope
<jhass> havenwood: no longer, there was a time where it was possible (never through web ui though)
rodfersou has quit [Quit: leaving]
<jhass> but now github actually rejects pushes
<havenwood> jhass: mmm
<yorickpeterse> $ pry
<yorickpeterse> > ObjectSpace.each_object(Gem::Specification).count
<yorickpeterse> 805
<yorickpeterse> :<
<havenwood> apeiros: i guess i should make it an executable ping
nateberkopec has joined #ruby
<yorickpeterse> Though there are only 6 for a vanilla ruby -e
definiv_ has quit [Quit: Out]
raypulver has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 264 seconds]
<havenwood> since it can point at itself for executables=
<mikecmpbll> could you add gem.require_paths = ['.'] ?
<mikecmpbll> never known exactly what require_paths does :p
<havenwood> mikecmpbll: yeah, i guess that instead of the normal `require_paths = ["lib"]` would make sense
<mikecmpbll> bundle gem bootstrapping ftw
benlovel1 has quit [Quit: leaving]
dopamean_ has joined #ruby
definiv_ has joined #ruby
jeremy04 has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 244 seconds]
jeremy04 has joined #ruby
Coldblackice has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
definiv_ has quit [Client Quit]
axl__ has joined #ruby
<mikecmpbll> speaking of rubygems and such. are there still plans for a bundler/rubygems unification?
<mikecmpbll> pretty sure i read that once, unless it was one of those crazy dreams i have.
chouhoulis has joined #ruby
<mikecmpbll> after a few cloudy ciders.
<apeiros> mikecmpbll: afaik a lot of functionality of bundler has been rolled into rubygems already
<apeiros> e.g. it can handle gemfiles
chills42 has quit [Remote host closed the connection]
<apeiros> and .lock files
<apeiros> and afaik they'll use the same dependency resolver (any time soon™)
<workmad3> apeiros: ah, it can handle lock files now too... fun... I think rubygems still resolves Gemfiles differently to bundler tho... yeah
<mikecmpbll> apeiros: really! hmpf. nice.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 250 seconds]
<workmad3> apeiros: can rubygems handle things like git: and path: options in Gemfile syntax?
<apeiros> workmad3: no idea
<apeiros> I didn't have a chance to get up to speed what gem can do
<apeiros> or how it does it
mattwildig has joined #ruby
<workmad3> tbh, that's the sort of thing I wouldn't expect to be rolled into rubygems, as that's really part of app provisioning rather than package/dependency management
<apeiros> well, you can view it as just sources for your repositories
<workmad3> it would be nice if that separation between bundler & rubygems became shaper though... shift the hardcore dependency management out into rubygems, keep the provisioning in bundler
<apeiros> similarly how it can handle mirrors
loincloth has joined #ruby
<workmad3> *sharper
<workmad3> apeiros: sure, but there's then still the issue of how to pick which repo to grab from, which is the provisioning aspect ;)
abcd1234 has quit [Read error: Connection reset by peer]
<apeiros> not sure I follow
<apeiros> hm, no. I'm sure I don't follow. there :D
conor_ has quit [Remote host closed the connection]
shock_one has joined #ruby
rodfersou has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> apeiros: ok... so how would you expect something like "Grab this gem from my local gemfury fork, this one from github, and this one from rubygems, and ignore the copies that have the same 'version' in the other repos you see" in rubygems?
<workmad3> apeiros: that's the provisioning aspect (where exactly do I get stuff from) as opposed to the dependency aspect (what do I need)
abcd1234 has joined #ruby
<workmad3> apeiros: systems that try to do both well tend to end up sucking (maven, earlier versions of bundler, etc.)
chouhoulis has quit [Remote host closed the connection]
<apeiros> I'm not really sure I see a reasonable distinction there
<apeiros> something which wants to resolve dependencies must need to know where to find those dependencies in order to traverse the full tree.
chouhoulis has joined #ruby
govg has joined #ruby
<workmad3> apeiros: sure... but it's really about saying "I know this thing can be gotten from X, Y and Z" and a dependency manager doesn't really care which... provisioning is about saying "Ignore X and Y for this package, I need to get it from Z"
abcd1234 has quit [Read error: Connection reset by peer]
saddad has joined #ruby
<workmad3> apeiros: and then delegating to the dependency manager to resolve the dependencies of that package
<mikecmpbll> just give me what i want
Oka has joined #ruby
decoponio has joined #ruby
abcd1234 has joined #ruby
<havenwood> mikecmpbll: `gem install --file ./Gemfile` or shorthand `gem i -g` to create a Gemfile.lock
<workmad3> apeiros: the distinction is much less distinct in ruby than with maven tbh... with the java setup, you can (and frequently need to) say shit like "Make this package available during compilation, make this package available during testing, include this package in a jar, but exclude these dependencies from the jar because they'll be provided by the servlet"
govg has quit [Client Quit]
Guest50 has joined #ruby
<havenwood> mikecmpbll: To activate Gemset gems set: RUBYGEM_GEMDEPS="-"
<tuor> when I call importe_templates i get the error: "undefined method `inlcude?' for []:Array" https://gist.github.com/anonymous/38d02db914db7a8ce916
<mikecmpbll> havenwood: tight.
<tuor> why? Man I don't get git :(
shock_one has quit [Remote host closed the connection]
rbennacer has joined #ruby
<[k-_> tuor: you spelt include? wrong
<mikecmpbll> eej
thiagovsk has joined #ruby
<tuor> [k-_, ah thx!!!
<tuor> was searching for >15min
<mikecmpbll> that's at least 22.5 seconds per character of the error message, you should've spotted it really :p
<[k-_> tuor: more sleep for you
<havenwood> mikecmpbll: Oops, typo, it's: RUBYGEMS_GEMDEPS
<mikecmpbll> havenwood: ah okay.
<havenwood> mikecmpbll: You can alternatively point it at the full path of the Gemfile
<havenwood> the - just has it detect Gemfile in current dir back to root
kfpratt has joined #ruby
<tuor> [k-_, I'm coding for 8.5 hours nonstop now... I have to eat something^^
<havenwood> works well :D
<mikecmpbll> cool :)
<havenwood> except for Rails which needs to stop hardcoding to Bundler
blackmes1 has quit [Ping timeout: 245 seconds]
<havenwood> easy enough to fix
<mikecmpbll> havenwood: i doubt it will do that any time soon as from our discussion it seems there's still distinct differences :)
kfpratt has quit [Remote host closed the connection]
freerobby has joined #ruby
tenderlove has joined #ruby
dopie has joined #ruby
<havenwood> mikecmpbll: aye, it's be a rails 5 thing if it make it
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> it'd*
<havenwood> can't type this morning
<mikecmpbll> probably beyond that even
<havenwood> mikecmpbll: is rails 5 coming anytime soon?
psy_ has quit [Read error: No route to host]
<mikecmpbll> was originally stated to be later this year, i don't think they're totally off track, so.
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> nice
psy_ has joined #ruby
JoshL has joined #ruby
loincloth has quit []
ishahnaz has quit []
xelim has joined #ruby
<havenwood> Maybe Rails 5 and Ruby 2.3 for Christmas this year. ;D
lapide_viridi has joined #ruby
shock_one has joined #ruby
<dudedudeman> happy friday, rubyists!
<dudedudeman> may all of your ruby dreams come true
ThaDick has joined #ruby
kies^ has joined #ruby
chills42 has joined #ruby
tvw has joined #ruby
ribbons has joined #ruby
Coldblackice has joined #ruby
luzidco has quit [Ping timeout: 245 seconds]
<adaedra> I'm doing PHP right now, is the offer still good, dudedudeman?
Edward__ has quit [Ping timeout: 252 seconds]
<dudedudeman> totally
blue_deref has joined #ruby
Iskarlar has joined #ruby
<adaedra> cool
fullofcaffeine has joined #ruby
scottschecter has joined #ruby
<dudedudeman> I need to dig in to some php
luzidco has joined #ruby
<dudedudeman> everyone tells me i should hate it, but i'm a firm believer in not hating something until i've tried it
<[k-_> just hate it already
<adaedra> I have php.net open more often that any other tab, including mailbox.
<adaedra> Is it enough for you, dudedudeman?
<Darkwater> try devdocs.io
<dudedudeman> adaedra: never neough
<adaedra> Darkwater: it's moving the problem, won't change it.
rbennacer has quit [Remote host closed the connection]
tennis_ has quit [Remote host closed the connection]
charliesome has joined #ruby
<Darkwater> adaedra: just a general tip for everyone though
<adaedra> And I need to read php.net comments to go quicker into depression.
<Darkwater> has ruby docs as well
<Darkwater> hm, it is true that those help
<adaedra> :)
devoldmx has joined #ruby
<Darkwater> anyway dudedudeman learning php is time wasted
rbennacer has joined #ruby
<Darkwater> unless you want to become a corporate code typer with job security for a couple of years
aredridel is now known as Aria
<adaedra> ugh
SOLDIERz has quit [Ping timeout: 252 seconds]
mattwildig has quit []
<dudedudeman> eh
<dudedudeman> i don't have too much need to learn it at the moment
<dudedudeman> the new job is dev ops, and they do ruby
<dudedudeman> but, i at least don't like being unaware
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Meow-J has joined #ruby
CorySimmons has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
pauly_oc has joined #ruby
conor_ has joined #ruby
umgrosscol has joined #ruby
<adaedra> <?php crap();
deepu has joined #ruby
<centrx> adaedra, That's the default functionality, doesn't need to be called
<adaedra> :D
banister has joined #ruby
einarj has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
railswebdev has joined #ruby
einarj has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
slawrence00 has joined #ruby
jenrzzz has joined #ruby
flegercovateam has joined #ruby
<j416> how would I mock a class Foo::Bar to that I could say allow(Foo::Bar).to .. ?
<j416> (rspec)
Iskarlar has joined #ruby
<j416> Foo::Bar is not defined.
<yorickpeterse> Then you can't mock it
<yorickpeterse> How do you mock something that doesn't exist?
<j416> that's what I'm asking
<yorickpeterse> You have to define Foo::Bar first
<j416> I want it to only be available when running the test
<yorickpeterse> Then you define it in the test
<yorickpeterse> Either way you have to define it somewhere
<j416> then it will be available to other tests
<j416> hm
<[spoiler]> He can mock the lack of its existance "haaa haaa you don't exist, loooooser!"
<yorickpeterse> Then you undefine it after you've used it
<j416> ok.
<j416> was hoping rspec would provide some shorthand for that
<yorickpeterse> If you don't care about names you can use anonymous classes
<yorickpeterse> some_class = Class.new { ... }
<j416> I need a specific name
jenrzzz has quit [Ping timeout: 250 seconds]
<j416> the code I am testing refers to Foo::Bar exactly
<[k-_> this is silly
<j416> but I don't want to require the gem that it is in
mistermocha has joined #ruby
<adaedra> [spoiler]: hahaha
<[k-_> just define the class!
bruno- has joined #ruby
<j416> [k-_: will do, thanks
<[spoiler]> j416: eh. Why not, though? Wouldn't you want to test the functionality of the gem, though?
hectorsq has joined #ruby
martinium has joined #ruby
<[spoiler]> Damn 2 `though's in one line. That's though use of though, though.
pyrotecnix has quit [Quit: WeeChat 0.4.2]
msnyon has joined #ruby
<dopie> why do people use STDOUT.flush ?
<dopie> What is the purpose of the 'STDOUT.flush'
<[k-_> That's thorough* use (...)
charliesome has quit [Quit: zzz]
<[spoiler]> Oh I just realised #ruby-lang forwards here. When did this happen? :O
<[k-_> since an eon ago
<[k-_> (actually 2 months)
<[spoiler]> dopie: when you want to flush stdout, since it might be buffered
tkuchiki has quit [Read error: Connection reset by peer]
<dopie> [spoiler], ok can you explain with an example?
<[k-_> &ri IO#flush
tkuchiki has joined #ruby
<[k-_> ^ this
charliesome has joined #ruby
<dopie> doesn't $stdout.print "no newline"
<dopie> print it already?
mistermocha has quit [Ping timeout: 260 seconds]
<[spoiler]> No
<[spoiler]> it might be queued in a buffer and wait to be printed until the OS decides to do so
blue_deref has quit [Quit: bbn]
<[spoiler]> if you do print "a"; "print "b" you might get just 1 print instead of 2 prints (which is a good thing since printing has some overhead)
<dopie> is it really necessary to use that?
<[spoiler]> depends on how fast you want to send the data
<kallisti5> anyone have time to review this pull request? https://github.com/ruby/ruby/pull/984 it's pretty basic
malcolmva has quit [Ping timeout: 244 seconds]
<[spoiler]> dopie: if you want "a" available as soon as possible, then you'd print "a" and flush, then print "b"
<[spoiler]> if it's not that important (which it shouldn't be in most cases), then there's no need to flush
<dopie> [spoiler], ok thank you I get it now just ran into it reading the ruby way 3rd edition and was like what is .flush !
_joes__ has joined #ruby
<[spoiler]> Although, sometimes[citation needed] the OS might be unreasonable with how it caches the output, so some people add a flush for good measure
<dopie> [k-_, [spoiler] thank you for explaining that
sepp2k has joined #ruby
nalley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
luckyruby has quit [Quit: Leaving...]
<[spoiler]> I find it somewhat ironic my IRC client can't autocomplete names with [ when my own nick contains it, lol
tubuliferous_ has joined #ruby
<dopie> [spoiler], which client is that?
<[spoiler]> Well, the CLI version of WeeChat does it fine (I think) I am using GlowingBear as a frontend for it though
ponga has quit [Quit: Connection closed for inactivity]
<ashleyhindle> Harry Potter _IS_ ginny weasley
<[spoiler]> ashleyhindle: wat
<bradland> [spoiler]: irssi manages it fine
<[spoiler]> works fine in cli version
<[spoiler]> I just tested it
<dopie> in a expression like this
snockerton has joined #ruby
bffff_ has joined #ruby
<dopie> if foo !~ /-?\d+/ basically reads if foo does not match /-?\d+/ than do something .... what is the ~ after the !
<dopie> do?
<bradland> dopie: it's part of the operator
<bradland> !~ is the operator
tubuliferous_ has quit [Ping timeout: 246 seconds]
dr3w has joined #ruby
<dopie> ahhh ok
charliesome has quit [Quit: zzz]
<dopie> so just ! wouldn't do antying
<dopie> anything
<mikecmpbll> dopie: like !=, but ~ for regex comparison rather ;)
gamename has joined #ruby
* jhass prefers if foo[/-?\d+/].nil?
<dopie> mikecmpbll, ahhh ok :)
<dopie> jhass, just going through the book
<mikecmpbll> dopie: !~ is to != as ~= is to ==
<mikecmpbll> =~ ****
<bradland> dopie: when you see !, you can interpret it as "not"
<bradland> so != is "not equal"
<mikecmpbll> i always get that operator the wrong way around.
<[spoiler]> I think `!//` returns true
gamename has quit [Remote host closed the connection]
<[spoiler]> #random-trivia
<dopie> bradland, correct i just didn't know what ~ mean
<jhass> mikecmpbll: me too, just stopped using it, there's no actual need :P
<dopie> meant
<bradland> !~ "not match"
niemcu has joined #ruby
gamename has joined #ruby
cschneid_ has joined #ruby
<dopie> So I read it right even though I didn't know what the ~ was for ok cool :)
elperdut has joined #ruby
<bradland> yep :)
<[k-_> could not deduce a ~ Infinity
lannonbr has quit [Quit: WeeChat 1.2]
<[k-_> dunno some shit the haskell compiler throws!
<mikecmpbll> jhass: indeed. you can define your own =~ method on your own classes though iirc :p
marr has joined #ruby
<jhass> no idea why that would be a reason to use it ;)
tubuliferous_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
malcolmva has joined #ruby
<mikecmpbll> me neither :/
benlovell has quit [Ping timeout: 265 seconds]
rbennacer has joined #ruby
<[spoiler]> I thought I was the only one who confuses the ~ operators
raypulver has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
snath has joined #ruby
fantasticsid has joined #ruby
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshL has joined #ruby
<elperdut> hello all. i have been googling around for this but haven't found exactly what i'm after. . is there a 'canonical' way to make it clear that a given variable is being called from a module (mixin)? e.g. if I am calling a logger from a Logging module, I want to make it clear in my code that the log method is coming from a module, maybe something like
<elperdut> include Logging
<elperdut> …
<elperdut> …
<elperdut> logger = Logging::logger
<elperdut> i know it's not necessary to do this in order for `logger` to be in scope. just wondering if this is a good way to make it clear.
nalley has joined #ruby
buub has quit [Ping timeout: 260 seconds]
snath has left #ruby [#ruby]
<jhass> sounds like you shouldn't include it in the first place
<jhass> and make the module work standalone
fullofcaffeine has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
michaeldeol has joined #ruby
El3k0n has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<[spoiler]> guys, maybe we can remember the `=~` as "equal-ish" :D
<[spoiler]> yes, that's a good menmonic
<jhass> why not just stop using it?
thisirs has quit [Ping timeout: 252 seconds]
<elperdut> the purpose of including it is to access it from several classes, sort of as a singleton
tvw has quit []
<elperdut> the old 'access one logger and config from several classes' thing
krzkrz has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
<jhass> elperdut: doesn't sound like it needs to be included?
<[spoiler]> jhass: I rarely use it anyway, but I just wanted to have a method of remembering it :D
<[spoiler]> elperdut: since it's a constant, you can access it from anywhere anyway
imperator has joined #ruby
catphish has joined #ruby
<elperdut> my module is in a file called 'logging.rb', the module name is Logging inside of it. so if i do `require 'logging'` and omit the `include Logging`. then do something like `logger = Logging::logger`, i get NameError: undefined local variable or method
youch has joined #ruby
dr3w has quit [Quit: WeeChat 1.2]
ssb123 has joined #ruby
<[spoiler]> `def self.logger`
<catphish> when i run "gem install bundler" i don't get a "bundle" binary in by ruby bin directory, is there something i need to do to make this happen?
<[spoiler]> instead of `def logger`
<elperdut> (i'm basically ripping this off — http://stackoverflow.com/a/6768164/1258020)
dgutierrez1287 has joined #ruby
dr3w has joined #ruby
<[spoiler]> catphish: did it get installed someplace else? check the environment variables gem uses, and ~/.gemrc
<imperator> catphish, gem env ?
<jhass> catphish: ^ gist it
ssb123 has left #ruby [#ruby]
<catphish> oh, i think it might be because my PATH is wrong, ie i'm accessing gem by its full path and its not in my path, or even worse, a different "gem" is in my path
<elperdut> oh crap. I am doing something stupid I think.
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
h4ckurate has joined #ruby
thisirs has joined #ruby
<[spoiler]> elperdut: then you don't need to do what you're doing tho
lapide_viridi has quit [Quit: Leaving]
<elperdut> jhass, spoiler: thanks for your input. this disambiguates things.
chills42 has quit [Remote host closed the connection]
<elperdut> basically just assigning logger = Logging::logger instead of using the include
<catphish> imperator: jhass: i think i see the problem, i have an RVM installation, gem is using that "INSTALLATION DIRECTORY: /home/charlie/.rvm/gems/ruby-2.1.5" instead of the version of ruby i'm actually executing
<elperdut> (that makes me wonder - what is the value of the include statement over simply doing a 'require' and then using a qualified variable name instead?)
<jhass> elperdut: at the toplevel, there's little
<jhass> elperdut: include is essentially Ruby's way to do multiple inheritance
<catphish> the shell path points to a clean new version of ruby, but gem is picking up some RVM paths
dgutierrez1287 has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
[Butch] has joined #ruby
dr3w has quit [Remote host closed the connection]
<jhass> elperdut: module CommonBehavior; end; module MoreCommonBehavior; end; class A; include CommonBehavior; end, class B; include CommonBehavior; include MoreCommonBehavior; end;
dr3w has joined #ruby
<[k-_> please no
h4ckurate has quit [Client Quit]
<catphish> why would my RVM environment be leaking into my new ruby environment? environment variables?
<jhass> possibly
<catphish> "GEM_HOME=/home/charlie/.rvm/gems/ruby-2.1.5"
tmtwd has quit [Ping timeout: 260 seconds]
<catphish> that'll probably do it :(
fantasticsid has quit [Ping timeout: 255 seconds]
<jhass> rvm implode ?
Vile` has quit [Ping timeout: 245 seconds]
<catphish> "rvm system" fixed it, thanks
<havenwood> catphish: rvm use system --default
<catphish> that temporarily disables rvm's environment
dh64 has quit [Quit: Konversation terminated!]
rideh has quit [Quit: zap]
<havenwood> catphish: or yeah, implode if you're not using it
turb0 has joined #ruby
<catphish> havenwood: that's ok, i only need it to go away for one session while i build this new ruby
<catphish> i normall use rvm
<havenwood> ah
<catphish> *normally
<catphish> thanks anyway, its working correctly now
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
<havenwood> catphish: Do update your RubyGems :), just a: rvm rubygems latest
<havenwood> catphish: (For your RVM Ruby.)
<havenwood> Or just in general: gem update --system
Vile` has joined #ruby
<catphish> i rarely think to upgrade gem itself
<catphish> will do that on my new builds
ssb123 has joined #ruby
rideh has joined #ruby
<catphish> thanks :)
catphish has left #ruby ["Leaving"]
treehug88 has joined #ruby
Josh has joined #ruby
Josh is now known as brain_shim
<ssb123> Does anyone have any experience integrating with MasterPass?
lannonbr has joined #ruby
rbennacer has quit [Remote host closed the connection]
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
skade has joined #ruby
youch has quit [Quit: Konversation terminated!]
rodfersou has quit [Ping timeout: 250 seconds]
turb0 has left #ruby ["leaving"]
<brain_shim> When a class returns something like #<MyClass:0x401b3bc8>, what is that called?
shredding has quit [Ping timeout: 245 seconds]
<brain_shim> And is there a method I can call on an object to return it?
rodfersou has joined #ruby
<[k-_> &ri Object#inspect brain_shim
rbennacer has joined #ruby
tmtwd has joined #ruby
shock_one has quit [Remote host closed the connection]
apofis has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest50 has joined #ruby
halcyone3 has quit [Ping timeout: 246 seconds]
<brain_shim> If I have #<MyClass:0x401b3bc8>, how can I get the instance from that?
<jhass> brain_shim: that's not a valid ruby literal
<jhass> what do you really have
<jhass> or elaborate on what makes you say you "have #<MyClass..."
<brain_shim> A stack trace saying that: undefined method `my_attribute' for #<ActiveSupport::HashWithIndifferentAccess:0x007fc9563ce8b8> and I'm trying to pin down the object it's associated to.
<jhass> it should have a line number and a filename
<brain_shim> ah yes
mdavid613 has joined #ruby
<[k-_> it is not possible to trace it down since errors crash the interpreter (unless you rescue it). if you do rescue it, you have to do it programmatically.
einarj has joined #ruby
bhorn1|away is now known as bhorn1
withnale_ has quit [Ping timeout: 256 seconds]
rikkipitt has joined #ruby
plains has joined #ruby
darkf has quit [Quit: Leaving]
conor_ has quit [Remote host closed the connection]
rehat_ has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
conor_ has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
sarkyniin has joined #ruby
Yiota has joined #ruby
tjohnson has joined #ruby
greenarrow has quit [Quit: 500]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
CanTonic has quit [Read error: Connection reset by peer]
amclain has joined #ruby
dr3w has quit [Remote host closed the connection]
dr3w has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith___ has quit [Quit: Be back later ...]
terlar has quit [Ping timeout: 245 seconds]
xxneolithicxx has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
renderfu_ has quit [Remote host closed the connection]
renderful has joined #ruby
rideh has quit [Quit: zap]
troyready has quit [Quit: Leaving]
loincloth has joined #ruby
Zai00 has quit [Quit: Zai00]
flegercovateam has quit [Ping timeout: 246 seconds]
hectorsq has joined #ruby
anisha has quit [Quit: Leaving]
baroquebobcat has joined #ruby
casadei_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
CorySimmons has quit [Quit: Bye!]
wheresmyjetpack has joined #ruby
apofis has quit [Remote host closed the connection]
flegercovateam has joined #ruby
pdoherty has joined #ruby
stan has quit [Ping timeout: 244 seconds]
c0m0 has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Client Quit]
polpak has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
hanmac has quit [Ping timeout: 246 seconds]
rideh has joined #ruby
DroidBurgundy has joined #ruby
tkuchiki has quit [Remote host closed the connection]
atomical has joined #ruby
tkuchiki has joined #ruby
mikecmpbll has joined #ruby
troyready has joined #ruby
ssb123 has quit []
jschoolcraft has joined #ruby
The_Phoenix has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
fantazo has joined #ruby
conor__ has joined #ruby
nveselinov has quit [Quit: Connection closed for inactivity]
skade has quit [Quit: Computer has gone to sleep.]
pietr0 has joined #ruby
paulcsmith___ has joined #ruby
casadei_ has joined #ruby
dimasg has joined #ruby
hanmac has joined #ruby
fullofcaffeine has joined #ruby
gambl0re has joined #ruby
ferhaty has joined #ruby
Violentr has quit [Ping timeout: 264 seconds]
conor_ has quit [Ping timeout: 255 seconds]
sdwrage has joined #ruby
swills has quit [Quit: leaving]
dr3w has quit [Read error: Connection reset by peer]
serivich has quit [Ping timeout: 250 seconds]
paulcsmith___ has quit [Quit: Be back later ...]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith___ has joined #ruby
paulcsmith___ has quit [Client Quit]
apofis has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
dopie has quit [Quit: This computer has gone to sleep]
d2dchat has joined #ruby
chuy has quit [Ping timeout: 256 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milesforrest has joined #ruby
tkuchiki has quit [Remote host closed the connection]
c0m0 has joined #ruby
ex0ns has quit [Quit: leaving]
apofis has quit [Ping timeout: 264 seconds]
ex0ns has joined #ruby
kriskropd has joined #ruby
NeverDie has joined #ruby
devoldmx has joined #ruby
saddad has quit [Ping timeout: 265 seconds]
sphex has quit [Ping timeout: 246 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colstrom has joined #ruby
* colstrom waves.
keeguon has quit [Quit: keeguon]
<adaedra> friend \o/
malconis has joined #ruby
<havenwood> hellooo
malconis has quit [Remote host closed the connection]
sphex has joined #ruby
chuy has joined #ruby
malconis has joined #ruby
bricker has joined #ruby
omfgtora is now known as Va1eness
<colstrom> \o/
<shevy> time to party
<havenwood> \o /o o/
devoldmx has quit [Ping timeout: 246 seconds]
safeforge has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
hectorsq has joined #ruby
lannonbr has joined #ruby
blackmes1 has joined #ruby
iamjarvo has joined #ruby
Va1eness is now known as omFgtora
omFgtora is now known as omfgtora
omfgtora is now known as omfgToRA
khebbie has joined #ruby
DLSteve has joined #ruby
lwu has quit [Ping timeout: 252 seconds]
lwu has joined #ruby
gamename has quit []
dr3w has joined #ruby
MatthewsFace has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
scottschecter has quit [Quit: Leaving]
f4cl3y__ has quit [Ping timeout: 260 seconds]
safeforge has quit [Remote host closed the connection]
stryek has joined #ruby
gambl0re has quit [Ping timeout: 240 seconds]
gambl0re has joined #ruby
ferhaty has quit []
fullofcaffeine has joined #ruby
Agoldfish has joined #ruby
khebbie has quit [Remote host closed the connection]
jeremy04_ has joined #ruby
j4cknewt has joined #ruby
AlphaAtom has joined #ruby
snockerton has quit [Quit: Leaving.]
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
einarj has joined #ruby
rikkipitt has quit [Remote host closed the connection]
* apeiros friday-hugs the channel
bodgix has left #ruby [#ruby]
oleksandriuzikov has left #ruby [#ruby]
elperdut has quit [Quit: Leaving.]
jeremy04 has quit [Ping timeout: 250 seconds]
towski_ has joined #ruby
TheBrayn has quit [Quit: ZNC - http://znc.in]
<shevy> yuck
<shevy> you sweaty swiss!
ramfjord has quit [Ping timeout: 245 seconds]
snockerton has joined #ruby
gix has quit [Ping timeout: 250 seconds]
<[k-_> ooooooooo buuuuuuuuurn
Muhannad has joined #ruby
chills42 has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
TheBrayn has joined #ruby
TheBrayn has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
vickleton has joined #ruby
dgutierrez1287 has joined #ruby
conor__ has quit [Remote host closed the connection]
gix has joined #ruby
oleksandriuzikov has joined #ruby
conor_ has joined #ruby
<miah> yay friday-hugs
skade has joined #ruby
juanpaucar has quit [Remote host closed the connection]
jwaldrip has joined #ruby
JoshL has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 256 seconds]
jerius has quit [Quit: /quit]
jenrzzz has joined #ruby
Jackneill has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
xelim has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 250 seconds]
dimasg has quit [Ping timeout: 260 seconds]
jwaldrip has joined #ruby
rakm has joined #ruby
yh has quit [Ping timeout: 245 seconds]
elperdut has joined #ruby
TheBrayn has joined #ruby
JoshL has joined #ruby
riffraff has quit [Quit: Leaving]
matugm has joined #ruby
iamninja has joined #ruby
jwaldrip has quit [Ping timeout: 256 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
imperator has left #ruby ["Leaving"]
cmisenas has joined #ruby
jwaldrip has joined #ruby
conor_ has quit [Remote host closed the connection]
jschoolcraft has quit [Quit: peace]
skade has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstarh has joined #ruby
skade has quit [Client Quit]
dgutierrez1287 has joined #ruby
leafybasil has quit [Remote host closed the connection]
safeforge has joined #ruby
Iskarlar has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
jwaldrip has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
freerobby has quit [Quit: Leaving.]
relix has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
rideh has quit [Quit: zap]
DoubleMalt has quit [Remote host closed the connection]
graydot has joined #ruby
dgutierrez1287 has joined #ruby
jwaldrip has joined #ruby
rideh has joined #ruby
thisirs has quit [Ping timeout: 252 seconds]
<colstrom> So... brain fuzz today leaves me with a question: how do I call `.methods` on the `main` object?
halcyone3 has joined #ruby
ramfjord has joined #ruby
<colstrom> For instance, if I `def foo`, outside of a module or class, it gets defined on something... `self.to_s` in pry returns 'main', which makes sense as the top-level object.
<[k-_> >> self.methods
<ruboto> [k-_ # => [:to_s, :inspect, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, ...check link for more (https://eval.in/413829)
<[k-_> tada!
<colstrom> And I can call `self.methods` from that context.
bronson has joined #ruby
<colstrom> But... if I'm calling that from inside a class, `self` changes scope, right?
AlexRussia has joined #ruby
<colstrom> So how to explicitly reference `main` from another scope?
Blaguvest has joined #ruby
<[k-_> >> $a = self; class Foo; def bar; puts $a; end end; Foo.new.bar
<ruboto> [k-_ # => main ...check link for more (https://eval.in/413830)
<[k-_> $a wouldn't update if self changes though
rbennacer has quit [Remote host closed the connection]
<[k-_> (i think)
<[k-_> or you can get the object_id of self
<[k-_> and use ObjectSpace._id2ref
<apeiros> >> TOPLEVEL_BINDING
<ruboto> apeiros # => #<Binding:0x41259a04> (https://eval.in/413831)
<colstrom> Bingo. That's what I was looking for, I think.
<apeiros> though, IMO if you want to reference main, you're doing something bad.
noethics has joined #ruby
jwaldrip has quit [Ping timeout: 256 seconds]
<apeiros> (and it'd be TOPLEVEL_BINDING.receiver)
<colstrom> apeiros: Wanting to trace changes to that object over the life of a program, for curiousity.
<[k-_> set_trace_func ( ͡° ͜ʖ ͡°)
<colstrom> Sure, I could use TracePoint to do it.
<colstrom> And normally that's where I'd go.
basmoura has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
<colstrom> But I'm exploring right now, and figured I'd look at other options.
<colstrom> Adventure time, right? ^_^
* apeiros draws unicode+xterm256color boxes in the terminal - because friday :D
dopie has joined #ruby
<miah>
<colstrom> Thanks for the direction. Not enough sleep last night, brain super fuzzy today.
<colstrom> :highfive:
jwaldrip has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 260 seconds]
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
frem has joined #ruby
jwaldrip has quit [Ping timeout: 244 seconds]
eL_bAmba has joined #ruby
jwaldrip has joined #ruby
aeontech has joined #ruby
Marsupermammal has joined #ruby
momomomomo has joined #ruby
Mendenhall has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
jwaldrip has quit [Ping timeout: 240 seconds]
jwaldrip has joined #ruby
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukas has joined #ruby
triangles has quit [Ping timeout: 260 seconds]
_blizzy_ has joined #ruby
<lukas> hi, i was watching the talk RedDotRuby 2015 - Keynote: Super Dry Ruby by Yukihiro 'Matz' Matsumoto and it mentioned that ruby will have new concurrency models. will the borrow/share be similar to what rust has? will the pipe/channel one be similar to go?
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodferso1 has joined #ruby
rbennacer has joined #ruby
iamjarvo has joined #ruby
hectorsq has joined #ruby
halcyone3 has quit [Ping timeout: 240 seconds]
Give_it_a_lick has joined #ruby
cmisenas has quit [Quit: cmisenas]
ThaDick has quit [Quit: ThaDick]
rbennacer has quit [Remote host closed the connection]
snockerton has quit [Quit: Leaving.]
jerius has joined #ruby
momomomomo_ has joined #ruby
baweaver has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
rodfersou has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
buub has joined #ruby
framling has quit [Ping timeout: 246 seconds]
eL_bAmba has quit [Remote host closed the connection]
nofxx has joined #ruby
_blizzy_ has joined #ruby
jwaldrip has quit [Ping timeout: 260 seconds]
eL_bAmba has joined #ruby
jwaldrip has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
juanpaucar has joined #ruby
casadei_ has quit [Remote host closed the connection]
jeremy04_ has quit [Remote host closed the connection]
Give_it_a_lick has quit [Quit: Page closed]
jeremy04 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has quit [Remote host closed the connection]
<nofxx> Use each_with_object instead of reduce. Why rubocop?
jwaldrip has quit [Ping timeout: 264 seconds]
<jhass> nofxx: because your block returns the accumulator?
<lannonbr> Question, would it be a reasonable to ask about an issue with the default theme that comes with Jekyll here?
<nofxx> jhass, makes sense now, ty ;)
<jhass> there's a #jekyll
<lannonbr> Okay thanks
lannonbr has quit [Quit: WeeChat 1.2]
stan has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
lannonbr has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
jwaldrip has joined #ruby
skade has joined #ruby
gambl0re has joined #ruby
mistermocha has joined #ruby
thisirs has joined #ruby
radgeRayden has joined #ruby
blue_deref has joined #ruby
freerobby has joined #ruby
Violentr has joined #ruby
einarj has joined #ruby
scripore has joined #ruby
jwaldrip has quit [Ping timeout: 260 seconds]
Zai00 has joined #ruby
hazelux has joined #ruby
JoshL has quit []
DoubleMalt has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
reset has joined #ruby
peterhu has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
<bnagy> is #jruby still alive or is here a better bet?
thisirs has quit [Ping timeout: 256 seconds]
<bnagy> drb is buggy under windows 32 vs 64 bit jre
<bnagy> which I'm sure is just going to be oodles of fun to debug
Yiota has joined #ruby
Ann has quit [Remote host closed the connection]
darceee has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
sideshowcoder has quit [Quit: Connection closed for inactivity]
gamename has joined #ruby
kies^ has joined #ruby
bradland has left #ruby [#ruby]
blackmes1 has quit [Ping timeout: 255 seconds]
khebbie has joined #ruby
bradland has joined #ruby
bradland has left #ruby [#ruby]
flegercovateam has quit [Ping timeout: 255 seconds]
<darceee> Does anybody know why some net-http methods return a truncated 'location' header when the response is a 30x redirect? Test code at https://gist.github.com/anonymous/36110931d81873bfc1eb
momomomomo has quit [Ping timeout: 260 seconds]
flegercovateam has joined #ruby
aaeron has joined #ruby
freerobby has quit [Quit: Leaving.]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradland has joined #ruby
safeforge has quit [Remote host closed the connection]
bradland has quit [Client Quit]
baweaver has joined #ruby
omegamike has quit [Remote host closed the connection]
vdamewood has joined #ruby
bradland has joined #ruby
aaeron1 has joined #ruby
bradland has quit [Client Quit]
radgeRayden_ has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> lukas: I don't think it's been decided yet. Another possibility is something along the lines of Matz' Streem language: https://github.com/matz/streem#readme
cmisenas has joined #ruby
bradland has joined #ruby
aaeron has quit [Ping timeout: 244 seconds]
<lukas> havenwood: i saw that
s2013 has joined #ruby
<lukas> what seems more likely, and is there some sort of timeline?
eL_bAmba has quit [Ping timeout: 272 seconds]
nux443 has joined #ruby
rakm has joined #ruby
<eam> darceee: you're sending two different queries
<eam> uri != uri.path
radgeRayden has quit [Ping timeout: 246 seconds]
<eam> your first and last queries don't send any GET args
<eam> (so they don't appear in the redirect either)
roolo has joined #ruby
buub has quit [Ping timeout: 240 seconds]
graydot has quit [Quit: graydot]
<eam> >> require 'uri'; uri = URI.parse 'http://support.apple.com/kb/image.jsp?productid=248P6K10OS&size=480x480';; [uri.inspect, uri.path]
<ruboto> eam # => ["#<URI::HTTP http://support.apple.com/kb/image.jsp?productid=248P6K10OS&size=480x480>", "/kb/image. ...check link for more (https://eval.in/413845)
gix has quit [Quit: Client exiting]
peterhu has joined #ruby
<havenwood> lukas: Koichi's idea is threads only being able to mutate objects they posses. Matz' idea is Streem. Hem, if I had to bet?
<havenwood> lukas: I'd guess several years out. Ruby 3.0.
calleerlandsson has joined #ruby
sdwrage has quit [Quit: Leaving]
Muhannad has quit [Quit: Leaving]
j4cknewt has quit [Remote host closed the connection]
ThaDick has joined #ruby
banister has joined #ruby
<darceee> eam: thank you... looking into it
khebbie has quit [Remote host closed the connection]
<havenwood> lukas: I'd wager Streem-like.
<havenwood> lukas: But I don't know.
nalley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
j4cknewt has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
baweaver has quit [Remote host closed the connection]
Meow-J has quit [Quit: Leaving]
flegercovateam has quit [Ping timeout: 245 seconds]
<lukas> havenwood: cool, thank you!
<lukas> i am definitely excited for it
Meow-J has joined #ruby
<havenwood> lukas: yeah!
<havenwood> lukas: much faster, some static analysis, no GVL and higher-level concurrency abstraction - good stuff!
thisirs has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
<havenwood> though i'm not sure they're willing to accept an LLVM dependency
lannonbr has joined #ruby
<havenwood> Matz seemed very hesitant to get dependant.
fanocksa has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> does ruby run on any platforms where llvm does not?
baweaver has joined #ruby
Matthews_ has joined #ruby
casadei_ has joined #ruby
momomomomo has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
nalley has joined #ruby
<havenwood> eam: i dunno?
rakm has joined #ruby
shoutsid has quit []
scripore has quit [Ping timeout: 246 seconds]
safeforge has joined #ruby
scripore has joined #ruby
rikkipitt has joined #ruby
yfeldblum has joined #ruby
Zai00 has quit [Quit: Zai00]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> how about dos
elperdut has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
last_staff has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
rdark has quit [Quit: leaving]
banister has joined #ruby
cmisenas has quit [Quit: cmisenas]
rodferso1 has quit [Ping timeout: 255 seconds]
<eam> shevy: totes supports dos
wheresmyjetpack has quit [Quit: Konversation terminated!]
aaeron1 has quit [Quit: Leaving.]
gix has joined #ruby
Jarboe has joined #ruby
rodfersou has joined #ruby
<eam> mabye only via llvm -> djgpp though
<shevy> what is a totes
<shevy> sounds like something to eat
allcentury has quit [Ping timeout: 265 seconds]
rikkipitt has quit [Remote host closed the connection]
Musashi007 has joined #ruby
iateadonut has quit [Quit: Leaving.]
phutchins has quit [Ping timeout: 245 seconds]
allcentu1 has joined #ruby
rikkipitt has joined #ruby
allcentu1 has quit [Client Quit]
hazelux has quit []
decaff has joined #ruby
elperdut has joined #ruby
cornerma1 has joined #ruby
scroff has quit [Quit: scroff]
robbyoconnor has quit [Ping timeout: 264 seconds]
cornerman has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
rbennacer has quit [Remote host closed the connection]
suchness has quit [Ping timeout: 264 seconds]
leafybasil has joined #ruby
Musashi007 has quit [Quit: Musashi007]
hinbody has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
safeforge has quit [Remote host closed the connection]
hazelux has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
Guest50 has joined #ruby
mistermocha has joined #ruby
Zai00 has joined #ruby
momomomomo has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
Max-P has joined #ruby
momomomomo has quit [Client Quit]
Max-P has left #ruby ["undefined"]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
scroff has joined #ruby
hinbody has joined #ruby
blackmes1 has joined #ruby
apofis has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
rikkipitt has quit [Remote host closed the connection]
khebbie has joined #ruby
pawnbox has joined #ruby
HoloIRCUser5 has joined #ruby
Aderium has joined #ruby
<lukas> it's totally but in a white girl way
dimasg has joined #ruby
<lukas> *basic white girl
HoloIRCUser5 has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
scroff has quit [Quit: WeeChat 0.4.2]
vdamewood has quit [Ping timeout: 250 seconds]
skade has quit [Ping timeout: 255 seconds]
decaff has quit [Quit: Leaving...]
arooni-mobile has joined #ruby
arooni has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
jwaldrip has joined #ruby
drbrain has quit [Remote host closed the connection]
pawnbox has joined #ruby
scroff has joined #ruby
atomical has joined #ruby
scroff has quit [Client Quit]
devoldmx has joined #ruby
aaeron has joined #ruby
j4d has joined #ruby
scroff has joined #ruby
drbrain has joined #ruby
freerobby has joined #ruby
Mendenhall has quit [Ping timeout: 265 seconds]
conor_ has joined #ruby
j4d has quit [Client Quit]
nux443 has quit [Quit: leaving]
devoldmx has quit [Ping timeout: 265 seconds]
umgrosscol has quit [Quit: Quit]
aeontech has quit [Quit: aeontech]
Cust0sLim3n has joined #ruby
EllisTAA has joined #ruby
myztic has quit [Ping timeout: 250 seconds]
<EllisTAA> does anyone know if there is a materialize channel?
Mendenhall has joined #ruby
aeontech has joined #ruby
kies^ has quit [Remote host closed the connection]
j4d has joined #ruby
buub has joined #ruby
<Ox0dea> EllisTAA: No one here is particularly incorporeal?
freerobby has quit [Quit: Leaving.]
chouhoulis has quit [Remote host closed the connection]
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cball has quit [Quit: Leaving]
uber has quit [Ping timeout: 244 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gard has joined #ruby
j4d has quit [Client Quit]
Synthead has joined #ruby
DoubleMalt has joined #ruby
robbyoconnor has joined #ruby
<eam> lukas: embrace my culture
apofis has quit [Read error: Connection reset by peer]
<lukas> eam: wanna get some uggs and go to starbucks?
apofis has joined #ruby
<eam> do I ever
<Ox0dea> EllisTAA: Well, no, I suppose we all are, after a fashion.
darceee has quit [Quit: Page closed]
scripore has joined #ruby
<EllisTAA> ox0dea: so opaque
khebbie has quit [Remote host closed the connection]
<Ox0dea> EllisTAA: Most dictionaries are open 24/7.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<lukas> eam: pumpkin spice season is coming!
jgpawletko has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
<millerti> In Ruby, can I index an enumerable? I want to get the n'th element. I can convert it to an array and index that, but is there a more direct way?
<Ox0dea> EllisTAA: The Materialize project uses Gitter: https://gitter.im/Dogfalo/materialize
but3k4 has joined #ruby
khebbie has joined #ruby
dimasg has joined #ruby
<EllisTAA> oxodea: thanks
<Ox0dea> millerti: enum.first(n).last should do.
<eam> lukas: no joke, I will be stocked up
<lukas> heh, me too actually
<millerti> Ox0dea: That would be faster than converting to an array first.
<lukas> but with mead and home brewed beer
<Ox0dea> millerti: It's not any more "direct", per se, but it'll save you having to enumerate the entire thing just to get the nth element.
<millerti> Actually, this is just curiosity. The arrays I'm dealing with have four elements, so none of this matters.
<Ox0dea> millerti: Yes, it would be significantly more performant for sufficiently large Enumerables.
jgpawletko has quit [Client Quit]
<millerti> Ox0dea: Yes, which is why I'm asking.
maletor has joined #ruby
<Ox0dea> millerti: Premature optimization is next to godliness.
<millerti> lol
oleksandriuzikov has quit [Quit: Leaving.]
blackmes1 has quit [Ping timeout: 246 seconds]
myztic has joined #ruby
cball has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
khebbie has quit [Ping timeout: 246 seconds]
buub has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
conor_ has quit [Remote host closed the connection]
fanocksa_ has joined #ruby
kadoppe_ has quit [Ping timeout: 255 seconds]
conor_ has joined #ruby
chills42 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
crankharder has joined #ruby
Mendenhall has quit [Ping timeout: 260 seconds]
uber has joined #ruby
fanocksa has quit [Ping timeout: 260 seconds]
kadoppe has joined #ruby
hazelux has quit [Remote host closed the connection]
rakm has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
omegamike has joined #ruby
<Ox0dea> millerti: Why a random-access Enumerable, anyway?
<Ox0dea> *Enumerator, probably.
baweaver has joined #ruby
<millerti> Ox0dea: The enumerator is array.each_with_index which I then sort so I can find out which index has the highest value.
bootstrappm has joined #ruby
<Ox0dea> millerti: So you have to enumerate the whole thing? Whence the need to do random access?
hazelux has joined #ruby
bootstrappm has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
freerobby has joined #ruby
<Ox0dea> >> [4, 2, 7, 1].each_with_index.sort_by(&:first).last.last
crankharder has quit [Ping timeout: 255 seconds]
<ruboto> Ox0dea # => 2 (https://eval.in/413873)
<millerti> Ox0dea: In C, I'd write a loop over the array, keeping track of which index has the highest value. However, in Ruby, other approaches are faster and more compact.
<Ox0dea> Yes, see above. :)
<Ox0dea> You can't determine the maximum without checking every element.
cmisenas has joined #ruby
<millerti> Ox0dea: But then I realized that I wanted to max among the even indices and the max among the odd indices.
r0bby_ has joined #ruby
chipotle has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
apofis has quit [Remote host closed the connection]
<millerti> Ox0dea: I'm sure I'm doing it stupidly. :)
<Ox0dea> >> [4, 2, 7, 1].each_with_index.partition { |e, i| i.even? }.map { |c| c.last }.map(&:last)
<ruboto> Ox0dea # => [2, 3] (https://eval.in/413874)
<Ox0dea> That's about as clean as it'll get, I reckon.
crankharder has joined #ruby
<Ox0dea> Erm, not sure why I opened a block for that penultimate #last, but you get the idea.
relix has quit [Read error: Connection reset by peer]
umgrosscol has joined #ruby
relix has joined #ruby
omegamike has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
einarj has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
chipotle has quit [Max SendQ exceeded]
bthesorceror has quit [Remote host closed the connection]
<Ox0dea> I realize now that I didn't do any sorting there. Jeeze.
<millerti> Ox0dea: Here's what I did: [out_changed.each_with_index.to_a[0], out_changed.each_with_index.to_a[2]].max[1]
tjohnson has quit [Quit: Connection closed for inactivity]
<millerti> Surely the stupidest possible way.
jhack has quit [Remote host closed the connection]
<Ox0dea> That doesn't find the maximum even- and odd-indexed elements, though?
jeremy04 has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 240 seconds]
tsou has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
dling` has joined #ruby
andry87 has joined #ruby
andry87 has left #ruby [#ruby]
Azure has quit [Ping timeout: 265 seconds]
dling has quit [Ping timeout: 255 seconds]
aaeron has left #ruby [#ruby]
tvw has joined #ruby
dgutierrez1287 has joined #ruby
mistermocha has joined #ruby
aaeron has joined #ruby
eggoez has joined #ruby
Musashi007 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jwaldrip has quit [Quit: Be back later ...]
cmisenas has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Ping timeout: 250 seconds]
EllisTAA has quit [Quit: EllisTAA]
<Ox0dea> [k-: You're in the ChangeLog!
mistermocha has quit [Ping timeout: 265 seconds]
<headius> bnagy: #jruby is quite alive and well, and that sounds weird
<headius> may have to do with falling back to non-native behavior on one or the other
chipotle has joined #ruby
EllisTAA has joined #ruby
bronson has quit [Remote host closed the connection]
rakm has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
rakm has quit [Client Quit]
cloaked1 has joined #ruby
PaulCapestany has quit [Quit: .]
shinnya has joined #ruby
brain_shim has quit [Ping timeout: 244 seconds]
paulcsmith has joined #ruby
r0bby_ has quit [Quit: Konversation terminated!]
jhack has joined #ruby
PaulCapestany has joined #ruby
brain_shim has joined #ruby
wldcordeiro_ has joined #ruby
buub has joined #ruby
relix has quit [Read error: Connection reset by peer]
Synthead has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
relix has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
elperdut has quit [Ping timeout: 256 seconds]
AndyBotwin has joined #ruby
bronson has joined #ruby
freerobby has joined #ruby
RickHull has joined #ruby
skade has joined #ruby
sdwrage has joined #ruby
* atmosx Judas Priest - nightcrawler
jenrzzz has joined #ruby
jobewan has joined #ruby
aeontech has quit [Quit: aeontech]
JoshL has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
Synthead has joined #ruby
gamename has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
gamename has joined #ruby
rbennacer has joined #ruby
<RickHull> i'd like to make a usage function that knows about opts without making opts global or passing it explicitly: https://gist.github.com/rickhull/4bcbc7debbcaf7e635ff
gamename has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
yqt has joined #ruby
phutchins has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
hectorsq has joined #ruby
eggoez has joined #ruby
<RickHull> any preference? other options?
sdwrage has joined #ruby
arup_r has quit [Quit: Leaving]
rakm has joined #ruby
<centrx> Use a class?
polpak has quit [Quit: Lost terminal]
jwaldrip has joined #ruby
freerobby has quit [Quit: Leaving.]
cloaked1 has quit [Quit: leaving]
rodfersou has quit [Quit: leaving]
<baweaver> ^
<RickHull> ok... not what I was expecting. for a usage function?
<shevy> yes
rakm has quit [Ping timeout: 244 seconds]
<centrx> I thought slop automatically shows a usage function
<shevy> at the simplest case, the class allows easy re-use
fullofcaffeine has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 246 seconds]
<shevy> you can also store @vars in them; class Foo; @use_slop; def self.use_slop?; @use_slop
<shevy> and you can use usage[] too
arooni has quit [Ping timeout: 244 seconds]
<shevy> class Foo; def self.[](i = '')
<shevy> well, almost
<shevy> on a per object basis it's def [](i) then
<shevy> I misread usage[] as Usage[]
Guest24 is now known as lele
<RickHull> i don't like the square bracket notation for calling a proc
<RickHull> but it's the least bad option there
<RickHull> i'm definitely not going to be defining and instantiating a class for a usage function
<RickHull> anyways, feedback appreciated :)
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 255 seconds]
<RickHull> centrx: yes, that's the `puts self` portion. i also want to optionally print an error message and exit with an error code
dopamean_ has quit [Quit: leaving]
JoshL has quit []
<baweaver> >> class F;def initialize;@a=[] end; def [](i) @a[i] end; def []=(i,o) @a[i]=o end end; f=F.new;f[0]=1;f
<ruboto> baweaver # => #<F:0x4232bcec @a=[1]> (https://eval.in/413909)
tvw has quit []
<RickHull> old macdonald had a farm.. :)
NeverDie has joined #ruby
<Ox0dea> `i`ndex and `o`bject, surely.
<Ox0dea> I ain't never seen no farmer tendin' no indices nor objects, but I's figgerin' there must be one somewheres.
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #ruby
bruno- has joined #ruby
<RickHull> i is for irrigation, and o the crOp each irrigation lane feeds
last_staff has joined #ruby
<baweaver> other, but anyways
<shevy> otter
<shevy> and beavers
<shevy> what a dam great team
ThaDick has quit [Quit: ThaDick]
RegulationD has quit [Remote host closed the connection]
myztic has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
<RickHull> do otters dam? outside Rotterdam?
DroidBurgundy has quit []
<shevy> lol
<Ox0dea> baweaver: You consider #[]= to be a binop?
<baweaver> technically
wldcordeiro_ has quit [Read error: Connection reset by peer]
<Ox0dea> Not really, though?
wldcordeiro__ has joined #ruby
<baweaver> not sure I have a good answer on that
<baweaver> haven't given it much thought
skade has quit [Ping timeout: 260 seconds]
paulcsmith has quit [Quit: Be back later ...]
<Ox0dea> Having an LHS and an RHS does not a binop make.
dr3w has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
last_staff has quit [Read error: Connection reset by peer]
<Ox0dea> It's a necessary condition, obviously, but not a sufficient one.
<baweaver> is + unary when in the form 1 + 3?
<Ox0dea> No?
einarj has joined #ruby
<baweaver> that'd be the only reason I'd be inclined to think of it as binary
<Ox0dea> By (what I understand to be) your logic, all method calls are binops, and that can't be right.
<baweaver> clarify then
<baweaver> half paying attention to this if I'm being honest.
<Ox0dea> What are the operands in `foo[bar] = baz`?
<shevy> method calls!
fullofcaffeine has joined #ruby
<Ox0dea> Google gives garbage for "trinop".
renderfu_ has joined #ruby
rideh has quit [Quit: zap]
<Mon_Ouie> Well there are things called ternary operators. But one ternary operator shadows all the others.
Ox0dea is now known as color
color is now known as Ox0dea
djcp has quit [Ping timeout: 250 seconds]
einarj has quit [Ping timeout: 240 seconds]
<Ox0dea> That went well.
blackmes1 has joined #ruby
sdwrage has quit [Read error: Connection reset by peer]
pdoherty has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
gamename has joined #ruby
ishahnaz has joined #ruby
basmoura has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 265 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has quit [Quit: WeeChat 1.2]
Ox0dea has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
<Ox0dea> The pormanteau of "spray" and "paint" does not mean what I would have thought it does.
myztic has joined #ruby
mistermocha has joined #ruby
baweaver has joined #ruby
<RickHull> aerosol spraint could be an effective deterrent
devdazed has quit [Ping timeout: 240 seconds]
<Ox0dea> There's "guano" and "spraint"; are there other specifc names for fecal matter?
jonee has joined #ruby
jerius has quit [Quit: /quit]
aeontech has joined #ruby
jenrzzz has joined #ruby
<Ox0dea> https://en.wikipedia.org/wiki/Circulus_(theory) puts me in mind of "A Modest Proposal".
casadei_ has quit [Remote host closed the connection]
<dudedudeman> wait. someone said fecal matter
sdwrage has joined #ruby
dr3w has joined #ruby
<Ox0dea> Do you reckon Ruby will use NIST's reference implementation of SHA3?
rikkipitt has joined #ruby
skade has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 256 seconds]
tomphp_ has joined #ruby
jwinder has joined #ruby
Violentr has quit [Ping timeout: 264 seconds]
Vile` has quit [Ping timeout: 264 seconds]
s00pcan has quit [Ping timeout: 256 seconds]
renderfu_ has quit []
Vile` has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has joined #ruby
fanocksa_ has quit [Remote host closed the connection]
ByronJohnson has quit [Ping timeout: 272 seconds]
ByronJohnson has joined #ruby
umgrosscol has quit [Quit: Quit]
banister has quit [Read error: Connection reset by peer]
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
freerobby has joined #ruby
davedev24 has quit [Ping timeout: 252 seconds]
bzb has joined #ruby
davedev24 has joined #ruby
Azure has joined #ruby
nfk has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
thisirs has quit [Quit: ZNC - http://znc.in]
AndyBotwin has quit [Quit: Leaving]
[H]unt3r has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
<RickHull> I wasn't sure how we would segue from fecal matter, but that was brilliant
EllisTAA has joined #ruby
relix_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
hectorsq has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has joined #ruby
djbkd has joined #ruby
rbennacer has quit [Remote host closed the connection]
conor_ has quit [Remote host closed the connection]
Marsupermammal has joined #ruby
DanKnox has quit [Ping timeout: 260 seconds]
conor_ has joined #ruby
eL_bAmba has joined #ruby
jwinder has quit [Ping timeout: 246 seconds]
conor_ has quit [Remote host closed the connection]
Marsupermammal has quit [Client Quit]
conor_ has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 255 seconds]
atomical has quit [Max SendQ exceeded]
decoponio has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
victortyau has quit [Quit: Leaving]
willywos has quit [Ping timeout: 256 seconds]
relix_ has quit [Read error: Connection reset by peer]
relix has joined #ruby
conor_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
fantazo has joined #ruby
yh_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 260 seconds]
Jackneill has quit [Ping timeout: 264 seconds]
conor_ has joined #ruby
jenrzzz has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
jhack has quit [Ping timeout: 250 seconds]
<shevy> dudedudeman just isn't awake yet
scripore has quit [Quit: This computer has gone to sleep]
<shevy> it's just like havenwood without coffee
<dudedudeman> i had coffee once
tomphp_ has joined #ruby
fella6s has joined #ruby
baweaver has joined #ruby
<shevy> perhaps coffee has a different effect on you than it has on havenwood
jenrzzz has quit [Ping timeout: 255 seconds]
<shevy> I can't work with coffee :(
roolo has quit [Remote host closed the connection]
tomphp_ has quit [Client Quit]
relix has quit [Read error: Connection reset by peer]
symm- has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Read error: Connection reset by peer]
<dudedudeman> it's calming and stuff
PaulCapestany has joined #ruby
tomphp_ has joined #ruby
relix has joined #ruby
ItSAN____ has joined #ruby
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
symm- has joined #ruby
juanpaucar has quit [Remote host closed the connection]
fella7s has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
calleerlandsson has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
bffff_ has quit [Ping timeout: 245 seconds]
Criten has quit [Ping timeout: 245 seconds]
<Ox0dea> What does "had coffee once" mean?
ddv has quit [Ping timeout: 245 seconds]
relix_ has joined #ruby
Coldblackice_ has joined #ruby
ItSANgo has quit [Ping timeout: 245 seconds]
Criten has joined #ruby
relix_ has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 260 seconds]
<RickHull> consumed java at a single moment in the past?
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conor_ has quit [Remote host closed the connection]
<shevy> he had one coffee today
relix has quit [Ping timeout: 245 seconds]
d2dchat has quit [Remote host closed the connection]
calleerlandsson has joined #ruby
<shevy> the language of the dudedude is a simple one, it is understandable that the Oracle has difficulties with such mundane a words
EllisTAA has quit [Quit: EllisTAA]
conor_ has joined #ruby
user1138 has quit [Remote host closed the connection]
<dudedudeman> words are fluffy. not one of you needs them
bffff_ has joined #ruby
<Ox0dea> It's a grammatically correct expression, but the meaning is admittedly lost on me.
<shevy> have some more beer Ox0dea
<Ox0dea> I drink whiskey.
danzilio has quit [Ping timeout: 245 seconds]
user1138 has joined #ruby
jokester has quit [Ping timeout: 245 seconds]
<dudedudeman> why not both?
<Ox0dea> dudedudeman: To clarify, you drank coffee and then concluded that you did not wish to ever drink any more coffee?
DenSchub has quit [Ping timeout: 245 seconds]
malconis has joined #ruby
<shevy> https://github.com/ruby/ruby/blob/trunk/ChangeLog huh did [k- get in a patch?
<Ox0dea> He did.
<dudedudeman> no, there was just one time that i drank coffee. there were other times, but there was specifically that one time
<shevy> :(
conor_ has quit [Remote host closed the connection]
<Ox0dea> shevy: Your turn!
nalley has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> yeah...
<shevy> he upped the ante
malconis has quit [Client Quit]
<dudedudeman> get it
gambl0re has quit [Ping timeout: 252 seconds]
<dudedudeman> i support you, shevy
<dudedudeman> all the patches!
<shevy> was it a particularly good coffee dudedudeman?
<shevy> well, I am patching my own stuff
<dudedudeman> i like all the coffees
<shevy> I wrote a lot of things that were really really awful
whippythellama has quit [Quit: WeeChat 1.2]
<dudedudeman> been there. still there
conor_ has joined #ruby
<shevy> haha
devoldmx has joined #ruby
scripore has joined #ruby
casadei_ has joined #ruby
fantazo has quit [Ping timeout: 264 seconds]
blackmes1 has quit [Ping timeout: 272 seconds]
DenSchub has joined #ruby
weemsledeux has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
lordkryss has quit [Quit: Connection closed for inactivity]
devoldmx has quit [Ping timeout: 256 seconds]
conor_ has quit [Remote host closed the connection]
blackmes1 has joined #ruby
conor_ has joined #ruby
niemcu has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
axl__ has joined #ruby
workmad3_ has joined #ruby
blackmesa has joined #ruby
jokester has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
em0ral has joined #ruby
duderonomy has quit [Ping timeout: 265 seconds]
atomical has joined #ruby
danzilio has joined #ruby
sphex_ has joined #ruby
em0ral has quit []
Musashi007 has quit [Quit: Musashi007]
fantazo has joined #ruby
shellie__ has joined #ruby
wldcordeiro_ has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has joined #ruby
sepp2k1 has joined #ruby
tomphp_ has joined #ruby
mdavid6131 has joined #ruby
zacts_ has joined #ruby
rikkipitt has quit [Remote host closed the connection]
conor_ has quit [Remote host closed the connection]
abyss_ has joined #ruby
conor_ has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
yeticry_ has joined #ruby
<snockerton> how do i reference the class name from within the class
<snockerton> class SpecialClass
<snockerton> puts __CLASSNAME__
<snockerton> end
<BraddPitt> self
<snockerton> or something
Inside has joined #ruby
conor_ has quit [Remote host closed the connection]
<BraddPitt> >> class SpecialClass; puts self; end
<ruboto> BraddPitt # => SpecialClass ...check link for more (https://eval.in/413942)
<snockerton> lol, nice
Inside has quit [Changing host]
Inside has joined #ruby
<snockerton> never thought about that
<snockerton> ty
<BraddPitt> mhm
<BraddPitt> i forget what the exact method call on self object is
blackmes1 has quit [*.net *.split]
DenSchub has quit [*.net *.split]
skade has quit [*.net *.split]
nfk has quit [*.net *.split]
Ox0dea has quit [*.net *.split]
wldcordeiro__ has quit [*.net *.split]
matugm has quit [*.net *.split]
tmtwd has quit [*.net *.split]
msnyon has quit [*.net *.split]
yeticry has quit [*.net *.split]
niko has quit [*.net *.split]
workmad3 has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
unsymbol has quit [*.net *.split]
ofdtrinity has quit [*.net *.split]
shellie_ has quit [*.net *.split]
cookiez has quit [*.net *.split]
ValicekB has quit [*.net *.split]
myztic has quit [*.net *.split]
noethics has quit [*.net *.split]
vickleton has quit [*.net *.split]
sphex has quit [*.net *.split]
milesforrest has quit [*.net *.split]
mdavid613 has quit [*.net *.split]
sepp2k has quit [*.net *.split]
zacts has quit [*.net *.split]
jtperreault has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
_ht has quit [*.net *.split]
brendan- has quit [*.net *.split]
BTRE has quit [*.net *.split]
abyss has quit [*.net *.split]
Nirgali42 has quit [*.net *.split]
ducklobster has quit [*.net *.split]
Nirgali43 has joined #ruby
nfk has joined #ruby
<RickHull> SpecialClass.name
baweaver has quit [Remote host closed the connection]
<BraddPitt> self.name then
unsymbol has joined #ruby
<shevy> huh
Muhannad has joined #ruby
<shevy> >> class Foo; end; Foo.name.class
<ruboto> shevy # => String (https://eval.in/413943)
<shevy> self is then a String?
al2o3-cr has joined #ruby
<BraddPitt> ?
<BraddPitt> do you mean because I wrote `puts self` /
Ox0dea has joined #ruby
gh1jk789 has joined #ruby
ValicekB_ has joined #ruby
Trynemjoel has joined #ruby
<shevy> no you wrote the method call on self object
<BraddPitt> can't you do self.name?
<BraddPitt> (your eval.in isnt loading for me)
<BraddPitt> and im too lazy to boot up irb
<BraddPitt> :)
moshee has joined #ruby
ValicekB_ is now known as ValicekB
blue_deref has quit [Quit: bbn]
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> BraddPitt: Huh? That's what ruboto is for?
BTRE has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<BraddPitt> yes Ox0dea im saying the eval.in output wasnt resolving for me
<Ox0dea> >> class Foo; $n = name; end; $n
<ruboto> Ox0dea # => "Foo" (https://eval.in/413946)
<BraddPitt> nvm
<BraddPitt> i'm an idiot
<BraddPitt> but
<BraddPitt> hm
ofdtrinity has joined #ruby
<BraddPitt> nvm
hinbody has quit [Quit: leaving]
<BraddPitt> what were you questioning, shevy?
jtperreault has joined #ruby
<shevy> not sure, I may have misread it. I thought you meant a method call that would yield the self object
bmurt has joined #ruby
tmtwd has joined #ruby
noethics has joined #ruby
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ddv has joined #ruby
cookiez has joined #ruby
<Ox0dea> >> class Foo; $r = binding.receiver end; $r # shevy
<ruboto> Ox0dea # => Foo (https://eval.in/413947)
safeforge has joined #ruby
<shevy> I see what you did there
<shevy> you like global variables like $10 after all
snockerton has quit [Quit: Leaving.]
gard has quit [Ping timeout: 256 seconds]
ddv has quit [Ping timeout: 245 seconds]
towski_ has quit [Remote host closed the connection]
ddv has joined #ruby
<postmodern> what is a good library to validate correctness of markdown? kramdown seems to silently give up on malformed markdown
pauly_oc has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
myztic has joined #ruby
matugm has joined #ruby
towski_ has quit [Remote host closed the connection]
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
Mendenhall has joined #ruby
towski_ has joined #ruby
<bazbing80> Syntax for Thor's no method is no?(statement, color=nil) and yet no? 'hello', 'yellow' prints yellowhello to the console and it's white, not yellow
axl_ has quit [Quit: axl_]
axl_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
MyMind has joined #ruby
niemcu has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
gh1jk789 is now known as nerdthattwerks
Matthews_ has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
Sembei has quit [Ping timeout: 252 seconds]
rehat_ has quit [Remote host closed the connection]
<Ox0dea> Is there some clever way to implement to_base(n) tail-recursively without #unshift?
<BraddPitt> w 4
<darix> Ox0dea: to_i(n) ?
c0m0 has quit [Ping timeout: 244 seconds]
DifferentLambda has quit [Remote host closed the connection]
bmurt has quit []
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<Ox0dea> darix: I'm asking about to_s(n) in this case.
clarkenciel has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
canternet has joined #ruby
symm- has quit [Read error: Connection reset by peer]
<Ox0dea> BraddPitt: I'm just wondering if this algorithm can be improved upon. ^_^ http://i.imgur.com/cDnbeEA.png
ddv has quit [*.net *.split]
cookiez has quit [*.net *.split]
dgutierrez1287 has joined #ruby
Musashi007 has joined #ruby
allie has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 256 seconds]
canternet is now known as DifferentLambda
baweaver has joined #ruby
allie has joined #ruby
niko has joined #ruby
gregf_ has quit [Ping timeout: 255 seconds]
dgutierrez1287 has quit [Ping timeout: 252 seconds]
gregf_ has joined #ruby
symm- has joined #ruby
shinnya has joined #ruby
jobewan has quit [Quit: Leaving]
DenSchub has joined #ruby
cookiez has joined #ruby
ddv has joined #ruby
Zai00 has quit [Quit: Zai00]
jwaldrip has quit [Quit: Be back later ...]
hazelux has quit []
jenrzzz has joined #ruby
mistermocha has joined #ruby
Musashi007 has quit [Quit: Musashi007]
fullofcaffeine has quit [Remote host closed the connection]
<BraddPitt> jesus christ that font Ox0dea
niko has quit [Ping timeout: 608 seconds]
eL_bAmba has quit [Quit: Saliendo]
ascarter has joined #ruby
Musashi007 has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<darix> Ox0dea: so like this?
<darix> >> "%x" % 1023
<ruboto> darix # => "3ff" (https://eval.in/413948)
<darix> hm
nerdthattwerks has quit [Quit: Page closed]
s2013 has joined #ruby
_joes__ has quit [Ping timeout: 250 seconds]
<Ox0dea> darix: https://gist.github.com/0x0dea/c293075fd688066179b4 is the typical implementation, I think, but the inner call isn't in tail position.
freerobby has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
<Ox0dea> The solution is String#prepend in Ruby, but many languages don't have such a feature.
<Ox0dea> That also doesn't *really* put the call in tail position.
zanloy has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
einarj has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
<Ox0dea> BraddPitt: I think that font goes rather well with LOLCODE.
aeontech has joined #ruby
workmad3_ has quit [Ping timeout: 250 seconds]
aeontech has quit [Client Quit]
omegamike has joined #ruby
ishahnaz has quit []
ishahnaz has joined #ruby
dr3w has quit [Ping timeout: 272 seconds]
conor_ has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
safeforge has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
ivanskie has joined #ruby
omegamike has quit [Ping timeout: 265 seconds]
Contigi777 has quit [Quit: Leaving]
conor_ has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
jbw has quit [Ping timeout: 250 seconds]
j4cknewt_ has joined #ruby
jbw has joined #ruby
niko has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has quit [Ping timeout: 265 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]