havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
dopamean1 has quit [Ping timeout: 272 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
bhaak has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
crank1988_ has quit [Ping timeout: 248 seconds]
rodfersou has joined #ruby
rodfersou has quit [Client Quit]
Bulo has quit [Quit: Leaving]
bhaak has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infernix has quit [Ping timeout: 248 seconds]
yqfvwal has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
diegoviola has joined #ruby
crank1988 has joined #ruby
akem has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
joonty has joined #ruby
Gnut has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
ledestin has joined #ruby
bluOxigen has joined #ruby
M-Kodo has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 250 seconds]
zipkid_ has joined #ruby
lancetw_ has joined #ruby
peterevjan has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
trinaldi has quit [Quit: :)]
ex0ns_ has joined #ruby
edulix_ has joined #ruby
peterevjan has quit [Remote host closed the connection]
jlyndon_ has joined #ruby
zenlot2 has joined #ruby
glowcoil_ has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
lancetw has quit [Ping timeout: 240 seconds]
zipkid has quit [Ping timeout: 240 seconds]
bluOxigen_ has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
glowcoil has quit [Ping timeout: 240 seconds]
c355e3b has quit [Ping timeout: 240 seconds]
jlyndon has quit [Ping timeout: 240 seconds]
bodgix has quit [Ping timeout: 240 seconds]
vcoinminer__ has quit [Ping timeout: 240 seconds]
ex0ns has quit [Ping timeout: 240 seconds]
edulix has quit [Ping timeout: 240 seconds]
crayfishx has quit [Ping timeout: 240 seconds]
zenlot1 has quit [Ping timeout: 240 seconds]
dyce has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 240 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
kirillzh has quit [Max SendQ exceeded]
c355e3b has joined #ruby
zipkid_ is now known as zipkid
bodgix has joined #ruby
kirillzh has joined #ruby
lancetw_ is now known as lancetw
crayfishx has joined #ruby
glowcoil_ is now known as glowcoil
mrsolo has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
jlyndon_ is now known as jlyndon
peterevjan has joined #ruby
dyce_ has joined #ruby
mrsolo has joined #ruby
vcoinminer__ has joined #ruby
peterevjan has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
infernix has joined #ruby
M-shine has joined #ruby
asccigcc has quit [Quit: asccigcc]
arescorpio has joined #ruby
braidn has quit [Ping timeout: 240 seconds]
dfockler has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reactor_ has quit [Quit: Leaving]
amokr has joined #ruby
weemsledeux has joined #ruby
peterevjan has joined #ruby
elifoster has quit [Ping timeout: 272 seconds]
floatingpoint has joined #ruby
g3funk has joined #ruby
<Ox0dea> Halp! https://eval.in/517292
<Ox0dea> I'd rather not have to patch #method_added.
CloCkWeRX has joined #ruby
M-Kodo has joined #ruby
amokr has quit [Quit: leaving]
johnmilton has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
azure32 has joined #ruby
hashrocket has quit [Quit: Connection closed for inactivity]
intrigueD has quit [Remote host closed the connection]
nlackbiggerkkk has joined #ruby
milesmatthias has joined #ruby
acidrainfall has quit [Quit: Leaving.]
shellie_ has quit [Quit: Lost terminal]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milesmatthias has quit [Client Quit]
aupadhye has joined #ruby
napstablook has joined #ruby
napstablook has quit [Client Quit]
jottr has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
TomPeed has joined #ruby
napstablook has joined #ruby
nlackbiggerkkk has quit [K-Lined]
<napstablook> hey, can anyone help me out? i'm an absolute newbie with ruby and I'm having trouble understanding an example
SCHAAP137 has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 240 seconds]
kknight has quit [Ping timeout: 250 seconds]
Axy has joined #ruby
Mia has quit [Ping timeout: 252 seconds]
cjbottaro has joined #ruby
nfk has joined #ruby
cjbottaro has quit [Client Quit]
<hays> napstablook: i could try. im a bit of a noob myself
andrew__ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
M-mistake has joined #ruby
theastrowolfe has joined #ruby
elifoster has joined #ruby
<napstablook> ok, I'm trying to follow a tutorial but I don't really understand the usage of symbols on a certain part
RegulationD has joined #ruby
<napstablook> can I link it here?
<hays> yes
<napstablook> it's on 5.2
<napstablook> the author uses :title and :text
<napstablook> but from what I understood those will be replaced with the actual title and text of the article
<hays> yeah probably--this is actually a rails question so i might sugest the rails channel
<napstablook> but how can he do this using symbols? don't they simply have a string value?
<napstablook> what's the channel for rails?
<hays> oh-- well what's wrong with them having a string value
<hays> a title is a string is it not
nfk has quit [Client Quit]
skyjumpe1 is now known as skyjumper
skyjumper has quit [Changing host]
skyjumper has joined #ruby
<napstablook> but it's being set by the user
<napstablook> can symbols have their values changed?
<ropeney> napstablook: They are different attributes on the model
<hays> yeah its probably keying off a hash or something
Axy has quit [Ping timeout: 252 seconds]
<ropeney> its building a html form, and using those symbols to build the name of the input
<napstablook> so they're not acting as variables
M-shine has quit [Quit: node-irc says goodbye]
RegulationD has quit [Ping timeout: 240 seconds]
<Ox0dea> They're acting as identifiers.
<ropeney> napstablook: correct, they're input identifiers.
M-mistake has quit [Quit: node-irc says goodbye]
<ropeney> it generates `<input type='text' name='title' />
<napstablook> oh!
<hays> well... if the title is 'title'
<napstablook> so they're not symbols?
blackmesa has quit [Ping timeout: 252 seconds]
<ropeney> napstablook, they are symbols in ruby, but they aren't used to store the values of anything
skweek has joined #ruby
<hays> they do act as an index or identifier though.. i bet there is a hash with :title => 'Actual title' somewhere
<ropeney> napstablook: they are used, in this case, to identify the attribute to build the html form element for.
<napstablook> ooooooh
<napstablook> I think I get it
skweek has quit [Read error: Connection reset by peer]
<Ox0dea> napstablook: https://eval.in/517294
Sucks has joined #ruby
<Ox0dea> Symbols are essentially always used as more convenient identifiers.
saneax is now known as saneax_AFK
<hays> you can associtate values with symbols but not assign them directly
kirillzh has joined #ruby
<hays> Ox0dea: whoa. that's some magic i didn't know about
<Ox0dea> ?
<hays> use of understore like that
<hays> underscore
<Ox0dea> Er... it's just part of the variable name.
johnmilton has quit [Ping timeout: 272 seconds]
ur5us has quit [Remote host closed the connection]
Domaldel has joined #ruby
<napstablook> ok, so if I were to grab those parameters with the params[:something]
<napstablook> ok, I understand now...
sarlalian has quit [Quit: WeeChat 0.4.2]
kknight has joined #ruby
<napstablook> I'm working on an assignment on rails, is it ok if I ask more questions here over time?
crank1988 has quit [Ping timeout: 248 seconds]
<napstablook> or should I go to the rails channel?
<Ox0dea> I bet you could answer your own question. :P
<hays> if its a question about the ruby language, ask here
<napstablook> ok!
sarlalian has joined #ruby
RegulationD has joined #ruby
kknight has quit [Client Quit]
kknight has joined #ruby
crank1988 has joined #ruby
<hays> Ox0dea: nevermind--i read that weird
fschuindt has joined #ruby
<fschuindt> Guys, how can I get the decimal value of #<BigDecimal:6dfa718,'0.2092581E-1',9(45)>? Sorry for the noob question.
<fschuindt> Isn't 2.092581?
<lucasb> do you mean like BigDecimal.new(...).to_f ?
tvw has quit [Remote host closed the connection]
<fschuindt> Yes, I used some math now, I think it's 0.0209258
<Ox0dea> hays: I think this is what you thought was happening? https://eval.in/517298
marxarelli is now known as marxarelli|afk
<Ox0dea> Either way, just pretend this didn't happen. :P
william3 has quit [Remote host closed the connection]
sapslaj has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
theastrowolfe has quit [Ping timeout: 260 seconds]
<hays> heh yeah probably something like that. I thought ruby treated _ as a shortcut to define a hash lookup for what preceded the _ using what came after the _ as a symbol
<hays> ive had a frustrating day with ruby and kinda sparse documentation of various gems
william3 has joined #ruby
<hays> first 'rmodbus' apparently doesn't allow a server without a slave id of 255 which is super weird
peterevjan has quit [Remote host closed the connection]
peterevjan has joined #ruby
<hays> then celluloid silently moving all docs of supervise to the celluloid-supervise github
<hays> which is not linked to
maikowblue has quit [Quit: .]
<hays> and broken examples are left in the original docs
symbol has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
<hays> ./rant
<Ox0dea> // to escape /
joonty has quit [Ping timeout: 252 seconds]
<hays> /rant
<Ox0dea> Whoa!
<baweaver> do note though that rails questions should go to #RubyOnRails
<baweaver> but that's just an aside.
<baweaver> hays: submit PRs for the docs if you have time
symbol has joined #ruby
<baweaver> whenever I suffer through something I try and fix it or the docs related so it's not such a headache for anyone else afterwards.
<hays> baweaver: yeah i'll try to do that on my own the time vs. on the clock for customer hehe
peterevjan has quit [Remote host closed the connection]
<baweaver> fair
peterevjan has joined #ruby
<hays> i spent about an hour looking through the source code for the darn function. heh turned out it was in a different github
marr has quit [Ping timeout: 260 seconds]
lucasb has quit [Quit: leaving]
<Ox0dea> A different GitHub?!
<havenwood> gihtub
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hays> Ox0dea: a different github.. repo?
<hays> is there a generally accepted way to split .rb files into smaller chunks to separate classes and such into smaller files
<kknight> hays: you are free to to write anything on your git account..
<hays> i found something called 'require_relative' that looks to be deprecated
benlieb has joined #ruby
x77686d has quit [Quit: x77686d]
<Ox0dea> Who says it's deprecated?
x77686d has joined #ruby
theastrowolfe has joined #ruby
ElFerna has joined #ruby
andrew__ has quit [Remote host closed the connection]
allcentury has joined #ruby
andrew_ has joined #ruby
<hays> not sure--different computer
<havenwood> hays: It's supported by all supported Rubies.
<bougyman> not older ones.
<havenwood> hays: Ruby 1.8 is past End-of-Life.
<bougyman> it was 1.9.x, right?
<havenwood> bougyman: ayup
<havenwood> hays: In Ruby 1.8 you can just `require` for the current working directory since "." used to be in the $LOAD_PATH.
andrew_ has quit [Remote host closed the connection]
<hays> hmm soo i guess put classes in lib/ or something then have a master file that require_relative's them
<havenwood> hays: Gems set it up so lib/ is in the $LOAD_PATH. So you can `require 'xo/version'` for example for lib/xo/version.
<havenwood> hays: Ah right, you mean Rails.
<havenwood> hays: Or do you?
<havenwood> hays: Gem lib/ or app lib/?
<havenwood> (I'm reading the scrollback now. So much to catch up on.)
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has joined #ruby
cdg has quit [Remote host closed the connection]
xerophyte has quit [Ping timeout: 256 seconds]
dfockler has quit [Quit: Leaving]
dlitvak has joined #ruby
william3 has quit [Remote host closed the connection]
azure32 has quit [Ping timeout: 272 seconds]
dlitvak has quit [Remote host closed the connection]
allcentury has quit [Quit: WeeChat 1.2]
william3 has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
<pipework> havenwood: Isn't &proc the way to get a hold of the block passed to the method regardless of whether you've made a variable in the signature for it?
<pipework> Ox0dea: ^
andrew_ has joined #ruby
symbol has quit [Ping timeout: 252 seconds]
<Ox0dea> pipework: Also Proc.new.
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhombical has joined #ruby
<Ox0dea> >> def foo; Proc.new.call; end; foo { 42 }
mgorbach has quit [Quit: ZNC - http://znc.in]
<ruby[bot]> Ox0dea: # => 42 (https://eval.in/517301)
<toretore> wat
<Ox0dea> `proc` is actually just a Kernel method that delegates to Proc.new.
<Ox0dea> It'll use the surrounding block if one isn't explicitly provided.
<Ox0dea> And all methods take an implicit block.
<hays> havenwood: i do not mean rqilw
<hays> rails
<toretore> thats ghetto af
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hays> havenwood: im just thinking generally how to structure things so it fits with the norms/conventions
Jardayn has quit [Quit: Leaving]
<hays> learningrubythehardway has a structure.. thats pretty extensive
<Ox0dea> toretore: What is?
<Synthead> I just installed an SSL cert and when connecting to a server with it via openssl s_client, it shows that it's fine. However, I still get an OpenSSL::SSL::SSLError saying that the certificate verify failed. Is there something I missed?
<Ox0dea> That all methods take an implicit block and that there's a way to get hold of it?
<toretore> Proc.new just magically using the method's block Ox0dea
<pipework> Ox0dea: So if I've defined a method and I'm inside the method and I need to get a hold of the proc/block passed into the method, but I can't add &block or whatever to the signature, then to get a hold of the block from anywhere within the method I use Proc.new ?
<Ox0dea> pipework: Or `proc`, aye.
duckpuppy has quit [Ping timeout: 276 seconds]
<pipework> It must not work in irb
jottr has quit [Ping timeout: 240 seconds]
euphoriaa is now known as euphoria
dfinninger has joined #ruby
rhombical has quit [Ping timeout: 240 seconds]
TomPeed has joined #ruby
<havenwood> pipework: or block_given? with yield
scripore has joined #ruby
andrew_ has quit [Remote host closed the connection]
<pipework> havenwood: I need to check the arity of the proc.
<havenwood> ah
<havenwood> pipework: should work in irb
TomPeed has quit [Client Quit]
TomPeed has joined #ruby
peterevjan has quit [Remote host closed the connection]
Jamo has joined #ruby
<Synthead> looks like if I do SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt rails c, it works fine
<Ox0dea> toretore: It's useful to be able to decide whether or not you want to reify the block into an actual Proc.
x77686d has quit [Quit: x77686d]
andrew_ has joined #ruby
<Ox0dea> `cond ? yield : proc.call(...)`
stannard has joined #ruby
theastrowolfe has quit [Ping timeout: 250 seconds]
<toretore> Ox0dea: for twhat purpose?
<toretore> -t
<Ox0dea> toretore: Just in case. :P
<toretore> right :)
<Ox0dea> Procs are comparatively expensive, if that's how you meant.
hololeap has joined #ruby
<toretore> compared to yield?
<Ox0dea> Aye.
<Ox0dea> Blocks are not Objects.
rhombical has joined #ruby
DLSteve has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> Ox0dea: Ah, in my case all I need is the proc in a way I can check the arity and then yield without needing to modify the signature.
<pipework> I'm working on something right miaow though, and it seems to be on the right path.
<Ox0dea> pipework: That's certainly a valid (and intriguing) use case, but no memory savings.
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ElFerna has quit [Ping timeout: 245 seconds]
<pipework> Ox0dea: I'm not too concerned about memory savings, just not changing the actual method signature.
<pipework> `if proc.arity.nonzero?` is most of what I needed.
pawnbox has joined #ruby
<Ox0dea> pipework: Blocks aren't lambdas; they don't check their arguments.
<pipework> Ox0dea: I don't want it checked.
<Ox0dea> You have no say. :P
<pipework> Happy situation then
rhombical has quit [Ping timeout: 240 seconds]
<Ox0dea> It just seems like `proc.call *foo` would do The Right Thing either way?
FooMunki has quit [Quit: FooMunki]
<pipework> If the caller of this method passes a block with a block variable, I'm doing something different than if they pass a block without a block variable.
<Ox0dea> Gotcha. That's slightly terrifying, though. :)
<toretore> instance_eval?
<pipework> Ox0dea: On purpose!
<pipework> It's a patch for lograge (but logging in general)
kies^ has quit [Ping timeout: 240 seconds]
<pipework> I'll show it off in a bit.
pawnbox has quit [Ping timeout: 260 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> toretore: Found that ghetto you were talking about: https://git.io/vgPzi
baweaver has quit [Remote host closed the connection]
<Ox0dea> Why did they skip 0x51?
<Ox0dea> The numbers, Mason!
<toretore> *_MAGIC_*
<Ox0dea> So many MAGIC.
SenpaiSilver_ has joined #ruby
peterevjan has joined #ruby
joonty has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
<Ox0dea> I just want TracePoint to say more about the arguments during :call and :c_call events. :(
<Ox0dea> That it doesn't is probably not just an oversight but actually hard. :/
SenpaiSilver_ has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LuckyABA has joined #ruby
JoshGlzBrk has joined #ruby
scouth has joined #ruby
peterevjan has quit [Ping timeout: 256 seconds]
joonty has quit [Ping timeout: 252 seconds]
theastrowolfe has joined #ruby
<Ox0dea> Ogodwhy: https://eval.in/517309
JoshGlzBrk has quit [Client Quit]
benlieb has quit [Quit: benlieb]
diegoviola has quit [Quit: WeeChat 1.4]
theastrowolfe has quit [Ping timeout: 252 seconds]
frem has quit [Quit: Connection closed for inactivity]
TomPeed has joined #ruby
peterevjan has joined #ruby
sneakers has quit [Quit: back later]
william3 has quit [Remote host closed the connection]
skreem has joined #ruby
skreem has left #ruby [#ruby]
dlitvak has joined #ruby
<VeryBewitching> Mezmerizing muses muddling mundanely.
<VeryBewitching> Today is an M day.
sondr3 has quit [Quit: Sleep]
<VeryBewitching> Ox0dea: That's a fun example.
<nofxx> there's a brazilian comedian with a famous poem titled 'monologue of the modern world' 'world is Mundo' heh
dlitvak_ has joined #ruby
aaeron has quit [Quit: aaeron]
<nofxx> VeryBewitching, rejoice: http://pensador.uol.com.br/frase/NTQ0MDE0/
kknight has quit [Remote host closed the connection]
<Ox0dea> Why?! https://eval.in/517314
<Ox0dea> What the heck causes it to stop returning them in defined order? :/
<nofxx> he says that when he was 7 daddy gave it his first gun, he was the first boy in the street with a gun, next yr he was the only boy on the street
<VeryBewitching> Ox0dea: That's really strange.
duckpuppy has joined #ruby
<Ox0dea> It happens slightly earlier on my 64-bit machine as well. :(
dlitvak has quit [Ping timeout: 240 seconds]
<VeryBewitching> Lemme try.
<VeryBewitching> One sec
<Ox0dea> Should be 236.
<VeryBewitching> Wow
<VeryBewitching> It's nothing like yours
<Ox0dea> All over the place?
scouth has quit [Ping timeout: 252 seconds]
<VeryBewitching> Only if I run it in irb
<VeryBewitching> If I pipe output to a file, it's in order
<Ox0dea> Totally ordered?
<VeryBewitching> ruby ~/test.rb > out.txt
<VeryBewitching> Up, it looks 0 to 254 in sequence.
<Ox0dea> :/
<Ox0dea> What do you get for this? https://eval.in/517315
<Ox0dea> I suppose it might loop forever.
<VeryBewitching> That doesn't return
<Ox0dea> Dangit.
<VeryBewitching> Ya, it's "working"
<Ox0dea> Right.
<VeryBewitching> Intel Core i7, 8 CPUs
duckpuppy has quit [Ping timeout: 245 seconds]
<VeryBewitching> So if you put it in a script file, run it and pipe it out, what order does it come out in?
krz has joined #ruby
<VeryBewitching> On your CPU that is
unl0ckd has quit [Quit: Bye!]
<VeryBewitching> With respect to the former, that is.
<Ox0dea> It's ordered until :m235, which gets placed at the beginning, and then all subsequent methods show up after it.
zenergi has joined #ruby
<VeryBewitching> Did you break Ruby?
<Ox0dea> I vaguely recall somebody asking about this on the mailing list fairly recently.
<Ox0dea> As you might expect, nobu said that there's no guarantee.
scouth has joined #ruby
<VeryBewitching> Are you on AMD?
<Ox0dea> Nope.
<Ox0dea> Are you on 2.3?
<VeryBewitching> Uh, oh...
<VeryBewitching> Maybe not
<Ox0dea> Heh.
<VeryBewitching> One sec
<Ox0dea> Well, there it is: https://eval.in/517319
<Ox0dea> This is a new feature in 2.3. :/
DEA7TH has quit [Quit: DEA7TH]
pawnbox has joined #ruby
Tempesta has quit [Quit: See ya!]
zenergi has quit [Quit: leaving]
<VeryBewitching> I have it compiling
<VeryBewitching> What OS do you usually run Ruby in?
zenergi has joined #ruby
<Ox0dea> Linux.
<Ox0dea> I found the "bug" report: https://bugs.ruby-lang.org/issues/7152#note-2
<Ox0dea> So prolix, that nobu.
pawnbox has quit [Ping timeout: 260 seconds]
<VeryBewitching> I think that the sequence should be honoured.
<VeryBewitching> I would want to rely on that.
<VeryBewitching> In some cases.
<Ox0dea> Like right meow.
<VeryBewitching> It's in order.
<VeryBewitching> Oh, wait, I didn't chruby to 2.3 :<
moeabdol2 has joined #ruby
bronson has joined #ruby
<VeryBewitching> Damn. Starts at 249 for me.
A124 has quit [Read error: Connection reset by peer]
Domaldel has quit [Quit: Leaving]
<Ox0dea> That's wonderfully simple...
RegulationD has quit [Remote host closed the connection]
<Ox0dea> I can't think of a different way to do it without having to make this a C extension that gets all up in the internals. :/
moeabdol3 has joined #ruby
moeabdol2 has quit [Ping timeout: 240 seconds]
DmitryBochkarev has joined #ruby
<VeryBewitching> Almost the time of the day for me when I'm up for losing a ship.
bronson has quit [Ping timeout: 256 seconds]
<Ox0dea> Still parsing that.
<VeryBewitching> Ox0dea: Debug the ruby process, while running that script, in an ide.
A124 has joined #ruby
<Ox0dea> VeryBewitching: Hm? The problem has been identified.
<Ox0dea> #instance_methods isn't guaranteed to return methods in definition order.
<Ox0dea> And the TracePoint API doesn't expose the arguments passed in a call, so I can only know that *a* method has been added, but not which.
scouth has quit [Ping timeout: 272 seconds]
<VeryBewitching> I guess what I'm wondering is... why is it output in that specific pattern.
<Ox0dea> Without monkey-patching Module#method_added, to which I'm opposed on principle.
<VeryBewitching> And what causes it to differ?
<VeryBewitching> With respect to losing a ship, I play Eve on occasion.
<VeryBewitching> On my PC it starts at 249.
<VeryBewitching> Yours it starts later, on both it wraps to fill
<VeryBewitching> I want to know why those specific starting points.
A124 has quit [Ping timeout: 240 seconds]
<VeryBewitching> afk a sec, grabbing phone
peterevjan has quit [Remote host closed the connection]
moeabdol3 has quit [Ping timeout: 256 seconds]
<Ox0dea> These lines stand out as being potentially relevant: https://git.io/vgPos
joonty has joined #ruby
<Ox0dea> I suspect the sizes are the same on both our 64-bit machines, so maybe it's to do with structure packing differences between our compilers?
A124 has joined #ruby
arlek has joined #ruby
azure32 has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
scouth has joined #ruby
<VeryBewitching> How much addressable memory plus swap on your end?
<VeryBewitching> 1024 Mb swap plus 7567/7944 MB RAM
idefine has joined #ruby
<Ox0dea> Are you frying eggs?
<VeryBewitching> Perhaps.
<VeryBewitching> That's mem free btw
<Ox0dea> A little less RAM, infinitely less swap.
kies^ has joined #ruby
<Ox0dea> Compiler?
kies^ has quit [Remote host closed the connection]
<VeryBewitching> gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)
pawnbox has joined #ruby
<VeryBewitching> Kubuntu 15.10
karapetyan has joined #ruby
<Ox0dea> I'm on 5.3, but I suspect irrelevance there as well. :/
<VeryBewitching> I don't see how a collection could be assigned out of order, and in a different pattern.
swills has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<VeryBewitching> Certain the iterator would determine the generated index, starting at 0.
<VeryBewitching> s/Certain/Certainly
<Ox0dea> It's constructing the list with a hash table, presumably to ignore duplicates from superclasses.
<Ox0dea> Ruby Hashes are ordered, but the VM goes out of its way to ensure that, and it just doesn't do so with the internal hash constructed by #instance_methods.
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<VeryBewitching> But the execution order should always put :m0 at index 0
ur5us has joined #ruby
<Ox0dea> Only the buckets and their contents matter, not their positions in the chain; when #instance_methods goes to iterate over them, there's "spillage".
<VeryBewitching> Oh, wait, no that's not at all sensical.
pawnbox has quit [Ping timeout: 276 seconds]
karapetyan has quit [Ping timeout: 272 seconds]
<Ox0dea> I thought that wasn't a word.
<VeryBewitching> Which gives the word so much more meaning :D
kies^ has joined #ruby
<VeryBewitching> So it sounds like it's an efficiency thing?
d10n-work has quit [Quit: Connection closed for inactivity]
peterevjan has joined #ruby
peterevjan has quit [Remote host closed the connection]
wprice has quit [Quit: wprice]
zacstewart has quit [Ping timeout: 260 seconds]
peterevjan has joined #ruby
peterevjan has quit [Client Quit]
<Ox0dea> MRI just doesn't go out of its way to keep internal hashes ordered.
<VeryBewitching> Not having to account for position, especially in something as large as a Rails app, would probably keep more free memory available.
<Ox0dea> Better than that would be if #instance_methods and the like did any caching at all.
scouth has quit [Ping timeout: 240 seconds]
<Ox0dea> >> methods.__id__ == methods.__id__
<VeryBewitching> Someone in #RubyOnRails was talking about memoize earlier.
<ruby[bot]> Ox0dea: # => false (https://eval.in/517322)
<VeryBewitching> I think a constant/symbol cache would be nice.
DEA7TH has joined #ruby
<Ox0dea> Symbols are interned.
theastrowolfe has joined #ruby
<Ox0dea> >> :foo.__id__ == :foo.__id__ # to clarify
<ruby[bot]> Ox0dea: # => true (https://eval.in/517323)
<Ox0dea> Still, #methods is constructing a new Array each time.
<VeryBewitching> Interesting.
renderful has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> The local variable table maintains order: https://eval.in/517334
<Ox0dea> ¯\_(ツ)_/¯
<VeryBewitching> And that's when I have a drink.
pawnbox has joined #ruby
siphonage has joined #ruby
duckpuppy has joined #ruby
s00pcan has quit [Ping timeout: 264 seconds]
azure32 has quit [Quit: leaving]
<Ox0dea> Well, if you insist.
<VeryBewitching> I'm off for the night, a long day with a framework I don't enjoy. I still want to know why mine starts at 249 though, I'm going to see if I sort that tomorrow.
VeryBewitching has quit [Quit: Konversation terminated!]
s00pcan has joined #ruby
elifoster has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 248 seconds]
TomPeed has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
DmitryBochkarev has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
agent_white has joined #ruby
azure32 has joined #ruby
terminalrecluse has joined #ruby
doublemalt_ has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
doublemalt_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
kingsler has joined #ruby
RegulationD has joined #ruby
braincrash has quit [Quit: bye bye]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tona has joined #ruby
<tona> hello guys
<tona> is there one way to create one ssh web browser in ruby to connect with servers using ssh but into one browser ?
RegulationD has quit [Ping timeout: 276 seconds]
stannard has joined #ruby
minimalism has joined #ruby
treaki has quit [Ping timeout: 250 seconds]
dlitvak_ has quit [Remote host closed the connection]
dcope has left #ruby [#ruby]
treaki has joined #ruby
x77686d has joined #ruby
joonty has joined #ruby
siphonage has quit [Ping timeout: 264 seconds]
stannard has quit [Ping timeout: 256 seconds]
andrew_ has quit [Read error: Connection reset by peer]
andrew_ has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
braincrash has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
mistermocha has joined #ruby
djbkd has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
Bloomer has joined #ruby
theastrowolfe has quit [Ping timeout: 240 seconds]
asccigcc has joined #ruby
arescorpio has quit [Quit: Leaving.]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
sneakerhax has joined #ruby
zacstewart has joined #ruby
asccigcc has quit [Client Quit]
napstablook has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 250 seconds]
sneakerhax has quit [Client Quit]
johnmilton has quit [Quit: Namaste]
Sucks has quit [Ping timeout: 240 seconds]
sneakerhax has joined #ruby
floatingpoint has joined #ruby
scripore has joined #ruby
pawnbox has quit [Remote host closed the connection]
gix has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
rkazak has joined #ruby
gix has joined #ruby
aaeron has joined #ruby
terminalrecluse has quit [Quit: Textual IRC Client: www.textualapp.com]
arthropododo has quit [Remote host closed the connection]
nofacade has joined #ruby
duncannz has joined #ruby
pawnbox has quit [Remote host closed the connection]
fedexo has joined #ruby
twintail has quit [Remote host closed the connection]
duckpuppy has joined #ruby
terminalrecluse has joined #ruby
chipotle has quit [Quit: cheerio]
twintail has joined #ruby
pawnbox_ has joined #ruby
kirillzh has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
Gobioidei has joined #ruby
Bloomer has quit [Remote host closed the connection]
william3 has joined #ruby
edwardly has quit [Max SendQ exceeded]
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Max SendQ exceeded]
william3 has quit [Ping timeout: 245 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwardly has joined #ruby
edwardly has joined #ruby
chipotle has joined #ruby
perrier__ has quit [Remote host closed the connection]
perrier_ has joined #ruby
_djbkd has joined #ruby
davedev24 has quit []
pawnbox_ has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
chipotle has quit [Ping timeout: 240 seconds]
andrew_ has quit [Remote host closed the connection]
konsolebox has joined #ruby
dragon9783 has joined #ruby
darkf has quit [Read error: Connection reset by peer]
Kryptonical has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
arbys has quit [Read error: Connection reset by peer]
armyriad has quit [Read error: Connection reset by peer]
arbys has joined #ruby
aaeron has quit [Quit: aaeron]
armyriad has joined #ruby
pawnbox has joined #ruby
dexter-tzu has quit [Read error: Connection reset by peer]
quakephil has quit [Read error: Connection reset by peer]
Kryptonical has joined #ruby
darkf has joined #ruby
crdpink2 has quit [Excess Flood]
dexter-tzu has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
crdpink2 has joined #ruby
Miron has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
Gobioidei has quit [Ping timeout: 248 seconds]
p0p0pr37 has quit [Read error: Connection reset by peer]
rideh has quit [Ping timeout: 252 seconds]
sorah has quit [Ping timeout: 250 seconds]
tpendragon has quit [Ping timeout: 250 seconds]
skarn has quit [Excess Flood]
ceej has quit [Ping timeout: 240 seconds]
kent\n has quit [Ping timeout: 252 seconds]
blackjid has quit [Ping timeout: 250 seconds]
hostess has quit [Ping timeout: 250 seconds]
ceej has joined #ruby
Derailed has joined #ruby
rideh has joined #ruby
zast has quit [Remote host closed the connection]
Miron has joined #ruby
skarn has joined #ruby
hostess has joined #ruby
kent\n has joined #ruby
kent\n has quit [Changing host]
kent\n has joined #ruby
joonty has joined #ruby
agent_white has quit [Quit: brbinafew]
budhram has joined #ruby
blackjid has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
awk_ is now known as awk
joonty has quit [Ping timeout: 260 seconds]
pigeonhearted has joined #ruby
tpendragon has joined #ruby
idefine has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rsc___ has quit [Quit: rsc___]
Tempesta has joined #ruby
cjheath has joined #ruby
sorah has joined #ruby
baweaver has joined #ruby
<cjheath> I’ve published a lot of gems, but something today has me baffled. I have an executable in my gem. A clean install installs the runtime dependencies, but when I run the executable, it requires the development deps to be installed. Is this a problem with rbenv?
<cjheath> Try it: “gem install activefacts-compositions” then try to run: “schema_compositor —help”
<cjheath> It works fine if you install the development deps as well
<cjheath> any ideas?
<cjheath> the executable is *not* a dev tool; it’s the main purpose for the gem.
dfinninger has quit [Remote host closed the connection]
chipotle has joined #ruby
adgtl has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 248 seconds]
nodejunkie has joined #ruby
idefine has joined #ruby
kingsler has left #ruby ["AndroIRC"]
<baweaver> Ox0dea or jhass might know.
idefine has quit [Ping timeout: 240 seconds]
<cjheath> I’ve also asked in #rubygems, and now asking on stackoverflow
<baweaver> it's beyond me honestly.
<cjheath> I suspect that the answer will be that “executables are development tools”. Clearly not true in this case, but that might be the assumption
<baweaver> probably
ur5us has quit [Remote host closed the connection]
duckpuppy has joined #ruby
diegoviola has joined #ruby
diegoviola has left #ruby [#ruby]
dopamean1 has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
pigeonhearted has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pigeonhearted has joined #ruby
zacstewart has joined #ruby
zenlot2 is now known as zenlot
pigeonhearted has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
toretore has quit [Ping timeout: 256 seconds]
<djellemah> cjheath: what's in Gemfile and activefacts-compositions.gemspec ?
aces1up has joined #ruby
speakingcode has quit [Ping timeout: 248 seconds]
<aces1up> i cannot seem to find a simple answer to this, just want to get current time, in timezone pacific.. in date and timestamp format.
speakingcode has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
adgtl has quit [Remote host closed the connection]
<djellemah> cjheath: My guesses: maybe one of your activefacts- gems has those gems as runtime dependencies; or maybe require 'bundler/setup' is pulling in development dependencies. Bundle.require may help, I'm quite hazy on bundler though.
<cjheath> I checked the installed files, and none of the deps has activefacts as a runtime dep
<cjheath> I mean in the installed gem repo
joonty has joined #ruby
tona has quit [Quit: Page closed]
adgtl has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aces1up has quit []
joonty has quit [Ping timeout: 240 seconds]
<djellemah> cjheath: http://bundler.io/bundler_setup.html might help, the second code example
s00pcan has quit [Remote host closed the connection]
codecop has joined #ruby
last_staff has joined #ruby
ghostfish has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
rsc___ has joined #ruby
mistermocha has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<cjheath> djellemah: thanks, looking now (just had dinner)
LoneHerm_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
SkepBrain has joined #ruby
mdw has joined #ruby
_mak has joined #ruby
agent_white has joined #ruby
s00pcan has joined #ruby
<_mak> hi there
<cjheath> No, that didn’t help.
adgtl has quit [Remote host closed the connection]
<_mak> I have this json api endpoint, which in order to query I need to have a 'session cookie', which in order to get I need to login to the site using a html login form. Is there any gem I could use to get the cookie without resorting to a headless browser to login to the site?
aganov has joined #ruby
<cjheath> _mak: Mechanize used to be the go-to gem for webscraping.
UtkarshRay has quit [Remote host closed the connection]
ghostfish has quit [Ping timeout: 240 seconds]
p1k has joined #ruby
<_mak> cjheath: cool, thanks!
<cjheath> check the ruby toolbox to see if there’s something better, but I expect not
<p1k> is there any way to make changes to ruby objects but limit the scope within those changes are visible ?
<cjheath> p1k: That’s what Ruby 2’s Refinements are for
<p1k> cjheath: more specifically? :o
adgtl has joined #ruby
<cjheath> Google for Ruby and Refinements, you’ll find more than you wantto know
<cjheath> be aware that the feature was somewhat controversial
LoneHerm_ has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
pawnbox has quit [Remote host closed the connection]
<p1k> cjheath: thanks
s00pcan has quit [Ping timeout: 240 seconds]
<djellemah> p1k: jruby and rubinius don't implement refinements afaik, but it's been a while since I checked.
<djellemah> cjheath: When I do gem install activefacts-compositions in a clean gemset I get
<djellemah> Fetching: debugger-linecache-1.2.0.gem (100%)
<djellemah> Fetching: byebug-1.8.2.gem (100%)
<djellemah> Fetching: tracing-2.0.6.gem (100%)
<djellemah> those look like development dependencies to me.
<cjheath> byebug is only if you enable it in TRACE environment variable. Likewise tracing - it does nothing unless you enable it
<cjheath> The tracing is left in for production, because that’s where you’re most likely to need it
Youngmathimus0 has joined #ruby
<p1k> so Using declarations are block scoped ?
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
platinochloric has joined #ruby
_mak has left #ruby [".."]
intrigueD has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
adgtl has quit [Remote host closed the connection]
pawnbox has joined #ruby
<djellemah> cjheath: When I do comment out require 'bundler/setup' in schema_compositor, schema_compositor --help shows Available compositors etc
<cjheath> Oh really! Thanks, that’s a great find
<djellemah> p1k: I think they're module scoped.
ur5us has quit [Ping timeout: 250 seconds]
adgtl has joined #ruby
<cjheath> djellemah: I must buy you a beer sometime! You solved m'y problem :
mickey_mouse has joined #ruby
s00pcan has joined #ruby
<djellemah> cjheath: thanks, but you might want to check that the non --help codepaths still work ;-)
<cjheath> It’s basically a driver - the options it lists are modules it can load
<cjheath> so they should work too
<p1k> djellemah: Yeah I think this is too heavy handed for what I'm looking to do
s00pcan has quit [Remote host closed the connection]
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
BTRE has joined #ruby
s00pcan has joined #ruby
_djbkd has quit [Quit: My people need me...]
s00pcan_ has quit [Ping timeout: 260 seconds]
<djellemah> cjheath: consult the demo gods about 'should work' ;-)
Macaveli has quit [Client Quit]
<cjheath> tested, works fine, thanks!
chouhoulis has joined #ruby
piotrj has joined #ruby
Macaveli has joined #ruby
diegoviola has joined #ruby
uanl has joined #ruby
<uanl> i have no math background and i can't do logic well
<uanl> what would you recommend to do for me to improve?
s00pcan has quit [Read error: No route to host]
s00pcan has joined #ruby
SkepBrain has quit [Remote host closed the connection]
bronson has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
intrigueD has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has joined #ruby
rsc___ has quit [Quit: rsc___]
azure32 has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 256 seconds]
dragon9783 has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Remote host closed the connection]
lurch_ has joined #ruby
ur5us has joined #ruby
azure32 has joined #ruby
scepticulous has joined #ruby
<uanl> i can't code chess is something wrong with me?
<uanl> chess or checkers
<uanl> my head can't wrap around the logic
diegoviola has quit [Quit: WeeChat 1.4]
adgtl has quit [Remote host closed the connection]
lurch_ has quit [Read error: Connection reset by peer]
ta has joined #ruby
s00pcan has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
ta_ has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
mistermocha has joined #ruby
karapetyan has joined #ruby
polysics_ has joined #ruby
toretore has joined #ruby
ta has quit [Ping timeout: 250 seconds]
polysics has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
ta has joined #ruby
sandstrom has joined #ruby
mhoungbo has joined #ruby
anisha has joined #ruby
platinochloric has quit [Ping timeout: 248 seconds]
Mia has joined #ruby
bruce_lee has joined #ruby
piotrj has quit [Remote host closed the connection]
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
arlek has quit [Ping timeout: 256 seconds]
piotrj has joined #ruby
jas02 has joined #ruby
robbyoconnor has joined #ruby
y2mq37 has joined #ruby
symm- has joined #ruby
firstdayonthejob has joined #ruby
duckpuppy has joined #ruby
andrew_ has joined #ruby
PedramT has joined #ruby
nunchuck has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 245 seconds]
lubekpl has joined #ruby
unflated has joined #ruby
pawnbox has quit [Remote host closed the connection]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<azure32> well chess isn't exactly a simple game to be fair
SkepBrain has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
azure32 has quit [Quit: leaving]
rdark has joined #ruby
PedramT has quit [Remote host closed the connection]
ta_ has joined #ruby
sandstrom has joined #ruby
ta has quit [Ping timeout: 256 seconds]
sandstrom has quit [Client Quit]
tvw has joined #ruby
piotrj has quit [Ping timeout: 240 seconds]
Hounddog has joined #ruby
cox^ has joined #ruby
fedexo has quit [Ping timeout: 260 seconds]
cox^ has left #ruby [#ruby]
RegulationD has joined #ruby
amclain has quit [Quit: Leaving]
ta_ has quit [Read error: Connection reset by peer]
Hounddog has quit [Ping timeout: 250 seconds]
ta has joined #ruby
Hounddog has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
urtokk has joined #ruby
mhoungbo has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
mdw has joined #ruby
kp666 has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
toretore has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
pawnbox has joined #ruby
moei has joined #ruby
hololeap has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
srenatus has joined #ruby
karapetyan has quit [Remote host closed the connection]
<solars> are there any good/working vim refactoring plugins for ruby?
<Ox0dea> Sounds like you want an IDE.
<ljarvis> solars: refactoring in what sense? Ruby style is very opinionated
<ljarvis> you wouldn't think it idling here of course
chouhoulis has quit [Remote host closed the connection]
amorbix has joined #ruby
<ljarvis> /s
sandstrom has joined #ruby
mhoungbo has joined #ruby
yaewa has joined #ruby
<uanl> why did ruby lose the battle against node?
<adaedra> why are all the trolls so unoriginal?
<heftig> evil always triumphs in the middle
<uanl> ruby was popular last year and then node improved a lot and now nobody wants ruby devs anymore
vondruch has joined #ruby
<uanl> i live in san francisco
<adaedra> cool story.
<uanl> i know more about the tech industry than most of you here
<eam> well, not more than me
<uanl> so what is the demand for ruby these days?
moei has quit [Ping timeout: 276 seconds]
vondruch has quit [Client Quit]
dmolina has joined #ruby
kmckelvin has joined #ruby
william3 has joined #ruby
vondruch has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
<solars> Ox0dea, I'm using vim as my ide
<solars> ljarvis, refactoring, not style.. I mean things like extract method etc
<adaedra> you mean yank and paste? :p
<solars> are you a programmer? :)
LoneHermit has quit [Remote host closed the connection]
<ljarvis> i don't know what you mean by extract method unless you do mean yank and paste
<Ox0dea> solars: This might be the talk for you: https://www.youtube.com/watch?v=SkdrYWhh-8s
<ljarvis> because that's what i do
<Ox0dea> Video quality's kinda shit. :/
firstdayonthejob has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
silicio has joined #ruby
<adaedra> There seems to be that https://github.com/ecomba/vim-ruby-refactoring
<solars> Ox0dea, I know all these things, I just wanted to know if somebody does know a plugin that I do not
<Ox0dea> solars: Know all what things?
<solars> adaedra, unfortunately it's outdated
karapetyan has joined #ruby
<Ox0dea> You're being silly.
<ljarvis> :/
<solars> Ox0dea, I mean I know how to use vim
<adaedra> I'm tempted to reuse Ox0dea's gif here.
<solars> but I did not find anything decent, oder than eclim, to refactor ruby
<Ox0dea> solars: What's wrong with the plugin adaedra linked?
<adaedra> I'm afraid you still have to do some things manually.
<solars> Ox0dea, it's not actively maintained and has bugs
<Ox0dea> solars: What kind of bugs?
kirillzh has joined #ruby
<Ox0dea> Like, name one.
<ljarvis> those shortcuts are really... simple
<ljarvis> I guess that's why I'm confused
<solars> Ox0dea, extract method didn't work
<ljarvis> like why would you need anything more that just.. vim
<solars> guys
<Ox0dea> I knew it!
<adaedra> gal
<solars> if you never tried it, there is no point in discussing it
<solars> so please don't troll
<ljarvis> I refactor code all the time
<ljarvis> in vim
<ljarvis> so please don't troll
<solars> ljarvis, obviously you didn't even know what extract method is, right
<ljarvis> ...
<ljarvis> lol
<adaedra> ...
<ljarvis> well im done here
tvw has quit [Read error: Connection reset by peer]
<solars> there are refactoring patterns, and that's what I'm referring to with refactoring
<solars> not changing code style
<solars> that's certainly not refactoring
<ljarvis> look lady
<ljarvis> I asked about style to start with because I was unsure, I know you're talking about refactoring and I know what refactoring is
PedramT has joined #ruby
<solars> good, then please do not try to convince me that I am wrong just because you do it differently
<adaedra> Okay, so to close the discussion, no, we do not know plugins that do what you want.
<solars> I noticed, yes
duckpuppy has joined #ruby
nodejunkie has quit [Ping timeout: 252 seconds]
Snowy has joined #ruby
yfeldblum has joined #ruby
tvw has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
darkf has quit [Quit: Leaving]
william3 has joined #ruby
rodfersou has joined #ruby
unflated has quit [Ping timeout: 248 seconds]
kp666 has joined #ruby
uanl has quit [Ping timeout: 252 seconds]
UtkarshRay has joined #ruby
william3 has quit [Remote host closed the connection]
foo` has joined #ruby
benlieb has joined #ruby
ur5us has quit [Remote host closed the connection]
foo` has quit [Remote host closed the connection]
bilus has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
marr has joined #ruby
unflinching has joined #ruby
SCHAAP137 has joined #ruby
lipoqil has joined #ruby
william3 has joined #ruby
ziyadb has joined #ruby
valera has joined #ruby
amorbix has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
andrew_ has quit [Remote host closed the connection]
unflinching has quit [Ping timeout: 240 seconds]
Gnut has joined #ruby
kimegede has joined #ruby
unflinching has joined #ruby
mark4 has joined #ruby
binaryplease has joined #ruby
drptbl has joined #ruby
Mon_Ouie has joined #ruby
bkxd has joined #ruby
Darkwater has joined #ruby
huyderman has joined #ruby
drptbl_ has joined #ruby
<Darkwater> is it good practice to create loads of custom *Error classes? (eg for a build script: UnknownConfigError, UnknownBuildTypeError, NoConfigUsedError, etc)
ur5us has joined #ruby
<yorickpeterse> ljarvis: bro do you even know about refactoring?
<adaedra> bro do you even refactor
toretore has joined #ruby
mhoungbo has quit [Quit: Quitte]
andrew_ has joined #ruby
mistermocha has joined #ruby
drptbl has quit [Ping timeout: 248 seconds]
<yorickpeterse> no I don't know what refactoring is
<djellemah> Darkwater: do you need to rescue them separately?
<djellemah> A friend of a friend told me that rubymine refactors.
aupadhye has quit [Quit: Leaving]
<adaedra> yorickpeterse: are you a programmer? :)
<Darkwater> djellemah: probably, I at least want unique error messages printed to the user for each one
CloCkWeRX has quit [Read error: Connection reset by peer]
<Darkwater> and since this build script is meant to be extensible I figured it might be best to pull printing messages out of the main logic
CloCkWeRX has joined #ruby
<Darkwater> actually I probaly don't have to rescue them separately if I put description messages in the error classes
<djellemah> Darkwater: there ya go
<Darkwater> that still leaves the question of RuntimeError with message vs custom *Error with static messages
PedramT_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
<yorickpeterse> adaedra: No I'm just a plumber
<adaedra> I se
<adaedra> I see*
<ljarvis> yorickpeterse: adaedra: No, I brofactor
<adaedra> BRO
mistermocha has quit [Ping timeout: 250 seconds]
PedramT has quit [Read error: Connection reset by peer]
<Ox0dea> Darkwater: Would a user of your thing ever want to rescue any of your custom errors?
CloCkWeRX has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
maikowblue has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<Darkwater> possibly yes
<ljarvis> then use custom ones, and probably inherit from a parent exception class that your library owns
<Ox0dea> &ri Exception2MessageMapper
Youngmathimus0 has quit [Ping timeout: 276 seconds]
<Ox0dea> Might be overkill, might be perfect.
wprice has joined #ruby
<adaedra> Never heard of that before @_@
TheHodge has joined #ruby
<Ox0dea> You're supposed to read the standard library. :P
scepticulous has quit [Ping timeout: 240 seconds]
<ljarvis> ah yes, Exception2MessageMapper, part of the rarely used stdlib gang
<Darkwater> probably overkill, I like the idea of having a parent exception class tho
adgtl has joined #ruby
idefine has joined #ruby
<ljarvis> and rarely is being nice
<adaedra> Ox0dea: I wrote a bot to do that for me.
<Ox0dea> Smaht.
<ljarvis> it's too early for boston accents
rodfersou has quit [Quit: leaving]
<adaedra> But just in time for French accents.
<adaedra> ˆ for everybody!
<ljarvis> Oui
<Ox0dea> Ognon.
<adaedra> ljârvis
ocbtec has joined #ruby
<adaedra> Ôx0̂dêâ
<Ox0dea> adaedra
<djellemah> héhé
benlieb has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
LoneHerm_ has joined #ruby
adgtl has quit [Read error: Connection reset by peer]
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
<yorickpeterse> you lot heard about bronads?
<yorickpeterse> that and brosures are these really cool things from functional brogramming
<yorickpeterse> I also crush code in Braskell
idefine has quit [Ping timeout: 260 seconds]
<yorickpeterse> k I'm done
platzhirsch has joined #ruby
<ljarvis> do you even broroutine
<Ox0dea> Apparently Haskell Brooks Curry has three programming languages named after him.
<adaedra> Just to be sure, `def param, options = {}` is replacable by `def param, **options` ?
<Ox0dea> Can't find anything about the middle one, though.
neanderslob has joined #ruby
<Ox0dea> adaedra: I suspect you'd have to purposely subvert something to break that equivalence, yes.
<adaedra> Nice.
<ljarvis> adaedra: that means 'yes' in english btw
<adaedra> :p
<Ox0dea> Anti-intellectualism can shove it.
rideh has quit [Changing host]
rideh has joined #ruby
<Ox0dea> Not that that was even intellectualism.
LoneHerm_ has quit [Ping timeout: 240 seconds]
scepticulous has joined #ruby
duckpuppy has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
dotix has joined #ruby
pandaant has joined #ruby
platzhirsch has quit [Ping timeout: 272 seconds]
<Ox0dea> I'm not sure it could even be said to be a programming language if it only exists in a white paper.
Domaldel has joined #ruby
karapetyan has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
bruce__lee has joined #ruby
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
binaryplease has quit [Quit: WeeChat 1.4]
moeabdol has joined #ruby
FooMunki has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
evidex has joined #ruby
bweston92 has quit [Remote host closed the connection]
platzhirsch has joined #ruby
Napear has joined #ruby
hamed_r has joined #ruby
wprice has quit [Quit: wprice]
Xeago has joined #ruby
RegulationD has joined #ruby
platzhirsch has left #ruby [#ruby]
duncannz has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 256 seconds]
Xeago has quit [Ping timeout: 240 seconds]
benhuda has joined #ruby
hayden_ has joined #ruby
chipotle has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
PedramT_ has quit [Remote host closed the connection]
einarj has joined #ruby
PedramT has joined #ruby
platzhirsch has joined #ruby
PedramT has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
platzhirsch has quit [Client Quit]
ElFerna has joined #ruby
baweaver has joined #ruby
PedramT has joined #ruby
floror has quit [Quit: floror]
karapetyan has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Domaldel has quit [Quit: Leaving]
baweaver has quit [Ping timeout: 250 seconds]
patchedmonkey has joined #ruby
norc has joined #ruby
trinaldi has joined #ruby
dlitvak has joined #ruby
Xeago has joined #ruby
<djellemah> Ox0dea: Hmm. It looks like a hybrid of a fancy turing machine and a fancy lambda calculus.
rodfersou has joined #ruby
<Ox0dea> djellemah: That describes all programming. :)
<djellemah> :-D
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Brooks is "purely academic" in the purest sense of the phrase.
<Ox0dea> Haskell++
platzhirsch has joined #ruby
dlitvak_ has joined #ruby
joonty has joined #ruby
ldnunes has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
<norc> For sharing a resource (a session id) between processes that any process could possibly change, Im guessing my best bet is simply a shared file with proper flocks?
<Ox0dea> Seems the most straightforward, at any rate.
Zai00 has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
<Ox0dea> Alternatively, Process.setproctitle + https://en.wikipedia.org/wiki/Raft_(computer_science)
kam270 has joined #ruby
<Ox0dea> There are also FP languages named Betrand and Russell.
ldnunes has quit [Ping timeout: 250 seconds]
ldnunes has joined #ruby
<Ox0dea> *Bertrand
sandstrom has quit [Quit: My computer has gone to sleep.]
andrew_ has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
Hounddog has quit [Remote host closed the connection]
j2k_ is now known as j2k
tvw has quit [Ping timeout: 240 seconds]
jas02 has quit [Quit: jas02]
andrewvos has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
PedramT has joined #ruby
Gnut has quit [Ping timeout: 264 seconds]
unflinching has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 240 seconds]
<heftig> norc: or a shared sqlite database
duckpuppy has joined #ruby
<norc> heftig: That would be overkill.
<heftig> it's a string key-value store
Hounddog has joined #ruby
Ishido has joined #ruby
* norc waits for the obligatory "redis" shout
<heftig> hm, actually it seems to use marshalling to store whatever
<dtordable> hello
<norc> Thanks for your input.
apathogenic has joined #ruby
<norc> I think Ill go with the File based approach, its simple enough and does not incur any extra dependencies.
<Ox0dea> A filesystem is a key-value store. :)
Bloomer has joined #ruby
zeroDivisible has joined #ruby
<norc> Not exactly!
<Ox0dea> With aliases!
<norc> hardlinks are more than just aliases.
ElFerna has quit [Ping timeout: 240 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> Oh brilliant.
<heftig> norc: no need to do flocks, either. you could depend on atomic rename
<Ox0dea> >> $foo = 1; alias $bar $foo; $bar = 42; $foo # norc
<ruby[bot]> Ox0dea: # => 42 (https://eval.in/517579)
<norc> Heh.
duckpuppy has quit [Ping timeout: 240 seconds]
<djellemah> Ox0dea: Church looks similar as this http://www.mathstat.dal.ca/~selinger/quipper/ but I lack most of the knowledge needed to say that with any gravity.
<Ox0dea> djellemah: https://esolangs.org/wiki/Quipu is the first thing that came to mind.
<Ox0dea> It is completely unrelated.
PedramT has quit [Remote host closed the connection]
<norc> Ox0dea: I was really surprised when I recently learned that `rm -rf /´has the potential to wreck your mainboard nowadays.
<Ox0dea> norc: That was pretty terrifying.
<norc> Indeed.
<Ox0dea> djellemah: I totally missed that Church is meant to be used for quantum computation.
<Ox0dea> *was? :(
<djellemah> back later
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
dlitvak has joined #ruby
<heftig> norc: fn = "sessionid.#{Process.pid}"; begin; File.write(fn, "newsessionid"); File.rename(fn, "sessionid"); rescue; File.delete(fn) rescue nil; raise; end
<norc> heftig: Using flocks just seems cleaner.
apathogenic has quit [Ping timeout: 240 seconds]
<norc> While I admit your solution is quite compact
<heftig> atomic rename is widely used
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
<norc> Oh. Wait.
<norc> heftig: I like it
dlitvak_ has quit [Ping timeout: 240 seconds]
<norc> heftig: How does this interact with concurrent reads though?
<heftig> when you open the file you'll either get the old one or the new one
<atmosx> aloha
<heftig> renaming over a file won't disturb any of its handles
<heftig> (so those still operate on the old file, which just lost its name)
kinetogenic has joined #ruby
Zai00 has quit [Quit: Zai00]
<norc> How about deleting while its being read?
<norc> I mean I dont know much about how linux does blocking here.
karapetyan has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
jespada has joined #ruby
karapetyan has joined #ruby
william3 has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
blackmesa has joined #ruby
pawnbox has joined #ruby
mikee_work has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
lipoqil has quit [Quit: Connection closed for inactivity]
kam270 has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
lxsameer has quit [Quit: Leaving]
william3 has quit [Remote host closed the connection]
<yorickpeterse> So String has a method called String#-@ and String#+@, is there any established name for these kind of methods?
pawnbox has quit [Remote host closed the connection]
<yorickpeterse> as in, something like "prefix minus"?
pawnbox has joined #ruby
atmosx has joined #ruby
<Ox0dea> They're unary operators.
<Ox0dea> "unary minus"
Xeago has quit [Remote host closed the connection]
william3 has joined #ruby
codecop has quit [Remote host closed the connection]
Azulinho has joined #ruby
agent_white has quit [Quit: night]
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
Antiarc has joined #ruby
PedramT has joined #ruby
inev has joined #ruby
kinetogenic has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
Azulinho has quit [Ping timeout: 256 seconds]
huyderman has quit [Remote host closed the connection]
dajobat has joined #ruby
<Bish> is there something like the c++ "use" in ruby
bluOxigen_ has quit [Ping timeout: 250 seconds]
<Bish> so i don't have the whole namespace path all the time
Averna has joined #ruby
<Ox0dea> Bish: You think you want top-level #include. :P
rizenine has quit [Remote host closed the connection]
<norc> Which defeats the point entirely...
<norc> Of namespaces.
<Ox0dea> Bish doesn't want to have to type so much!
<Bish> norc: well, you don't have to do it
<Bish> so how does it destroy anything
<norc> Bish: Wait until you have a Agent::Finder::IO that defines a method calls open
<norc> I want to be in the chat on that day.
<scepticulous> why not alias the long namespace :D
<norc> *called
blackmesa has quit [Ping timeout: 250 seconds]
<scepticulous> I mean SHORT = My::Way::Too::Long::Namespace
<norc> Ox0dea: So I was pondering a lot on your idea to pack a trace information into nil.
<norc> And Im actually beginning to like it more and more.
<scepticulous> SHORT::Klass
<Ox0dea> Yay!
kinetogenic has joined #ruby
<Ox0dea> norc: There's a pretty serious problem, though.
<norc> scepticulous: If you have to specify it all the time you are likely doing something wrong though.
<Ox0dea> Or, well, the change would absolutely have to be made in MRI itself.
<Ox0dea> NaN is just NaN at the Ruby level.
<norc> scepticulous: Usually you are inside the module already which gives you lexical access to the constants defined within.
<scepticulous> norc: yes but in that case Bish would not have to use the NS anyway. Thus my suggestion addresses the other cases.
<scepticulous> Even though I never used this in ruby
<norc> And having public interfaces in Foo::Bar::Quux::Baz::Apple::Orange really indicates a code smell.
<scepticulous> norc: agree
<Ox0dea> I don't think visibility has anything to do with Bish's objection.
<Ox0dea> He just doesn't like his code to drift to the right.
<norc> A chain helps.
<norc> People do it with dogs all the time.
ElFerna has joined #ruby
<Ox0dea> Wait, did you mean nil or NaN back there?
toretore has joined #ruby
<Bish> aliasing the namespace is a good idea, surprised i didn't think of that
<norc> nil, as that was what you envisioned.
<norc> You just demonstrated it with NaN I think.
<Ox0dea> But nil is a tagged pointer.
<norc> Hey.
<norc> Stop it.
<norc> Spoiler alert.
<Ox0dea> Oh?
<norc> Have not dived into nil yet. :S
jas02 has joined #ruby
dlitvak_ has joined #ruby
mistermocha has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
ElFerna has quit [Ping timeout: 250 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
huyderman has joined #ruby
pawnbox has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
pawnbox has joined #ruby
ldnunes has joined #ruby
adgtl has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 250 seconds]
Cohedrin has joined #ruby
benhuda has joined #ruby
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
<Ox0dea> norc: https://eval.in/517642
<Ox0dea> Relevant: https://xkcd.com/356/
aryaching has joined #ruby
moeabdol has joined #ruby
<norc> Uh.
p1k has quit [Ping timeout: 276 seconds]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
<Ox0dea> It's just that there's no guarantee on the order, but the details of when it becomes unordered in MRI are... "interesting" isn't quite the word.
benhuda has quit [Ping timeout: 248 seconds]
dlitvak has joined #ruby
<norc> Yeah I got that much.
dlitvak_ has quit [Ping timeout: 256 seconds]
symbol has joined #ruby
sandstrom has joined #ruby
adgtl has quit [Remote host closed the connection]
yqfvwal has quit [Ping timeout: 250 seconds]
Napear has quit [Quit: leaving]
toretore has quit [Quit: Leaving]
duckpuppy has joined #ruby
ljames has joined #ruby
Shaboum has joined #ruby
kinetogenic has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
huyderman has quit [Remote host closed the connection]
krz has quit [Ping timeout: 240 seconds]
huyderman has joined #ruby
einarj has quit [Remote host closed the connection]
sdothum has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
karapetyan has quit [Remote host closed the connection]
shuriu has joined #ruby
karapetyan has joined #ruby
underisive has joined #ruby
wprice has joined #ruby
Kallis has joined #ruby
Mon_Ouie has joined #ruby
dlitvak has joined #ruby
Bloomer has quit [Remote host closed the connection]
flughafen_ has joined #ruby
<flughafen_> hey shevy
ElFerna has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
Bloomer has joined #ruby
ruby-lang877 has joined #ruby
ruby859 has joined #ruby
adgtl has quit [Remote host closed the connection]
ruby859 has quit [Client Quit]
mdw has joined #ruby
Coral has joined #ruby
Coral is now known as tjadc
adgtl has joined #ruby
tjadc is now known as tjad
Macaveli has joined #ruby
underisive has quit [Ping timeout: 250 seconds]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang877 has quit [Ping timeout: 252 seconds]
aspiers has joined #ruby
<Ox0dea> norc: https://eval.in/517650
adgtl has quit [Remote host closed the connection]
<Ox0dea> Any recourse to making that be [3,2,1] somehow?
adgtl has joined #ruby
txd has joined #ruby
TheMoonMaster has quit [Ping timeout: 272 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has joined #ruby
discourageable has joined #ruby
yfeldblum has quit [Remote host closed the connection]
rizenine has joined #ruby
saneax is now known as saneax_AFK
A124 has quit [Quit: '']
avenj has quit [Ping timeout: 240 seconds]
dlitvak_ has joined #ruby
roshanavand has joined #ruby
silicio has quit [Remote host closed the connection]
symbol has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
TheMoonMaster has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
tk__ has joined #ruby
A124 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
joonty has quit [Ping timeout: 240 seconds]
jas02 has quit [Quit: jas02]
platzhirsch has quit [Quit: Leaving.]
duckpuppy has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
jds has joined #ruby
william3 has joined #ruby
jottr has joined #ruby
jottr has quit [Client Quit]
PedramT has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
PedramT has joined #ruby
sgambino has joined #ruby
DEA7TH has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
bilus` has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
sgambino has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rsc___ has joined #ruby
ph0 has joined #ruby
tatsuo has joined #ruby
Bloomer has quit [Remote host closed the connection]
roger_rabbit has quit [Ping timeout: 256 seconds]
quaristice has joined #ruby
Bloomer has joined #ruby
adgtl has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
blackmesa has joined #ruby
polysics has joined #ruby
pawnbox has quit [Remote host closed the connection]
discourageable has quit [Ping timeout: 248 seconds]
adgtl has joined #ruby
nettoweb has joined #ruby
rsc___ has quit [Quit: rsc___]
SCHAAP137 has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
dubek has quit [Ping timeout: 260 seconds]
polysics_ has quit [Ping timeout: 248 seconds]
johnmilton has joined #ruby
adgtl has quit [Remote host closed the connection]
dotix has quit [Remote host closed the connection]
ph0 has quit [Ping timeout: 245 seconds]
PedramT_ has joined #ruby
Snowy has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
antgel has joined #ruby
tamarin has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
sgambino has joined #ruby
fourq is now known as fourq|away
fourq|away is now known as fourq
joonty has joined #ruby
CloCkWeRX has joined #ruby
pawnbox has joined #ruby
SCHAAP137 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
budhram has quit [Quit: Leaving]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lubekpl has joined #ruby
tamarin has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
Bloomer has quit [Remote host closed the connection]
bronson has joined #ruby
PedramT has joined #ruby
jxs_ has joined #ruby
dlitvak_ has quit [Ping timeout: 252 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
PedramT_ has quit [Ping timeout: 248 seconds]
sgambino has quit [Client Quit]
ElFerna_ has joined #ruby
karapetyan has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
kimegede has quit [Quit: Linkinus - http://linkinus.com]
Ishido has quit [Read error: Connection reset by peer]
k13nox has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
querimoniousness has joined #ruby
maesitos has joined #ruby
dionysus69 has joined #ruby
polysics has quit []
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flughafen_ has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
sondr3 has joined #ruby
flughafen_ has joined #ruby
yalue has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
krz has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
symbol has joined #ruby
PedramT has quit []
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
goodcodeguy has joined #ruby
dotix has joined #ruby
mistermocha has joined #ruby
y2mq37 has quit [Ping timeout: 264 seconds]
querimoniousness has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 260 seconds]
scepticulous has quit [Ping timeout: 248 seconds]
nfk has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has joined #ruby
Ishido has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
mistermocha has quit [Ping timeout: 276 seconds]
lubekpl has joined #ruby
querimoniousness has joined #ruby
blackmesa has joined #ruby
cdg has joined #ruby
Ishido has quit [Remote host closed the connection]
zacstewart has joined #ruby
symbol has joined #ruby
patchedmonkey has joined #ruby
chipotle has joined #ruby
<EdwardIII> how come in ruby to call a lambda you say f.call()? why not just f()?
symbol has quit [Client Quit]
openstruct has joined #ruby
openstruct has joined #ruby
<yorickpeterse> because the parser treats f() as a method call to "f"
<yorickpeterse> and not as "f.call"
<yorickpeterse> You can do this though:
<yorickpeterse> >> x = lambda { 10 }; x.()
<ruby[bot]> yorickpeterse: # => 10 (https://eval.in/517693)
atomical has joined #ruby
<EdwardIII> heh x.() is shorthand for x.call()?
<EdwardIII> or something more complex?
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quaristice has joined #ruby
ta has quit [Read error: Connection reset by peer]
unl0ckd has joined #ruby
ta has joined #ruby
Shaboum has quit [Quit: WeeChat 1.4]
Shaboum has joined #ruby
<adaedra> it's just syntax sugar
querimoniousness has quit [Ping timeout: 240 seconds]
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rsc___ has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
bweston92 has joined #ruby
haylon has joined #ruby
uncorruptive has joined #ruby
Snowy has quit [Remote host closed the connection]
symm- has joined #ruby
<soahccc> How do you debug StackError exceptions with just one line of backtrace? :(
quakephil has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
karapetyan has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 245 seconds]
uncorruptive has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
<djellemah> >> f = ->{:yeehaa}; [f[], f.(), f::(), f.call] # EdwardIII
<ruby[bot]> djellemah: # => [:yeehaa, :yeehaa, :yeehaa, :yeehaa] (https://eval.in/517711)
RegulationD has joined #ruby
Shaboum has quit [Ping timeout: 252 seconds]
<soahccc> Could I assume Thread.current.backtrace to be "the stack"?
scripore has joined #ruby
goodcodeguy has joined #ruby
<haylon> djellemah, htat was pretty cool
quaristice has joined #ruby
tk__ has quit [Quit: ばいばい]
RegulationD has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
dlitvak has joined #ruby
<hanmac> djellemah: as this shows: all are totally the same in the underlying vm code
<hanmac> >> %w[f.() f.call f::()].uniq {|x| RubyVM::InstructionSequence.compile(x).disasm }.one?
<ruby[bot]> hanmac: # => true (https://eval.in/517713)
uncorruptive has joined #ruby
openstruct has quit [Remote host closed the connection]
ropeney has joined #ruby
ropeney has quit [Remote host closed the connection]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
silicio has joined #ruby
avenj has joined #ruby
avenj has joined #ruby
<soahccc> Alright... how you debug stack level errors in ruby? Use ruby >=2.2 :D
<apeiros> soahccc: you read the backtrace?
<soahccc> apeiros: there was no backtrace really now I have it
vdamewood has joined #ruby
patchedmonkey has joined #ruby
openstruct has joined #ruby
openstruct has joined #ruby
themsay has joined #ruby
<apeiros> soahccc: hm? ruby itself does not truncate the backtrace afaik. only places where you print it do.
baweaver has joined #ruby
<apeiros> i.e. if you yourself rescue it and do a `puts exception.backtrace`, you'll get the full backtrace
<soahccc> apeiros: in my gist you see I directly ask the exception object for its backtrace but prior to ruby 2.2 you just get one line of backtrace
<apeiros> soahccc: did you rescue the exception?
<soahccc> apeiros: yes
<apeiros> so you say `puts ex.backtrace` gives you only a single line?
<soahccc> yep
blackmesa has quit [Ping timeout: 264 seconds]
<soahccc> on 2.1 at least
<apeiros> ok. that's curious. I've never experienced that.
flughafen_ has quit [Ping timeout: 252 seconds]
Shaboum has joined #ruby
quaristice has quit [Quit: Textual IRC Client: www.textualapp.com]
maikowblue_ has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
maikowblue has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
cdg has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
sandstrom has joined #ruby
floatingpoint has joined #ruby
Snowy has joined #ruby
cdg has joined #ruby
mdw has joined #ruby
blackmesa has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
marr has quit [Remote host closed the connection]
uncorruptive has quit [Ping timeout: 252 seconds]
kies^ has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
tuxaanand has joined #ruby
dlitvak has joined #ruby
eikood has joined #ruby
platzhirsch has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
konsolebox has quit [Quit: Leaving]
TomPeed has joined #ruby
DEA7TH has quit [Ping timeout: 248 seconds]
JDiPierro has joined #ruby
lucasb has joined #ruby
prettifier has joined #ruby
eikood has quit [Quit: Leaving]
eikood has joined #ruby
fschuindt has quit [Read error: Connection reset by peer]
eikood has quit [Remote host closed the connection]
eikood has joined #ruby
sankaber has joined #ruby
eikood has quit [Remote host closed the connection]
eikood has joined #ruby
aspiers has joined #ruby
eikood has quit [Remote host closed the connection]
eikood has joined #ruby
sankaber has quit [Remote host closed the connection]
godzillaenlacasa has joined #ruby
sankaber has joined #ruby
floror has joined #ruby
floror has quit [Client Quit]
JoshGlzBrk has joined #ruby
ramortegui has joined #ruby
babblebre has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
sumark has quit [Quit: a(n)nus horribilis]
rodfersou is now known as rodfersou|lunch
sumark has joined #ruby
scepticulous has joined #ruby
pdoherty has joined #ruby
mary5030 has joined #ruby
rsc___ has quit [Quit: rsc___]
malconis has joined #ruby
<Diabolik> is false.present? ? false : true the same as false || true?
cdg_ has joined #ruby
<Diabolik> >> false.present? ? false : true == false || true
<ruby[bot]> Diabolik: # => undefined method `present?' for false:FalseClass (NoMethodError) ...check link for more (https://eval.in/517744)
eikood has quit [Quit: Leaving]
prettifier has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
zacstewart has quit [Ping timeout: 248 seconds]
dlitvak_ has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
Couch has quit [Quit: Leaving]
<lucasb> yes, I think (false.present? ? false : true) == (false || true) is a tautology :)
whippythellama has joined #ruby
<apeiros> Diabolik: no, it's not
<Diabolik> apeiros what's the difference?
bkxd has joined #ruby
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 250 seconds]
<apeiros> hm, actually… I'm not sure I can make sense of this
pseudocumenyl has joined #ruby
<apeiros> how'd an actual use-case look? `x.present? ? false : true` vs. what?
pseudocumenyl has quit [Max SendQ exceeded]
<apeiros> vs. `x ? false : true`? or something else?
<Diabolik> well im looking at this
<Diabolik> and trying to figure out the value
<apeiros> "".presence || "default"
<apeiros> that's the value
einarj has joined #ruby
<apeiros> or rather: x.presence || default, vs. x.present? ? x : default
bilus has quit [Ping timeout: 248 seconds]
<apeiros> the longer the x expression is, the more obvious the succinctness of the former form becomes
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
einarj_ has quit [Ping timeout: 252 seconds]
bilus` has quit [Ping timeout: 272 seconds]
<apeiros> and the answer to a different question: `x.present? ? …` is not equivalent to `x ? …`
tjad has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
<livcd_> for those that use emacs. Do you guys use rsense or robe mode ?
<Diabolik> the statement i posted
p1k has joined #ruby
<Diabolik> in what circumstances would they be different apeiros
<apeiros> the statement you posted makes no sense as all are literals and you wouldn't use that in any real case.
pseudocumenyl has joined #ruby
hamed_r has quit [Ping timeout: 256 seconds]
<apeiros> `false.present? false : true` is equivalent to a plain `true`. there's really no point in considering it.
<Diabolik> ok
<Diabolik> what im asking is logic wise are they identical
<Diabolik> rmeove false/true and replace with xy
<Diabolik> *x/y
pseudocumenyl has quit [Changing host]
pseudocumenyl has joined #ruby
nofacade has joined #ruby
<apeiros> Diabolik: again, please make a concrete example.
x77686d has joined #ruby
<Diabolik> x.present? ? x : y vs x || y
<Diabolik> is the first a longer version of the second or are there any differences
<apeiros> x = ""
<apeiros> would have different output in above.
<apeiros> because present? does not test for falsy
<apeiros> "".present? # => false
<apeiros> but "" is trueish
jamesaxl has joined #ruby
<jamesaxl> hello
arlek has joined #ruby
<apeiros> so given `x = ""`, `x.present? ? x : y` # => y, meanwhile `x || y` => x
<apeiros> hi jamesaxl
<apeiros> Diabolik: but `x.present? ? x : y` is equivalent to `x.presence || y`
<Diabolik> h,,
<Diabolik> *hmm
<Diabolik> interesting
dionysus69 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<jamesaxl> Could you help me, I am looking for a network framwork like Python-Twisted?
pawnbox has joined #ruby
<ddv> jamesaxl: EventMachine
idefine has joined #ruby
<jamesaxl> ddv: thank you
senayar_ has joined #ruby
Sucks has joined #ruby
senayar_ has quit [Read error: Connection reset by peer]
dopamean1 has quit [Ping timeout: 272 seconds]
pseudocumenyl has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 240 seconds]
SkepBrain has quit [Quit: bye bye]
aspiers has quit [Ping timeout: 252 seconds]
norc has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
y2mq37 has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
B1n4r10 has joined #ruby
blackmesa has joined #ruby
pseudocumenyl has joined #ruby
ElFerna_ has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 264 seconds]
DmitryBochkarev has joined #ruby
dlitvak has joined #ruby
<ponga> what else do we have than Sinatra and Rails for ruby?
einarj_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
patchedmonkey has joined #ruby
<hanmac> ponga: what do you mean "for ruby" ? i use it for many other different stuff
Mon_Ouie has joined #ruby
<ponga> in ruby, sorry
<ljarvis> if you mean web frameworks
<ponga> or *with ruby
<ponga> thanks ljarvis
<Bish> ponga: what do you mean? you can patch PE files with ruby, theres a gem for that
floror has joined #ruby
y2mq37 has quit [Ping timeout: 252 seconds]
<Bish> there is a gem for everything, in my experience
<ponga> Bish: what gem is it
william3 has quit [Remote host closed the connection]
<hanmac> my stuff i wrote is mostly non-web related, recently i revite my gaming scripting stuff
<ponga> i never knew we had PE file with ruby, damn
<Bish> pedump a.e
sandstrom has quit [Quit: My computer has gone to sleep.]
<Bish> there is also ruby-elf which i also liked very much
dlitvak_ has quit [Ping timeout: 240 seconds]
<Bish> for patching binaries
jds has quit [Quit: Connection closed for inactivity]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
LeMalandrin has joined #ruby
<hanmac> Bish: i once did see an ruby implementation for EFI ;P means you can run ruby without an OS XD
floror has quit [Ping timeout: 240 seconds]
urtokk has quit [Quit: WeeChat 1.4]
<LeMalandrin> hi !
<tubbo> hanmac: orly
<tubbo> that sounds interesting
<tubbo> does that actually work though?
dionysus69 has quit [Ping timeout: 276 seconds]
<LeMalandrin> i have an issue on rails :/ Am i in the right room ?
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
dopamean1 has joined #ruby
<hanmac> LeMalandrin: try #rubyonrails
crowell has quit [Ping timeout: 252 seconds]
sumark has left #ruby [#ruby]
william3 has joined #ruby
<LeMalandrin> oh thank you hanmac :)
* hanmac thinks that #IssueOnRails would also be a funny room name XD
<ponga> I want to ask user number of questions to fill in, which in result gives out a result filled in with the answers, in Web browser. what would be my best approach regarding; what language to use, what library/framework? to use, etc
<ponga> I guess sinatra can solve my problem
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
<apeiros> ponga: with the given requirement, about any language & framework would work.
<apeiros> there are even completely implemented tools around, like limesurvey (iirc that was the name)
<ponga> apeiros: thanks I will spend time learning sinatra
<ponga> or nodejs? maybe
<Bish> ponga: i liked webmachine
<Bish> i still like webmachine*
inev has left #ruby ["Leaving"]
<Bish> wrong channel for nodejs, but still cool
<Bish> but i guess that depends too much on what you want to do
momomomomo has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Remote host closed the connection]
dfinninger has joined #ruby
Renich has joined #ruby
<EdwardIII> hrm trying to create a braindead app. i have lib/ns_finder.rb, but in <root dir>/finder.rb, when i do 'require "ns_finder"' i get "LoadError: cannot load such file -- ns_finder"?
wprice_ has joined #ruby
wprice has quit [Ping timeout: 264 seconds]
<EdwardIII> in perl i'd probably do perl -I'lib' finder.pl
wprice_ is now known as wprice
JDiPierro has joined #ruby
<tubbo> hanmac: lol can you read japanese?
karapetyan has joined #ruby
<apeiros> EdwardIII: and in ruby you do ruby -Ilib
<EdwardIII> huh, same thing works in ruby heh
<apeiros> surpriise ;-)
<EdwardIII> the proper approach is probably to make a gem right?
<tubbo> i had to turn translating off because chrome would always try to translate this spanish-language web app i'm working on
<apeiros> EdwardIII: well, even when making a gem I use ruby -Ilib bin/foo
<apeiros> that is while developing
adgtl_ has joined #ruby
<apeiros> once installed, the -Ilib is no longer necessary. but then again, neither is the prefixed `ruby` necessary.
<tubbo> EdwardIII: all -I does is add that directory to the $LOAD_PATH. you can do that *in* Ruby itself as well.
B1n4r10 has quit [Ping timeout: 252 seconds]
<EdwardIII> right
<hanmac> tubbo: no but i read a german translation of it in a blog
Mon_Ouie has quit [Ping timeout: 250 seconds]
adgtl has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
shreddor has joined #ruby
Tempesta has quit [Ping timeout: 240 seconds]
kmckelvin has quit [Read error: Connection reset by peer]
adgtl_ has quit [Remote host closed the connection]
kmckelvin has joined #ruby
mary5030 has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
william3 has joined #ruby
einarj has joined #ruby
y2mq37 has joined #ruby
decoponio has joined #ruby
arlek has quit [Ping timeout: 252 seconds]
silicio has quit [Remote host closed the connection]
circ-user-NoIIC has joined #ruby
momomomomo has quit [Quit: momomomomo]
<EdwardIII> in irb can i force it to like, reload a module?
AnonRecluse13 has quit [Remote host closed the connection]
<EdwardIII> save me quitting & restarting all the time when i'm playing with something?
<apeiros> load "file.rb"
<dajobat> Edward: you could probably fork a new instance?
AnonRecluse13 has joined #ruby
<apeiros> load unlike require needs the suffix
SCHAAP137 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dhollinger has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
tenderlove has quit [Read error: Connection reset by peer]
dotix has quit [Remote host closed the connection]
tenderlove has joined #ruby
<EdwardIII> very cool, thanks apeiros
dlitvak_ has joined #ruby
B1n4r10 has joined #ruby
dotix has joined #ruby
<hanmac> apeiros: i dont know how it totally works, but did you try to call "irb" in "irb" ?;P
<apeiros> hanmac: it'll open a nested irb session
<apeiros> works with pry too
<apeiros> you can even specify an object for context
y2mq37 has quit [Ping timeout: 250 seconds]
<apeiros> i.e. I often do `pry ActiveRecord::Migration` in a rails console.
anisha has quit [Quit: Leaving]
<hanmac> hm yeah, is that enough for reloading or doesnt that solve the problem?
<apeiros> it doesn't reload anything ;-)
rodfersou|lunch is now known as rodfersou
stannard has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 250 seconds]
<apeiros> you could do `exec('irb', *ARGV')`
y2mq37 has joined #ruby
<apeiros> -'
davedev24 has joined #ruby
<apeiros> that'd reload everything. but you'd also lose all data from the current session.
sneakerhax has quit [Quit: back later]
jgpawletko has joined #ruby
tomchapin has joined #ruby
<EdwardIII> speaking of irb, what stupidity am i doing that stops me from being able to do single-line blocks? report.no_nameservers.each({|d| d.to_s })
angelixd has joined #ruby
dotix has quit [Remote host closed the connection]
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
dotix has quit [Client Quit]
<lucasb> put outside the parens
<Takumo> Hi all, I'm trying to return a PDF from aGrape
<Takumo> an API using Grape, but I get a rack error saying it can't convert \xE2 from ASCII-8bit to UTF-8
xapak has joined #ruby
<xapak> Hello.
dlitvak_ has quit [Ping timeout: 240 seconds]
<Takumo> should I be instructing rack to set the content encoding to ascii-8bit and not try to convert to utf-8?
arthropododo has joined #ruby
<xapak> Can someone help me figure out where should I look for the methods mentioned here? https://github.com/cheezy/page-object/blob/master/lib/page-object.rb#L63-L65
<xapak> I did a grep of the whole project looking for example for 'initialize_page', and I don’t see it defined anywhere.
<xapak> So I’m curious if it’s a Ruby something.
momomomomo has joined #ruby
codecop has quit [Ping timeout: 272 seconds]
kies^ has joined #ruby
chouhoulis has joined #ruby
aegis3121 has joined #ruby
codecop has joined #ruby
<lucasb> if I understood correctly, those methods are just hooks that will be called for you, if you define them
einarj_ has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
einarj has joined #ruby
dlitvak has joined #ruby
<EdwardIII> heh durr it was working already, i was just misreading the output
<EdwardIII> to_s was showing the default object representation... because i was looking at the wrong object like a fool
zast has joined #ruby
<xapak> lucasb, I see, but where should they exist or in what context? Looks weird to me. :p
Snowy is now known as MidnightSnack-Sn
MidnightSnack-Sn is now known as Snowy
scepticulous has quit [Ping timeout: 264 seconds]
<lucasb> i don't know, but I think you can put them in the class that includes the PageObject module
<lucasb> class MyPage; include PageObject; def initialize_accessors; ... end; def initialize_page; ...; end end
Shaboum has quit [Quit: WeeChat 1.4]
jgt4 has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
wpm has joined #ruby
y2mq37 has quit [Read error: Connection reset by peer]
wpm has quit [Client Quit]
jgt has joined #ruby
jgt4 has quit [Read error: Connection reset by peer]
hamed_r has joined #ruby
wpm has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flughafen_ has joined #ruby
hashrocket has joined #ruby
Gnut has joined #ruby
zacstewart has joined #ruby
adgtl has joined #ruby
adgtl has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
DexterLB has joined #ruby
wpm has quit [Quit: Bye!]
blackmesa has quit [Ping timeout: 264 seconds]
tenderlove has quit [Remote host closed the connection]
<xapak> lucasb, got it. Thanks for the explanations!
amoeba has quit [Ping timeout: 248 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
roger_rabbit has joined #ruby
asccigcc has joined #ruby
mark4 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PONG :leguin.freenode.net"]
amoeba has joined #ruby
Jardayn has joined #ruby
xapak has left #ruby [#ruby]
mistermocha has joined #ruby
johnnyt has quit [Ping timeout: 276 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 252 seconds]
treehug88 has joined #ruby
LuckyABA has joined #ruby
pdoherty has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
FooMunki has quit [Quit: FooMunki]
platzhirsch has quit [Quit: Leaving.]
FooMunki has joined #ruby
kobain has joined #ruby
stannard has joined #ruby
baweaver has joined #ruby
dayjo has joined #ruby
dayjo has quit [Client Quit]
atomical has joined #ruby
aspiers has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
dajobat has quit [Ping timeout: 245 seconds]
einarj_ has joined #ruby
sigurding has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
polishdub has joined #ruby
graffix222 has joined #ruby
sneakerhax has joined #ruby
blackmesa has joined #ruby
dfinninger has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 272 seconds]
johnnyt has joined #ruby
einarj has joined #ruby
einarj_ has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<hfp> Hi, what do double asterisks mean? As in `def foo(**args)'
lubekpl has joined #ruby
<EdwardIII> hfp: optional params
chouhoulis has joined #ruby
malconis has joined #ruby
<hfp> EdwardIII: How is it different from `def foo(*args)' ?
Lildirt has quit [Ping timeout: 240 seconds]
nofacade has quit [Read error: Connection reset by peer]
<adaedra> it concerns kwargs
<adaedra> def foo(*a, **b); [a, b]; end; foo 1, 2, 3, a: 4, c: 5
<adaedra> >> def foo(*a, **b); [a, b]; end; foo 1, 2, 3, a: 4, c: 5
<ruby[bot]> adaedra: # => [[1, 2, 3], {:a=>4, :c=>5}] (https://eval.in/517832)
cdg_ has quit [Ping timeout: 264 seconds]
polishdub has quit [Remote host closed the connection]
evidex has quit [Remote host closed the connection]
replay has joined #ruby
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Renich has quit [Quit: leaving]
momomomomo has quit [Quit: momomomomo]
amclain has joined #ruby
bruce__lee has quit [Changing host]
bruce__lee has joined #ruby
bruce__lee is now known as bruce_lee
Synthead has quit [Ping timeout: 252 seconds]
aegis3121 has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
LoneHerm_ has joined #ruby
Lildirt has joined #ruby
jamesaxl has quit [Quit: Page closed]
patchedmonkey has joined #ruby
lessless has joined #ruby
dfinninger has joined #ruby
Zai00 has joined #ruby
dhollinger has joined #ruby
tatsuo has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 250 seconds]
sigurding has quit [Quit: sigurding]
bronson has joined #ruby
Synthead has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
mikecmpbll has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
finisherr has quit [Quit: finisherr]
kith has joined #ruby
ohaibbq has joined #ruby
pawnbox has quit [Remote host closed the connection]
malconis has joined #ruby
RegulationD has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
benlieb has joined #ruby
Lildirt has quit [Ping timeout: 240 seconds]
jespada has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Remote host closed the connection]
azure32 has joined #ruby
<jokke> (how) can i provide a functionality like String("foo") for my own class?
bronson has quit [Ping timeout: 256 seconds]
PD028300 has joined #ruby
davedev24 has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
KensoDev has joined #ruby
mdw has joined #ruby
<lucasb> module Kernel; def MyObject(*args); MyObject.new(*args); end end
<jokke> lucasb: oh alright
haylon has quit [Ping timeout: 256 seconds]
<jokke> thanks
Lildirt has joined #ruby
avenj has quit [Ping timeout: 240 seconds]
Coral has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
Coral is now known as Guest79083
jackjackdripper has joined #ruby
kfpratt has joined #ruby
karapetyan has quit [Remote host closed the connection]
Jardayn has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
tatsuo has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has quit [Remote host closed the connection]
pawnbox has joined #ruby
tatsuo has quit [Remote host closed the connection]
karapetyan has joined #ruby
Snowy has quit []
pandaant has quit [Quit: Lost terminal]
pawnbox has quit [Remote host closed the connection]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
pawnbox has joined #ruby
Guest38 has joined #ruby
<EdwardIII> what's the advantage of String("foo") over just String.new("foo")? less verbose?
blackmesa has joined #ruby
maletor has joined #ruby
stupidcracker has joined #ruby
ss_much has joined #ruby
<shevy> EdwardIII it's similar to Integer('5')
jakobhans has joined #ruby
patchedmonkey has joined #ruby
momomomomo has quit [Quit: momomomomo]
<shevy> Integer('5d') ArgumentError: invalid value for Integer(): "5d"
finisherr has joined #ruby
<shevy> String(5) # => "5"
roshanavand has quit [Remote host closed the connection]
<shevy> String.new 5 # TypeError: no implicit conversion of Fixnum into String
<shevy> so it is not the same from a conceptual point of view
floror has joined #ruby
<stupidcracker> suck my big black dick bitch ass cracker
symm- has joined #ruby
fedexo has joined #ruby
shreddor has quit []
chipotle has quit [Quit: cheerio]
<EdwardIII> shevy: but what's the advantage?
_ht has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak_ has joined #ruby
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pushcx> EdwardIII: Some of them provide different functionality, like Array(2) vs Array.new(2)
dlitvak has quit [Ping timeout: 264 seconds]
NeckBeardPrince has joined #ruby
einarj has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
<shevy> EdwardIII one is more stringent than the other
einarj has joined #ruby
<stupidcracker> europe is for crackers so go back to europe fucking cracker
bkxd has quit [Ping timeout: 264 seconds]
<shevy> someone ban stupidcracker pls
<shevy> Array('2') # => ["2"]
<shevy> Array.new '2' # TypeError: can't convert String to Integer (String#to_int gives NilClass)
<stupidcracker> go back to europe bitch
<EdwardIII> shevy: but why?
<stupidcracker> yall crackers racist af and you wanna ban me cuz i'm black racist bitch
<EdwardIII> shevy: why is it designed that way?
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> you don't get the same behaviour
<shevy> it is a method on Kernel
<shevy> Integer("0x1a") #=> 26
<shevy> Integer.new "0x1a" # NoMethodError: undefined method `new' for Integer:Class
<pushcx> EdwardIII: Ruby makes a subtle distinction between "things that can be converted" and "things that pretty much are" in the difference between to_s and to_str, to_a and to_ary.
roshanavand has quit [Ping timeout: 240 seconds]
dlitvak_ has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
dlitvak has joined #ruby
ur5us has joined #ruby
idefine has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
kmckelvin has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
lubekpl has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
einarj has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
pihpah has quit [Ping timeout: 252 seconds]
blackoperat has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has joined #ruby
agentmeerkat has quit [Ping timeout: 276 seconds]
<EdwardIII> pushcx: interesting, i'd wondered why they were there too heh
<EdwardIII> well i think i'll sign off for the week, thanks guys
dextertzu has quit [Quit: WeeChat 1.3]
floror has quit [Quit: floror]
mdw has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
intrigueD has joined #ruby
k13nox has quit [Remote host closed the connection]
LeMalandrin has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
chipotle has joined #ruby
jottr has joined #ruby
<ljarvis> yorickpeterse: https://github.com/sparklemotion/mechanize/issues/462 THANKS BRO
UtkarshRay has quit [Quit: Leaving]
[Butch] has joined #ruby
<drbrain> !ban stupidcracker !P
stupidcracker was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> thank you all for remaining calm during that incursion
<ljarvis> oh wow I missed that somehow
jottr has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<pushcx> He wanted attention, so I figured ignoring him completely would annoy him most. :)
veleno has joined #ruby
<drbrain> they haven't shown up in in ruby-banned yet, though
<veleno> hello. we’re hitting a performance issue with the execution of this method when the input is particularly large: https://github.com/splay-project/splay/blob/master/src/controller/lib/jobd.rb#L92 it generates a JSON string. apart from changing radically its code, is there something in there particularly obvious that triggers to the eyes of you experts ?
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
baweaver has quit [Ping timeout: 250 seconds]
<drbrain> veleno: use interpolation and << instead of +/+=
<lagweezle> Well, that was interesting...
<drbrain> >> out = ''; out << %Q({"ref":#{list['ref']}"); out
<ruby[bot]> drbrain: # => undefined local variable or method `list' for main:Object (NameError) ...check link for more (https://eval.in/517865)
<drbrain> oh, right
<drbrain> >> out = ''; out << %Q({"ref":"#{'some_ref'}")
<ruby[bot]> drbrain: # => "{\"ref\":\"some_ref\"" (https://eval.in/517866)
<veleno> drbrain: not sure to have understood the suggestion.
einarj has quit [Read error: Connection reset by peer]
<veleno> given the line: out = '{"ref":"' + list['ref'] + '"'
firstdayonthejob has joined #ruby
<drbrain> or, even, use a JSON library
pawnbox has quit [Remote host closed the connection]
<drbrain> veleno: see ruby[bot] response above ↑
einarj has joined #ruby
<veleno> drbrain: i see. the +/+= do create temp strings ?
<drbrain> yes, then throws them away
<drbrain> so "a" + "b" creates three strings, while "a" << "b" creates two
B1n4r10 has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 240 seconds]
dlitvak_ has joined #ruby
<drbrain> so as `out` grows it gets reallocated every time you + more strings onto it
<veleno> drbrain: indeed.
<veleno> ok, that’s relatively easy fix to do i guess
<veleno> if that’s not enough, using the ‘json’ gem would be a good plan-B ?
rdark has quit [Ping timeout: 248 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<veleno> as I noticed it’s already being used in there for some reason
<drbrain> yes
<drbrain> you can build a Hash then to_json it
stannard has quit [Read error: Connection reset by peer]
goodcodeguy has joined #ruby
codecop has quit [Remote host closed the connection]
jokester has quit [Quit: WeeChat 1.3]
dlitvak has quit [Ping timeout: 240 seconds]
aegis3121 has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
<lucasb> at the end of the method, the generated is getting parsed with JSON.parse to see if it's valid. Maybe you can comment that code to speed things
DmitryBochkarev has joined #ruby
<lucasb> *the generated string
<drbrain> oh, I didn't even look down there
<drbrain> yeah, using JSON to dump it from a Hash means you won't need to do that
jottr has joined #ruby
ElFerna_ has joined #ruby
django_ has joined #ruby
<django_> hey anyone done the ruby course on Coursera?
speakingcode has joined #ruby
B1n4r10 has joined #ruby
pawnbox has joined #ruby
rakm has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<veleno> lucasb: indeed.
johnnyt has quit [Ping timeout: 248 seconds]
arlek has joined #ruby
johnnyt has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeckBeardPrince has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
fedexo has quit [Ping timeout: 250 seconds]
<aep> uuuh this is really confusing. i have a initialize function with no arguments, and i call Class.new with no arguments, and i get "wrong number of arguments (1 for 0)
<aep> what's.... the magic first argument
<aegis3121> Do you have code?
maesitos has quit [Remote host closed the connection]
<aep> well, no. i'm trying to isolate it now
mdw has quit [Quit: Sleeping Zzzzz]
<aep> in the meantime http://i.imgur.com/a9yePdr.png
pawnbox has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 240 seconds]
<aep> huh. it...works now
<aep> must be me being crazy
ur5us has joined #ruby
<django_> lo
pawnbox has joined #ruby
krz has quit [Quit: WeeChat 1.2]
blackoperat has quit [Quit: Textual IRC Client: www.textualapp.com]
william3 has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
azure32 has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
<gregf_> >> class Foo; def initialize **params; params.each { |k,v| instance_variable_set "@#{k}", v; };end;end; [Foo.new, Foo.new(a:1, b:2)]
<ruby[bot]> gregf_: # => [#<Foo:0x41bd96d8>, #<Foo:0x41bd969c @a=1, @b=2>] (https://eval.in/517877)
PedramT has joined #ruby
einarj has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
atomical has joined #ruby
AlexRussia_ has quit [Quit: WeeChat 1.4-dev]
einarj has joined #ruby
theery has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
karapetyan has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.4]
<adaedra> reminder (for shevy and others): in case of troll, just use !ops and ignore.
<shevy> that would highlight them!
karapetyan has joined #ruby
<ljarvis> I would have prefered that
<adaedra> that's the goal
<ljarvis> then I'd have seen it
jespada has quit [Quit: WeeChat 1.5-dev]
<adaedra> so we can see something is happening
atomical has quit [Client Quit]
TomyLobo has joined #ruby
nofxx has joined #ruby
theery has quit [Client Quit]
Zai00 has quit [Quit: Zai00]
valera has quit [Ping timeout: 260 seconds]
zacstewart has quit [Ping timeout: 248 seconds]
zast has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 240 seconds]
<veleno> drbrain: and what %Q means ?
bb010g has joined #ruby
<drbrain> veleno: it's like "", but allows you to have "" inside
<adaedra> The Q is unneeded, note.
hamed_r has quit [Quit: Leaving]
codecop has joined #ruby
cdg has joined #ruby
<eam> not to be confused with \Q
hogetaro_ has quit [Quit: Leaving...]
NeckBeardPrince has joined #ruby
pdoherty has joined #ruby
bronson has joined #ruby
cschneid_ has joined #ruby
NeckBeardPrince has quit [Max SendQ exceeded]
RegulationD has joined #ruby
NeckBeardPrince has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
einarj_ has joined #ruby
spider-mario has joined #ruby
mistermocha has joined #ruby
shadoi has joined #ruby
solars has quit [Ping timeout: 256 seconds]
dmolina has quit [Quit: Leaving.]
Youngmathimus0 has joined #ruby
PedramT has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
RegulationD has quit [Ping timeout: 250 seconds]
dextertzu has joined #ruby
niko has quit [Quit: leaving]
ryanwinchester has joined #ruby
treehug88 has joined #ruby
kirillzh has joined #ruby
baweaver has joined #ruby
niko has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
frem has joined #ruby
kirillzh has quit [Client Quit]
jackjackdripper has quit [Quit: Leaving.]
Ilyes512 has joined #ruby
jackjackdripper has joined #ruby
kirillzh has joined #ruby
PedramT has joined #ruby
Ilyes512 has quit [Max SendQ exceeded]
Ilyes512 has joined #ruby
Ilyes512 has quit [Max SendQ exceeded]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
dlitvak_ has quit [Ping timeout: 248 seconds]
kies^ has quit [Ping timeout: 272 seconds]
darkf has joined #ruby
lucasb has quit [Quit: leaving]
dlitvak has joined #ruby
<veleno> drbrain: does that syntax is supported only since a given ruby version ?
einarj_ has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Ping timeout: 276 seconds]
<drbrain> 1.4, probably
<drbrain> probably earlier
<veleno> ah ok so it’s pretty much standard
<drbrain> since forever
<drbrain> since it came from perl, it might exist for all ruby
<veleno> i’m getting a sytax error for: nodes << '%Q({"ip":"#{n['ip']}","port":"#{n['port']}"},)'
marr has joined #ruby
<eam> veleno: no outer single quotes
<eam> just %Q()
<veleno> ah ok
trinaldi has quit [Quit: WeeChat 1.5-dev]
AlexRussia has joined #ruby
einarj has joined #ruby
baweaver has quit [Remote host closed the connection]
azure32 has joined #ruby
patchedmonkey has joined #ruby
jokester has joined #ruby
kirun has joined #ruby
patchedmonkey has quit [Client Quit]
blackmesa has joined #ruby
webopsx has joined #ruby
malconis has joined #ruby
fantazo has joined #ruby
NeckBear_ has joined #ruby
ghoti_ is now known as ghoti
NeckBeardPrince has quit [Read error: Connection reset by peer]
NeckBear_ has quit [Max SendQ exceeded]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeckBeardPrince has joined #ruby
theery has joined #ruby
intrigueD has quit [Remote host closed the connection]
NeckBeardPrince has quit [Max SendQ exceeded]
Xeago has joined #ruby
NeckBeardPrince has joined #ruby
kies^ has joined #ruby
vondruch has quit [Quit: Ex-Chat]
Hounddog has quit [Ping timeout: 250 seconds]
hogetaro has joined #ruby
dionysus69 has joined #ruby
kirillzh has joined #ruby
symm- has joined #ruby
Antiarc has quit [Ping timeout: 276 seconds]
finisherr has left #ruby [#ruby]
avenj has joined #ruby
Antiarc has joined #ruby
lapide_viridi has joined #ruby
saneax is now known as saneax_AFK
jgt has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
cjbottaro has joined #ruby
momomomomo has joined #ruby
<andrewvos> Is this a bad idea or the worst idea? https://github.com/AndrewVos/markdown-expander
arlek has quit [Read error: Connection reset by peer]
ocbtec has quit [Quit: leaving]
<momomomomo> andrewvos: have you seen https://github.com/jekyll/jekyll
hessparker has joined #ruby
<andrewvos> momomomomo: yah
<momomomomo> has iteration etc. built into markdown
<andrewvos> what?
<andrewvos> you mean it uses liquid?
<momomomomo> yea
<andrewvos> oh ok
marxarelli|afk has quit [Remote host closed the connection]
<andrewvos> liquid was too much dependency for me
marxarelli has joined #ruby
circ-user-NoIIC has quit [Remote host closed the connection]
<ljarvis> wot andrewvos
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 256 seconds]
<Xeago> why is the bot operator?
<ljarvis> because it controls the channel
<ljarvis> one might say, it operates it
goodcodeguy has joined #ruby
lucasb has joined #ruby
<Xeago> does the bot handle kicks and bans? Haven't seen that happen. Topic is still set by people, not the bot either.
PedramT has quit [Remote host closed the connection]
<ljarvis> yeah it does
PedramT has joined #ruby
DEA7TH has joined #ruby
<Xeago> Ok
maikowblue_ has quit [Quit: .]
chouhoulis has joined #ruby
momomomomo has quit [Quit: momomomomo]
<andrewvos> ljarvis: wot wot inkjet
zacstewart has joined #ruby
<andrewvos> u wot
podman has joined #ruby
ohaibbq has quit [Quit: Leaving...]
arlek has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
william3 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<veleno> thanks everyone, it was very helpful
<veleno> drbrain: thanks to you in particular
<ljarvis> andrewvos wot bruv
veleno has quit [Quit: veleno]
chipotle has quit [Ping timeout: 248 seconds]
rik_ has joined #ruby
dubek has joined #ruby
william3 has quit [Remote host closed the connection]
<andrewvos> ljarvis: do you think if I pass active records to that thing then people are going to pwn my server
<andrewvos> ?
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eiam> when you print an object and get something like <Class:0x0055a4b0570d28> is there a way to snag that object with just the address later, assuming it still allocated?
dexter-tzu has quit [Ping timeout: 240 seconds]
<ljarvis> andrewvos: prolly ya nub
<andrewvos> basically I'm allowing users to do some_model[:whataver_they_want]
<andrewvos> is that an issue/
rik_ has quit [Remote host closed the connection]
<andrewvos> scared rails has like a model[:database_connection_string_please] in there
rik_ has joined #ruby
<aegis3121> Eiam: no idea, but I'm curious why
NeckBeardPrince has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<andrewvos> ok
Sucks has quit [Read error: Connection reset by peer]
<andrewvos> sweet
<andrewvos> thanks buddy
einarj has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
<Eiam> aegis3121: trying to debug an issue that occurs in a heroku like instance, so I cannot use something like pry remote to attach the debugger to it when the problem happens.. I just see logs. I figured I could try to pop into the server and try to better interact with whats there without having to just drop every print statement under the sun into the object before I deploy..
einarj has joined #ruby
aryaching has quit []
<Eiam> I tried running the code in a console on the server and it runs fine no issue.. but when a request comes in, it blows up. so I'm missing something =)
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ysz has joined #ruby
<djellemah> Eiam: maybe Marshal.dump the object to a file.
<djellemah> although that would break if the object ivars contain procs, or if the object has singleton methods.
chipotle has joined #ruby
NeckBeardPrince has joined #ruby
vdamewood has quit [Quit: Life beckons.]
RegulationD has joined #ruby
elifoster has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirillzh has joined #ruby
<Eiam> hm
<Eiam> will give it a whirl
william3 has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
EvilRoey has joined #ruby
tuxaanand has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
yardenbar has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
<EvilRoey> Hi! I'm coming from the Python side.. been using it since 1997. I want to learn Ruby because I like learning for learning's sake. Any useful resources you guys can point me at?
baweaver has joined #ruby
<EvilRoey> * and thanks!
lolcodenewbie has joined #ruby
fourq is now known as fourq|away
fourq|away is now known as fourq
jottr has quit [Read error: Connection reset by peer]
<EvilRoey> thanks
Dimik has joined #ruby
tomchapin has joined #ruby
jottr has joined #ruby
baweaver has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
Xeago has quit [Remote host closed the connection]
azure32 has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 252 seconds]
andrewvos has quit [Ping timeout: 276 seconds]
dlitvak has joined #ruby
pandaant has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
vr_mex has joined #ruby
nettoweb has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
hessparker has quit [Ping timeout: 272 seconds]
rodd has joined #ruby
LoneHermit has joined #ruby
rodd has left #ruby [#ruby]
einarj has quit [Read error: Connection reset by peer]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has joined #ruby
ysz has quit [Quit: This computer has gone to sleep]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
sondr3 has quit [Quit: Sleep]
ss_much has quit [Quit: Connection closed for inactivity]
LoneHermit has quit [Ping timeout: 248 seconds]
einarj_ has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
doublemalt__ has joined #ruby
rodfersou has quit [Quit: leaving]
django_ has quit [Remote host closed the connection]
ZerGabriel has joined #ruby
Azure has joined #ruby
ldnunes has quit [Quit: Leaving]
doublemalt_ has quit [Ping timeout: 248 seconds]
moeabdol1 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SirFunk has quit [Ping timeout: 248 seconds]
einarj has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
tomchapin has joined #ruby
Lildirt has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
moeabdol has quit [Ping timeout: 248 seconds]
yardenbar has joined #ruby
btwebdev has joined #ruby
SirFunk has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
<btwebdev> is there a way to convert this time format to 2015-12-14T14:05:26+0000 to 2015-12-14 02:05:25 with ruby's Time?
einarj_ has joined #ruby
ur5us has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 276 seconds]
B1n4r10 has joined #ruby
ur5us has joined #ruby
mostlybadfly has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
dlitvak has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
blackgoat has joined #ruby
yardenbar has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
<Eiam> yes
dfinninger has quit [Ping timeout: 276 seconds]
Lildirt has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
dhollinger has quit [Ping timeout: 248 seconds]
codecop has quit [Remote host closed the connection]
<havenwood> >> require 'date'; the_eve_of_the_ides_of_december = DateTime.iso8601 '2015-12-14T14:05:26+0000'; the_eve_of_the_ides_of_december.strftime '%Y-%m-%d %H:%M:%S'
<ruby[bot]> havenwood: # => "2015-12-14 14:05:26" (https://eval.in/517936)
dfinninger has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
floror has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Eiam> havenwood: why not %F %T ?
<havenwood> Eiam: I just wanted to write the variable.
<havenwood> Eiam: But good point!
<havenwood> >> require 'date'; DateTime.iso8601('2015-12-14T14:05:26+0000').strftime '%F %T'
<ruby[bot]> havenwood: # => "2015-12-14 14:05:26" (https://eval.in/517938)
<havenwood> btwebdev: ^
replay has quit [Ping timeout: 264 seconds]
dhollinger has joined #ruby
stannard has quit [Read error: Connection reset by peer]
<Eiam> i was using strptime to try and parse the string
<Eiam> but it drops the time
intrigueD has joined #ruby
abra0 is now known as and
vr_mex has quit [Quit: vr_mex]
maletor has joined #ruby
p1k has quit [Ping timeout: 264 seconds]
juanfra has quit [Quit: juanfra]
hobodave has joined #ruby
themsay has quit [Ping timeout: 272 seconds]
nunchuck has joined #ruby
genshu has joined #ruby
<genshu> hi everyone
idefine has quit [Ping timeout: 260 seconds]
pandaant has quit [Remote host closed the connection]
dfinninger has joined #ruby
<havenwood> genshu: hi
<genshu> anyone interested in working on my lightweight MIT-licensed Internet Site framework? It is not the second Ruby On Rails, it should stay lighweight. If you are not interested in yet another Framework, have a look at the included SQLite3 wrapper (which will be a separate gem). Link on Github: https://github.com/jrnakk/Lightweight-Site-Framework
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
<genshu> I have some dump feelings on how I extract and save values, if I would do some stuff twice, but cannot concentrate after some hours coding.
shadoi has quit [Ping timeout: 264 seconds]
srenatus has quit [Quit: Connection closed for inactivity]
elifoster has quit [Ping timeout: 256 seconds]
<genshu> the SQLite3 wrapper is the files "overwriting.run.rb", "database_overwriting.run.rb" and "database.module.rb"
dionysus69 has quit [Ping timeout: 256 seconds]
Limix has joined #ruby
and is now known as abra0
<genshu> regarding myself I judged innovative to overwrite the standard types for database functions, instead of methods of a class which has the object of the type as an argument.
johnmilton has quit [Quit: Namaste]
shadoi has joined #ruby
ZerGabriel has quit []
<genshu> this time last to be said is that it's the first working alpha version, as the GPL requests, anyways MIT licensed
dlitvak_ has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
rizenine has quit [Remote host closed the connection]
stannard has joined #ruby
mistermocha has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
mistermocha has quit [Remote host closed the connection]
baweaver has joined #ruby
pawnbox has quit [Remote host closed the connection]
dhollinger has quit [Quit: WeeChat 1.4]
treehug88 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
treehug88 has quit [Remote host closed the connection]
treehug88 has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
dlitvak has quit [Ping timeout: 272 seconds]
<btwebdev> thanks
baweaver has joined #ruby
<genshu> :)
arbys has quit [Ping timeout: 260 seconds]
andrewvos has joined #ruby
<genshu> are there any sites to make repos more public? there are often links to github, are there more popular sites to make my repo more public?
pdoherty has quit [Ping timeout: 276 seconds]
B1n4r10 has quit [Ping timeout: 260 seconds]
jordanm has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
<genshu> however, got to shutdown now, cya ruby folks!
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
genshu has left #ruby [#ruby]
jtzero1 has joined #ruby
jtzero1 has left #ruby [#ruby]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TomPeed has joined #ruby
cjheath has left #ruby [#ruby]
TomPeed has quit [Client Quit]
yfeldblum has quit [Ping timeout: 250 seconds]
jordanm has joined #ruby
x77686d has quit [Quit: x77686d]
aswen has joined #ruby
Jackneill has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whippythellama has quit [Ping timeout: 240 seconds]
ESpiney_ has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has joined #ruby
kirillzh has joined #ruby
<kirillzh> How unique is SecureRandom.base58(24)?
rik_ has quit [Quit: rik_]
Limix has quit [Quit: Limix]
jgpawletko_ has joined #ruby
ilhami has joined #ruby
<ilhami> sup guys?
<ilhami> should I learn Ruby?
lolcodenewbie has quit [Ping timeout: 252 seconds]
PedramT_ has joined #ruby
jgpawletko has quit [Ping timeout: 250 seconds]
jgpawletko_ is now known as jgpawletko
PedramT has quit [Ping timeout: 240 seconds]
ruby-lang629 has joined #ruby
goodcodeguy has joined #ruby
<nofxx> kirillzh, you could append a time in microseconds to it, pretty unique (kinda like bson object id)
johnnyt has quit [Ping timeout: 252 seconds]
<nofxx> ilhami, mens sana in corpore sano ... learn is always good =D
baweaver has quit [Remote host closed the connection]
<ilhami> why do you speak Latin?
johnnyt has joined #ruby
<shevy> ilhami why would you want to program?
<kirillzh> nofxx I just realized that's more Rails related question...
Limix has joined #ruby
n00bdev has joined #ruby
<ilhami> shevy, it's fun
<kirillzh> nofxx not sure which method I should use for User token
<ilhami> and I want to earn money
openstruct has quit []
<nofxx> kirillzh, 'get a unique string' is pretty language even agnostic ...
<shevy> ilhami go java then
<ilhami> shevy, I know Java..
<ilhami> I didn't like it.
<nofxx> shevy, how evil
<nofxx> the money part? I like the 'for fun and profit' motto
mistermocha has joined #ruby
<shevy> he wants to earn money!
<nofxx> how a guy will buy a motorcycle and eat pizza every week w/o it?
<shevy> I like pizza
<eam> do you really need a new motorcycle every week
<nofxx> and get some booze and drugs? for a top 3 money uses that pops in my head
Limix_ has joined #ruby
ryanwinchester is now known as ryanw|away
<shevy> who ordered the giga pizza lately... was it eam
<nofxx> eam, need to gas it =/ but that will go electric some day
<ilhami> shevy, maybe you can send me some money. :)
<ilhami> I'd appreciate that.
Limix has quit [Ping timeout: 240 seconds]
Limix_ is now known as Limix
whippythellama has joined #ruby
Lildirt has quit [Ping timeout: 240 seconds]
<shevy> hmm semi-off topic... if I have written some hello world app in ruby-gtk, I suppose there is no way to put this into a firefox tab right? :D
<nofxx> shevy, printscreen
sandstrom has joined #ruby
Coldblackice has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<Youngmathimus0> how would i, using gets to retrieve a users day,month and year of birth determine the day of year from their input
mistermocha has quit [Ping timeout: 260 seconds]
<Youngmathimus0> i know how to get day of year with yday
<ilhami> I want an Ubuntu phone :)
solars has joined #ruby
PedramT_ has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
JoshGlzBrk has joined #ruby
<lucasb> Time.new(gets, gets, gets).yday :D
<Youngmathimus0> >.>
<ilhami> Hehehehehe
<lucasb> just kidding, it doesn't work :)
floror has quit [Quit: floror]
<ilhami> :D:D:D:D:D:D::D:D:D
gregf has joined #ruby
<Youngmathimus0> hah
<Youngmathimus0> not sure i can use variables when doing yday
_ht has quit [Quit: Konversation terminated!]
<lucasb> oops, it does work. I thought it wouldn't accept strings as arguments, but it accepts
einarj_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
Lildirt has joined #ruby
PD028300 is now known as haylon
andrewvos has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
<Youngmathimus0> shit you're right
<Youngmathimus0> it works
roshanavand has quit [Ping timeout: 272 seconds]
<Youngmathimus0> thanks lucasb
dfinninger has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
duncannz has joined #ruby
unl0ckd has quit [Quit: Bye!]
duncannz has quit [Max SendQ exceeded]
idefine has joined #ruby
duncannz has joined #ruby
william3 has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
veleno has joined #ruby
william3 has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
dopamean_ has joined #ruby
moeabdol1 has quit [Ping timeout: 264 seconds]
renderfu_ has joined #ruby
<veleno> hello (again). any eagle-eye around can understand why in these 2 snippts https://gist.github.com/vschiavoni/344d76a34914bcff22f6 the a.rb version produces an invalid string at line 10 ?the b.rb is the previous (slower) version of the same piece of code
william3 has quit [Remote host closed the connection]
duncannz has joined #ruby
s00pcan_ has quit [Ping timeout: 256 seconds]
duncannz has quit [Max SendQ exceeded]
s00pcan_ has joined #ruby
idefine has quit [Ping timeout: 248 seconds]
psmolen has joined #ruby
william3 has joined #ruby
dopamean1 has quit [Ping timeout: 240 seconds]
<Ox0dea> veleno: Why are you treating your structured data as text?
<Ox0dea> require 'json'
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy> Youngmathimus0 you have to parse that input into some time/date object, then you can do .year for instance
<shevy> cool... never saw yday before
<shevy> is that the doomsday?
<Youngmathimus0> heh
<Youngmathimus0> just the numbered day of the year
renderful has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
larsk has joined #ruby
NeckBeardPrince has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marxarelli is now known as marxarelli|afk
synthroid has quit []
platzhirsch has left #ruby [#ruby]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> _why day > #yday
edwinvdgraaf has joined #ruby
floror has joined #ruby
sanguisdex has joined #ruby
blackmesa has joined #ruby
Limix has quit [Quit: Limix]
<sanguisdex> Hi question about guard. I can see the plug-in that I want to use when I run guard list, but when I try to run the guard init script it reurns and error about not being able to find the plug-in class. is there a process I am missing between installing the gem and running init?
ryanw|away is now known as ryanwinchester
zacstewart has quit [Ping timeout: 272 seconds]
floror has quit [Client Quit]
pawnbox has joined #ruby
KensoDev has quit [Ping timeout: 272 seconds]
ico has joined #ruby
Xeago has quit [Remote host closed the connection]
ElFerna_ has quit [Ping timeout: 240 seconds]
stannard has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
<Ox0dea> sanguisdex: Did you... install that plugin?
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arlek has quit [Ping timeout: 256 seconds]
shadoi has quit [Quit: Leaving.]
einarj has quit [Read error: Connection reset by peer]
<Ox0dea> sanguisdex: Can you say which plugin you're trying to use?
aegis3121 has quit [Ping timeout: 240 seconds]
yalue has quit [Quit: return 0;]
atomical has joined #ruby
I has joined #ruby
aegis3121 has joined #ruby
<sanguisdex> Ox0dea, yes I installed the plugin in my users gem dir, I tried both bundle install and gem install. When I run `guard list` I can see that it is there, but not in my Guardfile. when I try to run `guard init jshit-node` I get en error that it can not load or find the Class/ method
<Ox0dea> sanguisdex: You're misspelling it. :P
lemur has quit [Ping timeout: 256 seconds]
I is now known as Guest99953
einarj has joined #ruby
FooMunki has quit [Quit: FooMunki]
aswen has quit [Quit: WeeChat 1.4]
FooMunki has joined #ruby
<sanguisdex> Ox0dea: even when I spell it correctly (via copy and paste from the gems readme file) it fails.
kobain has joined #ruby
x77686d has joined #ruby
* sanguisdex has to sign off but will be back in 10-15 mins
stannard has joined #ruby
<Ox0dea> sanguisdex: Ah, well, I found the problem.
Guest99953 has quit [Client Quit]
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has quit [Remote host closed the connection]
floror has joined #ruby
baweaver has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 240 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
sanguisdex has quit [Ping timeout: 240 seconds]
DodoBeastro has joined #ruby
<DodoBeastro> ayyy
<DodoBeastro> all my fellow gold diggers
malconis has joined #ruby
pdoherty has joined #ruby
<DodoBeastro> rubies are quite rare
<DodoBeastro> I got a few in my collection my self
<DodoBeastro> those red pieces of awesomeness
<DodoBeastro> sooo sparkly and soo perfect
<DodoBeastro> just perfect
DodoBeastro has left #ruby [#ruby]
azure32 has joined #ruby
hightower3 has quit [Remote host closed the connection]
platzhirsch has joined #ruby
spider-mario has quit [Remote host closed the connection]
ramortegui has quit [Remote host closed the connection]
ferr has joined #ruby
sandstrom has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intrigueD has quit [Read error: Connection reset by peer]
intrigueD has joined #ruby
RegulationD has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
<ironcamel> is there a better way to do this: lona, lonb, lata, latb = [lona, lonb, lata, latb].map { |x| x.gsub(',', '.').to_f }
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
duckpuppy has quit [Ping timeout: 256 seconds]
<Ox0dea> Not really. :/
<ironcamel> ok, just checking, thanks
andrewvos has joined #ruby
chipotle has quit [Quit: cheerio]
william3 has quit [Remote host closed the connection]
<platzhirsch> woop
theery has quit [Remote host closed the connection]
scripore has joined #ruby
jakobhans has quit []
JDiPierro has joined #ruby
william3 has joined #ruby
<ironcamel> why does this output [nil]:
<ironcamel> aa = "a"; z = [aa].map { |x| x.upcase! }; z = [aa].map { |x| x.upcase! }; p z
YR has joined #ruby
<ironcamel> but this outputs ["A"]:
azure32 has quit [Ping timeout: 272 seconds]
<ironcamel> aa = "a"; z = [aa].map { |x| x.upcase! }; p z
JDiPierro has quit [Remote host closed the connection]
<Youngmathimus0> heh this is kinda neat https://repl.it/BlUR/59
<Ox0dea> ironcamel: Most "bang methods" return `nil` if they wouldn't modify the receiver.
<Youngmathimus0> woops wrong link https://repl.it/BlUR/60
<Youngmathimus0> always forget to hit save. it changes the link
<hanmac> ironcamel: because that upcase! does change the sting itself, and creating a new array is pointless ... and upcase! does return nil when nothing is changed
william3 has quit [Ping timeout: 240 seconds]
<ironcamel> but i'm doing the exact same assignment twice
<ironcamel> both times i'm doing the destructive upcase!
<Ox0dea> ironcamel: https://eval.in/518019
elifoster has joined #ruby
<Ox0dea> The #upcase! is applying the first time (because there are characters to capitalize), but then it doesn't apply the second time since they're all capital.
<shevy> how heavy would a camel be that is made out of iron
flughafen_ has quit [Ping timeout: 240 seconds]
YR has quit [Ping timeout: 252 seconds]
william3 has joined #ruby
schpn has joined #ruby
<hanmac> ironcamel: yes but you call the destructive method on the String object, not on the Array
dopamean_ has quit [Ping timeout: 256 seconds]
schpn has quit [Max SendQ exceeded]
<Ox0dea> >> s = 'foo'; [s.upcase!, s.upcase!] # ironcamel
yfeldblum has joined #ruby
<ruby[bot]> Ox0dea: # => ["FOO", nil] (https://eval.in/518025)
zenlot1 has joined #ruby
<ironcamel> oh, interesting
<Ox0dea> It's really quite straightforward once you know that this is how the method behaves.
stannard has quit [Read error: Connection reset by peer]
<ironcamel> when the string is already upcased, upcase! returns nil
<ironcamel> didn't know that. thanks
<Ox0dea> Aye, and similarly for most other bang methods.
ilhami has quit [Quit: Leaving]
chipotle has joined #ruby
<hanmac> ironcamel: also checkout the difference between array.map!(&:upcase) and array.map(&:upcase!)
zenlot has quit [Ping timeout: 240 seconds]
<Ox0dea> Youngmathimus0: That /60 is terrifying.
<Ox0dea> Just install Ruby! :P
<ironcamel> hanmac: what's the difference?
<hanmac> >> x = "abc"; [x].map!(&:upcase); x
<ruby[bot]> hanmac: # => "abc" (https://eval.in/518028)
<hanmac> >> x = "abc"; [x].map(&:upcase!); x
<ruby[bot]> hanmac: # => "ABC" (https://eval.in/518029)
<Youngmathimus0> lol true, but it works Ox0dea
<Ox0dea> Okay.
<Youngmathimus0> i have ruby installed lol, just like to much around in the console and share with people
<Youngmathimus0> muck*
<hanmac> first does change the array with new strings
<hanmac> second does make a new array but with changed strings
<ironcamel> hanmac: neat
solocshaw has joined #ruby
<hanmac> Youngmathimus0: question: when you are using "date" why not directly using the Date class and their functions too? because "date1 - date2" does return the diff in days
scripore has quit [Quit: This computer has gone to sleep]
<Youngmathimus0> uhmm
benlieb has quit [Quit: benlieb]
<Youngmathimus0> :)
<Youngmathimus0> good point
ponga has quit [Quit: Connection closed for inactivity]
intrigueD has quit [Remote host closed the connection]
NeckBeardPrince has joined #ruby
scripore has joined #ruby
NeckBeardPrince has quit [Max SendQ exceeded]
<hanmac> Youngmathimus0: also checkout Date::parse so you can do it that the user can enter "dd.mm.yyyy" (or what ever format you use)
NeckBeardPrince has joined #ruby
william3 has quit [Remote host closed the connection]
<adaedra> If you have a determined format, Use Date.strptime, not parse.
pawnbox has joined #ruby
stevemackinnon has joined #ruby
Limix has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
armyriad has quit [Ping timeout: 260 seconds]
armyriad has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
pawnbox has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
haylon has left #ruby ["WeeChat 1.3"]
benlieb has joined #ruby
sanguisdex has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<sanguisdex> well I am back it took longer than I thought due to walking into a house with an upset daughter
<sanguisdex> Ox0dea: any thoughts on why guard would show the plug in in the list output but not be able to init it?
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> sanguisdex: The class is improperly capitalized. :/
btwebdev has quit [Ping timeout: 252 seconds]
kmckelvin has joined #ruby
<Ox0dea> I'm sure it worked at some point, but Guard has since changed how it loads code, and this plugin hasn't been updated accordingly.
<sanguisdex> Ox0dea: ahhh
<sanguisdex> that makes sense
sdothum has joined #ruby
KensoDev has joined #ruby
baweaver has joined #ruby
<hays> is it completely unnecessary to have #{foo.to_s}
<hays> vs. just #{foo}
PedramT has quit []
stannard has quit [Ping timeout: 276 seconds]
<Ox0dea> hays: Yep.
<Ox0dea> >> class Foo; def to_s; "ohai"; end end; "#{Foo.new}"
<ruby[bot]> Ox0dea: # => "ohai" (https://eval.in/518051)
<lucasb> you missed the oportunity to say 'ohays'
[Butch] has quit [Quit: I'm out . . .]
scripore has quit [Quit: This computer has gone to sleep]
Kryptonical has quit [Ping timeout: 252 seconds]
johnmilton has joined #ruby
sanguisdex has quit [Quit: Leaving.]
n00bdev has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 264 seconds]
n00bdev has joined #ruby
n00bdev has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
ruby-lang629 has quit [Ping timeout: 252 seconds]
kies^ has quit [Ping timeout: 240 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
saneax_AFK is now known as saneax
marxarelli|afk is now known as marxarelli
aegis3121 has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
andrewvos has quit [Ping timeout: 272 seconds]
dopamean_ has joined #ruby
rubywarrior has joined #ruby
minimalism has quit [Quit: minimalism]
inhwrb has joined #ruby
<inhwrb> Hi all! Can someone look at these simple Ruby program?
solars has quit [Ping timeout: 272 seconds]
<inhwrb> Why does the code still seem to work if I change @all_tasks to all_tasks
Mia has quit [Read error: Connection reset by peer]
<inhwrb> Isn't the @ necessary for instance variables?
scripore has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
User1234 has joined #ruby
<User1234> Hello
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> inhwrb: But you created an `attr_reader :all_tasks` which makes an #all_tasks reader instance method.
bluOxigen has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
<havenwood> inhwrb: Do just use the instance variables internally. You can call #all_tasks from outside the class, it's a public interface.
<User1234> Does anyone have a game developing experience
<User1234> ?
<havenwood> User1234: Yes, folk do.
<User1234> Nice
<User1234> Is ruby slow for games
<User1234> ?
bluOxigen_ has quit [Ping timeout: 260 seconds]
<tobiasvl> what kind of games
<User1234> fps games
<havenwood> User1234: Probably not great for FPS 3d games. Probably fine for 2d and there are some nice tools to assist. Gosu, RubyMotion, etc.
<User1234> alright
baweaver has joined #ruby
<User1234> I want to write a wallhack for some guy
<User1234> Is ruby good for that or do i need to use something else?
<User1234> game*
<User1234> lol
<inhwrb> havenwood: Ah I see! That makes sense, so I should keep all_tasks private by removing the reader
mozzarella has joined #ruby
<havenwood> inhwrb: Depends if you want to be able to ask an instance of the class about #all_tasks from the outside, your call!
<mozzarella> anyone on mac os x in here?
<havenwood> mozzarella: Yes, folk are.
<inhwrb> got it, thanks once again
<mozzarella> do you need to be root in order to install gems, using the default ruby installation?
<hays> is this a good style guide? https://github.com/bbatsov/ruby-style-guide
hashrocket has quit [Quit: Connection closed for inactivity]
<User1234> mozzarella
<havenwood> User1234: mruby is nice but your wallhack isn't really about Ruby at all, there's probably a better gaming community channel to discuss
<User1234> hmm
<havenwood> hays: yeah, pretty good
<User1234> no my question is can i make ruby hacks for a game made in c
<User1234> or python
<User1234> ?
<havenwood> mozzarella: yes, if you use the default installation location
<User1234> that doesnt seem easy
s00pcan_ has quit [Remote host closed the connection]
<havenwood> User1234: You can embed mruby in C or Python. But this isn't a good question for this channel.
<User1234> tnx
<User1234> you helped enough
<User1234> :)
<User1234> what channel?
<havenwood> ?offtopic User1234
<ruby[bot]> User1234: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
nettoweb has joined #ruby
lucasb has quit [Quit: leaving]
<User1234> hmm ok
einarj has quit [Remote host closed the connection]
<johnmilton> python is pretty close to c, and you compile it as c code...you might as well you that for such a task User1234
<johnmilton> use the best tool for the job
<johnmilton> s/compile/can compile
inhwrb has quit [Quit: Page closed]
<User1234> i was refering to ruby embeding
<User1234> into python
pandaant has joined #ruby
ElFerna_ has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
trinaldi has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has quit [Ping timeout: 264 seconds]
hahuang61 has joined #ruby
<Canar> o.O johnmilton
ljames has quit [Remote host closed the connection]
<Canar> User1234: Ruby embeds without much difficulty, AFAIK.
<Canar> vim, for example, has a ruby script module, as does weechat
<User1234> ok
<User1234> tnx
Limix has quit [Quit: Limix]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Remote host closed the connection]
dfinninger has quit []
User1234 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
marxarelli has joined #ruby
themsay has joined #ruby
ysz has joined #ruby
Limix has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trinaldi has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]