jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
hotpancakes has joined #ruby
mleung has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
Muhannad has joined #ruby
milky has joined #ruby
milky has left #ruby ["Textual IRC Client: www.textualapp.com"]
roolo has quit [Remote host closed the connection]
djbkd has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
FernandoBasso has joined #ruby
duderonomy has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
_blizzy_ has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
craysiii has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
djbkd has quit [Quit: My people need me...]
mjuszczak has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
sarid has joined #ruby
<sarid> what is this and how?
bmurt has quit []
juanpablo_ has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
crazydiamond has joined #ruby
schov has quit [Remote host closed the connection]
<apeiros> sarid: come again?
Guest24 has quit [Ping timeout: 240 seconds]
<sarid> one moment please
baweaver has quit [Remote host closed the connection]
<havenwood> sarid: roger that
<apeiros> sarid: let me inform you that by now, precisely one moment has passed.
<apeiros> ;-)
<sarid> moments aren't defined
<sarid> which is why they're used
<adaedra> o_õ
<apeiros> somebody got a spare irony detector? sarid's in need of one.
mweshi has quit [Remote host closed the connection]
<adaedra> require 'irony/detector'
mweshi has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
tomdp has joined #ruby
<Senjai> Good day ruby
mleung has quit [Quit: mleung]
sevin_ has joined #ruby
<havenwood> Senjai: g'day
<apeiros> o/ Senjai
<Senjai> Going to try and get some misc stuff done on the weekend -_-
sevin has quit [Ping timeout: 246 seconds]
<adaedra> Hello Senjai
<apeiros> sarid: anyway, the moment has indeed passed for me. I'll no longer wait. good night folks.
<pontiki> hi, Senjai
* apeiros rides off into the night.
<Senjai> o//
<havenwood> \\o
lele has joined #ruby
bmurt has joined #ruby
mjuszczak has quit []
<sarid> i am impressed and confused
zacstewart has joined #ruby
arooni-mobile has joined #ruby
<sarid> there is a ruby on my client
sideshowcoder has quit [Ping timeout: 250 seconds]
<havenwood> sarid: LimeChat.app was actually initially written in MacRuby before the Objective-C rewrite! Welcome to the #ruby channel. For non-Ruby topics visit us in #ruby-offtopic.
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
surs3 has quit [Ping timeout: 252 seconds]
Vile` has quit [Quit: ,]
surs3 has joined #ruby
_ixti_ has joined #ruby
atomical has quit [Ping timeout: 248 seconds]
dgutierrez1287 has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
chipotle has joined #ruby
enders has quit [Remote host closed the connection]
atomical has joined #ruby
maletor has joined #ruby
fgo has joined #ruby
GitGud has quit [Ping timeout: 250 seconds]
Fezzler has joined #ruby
mleung has joined #ruby
LeDiegue has quit []
fgo has quit [Ping timeout: 255 seconds]
sideshowcoder has joined #ruby
s00pcan has quit [Read error: No route to host]
chouhoulis has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
chouhoulis has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
nofxx has quit [Remote host closed the connection]
<pontiki> havenwood is taking a turn as the welcome committee...
<havenwood> pontiki: Welcome!
cschneid has joined #ruby
mleung has quit [Quit: mleung]
dgutierrez1287 has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
micalexander has quit [Remote host closed the connection]
Fezzler has quit [Quit: Leaving]
seanstickle has joined #ruby
sarkyniin has quit [Quit: Quit]
sarkyniin has joined #ruby
simplyianm has joined #ruby
RobertBirnie has joined #ruby
Musashi007 has quit [Quit: Musashi007]
seanstickle has left #ruby [#ruby]
girakrok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mweshi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Read error: Connection reset by peer]
davedev24 has quit []
gnudon has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
mgorbach has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
sross07 has quit [Ping timeout: 240 seconds]
charlenopires has quit [Quit: Lingo: www.lingoirc.com]
zacstewart has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
hotpancakes has quit [Remote host closed the connection]
tkuchiki has joined #ruby
einarj has joined #ruby
WeiJunLi has quit []
girakrok has joined #ruby
mike___1234 has quit [Ping timeout: 252 seconds]
kobain has joined #ruby
hotpancakes has joined #ruby
JaTochNietDan has quit [Ping timeout: 248 seconds]
girakrok has quit [Client Quit]
arooni-mobile has quit [Ping timeout: 248 seconds]
einarj has quit [Ping timeout: 246 seconds]
bmurt has quit []
RobertBirnie has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby
JaTochNietDan has joined #ruby
lele has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
djbkd has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
Muhannad has quit [Ping timeout: 255 seconds]
_ixti_ has quit [Ping timeout: 264 seconds]
girakrok has joined #ruby
Guest71946 has quit [Ping timeout: 256 seconds]
girakrok has quit [Client Quit]
lele has joined #ruby
_blizzy_ has quit [Ping timeout: 255 seconds]
Guest71946 has joined #ruby
s00pcan has joined #ruby
s00pcan has joined #ruby
hololeap has joined #ruby
user02115123 has joined #ruby
Guest71946 has quit [Ping timeout: 264 seconds]
gnudon has quit [Read error: Connection reset by peer]
sphex has quit [Read error: No route to host]
sphex has joined #ruby
Guest71946 has joined #ruby
girakrok has joined #ruby
girakrok has quit [Client Quit]
Xiti has quit [Quit: Xiti]
davedev24 has joined #ruby
user02115123 has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Quit: Leaving.]
tubulife- has joined #ruby
hotpancakes has quit [Remote host closed the connection]
mike___1234 has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
zacstewart has joined #ruby
gnudon has joined #ruby
Xiti has joined #ruby
girakrok has joined #ruby
user02115123 has joined #ruby
noethics has quit [Ping timeout: 246 seconds]
girakrok has quit [Client Quit]
Vile` has joined #ruby
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
ryanprior has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 246 seconds]
PlasmaStar has joined #ruby
surs4 has joined #ruby
dopie has joined #ruby
Thomas-0725 has joined #ruby
surs3 has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
girakrok has joined #ruby
hotpancakes has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Renich has joined #ruby
surs has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
surs4 has quit [Ping timeout: 264 seconds]
user02115123 has quit [Ping timeout: 256 seconds]
hotpancakes has quit [Ping timeout: 240 seconds]
luriv_ has quit [Ping timeout: 264 seconds]
juanpablo_ has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Quit: This computer has gone to sleep]
Thomas-0725 has joined #ruby
kenndel has joined #ruby
einarj has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
serivichi has joined #ruby
nfk has quit [Quit: yawn]
leonardoajim has quit [Ping timeout: 256 seconds]
iateadonut has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hololeap> is there a shorthand for `obj.some_method { |o| o }`
<Senjai> hololeap: No, not if you want to do nothing
<Senjai> hololeap: If you want to call a method on o, that's different
<Senjai> obj.some_method(&:thing) == obj.some_method { |o| o.thing }
hotpancakes has joined #ruby
<hololeap> right, but there's no method that just returns the object itself :/
<Senjai> Why would there be
<Senjai> Why call a block if you wanted to do that
<Radar> hololeap: in active_support there is tap
<Senjai> Aye, that's fair, but I still wouldn't pass in a block for that scenario
<Senjai> And doing obj.some_method(&:tap) is, in my mind a hack that shouldn't be done, or shouldn't have to be
dopie has joined #ruby
<hololeap> this is where i'm getting the idea from: http://stackoverflow.com/a/8922049/983883
<hololeap> there's `.group_by { |e| e}` and `.chunk { |e| e}`
<hololeap> it got me thinking that there's probably a better way to write that
eToThePiIPower has joined #ruby
noethics has joined #ruby
surs1 has joined #ruby
gnudon has quit [Ping timeout: 246 seconds]
<Senjai> hololeap: What are you trying to solve
user02115123 has joined #ruby
[k- has joined #ruby
surs has quit [Ping timeout: 256 seconds]
<hololeap> i'm not, i was just seeing if anyone knew a shorthand for that pattern
chipotle has quit [Quit: cheerio]
<Senjai> That's kind of a weird case, I would do it by longhand (not with tap, even if tap is available) as that is the easiest way to convert an array to that type of hash
<Senjai> of a hash*
<Senjai> if it was code -i- was designing, I would have an explicit method for that conversion.
chipotle has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
Renich has quit [Quit: leaving]
ejnahc is now known as ejnahc^
<hololeap> heh, class Object; def to_proc; -> { self }; end; end
<hololeap> and then i can call `.group_by &nil` :p
<hololeap> oops s/Object/NilClass/
<hololeap> it's dumb, i know
ejnahc has joined #ruby
unclouded has quit [Ping timeout: 256 seconds]
eToThePiIPower has left #ruby [#ruby]
Rollabun_ has quit [Remote host closed the connection]
unclouded has joined #ruby
Rollabunna has joined #ruby
xkef has quit [Ping timeout: 246 seconds]
ejnahc has quit [Client Quit]
ejnahc^ has quit [Quit: leaving]
<[k-> :o
Fezzler has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
ejnahc has joined #ruby
eggoez has joined #ruby
davedev2_ has quit []
sharpmachine has joined #ruby
<[k-> Partition doesnt need a hash tho
<[k-> *create
ejnahc has quit [Read error: Connection reset by peer]
ejnahc has joined #ruby
dgutierrez1287 has joined #ruby
<[k-> Since nil is a falsey value, all nils will be the second array
dopie has joined #ruby
<[k-> But why would you want to keep nils
Azulinho has joined #ruby
tmtwd has joined #ruby
user02115123 has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<Senjai> Is datamapper pretty much dead?
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<[k-> compact will also remove the nils
hotpancakes has joined #ruby
mary5030 has joined #ruby
<wmoxam> Senjai: last official release was in Oct. 2011
user02115123 has joined #ruby
tkuchiki has joined #ruby
<Senjai> wmoxam: It was kind of rhetorical, I'm going to axe it from cancancan
<Senjai> I just wanted to make sure
RobertBirnie has quit [Read error: Connection reset by peer]
<Senjai> but thanks :P
<wmoxam> :p
tkuchiki has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<heftig> Monitor is sort-of a recursive Mutex?
pengin has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
balazs has quit [Remote host closed the connection]
iateadonut has quit [Quit: Leaving.]
sharpmachine has quit [Remote host closed the connection]
sharpmachine has joined #ruby
<toretore> heftig: it is reentrant, yes, which Mutex is not
houhoulis has joined #ruby
<toretore> but is also about twice as costly to use
<heftig> just for checking the locking thread against the current thread?
evanjs has quit [Remote host closed the connection]
magical-imouto is now known as ninja-maid-robot
chouhoulis has quit [Remote host closed the connection]
arescorpio has joined #ruby
user02115123 has quit [Quit: Leaving]
zacstewart has quit [Remote host closed the connection]
tkuchiki has joined #ruby
hotpancakes has joined #ruby
ejnahc has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
lokulin has quit [Changing host]
lokulin has joined #ruby
ejnahc has joined #ruby
simplyianm has quit [Remote host closed the connection]
greedo has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
Lilith_Novale has joined #ruby
Fezzler has quit [Quit: Leaving]
Azulinho has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
simplyianm has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
sharpmachine has quit [Remote host closed the connection]
djbkd_ has joined #ruby
beef-wellington has joined #ruby
jamesaxl has quit [Remote host closed the connection]
surs2 has joined #ruby
fgo has joined #ruby
surs1 has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
braincrash has quit [Quit: bye bye]
balazs has joined #ruby
sharpmachine has joined #ruby
Guest71946 has quit [Ping timeout: 264 seconds]
Azure has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 240 seconds]
darkf has joined #ruby
charliesome has quit [Quit: zzz]
simplyianm has quit [Remote host closed the connection]
Fezzler has joined #ruby
braincras has joined #ruby
sharpmachine has quit [Remote host closed the connection]
simplyianm has joined #ruby
Feyn has joined #ruby
simplyianm has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
<Senjai> Is there a common way of display deprecation notices without active support?
startupality has joined #ruby
crdpink has joined #ruby
<Senjai> I've never had to do so in a gem that may not have access to active support
crdpink2 has quit [Ping timeout: 248 seconds]
Fezzler has quit [Quit: Leaving]
but3k4 has joined #ruby
kahunaio has joined #ruby
ejnahc has quit [Ping timeout: 244 seconds]
simplyianm has joined #ruby
Fezzler has joined #ruby
Lilith_Novale has quit [Quit: leaving]
<toretore> usually just output to stderr, aka `warn`, afaik
Sehryn has joined #ruby
tkuchiki has quit [Remote host closed the connection]
gix- has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
Sehryn has quit [Ping timeout: 248 seconds]
startupality has quit [Quit: startupality]
bronson has joined #ruby
zacstewart has joined #ruby
simplyianm has quit [Remote host closed the connection]
gix has joined #ruby
simplyianm has joined #ruby
emdub has quit [Ping timeout: 250 seconds]
emdub has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
chouhoulis has joined #ruby
qiukun has joined #ruby
maletor has joined #ruby
<Senjai> Bleh
<Senjai> Yeah, I guess that's what I'll do
chouhoulis has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 255 seconds]
unshadow_ has joined #ruby
fenjamin has quit [Quit: 离开]
tdy has quit [Ping timeout: 252 seconds]
juanpablo_ has joined #ruby
triangles2 has joined #ruby
icebourg has joined #ruby
unshadow has quit [Ping timeout: 256 seconds]
tdy has joined #ruby
hotpancakes has joined #ruby
Xoro has quit [Ping timeout: 246 seconds]
juanpablo_ has quit [Ping timeout: 256 seconds]
thiagovsk has joined #ruby
Asher has quit [Quit: Leaving.]
tkuchiki has joined #ruby
fabrice31 has joined #ruby
Xoro has joined #ruby
Asher has joined #ruby
Rickmasta has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
theery has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 265 seconds]
theery has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
einarj has joined #ruby
bricker_ has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
simplyianm has quit [Remote host closed the connection]
bricker has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 256 seconds]
chinmay_dd has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
simplyianm has joined #ruby
konsolebox has joined #ruby
bricker_ has quit [Ping timeout: 246 seconds]
yeticry has quit [Ping timeout: 248 seconds]
mike___1234 has quit [Ping timeout: 256 seconds]
simplyianm has quit [Remote host closed the connection]
bricker has joined #ruby
yeticry has joined #ruby
dopie has joined #ruby
kahunaio has quit [Quit: Lost terminal]
dagda1 has joined #ruby
simplyianm has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
scripore has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yeticry has quit [Remote host closed the connection]
yeticry has joined #ruby
simplyianm has quit [Ping timeout: 244 seconds]
simplyianm has joined #ruby
dopie has quit [Ping timeout: 255 seconds]
CloCkWeRX has joined #ruby
Musashi007 has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 248 seconds]
<hololeap> >> class Object; def method_missing name, *args, &blk; self; end; end; 45.is.an.awesome.number.here.let.me.show.you
<ruboto> hololeap # => 45 (https://eval.in/396865)
beef-wellington has quit [Ping timeout: 240 seconds]
<[k-> We usually do not shorten &block to &blk
yardenbar has quit [Quit: Leaving]
<bnagy> eh?
Bloodshot has joined #ruby
<bnagy> &blk is incredibly common
dopie has joined #ruby
<[k-> I find it ugly
<bnagy> ok, well say that
<bnagy> also, someone just defined method_missing on Object and your complaint is choice of variable name for the block?? ;)
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
balazs has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 264 seconds]
serivich has joined #ruby
simplyianm has quit [Remote host closed the connection]
baweaver has joined #ruby
simplyianm has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
theery has joined #ruby
serivichi has quit [Ping timeout: 248 seconds]
<[k-> They can do whatever they want as long as it looks nice
scripore has quit [Quit: This computer has gone to sleep]
circ-user-YMVdo has joined #ruby
simplyianm has quit [Remote host closed the connection]
circ-user-YMVdo is now known as man
man is now known as circ-user2
circ-user2 has left #ruby [#ruby]
mike___1234 has joined #ruby
mike___1234 has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
bronson has joined #ruby
ajadjad has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
ajadjad has left #ruby [#ruby]
mary5030 has quit [Ping timeout: 248 seconds]
GitGud has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
<konsolebox> and/or vs. &&/|| on non-assignment statements. your preference? and no it's-what's-preferred-by-the-community !@#$ please ;)
MichaelGG_ has quit [Remote host closed the connection]
<Bloodshot> && and || are preferred almost always, I think
<bnagy> && ||
<Bloodshot> and and or have different precedence
<Bloodshot> And it's extra mental load
<bnagy> ^^
Rollabunna has joined #ruby
tcdowney has joined #ruby
natevick has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
chipotle has quit [Quit: cheerio]
sevin_ has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dagda1 has joined #ruby
sevin has joined #ruby
<konsolebox> Bloodshot: i believe you're describing them the other way around :)
<Bloodshot> How do you mean, the other way around?
zacstewart has quit [Remote host closed the connection]
<konsolebox> Bloodshot: and and or has the same precedence. && has higher precedence than || which is more confusing, but the community persists that it's better :)
icebourg has quit []
<Bloodshot> Oh, sorry, I meant 'and' and 'or' have different precedence than '&&' and '||'
<Bloodshot> Not that they have different precedence from each other
Rollabunna has quit [Ping timeout: 248 seconds]
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ejnahc has joined #ruby
nobitanobi has joined #ruby
<konsolebox> && and || can't be used in a chain, and if used in chains necessitates the use of () to keep precedence in control, which is ugly.
arup_r has joined #ruby
Guest71946 has joined #ruby
<bnagy> I foolishly thought that you were asking a question, but apparently you just wanted to rant
* bnagy wanders off
nobitanobi has quit [Remote host closed the connection]
riotjones has joined #ruby
charliesome has joined #ruby
nobitanobi has joined #ruby
Channel6 has joined #ruby
<konsolebox> bnagy: i am needing of other users' insights of course. ranting, can be done in many ways, and this is not the best one
balazs has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
77CAABGHS has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
ItSANgo__ has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Client Quit]
CloCkWeRX has quit [Ping timeout: 244 seconds]
<konsolebox> bnagy: i'm interested to see someone break my arguments in a strictly statistical and technical fashion ;)
<[k-> Too much effort
ivanskie has joined #ruby
t0rrieri__ has joined #ruby
<i8igmac> im writing some data to a mysql database with ruby, im very new to this database stuff... the database will be processed by a php script to display results on a webpage
ohaibbq has joined #ruby
<i8igmac> im inserting this data with ruby, there is a part i feel im doing wrong, or there is a easer way
bubbys has joined #ruby
t0rrieri_ has quit [Ping timeout: 256 seconds]
hoofed has joined #ruby
<i8igmac> so this portion of goofy data, will be pulled with a php script
<i8igmac> the data i insert with ruby looks like this
konsolebox has quit [Read error: Connection reset by peer]
<i8igmac> $eval=array('bob' => '/img/abc.jpg', 'tim' => '/img/xyz.jpg', ....and so on)
symm- has joined #ruby
t0rrieri__ has quit [Ping timeout: 264 seconds]
aaeron has joined #ruby
icebourg has joined #ruby
t0rrieri__ has joined #ruby
adevninja has joined #ruby
martianixor has joined #ruby
bricker has quit [Ping timeout: 265 seconds]
chinmay_dd has quit [Quit: See ya!]
bricker has joined #ruby
balazs has quit [Remote host closed the connection]
hoofed has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
gnudon has joined #ruby
eToThePiIPower has joined #ruby
eToThePiIPower has quit [Remote host closed the connection]
ItSANgo__ has joined #ruby
tcdowney has quit [Ping timeout: 252 seconds]
eToThePiIPower has joined #ruby
simplyianm has quit [Ping timeout: 244 seconds]
77CAABGHS has quit [Ping timeout: 256 seconds]
arup_r has quit [Ping timeout: 240 seconds]
Feyn has quit [Quit: Leaving]
bricker_ has joined #ruby
eToThePiIPower has quit [Remote host closed the connection]
konsolebox has joined #ruby
theery has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 252 seconds]
theery has joined #ruby
ZOMGITSABEAR has joined #ruby
Rollabunna has joined #ruby
<ZOMGITSABEAR> hey guys
<ZOMGITSABEAR> any webdesigners in here?
pepperbreath has joined #ruby
stantonnet has quit [Ping timeout: 256 seconds]
surs3 has joined #ruby
girakrok has quit [Max SendQ exceeded]
<ZOMGITSABEAR> if not, then were would i find webdesigners?
stantonnet has joined #ruby
ivanskie has quit [Ping timeout: 264 seconds]
surs2 has quit [Ping timeout: 244 seconds]
kies^ has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
yardenbar has joined #ruby
fabrice31 has joined #ruby
arescorpio has quit [Quit: Leaving.]
Fezzler has quit [Quit: Leaving]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
unshadow_ has quit [Ping timeout: 250 seconds]
roolo has joined #ruby
blue_deref has quit [Quit: bbn]
zacstewart has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
GitGud has quit [Read error: Connection reset by peer]
GitGud has joined #ruby
theery has quit [Remote host closed the connection]
maletor has joined #ruby
sharpmachine has joined #ruby
bricker_ has quit [Read error: Connection reset by peer]
surs4 has joined #ruby
bricker has joined #ruby
martianixor has quit [Quit: Leaving]
surs3 has quit [Ping timeout: 248 seconds]
icebourg has quit []
maletor has quit [Read error: Connection reset by peer]
kies^ has joined #ruby
maletor has joined #ruby
sharpmachine has quit [Remote host closed the connection]
SylarRuby has joined #ruby
sharpmachine has joined #ruby
olistik has joined #ruby
sharpmachine has quit [Remote host closed the connection]
<ght> Question: I have a very strange scenario here. I'm passing a fairly long parameter to a Ruby app of mine. It takes the values of the parameter, ARGV[1], and
<ght> parses the values into a hash.
<ght> Normally this works fine, but intermittently, it cuts off the parameter at the space.
Azulinho has quit [Quit: Leaving]
<t_> can you post an example parameter?
<t_> preferably the one that causes the error
ZOMGITSABEAR has left #ruby [#ruby]
houhoulis has quit [Remote host closed the connection]
blaines has joined #ruby
sevenseacat has joined #ruby
<bnagy> space is a separator for ARGV, no?
<bnagy> how is that unexpected?
<ght> Because it works 90% of the time
<ght> and them randomly, for no clear reason, it stops working
tejasmanohar has joined #ruby
adevninja has quit [Quit: Leaving]
<ght> the Ruby script is called from a seperate Bash script, I was at one point attempting to get the script to pass the parameter with double quotes around it but the concept of doing such blew everyones mind in #bash, and then it started working again, so I stopped.
<ght> It's a very bizarre situation.
zacstewart has quit [Ping timeout: 244 seconds]
blaines has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
<bnagy> try p ARGV when you have a param that causes the fault
nikhgupta has joined #ruby
<bnagy> but without some kind of quoting or escaping spaces will always separate ARGV params
symm- has quit [Ping timeout: 246 seconds]
<ght> Yes, it's quite bizarre
<bnagy> unlikely
<bnagy> is there more than one param? Is just slurping the rest of ARGV an option?
bricker has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
<bnagy> otherwise you can maybe do *stuff, last = ARGV
<bnagy> but stuff will always be an array now
houhoulis has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
luriv_ has joined #ruby
bricker has joined #ruby
baweaver_ has joined #ruby
baweave__ has joined #ruby
[k- has quit [Ping timeout: 250 seconds]
tmtwd has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 250 seconds]
bricker has joined #ruby
baweaver_ has quit [Ping timeout: 248 seconds]
olistik has quit [Remote host closed the connection]
[k- has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
aaeron has quit [Quit: Leaving.]
houhoulis has quit [Remote host closed the connection]
Rollabunna has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
konsolebox has quit [Read error: Connection reset by peer]
arooni-mobile has joined #ruby
_blizzy_ has joined #ruby
tmtwd has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
zacstewart has joined #ruby
MarkTurner has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
hotpancakes has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<tejasmanohar> whats the easiest way to loop thru xml like this and grab all the `html_instructions`
<tejasmanohar> nokogiri + .each + build it into an array/string after checking the key?
simplyianm has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
lxsameer has joined #ruby
lxsameer has joined #ruby
nikhgupt has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
nikhgupta has quit [Ping timeout: 240 seconds]
simplyianm has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
tejasmanohar has joined #ruby
ips|malc has quit [Quit: Textual IRC Client: www.textualapp.com]
[k- has quit [Read error: No route to host]
SylarRuby has quit []
riotjones has quit [Ping timeout: 256 seconds]
peter_paule has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
lapide_viridi has joined #ruby
niemcu has joined #ruby
MarkTurner has quit [Ping timeout: 256 seconds]
baweave__ has quit [Read error: Connection reset by peer]
Thomas-0725 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 256 seconds]
keen__________16 has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 240 seconds]
[k- has joined #ruby
keen__________16 has joined #ruby
Antiarc has quit [Ping timeout: 246 seconds]
peter_paule has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
ledestin has joined #ruby
_blizzy_ has joined #ruby
t0rrieri__ has quit [Quit: Be back later ...]
hotpancakes has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
dellavg has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
casadei_ has joined #ruby
peter_paule has quit [Ping timeout: 256 seconds]
Antiarc has joined #ruby
matcouto has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
toretore has quit [Quit: This computer has gone to sleep]
hotpancakes has quit [Remote host closed the connection]
krz has joined #ruby
pico-pete has joined #ruby
<[k-> Ox0dea, ping
_ht has joined #ruby
Jackneill has joined #ruby
blackmesa has joined #ruby
tmtwd has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
sameerynho has joined #ruby
olistik has joined #ruby
charliesome has quit [Quit: zzz]
sent-hil has joined #ruby
<apeiros> Senjai: actually there is: itself. ary.group_by(&:itself)
<apeiros> (a method which returns the object itself)
lxsameer_ has joined #ruby
zacstewart has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
dfockler has joined #ruby
sameerynho has quit [Ping timeout: 246 seconds]
Hounddog has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
dfockler has quit [Ping timeout: 252 seconds]
Hounddog has quit [Ping timeout: 264 seconds]
peter_paule has joined #ruby
hotpancakes has joined #ruby
whiteline has joined #ruby
Hounddog has joined #ruby
einarj has joined #ruby
Antiarc has quit [Ping timeout: 246 seconds]
haxrbyte has quit [Ping timeout: 246 seconds]
<shevy> damn
<shevy> more perl code
hotpancakes has quit [Ping timeout: 255 seconds]
einarj has quit [Ping timeout: 246 seconds]
Channel6 has quit [Quit: Leaving]
surs has joined #ruby
surs4 has quit [Ping timeout: 255 seconds]
<[k-> Decoding is much shorter than encoding!
tejasmanohar has quit [Quit: WeeChat 1.1.1]
<[k-> Security through obscurity !
<zenspider> damn. I do not miss that language at all
fabrice31 has joined #ruby
<[k-> I am such a good ruby perler :)
<[k-> I figure if i change map to reduce...
jenrzzz has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Ping timeout: 244 seconds]
kies^ has quit [Ping timeout: 264 seconds]
<[k-> Nailed it
timonv has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
<zenspider> nailed... something
meatchicken has quit [Ping timeout: 244 seconds]
bkxd has quit [Client Quit]
meatchicken has joined #ruby
<[k-> Im still not sure how to change the regexp to support symbols and numbers
crowell has quit [Ping timeout: 264 seconds]
Ilyas has joined #ruby
<apeiros> what did thing do to deserve nailing? :-O
moeSeth has joined #ruby
bosma has quit [Quit: Leaving]
<[k-> I used globals liberally :>
<apeiros> but you used send! that's alnums!
<apeiros> and scan and encode…
<apeiros> an reduce…
<[k-> There isnt any replacement that i knew off :(
psy_ has quit [Remote host closed the connection]
<[k-> Encode was just there for readability
fgo has joined #ruby
<zenspider> hahahahhahahaha... um. readability?
<[k-> I can change reduce to a conversion to ord and back if you want
bronson has joined #ruby
<[k-> Thats the main thing the program was!
<shevy> this program
<[k-> Best?
dgutierrez1287 has joined #ruby
<[k-> I could write a library of common operations
crowell has joined #ruby
epistrephein has joined #ruby
<[k-> And include it in everything i write!
<[k-> I'll use $© to access the lambdas
bronson has quit [Ping timeout: 248 seconds]
fgo has quit [Ping timeout: 248 seconds]
<[k-> And $©[?a] and any other symbols
epistrephein has quit [Client Quit]
ndrei has joined #ruby
mhib has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
<sevenseacat> lol
<shevy> now you did it [k-
<shevy> you made the cat laugh
<apeiros> [k-: but ?a is alnum
zacstewart has joined #ruby
blackmesa has joined #ruby
<[k-> It doesnt matter cuz no one knows what $©[?a] does
ohaibbq has quit [Remote host closed the connection]
havenwood has joined #ruby
djbkd has joined #ruby
hmnhf has joined #ruby
Antiarc has joined #ruby
Rollabunna has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
quazimod1 has quit [Ping timeout: 264 seconds]
quazimodo has joined #ruby
quazimod1 has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
Zai00 has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
Rollabunna has quit [Ping timeout: 248 seconds]
bricker has joined #ruby
psy_ has joined #ruby
george2 has quit [K-Lined]
levick has joined #ruby
<zenspider> I do
<apeiros> zenspider: don't contest me being nobody!
<apeiros> oh, ok, [k- said "no one", not "nobody".
<zenspider> :P
<apeiros> good. so ?zensider will be "zenspider is no one" :)
bricker has quit [Ping timeout: 256 seconds]
<zenspider> you'll always be nobody to me :P
<zenspider> haha
<jhass> anybody doesn't care
levick has quit [Client Quit]
<[k-> This could be a solution!
<[k-> Oh wait, 2 is missing :(
<[k-> Curses
zacstewart has quit [Ping timeout: 264 seconds]
<[k-> Its recursive!
bricker has joined #ruby
<[k-> So if you have a very long string, it will crash
<[k-> Not a very long string even
<[k-> Just random characters that
Thomas-0725 has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-> Do not match the one before
hotpancakes has joined #ruby
<[k-> Im going to grab some strings from /dev/
<[k-> random
<[k-> ...
thiagovsk has quit [Quit: Connection closed for inactivity]
blackmes1 has joined #ruby
DoubleMalt has joined #ruby
mhib has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 255 seconds]
<[k-> It works! Excellent
niemcu has quit [Ping timeout: 246 seconds]
<[k-> Time to integrate the solution
<zenspider> what IS the opposite of code golf, but where you're still trying to make an unreadable mess?
hotpancakes has quit [Ping timeout: 248 seconds]
<[k-> Im guessing obfuscation
<apeiros> zenspider: they are trying to write code without alnum chars in it
<zenspider> "partition" ?
<apeiros> or at least that's what Ox0dea does. not sure about [k-
<[k-> [k- hasnt reached the skill of Ox0dea
timonv has joined #ruby
<[k-> So he is still relying on alnums
tkuchiki has joined #ruby
qiukun has quit [Quit: qiukun]
<zenspider> whereas I try to write code with as few non-alnums as possible
<apeiros> natural mortal enemies
mweshi has joined #ruby
<zenspider> mix our code and.... boom
<zenspider> or maybe it finally works?
decoponyo has joined #ruby
olistik has quit [Remote host closed the connection]
decoponi_ has joined #ruby
decoponio has quit [Ping timeout: 255 seconds]
<[k-> Heh, i had a little trouble refactoring
<[k-> Oops
decoponyo has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
peter_paule has quit [Ping timeout: 246 seconds]
spider-mario has joined #ruby
decoponi_ has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
djbkd has quit [Remote host closed the connection]
casadei_ has joined #ruby
n008f4g_ has joined #ruby
zacstewart has joined #ruby
bodgix_wrk has joined #ruby
JMoir has joined #ruby
<[k-> You know what is even more devious?
zacstewart has quit [Read error: Connection reset by peer]
qiukun has joined #ruby
<[k-> _m = [:partition, :method2, :method3,...].cycle
casadei_ has quit [Ping timeout: 240 seconds]
<[k-> So if you want method3, _m[299]
vickleton has joined #ruby
xkef has joined #ruby
zacstewart has joined #ruby
<[k-> Im going to make this as obscure as possible and put it up on github
ndrei has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
peter_paule has joined #ruby
hanyn has joined #ruby
toretore has joined #ruby
hanine has quit [Read error: Connection reset by peer]
haneen has joined #ruby
olistik has joined #ruby
[k- has quit [Ping timeout: 244 seconds]
<shevy> <zenspider> what IS the opposite of code golf, but where you're still trying to make an unreadable mess?
<shevy> madness
<zenspider> hah
toretore has quit [Client Quit]
hotpancakes has joined #ruby
hanyn has quit [Ping timeout: 246 seconds]
darkf_ has joined #ruby
peter_paule has quit [Ping timeout: 244 seconds]
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
* apeiros sobs
* apeiros wants GB fiber to home…
[k- has joined #ruby
<apeiros> even Gb would be good enough for the start.
blackmes1 has quit [Ping timeout: 252 seconds]
Mweshi_ has joined #ruby
MAQ has joined #ruby
allomov has quit [Remote host closed the connection]
mweshi has quit [Ping timeout: 246 seconds]
<MAQ> hi
hotpancakes has quit [Ping timeout: 244 seconds]
blackmes1 has joined #ruby
<[k-> Ello
jenrzzz has quit [Ping timeout: 246 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
<[k-> Hello?
<shevy> [k- you are back!
<shevy> [k- do you repent your sins and will only write excellent ruby code henceforthwith?
xkef_ has joined #ruby
revath has joined #ruby
<[k-> One can never write excellent code, only code that satisfies him at that point in time
simplyianm has joined #ruby
jamesaxl has joined #ruby
Ilyas has quit [Ping timeout: 255 seconds]
<[k-> Hence, no
<[k-> Because i cant write excellent code
xkef has quit [Ping timeout: 256 seconds]
MAQ has left #ruby [#ruby]
simplyianm has quit [Ping timeout: 265 seconds]
<shevy> we could see that before :>
<[k-> Lies, that code was glorious
qiukun has quit [Quit: qiukun]
<[k-> Did you know researches can guess your password by listening to the sounds the machine makes?
surs1 has joined #ruby
<[k-> By using this, they wouldnt be able to!
<jhass> or listen to your conversation by filming the plant nearby?
<shevy> [k- you mean based on the keys?
bruno- has joined #ruby
Blaguvest has quit []
ndrei has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
ndrei has joined #ruby
surs has quit [Ping timeout: 256 seconds]
<[k-> I think i erred
<[k-> Wai
bruno- has quit [Ping timeout: 244 seconds]
<[k-> That isnt the article
lapide_viridi has quit [Quit: Leaving]
einarj has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
eGGsha has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
<[k-> See
decoponio has quit [Ping timeout: 244 seconds]
<[k-> It was in 2013
decoponyo has joined #ruby
decoponyo has quit [Client Quit]
surs2 has joined #ruby
surs1 has quit [Ping timeout: 256 seconds]
j416 has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
zacstewart has joined #ruby
jottr has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
peter_paule has joined #ruby
ta has quit [Remote host closed the connection]
j416 has joined #ruby
olistik has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 256 seconds]
DoubleMalt has quit [Ping timeout: 248 seconds]
olistik has joined #ruby
sdothum has joined #ruby
roolo has quit [Remote host closed the connection]
djbkd has joined #ruby
Enarko has joined #ruby
peter_paule has quit [Ping timeout: 256 seconds]
decoponio has joined #ruby
xkef_ has quit [Quit: leaving]
bodgix_wrk has quit [Quit: Leaving.]
xkef has joined #ruby
fgo has joined #ruby
djbkd has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
allcentury has joined #ruby
phutchins2 has quit [Ping timeout: 252 seconds]
DoubleMalt has joined #ruby
Rutix has quit []
scripore has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
blackmesa has joined #ruby
GarethAdams has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
Oka has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
tpuca has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
GarethAdams has joined #ruby
Muhannad has joined #ruby
qiukun has joined #ruby
niemcu has joined #ruby
tpuca has quit [Quit: leaving]
kies^ has joined #ruby
tpuca has joined #ruby
serivich has joined #ruby
ndrei has joined #ruby
mandarinkin has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lapide_viridi has joined #ruby
surs3 has joined #ruby
RobertBirnie has joined #ruby
redjack1964 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
surs2 has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
casadei_ has joined #ruby
<lxsameer_> I'm looking for xml web service client in ruby. is there any?
jottr_ has joined #ruby
<apeiros> -.-
CamonZ has joined #ruby
<apeiros> "is there any" tells me that you spent exactly 0s on your own on this.
<apeiros> lxsameer_: ruby-toolbox.com. enjoy.
havenwood has quit [Ping timeout: 246 seconds]
jbw_ has quit [Ping timeout: 264 seconds]
<lxsameer_> apeiros: no , I searched before an came up with several choices
<lxsameer_> apeiros: but I need to know it base on people experiences
jottr has quit [Ping timeout: 246 seconds]
<apeiros> then ask that.
<apeiros> show that you did your duty.
<apeiros> what you did is just pissing people like me off.
casadei_ has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
mali1 has joined #ruby
Mweshi_ has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
herbst has quit [Quit: leaving]
dionysus69 has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
mercwithamouth has quit [Ping timeout: 264 seconds]
mali1 has left #ruby [#ruby]
G has quit [Quit: leaving]
lapide_viridi has quit [Quit: Leaving]
<lxsameer_> apeiros: sorry about that
void has joined #ruby
riotjones has joined #ruby
revath has quit [Read error: Connection reset by peer]
revath has joined #ruby
<[k-> We shall punish him with an excerpt of my code
<[k-> And he has to tell us what it does!
<apeiros> [k-: that's exceptionally cruel
<[k-> :>
riotjones has quit [Ping timeout: 256 seconds]
<apeiros> lxsameer_: no need to be sorry. I'm not offended. Just less inclined to help :) And I tell you that so you can improve the responses you get.
tkuchiki has joined #ruby
jbw has joined #ruby
void has left #ruby [#ruby]
<shevy> AHA
<shevy> HE IS NOT GOING TO HELP YOU NOW!!!
<lxsameer_> apeiros: thanks
<lxsameer_> [k-: nooooooooooooooo
<shevy> not that I could, I gave up on xml years ago
<lxsameer_> unfortunately I have to :(
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> well apeiros said that you can improve the responses you get
<shevy> so let's see if we can find a XML hero here!
Zai00 has quit [Quit: Zai00]
allcentury has quit [Ping timeout: 244 seconds]
<[k-> yorickpeterse!
Soda has joined #ruby
Zai00 has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
Azure has joined #ruby
Muhannad has quit [Remote host closed the connection]
Papierkorb has joined #ruby
Zai00 has quit [Client Quit]
GitGud has quit [Ping timeout: 252 seconds]
<shevy> back in 2003, XML would have excited so many people
phutchins2 has joined #ruby
djbkd has joined #ruby
surs4 has joined #ruby
Azure has quit [Ping timeout: 248 seconds]
Enarko has quit [Quit: Enarko]
sent-hil has quit [Quit: Connection closed for inactivity]
kies^ has quit [Ping timeout: 255 seconds]
peter_paule has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
surs3 has quit [Ping timeout: 256 seconds]
lapide_viridi has joined #ruby
hotpancakes has joined #ruby
revath has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
revath has joined #ruby
edwinvdg_ has joined #ruby
Dreamer3 has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
timonv has quit [Read error: No route to host]
edwinvdgraaf has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 248 seconds]
fabrice31 has quit [Ping timeout: 252 seconds]
FernandoBasso has joined #ruby
tpuca has quit [Quit: Lost terminal]
timonv has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
Enarko has joined #ruby
xkef has quit [Ping timeout: 240 seconds]
<yorickpeterse> [k-: que?
xkef has joined #ruby
slumos[away] has quit [Ping timeout: 276 seconds]
rtl has quit [Ping timeout: 252 seconds]
<[k-> let xml
rtl has joined #ruby
Rollabunna has joined #ruby
tpuca has joined #ruby
<shevy> die
mhib has joined #ruby
revath has quit [Ping timeout: 248 seconds]
xkef_ has joined #ruby
revath has joined #ruby
xkef has quit [Ping timeout: 252 seconds]
FernandoBasso has quit [Quit: WeeChat 1.2]
blackmesa has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 256 seconds]
FernandoBasso has joined #ruby
Aderium has joined #ruby
asterisker has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
<shevy> woot
<shevy> you almost went to finish :)
<Aderium> yeah
<shevy> you could in theory omit rdoc
<shevy> if you don't need them anyway
<Aderium> that is what I am tryingnow --disable-install-doc
<shevy> that error is weird
<Aderium> see what happens
<shevy> date_core.so: symbol rb_infinity: referenced symbol not found - /export/home/dolly/ruby-2.1.6/.ext/x86_64-solaris2.11/date_core.so (LoadError)
<Aderium> yeah
<Aderium> not sure what that is
Shidash has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
<shevy> interestingly
<shevy> I also have this file: /usr/lib/x86_64-linux-gnu/ruby/2.1.0/date_core.so
<shevy> BUT
<shevy> in my self-compiled ruby, I don't have it at all
Shidash has joined #ruby
asterisker has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Aderium> date/date_core.c
<Aderium> Home class method ?
dgutierrez1287 has joined #ruby
<Aderium> Ladies & gentelman ......
<Aderium> !!!!!!!
<Aderium> we have a winner
<shevy> did you run irb yet
<shevy> ah btw you should document your findings too at the bug tracker
<Aderium> I will blog it next :)
<Aderium> I did not run irb yet
<Aderium> not sure what that means or why
<Aderium> I am a ruby infant :)
Azure has joined #ruby
revath has quit [Ping timeout: 240 seconds]
peter_paule has quit [Ping timeout: 240 seconds]
<shevy> in bin/irb you can run it directly I think: ./bin/irb
<shevy> from that dir
<shevy> if it starts up fine and works then I believe you!
<shevy> you are not only an infant
<shevy> you are an exot
<Aderium> yeah but here is the thing ..... I am so upset ... file ruby
<Aderium> ruby: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped
<shevy> aha
<Aderium> how can that be
<shevy> that is strange
tekk has quit [Ping timeout: 246 seconds]
<Aderium> uhm .....
<Aderium> ./irb
<Aderium> 1.9.3-p545 :001 >
<Aderium> now that is strange
<jhass> lol
<Aderium> something going on with a previous rvm install ?
<jhass> it's using your system ruby
<shevy> I don't know what ./irb is there
<jhass> ./bin/ruby ./bin/irb
<Aderium> ~/ruby64/bin/irb
<shevy> installing binary commands: /export/home/dolly/ruby64/bin
<Aderium> yeah
<jhass> ~/ruby64/bin/ruby ~/ruby64/bin/irb then
<Aderium> so I irb from that location
<shevy> Aderium did you try RUBY_VERSION inside too?
<Aderium> let me see
<Aderium> dolly@vdocklab01:~/ruby64/bin$ ./ruby -v
<Aderium> ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-solaris2.11]
<shevy> yay now you have several different ruby versions!
<Aderium> now I am confused
<jhass> try my suggestion
<shevy> add one more ruby version :>
<shevy> or kill the other ones
<Aderium> uh ?
<jhass> irb is a script. with a hashbang
<Aderium> yeah
<jhass> your ~/ruby64/bin doesn't come before your /usr/bin/ or whatever in your $PATH
<Aderium> i see that but rvm maybe defaulting the env ruby ver
<Aderium> ah
<Aderium> ok one sec
<Aderium> export PATH=/export/home/dolly/ruby64/bin
<Aderium> ruby -v
<Aderium> ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-solaris2.11]
<jhass> uhm completely replacing PATH might not be a good idea
<jhass> why won't you try my suggestion
<jhass> ~/ruby64/bin/ruby ~/ruby64/bin/irb then
<Aderium> just added not replaced
<Aderium> but if I irb
<Aderium> still
<Aderium> irb
<Aderium> 1.9.3-p545 :001 >
<jhass> k, I give up
<Aderium> a common ....
<Aderium> been at this for days :)
<Aderium> let me remove rvm
<Aderium> unles ....
<jhass> idk why you don't try my suggestion
<shevy> Aderium if you don't need the old one
<Aderium> ideally what needs to happen is to tell rvm to install 2.1.6 but that if it does not find binaries to get the local source
<shevy> then kill it
krz has quit [Quit: WeeChat 1.0.1]
tpuca has left #ruby [#ruby]
<shevy> or modify $PATH
<shevy> :)
<jhass> do you need RVM? chruby you can just point at your compile
<jhass> with rvm there's the mount stuff
<jhass> rvm help mount iirc
<jhass> but depending on what you're doing just using the full path to the binary may work
<Aderium> I dont necessarly need rvm but I never used chruby
slumos has joined #ruby
<jhass> like in my suggestion to try runing irb under it
<shevy> yeah
G has joined #ruby
<Aderium> BRB
blackmesa has joined #ruby
<shevy> full path should always work
<shevy> btw how comes he can compile it on solaris, but fail to invoke it properly :)))
startupality has joined #ruby
peter_paule has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<shevy> that's like successfully running a marathon - but unable to go to a shop and buy running shoes
<jhass> [k-: wrong channel?
<[k-> look at the code ;)
<jhass> .tcl
<jhass> no
<shevy> :)
radialneon has joined #ruby
<bnagy> does -W0 not work with ruby -e ? I'm getting the "world writeable dir in path" error, and I have it there on purpose
<Aderium> ok imploded rvm
<bnagy> Aderium: I would run a find just to make sure everything is gone, imho
yeticry has quit [Ping timeout: 256 seconds]
ninja-maid-robot is now known as magical-imouto
<bnagy> I got bitten by a long dead rvm install just the other day
<bnagy> find / -iname "*rvm*" -type f 2>/dev/null or something
casadei_ has joined #ruby
peter_paule has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
<Aderium> ok
<Aderium> ruby -v
<Aderium> ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-solaris2.11]
<Aderium> dolly@vdocklab01:~$ irb
<Aderium> irb(main):001:0> exit
<Aderium> dolly@vdocklab01:~$ which ruby
<Aderium> now what should I do in irb
Enarko has quit [Quit: Enarko]
<Aderium> this is madness
<Aderium> its all 64 bit but its linking to elf 32-bit
einarj has joined #ruby
<Aderium> ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> RUBY_DESCRIPTION
<jhass> inside irb
NeverDie has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<Aderium> => "ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-solaris2.11]"
surs has joined #ruby
eGGsha has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
<jhass> RbConfig::CONFIG may have some interesting keys too, target/host/build cpu, os, vendor
<Aderium> should I type that in irb ?
sepp2k has joined #ruby
<shevy> you can
<shevy> it is valid ruby after all
<jhass> just RbConfig::CONFIG or treat it like a hash with string keys
einarj has quit [Ping timeout: 255 seconds]
<jhass> okay, mayb require "pp" and pp RbConfig::CONFIG :P
<shevy> "build_cpu"=>"x86_64"
<shevy> seems fine doesn't it?
chouhoulis has joined #ruby
* jhass is spoiled by pry
<shevy> btw Aderium have you tried "gem env" already
<Aderium> uhm
<shevy> ah ok
surs4 has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
<Aderium> gem install libyalm ?
<shevy> no it is c code
<bnagy> madness. The warning warns when _any_ dir that's in the tree of a dir in my path is world writeable
<jhass> libyaml is a c library
<shevy> you can wget it like from here: wget http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz
<bnagy> so.. so much for nfs
<shevy> it won't take long to compile, 2 minutes or so
<bnagy> and it's a compile CFLAG to disable
<bnagy> not, like, env or anything smart
<bnagy> muppets. :<
<shevy> bnagy yeah, ruby's warnings are weird
hmnhf has quit [Ping timeout: 255 seconds]
<shevy> same with things such as naming something a "constant", and being able to change it. in the past, one had different warnings when redefining a constant
<jhass> bnagy: maybe it's because it's a really really really bad idea ;P
<shevy> I remember, Object.const_set() used to not give a warning
<bnagy> well I'm kind of o_0 that -W0 doesn't fix it
<Aderium> its making
<shevy> \o/
<shevy> there should not be any error :)
<bnagy> jhass: it's not always a bad idea at all
<jhass> world writable directory in PATH? yes it is
<bnagy> neither you nor ruby knows enough about my security posture to spam warnings that can't be reasonably disabled
<shevy> yeah, user should have the option to overrule at user preference
chouhoulis has quit [Ping timeout: 248 seconds]
<bnagy> like.. there is the user ruby is running as and there is root
<Aderium> ok yalm installed
<shevy> ok good
<bnagy> why should I care about anything being world writeable?
<shevy> Aderium problem is I don't know how to recompile only the bindings part :\
<Aderium> I may have to recompile the whole thing then
<shevy> Aderium I usually compile again :P
<shevy> yeah, I do that too
<shevy> but aside from libyaml, there should be no showstoppers
hotpancakes has quit [Ping timeout: 246 seconds]
<shevy> the bindings in ext/ directory like readline or openssl can be compiled lateron
<jhass> bnagy: the user ruby should run under has no business of placing binaries into its PATH potentially shadowing others
<jhass> and if you have two users only, why make it world writable, just give the one user the permissions if it's so necessary and keep the others out
<bnagy> wat?
<Aderium> yalm also was installed 32 bit ...
<Aderium> ok breack and reboot
<shevy> Aderium oh?
<jhass> Aderium: maybe your linker is somehow incapable to generate ELF 64bit?
<bnagy> jhass: because it warns when ANY OF THE DIRS in /path/to/blah are world writeable
<Aderium> I am not sure that that should be the case
<Aderium> I am running autoconf before configure
<jhass> well yeah, if any is world writable I can just rm -rf something under it and recreate it to my liking
<Aderium> I wonder if that screws things up
jottr_ has quit [Read error: Connection reset by peer]
<jhass> from any user
<shevy> don't think autoconf should screw up anything, it only obtains the information from... configure.ac or configure.in doesn't it?
<shevy> and config.guess
[k-_ has joined #ruby
<bnagy> of which there are two
jottr_ has joined #ruby
<bnagy> but it's not a matter of debating my security posture on this system, which IS FINE it's a matter of retarded undisableable warnings being bad software behaviour
<jhass> why is chgrp or chown so much more of a headache to you than chmod 777 ?
Rollabunna has joined #ruby
<bnagy> any warning that can't be silenced is, imho, a bug
nikhgupt has quit [Ping timeout: 264 seconds]
<shevy> it's spam
blackmesa has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
<[k-_> @SuppressWarnings
george2 has joined #ruby
<bnagy> if -W0 worked I would be less enraged about it
<[k-_> oh -W stood for warnings
<shevy> -W0 means disable all warnings? or only specific warnings?
niemcu has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 264 seconds]
<[k-_> im itching to show Ox0dea my heinious creation ;)
<shevy> Ox0dea is not here
* shevy sighs relievedly.
<bnagy> shevy: 0 Verbose mode is "silence". It sets the $VERBOSE to nil
Rollabunna has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
<shevy> ah yes
davedev24 has joined #ruby
<bnagy> so obviously this CRIME AGAINST HUMANITY is too egregious to ever be silenced
<[k-_> did you set $DEBUG to nil too
chinmay_dd has joined #ruby
<bnagy> debug is off by default
<shevy> do you play with global vars [k-_ :P
<[k-_> i do not play with the ones that come with ruby
zacstewart has joined #ruby
<shevy> aha
<bnagy> I can't even 2>/dev/null because the script well-behavedly prints info output to stderr
mercwithamouth has quit [Ping timeout: 248 seconds]
surs1 has joined #ruby
<bnagy> (╯°□°)╯︵ ┻━┻ time to make dinner instead
surs has quit [Ping timeout: 256 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
Oka has quit [Remote host closed the connection]
penzur has joined #ruby
surs2 has joined #ruby
<shevy> hehe
MarkTurner has joined #ruby
havenwood has joined #ruby
scripore has joined #ruby
surs1 has quit [Ping timeout: 256 seconds]
qiukun has quit [Quit: qiukun]
Papierkorb has joined #ruby
MarkTurner has quit [Client Quit]
MarkTurner has joined #ruby
Papierkorb has quit [Remote host closed the connection]
Papierkorb has joined #ruby
MarkTurner has quit [Client Quit]
MarkTurner has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 256 seconds]
omegahm has joined #ruby
hahuang65 has joined #ruby
mleung has joined #ruby
chinmay_dd has joined #ruby
<Aderium> yaml alos soffers from the same imporper uname issues ...
<Aderium> now I need to figure out where it gueeses arch by uname -p ...
lapide_viridi has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
<Aderium> config guee is yaml is like the same file ...
<sevenseacat> english...?
varunwachaspati has joined #ruby
Oka has joined #ruby
<shevy> sevenseacat we speak cat language!
<shevy> Translation of Aderium: meow meow meow ... config.guess ... meow meow meow
<sevenseacat> Aderium: what did you say about my mother!?
<shevy> lol
<Aderium> what I was stating is that the yaml config/config.guess file also suffers from the imprper settings for Solaris, so I am using the one I ad-hocked for ruby open source
Rollabunna has quit [Ping timeout: 264 seconds]
<sevenseacat> dunno what that means, but good to know :thumbsup:
<Aderium> shevy you tellhim :)
<shevy> well
<shevy> I think jhass mentioned that yesterday or so
<shevy> since you run into that problem with config.guess, perhaps it may be best to indeed use a wrapper script over uname, that yields back these required settings
<shevy> (while internally calling ... ifo ... something. whatever the name was)
Pupeno_ has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
blackmesa has joined #ruby
tlarevo has joined #ruby
fullofcaffeine has quit [Ping timeout: 255 seconds]
SCHAAP137 has joined #ruby
<heftig> is `*a = *a` and `a = Array(a)` identical?
tlarevo has quit [Client Quit]
Enarko has joined #ruby
konsolebox has joined #ruby
<shevy> seems no
<shevy> the first one seems to yield a new object?
Soda has quit [Remote host closed the connection]
<Aderium> yaml config.sub does not include anything for sun5
j416_ has joined #ruby
fullofcaffeine has joined #ruby
pepperbreath has left #ruby [#ruby]
Rollabunna has joined #ruby
quazimod1 has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
Pupeno has quit [Remote host closed the connection]
j416_ is now known as j416
fabrice31 has joined #ruby
<shevy> yeah :(
lxsameer_ has quit [Quit: Leaving]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
jottr_ is now known as jottr
blackmesa has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 246 seconds]
Jackneill has quit [Remote host closed the connection]
<Aderium> ok Yaml is now configured in 64
<[k-_> how do you get length for an array 0xOdea way, baweaver?
<Aderium> but now I need to tell ruby where to get the yamnl lib from during configuration
<shevy> Aderium is it not in /usr/lib ?
<Aderium> no I can put it there though
<shevy> hmm
<Aderium> lib/libyaml.so: ELF 64-bit LSB dynamic lib AMD64 Version 1, dynamically linked, not stripped
<shevy> cool
<shevy> so libyaml is 64 bit and ruby is 32 bit :D
Jackneill has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
<Aderium> I have not recompiled ruby yet
<shevy> I once wanted a completely static build of ruby
<Aderium> I am about to but I need to put the yaml.so in the correct place
<shevy> but ldd ruby has things like libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007f417bdeb000) and I never managed to get a static ruby
<shevy> Anyone of you here has managed to compile a completely static version of ruby that works?
<[k-_> have you seen how massive ghc is
dgutierrez1287 has quit [Remote host closed the connection]
<shevy> yes
<shevy> 100mb
<[k-_> lies
<shevy> 120mb
ruurd has joined #ruby
<shevy> Laurent Sansonetti seems to have succeed with LLVM, I'll try that later today: www.slideshare.net/LaurentSansonetti/inside-rubymotion-llvm
chouhoulis has joined #ruby
krz has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
xkef has joined #ruby
<Aderium> ok now compiling ruby
<Aderium> lets see what it catches
xkef_ has quit [Ping timeout: 250 seconds]
quazimodo has joined #ruby
blackmesa has joined #ruby
atomical has joined #ruby
quazimod1 has joined #ruby
mercwithamouth has joined #ruby
<Aderium> looks likeits parsing correcli the rdoc this time
<Aderium> i changes CC grom gcc to SunSolarisStudio
<Aderium> i changes CC from gcc to SunSolarisStudio
<Aderium> but maybe its working because yaml lib is there now
<Aderium> and so far make is making all the .o in 54 bit :)
<Aderium> 64 ...
penzur has quit [Quit: Leaving]
fumihiro has joined #ruby
<shevy> oh 54 bit
<shevy> that is exotic
mercwithamouth has quit [Ping timeout: 244 seconds]
lele is now known as Guest24
fumihiro has left #ruby [#ruby]
Pupeno has joined #ruby
Hounddog has quit [Remote host closed the connection]
<Aderium> dolly@vdocklab01:~/ruby64/ruby-2.1.6/bin$ file ruby
<Aderium> ruby: ELF 64-bit LSB executable AMD64 Version 1 [SSE2 SSE], dynamically linked, not stripped
<Aderium> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<Aderium> DONE
<[k-_> how do you even require a script in irb
<jhass> not any differently
<[k-_> WHY DOESNT REQUIRE 'SCRIPTNAME' WORK
<Aderium> ruby -v
<Aderium> ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-solaris2.11]
<jhass> BECAUSE $LOAD_PATH
<[k-_> it is in the same directory!
<jhass> use require_relative or irb -I.
shock_one has joined #ruby
<[k-_> it doesnt work as well
<Aderium> now documentation of insanity
<jhass> how about some patches?
hotpancakes has joined #ruby
<havenwood> Aderium: grats
<[k-_> -lfilenamewithoutrbextension fails too
bricker has joined #ruby
<[k-_> whyyyyyyyyyyyy
<Aderium> uhm ... well now can I use bundle install ?
<Aderium> and install gems in the directory where ruby is ?
<havenwood> Aderium: Bundler's a gem, so you have to: gem install bundler
<shevy> oh
<shevy> try "gem env"
<havenwood> Aderium: Yeah, by default it'll install in $GEM_HOME like normal.
fumihiro has joined #ruby
<Aderium> okok
<[k-_> what happened, suddenly require 'filenamewithoutrbextension' works
<shevy> ruby learned and got smarter [k-_
<Aderium> that env is empty ... uhm
<[k-_> require 'set' made something happen
<shevy> how can it be empty
<havenwood> Aderium: If you set a `--path` it's remembered.
<Aderium> ok got it
<Aderium> it in the same pathof whre I installed 64 bit
<Aderium> good
<shevy> Aderium that is my current one http://pastie.org/pastes/10288156/text
<Aderium> how do I get all that ?
<shevy> hmm
<Aderium> ruby env ?
DLSteve has joined #ruby
<shevy> do you use the wrong gem?
<shevy> nono "gem env"
<[k-_> $? isnt used right, im going to use it for my library
<shevy> perhaps you use the rvm one still
<Aderium> ok perfect
<Aderium> i took out rvm all together
<shevy> [k-_ why are you so evil
<Aderium> for now
<[k-_> ¯\_(ツ)_/¯
<shevy> I think $? is used...
<[k-_> for what :o
<shevy> $?: status of the latest executed child process
<shevy> you could use it and then restore it after your script has finished :)
<[k-_> they use all the $(symbols on the keyboard) :(
<shevy> I do that with $VERBOSE ... similar reason to bnagy ... though another error, since I use syck locally and not psych
<shevy> erm, I meant not error, but a warning
hotpancakes has quit [Remote host closed the connection]
<[k-_> i'll use $= then
sepp2k has quit [Quit: Leaving.]
<shevy> hey
<shevy> is that legal?
aryaching has joined #ruby
<[k-_> yes
<[k-_> i tried already
Pupeno has quit [Remote host closed the connection]
<[k-_> >> $=
<shevy> >> $= 'abc'; $=
<ruboto> [k-_ # => /tmp/execpad-c1b5246815d7/source-c1b5246815d7:2: warning: variable $= is no longer effective ...check link for more (https://eval.in/397076)
<ruboto> shevy # => /tmp/execpad-3411201f5e39/source-3411201f5e39:2: syntax error, unexpected tSTRING_BEG, expecting key ...check link for more (https://eval.in/397076)
fumihiro has left #ruby [#ruby]
<shevy> huh
<shevy> what a strange warning
<shevy> please do not break ruby [k-_
<[k-_> how dare you override my eval.in!
<[k-_> apeiros: bug
sepp2k has joined #ruby
<shevy> hehe
<[k-_> race condition i believe
<[k-_> \o/
<[k-_> >> $=
<ruboto> [k-_ # => /tmp/execpad-62a8df47fa2b/source-62a8df47fa2b:2: warning: variable $= is no longer effective ...check link for more (https://eval.in/397077)
<shevy> what does this even mean
<shevy> "no longer effective"
<apeiros> [k-_: contact charliesome :)
<[k-_> charliesome: you have been contacted
scripore has quit [Quit: This computer has gone to sleep]
<[k-_> $= # The flag for case insensitive. Defaults to nil. Deprecated.
fumihiro has joined #ruby
<[k-_> yay for zenspider!
<[k-_> \o/
<shevy> wow
<shevy> defaults to nil O_O
<shevy> >> $yooo
<ruboto> shevy # => nil (https://eval.in/397078)
<shevy> how do you assign to $= anyway?
scripore has joined #ruby
<[k-_> >> $= = ?=
<ruboto> [k-_ # => /tmp/execpad-c32fa4de393e/source-c32fa4de393e:2: warning: variable $= is no longer effective; ignore ...check link for more (https://eval.in/397079)
<[k-_> there it works
kobain has joined #ruby
<shevy> omg
<shevy> you are using your ugly syntax now
<[k-_> my code was always ugly
<shevy> well ok
<[k-_> im going to use $-o
<shevy> regular syntax is also ugly:
<shevy> $= = '='
<apeiros> [k-_: charliesome is not in the channel at the moment. he won't see the ping.
<[k-_> >>$==?=
<ruboto> [k-_ # => /tmp/execpad-be00d7f8c0a9/source-be00d7f8c0a9:2: warning: variable $= is no longer effective; ignore ...check link for more (https://eval.in/397080)
<[k-_> :/
ruurd has quit [Quit: Zzzzz z zz ...]
blackmesa has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
<[k-_> today i bring you the knowledge that you can use alias on globals
<apeiros> s'oldnews
Shidash has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
scripore has quit [Client Quit]
bruno- has joined #ruby
Shidash has joined #ruby
Miphix has joined #ruby
einarj has joined #ruby
allcentury has joined #ruby
cool has joined #ruby
icebourg has joined #ruby
blackmesa has joined #ruby
hotpancakes has joined #ruby
Oka has quit []
dgutierrez1287 has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
zacstewart has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
magical-imouto has quit [Quit: fix config]
shock_one has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 255 seconds]
_blizzy_ has joined #ruby
fumihiro1 has joined #ruby
chipotle has joined #ruby
fumihiro has quit [Ping timeout: 255 seconds]
chipotle has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
dgutierrez1287 has quit [Remote host closed the connection]
lessless has joined #ruby
hotpancakes has joined #ruby
t0rrieri__ has joined #ruby
dgutierrez1287 has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
<[k-_> i forgot how to get SuperNaN :(
Musashi007 has joined #ruby
<[k-_> lucky the channel has logs :>
hotpancakes has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
davedev24 has quit [Ping timeout: 248 seconds]
<shevy> what the h is SuperNaN
davedev24 has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
ruurd has joined #ruby
shock_one has joined #ruby
shock_one has quit [Remote host closed the connection]
mcclurmc has joined #ruby
shock_one has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
theery has joined #ruby
Pupeno has joined #ruby
icebourg has quit []
mercwithamouth has joined #ruby
Spami has joined #ruby
shock_one has quit [Ping timeout: 264 seconds]
multi_io has quit [Ping timeout: 256 seconds]
darkf has quit [Quit: Leaving]
maletor has joined #ruby
<[k-_> i cant...reproduce SuperNaN with my library
eggoez has quit [Ping timeout: 252 seconds]
c355E3B has joined #ruby
<ljen> Hi all – I am working on a Lisp interpreter and I'm having trouble with a super basic problem. For some reason I'm getting an "undefined method is_a_list?" error when I run this: https://gist.github.com/paeeon/83f22a9ff4bfb3ac0bf3 Any ideas would be much appreciated :o)
scripore has joined #ruby
<[k-_> you did not monkeypatch File
<[k-_> is_a_list? is only available on the Interpreter class
<havenwood> ljen: There's no String#is_a_list? method defined. You're not calling #is_a_list? on an instance of Interpreter.
Pupeno has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
<havenwood> Oh, right, not String.
<ljen> Ohhhh? I thought that is_a_list? was an instance method.
<[k-_> yes it is
<havenwood> ljen: An instance method for Interpreter not File or IO.
<ljen> Ohh, okay. Does it make sense to monkey patch it inside the Interpreter class?
existensil has quit [Quit: WeeChat 0.4.2]
eggoez has joined #ruby
existensil has joined #ruby
<havenwood> ljen: Change `is_a_list?` to `is_a_list? file` and change `file.is_a_list?` to `is_a_list?(file)`.
<Aderium> how do I install a gem manually from a specific source ?
<havenwood> ljen: Then `file.read` instead of `self.read`.
<ljen> Ohh, I think I fixed it by opening the File class and adding the is_a_list method
<Aderium> like a specific fork from github
<jhass> Aderium: if you use bundler, just gem "foo", github: "bla/foo"
<Aderium> not via bundler, manually
djbkd has joined #ruby
mcclurmc has left #ruby [#ruby]
<jhass> clone the repo and run gem build on the .gemspec, then install the resulting .gem
<[k-_> i reproduced it!
<[k-_> yay
solars has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
sharpmachine has joined #ruby
djbkd has quit [Ping timeout: 248 seconds]
dellavg has quit [Ping timeout: 264 seconds]
peter_paule has joined #ruby
hotpancakes has joined #ruby
mleung has quit [Quit: mleung]
varunwachaspati has quit [Ping timeout: 246 seconds]
theery has quit [Remote host closed the connection]
einarj has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
[k- has quit [Ping timeout: 265 seconds]
spider-mario has quit [Remote host closed the connection]
<havenwood> Aderium: Just to show off new-ish RubyGems features, here's how you could install from a gem.deps.rb file: echo "gem 'rake', git: 'https://github.com/ruby/rake.git'" > gem.deps.rb && gem i -g --no-lock
einarj has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
AlphaAtom has joined #ruby
<havenwood> Aderium: Then if you want to add more gems to your gem.deps.rb file RubyGems will resolve the dependencies.
<havenwood> Just like Bundler with a Gemfile.
shock_one has joined #ruby
fabrice31 has joined #ruby
<adaedra> havenwood: neat
olistik has quit [Remote host closed the connection]
Papierkorb has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
shock_one has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 244 seconds]
torpig has quit [Ping timeout: 246 seconds]
pyon has joined #ruby
fumihiro1 has left #ruby [#ruby]
blackmesa has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
balazs has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
olistik has joined #ruby
radialneon has quit [Read error: Connection reset by peer]
blackmesa has quit [Client Quit]
<shevy> cool
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> is this documented outside havenwood's mighty brain as well? :)
krz has quit [Quit: WeeChat 1.0.1]
Azure has joined #ruby
jhack has joined #ruby
<havenwood> shevy: But no, I don't know where the resolver support for git is documented outside of the code itself.
theery has joined #ruby
<adaedra> shame
peter_paule has quit [Ping timeout: 265 seconds]
joast has quit [Quit: Leaving.]
but3k4 has joined #ruby
joast has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
theery has quit [Remote host closed the connection]
blue_deref has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
allcentury has joined #ruby
x1337807x has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
xkef_ has joined #ruby
gregf has joined #ruby
xkef has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby
<havenwood> gem help gem_dependencie
<havenwood> gem help gem_dependencies
<havenwood> gem 'bang', gist: '1232884'
hotpancakes has quit [Ping timeout: 248 seconds]
Rollabunna has quit [Quit: Leaving...]
sarkyniin has joined #ruby
torpig has joined #ruby
symm- has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
mhib has quit [Quit: Leaving]
shock_one has joined #ruby
rehat has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: See ya!]
bricker has quit [Ping timeout: 252 seconds]
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
drizz has quit [Remote host closed the connection]
embryoconcepts has joined #ruby
embryoconcepts has left #ruby [#ruby]
serivich has quit [Ping timeout: 248 seconds]
GitGud has joined #ruby
niemcu has joined #ruby
dfockler has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
<shevy> dependency.rb:315:in `to_specs': Could not find 'ruby' (>= 0) among 194 total gem(s) (Gem::LoadError)
<shevy> huh
balazs has quit [Remote host closed the connection]
poguez_ has joined #ruby
dfockler has quit [Ping timeout: 255 seconds]
theery has joined #ruby
hotpancakes has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
theery has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has joined #ruby
tmtwd has joined #ruby
AlphaAtom has joined #ruby
zacstewart has quit [Remote host closed the connection]
mleung has quit [Client Quit]
Scroff has joined #ruby
zacstewart has joined #ruby
sharpmachine has quit [Remote host closed the connection]
Stratege_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<[k-_> planning to add encode and decode for use with obscure_method_name
balazs has joined #ruby
MarkTurner has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
allomov has joined #ruby
<Stratege_> heya, I've keep hearing people bring up ruby and wanted to know if there's perhaps somewhere a list of the benefits of using ruby, or what you all personally enjoy about ruby and why you picked it as your language of choice? :)
<[k-_> method of the day: $©[?+]
<[k-_> ^ thats not ruby!
* [k-_ wipes sweat off
rcosta_ has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
ljt has joined #ruby
<Coraline> Stratege_: I like Ruby for the fast feedback cycle it provides and the English-like syntax. It's very readable and easily understandable.
<Coraline> And flexible enough for a variety of tasks.
[k- has joined #ruby
<shevy> Stratege_ this interview made me pick ruby over python years ago: http://www.artima.com/intv/ruby.html
<Coraline> I came to Ruby from Java.
sharpmachine has joined #ruby
<Stratege_> Coraline that sounds like ruby has a repl? cool
<Stratege_> shevy thanks! will read it
ruurd has quit [Quit: Zzzzz z zz ...]
<Coraline> Yep
<pontiki> i chose ruby because it makes me so happy to code in it. it reminds of me of those halcyon days of my youth learning lisp and then later smalltalk
allomov has quit [Remote host closed the connection]
* pontiki 's sekrit plan is to scare newbies away
Musashi007 has quit [Read error: Connection reset by peer]
theery has joined #ruby
<Stratege_> pontiki I've heard the claim that ruby -is- a lisp, although one with a peculiar syntax for a lisp. And the things I've heard so far (metaprogramming, eval, repl, etc) seem to suggest that that's infact the case, would you agree? And then... why use ruby instead of, say, scheme?
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
<Stratege_> (oh you'll have to mention java a lot more and smalltalk/lisp a lot less to scare me away ^^)
rcosta_ has quit [Remote host closed the connection]
<pontiki> i don't think ruby is a lisp, though matz's use of lisp influenced ruby's functional programming aspects
Musashi007 has joined #ruby
RobertBirnie has joined #ruby
<Stratege_> fair enough, thanks
RobertBirnie has quit [Max SendQ exceeded]
<tmtwd> not a lisp
<tmtwd> there are some similarities though
chouhoulis has joined #ruby
<tmtwd> you often don't need an explicit return statement in ruby
<Stratege_> mind pointing out which things make it so that it's not a lisp? I suppose the way it's evaluated differs?
Stratege_ is now known as Stratege
<pontiki> ruby is not homoiconic
hotpancakes has quit [Ping timeout: 248 seconds]
RobertBirnie has joined #ruby
revath has joined #ruby
<Stratege> well, yeah.
RobertBirnie has quit [Remote host closed the connection]
casadei_ has joined #ruby
araujo_ has joined #ruby
<apeiros> is ruby heteroiconic?
sepp2k has quit [Ping timeout: 256 seconds]
<pontiki> but the distinction, for me, is really rather pointless; i learned to really love programming by learning lisp, and ruby gives me the same feeling of joy and beauty
araujo has quit [Ping timeout: 248 seconds]
bosma has joined #ruby
theery has quit [Remote host closed the connection]
<pontiki> if you're looking for a rational, measureable difference from me, i don't care about that
<havenwood> shevy: adaedra: Here's an example gem that's just a gist installed via RubyGems: https://gist.github.com/havenwood/2f58ca4bbbb8c5720dc6
chouhoulis has quit [Ping timeout: 256 seconds]
MagePsycho has joined #ruby
zacstewart has quit [Remote host closed the connection]
<shevy> (hi(pontiki!))
<Stratege> pontiki I just figured the question might help me understand what ruby is considered to be or not considered to be by those who use it. Just looking for a way to see what people see in it, without committing to do a major project in it to find it out.
<pontiki> hum
<shevy> ah you already got the ruby philosophy
<shevy> of laziness! \o/
<Stratege> still strictly evaluated, right?
<pontiki> (greet 'shelly)
<Stratege> because I really had my fill of lazily evaluated languages for the time being, don't need to add another one on ^^
<pontiki> what languages have you been using, Stratege ?
arooni-mobile has joined #ruby
sebbers_ has joined #ruby
<sebbers_> can someone help me with this problem https://gist.github.com/anonymous/270195d6d7e9f5d83819?
<pontiki> because i'm going to give you the PragProg philosphy: learn a new language every year, but one in a different paradigm than you've been using
<Stratege> C++, Python, bits of racket (scheme dialect), bunch of C# and currently my main language is Haskell.
<shevy> laziness of the programmer
<shevy> not laziness of ruby
rehat has joined #ruby
<shevy> sebbers_ is this homework
<sebbers_> ya
<sebbers_> the coding part is easy but its the formula
<shevy> you need to convert this into code
<sebbers_> for calculating the MPH
<sebbers_> given the info
<sebbers_> that i have NO IDEA
maletor has quit [Quit: Computer has gone to sleep.]
<rehat> new to ruby, if I have a method that returns a custom object and I am trying to put the object into an array I get this error "no implicit conversion of Shirt into Array (TypeError)"
<Stratege> pontiki guess why I'm here ^^ it's been a bit over a year ago that I picked up Haskell, and I'm fairly comfortable with it, so I'm now looking for another language to evaluate and look if it might be useful to learn.
<sebbers_> how to even take the information and create a formula out of it
<sebbers_> no shevy
<shevy> miles per hours - now you just have to find which part yields to it
<pontiki> Stratege: given that list, you might get a lot out of learning ruby, even if you don't ever work in it going forward. ruby has certain idioms and ways of expressing concepts that are interesting
<sebbers_> ya i cant figure out what to do with the given information shevy
<shevy> yeah it looks like utter shit
<shevy> super verbose
<shevy> trim it down, make it logical
<sebbers_> i know
<sebbers_> well actually
<sebbers_> its for a job interview
<pontiki> Stratege: at the same time, you didn't mention Java, and learning Java deeply enough to be competent in it will teach you a lot as well
<sebbers_> its pissing me off bc this is such a horrible problem description
theery has joined #ruby
<shevy> rehat do you have minimal code that reproduces the problem?
<pontiki> the difficulty, for me, is that i don't think i could have learned Java without having a dedicated paid project to do so with
<Stratege> yeah but I was already in #Java a while ago and the community was just really hostile. The language seems to be extremely lacking and the syntax is just extremely verbose. All together puts me off from wanting to learn more about Java.
theery has quit [Remote host closed the connection]
<pontiki> yeah, i can understand that, very well, Stratege
<shevy> java is verbose
maletor has joined #ruby
<shevy> we have to accept it
<pontiki> java is baroque in it's verbosity; tons of ritual
Cache_Money has joined #ruby
<pontiki> it was definitely worth it to me to experience that
MarkTurner has joined #ruby
maletor has quit [Client Quit]
<shevy> rehat well that code is a bit strange. you can use << rather than +=
<shevy> parse_shirt_info gives you a shirt object?
<shevy> you can put that into an Array just fine
mercwithamouth has quit [Read error: Connection reset by peer]
<Stratege> I think going from Haskell to Java would be an extreme test in frustration tolerance. Being unable to express all those neat and concise concepts in code. And suddenly having a type system that's just a bit of a travesty...
<rehat> oh << is for a single object and += is for concatenating an array?
<shevy> >> class Shirt; end; array = []; array << Shirt.new << Shirt.new; array
<ruboto> shevy # => [#<Shirt:0x410c3fa0>, #<Shirt:0x410c3f8c>] (https://eval.in/397127)
mercwithamouth has joined #ruby
Pupeno has joined #ruby
<Stratege> mind pointing me in the right directions for interesting ruby idioms and ways of expressing concepts? Anything particularly noteworthy perhaps? :)
<shevy> in both cases you append to the array
<shevy> << will be faster
dgutierrez1287 has joined #ruby
<shevy> via += you create an additional object, it is a shortcut just like the other variants -= *= and so forth
<rehat> shevy: sweet thanks
sepp2k has joined #ruby
dellavg has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
MarkTurner has quit [Client Quit]
_blizzy_ has joined #ruby
charliesome has joined #ruby
Pupeno has quit [Ping timeout: 246 seconds]
yardenbar has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
charliesome has quit [Client Quit]
sarkyniin has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
yardenbar has quit [Read error: Connection reset by peer]
yardenbar has joined #ruby
simplyianm has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
simplyianm has quit [Remote host closed the connection]
JulienTa_ has joined #ruby
simplyianm has joined #ruby
stantonnet has quit [Ping timeout: 256 seconds]
timonv has quit [Ping timeout: 240 seconds]
kies^ has joined #ruby
Pro| has left #ruby [#ruby]
_blizzy_ has joined #ruby
yh has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
<yh> I have a long running process I wish to asynchronously invoke remotely. Would anyone recommend a library/framework?
mercwithamouth has quit [Ping timeout: 255 seconds]
<yh> I'd call a service with some sort of parameter, it'd return a HTTP 202 (or such) - then upon completion initiate an RPC (HTTP, SNS, whatever) to let me know it finished
Pupeno has joined #ruby
balazs has quit [Remote host closed the connection]
doertedev has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
kiddorails has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
blackmesa has joined #ruby
sarkyniin has joined #ruby
roolo has joined #ruby
lxsameer has joined #ruby
gregf has joined #ruby
mary5030 has joined #ruby
sebbers_ has quit [Remote host closed the connection]
revath has quit [Ping timeout: 248 seconds]
fabrice31 has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
peter_paule has joined #ruby
tkuchiki has joined #ruby
tcdowney has joined #ruby
lapide_viridi has joined #ruby
kith_ is now known as kith
mleung has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
mleung has quit [Client Quit]
tkuchiki has quit [Ping timeout: 265 seconds]
tcdowney has quit [Ping timeout: 264 seconds]
drizz has joined #ruby
hotpancakes has joined #ruby
<havenwood> yh: From what you've said so far the first thing that came to my mind was Typhoeus: https://github.com/typhoeus/typhoeus#handling-http-errors
<JulienTa_> ActiveSupport::TestCase is a shortcut for module ActiveSupport ; class TestCase ?
mercwithamouth has joined #ruby
<havenwood> JulienTa_: TestCase is not a module
<havenwood> JulienTa_: Ah, yes.
<JulienTa_> hehe thanks :)
<JulienTa_> I'm a noob (starting Ruby & RoR today), and i'm already challenging myself with rubocop hehe :)
<havenwood> JulienTa_: The former relies on `module ActiveSupport` having already been declared.
spider-mario has joined #ruby
beef-wellington has joined #ruby
<JulienTa_> and rubocop says
<JulienTa_> test/test_helper.rb:5:7: C: Use nested module/class definitions instead of compact style.
<JulienTa_> class ActiveSupport::TestCase
WeiJunLi has joined #ruby
<JulienTa_> so i try to figure how to fix this, buyt now i know :) thanks
<havenwood> JulienTa_: Yeah, that way it wont break if `module ActiveSupport` hasn't yet been defined.
arooni-mobile has quit [Ping timeout: 248 seconds]
<havenwood> ?rails JulienTa_
<ruboto> JulienTa_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Zai00 has quit [Quit: Zai00]
<havenwood> JulienTa_: ^ Not that this was a Rails-specific question at all, but just for reference you'll have the best luck with Rails questions in #RubyOnRails.
revath has joined #ruby
<JulienTa_> I'm already in, thanks havenwood :)
<havenwood> JulienTa_: Ah, nice.
girakrok has joined #ruby
Carnage\ has joined #ruby
dgutierrez1287 has joined #ruby
zacstewart has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
beef-wellington has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
ljt has quit []
sepp2k has quit [Quit: Leaving.]
yh has quit [Ping timeout: 244 seconds]
Soda has joined #ruby
yh has joined #ruby
eggoez has joined #ruby
doertedev has quit [Quit: Lost terminal]
sarkyniin has quit [Ping timeout: 264 seconds]
sarkyniin has joined #ruby
rehat has quit [Remote host closed the connection]
renanoronfle has joined #ruby
bruno- has joined #ruby
Pupeno has quit [Remote host closed the connection]
einarj has joined #ruby
ohaibbq has joined #ruby
serivich has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
eggoez has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
ss2 has joined #ruby
balazs has joined #ruby
allomov has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiddorails has quit [Remote host closed the connection]
tsvenson has quit [Ping timeout: 255 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
eggoez has joined #ruby
balazs has quit [Ping timeout: 244 seconds]
Sembei has quit [Ping timeout: 250 seconds]
PatrickHoward has joined #ruby
theery has joined #ruby
RegulationD has joined #ruby
mary5030 has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
arooni-mobile has joined #ruby
dagda1_ has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Missphoenix has joined #ruby
<shevy> hey havenwood I got news from tiobe http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
<shevy> first news is "SyntaxError: missing ) after argument l"
<shevy> working with professionals here!
<shevy> and second news is ... ruby is rising again!!!
Miphix has quit [Ping timeout: 264 seconds]
marr has joined #ruby
arooni-mobile__ has joined #ruby
arooni-mobile__ has quit [Max SendQ exceeded]
theery has quit [Remote host closed the connection]
arooni-mobile__ has joined #ruby
jhack has quit [Ping timeout: 256 seconds]
arooni-mobile__ has left #ruby [#ruby]
arooni-mobile has quit [Disconnected by services]
AlphaAtom has joined #ruby
arooni-mobile__ has joined #ruby
gnudon` has joined #ruby
<i8igmac> Thread.list.each{|t| Thread.kill(t)}
<i8igmac> this will kill all the threads including the irb shell
<shevy> :P
<i8igmac> what threasd is the interpreter
gnudon has quit [Ping timeout: 246 seconds]
PatrickHoward has quit [Remote host closed the connection]
theery has joined #ruby
Thomas-0725 has joined #ruby
<i8igmac> [#<Thread:0x000000020dcff8 run>]
<i8igmac> Thread.list.each{|t| puts t.to_s.include?("run")}
bffff_ has joined #ruby
NeverDie has joined #ruby
<i8igmac> Thread.list.each {|t| if not t.to_s.include?("run"); Thread.kill(t); end}
tsvenson has joined #ruby
<Thomas-0725> Hi! I am defining a method that can take either just a keyword or a keyword => value. I want both of these method calls to work: < my_method("word") > as well as < my_method("word" => "definition) >. What does this look like when I define the method? def my_method(option), and then determine the class of option and act accordingly?
jhack has joined #ruby
theery has quit [Remote host closed the connection]
zacstewart has joined #ruby
<waxjar> yes. though it's better to stick to a single signature
<Thomas-0725> yes to me?
<waxjar> yes
<Thomas-0725> What do you mean signature?
<shevy> Thomas-0725 inside your method, check for whether you have a hash or not
<Thomas-0725> Oh ok. I was unsure if there was a ruby feature that I just did't know about that made it slightly easier. Checking for a hash was the obvious option, but I wasn't sure if it was the best.
<apeiros> Thomas-0725: the method signature is how the method "looks" to the outside
<apeiros> i.e. how many arguments it accepts, what types of arguments it accepts etc.
<Thomas-0725> apeiros, ah, ok. This is part of a practice set of problems, so my hands are tied. But for future reference, noted. :D
<apeiros> and I agree with waxjar: methods which try to accept all and everything are inherently bad. force the user of the method to normalize.
toretore has joined #ruby
lapide_viridi has quit [Quit: Leaving]
<apeiros> and for common cases, provide an alternative method.
<apeiros> (which does the normalization and calls the "canonical" method)
<Thomas-0725> Alrighty.
eGGsha is now known as eGGshke
bronson has joined #ruby
bosma is now known as bosnia
Carnage\ has quit [Ping timeout: 256 seconds]
towski_ has joined #ruby
zacstewart has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
sharpmachine has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
MagePsycho has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
MagePsycho has joined #ruby
Enarko has quit [Quit: Enarko]
<yh> havenwood: hey. Typhoeus is great (well, actually I'm rewriting a Typhoeus component because it sucks on JRuby, but...),
<yh> however that's more for issuing requests, I'm kind of thinking about _receiving_ them
<havenwood> yh: ahhh
<yh> Perhaps I can just knock this up in Sinatra, I just don't want to reinvent wheels too much
tmtwd has quit [Ping timeout: 255 seconds]
<yh> Maybe ideally it'd actually be like this
<yh> 1) Service Foo should receive a request with params 2) Execute a process on its system, have a websocket to its STDOUT/STDERR
<yh> Not worried about STDIN.
towski_ has quit [Remote host closed the connection]
<yh> Was thinking of returning a HTTP 202 (Accepted/Processing), but would be good to get a constant stream from output and maintain a connection
<yh> Not sure how websockets would respond to the connection dropping, as far as resuming it goes, though
Channel6 has joined #ruby
yeticry has joined #ruby
<Thomas-0725> Should I wait until I am proficient in Ruby itself before diving into Rails, or does it make more sense to learn the two simultaneously?
<havenwood> yh: How about Server-Sent Event-stream? That's actually reconnect.
<havenwood> That'd*
roolo_ has joined #ruby
<havenwood> Thomas-0725: I'd suggest learning Ruby before Rails.
<havenwood> yh: For example: https://gist.github.com/rkh/1476463
einarj has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
theery has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
theery has quit [Remote host closed the connection]
theery has joined #ruby
<havenwood> yh: Ah, Ruby on both sides?
<havenwood> Just reread what you wrote..
<ytti> Thomas-0725, i've not really done rails, but it's very dsly, so if your goal is to do sometihng in rails, i'd dive straight into rails, you will be able to get results
<ytti> and side steps may demotivate
<havenwood> yh: How many connections at once? Lots of data or just a little coming back? Just streaming in one direction?
einarj has quit [Ping timeout: 264 seconds]
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
<Thomas-0725> ytti, dsli?
<Thomas-0725> dsly?
Lildirt has joined #ruby
Musashi007 has quit [Read error: No route to host]
codecop has joined #ruby
Musashi007 has joined #ruby
<Antiarc> DSL-y - lots of DSLs
<Antiarc> And I'd recommend getting profient with basic Ruby and then starting on Rails
<Antiarc> I wouldn't wait to master Ruby
<Antiarc> But you should know the object model, how blocks work, and how method_missing works
lkba has joined #ruby
<Antiarc> Being able to recognize the Ruby reasoning behind the Rails "magic" can be very helpful in troubleshooting
<ytti> generally, just do something
<ytti> trying to plan may just be stopping you from moving
<Antiarc> ^ this is good advice
<Antiarc> If you're hesitating because you think you don't know enough Ruby, just do it
<Antiarc> But if you feel like you have plenty of Just-Ruby stuff to keep you busy, finish that
eGGshke is now known as eGGsha
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
Lildirt has joined #ruby
_ht has quit [Quit: Konversation terminated!]
yeticry has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
Notte has joined #ruby
surs3 has joined #ruby
EllisTAA has joined #ruby
helloworld333 has joined #ruby
<helloworld333> Hello
surs2 has quit [Ping timeout: 264 seconds]
<helloworld333> can
allomov has quit [Remote host closed the connection]
helloworld333 has quit [Client Quit]
chouhoulis has joined #ruby
sharpmachine has joined #ruby
fabrice31 has joined #ruby
haxrbyte has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
<Thomas-0725> def find(prefix); @entries.select {|word, definition| word.include?(prefix)}; end;
<Thomas-0725> That searches for prefix in all of word. How can I make it search for prefix only at the front of the word?
<Antiarc> workd.match(/^#{prefix}/)
sarkyniin has quit [Ping timeout: 246 seconds]
<Thomas-0725> thanks! I didn't realize #{} worked within a regex
<Antiarc> Or word.start_with?(prefix)
<apeiros> Thomas-0725: start_with?
amclain has joined #ruby
TheHodge has joined #ruby
mercwithamouth has joined #ruby
<Antiarc> (I have an unhealthy tendency to jump to regexes)
<Thomas-0725> start_with is clearer, but certainly good to know about #{} within regex. :D
<Antiarc> Or word[prefix] == 0. I think
<apeiros> the regex solution probably needs Regex.escape
chouhoulis has quit [Ping timeout: 246 seconds]
<Antiarc> No, [] won't do it, lemme check the API
<apeiros> depending on the intended behavior
k3asd` has joined #ruby
maletor has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
<apeiros> [] returns the substring
<Antiarc> yeah I was thinking it returned the start index
<apeiros> not an integer. so == 0 will always be false
<apeiros> =~ does that
<Antiarc> `word.index(prefix) == 0` would do it
<yorickpeterse> Is there a way to make throw/catch not bubble up? IIRC having something like `catch :foo do catch :foo do throw :foo end end` results in all "catch" blocks being executed
<Thomas-0725> Ruby has so many methods.
<apeiros> Thomas-0725: don't try java then…
<yorickpeterse> oh hm no, I'm just dumb
<Antiarc> yorickpeterse: Huh, I'ven ever even tried that - what's the bytecode say?
<yorickpeterse> ヽ( ゚ヮ・)ノ
<yorickpeterse> Antiarc: it says I'm dumb
yeticry has quit [Ping timeout: 256 seconds]
tsvenson has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
lapide_viridi has joined #ruby
<Thomas-0725> I'm fine with all the methods. It's just funny. I am new to programming, but I did a small amount of C in high school, and iirc, C does not have very many built-in methods. Ruby seems to have a method for everything.
Notte has quit [Remote host closed the connection]
<Thomas-0725> Naturally, C is not object oriented, so there's that difference as well. I just hadn't anticipated the quantity of available methods when I started this adventure.
yeticry has joined #ruby
<Antiarc> Well, Ruby's stdlib is very comprehensive. Ruby The Language is quite sparse :)
balazs has joined #ruby
<Thomas-0725> Ahhh, I suppose that's the distinction.
<Antiarc> C by itself is quite bare, similarly, but C + glibc is much more comprehensive
<Antiarc> Ruby just comes with batteries included :)
djbkd has joined #ruby
balazs has quit [Ping timeout: 244 seconds]
<Antiarc> yorickpeterse: I'm guessing that it just jumps straight to the last-defined catch, eh? :)
djbkd has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
sharpmachine has quit [Remote host closed the connection]
radialneon has joined #ruby
<havenwood> >> 'noël'.reverse
<ruboto> havenwood # => "l̈eon" (https://eval.in/397189)
<havenwood> hmm
<canton7> welcome to the fun and games of unicode string manipulation :P
<Antiarc> >> 'noël'.bytes.reverse
<ruboto> Antiarc # => [108, 136, 204, 101, 111, 110] (https://eval.in/397190)
<Antiarc> >> 'noël'.bytes.reverse.pack("c*")
<ruboto> Antiarc # => "l\x88\xCCeon" (https://eval.in/397191)
sharpmachine has joined #ruby
<Antiarc> :)
<Antiarc> >> 'noël'.chars
<ruboto> Antiarc # => ["n", "o", "e", "̈", "l"] (https://eval.in/397192)
tsvenson has joined #ruby
<Antiarc> Madness, hysteria, unicode!
<adaedra> o_O
Ilyas has joined #ruby
<apeiros> >> require 'active_support/core_ext'
<ruboto> apeiros # => cannot load such file -- active_support/core_ext (LoadError) ...check link for more (https://eval.in/397193)
<nofxx> There's a gem for that, or activesupport's mb_chars.
<apeiros> damn
jottr has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
<apeiros> anyway, different normalizations. the given string is decomposed.
<apeiros> with AS, you can change it to composed using str.mb_chars.compose.to_s.reverse
<yorickpeterse> Antiarc: it goes to the inner most, my snippet was just flawed
<apeiros> @ havenwood ^
<canton7> >> "Noël".reverse
<ruboto> canton7 # => "lëoN" (https://eval.in/397201)
<canton7> ^ on the other hand...
<apeiros> relevant WP article
Notte has joined #ruby
<havenwood> apeiros: aha
freerobby has joined #ruby
<apeiros> oracle has a bug translating utf-8 to iso-8859-1 if the utf-8 uses NFD
<apeiros> they wanted us to pay them money in order to report it to them…
<apeiros> that's how oracle rolls.
<havenwood> hahaha
<havenwood> ouch
<apeiros> fuck them.
<yorickpeterse> lol
<yorickpeterse> Don't have a $10000 support contract? Fuck you too bad
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Quit: Leaving]
<yorickpeterse> http://i.imgur.com/jsCJ6.jpg basically
yardenbar has joined #ruby
<apeiros> looks about right
tomphp has joined #ruby
<adaedra> >> [ "hallå", "hallå" ].map(&:reverse)
<ruboto> adaedra # => ["̊allah", "ållah"] (https://eval.in/397202)
war_pigs has joined #ruby
<adaedra> that's crazy
<yorickpeterse> eh?
<apeiros> limechat has trouble rendering those sequences. funny.
josh has joined #ruby
<apeiros> terminal holds up better.
<adaedra> textual works fine
war_pigs has quit [Max SendQ exceeded]
<yorickpeterse> oh lol wtf, does it lose characters there?
josh is now known as Guest76561
sarkyniin has joined #ruby
<yorickpeterse> oh hm no, "̊ isn't a double quote
MagePsycho has quit [Quit: MagePsycho]
hanmac has quit [Ping timeout: 246 seconds]
<adaedra> well, it is, with a ring above
<yorickpeterse> Ah, it displays properly on the website
war_pigs has joined #ruby
tmtwd has joined #ruby
<JMoir> Hey I'm getting a Boot error LoadError: cannot load such file -- sinatra/flash, can someone help please? I've installed all the gems, they are in my Gemfile... I can't figure it out https://gist.github.com/jamalmoir/3bc5b7d50b5acb7f14a4
<adaedra> come one, ruby should be able to do the difference between characters and codepoints better now
<adaedra> come on*
<yorickpeterse> JMoir: line 4 has a missing quote
<yorickpeterse> or is that a copy-paste error?
atomical has joined #ruby
decoponio has quit [Quit: Leaving...]
Guest71946 has quit [Ping timeout: 244 seconds]
<JMoir> Sorry I retyped it into the gist, that's a mistake, it's correct in the Gemfile
<yorickpeterse> You did run bundle install right?
<adaedra> JMoir: what's the command issuing the error?
<JMoir> yes I ran the bundle install, what do you mean adaedra?
<adaedra> well, the error is the result of a command? which is it?
<JMoir> I just get redirected to a page with that error on when I try to load the site. I haven't done anything with the gem yet
josh1 has joined #ruby
<havenwood> JMoir: For example: bundle exec shotgun
vickleton_ has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
WildBamboo-Josh has joined #ruby
<adaedra> if you're on a web server, how did you run it?
<JMoir> rackup
<JMoir> and shotgun
vickleton_ has quit [Client Quit]
<adaedra> tried with bundle exec rackup?
<JMoir> It's just running off my laptop
<JMoir> no I'll try that now
<yorickpeterse> See, you shouldn't be running with shotguns
<adaedra> :D
<yorickpeterse> ъ(`ー´ლ) hnnngggghhhh. :troll:
<yorickpeterse> oh haha
<yorickpeterse> I didn't know I actually had a poop emoji
MarkTurner has joined #ruby
<yorickpeterse> in unrelated news, running "bundle install" for Gitlab takes forever
zacstewart has quit [Remote host closed the connection]
<yorickpeterse> they have a shit ton of Gems
bosnia has quit [Quit: Leaving]
<yorickpeterse> 99 actually
Guest76561 has quit [Ping timeout: 240 seconds]
<yorickpeterse> something something 99 problems
<nofxx> I know it's kinda strange but it'll work as a charm: Any idea to to print an ERB inside an ERB? Was trying: <%= '<%= bar %>' %> result I want is '<%= bar %>' w/o quotes
<yorickpeterse> I'm supposed to be working on Oga's Xpath compiler but I'm slacking off by checking if Gitlab runs on Rbx instead
<yorickpeterse> what a way of slacking off
<nofxx> or to skip one replace, would work too: something like: \\<%= bar %>
cool has quit [Quit: Connection closed for inactivity]
allomov has joined #ruby
josh2 has joined #ruby
josh1 has quit [Ping timeout: 252 seconds]
<adaedra> wouldn't it require to run ERB twice
<nofxx> adaedra, exactly what I need
eggoez has joined #ruby
<JMoir> rackup won't even start, updated gist with error https://gist.github.com/jamalmoir/3bc5b7d50b5acb7f14a4
radialneon has quit [Read error: Connection reset by peer]
<nofxx> here's the scenario: I got coffee/html app that is rake compiled to www/foo.js , all nice, but that foo.js I'm going to copy and replace the erb to 10 places
<yorickpeterse> well, at least it installs now
<yorickpeterse> now to go through the pain of getting this up and running
einarj has joined #ruby
<nofxx> adaedra, some vars I want replaced in the first render, others on the second... kidna crazy but'll work heh
RegulationD has joined #ruby
allomov has quit [Remote host closed the connection]
<havenwood> JMoir: uninitialized constant Tilt::CompileSite (NameError)
radialneon has joined #ruby
<havenwood> JMoir: What version of Sinatra?
xkef_ has quit [Ping timeout: 246 seconds]
<havenwood> 1.0? :O
<JMoir> sinatra (1.4.6) │
<JMoir> sinatra-base (1.4.0, 1.0)
Zai00 has joined #ruby
allcentury has joined #ruby
<nofxx> Ouch! so easy: <%%= bar %>
hanmac has joined #ruby
<yorickpeterse> yeah ok fuck this, I'll look into this later this week
<yorickpeterse> E_TOO_MANY_SETUP_STEPS
RegulationD has quit [Ping timeout: 256 seconds]
einarj has quit [Ping timeout: 255 seconds]
<havenwood> JMoir: It looks to me like the sinatra-base gem was abandoned long ago in favor of just sinatra.
<havenwood> JMoir: Remove sinatra-base from your Gemfile and bundle.
charliesome has joined #ruby
<JMoir> oh right, ok. Thanks, I'll try that
RobertBirnie has joined #ruby
sevin has quit [Max SendQ exceeded]
<havenwood> JMoir: You can still `require 'sinatra/base'` since it's a Sinatra thing: https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb
jottr has quit [Remote host closed the connection]
sevin has joined #ruby
quimrstorres has joined #ruby
<shevy> apeiros sounds as if oracle is the modern day mafia
lxsameer has quit [Quit: Leaving]
<apeiros> that's not even so far off reality
<apeiros> especially when you read /. today about oracle "mobbing" customers to adopt their cloud services.
<Nilium> "Mobbing?"
<Nilium> "Would be a shame if something happened to your filesystem when you're not using Oracle's filesystem."
<Nilium> That sort?
olistik has quit [Remote host closed the connection]
josh2 has quit [Ping timeout: 264 seconds]
<JMoir> Thanks, rackup boots up now! Shotgun is still broken and can't find the file though. Is that normal for shotgun to do this?
Notte has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 252 seconds]
olistik has joined #ruby
bubbys has joined #ruby
dagda1_ has quit [Quit: Textual IRC Client: www.textualapp.com]
haxrbyte has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
chouhoulis has joined #ruby
surs4 has joined #ruby
slumos is now known as slumos[away]
MarkTurner has quit [Ping timeout: 256 seconds]
surs3 has quit [Ping timeout: 264 seconds]
simplyianm has joined #ruby
zacstewart has joined #ruby
Jackneill has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 265 seconds]
jhack has quit [Ping timeout: 250 seconds]
RobertBirnie has quit [Ping timeout: 246 seconds]
revath has quit [Ping timeout: 256 seconds]
peter_paule has quit [Ping timeout: 255 seconds]
simplyianm has quit [Ping timeout: 265 seconds]
ljt has joined #ruby
peter_paule has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
freerobby has quit [Client Quit]
RobertBirnie has joined #ruby
ohaibbq has quit [Remote host closed the connection]
freerobby has joined #ruby
ohaibbq has joined #ruby
<havenwood> JMoir: Shotgun isn't in your Bundle? What's the error?
RobertBirnie has quit [Client Quit]
simplyianm has joined #ruby
ss2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
Ilyas has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
IPhoton has joined #ruby
tsvenson has quit [Ping timeout: 264 seconds]
bosma has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Remote host closed the connection]
MarkTurner has joined #ruby
oo_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
radialneon has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
radialneon has joined #ruby
tubulife- has quit [Quit: ZNC - http://znc.in]
Pupeno has joined #ruby
<JMoir> havenwood: It's in this gist, it broke when I added Sinatra::Flash https://gist.github.com/jamalmoir/3bc5b7d50b5acb7f14a4
bashusr has quit [Ping timeout: 250 seconds]
simplyianm has quit [Remote host closed the connection]
<yorickpeterse> https://gist.github.com/YorickPeterse/a8a6c9ba6be60d687bf8 hihi, writing Ruby with Ruby
simplyianm has joined #ruby
<havenwood> JMoir: The sinatra-flash gem's last update was over five years ago. That doesn't seem promising.
radialneon has quit [Ping timeout: 250 seconds]
<Nilium> Such is Ruby gem maintenance
<JMoir> Ahm OK... I should really check that before I start using it, shouldn't I? Haha, oh well.
symm- has joined #ruby
<JMoir> Well, that's a good lesson to learn xD
<adaedra> did you look if it were in sinatra-contrib?
<JMoir> No, I found it in a google search and just went for it, my mistake
tsvenson has joined #ruby
peter_paule has quit [Ping timeout: 252 seconds]
simplyianm has quit [Remote host closed the connection]
<adaedra> eh, I just throw it like that, I don't know if it is in here
<adaedra> just know that there are many cool things in -contrib
dopie has joined #ruby
oo_ has quit [Remote host closed the connection]
veduardo has joined #ruby
<JMoir> Thanks, I'll take a look. I'm still trying to get used to ruby and it's gems haha. I've never really used libraries in the same way before.
simplyianm has joined #ruby
xkef has joined #ruby
jottr has joined #ruby
simplyianm has quit [Remote host closed the connection]
MarkTurner has quit [Ping timeout: 256 seconds]
codecop has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
sarkyniin has joined #ruby
olistik has quit [Remote host closed the connection]
simplyianm has joined #ruby
josh2 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
radialneon has joined #ruby
J4D has joined #ruby
startupality has joined #ruby
evanjs has joined #ruby
einarj has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
dopie has quit [Quit: This computer has gone to sleep]
Yzguy has joined #ruby
xkef has quit [Ping timeout: 255 seconds]
josh2 has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
Zai00 has quit [Quit: Zai00]
t_ has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 244 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pyon is now known as magical-imouto
KrzaQ has quit [Remote host closed the connection]
vickleton has quit [Ping timeout: 246 seconds]
baweaver_ has joined #ruby
quimrstorres has joined #ruby
<war_pigs> Hey guys/gals, I'm trying to plan my next career move. I'd very much would like to work as a consultant in one of the big ruby dev shops. What other big names can you think of to complete this list ThoughBot, ThoughtWorks, TopTal?
t_ has joined #ruby
SylarRuby has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
SylarRuby has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Musashi007 has quit [Quit: Musashi007]
baweaver has quit [Ping timeout: 244 seconds]
SCHAAP137 has quit [Remote host closed the connection]
ta has joined #ruby
Scroff has quit [Remote host closed the connection]
radialneon_ has joined #ruby
VTLob has joined #ruby
Scroff has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
radialneon has quit [Quit: Leaving]
simplyianm has quit [Remote host closed the connection]
olistik has joined #ruby
Pupeno has quit [Remote host closed the connection]
meph has joined #ruby
Enarko has joined #ruby
platzhirsch has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
jeramyRR has joined #ruby
bricker has joined #ruby
VTLob has quit [Quit: VTLob]
lapide_viridi has quit [Read error: Connection reset by peer]
<Thomas-0725> I want to define a method that accepts two numbers and then performs + - * or / on them, and which operation should be specified as a parameter. How do I do that?
<havenwood> war_pigs: Carbon Five, Hashrocket, Pivotal Labs, etc.
<Thomas-0725> In my head, it should be something like: def perform(num1, num2, operation); num1.operation(num2); end;
<havenwood> Thomas-0725: num1.public_send operation, num2
fabrice31 has joined #ruby
<havenwood> >> 41.public_send :+ , 1
<ruboto> havenwood # => 42 (https://eval.in/397219)
scripore has joined #ruby
<havenwood> >> 41.public_send :+ , 1>> 41.public_send '+' , 1
<ruboto> havenwood # => /tmp/execpad-df4ea442aaf1/source-df4ea442aaf1:2: syntax error, unexpected tSTRING_BEG, expecting key ...check link for more (https://eval.in/397220)
<havenwood> oops
Yzguy has quit [Quit: Zzz...]
<havenwood> >> 41.public_send '+' , 1
<ruboto> havenwood # => 42 (https://eval.in/397221)
KrzaQ has joined #ruby
Yzguy has joined #ruby
J4D has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Thomas-0725: Or: [num1, num2].inject operator
<havenwood> >> [41, 1].inject :+
<ruboto> havenwood # => 42 (https://eval.in/397224)
KrzaQ has quit [Client Quit]
fabrice31 has quit [Ping timeout: 256 seconds]
<havenwood> Thomas-0725: Which also works with String, but in both cases it's converting them to Symbols anyways under the hood.
<Thomas-0725> ok, thanks!
<havenwood> Thomas-0725: no prob, you're welcome
KrzaQ has joined #ruby
nfk has joined #ruby
girakrok has quit [Quit: Textual IRC Client: www.textualapp.com]
xkef has joined #ruby
brianpWins has joined #ruby
simplyianm has joined #ruby
Zai00 has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
ddarkpassenger has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
<yh> havenwood: sorry I disappeared earlier. SSE sounds like a far better shout than WebSockets, don't know why I didn't just initially say that.
<yh> Interesting: didn't know it handled drop connections
Scroff has quit [Ping timeout: 244 seconds]
<war_pigs> Thanks havenwood
tomphp has joined #ruby
_ixti_ has joined #ruby
simplyianm has quit [Remote host closed the connection]
<yh> havenwood: also, there would literally be a max of 1 user. 99.99% of the time 0. :)
testingmystuff has joined #ruby
quazimod1 has quit [Ping timeout: 265 seconds]
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
testingmystuff has left #ruby [#ruby]
simplyianm has joined #ruby
ljt has quit []
<havenwood> war_pigs: You're welcome. Good luck, sounds like an adventure.
Zai00 has joined #ruby
<havenwood> yh: Nice, users complicate things - especially when there're lots of them.
<havenwood> yh: :)
Pupeno has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
haxrbyte has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
dgutierrez1287 has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
evanjs has quit [Remote host closed the connection]
george2 has quit [Quit: ZNC - http://znc.in]
simplyianm has quit [Remote host closed the connection]
tsvenson has quit [Ping timeout: 256 seconds]
jbw has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
[k- has quit [Ping timeout: 265 seconds]
startupality has quit [Quit: startupality]
rsiqueira has joined #ruby
Enarko has quit [Quit: Enarko]
yardenbar has quit [Quit: Leaving]
<rsiqueira> hi, i'm new on ruby and facing some problems parsing hashs.. i have, for instance, {"from"=>{"id"=>"111111111111", "name"=>"John Doe"}} and I only can access using quotes like in php data['from'] instead of data[:from].. how can i parse it to use data[:from]
ecksit has joined #ruby
<apeiros> rsiqueira: :from and "from" are two different values
ruurd has quit [Quit: Zzzzz z zz ...]
<djbender> rsiqueira: activesupport gem has a HashWithIndifferentAccess which is probably what you’re looking for.
<apeiros> just like 1 and "1" are different values
<djbender> what apeiros said as well.
<rsiqueira> thanks man
<apeiros> djbender: that's the cargo cult solution…
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> IMO better to understand what it's all about
<rsiqueira> i'm parsing a JSON from a http request body
<djbender> yep. it is a solution that rails came up with.
<djbender> if you’re not using rails, i wouldn’t recommend it
<djbender> just use string keys if you’re doing something lightweight
<rsiqueira> i'm using rails haha
<rsiqueira> but thanks for the tip
Zai00 has quit [Quit: Zai00]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<djbender> rails is supposed to parse params as HashWithIndifferentAccess so idk what’s going on there.
<nofxx> yeah, strange .. how you're doing the request rsiqueira ?
simplyianm has joined #ruby
tsvenson has joined #ruby
<apeiros> it's not a params hash
<apeiros> they said it was a json response body
<djbender> some sort of manual json request i presume?
<rsiqueira> actually i have no idea how the gem does the request under the hood
_ixti_ has quit [Ping timeout: 246 seconds]
<rsiqueira> because i'm using a facebook graph gem
<djbender> simple solution, use the string keys :)
<rsiqueira> to parse some event feeds
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rsiqueira> how it's the right name for data[:from] and data['from']
jottr has quit [Ping timeout: 252 seconds]
<apeiros> :from is a symbol
<rsiqueira> i would like to go deeper into it
brianpWins has quit [Quit: brianpWins]
<apeiros> 'from' is a string
<apeiros> both are passed in as an argument to the [] method
<apeiros> (yes, the method's name is actually [])
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phutchins2 has quit [Ping timeout: 244 seconds]
<rsiqueira> and both, symbol and strings, can used as keys in hashes
<apeiros> almost any object can
Pupeno has joined #ruby
Pupeno has joined #ruby
<apeiros> the requirement is that it implements #hash and #eql? meaningfully. and since Object (from which almost all classes inherit) defines those already, almost all objects qualify.
eGGsha is now known as eGGshke
chouhoulis has joined #ruby
davedev2_ has joined #ruby
bronson has joined #ruby
simplyianm has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
nfk has quit [Ping timeout: 256 seconds]
davedev24 has quit [Ping timeout: 248 seconds]
xkef has quit [Ping timeout: 250 seconds]
<nofxx> rsiqueira, now that you understand that you, feel free to use yourhash = yourhash.with_indifferent_access
<nofxx> rsiqueira, and you can work as you expected
simplyianm has joined #ruby
nfk has joined #ruby
zacstewart has quit [Remote host closed the connection]
jottr has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
JMoir has quit [Ping timeout: 250 seconds]
tomphp has quit [Client Quit]
IPhoton has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
simplyianm has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
Voker57 has quit [Read error: Connection reset by peer]
rdema has quit [Ping timeout: 248 seconds]
war_pigs has quit [Quit: laters.. I'm out.]
rdema has joined #ruby
<apeiros> nofxx: but why would you?
RobertBirnie has joined #ruby
<apeiros> there's almost certainly no point to convert it to HWIA
<apeiros> also you'd have to probably even do it recursively…
shock_one has joined #ruby
<apeiros> oh, .with_indifferent_access does it recursively. first part remains, though :)
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
josh2 has joined #ruby
s2013 has quit [Client Quit]
theery has quit [Remote host closed the connection]
theery has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
Channel6 has joined #ruby
<nofxx> apeiros, First and foremost, damn I hate when I use a symbol and it's string. Also symbols are much easier to type and it looks way better.
theery has quit [Remote host closed the connection]
<apeiros> -.-
<nofxx> also much less prone to error... ruby stuff will use symbol, yaml does but people :dont: use much , and keys will be symbols which confuses a lot
<toretore> oh no, strings :( :( :(
nfk has quit [Remote host closed the connection]
<nofxx> symbols!
spider-mario has quit [Remote host closed the connection]
jeramyRR has joined #ruby
<toretore> i wish ruby didn't have symbols
<apeiros> nofxx: if you used ruby for more than a month and are still confused when you come across symbol vs. string then you're doing something quite wrong…
<nofxx> toretore, that's an heresy
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
<nofxx> god made the symbols for a reason: hash keys
<apeiros> nofxx: that's wrong though. they were made for internal identification.
haxrbyte has quit [Ping timeout: 264 seconds]
olistik has quit [Remote host closed the connection]
<nofxx> apeiros, I use ruby for years, and won't stop using symbols on my hashs
Pupeno has quit [Remote host closed the connection]
<apeiros> nobody says anything against using symbols as keys…
<nofxx> apeiros, which kind of identification? practical day to day use
<apeiros> if you've read this into the last few lines then I suggest you scroll back and read again.
<apeiros> nofxx: anything with a name in ruby creates a symbol of the same value.
<apeiros> ivars, lvars, methods, constants, globals, …
<nofxx> apeiros, actually you didn't understand my rant. It's impossible to not 'be confused' when you're working with lots of gems and conventions
<apeiros> nofxx: yer doin it wrong, mate
<apeiros> it's trivial not to be confused.
<apeiros> different standards/conventions are annoying. not confusing.
ecksit has quit [Read error: Connection reset by peer]
nfk has joined #ruby
dseitz has joined #ruby
<nofxx> they are annoying because?
<apeiros> you have to either look up or remember what they use
<nofxx> ok, I'll put in your terms. It's annoying to have to check if the option or return or whatever is using symbol or string. HWIA make it less annoying.
<apeiros> but it's not like "OMIGOSH IS IT A STRING OR A SYMBOL??!? I'M SO CONFUSED!"
<apeiros> and even the annoying part is very limited.
<nofxx> and that's the whole point of ruby imho, programming that's fun
<apeiros> probably the total time I spent due to that the last couple of years is already less than this discussion
<apeiros> yeah. using string keys doesn't take the fun out of it…
scripore has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
surs has joined #ruby
Scroff has joined #ruby
tcdowney has joined #ruby
surs4 has quit [Ping timeout: 240 seconds]
<apeiros> btw., since you seem to argue that symbols as keys are better than strings - hwia stores string keys, not symbols ;-p
shock_one has quit [Remote host closed the connection]
<nofxx> apeiros, better for the coder, that's indifferent ;) in his/her point of view
<nofxx> apeiros, guess because a to_s is less prone to error than a to_sym?
<apeiros> no, because it's not vulnerable to memory exhaustion
<apeiros> only ruby 2.2+ started to GC symbols
<nofxx> apeiros, ah I see
<Bloodshot> I think that symbols and strings should be the same thing internally, personally, but I don't really have a strong opinion on it.
prereflect has joined #ruby
segfalt has quit [Quit: segfalt]
jesterfraud has joined #ruby
prereflect has quit [Client Quit]
george2 has joined #ruby
allcentury has joined #ruby
<apeiros> Bloodshot: that makes no sense.
bosma has quit [Ping timeout: 248 seconds]
scripore has joined #ruby
Axy has joined #ruby
<apeiros> (note: toretore's suggestion to not have symbols to begin with makes sense - but same implementation for symbols and strings makes none whatsoever)
<shevy> yay for simplifying ruby! think of the children \o/
<toretore> wasn't there talk of making Symbol a subclass of String for 2.x?
<shevy> huh
<shevy> is that blog post accurate?
<shevy> "In Ruby 1.x strings were just String objects"
<shevy> I mean symbols existed back in 1.x too right?
Mia has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 252 seconds]
derekv has quit [Ping timeout: 252 seconds]
jasonmit has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
<shevy> "Look at any Ruby significant codebase today and you see to_s and to_sym scattered everywhere, nasty nonsense like HashWithIndifferentAccess and friends"
but3k4 has joined #ruby
alexblom has quit [Ping timeout: 276 seconds]
dgutierrez1287 has joined #ruby
<shevy> and the latter is from rails isn't it - though I concur that it would be better to not need to have it anyway
baweaver_ has quit [Read error: Connection reset by peer]
<Bloodshot> I think he means that nobody used Symbols back then
Scroff has quit [Ping timeout: 246 seconds]
hagabaka has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
badeball has quit [Ping timeout: 252 seconds]
TDJACR has quit [Ping timeout: 252 seconds]
badeball has joined #ruby
<shevy> but 1.x includes 1.8.x right?
<shevy> perhaps he means 1.0
derekv has joined #ruby
<Bloodshot> I read it as 1.0 - around 1.7/8ish
hagabaka has joined #ruby
<shevy> I wish I would have used ruby before the 1.8.x era
<toretore> symbols have been there for a long time, at least 1.6, and people have been using them since then
alexblom has joined #ruby
jasonmit has joined #ruby
<toretore> the problem is people started overusing them
ddarkpassenger has quit [Quit: Leaving]
<Bloodshot> I think it's kind of orthogonal to the point the post is making, that :something should just be a syntax thing, and not be a completely different object than "something"
<shevy> they are also easier to type: :foo versus 'foo' :)
<Bloodshot> Which I generally agree with
<shevy> oh I agree with it anyway, for reason of simplicity alone
bosma has joined #ruby
tmtwd has joined #ruby
mattp__ is now known as mattp
TDJACR has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 248 seconds]
BStheHD has joined #ruby
<BStheHD> Hey guys
theery has joined #ruby
PaulCape_ has joined #ruby
valeri_uF0 has joined #ruby
fumduq has quit [Ping timeout: 252 seconds]
tcdowney has quit [Ping timeout: 264 seconds]
gnarf has quit [Excess Flood]
sn0wb1rd has quit [Ping timeout: 252 seconds]
verto has quit [Ping timeout: 276 seconds]
Takumo has quit [Ping timeout: 252 seconds]
josh2 has quit [Ping timeout: 255 seconds]
axsuul has joined #ruby
<BStheHD> Hey, ruby is my first ever programming language and I've been learning it these past few days.. I'm interested in developing a game with these skills and I wanna know where to start?
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
kaspergrubbe has quit [Ping timeout: 252 seconds]
smooth_p1nguin has quit [Ping timeout: 252 seconds]
clamstar has quit [Ping timeout: 276 seconds]
Pumpkin- has quit [Ping timeout: 276 seconds]
smooth_penguin has joined #ruby
kaspergrubbe has joined #ruby
Pumpkin- has joined #ruby
valeri_ufo has quit [Ping timeout: 252 seconds]
valeri_uF0 is now known as valeri_ufo
bb010g has quit [Quit: Connection closed for inactivity]
gnarf has joined #ruby
symm- has quit [Ping timeout: 255 seconds]
haxrbyte has joined #ruby
theery has quit [Remote host closed the connection]
<shevy> start by describing the game
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<shevy> then translate that into ruby structures, like class Player ... and what not
fumduq has joined #ruby
sn0wb1rd has joined #ruby
verto has joined #ruby
<BStheHD> Idk what kind of game yet, but I see..
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BStheHD> I know there's RPG Maker but you don't really need to know ruby for that right?
<mozzarella> look for bindings for sdl/sfml/etc.
<mozzarella> ruby is probably not the best language for writing a game, to be honest
<Bloodshot> Are you looking to program just 'any game' so you can practise programming? It might be easier to make something text-based, then.
clamstar has joined #ruby
<yh> All the programming languages suck
<yh> That's why I'm moving away from pure software development
<Bloodshot> That seems like an odd thing to post in #ruby
<yh> Your observations do not concur?
Yzguy has quit [Quit: Zzz...]
<BStheHD> yeah I've heard.. I'm using Aptana Studio as my script editor and all and I installed the gosu gem to vast the library for 2D game development
<shevy> BStheHD well I'd would start with something simpler
dgutierrez1287 has joined #ruby
haxrbyte has quit [Ping timeout: 255 seconds]
<shevy> I found games to demand a lot of time invested
<shevy> do you use linux?
nfk has quit [Read error: Connection reset by peer]
<BStheHD> right that's true
EllisTAA has quit [Quit: EllisTAA]
<BStheHD> I use windows
surs1 has joined #ruby
<shevy> hmm
<shevy> start with php
<shevy> you'll come to ruby lateron anyway :)
<yh> er
<yh> don't advocate that please
<shevy> I went that route!
<shevy> ok that is not true
<shevy> I was already using linux when I started with php
<BStheHD> so far I can write simple stuff like a histogram that counts repeating words in any phrase you type
idiocrash has quit []
<shevy> good!
<yh> the legacy mess is still not cleared up yet, let's not add any more to the pile than need be
surs has quit [Ping timeout: 246 seconds]
<shevy> so you know how to obtain user input
<yh> (that is, the php ecosystem)
<BStheHD> yup all that gets.chomp stuff! :p
<shevy> yeah
casadei_ has quit [Remote host closed the connection]
<shevy> well then you could actually start with the user interface / menu to your game
<shevy> but as long as you don't know what kind of game you even want to write, that sounds really hard
<yh> Let's face it, nobody writes Ruby applications for desktops. It probably isn't responsible to recommend doing so to this novice
carpeliam has joined #ruby
<shevy> I write everything in ruby!
<yh> And does that include desktop applications?
einarj has joined #ruby
zacstewart has joined #ruby
<Bloodshot> I don't think that has any bearing, Ruby is fine for general-purpose low-performance programming, and it seems like his goal is to learn
<BStheHD> people say it's hard and that ruby isn't a powerful language, but isn't it supposed to be very efficient?
<Aeyrix> no
<yh> It's not efficient in programming language terms. Nobody writes high performance games in it
KrzaQ has quit [Quit: :(]
<Bloodshot> It's efficient for the programmer
<Aeyrix> ^
<shevy> yh yeah - this was the latest one, for my exam-questions http://shevegen.square7.ch/screenshot.png - it looks like crap, but I use fluxbox and I am too lazy and too incompetent to make it look good (I suppose I could switch to gtk3 ... but I am lazy)
<Bloodshot> But it's an interpreted language, and isn't designed to run 'fast'
oo_ has joined #ruby
<yh> shevy: neat. I like your style
KrzaQ has joined #ruby
<shevy> when I finished it, I realized that the commandline interface was better :\ :/
<yh> Bit of ncurses would have done ya
charliesome has quit [Quit: zzz]
<shevy> I tried to get friendly with ncurses
<shevy> I don't know what it is but its API drives me nuts
<yh> There are enough abstraction layers available for it though
<shevy> BStheHD ruby is also rather complex in that there is a lot of stuff; it's also very adaptable to your own programming style
quazimodo has joined #ruby
quazimod1 has joined #ruby
<yh> If you are the kind of person that likes to be institutionalised, bound by clear rules, and not need to think very much,
<yh> go Java
<yh> Ruby is freedom
einarj has quit [Ping timeout: 264 seconds]
theery has joined #ruby
<BStheHD> so is it nearly impossible to develop.. let's say a game like doodle jump in ruby?
CloCkWeRX has joined #ruby
<shevy> you can develop it just fine
<yh> Nah you could do it.
<yh> I'm not sure I'd want to, though
tcdowney has joined #ruby
<shevy> like via gosu: https://www.libgosu.org/
theery has quit [Remote host closed the connection]
<yh> Ruby's game-related ecosystem is probably nowhere near as advanced as those of other languages
<yh> Even though it does have some solid libraries
<shevy> if you feel motivated and have the time then go for it, but it will be quite a lot of work
<yh> (like gosu)
<carpeliam> regex question: say I have the text “Frank 123 Robinson” and I match against /\w+ (?:\d+\s)?\w+/, but I don’t want the 123 to show up in the match group - what can I do?
<BStheHD> oh I see
EllisTAA has joined #ruby
<shevy> carpeliam perhaps you could add two capture groups?
<shevy> and discard the first one or something
jeramyRR has joined #ruby
<carpeliam> shevy: it might be something like “Frank Lloyd 123 Wright” or “Frank 123 Lloyd Wright”
sharpmachine has quit [Remote host closed the connection]
<carpeliam> no idea where the number might show up (it’s a line number, but part of the text)
<havenwood> carpeliam: What's the return value you'd like?
<shevy> hmm
<carpeliam> havenwood: “Frank Lloyd Wright”, or “Frank Robinson” in the earlier example
<carpeliam> my regex right now is more like (?:(?:\s+|\n{2,3}\d{1,2}\s*)[A-Z]\w+)+