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/
<tejasmanohar> lol
<tejasmanohar> nice work ! :P
hahuang61 has quit [Ping timeout: 244 seconds]
skade has quit [Ping timeout: 246 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
<tejasmanohar> got sidetracked looking at airfarewatchdog stuff :P - was writing a scraper to go get all the IATA codes they support for arrival/departure flights
HoppingMadMan has joined #ruby
<shevy> Ox0dea I don't even have any Rakefile
<Ox0dea> shevy: Huh?
HoppingMadMan has quit [Max SendQ exceeded]
HoppingMadMan has joined #ruby
<Ox0dea> shevy: You could change example.com to a server whose logs you have access to in order to (roughly) determine how many gem installs are automated.
<shevy> I have no server :(
Limix has quit [Quit: Limix]
crdpink2 has joined #ruby
HoppingMadMan has quit [Max SendQ exceeded]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
crdpink has quit [Ping timeout: 246 seconds]
texasmade has quit [Ping timeout: 246 seconds]
<shevy> Anything faster than Dir.entries ?
<Ox0dea> shevy: readdir(3)
<shevy> hmmm
DJSpies has quit [Ping timeout: 272 seconds]
monoprotic has quit [Ping timeout: 252 seconds]
hahuang61 has joined #ruby
scrudrv has joined #ruby
Matadoer_ is now known as Matadoer
hashrocket has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
marr has quit []
eggoez has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
rehat has quit []
zacstewart has joined #ruby
eggoez has joined #ruby
CloCkWeRX has joined #ruby
Casty has joined #ruby
CloCkWeRX has left #ruby [#ruby]
simplyianm has joined #ruby
hashrocket has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has quit []
scrudrv has quit []
blue_deref has quit [Quit: bbn]
<jtdoncas> where's a fun place to work? I'm thinking vancouver... any thoughts?
monoprotic has joined #ruby
monoprotic is now known as Guest71046
jbw has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
jbw has joined #ruby
diegoviola has joined #ruby
christiandsg has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
christiandsg has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
dogeuira has joined #ruby
dorei has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
funfunctor has joined #ruby
Guest71046 has quit [Ping timeout: 265 seconds]
cntrx has joined #ruby
cntrx has quit [Client Quit]
ndrei has quit [Ping timeout: 240 seconds]
texasmade has joined #ruby
jester13_ has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
DLSteve has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has joined #ruby
Guest78802 has quit [Quit: Connection closed for inactivity]
hahuang61 has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 255 seconds]
keen__________34 has joined #ruby
RegulationD has joined #ruby
zacstewart has quit [Remote host closed the connection]
keen__________33 has quit [Ping timeout: 260 seconds]
irctc944 has joined #ruby
<irctc944> hello im having some issues with my code, can anyone help?
<Ox0dea> ?anyone irctc944
<ruboto> irctc944, Just ask your question, if anyone has or can, they will respond.
RegulationD has quit [Ping timeout: 264 seconds]
<irctc944> okay is it okay if its a stackoverflow link? i posted it earlier. just dont wanna type out the whole thing again.
casadei_ has joined #ruby
Rickmasta has joined #ruby
treybul has quit [Ping timeout: 255 seconds]
erichodges has joined #ruby
Guest71046 has joined #ruby
Agoldfish has quit [Quit: G'Bye]
Thomas-0725 has joined #ruby
dfockler has joined #ruby
nateberkopec has quit [Quit: Leaving...]
casadei_ has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
<shevy> looks like rails, the rails guys are on #rubyonrails
Guest71046 has quit [Ping timeout: 265 seconds]
dfockler has quit [Ping timeout: 246 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
AndyBotwin has quit [Quit: Leaving]
Limix has quit [Quit: Limix]
Limix has joined #ruby
Limix has quit [Client Quit]
Soda has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
<erichodges> getting a syntax error when using this ruby program from Chris Pine:
<Ox0dea> erichodges: There is no syntax error in that program. Are you sure you're running it correctly?
allcentury has joined #ruby
<erichodges> I think so, but maybe not
<Ox0dea> erichodges: Well, how are you running it?
<erichodges> I tried locally and via a online ruby
<erichodges> and got the same error
<erichodges> test.rb:1: syntax error, unexpected tIDENTIFIER, expecting end-of-input
<erichodges> if name == 'Chr...pr name:'
null_ref has joined #ruby
dc has quit [Remote host closed the connection]
<al2o3-cr> erichodges: what does ruby -c test.rb say?
<al2o3-cr> oh nvm
<erichodges> I’ll check thx
<erichodges> it gives the same error
arooni has joined #ruby
<Ox0dea> erichodges: Are you on Windows?
<erichodges> mac
<erichodges> running ruby 2.0
funfunctor has quit [Ping timeout: 255 seconds]
<Ox0dea> ~ $ curl -Ls http://git.io/vOGSz | ruby -c
<Ox0dea> Syntax OK
<Ox0dea> erichodges: You've got to be doing something strange. :/
<erichodges> hmmmm
<erichodges> I’m totally new
<erichodges> so could be
jbw has quit [Ping timeout: 255 seconds]
hahuang61 has joined #ruby
<erichodges> on my local ruby anything more than a basic puts seems not to work
Mia has quit [Read error: Connection reset by peer]
jbw has joined #ruby
<Ox0dea> That's very strange.
<irctc944> i went on #rubyonrails, no one is answering me anyone here can help?
lwu_ has joined #ruby
bodgix has quit [Ping timeout: 272 seconds]
<ribbons> irctc944, what's your question?
<erichodges> I noticed on eval.in if I set it for ruby 2.0 it still works
<Ox0dea> erichodges: It's probably valid Ruby all the way back to the very beginning.
<erichodges> It should be
<erichodges> so something weird with my install?
<Ox0dea> Could be.
<erichodges> ruby -v yields: ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
decaff has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> erichodges: Do you have curl installed?
<irctc944> i posted my issue earlier on stack, thought it be easier than to explain the whole thing on here, http://stackoverflow.com/questions/31766477/trying-to-do-a-query-session-for-parse/
<erichodges> I don’t know
<erichodges> should I check somehow?
<Ox0dea> Run `which curl` and see if it says anything.
hahuang61 has quit [Ping timeout: 244 seconds]
<erichodges> ok
<erichodges> ‘/usr/bin/curl’
<Ox0dea> erichodges: Okay, that means you've got it installed.
<Ox0dea> erichodges: How about `curl -Ls git.io/vOGSz | ruby -c`?
<erichodges> syntax ok
<Ox0dea> erichodges: Then you're either not executing the code correctly, or else you're not actually executing the code that was in your Gist.
bruno- has joined #ruby
<Ox0dea> That git.io is just a shortlink to the raw text of the Gist you posted.
<erichodges> code was coppied direct from file
<Ox0dea> It must have been copied incorrectly.
<erichodges> hmmmmm
<erichodges> I’ll try with a different editor
<Ox0dea> I thought it might be that you've got mixed line endings in the code, but Ruby handles those just fine.
hahuang61 has joined #ruby
<erichodges> I’m using Atom
<irctc944> i posted my issue earlier on stack, thought it be easier than to explain the whole thing on here, http://stackoverflow.com/questions/31766477/trying-to-do-a-query-session-for-parse/
bruno- has quit [Ping timeout: 260 seconds]
<erichodges> I’ll try a different editor and check in later. I have to make some food. Thank you for your help it’s much appreciated!
<Ox0dea> Sure thing. Good luck.
<erichodges> do you have a preferred editor for mac?
Guest71046 has joined #ruby
lwu_ has quit [Quit: This computer has gone to sleep]
DJSpies has joined #ruby
dc has joined #ruby
arooni has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
<erichodges> I’ll check around, no problem… starving
<irctc944> can anoyone take a look at my link please?
christiandsg has joined #ruby
craysiii has joined #ruby
hahuang61 has joined #ruby
<craysiii> good day everyone :)
Guest71046 has quit [Ping timeout: 240 seconds]
lannonbr has joined #ruby
ivanf has quit [Ping timeout: 272 seconds]
blue_deref has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
NeverDie has joined #ruby
Thomas-0725 has quit [Ping timeout: 246 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
Thomas-0725 has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
gambl0re has joined #ruby
juanpablo_______ has joined #ruby
ivanf has joined #ruby
decaff has quit [Quit: Leaving...]
lwu_ has joined #ruby
arooni has joined #ruby
j_mcnally has joined #ruby
juanpablo_______ has quit [Ping timeout: 272 seconds]
<Rinzlit> What can you guys code in Ruby to impress females?
hahuang61 has joined #ruby
HoppingMadMan has joined #ruby
Guest21448 has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
montyboy has quit [Ping timeout: 246 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
<mozzarella> sex robot
<ribbons> let's start
<ribbons> class SexRobot end
Eiam_ has joined #ruby
<Ox0dea> SexRobot.define_method(:initialize) { |opts| @kinkiness = opts.fetch(:kinkiness, 5) }
Guest71046 has joined #ruby
hahuang61 has joined #ruby
senayar has quit [Remote host closed the connection]
_set has joined #ruby
dimasg has joined #ruby
_set has quit [Client Quit]
Guest21448 has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
cntrx has joined #ruby
cntrx has left #ruby [#ruby]
Contigi has joined #ruby
lwu_ has quit [Quit: This computer has gone to sleep]
Guest71046 has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
dorei has quit []
thesquidbits[SF] has joined #ruby
calleerlandsson has quit [Quit: Connection closed for inactivity]
tkuchiki has joined #ruby
hahuang61 has joined #ruby
theery has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
tubuliferous has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bustrarm has joined #ruby
tkuchiki has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bb010g has quit [Quit: Connection closed for inactivity]
theery has quit [Ping timeout: 255 seconds]
busterarm has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 240 seconds]
j4cknewt has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
Lewix has joined #ruby
<Lewix> hello people
hahuang61 has joined #ruby
<Coraline> Only Ferengi call women "females"
Guest71046 has joined #ruby
simplyianm has quit [Remote host closed the connection]
<Ox0dea> Coraline: Should we always use "women"?
<Coraline> Yep
<Ox0dea> Coraline: Isn't that potentially age-ist?
<Coraline> Nope
<Ox0dea> Coraline: How do you know Rinzlit isn't trying to impress his fourteen-year-old girlfriend?
<Coraline> He would have said "girls" or "young women"
zenguy_pc has quit [Read error: No route to host]
zenguy_pc has joined #ruby
<Ox0dea> Coraline: Why isn't "females" a conveniently inclusive term for all of the above?
<Coraline> It's clinical
<Ox0dea> What?
<mozzarella> what if he wants to impress girls *and* women?
<Ox0dea> ^
<Coraline> I'm done
<texasmade> i came in here at the right time
lwu has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<NoidedSuper> Oh boy, an argument about if "Women" is dehumanizing or not on a completely unrelated programming form
blaines has joined #ruby
<NoidedSuper> I love these
<Ox0dea> NoidedSuper: You've misinterpreted, I'm afraid.
scripore has joined #ruby
<NoidedSuper> Or, uh, "females"
<pontiki> and another example of someone completely not bothering to listen.
<NoidedSuper> as a term
<texasmade> listening to plain text is rather hard unless you have everything set up for that.
<pontiki> oh shut up
<texasmade> :D
<Ox0dea> Do consider taking her advice, though.
<NoidedSuper> Wait, was this not an instance where somebody used the term "Females" and somebody else said to use "Women" instead?
prestorium has joined #ruby
<NoidedSuper> I mean, for the record, I do think "women" is a better term in 99% of cases
gwendall has joined #ruby
christiandsg has joined #ruby
<Ox0dea> I vote for "people".
<Rinzlit> Ox0dea actually I was just bored trying to see if I could stir up a conversation of Ruby applications that can be used to impress people who don't know much about coding
dimasg has quit [Ping timeout: 255 seconds]
<Ox0dea> 2/10
hahuang61 has quit [Ping timeout: 240 seconds]
<Rinzlit> Ox0dea, You make it sound like I was trying to troll lol
<pontiki> <blink>
<Rinzlit> Ox0dea, I was hoping someone might have something impressive
<pontiki> that *is* a troll
<Rinzlit> And they'd want to show off
drewo has joined #ruby
pl1ght has quit [Ping timeout: 264 seconds]
gwendall has quit [Ping timeout: 256 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
<tabakhase> hm, i think ive got a understanding issue how ruby threats globals and cross-class comms...
<NoidedSuper> What's the issue?
simplyianm has joined #ruby
serivich has joined #ruby
erichodges has quit [Quit: erichodges]
arooni-mobile has joined #ruby
hahuang61 has joined #ruby
<tabakhase> not yet formed to an actuall issue or question :D
<tabakhase> still poking-around stage..
drewo has quit [Ping timeout: 244 seconds]
prestorium has quit [Quit: Konversation terminated!]
null_ref has quit [Quit: Lost terminal]
symm- has quit [Ping timeout: 260 seconds]
simplyianm has quit [Ping timeout: 255 seconds]
texasmade has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j3r0 has quit [Remote host closed the connection]
<tabakhase> var, :var, @var, $var... awww so much doku to read
<Ox0dea> tabakhase: You missed @@var. :P
<tabakhase> ty for the motivation :P
<Ox0dea> Local, symbol, instance, global, and class.
casadei_ has quit [Ping timeout: 265 seconds]
<Ox0dea> Five "kinds" of identifier really isn't so bad.
scripore has quit [Quit: This computer has gone to sleep]
<tabakhase> im not getting the symbol use yet, and im unsure "how global global is" - and if class is @@ i wonder whats diffrent to @
<craysiii> how could it be? it's explicit and each kind can be justified IMO
<Ox0dea> I agree.
<craysiii> sidenote- i just got your name. it took that long.
<Ox0dea> tabakhase: Symbols are essentially immutable strings; global variables are *really* global, insofar as they can be accessed from anywhere; and class varaibles are accessible from every instance of the class
<Ox0dea> *variables
Azure has joined #ruby
NoidedSuper has left #ruby [#ruby]
djbkd has quit [Quit: My people need me...]
<tabakhase> dont even bother explaining just now, ill do my homework with the docs first^^
<tabakhase> but when i get back from that and still have a "?" ill appreciate it =)
<al2o3-cr> and constants :p
<Ox0dea> Ah, constants too.
<Ox0dea> Also, "hidden" globals and instance variables.
hahuang61 has joined #ruby
pl1ght has joined #ruby
<shevy> Ox0dea loves globals
<shevy> especially $11
<Ox0dea> >> [Complex.constants(false), (Complex.const_get(:compatible) rescue $!)]
<ruboto> Ox0dea # => [[:compatible, :I], #<NameError: wrong constant name compatible>] (https://eval.in/410308)
<shevy> what the
<shevy> >> $11235235235 = 5
<ruboto> shevy # => /tmp/execpad-df676bf4d7a8/source-df676bf4d7a8:2: Can't set variable $2147483647 (https://eval.in/410309)
yqt has quit [Ping timeout: 244 seconds]
<shevy> so bogus!
<tabakhase> my current bummer more seems to be the general class concept anyway, too spoiled by years of php, trying to correctly wrap down to an interface kindish layer as im used to
<Ox0dea> tabakhase: PHP has classes...
<tabakhase> "concept" *shrug*
<Ox0dea> I take it you didn't use classes in your PHP code, then?
<craysiii> tabakhase are you taking any sort of class or just trying to learn on your own? codecademy?
dwithers has joined #ruby
s2013 has joined #ruby
scripore has joined #ruby
<eam> Ox0dea: to be fair ruby is a much classier language than php
sarkyniin has quit [Quit: Quit]
krz has quit [Quit: WeeChat 1.2]
<Ox0dea> The classiest!
<craysiii> in both ways ;P
<tabakhase> craysiii just a deep dive :D just wanne build a small tool with a few gems only ruby has, and "how hard" can another lang bee :P
freerobby has joined #ruby
serivich has quit [Ping timeout: 250 seconds]
<craysiii> i really recommend codecademy. it can be finished in a day or so and you will get a good beginner understanding of ruby and OOP
braincrash has quit [Quit: bye bye]
<Ox0dea> Ruby Koans > Codecadamy as an introduction to the language, in my opinion.
<tabakhase> but ive wrote some code before (php, c#, some java) so its mostly the "understanding how ruby wants it" and not so much the "how to code" :D
<craysiii> never heard of it.
<shevy> ruby wants it in a simple way
pl1ght has quit [Ping timeout: 260 seconds]
<tabakhase> some aka making my money with it for +6 years :F
<shevy> hence why everything is public, you need to make an effort to become private
<craysiii> i mean, ive used a multitude of languages as well, but i still did it.
<shevy> and .send happily ignores private \o/
senayar has joined #ruby
senayar has joined #ruby
sevenseacat has joined #ruby
<craysiii> even though you're versed in other languages, you're still a ruby beginner :)
<craysiii> so am i.
<shevy> if he knows php then he will pick up ruby in no time
<Ox0dea> I've not heard many good things about Codecademy; people tend to come away from it having learned how to type Ruby.
cornerma1 has joined #ruby
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> let's test his knowledge
<shevy> tabakhase how do you specify, in ruby, a class Cat
<Ox0dea> shevy: There are several ways to do so.
zacstewart has joined #ruby
freerobby has quit [Quit: Leaving.]
funfunctor has joined #ruby
<al2o3-cr> Cat = Class.new
<shevy> see this is why online classes don't work!
<al2o3-cr> meow!
<shevy> I also felt bad that my question contained the answer already :(
<Ox0dea> Object.const_set :Cat, Class.new
tmtwd has joined #ruby
ten27pm has joined #ruby
<Ox0dea> >> foo = Class.new; [foo.name, Foo = foo, foo.name] # Ruby is weird.
<ruboto> Ox0dea # => [nil, Foo, "Foo"] (https://eval.in/410311)
cornerman has quit [Ping timeout: 256 seconds]
senayar has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
postmodern has joined #ruby
<craysiii> >> # lets see if ruboto is smart
<ruboto> craysiii # => nil (https://eval.in/410312)
braincrash has joined #ruby
<craysiii> lol why even respond!
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Ox0dea> Check the link?
<shevy> ruboto is triggerhappy when you feed it >>
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> >​> Not always.
Eiam_ has joined #ruby
<craysiii> oh snap.
djbkd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<shevy> illegal unicode
darkf has joined #ruby
serivich has joined #ruby
Rickmasta has joined #ruby
maq has joined #ruby
gwendall has joined #ruby
s00pcan has quit [Read error: No route to host]
maq has quit [Client Quit]
[k- has joined #ruby
maq has joined #ruby
psy_ has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
texasmade has joined #ruby
eggoez has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
ten27pm has quit [Remote host closed the connection]
roo7 has joined #ruby
<ribbons> Is anyone familiar with haversine formula?
<ribbons> I'm having trouble determining what units it returns
juanpablo_______ has joined #ruby
eggoez has joined #ruby
ivanskie has joined #ruby
arooni has quit [Ping timeout: 246 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
gambl0re has quit []
gix has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
djbkd has quit [Quit: My people need me...]
<tabakhase> craysiii hehe the "done others" is more about the "i understood how computers work and can thinkery "things" into codeflow in my brains" + controllFlow :D
juanpablo_______ has quit [Ping timeout: 272 seconds]
gix has joined #ruby
<craysiii> yes but from your own admission it sounds like you need a formal introduction to OOP and classes.
gambl0re has joined #ruby
<craysiii> in ruby at least i mean
lwu has quit [Quit: This computer has gone to sleep]
null_ref has joined #ruby
tkuchiki has joined #ruby
poguez_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<Ox0dea> tabakhase: Feigning ignorance is, in very rare circumstances, the right thing to do, but never the opposite.
<Ox0dea> I ask out of genuine curiosity and not as an accusation: what good can ever come from pretending to know what one does not?
<sevenseacat> Ox0dea: you can get a job and or a pay rise. ;)
<tabakhase> this usually backfires^^
<Ox0dea> sevenseacat: That is, in most cases, a temporary benefit.
<sevenseacat> true, but I couldnt resist saying it.
<Ox0dea> Fair enough.
<tabakhase> :D
<Ox0dea> tabakhase: How do computers work? :D
<[k-> they don't
<Ox0dea> [k-!
<Ox0dea> tabakhase: Have you completed NAND to Tetris?
<[k-> Ox0dea!
irctc944 has quit [Ping timeout: 246 seconds]
<tabakhase> Similar to how babys are formed i guess
<tabakhase> and never heard of that Ox0dea
<Ox0dea> tabakhase: It wasn't always the case that computers begat computers; how were computers conceived before the advent of computers?
<[k-> taken out of context, you never heard of Ox0dea?!
<craysiii> Ox we know that's a chicken and egg problem
<craysiii> :P
<Ox0dea> He's never heard of *this* Ox0dea; I'm sure he's encountered the number 3562 elsewhere.
<nofxx> ribbons, haversine give meters
<nofxx> usually
<nofxx> anyone know a GUI file viewer that can handle huge files? need to peek 300mb..1gb files, really boring
charliesome has quit [Quit: zzz]
<Ox0dea> nofxx: Why use a GUI for that?
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ribbons> nofxx, could you link a source please?
<ribbons> I want to make sure
<ribbons> I've googled multiple times!
<nofxx> Ox0dea, trying to find a github, was a 'how computer works' from the button press to the electron...hehe
<nofxx> Ox0dea, well, because I don't know how to cat with some skip... now I see
<Ox0dea> nofxx: `head -c` should do.
<nofxx> ribbons, calculate 1 degree, it should be around 110km on the equador
<nofxx> Ox0dea, now I know, ty
Guest71046 has quit [Quit: bite me]
<Ox0dea> I suppose that might not be the one you had in mind.
Guest71046 has joined #ruby
<nofxx> ribbons, it's pretty easy for the function to divide by 1000 to give you km float or else, better to test if you can't see the code
Guest71046 has quit [Client Quit]
Guest71046 has joined #ruby
Guest71046 is now known as monoprotic
<nofxx> Ox0dea, yeah, I think that's the one
funfunctor has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
ivanskie has joined #ruby
<Ox0dea> Sine and cosine don't really have "units", per se, so why should Haversine?
<nofxx> Ox0dea, heheh, iirc it's a guy name
<roo7> hi guys. i'm new to ruby and i'm trying to learn by porting a small program from python. i'm wondering if anyone can help by telling me what i'm doing wrong. The problem i'm encountering is being able to share an argument from a method within a class to another in a different class
<roo7> http://codeshare.io/l5bTz if you would kindly :)
<nofxx> Ox0dea, he simplified the ellipsoidal distance, check #82 on that file
<nofxx> crazy 200 lines def
skade has joined #ruby
<Ox0dea> nofxx: "Haversine" is derived from "versine".
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> They're all functions of angles; they don't really have units.
<nofxx> Ox0dea, thanks again, didn't knew
<[k-> sin(θ) = [m/m]!
<[k-> the unit cancels
<Ox0dea> roo7: You should start by fixing the ASCII art. :P
<roo7> all in due time
tkuchiki has joined #ruby
<Ox0dea> "spotipy.rb" is high treason.
ndrei has joined #ruby
<Ox0dea> roo7: If you need two classes to share data, you're almost certainly doing it wrong.
<[k-> you have indentation problems >:/
<roo7> it looks like it didn't paste from sublime correctly
<craysiii> to the plank with you
<[k-> you do not need to explicitly use return in get_input
lannonbr has quit [Quit: WeeChat 1.2]
skade has quit [Ping timeout: 250 seconds]
<[k-> you can drop off some of the ()
jester13 has joined #ruby
<[k-> (i hope you do)
htmldrum has quit [Ping timeout: 260 seconds]
<roo7> haha will do
<nofxx> roo7, all that [k- is saying is: use rubocop
<nofxx> so you won't hurt our eyes ;)
<roo7> yeah, more importantly i want to get it to work before i make it look nice
<[k-> you want to make it look nice as you work, so that you dont run into technical debt
<nofxx> roo7, small code, just make 1 class out of it
<nofxx> App.run!
<roo7> cool. thanks for the help guys! back to the grindstone
ndrei has quit [Ping timeout: 260 seconds]
lwu has joined #ruby
<[k-> have you heard of instance variables?
Eiam_ has quit [Read error: Connection reset by peer]
monoprotic has quit [Quit: bite me]
monoprotic has joined #ruby
<[k-> (your code looks wrong to me, frankly)
<[k-> my inner rubyist is tingling!
tubuliferous has joined #ruby
<ribbons> nofxx, thanks for looking more into it
<ribbons> Ox0dea, same with you
<ribbons> What was the final verdict though?
<nofxx> Ox0dea, remember now why I was looking for some GUI thing... big files are .csv and .xml, csv ok but xml is really annoying to look at
<nofxx> (without some formating)
<nofxx> ribbons, test yours
<[k-> instead with the load of variable instantiation, maybe use a hash? those are configurable options, yes?
<nofxx> ribbons, 1 degree =~ 110km
<[k-> you can easily get it from a .yml, .json later
<[k-> .clear() and .refresh() seems to be used a lot, abstract it!
<Ox0dea> nofxx: Could you not pipe head -c into tidy?
Casty has quit [Quit: Textual IRC Client: www.textualapp.com]
tubuliferous has quit [Ping timeout: 240 seconds]
<Ox0dea> Also, grep's got -B(efore) and -A(fter) flags for when you know roughly what you're looking for.
phutchins has quit [Ping timeout: 246 seconds]
<[k-> refresh = -> window, &block { window.clear, block[window], window.refresh }
<[k-> readable code \o/
<nofxx> Ox0dea, hehe: 5556798 warnings, 2247054 errors were found! Not all warnings/errors were shown.
<Ox0dea> Jesus.
Vile` has quit [Ping timeout: 256 seconds]
<nofxx> 2M errors on a 22Mb file, each char is wrong
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Remote host closed the connection]
theery has joined #ruby
Vile` has joined #ruby
bazbing81 has quit [Ping timeout: 246 seconds]
bazbing80 has quit [Ping timeout: 255 seconds]
bazbing82 has quit [Ping timeout: 244 seconds]
<[k-> i bet they all stem from one error!
ayonkhan has joined #ruby
lkba has quit [Remote host closed the connection]
<Ox0dea> > In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.
<nofxx> Ox0dea, hehe, sounds douglas adams
<[k-> > People didnt exist then, what can they be angry about
tmillc has joined #ruby
zacstewart has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<tmillc> https://gist.github.com/anonymous/065e15ea05f094624bee -- why does this print 123456 if break is before the incrementor
<tmillc> (apologies if there's a #learnruby or something)
<nofxx> tmillc, is 5 > 5 ?
<tmillc> also I left off i=0 before all that
* tmillc smacks forehead
Channel6 has joined #ruby
htmldrum has joined #ruby
<[k-> you add after checking
<tmillc> nofxx: :P thanks
<[k-> nooo i was too slow
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
zacstewart has quit [Ping timeout: 252 seconds]
<[k-> if you are doing a for loop, i recommend 5.times { }
<nofxx> tmillc, yes, if you need to use loop in ruby you're doing it wrong
jonee has joined #ruby
<tmillc> nofxx: well I'm just doing what codecademy tells me to do :)
<tmillc> "loop" does strike me as a pretty weird method, but ok
<nofxx> tmillc, well, I think a good ruby tutorial should teach you ruby way, that is #times, and add a sidenote: ruby also supports loop and while
<Ox0dea> tmillc: Could you defend that last one?
shinnya has quit [Ping timeout: 272 seconds]
<Ox0dea> Why on earth wouldn't you consider "loop" to be the perfect name for a method that loops?
<tmillc> Ox0dea: it seems to me that a loop should be a structure that occurs due to a grammar
seitensei has quit [Read error: Connection reset by peer]
<Ox0dea> Pardon?
<tmillc> right I mean, it's fine and descriptive of what it does
<Ox0dea> Loops aren't data structures.
<Ox0dea> And "occurs due to a grammar" is arguably meaningless.
<tmillc> ok, algorithmic structures? mathematical structures?
<nofxx> tmillc, read your code, than read this (out and loud): 5.times { |n| puts n if n > 5 }
lwu has quit [Quit: This computer has gone to sleep]
<Ox0dea> nofxx: Your example doesn't print anything.
seitensei has joined #ruby
<nofxx> Ox0dea, haha, sorry <
<nofxx> Ox0dea, but just to exemplify the ruby idea of 'english code'
<tmillc> nofxx: yeah I'm more into haskell but ruby is for a job, and was my first exposure for programming <3
<[k-> <=*
<nofxx> tmillc, but more importantly: you don't need to control anything with vars or breaks
<nofxx> my code should read actually 5.times { |n| puts n }
<tmillc> but it was a very simple <, <= oversight.
yfeldblum has joined #ruby
<tmillc> nofxx: right, I wondered if it was something to do with the loop method but I'm just a fool and 5 < 5 was the problem.
j4cknewt has quit [Read error: Connection reset by peer]
<tmillc> hence the forehead smacking
casadei_ has joined #ruby
j4cknewt has joined #ruby
arescorpio has quit [Quit: Leaving.]
<Ox0dea> nofxx: 5.times &method(:puts)
lwu has joined #ruby
<nofxx> Ox0dea, had to irb it. method !??! damn.. that's new
yfeldblu_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lwu has quit [Remote host closed the connection]
<al2o3-cr> that'll start from 0 though?
<Ox0dea> Yes, it will.
<Ox0dea> map(&:succ) to the rescue.
<al2o3-cr> heh :)
charliesome has joined #ruby
lwu_ has joined #ruby
leat2 has quit [Ping timeout: 250 seconds]
leat2 has joined #ruby
<[k-> more obscure ways?
konsolebox has joined #ruby
<Ox0dea> I once used `i.succ` instead of `i + 1` to avoid the need for parentheses. Very humbling.
diegoviola has quit [Quit: WeeChat 1.2]
casadei_ has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
<nofxx> Ox0dea, haha, hard to forgive. Hey, would be nice to have some kind of `itself` to blocks... 5.times { puts thething }
<nofxx> thething would be one argument only
<[k-> &:itself exists
<Ox0dea> nofxx: That's essentially what &method(foo) does.
Tempesta has joined #ruby
ayonkhan has quit [Ping timeout: 240 seconds]
<Ox0dea> s/essential/exact/, really.
lwu_ has quit [Client Quit]
<[k-> abstract all away the thinking about incrementation, use .succ!
<al2o3-cr> or .next
<al2o3-cr> >=
<Ox0dea> >> %w[1 2 3].map &Kernel.method(:Integer) # nofxx
<ruboto> Ox0dea # => [1, 2, 3] (https://eval.in/410342)
ivanskie has joined #ruby
<Ox0dea> nofxx: map(&:to_i) == map { |x| x.to_i } and map(&method(:foo) == map { |x| foo(x) }
<nofxx> Ox0dea, yeah... but my way would be less cryptic... but more magical I admit
<Ox0dea> I'm not sure I follow.
<nofxx> [k-, I mean for the puts thing.. call a method that's not from/on itself
<Ox0dea> See above?
arup_r has joined #ruby
<nofxx> 5.times &method(:puts) vs 5.times { puts itself } , supposing the latter works
bronson has joined #ruby
<nofxx> less cryptic, more magical
<Ox0dea> I can't find the page you're on. :/
<[k-> lower bar for reading?
<[k-> magical, yes, it's less imperative
<Ox0dea> You simply must supply the block with an argument if you intend for it to have access to the elements being yielded.
jhubert has joined #ruby
<nofxx> Ox0dea, I know man, was just trippin' in that idea, gave emphasis on the 'supposing it works'
izabera has joined #ruby
theery has quit [Remote host closed the connection]
<Ox0dea> nofxx: To clarify, map(&method(:puts)) doesn't call #puts on the elements, it calls Kernel.puts *with* the elements.
arooni-mobile has joined #ruby
arooni-mobile has quit [Remote host closed the connection]
<Ox0dea> Just as in your `puts itself` example.
<nofxx> Ox0dea, yup, exactly
jonee has quit [Ping timeout: 255 seconds]
leat2 has quit [Remote host closed the connection]
<[k-> a = [1]; a.reduce(0) { |acc, i| p (a << acc+i) }
leat2 has joined #ruby
<izabera> hi, ruby newbie here. i found that performing math operations with numbers > 2^60 is rather slow, even if they're < 2^63
<izabera> does ruby use a bignum representation "too soon"?
roo7 has quit [Remote host closed the connection]
<Ox0dea> >> [2**62, 2**62-1].map(&:class) # izabera
<ruboto> Ox0dea # => [Bignum, Bignum] (https://eval.in/410347)
<izabera> i see
<Ox0dea> Dammit. eval.in is a 32-bit environment, but hopefully you get my intention.
<nofxx> izabera, curious, compared to what?
bronson has quit [Ping timeout: 265 seconds]
<izabera> compared to < 2^60
<nofxx> no I mean... C lib/matlab?
<nofxx> the slow part
<Ox0dea> izabera: Could you provide demonstration code?
RegulationD has joined #ruby
<Ox0dea> Ruby switches to Bignum at 2**62 in 64-bit environments; I can't think how to convince it to do so prematurely, but perhaps you've hit a weird edge case.
theery has joined #ruby
<izabera> no it's ok, i just expected it to go up to something like 2^63-1
<izabera> >> var=100000000000000000; for i in 1..1000000; x = var * 9; end; puts(x)
<ruboto> izabera # => 900000000000000000 ...check link for more (https://eval.in/410348)
<izabera> ^ takes .17s
<izabera> >> var=1000000000000000000; for i in 1..1000000; x = var * 9; end; puts(x)
<ruboto> izabera # => 9000000000000000000 ...check link for more (https://eval.in/410349)
<izabera> ^ takes .35s
<izabera> on my system, i mean
<izabera> anyway, it's not really a problem, i was just curious
tmtwd has quit [Remote host closed the connection]
<Ox0dea> izabera: Well, yeah, you're getting Bignums at var * 5+ in the second case.
RegulationD has quit [Ping timeout: 244 seconds]
<al2o3-cr> >> define_method(:foo) { |a, b=1, *c, d:, e: 1, &f| }; method(:foo).parameters.to_h
<ruboto> al2o3-cr # => {:req=>:a, :opt=>:b, :rest=>:c, :keyreq=>:d, :key=>:e, :block=>:f} (https://eval.in/410350)
<al2o3-cr> did i miss any?
jaimessi has joined #ruby
jester13 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150630154324]]
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby
DJSpies has quit [Quit: Leaving]
<Ox0dea> >> define_method(:foo) { |**kwargs| }; method(:foo).parameters # al2o3-cr
<ruboto> Ox0dea # => [[:keyrest, :kwargs]] (https://eval.in/410351)
<al2o3-cr> damn, i knew i'd missed one, cheers :)
riotjones has joined #ruby
funfunctor has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
niiamon has joined #ruby
senayar has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
<[k-> class Symbol; def -@; &method self; end end
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niiamon has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
serivich has quit [Ping timeout: 250 seconds]
<[k-> maybe we should have a &&
<[k-> oh, thats an operator
<[k-> welp
<[k-> what is it called again? superoperators?
serivich has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
jimms has joined #ruby
<Ox0dea> [k-: There's also Lollipops: https://gist.github.com/0x0dea/d58f4f276a4ffb317d46
djbkd has joined #ruby
speakingcode has quit [Ping timeout: 260 seconds]
<Ox0dea> Which I've just discovered segfaults on HEAD.
* [k- runs back to haskell
speakingcode has joined #ruby
juanpablo_______ has joined #ruby
Fevrale has joined #ruby
maq has quit [Quit: maq]
<[k-> this is presumably gold
davedev2_ has quit []
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Wow, &:upcase causes a segfault whereas { |x| x.upcase } works fine.
<Ox0dea> This should be interesting.
<[k-> i should start working on this sort of stuff for libobf!
<Ox0dea> Did you run the Lollipops example?
tejasmanohar has quit [Quit: WeeChat 1.2]
<[k-> no, im on my phone
<Ox0dea> Rawr.
<Ox0dea> It's cute.
juanpablo_______ has quit [Ping timeout: 240 seconds]
jonee has joined #ruby
<[k-> :o
<[k-> it returns -3!
lxsameer has joined #ruby
<[k-> hmm ~@ doesnt seem to work
<Ox0dea> [k-: Unary ~ must be defined without the asperand.
<Ox0dea> Yep.
<Ox0dea> +@, -@, ~, and !.
<Ox0dea> How do people even learn this language?
scripore has joined #ruby
<Ox0dea> >> instance_eval(&:to_s) # This segfaults on 2.3. :/
<ruboto> Ox0dea # => "main" (https://eval.in/410368)
<[k-> weird much
Rickmasta has joined #ruby
<Ox0dea> Way.
jhubert_ has joined #ruby
jhubert has left #ruby [#ruby]
_ixti_ has joined #ruby
jhubert_ is now known as jhubert
jhubert has quit [Client Quit]
jhubert has joined #ruby
weemsledeux has joined #ruby
yardenbar has joined #ruby
ixti has quit [Ping timeout: 246 seconds]
akkad has quit [Excess Flood]
fedexo has joined #ruby
Phrogz2 has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
<Phrogz2> I suppose the old 1.9 style of opts={} works better here.
Rickmasta has joined #ruby
akkad has joined #ruby
djbkd has quit [Remote host closed the connection]
thatsnotjack has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
scripore has quit [Quit: This computer has gone to sleep]
skade has joined #ruby
theery has quit [Remote host closed the connection]
theery has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Musashi007 has joined #ruby
djstorm has joined #ruby
j4cknewt_ has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
Channel6 has quit [Quit: Leaving]
diegoviola is now known as Guest26985
diego1 is now known as diegoviola
j4cknewt has quit [Ping timeout: 244 seconds]
Volsus has joined #ruby
Guest26985 has quit [Ping timeout: 272 seconds]
jhubert has quit [Quit: Textual IRC Client: www.textualapp.com]
jhubert has joined #ruby
zz_Outlastsheep has quit [Ping timeout: 272 seconds]
tmillc has quit [Quit: WeeChat 1.1.1]
tubuliferous has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
j4cknewt has joined #ruby
j4cknewt_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Volsus has quit [Ping timeout: 244 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonee has quit [Ping timeout: 244 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
lwu has joined #ruby
j4cknewt_ has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
lwu has quit [Client Quit]
riotjones has joined #ruby
radgeRayden_ has joined #ruby
radgeRayden_ has quit [Client Quit]
null_ref has quit [Quit: leaving]
senayar has joined #ruby
diego1 has joined #ruby
izabera has left #ruby ["WeeChat 1.2"]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
Oog_ has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
Phrogz2 has quit [Remote host closed the connection]
michael_mbp has joined #ruby
theery has quit [Remote host closed the connection]
lwu has joined #ruby
Oog_ is now known as help
senayar has quit [Ping timeout: 256 seconds]
help is now known as Guest88500
Guest88500 is now known as Oog
fedexo has quit [Ping timeout: 246 seconds]
jonee has joined #ruby
skade has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
jakesyl has joined #ruby
<jakesyl> Hello! how do I use this in a ruby file: https://github.com/mrsimo/torrentz ?
theobrowne has joined #ruby
<jakesyl> I tried require "Torrentz"
Oog has quit []
<Ox0dea> jakesyl: Did you install it?
<jakesyl> yep
Mia has joined #ruby
Mia has joined #ruby
<Ox0dea> Try not capitalizing it.
<jakesyl> sudo gem install torrentz
<jakesyl> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- torrentz (LoadError)
funfunctor has quit [Ping timeout: 252 seconds]
jtdoncas has quit [Read error: Connection reset by peer]
Ox0dea has quit [Read error: No route to host]
Ox0dea has joined #ruby
jtdoncas has joined #ruby
<Ox0dea> jakesyl: Are you able to require other gems you've installed, or is this the first you've tried?
<jakesyl> this is the first i've tried!
skade has joined #ruby
<Ox0dea> jakesyl: You're sure the `gem install` succeeded?
<[k-> ?root
<ruboto> general advice in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<Ox0dea> jakesyl: Are you on Windows?
<jakesyl> ubuntu 14.04
casadei_ has joined #ruby
<jakesyl> first time with ruby, I'm a hadoop/emr guy
<sevenseacat> you're missing the development headers for ruby
<sevenseacat> sudo apt-get install build-essential and reinstall ruby
<sevenseacat> and dont use apt rubies :(
<Ox0dea> sevenseacat: mkmf doesn't go into the standard library regardless?
<jakesyl> why?
skade has quit [Ping timeout: 260 seconds]
<sevenseacat> or just the -dev package of whatever ruby you installed from the apt repos, apparently
<jakesyl> nice
casadei_ has quit [Ping timeout: 246 seconds]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
Ox0dea has quit [Read error: Connection reset by peer]
Anthony__ has joined #ruby
monoprotic has quit [Ping timeout: 260 seconds]
psy_ has joined #ruby
__Aleserche__ has joined #ruby
psy_ has quit [Max SendQ exceeded]
_blizzy_ has quit [Ping timeout: 255 seconds]
psy_ has joined #ruby
sdwrage has joined #ruby
juanpablo_______ has joined #ruby
djbkd has joined #ruby
charliesome has quit [Quit: zzz]
phutchins has joined #ruby
juanpablo_______ has quit [Ping timeout: 244 seconds]
j4cknewt_ has quit [Read error: Connection reset by peer]
radgeRayden_ has joined #ruby
j4cknewt has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
radgeRayden__ has joined #ruby
radgeRayden has quit [Ping timeout: 250 seconds]
serivich has quit [Ping timeout: 250 seconds]
thatsnotjack has quit [Ping timeout: 256 seconds]
radgeRayden_ has quit [Ping timeout: 264 seconds]
monoprotic has joined #ruby
dvb_ua has joined #ruby
monoprotic has quit [Ping timeout: 246 seconds]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
skade has joined #ruby
rippa has joined #ruby
Volsus has joined #ruby
<jakesyl> ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
akkad has quit [Excess Flood]
jakesyl has left #ruby [#ruby]
jakesyl has joined #ruby
<sevenseacat> ?
gwendall has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Echohn has joined #ruby
GarethAdams has quit [Ping timeout: 256 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkad has joined #ruby
blue_deref has quit [Quit: bbn]
zz_Outlastsheep has joined #ruby
lemur has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
chinmay_dd has joined #ruby
Musashi007 has quit [Quit: Musashi007]
diego1 has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest52525
diego1 is now known as diegoviola
skade has joined #ruby
GarethAdams has joined #ruby
senayar has joined #ruby
chinmay_dd has quit [Client Quit]
Guest52525 has quit [Ping timeout: 252 seconds]
gambl0re has quit [Ping timeout: 244 seconds]
<jakesyl> hey i'm new to ruby and am trying to install this dependency:
Musashi007 has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
niiamon has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<sevenseacat> we know.
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
jonee has quit [Ping timeout: 272 seconds]
Volsus has quit [Quit: Leaving]
<jakesyl> so my first question is should I be using rvm for this?
<sevenseacat> no.
<sevenseacat> ?ubuntu
<ruboto> Ubuntu installation guide for Ruby + Rails: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
Echohn_ has joined #ruby
<jakesyl> why not?
diegoviola has quit [Ping timeout: 240 seconds]
<sevenseacat> see the link.
monoprotic has joined #ruby
diego1 has joined #ruby
jimms has quit [Remote host closed the connection]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
Echohn has quit [Ping timeout: 246 seconds]
<jakesyl> yeah I'm following the link, but why shouldn't I use rvm instead
theobrow1e has joined #ruby
<sevenseacat> check the postscript in the link.
monoprotic has quit [Ping timeout: 252 seconds]
bustrarm is now known as busterarm
theobrowne has quit [Ping timeout: 264 seconds]
diegoviola has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
TomyLobo has joined #ruby
<jakesyl> alright have it installed, should I try to install my gem now?
<sevenseacat> sure, why not
bruno- has joined #ruby
hakunin_ has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
hakunin has quit [Ping timeout: 265 seconds]
Fevrale has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jakesyl> okay, so I have it installed succesfully: https://github.com/mrsimo/torrentz do I have to require it in the file before I use it?
bruno- has quit [Ping timeout: 260 seconds]
jaimessi has quit [Remote host closed the connection]
<sevenseacat> probably.
<jakesyl> require "Torrentz"
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
<TomyLobo> no need to torrent. ruby is free software
<jakesyl> funny! but torrents aren't used exclusively for piracy it's very useful in distributing opensource software
<jakesyl> seriously though, how do I require this dependency?
* jakesyl is looking for the equivelant of import in python or java
<TomyLobo> i havent used ruby very much, but all the "require"s so far were lowercase
<[k-> >> require 'set'
<ruboto> [k- # => true (https://eval.in/410378)
<TomyLobo> >> require 'torrentz'
<ruboto> TomyLobo # => cannot load such file -- torrentz (LoadError) ...check link for more (https://eval.in/410379)
<sevenseacat> the filename is 'torrentz'
<TomyLobo> sevenseacat, is that really a filename? i thought it was a module name
<TomyLobo> i.e. part of the name of the according gem directory
<[k-> require loads the filename
<TomyLobo> ok so if i make a gem named foo containing a file named bar.rb, that gets loaded with require 'bar'?
lwu has quit [Ping timeout: 246 seconds]
<sevenseacat> if the gem defines that 'bar' is the entry point, yeah
radgeRayden__ has quit [Ping timeout: 250 seconds]
<TomyLobo> good, i hoped there was some kind of filter
Trynemjoel has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
j4cknewt has joined #ruby
bmcginty has quit [Ping timeout: 252 seconds]
lemur has quit [Remote host closed the connection]
tubuliferous has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt_ has joined #ruby
djbkd has quit [Quit: My people need me...]
tubuliferous has quit [Ping timeout: 250 seconds]
bmcginty has joined #ruby
lemur has joined #ruby
monoprotic has joined #ruby
djbkd has joined #ruby
RandyT has quit [Ping timeout: 260 seconds]
jtdoncas has quit [Read error: Connection reset by peer]
jtdoncas has joined #ruby
modern has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
modern has joined #ruby
monoprotic has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
lwu_ has joined #ruby
<TomyLobo> if i use #{} in a regex, does that automatically escape the string for me?
<[k-> no
<TomyLobo> too bad :)
<[k-> #{Regex.escape string} perhaps
<TomyLobo> ah
<[k-> Regexp*
<[k-> &ri Regexp.escape
jimms has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
HoppingMadMan has quit [Ping timeout: 250 seconds]
texasmade has quit [Ping timeout: 252 seconds]
lwu_ has quit [Client Quit]
quimrstorres has joined #ruby
<TomyLobo> i'm writing a rfusefs driver, so essentially i have '/'-delimited paths and i want to route them to certain handlers
<TomyLobo> this sounds terribly like web stuff, is there some routing mechanism i can abuse?
j4cknewt_ has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
<TomyLobo> including stuf like /issues/:issue_id/comments/:comment_id
<TomyLobo> +f
lwu has joined #ruby
j4cknewt has joined #ruby
Matthews_ has quit [Remote host closed the connection]
senayar has joined #ruby
niiamon has quit [Remote host closed the connection]
<TomyLobo> i should ask in #rails i guess :)
<TomyLobo> or ##rails...
casadei_ has joined #ruby
Gadgetoid has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
<TomyLobo> ah, it's #rubyonrails :)
<[k-> yes, you got it!
quimrstorres has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
Dopagod has joined #ruby
khebbie has joined #ruby
quimrstorres has quit [Remote host closed the connection]
monoprotic has joined #ruby
hmnhf has joined #ruby
juanpablo_______ has joined #ruby
konsolebox has quit [Read error: Connection timed out]
j4cknewt has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
quimrstorres has joined #ruby
monoprotic has quit [Ping timeout: 265 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
OrbitalKitten has joined #ruby
Trynemjoel has joined #ruby
juanpablo_______ has quit [Ping timeout: 255 seconds]
olistik has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jimms has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
jimms has joined #ruby
skade has joined #ruby
quimrstorres has joined #ruby
ruurd has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
space_milk has joined #ruby
space_milk has left #ruby [#ruby]
houhoulis has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
lemur has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
sameerynho has joined #ruby
quimrstorres has quit [Remote host closed the connection]
_ht has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> [k-: I tracked it down! https://bugs.ruby-lang.org/issues/11409
<Ox0dea> God bless ccache.
Trynemjoel has joined #ruby
quimrstorres has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
<[k-> you were dead a few minutes ago
lxsameer_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<[k-> such Ruby internal jargon, me no understand
Mendenhall has joined #ruby
lxsameer has joined #ruby
hectortrope has joined #ruby
sameerynho has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
lxsameer_ has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
<Ox0dea> [k-: And all because you wondered aloud about superators.
<Ox0dea> You are to blame for these tribulations!
<Ox0dea> As well as the inevitable triumph, of course.
gwendall has joined #ruby
lemur has joined #ruby
layke_ has joined #ruby
<[k-> i helped you find a bug, where you will be throned as a contributor!
<Ox0dea> Nah, I can't find where to fix the damned thing. :/
bronson has quit [Ping timeout: 246 seconds]
monoprotic has joined #ruby
<layke_> Hey. I installed ruby. (ubuntu 14.04). apt-get install ruby-full, then I tried to install rubygems.. (I'm trying to get jekyll installed). When I try and use jekyll, I notice that my gems are isntalled in /var/lib/gems/1.9.1/ .. however, ruby -v shows me as ruby 1.9.3p484
<[k-> dont worry, it will come to you in a prediction ;)
j4cknewt has quit [Read error: Connection reset by peer]
<layke_> Is this a problem? Because I get errors when I trya nd run jekyll build...
j4cknewt_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<Ox0dea> layke_: No, it shouldn't be a problem. Would you mind posting the exact error(s) you're receiving?
quimrstorres has joined #ruby
doublemalt_ has joined #ruby
<layke_> Sure.
whiteline has quit [Read error: Connection reset by peer]
<Ox0dea> layke_: Install haml.
Trynemjoel has quit [Ping timeout: 250 seconds]
Violentr has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
whiteline has joined #ruby
<layke_> Okay. Done. Next error.. presumably.. I install japr now.
<layke_> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- japr
zacts has quit [Quit: leaving]
Trynemjoel has joined #ruby
<layke_> I don't know ruby.gems, but I thought that the Gemfile automatically installs the dependencies?
<Ox0dea> layke_: It does, but neither haml nor japr is a jekyll dependency.
DoubleMalt has quit [Ping timeout: 252 seconds]
monoprotic has quit [Ping timeout: 255 seconds]
<yxhuvud> it doesn't install dependencies of host system packages
drewo has joined #ruby
olistik has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
jschmid has joined #ruby
<layke_> Ox0dea, I see.Okay. Thanks
zacts has joined #ruby
<[k-> Ox0dea, are you ruminating?
<Kalov> Ox0dea you are true hero
j4cknewt_ has quit [Read error: Connection reset by peer]
<Ox0dea> <3 * 3
Trynemjoel has quit [Ping timeout: 256 seconds]
<Ox0dea> Kalov: What'd I do?
j4cknewt has joined #ruby
<Ox0dea> [k-: Yes, I'm poking.
<Ox0dea> Might need some hammock time.
<Kalov> you always solve problems and help everyone <3
<Ox0dea> ^_^
quimrstorres has joined #ruby
<Kalov> i just come to this channel and there you are :)
<[k-> he is solving a bug in Ruby 2.3!
Trynemjoel has joined #ruby
htmldrum has joined #ruby
khebbie has quit [Remote host closed the connection]
theobrow1e has quit [Quit: leaving]
quimrstorres has quit [Remote host closed the connection]
theobrowne has joined #ruby
khebbie has joined #ruby
<layke_> Ox0dea, New error,
<layke_> /var/www/rentivo.com/docs/plugins/pygments_code.rb:1:in `require': cannot load such file -- pygments
quimrstorres has joined #ruby
<layke_> Attempted to load by.. gem instlal pygments
<layke_> But says none found.
<Ox0dea> layke_: gem install pygments.rb
<[k-> pygmemts is py?
<Ox0dea> [k-: It was originally developed in Python, yes.
ohaibbq has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<layke_> I'm sure all the previous times I've installed jeyll, it's been a two step process.
<layke_> Ox0dea, gem install pygments.rb worked, but running jekyll build, still gives that same error.
j4cknewt has quit [Ping timeout: 246 seconds]
khebbie has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
quimrstorres has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aiesec has quit [Ping timeout: 252 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
tenderlove has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby
djbkd has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 246 seconds]
CloCkWeRX has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mendenhall has quit [Ping timeout: 250 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
sameerynho has joined #ruby
monoprotic has joined #ruby
monoprotic has quit [Changing host]
monoprotic has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
Silox| has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
lxsameer has quit [Ping timeout: 264 seconds]
zacstewart has joined #ruby
krz has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
monoprotic has quit [Ping timeout: 240 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
Vile` has joined #ruby
olistik has joined #ruby
theobrowne has quit [Quit: leaving]
Blaguvest has quit []
tubuliferous has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
lxsameer_ has joined #ruby
Trynemjoel has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
sameerynho has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
marr has joined #ruby
stamina has joined #ruby
skade has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
sameerynho has joined #ruby
Trynemjoel has joined #ruby
lwu has quit [Quit: This computer has gone to sleep]
khebbie has joined #ruby
lxsameer_ has quit [Ping timeout: 255 seconds]
khebbie has quit [Remote host closed the connection]
dvb_ua has quit [Quit: WeeChat 1.1.1]
drewo has quit [Ping timeout: 246 seconds]
<layke_> Does this error make sense? Who sould I report it to?
Trynemjoel has quit [Ping timeout: 250 seconds]
Hounddog has joined #ruby
max has joined #ruby
jimms has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
max is now known as Guest72491
einarj has joined #ruby
Hounddog has quit [Ping timeout: 250 seconds]
Vile` has joined #ruby
Hounddog has joined #ruby
monoprotic has joined #ruby
<Ox0dea> layke_: RDoc is being told to parse this file: http://git.io/vOZxs
<Ox0dea> Apparently, it's not handling it very well.
rakm has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
yfeldblum has joined #ruby
araujo has quit [Quit: Leaving]
monoprotic has quit [Ping timeout: 250 seconds]
A124 has joined #ruby
A124 has quit [Changing host]
A124 has joined #ruby
<layke_> Hmm
<layke_> Really struggling with this pygments install
Trynemjoel has joined #ruby
casadei_ has joined #ruby
<layke_> I'm heading out now.. private message if anyone has any ideas :)
Guest72491 has quit [Quit: Saliendo]
dfockler has joined #ruby
niiamon has joined #ruby
casadei_ has quit [Ping timeout: 240 seconds]
dc has quit [Remote host closed the connection]
phutchins has joined #ruby
dfockler has quit [Ping timeout: 264 seconds]
ragingcake has joined #ruby
ruurd has joined #ruby
lemur has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
juanpablo_______ has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Ping timeout: 246 seconds]
juanpablo_______ has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
Trynemjoel has joined #ruby
j4cknewt has joined #ruby
Anthony__ is now known as _blizzy_
djbkd has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
lxsameer_ has joined #ruby
jakesyl has quit [Ping timeout: 252 seconds]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
Trynemjoel has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
spider-mario has joined #ruby
sameerynho has joined #ruby
lxsameer_ has quit [Ping timeout: 244 seconds]
monoprotic has joined #ruby
zacstewart has joined #ruby
jakesyl has joined #ruby
erichf has quit [Quit: YourBNC - (https://yourbnc.co.uk)]
senayar has quit [Remote host closed the connection]
monoprotic has quit [Ping timeout: 244 seconds]
Echohn_ has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
OrbitalKitten has joined #ruby
layke_ has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 256 seconds]
matp has quit [Ping timeout: 255 seconds]
Hounddog has quit [Remote host closed the connection]
bruno- has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.3-dev]
matp has joined #ruby
jschmid has quit [Ping timeout: 240 seconds]
<sevenseacat> lacrosse: well you're using an EOL version of ruby, for starters
<sevenseacat> bah sorry lacrosse
ruurd has quit [Quit: ZZZzzz…]
j4cknewt has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 256 seconds]
FernandoBasso has joined #ruby
Omni- has quit [Excess Flood]
liiight2 has joined #ruby
j4cknewt has joined #ruby
Trynemjoel has joined #ruby
Omni- has joined #ruby
khebbie has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
j4cknewt has quit [Ping timeout: 260 seconds]
khebbie has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
jschmid has joined #ruby
CloCkWeRX has joined #ruby
bodgix has joined #ruby
AlexRussia has joined #ruby
RegulationD has joined #ruby
BTRE has quit [Remote host closed the connection]
sross_work|2 has quit [Read error: Connection reset by peer]
sross_work|2 has joined #ruby
monoprotic has joined #ruby
monoprotic has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Ping timeout: 256 seconds]
bruno- has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
monoprotic has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
Hobbyboy has quit [Quit: I think the BNC broke.]
alex88 has quit [Quit: Bye bye]
nofxx has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
bruno- has joined #ruby
banister has joined #ruby
j4cknewt has joined #ruby
aiesec has joined #ruby
banister has quit [Client Quit]
sarkyniin has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
charliesome has joined #ruby
skade has joined #ruby
nofxx has joined #ruby
djbkd has joined #ruby
The_Phoenix has joined #ruby
ruurd has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
skade has quit [Quit: Computer has gone to sleep.]
ruurd has quit [Client Quit]
j4cknewt has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
pengin has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
banister has joined #ruby
DexterLB has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
banister has quit [Client Quit]
j4cknewt has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
monoprotic has joined #ruby
Trynemjoel has joined #ruby
banister has joined #ruby
aiesec has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
banister has quit [Client Quit]
banister has joined #ruby
monoprotic has quit [Ping timeout: 240 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
lxsameer_ has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
Muhannad has joined #ruby
banister has quit [Client Quit]
bruno- has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
Trynemjoel has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
Trynemjoel has joined #ruby
bruno- has joined #ruby
banister has joined #ruby
<shevy> dumdedum
bodgix has quit [Ping timeout: 244 seconds]
stamina has quit [Ping timeout: 246 seconds]
gwendall has quit [Remote host closed the connection]
dimasg has joined #ruby
abara has joined #ruby
abara has quit [Client Quit]
aiesec has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has joined #ruby
banister has joined #ruby
casadei_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
casadei_ has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
otisZart has joined #ruby
bodgix has joined #ruby
noeden has joined #ruby
allcentury has joined #ruby
juanpablo_______ has joined #ruby
monoprotic has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
<noeden> Hi there. I am new to ruby development and I am trying to develop a command line application with gli. I have to execute it with bundler exec bin/application. How can I install the application to ommit this?
Pupeno has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
juanpablo_______ has quit [Ping timeout: 264 seconds]
<shevy> no idea about bundler, but in a normal gem structured direction, you just put the file into bin/name_here
<shevy> then when you install that .gem file, it'll be available on the commandline
monoprotic has quit [Ping timeout: 244 seconds]
bruno- has quit [Read error: Connection reset by peer]
<shevy> in the .gemspec file, it will be an entry such as ".executables ="
bruno- has joined #ruby
serivich has joined #ruby
Trynemjoel has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<noeden> ah thanks. I have to pack it into a gem file ;)
<noeden> Thanks!
jhubert has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> that is the traditional way, to write a .gemspec
<shevy> bundler can use Gemfile, I don't really know the format though
<shevy> there is also #bundler btw in the case nobody else can help
bruno- has quit [Read error: Connection reset by peer]
<noeden> I think you gave me enough hints to figure it out myself, thanks a lot
<shevy> \o/
marr has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
liiight2 has left #ruby [#ruby]
ishahnaz has joined #ruby
jonee has joined #ruby
djbkd has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
araujo_ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
dseitz has joined #ruby
noeden has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
calleerlandsson has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
sarkyniin has quit [Quit: Quit]
spidermario has joined #ruby
khebbie has joined #ruby
jschmid has quit [Remote host closed the connection]
[k-_ has joined #ruby
spider-mario has quit [Disconnected by services]
spidermario is now known as spider-mario
alveric has joined #ruby
senayar has joined #ruby
bodgix has quit [Ping timeout: 250 seconds]
quimrstorres has joined #ruby
einarj has joined #ruby
michael_mbp has quit [Excess Flood]
chipotle has quit [Quit: cheerio]
ndrei has joined #ruby
michael_mbp has joined #ruby
monoprotic has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
aiesec has quit [Read error: Connection reset by peer]
jbw has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
duoi has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 246 seconds]
alveric has quit [Read error: Connection reset by peer]
jbw has joined #ruby
alveric has joined #ruby
davedev24 has joined #ruby
monoprotic has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
GriffinHeart has joined #ruby
bruno-_ has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
lapide_viridi has joined #ruby
phutchins has joined #ruby
alveric has quit [Read error: Connection reset by peer]
alveric has joined #ruby
duoi has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
twistedpixels has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Remote host closed the connection]
aiesec has joined #ruby
Iskarlar has joined #ruby
alveric has quit [Ping timeout: 244 seconds]
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
khebbie has quit [Remote host closed the connection]
alveric has joined #ruby
Iskarlar has quit [Client Quit]
RegulationD has joined #ruby
asjidfagruin has joined #ruby
gwendall has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
twistedpixels has joined #ruby
hmnhf has quit [Ping timeout: 240 seconds]
rubytor has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monoprotic has joined #ruby
monoprotic has joined #ruby
Soda has joined #ruby
j3r0 has joined #ruby
tubuliferous has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
jonee has joined #ruby
atomical has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
monoprotic has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
spider-mario has quit [Remote host closed the connection]
lordkryss has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
ragingcake has quit [Quit: ragingcake]
D-unit has joined #ruby
epistrephein has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
symm- has joined #ruby
tsvenson has quit [Read error: No route to host]
D-unit has quit [Client Quit]
bruno- has joined #ruby
djbkd has joined #ruby
bruno-_ has quit [Read error: Connection reset by peer]
Thomas-0725 has joined #ruby
asjidfagruin is now known as UKFAGSMOKER\
UKFAGSMOKER\ is now known as UKFAGSMOKER
leafybasil has quit [Remote host closed the connection]
ragingcake has joined #ruby
Xaitec has joined #ruby
ynroot has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
bnizzle has joined #ruby
tenderlove has quit [Ping timeout: 265 seconds]
meshugga1 has left #ruby [#ruby]
ynroot has quit [Ping timeout: 260 seconds]
jonee has joined #ruby
thiagolc has joined #ruby
fantazo has quit [Quit: Verlassend]
thiagolc has left #ruby [#ruby]
gard has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
einarj has joined #ruby
niiamon has quit [Remote host closed the connection]
juanpablo_______ has joined #ruby
zacstewart has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
ishahnaz has quit []
<bnizzle> hey guys
<bnizzle> i need a hand trying to send a HTTP POST request
mjs2600_ has joined #ruby
<bnizzle> im trying to auth to Eve's Crest system https://developers.eveonline.com/resource/single-sign-on
Trynemjoel has joined #ruby
<bnizzle> i can get the first code via the redirect
<bnizzle> then when i go to authenticate it i keep getting an invlaid header error
<bnizzle> if im using httparty this should be correct?
<bnizzle> @verify = HTTParty.post('https://login.eveonline.com/oauth/token',
<bnizzle> :body => { "grant_type" => "authorization_code&code=#{params[:code]}"},
<bnizzle> :headers => { "Authorization" => "Basic #{ basic_code }"})
<bnizzle> or have i screwed up somewhere?
jonee has quit [Ping timeout: 246 seconds]
[k-_ has joined #ruby
mjs2600_ is now known as mjs2600
ishahnaz has joined #ruby
mjs2600 has quit [Client Quit]
tenderlove has joined #ruby
mjs2600 has joined #ruby
monoprotic has joined #ruby
monoprotic has joined #ruby
juanpablo_______ has quit [Ping timeout: 244 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 264 seconds]
The_Phoenix has joined #ruby
skade has joined #ruby
casadei_ has joined #ruby
monoprotic has quit [Ping timeout: 265 seconds]
Billias has quit [Remote host closed the connection]
aryaching has joined #ruby
tkuchiki has joined #ruby
dimasg has joined #ruby
casadei_ has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
ivanskie has joined #ruby
Trynemjoel has joined #ruby
<UKFAGSMOKER> y'all ever programmed stuff in ruby that makes fun games and such?
dgutierrez1287 has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
niiamon has joined #ruby
scripore has joined #ruby
jonee has joined #ruby
serivich has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 250 seconds]
davedev24 has quit []
havenwood has joined #ruby
Trynemjoel has joined #ruby
alveric has quit [Remote host closed the connection]
Muhannad has quit [Ping timeout: 246 seconds]
alveric has joined #ruby
<shevy> UKFAGSMOKER I found that games are a lot of work
Billias has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
RandyT has joined #ruby
Phrogz2 has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
<[k-_> just popped this off of the gist feed: https://gist.github.com/ledestin/5400193fc0ba616c2585
CloCkWeRX has quit [Ping timeout: 256 seconds]
<[k-_> there is very little ruby
<[k-_> c#, java, js, md is frequent
<[k-_> im 11 pages in and only one ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
monoprotic has joined #ruby
Jackneill has joined #ruby
GriffinHeart has joined #ruby
alveric has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
Trynemjoel has joined #ruby
<shevy> ruby has a lot of competition
<shevy> if only they could use ruby rather than javascript
<[k-_> too bad it's not for ruby though
<[k-_> yeah, javascript zzz
epistrephein has quit []
lkba has joined #ruby
alveric has joined #ruby
grios has quit [Ping timeout: 264 seconds]
htmldrum has quit [Ping timeout: 260 seconds]
ponga has joined #ruby
_blizzy_ has quit [Quit: Leaving]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
Jarboe has joined #ruby
unshadow has joined #ruby
<unshadow> >> a = "Testing: bar"; a.match(/Testing:(.*?)/).to_a
<ruboto> unshadow # => ["Testing:", ""] (https://eval.in/410495)
leafybasil has joined #ruby
<unshadow> Why would'nt it return 0=testing 1=bar ?
GriffinHeart has quit [Remote host closed the connection]
scripore has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 256 seconds]
davedev24 has joined #ruby
<[k-_> im not sure why, (not a regexp expert), but the non-greedy .*? did not match bar
djbkd has joined #ruby
<[k-_> if you remove the ?, it would work
Azure has quit [Ping timeout: 255 seconds]
<[k-_> non-greedy became lazy, i guess
Trynemjoel has joined #ruby
<unshadow> Oh... damn... thats a breaking change for me Oo, are you sure ?
<shevy> greedy but lazy - what a combination
serivich has joined #ruby
<[k-_> >> "Testing: bar".match(/Testing:(.*)/).to_a
<ruboto> [k-_ # => ["Testing: bar", " bar"] (https://eval.in/410496)
<TomyLobo> grazy
ragingcake has quit [Quit: ragingcake]
<[k-_> no, non-greedy → lazy
Billias has quit [Read error: Connection reset by peer]
rdark has joined #ruby
ragingcake_ has joined #ruby
<[k-_> "Testing: bar x".match /Testing:(.*?)x/ works though
<pontiki> fascinating
<pontiki> i would think it should match
<[k-_> You can try your regexps out on http://rubular.com/
serivich has quit [Client Quit]
bronson has joined #ruby
<shevy> or you can ask [k-_ to try it for you!
<[k-_> i already did
<unshadow> When did the change occured ? can you remmber a version number ? (I need to change some 100+\- places in my program now)
sdothum has joined #ruby
<shevy> 1.9>> a = "Testing: bar"; a.match(/Testing:(.*?)/).to_a
<[k-_> there wasn't a change, i think
<shevy> what is the syntax to invoke a special version again?
djbkd has quit [Ping timeout: 272 seconds]
<[k-_> the parser was just being lazy as there isnt a need to evaluate the rest
<shevy> so lazy
<[k-_> 19>> a = "Testing: bar"; a.match(/Testing:(.*?)/).to_a
<ruboto> [k-_ # => ["Testing:", ""] (https://eval.in/410497)
<unshadow> [k-_: it was working till latly
<[k-_> 18>> a = "Testing: bar"; a.match(/Testing:(.*?)/).to_a
<ruboto> [k-_ # => ["Testing:", ""] (https://eval.in/410498)
theery has joined #ruby
<[k-_> it never worked!
<unshadow> Hm...
theery has quit [Remote host closed the connection]
<[k-_> you need to match something else at the end of the string
<unshadow> ok... this is wierd
Billias has joined #ruby
<[k-_> 22:22:35 ([k-_) "Testing: bar x".match /Testing:(.*?)x/ works though
ragingcake_ has quit [Ping timeout: 246 seconds]
<shevy> it never worked?
<[k-_> i think it was doing right, being a lazy programmer
Neon has joined #ruby
<shevy> but he has +100 places where it did work :\
Azure has joined #ruby
<[k-_> as i said
<[k-_> 22:22:35 ([k-_) "Testing: bar x".match /Testing:(.*?)x/ works though
<[k-_> you have to match something else behind the non-greedy operator
<pontiki> it works the same in perl
<pontiki> apparently so
<[k-_> as shown by experimental results
<unshadow> shevy: looking at what [k-_ said... this indeed seems to be the cse, I usually do (.*?)\n or something, so there is a \n in the end
<unshadow> my bad :(
<[k-_> if perl says so, it must be true!
erichodges has joined #ruby
<shevy> aha
<shevy> so a trailing \n is the evildoer
stamina has joined #ruby
<pontiki> try appending a $
<pontiki> (not \z)
Violentr has quit [Ping timeout: 246 seconds]
<[k-_> unshadow: so you didnt do it for this case?
bronson has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
omegahm has quit [Quit: YourBNC - (https://yourbnc.co.uk)]
<Neon> Hello, I'm trying to send some bytes to a server using TCPSocket and there's a 30 second delay until the data is sent. I open the socket, call write twice with strings made with Array#pack, call read and output the result. When I execute that code it takes 30 seconds until the response is output. With a similar script in Python I get an immediate response so it's rather not a server/application issue.
<unshadow> [k-_: yeha, this specific try I didn't do a \n in the end and I didn't notice... I feel stupid , sorry
<unshadow> Neon: socket.flush
<pontiki> >> "Testing: bar".match(/Testing:(.*?)$/)
<ruboto> pontiki # => #<MatchData "Testing: bar" 1:" bar"> (https://eval.in/410499)
skade has quit [Quit: Computer has gone to sleep.]
aiesec has quit [Ping timeout: 246 seconds]
<unshadow> pontiki: what does $ means ?
<Neon> unshadow, already tested that, but I'll try it again.
<pontiki> end of line
<[k-_> (before a newline, that is)
GriffinHeart has quit [Remote host closed the connection]
<pontiki> yes
GriffinHeart has joined #ruby
<pontiki> >> "Testing: bar\nought else".match(/Testing:(.*?)$/)
<ruboto> pontiki # => #<MatchData "Testing: bar" 1:" bar"> (https://eval.in/410500)
<[k-_> it forces the non-greedy operator to look at the rest of the string
<pontiki> >> "Testing: bar\nought else".match(/Testing:(.*?)\z/)
<ruboto> pontiki # => nil (https://eval.in/410501)
<Neon> unshadow, doesn't work unfortunately :(
<unshadow> Neon: when building the socket you can try using the nodelay flag
<[k-_> Neon: have you waited 30s yet :3
erichodges has quit [Client Quit]
<Thomas-0725> is it ok/reliable to use something like this_statement_is_true || perform action ? e.g. 1 == var || var = 3 (as in, assign 3 to var unless var already equals 1)
haroldwu has joined #ruby
<Neon> unshadow, where do I pass that? I'm using http://ruby-doc.org/stdlib-2.2.0/libdoc/socket/rdoc/TCPSocket.html
<pontiki> Thomas-0725: it seems a bit more obscure than doing: var = 3 if 1 == var
<[k-_> Thomas-0725: yes, that would work
<[k-_> pontiki: there is still something wrong with that order there
<[k-_> the subject is wrong!
<pontiki> kay: most people would reverse the 1 == var
nsuke has quit [Remote host closed the connection]
<pontiki> but it is not incorrrect
<pontiki> if you mistype == with = a lot, the error shows up a lot faster if you put the immutable part on the left :)
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
<unshadow> Neon: s = TCPSocket.new(bla, 80); s.setsockpot(Socket::Option.linger(false))
<Thomas-0725> pontiki, ok thanks. Although I would use unless 1 == var for my example, but point taken no less
<[k-_> pontiki: substitude a logical error with another?
The_Phoenix has quit [Read error: Connection reset by peer]
<unshadow> Neon: or (true, 10)
<unshadow> etc..
<pontiki> oh, sorry, Thomas-0725,you are correct: unless instead of if
aryaching has quit [Read error: Connection reset by peer]
<Thomas-0725> 1 == var is not a logical error
thatsnotjack has joined #ruby
<[k-_> you are going to check if var (the subject) is equal to 1 (the object)
<pontiki> it's possible you may have to hunt for quite some time to find out that you typed var = 1 instead of var == 1; 1 == var will blow up right away
<pontiki> it's not a logical error at that point, it's a typo
gjvc has quit [Quit: leaving]
schaerli has quit [Remote host closed the connection]
<[k-_> it's weird to 1 == var
<[k-_> i always put the subject first
<pontiki> most people do
aryaching has joined #ruby
<Thomas-0725> that's your style. your style does not define logic. ;P
<pontiki> it still doesn't make the other wrong
ruurd has quit [Client Quit]
<[k-_> by convention and maths, it is always the LHS!
<pontiki> well, there you are wrong for maths
<Thomas-0725> equality is symmetric, so by maths it does not matter. by convention, you may be on to something
<[k-_> you dont do 6 = x do you
<pontiki> THAT'S WHY IT'S AN ERROR
<Thomas-0725> not in Ruby, because = is an assignment operator. In maths, however, 6 = x is perfectly valid.
<pontiki> we're talking about ==
<[k-_> no, it is wrong, you cant define 6 as x!
<[k-_> 6 is a constant in maths!
<Thomas-0725> ok, well I'm going to abandon this argument in favor of something more productive. thanks for the help :)
<[k-_> if i marked someone's paper and they did that, i would mark them wrong
ruurd has joined #ruby
<pontiki> in maths, = is an equation, not an assignment; = is an operation in programmaing, in maths it denotes and equation
<Neon> unshadow, not working. I've made a test you can do as well, see http://pastebin.com/Ka0NszB8 if you can reproduce the delay.
<ruboto> Neon, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/924abbb0af319dad728e
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<pontiki> you are creating a false equivalency on two levels, kay
casadei_ has joined #ruby
<[k-_> it never made sense to me to put the variable for right
<[k-_> it never did!
<pontiki> kay: == is NOT an ASSIGNMENT
Tempesta has quit [Read error: Connection reset by peer]
CustosLimen has quit [Ping timeout: 264 seconds]
<pontiki> it's a COMPARISON
<[k-_> BUT THE SUBJECT IS WRONG
<adaedra> some people put variable on the right so, if they forgot one = by error, the compiler/interpreter throws an error
<adaedra> it's a safety nest
<pontiki> there is no subject in a comparison
<pontiki> adaedra: that was my point exactly above
Tempesta has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
<[k-_> but i dont agree with it!
<pontiki> too bad
<pontiki> don't do it
<[k-_> it's fine but the subject is still wrong
<adaedra> anyway, it can lead, in some cases to error in ruby if you compare two objects that have a different .==() method
<adaedra> [k-_: you can't disagree with a general fact
<pontiki> they can, but they would be wrong
<adaedra> also, this is something inherited from C
<[k-_> i dont agree with the act of putting the subject after
<adaedra> then don't do it
CustosLimen has joined #ruby
<adaedra> We explained why some people do like so
<adaedra> We're not forcing you to do it
<[k-_> i never did, i argued for the sake of making others understand my view
<adaedra> pontiki: sorry for repeating, it seemed like the point was not made.
<Neon> And here is basically the same in python https://gist.github.com/Neosublimation/15a2245269b7d91f3f0f (sorry if that offends you), proving that it's not the server's fault.
<[k-_> it was already made, i already accepted it, but i dislike it still
<pontiki> you have until just the past 2 comments never indicated any acceptance
<[k-_> maybe my use of the word "wrong" was wrong
casadei_ has quit [Ping timeout: 255 seconds]
<[k-_> my use of "wrong" is wrong ok
serivich has joined #ruby
lxsameer_ has quit [Quit: Leaving]
skade has joined #ruby
serivich has quit [Remote host closed the connection]
serivich has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
<[k-_> i was busy thinking of the word: i think it's against convention. arguably a phrase but ¯\_(ツ)_/¯
gwendall has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
lukas has left #ruby ["WeeChat 0.4.2"]
Trynemjoel has joined #ruby
AnoHito has joined #ruby
<adaedra> against what convention
Nahra has quit [Remote host closed the connection]
<[k-_> subject == object
christiandsg has joined #ruby
<[k-_> John is a boy
ruurd has quit [Quit: ZZZzzz…]
<[k-_> people = 5
theery has joined #ruby
Violentr has joined #ruby
gwendall has quit [Ping timeout: 244 seconds]
<adaedra> wat
theery has quit [Remote host closed the connection]
<pontiki> first: stop conflating different operations with left-right convetions
<pontiki> in ruby, you are sending messages to objects
unshadow has quit [Quit: leaving]
<shevy> I send message objects!
<pontiki> subject.==(object) means something very deliberately different than subject.=(object)
tubuliferous has joined #ruby
<[k-_> yes they are different
<pontiki> object.==(subject), if object and subject match types or are convertable to matching types, are equivalent operations.
Tempesta has quit [Read error: Connection reset by peer]
<pontiki> when they aren't you should get an error
<pontiki> THAT IS ENTIRELY THE POINT
<adaedra> pontiki: I think [k-_'s point is just "You must all code like I code"
<[k-_> yes!
<pontiki> oh
<pontiki> frivolous trolling, then
<[k-> something like that, i was pushing for subject first
<[k-> not really to force
<adaedra> no, you're saying the other way is wrong.
<[k-> i corrected myself already :(
<Thomas-0725> are variables assigned within if statements local to those if statements?
<[k-> no
<[k-> wait yes
<[k-> i misread that
<[k-> actually i should clear it up
serivich has quit [Ping timeout: 255 seconds]
<pontiki> probably not
<pontiki> if you don't really understand
diegoviola has joined #ruby
<adaedra> easy to try by yourself, though
<[k-> did you mean if (assignment) { } or if () { assignment }
tubuliferous has quit [Ping timeout: 240 seconds]
<Thomas-0725> the latter
<[k-> yes
freerobby has joined #ruby
ragingcake has joined #ruby
dionysus69 has joined #ruby
_blizzy_ has joined #ruby
j3r0 has quit [Ping timeout: 244 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
schaerli has joined #ruby
christiandsg has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Trynemjoel has quit [Ping timeout: 256 seconds]
_Aleserche_ has joined #ruby
Trynemjoel has joined #ruby
marr has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
ishahnaz has quit []
__Aleserche__ has quit [Ping timeout: 256 seconds]
aryaching has quit [Ping timeout: 260 seconds]
senayar has quit [Remote host closed the connection]
jonee has quit [Remote host closed the connection]
roolo has joined #ruby
djbkd has joined #ruby
einarj has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
jimms has joined #ruby
juanpablo_______ has joined #ruby
theery has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
scripore has joined #ruby
gwendall has joined #ruby
einarj_ has joined #ruby
einarj_ has quit [Remote host closed the connection]
thatsnotjack has quit [Ping timeout: 246 seconds]
djbkd has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 265 seconds]
<Neon> I've installed the varint gem (https://github.com/liquidm/varint/blob/master/ext/varint/varint.c) and require 'varint/varint' returned true. However, neither Varint.encode nor Varint.decode are defined. As there is no documentation maybe someone here can help me with this.
juanpablo_______ has quit [Ping timeout: 246 seconds]
leafybasil has quit [Remote host closed the connection]
<Neon> Ew, I need to extend the module. That's a weird concept, isn't it?
<[k-_> is Varint defined?
<Neon> Yes yes. I made a v = Object.new.extend(Varint) and then I can use v.encode and v.decode...
<Neon> Is that a usual design?
<Neon> I just saw they used rb_define_method and a method is usually an object-bound thing, but Varint is only a Module.
ruurd has quit [Quit: ZZZzzz…]
<Neon> So it was probably lacking object context
<[k-_> try include
<Neon> Instead of require?
<canton7> I imagine the intended use-case is that you define a class which can be encoded and decoded, and include Varint into that class, which will give you the methods #encode and #decode on that class
tuelz has joined #ruby
<[k-_> Neon: include is totally diffenet from require
<Neon> Could be, but if I understand the C code correctly you have to pass an IO object to encode and decode.
<Neon> [k-_, I know, isn't it used to include a Module into a Class or another Module?
<[k-_> yea, but you wanted to use it instead of require!
schaerli has quit [Remote host closed the connection]
khebbie has joined #ruby
<Neon> [k-_, no, I asked you if you meant me to use it instead of require, because otherwise I don't understand your suggestion.
<Neon> Because I said it appears to work with Object.new.extend(Varint) and you suggest me to try include.
<[k-_> replace extend with include of course!
<[k-_> >> Object.new.include(Enumerable)
<ruboto> [k-_ # => undefined method `include' for #<Object:0x41f04308> (NoMethodError) ...check link for more (https://eval.in/410515)
<[k-_> welp
<Thomas-0725> Can anyone suggest improvements or things that could be done differently? https://gist.github.com/thomasbcolley/94509c3d4e63abc91241
<Neon> What would be wrong with extend?
<[k-_> include is for instance methods iirc
gambl0re has joined #ruby
<[k-_> &ri Array#uniq
<[k-_> ^ Thomas-0725
<pontiki> extend adds to an object, include adds to a class
Trynemjoel has quit [Ping timeout: 250 seconds]
theery has quit [Remote host closed the connection]
<Thomas-0725> I know about uniq. uniq is not what I want, so what are you trying to tell me? :x
nfk has joined #ruby
khebbie has quit [Ping timeout: 246 seconds]
<[k-_> are you sure it is not what you want?
imperator has joined #ruby
dimasg has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
<Thomas-0725> The method I have linked to patches the Hash class to include a new method that takes another hash as an argument and returns a new hash which includes members found in one hash or the other, but not both
<[k-_> oh wait, my logic is wrong
<canton7> Neon, I imagine usage is similar to this: http://pastie.org/10325916 ?
<Neon> canton7, probably.
<imperator> good morning
dseitz has quit [Ping timeout: 264 seconds]
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
Trieste has quit [Ping timeout: 240 seconds]
soahccc has quit [Ping timeout: 240 seconds]
_whitelogger has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 240 seconds]
nfk has quit [Read error: Connection reset by peer]
Lucky___ has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
Trynemjoel has joined #ruby
ponga has joined #ruby
calleerlandsson has quit [Ping timeout: 240 seconds]
bauruine has quit [Ping timeout: 240 seconds]
elektronaut has quit [Ping timeout: 240 seconds]
theery has joined #ruby
AbdulRehman has joined #ruby
hakunin_ has quit [Ping timeout: 240 seconds]
whiteline has quit [Ping timeout: 240 seconds]
chris2 has quit [Ping timeout: 240 seconds]
drPoggs has quit [Ping timeout: 240 seconds]
phrozen77 has quit [Ping timeout: 240 seconds]
<atmosx> imperator: it's 18:46 here!
<atmosx> lol
<imperator> where you at atmosx ?
whiteline has joined #ruby
<atmosx> imperator: Greece
<atmosx> imperator: GMT +3
leafybasil has joined #ruby
calleerlandsson has joined #ruby
<[k-_> GMT+8
<imperator> never been, need to visit sometime
<shevy> this is the amount of GUI that ruby can compete with: https://www.youtube.com/watch?v=emh22gT5e9k
<atmosx> [k-_: where's that?
<atmosx> imperator: yeah, awesome beaches
theery has quit [Remote host closed the connection]
<havenwood> atmosx: Thessaloniki \o/
<imperator> atmosx, got a degree in classics, i'd visit the acropolis, etc :)
<imperator> i guess i could do both
<atmosx> havenwood: hahahaha I'm like 2 hours away :-P have you ever visited Thess/niki?
<atmosx> imperator: oh cool then!
<[k-_> singapore
<atmosx> imperator: yeah sure, it's easy doing both.
<havenwood> atmosx: yup, i drove like a maniac to fit in...
<atmosx> [k-_: oh, awesome. I'd like to visit Singapore some time.
<atmosx> havenwood: hahahahahahaha, when?
<atmosx> when did this happen?
elektronaut has joined #ruby
<havenwood> atmosx: hem, years ago - more than five years ago but less than ten
skryking has left #ruby [#ruby]
<atmosx> did you stay at Thess/niki or did you go to Chalkidiki (the peninsula right next)
<havenwood> atmosx: stayed in, then visited sis out in the countryside and went to Meteora
<havenwood> atmosx: good trip!
phrozen77 has joined #ruby
<atmosx> havenwood: did you like the girls at Thess/nki? it's kinda crazy student-driven city. Lots of pubs/clubs/nightlife
<atmosx> meteora are great too
bauruine has joined #ruby
drPoggs has joined #ruby
<havenwood> atmosx: I did enjoy the nightlife. A bustling city!
MatthewsFace has joined #ruby
Trieste has joined #ruby
<havenwood> Fun when people go out.
<atmosx> yeah, it is.
nateberkopec has joined #ruby
<atmosx> actually you have to go out after 21:00
<atmosx> nice, too bad I didn't know you back then. I might have been your city-guide! :-)
Trynemjoel has quit [Ping timeout: 250 seconds]
tmtwd has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Matthews_ has joined #ruby
AbdulRehman has left #ruby [#ruby]
Trynemjoel has joined #ruby
MatthewsFace has quit [Ping timeout: 244 seconds]
<imperator> atmosx, just curious, can you read ancient greek (herodotus, etc) or is it like me trying to read old english?
patteh has quit [Remote host closed the connection]
<atmosx> imperator: I studied ancient Greek at school (everybody here does, the extend ranges though) but not really. I would miss a lot. It's a lot worse than you reading Shakespeare. It's like you reading latin actually.
gwendall has quit [Remote host closed the connection]
<atmosx> I'm also half Italian, I can understand some latin (I studied latin in the univ. actually) but ancient Greek is IMHO more distant to modern Greek than Latin to Italian.
gwendall has joined #ruby
<atmosx> imperator: can you?
chris2 has joined #ruby
<imperator> not so much any more
scripore has quit [Quit: This computer has gone to sleep]
<atmosx> how did you turn out a programmer from the classics?
sevenseacat has quit [Quit: .]
<imperator> i got my masters then decided i needed an income
jjj123 has quit [Ping timeout: 250 seconds]
<imperator> so...i joined the air force
<imperator> and they made me a programmer
<atmosx> cool
jimms has quit [Ping timeout: 240 seconds]
<pontiki> some of the best programmers i've known have been English majors
<imperator> btw, old english == much older than shakespeare :)
leesharma has joined #ruby
<atmosx> ah
Violentr has quit [Ping timeout: 244 seconds]
<imperator> here's a cool example: https://web.cn.edu/kwheeler/diagram_4English.html
<atmosx> ah well that's complicated too
* imperator wonders if those characters are in the unicode standard
<pontiki> oh, it's an image :( i was wondering where you got the web typeface for that
gwendall has quit [Ping timeout: 260 seconds]
jimms has joined #ruby
scripore has joined #ruby
cornerma1 has joined #ruby
Rickmasta has joined #ruby
<imperator> well, i put the masters to good use - made a couple historical wargames :)
<atmosx> really? cool
dseitz has joined #ruby
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
leesharma has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
<atmosx> is there a company that makes all the pieces?
<atmosx> like you give them the rules, etc. or you have to figure out everything yourself?
<imperator> the publisher handles the physical components
<imperator> but typically you make a prototype yourself
<imperator> you can order games bits online, or make your own
Matthews_ has quit []
freerobby has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 256 seconds]
jjj123 has joined #ruby
CustosLimen has quit [Ping timeout: 252 seconds]
patteh has joined #ruby
Trynemjoel has joined #ruby
wald0 has quit [Quit: Lost terminal]
leat2 has quit [Quit: leat2]
leat has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
akkad has quit [Excess Flood]
djbkd has joined #ruby
<atmosx> I see, cool
senayar has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
perturbation has joined #ruby
workmad3 has joined #ruby
Igorshp has joined #ruby
patteh_ has joined #ruby
CustosLimen has joined #ruby
akkad has joined #ruby
centrx has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Vile` has quit [Ping timeout: 255 seconds]
casadei_ has joined #ruby
Trynemjoel has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
Vile` has joined #ruby
einarj has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby
casadei_ has quit [Ping timeout: 240 seconds]
ruurd has quit [Client Quit]
ruurd has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
exadeci has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
j3r0 has joined #ruby
apfeluser has joined #ruby
chihhsin has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
NeverDie has joined #ruby
Igorshp has quit [Remote host closed the connection]
blue_deref has joined #ruby
Trynemjoel has joined #ruby
chinmay_dd has joined #ruby
radgeRayden has joined #ruby
ruurd has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
tubuliferous has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
Igorshp has joined #ruby
dimasg has joined #ruby
pawnbox has joined #ruby
akkad has quit [Excess Flood]
ruurd has joined #ruby
leafybasil has quit [Remote host closed the connection]
treybul has joined #ruby
phutchins has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
ruurd has quit [Client Quit]
tkuchiki has quit [Ping timeout: 244 seconds]
darkf has quit [Quit: Leaving]
AlexRussia has quit [Read error: Connection reset by peer]
dimasg has quit [Ping timeout: 240 seconds]
<treybul> maybe this is a dumb question, but in rspec can you test if two functions give the same value in the following manner: expect(subject.functionA(1)).to eq subject.functionB(1)
akkad has joined #ruby
lkba has quit [Quit: Bye]
<Coraline> treybul: why not just try it?
<treybul> doesnt work
drewo has joined #ruby
<Coraline> What's the result you get?
christiandsg has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<treybul> error refers to a "undefined method `each' for nil:NilClass
bruno- has quit [Read error: Connection reset by peer]
<treybul> but when i run the code in irb and test values for functiona and functionb i get the same values. strange
AbdulRehman has joined #ruby
<Coraline> How are you defining 'subject'?
Trynemjoel has quit [Ping timeout: 256 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
<diegoviola> what is % in ruby? like when you say "This is a %s in ruby" % ["string"]
<adaedra> &ri String#%
<Coraline> Sounds like error might be with how you set that up. Somewhere in your class you're calling each on an atttribute that you didn't set in your test setup.
<treybul> just an instance of the class
Trynemjoel has joined #ruby
<adaedra> diegoviola: in a string, the format method, see the link above
<Coraline> treybul: track the error down using the stacktrace from the "undefined method" exception
<adaedra> s/in/on/
<apeiros> diegoviola: note that % is a method, and like all methods, what it does depends on what you call it on.
<treybul> in principle though, what I am doing is allowed in rspec? that's really the answer I'm after. I have a feeling you can only use "to eq" for specific values/strings and can't compare functions
bruno- has joined #ruby
<diegoviola> I see, thanks
schaerli has quit [Remote host closed the connection]
<treybul> i can try fixing the code, but I want to first know if what I am doing is actually allowable
Rickmasta has joined #ruby
<pontiki> treybul: try wrapping the arguement to eq in parens: eq(subject.functionB(1))
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<pontiki> if that doesn't work, i suspect the issue may be with using subject in the eq, but i'm not sure
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<treybul> yeah i did that with no luck
<pontiki> in general, though, you should be able to pass any expression to eq()
saddad has joined #ruby
jamesaxl has joined #ruby
thatsnotjack has joined #ruby
tresmundos has joined #ruby
<tresmundos> chanel in spanish or ingles
bruno- has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
<treybul> how about this: expect(subject.functionA(1)).to eq subject.count -where lets say subject is an array instance. Is this a viable rspec test? You're basically checking if your function is equivalent to the .count inbuilt method
bruno- has quit [Client Quit]
tresmundos has quit [Quit: Saliendo]
NoidedSuper has joined #ruby
chinmay_dd has quit [Quit: See ya!]
juanpablo_______ has joined #ruby
chouhoulis has joined #ruby
<treybul> anyone?
<Coraline> treybul: like I said, read your stack trace
<pontiki> i don't believe your problem is with rspec
<treybul> ok, but is the test i propose in my previous comment acceptable code in rspec? if the answer is yes then I can look into fixing the method, otherwise there is no point pursuing the fix
m8 has joined #ruby
devbug has joined #ruby
mleung has joined #ruby
senayar has quit [Remote host closed the connection]
kirun has joined #ruby
bruno- has joined #ruby
juanpablo_______ has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
<treybul> hah
Igorshp has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<pontiki> hah?
bruno- has quit [Ping timeout: 244 seconds]
<treybul> im just impressed how quickly that was put up
<pontiki> how long should it take to make a simple test case?
bruno- has joined #ruby
<treybul> for a newbie like me things take time
<pontiki> run: bundle gem NAME -t rspec
<pontiki> modify the spec file
<pontiki> modify the library file
<pontiki> boom
CustosLimen has quit [Ping timeout: 260 seconds]
<treybul> well it looks like it works
djbkd has joined #ruby
dfockler has joined #ruby
GriffinHeart has joined #ruby
ynroot has joined #ruby
senayar has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<treybul> thanks - really helpful
ynroot has quit [Client Quit]
ynroot has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
dfockler has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
Rickmasta has quit [Ping timeout: 246 seconds]
Thiru has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
Rickmasta has joined #ruby
mjs2600 has quit [Quit: Connection closed for inactivity]
imperator has quit [Quit: Leaving]
<Thiru> Hi,
<pontiki> treybul: i make tiny little examples of things i don't understand, until i do understand them
nateberkopec has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<pontiki> i have examples folders just packed full of things
drewo has quit [Ping timeout: 256 seconds]
<Thiru> how to collaborate with yours ?
dgutierrez1287 has joined #ruby
<Coraline> Thiru: I don't understand your question, can you rephrase it please?
<Thiru> I am new to this place. Is this a doubt clarification area for ruby ?
chuy has quit [Ping timeout: 260 seconds]
<pontiki> i think the answer is "yes"
<pontiki> "doubt clarification area for ruby" -- you can ask and answer questions about ruby
codecop has joined #ruby
CustosLimen has joined #ruby
<Thiru> oh ok thanks. If i have any doubts or answers i will post here.
pawnbox has quit [Remote host closed the connection]
freerobby has joined #ruby
dgutierrez1287 has quit [Ping timeout: 250 seconds]
radgeRayden has quit [Read error: Connection reset by peer]
HoppingMadMan has joined #ruby
Musashi007 has joined #ruby
mjs2600 has joined #ruby
Spleeze has quit [Ping timeout: 256 seconds]
<shevy> Thiru getting an IRC client might help, I found webchat very limited
tkuchiki has joined #ruby
sdwrage has joined #ruby
tkuchiki has quit [Remote host closed the connection]
hmnhf has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
<centrx> shevy, Do you use node.js in addition to PHP?
<shevy> I use neither of that
<shevy> only thing related to javascript that I use is jquery, which is actually nice. for my webstuff I just add :drag when I want to drag an element and it works \o/
schaerli has joined #ruby
<centrx> and all this time I thought you were a PHP guru
<shevy> I abandoned PHP more than 10 years ago!
chuy has joined #ruby
<shevy> centrx I do scan every once in a while whether http://php.net/manual/en/ has anything useful though that can be put into ruby
sepp2k has joined #ruby
theery has joined #ruby
<shevy> they got a fancier webpage now http://php.net/manual/en/intro.apd.php - makes the ruby website look old :(
minotep has joined #ruby
theery has quit [Remote host closed the connection]
<pontiki> i miss the old one
casadei_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Thiru has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
ragingcake has quit [Quit: ragingcake]
j_mcnally has joined #ruby
<shevy> of ruby?
<pontiki> no, php
<shevy> what gets to me is when functionality gets lost during an update
<shevy> the new gist.github page does not allow me to easily copy/paste anymore with middle mouse button click
j_mcnall_ has joined #ruby
<pontiki> this is common with web site facelifts
zacstewart has joined #ruby
<pontiki> i miss having a middle button i can click
hmnhf has quit [Ping timeout: 246 seconds]
<pontiki> i can't manage clicking the wheel
<centrx> running around in circles
<shevy> power-pontiki
<shevy> power-mouse
sdwrage has joined #ruby
ragingcake has joined #ruby
pietr0 has joined #ruby
<pontiki> it's a logictech m570
<pontiki> not sure you can call it a mouse, exactly
casadei_ has quit [Ping timeout: 240 seconds]
<shevy> gun station
<Outlastsheep> Mice. Who needs them :L
<shevy> cats
<Outlastsheep> Exactly. And I am not a cat.
* pontiki weeps
<firoxer> pontiki: is your mouse sticky too or is it just me?
<firoxer> Got the same mouse
<adaedra> sticky mouse?
<adaedra> ew
<shevy> I had a mouse whose plastic covering fell apart every second month
<pontiki> firoxer: it gets sticky, then i clean it out
<Outlastsheep> I've heard of sticky keys, but sticky /mouse/?
<firoxer> Yeah, it's the ball that gets all sticky
<firoxer> ... :---D
<shevy> since that day I am all for black mice
j_mcnally has quit [Ping timeout: 265 seconds]
<firoxer> Alright
<pontiki> pop out the ball, wash it, and use a pencil eraser to clean the wheels inside
<centrx> my mouse is made out of lasers
<shevy> laser mouse for the win
<firoxer> Pencil eraser? Gotta try that
<firoxer> Thanks for the tip
<shevy> cats stand no chance at all against a mouse with a laser
zacstewart has quit [Ping timeout: 244 seconds]
<ynroot> hi , i found tutorial every where about how to do many things with ruby on rails, none about what to do when your aplication is done, do you have a tutorial for that
pietr0_ has joined #ruby
<adaedra> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<pontiki> firoxer: other fix: keep your hands perfectly clean while using it :>
frem has joined #ruby
<centrx> ?trains
<ruboto> I don't know anything about trains
<adaedra> I like trains.
pietr0 has quit [Ping timeout: 240 seconds]
<centrx> Trains can be powered by a variety of energy sources including steam, diesel and electricity.
pietr0_ is now known as pietr0
christiandsg has joined #ruby
schaerli has quit [Remote host closed the connection]
skade has joined #ruby
<firoxer> pontiki: I do; I'm a Ruby programmer anyway, not a filthy Java peasant
<adaedra> Don't forget the hype train.
<pontiki> or the crazy train
<pontiki> (OZZY!)
<pontiki> lol firoxer
Spleeze has joined #ruby
<adaedra> We don't talk about Java here.
<pontiki> except to belittle it
<shevy> firoxer ruby was your first scripting language? or did you dabble in php... perl or python
<firoxer> shevy, I do PHP at work and it was my first language so... I confess
sdwrage has quit [Quit: Leaving]
<adaedra> Nobody expects the shevy inquisition
<centrx> burn him!
<adaedra> mysqli_real_burn()
<firoxer> Hey, a man's gotta do what a man's gotta do
<shevy> adaedra you are one monty python fan
<firoxer> We got Centos 5, Apache, all of that
crankharder has joined #ruby
<adaedra> CentOS 5?
<firoxer> Centos 5.
<adaedra> Do you have dinosaurs, too?
<firoxer> Don't ask
christiandsg has quit [Ping timeout: 265 seconds]
<shevy> well they surely give one opportunity to use ruby 1.8.7
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
<firoxer> UGH
j3r0 has quit [Ping timeout: 250 seconds]
<firoxer> Well
<firoxer> I do most of my work thru SSH (as opposed to SCP + Notepad++ as the guy before me used to)
<firoxer> And I tried to install Syntastic and all of that pompous hipster shit to actually program instead of checking for syntax errors
_ixti_ has quit [Quit: WeeChat 1.2]
yaw has joined #ruby
<firoxer> But alas, I'd have to compile Vim 7.4 manually to get it to work... and to compile, I'd need a newer version of GCC, which, in turn, needs a newer version of coreutils
<firoxer> Into the rabbit hole!
<firoxer> </offtopic>
devdazed has joined #ruby
<miah> you don't do dev on your laptop/workstation? or your workstation also runs centos5?
<diegoviola> firoxer: just use your distro package manager
<shevy> firoxer I can understand that - however had for the most part, compiling into the home directory should work
<miah> diegoviola: that wont help
<firoxer> We use Git, and I'd like to have a copy of the database etc., but it's just too much of a hassle to install everything in a VM...
<firoxer> diegoviola, we got CentOS 5
banister has joined #ruby
olistik has quit [Read error: Connection reset by peer]
<diegoviola> upgrade?
<firoxer> shevy, I'd have to recompile 99% of the system
christiandsg has joined #ruby
<shevy> \o/
<firoxer> diegoviola, I've suggested that and got the permission... but I'll have to wait till autumn
yaw has left #ruby [#ruby]
<miah> recompile 95% of the system to compile vim? no.
<diegoviola> I hope you are not doing make install as root
<firoxer> miah, I feel obliged to give you the credentials to our backend
<diegoviola> because that will just break things
<miah> firoxer: are you going to pay me?
<firoxer> diegoviola, that'd be an improvement
<diegoviola> firoxer: not really
<shevy> diegoviola are you still using windows
<miah> you should be able to compile most of this stuff in your ~ without too much issue
<diegoviola> shevy: no, I quit
<shevy> no joke?
<diegoviola> shevy: serious
<shevy> whoa... things change quickly
<shevy> now I can't make windows jokes anymore :(
<firoxer> miah, it's just going to be easier to format and reinstall the whole shit from the ground up
<miah> firoxer: i agree, but you can't do that _now_
<miah> firoxer: you can do that in "the fall" which is months away
<craysiii> why does one use ruby on windows :)
<firoxer> miah, I'll manage
<miah> so concentrate on what you can do today to resolve your development woes =)
<diegoviola> craysiii: I don't
<shevy> craysiii for a job where they put you in a prison called a room with co-workers
<diegoviola> I've been using Linux for 15 years
yfeldblum has quit [Ping timeout: 244 seconds]
<firoxer> miah, my to-do's way too long for concentrating on tools
<diegoviola> craysiii: I was forced to use Windows at some company but I quit working for this company
<shevy> diegoviola you quit a lot man!
<diegoviola> shevy: meaning?
<shevy> meaning you quit a lot
<diegoviola> that doesn't make any sense
<miah> firoxer: so you're complaining just to vent and not really seeking resolution to your issue?
<shevy> yeah then don't quit a lot!
<firoxer> miah, the resolution is just to wait and vent :D
<miah> ok
<miah> cool =)
<shevy> there are doers
<shevy> and then there are waiters
<diegoviola> shevy: I didn't quit, I was going to quit but they fired me
mikecmpbll has joined #ruby
schaerli has joined #ruby
<miah> getting fired is :( been there a few times.
crdpink has joined #ruby
<mikecmpbll> anyone any ideas how i find the first previous sibling that matches a selector, in nokogiri?
crdpink2 has quit [Ping timeout: 246 seconds]
<diegoviola> shevy: what are you talking about?
jgpawletko has quit [Quit: jgpawletko]
<shevy> don't quit
<diegoviola> please be less vague
<diegoviola> quit from what?
<shevy> from what could you possibly quit?
<miah> dont quit the Justice League
<craysiii> don't stop. believing
<craysiii> hold on to that feeling.
* miah youtubes some Journey
<adaedra> don't stop me now ♫
Xiti has quit [Quit: Xiti]
Musashi007 has quit [Quit: Musashi007]
ohaibbq has joined #ruby
<diegoviola> shevy: I didn't quit working for this company, I got fired
skade has quit [Quit: Computer has gone to sleep.]
davedev24 has quit []
<shevy> <diegoviola> shevy: no, I quit
<mikecmpbll> oops.
<diegoviola> shevy: yes, well, whatever
<mikecmpbll> :/
ynroot has left #ruby ["Konversation terminated!"]
<adaedra> shevy: let other people quit what they want
<diegoviola> shevy: the manager said I was a good programmer, he told other people my attitude was the problem
<shevy> adaedra but he did not quit! :(
jgpawletko has joined #ruby
<adaedra> I'm not talking about diegoviola but about you, shevy
<shevy> adaedra but he did not quit!!!
<adaedra> apparently you quit reading
<shevy> I am gonna quit with adaedra
khebbie has joined #ruby
<craysiii> did you work at booking ;)
christiandsg has quit [Quit: Leaving...]
<shevy> every failure is a step towards improvement
<havenwood> shevy: fail fast
<shevy> havenwood: more coffee!
<shevy> failing is no fun :(
<shevy> elixir has a flashy icon
schaerli has quit [Remote host closed the connection]
andikr has joined #ruby
<craysiii> shevy icons are IN right now
HoppingMadMan has quit [Ping timeout: 244 seconds]
<havenwood> shevy: (yes, i've spent the time to color it red)
<adaedra> you mean open it in gimp and change hue?
<havenwood> adaedra: that
<adaedra> what a huge amount of time spent
<havenwood> adaedra: no, i one by one changed the pixels in paint
<havenwood> adaedra: time yourself
<diegoviola> shevy: it doesn't matter anymroe if I quit or not from that company, I told the manager he was dishonest
<adaedra> wat
GriffinHeart has joined #ruby
chinmay_dd has joined #ruby
Xiti has joined #ruby
juanpablo_______ has joined #ruby
khebbie has quit [Remote host closed the connection]
Outlastsheep is now known as zz_Outlastsheep
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Ping timeout: 256 seconds]
<diegoviola> adaedra: the manager was speaking ill of me for time I was there and I didn't know it, but I found that up, he was telling people like the HR that I was crazy, etc
juanpablo_______ has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
<adaedra> You were discussing that with shevy, not me
AmBienCeD has joined #ruby
countryHick has joined #ruby
<diegoviola> right
AbdulRehman has quit [Quit: AbdulRehman]
yfeldblum has joined #ruby
<miah> diegoviola: sounds like a good situation to get out of.
Trynemjoel has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
<diegoviola> they had their company values like "Ethics, Honesty, etc" printed in their wall, and the day I left I told him "I've seen what you said about me. Ethics is not just a word in your wall, you should be more honest"
<diegoviola> and I quit
andikr has quit [Remote host closed the connection]
<miah> :( sorry you went through that. hopefully your new job is better?
<diegoviola> he apologized
<diegoviola> miah: I don't have a job yet
Trynemjoel has joined #ruby
mhib has joined #ruby
chinmay_dd has quit [Quit: Leaving]
<miah> diegoviola: oh.
symm- has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
dseitz has joined #ruby
j3r0 has joined #ruby
Musashi007 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
diegoviola has quit [Read error: No route to host]
Trynemjoel has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
niiamon has quit [Remote host closed the connection]
malcolmva has quit [Ping timeout: 240 seconds]
<craysiii> good luck in your hunty
<craysiii> (fat fingers)
Musashi007 has quit [Client Quit]
<diegoviola> job hunt?
<miah> indeed. good luck in the hunt for a good place to work.
<craysiii> yes
<diegoviola> thanks
<miah> its taken me quite a few jobs to find a place i enjoy working; even though im suffering through burn out currently.
NeverDie has joined #ruby
<diegoviola> it's the second time I actually confront that manager, the first time he was calling me by my nationality and I asked him to call me by my name
<diegoviola> some idiots just never learn I guess
<miah> wow
<craysiii> thats really unprofessional
<miah> very
<craysiii> maybe a bad attempt to build rapport with you?
fantazo has joined #ruby
<diegoviola> rapport?
<miah> rapport - a close and harmonious relationship in which the people or groups concerned understand each other's feelings or ideas and communicate well.
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<miah> i think calling somebody by their nationality vs name is a bad way to build rapport based on the definition.
<craysiii> hence why i said bad attempt :P
<miah> ya =)
<craysiii> in less professional occupations though it could be seen as effective. poking fun at one another is common, but in this situation it was most likely unwarranted
<diegoviola> miah: I'm really not interested in close and harmonious relationship
spider-mario has joined #ruby
<craysiii> thats probably why he said you have an attitude
<craysiii> not blaming you or anything, but it could be a reason.
jhubert has joined #ruby
blaines has joined #ruby
A124 has quit [*.net *.split]
tekk has quit [*.net *.split]
DylanJ has quit [*.net *.split]
davidcelis has quit [*.net *.split]
greedo has quit [*.net *.split]
tchebb has quit [*.net *.split]
bzf has quit [*.net *.split]
\13k_ has quit [*.net *.split]
hasB4K has quit [*.net *.split]
go|dfish has quit [*.net *.split]
`Nibble has quit [*.net *.split]
quarcu has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
gnarf has quit [*.net *.split]
jamo_ has quit [*.net *.split]
funnel has quit [*.net *.split]
Guest97074 has quit [*.net *.split]
Janusz1 has quit [*.net *.split]
QKO has quit [*.net *.split]
snakehsu has quit [*.net *.split]
larshaugseth has quit [*.net *.split]
iamayam has quit [*.net *.split]
monsieurp has quit [*.net *.split]
scripore has quit [Quit: This computer has gone to sleep]
<mikecmpbll> work hard + be nice = win
QKO has joined #ruby
`Nibble has joined #ruby
Janusz1 has joined #ruby
Janusz1 has quit [Changing host]
Janusz1 has joined #ruby
greedo has joined #ruby
sts_ has joined #ruby
bzf has joined #ruby
KrzaQ has joined #ruby
<mikecmpbll> and don't netsplit.
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
yfeldblu_ has joined #ruby
DylanJ has joined #ruby
\13k has joined #ruby
tchebb has joined #ruby
<diegoviola> I was being nice and I worked hard, I just didn't allow him to get away with being a jackass
tekk has joined #ruby
quarcu has joined #ruby
iamayam has joined #ruby
<mikecmpbll> sounds like you're fine then
`Nibble is now known as Guest98814
sts_ is now known as Guest82709
funnel has joined #ruby
go|dfish has joined #ruby
larshaugseth has joined #ruby
Musashi007 has joined #ruby
scripore has joined #ruby
snakehsu has joined #ruby
Musashi007 has quit [Client Quit]
Xaitec has quit [Read error: Connection reset by peer]
gnarf has joined #ruby
A124 has joined #ruby
malcolmva has joined #ruby
<diegoviola> :)
yfeldblum has quit [Ping timeout: 244 seconds]
<diegoviola> indeed
DaniG2k has joined #ruby
jamo_ has joined #ruby
weemsledeux has joined #ruby
_Aleserche_ has quit [Quit: Leaving]
Musashi007 has joined #ruby
jakesyl has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
khebbie has joined #ruby
lkba has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Ping timeout: 250 seconds]
ddv has quit [*.net *.split]
zenspider has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
ptierno_ has quit [*.net *.split]
edenc has quit [*.net *.split]
Aeyrix has quit [*.net *.split]
DenSchub has quit [*.net *.split]
alexblom has quit [*.net *.split]
headius has quit [*.net *.split]
jeaye has quit [*.net *.split]
M-Technic has quit [*.net *.split]
TDJACR has quit [*.net *.split]
tmi has quit [*.net *.split]
superspring has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
danshultz_ has quit [*.net *.split]
Schmidt has quit [*.net *.split]
danoo_ has quit [*.net *.split]
Platini has quit [*.net *.split]
perry has quit [*.net *.split]
Bish has quit [*.net *.split]
ekem has quit [*.net *.split]
ZYPP has quit [*.net *.split]
hplar has quit [*.net *.split]
adam12 has quit [*.net *.split]
allie has quit [*.net *.split]
infernix has quit [*.net *.split]
jso- has quit [*.net *.split]
dont-panic has quit [*.net *.split]
ahuman_ has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
ruisantos has quit [*.net *.split]
peteyg has quit [*.net *.split]
tskogberg has quit [*.net *.split]
sjohnsen- has quit [*.net *.split]
xxx has quit [*.net *.split]
Koshian has quit [*.net *.split]
stevednd has quit [*.net *.split]
p8952 has quit [*.net *.split]
soosfarm has quit [*.net *.split]
KramerC has quit [*.net *.split]
linduxed has quit [*.net *.split]
justinweiss has quit [*.net *.split]
cookiez has quit [*.net *.split]
dont-panic has joined #ruby
zenspider has joined #ruby
ruisantos has joined #ruby
sjohnsen has joined #ruby
SebastianThorn has joined #ruby
ptierno has joined #ruby
soosfarm has joined #ruby
ahuman has joined #ruby
M-Technic has joined #ruby
ZYPP has joined #ruby
jso has joined #ruby
danoo_ has joined #ruby
allie has joined #ruby
peteyg has joined #ruby
ekem has joined #ruby
dhruvasagar has joined #ruby
edenc has joined #ruby
stevednd has joined #ruby
Koshian has joined #ruby
alexblom has joined #ruby
justinweiss has joined #ruby
adam| has joined #ruby
danshultz has joined #ruby
Schmidt has joined #ruby
perry has joined #ruby
KramerC has joined #ruby
Sou|cutter has joined #ruby
p8952 has joined #ruby
xxx has joined #ruby
realDAB has joined #ruby
tskogberg has joined #ruby
headius has joined #ruby
jeaye has joined #ruby
superspring has joined #ruby
hplar has joined #ruby
realDAB has quit [Client Quit]
Platini has joined #ruby
Bish has joined #ruby
Aeyrix has joined #ruby
ddv has joined #ruby
Trynemjoel has joined #ruby
DenSchub has joined #ruby
infernix has joined #ruby
linduxed has joined #ruby
TDJACR has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<diegoviola> mikecmpbll: I guess the most important thing I've learned here is to not take disrespect anymore, there are people that will just take whatever because they fear losing their job
<mikecmpbll> sure, that's one takeaway :).
CustosLimen has quit [Ping timeout: 260 seconds]
<diegoviola> and confronting your manager in front of other people feels good, hell yeah
cookiez has joined #ruby
tmi has joined #ruby
ishahnaz has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
tejasmanohar has joined #ruby
<tejasmanohar> is #ruby or #ruby-lang more popular? on the website, it said #ruby-lang was the official irc channel pretty sure.
<diegoviola> tejasmanohar: they got merged
baegle has joined #ruby
<tejasmanohar> diegoviola: ah
<shevy> tejasmanohar #ruby-lang was smaller, perhaps 1/3 of #ruby
<tejasmanohar> gotcha
<DaniG2k> does anyone feel like reading some code and telling me how shitty it is? :P
chouhoulis has quit [Remote host closed the connection]
<baegle> I'm trying to do grep a file for a pattern. open(file).grep(/p/) works just fine, unless the file is the wrong encoding. How do I get open/grep to expect the correct encoding for a file?
<tejasmanohar> gem worked btw :) - but airfarewatchdog turned out not to be what i wanted haha
<apeiros> baegle: you have to know the encoding
<apeiros> baegle: and you'd pass it to open
<baegle> apeiros: I can find the encoding by running the file utility from the command line. Is there an equivalent in Ruby?
bigmac is now known as i8igmac
<apeiros> baegle: no you can't find the encoding that way. you get a guess, at best.
<baegle> apeiros: is that guess what Ruby uses by default?
<apeiros> baegle: no
<apeiros> ruby doesn't guess. it does what you tell it to do.
<apeiros> see Encoding.default_external for the default value of encoding.
schaerli has joined #ruby
HoppingMadMan has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baegle> apeiros: is there a utility in ruby for guessing what a file's encoding might be, akin to the BSD "file" utility
<Ox0dea> baegle: There's charlock_holmes.
<apeiros> there are some, like chardet. there's probably others.
<apeiros> baegle: but if you don't know the encoding, how do you want to grep?
atomical has joined #ruby
<baegle> GNU grep seems to have no problem doing it
houhoulis has joined #ruby
<apeiros> *sob*
zacstewart has joined #ruby
* apeiros wishes programmers would take a mandatory course in encodings
Trynemjoel has quit [Ping timeout: 250 seconds]
<apeiros> baegle: maybe dig into how gnu grep does it.
jjj123 has quit [Ping timeout: 260 seconds]
<apeiros> and I wouldn't be surprised if it just treated everything as binary. maybe it's even clever and special cases files with BOM.
schaerli has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
Trynemjoel has joined #ruby
CustosLimen has joined #ruby
ragingcake has quit [Quit: ragingcake]
<apeiros> eh, seems gnu grep just utterly fails with encodings like utf-16. so much for "seems to have no problem".
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
leafybasil has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
DaniG2k has quit [Quit: leaving]
<miah> interesting
Mon_Ouie has joined #ruby
maq has joined #ruby
scripore has quit [Client Quit]
ragingcake has joined #ruby
ragingcake has quit [Client Quit]
casadei_ has joined #ruby
<shevy> hehe
<apeiros> another thing I wish for: a universal metadata container for all files.
<apeiros> then we could actually store the encoding along with the file.
devbug_ has joined #ruby
null_ref_ has joined #ruby
<shevy> container all the things!
<apeiros> also I could have good old type & creator back. stupid file suffix doesn't even come close to that.
devbug has quit [Ping timeout: 272 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
casadei_ has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
jhubert has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.2]
Thomas-0725 has quit [Max SendQ exceeded]
HoppingMadMan has quit [Ping timeout: 250 seconds]
dc has joined #ruby
lkba has quit [Remote host closed the connection]
<Ox0dea> apeiros: FUSE apparently makes it rather easy to roll your own filesystem.
* Ox0dea wonders whether there are any unused inode bits.
Thomas-0725 has joined #ruby
kirun has quit [Quit: Client exiting]
thesquidbits[SF] has quit [Quit: WeeChat 0.4.2]
tkuchiki has joined #ruby
devbug has joined #ruby
NoidedSuper has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150630154324]]
Pupeno has quit [Remote host closed the connection]
schaerli has joined #ruby
devbug_ has quit [Ping timeout: 255 seconds]
thesquidbits has joined #ruby
Yzguy has joined #ruby
umgrosscol has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
Pupeno has quit [Remote host closed the connection]
Thomas-0725 has quit [Max SendQ exceeded]
schaerli has quit [Ping timeout: 240 seconds]
HoppingMadMan has joined #ruby
Yzguy has quit [Ping timeout: 264 seconds]
rakm has joined #ruby
thesquidbits has quit [Quit: WeeChat 0.4.2]
Volsus has joined #ruby
<Ox0dea> apeiros, shevy: Got local trunk builds?
<shevy> local trunk builds?
jjj123 has joined #ruby
Kalov has quit []
mhib has quit [Remote host closed the connection]
<shevy> trocal bunk lilds!
<Ox0dea> shevy: You've mentioned that you compile many things from source, but I can never remember whether or not you do so for Ruby.
<Ox0dea> Was it that you compile 2.2.2 from source?
<shevy> oh
<shevy> I download the source into one directory; from there, I follow a simply convention, name of the program in question, downcased always. so ruby will then reside at BASE_DIR/ruby/ and inside there, is currently only the latest ruby version: ruby-2.2.2.tar.xz
<Ox0dea> Gotcha.
<shevy> I have about 2700 directories there, I think in total it is about ... 10 gigabytes or so... lemme count
<Ox0dea> >> def sw s; s.delete('^a-z').chars.sort end; sw('local trunk builds') == sw('run, loud blacklist!')
<ruboto> Ox0dea # => true (https://eval.in/410546)
ruby-lang926 has joined #ruby
<shevy> here are the biggest some 37 programs http://shevegen.square7.ch/highest.png
<nofxx> shevy, there is homebrew for linux, did you see?
<nofxx> that been said .xz looks pacman, so you should have a reason to not use it
<shevy> I noticed one minor glitch in the display of ,... which I will fix soon
<shevy> I look at homebrew every once in a while, and I have heard of homebrew for linux but never tried
<shevy> I don't want to end up as the only person to use it, that feels too lonely :(
<Ox0dea> > .xz looks pacman
<shevy> .xz looks pacman?
* Ox0dea is still trying to make sense of that.
<shevy> I sorta transitioned from .tar.bz2 to .tar.xz, it just is more efficient for when you have to backup like the 13 gigs every few weeks
ruby-lang926 has quit [Ping timeout: 246 seconds]
<nofxx> xz is archlinux pacman default compression for pkgs
<nofxx> Ox0dea, does red start hav a pkg manager?
<nofxx> star*
devbug_ has joined #ruby
Guest96767 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<Ox0dea> nofxx: Sure, but I don't see why that's any reason to associate a specific package manager with a specific archive extension.
Trynemjoel has joined #ruby
devbug has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
Guest96767 is now known as Hobbyboy
<shevy> >> round(5)
jenrzzz has quit [Ping timeout: 264 seconds]
<ruboto> shevy # => undefined method `round' for main:Object (NoMethodError) ...check link for more (https://eval.in/410551)
Yzguy has joined #ruby
<Yzguy> hello
<Yzguy> is OptionParser the best command line parser for ruby?
Hobbyboy has quit [Quit: I think the BNC broke.]
juanpablo_______ has joined #ruby
Hobbyboy has joined #ruby
Hobbyboy is now known as Guest5020
Guest5020 has quit [Remote host closed the connection]
<shevy> I hate optionparser; there are some alternatives, not sure which one are best... get_opt_long in stdlib, thor... slop in external gems, and a few more
<adaedra> Define "best"
khebbie has quit [Remote host closed the connection]
lemur has joined #ruby
Hobbyboy|BNC has joined #ruby
<Yzguy> like easy to use
<Yzguy> I'm use to like argparse in python
<havenwood> Yzguy: Slop's a gem that improves upon OptionParser: https://github.com/leejarvis/slop#readme
Hobbyboy|BNC is now known as Hobbyboy
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
juanpablo_______ has quit [Ping timeout: 240 seconds]
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
<Yzguy> I'll check it out
kraljev11 has joined #ruby
treybul has quit [Ping timeout: 246 seconds]
kraljev11 has quit [Client Quit]
mxrguspxrt has joined #ruby
chouhoulis has joined #ruby
Ox0dea is now known as _whys_guy
<_whys_guy> Yzguy: Mine's better. :P
kraljev11 has joined #ruby
<Yzguy> ^^ haha
kraljev11 has quit [Client Quit]
<Yzguy> haha I'm dying laughing
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
<_whys_guy> I trust you know who _why was, then?
kraljev11 has joined #ruby
<miah> there are so many cli option parsers for ruby, its kinda amazing
kraljev11 has quit [Client Quit]
<shevy> I shall add my own one one day!
kraljev11 has joined #ruby
tubuliferous has joined #ruby
<adaedra> Great, so people would say they hate it without further reasons
kraljev11 has quit [Client Quit]
<shevy> .parse! ARGV
<miah> ive been using optionparser recently, its alright. its a bit heavy on the 'lines of code' side of things but works fine
dc has quit [Remote host closed the connection]
<havenwood> Yzguy: Here's another recently-created option: https://github.com/janlelis/rationalist#readme
kraljev11 has joined #ruby
kraljev11 has quit [Client Quit]
<miah> er
<adaedra> shevy: what now
<shevy> how can you like it adaedra!
<shevy> miah oh oh oh an old sierra gamer?
<adaedra> shevy: I don't know if you noticed, I know ruby docs a bit
dgutierrez1287 has joined #ruby
<miah> ive been a gamer since the early 80's =)
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
kraljev11 has joined #ruby
<shevy> the good old games have been replaced by games in 3D worlds :(
chouhoulis has quit [Ping timeout: 264 seconds]
Helheim has quit [Ping timeout: 256 seconds]
gix has quit [Ping timeout: 246 seconds]
<miah> i dont mind the 3d worlds so much though
kraljev11 has quit [Client Quit]
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
j_mcnally has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
j_mcnally has quit [Max SendQ exceeded]
kraljev11 has joined #ruby
kraljev11 has quit [Client Quit]
Helheim has joined #ruby
saddad has joined #ruby
kraljev11 has joined #ruby
j_mcnally has joined #ruby
kraljev11 has quit [Remote host closed the connection]
doublemalt_ has quit [Remote host closed the connection]
kraljev11 has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
kraljev11 has quit [Remote host closed the connection]
kraljev11 has joined #ruby
stef204 has joined #ruby
kraljev11 has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
Silus10 has joined #ruby
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
kraljev11 has joined #ruby
kraljev11 has quit [Client Quit]
gix has joined #ruby
kraljev11 has joined #ruby
quimrstorres has joined #ruby
kraljev11 has quit [Client Quit]
olistik has joined #ruby
<scpike> shevy: I use trollop and like it, but the name is kind of unfortunate
fantazo has quit [Quit: Verlassend]
mamercad has joined #ruby
<shevy> lol miah that page is hilarious... "IF HAS-GOAT 0 AND OBJHIT-EDGE 14 AND EDGE-OBJ-HIT 1 AND GOAT-GONE 0 AND SHOW-CARROT 0 THEN ASSIGN GOAT-ROOM 11, ERASE 14"
tenderlove has quit [Quit: Leaving...]
<shevy> IF HAS-GOAT ... they were the true originators of lolcode
senayar has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bodgix has joined #ruby
ragingcake has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
Trynemjoel has quit [Ping timeout: 245 seconds]
Soda has quit [Remote host closed the connection]
deavid has quit [Ping timeout: 244 seconds]
<_whys_guy> Can't have hyphens in LOLCODE identifiers.
Trynemjoel has joined #ruby
j_mcnall_ has joined #ruby
saddad has joined #ruby
<shevy> :\
<_whys_guy> It's still a great language. :P
araujo has quit [Ping timeout: 246 seconds]
<wasamasa> can you have hyphens in any other language than lisp as identifiers?
araujo has joined #ruby
<_whys_guy> Does CSS count?
lwu has joined #ruby
<wasamasa> ...
<Mon_Ouie> Assembly?
devbug has joined #ruby
<wasamasa> hmm
<_whys_guy> Most Forth-inspired languages.
j_mcnally has quit [Ping timeout: 256 seconds]
<_whys_guy> Concatenative languages are pretty nice in general.
jhubert has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
niiamon has joined #ruby
lwu has quit [Client Quit]
_whys_guy is now known as Ox0dea
Trynemjoel has joined #ruby
<wasamasa> I dunno, they sound even more impractical than lisp
lwu has joined #ruby
<Ox0dea> wasamasa: You would be hard-pressed to find something Factor's standard library couldn't tackle.
devbug_ has quit [Ping timeout: 272 seconds]
leat has quit [Ping timeout: 255 seconds]
hachiya has quit [Quit: updates]
fedexo has joined #ruby
tkuchiki has joined #ruby
<ELCALOR> is there a better way to do something like this?
scripore has joined #ruby
<ruboto> ELCALOR, we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/68fb9d9c82eee2d53af4
<ruboto> irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
<wasamasa> Ox0dea: hmm, factor
ragingcake has quit [Quit: ragingcake]
jamesaxl|2 has joined #ruby
<wasamasa> Ox0dea: got to find out why I've got a peeve when I asked a coworker about it :P
<wasamasa> I've heard it's got XML!
ragingcake has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<Ox0dea> wasamasa: I mean, how many languages come with a damned reddit client in the standard library?
jhubert has quit [Read error: Connection reset by peer]
<Ox0dea> Development is still extremely active: https://github.com/slavapestov/factor/commits/master
<wasamasa> lol
<wasamasa> well, that does sound fun
quimrstorres has quit [Remote host closed the connection]
sarkyniin has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
bodgix1 has joined #ruby
Trynemjoel has joined #ruby
ragingcake has quit [Client Quit]
<Ox0dea> ELCALOR: (1..4).all? { |q| quarter_closed? q }
ragingcake has joined #ruby
Asher has quit [Quit: Leaving.]
<Ox0dea> Heh, "quarter" is a dollar word. I think that's quite humorous.
<ELCALOR> awesome Ox0dea.
Silus10 has quit []
maq has quit [Quit: maq]
Asher has joined #ruby
<Ox0dea> ELCALOR: For what it's worth, you might consider structuring your code such that you could say @quarters.all?(&:closed?).
<ELCALOR> hmmm
phutchins has quit [Ping timeout: 264 seconds]
<Ox0dea> Being able to write code like that is generally indicative of having organized things nicely and neatly, but it might be overkill in your present scenario.
<Ox0dea> Just something to keep in mind.
ragingcake has quit [Client Quit]
<scpike> It would be cool if there was a syntactic sugar parallel to &: for "call a method in the current namespace on this object"
<ELCALOR> i'm not sure how i would do that. this is my quarter_closed? function btw: http://pastebin.com/YZtESQvC
<ruboto> ELCALOR, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c4ba8101fa8ddc1c3c35
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Ox0dea> scpike: How do you mean?
<Ox0dea> ELCALOR: Yikes. :P
<scpike> In more aggressively functional languages like clojure you don't have methods on objects, you just have functions which take an object and work on them
<ELCALOR> yikes? ;p
<Ox0dea> scpike: That's what you do in any non-OO language, not just Clojure.
mdavid613 has joined #ruby
<scpike> Ox0dea: right, just giving an example
<Ox0dea> I don't see the gap that such sugar would fill?
<Ox0dea> You just... call the method with an argument?
dh64 has quit [Remote host closed the connection]
<scpike> Well, in the example above where you want to do `all? { |q| quarter_closed? q }`, you can't do `all?(&:quarter_closed?)` because it sends the method to the object
banister has joined #ruby
mjs2600 has quit [Quit: Connection closed for inactivity]
<scpike> I totally agree the idiomatic thing in ruby would be for `q` to respond to closed?
<scpike> but sometimes (e.g., if q were a core class like String) you have reasons for wanting to call functions that aren't on the object
diegoviola has joined #ruby
<scpike> and then you have to write the longer { |x| thing x }
ragingcake_ has joined #ruby
<Ox0dea> scpike: Ah, gotcha. Yes, Ruby supports that.
<scpike> With sugar like &: or the way I wrote?
<Ox0dea> >> Method.instance_method(:to_proc) # Yep.
<ruboto> Ox0dea # => #<UnboundMethod: Method#to_proc> (https://eval.in/410566)
<Ox0dea> >> def inc x; x + 1 end; [1, 2, 3].map(&method(:inc))
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/410567)
<scpike> Ox0dea: slick
davedev24 has joined #ruby
<Ox0dea> >> @Ruby.to_i <3 # Just to reiterate.
<ruboto> Ox0dea # => true (https://eval.in/410568)
mdavid613 has quit [Quit: Leaving.]
jwinder has joined #ruby
bffff_ has joined #ruby
<mikecmpbll> :D
deavid has joined #ruby
lemur has quit [Remote host closed the connection]
texasmade has joined #ruby
last_staff has quit [Quit: last_staff]
i8igmac has quit [Ping timeout: 256 seconds]
umgrosscol has quit [Quit: Quit]
mamercad has quit [Ping timeout: 260 seconds]
i8igmac has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdark has quit [Quit: leaving]
TheHodge has joined #ruby
hachiya has joined #ruby
arup_r has quit [Quit: Leaving]
swgillespie has joined #ruby
khebbie has joined #ruby
nisstyre has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
RegulationD has joined #ruby
blue_deref has quit [Quit: bbn]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jwinder has quit [Ping timeout: 246 seconds]
apt-get_ has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
khebbie has quit [Ping timeout: 272 seconds]
saddad has joined #ruby
sarkyniin has quit [Read error: Connection reset by peer]
Jackneill has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
niiamon has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
yfeldblu_ has quit [Ping timeout: 244 seconds]
Helheim has quit [Ping timeout: 246 seconds]
casadei_ has joined #ruby
vdamewood has joined #ruby
workmad3 has quit [Quit: Lost terminal]
Helheim has joined #ruby
umgrosscol has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
Channel6 has joined #ruby
yosafbridge has quit [Ping timeout: 272 seconds]
saddad has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
umgrosscol has quit [Client Quit]
quimrstorres has joined #ruby
casadei_ has quit [Ping timeout: 250 seconds]
Neon has quit [Quit: Leaving]
zacstewart has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.2]
saddad has quit [Ping timeout: 246 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
yosafbridge has joined #ruby
bodgix has quit [Ping timeout: 244 seconds]
Helheim has quit [Max SendQ exceeded]
hachiya has quit [Quit: bye]
Helheim has joined #ruby
Agoldfish has joined #ruby
hachiya has joined #ruby
|\|370 has joined #ruby
mamercad has joined #ruby
|\|370 has quit [Client Quit]
senayar has quit [Remote host closed the connection]
<shevy> I have a strange question
<shevy> class Foo; def self.bar(i = 'some_default'); end; end
<shevy> is there a way to copy the argument signature of a given method, to another method?
ndrei has quit [Ping timeout: 250 seconds]
<Ox0dea> Nope. :(
j4cknewt has joined #ruby
yfeldblum has joined #ruby
Nahra has joined #ruby
<shevy> hmm
<Ox0dea> You can use RubyVM::InstructionSequence.of, but it's really nasty and inherently brittle.
ndrei has joined #ruby
<shevy> this code is not for the sane of minds
ledestin has joined #ruby
<shevy> guess I have to manually sync to the other method
leat has joined #ruby
El3ktra has joined #ruby
<Ox0dea> Well, are you going to have really complex signatures?
El3ktra has left #ruby [#ruby]
ragingcake_ has quit [Quit: ragingcake_]
blue_deref has joined #ruby
Helheim has quit [Max SendQ exceeded]
rakm has joined #ruby
<shevy> nah only 2 input, one string, then a number. I guess I can store in constants and use the constants
nofxx has quit [Ping timeout: 250 seconds]
Iskarlar has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ragingcake has joined #ruby
Pupeno has joined #ruby
quimrstorres has joined #ruby
Helheim has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ragingcake has quit [Client Quit]
Iskarlar has quit [Remote host closed the connection]
<Ox0dea> Well, reconstructing an arbitrarily complex signature requires manually "interpreting" Ruby's bytecode, which is indeed crazy, but it's not so bad if you only need to look for instances of, say, :putobject.
devbug__ has joined #ruby
codecop has quit [Remote host closed the connection]
devdazed_ has joined #ruby
theery has joined #ruby
Iskarlar has joined #ruby
ragingcake has joined #ruby
Ilyes512 has joined #ruby
ap4y has joined #ruby
devdazed has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
deavid has quit [Ping timeout: 244 seconds]
devbug has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 256 seconds]
Iskarlar has quit [Ping timeout: 240 seconds]
bodgix1 has quit [Quit: Leaving.]
<apeiros> Ox0dea: the point of the container would be that it is not on the filesystem level
<apeiros> all FS level info is lost once you send a file somewhere
ndrei has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Helheim has quit [Max SendQ exceeded]
leat has quit [Remote host closed the connection]
mamercad has quit [Ping timeout: 246 seconds]
leat has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
Helheim has joined #ruby
mamercad has joined #ruby
gwendall has joined #ruby
arooni-mobile has joined #ruby
towski_ has joined #ruby
ragingcake has quit [Quit: ragingcake]
ragingcake has joined #ruby
quimrstorres has quit [Remote host closed the connection]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
juanpablo_______ has joined #ruby
ecksit has joined #ruby
Helheim has quit [Max SendQ exceeded]
leat has quit [Remote host closed the connection]
leat has joined #ruby
phutchins has joined #ruby
<ecksit> hi, i am looking to write a puppet-like syntax for a custom project of mine but i'm not sure how to achieve it in ruby. i've played with blocks but i can't seem to get it right. this is the type of syntax i'd like to use - https://gist.github.com/anonymous/e19fdd7cb00a73343aa1
Helheim has joined #ruby
theery has quit [Remote host closed the connection]
senayar has joined #ruby
<Ox0dea> ecksit: That's not very insightful.
<ecksit> at this stage the requirements are pretty loose. i just want to know if it's possible and what approaches i could take
juanpablo_______ has quit [Ping timeout: 256 seconds]
<Ox0dea> ecksit: If... what's possible?
Lewix has joined #ruby
einarj has joined #ruby
<Lewix> hi all
<ecksit> that style of style of syntax (within ruby)
<Ox0dea> ecksit: In the code you posted, you're passing a Hash to the #example method, which is... obviously possible.
quimrstorres has joined #ruby
Helheim has quit [Max SendQ exceeded]
j4cknewt has quit [Remote host closed the connection]
tubuliferous has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Helheim has joined #ruby
Silox| has joined #ruby
<ecksit> but you need to wrap it in parenthese for it to work. i.e. `example({ value: option })` instead i would like `example { value: option }`
senayar has quit [Ping timeout: 260 seconds]
<Mon_Ouie> example(value: option)
<ecksit> i can get it working with a single string, but not hashes
gard has quit [Ping timeout: 252 seconds]
<Mon_Ouie> You can't have the latter simply because of the ambiguity with the syntax to pass a block to a method
<ecksit> @Mon_Ouie: that's not the syntax i _really_ wanted. i was aiming to make it fairly close to the puppet synta
<ecksit> syntax*
einarj has quit [Ping timeout: 240 seconds]
<Mon_Ouie> Adding two characters (opening and closing parentheses) is fairly close…
<Ox0dea> ecksit: Look into #instance_eval and #instance_exec.
yqt has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
theery has joined #ruby
Violentr has joined #ruby
Helheim has quit [Max SendQ exceeded]
dc has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> ecksit: You're aware that Puppet's syntax isn't valid Ruby, yes?
leat has quit [Ping timeout: 264 seconds]
<ecksit> yes.
Helheim has joined #ruby
<ecksit> i do understand it but i do enjoy the flexibility it provides for extending the options available and would like to mimic it where possible
scripore has joined #ruby
<Ox0dea> ecksit: I trust you've seen a .gemspec?
atomical has joined #ruby
<ecksit> yes
<Ox0dea> ecksit: Is that kind of syntax not sufficiently convenient and/or flexible?
<banister> ecksit you can do: example { value option }
j4cknewt has joined #ruby
chouhoulis has joined #ruby
<ecksit> @Ox0dea: I don't like the `Gem::Specification.new do` portion of it but perhaps i could wrap that in a method to do that instead
m8 has quit [Quit: Sto andando via]
j4cknewt has quit [Remote host closed the connection]
<ecksit> hmm, same issue though
Igorshp has joined #ruby
towski_ has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 272 seconds]
texasmade has quit [Ping timeout: 255 seconds]
<Ox0dea> That shows the two most conventional ways of doing the thing, and it's really quite clean compared to what you can do in most other languages.
chouhoulis has quit [Ping timeout: 272 seconds]
<ecksit> it looks good but it's still a little way off :(
<ecksit> perhaps this isn't easily achievable
bodgix has joined #ruby
<Ox0dea> You're asking for the wrong thing, in my opinion.
casadei_ has joined #ruby
pietr0 has quit [Quit: pietr0]
<Ox0dea> You can change that do/end to {} if that'd better tickle your fancy.
mamercad has quit [Ping timeout: 260 seconds]
Igorshp has quit [Ping timeout: 250 seconds]
<Ox0dea> If it's the case that you simply cannot abide Ruby's syntactic limitations, you get to make your own! :)
Vile` has quit [Ping timeout: 252 seconds]
pyrotecnix has joined #ruby
senayar has joined #ruby
mxrguspxrt has joined #ruby
Vile` has joined #ruby
<ecksit> i was afraid of that Ox0dea :(
<ecksit> thanks anyway
lapide_viridi has quit [Read error: Connection reset by peer]
casadei_ has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: Zzz...]
<Ox0dea> ecksit: You could probably do something hackish with binding_of_caller.
charliesome has joined #ruby
eL_bAmba has joined #ruby
theery has quit [Ping timeout: 240 seconds]
[k- has quit [Ping timeout: 256 seconds]
<ecksit> ehhh, that does seem very hackish
zacstewart has joined #ruby
<Mon_Ouie> It's easier of you allow for a method call at the end of the block
texasmade has joined #ruby
<Ox0dea> Fancy.
Blaguvest has joined #ruby
deavid has joined #ruby
glenn_ has joined #ruby
<ecksit> i _think_ i am almost there - https://gist.github.com/anonymous/a4c1411b1e74a93513c8
zacstewart has quit [Ping timeout: 246 seconds]
<Ox0dea> ecksit: You're really not. :/
<ecksit> now i just need to work out how to get line 13 into the method
<ecksit> that seems to be doing exactly what i need
Igorshp has joined #ruby
<banister> Mon_Ouie your the best!
<ecksit> that seems to be doing exactly what i need
<Ox0dea> ecksit: `name = "Test"` is not going to end up in the Hash.
TomyLobo has quit [Ping timeout: 265 seconds]
<ecksit> :(
<Ox0dea> ecksit: Mon_Ouie's demonstration of this madness is about as simple as it can get.
<Mon_Ouie> 'alut banister
<banister> Mon_Ouie couldn't you just grab: proc.binding
<Ox0dea> banister: Didn't work for me. :/
<banister> oh no
<Mon_Ouie> I believe that returns the proc of the binding around the proc
<banister> it wouldn't
<banister> yeah
theery has joined #ruby
<Mon_Ouie> You need the binding that was used when the block was run
<Ox0dea> >> proc { a = 1; b = 2 }.binding.local_variables
<ruboto> Ox0dea # => [] (https://eval.in/410606)
<Ox0dea> ecksit: Why fight the language for such a minor "gain"?
<ecksit> ease of transition mainly
<ecksit> the developers that are doing work on it are familiar with puppet and the way it works for custom attributes.
theery has quit [Remote host closed the connection]
<ecksit> i know it's far from ideal but it's worth a shot
Igorshp has quit [Ping timeout: 246 seconds]
gard has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<banister> ecksit i dont think so, at the best you're probably going to end up with a very leaky abstraction
nofxx has joined #ruby
jud has quit [Quit: Leaving]
<banister> that'll be riddled with edge-cases
baegle has quit [Quit: Leaving]
theery has joined #ruby
<Ox0dea> ecksit: It's just generally a 195894762, in my opinion.
eL_bAmba has quit [Quit: Saliendo]
Casty has joined #ruby
<Mon_Ouie> >> 195894762.to_s 16
<ruboto> Mon_Ouie # => "bad1dea" (https://eval.in/410610)
<Ox0dea> Danke.
_ht has quit [Quit: Konversation terminated!]
dorei has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
<al2o3-cr> love it!
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
olistik has quit [Remote host closed the connection]
<Ox0dea> Mon_Ouie: Wouldn't you like to have been able to say `.hex` there?
<al2o3-cr> same difference :)
martinium has quit [Read error: Connection reset by peer]
<Mon_Ouie> >> 195894762.hex
<ruboto> Mon_Ouie # => undefined method `hex' for 195894762:Fixnum (NoMethodError) ...check link for more (https://eval.in/410616)
<Mon_Ouie> Not sure what you mean
zacts has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<Ox0dea> Mon_Ouie: I'm saying it would be nice if that weren't an error.
<Ox0dea> >> 'bad1dea'.hex
<ruboto> Ox0dea # => 195894762 (https://eval.in/410618)
<Mon_Ouie> Oh, misread you. I don't think it matters very much, I usually write what you just wrote as 'to_i(16)' anyway
<Ox0dea> Aye, that's how most seem to feel about it. :/
<Ox0dea> >> ['0'.hex, '0'.oct, ('0'.bin rescue $!)] This is still unfortunate, in my opinion.
<ruboto> Ox0dea # => /tmp/execpad-47dfdc66bd80/source-47dfdc66bd80:2: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/410619)
theery has quit [Remote host closed the connection]
<Ox0dea> >> ['0'.hex, '0'.oct, ('0'.bin rescue $!)]
<ruboto> Ox0dea # => [0, 0, #<NoMethodError: undefined method `bin' for "0":String>] (https://eval.in/410620)
theery has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
<Ox0dea> The lack of parity in this corner of Ruby upsets me. :(
j4cknewt has joined #ruby
charliesome has joined #ruby
<al2o3-cr> >> [0].pack('C').to_i
<ruboto> al2o3-cr # => 0 (https://eval.in/410622)
<al2o3-cr> wee hey!
<Ox0dea> Needs more TIMTOWTDI.
<Mon_Ouie> >> [1].pack('C').to_i
<ruboto> Mon_Ouie # => 0 (https://eval.in/410624)
aphprentice_ has joined #ruby
jjj123 has quit [Quit: WeeChat 1.1.1]
charliesome has quit [Client Quit]
apfeluser has quit [Ping timeout: 256 seconds]
baegle has joined #ruby
einarj has joined #ruby
<al2o3-cr> hehe
charliesome has joined #ruby
n1993r has joined #ruby
<n1993r> hi
jud has joined #ruby
<shevy> long live ruby!
<al2o3-cr> speak to may
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
Fire-Dragon-DoL has joined #ruby
htmldrum has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
<n1993r> why are rails developers paid more than other developers?
<Ox0dea> ?rails n1993r
<ruboto> n1993r, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<n1993r> oh...
<n1993r> whoops
<Ox0dea> I was being facetious.
<n1993r> sorry i thought ruby and rails were the same thing these days
<n1993r> why did someone kick me?
<Ox0dea> Nobody kicked you.
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<n1993r> whoops wrong channel
<al2o3-cr> matz is no joke, everythings done for a reason!
blaines has joined #ruby
<Ox0dea> It's not always up to matz. :/
<n1993r> someone just banned me from a channel :/
minotep has quit [Ping timeout: 264 seconds]
<Ox0dea> n1993r: First day on IRC?
allcentury has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
bodgix has quit [Ping timeout: 246 seconds]
theery has quit [Remote host closed the connection]
<al2o3-cr> well, the ruby (dev team)
<al2o3-cr> ain't no stuuupid
mdavid613 has joined #ruby
<Ox0dea> >> [:&, :|, :^].map { |s| [].methods.include?(s) } # This is kind of stupid.
<ruboto> Ox0dea # => [true, true, false] (https://eval.in/410627)
<n1993r> Ox0dea: how can you tell that it's my first day on irc?
avahey has joined #ruby
<al2o3-cr> Ox0dea: IYO
<Ox0dea> al2o3-cr: Really, though?
n1993r is now known as nr1993
<al2o3-cr> everything is done for a reason, does the inhibit the language?
<al2o3-cr> *this
<nr1993> someone told me that my username: [16:15] <TheJH> because your username interpreted as leetspeak reads "nigger" (which I'm sure you were already aware of). also, I'm going to stop talking to you now. bye! [16:15] <n1993r> no i wasn't aware of that [16:16] <n1993r> is this better? [16:16] <nr1993> i just thought n1993r looks cool [16:16] <nr1993> so i set it to that
<Ox0dea> I think it's reasonable enough to expect to be able to XOR wherever you can AND and OR.
<nr1993> completely offtopic
theery has joined #ruby
<nr1993> but i don't get it
<Ox0dea> nr1993: 6/10
<Ox0dea> I hadn't even realized.
<al2o3-cr> use a set then
<pontiki> nr1993: was it this channel?
<nr1993> this is the ruby channel
<Ox0dea> al2o3-cr: By that logic, how did Array#& and Array#| even come into existence?
<nr1993> according to the rules we can't talk about rails and other things besides ruby
<al2o3-cr> summer holidays is it?
<pontiki> yes, it is. was that message you received that you just pasted in here from this channel?
<nr1993> what's the difference between array$& and array#|?
<nr1993> i never saw that before
<al2o3-cr> whut
<nr1993> no that's a pm from one of the admins of a channel
<pontiki> nr1993: *WHICH* channel?
<Ox0dea> pontiki: Please stop feeding?
<nr1993> security
j4cknewt has quit [Remote host closed the connection]
<al2o3-cr> comments and hello to you
ndrei has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
<nr1993> how is that going to work? char and argv aren't set to anything?
<Ox0dea> al2o3-cr: There's only one comment.
ndrei has joined #ruby
theery has quit [Remote host closed the connection]
<al2o3-cr> yeah multieada
<al2o3-cr> :)
FernandoBasso has quit [Quit: May the force be with you.]
nr1993 has quit [Quit: Page closed]
<Fire-Dragon-DoL> mhhh are there any ruby method to take all indexes of an array except those specified? Basically a reverse values_at
bruno- has quit [Read error: Connection reset by peer]
vdamewood has quit [Quit: Life beckons.]
<Mon_Ouie> banister: It's hello world both in C and Ruby
<Ox0dea> Mon_Ouie: `def int(*) end; def main(*) end; argc = argv = char = 0` would've sufficed to do away with the errors.
<Mon_Ouie> You used to be able to write it as 'char **argv' before keyword arguments :(
<Ox0dea> Fire-Dragon-DoL: Probably best to just iterate over (0...size).
<Mon_Ouie> I want the code to execute in both languages though
bodgix has joined #ruby
zacts has joined #ruby
<banister> Mon_Ouie LOL very clever
<Ox0dea> Mon_Ouie: Sure, just prefix that line with `//;`.
<Fire-Dragon-DoL> Ox0dea: no I need an array out of it, like I want an array made from index 1, 3 and 4
<Mon_Ouie> def main(*); end would not execute its block, surely?
djbkd has joined #ruby
<Ox0dea> Ah, derp.
casadei_ has joined #ruby
<Mon_Ouie> Also you need some trickery to be able to use 'return'
<Fire-Dragon-DoL> yeah, derp
<Mon_Ouie> I guess you may not technically need to
<Fire-Dragon-DoL> guess I'll stick with a reject or somethign similar
<Ox0dea> Fire-Dragon-DoL: You want to go from [1, 3, 4] to the elements at those indices?
<Fire-Dragon-DoL> yes
<Ox0dea> [1, 3, 4].map { |i| foo[i] } doesn't do?
theery has joined #ruby
<al2o3-cr> yep, simplicity
i8igmac has quit [Ping timeout: 246 seconds]
<Fire-Dragon-DoL> ['a', 'b', 'c', 'd', 'e'].reverse_values_at(0, 2) # => ['b', 'd', 'e']
glenn_ has quit [Quit: Konversation terminated!]
<Fire-Dragon-DoL> I was wishing for a shorter version but I'll stick with that :P
Agoldfish has quit [Ping timeout: 265 seconds]
<Fire-Dragon-DoL> I mean not with that, I guess I'll use something like reject
<al2o3-cr> never heard of reverse_values_at
<al2o3-cr> :P
<Ox0dea> >> %w[a b c d e].select.with_index { |e, i| ![0, 2].include? i } # Fire-Dragon-DoL
<ruboto> Ox0dea # => ["b", "d", "e"] (https://eval.in/410640)
<banister> >> a = ['a', 'b', 'c', 'd', 'e']; a - a.values_at(0, 2)
<ruboto> banister # => ["b", "d", "e"] (https://eval.in/410642)
exadeci has quit [Quit: Connection closed for inactivity]
<Ox0dea> banister: That won't handle duplicate entries well.
<Fire-Dragon-DoL> Ox0dea: thanks. I wished for something visually shorter, that's ok. I'll avoid the `-` because it happens in a place called a lot of times, might impact performances
i8igmac has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has quit [Ping timeout: 272 seconds]
mdomino has joined #ruby
<Fire-Dragon-DoL> thanks anyway guys
weemsledeux has joined #ruby
<Ox0dea> ?guys Fire-Dragon-DoL
<ruboto> Fire-Dragon-DoL, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
bruno- has joined #ruby
apt-get_ has quit [Remote host closed the connection]
<mdomino> Hey guys, I'm looking at making a webapp for work that renders some device configuration templates based on form input. I really don't need a full Rails app since there is no data persistence. If I were better at JavaScript the entire thing could probably be done client-side. Is there a better fit than rails/sinatra for something as simple as 'create forms', 'submit forms', 'render templated response compiled from form data'
bruno- is now known as Guest66504
<Ox0dea> ?guys mdomino
<ruboto> mdomino, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<Fire-Dragon-DoL> ruboto: you maybe don't consider all cultures, in my cultures "guys", translated in the male version, is considered the neutral form, I had already a long discussion about this =\
ragingcake has quit [Quit: ragingcake]
<Ox0dea> ?guys2 Fire-Dragon-DoL
<ruboto> Fire-Dragon-DoL, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
weemsledeux has quit [Max SendQ exceeded]
zacstewart has joined #ruby
<banister> blah blah blah
<Fire-Dragon-DoL> I believe in speech freedom and whoever consider me sexist for such a thing is in any way not respecting MY culture
<Ox0dea> mdomino: The term you're looking for is "microframework".
<banister> so sick of the PC-bullshit that has totally taken over the ruby community
<mdomino> I like the micro part ;)
<banister> rubyists need to get out more, that shit is so unbelievably trivial and boring
<apeiros> Fire-Dragon-DoL: so if it's my culture to just call you asshole, that's A-OK?
<Fire-Dragon-DoL> apeiros: I believe in speech freedom, you can call me asshole, I'm free to not like you though
mdavid613 has quit [Quit: Leaving.]
<mdomino> It seems like every site wants me to create some persistent model and link everything to that. Really I need an easy way to generate HTML forms and respond with a simple plaintext response rendered from that form data. I feel like it's probably a solved problem but I just don't know where to start looking to find it
<apeiros> Fire-Dragon-DoL: well, you're free to behave in whatever way you want outside of #ruby. but not inside. sorry if that's not to your liking.
<apeiros> Fire-Dragon-DoL: and I don't think it's too much to ask.
<Ox0dea> mdomino: Just do it with pure Ruby and a Rack handler?
<mdomino> Never looked int othat
senayar has joined #ruby
senayar has joined #ruby
<mdomino> Thanks Ox0dea... anywhere else to check while I'm googling furiously?
Guest66504 has quit [Ping timeout: 250 seconds]
theery has quit [Remote host closed the connection]
<apeiros> Fire-Dragon-DoL: also note that freedom of speech is not freedom of consequences.
<shevy> hmm... how did it go from guys -> assholes ?
zacstewart has quit [Ping timeout: 246 seconds]
hanmac has quit [Ping timeout: 272 seconds]
<al2o3-cr> beats me!
<apeiros> shevy: Fire-Dragon-DoL made a good call and moved it to #ruby-offtopic. I'm there.
i8igmac has quit [Ping timeout: 260 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
theery has joined #ruby
lwu has quit [Ping timeout: 272 seconds]
theery has quit [Remote host closed the connection]
Ropeney has joined #ruby
AbdulRehman has joined #ruby
lwu has joined #ruby
hanmac has joined #ruby
bronson has joined #ruby
bruno-_ has joined #ruby
theery has joined #ruby
theery has quit [Read error: Connection reset by peer]
theery has joined #ruby
gard has quit [Ping timeout: 244 seconds]
Igorshp has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
i8igmac has joined #ruby
Igorshp has joined #ruby
dgutierrez1287 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
AbdulRehman has quit [Quit: AbdulRehman]
AbdulRehman has joined #ruby
AbdulRehman has quit [Client Quit]
spider-mario has quit [Read error: Connection reset by peer]
nisstyre has joined #ruby
theery has quit [Ping timeout: 260 seconds]
phutchins has quit [Ping timeout: 260 seconds]
helpa has quit [Remote host closed the connection]
Azure has joined #ruby
mdomino has quit [Quit: Page closed]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
Igorshp has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
helpa has joined #ruby
juanpablo_______ has joined #ruby
towski_ has joined #ruby
j4cknewt has joined #ruby
marr has quit []
devbug has joined #ruby
devbug__ has quit [Ping timeout: 265 seconds]
alveric has quit [Ping timeout: 240 seconds]
juanpablo_______ has quit [Ping timeout: 244 seconds]
Antiarc has quit [Read error: Connection reset by peer]
lannonbr has joined #ruby
tubuliferous has joined #ruby
Antiarc has joined #ruby