jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
woodruffw has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
kalopsian has quit [Ping timeout: 260 seconds]
coyo has joined #ruby
pietr0 has quit [Quit: pietr0]
firstdayonthejob has quit [Ping timeout: 252 seconds]
twe4ked has quit [Ping timeout: 250 seconds]
pragmatism has quit [Ping timeout: 248 seconds]
rkazak has joined #ruby
[afk]chocoelho has quit [Ping timeout: 268 seconds]
alem0lars has quit [Ping timeout: 268 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
Klumben has quit [Ping timeout: 250 seconds]
woodruffw has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
SegFaultAX has quit [Ping timeout: 268 seconds]
arlek has joined #ruby
znz_jp has quit [Ping timeout: 250 seconds]
duoi has quit [Ping timeout: 250 seconds]
pragmatism has joined #ruby
ledestin has quit [Ping timeout: 248 seconds]
uglybandersnatch has joined #ruby
drbrain has quit [Ping timeout: 268 seconds]
pragmatism has quit [Max SendQ exceeded]
sondnm has quit [Quit: Leaving]
pragmatism has joined #ruby
drbrain has joined #ruby
twe4ked has joined #ruby
[afk]chocoelho has joined #ruby
DLSteve has joined #ruby
b|ackwolf has quit [Ping timeout: 240 seconds]
duoi has joined #ruby
SegFaultAX has joined #ruby
znz_jp has joined #ruby
baweaver has joined #ruby
rkazak has quit [Ping timeout: 250 seconds]
crdpink2 has joined #ruby
tubulife- has quit [Ping timeout: 276 seconds]
crdpink has quit [Ping timeout: 248 seconds]
eurialo has quit [Ping timeout: 260 seconds]
iwaffles has joined #ruby
Klumben has joined #ruby
bronson has joined #ruby
woodruffw has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
i8igmac has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Read error: Connection reset by peer]
Moosashi has quit [Quit: Moosashi]
jottr has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
tvon has quit [Ping timeout: 276 seconds]
tubulife- has joined #ruby
jottr has joined #ruby
eggoez has quit [Ping timeout: 260 seconds]
KanKava has quit [Remote host closed the connection]
astrobun_ has joined #ruby
ltp has quit [Ping timeout: 248 seconds]
duoi has quit [Excess Flood]
PaulCapestany has quit [Max SendQ exceeded]
crowell has quit [Ping timeout: 252 seconds]
DmitryBochkarev has joined #ruby
PaulCapestany has joined #ruby
al2o3-cr has joined #ruby
CloCkWeRX has quit [Ping timeout: 248 seconds]
tubulife- has quit [Ping timeout: 240 seconds]
duoi has joined #ruby
baweaver has quit [Remote host closed the connection]
Moosashi has joined #ruby
johnmilton has quit [Remote host closed the connection]
eggoez has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
sp4rrow has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
alem0lars has joined #ruby
ltp has joined #ruby
<nano-> Ok.. so if I create a module, or even a submodule, rdoc can emit constants for rb_define_const in the html output. If I instead pass a class to rb_define_constant there will be no constant in the documentation.
<nano-> It should be in the class though, any suggestions on potential workarounds?
<nano-> Same thing seems to affect sdoc as well.
<nano-> weird though - as rdoc tests seems to be able to deal with class constants, https://github.com/rdoc/rdoc/blob/cfffed5fa84812ebcb2c6bd1b037c79412402f8b/test/test_rdoc_parser_c.rb#L396
<nano-> the classes there aren't under any module though - if that changes anything.
crowell has joined #ruby
<nano-> Yep, rdoc can extract constants from classes if the class is root level rather than within a module.
uglybandersnatch has joined #ruby
Arcaire is now known as mices
7GHAAJPIV has joined #ruby
ensyde has joined #ruby
aeterne has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
mices is now known as Arcaire
arescorpio has joined #ruby
lxsameer has quit [Quit: Leaving]
<nano-> Not entirely true though, a minimal test case works. So maybe the parser that freaks out about something else.
vikaton has joined #ruby
intrigueD has quit [Remote host closed the connection]
tubulife- has joined #ruby
sneakerhax has quit [Quit: back later]
marxarelli is now known as marxarelli|afk
freakcoder has joined #ruby
wreet has joined #ruby
wreet has joined #ruby
7GHAAJPIV has quit [Ping timeout: 252 seconds]
SCHAAP137 has quit [Read error: Connection reset by peer]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<drbrain> nano-: if RDoc can't trace a path up to object it'll ignore the constant
<drbrain> Object
Xiti has joined #ruby
<drbrain> if you have MyModule::MyClass::MY_CONSTANT, but the C file defines MyClass and MY_CONSTANT without defining MyModule RDoc won't be able to see it unless you give it a hint
snockerton has quit [Quit: Leaving.]
lessless has joined #ruby
<nano-> I have an #if 0 rb_define_module(..) to satisfy rdoc.
freakcoder has quit [Ping timeout: 240 seconds]
<drbrain> do you have an example that fails?
<nano-> No, I haven't been able to construct one yet.
<nano-> So the full code is here, except with the addition of rb_define_module to please rdoc, https://github.com/xmms2/xmms2-devel/blob/master/src/clients/lib/ruby/rb_collection.c#L537
pawnbox has joined #ruby
tubulife- has quit [Ping timeout: 248 seconds]
tomatoes has quit [Read error: Connection reset by peer]
tomatoes has joined #ruby
RTG` has quit [Ping timeout: 244 seconds]
<drbrain> lol: error: object f6afd43be60d7adcf4e034f8ffe429570e1b8857: badTimezone: invalid author/committer line - bad time zone
<nano-> And it also seems like I have to run the file through the c preprocessor before running rdoc later on, due to DEF_CONST used there, but that's trivial as long as this starts working.
jsaak has quit [Ping timeout: 244 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
RTG` has joined #ruby
jsaak has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdreaver has quit [Remote host closed the connection]
tubulife- has joined #ruby
jhack has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
<drbrain> with that patch I found 37 items
sp4rrow has joined #ruby
<drbrain> that looks pretty close
<nano-> drbrain: Yes, that's what I said.
<nano-> [01:47:11][nano-]: So the full code is here, except with the addition of rb_define_module to please rdoc,
EasyCo_ has quit [Quit: Connection closed for inactivity]
<drbrain> … is 37 items correct?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<nano-> drbrain: Doesn't matter, as long as constants are shown in the docs I can get the rest working.
stunder001 has quit [Quit: WeeChat 1.4]
lemur has joined #ruby
<nano-> The constants are the only issue. I can push my local changes to a branch in a bit (i get 208 entries here)
woodruffw has quit [Ping timeout: 260 seconds]
Moosashi has quit [Quit: Moosashi]
<drbrain> to make https://github.com/xmms2/xmms2-devel/blob/master/src/clients/lib/ruby/rb_collection.c#L567 show up you can /* Document-const: TYPE_REFERENCE
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
<drbrain> and put the docs you want on the next line (if any)
Suntzu has joined #ruby
Asher has quit [Quit: Leaving.]
tubulife- has quit [Ping timeout: 250 seconds]
<nano-> drbrain: Tried that, didn't work. Can try again.
endash has quit [Quit: endash]
<drbrain> hrm, checking
<nano-> Well.. for that line it doesn't work as it uses a macro to create the const, but a bit further up for NS_ALL I'd expect something like that to work, but it doesn't.
<drbrain> hrm, maybe Document-const doesn't create one without an rb_define_const following
Asher has joined #ruby
<nano-> As I said, there are rb_define_const's a bit further up, and doesn't help there either.
endash has joined #ruby
endash has quit [Client Quit]
endash has joined #ruby
frustrum has quit [Read error: Connection reset by peer]
endash has quit [Client Quit]
lemur has quit [Ping timeout: 250 seconds]
woodruffw has joined #ruby
frustrum has joined #ruby
preyalone has joined #ruby
endash has joined #ruby
bezhermo_ has quit [Quit: Zzzzz...]
<nano-> meh.. dot directory.. repushing.
ianmethyst has joined #ruby
endash has quit [Client Quit]
avahey has joined #ruby
endash has joined #ruby
bezhermoso has joined #ruby
endash has quit [Client Quit]
bezhermoso has quit [Client Quit]
endash has joined #ruby
<drbrain> I can get NS_ALL to have documentation: https://gist.github.com/drbrain/4523f713086825ec33bd
endash has quit [Client Quit]
SG045734 has joined #ruby
endash has joined #ruby
bronson has quit [Remote host closed the connection]
endash has quit [Client Quit]
<nano-> drbrain: processing *.(c|h|rb) ?
endash has joined #ruby
<drbrain> yes
endash has quit [Client Quit]
<nano-> wtf.. that does *not* work here. what rdoc version?
endash has joined #ruby
amclain_ has quit [Quit: Leaving]
radgeRayden has quit [Ping timeout: 244 seconds]
<drbrain> 4.2.2
baweaver has quit [Remote host closed the connection]
woodruffw has quit [Ping timeout: 252 seconds]
endash has quit [Client Quit]
<drbrain> to get TYPE_REFERENCE, etc. you'd need to remove or expand the macro
tomatoes has quit [Ping timeout: 250 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
radgeRayden has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
<drbrain> running the C preprocessor is tears and sadness just as expanding it manually
endash has joined #ruby
<nano-> i guess sed will have to do.
endash has quit [Client Quit]
endash has joined #ruby
endash has quit [Client Quit]
<nano-> Updated to 4.2.2, still no go. http://618774854893b331.paste.se/
Pathfinder has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
endash has joined #ruby
endash has quit [Client Quit]
diegoviola has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
<nano-> it's properly detected - as it has always been after the rb_define_module hack,
<nano-> Constants: 18 ( 17 undocumented)
endash has joined #ruby
<nano-> only one, the NS_ALL documented just now.
endash has quit [Client Quit]
<nano-> But yeah.. not visible in the html output.
kalopsian has joined #ruby
<drbrain> hrm
endash has joined #ruby
endash has quit [Client Quit]
endash has joined #ruby
endash has quit [Client Quit]
rhg135 is now known as Lady_Sally
endash has joined #ruby
<nano-> If I skip the .rb files, it works alright. That is rdoc *.c
Lady_Sally is now known as rhg135
endash has quit [Client Quit]
endash has joined #ruby
endash has quit [Client Quit]
<drbrain> there must be a bug merging the two together
<nano-> Then I get all constants - no matter if they're documented or not - which is what I want - except that I also want the stuff in the .rb files.
Karix has joined #ruby
<nano-> yeah.. but that works for you?
<drbrain> if I run with the .rb files it fails
<nano-> ah, great.
arescorpio has quit [Read error: Connection reset by peer]
<nano-> Thing is, that's the case I've tried to setup a minimal test case for, but in my test case it works.
kalopsian has quit [Ping timeout: 250 seconds]
postmodern has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
<drbrain> src/clients/lib/ruby/rb_collection.c src/clients/lib/ruby/async.rb is sufficient to reproduce
<drbrain> if you submit a bug pointing to those two files I could reduce it
Karix has quit [Client Quit]
uglybandersnatch has quit [Ping timeout: 276 seconds]
godzillaenlacasa has quit [Quit: ZZZZZ....]
<nano-> drbrain: Ah, didn't realize you're involved in the rdoc project. Cool.
bezhermoso has joined #ruby
ensyde has quit [Quit: Leaving]
stannard has joined #ruby
<drbrain> it's probably some weird edge case
SirFunk has quit [Remote host closed the connection]
Moosashi has joined #ruby
pawnbox has joined #ruby
SirFunk has joined #ruby
Uo9er_ has joined #ruby
kies has quit [Ping timeout: 244 seconds]
Vlat- has quit [Quit: Vlat-]
siaw has quit [Quit: siaw]
uglybandersnatch has joined #ruby
<nano-> drbrain: I'll file a ticket.
siaw has joined #ruby
siaw has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 244 seconds]
U7se6 has quit [Ping timeout: 260 seconds]
ceej has quit [Remote host closed the connection]
Uber|Dragon has joined #ruby
nerium has joined #ruby
astrobun_ has quit [Remote host closed the connection]
bullets has joined #ruby
ceej has joined #ruby
<bullets> hello
jtdowney has quit [Quit: ZNC]
arlek has quit [Ping timeout: 248 seconds]
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
marr has quit [Read error: Connection reset by peer]
<bullets> I've been meaning to learn a scripting language mostly for web scripting
<bullets> (not rails though)
<Canar> bash?
Eleeleth has quit [Ping timeout: 264 seconds]
<bullets> no bash is too rigid
<bullets> that's why I might try ruby...
<bullets> I already tried perl tho, and didn't really like it
<bullets> didn't like python either
gbgdev_ has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
<Papierkorb> bullets: What's wrong with Rails? (There are plenty of other web frameworks available though, e.g. Sinatra)
gbgdev has quit [Ping timeout: 246 seconds]
Eleeleth has joined #ruby
<bullets> isn't rails about backend webdev or something?
nerium has quit [Client Quit]
<bullets> I want the opposite, like a wget on steroids
<Papierkorb> Not at all
<Papierkorb> oh you want to consume web stuff, not build web stuff?
woodruffw has joined #ruby
<bullets> indeed
<bullets> that's what I mean
<bullets> client-side stuff, like irc bots and data mineres
<bullets> miners
<Papierkorb> There are like a gazillion HTTP client libraries at your disposal
<Papierkorb> for IRC bots see "Cinch"
<bullets> nice, so ruby does have the tools?
<nano-> while true; do wget $URL & done :]
<bullets> awesome
<Papierkorb> I think the issue is not that you don't have tools to do X, but rather to figure out which of the commonly used ones you want to use
<nano-> (please don't run that :)
<bullets> btw, ruby comes with a repl, right?
<Papierkorb> bullets: irb, yes. But forget about that.
fullofca_ has joined #ruby
<Papierkorb> bullets: $ gem install pry pry-coolline
<Papierkorb> bullets: Much better REPL
<bullets> ookay
ur5us has joined #ruby
<Papierkorb> can do stuff like rendering in-source documentation, display source, edit source (and reload it), etc.
<Papierkorb> And it can run ruby code too, like a REPL
<nano-> drbrain: \o/
<bullets> now for actually getting started with ruby
<bullets> why poignant's guide?
<drbrain> so now I have a good idea of why this is happening
<Papierkorb> bullets: what's that?
<bullets> or is there a good quickstart tutorial out there that you recommend?
fullofcaffeine has quit [Ping timeout: 244 seconds]
<bullets> Papierkorb: uh... never heard of why poignant's guide to ruby?
kies has joined #ruby
sneakerhax has joined #ruby
<nano-> drbrain: Should I still file a bug?
<bullets> why's poignant*
<nano-> <3
<Papierkorb> bullets: Heh. Actually I just began building crappy tools, looked up in the standard library what I needed, googled a ton, rinse repeat
<Papierkorb> bullets: Never heard of that
<bullets> oooooh
<nano-> bullets: The language documentation that all other languages lack :(
<nano-> s/documentation/introduction/
<nano-> Papierkorb: Read now!
<Papierkorb> nano-: link
<bullets> almost all other languages, but yeah
<bullets> it looks pretty fun
<nano-> Papierkorb: http://poignant.guide/
<bullets> I'll give it a try
<nano-> It's a great ride :)
<bullets> all other scripting languages so far have bored me to death
<bullets> honestry
rbennacer has joined #ruby
<Papierkorb> bored you?
arescorpio has joined #ruby
<bullets> yes
SG045734 has quit [Ping timeout: 250 seconds]
<bullets> too idyosincratic
<bullets> look at perl for example
<bullets> gawd knows I tried
x77686d has joined #ruby
<Papierkorb> Oh well. Python wasn't for me either.
<Papierkorb> bullets: I hope you like OOP
LoneHerm_ has joined #ruby
<Ox0dea> bullets: Interesting word choice.
<bullets> for some reason I do
<Papierkorb> bullets: Great. Strings are object. arrays and hashes too. oh, and numbers. in fact, everything is. Enjoy.
<Papierkorb> *objects
ta_ has joined #ruby
<bullets> women are too?
<bullets> :^)
ianmethyst_ has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
<bullets> well thanks for that guys
<bullets> Ima go read that book
bullets has quit [Quit: leaving]
mistermocha has joined #ruby
mdih has joined #ruby
<nano-> drbrain: btw, filed as #399
<drbrain> nano-: great
babblebre has quit [Quit: Connection closed for inactivity]
bezhermoso has quit [Ping timeout: 246 seconds]
bezhermoso has joined #ruby
tvon has joined #ruby
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
y2mq37 has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
bezhermo_ has joined #ruby
Mattx has joined #ruby
<Mattx> how do you install ruby >= with rvm? I installed ruby-head but it's 2.2.1
pawnbox has quit [Ping timeout: 276 seconds]
rbennacer has quit [Remote host closed the connection]
kies has quit [Ping timeout: 260 seconds]
bezhermoso has quit [Ping timeout: 248 seconds]
halfamind has quit [Quit: Leaving.]
uglybandersnatch has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
eljimmy has joined #ruby
Xentil has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
tvon has quit []
Tharbakim has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
i8igmac has joined #ruby
bronson has joined #ruby
jyaworski has quit [Quit: jyaworski]
ledestin has joined #ruby
Tharbakim has joined #ruby
fullofca_ has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
sesquipedalian has quit [Ping timeout: 268 seconds]
stannard has quit [Remote host closed the connection]
jyaworski has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
bezhermo_ has quit [Quit: Zzzzz...]
fullofcaffeine has quit [Ping timeout: 248 seconds]
Xentil has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
halfamind has joined #ruby
stan has quit [Ping timeout: 268 seconds]
tercenya has quit [Ping timeout: 248 seconds]
stan has joined #ruby
tercenya has joined #ruby
faelkle has quit [Ping timeout: 268 seconds]
faelkle has joined #ruby
pawnbox has joined #ruby
mistermocha has joined #ruby
ixti has joined #ruby
DmitryBochkarev has joined #ruby
stannard has joined #ruby
woodruffw has quit [Ping timeout: 240 seconds]
Tharbakim has quit [*.net *.split]
cdg has quit [*.net *.split]
Eleeleth has quit [*.net *.split]
PaulCapestany has quit [*.net *.split]
znz_jp has quit [*.net *.split]
drbrain has quit [*.net *.split]
PlasmaStar has quit [*.net *.split]
hplar_ has quit [*.net *.split]
aspiers has quit [*.net *.split]
Spami_ has quit [*.net *.split]
tristanp has quit [*.net *.split]
treaki__ has quit [*.net *.split]
Didac has quit [*.net *.split]
j2k has quit [*.net *.split]
jaiks has quit [*.net *.split]
Cork has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
jinie has quit [*.net *.split]
melter has quit [*.net *.split]
quarcu_ has quit [*.net *.split]
Puffball has quit [*.net *.split]
nibbo has quit [*.net *.split]
jpinnix_______ has quit [*.net *.split]
ghormoon has quit [*.net *.split]
ElderFain has quit [*.net *.split]
mando_ has quit [*.net *.split]
bihi has quit [*.net *.split]
bry4n has quit [*.net *.split]
cajone has quit [*.net *.split]
bove has quit [*.net *.split]
x0f has quit [*.net *.split]
ytti has quit [*.net *.split]
crankharder has quit [*.net *.split]
adambeynon has quit [*.net *.split]
cbetta has quit [*.net *.split]
podman has quit [*.net *.split]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ghormoon has joined #ruby
treaki__ has joined #ruby
gbgdev has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
BTRE has quit [Quit: Leaving]
diegoviola has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
gbgdev_ has quit [Ping timeout: 276 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
htmldrum has joined #ruby
Tharbakim has joined #ruby
cdg has joined #ruby
Eleeleth has joined #ruby
PaulCapestany has joined #ruby
znz_jp has joined #ruby
drbrain has joined #ruby
PlasmaStar has joined #ruby
hplar_ has joined #ruby
aspiers has joined #ruby
tristanp has joined #ruby
bihi has joined #ruby
Puffball has joined #ruby
Cork has joined #ruby
melter has joined #ruby
jaiks has joined #ruby
Spami_ has joined #ruby
nibbo has joined #ruby
ElderFain has joined #ruby
bove has joined #ruby
ytti has joined #ruby
bigkevmcd has joined #ruby
mando_ has joined #ruby
j2k has joined #ruby
jinie has joined #ruby
quarcu_ has joined #ruby
Didac has joined #ruby
cajone has joined #ruby
bry4n has joined #ruby
x0f has joined #ruby
jpinnix_______ has joined #ruby
crankharder has joined #ruby
podman has joined #ruby
cbetta has joined #ruby
adambeynon has joined #ruby
Moosashi has quit [Quit: Moosashi]
woodruffw has joined #ruby
quarcu_ has quit [Max SendQ exceeded]
bove has quit [Max SendQ exceeded]
Puffball has quit [Max SendQ exceeded]
PaulCapestany has quit [Max SendQ exceeded]
Didac has quit [Max SendQ exceeded]
PlasmaStar has quit [Max SendQ exceeded]
Puffball has joined #ruby
quarcu has joined #ruby
PlasmaStar has joined #ruby
PaulCapestany has joined #ruby
bove has joined #ruby
Chagel has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
griffindy has joined #ruby
ianmethyst_ has quit [Quit: Leaving]
ianmethyst has quit [Quit: Leaving]
rose177 has joined #ruby
rose177 has quit [Max SendQ exceeded]
rose177 has joined #ruby
benlieb has joined #ruby
chandlerbing has quit [Ping timeout: 276 seconds]
grill has joined #ruby
<Mattx> what's the latest version of ruby on rvm? can anyone check what "rvm list known" says?
<drbrain> Mattx: sorry, I don't have rvm
rose177 has quit [Client Quit]
sesquipedalian has joined #ruby
BTRE has joined #ruby
rose177 has joined #ruby
rose177 has quit [Max SendQ exceeded]
rose177 has joined #ruby
rose177 has quit [Client Quit]
<Mattx> never mind, all I needed was "rvm get head" :)
slakevc has joined #ruby
slakevc has quit [Max SendQ exceeded]
freakcoder has joined #ruby
slakevc has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
slakevc has quit [Client Quit]
slakevc has joined #ruby
slakevc has quit [Client Quit]
rose177 has joined #ruby
rose177 has quit [Max SendQ exceeded]
Gasher^ has quit [Quit: Leaving]
htmldrum has quit [Ping timeout: 240 seconds]
Sucks has joined #ruby
rose177 has joined #ruby
rose177 has quit [Max SendQ exceeded]
ElSif has joined #ruby
rose177 has joined #ruby
freakcoder has quit [Ping timeout: 264 seconds]
crystal77 has joined #ruby
rose177 has quit [Remote host closed the connection]
slakevc has joined #ruby
slakevc has quit [Max SendQ exceeded]
slakevc has joined #ruby
Uber|Dragon has quit [Quit: No Reason]
nanoz has joined #ruby
Uber|Dragon has joined #ruby
diegoviola has joined #ruby
elifoster has joined #ruby
htmldrum has joined #ruby
ta_ has joined #ruby
kies has joined #ruby
tomatoes has joined #ruby
tjbiddle has joined #ruby
solocshaw has quit [Ping timeout: 244 seconds]
marchelz1 has left #ruby ["WeeChat 1.0.1"]
pawnbox has joined #ruby
skweek has joined #ruby
rbennacer has quit [Remote host closed the connection]
jenrzzz has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<jottr> Hi all. I'm confused by the following construct: hsh = Hash.new {hsh[[1,2]] = 4} hsh[[1,2]] => 4
pawnbox has quit [Ping timeout: 240 seconds]
<jottr> Does that use an array as a key for a hash?
poerror has quit [Ping timeout: 244 seconds]
<jottr> I.e. is [1,2] the key?
linoj has joined #ruby
rmulligan has joined #ruby
rmulligan has left #ruby [#ruby]
gbgdev_ has joined #ruby
rmulligan has joined #ruby
Trynemjoel has joined #ruby
<Ox0dea> Yes.
<Ox0dea> I don't understand why it's in Hash.new's block, though.
ruind has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
baweaver has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
<Ox0dea> jottr: Is not.
gbgdev has quit [Ping timeout: 260 seconds]
davedev24 has quit [Remote host closed the connection]
blackmesa has joined #ruby
kalopsian has joined #ruby
mwlang has quit [Quit: mwlang]
bullets has joined #ruby
skweek has quit [Remote host closed the connection]
* bullets started reading why's poignant guide
<jottr> Ox0dea: What do you mean?
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
<Ox0dea> jottr: There's nothing in there that suggests using Hash.new so wrongly.
[afk]chocoelho has left #ruby [#ruby]
<jottr> Ox0dea: Ok. Why not say that instead... How should I do it then? I.e. is there a short form of hsh = Hash.new, hsh[[1,2]] = 4
<Ox0dea> jottr: Is that the only key-value pair your Hash is going to contain?
<jottr> For the sake of this example, yes
aspiers has quit [Ping timeout: 240 seconds]
kalopsian has quit [Ping timeout: 276 seconds]
Mattx has quit [Quit: Leaving]
poerror has joined #ruby
linoj has quit [Quit: linoj]
radgeRayden has left #ruby ["Leaving"]
bullets has quit [Quit: leaving]
jyaworski has quit [Quit: jyaworski]
uglybandersnatch has joined #ruby
kam270 has quit [Ping timeout: 276 seconds]
Moosashi has joined #ruby
skweek has joined #ruby
IrishGringo has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
akkad has quit [Ping timeout: 276 seconds]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
Spami has joined #ruby
shpoont has joined #ruby
akkad has joined #ruby
<Ox0dea> >> {[1,2] => 4} # jottr
<ruby[bot]> Ox0dea: # => {[1, 2]=>4} (https://eval.in/537816)
jenrzzz has quit [Ping timeout: 252 seconds]
<jottr> Ox0dea: thx. And for multiple pairs?
<Ox0dea> jottr: Just separate the pairs with commas.
<jottr> Ox0dea: ok
<Ox0dea> That's called a Hash literal, incidentally, but you can add onto a Hash at any time with Hash#[]=, regardless of how it was instantiated.
pawnbox has joined #ruby
zast has joined #ruby
benlieb has quit [Quit: benlieb]
blt has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
CloCkWeRX has left #ruby [#ruby]
U7se6 has joined #ruby
Spami has joined #ruby
skweek has quit [Remote host closed the connection]
jyaworski has joined #ruby
jyaworski has quit [Client Quit]
Uo9er_ has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
pwn has joined #ruby
<pwn> Hi, what does this code do: @sid = "#{@session[16..-1]}"
chandlerbing has joined #ruby
<Ox0dea> pwn: About which part are you most powerfully confused?
<pwn> the right hand side of the assignment
<Ox0dea> pwn: @session is a String, [16..-1] grabs the characters from index 16 all the way to the end (Ruby supports negative indexing), and then that result is being interpolated (unnecessarily, since it's already a String).
Moosashi has quit [Quit: Moosashi]
crowell has quit [Ping timeout: 246 seconds]
<pwn> will it work if session is a string like "99" ?
<pwn> or does it have to be at least 16 characters long?
LoneHerm_ has joined #ruby
<Ox0dea> ?try
<ruby[bot]> Why don't you try it and see for yourself?
rmulligan has quit [Ping timeout: 250 seconds]
<Ox0dea> ^_^
<pwn> Im editing a metasploit script.. kinda hard to figure out whats going on
<pwn> that one..
<pwn> anyways i'll play around with it
<pwn> thanks
blackmesa has quit [Ping timeout: 264 seconds]
<Ox0dea> Sure thing.
uglybandersnatch has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
woodruffw has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
halfamind has quit [Quit: Leaving.]
LoneHerm_ has quit [Ping timeout: 248 seconds]
gbgdev_ has quit [Remote host closed the connection]
baweaver has joined #ruby
crowell has joined #ruby
benlieb has joined #ruby
rrrepsaj has joined #ruby
swistak35 has quit [Ping timeout: 276 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
duncannz has joined #ruby
rrrepsaj has quit [Remote host closed the connection]
y2mq37 has quit [Ping timeout: 264 seconds]
woodruffw has joined #ruby
y2mq37 has joined #ruby
linoj has joined #ruby
vash_ has joined #ruby
<vash_> hola
vash_ is now known as Guest35290
aspiers has joined #ruby
<Guest35290> hola
uglybandersnatch has quit [Ping timeout: 244 seconds]
<Guest35290> alguien por ahi?
vdamewood has joined #ruby
bezhermoso has joined #ruby
linoj has quit [Client Quit]
djbkd has quit [Quit: My people need me...]
aspiers has quit [Ping timeout: 240 seconds]
ruind has quit [Ping timeout: 248 seconds]
elifoster has quit [Ping timeout: 260 seconds]
Guest35290 has quit [Quit: Saliendo]
uglybandersnatch has joined #ruby
tercenya_ has joined #ruby
rmulligan has joined #ruby
blt has quit [Ping timeout: 248 seconds]
bezhermoso has quit [Quit: Zzzzz...]
Vlat- has joined #ruby
tercenya has quit [Ping timeout: 276 seconds]
wasane has joined #ruby
halfamind has joined #ruby
davedev24 has joined #ruby
tercenya has joined #ruby
LastGabs has joined #ruby
pawnbox has joined #ruby
tercenya_ has quit [Read error: Connection reset by peer]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwn has quit [Quit: Page closed]
wasane has quit [Client Quit]
poguez_ has quit [Quit: Connection closed for inactivity]
zast has quit [Remote host closed the connection]
rrrepsaj has joined #ruby
Nick_ZWG has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
daivyk has quit [Quit: ZZZzzz…]
pawnbox has quit [Ping timeout: 276 seconds]
<Nick_ZWG> Hi. I want to check to see if two strings in an array, and if they are, order them in a specific order (A, B, rest of array untouched). I already have the code to add the items to the list if they aren't in it: https://gist.github.com/nmcspadden/1db5ab3dd4f71a9a7c02
tercenya has quit [Ping timeout: 248 seconds]
LastGabs has quit [Quit: Textual IRC Client: www.textualapp.com]
<mozzarella> do you want to move them to the front of the array?
braincrash has quit [Quit: bye bye]
<Nick_ZWG> Yes, sorry. I read in the list of paths from /etc/paths, and I need to insert A and B in order to the front of the array.
poerror has quit [Ping timeout: 240 seconds]
<Nick_ZWG> Works fine so far with .unshift, but that code doesn't work if A and B are already in /etc/paths but out of order
<Nick_ZWG> i.e. /etc/paths should always end up being:
<Nick_ZWG> A, B, <whatever else>
vikaton has quit [Quit: Connection closed for inactivity]
halfamind has quit [Quit: Leaving.]
<Nick_ZWG> I feel like I'm overcomplicating it, but is it better to try to compare two arrays? Or just check to see if the array includes A, and if it does, move it to the top, andthen do the same for B?
<Nick_ZWG> I feel a bit indecisive about the approach
<mozzarella> just tell me what you're trying to do
<mozzarella> what does your program do
<Nick_ZWG> Read in /etc/paths. If A and B are not in /etc/paths already, prepend them to the list of paths, and then write it back out so that it's A, B, <whatever>
<Nick_ZWG> End result is that /etc/paths should always be A, B, whatever
<Nick_ZWG> regardless of what it was when it was read in
<mozzarella> what if there's only A or only B?
<Nick_ZWG> If either or both are missing, they should be prepended in order
Vlat- has quit [Quit: Vlat-]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<mozzarella> so in all scenarios you end up with A and B at the beginning of the array?
<Nick_ZWG> yes
<Nick_ZWG> That's the end goal for all scenarios, regardless of what goes in.
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
IrishGringo has quit [Ping timeout: 248 seconds]
<mozzarella> then I would just remove them and add them back
braincrash has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<Nick_ZWG> Wow. That's so obvious.
<Nick_ZWG> I totally overcomplicated it.
<Nick_ZWG> Thanks.
pawnbox has joined #ruby
LastGabs has joined #ruby
rrrepsaj has quit [Remote host closed the connection]
<Ox0dea> Nick_ZWG: How about `([A, B] + paths).uniq`?
mistermocha has quit [Ping timeout: 240 seconds]
mane is now known as naem
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nick_ZWG> That's also a great solution.
<Nick_ZWG> Thanks.
pawnbox has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 260 seconds]
<Ox0dea> Sure thing.
pawnbox has joined #ruby
<Ox0dea> It's wasteful, but I imagine you don't have thousands of paths. :P
tjbiddle has joined #ruby
bungoman has joined #ruby
slakevc has quit [Quit: Leaving]
MyMind has quit [Ping timeout: 260 seconds]
Pisuke has joined #ruby
bungoman has quit [Client Quit]
<Nick_ZWG> Indeed, the default /etc/paths only has 5 entries and we're just adding 2
ur5us has quit [Remote host closed the connection]
uglybandersnatch has quit [Ping timeout: 248 seconds]
frustrum has quit [Read error: Connection reset by peer]
terminal_ has joined #ruby
frustrum has joined #ruby
DmitryBochkarev has joined #ruby
tjbiddle has quit [Ping timeout: 276 seconds]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
sysodaff has joined #ruby
hxegon has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
blackmesa has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
DmitryBochkarev has quit [Client Quit]
hxegon is now known as hxegon_AFK
nando293921 has quit [Ping timeout: 264 seconds]
shpoont has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalopsian has joined #ruby
uglybandersnatch has joined #ruby
treaki_ has joined #ruby
DmitryBochkarev has joined #ruby
sysodaff has quit [Remote host closed the connection]
<Ox0dea> Nick_ZWG: Are you learning Ruby, or was this kind of a one-off thing?
LoneHermit has joined #ruby
mistermocha has joined #ruby
DmitryBochkarev has quit [Client Quit]
treaki__ has quit [Ping timeout: 246 seconds]
kalopsian has quit [Ping timeout: 252 seconds]
hxegon_AFK is now known as hxegon
hxegon is now known as hxegon_AFK
LoneHermit has quit [Remote host closed the connection]
bronson has joined #ruby
LoneHerm_ has joined #ruby
Norrin has quit [Ping timeout: 264 seconds]
IrishGringo has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
Nick_ZWG has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 252 seconds]
marienz has quit [Ping timeout: 612 seconds]
krz has joined #ruby
LastGabs has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akosednar has joined #ruby
Chagel has joined #ruby
pfg has quit [Ping timeout: 264 seconds]
liquid-silence has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hk238 has joined #ruby
pfg has joined #ruby
bricker has joined #ruby
fedexo has joined #ruby
Chagel has quit [Remote host closed the connection]
akosednar is now known as ako
aspiers has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
Chagel has joined #ruby
naem is now known as girll
girll is now known as grill_power
gix has quit [Ping timeout: 268 seconds]
kirillzh has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jkahn has quit [Remote host closed the connection]
aupadhye has joined #ruby
ta_ has quit [Ping timeout: 268 seconds]
frustrum has quit [Ping timeout: 240 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
gix has joined #ruby
davedev24 has joined #ruby
Vlat- has joined #ruby
tercenya has joined #ruby
slash_mode is now known as slash_nick
Chagel has quit [Remote host closed the connection]
norc has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hxegon_AFK is now known as hxegon
blackmesa has quit [Ping timeout: 264 seconds]
Chagel has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
hxegon is now known as hxegon_AFK
poerror has joined #ruby
ta_ has joined #ruby
hxegon_AFK has quit [Quit: BRB]
halfamind has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
rmulligan has joined #ruby
ruind has joined #ruby
merida has joined #ruby
ruind has quit [Client Quit]
ruid has joined #ruby
rmulligan has quit [Ping timeout: 250 seconds]
A124 has quit [Quit: '']
A124 has joined #ruby
Uber|Dragon has quit [Ping timeout: 248 seconds]
marienz has joined #ruby
Uo9er_ has joined #ruby
norc has quit [Ping timeout: 240 seconds]
blt has joined #ruby
liquid-silence has joined #ruby
liquid-silence has joined #ruby
crystal77 has joined #ruby
U7se6 has quit [Ping timeout: 244 seconds]
sauvin has joined #ruby
Norrin has joined #ruby
saneax_AFK is now known as saneax
eljimmy has quit [Quit: Leaving]
bluOxigen has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
skade has joined #ruby
rmulligan has joined #ruby
y2mq37 has quit [Quit: Leaving]
IrishGringo has quit [Ping timeout: 250 seconds]
halfamind has quit [Quit: Leaving.]
tubulife- has joined #ruby
poerror has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Xentil has joined #ruby
skade has joined #ruby
rmulligan has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Xiti]
skade has quit [Client Quit]
Chagel has quit [Remote host closed the connection]
ohaibbq has joined #ruby
ruid has quit [Ping timeout: 268 seconds]
Chagel has joined #ruby
Xentil has quit [Ping timeout: 248 seconds]
cdg has quit [Remote host closed the connection]
halfamind has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #ruby
Nawn has joined #ruby
Sero_ has joined #ruby
Sembei has joined #ruby
halfamind has quit [Ping timeout: 240 seconds]
Pisuke has quit [Ping timeout: 244 seconds]
sp4rrow has quit [Client Quit]
Sero has quit [Ping timeout: 276 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
siaw has joined #ruby
Chagel has quit [Remote host closed the connection]
quazimodo has joined #ruby
<quazimodo> is there a simple way to create a digested identifier for a hash or array with nested hashes/arrays
<quazimodo> should I just serialize the data and run something like md5 digest on that ?
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
Chagel has joined #ruby
pawnbox has joined #ruby
<quazimodo> yeah i guess so
blackmesa has joined #ruby
davedev24 has joined #ruby
tvw has joined #ruby
<havenwood> quazimodo: do you need it to be stable across invocations or implementations? if not you might consider Object#hash: http://ruby-doc.org/core/Object.html#method-i-hash
davedev24 has quit [Ping timeout: 268 seconds]
astrobun_ has joined #ruby
<Nawn> Hey guys, I'm trying to practice my recursion on the initial Project Euler problems. I understand how recursion works, but I'm having troubles debugging my code. It's giving me a result of 10Mil, when it should be around 4.6Mil according to some internet searches. My code: https://gist.github.com/Nawn/a1dbf22df7dec7a748e2
<quazimodo> havenwood: i'll look into it
<quazimodo> um
<quazimodo> yes stable across invocations
halfamind has joined #ruby
<quazimodo> i want to get users filter preferences from a web connection as a json object and store it in db, passing the digest back up
dionysus69 has joined #ruby
<quazimodo> they hold onto the digest in the query string and can share the link with arbitrary filters applied
iwaffles has quit [Quit: iwaffles]
<quazimodo> if the server gets some filters passed to it, it'll first digest those and see if the record already exists, if not it creates it
liquid-silence has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
liquid-silence has joined #ruby
liquid-silence has quit [Changing host]
liquid-silence has joined #ruby
siaw has quit [Quit: siaw]
<quazimodo> havenwood: seems like Object.hash isn't so stable
<quazimodo> I'll Marshal.dump into Digest
Macaveli has joined #ruby
<mozzarella> Nawn: which problem is it?
<Nawn> 3
<Nawn> adding up the even numbers of the Fibanacci sequence up to 4,000,000
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
kalopsian has joined #ruby
siaw has joined #ruby
Abrin_AWAY has quit [Ping timeout: 244 seconds]
siaw has quit [Client Quit]
siaw has joined #ruby
siaw has quit [Client Quit]
<havenwood> Nawn: you're very close
<Nawn> Okay, just updated the git
<Nawn> back to where it says the 10316619
<Nawn> it was giving me an error before :P hadn't realized
kalopsian has quit [Ping timeout: 252 seconds]
<Nawn> I'm not very familiar with recursion, so I don't know where to start debugging
<havenwood> Nawn: ponder the details of this line: https://gist.github.com/Nawn/a1dbf22df7dec7a748e2#file-even_fibs-rb-L27
rmulligan has joined #ruby
<Nawn> Yeah, I'd imagine if we continue to go up the fib sequence, we'll eventually hit a 4,000,000 mark, and that's where we stop creating stacks, right? and then go back, and add them up?
ziyadb has joined #ruby
Chagel has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ur5us has joined #ruby
rmulligan has quit [Ping timeout: 248 seconds]
vdamewood has quit [Read error: Connection reset by peer]
danielwzd has joined #ruby
<Nawn> I don't understand what the error is Dx
vdamewood has joined #ruby
blt has quit [Ping timeout: 244 seconds]
crayon has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
Chagel has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 248 seconds]
<havenwood> Nawn: What if #even_fibs took a second argument that was `sum`?
blackmesa has quit [Ping timeout: 252 seconds]
poerror has joined #ruby
Chagel has quit [Remote host closed the connection]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 244 seconds]
<havenwood> Nawn: And then `sum` instead of `fib_num` as the return value `if fib_num > 4_000_000`.
Chagel has joined #ruby
bronson has joined #ruby
<Nawn> Okay, what I just updated to, worked
<Nawn> Whoa
<Nawn> What caused that?
<Nawn> why was it giving me the wrong input? :o
<havenwood> Nawn: :)
halfamind has quit [Quit: Leaving.]
Chagel has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<havenwood> Nawn: It was giving you the last fib_num (the largest fibonacci seq number under 4 mil) before.
<havenwood> Nawn: You've updated it to properly pass the sum along, and return the sum of all fib_nums instead of just the last one.
<havenwood> Nawn: A nit that happens to not matter, but "whose values do not exceed four million" would allow four million exactly so > rather than >=.
bronson has quit [Ping timeout: 252 seconds]
Chagel has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
<havenwood> Since that last one would still need to get added to the sum if it was a fib.
<Nawn> OH
uglybandersnatch has quit [Ping timeout: 264 seconds]
<Nawn> I think I understand.
fedexo has quit [Ping timeout: 250 seconds]
blt has joined #ruby
<havenwood> Nawn: Get rid of all the returns other than the two early returns. :)
<havenwood> Nawn: Just lines 27 and 30 aren't already implicitly returned if you remove the explicit `return`.
<havenwood> Nawn: A shorthand nicety in Ruby for `fib_num % 2 == 0` is `fib_num.even?`.
dog3521 has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
dog3521 has left #ruby [#ruby]
<havenwood> Nawn: Another suggestion would be seeing what it would be like to not use `+=` with `sum` and instead pass a second `sum` argument everywhere you use #even_fibs.
_wreet has joined #ruby
<havenwood> Nawn: And if you have success then consider how you could do the same for `n` with no `+=`.
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
frustrum has joined #ruby
<Nawn> Updated
<Nawn> Something like that?
rnda has joined #ruby
wreet has quit [Ping timeout: 260 seconds]
Uber|Dragon has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
cibs has quit [Ping timeout: 240 seconds]
<havenwood> Nawn: :D
toretore has quit [Ping timeout: 260 seconds]
tubulife- has quit [Ping timeout: 268 seconds]
CloCkWeRX has joined #ruby
<Nawn> :D
Uber|Dragon has quit [Ping timeout: 248 seconds]
frustrum has quit [Ping timeout: 260 seconds]
davedev24 has joined #ruby
atmosx has joined #ruby
minimalism has quit [Quit: minimalism]
flughafen has quit [Ping timeout: 244 seconds]
davedev24 has quit [Ping timeout: 248 seconds]
ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
Rahul_Roy has joined #ruby
Nawn has quit [Read error: Connection reset by peer]
solars has joined #ruby
poerror has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby
last_staff has joined #ruby
tobiasvl has quit [Ping timeout: 260 seconds]
<solars> can anyone tell me which IDEs support ruby refactoring?
scepticulous has joined #ruby
<havenwood> solars: JetBrains RubyMine is one.
emilkarl has joined #ruby
nocontrol has joined #ruby
danielwzd has quit [Quit: Leaving]
scepticulous has quit [Client Quit]
moei has quit [Read error: Connection reset by peer]
scepticulous has joined #ruby
bqscott has quit [Ping timeout: 244 seconds]
moei has joined #ruby
rmulligan has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
agit0 has quit [Quit: zzzZZZ….]
htmldrum has joined #ruby
moeabdol has joined #ruby
_wreet has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
codecop_ has joined #ruby
emilkarl[away] is now known as emilkarl
<solars> havenwood, I'll have a look, thanks
codecop_ has quit [Read error: Connection reset by peer]
tjbiddle has quit [Ping timeout: 248 seconds]
kalopsian has joined #ruby
rigel_ has joined #ruby
cibs has joined #ruby
Asher has quit [Read error: Connection reset by peer]
<rigel_> how can i use ri to look up documentation on ruby keywords?
ako has quit [Read error: Connection reset by peer]
Asher has joined #ruby
nuck has quit [Ping timeout: 276 seconds]
moeabdol has quit [Ping timeout: 248 seconds]
ReK2 has quit [Remote host closed the connection]
ReK2 has joined #ruby
U7se6 has joined #ruby
rigel_ has quit [Client Quit]
tjbiddle has joined #ruby
scepticulous has quit [Ping timeout: 244 seconds]
__main__ has quit [Ping timeout: 276 seconds]
jwang has quit [Ping timeout: 276 seconds]
tjbiddle has quit [Remote host closed the connection]
Uo9er_ has quit [Ping timeout: 244 seconds]
kalopsian has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
nuck has joined #ruby
nuck is now known as Guest37582
jwang has joined #ruby
djbkd has joined #ruby
__main__ has joined #ruby
liquid-silence has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubulife- has joined #ruby
bruce_lee has joined #ruby
<apeiros> wow, a full 2min of patience.
ta_ has joined #ruby
rnda has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
ferr has joined #ruby
norc has joined #ruby
arescorpio has quit [Quit: Leaving.]
RegulationD has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
SG045734 has joined #ruby
liquid-silence has joined #ruby
liquid-silence has joined #ruby
rmulligan has quit [Ping timeout: 260 seconds]
<norc> Ox0dea: Can you explain to me the story behind VALUE?
baweaver has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 260 seconds]
tubulife- has quit [Ping timeout: 264 seconds]
vdamewood has quit [Quit: Life beckons.]
SG045734 has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
<shevy> once upon a time, the ruby devs sat together to create VALUE
<shevy> and there was much rejoicing!
htmldrum has quit [Ping timeout: 244 seconds]
<shevy> for six days they feasted upon the lambs... and the cows... and the
hahuang61 has joined #ruby
firstdayonthejob has joined #ruby
vdamewood has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
krz has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
rdark has joined #ruby
pawnbox has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
jud has joined #ruby
troulouliou_div2 has joined #ruby
astrobun_ has quit [Read error: Connection reset by peer]
Chagel_ has joined #ruby
davee_ has joined #ruby
<nocontrol> when I select a web server, can I go with Puma alone ?
astrobun_ has joined #ruby
<nocontrol> I mean that If you run Puma as a service, there is no need for nginx and complicated setups
htmldrum has joined #ruby
davedev24 has joined #ruby
<nocontrol> why should you do so ? Why should you choose to setup nginx with puma together ?
Don_John has quit [Read error: Connection reset by peer]
Chagel has quit [Ping timeout: 244 seconds]
agit0 has joined #ruby
<norc> nocontrol: One reason might be TLS termination, or some form of load balancing through nginx.
duncannz has quit [Remote host closed the connection]
<nocontrol> norc: but puma supports workers also
<nocontrol> isn't it the same thing ?
<norc> nocontrol: Well you might want to balance between multiple nodes across servers.
theRealAlexz has quit [Quit: No Ping reply in 180 seconds.]
<nocontrol> and why do you need to use both ? Why do people use them both instead of just using nginx ?
<norc> There is so many reasons why you might want to have an nginx in front. What do you want yourself?
<norc> Are we talking about Rails?
cibs has quit [Ping timeout: 240 seconds]
<nocontrol> hmmm yes
<nocontrol> I used foreman to extract to systemd where I use my Procfile and puma
<nocontrol> so in every restart/reboot puma runs as a service
<nocontrol> and I don't see anything that is missing right now, meaning that the web page is served successfully and there are no problems
skade has joined #ruby
<nocontrol> this is a very low traffic website for internal use or local (vagrant) ones
<norc> nocontrol: In that case you still might want an nginx in front for TLS termination.
pawnbox has quit [Remote host closed the connection]
<norc> If you do not care about secure communication in the slightest you could ditch nginx entirely easing up deployment.
pawnbox has joined #ruby
<norc> This is what we do as well (we use unicorn though).
<nocontrol> norc: IF I understand well you're talking about SSL certificates and https ?
<norc> Well TLS, but yes.
<nocontrol> I guess puma doesn't support them
<nocontrol> haven't thought about that
<nocontrol> so nginx/apache need puma/passenger/unicorn to serve ruby files ?
<nocontrol> starting to make sense
merida has quit [Remote host closed the connection]
<norc> nocontrol: Not sure about Puma honestly. We just use unicorn internally. :)
theRealAlexz has joined #ruby
<norc> And we have Apache2 TLS termination proxies for the applications for historic reasons.
merida has joined #ruby
<nocontrol> norc: thanks, it really makes sense
<norc> nocontrol: The moment that you have scalability concerns you do not get around a properly setup nginx+puma or nginx+passenger setup though, so keep that in mind.
ohaibbq has quit [Quit: Leaving...]
cibs has joined #ruby
pawnbox has quit [Remote host closed the connection]
bricker has joined #ruby
pawnbox has joined #ruby
astrobun_ has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 276 seconds]
bricker has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
poerror has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
Macaveli has joined #ruby
djbkd has quit [Quit: My people need me...]
kirillzh has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
htmldrum has joined #ruby
aufi has joined #ruby
rmulligan has joined #ruby
djbkd has joined #ruby
futilegames has joined #ruby
ur5us has joined #ruby
jenrzzz has joined #ruby
jaruga has joined #ruby
<nocontrol> norc: got it
TomyWork has joined #ruby
ur5us has quit [Remote host closed the connection]
jas02 has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
moeabdol has joined #ruby
codecop has quit [Remote host closed the connection]
rkazak has joined #ruby
Axy has joined #ruby
aganov has joined #ruby
scepticulous has joined #ruby
liquid-silence has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomatoes has quit [Quit: Bye]
Mia has quit [Ping timeout: 244 seconds]
futilegames has quit [Quit: futilegames]
moeabdol has quit [Ping timeout: 260 seconds]
quazimodo has joined #ruby
djbkd has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
mrgrieves has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4]
terlar has joined #ruby
jas02 has quit [Quit: jas02]
firstdayonthejob has joined #ruby
baweaver has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
tvw has quit [Remote host closed the connection]
siaw has joined #ruby
poerror has quit [Ping timeout: 276 seconds]
jas02 has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 250 seconds]
liquid-silence has joined #ruby
liquid-silence has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
KensoDev has quit [Read error: Connection reset by peer]
rkazak has quit [Read error: Connection reset by peer]
igam has joined #ruby
Uber|Dragon has joined #ruby
RickHull has quit [Remote host closed the connection]
rkazak has joined #ruby
ReK2 has quit [Remote host closed the connection]
RickHull has joined #ruby
Gadgetoid has joined #ruby
duderonomy has joined #ruby
kirillzh has quit [Max SendQ exceeded]
CloCkWeRX has quit [Ping timeout: 246 seconds]
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
__main__ has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
__main__ has joined #ruby
Uber|Dragon has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
jenrzzz has joined #ruby
platzhirsch has joined #ruby
d0nn1e has quit [Ping timeout: 248 seconds]
mfaeh has joined #ruby
MyMind has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
haraoka has joined #ruby
d0nn1e has joined #ruby
Couch has joined #ruby
Sembei has quit [Ping timeout: 248 seconds]
marr has joined #ruby
biberu has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
frustrum has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Cohedrin has joined #ruby
blackmesa has joined #ruby
merida has quit [Remote host closed the connection]
gbgdev has joined #ruby
merida has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
frustrum has quit [Ping timeout: 248 seconds]
merida has quit [Client Quit]
ixti has quit [Quit: WeeChat 1.4]
davee_ has quit [Quit: Leaving]
cpup has joined #ruby
ur5us has joined #ruby
rmulligan has joined #ruby
gbgdev has quit [Ping timeout: 248 seconds]
kalopsian has joined #ruby
blt has quit [Quit: WeeChat 1.4]
tjbiddle has joined #ruby
kalopsian has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
terlar has quit [Quit: WeeChat 1.4]
terlar has joined #ruby
roshanavand has joined #ruby
victor_ has joined #ruby
quazimodo has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
<victor_> '我能输入中文'
amincd has joined #ruby
bigmac_ has joined #ruby
<amincd> Could someone kindly explain the hash.each_key { |value| block } in number 13 in the Ruby reference: http://ruby-doc.org/core-2.2.0/Hash.html#method-i-each_key
<amincd> how do you pass the value?
i8igmac has quit [Ping timeout: 244 seconds]
Ishido has joined #ruby
roshanavand has quit [Client Quit]
jas02 has left #ruby [#ruby]
<amincd> I'm guessing that's an error, and they meant to write hash.each_value..?
emilkarl is now known as emilkarl[away]
drptbl has joined #ruby
mrgrieve1 has joined #ruby
<apeiros> each_key yields the keys of course, not the values.
<apeiros> and as I told you before - use the official docs.
<victor_> value is the key
roshanavand has joined #ruby
nofxx has joined #ruby
<amincd> apeiros: ok, I'll switch to the official doc
emilkarl[away] is now known as emilkarl
mrgrieves has quit [Ping timeout: 260 seconds]
Uo9er_ has joined #ruby
heidar_ has quit [Ping timeout: 276 seconds]
platzhirsch has left #ruby [#ruby]
marr has quit [Ping timeout: 240 seconds]
krz has joined #ruby
U7se6 has quit [Ping timeout: 244 seconds]
davee_ has joined #ruby
gbgdev has joined #ruby
gbgdev has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
ta__ has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
FaPiao is now known as FaPiao|Rejected
astrobun_ has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
tubulife- has joined #ruby
poerror has joined #ruby
rmulligan has quit [Ping timeout: 250 seconds]
astrobun_ has quit [Remote host closed the connection]
hackeron_ has joined #ruby
Chagel has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
GioVdK has joined #ruby
hackeron has quit [Ping timeout: 276 seconds]
tubulife- has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
hahuang61 has joined #ruby
bronson has joined #ruby
Chagel_ has quit [Ping timeout: 268 seconds]
uglybandersnatch has joined #ruby
last_staff has quit [Quit: last_staff]
tvw has quit [Remote host closed the connection]
davedev24 has quit []
roshanavand has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
quazimodo has quit [Ping timeout: 276 seconds]
quazimodo has joined #ruby
zapata has quit [Quit: WeeChat 1.4]
roshanavand has quit [Client Quit]
zapata has joined #ruby
charlemagne has joined #ruby
darkf has quit [Quit: Leaving]
basic has quit [Ping timeout: 276 seconds]
charlemagne has quit [Read error: No route to host]
krz has quit [Ping timeout: 244 seconds]
charlemagne has joined #ruby
hightower3 has joined #ruby
amundj has joined #ruby
andrewvos has joined #ruby
lurch_ has joined #ruby
<lurch_> hi, is there a way to have .to_yaml not generate single quotes when the value in the hash is a string containing only numbers? eg: { "a" => "5" }.to_yaml
platzhirsch has joined #ruby
<lurch_> if i use a nun-numeric character it outputs the yaml without the quoting: { "a" => "5x" }.to_yaml
<apeiros> >> require 'yaml'; { "a" => 5}.to_yaml
<ruby[bot]> apeiros: # => "---\na: 5\n" (https://eval.in/537992)
<norc> lurch_: You could .map the Hash first to coerce such strings into numbers.
<apeiros> lurch_: no quotes means it's an integer, not a string. so no.
<norc> That is, fixnums.
amundj has quit [Client Quit]
Suntzu has quit [Read error: Connection reset by peer]
<lurch_> apeiros, i'm talking about the resulting yaml.. in the first case -> a: '5' , in the second case -> a: 5x
<apeiros> lurch_: yes, and I'm telling you a: 5 and a: '5' in yaml has a different meaning
TheHodge has joined #ruby
<lurch_> ah, ok
<apeiros> without quotes it's not a string. so either you have to make up your mind whether your value is a string or an integer, or you'll have to accept that it needs quoting.
quazimodo has quit [Ping timeout: 244 seconds]
triggerwarning has joined #ruby
arlek has joined #ruby
triggerwarning is now known as iongall
lxsameer has quit [Quit: Leaving]
iongall is now known as triggerwarning
kron4eg has joined #ruby
bricker has joined #ruby
kron4eg has left #ruby [#ruby]
charlemagne has quit [Ping timeout: 260 seconds]
rmulligan has joined #ruby
bqscott has joined #ruby
charlemagne has joined #ruby
elaptics`away is now known as elaptics
triggerwarning has left #ruby ["probably kicked"]
rmulligan has quit [Ping timeout: 248 seconds]
bricker has quit [Ping timeout: 260 seconds]
blackmesa has quit [Quit: WeeChat 1.4]
krz has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
poerror has quit [Ping timeout: 244 seconds]
jds has joined #ruby
andrewvos has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
drptbl has joined #ruby
victor_ has quit [Ping timeout: 252 seconds]
graffix has joined #ruby
krz has quit [Ping timeout: 276 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
jaiks has quit [Remote host closed the connection]
jaiks has joined #ruby
Suntzu has joined #ruby
amincd has quit [Quit: Page closed]
andrewvos has joined #ruby
<norc> apeiros: Interesting. So I just learned that NTH_REF (i.e. $1, $2, ...) works only until INT_MAX>>2 to INT_MAX>>1 (depending on whether long is larger than int) ..
<norc> Which also explains why on some architectures my problem could not be reproduced.
<apeiros> ah, regex capture globals?
<apeiros> interesting inconsistency
* apeiros meanwhile tries to beat oracle + oci8 into submission
<norc> No, they are not globals.
adgtl has joined #ruby
<apeiros> I know
<apeiros> but they look like globals and are listed as such
<apeiros> actually… are they listed with global_variables?
<norc> apeiros: Hah, did you know the recent AR adapter introduced a bug that randomly causes connection losses?
<apeiros> >> "foo" =~ /(.)(.)(.)/; global_variables
<ruby[bot]> apeiros: # => [:$;, :$-F, :$@, :$!, :$SAFE, :$~, :$&, :$`, :$', :$+, :$=, :$KCODE, :$-K, :$,, :$/, :$-0, :$\, :$_, ...check link for more (https://eval.in/538013)
<norc> They should not because they are actually called SVARs
<apeiros> >> "foo" =~ /(.)(.)(.)/; global_variables.grep(/\d/)
<ruby[bot]> apeiros: # => [:$-0, :$0, :$1, :$2, :$3, :$4, :$5, :$6, :$7, :$8, :$9] (https://eval.in/538014)
<apeiros> looks like they are
<apeiros> maybe fake entries
<norc> "foo" =~ /(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/; global_variables.grep(/\d/)
<norc> >> "foo" =~ /(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/; global_variables.grep(/\d/)
<ruby[bot]> norc: # => [:$-0, :$0, :$1, :$2, :$3, :$4, :$5, :$6, :$7, :$8, :$9] (https://eval.in/538015)
<apeiros> norc: nope, didn't know
<norc> Looks like fake entries.
<norc> apeiros: Im close to switching over to jruby now, just have to test the activerecord jdbc adapter first. :)
<norc> Hopefully that will solve many headaches.
<apeiros> did you know that AR::Model.create > 1.4x plsql.table > 10x OCI8#parse + bind_params + exec_array?
A124 is now known as AI24
<apeiros> and let me tell you that the last one is an effing pain to work with
AI24 is now known as A124
<norc> Can you rephrase that statement?
zarubin has joined #ruby
<apeiros> I first had: MyModel.create!(columns.zip(values)), it took 700s for ~160k records
siaw has quit [Quit: siaw]
nofxx has quit [Ping timeout: 260 seconds]
<apeiros> I then moved to: plsql.my_model_table.insert_values(columns, *records)), that took ~500s
zarubin has quit [Client Quit]
Chagel has quit [Ping timeout: 276 seconds]
p1k has joined #ruby
Chagel has joined #ruby
<norc> That sounds awfully slow.
workmad3 has joined #ruby
<apeiros> and now I use: insert = OCI8.parse("INSERT INTO …"); (1..cols).zip(types, records.transpose) do |pos, type, values| insert.bind_param_array(pos, values, type) end; insert.exec_array
<apeiros> and that takes ~50s
zarubin has joined #ruby
<apeiros> it is. horribly. slow.
<norc> I would expect this to complete in the ballbark of maybe 20 seconds.
<apeiros> I'm pretty sure pg's COPY would take <5s
<norc> Nope.
<norc> You would have to have a really special database for that to work *that* fast.
<norc> ;-)
<apeiros> at least iirc it took <1s for 10k records when I tested
<apeiros> COPY is crazy fast
zarubin has quit [Client Quit]
<norc> Oh, wait you mean in a single transaction.
<norc> mm yeah.
<apeiros> yes
<apeiros> it's a seeding operation. in total it's 1mio records I seed. ~300MB of data.
<apeiros> IMO should be IO bound.
marr has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
<apeiros> especially when doing it over the network.
zarubin has joined #ruby
<p1k> why is <array>.slice(<num>) a thing ? isn't it the same as <array>[idx] and surprising that .slice can return a non-array value ?
zarubin has quit [Client Quit]
tubulife- has joined #ruby
<apeiros> p1k: for the same reason that ruby has tons of other aliases.
<apeiros> (I know, not really an answer)
zarubin has joined #ruby
liquid-silence has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<norc> p1k: Actually Array#[] is the more special thing because it does not follow the regular method syntax. ;-)
<crayfishx> So, I can use 'respond_to?' to see if an object contains a certain method - is there anyway to dig a little deeper to check how many arguments the method takes?
<norc> crayfishx: Yes.
<norc> &Method#arity
<norc> &ri Method#arity
uglybandersnatch has quit [Ping timeout: 246 seconds]
<norc> crayfishx: well respond_to does not check whether the *object* contains a method.
<norc> Modules and classes have methods.
<apeiros> crayfishx: note, it's not reliable
<norc> It tells you whether an object responds to that method.
<apeiros> plenty of methods will simply report -1, because they're implemented in C
<apeiros> (and didn't bother to properly declare how many args they take)
<norc> (Which means itself, its singleton class, or any other class or module in its inheritance chain has that method available)
<crayfishx> In my scenario I think its ok - I need to import dynamic code (plugins) and the host app needs to determine whether or not a certain method exists (respond_to?) and if so whether or not to pass an argument hash to it
<p1k> norc: that's not really correct :[] is a method
<apeiros> crayfishx: IMO introspection is a brittle way to do that.
<norc> p1k: It absolutely is.
tubulife- has quit [Ping timeout: 260 seconds]
zarubin has quit [Quit: leaving]
mikecmpbll has joined #ruby
<p1k> I guess you could say it's an exact alias since [a..b] and [a]
zarubin has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<norc> p1k: I would not call it an alias, but 2 separate methods bound to the same underlying C function.
<norc> (Reason is Im really not sure how aliases work under the hood and what possible implications they have)
gbgdev has joined #ruby
Snowy has joined #ruby
FooMunki has joined #ruby
andrewvos has quit [Ping timeout: 260 seconds]
<norc> p1k: My point was just that its a special production rule in the grammar that allows for AREF/ASET calls. Beyond that they are just regular methods, like you said. :)
<crayfishx> arity seems to be what I'm after - thanks
<norc> apeiros: But yeah, the activerecord oracle enhanced adapter is kind of meh.
<norc> Especially annoying are the tons of column conversions you have to do.
Chagel has quit [Remote host closed the connection]
<norc> (Though I do not know how many of my problems are related to the fact that we are still running on 11gr2)
slakevc has joined #ruby
slakevc has quit [Max SendQ exceeded]
slakevc has joined #ruby
liquid-silence has joined #ruby
liquid-silence has joined #ruby
codecop_ has quit [Quit: Išeinu]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
Chagel has joined #ruby
tamole has joined #ruby
kalopsian has joined #ruby
rmulligan has joined #ruby
siaw has joined #ruby
frustrum has joined #ruby
Suntzu has quit [Quit: changing servers]
last_staff has joined #ruby
s00pcan_ has quit [Quit: leaving]
pawnbox has quit [Remote host closed the connection]
andrewvos has joined #ruby
kam270 has joined #ruby
pawnbox has joined #ruby
kalopsian has quit [Ping timeout: 244 seconds]
rmulligan has quit [Ping timeout: 268 seconds]
basic has joined #ruby
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
slakevc has quit [Quit: Leaving]
tesuji has joined #ruby
Chagel has quit [Remote host closed the connection]
frustrum has quit [Ping timeout: 250 seconds]
vondruch__ has joined #ruby
vondruch__ has quit [Remote host closed the connection]
vondruch has joined #ruby
Xentil has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poerror has joined #ruby
pawnbox has quit [Remote host closed the connection]
rodfersou has joined #ruby
Snowy has quit [Ping timeout: 246 seconds]
vondruch_ has quit [Ping timeout: 268 seconds]
ziyadb has joined #ruby
arlek has quit [Ping timeout: 248 seconds]
Snowy has joined #ruby
stannard has joined #ruby
sepp2k has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
stannard has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
spiman has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
A124 has quit [Quit: '']
A124 has joined #ruby
emilkarl is now known as emilkarl[away]
BSaboia has joined #ruby
pawnbox has joined #ruby
U7se6 has joined #ruby
withnale has joined #ruby
Suntzu has joined #ruby
Uo9er_ has quit [Ping timeout: 260 seconds]
n008f4g_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
catphish has joined #ruby
spiman_ has joined #ruby
<catphish> does ruby by any chance have a single operator that says "set variable to value if value is truthy", ie "variable = value if value" or "variable = value || variable"
crdpink has joined #ruby
gagrio is now known as gagrio|CZ
spiman has quit [Ping timeout: 264 seconds]
crdpink2 has quit [Ping timeout: 268 seconds]
<workmad3> catphish: it does not
<catphish> that's a shame, thanks :)
andrewvos has quit [Ping timeout: 276 seconds]
spiman_ has quit []
rbennacer has joined #ruby
mwlang has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
GioVdK has quit [Ping timeout: 244 seconds]
stan has quit [Ping timeout: 276 seconds]
trinaldi has joined #ruby
RegulationD has joined #ruby
deavid has joined #ruby
_blizzy_ has quit [Quit: Leaving]
s00pcan_ has joined #ruby
poerror has quit [Ping timeout: 244 seconds]
GioVdK has joined #ruby
ldnunes has joined #ruby
noway_ has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
Marsupermammal has joined #ruby
johnmilton has joined #ruby
bronson has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
stan has joined #ruby
deavid has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Sero_ has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 252 seconds]
withnale has quit [Quit: ZNC - http://znc.in]
woodruffw has quit [Ping timeout: 268 seconds]
withnale has joined #ruby
kam270 has quit [Ping timeout: 276 seconds]
stannard has joined #ruby
rmulligan has joined #ruby
silverdust has joined #ruby
<silverdust> What does !~ mean? I saw this: foo !~ some_regex
<bougyman> regex negation
<bougyman> foo does_not_match <regex>
<silverdust> i.e must not match
<silverdust> okay
<silverdust> thanks
Xeago has joined #ruby
charlema_ has joined #ruby
woodruffw has joined #ruby
hxegon has joined #ruby
charlemagne has quit [Ping timeout: 244 seconds]
poerror has joined #ruby
rmulligan has quit [Ping timeout: 240 seconds]
scepticulous has quit [Ping timeout: 240 seconds]
Shaboum has joined #ruby
stannard has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
stannard has joined #ruby
poerror has quit [Ping timeout: 248 seconds]
DoXiD has quit [Remote host closed the connection]
dondonai has joined #ruby
haraoka has quit [Ping timeout: 248 seconds]
<shevy> #ruby - where the experts sit!
Snowy_ has joined #ruby
Snowy has quit [Ping timeout: 246 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
Abrin_AWAY has joined #ruby
skade has joined #ruby
kam270 has joined #ruby
poerror has joined #ruby
bkxd has joined #ruby
tubulife- has joined #ruby
kam270 has quit [Max SendQ exceeded]
unshadow has joined #ruby
kam270 has joined #ruby
duckpuppy has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
guest8051 has quit [Ping timeout: 268 seconds]
mfaeh has quit [Remote host closed the connection]
<unshadow> Hi all, Does anyone has experience with ANN (Artifical Neural Networks) on Ruby ?
victor_ has joined #ruby
kam270 has quit [Max SendQ exceeded]
tubulife- has quit [Ping timeout: 276 seconds]
kam270 has joined #ruby
bweston92 has quit [Quit: Leaving]
synthroid has joined #ruby
guest805 has joined #ruby
<tobiasvl> unshadow: is this related to AlphaGo? :)
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
Xeago has joined #ruby
<unshadow> tobiasvl: Related in the sense that both are using some forms of Artificial Intelegence ;)
reprazent has joined #ruby
<tobiasvl> hehe, yeah, just wondering if that's what inspired you to check out ANNs
kam270 has quit [Max SendQ exceeded]
<tobiasvl> I have no experience with it unfortunately
htmldrum_ has joined #ruby
kam270 has joined #ruby
andikr has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
htmldrum has quit [Ping timeout: 244 seconds]
<unshadow> Oh no, tobiasvl I'm working on an Opensource project that uses ANN to identify web based security attacks using pattern learning. just wondered if there is someone I can ask a few more indepth questions
victor_ has quit [Ping timeout: 268 seconds]
reprazen_ has joined #ruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
reprazent has quit [Ping timeout: 248 seconds]
andikr has quit [Ping timeout: 260 seconds]
ruid has joined #ruby
graffix has joined #ruby
MuffinPimp has quit [Ping timeout: 260 seconds]
<shevy> unshadow I think you my be the first to bring up this topic here on #ruby in the last 3 years!
<unshadow> shevy: Really ? I thought this is kinda "hot tech" right now with all the new AI shananigns going on
saneax is now known as saneax_AFK
<shevy> dunno... I use ruby mostly just for boring, simple tasks that can be automated. AI sounds pretty advanced
halfamind has joined #ruby
godzillaenlacasa has joined #ruby
<unshadow> shevy: You can check out the proj on Github, it's really is pretty cool I guess :) https://github.com/bararchy/ruby-ann-webattack-filtering
dondonai has left #ruby [#ruby]
blackgoat has quit [Quit: WeeChat 1.4]
resin has joined #ruby
guest805 has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
nocontrol has quit [Remote host closed the connection]
Guest34101 has quit [Ping timeout: 246 seconds]
<unshadow> shevy: But I see what you're getting at, it seems that Ruby has become the Go-to languge for scripts and web (ROR etc..) instead of a full featured multi purposed languge it is really.
tomatoes has joined #ruby
BSaboia has quit [Ping timeout: 252 seconds]
<shevy> well it depends on where or how you use it of course
<shevy> I would not know where to begin with AI, regardless of the language :)
<shevy> but you are right... I really could not tell you anyone who uses ruby and AI... perhaps some japanese devs who happily describe their projects in japanese only :D
guest805 has joined #ruby
charlema_ has quit [Ping timeout: 276 seconds]
philtr_ has quit [Quit: leaving]
sonOfRa has quit [Quit: Bye!]
guest8051 has joined #ruby
sonOfRa has joined #ruby
poerror has quit [Ping timeout: 264 seconds]
Shaboum has quit [Quit: WeeChat 1.4]
vondruch_ has joined #ruby
tubuliferous has joined #ruby
vondruch_ has quit [Read error: Connection reset by peer]
vondruch_ has joined #ruby
guest8052 has joined #ruby
tk__ has joined #ruby
guest805 has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
baweaver has joined #ruby
guest8051 has quit [Ping timeout: 248 seconds]
vondruch has quit [Ping timeout: 246 seconds]
Xentil has quit [Read error: Connection reset by peer]
poerror has joined #ruby
guest8052 has quit [Ping timeout: 240 seconds]
<unshadow> Well, the company I work at is using Ruby in a lot of different ways, we have a Reverse Proxy built using Ruby, including SSL Stripping and URL Re-Write. we also have an automation server that accepts files, save them to a Linux container and scans them using multiple tools. all in pure Ruby.
tubuliferous has quit [Ping timeout: 248 seconds]
<unshadow> So I guess it really dependes what your programmers like to use XD
Meow-J has quit [Quit: Connection closed for inactivity]
<norc> unshadow: Ruby is a full featured multi purpose language.
RegulationD has quit [Ping timeout: 240 seconds]
<norc> unshadow: And Ruby 3.0 will hopefully remove some of the larger performance constraints making it more suitable to a wide variety of problems.
baweaver has quit [Ping timeout: 248 seconds]
<unshadow> norc: I really do wish it too, really waiting for the JIT to be added
poerror has quit [Ping timeout: 260 seconds]
kalopsian has joined #ruby
bronson has joined #ruby
rmulligan has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 248 seconds]
<norc> unshadow: The thing about languages though is often libraries. When picking a language, often a deciding factor is availability of adequate libraries to speed up development. Ruby on Rails is the major reason why Ruby has this "web" feeling when browsing rubygems.
tomatoes has quit [Ping timeout: 276 seconds]
<norc> Simply because it attracted a lot of web developers to Ruby.
guest805 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
SG045734 has joined #ruby
tjvc has joined #ruby
kalopsian has quit [Ping timeout: 252 seconds]
rmulligan has quit [Ping timeout: 264 seconds]
tamole has quit [Quit: ...]
roobienoobie has joined #ruby
<unshadow> norc: Makes sense, though there are lots of gems out there, I usually find everything i'm looking for as a gem, NTLM, SSH, ANN, SSL etc.. I really enjoy having lower level aspects of programming accecable even though I use "high" languge like Ruby
charlemagne has joined #ruby
GioVdK has quit [Ping timeout: 250 seconds]
<norc> unshadow: To me though the main aspect behind Ruby is the ease of writing with frameworks like rspec or any other that you might prefer.
<norc> writing *tests.
<norc> We have such extensive testing suites that you can do large aspects of Rails development without ever opening your browser for months.
tamole has joined #ruby
<norc> And its amazing how seamlessly and effortlessly things like vcr with webmock can help there.
scepticulous has joined #ruby
GioVdK has joined #ruby
ruid has quit [Quit: Leaving]
terlar has quit [Ping timeout: 244 seconds]
adgtl has quit [Remote host closed the connection]
Chagel has joined #ruby
zotherstupidguy has joined #ruby
terlar has joined #ruby
griffindy has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
frustrum has joined #ruby
Vlat- has quit [Quit: Vlat-]
Sero has joined #ruby
Xeago has joined #ruby
n008f4g_ has quit [Ping timeout: 248 seconds]
pawnbox has quit [Remote host closed the connection]
howi has joined #ruby
frustrum has quit [Ping timeout: 268 seconds]
vise890 has joined #ruby
aegis3121 has joined #ruby
<howi> good day. does anyone know what happened to the 'ping' module that was in standard library back in 1.8.7?
stannard has joined #ruby
vise890 has quit [Client Quit]
stannard has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
siaw has quit [Quit: siaw]
<shevy> damn
<shevy> we lost ping?!
<shevy> who is the guilty party!
<howi> i haven't found any information on why it is dropped
<howi> so wondering what happened
<shevy> no idea either but we will find out who is the killer of pinger!
<igam> Dolphins ate ping.
Macaveli has joined #ruby
<unshadow> The net-ping library provides a ping interface for Ruby. It includes separate TCP, HTTP, LDAP, ICMP, UDP, WMI (for Windows) and external ping classes.
Rickmasta has joined #ruby
andrewvos has joined #ruby
kalopsian has joined #ruby
Didac has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gagrio|CZ is now known as gagrio
mfaeh has joined #ruby
bruce_lee has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
davee_ has quit [Ping timeout: 252 seconds]
atmosx has quit [Quit: This is aparting message!]
mistermocha has joined #ruby
aryaching has joined #ruby
howi has left #ruby [#ruby]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p1k has quit [Ping timeout: 260 seconds]
ta__ has quit [Remote host closed the connection]
Uo9er_ has joined #ruby
ta_ has joined #ruby
Didac has quit [Ping timeout: 240 seconds]
halfamind has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
quazimodo has joined #ruby
halfamind has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
U7se6 has quit [Ping timeout: 260 seconds]
Guest34101 has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
adgtl has joined #ruby
adgtl has joined #ruby
joonty has joined #ruby
nocontro_ has joined #ruby
resin has quit [Quit: leaving]
crystal77 has joined #ruby
withnale has left #ruby ["Be back later ..."]
Guest34101 has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
MuffinPimp has joined #ruby
ChiefAlexander has joined #ruby
malconis has joined #ruby
nocontro_ has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 248 seconds]
BTRE has quit [Quit: Leaving]
guest8051 has joined #ruby
tubuliferous has joined #ruby
hahuang65 has joined #ruby
cpup has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
<n1colas> Hello
decoponio has joined #ruby
ta_ has joined #ruby
IrishGringo has joined #ruby
guest805 has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
noway_ has quit [Ping timeout: 246 seconds]
charlemagne has quit [Ping timeout: 240 seconds]
nocontro_ has joined #ruby
steffkes has joined #ruby
tamole has quit [Quit: ...]
graffix has quit [Ping timeout: 276 seconds]
rmulligan has quit [Ping timeout: 246 seconds]
nocontro_ has quit [Remote host closed the connection]
nocontro_ has joined #ruby
bkxd has joined #ruby
andrewvos has quit [Ping timeout: 248 seconds]
cpup has quit [Ping timeout: 246 seconds]
stannard has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
swills has joined #ruby
n1colas has quit [Quit: WeeChat 1.4]
cpup has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
n1colas has joined #ruby
tamole has joined #ruby
Meow-J has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
tamole has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
n008f4g_ has joined #ruby
zacts has joined #ruby
kalopsian has quit [Ping timeout: 260 seconds]
dgncn has quit [Excess Flood]
xaxisx has joined #ruby
dgncn has joined #ruby
<shevy> zotherstupidguy the ancient days!
<shevy> when the dinosaur still ruled the planet
<shevy> they would have used ruby, I am sure of that
techietrash has quit [Remote host closed the connection]
paultreny has quit [Remote host closed the connection]
griffindy has joined #ruby
krz has joined #ruby
last_staff has quit [Quit: last_staff]
grill has joined #ruby
techietrash has joined #ruby
techietrash_ has joined #ruby
kalopsian has joined #ruby
quazimodo has joined #ruby
paultreny has joined #ruby
Xeago has joined #ruby
vdamewood has quit [Quit: Life beckons.]
paultreny is now known as Guest41075
_stu_ has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
whippythellama has joined #ruby
nfk|laptop has joined #ruby
techietrash_ has left #ruby [#ruby]
andrewvos has joined #ruby
vondruch_ has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Connection reset by peer]
tamole has joined #ruby
IrishGringo has joined #ruby
graffix has joined #ruby
quazimodo has quit [Ping timeout: 276 seconds]
bricker has joined #ruby
idle_task has joined #ruby
idletask has quit [Ping timeout: 276 seconds]
<shevy> hah
<shevy> the older ones prefer star trek :)
tamole has quit [Quit: ...]
infra-red has joined #ruby
infra-red has quit [Remote host closed the connection]
cdg has joined #ruby
adgtl has quit [Remote host closed the connection]
tjvc has quit [Changing host]
tjvc has joined #ruby
bricker has quit [Ping timeout: 268 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
<shevy> ruby does not come out in this survey that well :(
victor_ has joined #ruby
axl_ has joined #ruby
<al2o3-cr> notepad++ at top, wtf
<oddmunds> shevy: i think it has a lot to do with stackoverflow
<oddmunds> it has never been a "ruby place"
FooMunki has quit [Quit: FooMunki]
<shevy> you are probably right
idle_task is now known as idletask
nocontro_ has quit []
<oddmunds> it seems like it filled a void when it comes to .net tech
<oddmunds> while ruby has (at least since before stackoverflow) had an active community
<oddmunds> .net has been a "buy a course", "get a certificate", "buy support" kind of world
tvw has joined #ruby
<havenwood> why require_relative when you can require_relative_with_tco?!
cpup has quit [Ping timeout: 264 seconds]
<havenwood> g'morn
victor_ has quit [Ping timeout: 252 seconds]
p1k has joined #ruby
<workmad3> havenwood: wouldn't that be relative to CWD rather than to the file `require_relative` is in?
<workmad3> havenwood: otherwise, fun stuff :)
<havenwood> workmad3: I may not have thought things through, was late last night ;)
cpup has joined #ruby
<havenwood> workmad3: mmm
bigmac_ is now known as i8igmac
n008f4g_ has joined #ruby
emilkarl[away] is now known as emilkarl
<norc> havenwood: actual behaviour aside, I like the thought.
<workmad3> havenwood: it would be kinda fun if `require` and `require_relative` took a second argument of a hash of options to RubyVM for a require :)
p1k has quit [Ping timeout: 244 seconds]
halfamind1 has joined #ruby
<havenwood> workmad3: and then more than one require per require! https://gist.github.com/havenwood/2339554
frustrum has joined #ruby
<havenwood> requires
<havenwood> :P
<workmad3> :)
ChiefAlexander has quit [Remote host closed the connection]
daivyk has joined #ruby
daivyk has quit [Client Quit]
halfamind has quit [Ping timeout: 244 seconds]
joast has quit [Quit: Leaving.]
<hanmac> havenwood: didnt shevy want to make a "everything" gem? so you can do: requires 'everything' XD
berserk_ren has joined #ruby
<havenwood> hanmac: and then an every_version_of_everything gem for when you're really bored
<havenwood> i guess one version per gem is traditional
<havenwood> random_version_of_each_gem then
xaxisx has quit [Quit: xaxisx]
Guest41075 has quit [Remote host closed the connection]
<shevy> hanmac haha yeah ... but I am not sure how serious I was... I think I once tried to just re-package all gems into a standalone gem, or perhaps on a per-program thing so that everything is bundled into one and distributed as that. I remember that 2 years ago, it was kinda silly to have to do a batch "gem install name" when I could just put everything into a single .gem anyway
xaxisx has joined #ruby
paultreny_ has joined #ruby
rmulligan has joined #ruby
bricker has joined #ruby
<adaedra> If only we had a way of installing all gem dependencies at once
<unshadow> TBH a require 'lib/*' will be awsome :)
joast has joined #ruby
mallu has joined #ruby
Gasher has joined #ruby
halfamind1 has quit [Ping timeout: 248 seconds]
halfamind has joined #ruby
tk__ has quit [Quit: ばいばい]
BSaboia has joined #ruby
andrewvos has quit [Ping timeout: 248 seconds]
bricker has quit [Ping timeout: 244 seconds]
tesuji has quit [Read error: Connection reset by peer]
crowell has quit [Ping timeout: 240 seconds]
rmulligan has quit [Ping timeout: 260 seconds]
jgpawletko has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
techietrash has quit [Quit: Bye! <(^_^<)]
RegulationD has joined #ruby
uglybandersnatch has joined #ruby
y0da has joined #ruby
baweaver has joined #ruby
techietrash has joined #ruby
moeabdol has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
but3k4 has quit [Read error: Connection reset by peer]
paultreny_ has quit [Quit: ¯\_(ツ)_/¯]
gbgdev has quit [Remote host closed the connection]
paultreny_ has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
shpoont has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
polishdub has joined #ruby
Sero has quit [Changing host]
Sero has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
crowell has joined #ruby
crowell has joined #ruby
dionysus69 has joined #ruby
lxsameer has joined #ruby
bkxd has joined #ruby
<shevy> I put the gems into a subdir and required them from there
avenj has quit [Ping timeout: 248 seconds]
steffkes has quit [Ping timeout: 276 seconds]
xaxisx has quit [Quit: xaxisx]
rippa has joined #ruby
paultreny_ is now known as paultreny
dionysus69 has quit [Client Quit]
deavid has joined #ruby
andrewvos has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
Chagel has quit [Ping timeout: 248 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
bricker has joined #ruby
slawrence00 has joined #ruby
catphish has left #ruby ["Leaving"]
xaxisx has joined #ruby
slackbotgz has joined #ruby
xaxisx has quit [Client Quit]
freakcoder has joined #ruby
kam270 has quit [Ping timeout: 276 seconds]
mostlybadfly has joined #ruby
DmitryBochkarev has joined #ruby
charlemagne has joined #ruby
krz has quit [Ping timeout: 240 seconds]
ChiefAlexander has joined #ruby
Xeago has quit [Remote host closed the connection]
D9 has quit [Ping timeout: 276 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
johnny56 has quit [Quit: WeeChat 1.4-dev]
subosito has joined #ruby
ixti has joined #ruby
johnny56 has joined #ruby
ixti has quit [Client Quit]
VeryBewitching has joined #ruby
aegis3121 has joined #ruby
diegoviola has joined #ruby
<VeryBewitching> G'day folks.
norc has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
dhollinger has joined #ruby
ta_ has joined #ruby
Vlat- has joined #ruby
D9 has joined #ruby
whippythellama has quit [Ping timeout: 248 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
tubuliferous has joined #ruby
freakcoder has quit [Quit: Leaving.]
fostertheweb has joined #ruby
jyaworski has joined #ruby
jds has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
nullwarp_ is now known as nullwarp
crystal77 has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Uo9er_ has quit [Ping timeout: 260 seconds]
n008f4g_ has quit [Ping timeout: 276 seconds]
rkazak has joined #ruby
Karix has joined #ruby
x77686d has joined #ruby
gbgdev has joined #ruby
subosito has quit [Quit: Lingo: www.lingoirc.com]
aganov has quit [Remote host closed the connection]
A124 has quit [Ping timeout: 248 seconds]
reprazen_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paultreny has quit [Quit: ¯\_(ツ)_/¯]
techietrash has quit [Quit: Bye! <(^_^<)]
techietrash has joined #ruby
whippythellama has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
paultreny has joined #ruby
paultreny is now known as Guest42570
y0da has quit [Ping timeout: 252 seconds]
subosito has joined #ruby
subosito has quit [Remote host closed the connection]
but3k4 has joined #ruby
subosito has joined #ruby
marr has quit [Ping timeout: 276 seconds]
haylon has joined #ruby
y0da has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
techietrash has quit [Max SendQ exceeded]
Guest42570 has quit [Changing host]
Guest42570 has joined #ruby
techietrash has joined #ruby
krz has joined #ruby
davedev24 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<nano-> drbrain: Can I generate a .gem from rdoc @ github? I'm a non native speaker when it comes to ruby and its echo system.
<nano-> s/echo/eco/
pawnbox has joined #ruby
mistermocha has joined #ruby
bezhermoso has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
<Papierkorb> I'm looking for web frameworks which I can use to *embed* a web interface into an existing ruby (cli) application. Currently looking at Sinatra, which after some fiddling plays nice, but are there other notable frameworks?
Guest34101 has joined #ruby
blandflakes has joined #ruby
chipotle has quit [Quit: cheerio]
<Papierkorb> @Sinatra, I disliked how hard it was to mount a controller (Which itself is a Sinatra::Base sub-class) at a given path from another Base sub-class.
<VeryBewitching> Papierkorb: Afaik, Sinatra probably is best.
rodfersou is now known as rodfersou|lunch
SenpaiSilver has quit [Quit: Leaving]
<VeryBewitching> You could just use Rack though, that's an option.
<adaedra> I was going to say that
shpoont has quit [Read error: Connection reset by peer]
<adaedra> But it requires more work
shpoont has joined #ruby
andrewvos has quit [Ping timeout: 268 seconds]
sneakerhax has quit [Ping timeout: 276 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
TvL2386 has joined #ruby
krz has quit [Ping timeout: 250 seconds]
slackbotgz has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
PedramT has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
cdg has joined #ruby
rmulligan has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
Guest34101 has quit [Ping timeout: 246 seconds]
<havenwood> Papierkorb: Give Roda a look!
diegoviola has quit [Quit: WeeChat 1.4]
<havenwood> Papierkorb: https://github.com/jeremyevans/roda
<Papierkorb> havenwood: will do, ty
<subosito> @Papierkorb while I recommend sinatra as well, but you can also take a look at Cuba http://cuba.is/
<ddv> comunist framework
unshadow has quit [Quit: leaving]
callen92 has joined #ruby
<havenwood> Roda started as a fork of Cuba and adds some Sinatra style niceties as well as a plugin system for composing your framework: https://github.com/jeremyevans/roda/tree/master/lib/roda/plugins
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest42570 has quit [Quit: ¯\_(ツ)_/¯]
techietrash has quit [Quit: Bye! <(^_^<)]
davedev24 has quit [Ping timeout: 240 seconds]
<havenwood> ^ plugins by category
<havenwood> Papierkorb: Then just pair it with Sequel (maintained by the Roda creator) and you're good to go! ;)
nanoz has joined #ruby
<Papierkorb> I love Sequel, so that's a plus!
<shevy> Roda ... Cuba ... Yoda!
bronson has joined #ruby
<havenwood> Jeremy Evans if often around in the #roda channel. Best. Maintainer. Ever.
shredding has joined #ruby
<subosito> ddv haha, sounds like a poor naming?
<ddv> he's a communist :P
<ddv> j/k
krz has joined #ruby
whippythellama has quit [Ping timeout: 248 seconds]
kies has quit [Quit: baaaaiiiiiiiiiii~]
<subosito> ahh :)
<havenwood> Papierkorb: But other than the plugins, all of Roda lives in this one file. I think it and the plugins are worth a read and it's really been lovely to use.
shpoont has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
whippythellama has joined #ruby
pawnbox has joined #ruby
steffkes has joined #ruby
techietrash has joined #ruby
paultreny has joined #ruby
nando293921 has joined #ruby
paultreny is now known as Guest11199
charlemagne has quit [Ping timeout: 244 seconds]
wreet has joined #ruby
wreet has joined #ruby
andrewvos has joined #ruby
D9 has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
gbgdev has quit [Remote host closed the connection]
steffkes has quit [Ping timeout: 248 seconds]
D9 has joined #ruby
shpoont has joined #ruby
<havenwood>
spintronic has joined #ruby
Sot has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
<Sot> How/where can I store an environment variable so that it's automatically loaded into a ruby script?
bkxd has quit [Ping timeout: 252 seconds]
<Sot> I was thinking into bash_profile (on a mac osx)
<Sot> export API_KEY = "12345"
<Sot> then test.rb, puts ENV["API_KEY"] should load that..
zotherstupidguy has quit [Ping timeout: 260 seconds]
eurialo has joined #ruby
bronson has quit [Remote host closed the connection]
bluOxigen has joined #ruby
davedev24 has joined #ruby
wreet has quit [Quit: Leaving]
Guest11199 has quit [Changing host]
Guest11199 has joined #ruby
jrafanie has joined #ruby
kalopsian has quit [Quit: Lost terminal]
<havenwood> Sot: Sounds good. Does that work for what you're doing?
<Papierkorb> Sot: you can also modify your ~/.bashrc
<Sot> havenwood: I got it like...
<Sot> require 'dotenv'
<Sot> Dotenv.load
<Sot> I have a .env in the same directory with the env vars
baweaver has joined #ruby
scepticulous has quit [Ping timeout: 276 seconds]
<Sot> its loads them all into ENV
Guest11199 has quit [Quit: ¯\_(ツ)_/¯]
<manveru> Sot: direnv
JakFrist has joined #ruby
tvw has joined #ruby
JakFrist has quit [Client Quit]
gbgdev has joined #ruby
mistermocha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
synthroid has quit [Remote host closed the connection]
techietrash is now known as Guest11199
Guest11199 is now known as techietrash
aegis3121 has quit [Ping timeout: 244 seconds]
stunder001 has joined #ruby
tamole has joined #ruby
djbkd has joined #ruby
sepp2k has joined #ruby
Sot has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nfk|laptop has quit [Quit: yawn]
janzo has quit [Ping timeout: 252 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
janzo has joined #ruby
urbanmonk has joined #ruby
seitensei has joined #ruby
LastGabs has joined #ruby
benlieb has joined #ruby
spintronic_ has joined #ruby
amclain has joined #ruby
freakcoder has joined #ruby
araujo has quit [Ping timeout: 248 seconds]
andrewvos has quit [Ping timeout: 252 seconds]
pietr0 has joined #ruby
spintronic has quit [Ping timeout: 244 seconds]
spintronic_ has quit [Remote host closed the connection]
victor_ has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
marr has joined #ruby
spintronic_ has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subosito has quit [Quit: :qa]
subosito has joined #ruby
Sucks has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
victor_ has quit [Ping timeout: 248 seconds]
[Butch] has joined #ruby
tamole has quit [Quit: ...]
djbkd_ has joined #ruby
PedramT has quit [Remote host closed the connection]
rmulligan has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
maner has joined #ruby
jterra has quit [Quit: leaving]
poerror has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
<havenwood> workmad3: Looking at this after having had coffee it seems it's already using relative path to the working directory via #absolute_path.
tubuliferous has joined #ruby
benlieb has quit [Quit: benlieb]
subosito has quit [Quit: :qa]
<havenwood> "Relative paths are referenced from the current working directory of the process unless dir_string is given, in which case it will be used as the starting point."
<rapha> hmm
<havenwood> workmad3: Testing seems to confirm. Am I missing something?
djbkd_ has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 260 seconds]
<rapha> how do you make https://gist.github.com/sixtyfive/1fa72e586673b4532d3d work so that the file doesn't contain the character codes, but the characters themselves?
rmulligan has quit [Ping timeout: 276 seconds]
<apeiros> rapha: you use double quotes instead of single quotes.
mdih has quit [Ping timeout: 244 seconds]
dopamean_ has joined #ruby
tamole has joined #ruby
<rapha> Yay!!!
<rapha> Thank you apeiros! :)
<apeiros> rapha: ruby 101, single quotes only escape \\ and \'
<apeiros> and don't do interpolation
KensoDev has joined #ruby
adgtl has quit [Remote host closed the connection]
<rik> I have a default install of Sequel ... and it's complaining that it can't find the sqlite3 adapter.
<rik> i have no idea why
maletor has joined #ruby
frustrum has quit [Ping timeout: 252 seconds]
zast has joined #ruby
mistermocha has quit [Remote host closed the connection]
hightower2 has joined #ruby
rkazak has joined #ruby
mistermocha has joined #ruby
fostertheweb has joined #ruby
tomchapin has joined #ruby
<rapha> apeiros: That's why I thought I'd have to use single quotes :8
<rapha> :(
<apeiros> that… makes no sense?
<rapha> yes i understand that now
<rapha> the \uXXX stuff confused me
IrishGringo has quit [Ping timeout: 248 seconds]
mleung has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<apeiros> rapha: DIACRITICS.each {|d| f.write("#{d}\t\n") # do you want that trailing tab?
pawnbox has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
mfaeh has quit []
<apeiros> oh… actually… you write every single character with a trailing tab on its own line
Guest5 has joined #ruby
<apeiros> I somehow doubt that's what you intend to do. take a look at both IO#puts and Array#join
Dreamer3 has quit [Max SendQ exceeded]
<zacts> hi rubyists
Dreamer3 has joined #ruby
shpoont has quit [Read error: Connection reset by peer]
<apeiros> hi zacts
pawnbox has quit [Remote host closed the connection]
<zacts> yo
RegulationD has joined #ruby
pawnbox has joined #ruby
shpoont has joined #ruby
mattwashere has joined #ruby
crystal77 has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> havenwood: `require_relative` is relative to the file it's in, not the working directory
<manveru> rik: install the sqlite3 gem
avenj has joined #ruby
bigkevmcd has joined #ruby
<workmad3> havenwood: i.e. it's not the same as `require "./foobar"` which would be relative to CWD
avenj has quit [Changing host]
avenj has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
* manveru should start the use-require-relative-everywhere initiative
<apeiros> ew
<workmad3> manveru: please no :(
wilbert has joined #ruby
WebDawg has joined #ruby
steffkes has joined #ruby
shinnya has joined #ruby
LastGabs has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<manveru> well, not everywhere, but at least within libraries
<workmad3> manveru: still, please no
<apeiros> would be an improvement over that fugly require + File.expand_path + __FILE__ shit I see sometimes
<apeiros> but still nope. nope. nope. nope.
rodfersou|lunch is now known as rodfersou
<manveru> what's the reason to search 300 locations just to stumble over the file in the same directory...
<zacts> so with ruby is it better to use as many gems as possible to not duplicate work, or is it better to stay minimalist and only use what you need?
agit0 has joined #ruby
Guest5 has quit [Quit: Textual IRC Client: www.textualapp.com]
d0nn1e has quit [Ping timeout: 248 seconds]
kriskropd has joined #ruby
<apeiros> manveru: that ruby has to search at all is an optimization problem. where to look for files is a connaisance problem.
roshanavand has joined #ruby
<apeiros> and not the business of the file to know.
SCHAAP137 has quit [Remote host closed the connection]
<shevy> zacts the fewer dependencies on gems the better, but some gems are more important than others, like either those that are very very basic or those that do a lot of useful things
<workmad3> manveru: `require` fixes the location of a single file (the file you're requiring). `require_relative` fixes the location of two files (the current file and the file you're requiring)
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seitensei has quit [Quit: "For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
d0nn1e has joined #ruby
<manveru> require depends on the contents of your environment and the file you're requiring, require_relative only on the location of two files :P
<apeiros> require makes it a business of your app to know where stuff is.
<apeiros> require_relative makes it a business of the requiring file to know where stuff is.
<drbrain> nano-: rake package
urbanmonk has quit [Quit: urbanmonk]
<manveru> exactly
<zacts> shevy: ah ok, cool thanks
<manveru> apeiros: i don't mean to require whole libraries with require_relative
<manveru> you just use require for the initial one
<apeiros> how does that matter?
<manveru> that way libraries are always self-contained
synthroid has joined #ruby
rkazak has quit [Ping timeout: 276 seconds]
ferr has quit [Quit: WeeChat 1.4]
steffkes has quit [Ping timeout: 240 seconds]
agit0 has quit [Client Quit]
<manveru> going to the other extreme ends with rails... where nobody knows where a file was actually required
<apeiros> $"
<manveru> if i try to strace a rails app, i have to wait 5 minutes until it finally is done looking for files :P
chouhoulis has quit [Remote host closed the connection]
<rapha> apeiros: sorry, was already back at the code. yes, that trailing tab plus newline is exactly what i wanted. The file will become a replacement table, but I'll have to write the replacement characters manually behind the tabs. Just wanted to spare myself the work of having to press "tab" on each line.
<manveru> and startup would be significantly faster if requiring was O(1) instead of O($:.size)
<apeiros> rapha: ah, ok. carry on then ;-)
Guest5 has joined #ruby
<rapha> :)
n008f4g_ has quit [Ping timeout: 246 seconds]
<apeiros> manveru: as said, that's an optimization problem. and yeah, that part is IMO regrettable about ruby.
guest8051 has quit [Ping timeout: 244 seconds]
<workmad3> manveru: require_relative is still O(n) btw... as it needs to check $LOADED_FEATURES still to ensure that the file hasn't been previously required
<manveru> workmad3: but without I/O
<apeiros> workmad3: that should be O(1) with a Set
<apeiros> (and back to optimization problems)
<manveru> and yeah, i think $" is already optimized quite a bit since 1.9 or so
bronson has joined #ruby
<manveru> used to be much worse
<apeiros> for every problem of slow code there's a fast solution which is wrong.
<manveru> :)
<manveru> you just have to choose which part of the solution you want right
<manveru> anyway, it's moot for me to talk about it, since nobody will ever listen anyway
<apeiros> yupp
<apeiros> and I'm moving to zeroload for my stuff anyway.
<apeiros> the private stuff, that is.
<manveru> what's a zeroload?
<apeiros> you call it in the root module, it autoloads the rest of your library.
mrgrieve1 has quit [Ping timeout: 240 seconds]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> and yes, that means it's somewhat similar to require_relative :)
* apeiros doesn't see any irony there.
<manveru> lol
bigkevmcd has joined #ruby
<manveru> well, that sounds like a good compromise
Macaveli has joined #ruby
<apeiros> the hard part is that it breaks with all conventions
<apeiros> you do lib/Foo/BarBaz.rb for Foo::BarBaz
shpoont has quit [Read error: Connection reset by peer]
<apeiros> but IME it's totally worth it.
roshanavand has quit [Quit: This computer has gone to sleep]
<manveru> so it does the module_missing shit?
<apeiros> (so far)
<apeiros> holy no
<apeiros> it uses Kernel#autoload
<apeiros> which has the advantage that all code is fully explorable, unlike rails
<manveru> wasn't that supposed to be deprecated like a decade ago?
<apeiros> i.e. all constants will be there even if the file wasn't loaded.
<apeiros> yeah, that situation isn't fully cleared. but it's no longer thread-unsave.
<manveru> that's something :)
<apeiros> which was the reason to deprecate it. so I guess that's no longer the case. it just has never been said explicitly.
<workmad3> apeiros: nice, how did they solve that issue with it?
<manveru> mutex...
roshanavand has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<apeiros> workmad3: no idea. iirc when I tried to do that the main problem was toplevel code like "loop do … end"
<apeiros> without that, it'd be simple
<apeiros> I guess they made the loading two-step. thread-safely register that the file is being loaded.
<apeiros> rest doesn't matter much.
Xeago has joined #ruby
rnda has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
Marsupermammal has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
<manveru> well, zeroload sounds like fun, but how about they add a snake_case to CamelCase convention :)
griffindy has joined #ruby
<manveru> then it might actually catch on
Xeago has quit [Remote host closed the connection]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
guest805 has joined #ruby
<manveru> though require_relative isn't used by autoload anyway, so it's a two-folded issue still
agit0 has joined #ruby
<apeiros> I'll let perfect be the enemy of good here ;-)
<apeiros> well, zerload frees you from using require other than requiring your root file.
<apeiros> *zeroload
ChiefAlexander has quit [Remote host closed the connection]
wreet has joined #ruby
Xeago has joined #ruby
bronson has joined #ruby
<workmad3> apeiros: just found the patch thread for it... it's interesting, basically they have to delay the replacement of an autoloaded constant with a module until after the autoload finishes (the old situation was that when you had `module Foobar; blah blah blah; end` and Foobar was autoloaded, the constant was replaced immediately upon seeing that first `module Foobar`)
<workmad3> s/module/value
Xeago has quit [Remote host closed the connection]
Guest5 has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Remote host closed the connection]
wreet has quit [Client Quit]
tubuliferous has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<workmad3> so nowhere near as simple as just a mutex... nice that it got resolved, no idea how I missed it for 3 years :/
baweaver has joined #ruby
Couch has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
shredding has quit [Ping timeout: 248 seconds]
joonty has quit [Ping timeout: 240 seconds]
SenpaiSilver has joined #ruby
choke has joined #ruby
drptbl has quit [Ping timeout: 250 seconds]
<drbrain> it wasn't much announced
agit0 has quit [Quit: zzzZZZ….]
baweaver has quit [Ping timeout: 250 seconds]
terlar has quit [Quit: WeeChat 1.4]
rmulligan has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
jaruga_ has joined #ruby
shpoont has joined #ruby
jmarinelli has joined #ruby
Snowy_ has quit [Remote host closed the connection]
shpoont has quit [Client Quit]
<rik> manveru: thanks. i found that, a little while after i typed. i appreciate the confirmation that i didn't find the wrong solution.
jaruga_ has quit [Client Quit]
spintronic_ has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 248 seconds]
jaruga has quit [Quit: jaruga]
elcontrastador has joined #ruby
JakFrist has joined #ruby
adgtl has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 248 seconds]
adgtl has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
Guest34101 has joined #ruby
Xeago has joined #ruby
steffkes has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fostertheweb has joined #ruby
SCHAAP137 has joined #ruby
Guest34101 has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shpoont has joined #ruby
rnda has quit [Ping timeout: 252 seconds]
kirillzh has joined #ruby
steffkes has quit [Ping timeout: 246 seconds]
nando293921 has quit [Quit: Lost terminal]
benlieb has joined #ruby
nando293921 has joined #ruby
Xeago has quit [Remote host closed the connection]
choke has joined #ruby
PedramT has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
tamole has quit [Quit: ...]
tomatoes has joined #ruby
bricker has quit [Ping timeout: 268 seconds]
PedramT has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
adgtl has joined #ruby
PedramT has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
gregf has quit [Quit: WeeChat 1.4]
techietrash has joined #ruby
poerror has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
PedramT has quit [Remote host closed the connection]
rnda has joined #ruby
Xeago has joined #ruby
poerror has joined #ruby
_djbkd has joined #ruby
moeabdol has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirillzh has joined #ruby
Xeago has quit [Remote host closed the connection]
Terens has quit [Ping timeout: 250 seconds]
ruby-lang567 has joined #ruby
ruby-lang567 has quit [Client Quit]
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has quit [Ping timeout: 244 seconds]
tvw has quit [Remote host closed the connection]
CasBaIT has joined #ruby
xdcdhl has joined #ruby
moeabdol has quit [Ping timeout: 248 seconds]
babblebre has joined #ruby
maner has quit [Ping timeout: 248 seconds]
lurch_ has quit [Quit: lurch_]
`tim` has joined #ruby
chouhoulis has joined #ruby
ascarter has joined #ruby
pragmatism has quit [Max SendQ exceeded]
pragmatism has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
shinnya has quit [Ping timeout: 260 seconds]
rmulligan has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
agit0 has joined #ruby
joonty has joined #ruby
atmosx has joined #ruby
yqt has joined #ruby
igam has quit [Ping timeout: 276 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
bronson has joined #ruby
elaptics is now known as elaptics`away
bricker has joined #ruby
GioVdK has quit [Ping timeout: 248 seconds]
fmcgeough has joined #ruby
davee_ has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
jaruga_ has quit [Client Quit]
jaruga has joined #ruby
jaruga is now known as jaruga_
roshanavand has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
bronson has quit [Ping timeout: 252 seconds]
ChiefAlexander has joined #ruby
openstruct has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
<havenwood> workmad3: ah, right, thanks! i'll fix.
tamole has joined #ruby
roshanavand has quit [Client Quit]
baweaver has joined #ruby
xdcdhl has quit [Read error: Connection reset by peer]
victor_ has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
Guest4184______ has quit [Ping timeout: 264 seconds]
TomyWork has quit [Ping timeout: 244 seconds]
iwaffles has joined #ruby
Guest4184______ has joined #ruby
jaruga_ has quit [Ping timeout: 260 seconds]
y2mq37 has joined #ruby
intrigueD has joined #ruby
victor_ has quit [Ping timeout: 250 seconds]
mwlang has quit [Quit: mwlang]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous has joined #ruby
openstruct has quit []
gizmore has joined #ruby
ascarter has joined #ruby
zast has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
iwaffles has quit [Quit: iwaffles]
iwmrby has joined #ruby
jgt has joined #ruby
shpoont has quit [Quit: Textual IRC Client: www.textualapp.com]
sauvin has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 252 seconds]
adgtl has quit []
arlek has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
pawnbox has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
bronson has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
liquid-silence has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
rdark has quit [Ping timeout: 276 seconds]
last_staff has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
arlek has quit [Ping timeout: 248 seconds]
bezhermoso has quit [Quit: Zzzzz...]
pawnbox has quit [Ping timeout: 264 seconds]
aibot has quit [Remote host closed the connection]
pawnbox has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
Guest34101 has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
platzhirsch has left #ruby [#ruby]
symm- has quit [Ping timeout: 268 seconds]
darkf has joined #ruby
uglybandersnatch has joined #ruby
RegulationD has joined #ruby
tubuliferous has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davee_ has quit [Quit: Leaving]
freerobby has joined #ruby
AlexRussia has joined #ruby
<strongcode> if I have a helper method `parse_html` that I want to use in both an instance method and a class method of the same class, what is the cleanest way to go about doing that?
techietrash has quit [Quit: Bye! <(^_^<)]
<strongcode> make parse_html() an instance method and have both call it with Foo.parse_html() ?
zarubin has quit [Quit: leaving]
ghormoon has quit [Ping timeout: 268 seconds]
zarubin has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
techietrash has joined #ruby
<apeiros> &ri Module#module_function strongcode
cdg has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 260 seconds]
halfamind has quit [Quit: Leaving.]
aeterne has joined #ruby
tamole has quit [Quit: ...]
hxegon is now known as hxegon_AFK
<strongcode> Excellent, thank you!
aibot has joined #ruby
ghormoon has joined #ruby
halfamind has joined #ruby
tamole has joined #ruby
* adaedra pats the bot
baweaver has quit [Remote host closed the connection]
poerror has quit [Ping timeout: 248 seconds]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
firstdayonthejob has joined #ruby
zarubin has quit [Quit: leaving]
zarubin has joined #ruby
treehug88 has joined #ruby
washt has joined #ruby
fullofcaffeine has joined #ruby
wilbert has quit [Ping timeout: 248 seconds]
shellie_ has quit [Remote host closed the connection]
_wreet has joined #ruby
aibot has quit [Remote host closed the connection]
baweaver has joined #ruby
aibot has joined #ruby
Abrin_AWAY2 has joined #ruby
ixti has joined #ruby
Abrin_AWAY3 has joined #ruby
tomatoes has quit [Ping timeout: 248 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Abrin_AWAY has quit [Ping timeout: 240 seconds]
sneakerhax has joined #ruby
_wreet has quit [Client Quit]
intrigueD has quit [Remote host closed the connection]
wreet has joined #ruby
yqt has joined #ruby
rnda has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
Abrin_AWAY2 has quit [Ping timeout: 264 seconds]
intrigueD has joined #ruby
Blaguvest has joined #ruby
freerobby has quit [Quit: Leaving.]
bricker has quit [Ping timeout: 248 seconds]
jmarinelli has quit [Read error: Connection reset by peer]
zarubin has quit [Quit: leaving]
zarubin has joined #ruby
_whitelogger has joined #ruby
kirillzh has joined #ruby
zarubin has quit [Client Quit]
hxegon_AFK is now known as hxegon
mostlybadfly has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby
atmosx has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
atmosx has joined #ruby
LastGabs has joined #ruby
LoneHerm_ has joined #ruby
ruby-lang061 has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby
<ruby-lang061> anyone have a clue on how I can get from these \ud83d\ude03 javascript escape sequencese to the
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
_stu_ has quit [Quit: _stu_]
<apeiros> >> "\ud83d\ude03" # @ ruby-lang061
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: Curl::Err::HostResolutionError:Couldn't resolve host name
<apeiros> wut?
<apeiros> >> 1
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: Curl::Err::HostResolutionError:Couldn't resolve host name
<apeiros> :-o
CasBaIT has quit [Quit: Leaving...]
<apeiros> well ruby-lang061, try it in pry/irb
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DexterLB has joined #ruby
<ruby-lang061> apeiros: what exactly should I try? just doing "\ud83d\ude03" in irb returns "\xED\xA0\xBD\xED\xB8\x83"
<apeiros> ruby-lang061: then you either don't use a utf-8 terminal or your settings are wrong
<apeiros> the string's encoding should be 'utf-8'
Dexter_LB has quit [Ping timeout: 276 seconds]
<apeiros> what's the result of "".encoding ?
<ruby-lang061> apeiros: that returns #<Encoding:UTF-8>
<apeiros> ok, then it's probably your terminal or something else.
freakcoder has quit [Quit: Leaving.]
<ruby-lang061> apeiros: the hex values in that string are utf-16 code points and somehow they should be converted to the smiley
_djbkd has quit [Remote host closed the connection]
davedev2_ has quit []
freakcoder has joined #ruby
`tim` has joined #ruby
_djbkd has joined #ruby
<adaedra> ruby-lang061: what does `echo ${TERM}, ${LANG}` outputs in your shell?
skweek has joined #ruby
aswen has joined #ruby
washt has quit [Ping timeout: 276 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
<apeiros> ruby-lang061: the hex is the binary representation. is your terminal utf-8 capable? also what's $stdout.external_encoding ?
<ruby-lang061> adaedra: => "xterm-256color, en_US.UTF-8\n"
<adaedra> close enough
graffix has quit [Ping timeout: 276 seconds]
<ruby-lang061> using ruby 2.2.2
<apeiros> that part looks sane
graffix has joined #ruby
baweaver has joined #ruby
<ruby-lang061> apeiros: terminal is utf-8 capable I can even insert that smile in irb
<apeiros> and $stdout.external_encoding ?
Dimik has joined #ruby
<adaedra> apeiros: tbf, I have the same output.
<al2o3-cr> me too
jottr has quit [Ping timeout: 250 seconds]
<ruby-lang061> apeiros: => nil
<apeiros> are you sure the smiley is those two codepoints?
guest805 has quit [Remote host closed the connection]
joonty has joined #ruby
jottr_ has joined #ruby
bronson has joined #ruby
_djbkd has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
* TheCubeLord Hi
<al2o3-cr> ruby-lang061: [128515, 32].pack('U*') # this will get you a smiley
lvn has joined #ruby
<apeiros> maybe you wanted "\u{1F631}"
<ruby-lang061> apeiros: yep, sure that smiley is the to code points. see https://r12a.github.io/apps/conversion/
poerror has joined #ruby
* TheCubeLord i tried /ame so it does this
<lvn> o thanks cubelord
* TheCubeLord cool
<riceandbeans> what do you call ||=
<apeiros> ruby-lang061: I'm not sure what I should see there
<TheCubeLord> lvn ohhh
<lvn> riceandbeans: or-assignment operator??
SenpaiSilver has quit [Quit: Leaving]
<lvn> i don't actually know
<ruby-lang061> apeiros: try putting \ud83d\ude03 in the javascript escapes textbox and press convert
skweek has quit [Remote host closed the connection]
<apeiros> ruby-lang061: I see. you want "\u{1F603}"
mdw has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
halfamind has quit [Quit: Leaving.]
baweaver has quit [Ping timeout: 252 seconds]
LoneHermit has joined #ruby
<apeiros> see U+ notation
<adaedra> can confirm, this one works.
<ruby-lang061> apeiros: indeed that one works, I just need to figure out how to get from \ud83d\ude03 to \u{1F603}
<apeiros> not quite sure how the javascript one works. maybe js can't represent codepoints beyond 2**16
joonty has quit [Ping timeout: 248 seconds]
LastGabs has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trinaldi has quit [Ping timeout: 240 seconds]
fmcgeough has quit [Quit: fmcgeough]
halfamind has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
atmosx has quit [Quit: This is aparting message!]
mattwashere has quit []
RegulationD has joined #ruby
graffix has joined #ruby
SenpaiSilver has joined #ruby
blackmesa has joined #ruby
bricker has joined #ruby
jackjackdripper has quit [Client Quit]
JakFrist has joined #ruby
jackjackdripper has joined #ruby
baweaver has joined #ruby
johnmilton has quit [Remote host closed the connection]
graffix222 has joined #ruby
jottr has joined #ruby
BTRE has joined #ruby
_djbkd has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 244 seconds]
ascarter has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
BTRE has quit [Client Quit]
bkxd has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
LoneHermit has quit [Remote host closed the connection]
JakFrist has quit [Client Quit]
marens_ is now known as marens
graffix222 is now known as graffix
aryaching has quit []
rattatmatt has joined #ruby
baweaver has joined #ruby
tvw has joined #ruby
norc has joined #ruby
TheCubeLord has quit [Quit: Leaving]
M-Technic has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 250 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has quit [Ping timeout: 244 seconds]
PedramT has joined #ruby
TheCubeLord has joined #ruby
<`derpy> adaedra: HEY! Be nice.
<adaedra> oops, wrong window.
t-ask has joined #ruby
intrigueD has quit [Remote host closed the connection]
kt2 has joined #ruby
arthurl has joined #ruby
rmulligan has quit [Ping timeout: 276 seconds]
tomatoes has joined #ruby
<t-ask> Hi, I'm about to install ruby2.2 on a VPS. following the pkg dependencies it also installes libgl. but do I really need it on a server?
<arthurl> sorry /usr/bin/bundle rather
ChiefAlexander has quit [Remote host closed the connection]
<adaedra> arthurl: what system are you on?
benlieb has quit [Quit: benlieb]
<adaedra> t-ask: does it really matter?
<arthurl> ubuntu 14.04
pawnbox has quit [Remote host closed the connection]
kt2 has quit [Remote host closed the connection]
<adaedra> apt-get update/upgrade or whatever the keyword is?
TomyLobo has joined #ruby
anjen has joined #ruby
<t-ask> adaedra: well it asks me ti install nvidia or mesa driver versions and I don't know which one the VPS needs. And if Ruby actually doiesn't need it at all why install it :9
siaw has left #ruby [#ruby]
<adaedra> It's a dependency, surely a linked library.
<adaedra> In doubt, mesa.
roshanavand has joined #ruby
ChiefAlexander has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
<arthurl> adaedra I'm on ubuntu 14.04
azmelanar has joined #ruby
<TomyLobo> mesa also isa gl driva
<adaedra> arthurl: you already said that. Did you see my answer?
jottr_ has joined #ruby
WebDawg has quit [Ping timeout: 276 seconds]
<TomyLobo> </jarjar>
shadoi has joined #ruby
<arthurl> adaedra you mean the apt-get update answer?
<adaedra> arthurl: yes
jottr has quit [Ping timeout: 240 seconds]
<adaedra> t-ask: I've got mesa installed on my server too
rmulligan has joined #ruby
<t-ask> adaedra: I wonder if gl is needed for websites. I guess, I'm just confused, why I need to install any opengl lib for a website
tamole has quit [Quit: bye]
slakevc has joined #ruby
slakevc has quit [Max SendQ exceeded]
<adaedra> t-ask: either a direct or indirect dependency
<adaedra> fedora's ruby does not seem to pull it tho
jottr_ has quit [Ping timeout: 244 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
<arthurl> adaedra thank you- i didn't even think that was a system package that was installed using apt-get for some reason :)
<arthurl> simple enough - unfortunately it's areadly 'up to date' even though it's not
<adaedra> /usr/bin is usually package manager's territory for Linux
<t-ask> adaedra: thaks, then it is an indirect dep. and I can ask the website/project owner if I need libgl for this website
<arthurl> right- that makes sense
n008f4g_ has joined #ruby
<adaedra> t-ask: if it's a /required/ dep, you will not get around
Sam____ has joined #ruby
<Sam____> Oi oi
ghormoon has quit [Ping timeout: 240 seconds]
<adaedra> t-ask: but it's ubuntu; does yours by any chance pulls recommended and/or suggested packages by default?
<t-ask> adaedra: yes, that is what I try to figure out. its an AUR pkg. Sometimes they add deps which aren't needed.
WebDawg has joined #ruby
Axy has quit [Read error: Connection reset by peer]
<adaedra> wat
TheCubeLord has quit [Quit: Leaving]
graffix has joined #ruby
<adaedra> oh wait, I missed you both
<t-ask> Arch linux USer package
TheCubeLord has joined #ruby
<adaedra> mixed*
freerobby has quit [Quit: Leaving.]
<adaedra> you're under Arch?
<t-ask> yes
<t-ask> want to install Diaspora
s00pcan_ has quit [Ping timeout: 244 seconds]
spider-mario has joined #ruby
<adaedra> Will be a bit easier to look then
cdg has joined #ruby
<adaedra> Which AUR package, exactly?
brendan- has quit [Remote host closed the connection]
ghormoon has joined #ruby
Snowy has joined #ruby
<Sam____> anyone had luck configuring action cable for rails 4?
anjen has quit [Quit: anjen]
<t-ask> adaedra: I used pacaur to install both ruby2.2 pkg
hahuang65 has joined #ruby
tubuliferous has quit [Ping timeout: 268 seconds]
brendan- has joined #ruby
<baweaver> !rails
<baweaver> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<t-ask> adaedra: it asks me this: https://pastee.org/zj4y
<baweaver> Sam____: ^
PedramT has quit [Remote host closed the connection]
<adaedra> t-ask: mesa would be my choice, no nvidia on a server.
graffix has quit [Ping timeout: 276 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sam____ has quit [Ping timeout: 252 seconds]
<adaedra> mh, weird tho, mesa-libgl is not required for ruby at all here.
machinewar has joined #ruby
tomchapin has joined #ruby
danielwzd has joined #ruby
<adaedra> “Submitter:jhass” heh.
<machinewar> anyone have suggestions for parsing file with this encoding: ASCII text, with very long lines, with CRLF line terminators
tubuliferous has joined #ruby
<machinewar> that was from running file unix utility on it
<machinewar> 'having issue where the header row has more commas then the rest of the rows
victor_ has joined #ruby
<t-ask> adaedra: yes, that is why I wonder. I a bit concerned that this pkg installs even more indirect deps I actually don't need for Diaspora
<adaedra> that's the thing with dependencies
KensoDev has joined #ruby
Sucks has quit [Ping timeout: 246 seconds]
<adaedra> ruby requires graphviz to be built, which requires pango, which requires cairo, which requires mesa
<t-ask> yes, I might ask the ruby pkg maintainer why
<adaedra> He's in the channel
slakevc has joined #ruby
<adaedra> But I guess graphviz is required for some part of the documentation
krz has quit [Ping timeout: 260 seconds]
<adaedra> Anyway, it's a make dependency; you could probably throw it away once done with building.
victor_ has quit [Ping timeout: 244 seconds]
pietr0 has quit [Remote host closed the connection]
danielwzd has left #ruby ["Leaving"]
<adaedra> Or, if you want to be even cleaner, build the pkg on another machine, and then install only the built package
kith has quit [Quit: kith]
pietr0 has joined #ruby
<t-ask> graphviz is an official package. You think that AUR pkg compiles it though
<t-ask> or maybe one of the indirect deps is
<adaedra> no, it requires it installed to be built
<adaedra> https://aur.archlinux.org/packages/ruby2.2/ -> graphviz (make)
Sucks has joined #ruby
ready has quit [Quit: Leaving]
swills has quit [Ping timeout: 268 seconds]
ready has joined #ruby
<adaedra> It means that, to build the ruby2.2 package, you need graphviz to be installed, but not to install the built package
freakcoder1 has joined #ruby
freakcoder has quit [Ping timeout: 260 seconds]
kith has joined #ruby
pietr0 has quit [Quit: pietr0]
<t-ask> ok then I build it on another machine and install the xz
dgncn has quit [Excess Flood]
<t-ask> but would graphviz run without libgl running on the server?
dgncn has joined #ruby
Azure has quit [Ping timeout: 252 seconds]
<adaedra> If you have a built package from another machine, you don't need graphviz on the server
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruby-lang061 has quit [Quit: Page closed]
minimalism has joined #ruby
<t-ask> ok, I do it that way. I just want to keep the server as clean as possible
<adaedra> understandable
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
ziyadb has joined #ruby
<adaedra> In that case, building your packages on a dev machine is a good idea; you won't even need base-devel on the server this way.
arthurl has quit [Ping timeout: 244 seconds]
pietr0 has joined #ruby
blackgoat has joined #ruby
JakFrist has joined #ruby
<t-ask> exactly. Better don't provide dev tools on a server .)
BTRE has joined #ruby
baweaver is now known as TheDoctor
TheDoctor is now known as baweaver
gbgdev has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
yasha_ has joined #ruby
kies has joined #ruby
<havenwood> workmad3: finally got a sec to attempt an update: https://gist.github.com/havenwood/3c5a5e1476c811460992/revisions
yasha_ has quit [Max SendQ exceeded]
slakevc has left #ruby ["Leaving"]
sp4rrow has joined #ruby
LastGabs has joined #ruby
dling has quit []
LoneHerm_ has joined #ruby
blt has joined #ruby
diegoviola has joined #ruby
callen92 has quit [Quit: Leaving]
azmelanar has quit [Read error: Connection reset by peer]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
Cohedrin has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
LoneHerm_ has quit [Remote host closed the connection]
iwmrby has quit [Quit: WeeChat 1.4]
<Ox0dea> havenwood: Why the reinclusion of Kernel into Object?
wilbert has joined #ruby
c355e3b has joined #ruby
techietrash has joined #ruby
choke has joined #ruby
infernix has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
codecop has quit [Remote host closed the connection]
sdwrage has joined #ruby
eurialo has quit [Remote host closed the connection]
Guest34101 has quit [Ping timeout: 246 seconds]
<riceandbeans> question
<riceandbeans> are the following two equivalent?
LoneHerm_ has joined #ruby
symm- has joined #ruby
_djbkd has joined #ruby
lurch_ has joined #ruby
LastGabs has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans> if File.readlines(path).grep(/string/).size > 0
<riceandbeans> if ! File.readlines(path).grep(/string/).empty?
<tobiasvl> riceandbeans: yes
sepp2k has quit [Quit: Leaving.]
<Radar> no. One uses size > 0 and one uses .empty? with a negative condition
<Radar> </pedant>
<Ox0dea> Valid pedantry, I think.
pawnbox has joined #ruby
steffkes has joined #ruby
<tobiasvl> valid how? are they not equivalent?
machinewar has quit []
lurch_ has quit [Client Quit]
<tobiasvl> !array.empty? == array.size > 0
<riceandbeans> rubocop says, rb:126:9: C: Style/ZeroLengthPredicate: Use !empty? instead of size > 0.
sdwrage has quit [Quit: This computer has gone to sleep]
<riceandbeans> I just wanted to make sure if I'm following it's recommendation that it is legitimately the same
Xeago has joined #ruby
_djbkd has quit [Ping timeout: 240 seconds]
WebDawg has quit [Ping timeout: 248 seconds]
<Radar> tobiasvl: Depends on if you mean == equivalence or === equivalence or even the fabled ==== equivalence.
<Radar> riceandbeans: Yeah, it's typically better to use !empty?
freakcoder1 has quit [Quit: Leaving.]
<riceandbeans> Radar: for clarity, could I also say it this way?
<riceandbeans> if File.readlines(path).grep(/string/).!empty?
<Radar> riceandbeans: No, that won't work
<Radar> riceandbeans: The ! needs to be at the start of the condition
<riceandbeans> ok, just makingsure
Don_John has joined #ruby
y0da has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 240 seconds]
M-Technic has joined #ruby
<tobiasvl> Radar: well, they both return true or false so they are both == and === equivalent actually...
<Ox0dea> Radar: Objection.
ghormoon has quit [Ping timeout: 264 seconds]
<Radar> tobiasvl: Are you trying to out-pedant a pedant-troll? Because it's working.
sdwrage has joined #ruby
<Ox0dea> >> [].empty?.!
<ruby[bot]> Ox0dea: # => false (https://eval.in/538332)
<Radar> Ox0dea: Of course you know some weird Ruby syntax to make it happen.
swills has joined #ruby
<Ox0dea> Well, it's just that #! is a method.
<tobiasvl> pedantry is fine, but when Ox0dea calls it "valid pedantry" I have to stop and scratch my head ;)
Xeago has quit [Remote host closed the connection]
_djbkd has joined #ruby
ur5us has joined #ruby
<havenwood> Ox0dea: Ha, what was I trying to do? I... don't recall! Thanks, fixing.
<Ox0dea> riceandbeans: If you don't have an `else` clause there, you might consider using `unless` instead.
<Ox0dea> havenwood: I remember having to re-include Enumerable for something weird one time; thought maybe you'd run into some similar oddity.
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> Ox0dea: I think my hazy brain last night recalled something similar and did it without actually checking.
freakcoder has joined #ruby
<havenwood> hmm, what else did I miss... heh: https://gist.github.com/havenwood/3c5a5e1476c811460992
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fullofcaffeine has quit [Remote host closed the connection]
<riceandbeans> unless?
IrishGringo has joined #ruby
<riceandbeans> unless someone like you cares a whole awful lot, my code won't get better, it will not
ghormoon has joined #ruby
rodfersou is now known as rodfersou|dinner
infernix has joined #ruby
<Ox0dea> riceandbeans: You can say `unless` instead of `if not`.
<Ox0dea> But don't do that if you have an `else` clause.
<riceandbeans> if not instead of if !
<riceandbeans> it's not actually an 'if' per se
<riceandbeans> I mean, it kinda is
<riceandbeans> it's in chef
<riceandbeans> it was in a not_if guard
<riceandbeans> to negate it though I moved it to only_if with the chang
kirillzh has joined #ruby
<Ox0dea> riceandbeans: Are you still trying to avoid using symbols, then? :P
ChiefAlexander has quit [Quit: Leaving...]
baweaver has joined #ruby
htmldrum_ has quit [Ping timeout: 248 seconds]
<riceandbeans> umm
<riceandbeans> I got yelled at for my hash sytax
lemur has joined #ruby
lvn has quit [Ping timeout: 268 seconds]
<riceandbeans> I used 1.9 style and was told to use 1.8 style
<Ox0dea> havenwood: I wonder if it should reload things it finds in $LOADED_FEATURES if they weren't TCO'd.
<adaedra> riceandbeans: that's bad.
kirillzh has quit [Client Quit]
<riceandbeans> I was told it would just confuse people
<havenwood> Ox0dea: hmmm
jyaworski has quit [Quit: jyaworski]
<Ox0dea> havenwood: It'd be convenient for benchmarking, and doubly so if loads could be scoped.
PedramT has joined #ruby
ldnunes has quit [Quit: Leaving]
BTRE has quit [Quit: Leaving]
<Ox0dea> I guess the latter's only really applicable if this were #load_with_tco.
Mon_Ouie has quit [Ping timeout: 244 seconds]
SCHAPiE_ has joined #ruby
graffix has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Ping timeout: 264 seconds]
uglybandersnatch has joined #ruby
ready has quit [Ping timeout: 246 seconds]
dnewkerk has joined #ruby
PedramT has quit [Ping timeout: 246 seconds]
toretore has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
norc has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
wilbert has quit [Ping timeout: 276 seconds]
intrigueD has joined #ruby
agit0 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofcaffeine has joined #ruby
sp4rrow has joined #ruby
BTRE has joined #ruby
rbennacer has quit [Remote host closed the connection]
nibbo has quit [Ping timeout: 240 seconds]
ensyde_ has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
ready has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
joonty has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
uglybandersnatch has quit [Ping timeout: 250 seconds]
e is now known as puptime
joonty has quit [Ping timeout: 250 seconds]
uglybandersnatch has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
IrishGringo has quit [Ping timeout: 250 seconds]
rodfersou|dinner has quit [Quit: leaving]
RegulationD has joined #ruby
mdw_ has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
aswen has quit [Ping timeout: 276 seconds]
jgpawletko has quit [Quit: jgpawletko]
ta_ has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
stunder001 has quit [Quit: WeeChat 1.4]
RegulationD has quit [Ping timeout: 268 seconds]
_stu_ has joined #ruby
baweaver has quit [Remote host closed the connection]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
hxegon is now known as hxegon_AFK
ta_ has quit [Ping timeout: 246 seconds]
ixti has quit [Ping timeout: 244 seconds]
synthroid has quit []
duckpuppy has quit [Ping timeout: 264 seconds]
IrishGringo has joined #ruby
gizless has joined #ruby
rmulligan has quit [Ping timeout: 250 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirillzh has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
gizmore has quit [Ping timeout: 240 seconds]
jyaworski has joined #ruby
ftj has joined #ruby
stannard has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
ftj has quit [Client Quit]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
pawnbox has joined #ruby
nibbo has joined #ruby
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haylon has quit [Quit: WeeChat 1.4]
gatman has joined #ruby
mdw has joined #ruby
mdw_ has quit [Ping timeout: 248 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IrishGringo has quit [Remote host closed the connection]
_djbkd has joined #ruby
SCHAPiE_ has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
tomchapin has joined #ruby
Xiti has joined #ruby
rmulligan has joined #ruby
SG045734 has quit [Ping timeout: 276 seconds]
BTRE has quit [Ping timeout: 250 seconds]
gizless has quit [Ping timeout: 244 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
mdw has quit [Quit: Sleeping Zzzzz]
hxegon_AFK has quit [Quit: BRB]
stannard has joined #ruby
roshanavand has joined #ruby
jpfuentes2 has joined #ruby
SirFunk has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
yasha_ has joined #ruby
yasha_ has quit [Max SendQ exceeded]
jaequery has joined #ruby
Xeago has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
victor_ has joined #ruby
_stu_ has quit [Quit: _stu_]
SirFunk has joined #ruby
huddy has joined #ruby
Vlat- has quit [Quit: Vlat-]
htmldrum has joined #ruby
axl_ has quit [Quit: axl_]
stannard has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
gbgdev has joined #ruby
yasha_ has joined #ruby
gbgdev has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 250 seconds]
victor_ has quit [Ping timeout: 268 seconds]
p0p0pr37 has joined #ruby
nando293921 has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has quit [Ping timeout: 240 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
ensyde_ has quit [Read error: Connection reset by peer]
ensyde_ has joined #ruby
Ropeney has joined #ruby
fullofcaffeine has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
_stu_ has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
Snowy has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
Snowy has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 244 seconds]
hxegon has joined #ruby
ascarter has joined #ruby
jorrin has joined #ruby
jottr_ has joined #ruby
fullofca_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 248 seconds]
cpup has joined #ruby
Vingador has joined #ruby
gatman has quit [Remote host closed the connection]
zenlot has joined #ruby
tubuliferous has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
zenlot6 has quit [Ping timeout: 244 seconds]
audiodude has quit [Ping timeout: 264 seconds]
golgaroth has quit [Ping timeout: 264 seconds]
gatman has joined #ruby
audiodude has joined #ruby
golgaroth has joined #ruby
rbennacer has joined #ruby
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 268 seconds]
_djbkd has joined #ruby
poerror has quit [Quit: leaving]
cpup has quit [Ping timeout: 260 seconds]
Ishido has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
grill_power has quit [Remote host closed the connection]
gatman has quit []
intrigueD has quit [Remote host closed the connection]
solocshaw has joined #ruby
cpup has joined #ruby
choke has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
Linell has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
lxsameer has quit [Quit: Leaving]
cpup has quit [Ping timeout: 244 seconds]
az has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
johnmilton has joined #ruby
mdw has joined #ruby
ruby-lang516 has joined #ruby
<ruby-lang516> hello buddy
<ruby-lang516> anyone here
<ruby-lang516> I need help
<RickHull> what seems to be the problem?
ruby-lang516 has left #ruby [#ruby]
<Canar> i need help too
<Canar> someone send a psychiatrist
<baweaver> RickHull: apparently IRC
cpup has joined #ruby
<RickHull> problem solved
rmulligan has quit [Ping timeout: 268 seconds]
<Canar> :)
Rahul_Roy has quit [Quit: Connection closed for inactivity]
kirillzh has quit [Ping timeout: 260 seconds]
jackjackdripper1 has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
BSaboia has quit [Ping timeout: 240 seconds]
freakcoder has quit [Quit: Leaving.]
joonty has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
tubuliferous has joined #ruby
baweaver has quit [Remote host closed the connection]
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
az has left #ruby [#ruby]
jaruga has joined #ruby
jaruga is now known as jaruga_
<Linell> I'm using rails as an API for a react front end, with Devise for authentication. How can I change the link for resetting the user passwords?
deimos has quit [Ping timeout: 264 seconds]
BSaboia has joined #ruby
<Linell> And then how should I format the request to actually set the passwords? It looks like a GET request, but I can't seem to figure ou the right params.
<RickHull> try #rubyonrails
saneax_AFK is now known as saneax
<Linell> Awesome, thanks
mdw has joined #ruby
deimos has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
cpup has quit [Ping timeout: 248 seconds]
sdwrage has quit [Quit: Leaving]
y2mq37 has quit [Ping timeout: 264 seconds]
PedramT has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
y2mq37 has joined #ruby
kirillzh has joined #ruby
jaruga_ has quit [Client Quit]
rattatmatt has quit []
Rickmasta has joined #ruby
Snowy has quit [Quit: ragequit]
jaruga has joined #ruby
jaruga is now known as jaruga_
PedramT has quit [Ping timeout: 276 seconds]
<Radar> ?rails Linell
<ruby[bot]> Linell: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
halfamind has quit [Quit: Leaving.]
jorrin has quit [Quit: Leaving]
machinewar has joined #ruby
<machinewar> has anyone had an issue when parsing CSV where column header row has more values then the following rows. They should be nil, but they're just left out of the arrays after the header
BTRE has joined #ruby
tvw has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
yasha_ has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
awasum has joined #ruby
LastGabs has joined #ruby
devbug has joined #ruby
machinewar has quit [Remote host closed the connection]
jaruga_ has quit [Quit: jaruga_]
<RickHull> there's probably a flag for that behavior
<RickHull> also, [:foo, :bar, :baz] and [:foo, :bar, :baz, nil] both return nil when asking for the 4th item
mdw has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
Gasher has quit [Ping timeout: 260 seconds]
kobain has quit [Max SendQ exceeded]
solocshaw has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
gregf has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnmilton has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby
<Radar> I would say that's invalid CSV... but I have a very strong opinion about what's valid / non-valid CSV
<Radar> invalid*
audiodude has quit [Ping timeout: 264 seconds]
<Radar> braining is hard
baweaver has joined #ruby
<wreet> my thoughts are not very brainly :(
audiodude has joined #ruby
<Canar> i can't brain i have the dumb
<Ox0dea> Radar: The problem was just that they weren't passing `headers: true`.
fullofca_ has quit [Remote host closed the connection]
<Radar> oh rly
RegulationD has joined #ruby
fullofcaffeine has joined #ruby
fckyoufreenode has joined #ruby
cpup has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 250 seconds]
<Ox0dea> Seems the most logical conclusion, anyway. https://eval.in/538360
fullofca_ has joined #ruby
fullofc__ has joined #ruby
<Ox0dea> I wouldn't expect CSV to stick those `nil`s in without being told that the data contains a header row.
DLSteve has joined #ruby
duckpuppy has joined #ruby
speakingcode has joined #ruby
fullofca_ has quit [Remote host closed the connection]
fullofca_ has joined #ruby
fullofc__ has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 252 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofc__ has joined #ruby
uglybandersnatch has joined #ruby
biberu has quit []
choke has joined #ruby
_stu_ has quit [Quit: _stu_]
fullofcaffeine has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
firstdayonthejob has quit [Ping timeout: 248 seconds]
arlek has joined #ruby
kam270 has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
fullof___ has joined #ruby
fullofca_ has quit [Read error: Connection reset by peer]
fullofc__ has quit [Ping timeout: 244 seconds]
LastGabs has quit [Quit: Textual IRC Client: www.textualapp.com]
fedexo has joined #ruby
spider-mario has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 244 seconds]
brocktimus has quit [Remote host closed the connection]
`tim` has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]