havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
dn5 has quit [Ping timeout: 240 seconds]
k3asd` has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: Leaving...]
jsmith_ has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
dn5 has joined #ruby
crankharder has joined #ruby
Encapsulation has quit [Ping timeout: 265 seconds]
jsmith_ has quit [Client Quit]
roxtrongo has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
<Success> jhass: rubygems is latest
cjbischof_ has joined #ruby
<Success> havenwood: mingw-w64 windows :o
dn5 has quit [Ping timeout: 240 seconds]
dn5 has joined #ruby
x-light has joined #ruby
roxtrongo has quit [Ping timeout: 272 seconds]
slackbotgz has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
<leitz> One option would be to be able to change the career, but I'm off on it. https://github.com/LeamHall/CT_Character_Generator/blob/master/ideas/test_module.rb
<leitz> Line 21 fails because I don't know how to reference the current career.
neonalpine has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
Rickmasta has joined #ruby
northfurr has quit [Quit: northfurr]
platzhirsch has quit [Read error: No route to host]
<leitz> Hmm...just need a way to figure out how to load the attributes, I guess.
platzhirsch has joined #ruby
northfurr has joined #ruby
northfurr has quit [Client Quit]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
SteveC has joined #ruby
northfurr has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
<Success> leitz: i gotcha
northfurr has quit [Client Quit]
<Success> leitz: change career.show_rank to career:show_rank(), also try `puts career.instance_methods`
zotherstupidguy has joined #ruby
<jhass> Success: given you're on windows... are you sure?
trosborn has quit [Quit: trosborn]
northfurr has joined #ruby
<Success> jhass: is 2.5.0 not the latest?
_blizzy_ has quit [Ping timeout: 240 seconds]
<jhass> mmh, it is
<Success> leitz: also Fred.set_career(Marine) not Fred.set_career('Marine')
tkuchiki has joined #ruby
<Success> also mind you, i'm running the command ```ruby configure --disable-llvm -libc C:\ProgramData\msys64\usr\bin```
<Success> instead of ./configure
rgrmatt has quit [Remote host closed the connection]
Sam0163141155 has quit [Quit: Leaving]
rgrmatt has joined #ruby
<leitz> Success, gotcha. I removed the quotes around Marine to make it not a string. 'puts career.instance_methods' gives 'show_rank, but calling it with and without () fails.
platzhirsch has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
<Success> leitz: https://gist.github.com/Announcement/0bc84cd657da3875e176 this works for me right now
AustinMatherne has quit [Remote host closed the connection]
<Success> leitz: also commenting out that one line works, but not without the "puts"
AustinMatherne has joined #ruby
_stu_ has joined #ruby
bruno- has joined #ruby
rgtk has quit [Remote host closed the connection]
trosborn has joined #ruby
trosborn has quit [Client Quit]
<leitz> Success, it's not working for me. Mine chokes on the colon in career:show_rank.
vigintas has quit [Ping timeout: 265 seconds]
<leitz> If i have it just show rank, it gives the Pirate response as that was the last module loaded.
<Success> leitz: what ruby version?
<leitz> 1.8.7
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Success> Oh, I'm on 2.2.3 or something i think, sorry that'll do it ;_;
<leitz> No worries! There are lots of reasons to upgrade, I just can't.
IrishGringo has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
diegoaguilar has quit [Quit: Leaving]
dn5 has quit [Ping timeout: 252 seconds]
<Success> leitz: Hey, In your module definitions try changing show rank to etc. Marine.show_rank and Pirate.show_rank
<Success> afterwards you should be able to do career.show_rank
vigintas has joined #ruby
<darix> that code doesnt make sense
_blizzy_ has joined #ruby
dn5 has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
ibloodlust has joined #ruby
edward___ has joined #ruby
<ibloodlust> hello im backk
<edward___> is it possible to tweak the ratio at which ruby GC will malloc tombs away?
matcz has quit [Ping timeout: 240 seconds]
slackbotgz has quit [Remote host closed the connection]
<edward___> I'm looking in ruby/gc.c and it's not looking that accessible.
<Success> edward___: use the source, luke.
<edward___> ;)
matcz has joined #ruby
atomical has joined #ruby
_stu_ has quit [Quit: _stu_]
northfurr has quit [Quit: northfurr]
TheNet has joined #ruby
<leitz> Success...gotta say it...Success!
neonalpine has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<leitz> Putting the Module name in fixed it.
cashnguns has joined #ruby
neonalpine has joined #ruby
neonalpine has quit [Remote host closed the connection]
northfurr has joined #ruby
<Success> leitz:sent you a pull request :)
<leitz> And running it again with Pirate works too. Yay!
j4cknewt has joined #ruby
j4cknewt has left #ruby [#ruby]
j4cknewt has joined #ruby
northfurr has quit [Quit: northfurr]
Xeago has joined #ruby
chipotle has quit [Quit: cheerio]
northfurr has joined #ruby
wilsonc91 has joined #ruby
<Success> havenwood: that appears to be working so far :)
northfurr has quit [Client Quit]
AnoHito has joined #ruby
northfurr has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
allcentu1 has quit [Ping timeout: 246 seconds]
AnoHito_ has quit [Ping timeout: 276 seconds]
daivyk has quit [Quit: ZZZzzz…]
<leitz> Okay, time to wander off and ponder the refactor.
<leitz> I need to work on my tests and figure out cucumber as well.
tref has joined #ruby
moeabdol has joined #ruby
aevitas has joined #ruby
dviola has joined #ruby
<ibloodlust> 0x0dea im going to implement your idea now, thank you btw
Xeago has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
aevitas has quit [Ping timeout: 250 seconds]
roxtrongo has joined #ruby
jdawgaz has joined #ruby
IrishGringo has joined #ruby
waka has joined #ruby
vigintas has quit [Ping timeout: 276 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mloy has joined #ruby
<ibloodlust> aw tick is a method
roxtrongo has quit [Ping timeout: 260 seconds]
j4cknewt has quit [Remote host closed the connection]
djbkd has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
zeroDivisible has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
zeroDivisible has quit [Client Quit]
devoldmx has joined #ruby
_seanc_ has joined #ruby
Musashi007 has joined #ruby
tref has quit [Quit: tref]
IrishGringo has quit [Ping timeout: 246 seconds]
neonalpine has joined #ruby
neonalpine has quit [Read error: Connection reset by peer]
neonalpine has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
dn5 has quit [Quit: Lost terminal]
tref has joined #ruby
nertzy has joined #ruby
Fire-Dragon-DoL has quit []
IrishGringo has joined #ruby
allcentu1 has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
Anthony_ has joined #ruby
<shevy> lol
Mon_Ouie has joined #ruby
Anthony_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Anthony_ has joined #ruby
hahuang65 has joined #ruby
abbe has quit [Read error: Connection reset by peer]
abbe has joined #ruby
thesheff17 has quit [Ping timeout: 246 seconds]
jmcc has quit [Ping timeout: 246 seconds]
spastorino has quit [Ping timeout: 246 seconds]
troter____ has quit [Ping timeout: 246 seconds]
ELCALOR has quit [Ping timeout: 246 seconds]
Billias has quit [Ping timeout: 246 seconds]
shelling__ has quit [Ping timeout: 246 seconds]
schaary has quit [Ping timeout: 246 seconds]
bf4 has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 246 seconds]
jmhmccr has quit [Ping timeout: 246 seconds]
lacrosse has quit [Ping timeout: 246 seconds]
jeregrine has quit [Ping timeout: 246 seconds]
hellschreiber_ has quit [Ping timeout: 246 seconds]
marsjaninzmarsa has quit [Remote host closed the connection]
Guest85414______ has quit [Read error: Connection reset by peer]
mrsolo has quit [Read error: Connection reset by peer]
ELLIOTTCABLE has quit [Write error: Connection reset by peer]
jlyndon has quit [Write error: Connection reset by peer]
apipkin has quit [Write error: Connection reset by peer]
jabreity has quit [Write error: Connection reset by peer]
ggherdov has quit [Write error: Connection reset by peer]
colstrom has quit [Read error: Connection reset by peer]
Iacobus has quit [Read error: Connection reset by peer]
KnownSyntax has quit [Read error: Connection reset by peer]
rflot has quit [Read error: Connection reset by peer]
zemmihates has quit [Read error: Connection reset by peer]
djbender has quit [Read error: Connection reset by peer]
rfv has quit [Read error: Connection reset by peer]
vcoinminer has quit [Read error: Connection reset by peer]
adambeynon has quit [Read error: Connection reset by peer]
manveru has quit [Write error: Connection reset by peer]
alxndr has quit [Read error: Connection reset by peer]
charles81 has quit [Read error: Connection reset by peer]
n1ftyn8_ has quit [Read error: Connection reset by peer]
bjmllr has quit [Read error: Connection reset by peer]
joaomdmoura has quit [Write error: Connection reset by peer]
bove has quit [Write error: Connection reset by peer]
_blizzy_ has quit [Ping timeout: 246 seconds]
machty has quit [Ping timeout: 246 seconds]
prasselpikachu has quit [Ping timeout: 246 seconds]
tpendragon has quit [Ping timeout: 246 seconds]
avdi has quit [Write error: Connection reset by peer]
frankS2 has quit [Write error: Connection reset by peer]
boxrick1 has quit [Write error: Connection reset by peer]
jevs has quit [Write error: Connection reset by peer]
prosodyCagain has quit [Write error: Connection reset by peer]
Liam` has quit [Quit: http://bouncer.ml]
asi_ has quit [Quit: No Ping reply in 180 seconds.]
marsjaninzmarsa has joined #ruby
rideh- has quit [Ping timeout: 246 seconds]
iooner has quit [Ping timeout: 246 seconds]
catbusters has quit [Ping timeout: 246 seconds]
DarkBushido has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 246 seconds]
Seich has quit [Ping timeout: 246 seconds]
skarn has quit [Ping timeout: 246 seconds]
DanKnox[away] has quit [Ping timeout: 246 seconds]
drbrain has quit [Ping timeout: 246 seconds]
jimeh_ has quit [Ping timeout: 246 seconds]
hostess has quit [Remote host closed the connection]
nullwarp has quit [Ping timeout: 246 seconds]
twe4ked has quit [Ping timeout: 246 seconds]
korolyov has quit [Ping timeout: 246 seconds]
<ibloodlust> alright it works sort of
bjmllr has joined #ruby
htmldrum has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
constantinexvi has quit [Ping timeout: 246 seconds]
aps has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
<ibloodlust> but the animation is played on the interval
bruno- has joined #ruby
<ibloodlust> instead of frame
crdpink2 has quit [Ping timeout: 246 seconds]
melter has quit [Ping timeout: 246 seconds]
ndrst has quit [Ping timeout: 246 seconds]
TDJACR has quit [Ping timeout: 246 seconds]
tris has quit [Ping timeout: 246 seconds]
blackjid has quit [Ping timeout: 246 seconds]
nchambers has quit [Ping timeout: 246 seconds]
Laaw has quit [Ping timeout: 246 seconds]
Ikri has joined #ruby
Liam` has joined #ruby
cashnguns has quit [Ping timeout: 246 seconds]
segmond has quit [Ping timeout: 246 seconds]
HaythamKenway has quit [Ping timeout: 246 seconds]
null2 has quit [Ping timeout: 246 seconds]
Diabolik has quit [Ping timeout: 246 seconds]
danneu has quit [Ping timeout: 246 seconds]
musicmatze has quit [Ping timeout: 246 seconds]
jhass has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
bascht1 has quit [Ping timeout: 246 seconds]
tobiasvl has quit [Ping timeout: 246 seconds]
jokke has quit [Ping timeout: 246 seconds]
sparr has quit [Ping timeout: 246 seconds]
epochwolf has quit [Ping timeout: 246 seconds]
leitz has quit [Quit: Nappy time]
x-light has quit [Remote host closed the connection]
tvl has joined #ruby
<ibloodlust> now it works! i wish 0x0 was online so i could thank him
tvl is now known as tobiasvl
hostess has joined #ruby
<shevy> lol
tulak has quit [Remote host closed the connection]
quazimodo has joined #ruby
nchambers has joined #ruby
cashnguns has joined #ruby
jokke has joined #ruby
Billias has joined #ruby
drbrain has joined #ruby
twe4ked has joined #ruby
tris has joined #ruby
tylersmith has joined #ruby
Seich has joined #ruby
northfurr has quit [Quit: northfurr]
<johnzorn> In rails form_for, when I add url: articles_path should it not change the form action to /articles/create> It changed it from /articles/new to just /articles what's the best way to debug this sort of thing?
schaary has joined #ruby
Laaw has joined #ruby
nullwarp has joined #ruby
blackjid has joined #ruby
epochwolf has joined #ruby
djbender has joined #ruby
DanKnox[away] has joined #ruby
danneu has joined #ruby
bryancp has joined #ruby
jordanm has quit [Ping timeout: 246 seconds]
akem has quit [Ping timeout: 244 seconds]
manveru has joined #ruby
rideh has joined #ruby
catbusters has joined #ruby
charles81 has joined #ruby
avdi has joined #ruby
jimeh has joined #ruby
melter has joined #ruby
constantinexvi has joined #ruby
segmond has joined #ruby
sparr has joined #ruby
DarkBushido has joined #ruby
null2 has joined #ruby
alxndr has joined #ruby
ELCALOR has joined #ruby
korolyov has joined #ruby
bf4 has joined #ruby
Nightmare has joined #ruby
cschneid has joined #ruby
ndrst has joined #ruby
adambeynon has joined #ruby
rfv has joined #ruby
n1ftyn8_ has joined #ruby
jhass has joined #ruby
northfurr has joined #ruby
Diabolik has joined #ruby
jeregrine has joined #ruby
prasselpikachu has joined #ruby
musicmatze has joined #ruby
vcoinminer has joined #ruby
iooner has joined #ruby
<havenwood> ?rails johnzorn
<ruboto> johnzorn, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
bruno- has quit [Ping timeout: 250 seconds]
apipkin has joined #ruby
jevs has joined #ruby
jrhorn has joined #ruby
jmcc has joined #ruby
jlyndon has joined #ruby
hellschreiber_ has joined #ruby
<johnzorn> ahh sorry...
thesheff17 has joined #ruby
mattwildig has quit [Remote host closed the connection]
Anthony_ is now known as _blizzy_
northfurr has quit [Client Quit]
fowlduck has joined #ruby
northfurr has joined #ruby
frankS2 has joined #ruby
shelling__ has joined #ruby
jmhmccr has joined #ruby
joaomdmoura has joined #ruby
lacrosse has joined #ruby
boxrick1 has joined #ruby
northfurr has quit [Client Quit]
Guest85414______ has joined #ruby
jabreity has joined #ruby
spastorino has joined #ruby
zemmihates has joined #ruby
colstrom has joined #ruby
rflot has joined #ruby
Iacobus has joined #ruby
troter____ has joined #ruby
KnownSyntax has joined #ruby
mrsolo has joined #ruby
northfurr has joined #ruby
aps has joined #ruby
aps is now known as Guest95812
bove has joined #ruby
tpendragon has joined #ruby
ELLIOTTCABLE has joined #ruby
ggherdov has joined #ruby
htmldrum has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
nertzy has quit [Quit: This computer has gone to sleep]
skarn has joined #ruby
prosodyCagain has joined #ruby
Rodya_ has quit [Remote host closed the connection]
TDJACR has joined #ruby
Rodya_ has joined #ruby
<ibloodlust> freepascal looks like a fun language
amirpro has joined #ruby
<havenwood> ibloodlust: better than paidpascal?
machty has joined #ruby
<ibloodlust> yeah paidpascal isnt even really all that crossplatform
<ibloodlust> *cough* *cough* delphi *cough* *cough"*
haraoka has joined #ruby
<ibloodlust> is freepascal really that underrated a language?
<ibloodlust> god it looks like a desert full of water
chipotle has joined #ruby
Oli` has quit [Ping timeout: 265 seconds]
aevitas has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
Azure has quit [Ping timeout: 260 seconds]
TheNet has quit [Quit: Leaving...]
roxtrongo has joined #ruby
aevitas has quit [Ping timeout: 260 seconds]
dviola is now known as diegoviola
malconis has joined #ruby
devl has joined #ruby
malconis has quit [Client Quit]
allcentu1 has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
favadi has joined #ruby
mghaig has joined #ruby
neonalpine has quit [Remote host closed the connection]
Alayde has joined #ruby
jordanm has joined #ruby
Alayde has left #ruby [#ruby]
cdg has joined #ruby
Azure has joined #ruby
shakes has joined #ruby
mghaig_ has joined #ruby
mghaig has quit [Ping timeout: 272 seconds]
longfeet has joined #ruby
SteveC has quit [Quit: Textual IRC Client: www.textualapp.com]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrmatt has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
rgrmatt has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
centrx has joined #ruby
nertzy has joined #ruby
cdg has quit [Remote host closed the connection]
neonalpine has joined #ruby
davedev24 has quit []
bb010g has joined #ruby
shakes has quit [Quit: Leaving]
dn5 has joined #ruby
lsv has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
devbug has joined #ruby
<dn5> If I have json: { "list":[ "todo":"xxxx" ] } can I append data to the key "todo"?
<Ox0dea> dn5: Ruby implicitly freezes String keys.
dlitvak_ has quit [Ping timeout: 265 seconds]
<Ox0dea> >> h = {}; h['foo'] = 42; h.keys[0].frozen?
<ruboto> Ox0dea # => true (https://eval.in/469012)
favadi has joined #ruby
<Ox0dea> You'll have to use my Object#thaw if you really want to do this, but you probably don't.
neonalpine has quit [Ping timeout: 240 seconds]
<dn5> Ox0dea: .frozen? What does that method do?
<Ox0dea> dn5: It tells you whether or not the receiver is frozen. :P
<Ox0dea> "Freezing" an object means preventing its modification.
<dn5> Ox0dea: I don't want to freeze the key :p I want to append data to it.
<Ox0dea> dn5: You have no say in the matter; as demonstrated, String keys are frozen without your explicit consent.
<Ox0dea> And you can't modifying a frozen String without first thawing it.
<Ox0dea> *modify
<dn5> ahh so, is there a special method to unfreez the key?
<Ox0dea> dn5: Yes, but it's not available out of the box.
<Ox0dea> Whoops. That's the wrong one.
Mon_Ouie has quit [Ping timeout: 260 seconds]
Mia has quit [Read error: Connection reset by peer]
<Ox0dea> Here we go: https://eval.in/468965
<Ox0dea> You have to use the Fiddle standard library to muck about under the hood, but it's "safe".
kp666 has quit [Ping timeout: 260 seconds]
<Ox0dea> You really should reconsider whether you actually want to mutate keys, though.
bruno- has joined #ruby
neanderslob has joined #ruby
nertzy2 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dn5> Ox0dea: Thanks, I'll check that out. Also, why should I reconsider the option? Is there alternative?
VeryBewitching has quit [Remote host closed the connection]
<Ox0dea> dn5: Well, could you say why you think you need to?
nertzy has quit [Ping timeout: 240 seconds]
jrhorn has quit [Quit: WeeChat 1.4-dev]
VeryBewitching has joined #ruby
||KKK||Dartmouth has joined #ruby
<dn5> Ox0dea: Well, I don't know is there alternative way of appending to key without adding a new one.
<||KKK||Dartmouth> what is the most elite Ruby hackathon in the world?
bruno- has quit [Ping timeout: 250 seconds]
<havenwood> !mute ||KKK||Dartmouth
dlitvak_ has joined #ruby
<Ox0dea> dn5: No, not if it's a String.
<Ox0dea> Are you going to be transforming all of the keys?
favadi has joined #ruby
cdg has joined #ruby
dlitvak has quit [Ping timeout: 244 seconds]
jrhorn has joined #ruby
<dn5> Ox0dea: It is a string, and no, I want only one key for particular "todo".
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
<dn5> key "todo" => key "list" => "list values"
<Ox0dea> I'm afraid you'll just have to add a new element and delete the old one.
<Ox0dea> Or use Object#thaw, of course.
<dn5> key "todo" => key "list" => "list values"
<dn5> ups
<dn5> Ox0dea: Yep, read the values and add new one to that.
nertzy2 has quit [Quit: This computer has gone to sleep]
||KKK||Dartmouth was banned on #ruby by havenwood [*!*@172.56.41.184]
Rickmasta has quit [Client Quit]
<Ox0dea> >> h = {'foo' => [1, 2, 3]}; h['foobar'] = h.delete('foo'); h
<ruboto> Ox0dea # => {"foobar"=>[1, 2, 3]} (https://eval.in/469013)
<Ox0dea> dn5: That's probably the best way to go about it if it's really what you wanna do.
dented42 has joined #ruby
<Ox0dea> Wanting to modify a single key is still a little weird, though.
moeabdol has joined #ruby
Fire-Dragon-DoL has joined #ruby
<dn5> Ox0dea: Thats excatly what I want. I'll show you later why I need it.
<Ox0dea> Well, all right.
<kiki_lamb> Request: Can someone please recomemnd me a parsing gem? I've done lots of parsing in other languages, just not in ruby, so i'm not sure what gem to look for.
<Ox0dea> kiki_lamb: whitequark/ruby_parser
yqt has quit [Ping timeout: 240 seconds]
<Ox0dea> Oh, you meant for parsing other languages.
<Ox0dea> Citrus is pretty good.
<Ox0dea> It's written by Michael Jackson! https://github.com/mjackson/citrus
<kiki_lamb> Yes, I want to parse a language of my own.
<Ox0dea> See above.
<kiki_lamb> kk, i'll look at that one.
dented42 has left #ruby [#ruby]
VeryBewitching has quit [Remote host closed the connection]
freedrul1 is now known as freedrull
<kiki_lamb> My language is currently implemented as a ruby DSL with some preprocessing applied to the source file first, but that's becoming restrictive as it gets more complex, so i'd like to replace the preprocessing stages with a legit parser.
moeabdol has quit [Ping timeout: 276 seconds]
<Ox0dea> >> 0x900d1dea # kiki_lamb
<ruboto> Ox0dea # => 2416778730 (https://eval.in/469014)
sankaber has joined #ruby
x-light has joined #ruby
dlitvak has joined #ruby
||KKK||Dartmouth has quit [Ping timeout: 276 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
x-light is now known as juddey
dlitvak_ has quit [Ping timeout: 240 seconds]
unknowns2k2 has joined #ruby
mghaig_ has quit [Read error: Connection reset by peer]
A124 has quit [Read error: Connection reset by peer]
<kiki_lamb> Ox0dea: what's that number for? >_>
diegoaguilar has joined #ruby
<Ox0dea> kiki_lamb: It says "good idea" in hexadecimal.
<kiki_lamb> derp, lol, i didn't try to read it as leetspeak. okay.
ValicekB has quit [Ping timeout: 250 seconds]
UNIMPL is now known as sp_
<kiki_lamb> And yeah, gonna need it soon enough... for now, the input files are simple enough that I can get away with preprocesing the source to make valid Ruby out of it, but some of the features i've got planned will warrant more complex syntax that I'm dreading the idea of handling with the preprocessor
<kiki_lamb> example input file for the current syntax -> https://github.com/kiki-lamb/drumtool/blob/master/input/sample.dt
mattwildig has joined #ruby
vptr has joined #ruby
leafybasil has quit [Remote host closed the connection]
A124 has joined #ruby
CodingWolf has quit [Ping timeout: 255 seconds]
mghaig has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
spider-mario has quit [Ping timeout: 240 seconds]
<kiki_lamb> Ox0dea: neat, citrus looks like it'll proabably do the trick.
<Ox0dea> kiki_lamb: Well, given the simplicity of your syntax, it might even be overkill.
ValicekB_ has joined #ruby
<Ox0dea> This might be of some interest to you: https://eval.in/455629
dain has joined #ruby
<Ox0dea> If you were willing to make a few concessions, drumtool programs could probably be interpreted as pure Ruby.
<Ox0dea> You could redefine Fixnum#- and use `1-2-3` instead of `1 2 3` and you'd be able to capture the arguments.
wilsonc91 has joined #ruby
unknowns2k2 has quit [Quit: unknowns2k2]
ValicekB_ is now known as ValicekB
<shevy> it's time to lose sanity again
<Ox0dea> Here it comes!
karapetyan has joined #ruby
mary5030 has joined #ruby
<kiki_lamb> Ox0dea: i feel like i'm gonna push up the limits of that really quickly, though
krz has joined #ruby
<Ox0dea> kiki_lamb: You're probably right, but Ruby is remarkably malleable.
dain has quit [Client Quit]
<Ox0dea> Here's Haskell's list comprehension syntax bolted onto Ruby with the single concession of having to prefix the Array with `+`: https://gist.github.com/andkerosine/3356675
<Ox0dea> (As shevy subtly hinted, I'm giving you terrible ideas that you should ignore completely.)
<kiki_lamb> Ox0dea: like, on should be able to (and currently) does accept any mixture of things that are valid arguments to it, not just if they're all the same type... like, 'on 8 %3 %x10 { t < 8 && some_arbitray_method }' needs to be valid
DelDotB has joined #ruby
<Ox0dea> I'm not sure I see how types should have anything to do with it?
<Ox0dea> You can redefine #- on everything! :P
karapetyan has quit [Ping timeout: 250 seconds]
<kiki_lamb> hahah, i suppose
chipotle has quit [Quit: cheerio]
<Ox0dea> And with refinements, you can even localize your changes to just the place where you're interpreting dt.
mghaig has quit [Read error: Connection reset by peer]
<Ox0dea> Again, you probably shouldn't, but it's probably entirely feasible.
Success has quit [Ping timeout: 246 seconds]
<kiki_lamb> some of the arguments don't syntactically look like any valid ruby object in the raw source, though, so somewhere along the line, something needs to make them into something valid (currently, the preprocessor is what does this)
<kiki_lamb> like, '%x10' is kind of just nonsense in pure ruby
VeryBewitching has joined #ruby
SumoBoy has joined #ruby
dn5 has quit [Quit: Lost terminal]
<kiki_lamb> right now, the preprocessor will take that and transform it into 'Proc.new { |t| t % 0x10 == 0 }'
mary5030 has quit [Remote host closed the connection]
rakm has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
MeMoc has joined #ruby
<Ox0dea> kiki_lamb: I looked at the processor; you went all the way. :P
<Ox0dea> *preprocessor
<kiki_lamb> Ox0dea: hahah, I tried.
<kiki_lamb> example of preprocessor output, and some output as it spits out some MIDI -> https://gist.github.com/kiki-lamb/4e4eb27e0eea970feb09
mghaig has joined #ruby
<Ox0dea> It seems like most of the pain is coming from arguments being separated by whitespace?
<Ox0dea> I certainly won't stop you from writing your first parser, but this really feels like it should be a DSL.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Or, rather, that it *could* be a very nice DSL.
ajaiswal_ is now known as ajaiswal
<kiki_lamb> well, the output of the preprocessor is run as a DSL inside ruby
<kiki_lamb> it's just a little ungainly for live manipulation
devoldmx has quit [Ping timeout: 272 seconds]
<kiki_lamb> most of the preprocessing is in the name of tersity, since this is intended for livecoding - i.e., the idea is to be able to perform music live by manipulating the source code in real time as it plays
<kiki_lamb> so every character saved, the better
colegatron has quit [Ping timeout: 264 seconds]
<kiki_lamb> hence why the preprocessor implements stuff like indentation-defined blocks, abbreviations for all the keywords, shortcuts for trigger proc definitions, indentation-defined multiline comments, etc.
neonalpine has joined #ruby
Alayde has joined #ruby
<kiki_lamb> all those features are, basically, making the input code shorter so that you can change things more quickly while performing
SumoBoy has quit []
<kiki_lamb> There are some things there I should move in each direction, though, probably
<kiki_lamb> like, the abbreviation handling could probably occur inside the DSL via method_missing instead of in the preprocessor
cashnguns has quit [Read error: Connection reset by peer]
spacemud has quit [Quit: ZNC - http://znc.in]
devl has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
<kiki_lamb> and there are parts of the block handling that should maybe move the other way
cjbischof_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> kiki_lamb: I think you'd like this very much: http://overtone.github.io/
Alayde has quit [Client Quit]
neonalpine has quit [Ping timeout: 240 seconds]
<Ox0dea> They don't go at quite the pace you're looking for, I'm guessing, but there's likely much inspiration to be found there.
<Ox0dea> I'm having trouble finding the live demo that first exposed me to Overtone. :<
rgrmatt has quit [Remote host closed the connection]
<kiki_lamb> cool, I'll take a look. I don't mind taking inspiration/ideas from other peoples stuff, but I still wanna build my own :)
<Ox0dea> kiki_lamb: Oh, certainly, it's just that Clojure has a way of showing you the power of simplicity. :)
bruno- has joined #ruby
eminencehc has joined #ruby
<Ox0dea> The demo I'm thinking of felt very "dynamic" (and sounded quite good to boot) in spite of the minuscule amount of code used to create the experience.
baweaver has quit [Remote host closed the connection]
<kiki_lamb> I'm one of those people that's kind of wary using tools that I don't feel like I understand well, and in the past when I've encountered other peoples livecoding tools, they're usually 'big' enough that I don't feel like I really know what's going on.
<kiki_lamb> Even if you tech me how to spit some notes out, I'm still gonna be wondering how doing (insert steps) actually results in notes coming out the other end
<kiki_lamb> Part of the enjoyment I've been getting from playiwng with my own tool (hah) comes from having a complete understanding of the entire process that's occuring
<kiki_lamb> It's nice to be able to, in my head, break down every single step that happens between me typing in an expression and a MIDI note being shot out the other side.
devl has joined #ruby
<Ox0dea> kiki_lamb: You're forgetting so much of the hidden complexity, but I take your point. :)
<Ox0dea> I certainly wasn't advising you to drop drumtool and pick up Overtone.
<kiki_lamb> *nodnods*
yeticry has quit [Ping timeout: 272 seconds]
<kiki_lamb> sure, but a lot of the hidden complexity can be dismissed as 'implementation details of the surrounding programming environment', it's stuff that's kind of outside the actual high level problem domain
yeticry has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
chipotle has joined #ruby
adac has joined #ruby
htmldrum has joined #ruby
ycyclist has quit [Ping timeout: 246 seconds]
Oli` has joined #ruby
<kiki_lamb> Ox0dea: ooh, but this item, also in overtone's github, I might steal or borrow from -> https://github.com/overtone/emacs-live
<kiki_lamb> Right now I'm just hammering the save keychord a lot >_>
adac has quit [Ping timeout: 240 seconds]
<Ox0dea> Chording is for masochists. :P
jrhorn has quit [Ping timeout: 246 seconds]
<kiki_lamb> and mode-switching is for people with two much time on their hands :)
<SirFunk> IS there any way to, say delete contents of a directory when a process exits? I realize I can rescue SystemExit or Interrupt but I would have to scope the whole program in that, no?
<SirFunk> aka (can't do it from a gem)
cmoneylulz has joined #ruby
mary5030 has joined #ruby
<Ox0dea> SirFunk: No, you can register an exit handler with Kernel#at_exit or the END keyword.
<Ox0dea> END is more for when you're using Ruby as a better awk, so go with #at_exit.
<chipotle> i know apple has a generous 15 day return policy but i don't want to spend ~2 dayac. how do i see how much memory each app is actually using in activity monitor?
<chipotle> free -m doesn't work
Mon_Ouie has joined #ruby
<chipotle> in activity monitor is it private memory or compressed memory?
cmoneylulz has quit [Remote host closed the connection]
devl has quit [Ping timeout: 250 seconds]
fedexo has quit [Ping timeout: 240 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
Nightmare is now known as HaythamKenway
<adam_> Anybody know of a gem (or stdlib?) that would allow me to accept command line args similar to `rails`? Save me from ARGV+OptionParser maybe?
<adam_> Actually, looks like Thor might be possible... unless someone has an alternative.
<Ox0dea> adam_: Thor is great for subcommand CLIs.
mary5030 has quit [Remote host closed the connection]
devoldmx has joined #ruby
mary5030 has joined #ruby
NeverDie is now known as slim_shady
dlitvak has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
devl has joined #ruby
braincra- has quit [Quit: bye bye]
slim_shady is now known as NeverDie
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wilsonc91 has joined #ruby
jrhorn has joined #ruby
ibloodlust has quit [Ping timeout: 246 seconds]
jdawgaz has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
braincrash has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
thesquidbits has quit [Remote host closed the connection]
kp666 has joined #ruby
<vptr> Hmm. Rust is interesting.
mary5030 has joined #ruby
peterhu has quit [Quit: leaving]
z3uS has quit [Ping timeout: 260 seconds]
_blizzy_ has quit [Quit: Leaving]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
<Ox0dea> vptr: Go on...
peterhu has joined #ruby
neonalpine has joined #ruby
Rickmasta has joined #ruby
z3uS has joined #ruby
tref has quit [Quit: tref]
<NeverDie> Rust is going to overtake Ruby.
slawrence00 has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
mattwildig has quit [Remote host closed the connection]
<vptr> NeverDie: I doubt that's going to happen.
<vptr> C++ perhaps -- eventually.
fedexo has joined #ruby
<NeverDie> Yeah I'm just kidding.
MichaelPorter_ has joined #ruby
<NeverDie> And I think it'll most probably just serve as a C++ replacement.
<NeverDie> Eventually....
<vptr> If it succeeds, it would probably sit alongside Ruby, and Python, but by that point, the ecosystem would've been built up enough around Rust not to lose much by switching from either Python or Ruby.
<Ox0dea> vptr: Wat.
<vptr> Well, people actively want that. A C++ replacement, and Rust seems to fit the desirabilities.
<vptr> A lot of the features of Rust are inherently specifically targets to the pain points of C++.
neonalpine has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby
<vptr> Rust manages to sooth that enough for those forced to deal with C++ to desire investing in it. But, no one is really looking for a Ruby, or Python replacement.
rgrmatt has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
<Ox0dea> You sound as if you hold the belief that a language is its libraries.
<vptr> But we're looking at a decade, or possibly more.
tmtwd has joined #ruby
moeabdol has joined #ruby
qiukun has joined #ruby
x-light has joined #ruby
<vptr> 3652: What often counts is the ecosystem around the language, its availability of modules, frameworks, packages, librariess, et al. Ruby fortunately has an impressive set of nearly everything concievable with gems. JS has npm [and all that bower nonsense], meteor, webkit, phone-gap. Perl has CPAN, JVM.
aevitas has joined #ruby
baweaver has joined #ruby
<Ox0dea> You're the second person who's failed to properly un-hexadecimal my nick.
bruno- has joined #ruby
<vptr> Rust as-is has little more than a BETA release of a package management system. But it's gaining quiet albeit wide support and traction.
<vptr> Did the last person do it from memory?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
rgrmatt has quit [Ping timeout: 244 seconds]
leafybasil has quit [Ping timeout: 240 seconds]
<sp_> heh :p
<Ox0dea> > I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Musashi007 has joined #ruby
<sp_> apprehend confusion?
<shevy> too many people want a C++ replacement... didn't we have that in Java already? Then C#? Then D? Now Rust? Hmmmmm....
<Ox0dea> sp_: Ol' Chucky Babbs lived way back when they talked funny.
<vptr> shevy: Well, C++ is a bit of a disaster.
moeabdol has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 240 seconds]
aevitas has quit [Ping timeout: 255 seconds]
x-light has quit [Remote host closed the connection]
<vptr> _
bruno- has quit [Ping timeout: 246 seconds]
<Ox0dea> People are advised to "use the good parts" of JavaScript and that's worked out well enough; the same could be (and is) largely true for quality C++ software.
<vptr> What do you do, with C++?
<Ox0dea> I don't write C++.
<vptr> And Javascript is an excellent language.
<vptr> Ah, so you're just speaking from hearsay.
<Ox0dea> This is getting ad hominem way too quickly.
<Ox0dea> I asked you to explain why you felt Rust to be interesting and you ignored me entirely; why?
Oli` has quit [Ping timeout: 246 seconds]
bucaran has joined #ruby
<vptr> A mere glance at it blows away just how expressive it seems.
<Ox0dea> How very insightful.
<vptr> It's still fully type-checked, and statically dispatched. There aren't any slow reflection etchniques.
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<vptr> I feel a certain way about static vs. dynamic language typing.
<bucaran> ui question, Im writing a tool that could have both a LIST and SEARCH option, like `tool list [OPTIONS]` and `tool search [OPTIONS]`
<vptr> I'm glad that you feel insighted :)
<Ox0dea> bucaran: Thor.
<bucaran> but I think I could very well merge those two, into only list
<bucaran> what do you think? do you think it is better to differentiate them both? list and search
<Ox0dea> bucaran: You could do `list` when `search` is invoked with no parameter?
<bucaran> or do you fancy the idea of only one ?
<Ox0dea> `gem search` is basically `gem list`, for instance.
wilsonc91 has joined #ruby
MichaelPorter_ is now known as jimbow
jimbow was kicked from #ruby by ChanServ [User is banned from this channel]
<bucaran> there is a `gem list` though
<Ox0dea> Yeah, that's an unfortunate coincidence.
<bucaran> point is, to reduce cognitive load from users
<bucaran> there are already a lot of other "action verbs" in the tool
<Ox0dea> Then what's one more?
<sp_> I wish people would stick to `man` pages. Instead of optargs with 'h' fields.
<bucaran> :)
<Ox0dea> bucaran: Making `list` == `search *` is pretty reasonable and intuitive.
<sp_> BBL.
sp_ has quit [Quit: leaving]
<bucaran> I see, yes, that was the default behavior of calling search until now
<shevy> well it does not sound synonymous
<vptr> .8
<bucaran> imagine brew had only a list or search action, but not both
govg has quit [Ping timeout: 260 seconds]
<bucaran> do you think that would make it less intuitive?
<bucaran> or less user friendly?
<shevy> how do you list something with search?
<bucaran> brew list --search=word
<shevy> eh
<shevy> so it has both again?
<shevy> :)
<Laaw> i dunno if ive ever used list
<Ox0dea> bucaran: `gem list -r` == `gem search -r`, and it makes perfect sense.
wilsonc91 has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
terminalrecluse has joined #ruby
tref has joined #ruby
mghaig has quit [Ping timeout: 250 seconds]
<Ox0dea> "You'd better be more specific, or I'm gonna give you everything I've got."
<bucaran> 0x0dea: since there is some good overlapping between search and list, are you suggesting to just have them as synonyms?
devoldmx has quit []
<Ox0dea> bucaran: No, rather that `search` without any additional specificity should behave like `list`.
<bucaran> so they would both be different commands then
<Ox0dea> But do you see how `search` can make `list` redundant?
<bucaran> yes, which is why I was trying to blow up list and keep only search
<Ox0dea> Do it.
<bucaran> great, I was missunderstanding you
<Ox0dea> Yeah, we solved this seven minutes ago. :P
<shevy> nobody understands the Ox
<bucaran> haha
<shevy> it's like an Oxacle
<vptr> I should have a bath, and in some way work toward fixing my sleeping pattern.
<shevy> none of this would be possible if the nick would be 0x0dea!
<bucaran> oh, it's an `O'
<Ox0dea> I didn't want it to be this way.
<bucaran> that explains why I couldnt quote it
<shevy> haha
mary5030 has quit [Remote host closed the connection]
<shevy> IRC is ancient
<vptr> Beats FB.
<Ox0dea> That's no justification.
<bucaran> no way
<bucaran> email is ancient
<bucaran> IRC is not ancient, it's just old
<Ox0dea> Prohibiting nicks from beginning with a digit was at best an oversight, and more likely a fudge. :<
<shevy> or they knew that nicks starting with numbers are evil
gix has quit [Ping timeout: 240 seconds]
<bucaran> or maybe they were already exhausted having to come up with the spec for all the feats they were going to implement, and having to validate numbers at the beggining of usernames would just slightly complicate everything a bit more and they say, fuck it!
<shevy> "nobody needs more than 640K"
<shevy> "nobody needs a nick like 123foo"
wilsonc91 has joined #ruby
<Ox0dea> > There is no reason anyone would want a computer in their home.
<Ox0dea> Said the president of the company which manufactured the computers on which Unix was created.
<bucaran> Ox0dea: yeah, that's a gem
gix has joined #ruby
<bucaran> but to be fair, I wonder how many thought this guy was crazy-pants when he said that, I bet there were a lot of other people who shrugged at that and probably thought, why not, I want two!
<shevy> he thought they were just too big and expensive!!!
crowell is now known as jeffishackermast
jeffishackermast is now known as crowell
Musashi007 has joined #ruby
qiukun has quit [Quit: qiukun]
IrishGringo has quit [Ping timeout: 240 seconds]
DelDotB has quit [Quit: DelDotB]
eboaz_ is now known as eboaz
tref has quit [Quit: tref]
djbkd has quit [Quit: Leaving...]
waka has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<Ox0dea> shevy: I'd never seen this one before today: http://i.imgur.com/ouJMr2i.png
<Ox0dea> Equating Radar with _why was a little unbecoming, if you ask me.
<Radar> Who did such a thing.
<Radar> I am no _why.
<Ox0dea> > programming is rather thankless. u see your works become replaced by superior ones in a year. unable to run at all in a few more.
<Ox0dea> _why was jaded; Radar just wants to spend time on other projects.
<Radar> I feel like I'm missing some context here.
<Ox0dea> Are you no longer leaving FOSS?
<Radar> I am leaving FOSS.
<Radar> But who is equating me with _why?
<bucaran> I didnt know FOSS could be "left" lol
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> It's not my dirty laundry to air.
<Radar> Ox0dea: PM then?
<Radar> bucaran: I did it today http://ryanbigg.com/2015/11/open-source-work/
<vptr> Radar Detector.
<bucaran> Radar: congrats on your 2nd edition
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<vptr> What does _why do now?
Musashi007 has quit [Quit: Musashi007]
krz has quit [Ping timeout: 255 seconds]
Nahra has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
edward___ has left #ruby [#ruby]
<bucaran> vptr: nobody knows
darkf has joined #ruby
tildes has joined #ruby
<vptr> Maybe he's just apeiros in hiding.
<bucaran> maybe he turned to the dark side and he's making 200K somewhere
qiukun has joined #ruby
DelDotB has joined #ruby
<Ox0dea> whyday.org is dead and this year's passed almost entirely unmarked. :<
blue_deref has quit [Quit: bbn]
<vptr> Interesting, how many people of all the F/OSS communities eject themselves from the Ruby ones.
<Radar> It's happened in JS-land a few times too.
<Radar> There is just no support for it.
tref has joined #ruby
<vptr> Radar: Yes, but yours is almost entirely financially driven.
<Radar> vptr: You mean personally, it's financial for me?
<vptr> Radar: Along with spending time with family, yes.
<bucaran> leaving FOSS does not make sense, because FOSS is not a distinctive place, I understand the sentiment and the message in the post, but this is too black and white
<vptr> You earn no money from this.
<Radar> vptr: It's much more the time than it is the money. I already make enough money to support myself AND my wife comfortably enough.
<vptr> Radar: From this?
<Radar> vptr: If I'm spending hours out of my weekends / spare time doing more work... well, it's not sustainable.
<Radar> vptr: I get paid from my full-time job.
<Radar> And from the books that I write too https://leanpub.com/multi-tenancy-rails-2 ... which covers the electricity bills when they come through and not much else.
<vptr> Radar: So this cuts into time that you'd rather spend elsewhere, given that it doesn't earn you any financial benefit, nor joy amongst those you ought to spend time with.
<Radar> vptr: Yup, that's a good ordering of it all.
<vptr> What is the audienceo of the book gueared at?
MeMoc has quit [Quit: Connection closed for inactivity]
<vptr> geared, even.
<vptr> I shouldn't multitask.
<Radar> vptr: People who know Rails and would like to learn how to do multitenancy.
<Radar> It could even be used as a "next thing to read" for a junior dev who's done the Rails Tutorial or other books
<vptr> Fair enough.
techsilo has joined #ruby
<kiki_lamb> Is there a method for enumerables that's in between .any? and .all? Specifically, I want to know whether my condition applies to more than one of the things in the enumerable.
asianMike has joined #ruby
techsilo has quit [Client Quit]
<kiki_lamb> So, something like .two? or .multiple?, i guess
<kiki_lamb> .select and .count seems like overkill, we don't really need to study the whole collection, i'd have my answer on the second match
neonalpine has joined #ruby
bucaran has quit [Quit: Lost terminal]
shinenelson has joined #ruby
qiukun has quit [Quit: qiukun]
<kiki_lamb> ah-hah, .any? and ! .ony?
<kiki_lamb> er, .one?
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neonalpine has quit [Ping timeout: 240 seconds]
<fowlduck> kiki_lamb: maybe: a = 0; enumerator.take_while{|b| a += 1 if b == "something"; a < 2 }
<fowlduck> then check the value of a after?
leafybasil has joined #ruby
<Ox0dea> kiki_lamb: http://git.io/v4nQ6
bruno- has joined #ruby
<fowlduck> pretty similar to my crappy one-liner, but way nicer
baweaver has joined #ruby
<Ox0dea> kiki_lamb's `any? + !one?` is nicest, in my opinion.
tref has quit [Quit: tref]
<fowlduck> that's going to iterate over it twice, though
<Ox0dea> It'll stop as early as it can.
<Ox0dea> Both times.
<fowlduck> sure, but it's still iterating twice
<Ox0dea> I'll phone the authorities.
<fowlduck> :)
vptr has quit [Quit: Lost terminal]
leafybasil has quit [Ping timeout: 264 seconds]
Oli` has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 240 seconds]
lubarch has joined #ruby
naftilos76 has joined #ruby
krz has joined #ruby
m3_del has quit [Quit: Leaving...]
crdpink2 has joined #ruby
<Ox0dea> I'm trading space for time in constructing this massive hash that maps words to distinct values, one letter at a time since that's how they arrive.
<Ox0dea> "cat" and "catch" are words, but "catc" is not, and I'm handling that by storing terminals; thus, `hash['c']['a']['t']['$'] == :unique_cat_value`. Lookup is O(1) and everybody's happy, except I need to be able to go the other direction too. :<
crdpink has quit [Ping timeout: 240 seconds]
<Ox0dea> As it stands, I'm using two hashes, the "paths" and the actual mapping, and then I'm just `Hash#invert`ing the latter to get reverse-lookup. Is there some nifty data structure uniquely applicable to this scenario?
<Ox0dea> I need a tree with its roots in the sky.
qiukun has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
favadi has joined #ruby
lubarch has quit [Quit: leaving]
diegoviola has quit [Quit: WeeChat 1.3]
longfeet has quit [Ping timeout: 246 seconds]
mghaig has joined #ruby
tref has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
mclee_ is now known as mclee
mary5030 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
psy_ has quit [Remote host closed the connection]
DrShoggoth has quit [Remote host closed the connection]
chrissonar has joined #ruby
mary5030 has quit [Ping timeout: 276 seconds]
towski_ has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
qiukun has quit [Ping timeout: 252 seconds]
qiukun has joined #ruby
aibot has joined #ruby
User458764 has joined #ruby
houhoulis has joined #ruby
waka has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
towski_ has quit [Remote host closed the connection]
dhjondoh has joined #ruby
aevitas has joined #ruby
tref has quit [Quit: tref]
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
Fredrich010 has joined #ruby
Ankhers_ has quit [Ping timeout: 240 seconds]
Karunamon has quit [Ping timeout: 240 seconds]
Karunamon has joined #ruby
rideh has quit [Ping timeout: 240 seconds]
redondos has quit [Ping timeout: 260 seconds]
redondos has joined #ruby
helpa-bot has quit [Remote host closed the connection]
pepperbreath has joined #ruby
helpa has joined #ruby
pepperbreath has left #ruby [#ruby]
funnel has quit [Ping timeout: 260 seconds]
Esya| has quit [Ping timeout: 260 seconds]
Ankhers has joined #ruby
Fredrich_ has quit [Ping timeout: 260 seconds]
devl has quit [Ping timeout: 240 seconds]
funnel has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
aevitas has quit [Ping timeout: 240 seconds]
rideh has joined #ruby
neonalpine has joined #ruby
riotjones has joined #ruby
martinbjeldbak_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
JoshL has quit [Ping timeout: 260 seconds]
martinbjeldbak has joined #ruby
JoshL has joined #ruby
Esya has joined #ruby
spider-mario has joined #ruby
mattwildig has joined #ruby
<kiki_lamb> is there a smarter way of writing [*args].flatten(1)?
<djellemah> kiki_lamb: maybe a,b,*rest = args
neonalpine has quit [Ping timeout: 240 seconds]
<kiki_lamb> hm, maybe i shouldn't have called my example variable args, sorry
karapetyan has quit [Remote host closed the connection]
<kiki_lamb> this is actually being done to values in a **opts hash
karapetyan has joined #ruby
rgrmatt has joined #ruby
<kiki_lamb> like, i want myfunc(b: 1) and myfunc(b: [1]) to mean the same thing while also acccepting myfunc(b: [1,2,3]), so I'm doing this to the values.
_seanc_ has quit [Quit: _seanc_]
qiukun has quit [Ping timeout: 244 seconds]
asianMike has quit [Remote host closed the connection]
mattwildig has quit [Ping timeout: 240 seconds]
<djellemah> >> Array(:one) # kiki_lamb
<ruboto> djellemah # => [:one] (https://eval.in/469175)
<djellemah> >> Array([:one, :two]) # kiki_lamb
<ruboto> djellemah # => [:one, :two] (https://eval.in/469176)
<djellemah> >> Array(nil) # kiki_lamb
<ruboto> djellemah # => [] (https://eval.in/469177)
jrhorn has quit [Ping timeout: 240 seconds]
Contigi has joined #ruby
qiukun has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
baweaver has joined #ruby
bruno- has joined #ruby
sinkensabe has joined #ruby
devl has joined #ruby
<kiki_lamb> >> def xx *a; Array(a); end; xx [1,2,3] # djellemah
<ruboto> kiki_lamb # => [[1, 2, 3]] (https://eval.in/469178)
<kiki_lamb> ^ shouldn't that work, then?
ta has quit [Remote host closed the connection]
rgrmatt has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 240 seconds]
Ox0dea has joined #ruby
<Ox0dea> >> def foo *args; args; end; foo [1,2], [3,4] # kiki_lamb
<ruboto> Ox0dea # => [[1, 2], [3, 4]] (https://eval.in/469190)
qiukun has quit [Ping timeout: 240 seconds]
<Ox0dea> A splat parameter permits any number of arguments, but it collects them into a new Array.
DoubleMalt has joined #ruby
<kiki_lamb> Ox0dea: yeah... the behaviour I want is 'foo 1 => [1]', 'foo 1, 2 => [1,2]', 'foo [1,2] => [1,2]', though..
<Ox0dea> kiki_lamb: Are you sure? :P
<kiki_lamb> Ox0dea: in this case, yes.
<Ox0dea> Array(foo).flatten(1) will get you there, but be careful what you wish for.
<kiki_lamb> Well... there's no scenario in which it makes sense to pass this method anything other than a 1 dimensional array of items.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
lxsameer has joined #ruby
<Ox0dea> kiki_lamb: So take a single argument and expect a one-dimensional array?
bMalum has joined #ruby
skweek has joined #ruby
toy has joined #ruby
mooe has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kiki_lamb> Ox0dea: why sholdn't the method's user be able to omit the array braces for single items, though? Like, what's the harm in providing this convenience?
<kiki_lamb> Rails does it all the time, why shouldn't I?
<kiki_lamb> for example, in a Rails app's routes file, 'match ':controller/:action/:id', via: [:get]' means the same things as match ':controller/:action/:id', via: :get'. That's what I want here.
yardenbar has joined #ruby
<Ox0dea> So just `args.flatten`, then?
norc has joined #ruby
<norc> Oh yes.
<kiki_lamb> Well, you can't flatten :get, in that second example.
<norc> It has all become clear now.
<Ox0dea> kiki_lamb: But you're using a splat parameter, right?
tmtwd has quit [Ping timeout: 240 seconds]
djbkd has quit [Quit: My people need me...]
mghaig has joined #ruby
<kiki_lamb> Ox0dea: I was attempting to, but I don't have to, if there's a better way of achieving that.
htmldrum has quit [Ping timeout: 246 seconds]
<norc> Ox0dea: Thank you. That is really helpful.
devl has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has quit []
<Ox0dea> kiki_lamb: You seem to be saying that you want to treat `1`, `[1]`, and `[[1]]` all identically.
<Ox0dea> If that's the case, flattening a splat is the "sanest" approach. :P
<kiki_lamb> Ox0dea: just the first two, [[1]] would be an unsupported argument here.
<kiki_lamb> I guess this is what I want:
<kiki_lamb> >> def this **opts; Hash[opts.map { |k,v| [k, Array(v)] }]; end; this a: 1, b: [1,2]
<ruboto> kiki_lamb # => {:a=>[1], :b=>[1, 2]} (https://eval.in/469227)
Xeago has joined #ruby
Pupp3tm4st3r has joined #ruby
mghaig has quit [Ping timeout: 240 seconds]
<Ox0dea> kiki_lamb: Isn't that what you had all along but with a redundant flatten?
<Ox0dea> Array(foo) == [*foo]
jrhorn has joined #ruby
spider-mario has quit [Remote host closed the connection]
<Ox0dea> s/redundant/superfluous/
<kiki_lamb> Ox0dea: i guess the problem was that I was trying to use a splat on the wrong argument, since I was initially trying a block like { |*v| [*v] }
<kiki_lamb> when it turns out I needed one like { |v| [*v] }
<Ox0dea> Ah, I see.
Xeago has quit [Ping timeout: 250 seconds]
iateadonut has quit [Ping timeout: 276 seconds]
dhjondoh1 has joined #ruby
lenwood has joined #ruby
Rutix`away has joined #ruby
Rutix`away has joined #ruby
cubicme has joined #ruby
troulouliou_div2 has joined #ruby
rflot_ has joined #ruby
LoganG_ has joined #ruby
Ray`_ has joined #ruby
Averna has joined #ruby
Lloyd_ has joined #ruby
funnel_ has joined #ruby
crankhar1er has joined #ruby
pabs_ has joined #ruby
hostess_ has joined #ruby
Lloyd_ is now known as Guest13467
ihme-TTilus has joined #ruby
glowcoil__ has joined #ruby
greenbigfrog has joined #ruby
bluOxigen has joined #ruby
devl has joined #ruby
bluOxigen has left #ruby [#ruby]
VeryBewitching has quit [Quit: Konversation terminated!]
apipkin_ has joined #ruby
darkf_ has joined #ruby
Radar_ has joined #ruby
teotwaki_ has joined #ruby
redlegion_ has joined #ruby
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
bf4_ has joined #ruby
tcrypt has joined #ruby
Lorn_ has joined #ruby
slawrence00 has quit [Excess Flood]
Radar has quit [Write error: Broken pipe]
bf4 has quit [Write error: Connection reset by peer]
tylersmith has quit [Write error: Connection reset by peer]
jaxxstorm has quit [Write error: Broken pipe]
funnel has quit [Write error: Broken pipe]
Laaw has quit [Excess Flood]
duoi has quit [Excess Flood]
hostess has quit [Read error: Connection reset by peer]
Ray` has quit [Remote host closed the connection]
TTilus has quit [Remote host closed the connection]
LoganG has quit [Quit: robots are cool]
greenbig- has quit [Quit: The server of my BNC just shutdown or got killed!!!]
jrhorn has quit [Ping timeout: 448 seconds]
mooe has quit [Ping timeout: 448 seconds]
martinbjeldbak has quit [Ping timeout: 448 seconds]
bb010g has quit [Ping timeout: 448 seconds]
skarn has quit [Ping timeout: 448 seconds]
rflot has quit [Ping timeout: 448 seconds]
ggherdov has quit [Ping timeout: 448 seconds]
frankS2 has quit [Ping timeout: 448 seconds]
apipkin has quit [Ping timeout: 448 seconds]
rfv has quit [Ping timeout: 448 seconds]
alxndr has quit [Ping timeout: 448 seconds]
catbusters has quit [Ping timeout: 448 seconds]
Lloyd has quit [Ping timeout: 448 seconds]
glowcoil has quit [Ping timeout: 448 seconds]
knowtheory has quit [Ping timeout: 448 seconds]
deimos has quit [Ping timeout: 448 seconds]
mikolalysenko has quit [Ping timeout: 448 seconds]
andersh has quit [Ping timeout: 448 seconds]
redlegion has quit [Ping timeout: 448 seconds]
Lorn has quit [Ping timeout: 448 seconds]
\13k has quit [Ping timeout: 448 seconds]
ckrailo has quit [Ping timeout: 448 seconds]
HashNuke has quit [Ping timeout: 448 seconds]
funnel_ is now known as funnel
teotwaki has quit [Ping timeout: 448 seconds]
johnhamelink has quit [Ping timeout: 448 seconds]
dhjondoh has quit [Remote host closed the connection]
pabs has quit [Remote host closed the connection]
Guest38416 has quit [Read error: Connection reset by peer]
teotwaki_ is now known as teotwaki
LoganG_ is now known as LoganG
dhjondoh1 is now known as dhjondoh
\13k_ has joined #ruby
jaxxstorm has joined #ruby
Laaw has joined #ruby
andersh_ has joined #ruby
duoi has joined #ruby
Rickmasta has joined #ruby
tref has joined #ruby
andersh_ is now known as andersh
Guest13467 is now known as Lloyd
rflot_ is now known as rflot
Coldblackice_ has joined #ruby
martinbjeldbak has joined #ruby
xet7 has joined #ruby
glowcoil__ is now known as glowcoil
darkf has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 258 seconds]
Coldblackice has quit [Ping timeout: 258 seconds]
Rutix has quit [Ping timeout: 258 seconds]
catbusters has joined #ruby
apipkin_ is now known as apipkin
cgfbee has quit [Excess Flood]
skarn has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
rfv has joined #ruby
alxndr has joined #ruby
bb010g has joined #ruby
mooe has joined #ruby
knowtheory has joined #ruby
aevitas has joined #ruby
deimos has joined #ruby
ckrailo has joined #ruby
HashNuke has joined #ruby
mikolalysenko has joined #ruby
symm- has joined #ruby
frankS2 has joined #ruby
User458764 has joined #ruby
clauswitt has joined #ruby
beast has joined #ruby
Averna has quit [Quit: Ex-Chat]
cgfbee has joined #ruby
aevitas has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Quit: Leaving...]
johnhamelink has joined #ruby
ggherdov has joined #ruby
cdg has joined #ruby
patdohere has joined #ruby
benlieb has joined #ruby
aevitas has joined #ruby
patdohere has quit [Max SendQ exceeded]
patdohere has joined #ruby
Averna has joined #ruby
Oog has joined #ruby
tref has quit [Quit: tref]
neonalpine has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
SenpaiSilver has quit [Quit: Leaving]
k3asd` has joined #ruby
A124 has quit [Read error: No route to host]
neonalpine has quit [Ping timeout: 265 seconds]
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aganov has joined #ruby
bruno- has joined #ruby
baweaver has joined #ruby
vondruch has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
Rickmasta has quit [Read error: Connection reset by peer]
NGRH8 has joined #ruby
<NGRH8> what is the most powerful feature about ruby?
baweaver has quit [Ping timeout: 240 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
haxrbyte has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
bascht has joined #ruby
houhoulis has quit [Remote host closed the connection]
aevitas has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
jrhorn has joined #ruby
<norc> NGRH8: I would say that its turing complete.
<norc> Makes it quite powerful.
<NGRH8> but css is turing complete
<NGRH8> and css is quite useless
<norc> Ask a silly question, get a silly answer.
krz has quit [Ping timeout: 272 seconds]
aevitas has joined #ruby
<NGRH8> it's not a silly question
<NGRH8> why does ruby exist?
<NGRH8> why did the gook invent the language?
<norc> Because Matz wrote it.
krz has joined #ruby
<norc> Covers that question. :p
tref has joined #ruby
adac has joined #ruby
lxsameer has joined #ruby
coderhut has joined #ruby
<NGRH8> thanks i hate ruby but maybe i will love it after reading that norc
<norc> NGRH8: Best way to get to know Ruby is just just give it a try.
arthurix has quit [Read error: Connection reset by peer]
<NGRH8> i know basic ruby syntax
<NGRH8> i hate how expressive ruby is
ohaibbq has quit [Quit: Leaving...]
coderhut has quit [Client Quit]
coderhut has joined #ruby
aevitas has quit [Remote host closed the connection]
yoongkang has joined #ruby
DMRadford_ has quit [Quit: Leaving]
ta has joined #ruby
Oog has quit []
purplexed- has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 240 seconds]
haraoka has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
chipotle has quit [Quit: cheerio]
mark1 has joined #ruby
lsmola has joined #ruby
benlieb_ has joined #ruby
moeabdol has joined #ruby
tulak has joined #ruby
cpup has quit [Ping timeout: 240 seconds]
benlieb has quit [Ping timeout: 260 seconds]
benlieb_ is now known as benlieb
cpup has joined #ruby
SCHAAP137 has joined #ruby
gregf has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
solars has joined #ruby
TomyWork has joined #ruby
stan has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
tulak has quit [Remote host closed the connection]
vondruch has joined #ruby
tref has quit [Quit: tref]
<certainty> :)
darkf_ is now known as darkf
bMalum has quit [Quit: bMalum]
lenwood has quit [Ping timeout: 244 seconds]
lenwood has joined #ruby
andikr has joined #ruby
coderhut has quit [Quit: Page closed]
howdoi has joined #ruby
neonalpine has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
vdamewood has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
mattwildig has joined #ruby
codecop has joined #ruby
djbkd has joined #ruby
djbkd has quit [Client Quit]
chipotle has joined #ruby
neonalpine has quit [Ping timeout: 246 seconds]
anaeem1 has quit [Quit: Leaving...]
mattwildig has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
bruno- has joined #ruby
baweaver has joined #ruby
nitrix is now known as etc
bMalum has joined #ruby
gregf has joined #ruby
etc is now known as nitrix
<djellemah> Ox0dea: Did you accidentally reinvent the Trie? This might help https://github.com/lotem/marisa-trie/
zapata has joined #ruby
<ruby-02> Is there any errors with this pool?
<ruby-02> With the use of the mutex
Xeago has joined #ruby
<ruby-02> Would like opinions if I made any error
baweaver has quit [Ping timeout: 240 seconds]
mghaig has joined #ruby
rgrmatt has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 240 seconds]
yoongkang has quit [Remote host closed the connection]
DEA7TH has joined #ruby
<djellemah> ruby-02: in your exec method, if an exception is raised by connection.exec, the connection will never go back into the pool.
TheHodge has joined #ruby
<djellemah> ruby-02: You might want to take a look at http://sequel.jeremyevans.net/
<ruby-02> djellemah, is there a point in using another pool if a simple one is easy to craft?
<NGRH8> does Chinkyhiro Matsumoto ever come on this channel?
<ruby-02> I could capture the exception and create another connection, can't i?
mghaig has quit [Ping timeout: 276 seconds]
<ruby-02> good catch though, djellemah - thank you very much
<djellemah> ruby-02: Usually talking to a db is more than just a connection pool ;-) You need an ensure block in the method.
senayar has joined #ruby
senayar has joined #ruby
axsuul_ has joined #ruby
leafybasil has joined #ruby
Musashi007 has joined #ruby
<ruby-02> djellemah, what is the difference between ensure for the lost connection and capturing the exception and doing it?
Melpaws1 has joined #ruby
<apeiros> !kick NGRH8 racial slurs are not tolerated (chinky)
NGRH8 was kicked from #ruby by ruboto [racial slurs are not tolerated (chinky)]
moei has quit [Ping timeout: 250 seconds]
axsuul has quit [Ping timeout: 240 seconds]
lenwood has quit [Remote host closed the connection]
moei has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
tesuji has joined #ruby
marr has joined #ruby
<adaedra> Hello.
<djellemah> ruby-02: you could make it work either way.
Musashi007 has quit [Quit: Musashi007]
Xeago has quit [Remote host closed the connection]
<apeiros> moin adaedra
yoongkang has joined #ruby
sepp2k has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NGRH8 has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
pimpin has joined #ruby
unknowns2k2 has joined #ruby
DEA7TH has joined #ruby
pimpin has quit [Remote host closed the connection]
DEA7TH has quit [Client Quit]
DEA7TH has joined #ruby
Semtex-H has quit [Ping timeout: 272 seconds]
Pumukel has joined #ruby
Spami has joined #ruby
devbug_ has joined #ruby
sam___ has joined #ruby
<sam___> Hi guys
sinkensabe has quit [Remote host closed the connection]
moeabdol has joined #ruby
<sam___> hi guys
<sam___> I have a question
<sam___> I want to install redmine and I need jquery-rails
<sam___> I install the version 4 from gem
lkba_ has joined #ruby
<sam___> but I have still that error:
<sam___> Could not find gem 'jquery-rails (~> 3.1.1) ruby' in any of the gem sources
devbug has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 260 seconds]
<adaedra> Use bundler to install gems from redmine
ihme-TTilus is now known as TTilus
<adaedra> Don't do it by hand
pimpin has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
<TTilus> sam___: either bundler or distribution packages, pretty much all linux distributions have redmine packaged for them
yardenbar has joined #ruby
pimpin has quit [Remote host closed the connection]
<TTilus> sam___: debian stable seems to offer redmine 3 on rails 4.2
moeabdol has quit [Ping timeout: 264 seconds]
<sam___> @TTilus
<sam___> thanks
Musashi007 has joined #ruby
<sam___> it's strange
pimpin has joined #ruby
<sam___> because I can see redmine installed
<sam___> but I have this error
Musashi007 has quit [Client Quit]
<sam___> Please configure your config/database.yml first Could not find gem 'jquery-rails (~> 3.1.1) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
karapetyan has quit [Remote host closed the connection]
moeabdol has joined #ruby
karapetyan has joined #ruby
_0mega has joined #ruby
<NGRH8> can we stop being racist?
sinkensabe has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
_0mega has left #ruby [#ruby]
c0m0 has joined #ruby
joonty has joined #ruby
kostadinss has joined #ruby
htmldrum has joined #ruby
<sam___> ping ?
<certainty> pong!
<sam___> I have a problem
neonalpine has joined #ruby
<sam___> I already installed the gem jquery-rails
simplyianm has quit [Read error: Connection reset by peer]
<sam___> but when I install some softwares
<sam___> I have this error:
<sam___> ruby' in any of the gem sources listed in your Gemfile or available on this machine.
simplyianm has joined #ruby
<sam___> umm sorry:
sanjayu has joined #ruby
Voker57 has quit [Remote host closed the connection]
<sam___> Could not find gem 'jquery-rails (~> 3.1.1) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
tulak has joined #ruby
Ray`_ is now known as Ray`
teclator has joined #ruby
karapetyan has joined #ruby
Oog has joined #ruby
kimegede has joined #ruby
vigintas has joined #ruby
neonalpine has quit [Ping timeout: 250 seconds]
NGRH8 has quit [Quit: Page closed]
<sam___> I check my gems
<sam___> and jquery-rails is already installed
<sam___> jquery-rails (4.0.5, 4.0.4)
aevitas has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
unknowns2k2 has quit [Quit: unknowns2k2]
DelDotB has quit [Quit: DelDotB]
tulak has quit [Remote host closed the connection]
colegatron has joined #ruby
rgrmatt has joined #ruby
bruno- has joined #ruby
baweaver has joined #ruby
pimpin has quit [Remote host closed the connection]
rgrmatt has quit [Ping timeout: 260 seconds]
jschmid has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
duncannz has quit [Ping timeout: 265 seconds]
nowhereFast has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
pimpin has joined #ruby
Z00t has joined #ruby
<nowhereFast> how best would I manage adding channels to my redis subscribe dynamically?
platzhirsch has joined #ruby
Rollabunna has quit [Quit: Leaving...]
aevitas_ has joined #ruby
Xzanron has joined #ruby
allcentu1 has joined #ruby
colegatron has quit [Quit: Leaving]
subscope has joined #ruby
nfk|laptop has joined #ruby
Xeago has joined #ruby
xcesariox has joined #ruby
aevitas has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 252 seconds]
xcesariox has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
krz has joined #ruby
lukaszes has joined #ruby
Peg-leg has joined #ruby
sepp2k has quit [Quit: Leaving.]
pimpin has quit [Remote host closed the connection]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
karapetyan has quit [Remote host closed the connection]
aevitas_ has quit []
bigkevmcd has joined #ruby
trosborn has quit [Quit: trosborn]
devbug_ has quit [Read error: Connection reset by peer]
UtkarshRay has joined #ruby
sam___ has quit [Ping timeout: 246 seconds]
<Melpaws1> anyone have an example of returning a mongo find sans bson object id? everything i've tried via suggestions online have not been successful
tref has joined #ruby
<yorickpeterse> collection.find({ criteria }, {_id: false}) IIRC
sabram__ has quit [Read error: Connection reset by peer]
suchness has quit [Read error: Connection reset by peer]
sabram has joined #ruby
jrhorn has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
sepp2k has joined #ruby
sabram has quit [Read error: Connection reset by peer]
sabram has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
suchness_ has joined #ruby
suchness_ has left #ruby [#ruby]
suchness_ has joined #ruby
rodfersou has joined #ruby
<Melpaws1> ya, tried that but it returns the following each time :(
<Melpaws1> syntax error, unexpected ':', expecting =>
DEA7TH has joined #ruby
ayonkhan has joined #ruby
<Kero> Melpaws1: older ruby syntax would be {:_id => false} (if i'm not messing up string/symbol here)
leafybasil has joined #ruby
norc has quit [Ping timeout: 246 seconds]
tref has quit [Quit: tref]
vigintas has quit [Quit: vigintas]
simplyianm has quit [Remote host closed the connection]
Hounddog has joined #ruby
simplyianm has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
<Melpaws1> still no no luck :(
<Melpaws1> string :
<Melpaws1> @@coll.find({"title" => 'Drax'},{":_id"=> 0})
<Kero> should be symbol, I did not mess it up ;)
vigintas has joined #ruby
norc has joined #ruby
<Kero> beyond that, I don't know mongo
<Melpaws1> no worries . i will keep stabbing away at it
<Melpaws1> ty for suggestion
suchness_ has quit [Read error: Connection reset by peer]
sabram_ has joined #ruby
sabram_ has quit [Read error: Connection reset by peer]
sabram has quit [Read error: Connection reset by peer]
sabram_ has joined #ruby
neonalpine has joined #ruby
bruno- has joined #ruby
nfk|laptop has quit [Ping timeout: 244 seconds]
mattwildig has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
neonalpine has quit [Ping timeout: 244 seconds]
vigintas has joined #ruby
<yorickpeterse> Melpaws1: that should be either :_id => 0 or "_id" => 0
<yorickpeterse> not ":_id"
mattwildig has quit [Ping timeout: 260 seconds]
bewie_ is now known as bewie
rgrmatt has joined #ruby
baweaver has joined #ruby
<Melpaws1> tried both . stll returns the BSON ObjectID
<Melpaws1> {"_id"=>BSON::ObjectId('56496bd7e85dd9c110de76ba'), "title"=>"Drax", "issueNumber"=>1}
<Melpaws1> from :
<Melpaws1> @@coll.find({"title" => 'Drax'},{"_id" => 0}).to_a
antgel has quit [Ping timeout: 250 seconds]
<norc> Ox0dea: That book is absolutely amazing, albeit somewhat outdated in parts. :)
rgrmatt has quit [Ping timeout: 240 seconds]
<norc> Ox0dea: Like it describes that keyword arguments are implemented with a Hash internally, but that no longer applies in 2.2 it seems.
<norc> The way class variables are implemented is a monsterous hack though at first glance.
baweaver has quit [Ping timeout: 240 seconds]
akem has joined #ruby
emrox has joined #ruby
Oog has quit []
axsuul_ has quit [Ping timeout: 260 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emrox has quit [Client Quit]
DEA7TH has quit [Quit: DEA7TH]
tulak has joined #ruby
emrox has joined #ruby
emrox has quit [Client Quit]
subscope has joined #ruby
tulak has quit [Remote host closed the connection]
emrox has joined #ruby
tulak has joined #ruby
FooMunki has joined #ruby
<Kero> Melpaws1: false and 0 are not interchangeable, btw. 0 evaluates to true in conditionals.
fgo has joined #ruby
CloCkWeRX has joined #ruby
<Kero> another approach would be to remove the ID afterwards
krz has joined #ruby
devl has quit [Remote host closed the connection]
<Melpaws1> ya, was thinking of doing that . Was hoping there was way of "_id":0 like in mongo translates to ruby .
Melpaws1 is now known as Melpaws
antgel has joined #ruby
karapetyan has joined #ruby
<yorickpeterse> _id: 0 should work fine in Mongo
<yorickpeterse> since mongo itself evaluates 0 to false
<yorickpeterse> Melpaws: what Mongo driver are you using?
bruce_lee has joined #ruby
gregf_ has joined #ruby
emrox has quit [Quit: Textual IRC Client: www.textualapp.com]
emrox has joined #ruby
<Melpaws> I think :mongo (2.1.2)
bruno- has quit [Ping timeout: 276 seconds]
emrox has quit [Client Quit]
emrox has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
nfk|laptop has joined #ruby
prestorium has joined #ruby
zoras has joined #ruby
nowhereFast has quit [Ping timeout: 260 seconds]
<Melpaws> ya , gave that a go and tried the updated .projection too :/
tulak_ has joined #ruby
<Melpaws> returns : #<Mongo::Collection::View:0x007ff20d875a30>
iateadonut has joined #ruby
<Melpaws> coll.find({"title" => 'Drax'},{:fields =>{ "_id" => 0, "title" => 1, "issueNumber" => 1}})
nowhereFast has joined #ruby
haxrbyte has quit [Remote host closed the connection]
tulak has quit [Ping timeout: 240 seconds]
Z00t has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
nowhereFast has left #ruby [#ruby]
sepp2k has quit [Ping timeout: 260 seconds]
spacemud has joined #ruby
stamina has joined #ruby
Rickmasta has joined #ruby
nertzy2 has joined #ruby
tref has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sameerynho has joined #ruby
mghaig has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
mghaig has quit [Ping timeout: 250 seconds]
CodingWolf has joined #ruby
dlitvak has joined #ruby
neonalpine has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tulak_ has quit [Remote host closed the connection]
allcentu1 has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
tref has quit [Quit: tref]
neonalpine has quit [Ping timeout: 272 seconds]
jrhorn has joined #ruby
baweaver has joined #ruby
jrhorn has quit [Ping timeout: 265 seconds]
Averna has quit [Quit: Ex-Chat]
shashin has joined #ruby
shashin has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Z00t has joined #ruby
nertzy2 has quit [Quit: This computer has gone to sleep]
baweaver has quit [Ping timeout: 246 seconds]
Hounddog has quit [Ping timeout: 240 seconds]
platzhirsch has left #ruby [#ruby]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has joined #ruby
davedev2_ has joined #ruby
leafybasil has joined #ruby
lukaszes has joined #ruby
sepp2k has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
Hounddog has quit [Ping timeout: 240 seconds]
zoras has quit [Ping timeout: 272 seconds]
Hounddog has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
tref has joined #ruby
ayonkhan_ has joined #ruby
ayonkhan has quit [Read error: Connection reset by peer]
suchness has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Coldblackice_ has quit [Ping timeout: 250 seconds]
TomyWork has quit [Ping timeout: 260 seconds]
waxjar has joined #ruby
TomyWork has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
favadi has joined #ruby
alienaut has joined #ruby
Hounddog has joined #ruby
waxjar has quit [Client Quit]
davedev2_ has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
toy has quit [Quit: Leaving...]
DEA7TH has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
moeabdol has joined #ruby
Hounddog has joined #ruby
Hounddog has quit [Excess Flood]
ismaelga has joined #ruby
Hounddog has joined #ruby
|ifei5good has joined #ruby
|ifei5g00d has quit [Ping timeout: 246 seconds]
banister has joined #ruby
haxrbyte has joined #ruby
Hounddog has quit [Ping timeout: 246 seconds]
|ifei5good has quit [Ping timeout: 244 seconds]
Hounddog has joined #ruby
|ifei5good has joined #ruby
daivyk has joined #ruby
scripore has joined #ruby
platzhirsch has joined #ruby
hs366 has joined #ruby
<platzhirsch> Slightly confused, wasn't there a way to reference all arguments with one keyword which gives you the result as array or so? I want to pass the parameteres of a method directly to the calling method
|ifei5g0_ has joined #ruby
TPBallbag has joined #ruby
|ifei5g__ has joined #ruby
tref has quit [Quit: tref]
workmad3 has joined #ruby
clauswitt has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
Mia has joined #ruby
Mia has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
|ifei5good has quit [Ping timeout: 260 seconds]
Hounddog has joined #ruby
kirun has joined #ruby
|ifei5g0_ has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
Xeago has joined #ruby
|ifei5g__ has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
Hounddog has quit [Excess Flood]
|ifei5g00d has joined #ruby
Hounddog has joined #ruby
<norc> platzhirsch: You can use the splat operator in the argument list like this:
<norc> >> def foo(*args); p args; end; foo(1,2,3,4)
<ruboto> norc # => [1, 2, 3, 4] ...check link for more (https://eval.in/469531)
<zotherstupidguy> is there somthing like asciinema written in ruby?
<platzhirsch> norc: right, but I cannot specify them as concrete parameters in the first method, foo here
<platzhirsch> which makes it a bit harder to understand when reading interface methods for instance, but yeah,...
sinkensabe has joined #ruby
<norc> platzhirsch: Well there is another hack if you want.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<norc> platzhirsch: method(__method__).parameters
|ifei5good has joined #ruby
<norc> platzhirsch: You can take it from there.
sinkensabe has quit [Remote host closed the connection]
sdothum has joined #ruby
tulak has quit [Remote host closed the connection]
<platzhirsch> ah right, yeah reflect them out
|ifei5g0_ has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
<norc> That is anything but pretty though.
Hounddog has quit [Ping timeout: 240 seconds]
<suchness> Can anyone help me with this active record relationship: http://pastie.org/private/7ln7rey7umalbkhxfx779g I am trying to define a scope or a has many relationship that combines two other has_many relationships
Mon_Ouie has joined #ruby
<norc> platzhirsch: Otherwise passing Hashes is a common thing, especially since it makes it more readable from the caller perspective which arguments are passed.
<platzhirsch> true
<platzhirsch> and can still be nicely written with curly-brace-less syntax
<platzhirsch> As pseudo-named parameters
|ifei5g00d has joined #ruby
sinkensabe has joined #ruby
jrhorn has joined #ruby
kerunaru has joined #ruby
<norc> platzhirsch: Used to be that named params were implemented as a Hash too, though I think this has changed in some recent Ruby version.
neonalpine has joined #ruby
mattwildig has joined #ruby
|ifei5good has quit [Ping timeout: 264 seconds]
<platzhirsch> right
|ifei5g0_ has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
St1gma has joined #ruby
|ifei5g00d has joined #ruby
jrhorn has quit [Ping timeout: 240 seconds]
neonalpine has quit [Ping timeout: 255 seconds]
ismaelga has quit [Read error: Connection reset by peer]
mattwildig has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 250 seconds]
pwnd_nfsw has quit [Remote host closed the connection]
ismaelga has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Hounddog has joined #ruby
SylarRuby has joined #ruby
krz has quit [Read error: Connection reset by peer]
rgrmatt has joined #ruby
decoponio has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Ping timeout: 265 seconds]
waxjar has joined #ruby
|ifei5g00d has joined #ruby
jrhorn has joined #ruby
waxjar_ has joined #ruby
baweaver has joined #ruby
andikr has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
Hounddog has quit [Excess Flood]
senayar has joined #ruby
waxjar_ has quit [Client Quit]
Guest51663 is now known as beagles
akem has quit [Read error: No route to host]
rgrmatt has quit [Ping timeout: 240 seconds]
akem has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
jrhorn has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<jhass> ?crosspost suchness
<ruboto> suchness, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
pwnd_nsfw has joined #ruby
senayar has quit [Remote host closed the connection]
sdfgsdfg has joined #ruby
senayar has joined #ruby
jrhorn has joined #ruby
<suchness> jhass: I did say I crossposted
CloCkWeRX has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
<norc> suchness: Could have let us know in the process too.
<suchness> Jesus
<suchness> Sorry for being busy at work
<norc> Most people here have other things to do. Trying to not waste their time is a polite thing to do. :-P
<suchness> I guess I assumed that anyone who cared about crossposting would have seen it there and realised it applied here as well.
icey has joined #ruby
<norc> suchness: Not everybody here is on #rubyonrails
<suchness> But that's me clealy giving people too much credit
<norc> That is the point.
<suchness> But the people that are would have seen that!
<suchness> And the people that didn't wouldn't care!
<norc> Except those that are not on #rubyonrails but are trying to help you regardless.
<jhass> suchness: you're missing the point entirely
Hounddog has joined #ruby
<suchness> jhass: I think you are.
<jhass> it's not about "people who care about crossposting", it's about not wasting people's time
<jhass> and that actually only applies to people who don't notice the crosspost
karapetyan has quit [Ping timeout: 250 seconds]
<suchness> jhass: Well, when I start wasting people time let me know.
<jhass> I did above
<suchness> Whatever
nocturn has joined #ruby
User458764 has joined #ruby
<nocturn> Hi, I'm trying to post a json string to a form field using curb, but it does not work (getting a 500 from Jetty). Is what I am doing possible?
<norc> nocturn: Show us your code please.
Vitor has joined #ruby
Jamo has quit [Disconnected by services]
jamo__ is now known as Jamo
krz has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
<jhass> nocturn: if you have access, the underlying error message of the 500 might be helpful too
A124 has joined #ruby
ismaelga has quit [Remote host closed the connection]
solenoids has quit [Ping timeout: 260 seconds]
gagrio has quit [Ping timeout: 260 seconds]
zwdr has quit [Quit: leaving]
ismaelga has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
<apeiros> suchness: you just did waste people's time and you have a horrible attitude about it too. it'd be very welcome if you fixed both.
ismaelga has quit [Remote host closed the connection]
tulak has joined #ruby
allcentu1 has joined #ruby
<suchness> I have a horrible attitude on this irc being more focuses on police work that actually helping people
<apeiros> suchness: if you don't like it, I can show you the door too. saves us some time.
<suchness> Especially when I clearly was considering the rules, and still had someone playing police.
<SylarRuby> Is there a rubyonrails channel? How to redirect a user, with devise, after they are registered but need to confirm? ie: user registers then a message saying they need to confirm their email address. I have added the :confirmable option.
<adaedra> ?rails SylarRuby
<ruboto> SylarRuby, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<SylarRuby> ruboto: ok
tkuchiki has joined #ruby
clauswit_ has joined #ruby
Hounddog has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
howdoi has quit [Quit: Connection closed for inactivity]
Hounddog has quit [Excess Flood]
suchness has left #ruby [#ruby]
Hounddog has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
clauswitt has quit [Ping timeout: 264 seconds]
mghaig has joined #ruby
<nocturn> norc: it is used in a chef resource: http://hastebin.com/wezayuculi.hs
solenoids has joined #ruby
joonty has quit [Quit: joonty]
gagrio has joined #ruby
wprice has joined #ruby
gagrio is now known as gagrio-mtg
kobain has joined #ruby
<jhass> nocturn: so no access to the actual error?
doddok has joined #ruby
mghaig has quit [Ping timeout: 244 seconds]
<nocturn> jhass, debug gives: < HTTP/1.1 100 Continue
<nocturn> < HTTP/1.1 500 Server Error
<jhass> nocturn: yeah, that's just "something went wrong"
<jhass> nocturn: nothing in the response body?
<nocturn> No, empty
<jhass> and no access to the server log?
Vitor has quit [Remote host closed the connection]
yeticry has quit [Read error: Connection reset by peer]
quazimodo has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
yeticry has joined #ruby
<nocturn> jhass: there is nothing in the server log about this (but that could be normal). It works if I do the same on the CLI with CURL but only when I inlcude a file for contentFile
sgambino has joined #ruby
tmtwd has joined #ruby
<jhass> nocturn: seriously? a server that isn't logging 500s? how shitty, seriously
yoongkang has quit [Remote host closed the connection]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> nocturn: but if you have a request to compare to, I'd get wireshark or mitmproxy and compare them
yardenbar has joined #ruby
yoongkang has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
neonalpine has joined #ruby
moeabdol has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mooe has quit [Quit: Connection closed for inactivity]
prasselpikachu has quit [Ping timeout: 240 seconds]
zoras has joined #ruby
yoongkang has quit [Ping timeout: 276 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
cubicme has quit [Ping timeout: 240 seconds]
red_horned_rihno has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
red_horned_rihno has quit [Max SendQ exceeded]
joonty has joined #ruby
griffindy has joined #ruby
neonalpine has quit [Ping timeout: 240 seconds]
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
prasselpikachu has joined #ruby
djcp has joined #ruby
heyimwill has joined #ruby
favadi has joined #ruby
tref has joined #ruby
sdfgsdfg has quit [Remote host closed the connection]
Melpaws has quit [Quit: Leaving.]
baweaver has joined #ruby
subscope has joined #ruby
Justin_ has joined #ruby
bruno- has joined #ruby
Justin_ has left #ruby [#ruby]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
hahuang65 has joined #ruby
gusTester has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
goodcodeguy has joined #ruby
PlasmaStar has quit [Ping timeout: 240 seconds]
zeljkof has quit [Ping timeout: 240 seconds]
bb010g has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 240 seconds]
n1ftyn8_ has quit [Ping timeout: 240 seconds]
amirpro has quit [Ping timeout: 240 seconds]
skmp_ has quit [Ping timeout: 240 seconds]
countryHick has quit [Ping timeout: 240 seconds]
mjc_ has quit [Ping timeout: 240 seconds]
bestie has quit [Ping timeout: 240 seconds]
nyandoge has quit [Ping timeout: 240 seconds]
danzilio has quit [Ping timeout: 240 seconds]
avdi has quit [Ping timeout: 240 seconds]
charles81 has quit [Ping timeout: 240 seconds]
pizzaops has quit [Ping timeout: 240 seconds]
pmarreck has quit [Ping timeout: 240 seconds]
gusTester has left #ruby [#ruby]
knowtheory has quit [Ping timeout: 240 seconds]
ELCALOR has quit [Ping timeout: 240 seconds]
bttf has quit [Ping timeout: 240 seconds]
MiracleBlue has quit [Ping timeout: 240 seconds]
skade has joined #ruby
amirpro has joined #ruby
Olipro has quit [Ping timeout: 240 seconds]
jrhorn has quit [Ping timeout: 240 seconds]
avdi has joined #ruby
skmp_ has joined #ruby
bestie has joined #ruby
pizzaops has joined #ruby
MiracleBlue has joined #ruby
danzilio has joined #ruby
n1ftyn8_ has joined #ruby
mjc_ has joined #ruby
nyandoge has joined #ruby
PlasmaStar has joined #ruby
tvw has joined #ruby
bb010g has joined #ruby
countryHick has joined #ruby
charles81 has joined #ruby
ELCALOR has joined #ruby
FooMunki has joined #ruby
zeljkof has joined #ruby
tref has quit [Quit: tref]
knowtheory has joined #ruby
pmarreck has joined #ruby
Olipro has joined #ruby
bttf has joined #ruby
bluOxigen has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrhorn has joined #ruby
yeticry has joined #ruby
machty has joined #ruby
howdoi has joined #ruby
mattwildig has joined #ruby
dmitch has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
dmitch has quit [Client Quit]
sameerynho has quit [Quit: Leaving]
haxrbyte_ has joined #ruby
kp666 has quit [Quit: Leaving]
sepp2k has joined #ruby
dmitch has joined #ruby
B1n4r10 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gagrio-mtg has quit [Ping timeout: 246 seconds]
haxrbyte has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
favadi has joined #ruby
joonty has quit [Quit: joonty]
griffindy has joined #ruby
tref has joined #ruby
roxtrongo has quit [Remote host closed the connection]
favadi has quit [Client Quit]
allcentu1 has quit [Ping timeout: 244 seconds]
malconis has joined #ruby
centrx has joined #ruby
mghaig has joined #ruby
favadi has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
roxtrongo has quit [Remote host closed the connection]
Jardayn has joined #ruby
roxtrongo has joined #ruby
joonty has joined #ruby
TomPeed has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
mghaig has quit [Ping timeout: 272 seconds]
gambl0re has quit [Ping timeout: 265 seconds]
roxtrong_ has joined #ruby
sankaber has joined #ruby
ekinmur has joined #ruby
diegoaguilar has joined #ruby
mbeasley_ has left #ruby ["WeeChat 0.4.2"]
arup_r has joined #ruby
allcentu1 has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
zoras has quit []
sankaber has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
<TTilus> nocturn: it might be logging errors to someplace else
<TTilus> that kinda behavior isnt all that rare
tyler-king has joined #ruby
allcentu1 has quit [Ping timeout: 246 seconds]
nertzy2 has joined #ruby
uri has joined #ruby
rodfersou is now known as rodfersou|lunch
atomical has joined #ruby
gagrio-mtg has joined #ruby
kies has quit [Ping timeout: 272 seconds]
SylarRuby has quit [Remote host closed the connection]
allcentu1 has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
atomical has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
tyler-king has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
Spami has quit [Quit: This computer has gone to sleep]
atomical has joined #ruby
yoongkang has joined #ruby
babblebre has joined #ruby
dopie has quit [Ping timeout: 272 seconds]
atomical has quit [Client Quit]
solocshaw has quit [Ping timeout: 246 seconds]
atomical has joined #ruby
SylarRuby has joined #ruby
whippythellama has joined #ruby
fgo has quit [Quit: WeeChat 1.3]
kobain has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
Xeago_ has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 265 seconds]
duckpuppy has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
SylarRuby has quit [Remote host closed the connection]
SylarRuby has joined #ruby
neonalpine has joined #ruby
roxtrongo has joined #ruby
Blaguvest has joined #ruby
system64 has joined #ruby
kobain has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
lukaszes has joined #ruby
PsychoBoB has joined #ruby
<PsychoBoB> hello rubbers
mistermocha has joined #ruby
<PsychoBoB> How I can to start a learn Ruby ?
Jtk-Lexus has joined #ruby
kaspergrubbe has joined #ruby
baweaver has joined #ruby
<norc> So I was trying to rebase, and blindly typed git rebase --skip - it seems that my changes in my branch are lost.
<Jtk-Lexus> Isis ?
monthy has joined #ruby
rdavila has joined #ruby
<norc> Can I simply rewind my HEAD back to a commit that I can see in git reflog?
ayonkhan_ has quit [Ping timeout: 244 seconds]
umgrosscol has joined #ruby
prestorium has quit [Quit: Leaving]
ayonkhan has joined #ruby
<Jtk-Lexus> norc you are a part of the Isis group ?
lurch_ has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
<norc> Oh sweet. Simply git reset did it in fact.
<norc> git is beginning to be fun
karapetyan has joined #ruby
<j416> Jtk-Lexus: not sure what you're getting at but if it's a joke it doesn't feel appropriate
northfurr has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
<Jtk-Lexus> isis the terrorist group
<j416> norc: search man git-config for missingCommitsCheck -- I have that set to warn, it's a good thing to avoid shooting yourself in the foot by accidentally removing lines in the todo editor (rebase list)
Spami has joined #ruby
<j416> norc: (somewhat unrelated)
pestle has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<j416> norc: ORIG_HEAD is where you were before you did the rebase so you can reset to that
<j416> norc: (git saves to ORIG_HEAD before starting rebase)
<jhass> !kick Jtk-Lexus troll elsewhere
Jtk-Lexus was kicked from #ruby by ruboto [troll elsewhere]
_blizzy_ has quit [Ping timeout: 240 seconds]
<jhass> ?links PsychoBoB
<j416> thanks jhass
<norc> jhass: Gotcha. I just manually reset --hard to the right commit.
<j416> works
tesuji has quit [Read error: Connection reset by peer]
<jhass> norc: http://sethrobertson.github.io/GitFixUm/fixup.html might be worth a bookmark ;)
pusewicz has quit [Quit: Bye! http://www.layer22.com]
rippa has joined #ruby
<j416> norc knows git from the core now so he doesn't need that guide.
<j416> :)
<j416> :D
yqt has joined #ruby
<norc> j416: Heh. Funny enough I just had to google to figure out about reflog -- the git reset --hard just came natural then.
<j416> norc: :)
<j416> point proven
gizmore has joined #ruby
grieve has quit [Quit: Leaving]
pandaant has joined #ruby
arthurix has joined #ruby
mattwildig has quit [Remote host closed the connection]
ESpiney has joined #ruby
kerunaru has quit [Quit: leaving]
<norc> jhass: Thank you, reading it now. :)
c0m0 has quit [Ping timeout: 240 seconds]
nertzy2 has quit [Quit: This computer has gone to sleep]
Z00t has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
ismaelga has joined #ruby
Z00t has joined #ruby
northfurr has quit [Quit: northfurr]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hostess_ is now known as hostess
beast has quit [Quit: Leaving]
avril14th has joined #ruby
be_erik has joined #ruby
norc has quit [Ping timeout: 246 seconds]
Jardayn has quit [Quit: Leaving]
Jardayn has joined #ruby
alienaut has quit [Ping timeout: 246 seconds]
stannard has joined #ruby
Jardayn has quit [Remote host closed the connection]
Jardayn has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
yardenbar has quit [Ping timeout: 255 seconds]
haxrbyte has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fxhound has joined #ruby
tmtwd has quit [Remote host closed the connection]
blue_deref has joined #ruby
be_erik has quit [Ping timeout: 264 seconds]
monthy has quit [Killed (Sigyn (Spam is off topic on freenode.))]
dhollinger has joined #ruby
Xzanron has quit [Quit: Leaving]
aganov has quit [Remote host closed the connection]
User458764 has joined #ruby
User458764 has quit [Client Quit]
grepwood has joined #ruby
Mia has quit [Read error: Connection reset by peer]
<grepwood> hello everyone
cjbischof_ has joined #ruby
Rickmasta has joined #ruby
<grepwood> how does one concatenate a file on the internet with ruby, when you are behind a firewall?
mistermocha has joined #ruby
<grepwood> derp, not firewall, I meant proxy
arthurix_ has joined #ruby
banister has joined #ruby
chrissonar has quit [Remote host closed the connection]
Rutix`away is now known as Rutix
alienaut has joined #ruby
kimegede has quit [Quit: Leaving...]
grill has joined #ruby
lukaszes has joined #ruby
arthurix has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
DelDotB has joined #ruby
stannard_ has joined #ruby
Z00t has quit [Ping timeout: 265 seconds]
mghaig has joined #ruby
stannard has quit [Ping timeout: 255 seconds]
alienaut has quit [Remote host closed the connection]
sanjayu has quit [Ping timeout: 240 seconds]
<centrx> grepwood, "Concatenate a file on the Internet"? What does that mean?
<grepwood> centrx, the same as $(curl http://somesite.com/file 2>/dev/null) means in bash
<centrx> grepwood, You mean retrieve a file?
dmitch has joined #ruby
<grepwood> sort of, I don't want to save it
<grepwood> I'd like to read an online file that contains sha1 and md5 sums of another file
<grepwood> the contents of said online file should be stored in memory such that they would not pollute the local storage
<tubbo> grepwood: you can just run `curl http://example.com`
<tubbo> it will output the contents to stdout
<tubbo> oh you mean with Ruby?
<grepwood> yes, of course with Ruby
SylarRub_ has joined #ruby
<tubbo> grepwood: `system 'curl http://example.com'` hahaha just kidding :D
<grepwood> yeah, I don't have a guarantee that each system has curl :)
polishdub has joined #ruby
<tubbo> grepwood: check out the Net::HTTP module, part of the stdlib...or there are a few other libraries like Faraday or Typhoeus you can use as an HTTP client
yoongkang has joined #ruby
<centrx> Yeah you can get more complicated too with HTTP clients
dopie has joined #ruby
<grepwood> centrx, I've googled for this last week and found out that open-uri is significantly slower than HTTP from stdlib, but loads easier to use
Channel6 has joined #ruby
<centrx> grepwood, So you're downloading many files at a time?
SylarRuby has quit [Ping timeout: 240 seconds]
mattwildig has joined #ruby
axl_ has joined #ruby
arup_r has quit [Remote host closed the connection]
be_erik has joined #ruby
Xeago has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
fxhound has quit [Quit: Leaving]
nfk|laptop has quit [Quit: yawn]
ejimz has joined #ruby
SylarRuby has joined #ruby
<grepwood> centrx, nope, just 2
<grepwood> one for md5 sum, one for sha1
<havenwood> The RubyConf stream is back up for today: http://confreaks.tv/videos/rubyconf2015-live-stream
<jhass> grepwood: did it prove to be too slow for your usecase, how did you benchmark that?
<centrx> grepwood, Okay then I highly doubt it's slower
darkxploit has joined #ruby
guillaume-rb has joined #ruby
karapetyan has quit [Remote host closed the connection]
<grepwood> I can't even get it up and running, I'm behind a corporate proxy which is quite painful, let me see if I got the benchmark (done by someone else) in my browsing history
<havenwood> grepwood: "OpenURI is an easy-to-use wrapper for net/http, net/https and net/ftp."
<jhass> grepwood: benchmark done by somebody else on some arbitrary problem is irrelevant to your problem
SylarRub_ has quit [Ping timeout: 240 seconds]
<jhass> grepwood: net/http and thus by induction open-uri should respect the http_proxy environment variable if set properly
_seanc_ has joined #ruby
<jhass> note it's lowercase http_proxy, a bit untypical for environment variables
Salehi has joined #ruby
<grepwood> yeah, I know that
<jhass> how about you state your actual problem with it then?
tkuchiki has quit [Remote host closed the connection]
<grepwood> right, here's the full story
<grepwood> we're using cookbooks to do automated setups
treehug88 has joined #ruby
pglombardo has joined #ruby
<grepwood> one setup for installing prestodb is very silly, it downloads the main tarball even though it might not be needed, it doesn't create symlinks to the current supported version of prestodb, nothing smart about the cookbook really
kies has joined #ruby
<grepwood> so I've decided to change it
<grepwood> first, the tarball should not be downloaded if it's already in chef's cache and it passes sha1 and md5 checks
Guest20998 is now known as thither
SteveC has joined #ruby
be_erik has quit [Quit: be_erik]
<grepwood> for that, I need the answers to sha1 and md5 checks provided by the prestodb download site, I'm already hashing the tarball locally to compare it against "true" values
be_erik has joined #ruby
<CustosLimen> hi
baweaver has joined #ruby
<CustosLimen> so I have ruby running with passenger
SteveC has left #ruby [#ruby]
<CustosLimen> sorry I mean gollum running with passenger
<CustosLimen> I want to add oauth2 in front of it
<CustosLimen> not sure how
mattwildig has quit [Remote host closed the connection]
<grepwood> secondly, no installation should be made if there is a symlink to a supported version of prestodb and it works
<grepwood> you can imagine how a lot of time can be wasted if you download a 400MB tarball over a 100KB/s link and then extract it
lurch_ has quit [Quit: lurch_]
patdohere has joined #ruby
maikowblue has joined #ruby
<jhass> CustosLimen: what do you mean with you want to add oauth2 in front of it
patdohere has quit [Max SendQ exceeded]
<grepwood> the third thing the cookbook does is it provides prestodb with credentials to other databases, this is fine and updating said credentials is the most common reason to run the cookbook
uri has left #ruby ["Textual IRC Client: www.textualapp.com"]
<CustosLimen> jhass, I want only people who has oauth credentials with slack to be able to access gollum
freerobby has joined #ruby
<jhass> CustosLimen: so you want to do third party authentication via slacks API
<CustosLimen> jhass, well with oauth2 from slack
sinkensabe has quit [Remote host closed the connection]
lurch_ has joined #ruby
mghaig has quit [Ping timeout: 250 seconds]
<jhass> CustosLimen: gollumn looks like a sinatra app, google omniauth + sinatra and then omniauth + slack
marr has quit [Ping timeout: 244 seconds]
<CustosLimen> jhass, ok let me try that
kp666 has joined #ruby
rodfersou|lunch is now known as rodfersou
mustmodify has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<CustosLimen> jhass, thanks
skweek has quit [Ping timeout: 260 seconds]
<jhass> CustosLimen: note that'll require quite some modification to gollumn, it doesn't look like it's build for doing much authentication
<bougyman> anyone @rubyconf?
<jhass> grepwood: thanks for the background story, but what's your actual issue?
<mustmodify> I'm writing a presenter class whose purpose is to receive an array of labels, the width available for each one, and will return the appropriate font size and, if needed, how to wrap those lines. It will take something like the link below and make sure all the text is the same size and wrapped attractively.
<mustmodify> http://artisan.physioagereporting.com/spectrum.svg?ranges=lbl:Stiff%20Arteries%20or%20Dehydration,cls:B,rng:%3C65|lbl:Optimal,cls:O,rng:65-75|lbl:Healthy,cls:H,rng:75-85|lbl:Borderline%20Hypertension,cls:B,rng:85-90|lbl:Hypertension,cls:D,rng:90-120|lbl:Severe%20Hypertension,cls:C,rng:120-130&style=narrow
cyb3rspy has joined #ruby
<mustmodify> So the interface I'm looking at is LabelPresenter.new(labels: [], range_width: <in px>)
<grepwood> jhass, I would like to download 2 files (containing those hash sums) with Net:HTTP and store their contents as variables, rather than store them in storage
<grepwood> also my bias towards Net::HTTP stems from this particular benchmark
<mustmodify> and the deliverables would be font size and how to wrap each line.
banister has quit [Read error: Connection reset by peer]
clauswit_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> grepwood: I'll be blunt: the bias is stupid for your usecase. But anyway, I imagine you tried something and it doesn't work. What did you try and how does it fail?
krak3n has joined #ruby
<mustmodify> Question: does it make more sense to have presenter.wrap(original_label) return a single label or presenter.wrapped_labels return an array of arrays... that is, an array of wrapped lines?
DelDotB has quit [Quit: DelDotB]
diegoaguilar has quit [Ping timeout: 240 seconds]
<mustmodify> or does it not matter and I'm overthinking again?
<grepwood> jhass, I tried to start a connection with repo1.maven.org (which is where the files are located) with appropriate proxy settings put in place, the result was irb spewing errors at me because I wrote it wrong
chrisarc1nd has quit [Remote host closed the connection]
stannard_ has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<jhass> grepwood: do you want help?
mary5030 has joined #ruby
<grepwood> jhass, yes please, I'm really clueless
<jhass> grepwood: then stop being so awfully vague
dlitvak_ has joined #ruby
<jhass> I repeat, show what you tried and the error it gives
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<grepwood> I'll try to repeat the codes from friday and come back
vdamewood has quit [Quit: Life beckons.]
rdark has quit [Ping timeout: 250 seconds]
FilipeChagas has joined #ruby
araujo_ has joined #ruby
<mustmodify> ping
naftilos76 has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
<adaedra> timeout.
goodcodeguy has quit [Ping timeout: 244 seconds]
<mustmodify> lol
<mustmodify> thanks
timonv has quit [Ping timeout: 240 seconds]
FilipeChagas has quit [Client Quit]
favadi has quit [Read error: Connection reset by peer]
thbar has joined #ruby
naftilos76 has quit [Max SendQ exceeded]
arup_r has joined #ruby
arup_r is now known as Guest52384
naftilos76 has joined #ruby
mistermocha has joined #ruby
araujo has quit [Ping timeout: 265 seconds]
naftilos76 has quit [Max SendQ exceeded]
Pupp3tm4st3r has quit [Remote host closed the connection]
dlitvak has joined #ruby
malconis has quit [Remote host closed the connection]
naftilos76 has joined #ruby
grilled-cheese has joined #ruby
malconis has joined #ruby
thbar has quit [Client Quit]
yalue has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
malconis has quit [Read error: Connection reset by peer]
ldnunes has quit [Ping timeout: 240 seconds]
yalue has quit [Max SendQ exceeded]
haxrbyte has quit [Read error: Connection reset by peer]
dlitvak__ has joined #ruby
naftilos76 has quit [Max SendQ exceeded]
haxrbyte has joined #ruby
yalue has joined #ruby
Z00t has joined #ruby
naftilos76 has joined #ruby
diegoaguilar has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
Z00t has quit [Read error: Connection reset by peer]
dlitvak_ has quit [Ping timeout: 255 seconds]
dlitva___ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
yalue has quit [Max SendQ exceeded]
pdoherty has quit [Ping timeout: 250 seconds]
_seanc_ has joined #ruby
yalue has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
naftilos76 has quit [Max SendQ exceeded]
Z00t has joined #ruby
diegoaguilar has joined #ruby
teclator has quit [Quit: Lost terminal]
naftilos76 has joined #ruby
matcz has quit [Ping timeout: 240 seconds]
mghaig has joined #ruby
mark1 has quit [Quit: Leaving.]
dlitvak has quit [Ping timeout: 264 seconds]
dlitvak_ has joined #ruby
yalue has quit [Max SendQ exceeded]
EllisTAA has joined #ruby
yalue has joined #ruby
matcz has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
haxrbyte has quit [Ping timeout: 264 seconds]
diegoaguilar has joined #ruby
dlitvak__ has quit [Ping timeout: 260 seconds]
yalue has quit [Max SendQ exceeded]
dlitvak has joined #ruby
malconis has joined #ruby
naftilos76 has quit [Max SendQ exceeded]
SylarRuby has quit [Remote host closed the connection]
IrishGringo has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
dlitva___ has quit [Ping timeout: 240 seconds]
naftilos76 has joined #ruby
yalue has joined #ruby
diegoaguilar has joined #ruby
sinkensabe has joined #ruby
yalue has quit [Max SendQ exceeded]
malconis has quit [Remote host closed the connection]
yalue has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
naftilos76_ has joined #ruby
sinkensa_ has joined #ruby
yalue has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
malconis has joined #ruby
arthurix has joined #ruby
<mustmodify> or am I dumb to be creating a presenter for this? :)
RegulationD has joined #ruby
<adaedra> presenter?
<adaedra> rails?
yalue has joined #ruby
naftilos76_ has quit [Client Quit]
dlitvak_ has quit [Ping timeout: 276 seconds]
yalue has quit [Max SendQ exceeded]
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
Channel6 has quit [Quit: Leaving]
naftilos76 has quit [Ping timeout: 244 seconds]
yalue has joined #ruby
<ytti> why does 'for' exist in ruby?
<ytti> when might you want to use it?
yalue has quit [Max SendQ exceeded]
<centrx> ytti, It's an alternative for #each
naftilos76 has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
<ytti> centrx, not really
<ytti> i mean yeah, it's iterator
sinkensabe has quit [Ping timeout: 250 seconds]
arthurix_ has quit [Ping timeout: 246 seconds]
<ytti> but saying it's alternative to method is bit weird
sinkensabe has joined #ruby
diegoaguilar has joined #ruby
yalue has joined #ruby
<centrx> ytti, for x in y is rewritten by the interpreter to y.each { |x|
<ytti> ooh?
<centrx> ytti, My understanding is it's identical, just syntactic sugar
mattwildig has joined #ruby
<ytti> i'd say MGS
naftilos76 has quit [Client Quit]
<ytti> syntactic MGS
<ytti> or maybe even worse
Hounddog has quit [Remote host closed the connection]
<centrx> ytti, Yeah it's generally not used
sinkensa_ has quit [Ping timeout: 240 seconds]
<apeiros> there's a difference - for has no separate lvar context
DoubleMalt has quit [Remote host closed the connection]
naftilos76 has joined #ruby
malconis has quit [Read error: Connection reset by peer]
malconis_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
treehug88 has quit [Ping timeout: 252 seconds]
agentmeerkat has joined #ruby
dfockler has joined #ruby
Salehi has quit [Quit: Leaving]
be_erik has quit [Ping timeout: 264 seconds]
k3asd` has quit [Ping timeout: 260 seconds]
agentmeerkat has quit [Client Quit]
theRoUS has left #ruby ["Off to another part of the maze of twisty little passages"]
pabs_ is now known as pabs
<grepwood> jhass, okay, I got some progress with open-uri
tulak has quit [Ping timeout: 246 seconds]
<ruboto> grepwood, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<grepwood> b-but, raw view doesn't have ads
<jhass> the bot doesn't care :P
<mustmodify> adaedra: no. It's not rails. Actually it's running on a very very light-weight framework, almost just rack.
<adaedra> b-but, raw view doesn't have coloration.
<jhass> and few people will actually pay attention to whether you posted the raw view or not
beauby has joined #ruby
<adaedra> so many people writing their own web framework :p
lxsameer has joined #ruby
jackjackdripper has joined #ruby
<grepwood> adaedra, so does the actual paste
ismaelga has quit [Remote host closed the connection]
<adaedra> No colors at all? D:
<adaedra> This is madness.
polishdub has quit [Remote host closed the connection]
nrlad has joined #ruby
Xeago has joined #ruby
<nrlad> join
<grepwood> it wouldn't make sense to apply ruby coloration to irb output
<nrlad> q
<grepwood> but rather to just ruby code and nothing else
nrlad has left #ruby [#ruby]
stamina has quit [Quit: WeeChat 1.3]
<jhass> uh, scary, the proxy handling is all over the place
SCHAAP137 has quit [Remote host closed the connection]
<jhass> half in open-uri, half in uri?
solars has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
<grepwood> both done with open-uri
stan has quit [Ping timeout: 240 seconds]
<grepwood> difference: https broken, http working
<adaedra> grepwood: note that i'm not 100% serious in these messages, text may not render that correctly.
<adaedra> ;)
synthroid has quit [Remote host closed the connection]
<grepwood> you can tell I'm too tired to look out for that :)
<jhass> grepwood: so, from a brief glance at the code, open-uri doesn't support https proxies, for whatever silly reason (there's none really, basically just a missing check)
<jhass> grepwood: so apparently you want to do something like https://www.ruby-forum.com/topic/4404752#1071829 just please make sure to just drop the stupid verfiy_mode thingies
<grepwood> oh god, thanks
<jhass> well, or use a higher level curl interface, like typhoeus or faraday with the curb or typhoeus backend
<jhass> but that adds external gem dependencies
<adaedra> yorickpeterse: I'm going to use oga <3
TeresaP has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
<jhass> welp, actually nvm, that probably won't work either
mustmodify has left #ruby [#ruby]
Guest52384 is now known as arup_r
tkuchiki has joined #ruby
polishdub has joined #ruby
<jhass> grepwood: actually I'm not sure there's any way to use an HTTPS proxy from looking at the code, it always wants to do the proxy handshake over plain http
Xeago has joined #ruby
<jhass> or does it? this code is confusing :/
pdoherty has joined #ruby
beauby has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
[Butch] has joined #ruby
<grepwood> jhass, it is hella confusing
<grepwood> but
haxrbyte has joined #ruby
Haradani has joined #ruby
jwaldrip has joined #ruby
<jhass> mh, no actually it does try a TLS handshake when use_ssl is true on the proxy connection already
baweaver has joined #ruby
_stu_ has joined #ruby
<ruboto> grepwood, as I told you already, please use https://gist.github.com
tkuchiki has quit [Ping timeout: 250 seconds]
Haradani has left #ruby [#ruby]
Jardayn has quit [Quit: Leaving]
<jhass> grepwood: yeah, actually it should even work when you pass the proxy & use_ssl options to the Net::HTTP.new directly
thbar has joined #ruby
mistermocha has joined #ruby
rdavila has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has quit [Ping timeout: 255 seconds]
<grepwood> jhass, I shouldn't be passing proxy like this
<grepwood> we have a couple dozen proxies, this one sits in Finland, so it's going to produce poor results for datacenters further away from it
marr has joined #ruby
treehug88 has joined #ruby
<jhass> grepwood: let me type up an untested thingy
<grepwood> the most optimal way is to inherit proxy settings from /etc/chef/client.rb
baweaver has quit [Ping timeout: 240 seconds]
mattwildig has quit [Remote host closed the connection]
rdavila has joined #ruby
<grepwood> jhass, you helped a lot, thank you so much :)
stephenh has joined #ruby
haylon has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
ruurd has joined #ruby
<stephenh> hello, random question :) it seems that ruby/pry can't read 'C:\Windows\System32\CertSrv', trying to glob that dir tells me it doesn't exist. Has anyone come across that or other directories that ruby can't seem to find? It doesn't seem to be a permissions things because when I do the same thing with cmd or powershell I can view the dir contents
<stephenh> Quite a random question for a Monday, but I am stumped at this point as to why I can't read it
<ruurd> stephenh rights?
be_erik has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
<ruurd> what happens if you stat it?
be_erik has quit [Client Quit]
xcesariox has joined #ruby
Xeago has joined #ruby
<jhass> grepwood: I think something simple like this should work too: http://p.jhass.eu/y.rb As said untested, and no idea how to read settings from Chef, but it should make clear on how to feed them to Net::HTTP
arup_r has quit []
<stephenh> ruurd: same deal:
<stephenh> No such file or directory - /Windows/System32/CertSvc
ramfjord has joined #ruby
<ruurd> is it hidden or system or something other...
<stephenh> when I glob /Windows/System/Cert*, I can see a bunch of other files, no CertSvc dir
Mon_Ouie has quit [Ping timeout: 260 seconds]
<stephenh> let me check that
haylon has left #ruby [#ruby]
rehat_ has joined #ruby
<stephenh> not hidden
<eam> stephenh: I believe those are magic paths in windows
<stephenh> eam: that's what I was thinking
<eam> they change based on the architecture of the accessing binary
<stephenh> so I globbed /windows/** to a file and couldn't find it there either
haxrbyte has quit [Ping timeout: 272 seconds]
<eam> try using a 32bit ruby
Xeago_ has joined #ruby
<stephenh> eam: platform = i386-mingw32
thbar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> then try using a 64bit ruby ;)
<stephenh> :p
<stephenh> I'm using Chef's embedded ruby
Xeago has quit [Ping timeout: 240 seconds]
<eam> if you dig around I think you'll find the actual paths that are reachable via any architecture, which these names map to
thbar has joined #ruby
<stephenh> was thinking the same - just not sure how to go about that
ismaelga has joined #ruby
ismaelga has quit [Remote host closed the connection]
<stephenh> spent some time googling about before asking
be_erik has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<eam> stephenh: look in Windows\SysWOW64
kies has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
araujo_ has quit [Quit: Leaving]
Jardayn has joined #ruby
pandaant has quit [Remote host closed the connection]
PsychoBoB has left #ruby ["Leaving"]
joonty has quit [Quit: joonty]
bb010g has quit [Quit: Connection closed for inactivity]
nietzschette has joined #ruby
Xeago_ has quit [Remote host closed the connection]
govg has joined #ruby
codecop has quit [Remote host closed the connection]
Nahra has quit [Read error: Connection reset by peer]
CodingWolf has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
eminencehc has joined #ruby
CodingWolf has joined #ruby
SCHAAP137 has joined #ruby
umgrosscol has quit [Remote host closed the connection]
system64 has quit [Quit: Connection closed for inactivity]
howdoi has quit [Quit: Connection closed for inactivity]
c_nick has joined #ruby
<nietzschette> hi ya'll. I appear to have run into an issue when writing and reading binary data from files. my unpacked strings occationally omit values or have unexpectedly large values. packing and unpacking strings works fine, it's just if I pack, write to a file, read from a file, the resulting array appears corrupted
<c_nick> anyone heard of nc proxy?
<adaedra> code, nietzschette?
roxtrongo has joined #ruby
be_erik has quit [Ping timeout: 264 seconds]
<nietzschette> . . . it's long an complicated . . . i'm using IO.binwrite and IO.binread
<adaedra> try to make a minimal example then
Z00t has quit [Ping timeout: 250 seconds]
<nietzschette> mmmk, gimme moments
<adaedra> it's hard to tell what's wrong with nothing
FooMunki has quit [Quit: FooMunki]
tjohnson has joined #ruby
roxtrongo has quit [Read error: Connection timed out]
synthroid has quit [Ping timeout: 244 seconds]
jhn has joined #ruby
ruurd has joined #ruby
mghaig has quit [Ping timeout: 260 seconds]
<ytti> problem with minimal examples if that they work, then i hav to realise that my shitty code is broken
jackjackdripper has quit [Quit: Leaving.]
mghaig has joined #ruby
djanatyn has joined #ruby
yoongkang has joined #ruby
<eam> well, this is just the nature of debugging, right? Once you break everything into minimal examples of where you think the problem is, you'll find the problem
mesamoo has quit [Excess Flood]
<eam> or you find the implementation has a bug, or unexpected behavior, which isn't that uncommon either
<nietzschette> yeah, i've already re-written the code once and the issue presists. it's wierd because i don't know if it's because of new machine or new code
mesamoo has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
<grilled-cheese> howdy, eam I think you were the one the other day I talked with about using ruby to get local account SID
<grilled-cheese> just wanted to share back my solution for local user data
<ytti> eam, it was bad attempt at joke
<eam> ytti: :)
<eam> grilled-cheese: cool!
<eam> net user eh
grepwood has quit [Quit: Leaving]
Pumukel has quit [Ping timeout: 246 seconds]
hashpuppy has joined #ruby
<grilled-cheese> not ideal, but it works
<eam> windows ¯\_(ツ)_/¯
nettoweb has joined #ruby
sinkensabe has joined #ruby
<grilled-cheese> the tricky part was getting the profile directories
<grilled-cheese> since you can only get that info from the registry referenced by SID
<eam> yeah that looks pretty obnoxious
yoongkang has quit [Ping timeout: 246 seconds]
<eam> is a profile directory the windows equiv of ~?
<grilled-cheese> yep
<eam> sigh
blueOxigen has joined #ruby
<grilled-cheese> net user has a place to provide an override, but it’s empty if using defaults
mesamoo has quit [Ping timeout: 260 seconds]
Peg-leg has quit [Quit: Leaving.]
<grilled-cheese> this solution pulled the right place regardless
towski_ has joined #ruby
karapetyan has joined #ruby
<eam> rad
<grilled-cheese> yep, just wanted to share the solution in case somebody else came along needing something similar
tkuchiki has joined #ruby
<grilled-cheese> it’s the heart of a puppet module I put together
bluOxigen has quit [Ping timeout: 260 seconds]
<eam> puppet and windows together; I don't envy your job :)
senayar has quit []
be_erik has joined #ruby
tom_lowndes has joined #ruby
tulak has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
h99h9h88 has joined #ruby
blaxter has quit [Quit: foo]
<h99h9h88> Is anyone else at rubyconf right now?
dn5 has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
shinnya has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
yardenbar has joined #ruby
pietr0 has joined #ruby
<grilled-cheese> eam: I wrote the windows part for general usage (not my own)
TomyWork has quit [Ping timeout: 260 seconds]
synthroid has quit [Client Quit]
tom_lowndes has quit [Quit: Textual IRC Client: www.textualapp.com]
<grilled-cheese> I keep one windows box in my puppet test lab to be sure I don’t do something with hiera that’s going to cause an issue if we needed to add it for some reason
atomical_ has joined #ruby
cjbischof_ has quit [Quit: Textual IRC Client: www.textualapp.com]
atomical_ has quit [Client Quit]
krak3n has quit [Ping timeout: 260 seconds]
atomical_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
jwaldrip_ has joined #ruby
<nietzschette> oh
<adaedra> ho ho ho – Santa Claus
<nietzschette> okay, i'm an idiot and was somehow typed 'write' and somehow thought i typed 'binwrite'
<adaedra> good thing with minimal examples: they can make you question your code.
atomical has quit [Ping timeout: 255 seconds]
M-Kodo has joined #ruby
johnzorn has quit [Ping timeout: 276 seconds]
Kabaka has joined #ruby
<nietzschette> yes. yes. thanks again freenode, may your guidance and wisdom ever illuminate mine path
Voker57 has joined #ruby
<eam> nietzschette: maybe IO.binmode your descriptors to prevent similar issues
jwaldrip has quit [Ping timeout: 276 seconds]
<eam> easier to set such as an attribute on the handle rather than worrying over every method that does i/o
<nietzschette> that's good advice, thanks
suchness has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
cwong_on_irc has joined #ruby
amincd has joined #ruby
<amincd> Can someone explain to me what this: "puts Inside_one::CONST.call" means in the following page: http://www.tutorialspoint.com/ruby/ruby_operators.htm\
<amincd> what is .call calling?
A124 has quit [Quit: '']
krz has quit [Quit: WeeChat 1.2]
<ytti> [1] pry(main)> k = Proc.new { 1 +1 }
<ytti> => #<Proc:0x00000003c370c8@(pry):1>
<ytti> [2] pry(main)> k.call
<ytti> => 2
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vigintas1 has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<amincd> ytti: I'm still confused. Is it the size of the array?
vigintas has quit [Ping timeout: 244 seconds]
vigintas1 is now known as vigintas
<ytti> amincd, it's a proc, which is stored in a variable and called upon later
<jhass> amincd: CONST = proc {' in there'}
<jhass> amincd: it calls that proc
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
bluOxigen has joined #ruby
speakingcode has joined #ruby
thbar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
grill has joined #ruby
<amincd> so .call calls the proc of a class?
<amincd> maybe I shouldn't be asking these newbie questions here
<jhass> no worries, they're fine
<jhass> a Proc is a regular object
<jhass> this one is assigned to a Constant
<jhass> the constant is called CONST and inside the namespace Inside_one
baweaver has joined #ruby
FooMunki has joined #ruby
<jhass> so "of a class" doesn't make too much sense, Proc's aren't associated to anything in particular, they just may or may not be assigned to things, since they're regular objects
blueOxigen has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
SenpaiSilver has joined #ruby
araujo has joined #ruby
<amincd> so {some constant}.call calls its value?
ruurd has quit [Client Quit]
mrtomme has quit [Ping timeout: 260 seconds]
mrtomme has joined #ruby
j4cknewt has joined #ruby
<jhass> no, .call is a method on Proc which invokes it
baweaver has quit [Ping timeout: 240 seconds]
<jhass> like in "foo".size and X = "foo"; X.size both call String#size, proc { 1+1 }.call and X = proc { 1+1 }; X.call both call Proc#call
skweek has joined #ruby
djbkd has joined #ruby
ruurd has joined #ruby
<eam> >> a_proc = ->{"this is " + "some code"}; [a_proc.inspect, a_proc.call]
<ruboto> eam # => ["#<Proc:0x411b3a8c@/tmp/execpad-a2614f2cf6e3/source-a2614f2cf6e3:2 (lambda)>", "this is some code"] ...check link for more (https://eval.in/469825)
Encapsulation has joined #ruby
tref has quit [Quit: tref]
EllisTAA has quit [Quit: EllisTAA]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hs366 has quit [Quit: Leaving]
TomPeed has quit [Quit: Textual IRC Client: www.textualapp.com]
synthroid has joined #ruby
dfockler has quit [Ping timeout: 244 seconds]
mghaig has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
last_staff has quit [Read error: Connection reset by peer]
Z00t has joined #ruby
prestorium has joined #ruby
<gregf_> >> proc { "this is " + "some code" }.call
<ruboto> gregf_ # => "this is some code" (https://eval.in/469830)
RegulationD has quit [Remote host closed the connection]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alexherbo2 has joined #ruby
htmldrum has joined #ruby
atomical has joined #ruby
mghaig has joined #ruby
leafybas_ has joined #ruby
DelDotB has joined #ruby
TomPeed has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
mary5030 has joined #ruby
DelDotB has left #ruby [#ruby]
be_erik has quit [Quit: be_erik]
vigintas has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
terminalrecluse has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
<gregf_> amincd: have you used another language before?
be_erik has joined #ruby
eminencehc has joined #ruby
<amincd> gregf_: yes, PHP, a little C++, some Java
leafybasil has quit [Ping timeout: 272 seconds]
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
iateadonut has quit [Quit: Leaving.]
leafybas_ has quit [Ping timeout: 272 seconds]
rakm has joined #ruby
bMalum has quit [Quit: bMalum]
rakm has quit [Client Quit]
be_erik has quit [Ping timeout: 240 seconds]
_seanc_ has quit [Quit: _seanc_]
TeresaP has quit [Ping timeout: 246 seconds]
bMalum has joined #ruby
tak1n has joined #ruby
umgrosscol has joined #ruby
karapetyan has joined #ruby
roxtrongo has joined #ruby
arup_r_ has joined #ruby
baweaver has joined #ruby
trav408 has joined #ruby
mistermo_ has joined #ruby
tak1n has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
amclain has joined #ruby
arup_r_ has quit [Client Quit]
baweaver has joined #ruby
<havenwood> Anything better to call them than "pretzel-tailed methods?"
<gregf_> amincd: PHP, ok. well JAVA/C++ would'nt have it i guess :/
rgtk has joined #ruby
axsuul has joined #ruby
roxtrongo has quit [Ping timeout: 246 seconds]
<gregf_> amincd: but yeah, in PHP its equivalent would be something like an anonymous function i guess :|
unknowns2k2 has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Remote host closed the connection]
<jhass> Java 7 has lambdas, sort of
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 272 seconds]
<amincd> yeah I'm starting to get it now. I find I grasp things only when I use them, so that's what I'm trying to do
<gregf_> amincd: $a = function(array $foo = array()){ return array_map(function($v){ return $v * $v; }, $foo); }; var_dump($a(array(1,2,3))); <== in php
ruurd has quit [Quit: ZZZzzz…]
<gregf_> amincd: proc { |*arr| arr.map { |v| v * v } }.call(1,2,3) <== this is the ruby equivalent. *se, so less code*
Musashi007 has joined #ruby
jamesaxl has joined #ruby
thbar has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nettoweb has joined #ruby
mistermocha has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
Ilyes512 has joined #ruby
gregf_ has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
mesamoo has joined #ruby
gregf_ has joined #ruby
<amincd> gregf_: thanks
strgbrew has joined #ruby
strgbrew has quit [Max SendQ exceeded]
Guest97 has joined #ruby
zotherstupidguy has quit [Read error: Connection reset by peer]
rakm has joined #ruby
zotherstupidguy has joined #ruby
amclain has quit [Quit: Leaving]
c_nick has left #ruby [#ruby]
DelDotB has joined #ruby
zotherstupidguy has left #ruby [#ruby]
darkxploit has quit [Ping timeout: 255 seconds]
yalue has quit [Quit: return 0;]
strgbrew has joined #ruby
strgbrew has quit [Max SendQ exceeded]
tref has joined #ruby
lukaszes has joined #ruby
yalue has joined #ruby
<shevy> even less code if you use one character for variables :D
unknowns2k2 has quit [Quit: unknowns2k2]
<havenwood> shevy: ->(*a){a.map &:abs2}[1,2,3]
troulouliou_div2 has quit [Ping timeout: 264 seconds]
<shevy> hehe
B1n4r10 has quit [Ping timeout: 240 seconds]
casadei has joined #ruby
asianMike has joined #ruby
neonalpine has quit [Remote host closed the connection]
strgbrew has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> ack
<shevy> we got Struct#dig
robbyoconnor has quit [Quit: Konversation terminated!]
<havenwood> shevy: I was glad to see OpenStruct and Struct dig'n!
<apeiros> diggediding!
<havenwood> shevy: Though it's not been merged, right?
beanHolez has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
darkxploit has joined #ruby
Coldblackice_ has joined #ruby
kinduff has joined #ruby
lurch_ has quit [Quit: lurch_]
<amincd> gregf_: so in your ruby example, could I assign that proc to a variable (e.g. a = proc{...}), and then call it (e.g. a.call(1,2,3))?
<havenwood> amincd: Try it!
<havenwood> amincd: $ irb
<havenwood> amincd: Know about Ruby's REPLs?
chipotle has joined #ruby
<havenwood> ?pry
<ruboto> Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<shevy> havenwood dunno, I just read through the changelog https://github.com/ruby/ruby/blob/trunk/ChangeLog#L10
<shevy> I don't want to wait for xmas
s2013 has joined #ruby
asdfjkh has joined #ruby
<havenwood> shevy: Ah, nice.
ruby-lang155 has joined #ruby
<amincd> havenwood: I don't
ta has joined #ruby
spider-mario has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
<havenwood> amincd: A Read Eval Print Loop (REPL) lets you eval code and see the result then loop and do it again.
be_erik has joined #ruby
<havenwood> amincd: IRB ships with Ruby. You can run it from your console with `irb`.
jwaldrip__ has joined #ruby
chipotle has quit [Max SendQ exceeded]
<havenwood> amincd: Pry is a gem that is a popular IRB alternative. You can install it with `gem install pry` then run it from your console with `pry`.
darkf has quit [Quit: Leaving]
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
chipotle has joined #ruby
<havenwood> amincd: From the REPL you can try out code and get results quickly. Type `help` to learn more or `exit` to leave.
<havenwood> amincd: If you have Ruby installed, try: irb
<havenwood> amincd: Then for example: 1 + 1
<havenwood> amincd: Or the proc example you asked about.
jwaldrip_ has quit [Ping timeout: 255 seconds]
mattwildig has joined #ruby
<havenwood> amincd: Know what a gem is?
rgtk_ has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
lemur has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
be_erik has quit [Ping timeout: 264 seconds]
<havenwood> Ruby ships with RubyGems, which provides the `gem` command to manage Ruby packages.
momomomomo has joined #ruby
amclain has joined #ruby
asdfjkh has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<amincd> havenwood: thanks
<havenwood> amincd: no prob, yell if you have questions
jackjackdripper has joined #ruby
<amincd> havenwood: cheers, will do
be_erik has joined #ruby
azul1 has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
azul1 has quit [Remote host closed the connection]
<tejasmanohar> what kinda looop / iteration pattern does `x.step do |i|`create?
Azulinho has quit [Remote host closed the connection]
<tejasmanohar> where x is a #, say 1
<tejasmanohar> is this commonly used for array iteration?
<apeiros> &ri Integer#step @tejasmanohar
peppers has joined #ruby
mistermocha has quit [Remote host closed the connection]
<tejasmanohar> gotcha, trying to figure out what happens when no limit is specified
<tejasmanohar> looking there...
<havenwood> >> 1.step.size
<ruboto> havenwood # => Infinity (https://eval.in/469852)
<amincd> irb is useful :)
jackjackdripper has quit [Client Quit]
<tejasmanohar> got it, and then just break out and whatnot
<tejasmanohar> yeah
<ytti> who uses irb
jackjackdripper has joined #ruby
<ytti> pry 4tw
<havenwood> ytti: irb users
<apeiros> people who didn't install pry?
<havenwood> ytti: ;)
baweaver has quit [Remote host closed the connection]
mistermocha has joined #ruby
<havenwood> One step unto infinity.
Azulinho has joined #ruby
tvw has joined #ruby
duckpupp1 has joined #ruby
Yzguy has joined #ruby
h99h9h88 has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyler-king has joined #ruby
dotix has joined #ruby
dotix has joined #ruby
leafybasil has joined #ruby
wilsonc91 has joined #ruby
_djbkd has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
tyler-king has quit [Client Quit]
h99h9h88 has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
grilled-cheese has left #ruby [#ruby]
djbkd has quit [Ping timeout: 276 seconds]
karapetyan has quit [Remote host closed the connection]
mary5030 has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
YaknotiS has quit [Read error: Connection reset by peer]
zeroDivisible has joined #ruby
karapetyan has joined #ruby
<amincd> can I see the last program in IRB with a shortcut? Like the way you can see the last terminal command by pressing UP?
thbar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> amincd: you can see the last line by pressing up
kinduff has joined #ruby
<apeiros> and you can access all lines stored in the history via Readline::HISTORY. how long that is depends on your config.
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
neonalpine has joined #ruby
<apeiros> and in pry there's the `hist` command
dlitvak_ has joined #ruby
<amincd> apeiros: up doesn't work for me
htmldrum has quit [Ping timeout: 244 seconds]
<amincd> it shows ^[[A
<apeiros> then you've for whatever reason an irb without readline
gusTester has joined #ruby
<amincd> I see
skweek has joined #ruby
<apeiros> IMO just install pry
<apeiros> easier than figuring out why you don't have readline in your irb.
_djbkd has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
<amincd> I'll just use the old fashioned: ruby [filename]
bruno- has joined #ruby
podman has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
blueOxigen has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
mattwildig has joined #ruby
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
Z00t has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
yoongkang has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
prestorium has quit [Remote host closed the connection]
be_erik has quit [Quit: be_erik]
skweek has quit [Ping timeout: 246 seconds]
naftilos76 has quit [Quit: Αποχώρησε]
<shevy> readline is great, you should install it amincd
<amincd> shevy: ok
chipotle has quit [Quit: cheerio]
yoongkang has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
dlitvak has joined #ruby
<havenwood> amincd: You could install readline then rebuild Ruby, or install rlwrap and use irb with `rlwrap irb` or better yet `gem install pry pry-doc` and use `pry`.
<amincd> havenwood: I'm pretty wedded to irb
symm- has joined #ruby
tref has quit [Quit: tref]
tvw has quit []
ekinmur has joined #ruby
<havenwood> amincd: Why?
tvw has joined #ruby
bMalum has quit [Quit: bMalum]
<amincd> havenwood: I'm joking. But what's the advantage of pry? Does it use the same commands?
rdavila has joined #ruby
baweaver has quit [Remote host closed the connection]
<amincd> same commands as irb I mean
mghaig has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
<havenwood> amincd: It's similar but has automatic indentation, syntax highlighting, code introspection, etc.
<havenwood> amincd: It's as easy to use as irb.
<havenwood> amincd: Just start with Pry.
mghaig has joined #ruby
dlitvak_ has quit [Ping timeout: 272 seconds]
<amincd> havenwood: ok
ekinmur has quit [Client Quit]
<shevy> well they have to be able to interprete the same instructions
<shevy> if it is valid ruby code :)
<amincd> shevy: that's true!
TDJACR has quit [Ping timeout: 246 seconds]
shinnya has joined #ruby
OS-18137 has joined #ruby
asianMike has quit [Remote host closed the connection]
ekinmur has joined #ruby
OS-18137 has left #ruby [#ruby]
beanHolez has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
sepp2k has joined #ruby
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
DEA7TH has joined #ruby
beanHolez has joined #ruby
amincd has quit [Quit: Page closed]
momomomomo has quit [Ping timeout: 255 seconds]
last_staff has joined #ruby
DEA7TH has quit [Client Quit]
tref has joined #ruby
Cesario has quit [Quit: Textual IRC Client: www.textualapp.com]
opensource_ninja has joined #ruby
Cesario has joined #ruby
unknowns2k2 has joined #ruby
Cesario has quit [Client Quit]
Cesario has joined #ruby
platzhirsch has left #ruby [#ruby]
momomomomo has joined #ruby
dfinninger has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
YaknotiS has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
dhollinger has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
mghaig has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
gusTester has left #ruby [#ruby]
TDJACR has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
DelDotB has quit [Quit: DelDotB]
decoponyo has joined #ruby
astrobunny has joined #ruby
rvchangue has quit [Ping timeout: 240 seconds]
Nilium has quit [Ping timeout: 260 seconds]
rvchangue has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512_ has joined #ruby
asianMike has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
Nilium has joined #ruby
gnarf has quit [Ping timeout: 260 seconds]
vigintas has joined #ruby
djellemah_ has joined #ruby
djbkd has joined #ruby
genpaku_ has joined #ruby
decoponio has quit [Ping timeout: 240 seconds]
linduxed has quit [Ping timeout: 240 seconds]
PaulePanter has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
Omni_ has quit [Ping timeout: 240 seconds]
PaulePan1er has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Ilyes512 has joined #ruby
djellemah has quit [Ping timeout: 260 seconds]
genpaku has quit [Ping timeout: 260 seconds]
Ilyes512_ has quit [Max SendQ exceeded]
sross07 has quit [Read error: Connection reset by peer]
sross_work|2 has joined #ruby
davidcelis has quit [Ping timeout: 262 seconds]
Guest30075 has joined #ruby
Affix has quit [Excess Flood]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
[D] has joined #ruby
Coldblackice has joined #ruby
<[D]> so, i never used Ruby, and i would like to try out this IRC game bot i found coded in Ruby, i am on windows 10. How would one attempt such thing for a first time?
Affix has joined #ruby
linduxed has joined #ruby
djellemah_ is now known as djellemah
Coldblackice_ has quit [Ping timeout: 240 seconds]
Affix is now known as Guest66002
<[D]> i do have scripting experience, so i can read the code and edit it, i just don't know if i need a client for it, and if yes, what is your prefered one to use (easy for me)
dfinning_ has joined #ruby
* [D] clicks *
tref has quit [Quit: tref]
gnarf has joined #ruby
neonalpine has quit [Ping timeout: 265 seconds]
daivyk has quit [Read error: Connection reset by peer]
dfinninger has quit [Ping timeout: 240 seconds]
<[D]> ty ❤
unknowns2k2 has quit [Quit: unknowns2k2]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has joined #ruby
dhollinger has joined #ruby
jmonreal has quit [Ping timeout: 240 seconds]
jmonreal has joined #ruby
bb010g has joined #ruby
momomomomo_ has joined #ruby
tildes has quit [Ping timeout: 265 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
symm- has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
mattwildig has quit [Remote host closed the connection]
symm- has joined #ruby
codecop has joined #ruby
yoongkang has joined #ruby
DoubleMalt has joined #ruby
rodfersou has quit [Quit: leaving]
roxtrongo has joined #ruby
mattwildig has joined #ruby
nettoweb has joined #ruby
mattwildig has quit [Remote host closed the connection]
mwlang has joined #ruby
rdavila has joined #ruby
Spami has quit [Ping timeout: 240 seconds]
ekleog has quit [Ping timeout: 240 seconds]
kies has joined #ruby
roxtrongo has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 250 seconds]
ekleog has joined #ruby
icey has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
DelDotB has joined #ruby
DelDotB has quit [Client Quit]
icey has joined #ruby
tref has joined #ruby
TheSpectre has joined #ruby
jessemcgilallen has joined #ruby
djbkd has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
tildes has joined #ruby
dlitvak has joined #ruby
tref has quit [Client Quit]
kp666 has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
tref has joined #ruby
tref has quit [Client Quit]
decoponyo has quit [Quit: Leaving...]
TheSpectre has quit [Client Quit]
TheSpectre has joined #ruby
theRoUS has joined #ruby
kies has quit [Ping timeout: 272 seconds]
TheSpectre has quit [Client Quit]
dfinninger has joined #ruby
tref has joined #ruby
ruby-lang184 has joined #ruby
dfinning_ has quit [Ping timeout: 250 seconds]
gusTester has joined #ruby
TheSpectre has joined #ruby
gusTester has left #ruby [#ruby]
dlitvak has quit [Ping timeout: 260 seconds]
ayonkhan has quit [Read error: Connection reset by peer]
<ruby-lang184> Hey! Can anyone help me set this channel up in HexChat? I'm very new to this whole IRC thing and can't seem to get it working
momomomomo has quit [Quit: momomomomo]
<ruby-lang184> I'm using the website to be able to use it here
ayonkhan has joined #ruby
mattwildig has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
<jhass> ruby-lang184: well, what did you try and what error do you get?
<adaedra> You select FreeNode in the Server selection window, then /join #ruby
jpfuentes2 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Xeago has joined #ruby
TheSpectre has quit [Client Quit]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
ModusPwnens has joined #ruby
djbkd has joined #ruby
karapetyan has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<ModusPwnens> How can I modify the PATH for a shell command in a rake task? I can do it within the shell command, but there are several shell commands that I want to modify the path for and it does not seem DRY to duplicate it in each one.
TheSpectre has joined #ruby
<ModusPwnens> I've tried changing it with another shell command, only to find out each SH command has its own context and so changing the path in one will not affect others. I also tried setting ENV['PATH'], but that did not work either.
djbkd has quit [Remote host closed the connection]
TheSpectre has quit [Client Quit]
bruno- has joined #ruby
<jhass> mmh, I would've expected ENV["PATH"] to work, I guess your standard shell sources its own PATH then?
TheSpectre has joined #ruby
ldnunes has quit [Quit: Leaving]
TheSpectre has quit [Client Quit]
TheSpectre has joined #ruby
marcosantonioca1 has joined #ruby
Guest97 has quit [Ping timeout: 246 seconds]
[D] is now known as Darknet
ruby-lang155 has quit [Quit: Page closed]
joneshf-laptop has quit [Remote host closed the connection]
pglombardo has quit []
powersurge has joined #ruby
ruby-lang184 has quit [Ping timeout: 246 seconds]
<powersurge> so DelayedJob is serializing classes and I"m not sure how to deserialize them for debugging purposes
<powersurge> anyone recognize the '!ruby/class' prefix before I dig through delayedjob?
loincloth has joined #ruby
<adaedra> looks like YAML
TheSpectre has quit [Client Quit]
<jhass> ModusPwnens: well, sh has the same call semantics as Kernel#system etc, so you can easily write a wrapper that sets it
<powersurge> ta adaedra
<jhass> &ri Kernel#spawn @ModusPwnens
momomomomo has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
psy_ has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neonalpine has joined #ruby
Encapsulation has quit [Quit: Leaving]
ekinmur has joined #ruby
dlitvak has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
rattatmatt has joined #ruby
Jackneill has joined #ruby
lemur has quit [Ping timeout: 276 seconds]
solocshaw has joined #ruby
Archyme has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dotix has quit [Ping timeout: 260 seconds]
yoongkang has quit [Remote host closed the connection]
ruurd has quit [Ping timeout: 240 seconds]
dfinninger has quit []
dfinninger has joined #ruby
solocshaw has quit [Client Quit]
Radar_ is now known as Radar
sepp2k has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
ruurd has joined #ruby
loincloth has quit []
skade has joined #ruby
Melpaws has joined #ruby
dotix has joined #ruby
skweek has joined #ruby
djellemah__ has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
allcentu1 has quit [Ping timeout: 246 seconds]
sniperhaxor has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
norc has joined #ruby
<norc> Hi. Are there any Ruby freelancers around?
krak3n has joined #ruby
<norc> I mean, Im interested in how freelancers do their pricing. What could a client expect to pay for a 2 day full time custom job?
nettoweb has joined #ruby
<norc> (Say a total of maybe 20 hours)
<norc> Is something about the $1,000-1,500 USD ballpark realistic?
djellemah has quit [Ping timeout: 255 seconds]
dmitch has joined #ruby
djellemah has joined #ruby
<baweaver> twi day?
<baweaver> two*
<norc> think of it as 20 hours total rather.
asianMike has quit [Remote host closed the connection]
djellemah__ has quit [Ping timeout: 272 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ilyes512 has joined #ruby
cdg has joined #ruby
beauby has joined #ruby
beanHolez has quit [Remote host closed the connection]
<jhn> norc: that's like $50-$75/h, so, sure. entirely depends on your creds, the industry, etc.
<eam> and the location
beanHolez has joined #ruby
trosborn has joined #ruby
beanHolez has quit [Remote host closed the connection]
<baweaver> in central US, 80k is a programmer fulltime or about $40/hr approx
<baweaver> in SF, it's more like 120k, or $60/hr
<powersurge> yea, but you'd have to charge more as a freelancer
<baweaver> but you may not be working fulltime
<baweaver> was getting there ;)
<powersurge> ah
beanHolez has joined #ruby
<powersurge> carry on then :>
<baweaver> depends on your skill level
Darknet has quit [K-Lined]
<baweaver> more than anything
kadoppe has quit [Ping timeout: 255 seconds]
<baweaver> I'd almost consider a lower bar for starting just to get experience.
* adaedra blinks
<baweaver> adaedra: careful
<baweaver> angels might get you
cornerma1 has joined #ruby
<eam> baweaver: central US 80k is median for someone with 10y experience?
allcentu1 has joined #ruby
<adaedra> That still looks like a gigantic difference with numbers I'm used to
<eam> or is that a starting salary
allcentu1 has quit [Client Quit]
<baweaver> 65 is starting
<baweaver> ish
<eam> I'd say 150k is median in silicon valley
scripore has joined #ruby
<baweaver> hm
<eam> maybe more, depending
<baweaver> I should find more median companies then :P
duckpupp1 has quit [Ping timeout: 272 seconds]
<eam> not uncommon to see 200k+ offers for the 10y experience range, if you're competend
<eam> competent, even
rgtk_ has quit [Remote host closed the connection]
kadoppe has joined #ruby
<shevy> that dam beaver makes the big bucks!
rgrmatt has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
<eam> In 2013, the average annual wage for high-tech workers in Silicon Valley was $195,815, according to a recent report from Jones Lang LaSalle (JLL), a commercial real estate firm.
cornerma1 is now known as cornerman
<eam> that sounds about right
<eam> they're including benefits though
zotherstupidguy has joined #ruby
gilmour has joined #ruby
<eam> so subtract about $20k if you want to think in terms of what you'd consider comp after perks
trosborn has quit [Quit: trosborn]
gilmour has left #ruby [#ruby]
<baweaver> how much does that account for, bonuses and such?
<eam> that's total comp, including bonus and stock
<eam> and is the average, so 50% are (often way) above that
<baweaver> a good year I have 20% bonus and 4.5% 401k match
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 240 seconds]
<TTilus> in scandinavia you'd expect something starting from 30$/hr (55k/yr) but not extending much beyond 60$/hr
synthroid has quit []
<eam> in silicon valley it's pretty common to put around 20% or so of comp into stock benefits, which can start to eclipse the base salary if the company does very well
<eam> the base salaries tend not to go above 200k
<eam> there are tax advantages of doing compensation in stock form
<adaedra> I don't want to go to the grown-ups world, everything sounds so complicated D:
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> netflix's model is interesting: They give a huge base salary and let you put as much or as little as you want into buying options
<eam> you can take a salary of $0 if you want
<baweaver> adaedra: come to SF and we can show you around some time :D
B1n4r10 has quit [Ping timeout: 240 seconds]
<TTilus> adaedra: things aren't complicated until you have family ;)
uri has joined #ruby
<eam> ain't that the truth
dmitch has joined #ruby
Mon_Ouie has joined #ruby
baweaver has quit [Remote host closed the connection]
alakra has joined #ruby
adac has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
dlitvak has quit [Remote host closed the connection]
cirenyc has joined #ruby
Coldblackice has joined #ruby
skweek has joined #ruby
momomomomo has joined #ruby
<shevy> which functional programming language has the nicest syntax akin to ruby?
drig0r has joined #ruby
B1n4r10 has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
k3asd` has joined #ruby
Nahra has joined #ruby
lukaszes has joined #ruby
<eam> shevy: ocaml is pretty nice
baweaver has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
TheHodge has joined #ruby
Pumukel has joined #ruby
umgrosscol has quit [Remote host closed the connection]
adac has joined #ruby
sinkensabe has joined #ruby
Cellar has joined #ruby
chipotle has quit [Quit: cheerio]
last_staff has quit [Quit: last_staff]
Cellar has left #ruby [#ruby]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Read error: Connection reset by peer]
FooMunki has quit [Quit: FooMunki]
mistermocha has joined #ruby
PaulePan1er is now known as PaulePanter
chipotle has joined #ruby
FooMunki has joined #ruby
yoongkang has joined #ruby
stannard has joined #ruby
jrhorn has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has quit [Ping timeout: 244 seconds]
rgrmatt has quit [Remote host closed the connection]
ModusPwnens has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
adac has quit [Ping timeout: 260 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 260 seconds]
yoongkang has quit [Ping timeout: 250 seconds]
<mwlang> I’m having trouble installing and using rhodes gem. https://github.com/rhomobile/rhodes/issues/772 Almost everything I’m finding for troubleshooting seems to be iOS 6.x based (we’re at 8.2 nowadays) and Ruby 1.9.x — Every documentation page warns me I’m reading outdated docs. This project’s commit history otherwise seems to indicate it’s a pretty active project. Is it?
<mwlang> heh, “trouble installing” — let’s say “trouble launching first app” — it installed just fine.
VeryBewitching has joined #ruby
baweaver has quit [Remote host closed the connection]
<VeryBewitching> G'day folks.
<tubbo> mwlang: "Every documentation page warns me I’m reading outdated docs. This project’s commit history otherwise seems to indicate it’s a pretty active project. Is it?"
dorei has joined #ruby
devgiant has joined #ruby
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
<tubbo> mwlang: i haven't heard much about rhodes since 2011, that might give you idea on how much it's used. any reason you aren't going with RubyMotion?
skweek has joined #ruby
<tubbo> mwlang: also...iOS is at v9.0...are you literally in a time bubble?!
M-Techni1 is now known as M-Technic
rgrmatt has joined #ruby
<eam> well, if he's looking for a super old and outdated gem it's not surprising all the hits he gets are for similarly outdated tech
<mwlang> tubbo: ah, yeah, I am on that one. I forgot about 9.0 recently releasing.
<tubbo> i tried RubyMotion recently now that i don't have to pay $200 just to use it
<tubbo> good stuff
<mwlang> eam: :-p I’m clueless on what’s going on in the mobile scene. Had some down time today and just thought I’d see what Ruby-based options were available for native mobile apps.
ruurd has quit [Read error: No route to host]
ruurd has joined #ruby
* mwlang reading up on rubymotion
yfeldblum has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
norc has quit [Ping timeout: 246 seconds]
skweek has quit [Ping timeout: 244 seconds]
Jackneill has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
kies has joined #ruby
platzhirsch has joined #ruby
ICantCook has joined #ruby
sinkensabe has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
<shevy> they are chasing gorillas in the mobile scene
dotix has quit [Quit: Leaving]
howdoicomputer has joined #ruby
stannard_ has joined #ruby
akem has quit [Read error: No route to host]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
trosborn has joined #ruby
rdavila has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Xeago has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 252 seconds]
exadeci has joined #ruby
kies has quit [Ping timeout: 272 seconds]
spider-mario has quit [Remote host closed the connection]
Xeago has joined #ruby
trosborn has quit [Ping timeout: 265 seconds]
cwong_on_irc has quit [Quit: Leaving.]
dede__ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
<mwlang> love it. rubymotion also seems to be lagging in documentation space: docs: “motion —version” => 3.0 me: “motion —version” => 4.5
mistermocha has joined #ruby
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has joined #ruby
Ox0dea has joined #ruby
stannard has joined #ruby
polishdub has quit [Quit: Leaving]
LilianRose is now known as Lilian
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorei has quit [Read error: Connection reset by peer]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]]
dorei has joined #ruby
Xeago has quit [Remote host closed the connection]
jessemcgilallen has quit [Quit: jessemcgilallen]
<platzhirsch> In #rubyonrails it was suggested to name a method #call in order to make use of the call style syntax? Like ClassName.() to invoke methods? I remember this very shaded... what was that about again?
stannard_ has quit [Ping timeout: 246 seconds]
x-light has joined #ruby
x-light is now known as juddey
<adaedra> >> module A; def self.call; "Hello"; end; end; A.()
<ruboto> adaedra # => "Hello" (https://eval.in/469917)
<adaedra> .() is another way of writing .call
tlaxkit has joined #ruby
kirun has quit [Quit: Client exiting]
<platzhirsch> What's the advantage? Being fancy?
<shevy> we can save characters!
<Ox0dea> djellemah: Using a trie instead of Ruby's native Hash would save some space, but that's nothing to do with reverse-lookup.
stannard_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
<shevy> the . is kinda weird
<platzhirsch> shevy: thank god, because someone was telling me about code readability as I was crying in agony about our memory bill
<platzhirsch> :D
<shevy> Integer() ... Integer.()
<adaedra> Integer() is actually a method.
<adaedra> >> method(:Integer)
<ruboto> adaedra # => #<Method: Object(Kernel)#Integer> (https://eval.in/469919)
CloCkWeRX has joined #ruby
stannar__ has joined #ruby
krak3n has quit [Ping timeout: 255 seconds]
ruurd has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
<eam> it's interesting that you can't send :"()"
Blaguvest has quit []
VeryBewitching has quit [Quit: Konversation terminated!]
<Ox0dea> It's syntax.
quazimodo has joined #ruby
stannard has quit [Ping timeout: 272 seconds]
<eam> weird
<Ox0dea> >> ->{->{->{}}}::()[].()
<ruboto> Ox0dea # => nil (https://eval.in/469920)
rgtk has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
stannard_ has quit [Ping timeout: 265 seconds]
trosborn has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> now that's a long way to get to nil
sanjayu has joined #ruby
<eam> >> def nil.call;'o_O';end; ().()
<ruboto> eam # => "o_O" (https://eval.in/469921)
<platzhirsch> oh Ruby
<Ox0dea> Christ.
<shevy> omg
<shevy> the boobs operator
mary5030 has quit [Remote host closed the connection]
<Ox0dea> >> def nil.call; self; end; ()::().().()::()
<ruboto> Ox0dea # => nil (https://eval.in/469922)
<Ox0dea> That's a double-edged sword of sorts.
axsuul has quit [Ping timeout: 255 seconds]
<shevy> that's some large spaceship
<Ox0dea> shevy: Those are a cat's eyes, not boobs.
* adaedra meows
momomomomo_ has joined #ruby
Musashi007 has joined #ruby
momomomomo_ has quit [Client Quit]
Billias has quit [Read error: Connection reset by peer]
<shevy> looks like bird eyes
codecop has quit [Remote host closed the connection]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has quit [Ping timeout: 260 seconds]
dfinninger has joined #ruby
momomomomo has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
gusTester has joined #ruby
Billias has joined #ruby
Musashi007 has quit [Quit: Musashi007]
WillAmes has quit [Remote host closed the connection]
nertzy2 has joined #ruby
AnoHito_ has joined #ruby
WillAmes has joined #ruby
axl__ has joined #ruby
gusTester has left #ruby [#ruby]
workmad3_ has joined #ruby
_djbkd has joined #ruby
astrobun_ has joined #ruby
roxtrongo has quit [Ping timeout: 255 seconds]
Nahra` has joined #ruby
axl_ has quit [Ping timeout: 265 seconds]
axl__ is now known as axl_
peitera has quit [Ping timeout: 265 seconds]
C0deMaver1ck has quit [Ping timeout: 265 seconds]
scottymeuk has quit [Ping timeout: 265 seconds]
theRoUS has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
freedrull has quit [Ping timeout: 265 seconds]
ajaiswal has quit [Ping timeout: 265 seconds]
ironcame1 has quit [Ping timeout: 265 seconds]
amoeba has quit [Ping timeout: 265 seconds]
ricer2 has quit [Ping timeout: 265 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
zenspider has quit [Ping timeout: 265 seconds]
Rennex has quit [Ping timeout: 265 seconds]
scpike has quit [Ping timeout: 265 seconds]
nisstyre has quit [Ping timeout: 265 seconds]
eregon_ has joined #ruby
trav408 has quit [Ping timeout: 265 seconds]
Voker57 has quit [Ping timeout: 265 seconds]
M-Kodo has quit [Ping timeout: 265 seconds]
cpup has quit [Ping timeout: 265 seconds]
waka has quit [Ping timeout: 265 seconds]
AnoHito has quit [Ping timeout: 265 seconds]
scroff has quit [Ping timeout: 265 seconds]
oddmunds has quit [Ping timeout: 265 seconds]
demophoon has quit [Ping timeout: 265 seconds]
iDavid has quit [Ping timeout: 265 seconds]
Scientz has quit [Ping timeout: 265 seconds]
Derailed has quit [Ping timeout: 265 seconds]
lnx has quit [Ping timeout: 265 seconds]
queequeg1 has quit [Ping timeout: 265 seconds]
certainty has quit [Ping timeout: 265 seconds]
Kharma has quit [Ping timeout: 265 seconds]
Authenticator has quit [Ping timeout: 265 seconds]
ukd1 has quit [Ping timeout: 265 seconds]
Killerkeksdose_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 265 seconds]
Nahra has quit [Ping timeout: 265 seconds]
uri has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 265 seconds]
pdoherty has quit [Ping timeout: 265 seconds]
yalue has quit [Ping timeout: 265 seconds]
rehat_ has quit [Ping timeout: 265 seconds]
St1gma has quit [Ping timeout: 265 seconds]
jericon has quit [Ping timeout: 265 seconds]
shortdudey123 has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
yokel has quit [Ping timeout: 265 seconds]
awk has quit [Ping timeout: 265 seconds]
sulky has quit [Ping timeout: 265 seconds]
nocturn has quit [Ping timeout: 265 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
Killerkeksdose has quit [Ping timeout: 265 seconds]
ekem has quit [Ping timeout: 265 seconds]
eregon has quit [Ping timeout: 265 seconds]
Platini has quit [Ping timeout: 265 seconds]
thejoecarroll has quit [Ping timeout: 265 seconds]
msb_ has quit [Ping timeout: 265 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
ajaiswal has joined #ruby
sgambino has joined #ruby
freedrull has joined #ruby
scpike has joined #ruby
ironcamel has joined #ruby
jericon has joined #ruby
Rennex has joined #ruby
sgambino has quit [Client Quit]
zenspider has joined #ruby
ukd1 has joined #ruby
lnx has joined #ruby
iDavid has joined #ruby
queequeg1 has joined #ruby
Authenticator has joined #ruby
neonalpine has quit [Remote host closed the connection]
awk has joined #ruby
yokel has joined #ruby
baweaver has joined #ruby
sulky has joined #ruby
awk is now known as Guest72295
matled- has joined #ruby
simplyia_ has joined #ruby
peteyg has joined #ruby
robbyoconnor has joined #ruby
Oli`` has joined #ruby
yaewa has joined #ruby
vallen__ has joined #ruby
|ifei5good has joined #ruby
Oli`` is now known as Guest68214
Kruppe- has joined #ruby
axl__ has joined #ruby
df- has joined #ruby
VeryBewitching has joined #ruby
NeverDie_ has joined #ruby
malconis has joined #ruby
gbailey- has joined #ruby
ESpiney has quit [Read error: Connection reset by peer]
terminal_ has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
cpup has joined #ruby
peitera has joined #ruby
C0deMaver1ck has joined #ruby
theRoUS has joined #ruby
M-Kodo has joined #ruby
demophoon has joined #ruby
scottymeuk has joined #ruby
Derailed has joined #ruby
C0deMaver1ck is now known as Guest54738
Scient has joined #ruby
shortdudey123 has joined #ruby
jwaldrip___ has joined #ruby
ekem has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
NeverDie_ has quit [Read error: Connection reset by peer]
Paradox has joined #ruby
thejoecarroll has joined #ruby
stannard has joined #ruby
NeverDie_ has joined #ruby
purplexed- has joined #ruby
purplexed- has joined #ruby
Platini has joined #ruby
sulky has quit [Ping timeout: 252 seconds]
_fumk has joined #ruby
matti_ has joined #ruby
symm- has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
Freeaqingme_ has joined #ruby
tkuchiki has joined #ruby
justinmcp has joined #ruby
ccooke_ has joined #ruby
Shapeshi1ter has joined #ruby
svkurowski_ has joined #ruby
Pro|_ has joined #ruby
deg__ has joined #ruby
scpike_ has joined #ruby
htmldrum has joined #ruby
momomomomo has quit [Quit: momomomomo]
robbyoconnor has joined #ruby
NeverDie_ has quit [Client Quit]
NeverDie_ has joined #ruby
diego2 has joined #ruby
sulky has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
_blizzy_ has joined #ruby
diego2 is now known as diegoviola
nocturn has joined #ruby
nocturn has quit [Changing host]
nocturn has joined #ruby
dhollinger has quit [Quit: WeeChat 1.2]
ianfleeton has joined #ruby
workmad3_ is now known as workmad3
DoubleMalt has quit [Remote host closed the connection]
Karunamon|2 has joined #ruby
aredridel has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
lubekpl has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
trav408 has joined #ruby
scpike has quit [*.net *.split]
axl_ has quit [*.net *.split]
stannar__ has quit [*.net *.split]
tlaxkit has quit [*.net *.split]
Guest30075 has quit [*.net *.split]
jwaldrip__ has quit [*.net *.split]
terminalrecluse has quit [*.net *.split]
M-prosodyContext has quit [*.net *.split]
CodingWolf has quit [*.net *.split]
diegoaguilar has quit [*.net *.split]
malconis_ has quit [*.net *.split]
simplyianm has quit [*.net *.split]
|ifei5g00d has quit [*.net *.split]
moei has quit [*.net *.split]
xet7 has quit [*.net *.split]
Laaw has quit [*.net *.split]
Lorn_ has quit [*.net *.split]
Ankhers has quit [*.net *.split]
Karunamon has quit [*.net *.split]
Oli` has quit [*.net *.split]
fowlduck has quit [*.net *.split]
NeverDie has quit [*.net *.split]
c0ncealed has quit [*.net *.split]
Shapeshifter has quit [*.net *.split]
ccooke has quit [*.net *.split]
peteyg_ has quit [*.net *.split]
df has quit [*.net *.split]
fumk has quit [*.net *.split]
bodie_ has quit [*.net *.split]
Pro| has quit [*.net *.split]
woodruffw has quit [*.net *.split]
matled has quit [*.net *.split]
gbailey has quit [*.net *.split]
csmb has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
vallen has quit [*.net *.split]
papercode has quit [*.net *.split]
matti has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
svkurowski has quit [*.net *.split]
Aria has quit [*.net *.split]
Kruppe has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
deg_ has quit [*.net *.split]
passcod has quit [*.net *.split]
yosafbridge` has quit [*.net *.split]
zz_barkerd427 has quit [*.net *.split]
Karunamon|2 is now known as Karunamon
matti_ is now known as matti
matled- is now known as matled
df- is now known as df
axl__ is now known as axl_
robbyoconnor has joined #ruby
Laaw has joined #ruby
M-prosodyContext has joined #ruby
csmb_ has joined #ruby
St1gma has joined #ruby
ianfleeton has quit [Remote host closed the connection]
woodruffw has joined #ruby
yalue has joined #ruby
passcod has joined #ruby
pdoherty has joined #ruby
Guest26770 has joined #ruby
CodingWolf has joined #ruby
waka has joined #ruby
Lorn has joined #ruby
Voker57 has joined #ruby
sulky has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
scroff has joined #ruby
yosafbridge has joined #ruby
oddmunds has joined #ruby
powersurge has quit [Quit: WeeChat 0.4.3]
bodie_ has joined #ruby
Ankhers has joined #ruby
cirenyc has quit [Quit: Leaving...]
nisstyre has joined #ruby
sulky has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
skade has quit [Read error: Connection reset by peer]
jessemcgilallen has joined #ruby
skade has joined #ruby
diego1 has joined #ruby
dn5 has quit [Quit: Lost terminal]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
NeverDie_ is now known as NeverDie
diegoaguilar has joined #ruby
papercode has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
duncannz has joined #ruby
tlaxkit has joined #ruby
Nahra` has quit [Remote host closed the connection]
xet7 has joined #ruby
Nahra`` has joined #ruby
mattwildig has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
DEA7TH has joined #ruby
avelldiroll has joined #ruby
duncannz has quit [Max SendQ exceeded]
ricer2 has joined #ruby
lkba has joined #ruby
DEA7TH has quit [Client Quit]
robbyoconnor has quit [Quit: Konversation terminated!]
riotjon__ has joined #ruby
tlaxkit has quit [K-Lined]
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
axsuul has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
nertzy2 has quit [Quit: This computer has gone to sleep]
northfurr has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
stannard_ has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
stannard_ has quit [Ping timeout: 252 seconds]
northfurr has quit [Quit: northfurr]
zeroDivisible has quit [Quit: WeeChat 1.3]
axsuul_ has joined #ruby
zeroDivisible has joined #ruby
northfurr has joined #ruby
wprice has quit [Quit: wprice]
axsuul has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
Ropeney has joined #ruby
B1n4r10 has joined #ruby
jdawgaz has joined #ruby
Spami has joined #ruby
lxsameer has quit [Quit: Leaving]
<Ox0dea> I'm trading space for time in constructing this massive hash that maps words to distinct values, one letter at a time since that's how they arrive. "cat" and "catch" are words, but "catc" is not, and I'm handling that by storing terminals; thus, `hash['c']['a']['t']['$'] == :unique_cat_value`. Lookup is O(1) and everybody's happy, except I need to be able to go the other direction too. As it stands, I'm using
<Ox0dea> two hashes, the "paths" and the actual mapping, and then I'm just `Hash#invert`ing the latter to get reverse-lookup. Is there some nifty data structure uniquely applicable to this scenario?
Nahra`` has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
DrShoggoth has joined #ruby
Nahra`` has joined #ruby
niftylettuce has joined #ruby
rgtk has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 250 seconds]
waka has quit [Remote host closed the connection]
juddey has quit [Ping timeout: 272 seconds]
northfurr has quit [Quit: northfurr]
pkrnj has joined #ruby
IrishGringo has joined #ruby
juddey has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Ping timeout: 240 seconds]
unclouded has joined #ruby
gambl0re has joined #ruby
rgrmatt has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
vigintas has quit [Ping timeout: 255 seconds]
roxtrongo has joined #ruby
amoeba has joined #ruby
dlitvak has joined #ruby
scottstamp has joined #ruby
Kharma has joined #ruby
TomPeed has joined #ruby
BraddPitt has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
grung3r has joined #ruby
banister has joined #ruby
grung3r has left #ruby [#ruby]
vigintas has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
dfinninger has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
trosborn has joined #ruby
devgiant has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 240 seconds]