jhass changed the topic of #ruby to: Please register to talk, see /msg NickServ help || Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
rideh has quit [Quit: quit]
christiandsg has quit [Ping timeout: 265 seconds]
wldcordeiro__ has quit [Ping timeout: 244 seconds]
rcvalle has quit [Quit: rcvalle]
banjara has quit [Quit: Leaving.]
juanpablo_ has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
rehat has quit [Remote host closed the connection]
jxpx777 has joined #ruby
chrishough has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
Rinzlit has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
wildlander has joined #ruby
hays_ has joined #ruby
grenierm has quit [Quit: grenierm]
hays has quit [Ping timeout: 244 seconds]
jxpx777 has quit [Ping timeout: 244 seconds]
zendrix has quit [Ping timeout: 260 seconds]
mleung has quit [Quit: mleung]
chipotle has joined #ruby
chipotle has quit [Client Quit]
marr has quit []
jtdoncas has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
<shevy> hmm
bast has joined #ruby
<shevy> appending a frozen string to a non-frozen string won't make the latter frozen right?
rubie has quit [Remote host closed the connection]
<apeiros> right
<toretore> >> f="world".freeze; ("hello " << f).frozen?
<ruboto> toretore # => false (https://eval.in/424491)
donske has joined #ruby
<ddrmanxbxfr> centrx: I found my bug ! It wasn't related to ruby runtime itself but was around pipes
rideh^ has joined #ruby
donske has quit [Client Quit]
workmad3 has quit [Ping timeout: 246 seconds]
rehat has joined #ruby
kies has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rideh^ has quit [Read error: Connection reset by peer]
rideh^ has joined #ruby
poli has quit [Ping timeout: 264 seconds]
yfeldblu_ has joined #ruby
<Ox0dea> shevy: How would that even?
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<shevy> it was already answered
michaeldeol has quit [Ping timeout: 245 seconds]
doublemalt_ has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
atomical has joined #ruby
Pupeno has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
Limix has quit [Quit: Limix]
<lagweezle> ... and now, thanks to Ox0dea, I know that there are 3.5 rundlets to a hogshead ...in English wine cask units.
catoblepa has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
maletor has quit []
joneshf-laptop has joined #ruby
<Ox0dea> Which is smaller, a Muckenseckel or an RCH?
livathinos has joined #ruby
livathinos has quit [Client Quit]
bricker has quit [Ping timeout: 250 seconds]
Mia has joined #ruby
mistermocha has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
rideh^ has quit [Quit: peace]
rubie has joined #ruby
tkuchiki has joined #ruby
rideh has joined #ruby
freerobby has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
astrobun_ has joined #ruby
Vile` has joined #ruby
tsou has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
grenierm has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
lukebyrne has joined #ruby
Swappticon has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby
RobertBirnie has quit [Client Quit]
jxpx777 has joined #ruby
Vile` has joined #ruby
dgutierrez1287 has joined #ruby
mistermo_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 250 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
bkxd has joined #ruby
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxpx777 has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
chipotle has joined #ruby
Limix has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
chipotle has quit [Client Quit]
lipoqil has quit [Quit: Connection closed for inactivity]
yfeldblu_ has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
lavros has joined #ruby
postmodern has quit [Quit: Leaving]
TheWhiteOx has joined #ruby
astrobun_ has quit [Remote host closed the connection]
saddad has joined #ruby
fast_scooter has joined #ruby
Vile` has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
lukebyrne has quit [Quit: lukebyrne]
nzst has joined #ruby
Limix has quit [Read error: Connection reset by peer]
sargas has quit [Quit: This computer has gone to sleep]
Limix has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lipoqil has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
nzst has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
linuxboytoo has joined #ruby
Mendenhall has quit [Ping timeout: 260 seconds]
bootstrappm has left #ruby [#ruby]
Vile` has joined #ruby
Limix has quit [Ping timeout: 250 seconds]
lipoqil has quit [Ping timeout: 244 seconds]
Limix has joined #ruby
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
joneshf-laptop has quit [Ping timeout: 244 seconds]
nerdoncall has quit [Ping timeout: 246 seconds]
Azure has joined #ruby
rehat has quit [Remote host closed the connection]
TheWhiteOx has quit [Quit: Textual IRC Client: www.textualapp.com]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nux443 has quit [Ping timeout: 246 seconds]
Limix has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 250 seconds]
helpa has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
Limix has joined #ruby
bsdbofh has joined #ruby
ecnalyr has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
christiandsg has quit [Remote host closed the connection]
helpa has joined #ruby
Lucky__ has joined #ruby
Azure has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
roxtrong_ has joined #ruby
jxpx777 has joined #ruby
Limix has quit [Ping timeout: 250 seconds]
juanpablo_ has quit [Ping timeout: 240 seconds]
paulcsmith has joined #ruby
jtdoncas has joined #ruby
paulcsmith has quit [Client Quit]
Limix has joined #ruby
nux443 has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
Vile` has joined #ruby
petricore has quit [Ping timeout: 240 seconds]
donske has joined #ruby
donske has quit [Max SendQ exceeded]
UtkarshRay has joined #ruby
Limix has quit [Ping timeout: 265 seconds]
bkxd has quit [Ping timeout: 245 seconds]
Limix has joined #ruby
helpa has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bb010g has joined #ruby
workmad3 has joined #ruby
saddad has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
sdfgsdfg has joined #ruby
j_mcnally has joined #ruby
m3ow1504_x has quit [Read error: Connection reset by peer]
fast_scooter has quit [Quit: fast_scooter]
workmad3 has quit [Ping timeout: 245 seconds]
m3ow1504_x has joined #ruby
millerti has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
roxtrong_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
mistermocha has joined #ruby
nux443 has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
Porfa has joined #ruby
amystephen has quit [Quit: amystephen]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Porfa has quit [Client Quit]
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has quit [Read error: Connection reset by peer]
sargas has joined #ruby
mistermocha has joined #ruby
Limix has quit [Quit: Limix]
bkxd has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 272 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
freerobby has quit [Quit: Leaving.]
jtdoncas has quit [Ping timeout: 246 seconds]
GarethAdams has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
j_mcnall_ has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 255 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
malconis has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
malconis has quit [Client Quit]
GarethAdams has joined #ruby
Pupeno has quit [Ping timeout: 260 seconds]
nux443 has joined #ruby
saddad has joined #ruby
mistermocha has quit [Remote host closed the connection]
nux443 has quit [Ping timeout: 250 seconds]
Synthead has quit [Disconnected by services]
Synthbean has joined #ruby
bronson has joined #ruby
juanpablo_ has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
nux443 has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
bsdbofh has joined #ruby
devoldmx has joined #ruby
bsdbofh has quit [Client Quit]
devoldmx has quit [Ping timeout: 255 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
exadeci has quit [Quit: Connection closed for inactivity]
Torrieri has quit [Quit: Be back later ...]
yfeldblum has quit [Ping timeout: 246 seconds]
j_mcnall_ has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
linuxboytoo has quit [Quit: Leaving...]
braincrash has quit [Quit: bye bye]
saddad has quit [Quit: WeeChat 1.3-dev]
ramfjord has quit [Ping timeout: 265 seconds]
psy_ has quit [Ping timeout: 240 seconds]
grenierm has quit [Quit: grenierm]
banjara has joined #ruby
Pumukel has joined #ruby
baweaver has joined #ruby
n_blownapart has joined #ruby
braincrash has joined #ruby
bkxd has joined #ruby
_djbkd has quit [Remote host closed the connection]
auzty has joined #ruby
lukebyrne has joined #ruby
nux443 has quit [Ping timeout: 255 seconds]
startupality has quit [Quit: startupality]
theery has joined #ruby
ecnalyr has joined #ruby
nux443 has joined #ruby
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
rubie has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
rubie has joined #ruby
lipoqil has joined #ruby
ecnalyr has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
faces has quit [Ping timeout: 256 seconds]
rubie has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
theery has quit [Remote host closed the connection]
lipoqil has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
yeticry has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
rubie has joined #ruby
nzst has joined #ruby
nux443 has quit [Ping timeout: 260 seconds]
nzst has quit [Ping timeout: 265 seconds]
rubie has quit [Remote host closed the connection]
wagnerrn has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sargas has quit [Quit: This computer has gone to sleep]
face has joined #ruby
bronson has quit [Remote host closed the connection]
wagnerrn has left #ruby [#ruby]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<pontiki> Ox0dea: did you get an answer to: < Ox0dea> Which is smaller, a Muckenseckel or an RCH?
The_Phoenix has joined #ruby
<Ox0dea> pontiki: I did not. Do you have some insight into the matter?
Vile` has quit [Ping timeout: 265 seconds]
craysiii has quit [Remote host closed the connection]
RobertGladdenKKK has joined #ruby
<pontiki> none whatsoever. i'm not even googling those terms
<Ox0dea> Not unwise, really.
darkf has joined #ruby
Vile` has joined #ruby
<RobertGladdenKKK> are we allowed to recruit developers here?
last_staff has joined #ruby
sargas has joined #ruby
nux443 has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
crdpink has quit [Ping timeout: 246 seconds]
crdpink2 has joined #ruby
UtkarshRay has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
jeadre has quit [Remote host closed the connection]
bazbing80 has joined #ruby
grenierm has joined #ruby
nux443 has quit [Ping timeout: 255 seconds]
jeadre has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
nux443 has joined #ruby
chipotle has joined #ruby
theery has joined #ruby
<baweaver> !mute RobertGladdenKKK
symm- has joined #ruby
ylg has quit []
workmad3 has quit [Ping timeout: 246 seconds]
<pontiki> what a strange question using that nick
* baweaver shrugs
maletor has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Radar> Googling for that name turns up bad results.
<baweaver> Saw KKK and kiwiirc, good enough for me.
nux443 has quit [Ping timeout: 264 seconds]
AlexAltea has joined #ruby
lukebyrne has quit [Quit: lukebyrne]
Torrieri has joined #ruby
Torrieri has joined #ruby
<bazbing80> Does anyone know how RSpec gets the description of a matcher? Somewhere in rspec-core there must be a place where rpsec utilises a matcher and then "quieries" the matcher's description method. Does anyone know where this would be?
chipotle has quit [Ping timeout: 240 seconds]
<baweaver> could ask on the rspec channel
AccordLTN has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
<bazbing80> It must .call the proc that's sent to it in an it{} or specify{}
UtkarshRay has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<bazbing80> baweaver: true
AccordLTN has joined #ruby
<baweaver> I'd have to look myself
<pontiki> it's in the matcher docs, iirc
nux443 has joined #ruby
Torrieri has quit [Ping timeout: 245 seconds]
RobertGladdenKKK has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rubie has joined #ruby
voltalio has joined #ruby
solocshaw1 has joined #ruby
voltalio has quit [Client Quit]
solocshaw has quit [Ping timeout: 244 seconds]
solocshaw1 is now known as solocshaw
nux443 has quit [Ping timeout: 245 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby
braincra- has joined #ruby
jxpx777_ has joined #ruby
nux443 has joined #ruby
UtkarshRay has quit [Ping timeout: 244 seconds]
braincrash has quit [Ping timeout: 250 seconds]
<pontiki> no, maybe it isn't. can't find it now.
<baweaver> not in core either.
<baweaver> nope, just constructing new object hierarchy
jxpx777 has quit [Ping timeout: 272 seconds]
* pontiki nods
<Radar> Is there a debug option for chruby? It's telling me in upstart that it can't find a ruby, but when I login as myself it says it can find it.
jxpx777_ has quit [Quit: Leaving...]
nux443 has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
wildlander has quit [Quit: Saliendo]
<baweaver> are you doing it as root?
<baweaver> might be a path issue.
<pontiki> chruby is a pretty tiny function...
nux443 has joined #ruby
<Radar> Not doing it as root.
<Radar> Trying to get it to run as my user in the upstart script but it's not finding the ruby installed with ruby-install
<pontiki> it's dependent on an envar RUBIES
<pontiki> humm
<toretore> Radar: did you check the env vars in the upstart conf?
<Radar> which ones should I be checking?
<toretore> as in, there won't be any by default
<Radar> And should I be sourcing chruby inside that script?
<toretore> $PATH will be empty
<baweaver> off I go for a bit
<Radar> Not empty, just doesn't include the Ruby path
<pontiki> where did you install chruby?
<toretore> oh you're running bash
<Radar> Added output to the gist
bronson has joined #ruby
<toretore> i'd just point it directly to the ruby bin
<pontiki> mine, forex, is at /usr/local/share/chruby/chruby.sh
<Radar> Same here: /usr/local/share/chruby/chruby.sh
<toretore> as in `exec /home/ryanbigg/.rubies/version/bin/ruby /home/ryanbigg/railsbot/bot.rb irc.freenode.net`
tjohnson has quit [Quit: Connection closed for inactivity]
diegoaguilar has joined #ruby
rubie has quit [Remote host closed the connection]
<toretore> s/version/ruby-2.2.3/
<Radar> "cannot load such file -- bundler/setup"
m3ow1504_x has quit [Read error: Connection reset by peer]
<Radar> Yes bundler is installed for that Ruby.
m3ow1504_x has joined #ruby
Torrieri has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
<Radar> gem and bundle can't be found inside the upstart script either
<Radar> Which makes me think that chruby is not setting up paths correctly
n_blownapart has quit [Quit: Leaving]
<Radar> Ah, maybe it's because HOME is not set
<pontiki> does setuid also change $HOME?
<pontiki> ah ha
bruno- has joined #ruby
<Radar> hey hey now we're cooking with gas :D
helpa has joined #ruby
Pupeno has joined #ruby
<Radar> pontiki: thanks for reminding me that chruby isn't scary
<pontiki> oh sure... :)
juanpablo_ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy has joined #ruby
AlexAltea has quit [Ping timeout: 244 seconds]
<Radar> helpa now no longer runs inside a screen session
theery has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
Pupeno has quit [Ping timeout: 244 seconds]
Salehi has joined #ruby
rushed has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
lemur has joined #ruby
christiandsg has joined #ruby
jerin has joined #ruby
jerin has left #ruby [#ruby]
hashrocket has quit [Quit: Connection closed for inactivity]
devoldmx has quit [Ping timeout: 252 seconds]
lemur has quit [Ping timeout: 246 seconds]
<pontiki> :)
bkxd has joined #ruby
RobertBirnie has joined #ruby
maletor has joined #ruby
wldcordeiro__ has joined #ruby
Salehi has quit [Remote host closed the connection]
craysiii has joined #ruby
leafybasil has quit [Remote host closed the connection]
theery has joined #ruby
leafybasil has joined #ruby
<Ox0dea> helpa: !home
m3ow1504_x has quit [Read error: Connection reset by peer]
m3ow1504_x has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lipoqil has joined #ruby
riotjones has joined #ruby
<shevy> helpa versus ruboto - the ultimate showdown
opensource_ninja has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
Vile` has quit [Read error: Connection reset by peer]
lipoqil has quit [Ping timeout: 245 seconds]
christiandsg has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
ohaibbq has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
Vile` has joined #ruby
<shevy> ewwww... /usr/bin/makeinfo is a perl script
tmtwd has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
<shevy> quite a lot of legacy scripts out there necessary for compilation, if only they would have used ruby
PaulCapestany has joined #ruby
theery has quit [Remote host closed the connection]
<Ox0dea> ~ $ file -L /bin/* | grep -ci perl
<Ox0dea> 52
dagda1 has joined #ruby
<Ox0dea> Only 10 for Ruby. :(
yashinbasement has joined #ruby
Vile` has quit [Ping timeout: 245 seconds]
PaulCape_ has quit [Ping timeout: 240 seconds]
Vile` has joined #ruby
lavros has quit [Quit: leaving]
lavros has joined #ruby
rubie has joined #ruby
Salehi has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<shevy> old sysadmins are so lazy
<nahtnam> Is there a way to say "or nil"?
<nahtnam> Like `deaths = stats["total_deaths"]`
<nahtnam> sometimes total_deaths doesnt exist
<nahtnam> so I want to set deaths to nil
jxpx777 has joined #ruby
<Ox0dea> nahtnam: That's exactly what that line does?
ohaibbq_ has joined #ruby
<nahtnam> Ox0dea: It throws an error if it doesnt exist
<Ox0dea> Nope.
<nahtnam> NoMethodError: undefined method `/' for nil:NilClass
<nahtnam> oops
<Ox0dea> Then you don't actually want to set `deaths` to nil.
<nahtnam> one sec
<nahtnam> For something like this: `time_played = stats["total_time_played"] / 3600 || nil`
<nahtnam> (remove the || nil, was just trying it out)
ohaibbq has quit [Ping timeout: 244 seconds]
<nahtnam> it throws a no method error because im dividing
<nahtnam> I dont want it to thrown an error
<nahtnam> just set itself to nil
<nahtnam> so the json can render after that without the app throwing a 500
jxpx777 has quit [Ping timeout: 255 seconds]
<Ox0dea> nahtnam: Convention favors using #try from ActiveSupport.
jpfuentes2 has joined #ruby
<nahtnam> So I need to make a try for every single variable? I have like 30
<Ox0dea> Abstraction time!
Fezzler has joined #ruby
<Ox0dea> Then again, #try really is the right abstraction already.
maletor has quit [Quit: Computer has gone to sleep.]
<nahtnam> Hm, ok. Thanks for your help
nzst has joined #ruby
<Ox0dea> nahtnam: Sure thing. `time_played = stats["total_time_played"].try(:/, 3600)` really isn't that bad, but if you're "massaging" ~30 variables, there are things you could do from space.
banjara has joined #ruby
<nahtnam> > there are things you could do from space.
<nahtnam> ?
<shevy> nahtnam in this case perhaps you don't need to set a variable
<shevy> I assume that stats is the hash that already has the information
<nahtnam> Hm, so let me give some background on my app
<nahtnam> The Steam api is *horrible*
<nahtnam> and ember is very sensitive
<shevy> ewww
<nahtnam> so I have to convert the horrible api to a nice one that ember can use
psy has quit [Disconnected by services]
banjara has quit [Client Quit]
<Ox0dea> nahtnam: An "architecture astronaut" is said of somebody who over-abstracts things.
<nahtnam> and the worst part is that steam returns an array, and each array is different for each user
hyy1 has joined #ruby
<Ox0dea> I was suggesting you might do something like creating a massaging lambda for each of the keys.
<Ox0dea> Then your transformation code could just be `var_hash.map { |v| massagers[v][v] }` or some such.
<nahtnam> Not sure how to do that, and also for each weapon, I need to add a custom name manually
<shevy> nahtnam just make it readable whatever they return
<nahtnam> Here is what my controller looks like: https://gist.github.com/nahtnam/a5637141bd35a288ec5f
<nahtnam> Thats the part where I manually define each weapon name
<shevy> so you return the results as json?
<Ox0dea> Yikes.
nzst has quit [Ping timeout: 256 seconds]
Fezzler has quit [Quit: Leaving]
<Ox0dea> Why do you suppose you need all these local variables?
<nahtnam> shevy: Yep
<nahtnam> Ox0dea: Keep things clean
<nahtnam> and readable. Does it slow things down?
nux443 has quit [Ping timeout: 250 seconds]
jpfuentes2 has quit [Ping timeout: 252 seconds]
<Ox0dea> You're just shoving them into an Array and sorting, so I don't understand why they need identifiers, especially given that their names are right their in the Hash.
hyy1 has quit [Ping timeout: 252 seconds]
<Radar> there*
<Radar> :D
<Ox0dea> ...?
<Ox0dea> Oh, wow.
<Radar> "right their in the Hash."
<Ox0dea> Jesus.
Salehi has quit [Remote host closed the connection]
<nahtnam> Ox0dea: Because "elite" is not a gun, "taser" is not a weapon "hkp2000" is not a gun
<Ox0dea> Radar: Savor this moment. :P
<Radar> Oh I am.
sdothum has quit [Ping timeout: 265 seconds]
<Ox0dea> nahtnam: I'm not sure I follow.
sevenseacat has joined #ruby
<baweaver> Ox0dea: QFT + Linked in my quotes log
<nahtnam> You said the names are given in the hash, but some of the gun names are wrong
<baweaver> :D
jpfuentes2 has joined #ruby
bkxd has quit [Quit: Lost terminal]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> baweaver lol
keen___________6 has quit [Read error: Connection reset by peer]
Liam` has quit [Quit: http://bouncer.ml]
<Ox0dea> nahtnam: I'm talking about the local variables in #total_kills.
<shevy> just one tiny typo and it will haunt him for the rest of his life
bluOxigen has joined #ruby
<nahtnam> Oh, you're right.
chinmay_dd has joined #ruby
keen___________6 has joined #ruby
sdwrage__ has quit [Quit: Leaving]
opensource_ninja has quit [Quit: opensource_ninja]
<nahtnam> but still very messy, and could fail at any point if the info is missing from the array
<shevy> well the problem is that you must build up that json datastructure
<nahtnam> I was looking at this code: https://github.com/koraktor/steam-condenser-ruby/blob/9861ec9a9b27304b33f8e6a26e482548266d33f0/lib/steam-condenser/community/game_stats.rb#L62-L74 and it looks pretty neat but I dont understand how it works (it makes the same api call I am)
<shevy> so it will remain messy because irrelevant over whether you store it in local variable, or try to access it directly, you need to obtain the information; you can try to find some way that gives you the proper weapon types though, based on analyzing your calls to:
<shevy> nova = {:name => "Nova", :kills => stats["total_kills_nova"]}
workmad3 has joined #ruby
<shevy> so at least the last part always is 'total_kills_'+downcased_name
<shevy> and all ' ' become '_' I guess
sargas has quit [Quit: Leaving]
<nahtnam> shevy: dual_berettas = {:name => "Dual Berettas", :kills => stats["total_kills_elite"]}
<nahtnam> There is no such thing as "elite"
<shevy> well he calls methods on class GameStatsSchema
<shevy> huh
<shevy> what kind of logic is there
<shevy> does the elite use a beretta? :D
<nahtnam> Lol. I have no idea
<nahtnam> just steams stupid things...
<shevy> oh you also use inconsistent names
<shevy> ak47 = {:name => "AK47", :kills => stats["total_kills_ak47"]}
<shevy> ctpistol = {:name => "P2000 & USPS", :kills => stats["total_kills_hkp2000"]}
<shevy>
charliesome has joined #ruby
<shevy> oops trailing newline
<nahtnam> Yeah, cuz p2k and usps are both ctpistols
<Ox0dea> nahtnam: But do you see how it's pointless to make that distinction and then throw it away immediately?
<nahtnam> (their stats are combined)
<nahtnam> Yeah, but how else do I store the info?
<shevy> I notice a silence :)
workmad3 has quit [Ping timeout: 265 seconds]
<nahtnam> So the best solution I can think of is just to have a large switch statement and create a rails model for the stats. Then let each element of the array go through the switch statement and insert itself appropriately. https://gist.github.com/nahtnam/55084d0a31e27ab03120
<Ox0dea> I'm trying to see if there's some clever way to dynamically generate these names.
grenierm has quit [Quit: grenierm]
<nahtnam> Ox0dea: Is there a way to make a "map" or something?
charliesome has quit [Client Quit]
<Ox0dea> nahtnam: That's... what Hash does?
quazimodo has quit [Ping timeout: 246 seconds]
<shevy> hmm
<baweaver> what madness is this?
<baweaver> shevy: wood you care to explain?
freezevee has joined #ruby
charliesome has joined #ruby
<shevy> nahtnam you could generate the regular names, and then add exceptions for the non-regular ones; and perhaps just put it into a class too
<shevy> baweaver I think it is some steam game or something and he is fetching some headshot stats or so
<shevy> with strangely given names to weapons
<nahtnam> Its an array...
<shevy> taser = {:name => "Zeus X27", :kills => stats["total_kills_taser"]}
<nahtnam> The real name is zuesx27
<nahtnam> but thats too hard to type, so i set the var to taser
<shevy> at least ruby is used in a game!
<shevy> the real name is zuesx27?
<nahtnam> Yes
<shevy> boggles the mind...
<baweaver> so you want to extract all the weapon names?
relic has quit [Quit: brb]
<shevy> I think Ox0dea wanted to get rid of the local variables :)
<shevy> with a vengeance
<nahtnam> Ox0dea: Lol, that shortens the code considerable but it brings up a problem
<nahtnam> Actually
<nahtnam> Lemme double check
<baweaver> don't really need local vars for this
leat1 has quit [Remote host closed the connection]
<baweaver> so you want to get all total_kills_* and translate that to \1 => kill count
<baweaver> and sort it
<Ox0dea> shevy: They're unnecessary and naming things is hard; we should avoid having to do so at all costs.
Rinzlit has joined #ruby
<nahtnam> Thats another users stats
<nahtnam> its missing molotov
tvw has joined #ruby
<nahtnam> and so
<nahtnam> I get an error when sorting it
<nahtnam> and there is a high likely that some other things will be missing
<shevy> :(
code1o6 has joined #ruby
Musashi007 has joined #ruby
wprice has quit [Quit: wprice]
nux443 has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
<Ox0dea> >> {a: 1, b: nil, c: 3}.reject { _, v| v.nil? } # nahtnam
<ruboto> Ox0dea # => /tmp/execpad-cf9c9f537a68/source-cf9c9f537a68:2: syntax error, unexpected '|', expecting '=' ...check link for more (https://eval.in/424526)
<Ox0dea> Wat.
<Ox0dea> >> {a: 1, b: nil, c: 3}.reject { |_, v| v.nil? }
<ruboto> Ox0dea # => {:a=>1, :c=>3} (https://eval.in/424528)
<baweaver> data['playerstats']['stats'].reduce([]) { |a,h| k,v = h.values; d = /total_kills_(?<w>.+)/.match(k); d ? a.<<([d[:w],v]) : a }.sort_by(&:last)
stardiviner has joined #ruby
<baweaver> woo
<Ox0dea> nahtnam: Just kick the ones that don't have values out of the Hash before sorting it.
<Ox0dea> Alternatively, use baweaver's magic.
<baweaver> I made my own Enumerable method called select_map which cleans it a bit
<Ox0dea> baweaver: How come `.<<()` over `(<<)`?
<baweaver> ternary can be touchy, didn't want to retype
<baweaver> mainly lazy
<nahtnam> Hm, thats weird
<nahtnam> When I throw the `.reject { |_, v| v.nil? }` onto the code
<nahtnam> it returns nothing
<nahtnam> *it returns []
<baweaver> ruby -v?
<Ox0dea> nahtnam: Erm, where did you put it?
nux443 has quit [Ping timeout: 250 seconds]
<baweaver> cleaning it up anyways
<nahtnam> Onto the cleaned up version of the method you have me
bsdbofh has joined #ruby
<Ox0dea> It should go right after the closing square bracket.
<Ox0dea> Oh, sorry. That should be `{ |_, v| v[:kills].nil? }`.
nux443 has joined #ruby
rubie has quit [Remote host closed the connection]
<Ox0dea> Or even `select { |_, v| v[:kills] }`.
<Ox0dea> Or, if you make them OpenStructs, `select(&:kills)`, but don't do that.
<nahtnam> WTF
Liam` has joined #ruby
<nahtnam> `].reject{ |_, v| v[:kills].nil? }.sort { |a, b| b[:kills] - a[:kills] }`
<nahtnam> it should work
<Ox0dea> Yes, it should.
<baweaver> sort_by is faster :D
<nahtnam> undefined method `[]' for nil:NilClass
<shevy> this dam better work right!
<baweaver> shevy: you're all bark and no bite
<shevy> lol
<shevy> that's almost monty python worthy, the insults by the black knight... if only he would have been a beaver
tmtwd has quit [Ping timeout: 252 seconds]
<Ox0dea> "All bark and no bite" is Shakespeare.
<baweaver> as I approach midnight my dad pun power grows stronger
howdoi has joined #ruby
m3ow1504_x has quit [Read error: No route to host]
<shevy> the only shakespeare I know of is from the simpsons halloween
<Ox0dea> That's a tragedy.
Liam` has quit [Read error: Connection reset by peer]
m3ow1504_x has joined #ruby
<nahtnam> baweaver: Wow, im surprised your code even works... :D `knife_fight` `headshot` and a few others
<Ox0dea> </pun>, to clarify.
<nahtnam> are all extra
chipotle has joined #ruby
<nahtnam> as in, they are not weapons
nux443 has quit [Ping timeout: 260 seconds]
* baweaver shrugs
<baweaver> add a reject list to it.
<baweaver> regex can do it
<baweaver> can you handle the regex?
<nahtnam> Kk, but im not sure if I should use your or Ox0dea 's
<baweaver> REGEXAMANIA BROTHER
<baweaver> Ox0dea: even or odd?
<nahtnam> cuz yours is shorter but more complex? (I dont understand much of your code), also doesnt allow custom names
<nahtnam> Ox0dea: Doesnt work
<nahtnam> IDK why
<nahtnam> It is supposed to
<nahtnam> the syntax looks fine
<Ox0dea> >> %w[even odd].sample
<ruboto> Ox0dea # => "odd" (https://eval.in/424531)
<baweaver> Ox0dea's then
<baweaver> Ox0dea: like a true rubyist
<shevy> nahtnam you could also go back to your local variables variant :)
<nahtnam> Lol, no
leat1 has joined #ruby
amclain has quit [Quit: Leaving]
<nahtnam> >> [{:name => "Knife", :kills => 100, {:name => "Grenade", :kills => nil}].reject{ |_, v| v[:kills].nil? }
<ruboto> nahtnam # => /tmp/execpad-31cd99942058/source-31cd99942058:2: syntax error, unexpected ']', expecting => ...check link for more (https://eval.in/424532)
<nahtnam> >> [{:name => "Knife", :kills => 100}, {:name => "Grenade", :kills => nil}].reject{ |_, v| v[:kills].nil? }
<ruboto> nahtnam # => undefined method `[]' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/424533)
<nahtnam> Ox0dea:
<baweaver> hehehe
<baweaver> I see it
arup_r has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
<sevenseacat> so do i
<baweaver> |k,v| won't work there
<baweaver> I wonder why
<Ox0dea> Oh, right. I forgot it was an Array. :/
yeticry has quit [Read error: Connection reset by peer]
<nahtnam> .to_h?
<baweaver> 2 for 2 Ox0dea :D
<Ox0dea> nahtnam: Nah, just nix the `_, `.
<shevy> not his day
<Ox0dea> Valuable commentary is valid.
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeadre has quit [Remote host closed the connection]
nux443 has joined #ruby
<baweaver> Sorry, just being snarky over here :D
<Ox0dea> I still think Hash's yield semantics are wonky.
<nahtnam> Awesome, finally works. Now what about the other stuff? Is there a smart way to thow away the nils? One problem I keep having is when running `wlr = (wins.to_f / losses.to_f).round(2)` and (wins.to_f/losses.to_f) returns nil, it throws an error
freezevee has quit [Read error: Connection reset by peer]
<Ox0dea> You really do want #try, mate.
<nahtnam>
<Ox0dea> It's that or conditional chains.
<sevenseacat> you want to think about your problems before you ask how to solve them
jeadre has joined #ruby
<baweaver> I wonder what || does
<Ox0dea> It certainly doesn't save one from NoMethodErrors.
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<baweaver> orly?
<Ox0dea> Nor does it seem to be the case that nahtnam wants to shove zeroes in to keep his data uniform.
dagda1_ has joined #ruby
<nahtnam> Its highly unlikely that any of these are nil, but I have seen it happen with total_kills, so I just wanna be safe...
<sevenseacat> "highly unlikely" == "its still gonna happen sometimes so your code better account for it"
nux443 has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
<baweaver> Murphy smiles upon your optimism
yeticry has joined #ruby
<shevy> snarky beaver and snarky cat!
jxpx777 has joined #ruby
<baweaver> >> [nil, 1].all?
dgutierrez1287 has joined #ruby
<ruboto> baweaver # => false (https://eval.in/424534)
<Ox0dea> > The bug went unnoticed for 710 days and the code was probably executed 100 trillion (10^14) times before it crashed.
<shevy> if only it could auto-correct such bugs
gibre has joined #ruby
<Ox0dea> Do you want the technological singularity? Because that's how you get it.
juanpablo_ has joined #ruby
tk__ has joined #ruby
hollywood has quit [Ping timeout: 272 seconds]
<baweaver> You pretend Google hasn't already done it.
Musashi007 has quit [Quit: Musashi007]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
johnflux has joined #ruby
johnflux has joined #ruby
lxsameer has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
Mendenhall has joined #ruby
hollywood has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
lkba_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
leat1 has quit [Remote host closed the connection]
bruno- has joined #ruby
ecnalyr has joined #ruby
leat1 has joined #ruby
chipotle has quit [Quit: cheerio]
GnuYawk has joined #ruby
bronson has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
ecnalyr has quit [Ping timeout: 250 seconds]
houhoulis has joined #ruby
robbyoconnor has joined #ruby
devoldmx has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
robbyoconnor has quit [Client Quit]
dagda1_ has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has quit [Ping timeout: 250 seconds]
lukebyrne has joined #ruby
Ropeney has joined #ruby
m3ow1504_x has quit [Read error: Connection reset by peer]
m3ow1504_x has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
lipoqil has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.2]
lukebyrne has quit [Quit: lukebyrne]
jxpx777 has quit [Ping timeout: 245 seconds]
leat1 has quit [Remote host closed the connection]
sarlalian has joined #ruby
leat1 has joined #ruby
lipoqil has quit [Ping timeout: 240 seconds]
faces has joined #ruby
Musashi007 has joined #ruby
<KINGSABRI> G.day guys, I'm trying to write a script to do multilple HTTP actions "after authentication", fro example
<KINGSABRI> - I want to login to the following page: POST
<KINGSABRI> - Then access the following page (with same authenticated session): GET
<KINGSABRI> - Then press "Start" button on the this page (with same authenticated session): POST
<demophoon> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, workmad3, Coraline, miah, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver
<sevenseacat> hello.
face has quit [Ping timeout: 240 seconds]
<Radar> !mute KINGSABRI
<baweaver> !mute KINGSABRI
<Radar> Bang,
<sevenseacat> what was the problem with...?
<Radar> !unmute KINGSABRI
<Radar> Spam
<sevenseacat> ah.
<Radar> KINGSABRI: Please don't spam the channel.
ruby-lang578 has quit [Ping timeout: 246 seconds]
<KINGSABRI> no I'm not spam man
<KINGSABRI> why did you said that?
<Radar> Because you sent > 5 messages in < 1 second.
<Radar> If you've got something that fits on more than 1 line, Gist it.
<KINGSABRI> Aha
<Radar> KINGSABRI: Look at using the mechanize gem to accomplish what you want.
toretore has quit [Quit: This computer has gone to sleep]
<KINGSABRI> sorry for that, I dont come here usually so I didn't know that , Radar
<baweaver> we've also had a bit of a spam issue as well, making ops a tinge jumpy when flagged
codecop has joined #ruby
<KINGSABRI> sorry guys, baweaver Radar
Liam` has joined #ruby
<baweaver> Not a problem, bit jumpy on my part at least.
<arup_r> KINGSABRI: Mechanize you tried ?
<KINGSABRI> arup_r: the main issue it's a very small and limited script and I don't want to use extra gems for it
leat1 has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
<KINGSABRI> the core issue in that script is how to hold auth. session info with multiple request
<Radar> :(
<Radar> KINGSABRI: Mechanize will do that stuff for you!
wldcordeiro__ has quit [Ping timeout: 260 seconds]
<Radar> I don't get why people are so against adding new gems that CLEARLY solve their problems! Huge case of Not Invented Here.
leat1 has joined #ruby
<KINGSABRI> sometime we're working on line 20 lines script to do very specific task that why we trying to avoide external gems
<wasamasa> I wish you tons of fun emulating that with net/http :P
<sevenseacat> how is that even related?
<Radar> lol
<wasamasa> hubris
<Radar> gem install mechanise
<Radar> require 'mechanize'
<Radar> Whoops, I spelled it wrong the first time
<Radar> And then mechanize handles all the session handling
<Radar> Well, I've said my piece. Now KINGSABRI can choose to ignore my advice (which I've gained over 10+ years of doing Ruby) or follow it.
<KINGSABRI> I respect your advice man for sure, Radar
nofxx has quit [Ping timeout: 260 seconds]
<Ox0dea> KINGSABRI: Are you using Net::HTTP, then?
<KINGSABRI> yes, Ox0dea
<Ox0dea> KINGSABRI: Responses can be converted to Hashes of their headers quite easily.
<Ox0dea> Combine that with Hash#merge and some override logic and you might be good to go.
dogweather has joined #ruby
<KINGSABRI> Ox0dea: I didnt get it clearly, would you explain more plz ?
<Ox0dea> KINGSABRI: Net::HTTP.new('www.google.com').get('/').each.to_h
<Ox0dea> Observe that output.
jenrzzz has joined #ruby
<Ox0dea> I trust you know that you can pass along a Hash to use as the request's headers?
<KINGSABRI> yes I can pass it manually, like request["Connection"] = "keep-alive"
leat1 has quit [Remote host closed the connection]
<Ox0dea> Right, but you can also provide it in calls to #get, #post, &c.
nux443 has joined #ruby
<KINGSABRI> but to do login then take the session to put it in another request , no
<Ox0dea> In that case, you're really only interested in the "Set-Cookie" response header(s) and the "Cookie" request header.
leat1 has joined #ruby
<Ox0dea> KINGSABRI: And yes, you can pluck the session cookie from the response and use it in a subsequent request; that's... what a session is.
towski_ has joined #ruby
<KINGSABRI> Ox0dea: I'll try it on http://test2.richardhealey.com/ then send the snappit it's ok
tk__ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
tk__ has joined #ruby
rippa has joined #ruby
nux443 has quit [Remote host closed the connection]
nux443 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bluish has joined #ruby
yfeldblu_ has joined #ruby
jimms has joined #ruby
bsdbofh has quit [Quit: +++CARRIER LOST+++]
hyy1 has joined #ruby
krz has joined #ruby
sdfgsdfg has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
sdfgsdfg has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
nux443 has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Ping timeout: 244 seconds]
nux443 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aidanharris1 has joined #ruby
nzst has joined #ruby
workmad3 has joined #ruby
mblagden has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 272 seconds]
slackbotgz has joined #ruby
nzst has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
Jackneill has joined #ruby
yfeldblum has joined #ruby
Rinzlit has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
<KINGSABRI> Ox0dea: do all application cookies are in "set-cookie" whatever it was?
<Ox0dea> KINGSABRI: For all intensive porpoises, yes.
yfeldblum has quit [Ping timeout: 260 seconds]
psy_ has joined #ruby
<KINGSABRI> because some application has like ton of cookies especially .Net :(
tkuchiki has joined #ruby
<Ox0dea> Does that matter?
<KINGSABRI> It depends on the application and what it dose use these cookies for interm of session managment
<Ox0dea> You're free to experiment to determine which cookies are necessary for maintaining your session, but why bother?
Rinzlit has joined #ruby
jgt has joined #ruby
<KINGSABRI> Ox0dea: well I'm doing some custom scripts for security testing (PT)
<KINGSABRI> so sometime I need to have more control in my scripts and I'm facing a lot of application with different mind sets
<Ox0dea> Do be sure to try some of those strings as cookie values. :P
jxpx777 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<KINGSABRI> LOL, like it ,, fork for sure :D
bruno- has joined #ruby
<KINGSABRI> Ox0dea: I'm writing a small reference (not a real book) for ruby that helps pentesters for the main tasks we uses to need.
<KINGSABRI> Ox0dea: it's hosted on gitbook (http://ruby.net)
<KINGSABRI> you may get what I mean,, in pentest sometime we need quick dirty solutions usually not clearly explianed
acke has joined #ruby
acke has quit [Remote host closed the connection]
<Ox0dea> KINGSABRI: So you intend to spread your misguided embrace of Not Invented Here to unsuspecting victims? That's not very nice.
<Ox0dea> Teach newcomers to use The Right Tool for the Job.
acke has joined #ruby
<KINGSABRI> Ox0dea: I'm teaching ruby
<KINGSABRI> that reference is not to teach ruby ,, just a quick reference
jxpx777 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 240 seconds]
<KINGSABRI> and I'm not the bad guy in this story
<wasamasa> ruby.net is blank for me
auzty has quit [Quit: Leaving]
<wasamasa> inb4 it's all ads
<wasamasa> yup
<wasamasa> yay for domain parking
<wasamasa> lol
<KINGSABRI> sorry not ruby.net , it's rubyfu.net
<wasamasa> this thing is riddled with typos
<KINGSABRI> Ox0dea: doing PT is not an evil think, I'm doing it professionally not as black hat guy
<KINGSABRI> wasamasa: yes ,, it needs lots of review
quazimodo has joined #ruby
<wasamasa> KINGSABRI: if ESR is to be trusted, Real Hackers™ will find that impolite
<KINGSABRI> wasamasa: how is that? and what do you mean by Real Hackers?
<wasamasa> the reasoning being that if you cannot even get your orthography right, you aren't worth bothering their time with
<wasamasa> I'm being ironic of course as it's clear that what ESR holds in high regard is a rosy depiction of himself
<KINGSABRI> wasamasa: they care about getting the job done, disbite of typo
<wasamasa> KINGSABRI: in case you don't have any clue what I'm talking about, http://www.catb.org/~esr/faqs/hacker-howto.html
weemsledeux has joined #ruby
dionysus69 has joined #ruby
<wasamasa> KINGSABRI: this is not about people themselves, this is about communication with whatever you call "hackers"
diegoaguilar has quit [Remote host closed the connection]
<KINGSABRI> it's premative page,, communication between hackers is about ideas
<wasamasa> good luck with that if you can't even get english right :P
<KINGSABRI> I've met a lot of ppl this year in blackhat and defcon ,, many of them not English native and they have english worst than mine, but they are great
Gnomethrower has joined #ruby
bruno- has joined #ruby
<KINGSABRI> wasamasa: tell russians and chines that ;)
<wasamasa> KINGSABRI: I am from the ukraine, thank you
nux443 has quit [Ping timeout: 246 seconds]
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
<bougyman> Manibulating?
<bougyman> you spell it right in the title.
<KINGSABRI> manipulating ?
<bougyman> Manibulating UDP protocol
<bougyman> Manibulating ICMP protocl
slackbotgz has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
<KINGSABRI> ah ,, typo ,, typo
nux443 has joined #ruby
<bougyman> that's not bad english skills, rather lack of proofreading/laziness.
<KINGSABRI> I'll fix that for sure , bougyman
<KINGSABRI> and thanks for you quick observation guys
krz has quit [Ping timeout: 260 seconds]
jgt1 has joined #ruby
nux443 has quit [Remote host closed the connection]
KINGSABRI has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
rushed has quit [Quit: rushed]
jgt has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
timonv has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
Mendenhall has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
leat1 has quit [Remote host closed the connection]
roxtrongo has joined #ruby
lipoqil has joined #ruby
leat1 has joined #ruby
DrIranian has joined #ruby
tk__ has quit [Quit: ばいばい]
fantazo has joined #ruby
sp_ has joined #ruby
acke has quit [Quit: Leaving...]
yfeldblum has joined #ruby
mrtg9970 has joined #ruby
DrIranian has left #ruby [#ruby]
[k- has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
ohaibbq_ has quit [Quit: Leaving...]
mrtg9970 has quit [Client Quit]
mrtg9970 has joined #ruby
davedev2_ has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
siaw has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
devoldmx has joined #ruby
lipoqil has quit [Quit: Leaving...]
ghr has joined #ruby
DoubleMalt has joined #ruby
jaequery has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
m3ow1504_x has quit [Read error: Connection reset by peer]
m3ow1504_x has joined #ruby
<Ox0dea> For real, though, interpreters are enumerable: https://eval.in/424584
<jhass> lol
<Ox0dea> What's with `.` being executed 10 times, though?
<Ox0dea> Should be 8?
gibre has quit [Quit: Leaving]
neanderslob has quit [Read error: Connection reset by peer]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aidanharris1 has quit [Read error: Connection reset by peer]
face has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
faces has quit [Ping timeout: 246 seconds]
jimms has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
faces has joined #ruby
faces has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
face has quit [Ping timeout: 260 seconds]
lipoqil has joined #ruby
stamina has joined #ruby
Pupeno has joined #ruby
yfeldblum has joined #ruby
leat1 has quit [Remote host closed the connection]
m3ow1504_x has quit [Read error: Connection reset by peer]
m3ow1504_x has joined #ruby
leat1 has joined #ruby
mrtg9970 has quit [Remote host closed the connection]
jimms has joined #ruby
Voker57 has joined #ruby
bluish has quit [Quit: WeeChat 1.2]
lkba_ has quit [Ping timeout: 250 seconds]
pandaant has joined #ruby
arooni-mobile has quit [Ping timeout: 246 seconds]
grenierm has joined #ruby
rushed has joined #ruby
johnflux has quit [Remote host closed the connection]
jimms_ has joined #ruby
KINGSABRI has joined #ruby
michael_mbp has quit [Excess Flood]
workmad3 has joined #ruby
michael_mbp has joined #ruby
jimms has quit [Ping timeout: 260 seconds]
yfeldblu_ has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
catoblepa has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nzst has joined #ruby
tsujp has joined #ruby
sevenseacat has quit [Quit: .]
bkxd has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
bkxd has quit [Client Quit]
fantazo has quit [Ping timeout: 260 seconds]
drunkdad has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
nzst has quit [Ping timeout: 246 seconds]
bladiebla has joined #ruby
bladiebla has left #ruby [#ruby]
jxpx777 has joined #ruby
r0x0rZ has quit []
jxpx777 has quit [Read error: Connection reset by peer]
stamina has quit [Ping timeout: 264 seconds]
DLSteve has joined #ruby
bronson has joined #ruby
devoldmx has joined #ruby
tno has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
krz has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
PaulCape_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
juanpablo_ has joined #ruby
Alina-malina has joined #ruby
KINGSABRI has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 244 seconds]
yashinbasement has quit [Quit: Leaving]
Musashi007 has quit [Quit: Musashi007]
ecnalyr has joined #ruby
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
ecnalyr has quit [Ping timeout: 250 seconds]
BackEndCoder has quit [Ping timeout: 245 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
houhoulis has quit [Remote host closed the connection]
workmad3 has joined #ruby
BackEndCoder has joined #ruby
rushed has quit [Quit: rushed]
codenapper has joined #ruby
<apeiros> :-O
<apeiros> chanserv! that sneaky bastard!
<apeiros> steals jhass' wizard hat!
<adaedra> apeiros used substitute
workmad3 has quit [Ping timeout: 240 seconds]
<Ox0dea> I like shorts.
PaulCape_ has quit [Ping timeout: 240 seconds]
m3ow1504_x has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
m3ow1504_x has joined #ruby
keen___________7 has joined #ruby
<siaw> hello Rubyists, this piece works in ruby ‘Array.new(3) { rand(100) }’
keen___________6 has quit [Ping timeout: 260 seconds]
<siaw> now, what can i do to make sure an object accepts a block in Ruby?
<jhass> an object doesn't, a method does
<adaedra> methods accept blocks
<siaw> how can i ask Array, hey Array, do you accept blocks? is this possible?
codenapper has quit [Ping timeout: 256 seconds]
<jhass> for .new you should look at the corresponding #initilize's docs
<siaw> ok. so how do i ask a method if it accept blocks?
<jhass> it's usually documented
<jhass> for core and stdlib methods at least
<siaw> jhass: how do i find that?
<jhass> look at the docs
<jhass> ruby-doc.org
<jhass> ri, your local rdocs, devdocs.io, rubydoc.info, whatever you're fancy
<apeiros> somebody up for some community work for #ruby?
<apeiros> we need a section in ruby-community.com which is behind a login using github accounts
<jhass> (you should mention what it'd be)
<apeiros> jhass: fo reel?
<adaedra> apeiros: devise!
<apeiros> adaedra: I hear you volunteer? :D
<jhass> yah, u slow typer
<siaw> jhass: thank you
<apeiros> jhass: I just got up!
<pawnbox> :D
<adaedra> apeiros: #ruby-community
<apeiros> sure
Kallis has joined #ruby
<pawnbox> apeiros: sure i got some time.
<jhass> pawnbox: please join #ruby-community too ;)
roxtrongo has quit [Remote host closed the connection]
yfeldblu_ has quit [Read error: Connection reset by peer]
<apeiros> oh dear…
<apeiros> updating everything to ruby 2.2.3 :D
tsujp has quit [Quit: tsujp is snoozing]
m3ow1504_x has quit [Read error: No route to host]
m3ow1504_x has joined #ruby
codenapper has joined #ruby
charliesome has joined #ruby
m3ow1504_x has quit [Client Quit]
yfeldblum has joined #ruby
nux443 has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
bkxd has joined #ruby
<al2o3-cr> Is #!/usr/bin/env ruby -rjson -rnokogiri legit?
<jhass> kinda, though I'd prefer require "json"; require "nokogiri" below
<adaedra> I think some system don't support shebangs with more than one argument
<jhass> can we call that hashbang please btw?
siaw has quit [Quit: siaw]
<al2o3-cr> So explicitly calling require better
<al2o3-cr> Seems fair
<al2o3-cr> adaedra: ok cheers
yfeldblu_ has joined #ruby
AccordLTN has quit []
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
allcentury has joined #ruby
bkxd has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<al2o3-cr> Can someone explain to me how this works ~/$/
riotjones has quit [Ping timeout: 264 seconds]
<al2o3-cr> Is it a shorcut for $_.size?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AccordLTN has joined #ruby
<Ox0dea> Indeed it is.
UtkarshRay has joined #ruby
<Ox0dea> ~ with no LHS matches against $_ and returns the index at which it matched, and /$/ just matches the end of the string.
<al2o3-cr> Ox0dea: but the former doesn't count \n right?
<Ox0dea> That's true.
sdothum has joined #ruby
<al2o3-cr> Ok, thanks Ox0dea
<Ox0dea> Sure thing.
<Ox0dea> al2o3-cr: Did you encounter that in the wild?
<al2o3-cr> Yeah, looking at some code golf :)
dgutierrez1287 has joined #ruby
<Ox0dea> I should perhaps clarify that it wasn't quite correct to refer to an LHS at all; it's just an invocation of Regexp#~, which has a rather special default definition.
devsh has joined #ruby
<Ox0dea> jhass: "Shebang" is off-limits now?
Cust0sLim3n has quit [Ping timeout: 252 seconds]
<jhass> I'm just asking
<Ox0dea> But why even bother?
<wasamasa> I dunno, but hashbang made more sense to me
<jhass> hashbang just makes so much more sense to me and the reasons for using/coming up for shebang I can come up with are not pretty...
<Papierkorb> has nothing to do with 'she' and 'bang'
<Ox0dea> jhass: There is a trove of historical precedent on this matter.
<wasamasa> it's an abbreviation for shell?
<Papierkorb> shebang is perfectly fine, if you're offended, you chose to be so yourself
dgutierrez1287 has quit [Ping timeout: 246 seconds]
gizmore has joined #ruby
Cust0sLim3n has joined #ruby
<wasamasa> is pound-bang even more offensive?
<Ox0dea> jhass: Why are you fine with preserving the "bang" bit? Doesn't that have the potential to offend the asexual?
<Papierkorb> ^
<jhass> gosh, it was a question, no need to troll me
<Ox0dea> I think you were trolling in asking it.
catoblepa has quit [Ping timeout: 264 seconds]
<al2o3-cr> Ox0dea: ah, ok
<Papierkorb> "SJWs" already made the world a worse place. They don't want to discuss, only disrupt. By bowing down these trolls get what they wanted. And what did the Internet teach us? "Don't feed the trolls."
<bnagy> oh fuck off
CloCkWeRX has joined #ruby
<bnagy> I am not an SJW but the only time I ever hear the term is white male assholes trolling on social media
<wasamasa> so, SJW means "person I'm not agreeing with"?
<al2o3-cr> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<bnagy> the world doesn't owe you a right to be an offensive asshole when you know it offends people
<al2o3-cr> I wanted to that :)
<Papierkorb> bnagy: Now you're assuming everyone is white and male. That's unfair.
<bnagy> wrt shebang, that's the term I learnt like 25 years ago, but whatever, things change
<jhass> Papierkorb: bnagy didn't mean to spawn that level of discussion here, please move it to -offtopic or your query
krz has quit [Ping timeout: 240 seconds]
<al2o3-cr> Right, ok, who was the instigator lol :)
dseitz has quit [Quit: naptime]
platzhirsch has joined #ruby
nzst has joined #ruby
<sp_> /10/1
devsh has quit [Ping timeout: 246 seconds]
sevenseacat has joined #ruby
nzst has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
ndrei has joined #ruby
dorei has joined #ruby
NeverDie has joined #ruby
arup_r_ has joined #ruby
arup_r_ has quit [Remote host closed the connection]
arup_r_ has joined #ruby
jimms_ has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
ghr has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 250 seconds]
tk__ has joined #ruby
juanpablo_ has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
krz has joined #ruby
eightfold has quit [Quit: eightfold]
m8 has joined #ruby
lkba has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
howdoi has joined #ruby
tsujp has joined #ruby
<Papierkorb> http://pastie.org/private/iuqcyxshcrfujrtku4vha is there something more idiomatic than line 2? I want it to turn a Symbol into a String, but leave anything else like it is
CloCkWeRX has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
<wasamasa> ternary operator?
<al2o3-cr> ^ yeah use a ternary
codecop has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 272 seconds]
patrick_star has quit [Ping timeout: 250 seconds]
iceyec has quit [Remote host closed the connection]
skade has joined #ruby
skade has quit [Client Quit]
workmad3 has joined #ruby
CloCkWeRX has joined #ruby
fantazo has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
nanoz has joined #ruby
arup_r has joined #ruby
ReK2 has quit [Ping timeout: 264 seconds]
siaw has quit [Quit: siaw]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
mprelude has joined #ruby
solocshaw has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
unrar has joined #ruby
<unrar> Hello there
<mprelude> Hey
siaw has joined #ruby
solocshaw has joined #ruby
<al2o3-cr> o/
<unrar> So I am working on this project that I just came up with, it probably already exists but yolo I think it's a relatively good idea
allcentury has joined #ruby
devoldmx has joined #ruby
<unrar> The main idea is that it's a ruby sorta middleware for databases, you can write a JSON file which would be like a scheme of an API and then this middleware turns it into a real API
<unrar> RESTful I guess,
<unrar> Am I reinventing the wheel?
tsujp has quit [Quit: tsujp is snoozing]
tkuchiki has joined #ruby
<jhass> I think I've seen that before, yeah
<wasamasa> funny
<wasamasa> I thought REST was for resources, not data
<unrar> Actually I hate REST
fast_scooter has joined #ruby
<unrar> lmao
<wasamasa> which would inevitably lead to impedance mismatches once you go beyond basic CRUD
<unrar> Well then I'm going to reinvent the wheel but nevermind because my wheel is going to be better
<wasamasa> but if you're using your database just for CRUD instead of making the most of relations...
<wasamasa> I could see this work out
devoldmx_ has joined #ruby
<jhass> https://github.com/begriffs/postgrest was probably what I was thinking off
devoldmx has quit [Ping timeout: 244 seconds]
mprelude has quit [Quit: WeeChat 1.3]
mprelude has joined #ruby
<unrar> i do not use Rails tho
<unrar> i mean i actually hate rails that's why I wrote RMVC
<wasamasa> I begin to see a pattern
fast_scooter has quit [Ping timeout: 265 seconds]
allcentury has quit [Ping timeout: 240 seconds]
tk__ has quit [Quit: ばいばい]
<unrar> there ya go this is my wheel https://github.com/unrar/midb
<unrar> it's more like a draft but i'm bad at finding ideas so i'm kinda working on it for the sake of doing something useful
<jhass> does it doe jsonapi.org?
<jhass> -e
<wasamasa> so, postgrest does actually reuse as much as possible from postgres by going for views and transforming these from and to json
<wasamasa> interesting
<unrar> probably not
<wasamasa> probably the only way of not mutilating the capabilities of the API :P
<Papierkorb> jsonapi.org reads like HAL http://stateless.co/hal_specification.html
<unrar> I've never done much Javascript or JSON so my JSON sucks tremendously but I guess it works
<mprelude> I don't like rails much either.
pawnbox has quit [Ping timeout: 255 seconds]
<unrar> The thing with Rails is that I get frustrated because I want to know exactly everything that's going on
<unrar> That's why the (very few) web apps I do, I do in PHP lmao
roxtrongo has joined #ruby
<unrar> hate me
fast_scooter has joined #ruby
<Zarthus> php might not be the best language if you want to know what's going on ;)
eightfold has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
<unrar> I agree
<unrar> but i also know what's not going on
<unrar> i barely do web dev anyway
freezevee has joined #ruby
dgutierrez1287 has joined #ruby
roxtrongo has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
centrx has joined #ruby
centrx has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 246 seconds]
Guest81018 has joined #ruby
stamina has joined #ruby
Guest81018 has quit [Client Quit]
devoldmx_ has quit [Ping timeout: 265 seconds]
sameerynho has joined #ruby
sankaber has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
The_Phoenix has quit [Ping timeout: 265 seconds]
<arup_r> what is RMVC ?
<unrar> some lame framework i started developing like two years ago
<arup_r> R stands for ?
The_Phoenix has joined #ruby
<unrar> the idea is to use the MVC architecture and some of the benefits of Rails like generators and migrations and stuff, but without a preference for web apps
<unrar> ruby lmao
<unrar> And the thing is that I tried to keep it simple so it's much more simple than Rails but it's still helpeful, that JSON API thing I'm doing with RMVC
<unrar> see the repo https://github.com/unrar/rmvc
<unrar> i really have to change the models and views and controllers defaults and make them real objects rather than static classes because it looks so lame but meh it works
<sevenseacat> "hate" is a very strong word. I think it implies misunderstanding.
dionysus69 has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
<unrar> tru
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
fast_scooter has quit [Quit: fast_scooter]
<Papierkorb> unrar: "require `./app/controllers/sudokusolver_controller`" were you looking for require_relative?
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
<unrar> not really
<unrar> well i don't think so, using the ./ thing it becomes a path relative to the main file which is what i want
<unrar> does require_relative do the same without the ./?
<Papierkorb> yes.
<unrar> oh great, thanks
catoblepa has joined #ruby
<unrar> this kind of stupidities are common in RMVC because most of the thing was coded 2 years ago, I was so dumb lol
siaw has quit [Quit: siaw]
fast_scooter has joined #ruby
siaw has joined #ruby
nanoz has quit [Ping timeout: 244 seconds]
kirun has joined #ruby
skade has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
meatherly has joined #ruby
lokulin has quit [Ping timeout: 256 seconds]
hackeron has quit [Ping timeout: 250 seconds]
hackeron has joined #ruby
enebo has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
leat1 has quit [Ping timeout: 240 seconds]
skade has quit [Read error: Connection reset by peer]
rippa has quit [Read error: Connection reset by peer]
meatherly has quit []
skade has joined #ruby
cntrx has joined #ruby
leat1 has joined #ruby
dionysus69 has joined #ruby
fast_scooter has quit [Quit: fast_scooter]
atomical has joined #ruby
cntrx has quit [Client Quit]
freezevee has quit [Read error: No route to host]
CloCkWeRX has quit [Quit: Leaving.]
kies^ has quit [Ping timeout: 245 seconds]
skade has quit [Client Quit]
catoblepa has quit [Ping timeout: 260 seconds]
jimms has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gnomethrower has quit [*.net *.split]
jeadre has quit [*.net *.split]
Azure has quit [*.net *.split]
ebbflowgo has quit [*.net *.split]
araujo has quit [*.net *.split]
A124 has quit [*.net *.split]
sanguisdex has quit [*.net *.split]
Biohazard_ has quit [*.net *.split]
kent\n has quit [*.net *.split]
jso has quit [*.net *.split]
raypulver has quit [*.net *.split]
nisstyre has quit [*.net *.split]
jud has quit [*.net *.split]
modern has quit [*.net *.split]
Thr3d has quit [*.net *.split]
cajone has quit [*.net *.split]
Dopagod has quit [*.net *.split]
Nirgali42 has quit [*.net *.split]
crankharder has quit [*.net *.split]
kent\n has joined #ruby
modern has joined #ruby
modern has quit [Changing host]
modern has joined #ruby
Nirgali42 has joined #ruby
Biohazard has joined #ruby
crankharder has joined #ruby
raypulver has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
sanguisdex has joined #ruby
cajone has joined #ruby
lokulin has joined #ruby
jso has joined #ruby
Dopagod has joined #ruby
ebbflowgo has joined #ruby
Azure has joined #ruby
araujo has joined #ruby
raypulver has quit [*.net *.split]
iamninja has quit [*.net *.split]
kirun has quit [*.net *.split]
hyy1 has quit [*.net *.split]
yeticry has quit [*.net *.split]
rideh has quit [*.net *.split]
bast has quit [*.net *.split]
chrishough has quit [*.net *.split]
Meow-J has quit [*.net *.split]
dwithers has quit [*.net *.split]
_joes__ has quit [*.net *.split]
preyalone has quit [*.net *.split]
alxndr has quit [*.net *.split]
pizzaops has quit [*.net *.split]
bttf has quit [*.net *.split]
zipkid has quit [*.net *.split]
sparr has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
borkdude has quit [*.net *.split]
hahuang61 has quit [*.net *.split]
nahtnam has quit [*.net *.split]
lea has quit [*.net *.split]
verto has quit [*.net *.split]
Olipro has quit [*.net *.split]
hellschreiber has quit [*.net *.split]
ddv has quit [*.net *.split]
Trieste has quit [*.net *.split]
chris2 has quit [*.net *.split]
_aeris_ has quit [*.net *.split]
sross07 has quit [*.net *.split]
aibo has quit [*.net *.split]
djbender has quit [*.net *.split]
nw has quit [*.net *.split]
ebarrett has quit [*.net *.split]
RTG` has quit [*.net *.split]
wmoxam has quit [*.net *.split]
retornam has quit [*.net *.split]
soloone has quit [*.net *.split]
cookiez has quit [*.net *.split]
eam has quit [*.net *.split]
mist has quit [*.net *.split]
wmoxam has joined #ruby
eam has joined #ruby
soloone has joined #ruby
rideh has joined #ruby
rideh has quit [Changing host]
rideh has joined #ruby
lea has joined #ruby
nw has joined #ruby
ebarrett has joined #ruby
iamninja has joined #ruby
yeticry has joined #ruby
_aeris_ has joined #ruby
Olipro has joined #ruby
dwithers has joined #ruby
hyy1 has joined #ruby
sross07 has joined #ruby
kirun has joined #ruby
Thr3d has joined #ruby
sparr has joined #ruby
bast has joined #ruby
hahuang61 has joined #ruby
chrishough has joined #ruby
nw is now known as Guest46259
jeadre has joined #ruby
millerti has joined #ruby
verto has joined #ruby
retornam has joined #ruby
coffeejunk has joined #ruby
borkdude has joined #ruby
nisstyre has joined #ruby
araujo has quit [Max SendQ exceeded]
chris2 has joined #ruby
_joes__ has joined #ruby
raypulver has joined #ruby
RTG` has joined #ruby
araujo has joined #ruby
nux443 has quit [Ping timeout: 246 seconds]
djbender has joined #ruby
alxndr has joined #ruby
zipkid has joined #ruby
grenierm has quit [Quit: grenierm]
nahtnam has joined #ruby
mist has joined #ruby
pizzaops has joined #ruby
bttf has joined #ruby
hellschreiber has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
kies^ has joined #ruby
catoblepa has joined #ruby
ndrei has joined #ruby
nux443 has joined #ruby
server2client has joined #ruby
preyalone has joined #ruby
<[k-> Work it Harder, Make it Better, Do it Faster, Makes Us Stronger
juanpablo_ has joined #ruby
Meow-J has joined #ruby
<[k-> go everyone!!!
<[k-> apeiros ^ shevy
<server2client> i want to doucumnetation work for tuby as open-source beginner need roadmap..
stamina has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
server2client has quit [Client Quit]
sever2client has joined #ruby
nux443 has quit [Ping timeout: 272 seconds]
<sever2client> i want to doucumnetation work for tuby as open-source beginner need roadmap..
juanpablo_ has quit [Ping timeout: 264 seconds]
<sever2client> i want to doucumnetation work for tuby as open-source beginner need roadmap..
<[k-> calm down
<[k-> Work it Harder, Make it Better, Do it Faster, Makes Us Stronger
meatherly has joined #ruby
rbennacer has joined #ruby
dimasg has joined #ruby
devoldmx has joined #ruby
<sever2client> how
<sever2client> any tutorial?
<[k-> Yard is a nice tool for documenting ruby
devoldmx has quit [Remote host closed the connection]
freezeve_ has joined #ruby
<[k-> they have tutorials on the site itself
<sever2client> do i have to do it by git?
<[k-> nope
<sever2client> main aim is to built portfolio by doing open-source work in ruby...
<sevenseacat> is this a joke? :/
flughafen has quit [Quit: WeeChat 1.0]
<sever2client> do i get any recognition?
ghr has joined #ruby
nux443 has joined #ruby
fast_scooter has joined #ruby
<sevenseacat> sever2client: you want us to find you a tutorial, then you want to get lots of recognition for following it?
<apeiros> sever2client: doing documentation work can get you as far as a ruby-hero award
gibre has joined #ruby
<apeiros> but the person who received one for doc work did *a lot* of doc work
<[k-> apeiros! work it faster make us stronger!
<sever2client> it is not done by git, then how do i show to people about my work?
<[k-> wait, what are you asking?
anandubajith has joined #ruby
meatherly has quit []
<[k-> are you asking how to document, ways to document or how to contribute
<sevenseacat> [k-: it helps if you read the question.
<sever2client> how do people know that i have done some work for ruby
<sever2client> until it is not comit in git
enebo has quit [Quit: enebo]
ghr has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
<[k-> sevenseacat: it helps when the problem isnt stated in many lines :s
fast_scooter has quit [Quit: fast_scooter]
<sever2client> [k-: ok! tell me the process of documenting ruby first?
<[k-> sever2client: so you want to contribute to Ruby
<[k-> read this: documenting-ruby.org
<sever2client> exactly!!!
<sever2client> also how do people know that this is my work?
last_staff has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
<[k-> it will be in the changelog
<[k-> everyone checks the changelog
<sever2client> m seeing thanks
nux443 has quit [Ping timeout: 246 seconds]
rfmind_ has quit [Ping timeout: 240 seconds]
<wasamasa> don't worry, nobody ever cares about the developer
<wasamasa> if you want to be a rockstar, better learn to play the guitar
nux443 has joined #ruby
_aeris_ has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
flughafen has joined #ruby
<[k-> ctrl+f [DOC]
<sever2client> hey!! i seeing the documnetation page there it says ruby 1.9.3 why not 2.2 http://blog.steveklabnik.com/posts/2011-05-10-contributing-to-ruby-s-documentation
_aeris_ has joined #ruby
<sevenseacat> because 2.2 didnt exist then.
<sever2client> why not they have edited till now?
<sevenseacat> -_-
dimasg has quit [Ping timeout: 272 seconds]
<[k-> that post is from 2011.
<sever2client> but it can be changed too
<[k-> how old are you sever2client?
dimasg has joined #ruby
dimasg has quit [Client Quit]
<sever2client> 20
<sever2client> but why?
victortyau has joined #ruby
<[k-> no one has time for these things
<sevenseacat> sever2client: is everything you've ever written on the internet completely up to date?
<[k-> if everyone had to make sure everything they write is up to date, they wouldn't write things at all
<sevenseacat> indeed.
<apeiros> sure they would
<[k-> kudos to you for wanting to keep documentation up to date
<apeiros> lots of updates :D
<sever2client> those were the major changes needed to be done i think
<[k-> apeiros: do it faster! make it better!
<apeiros> [k-: can you stop that?
<sever2client> m agree with ur point too
<[k-> okay...
davedev24 has joined #ruby
Rinzlit has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 252 seconds]
jimms has joined #ruby
rfmind_ has joined #ruby
meatherly has joined #ruby
DCameronMauch has joined #ruby
havenwood has joined #ruby
DCameronMauch has left #ruby [#ruby]
ndrei has joined #ruby
skade has joined #ruby
rbennacer has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 265 seconds]
skade has quit [Client Quit]
platzhirsch has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
bazbing80 has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
nullundefine has joined #ruby
nullundefine has left #ruby [#ruby]
Jackneill has quit [Read error: Connection reset by peer]
skade has joined #ruby
Jackneill has joined #ruby
nofxx has joined #ruby
nux443 has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
catoblepa has quit [Ping timeout: 260 seconds]
atzorvas has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
nux443 has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
Azure has joined #ruby
Azure has quit [Client Quit]
theery has joined #ruby
<sever2client> there on documentation page it has been given only 75% are documneted, but how do i know which portion are not doucumneted
<sever2client> how to figure out not documented part?
<wasamasa> a programmer figures out such things on their own
<wasamasa> be it using git, actually understanding code to write documentation for it, finding out what parts are yet undocumented, etc.
bruno- has joined #ruby
<wasamasa> it's why they're programmers, because they have more to show than just a vague desire to improve things
<sever2client> then how one can assess only 75% are documented
tkuchiki has quit [Remote host closed the connection]
<Papierkorb> also, regexes to find undocumented parts.
<havenwood> sever2client: Read all the documentation and then what you don't know are the undocumented parts
tsujp has joined #ruby
freerobby has quit [Quit: Leaving.]
nux443 has quit [Ping timeout: 246 seconds]
<arup_r> wasamasa: documentation indeed needed. It helps community, not all programmer started programming at the age of 12 or so...
drunkdad has quit [Quit: WeeChat 1.3]
spider-mario has joined #ruby
tkuchiki has joined #ruby
<sever2client> sahi baat arup
<arup_r> for example, Python documentation and then Java documentation made by Oracle etc
nux443 has joined #ruby
<arup_r> sevenseacat: hanji...
skade has quit [Quit: Computer has gone to sleep.]
<sevenseacat> ?
<sever2client> ha ha
Rinzlit has joined #ruby
<arup_r> sevenseacat: regional language..
<arup_r> :D
<sevenseacat> okay...?
<sever2client> can i say documentation include writting things
<sever2client> how ruby works
bruno- has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 252 seconds]
nux443 has quit [Ping timeout: 265 seconds]
meatherly has quit []
nux443 has joined #ruby
<adaedra> sevenseacat: I'd say tab fail
<havenwood> starts with "s" and ends with "t" with stuff in-between, checks out
<wasamasa> sever2client: in case you actually figure out how to do all of that, please learn english first
<wasamasa> sever2client: documentation in engrish won't help any of us
<sever2client> there it needed to be well , short coded form, isn't?
<[k-> it needs to be in clear accurate English
Dzejmskrokan has joined #ruby
<[k-> if your documentation is unclear, you will be told/taught how to improve it
sdfgsdfg has quit [Read error: Connection reset by peer]
<sever2client> nice
nux443 has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
nux443 has joined #ruby
krz has joined #ruby
<arup_r> sever2client: you are from ?
<sever2client> living in orissa
<sever2client> and u?
<[k-> when you state where you are from, it would be nice to give the country as well
<arup_r> Bangalore
<sever2client> final year undergrad of enginnering
jimms has joined #ruby
<arup_r> but I am from Kolkata :) your neighbor
<sever2client> u r a profrssional or student?
<arup_r> profes
moss has joined #ruby
<[k-> professional student
<arup_r> :)
<sever2client> m bit dissappointed there no ruby camp here..
<arup_r> I know
<sever2client> i think even banglore also lacks these things
jimms has quit [Client Quit]
timonv has joined #ruby
<sever2client> ruby is more popular in bay area(silicon valy)
Pupeno has quit [Remote host closed the connection]
<sever2client> [k-: india
Pupeno has joined #ruby
rbennacer has quit [Remote host closed the connection]
<adaedra> [k-: What about world? What if there are aliens in this channel?
rbennacer has joined #ruby
<sever2client> adaedra: surely they are the guest of elon musk
<[k-> im sure the country would somehow identify the world
theery has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
jalljo has quit [Ping timeout: 244 seconds]
northfurr has joined #ruby
leat1 has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
leat1 has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
theery has quit [Remote host closed the connection]
thebastl has joined #ruby
bruno- has joined #ruby
jalljo has joined #ruby
catoblepa has joined #ruby
Dzejmskrokan has quit [Remote host closed the connection]
tsujp has joined #ruby
nux443 has quit [Ping timeout: 244 seconds]
Yzguy has joined #ruby
tkuchiki has quit [Remote host closed the connection]
enebo has joined #ruby
tkuchiki has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
s00pcan has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
bluish has joined #ruby
s00pcan has joined #ruby
juanpablo_ has joined #ruby
bubbys has joined #ruby
<pontiki> hi
<[k-> hi
juanpablo_ has quit [Ping timeout: 240 seconds]
tsujp has quit [Quit: tsujp is snoozing]
radgeRayden_ has quit [Read error: Connection reset by peer]
banjara has joined #ruby
bazbing80 has joined #ruby
northfurr_ has joined #ruby
unrar has quit [Quit: Leaving]
kdman has joined #ruby
bluish has quit [Quit: WeeChat 1.2]
ecnalyr has joined #ruby
Pupeno_ has joined #ruby
aibo has joined #ruby
alejo_ has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
thebastl has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
ecnalyr has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Client Quit]
exadeci has joined #ruby
JBrickley has joined #ruby
northfurr_ has quit [Quit: northfurr_]
gener1c has joined #ruby
<gener1c> olla
northfurr has quit [Quit: northfurr]
ghr has joined #ruby
<gener1c> konichiwa
<pontiki> ciao
<gener1c> how are you pontiki :D
s00pcan has quit [Ping timeout: 246 seconds]
<pontiki> doing ok
sumark has quit [Remote host closed the connection]
<gener1c> good to hear , good to hear
Pupeno has joined #ruby
sumark has joined #ruby
s00pcan has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
leat1 has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 255 seconds]
jmdade has joined #ruby
JBrickley has quit [Quit: Textual IRC Client: www.textualapp.com]
p8952 has quit [Quit: ZNC - http://znc.in]
JBrickley has joined #ruby
freerobby has quit [Quit: Leaving.]
p8952 has joined #ruby
p8952 has quit [Client Quit]
meatherly has joined #ruby
leat1 has joined #ruby
chihhsin has quit [Remote host closed the connection]
p8952 has joined #ruby
anandubajith has quit [Quit: Connection closed for inactivity]
p8952 has quit [Changing host]
p8952 has joined #ruby
p8952 has quit [Client Quit]
p8952 has joined #ruby
kirun_ has joined #ruby
p8952 has quit [Changing host]
p8952 has joined #ruby
p8952 has quit [Client Quit]
thebastl has joined #ruby
p8952 has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
<nahtnam> How do I do #try with division? I tried: `time_played = stats["total_time_played"].try(:/ 3600)` but it doesnt work
kirun has quit [Ping timeout: 260 seconds]
<arup_r> you missed the `,`
<arup_r> .try(:/, 3600)
<nahtnam> oH LOL
<nahtnam> Thanks
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
rippa has joined #ruby
rehat has joined #ruby
JBrickley has quit [Quit: Textual IRC Client: www.textualapp.com]
JBrickley has joined #ruby
Motoservo has quit [Read error: Connection reset by peer]
<nahtnam> Is there a better way to do this? `adr = damage.try(:/, rounds)` it returns an exception instead of nil, if rounds is nil
thebastl has quit [Remote host closed the connection]
stamina has joined #ruby
<apeiros> nahtnam: what do you expect if rounds is nil?
pyon has quit [Quit: brb]
sever2client has quit [Ping timeout: 240 seconds]
<nahtnam> I want the variable to be nil, if either damage or rounds is nil
<nahtnam> and if not, divide them
<apeiros> adr = damage && rounds && damage/rounds
<apeiros> also note that Integer#/ is integer division
<apeiros> >> 3/2
<ruboto> apeiros # => 1 (https://eval.in/424630)
<nahtnam> Yep
<nahtnam> Its a large number, doesnt need decimals
<[k-> the right way™
pyon has joined #ruby
dgutierrez1287 has joined #ruby
<nahtnam> ...
<nahtnam> win_chance = (wins.try(:to_f) / rounds.try(:to_f)).try(:*, 100).try(:round, 2)
<nahtnam> That returns an exception when wins is nil
<nahtnam> it says cant divide a nil
<nahtnam> I thought the point of .try() was to stop exceptions
<[k-> that looks horrible
<[k-> option types ftw!
<nahtnam> Yeah, but I dont want any exceptions
<[k-> maybe try validating your input first
<[k-> method calls are expensive
<nahtnam> I have like 30 different statements that do the same thing
hanmac has joined #ruby
<nahtnam> and all of this is from an api
mistermo_ has quit [Read error: Connection reset by peer]
<[k-> if you are safe guarding every single method, you're doing it wrong
Pupeno has quit [Remote host closed the connection]
chihhsin has joined #ruby
<nahtnam> Well, the problem is that if any of these are missing, my controller throws an exception and stops
Pupeno has joined #ruby
<nahtnam> I want it to set the variable to nil and move on
<nahtnam> instead of throwing an exception
yqt has joined #ruby
platzhirsch has left #ruby [#ruby]
<[k-> if you know that win is a float and round is a float, surely * would work
hays_ is now known as hays
mistermocha has joined #ruby
<[k-> and rounding would work too
<nahtnam> Oh
<nahtnam> I didnt realize it did this
<nahtnam> >> win = nil;round = 1; win.to_f / round.to_f
<ruboto> nahtnam # => 0.0 (https://eval.in/424631)
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<[k-> that's horrible, in my opinion
<nahtnam> Then what should I do?
meatherly has quit []
<[k-> if win.nil? # abort
<apeiros> you should think whether nil is a sensible value at any time
_mak has joined #ruby
<apeiros> or whether there's a more sensible initial value
<_mak> hi there
gamename has joined #ruby
<[k-> will Ruby 3 have option types?
<havenwood> [k-: Use falseyness rather than explicit `nil` check.
<havenwood> nil?*
<soahccc> I just did something stupid but it raised a question. When I obj.extend(SomeModule) can SomeModule overwrite existing methods on obj?
<havenwood> _mak: hi'
<_mak> what could I use with ruby to login to my bank account and grab my balance? I was looking into capybara but it seems that it was meant to work with Rails only
<apeiros> soahccc: extend is an operation on the ancestry of obj
<havenwood> _mak: Considered mechanize?
<apeiros> soahccc: so while it does not *overwrite* an existing method, it can put methods which are higher up in the inheritance chain and "shadow" existing methods
ngscheurich has joined #ruby
<apeiros> soahccc: same as with class A < B, class A can shadow methods defined in B
<_mak> havenwood: cool, I'll check it, thanks
mistermocha has quit [Read error: Connection reset by peer]
<soahccc> apeiros: hmm okay. I extended MonitorMixin onto a queue and new_cond is giving me a mutex one :D
weemsledeux has joined #ruby
mistermocha has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
<rehat> anyone know of a ruby gem that will move files from on directory to another and maintains the folder structure? So folder A has the same files as folder B but those files are in a different folder than they are in folder A
leat1 has quit [Remote host closed the connection]
sever2client has joined #ruby
sever2client has quit [Remote host closed the connection]
<havenwood> rehat: How is that different from just moving files?
leat1 has joined #ruby
sever2client has joined #ruby
pyon has quit [Quit: brb]
modern has quit [Read error: Connection reset by peer]
<havenwood> rehat: Have a little example?
<[k-> you might be overthinking with a tired mind
ngscheurich has quit [Ping timeout: 256 seconds]
pyon has joined #ruby
clarkenciel has joined #ruby
<rehat> folder A -> Folder -> file A and I want to move do a move on folder A to folder B where folder B - Folder (differnt from folder A) -> file A
<rehat> lol
dzejrou has joined #ruby
tmtwd has joined #ruby
sevenseacat has quit [Quit: .]
centrx has joined #ruby
<rehat> I guess I would need to make a script that would take a file from Folder A and then find that same file in Folder B and replace it
jaequery has joined #ruby
<[k-> oh, you just want a symlink then?
chry has joined #ruby
<rehat> nah no symlink from cp and replace
<[k-> it would be expensive to find the file with the same name and then replace it
<[k-> keeping an index of the file is better
<[k-> and you can replace it using that indeed
<[k-> imdex*
<rehat> what do you mean by index?
<[k-> a cache
<[k-> our
<[k-> or* maybe that isnt the right term
Sembei has quit [Excess Flood]
Sembei has joined #ruby
northfurr has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
JBrickley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Client Quit]
jamesaxl has joined #ruby
leafybasil has joined #ruby
devdazed has joined #ruby
rdark has joined #ruby
rdark has quit [Remote host closed the connection]
iateadonut has joined #ruby
joneshf-laptop has joined #ruby
JBrickley has joined #ruby
christiandsg has joined #ruby
<shevy> [k- learn english!
UtkarshRay has joined #ruby
<[k-> (hint: you should have asked your question along these lines to help people understand you: i want to keep a file (the copy) in sync with another "master" file using Ruby. they are in different folders with the same filename. how would i go about doing that?)
<[k-> shevy: my English > your english
<[k-> i respected pronouns, case closed
leat1 has quit [Remote host closed the connection]
ghr has joined #ruby
fantazo has quit [Ping timeout: 256 seconds]
<[k-> i bet you didnt expect that!
leat1 has joined #ruby
houhoulis has joined #ruby
JBrickley has quit [Quit: Textual IRC Client: www.textualapp.com]
decoponio has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 246 seconds]
catoblepa has quit [Ping timeout: 240 seconds]
minimuffins has quit [Ping timeout: 255 seconds]
pranny has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
Dzejmskrokan has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<[k-> shevy never responds :(
mistermocha has joined #ruby
bigmac_ has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
victortyau has quit [Quit: Leaving]
<jhass> maybe you don't make interesting enough questions
<shevy> [k- ah my thoughts are occupied with other things... like what to eat first...
<apeiros> [k-: topic suggestions: biology, dna, utf-8, unicode
<[k-> shevy: suddenly i want to choose to be offended
<apeiros> gah, can't get pry to open a separate session on two IO.pipe's :(
<apeiros> nor on a Socket :<
<[k-> what to eat first shouldn't be the first example you name :(
<[k-> jhass, that was actually a comment, a rhetorical question maybe
<[k-> but a rhetorical question demands no response
<apeiros> where's banister when you need him!
<jhass> hence you should always answer
chinmay_dd has quit [Quit: See ya!]
autrilla has joined #ruby
Swappticon has joined #ruby
rbennacer has quit [Remote host closed the connection]
<shevy> it's more fun to answer rhetorical questions [k-
<[k-> but you don't answer!
<adaedra> apeiros [k-: topic suggestions: biology, dna, utf-8, unicode — Geography, too
pranny has joined #ruby
ghr has joined #ruby
<[k-> I advise you to stop appending geog to everything
mblagden has joined #ruby
dseitz has joined #ruby
jamesaxl|2 has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
quazimodo has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
<shevy> append ruby!
lavros has quit [Quit: leaving]
baweaver has joined #ruby
Exuma has joined #ruby
Exuma has quit [Client Quit]
Exuma has joined #ruby
rbennacer has joined #ruby
dionysus69 has joined #ruby
code1o6 has quit [Ping timeout: 244 seconds]
yqt has quit [Ping timeout: 250 seconds]
meatherly has joined #ruby
meatherly has quit [Client Quit]
Exuma has quit [Client Quit]
Exuma has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
blue_deref has joined #ruby
meatherly has joined #ruby
meatherly has quit [Client Quit]
DoubleMalt has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
Exuma has quit [Client Quit]
towski_ has joined #ruby
blueOxigen has joined #ruby
enebo has quit [Quit: enebo]
Exuma has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
MyMind has joined #ruby
Exuma has quit [Client Quit]
alejo_ has quit [Quit: Leaving]
Exuma has joined #ruby
dzejrou_ has joined #ruby
Exuma has quit [Client Quit]
Exuma has joined #ruby
Sembei has quit [Ping timeout: 250 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dzejrou has quit [Ping timeout: 240 seconds]
jzigmund_ has joined #ruby
gagrio__ has joined #ruby
blokc has joined #ruby
thebastl has joined #ruby
jzigmund has quit [Read error: Connection reset by peer]
gagrio has quit [Read error: Connection reset by peer]
<blokc> Hi. I had this wild idea of using the termit gem (google translate api) to translate a yaml file.
gagrio_ has quit [Read error: Connection reset by peer]
gagrio has joined #ruby
<blokc> When I load the YAML it's a nested hash. I'm struggling with walking the nested hash and keeping the structure as I translate any strings.
Exuma has quit [Client Quit]
dionysus69 has quit [Ping timeout: 250 seconds]
[k-_ has joined #ruby
jzigmund_ has quit [Ping timeout: 250 seconds]
gagrio__ has quit [Ping timeout: 272 seconds]
jzigmund has joined #ruby
<apeiros> blokc: I assume you want to ask a question?
<[k-_> blokc: exactly how are you struggling?
<jhass> do a recursive method that map's over it
mistermocha has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
rbennacer has joined #ruby
sarkyniin has joined #ruby
rehat has quit [Remote host closed the connection]
DLSteve has joined #ruby
nkts has joined #ruby
fantazo has joined #ruby
leat1 has quit [Ping timeout: 244 seconds]
Guest54998 has joined #ruby
maletor has joined #ruby
<shevy> simplify
otherj has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Dzejmskrokan has quit [Remote host closed the connection]
<[k-_> im probably going to write a ruby script to automate scraping
mistermocha has joined #ruby
<[k-_> time for research!
gagrio__ has joined #ruby
leat1 has joined #ruby
Musashi007 has joined #ruby
AlexAltea has joined #ruby
<[k-_> or maybe i should do it in haskell, for practice
tmtwd has quit [Ping timeout: 256 seconds]
iateadonut has quit [Quit: Leaving.]
Guest54998 has quit [Remote host closed the connection]
Guest54998 has joined #ruby
<nofxx> [k-_, doing something like it. Actually planning. Thinking of using just excon and nokogiri
<nofxx> do some xpath + logic with it, and clock in sidekiq
* [k-_ nods, thanks, now i dont have to think about how to go about doing it
* [k-_ installs nokogiri first
zack6849 has quit [Quit: Leaving]
Motoservo has joined #ruby
nkts has quit [Remote host closed the connection]
Guest54998 has quit [Excess Flood]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
Guest54998 has joined #ruby
krz has quit [Quit: WeeChat 1.2]
towski_ has quit [Remote host closed the connection]
<nofxx> [k-_, if you want to DSL it, https://github.com/felipecsl/wombat
<nofxx> just scraping, for crawling: https://github.com/joenorton/rubyretriever
<[k-_> :( i dont have iconv.h
_marone has joined #ruby
_marone has left #ruby ["WeeChat 1.2"]
<nofxx> nokogiri? which OS/
Dzejmskrokan has joined #ruby
<[k-_> mac. gem already recommended i reinstall xcode cli
dionysus69 has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
<shevy> come to linux man
codecop has joined #ruby
clarkenciel has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 264 seconds]
otherj has quit [Quit: .]
<shevy> lol... what a weird error page https://rubygems.org/gems/dont_exist
Yzguy has quit [Quit: Zzz...]
<chry> LeL
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zack6849 has joined #ruby
theery has joined #ruby
thebastl has quit [Remote host closed the connection]
zack6849 has quit [Changing host]
zack6849 has joined #ruby
DLSteve has quit [Ping timeout: 255 seconds]
nanoz has joined #ruby
<[k-_> nice drawing
hotpancakes has joined #ruby
<shevy> hmm what did I do
<shevy> Encoding.class # => Class
<shevy> Encoding.new NoMethodError: undefined method `new' for Encoding:Class
<[k-_> you cant create a new encoding!
maletor has quit [Quit: Computer has gone to sleep.]
scripore has joined #ruby
<jhass> >> Encoding::UTF_8
<ruboto> jhass # => #<Encoding:UTF-8> (https://eval.in/424669)
<jhass> all you need
rbennacer has quit [Remote host closed the connection]
Dzejmskrokan has quit []
chipotle has joined #ruby
quazimodo has joined #ruby
<shevy> weird that this is all we need but Encoding got lots of other encodings defined
theery_ has joined #ruby
<jhass> yeah I don't understand it too
theery has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
RedDwarf has joined #ruby
Zackio has quit [Ping timeout: 260 seconds]
petricore has joined #ruby
thebastl has joined #ruby
theery_ has quit [Remote host closed the connection]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thebastl has quit [Read error: Connection reset by peer]
banister has joined #ruby
RedDwarf has quit [Read error: Connection reset by peer]
devdazed has quit [Read error: Connection reset by peer]
devdazed has joined #ruby
juanpablo_ has joined #ruby
fedexo has joined #ruby
hashrocket has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rinzlit has quit [Ping timeout: 240 seconds]
Swappticon has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
ddrmanxbxfr_pc has joined #ruby
banjara has quit [Quit: Leaving.]
leat1 has quit [Remote host closed the connection]
Trieste has joined #ruby
Guest54998 has quit [Remote host closed the connection]
\x1p2 has joined #ruby
Narzew has joined #ruby
weemsledeux has joined #ruby
Narzew has quit [Client Quit]
Narzew has joined #ruby
leat1 has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
<[k-_> yea im done with the report
<[k-_> finally
<[k-_> oops. that was meant for ot
pyon has quit [Quit: fix config]
pyon has joined #ruby
rbennacer has joined #ruby
Vile` has joined #ruby
rbennacer has quit [Remote host closed the connection]
Vile` has quit [Read error: Connection reset by peer]
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
leat1 has quit [Remote host closed the connection]
Zackio has joined #ruby
nanoz has quit [Quit: <3]
christiandsg has quit [Remote host closed the connection]
rbennacer has joined #ruby
pyon has quit [Quit: fix config]
maletor has joined #ruby
Yzguy has joined #ruby
pawnbox has quit [Remote host closed the connection]
Vile` has joined #ruby
leat1 has joined #ruby
pawnbox has joined #ruby
zeroDivisible has joined #ruby
freerobby has joined #ruby
pyon has joined #ruby
chipotle has quit [Quit: cheerio]
<blokc> @apeiros I couldn't find a way to procedurally call nested hash key references. I see that to call a nested key I call myhash[k1][k2], so how can I build that reference if in my recursive method I don't know the keys.
<blokc> @[k-_ same question
leat1 has quit [Remote host closed the connection]
<apeiros> keys.inject(my_hash) { |hash, key| hash[key] }
<apeiros> blokc: ^
havenn has joined #ruby
<apeiros> though, iirc you walk the tree
<apeiros> then that shouldn't be necessary anyway
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Client Quit]
<apeiros> uuuuh, `[[key, Hash.new]].to_h` --> `{key => {}}`
<blokc> Ahh, inject method from Array class. I see how that works.
<apeiros> not sure whether your code even raises
ecnalyr has joined #ruby
<apeiros> also @translation.merge(hash) # @translation is NOT modified, you need merge! or update there
christiandsg has joined #ruby
<apeiros> sorry, bit busy atm, somebody else will have to look over your code to answer your actual question
<pmarreck> What's the name of the API or interface design principle that says "be broad in what data you accept and specific in what data you send"?
<[k-_> liberal?
<blokc> @apeiros great help thanks.
sarkyniin has quit [Ping timeout: 244 seconds]
<havenn> blokc: translator.translate(*ARGV)
<Papierkorb> Is it possible to have differing routes for sub-domains? I want to use my.domain/ for user access, and api.my.domain/ for the JSON API
<Papierkorb> Ah sorry wrong channel
stamina has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
m8 has quit [Quit: Sto andando via]
<havenn> blokc: You can splat (*) an Array into multiple arguments. Familiar with that?
ecnalyr has quit [Ping timeout: 244 seconds]
<havenn> blokc: `"#{ @translation.inspect }"` is the same thing as just `@translation.inspect`.
<blokc> havenn: I'm familiar with splat. In this case I'm limiting command-line input to 3 arguments because of termit gem interface.
<apeiros> pmarreck: postel's law ("Be conservative in what you do, be liberal in what you accept from others")
<apeiros> pmarreck: be aware though that it's *widely* misunderstood
blue_deref has quit [Quit: Taking myself out of hear.]
<havenn> blokc: If there are three arguments (the case you're in) then there are just three.
<apeiros> it's not meant as "accept every crap and try to make sense of it" as many interpret it.
<shevy> lol
<havenn> blokc: if ARGV.count == 3
<havenn> blokc: So you can just splat.
michael_mbp has quit [Excess Flood]
<blokc> @havenn I see that, thanks.
<havenn> blokc: I'd suggest just `exit` and `abort`.
Zackio has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
<havenn> blokc: Instead of `exit 0` and `exit 1`. Exit will exit 0 and abort will exit 1.
<blokc> not familiar with abort call.
michael_mbp has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
<blokc> Can't tell what the exit code for abort is.
darkf has quit [Quit: Leaving]
<havenn> blokc: The same as `exit false`, which is 1.
<havenn> blokc: In irb try `abort` and check the exit status: echo $?
hotpancakes has quit [Remote host closed the connection]
<havenn> Oops, I mean same as `exit true`!
cookiez has joined #ruby
bluish has joined #ruby
ddv has joined #ruby
A124 has joined #ruby
<havenn> Confusing. Just `exit` and `abort` are nice. ;)
<blokc> Rather funny experience. Jumped into IRB to run abort and it closed the IRB session, before $? was printed.
ddv has quit [Changing host]
ddv has joined #ruby
Zackio has joined #ruby
<havenn> blokc: Ah, that's what I meant. Then in your shell type: echo $?
<blokc> havenn: good stuff, should clean up my other scripts with that
<blokc> got it ran.
<havenn> blokc: You can also give it the warning to print to STDERR: abort 'Eeeek!'
<havenn> >> warn 'Eeeek!'
<ruboto> havenn # => Eeeek! ...check link for more (https://eval.in/424680)
vF3hNGxc47h8 has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
sever2client has quit [Remote host closed the connection]
timonv has joined #ruby
mistermocha has joined #ruby
<havenn> blokc: Just a style thing but I'd probably: File.join(dir_path, to, '.yml')
<blokc> that adds a dash between the file name and extension
<havenn> blokc: oh, goodness, right
<havenn> blokc: nevermind me
Musashi007 has quit [Quit: Musashi007]
<havenn> blokc: What were you actually asking about originally?
<shevy> lol
<blokc> havenn: right, it was my meta programming struggle of translating strings in a deeply nested hash using the termit gem and keeping the structure.
<havenn> blokc: ahh
UtkarshRay has quit [Quit: Leaving]
* havenn goes in search of coffee
<blokc> the application is to take a rails translation yaml file and convert it into whatever language codes I pass in.
<arup_r> Can I pass operators using a variable like below ?
<blokc> so en.yml would be es.yml if i ran `translate_yaml en es en.yml`.
<arup_r> >> puts !2 # is ok and I want
<ruboto> arup_r # => false ...check link for more (https://eval.in/424681)
<arup_r> >> x = '!' ; puts "#{x} 2" # to give the same output like above ?
<ruboto> arup_r # => ! 2 ...check link for more (https://eval.in/424682)
<arup_r> Am I clear ?
<Papierkorb> arup_r: you want to invoke ! on 2. 2 is an object, and objects can receive stuff
<Papierkorb> >> x = '!'; puts 2.send x
<ruboto> Papierkorb # => false ...check link for more (https://eval.in/424683)
<arup_r> Does Ruby overloads all operators as method ? :)
<Papierkorb> arup_r: disclaimer: Use public_send instead of send if possible. /disclaimer
christiandsg has quit [Remote host closed the connection]
<Papierkorb> >> puts (2.send :+, 3)
<ruboto> Papierkorb # => 5 ...check link for more (https://eval.in/424684)
leat1 has joined #ruby
<Papierkorb> arup_r: :P
bruno- has joined #ruby
freezeve_ has quit [Read error: Connection reset by peer]
<arup_r> >> x = '!!'; puts 2.send x
<ruboto> arup_r # => undefined method `!!' for 2:Fixnum (NoMethodError) ...check link for more (https://eval.in/424685)
<arup_r> :(
<arup_r> one more send it needs..
<Papierkorb> of course, !! is not a method
autrilla has quit [Quit: Connection closed for inactivity]
<havenn> >> class Fixnum; def !@; "I don't understand the question." end end; !2
<ruboto> havenn # => "I don't understand the question." (https://eval.in/424686)
<havenn> arup_r: ^
<arup_r> yes, that is why syntactic sugar was best if we can use it
timonv has quit [Quit: WeeChat 1.3]
<havenn> arup_r: You know about Ruby's keywords?
rodfersou has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenn> arup_r: They're the special case.
<arup_r> >> x = '!!'; puts eval("#{x}2") # freaking ugly but it understands my heart
<ruboto> arup_r # => true ...check link for more (https://eval.in/424687)
<arup_r> havenn: I know Ruby's keyword
bruno- has quit [Ping timeout: 240 seconds]
<arup_r> havenn: a + b is a syntactic sugar of a.+(b)
<havenn> arup_r: Yeah, no macros in Ruby to create your own sugar in that fashion particularly.
Xiti has quit [Quit: Xiti]
<Papierkorb> arup_r: try to avoid eval()
<arup_r> I know..
<arup_r> but it sometimes ..... wins .. I used it to here to show you people what I had in my mind
pandaant has quit [Remote host closed the connection]
<havenn> arup_r: Matz had a short and a long answer to whether Ruby 3 will get macros. The short answer was, "No" and the long answer was "Absolutely no."
yfeldblum has joined #ruby
hotpancakes has joined #ruby
<Papierkorb> Thank god
<arup_r> haha.. Why he is against of it?
fedexo has quit [Ping timeout: 244 seconds]
<Papierkorb> because macros are a bad idea whenever the language offers better alternatives
christiandsg has joined #ruby
fedexo has joined #ruby
<arup_r> o i see
<Papierkorb> Which ruby already does
<Papierkorb> I mean you can fake it with eval. Which you should not, I mean, there's Object#send_public and friends
Xiti has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
<arup_r> yeah
<Papierkorb> Choose the most non-ugly solution to a problem ;) #send is uglier than #public_send is uglied than just calling the method
bluish has quit [Quit: WeeChat 1.2]
<havenn> arup_r: If you'd like to see what macros might look like in a language quite similar to Ruby see Crystal-lang.
<arup_r> ok
chipotle has quit [Quit: cheerio]
<arup_r> why they introduced if it is bad ?
<havenn> arup_r: Ask in #crystal-lang for a good answer. ;)
<havenn> There are reasons.
<havenn> Dynamic versus statically compiled language, etc.
<arup_r> nah!... I have lot to learn now Ruby/Rails.. mainly (CSS :() ... so no more language now
<[k-_> i give up doing it all automatically
<arup_r> "doing it" -< what?
<[k-_> i'll just have ruby automate text replacement
hotpancakes has quit [Ping timeout: 246 seconds]
<arup_r> I will go straight to the Ext.js( or something like that) from here.. no right and left, really..
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<arup_r> havenn: I saw the link you gave.. What are those ugly `{{}}` .. omg! another syntax..
petricore has quit [Ping timeout: 240 seconds]
Caius has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
uri_ has joined #ruby
radgeRayden has joined #ruby
<arup_r> k
migimunz has joined #ruby
<migimunz> Hi, does anyone have any experience with ruby_parser?
<shevy> all I know is that it is complicated
<migimunz> I'm wondering if someone has a list of all (or at least most) possible AST node names
mistermo_ has joined #ruby
<migimunz> and if somebody could decipher what an :iter node is
<migimunz> shevy, and undocumented :(
<Papierkorb> show-code to the rescue >_>
<shevy> migimunz documentation has never been ruby's strength :\
Caius has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<shevy> :iter sounds like an enumeration
bluish has joined #ruby
<shevy> in ruby-gtk iters are used to hold content of a tree view / tree view column
<migimunz> shevy, it does sound like it, but it's not what it is I believe, for example "->{}" translates into [:iter, s(:call, nil, :lambda), 0, ...]
<migimunz> oh nevermind ruby_parser, this looks much more documented: https://github.com/whitequark/parser
PaulCape_ has joined #ruby
toretore has joined #ruby
PaulCapestany has quit [Ping timeout: 260 seconds]
<shevy> cool
tonios57 has joined #ruby
marr has joined #ruby
ramfjord has joined #ruby
skade has joined #ruby
bluish has quit [Quit: WeeChat 1.2]
dionysus69 has quit [Ping timeout: 252 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
vF3hNGxc47h8 has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
Waldo123 has joined #ruby
Waldo123 has quit [Client Quit]
ghr has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
podman has joined #ruby
mistermocha has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
The_Phoenix has quit [Read error: Connection reset by peer]
pauly_oc has quit [Ping timeout: 244 seconds]
sarkyniin has joined #ruby
d2dchat has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea> That big-ass image on rubygems.org's 404 page is data-encoded...
Pupeno has joined #ruby
Pupeno has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<Papierkorb> 224.5KiB well spent
dionysus69 has joined #ruby
dh64 has quit [Ping timeout: 252 seconds]
<shevy> you two are nerds
ebbflowgo has quit [Quit: ebbflowgo]
<Ox0dea> It gets cached with the rest of the page's content, so it's not "bad" or anything; it's just weird they're not using a CDN. In any case, it's the largest data-encoded image I've ever run into in the wild.
<craysiii> EVER
dgutierrez1287 has joined #ruby
Pupeno has quit [Remote host closed the connection]
freerobby has joined #ruby
<Papierkorb> Ox0dea: actually, the only good part about that is saving a TCP ACK at best! The Base64 increases the file size to no avail
devdazed has joined #ruby
bronson has joined #ruby
<Ox0dea> Well, a SYN, a SYNACK, and an ACK, but yeah.
<Ox0dea> It's certainly unorthodox, but caching still manages to save the day.
ramfjord has quit [Ping timeout: 256 seconds]
cantaberry has quit [Ping timeout: 272 seconds]
<migimunz> Ox0dea, thanks much!
christiandsg has quit [Remote host closed the connection]
<Ox0dea> migimunz: Sure thing. I linked that mostly to illustrate that whitequark really knows this parsing shit. :P
<Ox0dea> He's probably *the* person who best understands parse.y, excepting perhaps ko1 and nobu.
mistermocha has quit [Read error: Connection reset by peer]
jeadre has quit [Remote host closed the connection]
<[k-_> hmmm /(?:(\(\W+\))[, ]{0,})+(?: ::.*)?/
zenspider has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
<shevy> what are you trying to break now
<migimunz> good to have a source, parsing and transforming ruby is tricky business
bronson has quit [Ping timeout: 252 seconds]
<migimunz> Ox0dea, great fun though
<Ox0dea> migimunz: Indeed it is. What're you up to, if you don't mind saying?
rbennacer has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
jeadre has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<migimunz> Ox0dea, not at all, I want to add pattern matching (ML style) to ruby. It'd still be valid ruby code, but I want it to "compile" to efficient ruby in the background.
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme has joined #ruby
<Ox0dea> The lack of quotes around "efficient" is conspicuous.
<Ox0dea> I take your meaning, of course. :P
<migimunz> haha
<Ox0dea> You've reminded me to look into whether or not stateless gensyms are feasible.
<migimunz> but yeah, pattern matching can easily be translated into a bunch of assignments and conditionals, and will make code that deals with things like parsing or AST matching much easier to write
<migimunz> Ox0dea, stateless as in completely pure?
<Ox0dea> As I'm sure you're aware, several attempts have been made to bolt something akin to pattern matching onto Ruby, but optimizing the thing seems novel.
juanpablo_ has quit [Ping timeout: 240 seconds]
arup_r has quit [Quit: Leaving]
rbennacer has joined #ruby
<Ox0dea> migimunz: Well, anything that would avoid having to ensure the symbol you've just generated is unique, I guess.
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
<migimunz> Ox0dea, well, two major hurdles with implementing pattern matching: good error reporting and performance.
<migimunz> oh, that sounds interesting, but seems like you'd either have to pass a generator that keeps the state or rely on an external state of some sort, at least if it's based on some pseudo-random generator
<migimunz> which is I'm assuming exactly what you want to avoid
<Ox0dea> Precisely. Atomic incrementation is pretty standard, and it works, but it's boring. :P
<Ox0dea> There's something I slapped together a while back.
<Ox0dea> It "works" by looking into VM bytecode instructions, but it's probably fragile as hell.
<migimunz> oh awesome, let me check it out
Pumukel has quit [Ping timeout: 256 seconds]
<Ox0dea> It's method overloading much more than it is pattern matching, but there's a certain overlap between the two.
<migimunz> oh wow, this is pretty cool
ramfjord has joined #ruby
tmtwd has joined #ruby
ebbflowgo has joined #ruby
mistermo_ has joined #ruby
<Ox0dea> I do like the visual cleanliness of hijacking default arguments, but... y'know, it's hijacking default arguments.
mistermocha has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<migimunz> that's true, but if you're doing pattern matching, then you don't really need default arguments for those methods
mistermo_ has quit [Read error: Connection reset by peer]
bluish has joined #ruby
mistermocha has joined #ruby
clarkenciel has joined #ruby
peteyg has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
bluish has quit [Client Quit]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 256 seconds]
PaulCapestany has joined #ruby
skyjumper has joined #ruby
cantaberry has joined #ruby
PaulCapestany has quit [Client Quit]
fantazo has joined #ruby
PaulCape_ has quit [Ping timeout: 265 seconds]
PaulCapestany has joined #ruby
cantaberry has quit [Remote host closed the connection]
atomical has joined #ruby
cantaberry has joined #ruby
Speed has joined #ruby
pranny has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
bronson has joined #ruby
skyjumper has left #ruby [#ruby]
codecop has quit [Remote host closed the connection]
<IceDragon> Gentlemen, and ladies, I require your assistance in parsing an AJAX response in ruby: sample %Q([,,"en",,,,0.16169573,,[["en"],,[0.16169573]]])
<IceDragon> So far I've tried gsub-ing the commas to add nulls, to no avail
<Papierkorb> JSON.parse
<IceDragon> Won't parse correctly because of the multiple commas
<IceDragon> YAML won't parse it either
<IceDragon> correction: won't parse at all.
<Speed> we tried gsubbing those consecutive commas to add 'null's, but it's hard to get it right
<jhass> what is it supposed to be?
DLSteve has joined #ruby
<Papierkorb> Why is the response so broken?
<IceDragon> jhass: a response from google's translation api
<Speed> it's an AJAX response that's returned from a web service
<jhass> so XML?
<Speed> it's javascript, and the webpage simply eval()'s it
<jhass> (AJAX response doesn't define the content type these days)
<jhass> ouch
<Speed> ([1,,,,] is completely valid JS)
<Speed> indeed
<IceDragon> jhass: sadly its valid JS, but invalid <insert every sane format here>
pawnbox has quit [Remote host closed the connection]
<Speed> we'd like to fix it up into valid JSON and parse it
yeticry has quit [Ping timeout: 260 seconds]
<jhass> doesn't sound like it's supposed to consumed as API though
<Ox0dea> Are you going to phone the authorities?
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
<IceDragon> jhass: hmm, if you would recommend us a nicer freeeee translation service, we'd be more than happy :3
<Speed> we're not really using it commercially (or much at all), it's meant as a simple irc bot command
yeticry has joined #ruby
<IceDragon> 0x0dea: oh no, not the po-po D;
<craysiii> google translate is really bad for some languages
<craysiii> bing is better in that regard
rodfersou has quit [Ping timeout: 260 seconds]
<Ox0dea> IceDragon, Speed: I trust you don't want to shell out, so you're gonna need embedded JS: https://github.com/cowboyd/therubyracer
<Papierkorb> I'm waiting for the day a webservice abuses that many do eval and put some ad on the users screen with it.
<Ox0dea> Because arbitrary eval() == ads.
<IceDragon> 0x0dea: There is no way in hell I'm loading an entire js vm into ruby just to parse this D8<
<Ox0dea> IceDragon: Yes, I was being facetious. :P
<Papierkorb> Ox0dea: gets you more money than selling random session cookies I'd say
<Ox0dea> You'd be surprised.
<IceDragon> I say that, but I did it before with a different project
<IceDragon> >.> because reasons
<Ox0dea> Papierkorb: Some sessions can be of immense value.
<jhass> IceDragon: Speed what data do you need from it?
bronson has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 244 seconds]
<IceDragon> jhass: first we're trying to get it in a usable format so we can pick data from it, that particular response yielded nothing
solocshaw has quit [Quit: solocshaw]
<IceDragon> lemme try to get a valid looking one
<Speed> hmm, not sure if I have a complete example output
<jhass> I'd try to just .match out the data I want
sarkyniin has quit [Ping timeout: 244 seconds]
willharrison has joined #ruby
<Papierkorb> IceDragon: the_broken_json.gsub(/,+/, ',').gsub(/(\[,|,\])/){|a| a.gsub ',', ''}
<Ox0dea> Papierkorb: Where are the `null`s?
<jhass> Papierkorb: assuming there are no , in the strings for example
<IceDragon> ^
<Speed> we tried replacing ',,' -> ',null,' and '[,' -> '[null,' and ',]' --> ',null]'
radgeRayden has quit [Ping timeout: 246 seconds]
atzorvas has quit [Quit: leaving]
<Papierkorb> jhass: read again, it only replaces multiple , with a single ,
<IceDragon> jhass: good point, I overlooked commas in strings
<Speed> that still leaves us with 'null,,null'
ruurd has joined #ruby
shinnya has joined #ruby
<Ox0dea> IceDragon, Speed: foo.sub(',,', ',null,') while foo[',,']
<Speed> Papierkorb: problem is that some of those places might not always be null
<jhass> I see no real point in trying to get it parsable IMO
<Ox0dea> Regular expressions are hard; let's go looping!
<Ox0dea> sub!, obviously.
<IceDragon> jhass: I restored to writing a parser, but we hoped for a shorter more elegant way...
<Speed> Papierkorb: so you're not getting a consistent response
<IceDragon> *resorted*
hck89 has joined #ruby
<IceDragon> you mean poke your eyes out afterwards
<Papierkorb> Speed: that thing is broken as hell, and you're claiming consistency issues?
<IceDragon> *may
ghr has joined #ruby
<unholycrab> can i change which ruby is my system ruby?
willharrison has quit [Ping timeout: 252 seconds]
<unholycrab> for example, use an rvm installed ruby as the system ruby?
<Papierkorb> unholycrab: see tools like rvm or rbenv
<unholycrab> Papierkorb: rvm allows me to set the default ruby for use with an interactive shell as a certain user, as far as i understand
<Papierkorb> unholycrab: I'm not sure if that is a good idea. What's wrong with a user-local installation?
<Speed> Papierkorb: I'm just saying that if the response is [origin_text, translated_text, language], sometimes translated_text would be nil, thus parsing the array would return us an array with two items. Considering I probably have origin, translation, language = [ary...], this would set translation = 'en'
<IceDragon> unholycrab: you could try chruby as well?
<unholycrab> Papierkorb: there are a lot of unknowns, and overwriting the system ruby would solve all of them
ghr has quit [Ping timeout: 246 seconds]
sargas has joined #ruby
<unholycrab> im not sure if its a good idea, why its a bad idea, etc
<Papierkorb> unholycrab: I'd argue that it would add another layer of hack onto the layers uncertainties, and a user-local one is a somewhat guaranteed non-hacky way of being certain of the ruby version
maletor has joined #ruby
<unholycrab> its a virtual instance that will serve a rails application
<unholycrab> and nothing else
<unholycrab> it needs only one ruby
<unholycrab> and it needs a specific version
<Papierkorb> unholycrab: excellent use-case for a user-local installation
<toretore> unholycrab: if it's a vm then just instll ruby globally without a version manager
<Papierkorb> unholycrab: else, a system update may override your installation
<unholycrab> toretore: can i specify a version for that
<unholycrab> i see, Papierkorb
<toretore> you can install whichever version you want wherever you want
<unholycrab> then i just need to figure out what user will run the web server, and user-install it there
ndrei has quit [Ping timeout: 260 seconds]
<Papierkorb> unholycrab: in fact, I'd completely remove the systems ruby installation if you don't need it elsewhere. Else, your server may not fail fast but fail later, making for fun debugging sessions
robbyoconnor has joined #ruby
<unholycrab> yes
ndrei has joined #ruby
kaps has joined #ruby
sameerynho has quit [Quit: Leaving]
<unholycrab> thank you Papierkorb, toretore
<unholycrab> + IceDragon
mbff has joined #ruby
<mbff> Hello! I am trying to get back info from the newly created row. How can I do this? test = @db.execute( "insert into rappers (name,studioAlbums) values ('Kanye West', '8')")
<IceDragon> yay + IceDragon :D
<mbff> test returns empty brackets.
<mbff> I am using SQLite3
<IceDragon> mbff: re-read the row
<IceDragon> or in this case: read the row
<mbff> ok, but I am don't know which row the data was created to.
rbennacer has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 250 seconds]
<Speed> mbff: insert into ... values ... returning id
<Speed> then you can read the row with the same id
roxtrongo has joined #ruby
<mbff> Speed, I am new to SQL, care to expand on that?
hostess has quit [Quit: No Ping reply in 180 seconds.]
<Speed> ah sorry, I think RETURNING is a postgres thing
sarkyniin has joined #ruby
hostess has joined #ruby
juanpablo_ has joined #ruby
rbennacer has joined #ruby
gibre has quit [Quit: Leaving]
Speed has left #ruby ["WeeChat 1.2"]
hyy1 has quit [Ping timeout: 265 seconds]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<nofxx> mbff, why write sql? use sequel or ar
radgeRayden has joined #ruby
asi_ has quit [Quit: No Ping reply in 180 seconds.]
solocshaw has joined #ruby
sarkyniin has quit [Ping timeout: 240 seconds]
Mendenhall has joined #ruby
rodfersou has joined #ruby
<mbff> nofxx, just practice. What is AR?
AustinMatherne has quit [Ping timeout: 240 seconds]
<blokc> active record
asi_ has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
<mbff> Oh right. I am taking a SQL/database class
<mbff> My college is out of date.
northfurr has joined #ruby
torpig has quit [Ping timeout: 256 seconds]
voltalio has joined #ruby
voltalio has quit [Client Quit]
AustinMatherne has joined #ruby
voltalio has joined #ruby
<mbff> the following is still not returning anything... any ideas before I head over to #SQL ? test = @db.execute( "insert into rappers (name,studioAlbums) values ('Kanye West', '8'); SCOPE_IDENTITY()")
<Papierkorb> mbff: nothing wrong with learning SQL
ndrei has quit [Ping timeout: 250 seconds]
cornerma1 has joined #ruby
torpig has joined #ruby
mahlon has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
rideh has quit [Ping timeout: 252 seconds]
cornerman has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
<ruurd> HAhahaha. The nicest thing about SQL standards is that there are so many of them :-) :-)
jatb has quit [Ping timeout: 244 seconds]
ged has joined #ruby
mahlon has joined #ruby
rideh has joined #ruby
<mbff> that is what i am quickly discovering.... first week of class, but I want to get ahead.
jalljo has quit [Ping timeout: 240 seconds]
ged__ has quit [Read error: Connection reset by peer]
<nofxx> mbff, that's how I've discovered that I want to be a programmer hehe. Teacher gave us book 1-4 for the whole semester on tuesday. By friday I printed in finished 9
<nofxx> pascal haha
cashnguns has joined #ruby
jalljo has joined #ruby
jatb has joined #ruby
<mbff> nofxx, haha
Billias has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 256 seconds]
eightfold has quit [Ping timeout: 246 seconds]
mrtg9970 has joined #ruby
<nofxx> fun fact about pascal, only lang I know that '=' means '=' (comparator). Assignment is x := 1 . Is there any other(s)?
ndrei has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
<ruurd> Prolog uses :- for assign
mrtg9970 has quit [Client Quit]
<ruurd> Yes a lot of languages are using 'is' for 'assign'... :-)
dzejrou_ has quit [Quit: dzejrou_]
<chris2> same for all wirth languages
<chris2> also algol
Mia has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
<nofxx> is? x is 2; if x = 2 ?
<nofxx> 'is' reads better as '==' imo
Billias has joined #ruby
<nofxx> x = 2 ; if x is 2 {}
<chris2> valid python no? :P
rbennacer has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
ndrei has joined #ruby
roxtrong_ has joined #ruby
northfurr has quit [Quit: northfurr]
PaulCapestany has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
roxtrongo has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
ebbflowgo has joined #ruby
mistermocha has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
<shevy> IceDragon are you still working on your game?
<IceDragon> shevy: on and off
ebbflowgo has quit [Client Quit]
<IceDragon> utterly wrecked the map editor after changing the rendering process
sargas has quit [Quit: This computer has gone to sleep]
zenguy_pc has joined #ruby
Fezzler has joined #ruby
<shevy> hehehe
theery has joined #ruby
<IceDragon> shevy: the woes of first time game programming
dgutierrez1287 has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
theery has quit [Remote host closed the connection]
mistermocha has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
DLSteve has quit [Quit: Leaving]
[k- has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
agent_white has joined #ruby
sargas has joined #ruby
sargas has quit [Remote host closed the connection]
<mbff> Can I call a static method inside a static method of the same class?
Azure has joined #ruby
theery has joined #ruby
<jhass> there are no static methods, so yes
<mbff> self.methodName ?
<jhass> just defined in another class ;)
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
northfurr has joined #ruby
theery has quit [Remote host closed the connection]
<jhass> also I hope you don't really use camelCase for method names
<mbff> nope
northfurr has quit [Client Quit]
noethics has joined #ruby
<ruurd> mbff why not?
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruurd> I think he means class methods
<jhass> which still are just normal methods, defined in a classes singleton class
<ruurd> same difference.
lapide_viridi has joined #ruby
<ruurd> if you flatten it hard enough everything is a jump.
mistermocha has quit [Ping timeout: 244 seconds]
<shevy> hehe
<pontiki> back to assembler for you!
Yzguy has quit [Quit: Zzz...]
rbennacer has joined #ruby
Fezzler has quit [Quit: Leaving]
mistermocha has joined #ruby
northfurr has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
Musashi007 has quit [Quit: Musashi007]
theery has joined #ruby
Mia has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
workmad3 has joined #ruby
doublemalt_ has joined #ruby
kaps has left #ruby [#ruby]
theery has quit [Remote host closed the connection]
theery has joined #ruby
bb010g has joined #ruby
Jackneill has quit [Ping timeout: 250 seconds]
jgt1 has quit [Ping timeout: 265 seconds]
DoubleMalt has quit [Ping timeout: 244 seconds]
Mia has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
mbff has quit [Remote host closed the connection]
zenspider has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
northfurr has quit [Quit: northfurr]
mistermocha has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
theery has quit [Remote host closed the connection]
blokc has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
lkba has joined #ruby
allie has quit [Quit: ZNC - http://znc.in]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
lapide_viridi has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
<shevy> hmm what happens if you have several .rb file in a project, with different '# Encoding: ' statements?
<pontiki> try it
<shevy> everything works!
<pontiki> \o/
<toretore> that whole series of articles is very good
<Ox0dea> It's a science comment!
theery has joined #ruby
<shevy> with flash to show the code \o/
<pontiki> well, it's not science yet :) needs to be duplicated, tried across several experiments, and it's paper written and peer reviewed :)
d2dchat has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
<Ox0dea> Ruby's wide adoption ticks the first two, and RubySpec handles the others?
Narzew has quit [Quit: Leaving]
<ruurd> use utf-8. don't fuck with encodings.
<toretore> case question; when /encoding/ then 'UTF-8'; ...; end
rodfersou has quit [Quit: leaving]
crdpink has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
crdpink2 has quit [Ping timeout: 244 seconds]
ecnalyr has joined #ruby
<ruurd> no ...
<Ox0dea> ruurd: Questions can only ever be about encodings?
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
<shevy> anyone has some fancy ascii dance in ruby?
astrobun_ has joined #ruby
jpfuentes2 has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
ecnalyr has quit [Ping timeout: 250 seconds]
kirun_ has quit [Quit: Client exiting]
kdman has quit [Ping timeout: 265 seconds]
lightfoot has joined #ruby
<lightfoot> Please help:: what does this mean --- new(string, [options [, lang]]) → regexp
<shevy> lightfoot you can construct them via Regexp.new
Kwhy_Not has joined #ruby
<lightfoot> specifically this part -> [options [, lang]]
siemprefresco has quit [Ping timeout: 240 seconds]
<shevy> the [] in there mean that this is optional, you can omit it
<shevy> example four shows that invocation: r4 = Regexp.new(r2)
<shevy> where variable r2 itself is constructed via a Regexp.new call: r2 = Regexp.new('cat', true)
Kwhy_Not has left #ruby [#ruby]
<lightfoot> does this mean [, lang], lang must be last?
<shevy> yeah, if you supplied 2 arguments before
<shevy> weird that the example on the page does not show 3 arguments
<ght> I have a question. When using the mysql2 gem, you have to set cast_booleans to true when executing a MySQL query to utilize stored boolean values.
<ght> Otherwise, the stored boolean values will appear as what they literally are, tinyint values of 1 or 0.
<shevy> "If options is a Fixnum, it should be one or more of the constants Regexp::EXTENDED, Regexp::IGNORECASE, and Regexp::MULTILINE, or-ed together."
siemprefresco has joined #ruby
<ght> My question is, why on God's green earth is it not a default to cast_booleans as true, and one would have to specify cast_booleans to false to override?
<ght> When the hell would anyone ever really want to store and utilize tinyint values for anything other than boolean?
<shevy> oh sorry lightfoot
<shevy> lightfoot use this docu, it is updated: http://ruby-doc.org/core-2.2.3/Regexp.html#method-c-new
<Ox0dea> ght: Earth is mostly blue.
<ght> Why on God's mostly blue earth then.
<ght> I'm just curious, the logic defies me.
workmad3 has quit [Ping timeout: 272 seconds]
<ght> What a random ass thing for me to have to research.
<Ox0dea> It's inconvenient, to be sure.
<lightfoot> shevy, thank you
<Ox0dea> >> Regexp.new('foo', 'i') == /foo/i # Wat.
<ruboto> Ox0dea # => true (https://eval.in/424702)
fedexo has quit [Ping timeout: 244 seconds]
<Ox0dea> What's going on there?
<craysiii> magic
<shevy> ght haha I often feel that way as well :-)
<Ox0dea> Oh. Any truthy value denotes case-insensitivity.
atomical has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Mendenhall has quit [Ping timeout: 252 seconds]
iamninja has quit [Read error: Connection reset by peer]
tvw has quit []
noethics has quit [Ping timeout: 260 seconds]
iamninja has joined #ruby
abara has joined #ruby
Azure|dc is now known as Azure
<abara> hey folks! o/ anyone know why osx comes with ruby already? i've search but it seems no one know what depends on it :(
ruurd has quit [Quit: ZZZzzz…]
kdman has joined #ruby
<shevy> probably BSD-originated philosophy
<Ox0dea> shevy: t = Net::Telnet.new('Host' => 'nyancat.dakko.us'); loop { t.cmd('') { |o| print o } }
<Ox0dea> It's an ANSI rather than ASCII dance, but it should do.
theery has joined #ruby
<shevy> lol
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theery has quit [Remote host closed the connection]
abara has left #ruby ["Be back later ..."]
ngscheurich has joined #ruby
duoi has quit [Remote host closed the connection]
ghr has joined #ruby
havenwood has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
dogweather has quit [Remote host closed the connection]
mistermocha has joined #ruby
mprelude has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 255 seconds]
yqt has joined #ruby
duoi has joined #ruby
juanpablo_ has joined #ruby
Kallis has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
yqt has quit [Ping timeout: 256 seconds]
mistermocha has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 272 seconds]
ledestin has joined #ruby
mistermocha has joined #ruby
stamina has quit [Ping timeout: 246 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lightfoot has quit [Ping timeout: 246 seconds]
rakm has joined #ruby
charliesome has joined #ruby
christiandsg has joined #ruby
postmodern has quit [Quit: Leaving]
quazimodo has joined #ruby
christiandsg has quit [Remote host closed the connection]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
theery has joined #ruby
Centrixx has joined #ruby
Centrixx has quit [Client Quit]
theery has quit [Remote host closed the connection]
theery has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
theery has quit [Remote host closed the connection]
minimuffins has joined #ruby
fantazo has quit [Quit: Verlassend]
Cork has quit [Quit: .]
christiandsg has joined #ruby
hck89 has quit [Quit: Textual IRC Client: www.textualapp.com]
theery has joined #ruby
theery has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjohnson has joined #ruby
hashrocket has quit [Quit: Connection closed for inactivity]
voltalio has joined #ruby
wldcordeiro__ has joined #ruby
houhoulis has quit [Remote host closed the connection]
michaeldeol has joined #ruby
agent_white has quit [Quit: brb]
whiteline has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
Cork has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
deol has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
atomical has joined #ruby
cmckee has joined #ruby
charliesome has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby
deol has quit [Client Quit]
Voker57 has quit [Read error: Connection reset by peer]
ChasedSpade has quit [Quit: No reason specified.]