apeiros changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
ohaibbq has quit [Remote host closed the connection]
ohaibbq has joined #ruby
_blizzy_ has joined #ruby
Gribo has quit [Read error: Connection reset by peer]
hj2007 has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
lucyinthesky has left #ruby ["Leaving"]
_blizzy_ has joined #ruby
devbug_ has joined #ruby
jeadr has quit [Remote host closed the connection]
jeadr has joined #ruby
mephistophocles has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
last_staff has quit [Read error: Connection reset by peer]
marsjaninzmarsa has joined #ruby
frozen3 has joined #ruby
dgutierrez1287 has joined #ruby
axl_ has left #ruby [#ruby]
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
juanpablo___ has joined #ruby
Spleeze has quit [Quit: QUIT]
Rickmasta has joined #ruby
mephistophocles has joined #ruby
jonee has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
marr has quit [Ping timeout: 240 seconds]
lucyinthesky has quit [Quit: Leaving]
Spleeze has joined #ruby
juanpablo___ has quit [Ping timeout: 240 seconds]
swgillespie has joined #ruby
saddad has joined #ruby
casadei_ has joined #ruby
cornerma1 has joined #ruby
swgillespie has quit [Client Quit]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
towski_ has joined #ruby
tomphp has joined #ruby
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
nertzy has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
snowkidind has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
djbkd has quit [Quit: Leaving...]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx_ has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
eminencehc has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Thomas-0725 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
Cache_Money has joined #ruby
<eminencehc> How can i match an item in an array, and then return the next one? I know I can do array.include?(foo), but how would I get the next value?
kellray has left #ruby [#ruby]
djbkd has joined #ruby
banister has quit [Read error: Connection reset by peer]
amystephen has quit [Quit: amystephen]
diegoviola has joined #ruby
tkuchiki has joined #ruby
rubie has joined #ruby
<Ox0dea> eminencehc: Why not just add 1 to the index of the target element and use that to get the next one?
christiandsg has joined #ruby
yh has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 244 seconds]
rubie has quit [Remote host closed the connection]
kachi8 has quit [Ping timeout: 244 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
swgillespie has joined #ruby
workmad3 has joined #ruby
danman has joined #ruby
brendan- has joined #ruby
ascarter has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
brendan- has quit [Client Quit]
Cubix has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
allcentury has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
Cubix has quit [Quit: Leaving]
<shevy> yeah index
<Ox0dea> >> foo = [1, 2, 3].to_enum; 1 until foo.next == 2; foo.next # or Enumerator#next :P
<ruboto> Ox0dea # => 3 (https://eval.in/417258)
towski_ has quit [Remote host closed the connection]
hydrozen has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
brendan- has joined #ruby
hagabaka has quit [Ping timeout: 240 seconds]
Oka has quit [Quit: さようなら]
jonee has joined #ruby
hagabaka has joined #ruby
ERIK_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
_blizzy_ has quit [Ping timeout: 240 seconds]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
tkuchiki has joined #ruby
scottschecter has joined #ruby
code1o6 has quit [Ping timeout: 265 seconds]
danman has quit [Quit: danman]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonee has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
VeganGreg has joined #ruby
tkuchiki has quit [Remote host closed the connection]
episage has quit [Remote host closed the connection]
michaeldeol has joined #ruby
tkuchiki has joined #ruby
patteh_ has quit [Ping timeout: 244 seconds]
ponga has quit [Quit: Leaving...]
danman has joined #ruby
patteh has joined #ruby
arescorpio has quit [Quit: Leaving.]
danman has quit [Client Quit]
d10n-work has quit [Quit: Connection closed for inactivity]
frozen3 has quit [Remote host closed the connection]
__main__ has quit [Ping timeout: 244 seconds]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
dr3w has joined #ruby
mary5030 has joined #ruby
allcentury has joined #ruby
Vile` has quit [Remote host closed the connection]
jeadr has quit [Remote host closed the connection]
dorei has quit []
jeadr has joined #ruby
Vile` has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
__main__ has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
towski_ has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
bronson has quit [Ping timeout: 264 seconds]
devoldmx_ has quit [Remote host closed the connection]
eam has quit [Ping timeout: 244 seconds]
bweston92 has quit [Read error: Connection reset by peer]
eam has joined #ruby
jeadr has quit [Remote host closed the connection]
jeadr has joined #ruby
towski_ has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
nertzy has quit [Quit: This computer has gone to sleep]
amystephen has quit [Quit: amystephen]
MikeHunt has joined #ruby
<MikeHunt> what are the most docile species of nigger?
<lannonbr> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, Coraline, workmad3, drbrain, slyphon, zenspider, rubyhacker1, Aria, ljarvis
<MikeHunt> I'm doing this for an assignment
christiandsg has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
<MikeHunt> it's a ruby app with a sql driven db that relates nigger species from most violent to most docile
<MikeHunt> there are a lot of nigger species in the world. subhuman niggers are the most violent and dangerous... more dangerous than the silverbacks. what is the most docile species of niggers out there?
<Yzguy> yeah so if you could leave
<Yzguy> that'd be great
<Norrin> ops were already called. leave it alone
<MikeHunt> can you answer my question please? I'll leave after you answer my question
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
armyriad has quit [Quit: Leaving]
<pipework> Yzguy: Please don't engage the troll.
<MikeHunt> please answer my question
MikeHunt has quit [Remote host closed the connection]
Feyn has joined #ruby
hydrozen has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
dr3w has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
millerti has joined #ruby
belteshazzar has joined #ruby
<miah> sup
MikeUnt has joined #ruby
<MikeUnt> hi
MikeUnt was banned on #ruby by ChanServ [MikeUnt!*@*]
MikeUnt was kicked from #ruby by ChanServ [Banned: http://ruby-community.com/pages/user_rules#rule_2_10]
tkuchiki has quit [Remote host closed the connection]
MikeUnit has joined #ruby
MikeUnit was kicked from #ruby by ChanServ [Banned: http://ruby-community.com/pages/user_rules#rule_2_10]
spacemud has quit [Quit: ZNC - http://znc.in]
millerti has quit [Client Quit]
<shevy> hi miah
<miah> did i boot the wrong one?
<pipework> miah: Maybe it wasn't the best mask, but it should be alright for miaow. :D
<miah> sadly, trolls <3 web gateways
<kaikazou> :(
lwu has joined #ruby
oo_ has joined #ruby
<pipework> miah: I might've went for the ip address to start, or if you think kiwiiirc.com isn't that popular, you could ban that. I haven't seen that one as often, but that's definitely worth considering.
<miah> ya, i'll sort it out in a minute. =)
<Norrin> miah, i think you did get the wrong one
<Norrin> the guy was MikeHunt (~u931732@172.56.26.62)
arescorpio has joined #ruby
Rutix has quit []
<Norrin> mobile ip but it'll suffice for now
DifferentLambda is now known as rhg135
oo__ has joined #ruby
devoldmx has joined #ruby
siemprefresco has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
Thomas-0725 has joined #ruby
<miah> Norrin: thanks, i'll sort in a moment
edwardly has joined #ruby
edwardly has joined #ruby
siempref_ has quit [Ping timeout: 256 seconds]
<miah> i think that one i banned was same one, just on webirc.. i dont really understand the trolling anyways
<miah> such a waste
oo__ has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
Thomas-0725 has quit [Client Quit]
workmad3 has joined #ruby
havenwood has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
eminencehc has quit [Remote host closed the connection]
bruno- has joined #ruby
rakm has joined #ruby
patteh has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
patteh has joined #ruby
<shevy> they have too much time available!
bruno- has quit [Ping timeout: 240 seconds]
<miah> lol
Vile` has quit [Ping timeout: 265 seconds]
VeganGreg has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 255 seconds]
hj2007 has quit [Ping timeout: 260 seconds]
Vile` has joined #ruby
braincrash has quit [Quit: bye bye]
dopie has quit [Quit: This computer has gone to sleep]
jeadr has quit [Remote host closed the connection]
braincras has joined #ruby
jeadr has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
davedev24 has quit []
audiodude has joined #ruby
oo_ has joined #ruby
s2013 has joined #ruby
christiandsg has quit [Remote host closed the connection]
hj2007 has joined #ruby
NeverDie has joined #ruby
dgutierrez1287 has joined #ruby
s2013 has quit [Client Quit]
Vile` has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
darkf has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
Guest44794 has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lwu has quit [Quit: This computer has gone to sleep]
Guest44794 has quit [Remote host closed the connection]
ocsjwolf has joined #ruby
dopie has joined #ruby
amystephen has joined #ruby
Jimbow has joined #ruby
Jimbow was banned on #ruby by ChanServ [*!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196]
Jimbow was kicked from #ruby by ChanServ [Banned: http://ruby-community.com/pages/user_rules#rule_2_10]
hmsimha_ has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hydrozen has joined #ruby
christiandsg has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
audiodude has quit [Quit: audiodude]
swgillespie has joined #ruby
khebbie has joined #ruby
swgillespie has quit [Client Quit]
Jagst3r15 has joined #ruby
<Jagst3r15> Hi, how come a lot of web hosting companies build their control panels in ruby?
<Jagst3r15> e.g. wpengine, etc
hmsimha_ has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
<elton> cuz ruby is awesome
khebbie has quit [Ping timeout: 240 seconds]
<Yzguy> probably just who they have on staff
<Norrin> ^
<Yzguy> "we need a control panel, well these guys know ruby and rails, guess whats what we will go with"
<ocsjwolf> Anybody here use Sinatra?
<Yzguy> we have "grails" at work
<Yzguy> I'd like to see them move to ruby or python for web apps
swgillespie has joined #ruby
allcentury has joined #ruby
<Yzguy> but, big enterprise, we'll see how that goes
poguez_ has joined #ruby
armyriad has joined #ruby
arescorpio has quit [Quit: Leaving.]
<Jagst3r15> well is ruby more robust/secure for a custom web control panel then say PHP5?
gix has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
RobertBirnie has quit [Client Quit]
gix has joined #ruby
juanpablo___ has joined #ruby
armyriad has quit [Quit: Leaving]
UtkarshRay has joined #ruby
xcesariox has joined #ruby
jonee has joined #ruby
havenwood has joined #ruby
juanpablo___ has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has joined #ruby
belteshazzar has quit [Ping timeout: 240 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
jonee_ has joined #ruby
jpfuentes2 has quit [Client Quit]
ramfjord has quit [Ping timeout: 260 seconds]
The_Phoenix has joined #ruby
jonee__ has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
jonee has quit [Ping timeout: 260 seconds]
UtkarshRay has quit [Remote host closed the connection]
jonee_ has quit [Ping timeout: 246 seconds]
jonee__ has quit [Client Quit]
jonee has joined #ruby
bb010g has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
christiandsg has joined #ruby
np0 has quit [Changing host]
np0 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
jonee__ has joined #ruby
hmsimha_ has joined #ruby
jonee has quit [Read error: No route to host]
jonee__ has quit [Client Quit]
UtkarshRay has joined #ruby
swgillespie has joined #ruby
jefus has joined #ruby
swgillespie has quit [Client Quit]
einarj has joined #ruby
[k- has joined #ruby
hololeap has joined #ruby
hj2007 has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 255 seconds]
RobertBirnie has joined #ruby
josh4 has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
PhantomSpank has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
lucyinthesky has joined #ruby
Jagst3r15 has quit [Quit: Page closed]
dopie has joined #ruby
workmad3 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
LMity has joined #ruby
hj2007 has joined #ruby
ocsjwolf has quit [Quit: Lost terminal]
workmad3 has quit [Ping timeout: 265 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
TheTime has joined #ruby
<TheTime> |||||| Do you know what your DOMAIN IS WORTH??? Vist >>> www.VALBOT.com <<< for a FREE DOMAIN VALUATION! or Google >>> VALBOT.com <<< ||||||
LMity has quit [Ping timeout: 256 seconds]
hololeap has quit [Ping timeout: 246 seconds]
n_blownapart has joined #ruby
christiandsg has quit [Remote host closed the connection]
sameerynho has joined #ruby
<TheTime> |||||| Do you know what your DOMAIN IS WORTH??? Vist >>> www.VALBOT.com <<< for a FREE DOMAIN VALUATION! or Google >>> VALBOT.com <<< ||||||
<ekleog> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<blarghlarghl> can someone do the thing?
TheTime has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
bruno- has joined #ruby
hj2007 has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
lucyinthesky has quit [Quit: Leaving]
Oka has joined #ruby
hololeap has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
stoodfarback has quit [Quit: Connection closed for inactivity]
n_blownapart has quit [Quit: Leaving]
yeticry has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
oo_ has quit [Remote host closed the connection]
hj2007 has joined #ruby
scripore has joined #ruby
oo_ has joined #ruby
Alina-malina has quit [Ping timeout: 252 seconds]
socialjackie_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
sdothum has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
_djbkd has joined #ruby
Jimbow has joined #ruby
oo__ has joined #ruby
Jimbow has quit [Client Quit]
kies has quit [Ping timeout: 256 seconds]
ruby-lang770 has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
_blizzy_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Jimbow has joined #ruby
kies has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
darkxploit has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby
Jimbow has quit [Client Quit]
Jimbow has joined #ruby
ruby-lang770 has left #ruby [#ruby]
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
_blizzy_ has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
<Jimbow> hi
_blizzy_ has joined #ruby
<Oka> o/
nite2k has joined #ruby
<Jimbow> 0/
arup_r has joined #ruby
oo_ has joined #ruby
oo__ has quit [Ping timeout: 240 seconds]
khebbie has quit [Ping timeout: 260 seconds]
oo__ has joined #ruby
<baweaver> Ox0dea: y u no in #ruby-offtopic?
tkuchiki has joined #ruby
<baweaver> http://www.amazon.com/Mazes-Programmers-Twisty-Little-Passages/dp/1680500554 - This might be of interest to you as an aside.
oo_ has quit [Ping timeout: 244 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkxploit has joined #ruby
yardenbar has joined #ruby
Jimbow is now known as MikeUnt
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
iateadonut has joined #ruby
sevenseacat has joined #ruby
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
skydiver has joined #ruby
darkxploit has quit [Max SendQ exceeded]
hashrocket has quit [Quit: Connection closed for inactivity]
darkxploit has joined #ruby
nite2k has quit []
dgutierrez1287 has joined #ruby
darkxploit has quit [Max SendQ exceeded]
arup_r has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
darkxploit has joined #ruby
allcentury has joined #ruby
tkuchiki has joined #ruby
MikeUnt has left #ruby [#ruby]
Oka has quit [Ping timeout: 244 seconds]
<WeeBeanie> Question: I'm trying to remove all instances of \t, \n, etc, for use with json parsing.
postmodern has quit [Quit: Leaving]
<WeeBeanie> Currently I just use mystring.delete("\t"), is there a way to remove multiple such control chars with a single .delete statement?
<WeeBeanie> such as mystring.delete("\t", "\n", "\r")
christiandsg has joined #ruby
codecop has joined #ruby
<WeeBeanie> It's a code cop! Everyone be cool!
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
shinnya has quit [Ping timeout: 264 seconds]
skydiver has quit [Quit: WeeChat 1.2]
dgutierrez1287 has quit [Ping timeout: 246 seconds]
skydiver has joined #ruby
<snowkidind> lol i look over and i see this
allcentury has quit [Ping timeout: 250 seconds]
<Ox0dea> baweaver: I guess I tacitly operate on the assumption that if main is dead, OT is likely to be even deader.
<baweaver> fair
<baweaver> WeeBeanie: strip
<Ox0dea> >> "a\nb\rc\td".delete "\n\r\t" # WeeBeanie
<ruboto> Ox0dea # => "abcd" (https://eval.in/417324)
christiandsg has quit [Ping timeout: 265 seconds]
<WeeBeanie> Ok, so, if I have a string "\t Hello, I'm Jim \nNice to meet you!"
<WeeBeanie> putting .delete "\t\n" will leave " Hello, I'm Jim Nice to meet you!"
<Ox0dea> That's right.
<WeeBeanie> Perfect, thank you sir.
bronson has joined #ruby
<WeeBeanie> What are some common control chars? I run into \t (tab) and \n (newline) a bit, but are there others that come to mind?
socialjackie_ has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
fedexo has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
<hololeap> WeeBeanie: \r is common in windows
BloodyHistory has joined #ruby
<hololeap> as in "\r\n"
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ekleog> WeeBeanie: You can do the opposite: "\t Hello, I'm Jim \nNice to meet you!".delete "^a-zA-Z0-9.,! "
<hololeap> also in networking protocols like http although i'm not sure if its necessary
bronson has quit [Ping timeout: 256 seconds]
<ekleog> This would delete everything but alphanumeric characters, space, dot, comma and bang
Trynemjoel has quit [Ping timeout: 245 seconds]
<baweaver> Odd, I'd think delete would take a regex
<baweaver> ah well.
<WeeBeanie> ekleog: Thank you, it's for JSON parsing, I don't want to kill any other special chars.
<baweaver> because the thing is essentially using a regex group anyways
<baweaver> simplification I guess.
<WeeBeanie> I just want to eliminate the control chars that break JSON.
Oka has joined #ruby
<hololeap> WeeBeanie: also "\e" is common in command prompts, for instance whereever you see color
<ekleog> \n and \t do not break JSON AFAICT
Trynemjoel has joined #ruby
<Ox0dea> baweaver: String#delete was inspired by `tr` and its `-d` flag.
jimbow has joined #ruby
<jimbow> hi
<Ox0dea> !ops
<ruboto> fflush, apeiros, seanstickle, banisterfiend, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<jimbow> why?
<jimbow> i did nothing wrong
<sevenseacat> hello
<Ox0dea> sevenseacat: jimbow intends to be mean.
<[k-> The Game
<sevenseacat> umm
<jimbow> i just wanted to say that i love each and every one of you
<jimbow> and the ruby community is great
<Ox0dea> sevenseacat: Welp, fair warning.
<jimbow> :)
Encapsulation has quit [Quit: Leaving]
<jimbow> sevenseacat:thanks for writing that wonderful rails book
<Ox0dea> baweaver: Why we have #tr_s but not #tr_d is a bit of a mystery.
lucyinthesky has joined #ruby
<jimbow> may i have your autograph?
absolutejam has quit [Ping timeout: 246 seconds]
<sevenseacat> Ox0dea: 'preciated.
* baweaver grabs popcorn
<sevenseacat> jimbow: if we meet in real life, sure why not.
_blizzy_ has quit [Ping timeout: 260 seconds]
<jimbow> sevenseacat:don't listen to Ox0dea he's not talking about me
<jimbow> he's mistaken me for someone else
<lucyinthesky> oh cool
<WeeBeanie> Question: when I declare a series of variables local to a function, when that function terminates execution, is the memory for those variables released?
<WeeBeanie> The function is not a method, it's isolated, not part of a parent class
_ht has joined #ruby
<[k-> the memory of released when a GC runs
<[k-> is*
absolutejam has joined #ruby
<WeeBeanie> When does a garbage collector run? Is that something you can manually launch?
<WeeBeanie> I've been coding a while in Ruby but am not familiar whatsoever with the nuances of garbage collection
<[k-> you can manually launch it
<WeeBeanie> Ok
yfeldblum has joined #ruby
<[k-> it runs when the heap is full
<jimbow> is there a way to visualize what's going on in garbage collection?
<Ox0dea> sevenseacat: http://git.io/v3df0 Just something to be aware of, I guess.
<sevenseacat> Ox0dea: thanks.
<WeeBeanie> Is this recommended if you have an app that runs a while and it calls functions with several variables local to that function?
<Ox0dea> Sure thing.
<[k-> I'm not too sure about incremental gc, though
<WeeBeanie> To manually launch a GC?
<jimbow> Ox0dea:do i know who was using my computer? yes i do know who was using my computer it was my brother please forgive him as he's a bit young and immature
<WeeBeanie> That's from 2011 thought.
<WeeBeanie> though*
<[k-> it would work
<[k-> this isn't Scala ;)
<jimbow> ruby's garbage collection hasn't changed much since 1995 afaik
Trynemjoel has quit [Ping timeout: 250 seconds]
<baweaver> 2.1 / 2.2, read changelogs
RobertBirnie has joined #ruby
<[k-> it changed to incremental gc and generational gc
<jimbow> oh
<[k-> and symbol gc
<jimbow> i know nothing
<sevenseacat> !unmute ght
<sevenseacat> is that even a command we have?
gwendall has joined #ruby
lwu has joined #ruby
<baweaver> unmute? it did something at least.
<Ox0dea> That should be of some insight.
<[k-> at least eval.in Ox0dea :(
user1138 has joined #ruby
jimbow has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<WeeBeanie> Ox0dea: thank you.
Trynemjoel has joined #ruby
oo__ has quit [Remote host closed the connection]
<Ox0dea> [k-: Right, sorry.
<WeeBeanie> So I have this one application where I iterate through all user profiles stored in a remote MySQL DB, and perform actions based on settings in the user profiles, perhaps it would be logical to issue a GC.start at the bottom of each iteration.
<WeeBeanie> GC only clears memory for released variables, I trust?
<WeeBeanie> I'm going to read up on it, yes.
<Ox0dea> The garbage collector will not destroy reachable objects.
allcentury has joined #ruby
<WeeBeanie> According to this they have made some changes to the GC mechanism since 1995.
<WeeBeanie> v1.9.3 introduced the "lazy sweeping algorithm" and 2.0 introduced "bitmap marking"
Musashi007 has joined #ruby
gwendall has quit [Ping timeout: 240 seconds]
<Ox0dea> And 2.x introduced a generational collector and some Symbol collection.
<Ox0dea> Symbol literals are never collected, but dynamically created ones ('foo'.to_sym) are treated like most other objects.
<Ox0dea> Not sure about %s(foo).
AlexRussia has joined #ruby
snowkidind has quit [Quit: snowkidind]
<ght> Do you see a performance bump if RAM is released via manually calling GC, or will this only be a factor if physical RAM has been exhausted?
allcentury has quit [Ping timeout: 256 seconds]
<baweaver> Ox0dea: Didn't 2.2 get symbol GC?
snowkidind has joined #ruby
* baweaver has only skimmed that part.
<ght> I realize if physical RAM has been exhausted and the host is disk thrashing via hitting the swap, that's would certainly affect performance.
<ght> that*
<Ox0dea> baweaver: Aye, that must've been the one; I used "2.x" because I wasn't sure.
lucyinthesky has left #ruby ["Leaving"]
* [k- asserts that it is from 2.2
<baweaver> Rails made a big todo about it for 5.0
<Ox0dea> Just to_sym, it seems: https://eval.in/417325
Yzguy has quit [Quit: Zzz...]
daynaskully has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
WeeBeanie has quit [Quit: Page closed]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ght> Is the best method for calling GC simply GC.start? Is that the recommended method in general?
einarj has joined #ruby
<Ox0dea> That's how to kick off GC, yes.
<ght> Ox0dea: Thank you.
eminencehc has quit [Remote host closed the connection]
<[k-> you probably dont need to use it
<Ox0dea> ^
<Ox0dea> >> Symbol.all_symbols.select { |s| s.size == 1 }.sort.join
<ruboto> Ox0dea # => "!\"\#$%&'()*+,-./:;<=>?@EI[\\]^_`abdefhikmnopqrsvwx{|}~" (https://eval.in/417327)
<ght> Ok, I just noticed one of my apps that deals with a fair amount of user data was consuming a LOT of RAM.
<Ox0dea> That's kind of interesting.
<ght> and I assume it's all the temporary local vars I declare in these functions.
<Ox0dea> I wonder why c, g, j, l, t, u, y, and z are absent.
<ght> I'm sure this codebase could be optimized.
snowkidind has quit [Quit: snowkidind]
workmad3 has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 250 seconds]
<[k-> Ox0dea: thats because they arent used
jxcode has joined #ruby
daynaskully has joined #ruby
<[k-> no def c; :c or whatever
<baweaver> If you _really_ have issues with RAM / speed, Ruby may not be the best idea.
daynaskully is now known as Guest74305
<ght> One last question regarding this: If you inadvertantly end up calling GC.start multiple times in a loop, A) does GC.start freeze execution until garbage colleciton is complete?
framling has joined #ruby
<ght> And B) If not, will multiple GC instances begin overlapping and causing issues of their own?
<Ox0dea> [k-: Which class do you reckon has an #a method?
<Ox0dea> ght: Ruby's GC "stops the world".
<ght> haha, ok.
<ght> Thank you Ox0dea.
<Ox0dea> That's actually the technical term, I think.
leat has joined #ruby
<Ox0dea> Happy to help.
PhantomSpank has joined #ruby
<[k-> Ox0dea: i dont know, but i bet you'd find out
blue_deref has quit [Quit: bbn]
<Ox0dea> [k-: I suspect there isn't one, at least not in any of the classes that're defined at program start.
<Ox0dea> I understand the absence of the less common letters like J and Z, but C is pretty damned common.
khebbie has quit [Remote host closed the connection]
<[k-> when i think of c i think of cats
np0 has quit [Ping timeout: 245 seconds]
<Ox0dea> ETAOIN SHRDLUC.
tkuchiki has quit [Remote host closed the connection]
shock_one has joined #ruby
PhantomSpank has quit [Ping timeout: 245 seconds]
sameerynho has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
michael_mbp has quit [Excess Flood]
phutchins1 has joined #ruby
<Ox0dea> It does rely on the nonexistence of a file named " " in the current directory, though.
michael_mbp has joined #ruby
_djbkd has quit [Quit: My people need me...]
kachi8 has joined #ruby
khebbie has joined #ruby
nsuke has joined #ruby
iateadonut has quit [Quit: Leaving.]
phutchins1 has quit [Ping timeout: 246 seconds]
casadei_ has quit [Remote host closed the connection]
choke has joined #ruby
<ght> Question: if you declare a hash like myhash = { "Val1" => 100, "Val2" => nil, "Val3" => 200 }, will a GC.start elimnate the "Val2" element of the hash, or does the Val2 element really exist at all in the first place?
<ght> eliminate*
TomyLobo has joined #ruby
casadei_ has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
<[k-> it will not be eliminated
<ght> [k-: Thank you
pawnbox has joined #ruby
casadei_ has quit [Remote host closed the connection]
<Ox0dea> ght: Nonexistence and nil are quite different things.
<Ox0dea> >> [defined?(a), a = nil, defined?(a)]
<ruboto> Ox0dea # => [nil, nil, "local-variable"] (https://eval.in/417329)
<ght> I see, very nice, thank you Ox0dea.
<Ox0dea> Sure thing.
<ght> It's very nice of you Ruby experts to hang around and help up-and-comers like myself.
<ght> Saves me hours of research sometimes, so really, thank you.
choke has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> <3
robbyoconnor has joined #ruby
<Ox0dea> MINASWAN.
skydiver has joined #ruby
sameerynho has joined #ruby
Rickmasta has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
<baweaver> skydiver: DreamInCode?
lucyinthesky has joined #ruby
<baweaver> user on there has the same name at least
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> baweaver: Huh, that is indeed the fellow that got me interested in mazes.
j4cknewt has quit [Remote host closed the connection]
<Ox0dea> I'm almost certain the book wasn't around when I first stumbled upon his collection there.
charliesome has joined #ruby
ChoiKyuSang has joined #ruby
matled- has joined #ruby
<ekleog> Hey folks, in Logger's documentation, I can't find any mention of multithreading. Should I assume it is thread-unsafe, and two concurrent logs could either "corrupt" the log file or write nonsense in lieu of the two log lines?
shock_on_ has joined #ruby
jayne_ has joined #ruby
uxp_ has joined #ruby
patronus_ has joined #ruby
<[k-> you should assume everything is not thread safe
<baweaver> Ox0dea: it's recent, like within the last few months iirc
<[k-> unless the docs says so
Zarthus_ has joined #ruby
<ekleog> OK, thanks!
<Ox0dea> ekleog: In this case, though, [k- was overly pessimistic.
perrier_ has joined #ruby
<Ox0dea> Logger uses the monitor standard library and utilizes a Mutex to ensure thread-safe logging.
zacts_ has joined #ruby
jtdowney_ has joined #ruby
devyn_ has joined #ruby
fluchtreflex_ has joined #ruby
akurilin2 has joined #ruby
shortdudey123_ has joined #ruby
Urocyon_ has joined #ruby
alakran has joined #ruby
oz` has joined #ruby
ericwood_ has joined #ruby
petersaints_ has joined #ruby
ccooke_ has joined #ruby
joneshf-laptop_ has joined #ruby
gsingh93_ has joined #ruby
pjaspers has joined #ruby
humding3r has joined #ruby
DefV_ has joined #ruby
rfi_ has joined #ruby
akhkharu has joined #ruby
Sp4rKy_ has joined #ruby
csmb_ has joined #ruby
redondos_ has joined #ruby
<[k-> i can still say I'm correct by a long stretch
finges_ has joined #ruby
jso- has joined #ruby
hfp__work has joined #ruby
ltd_ has joined #ruby
shadeslayer_ has joined #ruby
Rickmast_ has joined #ruby
ashleyhi1dle has joined #ruby
slani_ has joined #ruby
tommylom1ykins has joined #ruby
apeiros_ has joined #ruby
yarden_ has joined #ruby
larshaugseth has joined #ruby
humd1ng3r has quit [Ping timeout: 255 seconds]
oz has quit [Ping timeout: 255 seconds]
gsingh93 has quit [Ping timeout: 255 seconds]
redondos has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Ping timeout: 255 seconds]
spectra has quit [Ping timeout: 255 seconds]
martinbjeldbak has quit [Ping timeout: 255 seconds]
Coraline has quit [Ping timeout: 255 seconds]
perrier has quit [Ping timeout: 255 seconds]
petersaints has quit [Ping timeout: 255 seconds]
csmb has quit [Ping timeout: 255 seconds]
Urocyon has quit [Ping timeout: 255 seconds]
sarid has quit [Ping timeout: 255 seconds]
abdoudjanifresh has quit [Ping timeout: 255 seconds]
jtdowney has quit [Ping timeout: 255 seconds]
Tempesta has quit [Ping timeout: 255 seconds]
matled has quit [Ping timeout: 255 seconds]
Kruppe has quit [Ping timeout: 255 seconds]
jso has quit [Ping timeout: 255 seconds]
devyn has quit [Ping timeout: 255 seconds]
ericwood has quit [Ping timeout: 255 seconds]
shock_one has quit [Ping timeout: 255 seconds]
brainslug has quit [Ping timeout: 255 seconds]
Zarthus has quit [Ping timeout: 255 seconds]
zacts has quit [Ping timeout: 255 seconds]
akurilin has quit [Ping timeout: 255 seconds]
lhz has quit [Ping timeout: 255 seconds]
DefV has quit [Ping timeout: 255 seconds]
nuck has quit [Ping timeout: 255 seconds]
ltd has quit [Ping timeout: 255 seconds]
pjaspers_ has quit [Ping timeout: 255 seconds]
rfi has quit [Ping timeout: 255 seconds]
Roa has quit [Ping timeout: 255 seconds]
yardenbar has quit [Ping timeout: 255 seconds]
xxneolithicxx has quit [Ping timeout: 255 seconds]
rhg135 has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 255 seconds]
irk has quit [Ping timeout: 255 seconds]
ashleyhindle has quit [Ping timeout: 255 seconds]
ddfreyne has quit [Ping timeout: 255 seconds]
f0ster has quit [Ping timeout: 255 seconds]
joneshf-laptop has quit [Ping timeout: 255 seconds]
ccooke has quit [Ping timeout: 255 seconds]
gnarf has quit [Ping timeout: 255 seconds]
hfp_work has quit [Ping timeout: 255 seconds]
slani has quit [Ping timeout: 255 seconds]
tommylommykins has quit [Ping timeout: 255 seconds]
hfp__work is now known as hfp_work
ejnahc has quit [Ping timeout: 255 seconds]
Roa has joined #ruby
sarid has joined #ruby
dogeuira has joined #ruby
Kruppe has joined #ruby
Coraline has joined #ruby
irk has joined #ruby
uxp has quit [Ping timeout: 255 seconds]
finges has quit [Ping timeout: 255 seconds]
Sp4rKy has quit [Ping timeout: 255 seconds]
patronus has quit [Ping timeout: 255 seconds]
dogeuira has quit [Ping timeout: 255 seconds]
alakra has quit [Ping timeout: 255 seconds]
shortdudey123 has quit [Ping timeout: 255 seconds]
shadeslayer has quit [Ping timeout: 255 seconds]
chris2 has quit [Ping timeout: 255 seconds]
fluchtreflex has quit [Ping timeout: 255 seconds]
Urocyon_ is now known as Urocyon
jayne has quit [Read error: Connection reset by peer]
<Ox0dea> Better still to instill a desire to explore, in my opinion.
sarid has joined #ruby
oz` is now known as oz
gsingh93_ is now known as gsingh93
ChoiKyuSang is now known as Tempesta
matled- is now known as matled
sarid has quit [Changing host]
martinbjeldbak_ has joined #ruby
ddfreyne_ has joined #ruby
petersaints_ is now known as petersaints
DifferentLambda has joined #ruby
ejnahc_ has joined #ruby
<ekleog> OK, thanks, it's always great to discover undocumented features :)
shortdudey123_ is now known as shortdudey123
spectra_ has joined #ruby
abdoudjanifresh has joined #ruby
<Ox0dea> ekleog: I guess it's so sensible that they expected users to take it for given.
nuck has joined #ruby
xxneolithicxx has joined #ruby
chris2 has joined #ruby
jeadr has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
<darkxploit> hello.. i just did a rvm upgrade 2.2 but when i do a ruby -v it gives me ruby 1.8.7
<baweaver> rvm use 2.2
Musashi007 has quit [Quit: Musashi007]
gnarf_ has joined #ruby
<ekleog> Ox0dea: You are right of course, but with <1 week of ruby coding I do not feel ready to delve into ruby's standard library yet
<baweaver> check your path
jeadr has joined #ruby
<darkxploit> baweaver, ah ok now i got it
khebbie has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HexMan has joined #ruby
<baweaver> make sure you have rvm on your path
<baweaver> or you'll have to keep doing that.
<darkxploit> now ruby -v gives me 2.2
<darkxploit> baweaver, does it mean that i still have that old version of ruby on the server
<baweaver> system ruby, probably
<baweaver> 1.8.7 was RHEL / older OSX for the most part
<baweaver> and if RHEL had it, Centos and friends do too.
<darkxploit> how do i get rid of the old ruby ?
<baweaver> don't
nanoz has joined #ruby
devoldmx has quit [Remote host closed the connection]
<darkxploit> ok
gwendall has joined #ruby
<baweaver> depending on the OS and other potential wily factors, that could give you nightmares.
charliesome has joined #ruby
shock_on_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby
<baweaver> rvm use 2.2 --default
<baweaver> that'll keep it that way.
charliesome has quit [Client Quit]
<darkxploit> yes i have reboot the machine its 2.2
<baweaver> good to go then.
<darkxploit> thank you baweaver
<baweaver> np mate
shock_one has joined #ruby
lucyinthesky has quit [Quit: Leaving]
gwendall has quit [Ping timeout: 260 seconds]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
charliesome has joined #ruby
aperios has joined #ruby
skydiver has quit [Quit: #homebrew]
oo_ has joined #ruby
<TomyLobo> i'm developing a jira fuse driver which accesses the jira api on the backend. so far, I didn't care a lot about avoiding duplicate gets, but i always planned to change that. now i just read that the httparty library i use supports caching modules. is there any in-memory caching module?
skydiver has joined #ruby
ruurd has joined #ruby
<TomyLobo> i found cachebar, but that requires a redis server. i also found httparty-icebox, but the author deprecated it in favor of cachebar
khebbie has joined #ruby
lkba has quit [Read error: Connection reset by peer]
symm- has joined #ruby
lwu has quit [Quit: This computer has gone to sleep]
HexMan has quit [Read error: Connection reset by peer]
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
BloodyHistory has quit [Quit: Textual IRC Client: www.textualapp.com]
houhouli_ has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
skydiver has quit [Quit: WeeChat 1.2]
houhoulis has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
MrButh has joined #ruby
<MrButh> I want to use ssh to track my apache2 log to see as people visit my websites, then I want to display that information for the client. Would this be possible using net-ssh and ruby-socket.io?
baweaver has quit [Remote host closed the connection]
skydiver has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
skydiver has quit [Client Quit]
havenwood has quit [Ping timeout: 250 seconds]
<TomyLobo> that sounds like a shell script to me
<TomyLobo> or a case for backticks
skydiver has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<TomyLobo> but usually you'd not use ssh for that
<TomyLobo> but aggregate the logs from all of your cluster in a central place, like a logstash
<MrButh> so like send the logs from all of my servers to a central server every time they are updated?
<MrButh> then tail that file?
np0 has joined #ruby
Musashi007 has joined #ruby
sameerynho has joined #ruby
Alina-malina has joined #ruby
<jhass> ?crosspost MrButh
<ruboto> MrButh, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
ItSANgo has joined #ruby
np0 has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
ruurd has joined #ruby
Kalov has quit []
_blizzy_ has joined #ruby
<MrButh> crossport? is that like a socket gem or something? I can't find anything on Google about it
<MrButh> what does crossporting do?
iliketurtles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrButh> oh post, crossposting... still not sure how that is supposed to help though
allcentury has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
scripore has joined #ruby
fantasticsid has joined #ruby
sameerynho has joined #ruby
khebbie has quit [Remote host closed the connection]
rakm has joined #ruby
Jackneill has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
dgutierrez1287 has joined #ruby
devoldmx has joined #ruby
lapide_viridi has joined #ruby
Musashi007 has quit [Quit: Musashi007]
dgutierrez1287 has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
skydiver has quit [Ping timeout: 250 seconds]
kachi8 has quit [Ping timeout: 244 seconds]
greg has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
The_Phoenix has quit [Quit: Leaving.]
einarj has joined #ruby
arup_r has joined #ruby
lele is now known as Guest24
esposito has joined #ruby
<greg> hello
einarj has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
apeiros_ is now known as apeiros
skydiver has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
eam has quit [Ping timeout: 245 seconds]
PhantomSpank has joined #ruby
PhantomSpank has quit [Client Quit]
greenmang0 has joined #ruby
greenmang0 has joined #ruby
greg has quit [Quit: Leaving]
eam has joined #ruby
greg has joined #ruby
MrButh has quit [Ping timeout: 256 seconds]
esposito has quit [Ping timeout: 240 seconds]
greenmang0 has left #ruby [#ruby]
chinmay_dd has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
autrilla has joined #ruby
babulal has joined #ruby
babulal has left #ruby [#ruby]
darkxploit has quit [Ping timeout: 260 seconds]
babulal has joined #ruby
allcentury has joined #ruby
<[k-> >> a = "a"; [a.hash, a.hash.hash, a.hash.hash.hash]
<ruboto> [k- # => [728484229, 929771822, 1042016688] (https://eval.in/417334)
scripore has joined #ruby
araujo has quit [Quit: Leaving]
yashinbasement has joined #ruby
<Ox0dea> >> 5.times.reduce([]) { |o| o.singleton_class }
<ruboto> Ox0dea # => #<Class:#<Class:#<Class:#<Class:#<Class:#<Array:0x4177d38c>>>>>> (https://eval.in/417335)
araujo has joined #ruby
<[k-> >> 5.times.reduce("a") { |o, i| o.hash + i.hash }
<ruboto> [k- # => -132993006 (https://eval.in/417336)
<[k-> :o
allcentury has quit [Ping timeout: 260 seconds]
araujo has quit [Max SendQ exceeded]
chinmay_dd has quit [Quit: See ya!]
<Ox0dea> ":o" is the escape sequence for 0x7 (BELL) in LOLCODE.
_blizzy_ has quit [Ping timeout: 260 seconds]
<[k-> Ox0dea: monkeys could type that sentence perfectly given enough time, monkeys, computers, and parallel universes
<Ox0dea> You can't prove that.
psy_ has joined #ruby
eam has quit [Ping timeout: 244 seconds]
babulal has quit [Remote host closed the connection]
eam has joined #ruby
araujo has joined #ruby
<[k-> and i have got a citation
govg has joined #ruby
kachi8 has joined #ruby
<[k-> it will happen
<[k-> just you wait!
nanoz has quit [Quit: <3]
<Ox0dea> Why do we need the parallel universes?
<Ox0dea> Ours might be a Big Bouncer.
<apeiros> where else would I find my good twin mirror who saves the world instead of subjugating it? :D
kachi8 has quit [Read error: Connection reset by peer]
<Ox0dea> apeiros: He's just the other side of our next Big Crunch.
darkxploit has joined #ruby
kachi8 has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
<Ox0dea> Alas, dishearten at the realization that the Big Bounce theory is overly optimistic.
Motoservo has quit [Quit: Motoservo]
bruno- has joined #ruby
krz has joined #ruby
towski_ has joined #ruby
fantasti` has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
jxcode has quit [Quit: leaving]
demonlove has joined #ruby
Iskarlar has joined #ruby
fantasticsid has quit [Ping timeout: 255 seconds]
fantasti` has quit [Remote host closed the connection]
fantasticsid has joined #ruby
oo_ has quit [Remote host closed the connection]
Motoservo has joined #ruby
gard has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
einarj has joined #ruby
oo_ has joined #ruby
tkuchiki has joined #ruby
ramfjord has joined #ruby
khebbie has joined #ruby
oo_ has quit [Remote host closed the connection]
gard has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
khebbie has quit [Ping timeout: 245 seconds]
chinmay_dd has joined #ruby
towski_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
cyperx has joined #ruby
lapide_viridi has quit [Quit: Leaving]
youngbaks has joined #ruby
Silox| has joined #ruby
youngbaks has quit [Client Quit]
oo_ has quit [Ping timeout: 264 seconds]
cyperx has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fantasticsid has quit [Remote host closed the connection]
christiandsg has joined #ruby
khebbie has joined #ruby
kachi8 has quit [Ping timeout: 252 seconds]
marr has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
yashinbasement has quit [Quit: Leaving]
chinmay_dd has quit [Read error: Connection reset by peer]
chihhsin has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 250 seconds]
darthez has joined #ruby
Silox| has quit []
oo_ has joined #ruby
hololeap has quit [Ping timeout: 272 seconds]
codecop has quit [Remote host closed the connection]
hololeap has joined #ruby
oo_ has quit [Remote host closed the connection]
speaking1ode has joined #ruby
pen-soldier has joined #ruby
bartj3 has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
skydiver has joined #ruby
chinmay_dd has quit [Client Quit]
oo_ has joined #ruby
workmad3 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stamina has joined #ruby
da3mian has joined #ruby
houhouli_ has quit [Remote host closed the connection]
Iskarlar has joined #ruby
oo_ has quit [Remote host closed the connection]
skydiver has quit [Ping timeout: 250 seconds]
ranchodev has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
ndrei has joined #ruby
oo_ has joined #ruby
da3mian has quit [Ping timeout: 244 seconds]
kachi8 has joined #ruby
pengin has joined #ruby
oo_ has quit [Remote host closed the connection]
demonlove has quit [Remote host closed the connection]
greg has quit [Remote host closed the connection]
hololeap has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
devoldmx has joined #ruby
pengin has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
da3mian has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
nofxxx has quit [Ping timeout: 252 seconds]
khebbie has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
eminencehc has joined #ruby
The_Phoenix has joined #ruby
Asher has joined #ruby
phutchins1 has joined #ruby
abdoudjanifresh has quit [Ping timeout: 260 seconds]
abdoudjanifresh has joined #ruby
eminencehc has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
phutchins1 has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
Oka has quit []
shock_one has quit [Remote host closed the connection]
darthez has quit [Remote host closed the connection]
Kabadoo has joined #ruby
<Kabadoo> Is there something like XAMPP, but with ruby? I would like to start learning ruby, ruby on rails, sql on my local machine.
<jhass> you only need ruby for local development
<jhass> rails can start with a sqlite db
<jhass> development webserver comes with it, you just run it
tkuchiki has joined #ruby
lxsameer_ has joined #ruby
_blizzy_ has joined #ruby
kachi8 has quit [Ping timeout: 252 seconds]
shock_one has joined #ruby
<Kabadoo> I am totally new to this. Some time ago I tried php. Xampp came with nice mysql database gui (easy for beginner). I suspect that there is no gui for sqlite db.
banister has joined #ruby
<jhass> there are some, but you don't really need it
<jhass> with rails you write your migrations (= things that create the database tables) in Ruby
sameerynho has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
<jhass> and it has some cli tool to generate the basic stuff anyhow
lxsameer has joined #ruby
lxsameer has joined #ruby
<Kabadoo> Ok, thanks for your help. Will ask for help, when I eventually hit a wall.
<jhass> also note
<jhass> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
_blizzy_ has quit [Read error: Connection reset by peer]
<jhass> Kabadoo: know any programming languages yet? if you not you might want to start out with something like Chris Pine's Learn to program
lxsameer_ has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
khebbie has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
yh has joined #ruby
pawnbox has joined #ruby
banister has quit [Read error: No route to host]
bartj3 has joined #ruby
bartj3 has quit [Client Quit]
workmad3 has joined #ruby
Wolland has joined #ruby
Wolland has quit [Client Quit]
ndrei has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
<jhass> mmh, maybe the internal structures just grow so appending stuff becomes more expensive?
VeganGreg has joined #ruby
tvw has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
khebbie has joined #ruby
quimrstorres has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
PooPooBoy has joined #ruby
Oka has joined #ruby
lkba has joined #ruby
PooPooBoy has quit [Client Quit]
khebbie has quit [Remote host closed the connection]
workmad3 has joined #ruby
PlasmaStar has quit [Ping timeout: 244 seconds]
sameerynho has joined #ruby
khebbie has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
last_staff has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
nanoz has joined #ruby
alexherbo2 has joined #ruby
christiandsg has joined #ruby
PlasmaStar has joined #ruby
<nanoz> http://tryruby.org/levels/3/challenges/5 , they use lines to divide
<nanoz> can we use poem.chars­.to_a
<nanoz> but it doesnt work
quimrstorres has quit [Remote host closed the connection]
<jhass> >> s = "foo\nbar"; [s.lines, s.chars] # nanoz not the same
<ruboto> jhass # => [["foo\n", "bar"], ["f", "o", "o", "\n", "b", "a", "r"]] (https://eval.in/417368)
yashinbasement has joined #ruby
<[k-> i didnt know ruby had lines o_O
<jhass> [k-: oh the books we can fill with what both of us don't know
ruurd has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
sdothum has joined #ruby
majjoha has joined #ruby
<nanoz> jhass did u go thru the link
<jhass> some time ago
<nanoz> it doesnt work at all it gives error
<jhass> didn't find anything confusing back then
<nanoz> > poem.chars­.to_a
<nanoz> =>
<nanoz> #<NoMethodError: undefined method `chars' for #<String:0x425fdfa5>>
<jhass> in your local Ruby?
<jhass> what's your ruby -v?
<[k-> you have a weird character at the end of chars
quimrstorres has quit [Remote host closed the connection]
<jhass> sounds like it's beyond ancient
devbug_ has quit [Read error: Connection reset by peer]
<nanoz> in tryruby.org
<[k-> chars<weirdchar>.to_a
<jhass> ah right
<jhass> well, tryruby is all fake actually
<[k-> you know, like this ㊗
majjoha has quit [Client Quit]
<jhass> stick to the examples and get a local irb or pry to experiment
<[k-> >> "chars�".length
<ruboto> [k- # => 6 (https://eval.in/417374)
zenguy_pc has quit [Ping timeout: 246 seconds]
<nanoz> jhass really its fake ?
kachi8 has joined #ruby
<jhass> pretty much from what I can tell
accacin has joined #ruby
<[k-> chars is actually only 5 letters :s
last_staff has quit [Quit: last_staff]
gwendall has joined #ruby
zenguy_pc has joined #ruby
<nanoz> [k-, what made u to shift from java to ruby ?
<[k-> i forgot
Guest65 has joined #ruby
einarj has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 244 seconds]
abdoudjanifresh has quit [Ping timeout: 244 seconds]
<[k-> java is horrible anyway
abdoudjanifresh has joined #ruby
<nanoz> its no 1 language :/
yeticry has joined #ruby
<jhass> nanoz: not because of its beauty or so
<jhass> nanoz: Sun just did a good job to sell it to management
<[k-> javascript gained popularity because it had java in its name
<nanoz> nope! js is really cool
<[k-> we should call ruby JavaX
<jhass> and now you have a huge ecosystem and many applications that need continued maintenance
<jhass> fueling the need for new java devs
<[k-> nanoz: that is really true.
<wasamasa> [k-: there is a javax package
<[k-> oh,
<[k-> XJava?
<wasamasa> for mail and whatnot
<jhass> nanoz: https://www.youtube.com/watch?v=83_rC1FesOI for some history on JS
<[k-> Java++
accacin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gwendall has quit [Ping timeout: 256 seconds]
<[k-> Java9000
<[k-> its over 9000!
<wasamasa> jruby did have a 9000 release?
<jhass> well, 9.0.0
skydiver has joined #ruby
quimrstorres has joined #ruby
bruno- has joined #ruby
j4cknewt has quit [Remote host closed the connection]
khebbie has quit [Remote host closed the connection]
j4cknewt has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
last_staff has joined #ruby
VeganGreg has quit [Ping timeout: 240 seconds]
skydiver has quit [Ping timeout: 250 seconds]
iateadonut has joined #ruby
lapide_viridi has joined #ruby
quimrstorres has quit [Remote host closed the connection]
timonv has joined #ruby
lapide_viridi has quit [Remote host closed the connection]
VeganGreg has joined #ruby
tkuchiki has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
shock_one has quit [Remote host closed the connection]
spacemud has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
banister has joined #ruby
FernandoBasso has joined #ruby
bartj3 has joined #ruby
ndrei has joined #ruby
sevenseacat has joined #ruby
davedev24 has joined #ruby
zenguy_pc has joined #ruby
bartj3 has quit [Client Quit]
radgeRayden has quit [Ping timeout: 244 seconds]
bartj3 has joined #ruby
kirun has joined #ruby
nfk has joined #ruby
quimrstorres has joined #ruby
allcentury has joined #ruby
bartj3 has quit [Client Quit]
bronson has joined #ruby
devoldmx has joined #ruby
shock_one has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
gwendall has joined #ruby
charliesome has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
banister has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
bartj3 has joined #ruby
bartj3 has quit [Client Quit]
quimrstorres has joined #ruby
sdothum has quit [Ping timeout: 264 seconds]
DifferentLambda is now known as rhg135
pawnbox_ has joined #ruby
bartj3 has joined #ruby
bartj3 has quit [Remote host closed the connection]
roolo_ has quit [Quit: Leaving...]
roolo has joined #ruby
robh71 has joined #ruby
shock_one has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
quimrstorres has quit [Remote host closed the connection]
bartj3 has joined #ruby
quimrstorres has joined #ruby
bartj3 has quit [Client Quit]
bartj3 has joined #ruby
bartj3 has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
quimrstorres has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
AlphaAtom has quit [Read error: No route to host]
lxsameer_ has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
bartj3 has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
kachi8 has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
sameerynho has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
lxsameer_ has quit [Ping timeout: 264 seconds]
einarj has quit [Ping timeout: 244 seconds]
BloodyHistory has joined #ruby
tkuchiki has joined #ruby
quimrstorres has joined #ruby
BloodyHistory has quit [Client Quit]
peteykun has joined #ruby
skydiver has joined #ruby
SCHAAP137 has joined #ruby
yashinbasement has quit [Quit: Leaving]
quimrstorres has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Read error: Connection reset by peer]
Kabadoo has quit [Ping timeout: 240 seconds]
Iskarlar has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
Kabadoo has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
frozen3 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Trynemjoel has quit [Quit: Quitting]
oo_ has joined #ruby
hj2007 has joined #ruby
ruurd has joined #ruby
redondos_ has quit [Changing host]
redondos_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redondos_ is now known as redondos
Kabadoo has quit [Read error: Connection timed out]
Kabadoo has joined #ruby
charliesome has joined #ruby
last_staff has quit [Quit: Leaving]
last_staff has joined #ruby
charliesome has quit [Client Quit]
last_staff has quit [Client Quit]
millerti has joined #ruby
millerti has quit [Client Quit]
Guest24 has quit [Quit: Coyote finally caught me]
millerti has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
workmad3 has joined #ruby
Oka has quit []
User458764 has joined #ruby
christiandsg has joined #ruby
Feyn has quit [Quit: Leaving]
FernandoBasso has quit [Quit: May the force be with you.]
workmad3 has quit [Ping timeout: 250 seconds]
FernandoBasso has joined #ruby
quimrstorres has joined #ruby
Avonis has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
psy_ has quit [Quit: Leaving]
psy_ has joined #ruby
kachi8 has joined #ruby
belteshazzar has joined #ruby
VeganGreg has quit [Quit: WeeChat 1.2]
DoubleMalt has quit [Remote host closed the connection]
astrobunny has joined #ruby
DoubleMalt has joined #ruby
cornerma1 has joined #ruby
astrobunny has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
last_staff has joined #ruby
dorei has joined #ruby
last_staff has quit [Max SendQ exceeded]
quimrstorres has quit [Remote host closed the connection]
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
DLSteve has joined #ruby
aspiers has joined #ruby
shock_one has joined #ruby
quimrstorres has joined #ruby
iateadonut has quit [Quit: Leaving.]
charliesome has joined #ruby
quimrstorres has quit [Remote host closed the connection]
astrobunny has joined #ruby
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
lannonbr has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sudarshan has joined #ruby
charliesome has joined #ruby
frozen3 has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
quimrstorres has joined #ruby
astrobunny has quit [Remote host closed the connection]
skydiver has joined #ruby
frozen3 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
ledestin has joined #ruby
rbennacer has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
quimrstorres has joined #ruby
last_staff has quit [Max SendQ exceeded]
shock_one has quit [Remote host closed the connection]
houhoulis has joined #ruby
rbennacer has joined #ruby
sinkensabe has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
yh has quit [Quit: leaving]
Rollabunna has joined #ruby
fantasticsid has joined #ruby
phutchins1 has joined #ruby
Iskarlar has joined #ruby
alfajor has joined #ruby
chipotle has joined #ruby
last_staff has joined #ruby
alfajor is now known as Kalov
Kalov is now known as Kalov__
last_staff has quit [Max SendQ exceeded]
banister has joined #ruby
Kalov__ has quit [Client Quit]
tvw has quit []
quimrstorres has quit [Remote host closed the connection]
startupality has joined #ruby
banister has quit [Client Quit]
claw has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
Narzew has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
Axy has quit [Read error: Connection reset by peer]
claw has joined #ruby
fantasti` has joined #ruby
psayian has joined #ruby
fantasticsid has quit [Read error: Connection reset by peer]
<psayian> Is there a ruby version of shellcheck.net? Also, I am doing the ruby training in code academy how well does that prepare someone who wants to make a career out of ruby?
Mia has joined #ruby
kappy has quit [Remote host closed the connection]
<al2o3-cr> psayian: eval.in
stryek has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
last_staff has joined #ruby
<psayian> Got it thanks al2o3-cr . It took me a second to realize what that was though.
<[k-> psayian: you should get a book
quimrstorres has joined #ruby
last_staff has quit [Max SendQ exceeded]
<psayian> Yes, I was recommended the well grounded rubyist.
<psayian> [k-: I will get that one when my paycheck comes in.
sphex_ has quit [Ping timeout: 245 seconds]
christiandsg has joined #ruby
peteykun has quit [Quit: Leaving]
AndyBotwin has joined #ruby
devoldmx has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<psayian> [k-: Do you recommend thsi book as well?
<[k-> i have not read any books :s
quimrstorres has quit [Remote host closed the connection]
kappy has joined #ruby
<psayian> [k-: So how did you learn?
<[k-> i really would advise you to read a bool
<[k-> book*
<psayian> [k-: Understood, but how did you learn?
robh71 has joined #ruby
<[k-> stackoverflow, bits and pieces from the internet
<[k-> "on demand"
<[k-> and codewars.com
devoldmx has quit [Ping timeout: 244 seconds]
quimrstorres has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<nanoz> what is codewars ?
<[k-> the link is provided for your convenience
lannonbr has joined #ruby
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
kachi8 has quit [Ping timeout: 252 seconds]
ejnahc_ has quit [Remote host closed the connection]
ejnahc has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
fantasti` has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
sphex has joined #ruby
scripore has joined #ruby
thmzlt has joined #ruby
dopie has joined #ruby
<al2o3-cr> codewars is pretty cool (increase your kata) :)
scripore has quit [Client Quit]
Coldblackice has quit [Ping timeout: 244 seconds]
nklv has joined #ruby
sevenseacat has quit [Quit: .]
kachi8 has joined #ruby
scripore has joined #ruby
allcentury has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
quimrstorres has joined #ruby
banister has joined #ruby
rbennacer has joined #ruby
<[spoiler]> I never heard of codewars before, but it seems cool!
jeadr has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
jeadr has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
saddad has joined #ruby
AlphaAtom has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
yarden_ has quit [Quit: Leaving]
startupality has joined #ruby
rbennacer has joined #ruby
siempref_ has joined #ruby
da3mian has quit [Quit: Leaving]
VeganGreg has joined #ruby
siemprefresco has quit [Ping timeout: 264 seconds]
pawnbox_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
VeganGreg has quit [Read error: Connection reset by peer]
Rollabunna has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
Rollabunna has joined #ruby
quimrstorres has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
MyMind has quit [Ping timeout: 252 seconds]
snowkidind has joined #ruby
tmtwd has joined #ruby
MyMind has joined #ruby
sepp2k has joined #ruby
ascarter has joined #ruby
ruurd has joined #ruby
ruurd has quit [Client Quit]
MrButh has joined #ruby
mhib has joined #ruby
_socialjackie has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
tkuchiki has joined #ruby
_socialjackie has quit [Client Quit]
Rollabunna has quit [Ping timeout: 260 seconds]
sarkyniin has joined #ruby
j4cknewt has joined #ruby
Kalov has joined #ruby
robh71 has quit [Quit: Textual IRC Client: www.textualapp.com]
dEPy has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
Rollabunna has joined #ruby
startupality has quit [Quit: startupality]
j4cknewt has quit [Ping timeout: 264 seconds]
belteshazzar has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
gard has joined #ruby
christiandsg has quit [Remote host closed the connection]
Narzew has quit [Quit: Leaving]
hashrocket has joined #ruby
DLSteve has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
havenwood has joined #ruby
maletor has joined #ruby
<snowkidind> are there syntax rules as related to empty spaces? I just overcame a bug where i needed to remove white spaces??
Kabadoo has quit [Quit: Leaving]
<Mon_Ouie> ?code snowkidind
<ruboto> snowkidind, We can't help you without your code, please post it to https://gist.github.com
<snowkidind> i already fized it
<jhass> still, show what the error was and what produced it
<snowkidind> it was a yml file
Kalov has quit []
scripore has joined #ruby
<jhass> ah well, yml is whitespace sensitive, yes
<snowkidind> four blank spaces before a line instead of two
<jhass> YAML is not Ruby though
einarj has joined #ruby
<snowkidind> is that some rails thing?
<snowkidind> just learning it
diegoviola has joined #ruby
<Mon_Ouie> No, YAML is a language to lay out data, often used for e.g. configuration files
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has quit [Ping timeout: 244 seconds]
houhoulis has quit []
VeganGreg has joined #ruby
<nanoz> weird ruby instead of call it as ruby!
<snowkidind> is any language besides ruby actually adopting it?
chouhoulis has joined #ruby
<jhass> frameworks rather, but yeah
<jhass> it's really just a markup language, like XML or JSON
<MrButh> I want to setup a Ruby site to monitor log files on other servers live as I watch, what would a good method of doing that be?
<MrButh> I was going to use ssh and tail -f then socket to send to the client
<snowkidind> theres a command for that
<snowkidind> i think thats it
einarj has quit [Ping timeout: 260 seconds]
<MrButh> but someone said that wouldn't be the best idea
fstr has joined #ruby
<snowkidind> just pipe it into grep
<snowkidind> so that all you get are the ones you want
rbennacer has quit [Remote host closed the connection]
<fstr> Is there any way I can get the base of a Fixnum? For example 0123 -> base 8, 0b123 base 2
<MrButh> yeah, I think it would work with the net-ssh and a ruby socket.io setup, I'm just wondering if maybe there is a better way that I do not know
quimrstorres has quit [Remote host closed the connection]
<MrButh> perhaps instead of ssh'ing to the servers, have the servers send updates to the central server whenever they get log updates?
roolo has quit [Remote host closed the connection]
rbennacer has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
<Mon_Ouie> fstr: You're confusing representation with value. 3 and 0b11 are the same objects. Those are just two way of writing the same thing.
<snowkidind> thanks for clearing my YAML question up guys
chouhoulis has joined #ruby
roolo has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
quimrsto_ has joined #ruby
saddad has quit [Ping timeout: 264 seconds]
<fstr> What I basically want is, to output my Fixnum as a String. It's provided from a config file by users, but then interpreted by ruby as Fixnum. Users provide the file permissions, which can be 0666 or 666.
<fstr> So without knowing the base, I can't use 0666.to_s(8) reliably, if someone provides 666
<fstr> :/
<snowkidind> So is Haml just a modern day copy of Yaml
<[spoiler]> snowkidind: wat
<[spoiler]> snowkidind: not at all
<snowkidind> diff Haml YAML
<snowkidind> plz
Rickmasta has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
<snowkidind> oh Haml is just pretty html
<snowkidind> nevermind
<[spoiler]> Hamls stands for "HTML abstraction markup language" while YAML stands for "YAML Ain't Another Markup Language"
<Mon_Ouie> fstr: I don't know what you're trying to do. Can you show some example of inputs and expected outputs?
<snowkidind> sorry for typing before i think
<[spoiler]> (YAML is a recursive acronym)
<nanoz> method contains question mark | exclamation mark what is going onnnnn
<snowkidind> but Haml still has whitespace rules like YAML no?
<[spoiler]> nanoz: it's just part of the method name
<[spoiler]> Method names in Ruby can contain =, ? and !
<[spoiler]> (and maybe I am forgetting something)
<[spoiler]> snowkidind: what do you mean?
<[spoiler]> oh, meaningful indentation? Yes
<fstr> I'm using a puppet module. Users provide a config setting (file_mode) from a YAML file. Since there's no requirement in YAML to put 0666 in quotes, ruby will interpret it as a Fixnum. So in later processing when the Fixnum is written to the target file, it's not the file_mode the user expected.
<[spoiler]> fstr: to_s?
<Mon_Ouie> Usually methods ending with a question mark are predicates (things that return either true or false) and those ending with an exclamation mark are variants of a method of the same name without the exclamation mark
<fstr> Because 0666 is actually 438
saddad has joined #ruby
<snowkidind> my opinion on this is jagged
<[spoiler]> oh because octal
<fstr> spoiler: to_s would work fine, if I would know the base of the Fixnum
<[spoiler]> fstr: hmm use 438.to_s 8
oo_ has quit [Remote host closed the connection]
<[spoiler]> oh yeah
<[spoiler]> true :/
<snowkidind> its like when assembly code was there the spaces actually meant something. then oo lang came around and people could apply their own code writing style. now i have to conform to spacing rules?
<snowkidind> seems archaic
<[spoiler]> is there no way to get the string value? I can't remember now, sorry
jeadr has quit [Remote host closed the connection]
<fstr> Easiest solution would be to force the users to use one format, or put the config setting in quotes. But it would be more elegeant if I could provide a YAML conform solution and not force users to use either 0666 or 666 exclusively
thmzlt has quit [Quit: leaving]
<Mon_Ouie> Again, a fixnum has no base. A representation as a string of a number has a base. You can check the contents of the string that the user provided for its base if you want to use the same one.
<[spoiler]> snowkidind: python and coffeescript have MWS (meaningful whitespace/indentations), too. It's a choice of language design
<Mon_Ouie> snowkidind: What kind of assembler has meaningful indentation and what does OO have to do with any of that?
<[spoiler]> If you don't like HAML, you can use ERB (I myself am not a fan of HAML for the very reason of MWS)
<snowkidind> fair enough
<[spoiler]> snowkidind: actually, that statement is not completely true. I sometimes prefer Haml over ERB. Depends on what I want to do, I suppose.
<snowkidind> my query is in understanding the motivation behind it’s application in ruby, a language that is designed to be simple
jeadr has joined #ruby
darkf has quit [Quit: Leaving]
<snowkidind> like… whitespace bugs are a bitch
<[spoiler]> snowkidind: it's motivation is to be DRY-er
<[spoiler]> its*
AndyBotwin has quit [Ping timeout: 252 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
<Mon_Ouie> Missing closing parenthesis and unindented code blocks are just as problematic
<snowkidind> at least you can see them
allcentury has joined #ruby
christiandsg has joined #ruby
gard has quit [Ping timeout: 252 seconds]
<[k-> you can see whitespace too
<fstr> Mon_Ouie: Thanks, but that's probably somewhere in the Puppet code. At the point I'm getting the variables, it's already a Fixnum
<snowkidind> i guess that is why all the ruby people are using sublime text
<snowkidind> i do a bunch of unicode stuff and sublime text doesnt render my stuff. But i found textMate to give me what i want
<shevy> I don't
<snowkidind> use bbedit mostly though
<snowkidind> [k: yes but its a distraction
juanca_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
gard has joined #ruby
tkuchiki has joined #ruby
kachi8 has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
<MrButh> for Ruby on Rails with sockets would you guys recommend anything? I heard Faye was good, anyone who can confirm that?
<MrButh> er Ruby with sockets*
<MrButh> Rails doesn't matter
<[k-> > whitespace a distraction
<[k-> do you even know what you are saying
pawnbox has joined #ruby
chabil has joined #ruby
<TomyLobo> >> require 'date'; DateTime.parse('2015-07-29T10:25:51.092+0000').to_time.to_i # This seems overly complicated, is there an easier way
<ruboto> TomyLobo # => 1438165551 (https://eval.in/417404)
<snowkidind> nope
<TomyLobo> blasted
skydiver has quit [Ping timeout: 250 seconds]
<jhass> >> require "time"; Time.parse("2015-07-29T10:25:51.092+0000").to_i
<ruboto> jhass # => 1438165551 (https://eval.in/417405)
<snowkidind> that was for mr [k Tomy
<TomyLobo> oh
<TomyLobo> >> require 'date'; Date.parse('2015-07-29T10:25:51.092+0000').to_time.to_i # oh look there's a 3rd class for the same purpose
<ruboto> TomyLobo # => 1438128000 (https://eval.in/417406)
eam has quit [Ping timeout: 265 seconds]
<al2o3-cr> that doesn't give same result
bweston92 has joined #ruby
<TomyLobo> yeah, cause it doesnt have a time component i guess
ascarter has joined #ruby
<TomyLobo> so why does Time have a date component then?
<jhass> yeah
timanema has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
<jhass> >> require "datetime"; [Time.now + 1, DateTime.now + 1]
<ruboto> jhass # => cannot load such file -- datetime (LoadError) ...check link for more (https://eval.in/417407)
<jhass> meh
houhoulis has joined #ruby
<jhass> >> require "date"; [Time.now + 1, DateTime.now + 1]
<ruboto> jhass # => [2015-08-16 15:57:44 +0000, #<DateTime: 2015-08-17T15:57:43+00:00 ((2457252j,57463s,98207711n),+0s,2 ...check link for more (https://eval.in/417408)
Spami has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 244 seconds]
<[spoiler]> snowkidind: Please try not to make such assumptions (that [k- is a dude). I'm not telling you off, but if he weren't a dude, you could've offended someone :P
DexterLB has joined #ruby
sudarshan has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
hmsimha_ has joined #ruby
<snowkidind> lol
<snowkidind> really? i will plead the trump on that
frozen3 has quit [Remote host closed the connection]
solars has joined #ruby
VeganGreg has quit [Ping timeout: 240 seconds]
<[k-> it is rude to drop the - off my name
<[spoiler]> snowkidind: How'd you feel if I started referring to you as miss? :P
houhoulis has quit []
<snowkidind> go ahead, within this context you will look like an ass
skydiver has joined #ruby
<[k-> now, now, neutral language please
<nanoz> i dont like ruby its hard !
<snowkidind> haha
frozen3 has joined #ruby
houhoulis has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<shevy> nanoz in most cases you can simplify stuff
<[k-> nanoz: you learnt java right?
lannonbr has joined #ruby
BillSussman has joined #ruby
<[spoiler]> [k- we don't speak the J-word here.
soulcake has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
<[k-> .__.
<shevy> jruby!
<shevy> ruby is part of the j family
<[k-> is this censorship?!
gwendall has quit [Remote host closed the connection]
<jhass> !fact mk censorship https://xkcd.com/1357
<ruboto> jhass, I will remember that censorship is https://xkcd.com/1357
<nanoz> it took many years [k-
<[spoiler]> [k-, no, it is not. It is for your own good
<MrButh> anyone here used Faye before?
frozen3 has quit [Ping timeout: 256 seconds]
RobertBirnie has joined #ruby
<al2o3-cr> !censorship
<al2o3-cr> ?censorship
<[spoiler]> jhass: good one :P
<havenwood> MrButh: Having Faye trouble?
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
cashnguns has joined #ruby
<[k-> [spoiler] so you shown me the door? :o!
<[spoiler]> [k- nonsense! I love you, just don't use the J-word. :P
<nanoz> [k-, some said you can learn ruby in days ... After seeing the api doc >> HELL NO!
<bradland> nanoz: the problem is having "learned" something is a subjective evaluation
<[k-> shevy: Oracle nanoz: One must be patient when learning, or he shall not receive enlightenment
<bradland> it's not black & white
<[spoiler]> nanoz: you can learn the very basics of it, you can't learn anything properly in a few days (not even hangul, even though people claim it is so)
<bradland> i've been writing ruby for +10 years, and i haven't come close to learning it 100%
<[k-> bradland: you will never reach that goal :3
<[k-> Ruby is always changing!
<bradland> [k-: recognized that a long time ago :)
<bradland> and i'm ok wit hit
<bradland> *with it
houhoulis has quit []
yalue has joined #ruby
<havenwood> [k-: At least there's a ChangeLog to scan for changes! https://github.com/ruby/ruby/blob/trunk/ChangeLog
gard has quit [Ping timeout: 256 seconds]
<[k-> but where would we find the perlisms of Ruby
<skydiver> Ruby is always changing! :D
<bradland> [k-: everywhere! *pfffh*
<nanoz> atleast i need some fun lrarning this language
<[spoiler]> Not knowing something 100% is what makes it exciting; if you knew it 100% it'd become boring
<havenwood> nanoz: Have you already gone through?: https://github.com/ruby/ruby/blob/trunk/ChangeLog
<havenwood> nanoz: Sry, I meant: http://tryruby.org/levels/1/challenges/0
<havenwood> The former is so much fun!
VeganGreg has joined #ruby
<nanoz> k i made poem = "Hello ruby!" than did poem.downcase! didnt work
<havenwood> When I think of fun, I think of ChangeLogs.
<havenwood> >> poem = "Hello ruby!"; poem.downcase
<ruboto> havenwood # => "hello ruby!" (https://eval.in/417410)
<havenwood> nanoz: Give it another try.
<nanoz> poem = "Hello ruby!"; poem.downcase!
<jhass> ?pry nanoz
<ruboto> nanoz, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<havenwood> nanoz: => "hello ruby!"
startupality has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
<havenwood> nanoz: Install Ruby then install Pry: gem install pry pry-doc
<havenwood> nanoz: Then run: pry
hanmac has joined #ruby
<nanoz> >> poem = "Hello ruby!"; poem.downcase!
<ruboto> nanoz # => "hello ruby!" (https://eval.in/417412)
dopie has joined #ruby
<havenwood> nanoz: You can run that locally with Pry, and much more. It's a good way to explore the language.
<nanoz> oh! ruboto auto creates everything it needed nice :P
pawnbox has quit [Remote host closed the connection]
<nanoz> any autocomplete exist here ?
<[k-> no
<jhass> nanoz: pry has
Cust0sLim3n has quit [Ping timeout: 245 seconds]
solars has quit [Ping timeout: 264 seconds]
<nanoz> i guess every language has IDE like eclipse
<nanoz> sud start using IDE ?
<jhass> most Ruby devs don't use an IDE, just a nice text editor and a shell
<havenwood> nanoz: What OS?
<nanoz> windows
quimrsto_ has quit [Remote host closed the connection]
<[spoiler]> jhass: I wonder why that is actually (I noticed myself). I can't *stand* IDEs, but I doubt Ruby influenced it
<havenwood> nanoz: Are you using chocolatey?
<wasamasa> [spoiler]: it's because IDEs are only necessary for languages like java
<jhass> [spoiler]: not enough customization? too many features you don't need packed into the interface?
<havenwood> nanoz: https://chocolatey.org
<Mon_Ouie> Probably just the fact that it's a dynamic language with little boilerplate code
<Mon_Ouie> (former makes such tools harder to write, latter makes them less necessary)
<[spoiler]> wasamasa: I know loads of C and PHP developers who use IDEs at work. I never needed/wanted an IDE while writing C, Ruby or C++
<havenwood> nanoz: Install chocolatey so you have a package manager to install vim, emacs or Atom.
<[spoiler]> (and I don't write PHP, so I can't say if I'd need one there)
arup_r has quit [Ping timeout: 265 seconds]
<shevy> all the IDEs I used so far had the nasty habit of jumping into my way
<[spoiler]> shevy: that's how I feel, too
snowkidind has left #ruby [#ruby]
<[spoiler]> jhass: yeah so many features you trip over them
<[spoiler]> Mon_Ouie: are you saying Ruby is too amazing for IDEs? I'll go with that.
houhoulis has joined #ruby
<[k-> hangman marathon in ot
<[k-> come and join!
chinmay_dd has joined #ruby
Cust0sLim3n has joined #ruby
einarj has joined #ruby
arup_r has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
rbennacer has quit [Remote host closed the connection]
eminencehc has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
<hanmac> [spoiler]: i use an IDE sometimes for my bindings i write in C/C++ for Ruby ... but only its getting a bit to big for a normal editor when i do big changes
psy_ has joined #ruby
workmad3 has joined #ruby
fstr has quit [Quit: This computer has gone to sleep]
quimrstorres has joined #ruby
christiandsg has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 260 seconds]
survili has joined #ruby
mleung has joined #ruby
dseitz has joined #ruby
<survili> Hi all, I don't understand this line "number = Integer(some_str)" . In this case, Integer is a method with non idiomatic ruby name ? To me it makes sense Integer.new(some_str) or integer(some_str). What am I missing here ?
workmad3 has quit [Ping timeout: 265 seconds]
<apeiros> survili: it's indeed a method
<[k-> &ri Kernel#Integer
<apeiros> Kernel#Integer
<nanoz> i'm also learning linux ill prefer command line
<[spoiler]> survili: the "namespace" for constants and methods is not the same
<survili> [spoiler]: can you explain what you mean by that ?
<survili> apeiros: is it non idiomatic ? I mean, aren't method names supposed to start with small letter ?
<[spoiler]> survili: it means that you can have a class with the same name as a method, like apeiros linked above
symm- has joined #ruby
<[spoiler]> survili: it is uncommon, yes
<apeiros> actually [k- linked :)
psy_ has quit [Ping timeout: 260 seconds]
<[k-> k ninjad aperios
<[spoiler]> [k- oh sorry :)
<aperios> [k-: did you?
<apeiros> survili: it is uncommon. there are some core methods like that. see Kernel. I recall Kernel#String(), #Float() and #Integer()
tkuchiki has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
<[k-> according to my client
mleung has quit [Ping timeout: 264 seconds]
<[k-> you! you made my tab complete wrong :(
chinmay_dd has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
<survili> apeiros, [spoiler] - thanks a lot guys! RubyMine wasn't smart enough to find that reference in Kernel, instead it opened class Integer..
<apeiros> ?guys survili
<ruboto> survili, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<j_mcnally> hey all
<apeiros> hi j_mcnally
<j_mcnally> had a crazy idea wanted to see what everyone thought
<j_mcnally> would it be possible to run Tokaido and Rails on a bare metal docker container
<j_mcnally> the way go apps can
* apeiros has no idea on that (tokaido+rails on docker)
michael_mbp has joined #ruby
<j_mcnally> might play around with it
<j_mcnally> the major issue i see is support for things like nokogiri that would need dynamically linked libxslt et
<[spoiler]> I don't even know what Tokaido i
<apeiros> is tokaido functioning? I remember an announcement ages ago and then a long time of nothing…
circ-user-UJKJI has joined #ruby
<skydiver> It seems Tokaido is a city in Japan
<j_mcnally> ahh i think is might be osx only
<j_mcnally> o well
<apeiros> skydiver: tokaido.app
<j_mcnally> just a crazy thought like i said
<[spoiler]> Haha
<nanoz> >>poem="Hello world. \n Ruby friends here!";poem.delete!
tkuchiki has joined #ruby
<survili> apeiros, ruboto : oops, didn't intend... y'all sounds good :)
<nanoz> >>poem="Hello world. \n Ruby friends here!";poem.delete!
<ruboto> nanoz # => wrong number of arguments (0 for 1+) (ArgumentError) ...check link for more (https://eval.in/417429)
<Mon_Ouie> ?experiment nanoz
<ruboto> nanoz, Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<[k-> o_O, 1+
<nanoz> its not working
<[k-> i never seen that before
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<[k-> all i ever saw was 0..2 or something
survili has quit [Quit: Page closed]
circ-user-UJKJI is now known as mbboo
<havenwood> j_mcnally: Tokaido ships with a precompiled nokogiri afaik, but yeah OS X.
<jhass> nanoz: it's saying to pass one argument or more, you pass none
casadei_ has joined #ruby
<[spoiler]> [k- it uses 1+ when there's a splat
tkuchiki has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nanoz> i dont understand what should i pass
sarkyniin has joined #ruby
<havenwood> j_mcnally: How about a Traveling Ruby?: https://phusion.github.io/traveling-ruby/
timanema has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
jeadr has quit [Remote host closed the connection]
<jhass> nanoz: why do you call .delete! ?
<Mon_Ouie> Strings containing the characters you want to remove from your input
<nanoz> to make it empty jhass
<nanoz> so when i type print poem next time it would be empty
<Mon_Ouie> That's called String#clear
<nanoz> why not delete ?
<[spoiler]> nanoz: delete! deletes characters
<jhass> you can also just poem = ""
<shevy> >> "abcdefdaaa".delete 'ab'
<ruboto> shevy # => "cdefd" (https://eval.in/417430)
<nanoz> k
<shevy> nanoz because you'd have to match to each character
<nanoz> how about regexp in this ?
jeadr has joined #ruby
<shevy> regexp will be slower
<[spoiler]> nanoz: regexp won't work I think
<nanoz> >>poem="Hello world. \n Ruby friends here!";poem.delete!("*")
<[spoiler]> You can use use ranges, though
<ruboto> nanoz # => nil (https://eval.in/417431)
<[spoiler]> and negation
<[spoiler]> (check String#count or something like that)
<jhass> you can totally .gsub(/.*/, '') but that's just showing you don't know String#clear
<[spoiler]> there's an explanation on how it works
<nanoz> >>poem="Hello world. \n Ruby friends here!";poem.delete!("*");poem.length
<ruboto> nanoz # => 33 (https://eval.in/417432)
<[k-> >> "abc" =~ /$/ # Ox0dea
<shevy> :P
<ruboto> [k- # => 3 (https://eval.in/417433)
<havenwood> nanoz: Have you installed Pry yet?
<havenwood> nanoz: Do it! :D
<jhass> nanoz: please, I don't want to mute you, stop using ruboto for experiments
<nanoz> not yet havenwood
<havenwood> nanoz: Make haste!
<Mon_Ouie> Well, some_string.gsub(/.*/, '') is just a long winded way of doing "", clear is different in that it changes the contents of an existing object
<nanoz> can i pm rubuto ? jhass
rbennacer has joined #ruby
<[spoiler]> Mon_Ouie: so would gsub! :P
<[spoiler]> Mon_Ouie: but I agree that clear would be better
<jhass> nanoz: you can use http://eval.in directly, but it'd be better to just get a local pry
<Mon_Ouie> #gsub! would, #gsub wouldn't
<[k-> &ri String#replace
<[spoiler]> Mon_Ouie: I meant gsub with an exclamation mark
<Mon_Ouie> Now I don't know which one you mean
<[spoiler]> Mon_Ouie: it probably looked like punctuation
<jhass> I hate that interface even more than http://eval.in's
<[spoiler]> I see why it was confusing
<Mon_Ouie> I thought you meant the method called 'String#gsub!', now I don't know what you meant
<[spoiler]> Mon_Ouie: I did mean that method
* [spoiler] is confused. :(
allcentury has joined #ruby
Iskarlar has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FernandoBasso has quit [Quit: May the force be with you.]
sarkyniin has quit [Quit: Quit]
<j_mcnally> havenwood: checking
sarkyniin has joined #ruby
<[spoiler]> I hate designing stuff *sigh* I am artistically blind, probably
<wasamasa> just keep it minimal
<[spoiler]> wasamasa: I am!
bronson has joined #ruby
<j_mcnally> so the jvm can run with just busybox
casadei_ has quit [Remote host closed the connection]
<j_mcnally> so jruby might be a solution to avoid an entire os container too
<j_mcnally> now i have 2 problems
<j_mcnally> :p
raypulver has quit [Ping timeout: 245 seconds]
allcentury has quit [Ping timeout: 250 seconds]
<j_mcnally> thanks for the info guys going to give traveling ruby a shot
<jhass> ?guys j_mcnally
<ruboto> j_mcnally, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<havenwood> j_mcnally: Either JRuby or Traveling Ruby sound like good options to me!
<j_mcnally> o shit sorry
michaeldeol has joined #ruby
<j_mcnally> thank for the info everyone going to give traveling ruby a shot
raypulver has joined #ruby
frozen3 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<j_mcnally> good call jhass
<havenwood> j_mcnally: I'd be curious to hear how it goes. Good luck!
<j_mcnally> jhass: i honestly do it without thinking it was meant to be inclusive but i totally understand why its wrong
dr3w has joined #ruby
<jhass> no worries, just keep it in mind and all is good ;)
bronson has quit [Ping timeout: 244 seconds]
<arup_r> ->() came since 1.9?
gambl0re has joined #ruby
<jhass> yes
<havenwood> arup_r: The stabby lambda was introduced in 1.9.
<arup_r> ok
frozen3 has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
aredridel is now known as Aria
whiteline has quit [Quit: Leaving]
sdothum has joined #ruby
whiteline has joined #ruby
darkxploit has quit [Ping timeout: 255 seconds]
rgb-one has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<[spoiler]> wasamasa: Actually, most of the "guidelines" there hold true, except for the ~80 characters per line; it's closer to 130 - 140
<wasamasa> [spoiler]: if you're writing java maybe
<wasamasa> [spoiler]: feel free to open up a physical book and counting the characters per line
<[spoiler]> wasamasa: No I agree, it *is* too wide, but mostly because I didn't pay attention to the text. Hmm
<wasamasa> [spoiler]: you'll notice that it's even more narrow than that
<wasamasa> [spoiler]: a copy of Elements of Style is around 60 characters for example
timonv has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
calleerlandsson has joined #ruby
blue_deref has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
<[spoiler]> wasamasa: Interesting. It looked weird when I narrowed it to around ~80, but it looks better on ~70
Rollabunna has joined #ruby
dr3w has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
darkxploit has joined #ruby
Cache_Money has joined #ruby
AlphaAtom has joined #ruby
<wasamasa> [spoiler]: newspapers go even further and use many columns
<[spoiler]> wasamasa: I know, but I find that actually distracting.
<[spoiler]> + it wouldn't really work nicely for blog posts
Pupp3tm4st3r has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
dr3w has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
Avonis has left #ruby ["Leaving"]
juanca_ has quit []
MyMind has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
aspiers has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bhorn1|away is now known as bhorn1
blackmesa has joined #ruby
christiandsg has joined #ruby
christiandsg has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
towski_ has joined #ruby
marr has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
khebbie has joined #ruby
christiandsg has joined #ruby
gard has joined #ruby
youngbaks has joined #ruby
christiandsg has quit [Remote host closed the connection]
saddad has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
yardenbar has joined #ruby
kachi8 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gard has quit [Ping timeout: 245 seconds]
dr3w has quit [Ping timeout: 244 seconds]
lkba has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
allcentury has joined #ruby
rbennacer has joined #ruby
<dostoyevsky> Hey, when Ruby went from 1.8 to 1.9 I had to apply some changes to my native C extensions, mostly for strings, or unicode stuff... are there changes again with ruby 2, 21, 22 ?
josh4 has joined #ruby
vidbina has joined #ruby
<jhass> possibly, after all the ABI version changed with 2.0, 2.1 and 2.2
UtkarshRay has quit [Quit: Leaving]
n008f4g_ has joined #ruby
DLSteve has joined #ruby
pawnbox has joined #ruby
Iskarlar has joined #ruby
np0 has joined #ruby
devoldmx has joined #ruby
rbennacer has quit [Remote host closed the connection]
bhorn1 is now known as bhorn1|away
dr3w has joined #ruby
frozen3 has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
RobertBirnie has quit [Client Quit]
thugwaffle has joined #ruby
northfurr has joined #ruby
Yzguy has quit [Quit: Zzz...]
ashleyhi1dle is now known as ashleyhindle
devoldmx has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
<shevy> one has to keep on running and running and running https://en.wikipedia.org/wiki/Red_Queen_hypothesis
sinkensabe has quit [Remote host closed the connection]
<atmosx> hello
<atmosx> another local root exploit for osx, it's going great.
dEPy has quit [Quit: (null)]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
allcentury has joined #ruby
Me has joined #ruby
Me is now known as Guest81167
psy_ has joined #ruby
<shevy> come to linux man
VeganGreg has quit [Ping timeout: 240 seconds]
frozen3 has quit [Ping timeout: 265 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j5s7 has joined #ruby
codecop has joined #ruby
rgb-one has quit [Read error: Connection reset by peer]
chabil has quit [Ping timeout: 246 seconds]
<atmosx> shevy: hm, I might switch back at some point.
allcentury has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
j5s7 has quit [Client Quit]
hololeap has joined #ruby
segy has quit [Ping timeout: 260 seconds]
<shevy> \o/
phutchins1 has quit [Ping timeout: 250 seconds]
rubie has quit [Remote host closed the connection]
devoldmx has joined #ruby
rubie has joined #ruby
scottschecter has quit [Quit: Leaving]
spider-mario has joined #ruby
Azure|dc has joined #ruby
chouhoulis has quit []
lannonbr has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
NeverDie has joined #ruby
j_mcnall_ has joined #ruby
Azure has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
casadei_ has joined #ruby
j_mcnally has quit [Ping timeout: 260 seconds]
pocketprotector has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ramfjord has joined #ruby
allcentury has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
gwendall has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
eminencehc has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 244 seconds]
thugwaffle has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
gwendall has quit [Ping timeout: 252 seconds]
yqt has joined #ruby
startupality has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
chabil has joined #ruby
dr3w has quit [Ping timeout: 240 seconds]
pocketprotector has joined #ruby
swgillespie has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
segy has joined #ruby
timanema has joined #ruby
sdothum has joined #ruby
lkba has joined #ruby
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
segy has quit [Excess Flood]
segy has joined #ruby
flou has joined #ruby
khebbie has quit [Remote host closed the connection]
iateadonut has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
timanema has quit [Ping timeout: 252 seconds]
youngbaks has quit [Quit: WeeChat 1.2]
iateadonut has joined #ruby
timanema has joined #ruby
chabil has quit [Quit: WeeChat 1.2]
christiandsg has quit [Ping timeout: 265 seconds]
mbboo has quit [Ping timeout: 244 seconds]
lannonbr has joined #ruby
Zarthus_ has quit [Changing host]
Zarthus_ has joined #ruby
Zarthus_ is now known as Zarthus
quimrstorres has quit []
einarj has joined #ruby
towski_ has quit [Remote host closed the connection]
Limix has joined #ruby
Guest65 has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
christiandsg has joined #ruby
jeadr has quit [Remote host closed the connection]
last_staff has quit [Max SendQ exceeded]
rakm has joined #ruby
khebbie has joined #ruby
jeadr has joined #ruby
arup_r has joined #ruby
futilegames has joined #ruby
mhib has quit [Remote host closed the connection]
pyon has quit [Ping timeout: 260 seconds]
frozen3 has joined #ruby
FernandoBasso has joined #ruby
senayar has quit [Remote host closed the connection]
khebbie has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
gard has joined #ruby
frozen3 has quit [Ping timeout: 256 seconds]
Yzguy has quit [Quit: Zzz...]
nkts has joined #ruby
Yzguy has joined #ruby
[H]unt3r has joined #ruby
Guest81167 has quit [Ping timeout: 240 seconds]
Yzguy has quit [Client Quit]
flou has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
gard has quit [Remote host closed the connection]
mbboo has joined #ruby
Darkwater has joined #ruby
tvw has quit []
<Darkwater> I've got a module that's basically a container for things, should the name be plural or singular?
Yzguy has quit [Client Quit]
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<Darkwater> Service::IRC, Service::Telegram etc
<Darkwater> for a multi-protocol chat client
<jhass> and what does it contain?
<jhass> doesn't sound like containers at all?
<Darkwater> protocol-specific code
<Darkwater> it's about Service
timanema has quit [Ping timeout: 265 seconds]
<Darkwater> /Services
Yzguy has joined #ruby
<jhass> oh, gotcha
<jhass> I tend to Services actually
towski_ has joined #ruby
<jhass> Service would more be the base module/class
np0 has quit [Ping timeout: 252 seconds]
MrButh has quit [Ping timeout: 272 seconds]
<jhass> namespace for common code
<Darkwater> hm, makes sense
flou has joined #ruby
rubie has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
senayar has joined #ruby
senayar has joined #ruby
ni638629 has joined #ruby
ni638629 has left #ruby [#ruby]
futilegames has quit [Quit: futilegames]
np0 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
eminencehc has joined #ruby
<rbennacer> hey guys
<jhass> hey lady
veduardo has joined #ruby
<rbennacer> hwo would i refactor a very long conditional statement, ex: if a || a || a || a || v|| f
<rbennacer> jhass: :)
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<jhass> but probably extracting a bunch of methods
rippa has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yzguy has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
<ruboto> rbennacer, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/3503929600e2634e0881
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
rippa has joined #ruby
rubie has joined #ruby
kachi8 has quit [Ping timeout: 246 seconds]
futilegames has joined #ruby
flou has quit [Quit: Textual IRC Client: www.textualapp.com]
<rbennacer> jhass: are you saying i should myabe divide this into 3 methods , neighbors on my right, neighbors on my left and horizontal neighbors
Musashi007 has quit [Ping timeout: 250 seconds]
<jhass> prolly a lot more, let me tinker a bit
rubie has quit [Remote host closed the connection]
<rbennacer> oh ok
nanoz has quit [Read error: Connection reset by peer]
gfixler has joined #ruby
<rbennacer> it part of my conway game of life implementation :)
<gfixler> can to_i ever take two parameters?
Asher has quit [Quit: Leaving.]
<gfixler> the docs and online searches seem to say no
<rbennacer> why would you do that?
Kallis has joined #ruby
<bradland> gfixler: there is no global definition of to_i
gwendall has joined #ruby
Guest81167 has joined #ruby
<bradland> whether a method can take multiple arguments is entirely up to the method definition
Kallis has quit [Max SendQ exceeded]
<gfixler> bradland: monkey patching?
<Mon_Ouie> rbennacer: You can have two nested loops over the range (-1..1) and skip the (0, 0) pair with next
<bradland> gfixler: could be. what is the class of the receiver?
<bradland> WhatClass#to_i ?
Kallis has joined #ruby
<gfixler> bradland: not a rubyiest; not sure what a receiver is
<bradland> gfixler: no problem, we can walk you through it
<bradland> a reciver is the object that "receives" the method call
<gfixler> hue_offset = map(seed.to_i(14, 3), 0, 4095, 0, 359)
<bradland> in ruby, when you see something like seed.to_i(14,3)
<gfixler> bradland: that's the line
<bradland> seed is the receiver
<gfixler> ok
Asher has joined #ruby
veduardo has quit [Ping timeout: 264 seconds]
<bradland> so, you have to back up
<bradland> and ask yourself, what is "seed"?
<bradland> as in, what class is it?
<gfixler> tried that - couldn't tell :)
<gfixler> there's no types on anything! (I'm a haskeller)
<bradland> :)
<gfixler> def initialize(color, seed, creator = Color)
<Mon_Ouie> I mean… It's probably a GeoPattern::Seed…
<gfixler> ^ doesn't tell me
<bradland> yeah, this is where it gets to be a bit of a pain in the ass. you have to trace through the code
Rollabunna has quit [Remote host closed the connection]
<gfixler> yeah
Rollabun_ has joined #ruby
<bradland> you need to know what is being passed in through the call to BaseColorGenerator#transform(color, seed)
<gfixler> I imagine there's tooling that helps with this
<bradland> the way i do it, is i use a gem called pry
<bradland> i assume you have geo_pattern installed as a gem?
gwendall has quit [Ping timeout: 250 seconds]
towski_ has quit [Remote host closed the connection]
<gfixler> bradland: no, I'm actually just looking at this on github
Yzguy has quit [Quit: Zzz...]
towski_ has joined #ruby
Yzguy has joined #ruby
<gfixler> I tried cloning it down and loading it into irb, but couldn't figure it out
<bradland> i see
<gfixler> is it atypical to be able to do that?
<jhass> rbennacer: http://paste.mrzyx.de/pyrv6ycgx something into that direction I guess
<gfixler> are things always gem installed?
<bradland> gfixler: you'd be better off installing as a gem
<bradland> gems are packages of ruby code
<bradland> installing the gem will make sure all dependencies are resolved
<gfixler> bradland: are they easy to uninstall, too?
<rbennacer> jhass: woooooooow, this is so beautiful and elegant
towski_ has quit [Remote host closed the connection]
<bradland> depends
towski_ has joined #ruby
<bradland> if a gem has many dependencies, it can be a bit of a PITA
<bradland> and here we go down the ruby development rabbit hole :)
<gfixler> :(
<bradland> there's a lot of tooling that helps with this
<bradland> Bundler, for example
<gfixler> well, it's not like Python and Haskell have that all figured out, either
<bradland> Bundler is a dependency management tool
<gfixler> dependencies are just crazy, period
<bradland> yeah, it's all the same problems solved in the ruby way
<rbennacer> jhass: thank you, i really like this refactoring
christiandsg has quit [Remote host closed the connection]
<bradland> Bundler is pretty cool though, because you can tell it where to put stuff
<gfixler> bradland: anything like a sandbox?
<bradland> are you looking to get in to ruby dev, or just a tourist?
frozen3 has joined #ruby
Rollabun_ has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
<gfixler> haskell had "cabal (dependency tool) hell," and "solved" it with sandboxes, so everything installs locally
<bradland> yeah, there are similar tools in Ruby
<bradland> they offer varying degrees of sandboxing
<gfixler> Python got that, too - what was it called?
<Mon_Ouie> `gem install' lets you pass an --install-dir directory
<gfixler> env something
<bradland> virtualenv
<gfixler> Mon_Ouie: cool
<gfixler> bradland: yeah, that one
Yzguy has quit [Client Quit]
<bradland> as Mon_Ouie points out, it's possible to do it with the ruby dist tooling
<gfixler> easiest way to get along with everyone: put up fences and never see them
<bradland> but it requires more command line arguments
Yzguy has joined #ruby
towski__ has joined #ruby
<bradland> i have an opinion on it, but it's just my opinion
<bradland> if you want the most sandboxing capability, RVM is what you want
<bradland> it comes with functionality called gemsets
Rollabunna has joined #ruby
<bradland> you can use it to switch ruby versions, and create gemsets that can be easily destroyed/removed later if desired
<jhass> bundle install --path provides more isolation than rvm gemsets actually
<bradland> more isolation?
last_staff has joined #ruby
pyon has joined #ruby
<bradland> i'd say equivalent isolation
Kalov has joined #ruby
<bradland> rvm just abstracts it away in to the ~/.rvm directory structure, but i wouldn't say more
<jhass> you'll need bundler anyway to load correct versions and no other than the specified dependencies
<jhass> and with that you're less tempted to reuse
<bradland> i would definitely recommend bundler
<jhass> which makes it safer to just rm -rf stuff
towski_ has quit [Ping timeout: 240 seconds]
<bradland> without a doubt
icarus_ is now known as icarus
<bradland> gfixler: this kind of discussion is pretty dangerous in #ruby; it tends to devolve in to disucssions not dissimilar to text editor wars
Thomas-0725 has joined #ruby
<bradland> everything is possible with the dist ruby tooling
<bradland> there are tools that abstract that away in various ways as well
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<icarus> anything is possible...if you *believe*
<bradland> your choice to use them should be an informed one (in other words, don't take my word for it)
<gfixler> bradland: :)
Oka has joined #ruby
<bradland> *don't _just_ take my word for it
<gfixler> bradland: grepping all ruby files for transform, I see only 2 uses of it in the whole project
<gfixler> and they're the two in the class itself
<gfixler> so it's local
<bradland> to get back to your question
<gfixler> there's the def, and the call to it from the generate method right above it
michaeldeol has joined #ruby
episage has joined #ruby
<bradland> sees is most likely GeoPattern::Seed
<bradland> which defines to_i
Rollabunna has quit [Ping timeout: 240 seconds]
<bradland> and takes two arguments :)
pawnbox has quit [Remote host closed the connection]
<gfixler> cool
<Mon_Ouie> (did no one noticed the link I gave to that method before?)
<gfixler> bradland: when you said "no global def" did you mean none whatsoever, or is there at least a default?
<gfixler> Mon_Ouie: I missed it, sorry
<bradland> sry Mon_Ouie I was too busy pontificating :(
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has joined #ruby
<gfixler> Mon_Ouie: if you put my name in, it highlights the line
<gfixler> Mon_Ouie: bradland did that on the very next line, so it highlighted, and made me miss yours right above it
<bradland> attention theft
<bradland> doh
<gfixler> :)
<bradland> many classes in ruby define to_i
Cache_Money has quit [Quit: Cache_Money]
<gfixler> ah, polymorphic
jud has quit [Quit: Leaving]
<bradland> not precisely
<bradland> not in an OO context anyway
<gfixler> -ish
<bradland> ya
<bradland> ish
<bradland> many languages do this though
phutchins1 has joined #ruby
<gfixler> haskell does that with typeclasses, which are sort of like java interfaces
<bradland> when you call to_i, the next question is, *which* to_i method are you calling
AlexRussia has quit [Ping timeout: 265 seconds]
<bradland> it's difficult to compare with haskell, i'd imagine, because haskell is so heavily functional
<gfixler> if you want your type to work like a Num, you define the 7 methods for it, including fromInteger, which has type a -> Integer
<bradland> ruby methods are really just messages
<gfixler> where a is your type in that case
<bradland> in ruby, these two are equivalent
<havenwood> Or with modern RubyGems: gem install -g -i vendor/bundle
Rollabunna has joined #ruby
<havenwood> Or wherever you prefer to install.
<bradland> seed.to_i(4,13) and seed.send(:to_i, 4, 13)
veduardo has joined #ruby
<bradland> seed is the "receiver" of the method call "to_i"
<jhass> public_send
<bradland> derp
<gfixler> bradland: interesting
<bradland> ya
<gfixler> bradland: and that second version starts to feel pretty functional
<havenwood> I like not having to even bother with Bundler unless Rails is involved.
<bradland> i think it comes from ruby's smalltalk roots?
<gfixler> like a higher-order function that takes a function as a parameter
swgillespie has joined #ruby
leat has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 245 seconds]
<bradland> just a heads up, you should not use that send method. at least not unless you explicitly need to.
<bradland> it will allow you to call private methods, which violates the API
<gfixler> bradland: ah, good to know
<Ox0dea> There's always #public_send.
pocketprotector has quit [Ping timeout: 250 seconds]
<bradland> as jhass pointed out, public_send respects private
<bradland> and now Ox0dea
<bradland> :)
<gfixler> I appreciate you all public_sending me this information
phutchins1 has quit [Ping timeout: 245 seconds]
<bradland> haha, np
radgeRayden has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
<havenwood> If you haven't updated RubyGems in the past three months, do!: gem update --system
dopie has joined #ruby
swgillespie has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
<havenwood> Ox0dea: +1 #public_send :D
<Ox0dea> Of course, you can use #send to send the #public message to make private methods public.
<Mon_Ouie> Or use #public_send to call #send
skydiver has quit [Ping timeout: 250 seconds]
jud has joined #ruby
<bradland> ruby provides more than enough rope to hang yourself!
<Ox0dea> Footguns everywhere!
Rollabunna has joined #ruby
workmad3 has joined #ruby
roolo has joined #ruby
kachi8 has joined #ruby
<havenwood> >> Object.public_send :send, :public_send, :send, :public_send, :itself
<ruboto> havenwood # => Object (https://eval.in/417482)
<havenwood> Yup, checks out.
khebbie has joined #ruby
<Ox0dea> But #itself isn't a private method.
Rollabunna has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
<havenwood> >> Object.public_send :send, :public_send, :send, :puts
<ruboto> havenwood # => ...check link for more (https://eval.in/417483)
<havenwood> Ox0dea: I haven't really been following what we're talking about. :O
eminencehc has quit [Remote host closed the connection]
lannonbr has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has quit [Quit: This computer has gone to sleep]
* havenwood reads back
swgillespie has quit [Client Quit]
workmad3 has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
<Ox0dea> Just that, in general, nothing is sacred in Ruby.
Azure|dc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> >> defined? sacred
<ruboto> havenwood # => nil (https://eval.in/417484)
pocketprotector has joined #ruby
khebbie has quit [Ping timeout: 272 seconds]
Rollabunna has joined #ruby
Azure has joined #ruby
symm- has quit [Ping timeout: 245 seconds]
chmod755 has joined #ruby
<havenwood> class Object; def sacred?; false end end; class NilClass; def sacred?; true end end
<chmod755> hi everyone
<havenwood> chmod755: Hi
<chmod755> so I'm not really experienced with ruby and I'm getting "undefined method `new' for nil:NilClass" here
TomyLobo has quit [Ping timeout: 246 seconds]
<havenwood> >> nil.new
<ruboto> havenwood # => undefined method `new' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/417485)
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
swgillespie has joined #ruby
iateadonut has quit [Quit: Leaving.]
Rollabunna has quit [Ping timeout: 244 seconds]
swgillespie has quit [Max SendQ exceeded]
Yzguy has quit [Quit: Zzz...]
swgillespie has joined #ruby
rbennacer has quit [Remote host closed the connection]
swgillespie has quit [Max SendQ exceeded]
eminencehc has joined #ruby
<havenwood> chmod755: I'm sure if you show the code someone here can spot where you're calling `new` on `nil`.
<havenwood> ?gist chmod755
<ruboto> chmod755, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
swgillespie has joined #ruby
kidoz has joined #ruby
[H]unt3r has quit [Quit: Leaving]
sdothum has joined #ruby
Rollabunna has joined #ruby
shellie_ has joined #ruby
iliketurtles has joined #ruby
shellie_ has quit [Client Quit]
<jhass> chmod755: gist the full error and backtrace please
shellie_ has joined #ruby
mbboo has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 245 seconds]
moeSeth has joined #ruby
chabil has joined #ruby
Yzguy has joined #ruby
<jhass> ugh hf havenwood :P
scripore has quit [Quit: This computer has gone to sleep]
saddad has quit [Ping timeout: 250 seconds]
Yzguy has quit [Client Quit]
Yzguy has joined #ruby
kirun has quit [Remote host closed the connection]
Rollabunna has joined #ruby
sphex has quit [Ping timeout: 260 seconds]
sphex has joined #ruby
<shevy> chmod755 nil is not a very useful object for the most part
tommek has joined #ruby
tommek_ has quit [Ping timeout: 264 seconds]
kostasl has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
<havenwood> chmod755: Why such an old version of serve?
ledestin has joined #ruby
<havenwood> chmod755: Change '1.5.2' to '2.0.1' here: https://github.com/bitcoinxt/website/blob/master/Gemfile#L3
houhoulis has quit [Remote host closed the connection]
<havenwood> chmod755: Then run: bundle update serve
marr has joined #ruby
<chmod755> havenwood, idk... it's not my project
gambl0re has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
<Ox0dea> shevy: Mathematics falls apart without zero.
Rollabunna has joined #ruby
<havenwood> >> 1.upto(0/0.0).first 3
workmad3 has quit [Ping timeout: 244 seconds]
<ruboto> havenwood # => [1, 2, 3] (https://eval.in/417487)
kostasl has quit [Quit: Page closed]
allcentury has joined #ruby
Cache_Money has joined #ruby
gambl0re has joined #ruby
<chmod755> Could not find gem 'serve (= 2.0.1) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
vidbina has joined #ruby
Cache_Money has left #ruby [#ruby]
<havenwood> chmod755: hem
christiandsg has joined #ruby
<havenwood> chmod755: It looks like they've tagged the release but not cut the gem for it.
Rollabunna has quit [Ping timeout: 252 seconds]
kidoz has quit [Quit: Ухожу я от вас]
<havenwood> chmod755: gem 'serve', github: 'jlong/serve'
futilegames has quit [Quit: futilegames]
<havenwood> chmod755: ^ If you want to just try latest development. I'm not familiar with the serve gem.
Cache_Money has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
<havenwood> chmod755: You're running into a bug where `Tilt[ext]` here is `nil`, hence your error: https://github.com/jlong/serve/blob/d2c17a254d5c98372ca042c50200ba51253f3537/lib/serve/handlers/dynamic_handler.rb#L44
arup_r has quit [Quit: Leaving]
christiandsg has quit [Ping timeout: 265 seconds]
<chmod755> now i'm getting "Your Gemfile requires gems that depend on each other, creating an infinite loop."
<chmod755> lol
Rollabunna has joined #ruby
bartj3 has quit [Quit: bye!]
bartj3 has joined #ruby
eminencehc has joined #ruby
jpfuentes2 has joined #ruby
<havenwood> chmod755: gem i -g
<jhass> that supports github: now?
<havenwood> jhass: yup
<jhass> nice
futilegames has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 240 seconds]
futilegames has quit [Client Quit]
Rollabunna has quit [Ping timeout: 240 seconds]
dgutierrez1287 has joined #ruby
yfeldblum has joined #ruby
<chmod755> gem i -g doesn't help
tomphp has joined #ruby
<havenwood> chmod755: It didn't install the gems?
<havenwood> chmod755: Error?
Rollabunna has joined #ruby
scripore has joined #ruby
<havenwood> chmod755: sudo gem i -g
shellie_ has quit [Ping timeout: 240 seconds]
<havenwood> chmod755: You have a system install of Ruby in /usr/local and you're not using --user-install to install gems in your user home dir, so probably need sudo there.
darkxploit has quit [Ping timeout: 240 seconds]
<chmod755> i'm still getting "ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String"
<chmod755> cannot open-errors are gone
<havenwood> Why was Bundler in an infinite loop?
veduardo has quit [Quit: WeeChat 0.4.2]
shellie_ has joined #ruby
<havenwood> I guess serve depending on serve?
Rollabunna has quit [Ping timeout: 246 seconds]
fluffykat has joined #ruby
<havenwood> chmod755: Make sure you're using the latest version of Bundler: gem update bundler
<havenwood> chmod755: Or rather: sudo gem update bundler
<chmod755> i have bundler (1.10.6)
<havenwood> chmod755: There's a mention of some similar issue but sounds like a slightly different error: https://github.com/jlong/serve/issues/124
bodgix has left #ruby [#ruby]
Kallis has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
lannonbr has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<fluffykat> hi - how can i use capybara to check if an item is placed in the correct position inside a list (i.e. inside 'ul#list'?
yeticry has quit [Ping timeout: 244 seconds]
Oka has quit [Quit: さようなら]
Rollabunna has joined #ruby
BillSussman has quit [Quit: Leaving]
Kallis has joined #ruby
<havenwood> chmod755: Change the Gemfile line to: gem 'serve', github: 'jlong/serve', tag: 'v2.0.1'
<havenwood> chmod755: And run: bundle update
<jhass> FluffyKat: expect(find("ul#list > li:nth-child(4)").to have_text("my_item") or something, you get the idea
Oka has joined #ruby
<fluffykat> you're a genius thanks
<chmod755> Bundle updated! <<
yeticry has joined #ruby
<chmod755> but I'm still getting the same error
<chmod755> hmm
<chmod755> removing an old version of ruby, maybe there's a conflict somewhere
<havenwood> chmod755: make sure to run app prefixed with: bundle exec
<jhass> chmod755: whatever you run, make sure to prefix it with bundle exec
<jhass> havenwood: ^5
<havenwood> jhass: jinx
<havenwood> jhass: \o
Kallis has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 240 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> chmod755: http://i.imgur.com/2Hlpoov.png
DLSteve has quit [Ping timeout: 244 seconds]
j_mcnally has joined #ruby
darkxploit has joined #ruby
saddad has joined #ruby
Limix has quit [Quit: Limix]
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
jeadr has quit [Remote host closed the connection]
christiandsg has joined #ruby
Rollabunna has joined #ruby
rob_ has quit [Quit: rob_]
Cache_Money has quit [Quit: Cache_Money]
darkxploit has quit [Max SendQ exceeded]
<fluffykat> jhass: when i replace ".to" with ".should" in your suggestion the code works...
darkxploit has joined #ruby
jeadr has joined #ruby
Limix has joined #ruby
chabil has quit [Quit: WeeChat 1.2]
<chmod755> havenwood, thx a lot
darkxploit has quit [Max SendQ exceeded]
<chmod755> bundle exec serve
darkxploit has joined #ruby
darkxploit has quit [Max SendQ exceeded]
ta has quit [Remote host closed the connection]
scripore has joined #ruby
ta has joined #ruby
frozen3 has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 256 seconds]
darkxploit has joined #ruby
sphex has quit [Ping timeout: 255 seconds]
darkxploit has quit [Max SendQ exceeded]
sphex has joined #ruby
<jhass> FluffyKat: sounds like you RSpec is ancient
darkxploit has joined #ruby
Kallis has joined #ruby
<fluffykat> jhass: I get a deprecation warning about using 'should'
<jhass> yeah
darkxploit has quit [Max SendQ exceeded]
l_tonz has joined #ruby
<jhass> expect(..).to is the new syntax
darkxploit has joined #ruby
sdothum has quit [Ping timeout: 240 seconds]
<fluffykat> when i use '.to' i get the following error : undefined method `to' for #<Capybara::Element tag="li" path="/html/body/ul/li[1]">
Rollabunna has joined #ruby
<jhass> FluffyKat: expect(find(...)).to
l_tonz has quit [Client Quit]
darkxploit has quit [Max SendQ exceeded]
Coldblackice has joined #ruby
darkxploit has joined #ruby
christiandsg has quit [Remote host closed the connection]
<fluffykat> expect(find("ul#list > li:nth-child(1)").to have_text("test message"))
<fluffykat> thats my code
<jhass> yes, missing )
darkxploit has quit [Max SendQ exceeded]
<jhass> or wrong place actually
<jhass> expect(find(...)).to have_text(...)
darkxploit has joined #ruby
millerti has joined #ruby
rbennacer has joined #ruby
<fluffykat> yeah, my bad...i missed it.
<fluffykat> it works now. cheers
Rollabunna has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
christiandsg has joined #ruby
bweston92 has quit [Ping timeout: 256 seconds]
khebbie has joined #ruby
codecop has quit [Remote host closed the connection]
nfk has joined #ruby
sarkyniin has quit [Read error: No route to host]
Kallis has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
sarkyniin has joined #ruby
ljt has joined #ruby
iamse7en has joined #ruby
josh4 has quit [Ping timeout: 272 seconds]
hydrozen has joined #ruby
Me1 has joined #ruby
Rollabunna has joined #ruby
michaeldeol has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
khebbie has quit [Ping timeout: 246 seconds]
Limix has quit [Quit: Limix]
allcentury has joined #ruby
Guest81167 has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
<shevy> \o/
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
Rollabunna has joined #ruby
kachi8 has quit [Ping timeout: 256 seconds]
towski__ has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 265 seconds]
thugwaffle has joined #ruby
jmhmccr has quit [Quit: Connection closed for inactivity]
Jackneill has quit [Ping timeout: 244 seconds]
<iamse7en> to anyone willing to help, how do i multiply two arrays then take the sum. https://gist.github.com/anonymous/a036818d6948f1909cec
Rollabunna has joined #ruby
<Ox0dea> iamse7en: #zip and #reduce are the methods you seek.
dc has joined #ruby
<al2o3-cr> >> [0.3, 0.2, 0.5].zip([1.5, -1.0, 2.5]).map {|a| a.inject(:*) }.inject(:+)
<ruboto> al2o3-cr # => 1.5 (https://eval.in/417494)
djbkd has joined #ruby
<Ox0dea> al2o3-cr: Dude.
autrilla has quit [Quit: Connection closed for inactivity]
<al2o3-cr> My bad :(
<al2o3-cr> I keep to watching mr. robot
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
symbol has joined #ruby
<Mon_Ouie> Also Vector#dot
n008f4g_ has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
Rollabunna has quit [Ping timeout: 264 seconds]
lele has joined #ruby
kachi8 has joined #ruby
chmod755 has left #ruby ["Ex-Chat"]
DLSteve has joined #ruby
dr3w has joined #ruby
Rollabunna has joined #ruby
<iamse7en> thank you so very much al2o3-cr :)
dgutierrez1287 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
Rollabunna has quit [Ping timeout: 250 seconds]
Vile` has joined #ruby
drager has quit [Ping timeout: 246 seconds]
spider-mario has quit [Ping timeout: 252 seconds]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
spider-mario has joined #ruby
frozen3 has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
jtdoncas has joined #ruby
Rollabunna has joined #ruby
ljt has quit []
crazydiamond has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
Me1 has quit [Ping timeout: 240 seconds]
Thomas-0725 has joined #ruby
dc has quit []
mcpherrin has joined #ruby
chouhoulis has joined #ruby
Musashi007 has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
Yzguy has quit [Quit: Zzz...]
ohaibbq has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
j_mcnally has joined #ruby
workmad3 has joined #ruby
phutchins1 has joined #ruby
NightyMiggers has joined #ruby
<NightyMiggers> hi peepoles
Rollabunna has quit [Ping timeout: 240 seconds]
devbug_ has joined #ruby
pragmatism has joined #ruby
<Coraline> !ban NightyMiggers #ruby !P Go away, troll
towski_ has joined #ruby
NightyMiggers was banned on #ruby by ChanServ [NightyMiggers!*@*]
NightyMiggers was kicked from #ruby by ChanServ [Banned: Go away, troll]
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
doublemalt_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
roolo has quit [Quit: Leaving...]
devbug has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
bodgix has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Read error: Connection reset by peer]
towski_ has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
drager has joined #ruby
roolo has quit [Client Quit]
sdothum has joined #ruby
chouhoul_ has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
_ht has quit [Quit: Konversation terminated!]
moeSeth has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.2]
roolo has joined #ruby
axl_ has joined #ruby
workmad3 has joined #ruby
Rollabunna has joined #ruby
* pontiki waves
speaking1ode has quit [Ping timeout: 246 seconds]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
houhoulis has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
speaking1ode has joined #ruby
poguez_ has joined #ruby
np0 has quit [Changing host]
np0 has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
axl_ has left #ruby [#ruby]
speaking1ode has quit [Client Quit]
speaking1ode has joined #ruby
marr has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
nofxx has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
last_staff has quit [Quit: last_staff]
Cache_Money has joined #ruby
frozen3 has quit [Remote host closed the connection]
frozen3 has joined #ruby
rbennacer has quit [Remote host closed the connection]
lannonbr has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Ping timeout: 250 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
rbennacer has joined #ruby
_blizzy_ has joined #ruby
scripore has joined #ruby
scripore has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
frozen3 has quit [Ping timeout: 255 seconds]
lucyinthesky has joined #ruby
mleung has joined #ruby
Kallis has joined #ruby
Rollabunna has joined #ruby
j4cknewt has joined #ruby
northfurr has joined #ruby
northfurr has quit [Client Quit]
lucyinthesky has left #ruby ["Leaving"]
_blizzy_ has quit [Read error: Connection reset by peer]
yqt has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 250 seconds]
* baweaver waves back to pontiki
blackmesa has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
mleung has quit [Quit: mleung]
thugwaffle has quit [Ping timeout: 246 seconds]
mleung has joined #ruby
mleung has quit [Client Quit]
arooni-mobile has joined #ruby
roolo has quit [Remote host closed the connection]
Musashi007 has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
workmad3 has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
rahult has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<Darkwater> what are the most mature desktop gui libs for ruby?
<Darkwater> any decent gtk/qt bindings?
Rollabunna has joined #ruby
crdpink2 has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
crdpink has quit [Ping timeout: 246 seconds]
<Ox0dea> Darkwater: Whatcha makin'?
<Darkwater> Ox0dea: chat client
<Darkwater> also I keep trying to complete your name from 0x
Rickmasta has quit [Ping timeout: 265 seconds]
pen-soldier has quit [Quit: Leaving]
j3r0 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dr3w has quit [Ping timeout: 240 seconds]
<Ox0dea> It didn't have to be this way.
<pontiki> it does on IRC :)
<Mon_Ouie> The qtbindings gem works well for my purposes and translates method names, etc. to what is idiomatic in Ruby. Never really used the GTK bindings.
spider-mario has quit [Remote host closed the connection]
<Ox0dea> Idiomatic method names don't make them any less unpleasant to use.
Rickmasta has joined #ruby
DLSteve has quit [Quit: Leaving]
<Ox0dea> You still end up writing "C with Ruby syntax" most of the time.
rbennacer has quit [Remote host closed the connection]
<Mon_Ouie> I think the fact that you can also use blocks to interface with their callback systems means you don't, really
Rollabunna has quit [Ping timeout: 272 seconds]
<Ox0dea> pontiki: Yes, that's what I meant; whichever RFC(s) disallowed leading digits was, in my opinion, misguided at best.
devbug_ has quit [Read error: Connection reset by peer]
devbug has joined #ruby
<banister> Mon_Ouie did you ever read 'the breeze' by rimbaud? https://www.dropbox.com/s/293ja8vp0g67c3o/Screenshot%202015-08-17%2001.21.25.png?dl=0
Cache_Money has joined #ruby
<Mon_Ouie> Nope
chelly has joined #ruby
Rollabunna has joined #ruby
<Mon_Ouie> I also didn't know he wrote notes thanking the holy spirit for inspiring him
<banister> Mon_Ouie heh heh, it's part of his juvenilia, it's a fake journal he wrote as a teenager imitating the work of a bad and sentimental poet
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
arturhoo has joined #ruby
Rollabunna has quit [Ping timeout: 250 seconds]
Me1 has joined #ruby
rahult has joined #ruby
eminencehc has quit [Remote host closed the connection]
rahult is now known as rahult_
aperios has quit [Ping timeout: 244 seconds]
aspiers has quit [Ping timeout: 260 seconds]
rahult_ has quit [Client Quit]
rahult has joined #ruby
j4cknewt has quit [Remote host closed the connection]
Rollabunna has joined #ruby
tmoor has joined #ruby
j4cknewt has joined #ruby
allcentury has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
hobodave has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
exadeci has quit [Quit: Connection closed for inactivity]
Rollabunna has joined #ruby
hydrozen has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<aep> how would i remove multiple indexes from an array at once? ie: [a,b,c,d].delete_at([1,2]) = [a,d]
<aep> individual calls to delete_at will make the next index invalid of course
<aep> oh with markers of course
govg has quit [Read error: No route to host]
<Aeyrix> I'd venture you might actually want a hash tbh.
Rollabunna has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
hydrozen has quit [Client Quit]
hydrozen has joined #ruby
ElSif has joined #ruby
<aep> nah, i want order
govg has joined #ruby
<Mon_Ouie> aep: you can make individual calls to delete_at just by iterating over your indices from largest to smallest
<al2o3-cr> aep something like a = [:a, :b, :c, :d]; a - a.values_at(1,2)
<aep> oooh of course
<aep> thanks!
ni291187 has joined #ruby
<Ox0dea> aep: For what it's worth, Hashes are ordered in 1.9+.
gilest has joined #ruby
ni291187 is now known as sreggingnikcuf
<sreggingnikcuf> hi
towski_ has joined #ruby
<al2o3-cr> troll alert
<Ox0dea> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<sreggingnikcuf> who's trolling?
sarkyniin has quit [Read error: Connection reset by peer]
<Radar> !ban sreggingnikcuf !T 1D
sreggingnikcuf was banned on #ruby by ChanServ [sreggingnikcuf!*@*]
sreggingnikcuf was kicked from #ruby by ChanServ [User is banned from this channel]
<Radar> ta Ox0dea
sarkyniin has joined #ruby
<Ox0dea> Sure thing. Is 1D the max or something?
havenwood has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> It's so our ban list doesn't get full. The trolls use different IPs each time.
jeadr has quit [Remote host closed the connection]
charliesome has joined #ruby
rbennacer has joined #ruby
<Ox0dea> TIL ban lists can get full, I guess.
<Radar> Given that the names are on a similar topic and the user acts the same way each time, I think it's just one person trolling this channel.
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
<baweaver> Could have a bot watch joins for anything within a certain distance of known explitives.
<baweaver> easy enough
jeadr has joined #ruby
<Mon_Ouie> I think you want 1d though, not 1D
<Radar> baweaver: patches welcome :)
<Ox0dea> Radar: Sure, I just find one-day bans for such trolls to be slightly humorous. "Well, here's hoping they're a decent person come tomorrow."
<Mon_Ouie> I'm not sure what 1D gets interpreted as but ChanServ already undid the ban as far as I can tell
j_mcnally has joined #ruby
<baweaver> I can work on a detection algorithm at least, as far as patching it in I'd probably defer to you.
<Radar> Mon_Ouie: So it did. I don't get modes sent through on my IRC client so I couldn't tell.
<baweaver> probably just a variant of levenshtein.
<baweaver> put in some l33t substitution commonalities
havenwood has quit [Ping timeout: 264 seconds]
<baweaver> and reverses of course.
<Radar> I don't know where ruboto's source code is
<Ox0dea> baweaver: A taller task than it might at first seem.
allcentury has joined #ruby
<baweaver> I've done similar things before.
<Ox0dea> Combinatorial explosions and all that.
<Mon_Ouie> Not publicly available, you can contact apeiros
<Radar> Mon_Ouie: Oh great.
<Radar> What's wrong with making it open source?
<Radar> Seems bad to have it controlled by one person.
<Radar> baweaver: it sounds to me like Ox0dea wants to help you
<baweaver> indeed.
<baweaver> but it has to be alphanumerical
<Radar> baweaver: https://github.com/radar/railsbot has a join event you could hook into. You could get it to notify #ruby-ops if someone with a bad name joins
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
havenwood has joined #ruby