apeiros changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<eam> Unicorn|: if this is for a game, you will want to use something like the gosu gem to handle keypresses
tubuliferous_ has joined #ruby
<Ox0dea> > use sdl for your console game
<eam> Ox0dea: the sdl gems are in kinda poor shape, have you tried 'em?
<Unicorn|> Ok, I'll look at it. And I just wanted to make sure that the program doesn't end right away
bayed has quit [Quit: Connection closed for inactivity]
baroquebobcat has quit [Quit: baroquebobcat]
<Ox0dea> eam: Oh, I seem to have mistakenly assumed Gosu depended on SDL.
graydot has quit [Quit: graydot]
hashrocket has joined #ruby
Kyuujitsu has joined #ruby
gaboesquivel has joined #ruby
hashrocket has quit [Client Quit]
<eam> I prefer libsdl, fwiw, but the best maintained and easiest to use gem I found for ruby was gosu
nfk has joined #ruby
woobywooby has quit [Ping timeout: 246 seconds]
blackmesa has quit [Quit: WeeChat 1.2]
<eam> everything's opengl though, so there are odd issues with things like large textures
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<Ox0dea> eam: Gosu *does* depend on SDL.
<zenspider> eam: I'm changing that
leesharma has quit [Ping timeout: 260 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
s00pcan has quit [Ping timeout: 250 seconds]
<eam> Ox0dea: not surprised -- but there's no access to just plain old surfaces and so on
graydot has joined #ruby
<Ox0dea> eam: My greentext stands; recommending a multimedia library to handle console input is lulzy.
<eam> zenspider: fantastic :)
<zenspider> dfockler: you can make an xnor by nand or nor
tubuliferous_ has quit [Ping timeout: 264 seconds]
<zenspider> eam: gosu bugged me. I am wrapping ruby-sdl to be "usable" (ENTIRELY MY DEFINITION of usable)
<dfockler> well just combine your keys together then :P
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<eam> zenspider: that's even more fantastic
<eam> actually, maybe I'm even interested in helping ...
<Ox0dea> dfockler: NAND + NOR = AND; what am I supposed to do with an AND?
<zenspider> right now it is optimized for osx (just because of fonts)... but I'm open to cross platform changes that are straightforward
graydot has quit [Client Quit]
<zenspider> eam: take a look https://github.com/zenspider/graphics
skade has quit [Quit: Computer has gone to sleep.]
<zenspider> I'm about to cut a beta soon
<eam> I don't even have a linux box with a graphics display right now, unless I count the rpi in my garage
Kyuujitsu has quit [Ping timeout: 260 seconds]
dimasg has joined #ruby
gaboesquivel has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<eam> (and there's no way I'm doing development on that)
avitzur__ has quit []
dimasg has quit [Client Quit]
Pupeno has joined #ruby
hashrocket has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
dimasg has joined #ruby
<zenspider> eh. then just go critique the examples by code reading...
pengin has quit [Remote host closed the connection]
<eam> zenspider: oh, I'll build on osx :)
htmldrum has joined #ruby
<zenspider> or that.
<zenspider> if you have homebrew... there's a shell script at the top that'll set up everything you need
tenderlove has quit [Remote host closed the connection]
<zenspider> and run through a couple sanity tests
<eam> beauty
pietr0 has quit [Quit: pietr0]
Musashi007 has joined #ruby
<dfockler> zenspider: this looks cool
<shevy> wheeee zenspider goes 3D :D
lannonbr has joined #ruby
Aeyrix has quit [Max SendQ exceeded]
rehat has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
<zenspider> the biggie for me was wanting to be able to use normal maths
Igorshp has quit [Remote host closed the connection]
<dfockler> instead of weird x/y coords?
<zenspider> so I fixed it to use right hand rule rotation and to use quadrant 1
bruno- has joined #ruby
<zenspider> I wanted my trig functions to work normally
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Aeyrix has joined #ruby
nfk has quit [Remote host closed the connection]
marr has quit []
Pupeno has quit [Remote host closed the connection]
<dfockler> that is pretty nice not having to think of the screen as being at a 45 degree angle upside down
Kyuujitsu has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
rjno has joined #ruby
Kyuujitsu has joined #ruby
ivanskie has joined #ruby
Azure has quit [Ping timeout: 272 seconds]
<zenspider> it especially bugged me that it wasn't quadrant 4 (negative Y)... but quadrant 1 flipped
johny_ has joined #ruby
<johny_> Hi everyone
Inside has joined #ruby
Inside has joined #ruby
johny_ has quit [Client Quit]
swgillespie has joined #ruby
<dfockler> hey I saw a window! It worked!
Ruby_ has joined #ruby
<Ruby_> hi
<Ruby_> Hi all
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ruby_> I have a todo app in rails and I want to edit a todo and delete a todo and not sure how to create the view to do so, Please Help
<zenspider> dfockler: fantastic
<zenspider> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Ruby_> Yep
rjno has quit [Ping timeout: 246 seconds]
pengin has joined #ruby
<zenspider> I just got some labs back. I gotta go home and cook a 1 lb ribeye to celebrate.
<zenspider> laters
<dfockler> goodbye!
<zenspider> dfockler: write some examples and throw them at me!
dopie has joined #ruby
<dfockler> alright :)
<Ruby_> @ruboto, I cant post in the RubyOnRails chatroom
Ruby_ has quit [Client Quit]
<centrx> And...it's gone
Kyuujitsu has quit [Ping timeout: 260 seconds]
khebbie has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> I see the intelligence test for #rubyonrails is still working wonders.
Kyuujitsu has joined #ruby
Azure has joined #ruby
<Ox0dea> Which was the first thousand-story building?
auzty has joined #ruby
havenwood has joined #ruby
danzilio has quit [Quit: Baiii!]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
khebbie has quit [Ping timeout: 250 seconds]
j_mcnally has joined #ruby
Musashi007 has quit [Quit: Musashi007]
d10n-work has quit [Quit: Connection closed for inactivity]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Quit: This computer has gone to sleep]
j_mcnally has quit [Client Quit]
mjuszczak has quit []
Pupeno has joined #ruby
hashrocket has joined #ruby
michael_mbp has quit [Excess Flood]
<zenspider> make that a 25 oz ribeye. holy crap that's big
<zenspider> already in the oven... but only 41 degrees. it's gonna take aw hile
nfk has quit [Remote host closed the connection]
<zenspider> ...a while.
dimasg has quit [Ping timeout: 244 seconds]
<dfockler> zenspider: did that graphics library need a gemspec, because I wrote one to install it
leesharma has joined #ruby
oo_ has joined #ruby
<zenspider> dfockler: not the way I do my gems, no
Kyuujitsu has quit [Ping timeout: 250 seconds]
<dfockler> oh how do you install them?
bradleyprice has quit [Remote host closed the connection]
<zenspider> dfockler: for what you're doing, you need not install at all
bradleyprice has joined #ruby
hashrocket has quit [Client Quit]
<zenspider> rsdl -Ilib example/boids.rb for example
wldcordeiro_ has joined #ruby
<zenspider> (press d! then press b and s to make the radius bigger and smaller)
<zenspider> (so cool)
Kyuujitsu has joined #ruby
<zenspider> rake newb && rake install_gem will suffice locally... I'm about to release a beta versioned gem tho, so just gem install will work after that
<dfockler> oh! yeah! -I does includes that path huh
Rollabunna has joined #ruby
michael_mbp has joined #ruby
rgs has left #ruby [#ruby]
jackjackdripper has quit [Quit: Leaving.]
sevenseacat has joined #ruby
<eam> dependencies: reminding me why I like to stay away from the apex of product code and instead do lower level stuff
woobywooby has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
baroquebobcat_ has joined #ruby
<woobywooby> anyone familiar with twilio here?
Rollabunna has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
<woobywooby> trying to get the image url from a text but params[MediaUrl0] outputs a link to the image the image address itself
<woobywooby> link to the image rather than the image address itself*
tkuchiki has joined #ruby
millerti has joined #ruby
dfockler has quit [Remote host closed the connection]
<woobywooby> normally a link to the image would be fine but i need the image address itself because imagemagick on heroku spits out "ERROR: no decode delegate for this image format"
pdoherty has quit [Quit: Leaving]
Azure has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
baweaver has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 272 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<woobywooby> this might be a unique problem huh
<centrx> What's twilio
tkuchiki has quit [Ping timeout: 246 seconds]
dgutierrez1287 has joined #ruby
Azure has joined #ruby
<centrx> ?ruby
<ruboto> I don't know anything about ruby
<woobywooby> your name is ruboto
weemsledeux has joined #ruby
<woobywooby> lol
<centrx> That's the bot
<woobywooby> oh
jhack has quit [Ping timeout: 250 seconds]
<woobywooby> ?ruby
<ruboto> I don't know anything about ruby
phutchins has quit [Ping timeout: 265 seconds]
tuelz has joined #ruby
attamusc has quit [Quit: Connection closed for inactivity]
Kyuujitsu has quit [Ping timeout: 246 seconds]
<woobywooby> somebody save me
ragingcake has joined #ruby
<woobywooby> in smallville opening theme music
baweaver has joined #ruby
Kyuujitsu has joined #ruby
ragingcake has quit [Client Quit]
<centrx> woobywooby, Have you tried #twilio ?
jhack has joined #ruby
jhack has joined #ruby
dorei has quit []
<woobywooby> i didnt know such a thing existed
Xaitec has quit [Quit: Leaving]
RobertBi_ has joined #ruby
tuelz has quit [Ping timeout: 255 seconds]
<mistym> raz: The rootless issue you mentioned seems to already be fixed in the latest 10.11 dev beta. Your user should upgrade!
ivanskie has joined #ruby
fractalis has quit [Quit: leaving]
<zenspider> I just released graphics v1.0.0b1!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Ping timeout: 246 seconds]
kjones_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<woobywooby> centrx i think most people in #twilio is afk
Kyuujitsu has quit [Ping timeout: 255 seconds]
Kyuujitsu has joined #ruby
dimasg has joined #ruby
hashrocket has joined #ruby
<raz> mistym: oh cool, good to know, thx!
fullofcaffeine has quit [Remote host closed the connection]
SpecialBlue has quit [Quit: leaving]
j4cknewt has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 246 seconds]
Yzguy has quit [Quit: Zzz...]
allcentury has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hmm what is this doing? @game_pause ^= true
mdavid613 has quit [Quit: Leaving.]
beef-wellington has joined #ruby
Igorshp has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
jhack has quit [Ping timeout: 252 seconds]
s00pcan has joined #ruby
Kyuujitsu has joined #ruby
gaboesquivel has joined #ruby
<zenspider> my place smells delicious
wldcordeiro_ has quit [Remote host closed the connection]
<woobywooby> excellent
tuelz has joined #ruby
<zenspider> shevy: clever toggle
wldcordeiro_ has joined #ruby
cherwin has quit [Quit: ZNC - http://znc.in]
msnyon has quit [Ping timeout: 260 seconds]
Kyuujitsu has quit [Ping timeout: 246 seconds]
<zenspider> 21 more degrees to go... argh I'm humbry
reset has quit [Quit: Leaving...]
Channel6 has joined #ruby
d10n-work has joined #ruby
baroquebobcat_ has quit [Quit: baroquebobcat_]
ipstatic has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
j3r0 has joined #ruby
mjuszczak has joined #ruby
<ipstatic> is there a way to operate on the assignment of a variable in a .each block? For example I am reading a file line by line and would love to run .strip on the assignment of line so I don't have to inside the block. file.each |line.strip| vs file.each |line|
Kyuujitsu has joined #ruby
Vile` has joined #ruby
arescorpio has joined #ruby
jpfuentes2 has joined #ruby
<centrx> ipstatic, use #map ?
cpruitt has joined #ruby
jpfuentes2 has quit [Client Quit]
<ipstatic> centrx: heh, why didn't I think of that
dgutierrez1287 has quit [Remote host closed the connection]
<woobywooby> does anyone know how to deal with this
<woobywooby> ERROR: no decode delegate for this image format `/tmp/magick-wLG2p7Dv' @ error/svg.c/ReadSVGImage/2871
mjuszcza_ has joined #ruby
<woobywooby> it works fine on my mac but on heroku it throws that error out
bruno- has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
MrButh has joined #ruby
mjuszczak has quit [Ping timeout: 256 seconds]
Kyuujitsu has quit [Ping timeout: 250 seconds]
<gambl0re> how many of you consider yourself fluent in ruby?
tuelz has quit [Ping timeout: 260 seconds]
<baweaver> depends on what the result is of claiming so :P
<woobywooby> baweaver unfortunately my problem is only inside of heroku
msnyon_ has joined #ruby
Kyuujitsu has joined #ruby
<baweaver> what have you tried?
<zenspider> ARGH.... 12 degrees
<zenspider> gambl0re: I only pretend to be
chipotle has quit [Ping timeout: 272 seconds]
<baweaver> zenspider: deepfreeze coding?
<gambl0re> what does that mean
<woobywooby> tried what? i dont have paperclip installed
j_mcnally has joined #ruby
<zenspider> baweaver: 12 degrees to go up to 125
<baweaver> ah
<zenspider> woobywooby: is it an svg??
<zenspider> doubtful
<woobywooby> it seems like it from the error message but it's really a link to a png image
<zenspider> gambl0re: .ca implies you're not ESL, so you know what pretend means
rakm has joined #ruby
<woobywooby> which is finicky but it works on my system
<zenspider> woobywooby: a link? should you be reading it first and handing it the raw data?
omegamike has joined #ruby
<woobywooby> not sure how to do that, it's a twilio mediurl0 link
<woobywooby> meaning i get it from a text like this params['MediaUrl0']
minmax has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<zenspider> is it a uri, or is it a binary blob?
<gambl0re> you pretend to be fluent in ruby?
<gambl0re> so you're saying that you're not fluent in ruby?
<zenspider> and what imagemagick method are you calling? what does it take?
dimasg has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<baweaver> I know enough to be extremely dangerous to myself and others in my immediate git proximity
<woobywooby> im actually calling a zbarimg
<woobywooby> which triggers imagemagick
MatrixBridge has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
M-prosodyContext has quit [Remote host closed the connection]
<zenspider> git proximity... I like that. like a grenade
dgutierrez1287 has joined #ruby
<baweaver> or a force push
MatrixBridge has joined #ruby
Rollabunna has joined #ruby
<zenspider> woobywooby: ZBar::Image.new?
MatrixBridge1 has joined #ruby
<baweaver> Really though, fluency is a very vague term to use as a qualifier of skill gambl0re
<zenspider> `ZBar::Image.from_jpeg(File.read('test.jpg')).process` implies that you need to hand it the blob, not a uri.
kies^ has joined #ruby
MatrixBridge has quit [Remote host closed the connection]
MatrixBridge1 has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> easiest way, if it isa uri, is to use open-uri.
chipotle has joined #ruby
<zenspider> open(uri).read or URI.parse(uri).read
<woobywooby> ^this works on my system fine but not on heroku
<zenspider> daaamnit... 5 more degrees
omegamike has quit [Ping timeout: 272 seconds]
MatrixBridge has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
<zenspider> seems like a problem with heroku, rather than your code
Kyuujitsu has joined #ruby
<zenspider> `curl -LI http://api.twilio.com/2010-04-01/Accounts/ACc7c65972d8789ebf6c9325c2d8e23bb1/Messages/MM2c5099e9149559b93f3dada69eb7c4ce/Media/MEd8564b1618b2f1ad5395e6a7a4af5bf3` shows it resolving correctly after several redirects. seems to have Content-Type and Content-Length correctly
Rollabunna has quit [Ping timeout: 244 seconds]
umop3plsdn has joined #ruby
Rollabunna has joined #ruby
<woobywooby> zenspider i get redirect forbidden
<zenspider> I suggest you take it up with heroku support
<zenspider> maybe try #heroku or somesuch
fullofcaffeine has joined #ruby
mjuszczak has joined #ruby
craysiii has quit [Remote host closed the connection]
<zenspider> A watched steak never cooks
<baweaver> almost sounds like you're cooking over there zenspider
<zenspider> indeed
<Ox0dea> zenspider: "Humbry" is "humbly hungry"?
baroquebobcat_ has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
fullofcaffeine has quit [Remote host closed the connection]
<zenspider> right now there's nothing humble about it. I'm dying
<woobywooby> this is true despair
<zenspider> ugh. and making my place waaaaarm
dgutierrez1287 has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 256 seconds]
mjuszcza_ has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
Kyuujitsu has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
Lucky__ has joined #ruby
<zenspider> yay! searing time!
Synthbread has joined #ruby
Synthead has quit [Disconnected by services]
Synthbread is now known as Synthead
baroquebobcat_ has quit [Quit: baroquebobcat_]
Synthbread has joined #ruby
mjuszczak has quit []
ivanskie has joined #ruby
ragingcake has joined #ruby
Rollabunna has joined #ruby
fullofcaffeine has joined #ruby
ragingcake has quit [Client Quit]
pengin has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
ragingcake has joined #ruby
leesharma has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
ragingcake has quit [Client Quit]
Violentr has quit [Ping timeout: 244 seconds]
JoshL has quit []
beef-wellington has quit [Ping timeout: 250 seconds]
ragingcake has joined #ruby
scottschecter has quit [Quit: Leaving]
fullofcaffeine has quit [Remote host closed the connection]
ragingcake has quit [Client Quit]
Kyuujitsu has quit [Ping timeout: 264 seconds]
baroquebobcat_ has joined #ruby
Kyuujitsu has joined #ruby
ragingcake has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
ragingcake has quit [Client Quit]
baroquebobcat_ has quit [Client Quit]
tubuliferous_ has quit [Ping timeout: 252 seconds]
ragingcake has joined #ruby
tenderlove has quit [Remote host closed the connection]
<woobywooby> zenspider thanks i got it working
wldcordeiro_ has quit [Ping timeout: 244 seconds]
ragingcake has quit [Client Quit]
mjuszczak has joined #ruby
Asher has quit [Read error: No route to host]
ragingcake has joined #ruby
tuelz has joined #ruby
hazelux has joined #ruby
benlovell has joined #ruby
<zenspider> woobywooby: what was it?
tenderlove has joined #ruby
cnngimenez has joined #ruby
Asher has joined #ruby
ragingcake has quit [Client Quit]
<woobywooby> had to use open uri redirect
fullofcaffeine has joined #ruby
<woobywooby> struggled with many problems surrounding that feature since friday
j3r0 has quit [Ping timeout: 246 seconds]
<woobywooby> feels good
nettoweb has joined #ruby
SpecialBlue has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
oo_ has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 256 seconds]
mjuszczak has quit []
texasmade has quit [Ping timeout: 256 seconds]
<zenspider> yay
<zenspider> ok... off to nerd party. hopefully I can demo my library
baweaver has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
swgillespie has joined #ruby
dimasg has joined #ruby
Igorshp has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
Igorshp has quit [Read error: No route to host]
wldcordeiro_ has joined #ruby
Igorshp has joined #ruby
shadoi has quit [Quit: Leaving.]
nettoweb has quit [Ping timeout: 255 seconds]
Kyuujitsu has quit [Ping timeout: 272 seconds]
f3ttX] has quit [Remote host closed the connection]
zacstewart has joined #ruby
<Ox0dea> The first building with over a thousand stories was...
Kyuujitsu has joined #ruby
mjuszczak has joined #ruby
oo_ has joined #ruby
woobywooby has quit [Ping timeout: 246 seconds]
michaelryu has joined #ruby
<al2o3-cr> pyramids?
tenderlove has quit [Quit: Leaving...]
mjuszczak has quit [Client Quit]
<michaelryu> testing
<michaelryu> hmm
michaelryu has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Inside has quit [Ping timeout: 265 seconds]
Kyuujitsu has quit [Ping timeout: 255 seconds]
Rixius has quit [Ping timeout: 260 seconds]
ValicekB has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
Rixius has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
joneshf-laptop has quit [Read error: Connection reset by peer]
joneshf-laptop has joined #ruby
bruno- has joined #ruby
<Aeyrix> Ox0dea: Stories? The library of Alexandria.
<Aeyrix> Storeys? The Pyramids.
dimasg has quit [Ping timeout: 260 seconds]
wldcordeiro_ has quit [Ping timeout: 264 seconds]
Kyuujitsu has quit [Ping timeout: 272 seconds]
Oka has quit [Quit: さようなら]
dimasg has joined #ruby
Kyuujitsu has joined #ruby
tcrypt has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
woodruffw has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
leesharma has joined #ruby
<Ox0dea> He's good.
dopie has joined #ruby
modern has quit []
deavid has quit [Ping timeout: 244 seconds]
<Ox0dea> I was indeed looking for The Library at Alexandria.
Kyuujitsu has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
iGaves has joined #ruby
iGaves has quit [Client Quit]
cpruitt has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Ping timeout: 244 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kyuujitsu has joined #ruby
Unicorn| has quit [Quit: Connection closed for inactivity]
Rickmasta has quit [Ping timeout: 252 seconds]
akurilin has joined #ruby
MVPhelp_ has quit [Ping timeout: 272 seconds]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
Oka has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
devoldmx has joined #ruby
mjuszczak has joined #ruby
Kyuujitsu has joined #ruby
CorySimmons has quit [Quit: Bye!]
graydot has joined #ruby
omegamike has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
Vile` has quit [Ping timeout: 250 seconds]
dopie has quit [Quit: This computer has gone to sleep]
jmhmccr has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
FooMunki has quit [Quit: FooMunki]
graydot has quit [Client Quit]
zacstewart has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
omegamike has quit [Ping timeout: 260 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
tanath has quit [Ping timeout: 265 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MVPhelp_ has joined #ruby
tkuchiki has joined #ruby
unsymbol has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
unsymbol has joined #ruby
Kyuujitsu has joined #ruby
Pupeno_ has joined #ruby
Missphoenix has quit [Quit: Leaving]
GriffinHeart has joined #ruby
sarmiena_ has joined #ruby
Pupeno has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
qiukun has joined #ruby
MVPhelp_ has quit [Remote host closed the connection]
iateadonut has joined #ruby
MVPhelp has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
PhantomS_ has joined #ruby
Kyuujitsu has joined #ruby
yh_ has quit [Ping timeout: 240 seconds]
PhantomSpank has quit [Ping timeout: 265 seconds]
jonee has joined #ruby
dopie has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
unsymbol has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 246 seconds]
braincrash has quit [Quit: bye bye]
psy_ has quit [Ping timeout: 264 seconds]
unsymbol has joined #ruby
railswebdev has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
tuelz has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
Kyuujitsu has joined #ruby
jcdesimp has joined #ruby
Igorshp has quit [Remote host closed the connection]
ecksit has joined #ruby
Synthead has quit [Quit: Leaving]
ragingcake has joined #ruby
speaking1ode has joined #ruby
ragingcake has quit [Client Quit]
tanath has joined #ruby
j4cknewt has joined #ruby
zacstewart has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
Kyuujitsu has joined #ruby
hashrocket has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
rackquestion has joined #ruby
Lucky__ has joined #ruby
countryHick has quit [Quit: Connection closed for inactivity]
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
ecksit has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
rackquestion has quit [Client Quit]
mdavid613 has joined #ruby
mrod has joined #ruby
rcs has quit [Ping timeout: 246 seconds]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
BTRE has quit [Remote host closed the connection]
texasmade has joined #ruby
jcdesimp_ has joined #ruby
sarmiena_ has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
leesharma has quit [Ping timeout: 240 seconds]
jcdesimp has quit [Read error: Connection reset by peer]
mdavid613 has quit [Client Quit]
dimasg has quit [Ping timeout: 252 seconds]
rcs has joined #ruby
j4cknewt has quit [Remote host closed the connection]
djstorm has joined #ruby
rubyrack has joined #ruby
<mrod> Hi, I'm trying to write tests for my gem. It relies on a websocket object that I create with another gem. I want to pre-define the data that comes down the websocket but I'm not sure how to load my mock classes. Here's my code: https://github.com/mikerodrigues/orderbook/blob/master/lib/orderbook.rb and mocks https://gist.github.com/mikerodrigues/27f880806e917a879a3b Am I going about this the right way?
GriffinHeart has quit [Remote host closed the connection]
gix has quit [Ping timeout: 255 seconds]
Kyuujitsu has quit [Ping timeout: 256 seconds]
Vile` has joined #ruby
Kyuujitsu has joined #ruby
sarmiena_ has joined #ruby
j4cknewt has joined #ruby
<mrod> I don't see how I can have my code use the mock classes without rewriting the code to the point of making the tests too contrived.
fullofcaffeine has joined #ruby
deavid has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theery has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
gix has joined #ruby
theery has quit [Remote host closed the connection]
sarmiena_ has quit [Quit: sarmiena_]
darkf has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
Inside has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
<Inside> yo
ybian has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
<Aeyrix> h
Kyuujitsu has joined #ruby
swgillespie has joined #ruby
baweaver has joined #ruby
hashrocket has quit [Ping timeout: 246 seconds]
wldcordeiro_ has joined #ruby
j_mcnally has quit [Client Quit]
rubyrack has quit [Quit: Page closed]
fullofcaffeine has joined #ruby
ofdtrinity has left #ruby ["Leaving"]
zacstewart has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 264 seconds]
Kyuujitsu has quit [Ping timeout: 250 seconds]
RobertBi_ has quit [Ping timeout: 265 seconds]
CorySimmons has joined #ruby
j_mcnally has joined #ruby
Kyuujitsu has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 245 seconds]
vdamewood has quit [Quit: Life beckons.]
Trynemjoel has joined #ruby
oo_ has quit [Remote host closed the connection]
the4tress has joined #ruby
freerobby has joined #ruby
<the4tress> is this the best place to ask questions about the liquid templating engine?
chipotle has quit [Quit: cheerio]
Kyuujitsu has quit [Ping timeout: 264 seconds]
<Ox0dea> the4tress: Are you using Liquid in a Rails app? :P
<the4tress> Ox0dea: im trying to work with desk.com
<the4tress> which uses liquid
j_mcnally has joined #ruby
Kyuujitsu has joined #ruby
<the4tress> but it looks like liquid was created for ruby apps... not sure if it is only used in ruby apps
<the4tress> first day messing with it
ybian has joined #ruby
jgpawletko has joined #ruby
dgutierrez1287 has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
theery has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
arup_r has joined #ruby
scorp007 has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
benlovell has joined #ruby
bmurt has quit []
dgutierrez1287 has quit [Ping timeout: 260 seconds]
dopie has quit [Ping timeout: 255 seconds]
Iskarlar has joined #ruby
pawnbox has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
the4tress has quit [Quit: WeeChat 1.2]
Kyuujitsu has joined #ruby
mjuszczak has quit []
benlovell has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
CorySimmons has quit [Quit: Bye!]
codecop has joined #ruby
dopie has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kyuujitsu has quit [Ping timeout: 240 seconds]
Iskarlar has joined #ruby
j_mcnall_ has joined #ruby
jonee has quit [Ping timeout: 264 seconds]
theery has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 272 seconds]
Iskarlar has quit [Client Quit]
j4cknewt has joined #ruby
j_mcnally has quit [Ping timeout: 272 seconds]
jcdesimp_ has quit [Quit: Leaving...]
lkba has joined #ruby
brianpWins has joined #ruby
zacstewart has joined #ruby
fullofca_ has joined #ruby
ascarter has joined #ruby
Yzguy has quit [Quit: Zzz...]
havenwood has quit [Ping timeout: 246 seconds]
theery has joined #ruby
speaking1ode has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 244 seconds]
saddad has joined #ruby
pawnbox_ has joined #ruby
Kyuujitsu has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 240 seconds]
Jarboe has quit []
Rickmasta has joined #ruby
rjno has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonee has joined #ruby
xcesariox has joined #ruby
havenwood has joined #ruby
ap4y has quit [Remote host closed the connection]
d10n-work has quit [Quit: Connection closed for inactivity]
wldcordeiro_ has quit [Quit: Konversation terminated!]
wldcordeiro_ has joined #ruby
rjno has quit [Ping timeout: 260 seconds]
Kyuujitsu has quit [Ping timeout: 256 seconds]
astrobun_ has joined #ruby
Kyuujitsu has joined #ruby
swgillespie has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
arescorpio has quit [Quit: Leaving.]
djstorm has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
psy_ has joined #ruby
aldodelgado has joined #ruby
kjones_ has joined #ruby
aldodelgado has left #ruby [#ruby]
jonee has quit [Ping timeout: 244 seconds]
kjones_ has quit [Max SendQ exceeded]
Kyuujitsu has quit [Ping timeout: 246 seconds]
thatsnotjack has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
aldodelgado has joined #ruby
ragingcake has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has quit [Ping timeout: 240 seconds]
aldodelgado has quit [Client Quit]
theery has quit [Remote host closed the connection]
ragingcake has quit [Client Quit]
unsymbol has quit [Ping timeout: 250 seconds]
unsymbol has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
tcrypt has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
busterarm has quit [Quit: WeeChat 1.2]
pkh has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
pawnbox_ has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
benlovell has joined #ruby
fedexo has joined #ruby
tcrypt has joined #ruby
swgillespie has joined #ruby
astrobu__ has joined #ruby
oo_ has joined #ruby
Rutix has quit []
benlovell has quit [Ping timeout: 246 seconds]
jonee has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
astrobun_ has quit [Ping timeout: 260 seconds]
saddad has quit [Quit: WeeChat 1.3-dev]
elton has left #ruby [#ruby]
Kyuujitsu has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
prefixed has joined #ruby
Rutix has quit [Client Quit]
<prefixed> yo
theery has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
hazelux has quit [Remote host closed the connection]
<havenwood> prefixed: hi
Kyuujitsu has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
<prefixed> why isn't this regex matching? http://pastebin.com/U43jLrY9
<ruboto> prefixed, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/705af052c271c2506f97
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
busterarm has joined #ruby
<kannan4k> folks, can anyone help me understand this code -> https://gist.github.com/kannan4k/99ae3363ed0755411fde
zacstewart has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<Ox0dea> kannan4k: Is that *all* of the data?
<havenwood> prefixed: so it's escaping your anchor: /\.TEST\$/
Trynemjoel has joined #ruby
bustrarm has joined #ruby
<kannan4k> Ox0dea, that's all I got it, but it can vary I guess
<kannan4k> oh wait, let me get you another one
busterarm has quit [Killed (verne.freenode.net (Nickname regained by services))]
bustrarm is now known as busterarm
GriffinHeart has joined #ruby
<prefixed> havenwood anchor?
<Ox0dea> prefixed: The '$'.
pyon is now known as pyon-intercal
<havenwood> prefixed: instead of `/\.TEST$/` it's converting to `/\.TEST\$/`.
<prefixed> how do I make it not escape it
<havenwood> prefixed: array = [/\.TEST$/]
<prefixed> ok
<prefixed> havenwood what if that array is part of a json object?
<havenwood> >> array = ['\.TEST$'].map { |s| Regexp.new s }
<ruboto> havenwood # => [/\.TEST$/] (https://eval.in/412075)
<havenwood> prefixed: just do it a way that the anchor ($) doesn't get escaped
Kyuujitsu has quit [Ping timeout: 260 seconds]
Inside has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
<prefixed> havenwood I don't understand. what "other" way is there?
<prefixed> I need to union an array of regexes
pawnbox has joined #ruby
<Ox0dea> kannan4k: Well, the point seems to be to symbolize the keys, but it's also wrapping sub-Hashes in Arrays, which seems sort of pointless.
<havenwood> prefixed: but they're not Regexps they're Strings?
<havenwood> prefixed: if it was an Array of Regexps you'd not have the problem, like I pointed out ^
<prefixed> havenwood I pass some regexes in via a json array. the problem there is that the regexes need to be strings in the json object
<havenwood> prefixed: see the second example above for mapping an Array of Strings to Regexps without escaping
<prefixed> damn
TvL2386 has joined #ruby
<kannan4k> Ox0dea, keys you mean, "users" and "jobcodes" ?
<Ox0dea> Yes.
duderonomy has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railsraider has joined #ruby
xcesariox has joined #ruby
<Ox0dea> ~ $ ri Regexp.union | grep to_regexp -B1 | paste -s
<Ox0dea> Note: the arguments for ::union will try to be converted into a regular expression literal via #to_regexp.
<Ox0dea> Uh... what?
<Ox0dea> >> 'foo'.method(:to_regexp) rescue $!
<ruboto> Ox0dea # => #<NameError: undefined method `to_regexp' for class `String'> (https://eval.in/412076)
graydot has joined #ruby
xcesariox has quit [Client Quit]
jeremy04_ has joined #ruby
arup_r has quit [Quit: Leaving]
pkh has joined #ruby
theery has quit [Remote host closed the connection]
<Ox0dea> Oh, right. #to_regexp is a coercer.
<havenwood> >> ['\.TEST$'].map &Regexp.public_method(:new)
<ruboto> havenwood # => [/\.TEST$/] (https://eval.in/412077)
jeremy04 has quit [Ping timeout: 272 seconds]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
<Ox0dea> Imagine if non-nullary methods returned "themselves" when called with no arguments.
railsraider has quit [Quit: railsraider]
<Ox0dea> You could say map(&Regexp.new).
riotjones has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
gambl0re has quit [Ping timeout: 240 seconds]
<havenwood> mmm
Kyuujitsu has joined #ruby
gambl0re has joined #ruby
skade has joined #ruby
niiamon has joined #ruby
DoubleMalt has joined #ruby
stevednd has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 255 seconds]
devbug has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
gaboesquivel has quit []
Kyuujitsu has joined #ruby
niiamon has quit [Ping timeout: 246 seconds]
niiamon has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
hailong has joined #ruby
leesharma has joined #ruby
hailong has quit [Quit: Lost terminal]
Trynemjoel has joined #ruby
brianpWins has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
njr has joined #ruby
leesharma has quit [Ping timeout: 256 seconds]
<baweaver> Ox0dea: Most of the idea I'm not entirely fond of the no parens on Ruby
tubuliferous_ has joined #ruby
<baweaver> You sacrifice a ton of practical usage for a minor semantical convenience.
stevednd has joined #ruby
<Aeyrix> I use parens whenever there's more than one arg.
pawnbox has quit [Remote host closed the connection]
<havenwood> I always use parens when it breaks the interpreter not to.
<baweaver> Ignoring the hate of Javascript in some cases, it has the gist of the idea. A function isn't called unless it has at least () on the end.
<baweaver> Same with Python
<baweaver> More typing? Yes. Being able to pass _anything_ around as a function? Worth it.
<ElSif> closures are so nice :D
aganov has joined #ruby
<Ox0dea> baweaver: I disagree. Ruby lets us do what $other does, whereas $other programmers don't get a choice.
Trynemjoel has quit [Ping timeout: 250 seconds]
<Ox0dea> ElSif: Could you clarify the context of your comment?
<baweaver> Perhaps
tubuliferous_ has quit [Ping timeout: 260 seconds]
<baweaver> then again send methods and public_method are slow aren't they?
<Ox0dea> ?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!
Trynemjoel has joined #ruby
pawnbox has joined #ruby
<Aeyrix> m8
<baweaver> ?
<Ox0dea> baweaver: * is slow.
<ElSif> uhhh hmmm, you can also use closures when you might use an anonymous function, and they are nice
<ElSif> i thnk?
carlosoliveira has quit [Quit: Connection closed for inactivity]
<baweaver> ....wat?
<baweaver> closures are anonymous functions
<ElSif> sure
<Ox0dea> baweaver: + an environment.
<baweaver> and mentioning something as slow isn't offtopic
<baweaver> it's discussing ruby
<ElSif> function pointer and binding context right Ox0dea?
<Ox0dea> baweaver: Methinks you've missed the humor bit.
<Ox0dea> ElSif: Oui.
<Ox0dea> Which Ruby has in spades, thus my asking for clarification.
<ElSif> but are they nice?
<Ox0dea> Duh?
<ElSif> :D
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> >> def divisible_by(n) -> x { x % n } end; (1..10).select(&divisible_by(3))
<ruboto> baweaver # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/412080)
<Ox0dea> ElSif: The timing of your comment struck me as praise for $other for having closures.
<baweaver> >> def divisible_by(n) -> x { x % n == 0 } end; (1..10).select(&divisible_by(3))
<ruboto> baweaver # => [3, 6, 9] (https://eval.in/412081)
<baweaver> derp
<baweaver> divisible_by returns a function which remembers n
Kyuujitsu has quit [Ping timeout: 260 seconds]
<baweaver> >> def divisible_by(n) -> x { x % n == 0 } end; d3 = divisible_by(3); (1..10).select(&d3)
<ruboto> baweaver # => [3, 6, 9] (https://eval.in/412082)
<ElSif> Ox0dea: i can see it being a bit random :)
<baweaver> you can even assign them to variables, pass them around, the possibilities are interesting.
Trynemjoel has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Kyuujitsu has joined #ruby
<Ox0dea> ElSif: Ill-informed, if nothing else. :P
<Ox0dea> No harm done, of course.
<ElSif> i know theres a difference, and how to put it in code, but english is not code :(
Trynemjoel has joined #ruby
<ElSif> but you can code in english...
<baweaver> A closure is a function that closes around the state in which it was defined
<baweaver> s/state/environment/ if you like
MrButh has quit []
<Ox0dea> ElSif: I know of Shakespeare and LOLCODE; what're some other examples?
<Ox0dea> Forgot Chef.
texasmade has quit [Ping timeout: 260 seconds]
<ElSif> turing complete languages?
<Ox0dea> I know Chef and LOLCODE are, not sure about the first.
fedexo has quit [Ping timeout: 244 seconds]
<Ox0dea> ElSif: To clarify, I'm asking about languages in which one can code in English, loosely interpreted.
railsraider has joined #ruby
<ElSif> ah
<ElSif> lol gotcha
<Aeyrix> That Arnold Schwarzenegger language
<ElSif> c++ templates are turing complete in context
<ElSif> of runtime i think?
<ElSif> template daemon time?
<ElSif> is that english?
<Ox0dea> I think not.
<Ox0dea> ArnoldC is, though.
<ElSif> ive never used one, do people every try to execute shakespeare plays ??
<ElSif> ever*
cornerma1 has joined #ruby
astrobu__ has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
<ElSif> LOLCODE reads very shakespearian
yardenbar has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kyuujitsu has quit [Ping timeout: 260 seconds]
Kyuujitsu has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
Trynemjoel has joined #ruby
riotjones has joined #ruby
zacstewart has joined #ruby
hazelux has joined #ruby
astrobun_ has joined #ruby
<ElSif> Shakespeare is probably my favorite, thanks Ox0dea
pawnbox has quit [Remote host closed the connection]
pyon-intercal is now known as pyon
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
Kyuujitsu has quit [Ping timeout: 255 seconds]
axisys has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
Kyuujitsu has joined #ruby
swgillespie has joined #ruby
hazelux has quit [Ping timeout: 252 seconds]
valetudo has quit [Ping timeout: 255 seconds]
<Alayde> In trying to understand this (http://techoverflow.net/blog/2013/12/29/solve-invalid-multibyte-escape-xfe-xff-in-ruby-vpim/), is it a fair assumption that the ruby interpreter will set encoding based solely on adding a comment like that to the top of a file?
<Ox0dea> Alayde: That's right.
Kyuujitsu has quit [Ping timeout: 250 seconds]
<Alayde> Interesting. I learned something pretty kick ass today
Kyuujitsu has joined #ruby
AlexRussia has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> ElSif: Happy to have assisted your discovery. The semantics make for unpleasantly rigid constructions that don't read very well, in my opinion.
<Ox0dea> Beatnik (https://esolangs.org/wiki/Beatnik) is a lot more malleable in that regard.
FooMunki has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
axisys has joined #ruby
FooMunki has quit [Client Quit]
<Ox0dea> > mfw Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch in that alphabet program
_blizzy_ has joined #ruby
safeforge has joined #ruby
jenrzzz has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 260 seconds]
devbug_ has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
_blizzy_ has quit [Read error: Connection reset by peer]
devbug has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
_blizzy_ has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
schaerli has joined #ruby
SpecialBlue has quit [Remote host closed the connection]
prefixed has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
Synthead has joined #ruby
davedev24 has quit [Remote host closed the connection]
msnyon_ has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 265 seconds]
Axy has joined #ruby
cnngimenez has quit [Quit: Konversation terminated!]
Mia has quit [Ping timeout: 265 seconds]
chipotle has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
lkba_ has joined #ruby
Askilada has joined #ruby
brianpWins has quit [Quit: brianpWins]
TomyLobo has joined #ruby
brianpWins has joined #ruby
ohaibbq has joined #ruby
krz has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 246 seconds]
roolo has quit [Remote host closed the connection]
unsymbol has quit [Ping timeout: 265 seconds]
Alayde has quit [Ping timeout: 256 seconds]
unsymbol has joined #ruby
niiamon has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
fullofca_ has quit [Remote host closed the connection]
zacstewart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
solars has joined #ruby
GriffinHeart has joined #ruby
Macaveli has joined #ruby
ap4y has joined #ruby
rehat has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 246 seconds]
TomyLobo has quit [Ping timeout: 260 seconds]
rdark has joined #ruby
dgutierrez1287 has joined #ruby
_joes_ has joined #ruby
fella6s has joined #ruby
pawnbox has quit [Remote host closed the connection]
fella5s has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
scorp007 has joined #ruby
<scorp007> When embedding, is it possible to make a class only creatable from the host but not the script?
<Ox0dea> scorp007: Please clarify.
railswebdev has joined #ruby
<scorp007> rb_define_class will create a scripter-visible class definition. They call Foo.new it up.
<Ox0dea> scorp007: Undefine #new?
<scorp007> Will that prevent the host application from newing it?
<Ox0dea> Yes.
<scorp007> that's no good then.
dgutierrez1287 has quit [Ping timeout: 260 seconds]
<Ox0dea> Sorry, I misinterpreted "host" there.
kwd has quit [Quit: kwd]
<Ox0dea> scorp007: Lemme tinker.
<scorp007> I.e. will it prevent rb_class_new_instance from working?
<Ox0dea> It shouldn't, no.
<scorp007> oh, then that's fine
oo_ has joined #ruby
<scorp007> if I can rb_class_new_instance but they can't Foo.new, then I'm good.
<scorp007> I'll give it a shot, thanks.
<Ox0dea> Happy to help.
Axy has quit [Read error: No route to host]
ragingcake has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
ragingcake has quit [Client Quit]
lapide_viridi has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
ragingcake has joined #ruby
_joes_ has quit [Ping timeout: 250 seconds]
ragingcake has quit [Client Quit]
omfgtora has quit [Read error: Connection reset by peer]
omfgtora has joined #ruby
skade has joined #ruby
wheresmyjetpack has quit [Quit: Konversation terminated!]
kwd has joined #ruby
noethics has quit [Remote host closed the connection]
<Ox0dea> scorp007: Works like a charm. :)
kwd has quit [Client Quit]
devbug_ has quit [Read error: Connection reset by peer]
kp666 has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
kp666 has quit [Max SendQ exceeded]
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
radgeRayden has quit [Ping timeout: 264 seconds]
kp666 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
niiamon has joined #ruby
pawnbox has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
<Ox0dea> scorp007: You're aware that Fiddle/FFI can be made to reattach your initializer, yes?
sdwrage has quit [Quit: Leaving]
omfgtora has quit [Ping timeout: 260 seconds]
wldcordeiro_ has quit [Ping timeout: 260 seconds]
tubuliferous_ has joined #ruby
ragingcake_ has joined #ruby
niiamon has quit [Ping timeout: 255 seconds]
niiamon has joined #ruby
noethics has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
qiukun has quit [Remote host closed the connection]
frg133 has quit [Quit: Leaving]
tkrajcar has joined #ruby
qiukun has joined #ruby
ragingcake_ has quit [Quit: ragingcake_]
nhhagen has joined #ruby
chipotle has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
leesharma has joined #ruby
keeguon has joined #ruby
nhhagen has quit [Client Quit]
charliesome has joined #ruby
arturmartins has joined #ruby
cajone has left #ruby [#ruby]
ap4y has quit [Ping timeout: 265 seconds]
leesharma has quit [Ping timeout: 260 seconds]
ap4y has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
cibs has joined #ruby
Iskarlar has joined #ruby
lsmola has joined #ruby
bayed has joined #ruby
AlphaAtom has joined #ruby
upload` has joined #ruby
howdoi has joined #ruby
cajone has joined #ruby
niiamon has quit [Read error: Connection timed out]
wprice has joined #ruby
niiamon has joined #ruby
tkuchiki has quit [Remote host closed the connection]
wldcordeiro_ has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
umop3plsdn has quit [Ping timeout: 265 seconds]
DoubleMalt has quit [Ping timeout: 244 seconds]
omfgtora has joined #ruby
pawnbox has quit [Remote host closed the connection]
ponga has joined #ruby
staafl has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
upload` has quit [Ping timeout: 244 seconds]
TomyWork has joined #ruby
k3asd` has joined #ruby
niiamon_ has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
yh has joined #ruby
Iskarlar has joined #ruby
<adaedra> Bonjour
<Ox0dea> A river derchi.
tkuchiki has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
c0m0 has joined #ruby
quimrstorres has joined #ruby
jud has quit [Ping timeout: 250 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro__ has joined #ruby
Philipp__ has joined #ruby
lanemeyer has quit [Ping timeout: 244 seconds]
niiamon has quit [Read error: Connection timed out]
DoubleMalt has joined #ruby
niiamon has joined #ruby
wldcordeiro_ has quit [Ping timeout: 272 seconds]
djbkd has quit [Quit: My people need me...]
arup_r has joined #ruby
tomphp has joined #ruby
nhhagen has joined #ruby
zacstewart has quit [Ping timeout: 260 seconds]
ishahnaz has joined #ruby
djbkd has joined #ruby
skade has quit [Ping timeout: 250 seconds]
yh has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
xfbs has joined #ruby
lanemeyer has joined #ruby
astrobun_ has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
xfbs has quit [Max SendQ exceeded]
xfbs has joined #ruby
Cust0sLim3n has quit [Ping timeout: 250 seconds]
astrobun_ has joined #ruby
Vile` has quit [Ping timeout: 272 seconds]
qiukun has quit [Ping timeout: 250 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
GriffinHeart has joined #ruby
baweaver has quit [Remote host closed the connection]
jmhmccr has quit [Quit: Connection closed for inactivity]
Vile` has joined #ruby
Musashi007 has joined #ruby
xfbs has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
yh_ has joined #ruby
xfbs has joined #ruby
krz has quit [Read error: Connection reset by peer]
AlexRussia has quit [Read error: Connection reset by peer]
yh_ has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
ohaibbq has quit [Quit: Leaving...]
pawnbox has quit [Remote host closed the connection]
marr has joined #ruby
Cust0sLim3n has joined #ruby
<yorickpeterse> morning
<oddmunds> morning
quimrstorres has quit [Remote host closed the connection]
benlovell has joined #ruby
chthon has joined #ruby
<izabera> morning
<sevenseacat> afternoon
<izabera> c-c-combo breaker
<adaedra> But UGT :'(
<apeiros> moin
krz has joined #ruby
yh_ has joined #ruby
Musashi007 has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
banister has joined #ruby
Musashi007 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Mendenhall has joined #ruby
niiamon_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
niiamon_ has joined #ruby
Musashi007 has quit [Client Quit]
yh_ has quit [Ping timeout: 265 seconds]
zacstewart has joined #ruby
postmodern has quit [Quit: Leaving]
sheeny has joined #ruby
htmldrum has quit [Quit: leaving]
<sheeny> Hi all, I have a rails project which connects to an external database (i dont have control over the column names/data) unfortunately the column names are all upcase, so when i try object.attribute it obviously raises method missing, where object['ATTRIBUTE'] would work. I am considering overriding method missing to handle this but before I do i was wondering if anyone had a better cleaner solution?
lkba has joined #ruby
<adaedra> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
sheeny has left #ruby [#ruby]
shredding has joined #ruby
quimrstorres has joined #ruby
anisha has joined #ruby
andikr has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
isxek has joined #ruby
Ropeney has joined #ruby
yawniek has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
oo_ has quit [Remote host closed the connection]
niemcu has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
hazelux has joined #ruby
andikr has joined #ruby
<yawniek> Zlib::GzipReader.new(infile).each_line somehow stops at 50 lines (even though the file has around 25k lines. why?
<yorickpeterse> yawniek: without any code samples in a gist that will be hard to answer
senayar has joined #ruby
senayar has joined #ruby
oo_ has joined #ruby
jenrzzz has joined #ruby
niiamon_ has quit [Read error: Connection timed out]
tkuchiki has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 240 seconds]
niiamon_ has joined #ruby
<yawniek> yorickpeterse: Zlib::GzipReader.new( open("t.gz") ).each_line.map{1}.reduce(&:+)
hazelux has quit [Ping timeout: 246 seconds]
<yorickpeterse> My only guess is that ".gz" only has 50 lines
<yorickpeterse> err t.gz
<yxhuvud> .map{1}.reduce(&:+) ? how about using .count instead?
<yorickpeterse> yawniek: `wc -l t.gz`, what does that output?
<yorickpeterse> minus the backticks
<yawniek> gzcat t.gz| wc -l => 25001
<Ox0dea> It's just `zcat`.
<yorickpeterse> yawniek: no idea in that case
<apeiros> yxhuvud: better yet, .size. Enumerator optimizes that if possible.
terlar has joined #ruby
<yawniek> Ox0dea: i might have written my own zcat implementation that automagically inflates the content OR possibly i'm just using the gnu tools on os x. in the later case gzcat is a better version of zcat
<yawniek> apeiros: ohai apeiros, long time no see
ta has quit [Remote host closed the connection]
<apeiros> hi yawniek :)
<Ox0dea> yawniek: What makes `gzcat` superior?
<yxhuvud> >> "foo\nbar".each_line.size
<ruboto> yxhuvud # => nil (https://eval.in/412168)
<yxhuvud> apeiros: therefore.
<adaedra> The g, obviously.
gizmore has joined #ruby
<apeiros> yxhuvud: ugh
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> yxhuvud: good to know
<yawniek> Ox0dea: afair its faster. at least i was able to see some difference once and ever since i use it. very scientific :P
<yorickpeterse> #size and #count are very different in Enumerator
<yawniek> is returning nil in my above example
ta has joined #ruby
<yorickpeterse> #size in a whole bunch of cases returns a pre-determined size
<yorickpeterse> which isn't always available
<yawniek> still major wtf, still 50 lines
Oka has quit [Ping timeout: 256 seconds]
<Ox0dea> It's a bug that `File.open('/dev/full', ?w).write('foo')` doesn't raise Errno::ENOSPC, right?
<apeiros> from the docs it sounds like .size is only available if it is known or can be calculated, but it won't go enumerating all values and count to get the size
<yorickpeterse> Ox0dea: eh, why would it?
<yorickpeterse> writing to /dev/null is just fine
<yorickpeterse> oh
<Ox0dea> yorickpeterse: /dev/null != /dev/full
<Ox0dea> Heh.
<yorickpeterse> heh /dev/full
<adaedra> funny, IO.write does raise
<Ox0dea> Definitely a bug then, I reckon.
quimrstorres has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
<yawniek> ok, gzcatting the file and repacking it makes everything work. but this is weird
<adaedra> bufferization?
<yorickpeterse> Yeah
[spoiler] has quit [Quit: WeeChat 1.1]
<yorickpeterse> When you flush it it does raise
<adaedra> or when you close
withnale____ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> so not sure if bug
<Ox0dea> Well, it comes late enough to be harmful, but it's also 2015.
Hounddog has joined #ruby
<ebarrett> chrisseaton: thanks
[spoiler] has joined #ruby
<adaedra> It does raise if you have a close/flush (so, IO.write, File.open with a block)
niiamon_ has quit [Read error: Connection timed out]
<Ox0dea> Right, but you could easily lose a write in between.
<adaedra> It's the problem of the buffered output, errors are delayed
<Ox0dea> Well, not *easily*, but I'm sure somebody somewhere's been bitten.
niiamon_ has joined #ruby
<Ox0dea> In any case, #write returns the number of bytes written to /dev/full and is thus a liar.
leat has quit [Remote host closed the connection]
quimrstorres has joined #ruby
leat has joined #ruby
tubuliferous_ has joined #ruby
_joes_ has joined #ruby
Hounddog has quit [Ping timeout: 246 seconds]
<Ox0dea> What're some special treatments applied to other device files?
Hounddog has joined #ruby
stan has joined #ruby
<adaedra> The same problem happens if the file is already open (passed by fd from parent), error is not seen without a flust – seems all that IO does at writing is buffered
wldcordeiro__ has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 252 seconds]
jbw__ has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
<adaedra> I guess it's not a problem if you know about it (and how to bypass the buffer), but can effectively be bitey
xfbs has quit [Ping timeout: 246 seconds]
xfbs has joined #ruby
auzty has quit [Quit: Leaving]
zacstewart has joined #ruby
<Ox0dea> IO#write_nonblock to the rescue.
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<adaedra> Or IO#sync=
<adaedra> Or IO#syswrite
<adaedra> Plenty of choice!
_blizzy_ has quit [Ping timeout: 252 seconds]
yeticry has quit [Ping timeout: 265 seconds]
niiamon_ has quit [Read error: Connection timed out]
Toska has joined #ruby
astrobun_ has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
arup_r has joined #ruby
yeticry has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
niiamon_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
jbw__ has joined #ruby
cheeti has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pengin has joined #ruby
dgutierrez1287 has joined #ruby
pawnbox has joined #ruby
riffraff has joined #ruby
leesharma has joined #ruby
niiamon_ has quit [Remote host closed the connection]
yh has joined #ruby
khebbie has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
codecop has quit [Remote host closed the connection]
Toska is now known as ita-ness
banister has joined #ruby
<ita-ness> Hello Everyone
leesharma has quit [Ping timeout: 246 seconds]
soc42 has joined #ruby
MatrixBridge has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
MatrixBridge has joined #ruby
platzhirsch has joined #ruby
marr has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby
leafybasil has quit [Remote host closed the connection]
<adaedra> hi
<yorickpeterse> oh fuck
<yorickpeterse> angular 1.0.1 doesn't support PATCH ._________.
<yorickpeterse> something something that's what you get for not upgrading it
<adaedra> ?ot yorickpeterse
<ruboto> yorickpeterse, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<adaedra> :>
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yawniek> the reason for my problem with only 50 lines was that i wrote chunks of 50 lines into the file, apparently each of the chunks had a gzip header which stops GzipReader
* yorickpeterse dusts off a kitchen towel and slaps it at adaedra
<yorickpeterse> why does it never pick the fun ones D:
* yorickpeterse slaps adaedra and starts getting carried away
<yorickpeterse> oh ffs
<adaedra> :D
* adaedra finds the closest large object and gives yorickpeterse a slap with it
* yorickpeterse dusts off a kitchen towel and slaps it at adaedra
<yorickpeterse> grrrr
<yorickpeterse> I have so many funny ones and it picks those
* yorickpeterse likes slapping people and randomly picks adaedra to slap
<yorickpeterse> (╯°□°)╯︵ ┻━┻
yfeldblum has joined #ruby
<Ox0dea> yorickpeterse: Where did you get extras?
<yorickpeterse> I added them myself
<yorickpeterse> it's a plugin that just reads them from a text file
<Ox0dea> That I knew.
<Ox0dea> WeeChat differentiates between plugins and scripts, for what that's worth.
<yorickpeterse> probably should just remove the boring ones
<adaedra> ᕕ( ᐛ )ᕗ
yfeldblu_ has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
ap4y has quit [Remote host closed the connection]
<yorickpeterse> ( ≖_≖)
<adaedra> ᕕ( ͡° ͜ʖ ͡°)ᕗ
<yorickpeterse> ( ≖‿≖)
yfeldblum has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
<shevy> are you using unicode again
voiter has joined #ruby
<adaedra> yes we are
<adaedra> join us
AlexRussia has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 246 seconds]
<voiter> i try to install a ruby gem but it fails. where do i start finding the reason? the gem i try to install is taskjuggler
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> what command are you trying, what is the output?
<adaedra> shevy: (ノ◕ヮ◕)ノ*:・゚✧ UNICODE
platosha_ has quit [Ping timeout: 264 seconds]
<yorickpeterse> voiter: gem install --verbose GEM NAME
stardiviner has joined #ruby
platosha_ has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
leafybasil has joined #ruby
rubytor has joined #ruby
<voiter> yorickpeterse, the error is not reproducable
<shevy> adaedra that's worse than french
jenrzzz has quit [Ping timeout: 246 seconds]
<adaedra> shevy: no u
<voiter> and when i try to run taskjuggler it says: http://pastie.org/10331010
quimrstorres has joined #ruby
<adaedra> "Website is offline"
<adaedra> ah here it is
<shevy> voiter what was the install error?
Philipp__ has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
senayar has joined #ruby
<yorickpeterse> voiter: well then we can't really help you
<voiter> shevy, it's not in scrollback history anymore. but i think it was in tins (a dependency of taskjuggler) and it was something about: .. string%s "i"
<voiter> well ok. taskjuggler is out of question then :P
last_staff has joined #ruby
tuor has joined #ruby
<voiter> (RDoc::Error) unknown type of %string "i"
<voiter> there it is
<voiter> ERROR: While generating documentation for tins-1.5.4
apfeluser has joined #ruby
<yorickpeterse> gem install XXX --no-ri --no-rdoc
<yorickpeterse> or update rdoc first
<tuor> hi, why can't I read the file multiple times in a File.open('myfile') do |f|; puts f.read; puts f.read; end ?
<yorickpeterse> gem update rdoc # IIRC
<yorickpeterse> tuor: ...you know how reading files works right?
<shevy> tuor I think you must reseek to the beginning
<yorickpeterse> tuor: once you've read a file you've reached the end, you must rewind it first
<tuor> yorickpeterse, ah ok. Just for case this was the code: https://gist.github.com/anonymous/7b0499540b0c05bbe4be
oo_ has quit [Remote host closed the connection]
<tuor> So how can i rewind?
tkuchiki has joined #ruby
<adaedra> &ri File#rewind iirc
<`derpy> No results
<adaedra> ah no
doertedev has joined #ruby
<adaedra> &ri IO#rewind
<yorickpeterse> &ri IO#rewind
<adaedra> erf
<voiter> yorickpeterse, the installation was successful but when i try to run taskjuggler (which is installed in the directory specified with --install-dir) i still get this error: http://pastie.org/10331010
<yorickpeterse> tuor: you just call `file.rewind`
<tuor> yorickpeterse, ah ok thx.
<yorickpeterse> voiter: no idea
<voiter> do i need to parameterise ruby maybe?
<adaedra> voiter: what does `gem install taskjuggler --no-ri --no-rdoc` outputs?
zacstewart has joined #ruby
<tuor> yorickpeterse, when I want to write after reading do I need to rewind first?
<voiter> adaedra, the installation was successful (note that i also used --install-dir). but running the ruby script is causing the error: http://pastie.org/10331010
<yorickpeterse> voiter: answer the question
<adaedra> depends where you want to write, tuor
<yorickpeterse> You can't get that error if the installation is successful
<yorickpeterse> because then it's not successful
<yorickpeterse> tuor: You can't open a file for both reading and writing at once
tkuchiki has quit [Remote host closed the connection]
<yorickpeterse> errr wait
<adaedra> er, yes you can
<yorickpeterse> lemme check if I'm not dumb
<yorickpeterse> too many things going on at once
norc has joined #ruby
<voiter> i remove --install-dir when you tell me how i can get rid of junk if installation fails.
<tuor> yorickpeterse, so for what is: "r+" | Read-write, starts at beginning of file. (http://ruby-doc.org/core-1.9.3/IO.html)
xfbs has quit [Ping timeout: 260 seconds]
Mendenhall has quit [Ping timeout: 246 seconds]
soc42 has quit [Remote host closed the connection]
<yorickpeterse> That requires the file to already exist
<adaedra> voiter: so without --install-dir it errors, right?
<tuor> yorickpeterse, ah ok.
oo_ has joined #ruby
<voiter> adaedra, it already did with --install-dir
<tuor> So if I don't know if the file exists i have to do it in 2 steps.
charliesome has quit [Quit: zzz]
<voiter> i just want to keep my system clean.
<adaedra> voiter: with o u t
<yorickpeterse> ok yeah using w+ you can read/write
<yorickpeterse> But you'll need to rewind to read whatever you just wrote
<adaedra> what do you mean by "system clean"
<yorickpeterse> voiter: you can't just install Gems in random directories and expect it all to work out of the box
<yorickpeterse> If you don't want to mess with your system use something like chruby
<adaedra> if you don't want to install system wide, use --user-install, or, like yorickpeterse, chruby and others
<tuor> yorickpeterse, and I need the rewind to overwrite what i just read?
charliesome has joined #ruby
<tuor> (first read, then overwrite)
<voiter> adaedra, yorickpeterse: when installing system-wide i get meaningful output of the script tj3. now i need to check how to use it.
j4cknewt has joined #ruby
<adaedra> tuor: yes. Also, bear in mind that if you write something that is smaller, you'll keep non-overwritten part.
Chau has joined #ruby
<yorickpeterse> tuor: write -> rewind -> read -> rewind -> write
<tuor> adaedra, oh ok.
<tuor> yorickpeterse, ok thx. :)
xfbs has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
xfbs has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
<tuor> Do I need to check if the file exists or can i just do file_content = File.read('myfile')
<tuor> what happens when the file don't exist?
<adaedra> try it
<tuor> ok
xfbs has joined #ruby
sunslide2 has joined #ruby
Zai00 has quit [Quit: Zai00]
stamina has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
<yorickpeterse> If you open it like that you'll get an error
<sunslide2> hi guys, still haven't solved my stuff from yesterday :( anybody knows if there is a way to evaluate a wildcard? (not a regex) I only need to support asterisks
<tuor> yorickpeterse, just tested and saw it.
<ita-ness> sunslide2: How do you mean, evaluate a wildcard? In what context?
Kyuujitsu has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
<yorickpeterse> sunslide2: you'll need to turn it into a regex
Rickmasta has joined #ruby
<shevy> tuor always handle the case if the file does not exist, if your code is important
stardiviner has quit [Ping timeout: 260 seconds]
bodgix has joined #ruby
<tuor> shevy, just doing it now. :)
sevenseacat has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
apfeluser has quit [Ping timeout: 246 seconds]
<sunslide2> hmm yeah I don't mind turning it into a regex but I have a string that might contain other characters that are regex keywords like dots / question marks / etc and I'm only intrested in evaluating the asterisks in that sense
sevenseacat has joined #ruby
tkuchiki has joined #ruby
bruno- has joined #ruby
Oog has joined #ruby
tkuchiki has quit [Remote host closed the connection]
quimrstorres has joined #ruby
khebbie has joined #ruby
tvw has joined #ruby
quimrstorres has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 255 seconds]
yqt has joined #ruby
jonee has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 250 seconds]
quimrstorres has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<shevy> you have a bit repetition there
<sunslide2> me?
<shevy> no tuor
<sunslide2> ah, guess not :)
<shevy> 3 lines with zabbix.templates_export[name]
devoldmx has joined #ruby
<ita-ness> tuor: file_name = "data/%06d" % file_number
<ita-ness> Should really be all you need there.
yeticry has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
<tuor> ita-ness, ah thx. :)
avril14th has joined #ruby
<tuor> shevy, hmm how to do it shorter? I mean i can put it in a local variable and then use it but why?
chipotle has joined #ruby
<ita-ness> tuor: And you have the exact line twice for writing the file, perhaps you should break that out into a method. Not sure what the unless file.read is for...
yeticry has joined #ruby
michael_mbp has quit [Excess Flood]
<tuor> ita-ness, the file.read is for only writing to the file if it differs from the new content.
devoldmx has quit [Ping timeout: 264 seconds]
<shevy> tuor dunno, depends on how important the code is. once you have to change a lot of instances where repetition occurs you will understand
michael_mbp has joined #ruby
<ita-ness> tuor: Not sure about your file sizes, but it's not going to take much more time generally to write the file in the first place. You can clean up your code there as well.
<tuor> shevy, ok. So what would you do?
krz has quit [Quit: WeeChat 1.2]
<shevy> I would simplify the code and probably use methods
yeticry has quit [Ping timeout: 250 seconds]
<shevy> and use a class :)
<ita-ness> tuor: This is how I would have written your code: http://pastie.org/private/ikfdhunaqlaeyjniy2vjq
<shevy> you sorta do the same both when the file exists and when it does :P
<shevy> erm *does not
yeticry has joined #ruby
voiter has quit [Quit: Leaving]
<tuor> ita-ness, so you would do it just like this: https://gist.github.com/anonymous/f1a43ad78a5e27630fd8 ?
<tuor> ita-ness, ah it's mostly the same.
<ita-ness> tuor: Yup, you don't need parenthesis around your first argument, otherwise the same. Much cleaner.
<atmosx> hello
<tuor> :)
<atmosx> ops, I forgot the milk! :-(
<atmosx> no milk, no party. bbl
jonee has joined #ruby
<adaedra> No milk today ♫
j4cknewt has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
Xiti has quit [Quit: Xiti]
<tuor> shevy, Ah right i acces directly to the hash. I have to write a attr_accesor for it(?)
<shevy> attr_accessor is doing the same as if you yourself define the methods
xelim has joined #ruby
<shevy> attr_accessor :foo is: def foo; @foo; end and def foo=(i); @foo = i; end
Igorshp has joined #ruby
<shevy> atmosx you are already awake!
<tuor> shevy, OK. I'll come back later (eating).
<norc> shevy: Im actually wondering. Is that really all, or is there some subtle difference?
niemcu has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
<adaedra> one is shorter to write.
<shevy> norc as far as I am aware that is it exactly. attr_accessor just combines attr_reader and attr_writer
krz has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Ping timeout: 252 seconds]
niemcu has joined #ruby
<norc> shevy: Interesting. This made me look at the actual implementation in MRI/vm_method.c - Im surprised how readable this code is. :)
Zai00 has joined #ruby
ishahnaz has quit []
rikkipitt has joined #ruby
Xiti has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
niemcu has quit [Client Quit]
niemcu has joined #ruby
<norc> Yeah
Oog has quit []
chills42 has joined #ruby
allcentury has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
nofxx has quit [Ping timeout: 240 seconds]
<shevy> perhaps one of you has an idea: http://pastie.org/10331103
<shevy> essentially I would need to redirect puts call from a module, into the instance variable of a class
phutchins has joined #ruby
yqt has joined #ruby
rodfersou has joined #ruby
<norc> shevy: This is an obvious one, but why not monkey patch the test method?
OrbitalKitten has joined #ruby
<atmosx> shevy: just came back from work :-P
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> norc that is an example
<shevy> norc in reality I must redirect output from all methods from a given module
<norc> shevy: Change $stdout then
<shevy> how could I do that?
<atmosx> shevy: have a method call the module and gets the output
lannonbr has joined #ruby
niiamon has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<norc> shevy: That is a very rudimentary example. Others can probably give better solutions, but this definitely lets you hook into puts calls.
<atmosx> or with $stdout.reopen()
benlovell has quit [Ping timeout: 246 seconds]
sarkyniin has joined #ruby
<shevy> hmm
<shevy> the interesting thing is that literally every example I am seeing, redirects into a file :D
<norc> shevy: Its all based on IO which is heavily centered around files from what I understand
jgpawletko has joined #ruby
<norc> atmosx: that StringIO is exactly what shevy asked for, nice
<shevy> if I could just get it to work
<shevy> brb eating canelloni
A124 has quit [Ping timeout: 260 seconds]
niiamon has joined #ruby
stardiviner has joined #ruby
<kannan4k> hello, i have a ruby question
<kannan4k> @@_accessors[name].push name: fname.to_sym, type: type, exclude: options.fetch(:exclude, [])
<norc> kannan4k: You are in the right place!
<kannan4k> what does this code do?
<norc> Ask away
[k- has joined #ruby
<ita-ness> kannan4k: Looks like it's adding a hash to a hash with arrays as values.
<atmosx> kannan4k: looks like a sort of badly typed hash
<ita-ness> Adding an array element, that is a hash, to a hash with array elements as values, that is.
<norc> kannan4k: http://pastie.org/10331148 - I simplified it for you a bit.
pl1ght has quit [Ping timeout: 250 seconds]
<atmosx> norc: cool hehe
<kannan4k> oh waoh, thanks all
leesharma has joined #ruby
<kannan4k> btw, what is 'name' in there?
<ita-ness> kannan4k: That is dependent on the rest of the code. We can't know.
<norc> shevy: Im curious, why do you want to do that in the first place?
<[k-> yeah, shevy
<norc> Oh noes. I still have no cookies.
pl1ght has joined #ruby
<kannan4k> ita-ness, norc here is the entire class -> https://gist.github.com/kannan4k/90297acf6eec2911f5e6
<adaedra> ?cookie norc
<ruboto> norc, here's your cookie:
dimasg has joined #ruby
<norc> kannan4k: It does *things*
last_staff has joined #ruby
Kyuujitsu has quit [Quit: leaving]
leesharma has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
<kannan4k> norc: yeah, any idea what is 'name' in there
<ita-ness> kannan4k: I quite honestly have no idea what name is there... I would be very curious to know. That code works?
<kannan4k> yeah :)
GriffinHeart has quit []
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ita-ness> kannan4k: As far as I can tell, it looks like name is some kind of dynamically assigned method or variable on the class.
<ita-ness> It doesn't appear to be coming from inside of that file.
<ita-ness> wait
but3k4 has joined #ruby
pawnbox has joined #ruby
<ita-ness> It's the class name, I am an idiat.
<ita-ness> Idiot.
<ita-ness> String.name == "String"
OrbitalKitten has joined #ruby
banister has joined #ruby
<kannan4k> ohhhh, that simple :)
<apeiros> Module#name is by default the name of the first constant the module/class is assigned to
Ropeney has joined #ruby
but3k4 has quit [Client Quit]
<kannan4k> thanks ita-ness
<ita-ness> kannan4k: Sure thing.
<apeiros> >> x = Class.new; x.name
<ruboto> apeiros # => nil (https://eval.in/412362)
banister has quit [Read error: Connection reset by peer]
<apeiros> >> x = Class.new; Y = x; x.name
<ruboto> apeiros # => "Y" (https://eval.in/412363)
<apeiros> compare the above two examples :)
dionysus69 has joined #ruby
<apeiros> and `class X; end` is just a nice way to say "assign that class to constant X and evaluate this piece of code in the context of the class"
<[k-> levenstein distance = 5
<[k-> i have compared them!
but3k4 has joined #ruby
<[k-> 7*
<[k-> there was something wrong in [k-
<ita-ness> kannan4k: I would wager that that class is meant to create new classes from, then name is evaluating to the name of your subclass.
Iskarlar has joined #ruby
<ita-ness> kannan4k: So TSheets::Model is holding all the variables from it's subclasses in a hash.
<kannan4k> ita-ness, in that case from where it is getting set
<ita-ness> kannan4k: Whos keys are the names of the subclasses
<ita-ness> kannan4k: Correct
last_staff has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
sunslide2 has quit [Ping timeout: 246 seconds]
niiamon has quit [Read error: Connection timed out]
benlovell has joined #ruby
<kannan4k> ita-ness, you are correct, I just found this file -> https://gist.github.com/kannan4k/8bf0ca2ca7cf8e2523db
quimrstorres has quit [Remote host closed the connection]
safeforge has quit [Remote host closed the connection]
niiamon has joined #ruby
devoldmx has joined #ruby
A124 has joined #ruby
ldnunes has joined #ruby
<ita-ness> kannan4k: There you go!
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
socrates has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
ebram has joined #ruby
countryHick has joined #ruby
<kannan4k> ita-ness, if the model class is inherited by another class called "Timesheets", then @@__accessors['Timesheets'] will be created?
<ita-ness> @@__accessors[Timesheets]
<ita-ness> kannan4k: Or no, my apologies, you are right
<kannan4k> oh okay
arup_r has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<ita-ness> kannan4k: Well, actually I am not sure, it might have the parent class name in there as well, let me check
ferhaty has joined #ruby
<ita-ness> kannan4k: If the class that is inheriting it inside a module, it will be the module name as well, so "Module::Timesheets", otherwise just "Timesheets"
<[k-> real men don't check, they evaluate
<ita-ness> [k-: alias_method :check, :evaluate
j4cknewt has quit [Ping timeout: 264 seconds]
stardiviner has quit [Ping timeout: 250 seconds]
<[k-> undefined method evaluate for ita-ness
<ita-ness> aw
cheeti has quit [Quit: Page closed]
arup_r has joined #ruby
<ita-ness> class ItaNess < Inferior;end
dgutierrez1287 has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 265 seconds]
<adaedra> ItaNess = Class.new(Inferior)
* [k- promotes ita-ness to Superior
arup_r has quit [Read error: Connection reset by peer]
leat has quit [Remote host closed the connection]
leat has joined #ruby
ebram has quit [Quit: Leaving]
arup_r has joined #ruby
sdothum has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
benlovell has joined #ruby
<ita-ness> haha
Marsupermammal has joined #ruby
sinkensabe has joined #ruby
ndrei has joined #ruby
rodfersou has quit [Ping timeout: 244 seconds]
rideh has joined #ruby
rodfersou has joined #ruby
sepp2k has joined #ruby
omegamike has joined #ruby
vondruch has quit [Quit: Ex-Chat]
benlovell has quit [Ping timeout: 246 seconds]
vondruch has joined #ruby
DoubleMalt has joined #ruby
stardiviner has joined #ruby
ishahnaz has joined #ruby
sinkensabe has quit [Remote host closed the connection]
xfbs has quit []
omegamike has quit [Ping timeout: 260 seconds]
bhorn1|away is now known as bhorn1
rikkipitt has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 244 seconds]
abara has quit [Quit: leaving]
pyrotecnix has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<izabera> https://practicingruby.com/ what is this channel's opinion on this site?
dimasg has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> o/
<pontiki> it's a good site
hazelux has joined #ruby
<ita-ness> izabera: Never heard of it, looks interesting.
<sevenseacat> I haven't read any of it, but I know of it and have some opinions on it.
tkuchiki has quit [Remote host closed the connection]
|n|iggers has joined #ruby
hazelux has quit [Ping timeout: 255 seconds]
chthon has quit [Ping timeout: 244 seconds]
pkh has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
ndrei has quit [Remote host closed the connection]
xfbs has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
<|n|iggers> hi
<apeiros> !kick |n|iggers nope
|n|iggers was kicked from #ruby by ruboto [nope]
|n|iggers has joined #ruby
<wasamasa> lol
<sevenseacat> good call.
<|n|iggers> lol
<apeiros> !ban |n|iggers !T 1d still nope
|n|iggers was banned on #ruby by ChanServ [|n|iggers!*@*]
|n|iggers was kicked from #ruby by ChanServ [Banned: still nope]
ndrei has joined #ruby
quimrstorres has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
<apeiros> they're trying it every day, no?
<sevenseacat> you'd think they'd get bored.
yh has quit [Ping timeout: 240 seconds]
<apeiros> well, 3y old children are endlessly fascinated by the same single sound
<apeiros> I think this is similar
lannonbr has joined #ruby
<sevenseacat> lol
pawnbox has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
[k-_ has joined #ruby
rikkipitt has joined #ruby
Xzanron has joined #ruby
codecop has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<adaedra> lol
xfbs has quit []
banister has joined #ruby
lele|w has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
jonee has quit [Ping timeout: 256 seconds]
arup_r_ has joined #ruby
kp666 has quit [Quit: Leaving]
Igorshp has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
Iskarlar has joined #ruby
segfalt has quit [Quit: segfalt]
Igorshp has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
Igorshp has quit [Remote host closed the connection]
yqt has joined #ruby
Dzejmskrokan has joined #ruby
arup_r_ has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 246 seconds]
relix has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
terlar has joined #ruby
millerti has quit [Read error: Connection reset by peer]
benlovell has joined #ruby
davedev24 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
nateberkopec has joined #ruby
omegamike has joined #ruby
Guest50 has joined #ruby
andikr has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 272 seconds]
<[k-_> shevy: DeBot is still not here, it is definitely safe1
bmurt has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Igorshp has joined #ruby
jenrzzz has joined #ruby
Igorshp has quit [Remote host closed the connection]
hazelux has joined #ruby
devoldmx has joined #ruby
hazelux has quit [Remote host closed the connection]
xfbs has joined #ruby
Dzejmskrokan has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
bhorn1 is now known as bhorn1|away
jeremy04_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
jeremy04 has joined #ruby
juanpaucar has joined #ruby
pawnbox has joined #ruby
OrbitalKitten has joined #ruby
atomical has joined #ruby
avril14th has quit [Remote host closed the connection]
whippythellama has joined #ruby
Cust0sLim3n has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
leat has quit [Remote host closed the connection]
dblessing has joined #ruby
madneroo has joined #ruby
leat has joined #ruby
johnhame_ has joined #ruby
madnero has joined #ruby
johnhame_ is now known as johnhamelink_
johnhamelink_ has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
chills42 has quit [Remote host closed the connection]
madneroo has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
Dzejmskrokan has joined #ruby
chthon has joined #ruby
madnero has left #ruby [#ruby]
pawnbox has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
dimasg has joined #ruby
chills42 has joined #ruby
tmtwd has joined #ruby
tcrypt has quit []
<johnhamelink> Hey guys, anyone have any experience with Active Model Serializers and Grape? I'm experiencing a strange issue where I'm getting a "not opened for reading" error
Cust0sLim3n has joined #ruby
xfbs has quit [Ping timeout: 246 seconds]
malconis has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has joined #ruby
malconis has quit [Remote host closed the connection]
<johnhamelink> @ita-ness I'm using AMS from git (tried with 0.10.0.rc2 as well)
<johnhamelink> - same error with 0.10.0.rc2
malconis has joined #ruby
Zai00 has quit [Quit: Zai00]
victortyau has joined #ruby
<johnhamelink> The issue doesn't exist in 0.9.3
stardiviner has joined #ruby
stardiviner has quit [Changing host]
stardiviner has joined #ruby
<ita-ness> johnhamelink: I really have no idea, without more context I can only point you to google.
<johnhamelink> OK, I will write up a bug report on Github
<johnhamelink> just wanted to check in here first :)
xfbs has joined #ruby
diegoviola has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
MatrixBridge has quit [Remote host closed the connection]
sheldonh has joined #ruby
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby
A124 has joined #ruby
radgeRayden has joined #ruby
<sevenseacat> johnhamelink: you might need to post some kind of code in your error report.
<sheldonh> when the Singleton module is included in a class, it wipes out @singleton__instance__ without protecting this operation with a mutex. so if a singleton class definition is reloaded, you lose the instance. sound like a bug?
<johnhamelink> OK I will add my example in @sevenseacat
MatrixBridge has joined #ruby
platosha has joined #ruby
sanguisdex has joined #ruby
platosha__ has joined #ruby
platosha_ has quit [Ping timeout: 256 seconds]
platosha_ has joined #ruby
stardiviner has quit [Ping timeout: 272 seconds]
Chau has quit [Quit: Leaving]
symm- has joined #ruby
paulcsmith___ has joined #ruby
M-mistake has joined #ruby
devdazed has joined #ruby
M-prosodyContext has joined #ruby
thiagovsk has joined #ruby
Rickmasta has joined #ruby
prestorium has joined #ruby
jerius has joined #ruby
platosha has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
yh has joined #ruby
platosha__ has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gizmore has quit [Remote host closed the connection]
banister has joined #ruby
Zai00 has joined #ruby
railswebdev has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
banister has quit [Read error: Connection reset by peer]
jhack has joined #ruby
quimrstorres has joined #ruby
jhack has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 246 seconds]
codecop has quit [Remote host closed the connection]
<yorickpeterse> ughghghhgh strong parameters
lele|w has joined #ruby
<yorickpeterse> dhh y u do dis
AlexRussia has quit [Quit: WeeChat 1.3-dev]
Violentr has joined #ruby
hinbody has joined #ruby
tmtwd has joined #ruby
quimrstorres has quit [Ping timeout: 246 seconds]
<adaedra> To crush your dreams, yorickpeterse
<apeiros> s/r dreams//
niiamon has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
dopie has joined #ruby
JoshL has joined #ruby
chills42_ has joined #ruby
Pumukel has joined #ruby
<[k-_> Correction: <adaedra> To crush you, yorickpeterse
<adaedra> Ah, we have a bot which applies sed-syntax now?
milesforrest has quit [Ping timeout: 246 seconds]
niiamon has joined #ruby
fdgfdsagfdsag has joined #ruby
dopie has quit [Client Quit]
fdgfdsagfdsag has left #ruby [#ruby]
chills42 has quit [Ping timeout: 246 seconds]
<[k-_> maybe
havenwood has joined #ruby
<sonOfRa> s/maybe/yes/
centrx has joined #ruby
yosafbridge has quit [Ping timeout: 240 seconds]
gthank has quit [Ping timeout: 240 seconds]
KC9YDN has quit [Ping timeout: 240 seconds]
gthank has joined #ruby
zz_barkerd427 has quit [Ping timeout: 240 seconds]
zz_barkerd427 has joined #ruby
gthank has quit [Changing host]
gthank has joined #ruby
pwnd_nfsw has quit [Ping timeout: 244 seconds]
yosafbridge has joined #ruby
banister has joined #ruby
relix has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 244 seconds]
juanpaucar has quit [Remote host closed the connection]
devoldmx has joined #ruby
Vile` has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
KC9YDN has joined #ruby
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
quimrstorres has joined #ruby
Askilada has quit [Ping timeout: 246 seconds]
safeforge has joined #ruby
janno has quit [Quit: Lost terminal]
danzilio has joined #ruby
Muhannad has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
mister_solo has joined #ruby
mister_solo has quit [Client Quit]
rideh has quit [Quit: zap]
beef-wellington has joined #ruby
Aeyrix has quit [Max SendQ exceeded]
<Darkwater> Correction: <[k-_> no
bhaak has quit [Ping timeout: 240 seconds]
juanpaucar has joined #ruby
nsuke has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has joined #ruby
Igorshp has joined #ruby
niiamon has quit [Read error: Connection timed out]
tmtwd has joined #ruby
renanoronfle has quit [Ping timeout: 240 seconds]
chills42_ has quit [Remote host closed the connection]
niiamon has joined #ruby
davep3rrett has joined #ruby
dorei has joined #ruby
nzst has joined #ruby
uri_ has joined #ruby
Aeyrix has joined #ruby
Fire-Dragon-DoL has joined #ruby
<Fire-Dragon-DoL> 'morning
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> moin
<Fire-Dragon-DoL> gem install resurrect_me_during_morning
<Fire-Dragon-DoL> gem not found, obviously
* adaedra noms Fire-Dragon-DoL
<apeiros> that sounds like a bad idea. undead are cheaper workforce.
stardiviner has joined #ruby
<Fire-Dragon-DoL> lol
tjohnson has joined #ruby
<Fire-Dragon-DoL> I'm a zombie which turns back human only after lunch :P
<apeiros> so that's why zombies crave brains?
xfbs has quit [Ping timeout: 240 seconds]
<ytti> when ever is see zombie mobie
<ytti> movie
Aeyrix has quit [Max SendQ exceeded]
<ytti> i think 'free energy'
<ytti> have them turn a turbine
<adaedra> We should do that with hamsters
<ytti> hamsters need to eat :(
<ytti> zombies inexpliably can output energy without needing to input it
<ashleyhindle> zombies don't need to feed?
<[k-_> inexplicably*
<ashleyhindle> Why do they want to say 'brains' and chase people?
Aeyrix has joined #ruby
<yorickpeterse> because all they can think of are brains
davep3rrett has quit [Quit: davep3rrett]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
<ytti> ashleyhindle, in movies they can be trapped for years or decades
<ytti> ashleyhindle, evidently mobile all the time, just jotting around
Aeyrix has quit [Max SendQ exceeded]
<ytti> also there is no blood, to actually transport energy to muscles
<ytti> even if they did feed, they couldn't power the muscles
<workmad3> ytti: depends on the film... plenty of zombie films have zombies that decay over time
<ccooke> that doesn't mean they are producing free energy
<ytti> i don't think zombis can explained without breaking laws of thermodynamics
Aeyrix has joined #ruby
<ytti> in most literature/film
<ccooke> ytti: sure they can. The nanite-based ones certainly can.
<workmad3> ytti: I doubt you need to go as far as thermodynamics to find faulty reasoning with zombies
deepu has joined #ruby
prefixed has joined #ruby
<ccooke> I mean, we don't have the tech for them it *might* be impossible to ever obtain, but the basic concept is sound
Iskarlar has joined #ruby
D-unit has joined #ruby
<ccooke> (nanites absorb materials around the body to repair damaged tissue, but can't actually restore full brain function)
<workmad3> anyway...
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> ?offtopic ytti ;)
<ruboto> ytti, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<ccooke> (... also, this is not the channel I expected to find this discussion in)
<ccooke> (sorry)
<workmad3> (sorry, I'm also to blame for engaging in the conversation)
bhaak has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<adaedra> (sorry, not sorry)
axl_ has joined #ruby
jeremy04_ has joined #ruby
niemcu has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
TvL2386 has quit [Remote host closed the connection]
JoshL has quit [Read error: Connection reset by peer]
Dzejmskrokan has quit [Read error: Connection reset by peer]
JoshL has joined #ruby
chills42 has joined #ruby
chouhoulis has joined #ruby
Dzejmskrokan has joined #ruby
kfpratt has joined #ruby
renanoronfle has joined #ruby
jeremy04 has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
<ita-ness> Im not sure where to ask this, and the github channel is unresponsive. Does anyone here have any idea where I might find a raw markdown file that has examples of all the github flavoured markdown?
<apeiros> ita-ness: github has a help link where it has markdown editors
j_mcnally has joined #ruby
DaniG2k has joined #ruby
<Criten> not exactly what you asked for... but theres what i could find
ndrei has joined #ruby
<ita-ness> Criten: Yeah I have found those and used them as much as I could. No worries, looks like it's not anywhere. Oh well.
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zarthus> ita-ness: is there something specific you'd like to do?
<ita-ness> Criten: Oh that's a bit better...
mjuszczak has joined #ruby
<Criten> I think he's just looking for everything that he *can* do
<Zarthus> I found https://github.com/krman009/Github-Flavoured-Markdown - there's more of those cheat-sheet style repos
kfpratt has quit [Read error: Connection reset by peer]
<ita-ness> Well, I jsut finished writing a sort of documentation gem for a site to keep everything documented for the business design team. Basically just makes markdown files in the repo available via links etc. We will be writing them all in markdown, so I just wanted a full sheet to style everything and get all the developers here to have a comprehensive set of 'attributes' available
tubuliferous_ has quit [Ping timeout: 256 seconds]
kfpratt has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<adaedra> Criten: careful, many markdown-derivatives exist and support different things
<workmad3> adaedra: he did ask for github-flavoured md though
<ita-ness> adaedra: Yeah, I am focusing on the github markdown as that's the gem I am using to convert to html, and the one most devs here are familiar with
<adaedra> fair enough
<[k-_> hello Zarthus
<ita-ness> Anyway, thanks everyone, I can just build my own raw markdown file with all those examples
<adaedra> and I misread the person to talk too, I should really learn to read
<Criten> all good adaedra :)
mleung has joined #ruby
sshuff|gone is now known as sshuff
<Zarthus> hi
<adaedra> hi
<sshuff> hi
rjno has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
<centrx> gi
maverick08 has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
Guest50 has joined #ruby
radgeRayden has joined #ruby
rideh has joined #ruby
mjuszczak has quit [Ping timeout: 260 seconds]
tmtwd has joined #ruby
pawnbox has joined #ruby
<Sou|cutter> hi
segfalt has joined #ruby
leesharma has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
Chau has joined #ruby
hazelux has joined #ruby
Chau has quit [Max SendQ exceeded]
Chau has joined #ruby
ferhaty has quit []
rjno has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
MatrixBridge has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
M-prosodyContext has quit [Remote host closed the connection]
imperator has joined #ruby
<imperator> hal_9000, ping
<[k-_> hal_9000, ping
kfpratt has quit [Read error: Connection reset by peer]
<adaedra> random_nick, ping
rjno has joined #ruby
<[k-_> adaedra. ping
<pontiki> "i can't do that, Dave"
<adaedra> [k-_: pong
kfpratt has joined #ruby
MatrixBridge has joined #ruby
riotjones has quit [Remote host closed the connection]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
Igorshp has quit []
fullofcaffeine has joined #ruby
Chau has quit [Quit: Leaving]
j4cknewt has joined #ruby
umgrosscol has joined #ruby
<hal_9000> imperator: pong
rippa has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
kfpratt has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
hazelux has quit []
[k- has quit [Ping timeout: 252 seconds]
nhhagen has quit [Remote host closed the connection]
D-unit has quit [Quit: leaving]
jenrzzz has joined #ruby
j4cknewt has quit [Ping timeout: 244 seconds]
maverick08 has quit []
radgeRayden_ has joined #ruby
radgeRayden has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: Ex-Chat]
<shevy> hal is back
jenrzzz has quit [Ping timeout: 246 seconds]
<hal_9000> i’m baaaack
<adaedra> back to the USSR?
<ashleyhindle> Born in the USA
<pontiki> ♫ flew in from miami beach BOAC / didn't get to bed last night / all the way the paper bag was on my knee / man it was a dreadful flight ♫
<adaedra> Aaaaah ♫ Look at all the lonely people ♫
<pontiki> adaedra: that's IRC
danzilio has quit [Quit: My computer has fallen asleep!]
<al2o3-cr> where do they all come from :)
gambl0re has quit [Ping timeout: 260 seconds]
sheldonh has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 260 seconds]
Marc- has joined #ruby
scottschecter has joined #ruby
benlovell has joined #ruby
ElderFain- has joined #ruby
RealMarc has quit [Ping timeout: 258 seconds]
ElderFain has quit [Ping timeout: 258 seconds]
soloone has quit [Ping timeout: 258 seconds]
tacotaco_ has quit [Ping timeout: 258 seconds]
ytti has joined #ruby
tacotaco_ has joined #ruby
Brando753 has quit [Ping timeout: 258 seconds]
sysanthrope has quit [Ping timeout: 258 seconds]
ytti has quit [Ping timeout: 258 seconds]
ElderFain- is now known as ElderFain
ElderFain has quit [Changing host]
ElderFain has joined #ruby
slawrence00 has joined #ruby
<al2o3-cr> morning rublings
<adaedra> hi
ishahnaz has quit []
<al2o3-cr> o/
<renanoronfle> hi all
Brando753 has joined #ruby
soloone has joined #ruby
sysanthrope has joined #ruby
<al2o3-cr> hi renanoronfle
<adaedra> did 'MURICA just woke up?
theery has joined #ruby
<sevenseacat> think so
<sevenseacat> and now 'straya goes to bed
snockerton has joined #ruby
theery has quit [Remote host closed the connection]
shinnya has joined #ruby
<adaedra> \o
Rutix has joined #ruby
Rutix has joined #ruby
<adaedra> o/*\o high-five
yh has quit [Ping timeout: 256 seconds]
<sevenseacat> o/
sevenseacat has quit [Quit: .]
solars has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
tmtwd has joined #ruby
minmax has quit [Quit: WeeChat 0.4.3]
blue_deref has joined #ruby
railsraider has quit [Quit: railsraider]
platosha_ has quit [Ping timeout: 246 seconds]
jobewan has joined #ruby
platosha_ has joined #ruby
codecop has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
terlar has quit [Quit: WeeChat 1.2]
A124 has joined #ruby
imperator has left #ruby ["Leaving"]
kies^ has joined #ruby
hoov has joined #ruby
robbyoconnor has quit [Ping timeout: 250 seconds]
banister has joined #ruby
radgeRayden__ has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
<pontiki> nah, been awake for a while
terlar has joined #ruby
lordkryss has joined #ruby
sarkyniin has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 244 seconds]
radgeRayden_ has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
nzst has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
radgeRayden__ has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
DaniG2k has joined #ruby
pawnbox has joined #ruby
snath has joined #ruby
atomical_ has joined #ruby
rikkipitt has quit [Quit: Leaving...]
bruno- has joined #ruby
<platzhirsch> safest way to implement infinite loop which listenes to interrupt signals?
<platzhirsch> exit_requested = false; Kernel.trap("INT") { exit_requested = true }; while !exit_requested; ...; end? is that legit?
tkuchiki has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
atomical has quit [Ping timeout: 255 seconds]
sarkyniin has joined #ruby
<apeiros> platzhirsch: until instead of `while !`
<apeiros> platzhirsch: legit, but be aware that if anything in the loop blocks, the abort will wait until then
<adaedra> use while unit not
<adaedra> until*
<platzhirsch> apeiros: yeah fair enough
<platzhirsch> oh great, hopefully no one in my team will say we don
<platzhirsch> t use this kind of keyword.. you better write while !cond
<platzhirsch> but I'll try thanks :)
pawnbox has quit [Remote host closed the connection]
jschmid has joined #ruby
danzilio has joined #ruby
socrates has quit [Remote host closed the connection]
podman has joined #ruby
Sembei has joined #ruby
tacotaco_ has quit [Ping timeout: 258 seconds]
ytti has quit [Ping timeout: 258 seconds]
tacotaco_ has joined #ruby
Pisuke has quit [Ping timeout: 272 seconds]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jschmid has quit [Ping timeout: 246 seconds]
preyalone has joined #ruby
gambl0re has joined #ruby
khebbie has quit [Remote host closed the connection]
ascarter has joined #ruby
ytti has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
MMM has joined #ruby
railsraider has joined #ruby
MMM has left #ruby [#ruby]
Axy has quit [Read error: Connection reset by peer]
cndiv has joined #ruby
angrywombat has left #ruby ["WeeChat 0.4.2"]
h4ckurate has joined #ruby
gambl0re has quit [Client Quit]
pawnbox has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
riotjones has joined #ruby
jud has joined #ruby
zacstewart has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
lapideviridi has joined #ruby
pawnbox has joined #ruby
towski_ has joined #ruby
ccc_ has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
ccc_ is now known as ccc999
stan has quit [Ping timeout: 246 seconds]
gamename has joined #ruby
Muhannad has quit [Ping timeout: 252 seconds]
uri_ has joined #ruby
ccc999 has quit [Client Quit]
maverick08 has joined #ruby
treehug88 has joined #ruby
maverick08 has quit [Client Quit]
lapide_viridi has quit [Ping timeout: 264 seconds]
theery has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
d10n-work has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
yeticry has quit [Remote host closed the connection]
devoldmx has joined #ruby
juanpaucar has quit [Remote host closed the connection]
yeticry has joined #ruby
webopsx has joined #ruby
scripore has joined #ruby
Coldblackice has joined #ruby
msnyon has joined #ruby
DaniG2k has quit [Quit: leaving]
dfockler has joined #ruby
Royalb15 has joined #ruby
OrbitalKitten has joined #ruby
govg has joined #ruby
sarkyniin has quit [Quit: Quit]
danzilio has joined #ruby
saddad has joined #ruby
ferhaty has joined #ruby
govg has quit [Client Quit]
mleung has quit [Quit: mleung]
devoldmx has quit [Ping timeout: 244 seconds]
govg has joined #ruby
blahwoop has joined #ruby
senayar has quit []
govg is now known as Guest51161
<blahwoop> hi all. how do i find the ruby directory ? i want to take a look at the source code
<blahwoop> im using rvm
Guest51161 has quit [Client Quit]
amclain has joined #ruby
zacstewart has joined #ruby
govg_ has joined #ruby
fractalis has joined #ruby
<blahwoop> adaedra: thanks but I wanted to look at it on my own computer
shredding has quit [Remote host closed the connection]
<adaedra> you can clone the repository, or get an archive from ruby's official website, like rvm does before compiling (not sure it keeps the sources though)
RobertBirnie has joined #ruby
jimms has joined #ruby
terlar has quit [Ping timeout: 264 seconds]
serivich has joined #ruby
<adaedra> cloning the repository lets you browse the history of versions and see evolution tho
havenwood has quit [Read error: Connection reset by peer]
<platzhirsch> What was again the method to concat an array?
<platzhirsch> [1,2,3].foo('+') => '1+2+3
mleung has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
<adaedra> join
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
rbennacer has quit [Remote host closed the connection]
saddad has quit [Quit: WeeChat 1.3-dev]
h4ckurate has quit [Quit: h4ckurate]
hanmac has quit [Ping timeout: 244 seconds]
bffff_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
riffraff has quit [Quit: Leaving]
havenwood has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
Marsupermammal has joined #ruby
jschmid has joined #ruby
RegulationD has quit [Remote host closed the connection]
Rickmasta has joined #ruby
A124 has joined #ruby
anisha has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
matchaw has joined #ruby
DANtheBEASTman has left #ruby [#ruby]
pengin has joined #ruby
jschmid has quit [Remote host closed the connection]
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
xelim has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 252 seconds]
<blahwoop> adaedra: ah ok. good point. thanks!
benlovell has quit [Ping timeout: 246 seconds]
xelim has joined #ruby
rbennacer has joined #ruby
c0m0 has quit [Ping timeout: 265 seconds]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
webopsx has joined #ruby
xelim has quit [Client Quit]
texasmade has joined #ruby
xelim has joined #ruby
towski_ has quit [Remote host closed the connection]
fractalis has quit [Read error: Connection reset by peer]
fractalis has joined #ruby
<prefixed> YO
rbennacer has quit [Remote host closed the connection]
nettoweb has joined #ruby
mdavid613 has joined #ruby
<prefixed> how do I preserve tabs in a multi-line opt parse?
[Butch] has joined #ruby
hanmac has joined #ruby
<centrx> tabs ? multi-line cmmand-line?!?
<prefixed> multi-line help text
chthon has quit [Ping timeout: 244 seconds]
shinnya has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
<centrx> prefixed, I thought optparse automatically tabbed the help text for you?
withnale_____ has joined #ruby
robbyoconnor has joined #ruby
6JTABQ8VO has joined #ruby
pawnbox has joined #ruby
<ruboto> prefixed, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f55b31023f084e991208
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<prefixed> ruboto you are a very jealous robot.
withnale____ has quit [Ping timeout: 240 seconds]
saddad has joined #ruby
TomyWork has quit [Ping timeout: 264 seconds]
saddad has quit [Client Quit]
rakm has joined #ruby
mdavid613 has quit [Quit: Leaving.]
cndiv has quit [Quit: Quit]
yqt has joined #ruby
umgrosscol has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 240 seconds]
<adaedra> ?botsnack
<ruboto> nomnomnomnom
paulcsmith___ has quit [Quit: Be back later ...]
<shevy> ?bottoilet
<ruboto> I don't know anything about bottoilet
gambl0re has joined #ruby
graydot has quit [Quit: graydot]
withnale_____ has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
pyrotecnix has quit [Quit: WeeChat 0.4.2]
c0m0 has joined #ruby
segfalt has quit [Quit: segfalt]
mdavid613 has joined #ruby
pyrotecnix has joined #ruby
higuys has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
<higuys> does ruby use ++ increments?
<havenwood> higuys: nope
robbyoconnor has quit [Ping timeout: 246 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<higuys> why not..
<havenwood> >> 5.next
<ruboto> havenwood # => 6 (https://eval.in/412633)
<treehug88> I think to avoid the unary operator, and confusion between ++a and a++, and how b = a++ operates
<shevy> higuys matz explained it once
<centrx> higuys, ++ is a special operator in C. It can have confusing behavior between prefix and postfix. It's not in Ruby probably because it's so special and doesn't necessarily fit into the simplicity of Ruby
<treehug88> also it requires mutation. Others can chime in -- avoiding the unary operator is not a justification
<eam> it's not just confusing, it's undefined in just about every common implementation
<havenwood> higuys: incrementing the operand by one is madness
PhantomS_ has quit []
<eam> though that's a bit of a bad reason since we still have .next
<eam> which suffers from all the same problems
<treehug88> eam: what's undefined in every common implementation?
<eam> treehug88: ++
<shevy> higuys here is what matz wrote about that: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2710
<havenwood> eam: that's asking to return the next, not modifying the receiver though
<treehug88> eam: every common implementation of what?
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> havenwood: ah, fair (but I could implement next!)
shlomo has joined #ruby
<eam> treehug88: every implementation of a mutating increment operator
scripore has joined #ruby
<treehug88> eam: it's pretty well defined in C. But whatever
<eam> treehug88: no, it's explicitly undefined in C in certain contexts
lapideviridi has quit [Quit: Leaving]
<eam> C is a perfect example
<havenwood> higuys: You want to mutate numbers? Stop that!
<treehug88> eam: interesting. Which contexts?
<havenwood> higuys: Abomination!
ttilley has quit [Quit: Linkinus - http://linkinus.com]
<eam> treehug88: read up on "sequence points" in C
Musashi007 has joined #ruby
<treehug88> bah, yeah, in that case you get what you deserve. Point taken eam
cschneid_ has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
JoshL_ has joined #ruby
<havenwood> higuys: and yeah: +=
<adaedra> \o
<havenwood> higuys: for variables ^
govg_ has quit [Ping timeout: 260 seconds]
renanoronfle has quit [Ping timeout: 246 seconds]
<havenwood> adaedra: g'mornin'
rbennacer has joined #ruby
c0m0 has quit [Quit: Leaving]
<havenwood> >> x = 0; x += 1; x
<ruboto> havenwood # => 1 (https://eval.in/412638)
renanoronfle has joined #ruby
rehat has joined #ruby
michaeldeol has joined #ruby
ferhaty has quit [Ping timeout: 260 seconds]
danzilio has quit [Quit: My computer has fallen asleep!]
<higuys> im used to using x++ to increment
higuys has quit []
gambl0re has joined #ruby
pietr0 has joined #ruby
<centrx> He is pissed off!!!!
Guest50 has joined #ruby
<eam> someone should tell him ++x is faster
wldcordeiro__ has joined #ruby
Musashi007 has quit [Ping timeout: 265 seconds]
JoshL_ has quit []
niemcu has joined #ruby
fantazo has joined #ruby
webopsx has joined #ruby
towski_ has joined #ruby
<gambl0re> i'm right here...
theery has quit []
<gambl0re> i'm used to x++ becaues i was learning javascript for the past couple months
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gambl0re> and its commonly used..
<havenwood> gambl0re: in javascript...
<centrx> gambl0re, There's also much less use for the increment operator in Ruby, due to e.g. block functions
The_Phoenix has joined #ruby
<centrx> *blocks
<eam> gambl0re: oh I meant higuys
<eam> I really don't miss ++ tbh
danzilio has joined #ruby
<gambl0re> i am higuys, thats my alter ego
<eam> oh
<havenwood> it's not miss-worthy
j4cknewt has joined #ruby
railsraider has quit [Quit: railsraider]
rubytor has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt_ has joined #ruby
Musashi007 has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
soviet_jesus has joined #ruby
casadei has joined #ruby
govg has joined #ruby
marr has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
paulcsmith___ has joined #ruby
juanpaucar has joined #ruby
sshuff is now known as sshuff|gone
frem has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Royalb15 has quit [Quit: Leaving]
JimmyNeutron has joined #ruby
chills42 has quit [Remote host closed the connection]
<soviet_jesus> So I tested a regular expression a on rubular, and it shows the correct match groups, but when I attempt this: https://gist.github.com/JasonMadeSomething/1b4cbb3c5654fd678d46 All the capture groups return nil. I've double checked that @title holds a value when this gets called, but for some reason I'm just not getting the matches
yfeldblum has joined #ruby
chills42 has joined #ruby
doertedev has quit [Quit: Lost terminal]
renanoronfle has quit [Ping timeout: 260 seconds]
<eam> soviet_jesus: include sample data for @title?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
tuelz has joined #ruby
<soviet_jesus> updated it
<dorei> soviet_jesus: ur nick is awesome :)
<soviet_jesus> oh I think I made a silly mistake, i was accedentally looking for the folder number prefix too
<soviet_jesus> @dorei thanks
<eam> soviet_jesus: happy to rubberduck :)
pwnd_nfsw has joined #ruby
renanoronfle has joined #ruby
stamina has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
<gambl0re> this line here = >print (redact_words.include? x) ? "REDACTED!": x
<gambl0re> is ther ternary expression?
<gambl0re> that?
<eam> yes
<gambl0re> so its say "if redact_words includes x then print REDACTED?
<gambl0re> what does this part do? ? "REDACTED!": x
<gambl0re> ? (if true do this): (false do this)
<gambl0re> is that right>?
<eam> gambl0re: it's just like this: print(if redact_words.include? x; "REDACTED!"; else x; end)
Kruppe has quit [Quit: ZNC - http://znc.in]
snath has left #ruby ["Leaving"]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
<gambl0re> k
A124 has quit [Ping timeout: 260 seconds]
safeforge has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 246 seconds]
Kruppe has joined #ruby
fractalis has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
soviet_jesus has quit [Quit: Page closed]
A124 has joined #ruby
pawnbox has quit [Remote host closed the connection]
umgrosscol has joined #ruby
pengin has quit [Remote host closed the connection]
Jackneill has joined #ruby
ascarter has joined #ruby
shadoi has joined #ruby
tcopeland has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
ragingcake has joined #ruby
ragingcake has quit [Client Quit]
Xzanron has quit [Quit: Leaving]
rbennacer has quit [Read error: Connection reset by peer]
<shevy> gambl0re yeah; first one is always if true, second one always the alternative to the if true
ragingcake has joined #ruby
<shevy> I don't find it particularly readable especially the more ? are on the same line
<shevy> if colours?.include? :grey ? ok? : not_ok!
dseitz has joined #ruby
keeguon has quit [Ping timeout: 246 seconds]
Zai00 has quit [Quit: Zai00]
lapide_viridi has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
<centrx> !? ? : ? !!!
ht__ has joined #ruby
wldcordeiro__ has quit [Quit: Konversation terminated!]
mikecmpbll has joined #ruby
wldcordeiro__ has joined #ruby
maletor has joined #ruby
<gambl0re> do you iterate through a multidimensional array the same way you would do with a normal array?
bruno- has joined #ruby
<gambl0re> array.each do |x| ....
blue_deref has quit [Quit: bbn]
<shevy> well you always have .each
Channel6 has joined #ruby
<shevy> and inside it you have other arrays
ragingcake has quit [Client Quit]
<shevy> like those matrushka dolls or whatever their name is
tvw has quit []
<centrx> Matrix dolls
modern has joined #ruby
ragingcake has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<gambl0re> if im iterating over a hash and i only want to print out the value and not the key but i only include one argument....
<shevy> kermit and miss piggie are no longer together :(
<gambl0re> why doesnt it work
<shevy> no just use .each_pair {|key, value| and you are done
<gambl0re> i always have to include two arguments even if i just want to print out the value or just the key?
casadei has quit [Remote host closed the connection]
<eam> {}.each_value
<eam> {}.each_key
Alayde has joined #ruby
rbennacer has joined #ruby
<shevy> nice
<shevy> so eam's suggestion is even better
JoshL has joined #ruby
platosha_ has quit [Quit: This computer has gone to sleep]
pengin has joined #ruby
<shevy> he used to be a perl guru, now he has become a ruby guru
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
serivich has quit [Ping timeout: 256 seconds]
martinium has quit [Remote host closed the connection]
iamjarvo has joined #ruby
segfalt has joined #ruby
<eam> I know how to hit <tab> in my REPL
iamjarvo has quit [Max SendQ exceeded]
danman has joined #ruby
<eam> I'll take a corner office please
<miah> lol
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
wldcordeiro__ has quit [Quit: Konversation terminated!]
nahtnam has joined #ruby
slawrence00 has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
beef-wellington has quit [Quit: WeeChat 1.2]
dionysus69 has joined #ruby
AlphaAtom has joined #ruby
jeremy04_ has quit [Remote host closed the connection]
texasmade has quit [Ping timeout: 244 seconds]
jeremy04 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigbadbear has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platosha has joined #ruby
<darix> .oO( pry ftw )o
poguez_ has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
Musashi007 has quit [Quit: Musashi007]
safeforge has joined #ruby
Aswebb_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
lsmola has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
vdamewood has joined #ruby
juanpaucar has quit [Remote host closed the connection]
riotjones has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
swgillespie has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
A124 has joined #ruby
baroquebobcat has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 250 seconds]
pengin has quit [Remote host closed the connection]
atomical has joined #ruby
cornerma1 has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
lapide_viridi has quit [Quit: Leaving]
arup_r has joined #ruby
Rickmasta has joined #ruby
banister has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
cornerman has quit [Ping timeout: 246 seconds]
cornerma1 is now known as cornerman
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gambl0re> this line doesnt even make sense puts "That's not an integer." unless n.is_a? Integer
baweaver has joined #ruby
Cust0sLim3n has quit [Read error: Connection timed out]
RegulationD has joined #ruby
Cust0sLim3n has joined #ruby
baweaver has quit [Remote host closed the connection]
Guest50 has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
<centrx> "This sentence is false."
devoldmx has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
araujo has quit [Ping timeout: 264 seconds]
<centrx> gambl0re, but no, 'unless' means 'if not'
<havenwood> gambl0re: What doesn't make sense about it?
scripore has joined #ruby
pengin has joined #ruby
<gambl0re> isnt the statement usually inside the unless condition?
safeforge has quit [Remote host closed the connection]
<gambl0re> but in that line above its after the statement
tomphp_ has joined #ruby
<gambl0re> unless (condition) do this...
fmcgeough has joined #ruby
<gambl0re> not.... "do this... unless(condition)
<havenwood> gambl0re: Which way does English do it?
ascarter has joined #ruby
tomphp_ has quit [Client Quit]
tubuliferous_ has joined #ruby
<gambl0re> "do this... unless(condition)
<miah> you can pass unless a block, but its also usable as above
<havenwood> gambl0re: or the other way
<gambl0re> yes but isnt most programming languages the opposite way arround
tomphp_ has joined #ruby
<gambl0re> unless(condition) do this..
safeforge has joined #ruby
<havenwood> gambl0re: Languages vary. Ruby, like English, allows either.
<gambl0re> i mean its not usually.... "do this if(condition)
<gambl0re> ok
devoldmx has quit [Ping timeout: 264 seconds]
<nahtnam> Would anyone be interested in a irc bot that lets you tip coffee's with bitcoin through https://coffee.foldapp.com/
jeremy04_ has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
BTRE has quit [Quit: Leaving]
<atmosx> gambl0re: truth to be told, most audit tools will show a big warning on using 'unless' in your code, but it really saves lines of code.
<havenwood> nahtnam: :D coffee!
wldcordeiro__ has joined #ruby
<miah> depends on how you're using unless
<miah> i wouldn't mind just tips with bitcoin
<atmosx> most of the times, I'm using it: x = 5 unless y = 10
fractalis has joined #ruby
<nahtnam> miah: Well, gotta promote the business somehow.
<atmosx> btc for the win
railsraider has joined #ruby
blue_deref has joined #ruby
<miah> nahtnam: sure =)
tubuliferous_ has quit [Ping timeout: 265 seconds]
<scpike> Possibly boneheaded question - What's a good way to get string interpolation when reading a file? File.read('foo.txt') # foo.txt = "Foo contains #{bar}"
<nahtnam> Looks like there is some interest :P
railsraider has quit [Client Quit]
<miah> ya
reset has joined #ruby
jeremy04 has quit [Ping timeout: 252 seconds]
<nahtnam> Couldnt hurt to make it
<miah> i've been writing a sinatra app the past few weeks
<miah> and what i've learned is i'm really bad at html/css
khebbie has joined #ruby
sshuff|gone is now known as sshuff
<bricker> scpike: it's not really clear what you're asking
<nahtnam> :D
<shevy> as long as I can click on the page it's good miah!
zacstewart has quit [Remote host closed the connection]
<atmosx> miah: I feel you, I have this CSS/HTML book. I have to re-read it everytime I mess with CSS. It's a mess. Are you using boostrap by any chance?
<scpike> bricker: I have a reporting script running some SQL that's currently inlined in the script, and I want to move it out
bradleyprice has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
spider-mario has quit [Read error: Connection reset by peer]
<miah> no, we're using out own internal style stuff. so i dont have to do _too_ much
<atmosx> scpike: maybe, you could use ruby to talk to the sql db directly?
chipotle has joined #ruby
platzhirsch has left #ruby [#ruby]
<atmosx> using sequel (orm) should be a piece of cake
bradleyprice has joined #ruby
<bricker> scpike: Oh. What's wrong with the answers on that SO post?
<miah> but i have been embedding some html in my erb's and i know i'm going to have somebody from frontend help polish this
<atmosx> miah: I see
<scpike> bricker: I asked here before finding that :)
<bricker> scpike: oh :D
<scpike> using erb or a sql engine seems reasonable
<miah> (i'm writing a user management interface for our ldap)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<scpike> atmosx: Idon't want to use a ORM for this - it's a beast of a query with some temp tables
<atmosx> scpike: you can use raw SQL if you have the query.
<atmosx> scpike: all I'm saying is... it makes more sense to dig into the DB using ruby, directly. But then again you know better.
<atmosx> your use case, etc.
<scpike> atmosx: Ok more precise question - can I give sequel something like "SELECT * from X where id = :id", {id: 5} ?
mleung has quit [Quit: mleung]
<scpike> Is that waht you mean by talk directly, using a library that knows what SQL is ?
<atmosx> scpike: of course you can use raw SQL
<atmosx> scpike: but if that's the only thing you're going to use, then better use the SQL gem (mysql? mssql?)
<atmosx> and use raw SQL queries
bradleyprice has quit [Remote host closed the connection]
<miah> +1 sequel
wldcordeiro__ has quit [Quit: Konversation terminated!]
<scpike> Yea I'm using sequel to run the query already (and like it)
<gambl0re> #{string[1..-1]}...what does the [1..-1] do?
railsraider has joined #ruby
<havenwood> gambl0re: all but first character
Musashi007 has joined #ruby
<havenwood> gambl0re: 0 is first and -1 is last
mdavid613 has quit [Quit: Leaving.]
<scpike> atmosx: woa sequel is awesome, this works DB["SELECT * FROM X where id = :id", { id: 1 }]
<scpike> thanks!
<gambl0re> ["ryan", "jane"].each {|string| puts "#{string[0].upcase}#{string[1..-1]}"}
lkba has joined #ruby
<gambl0re> -1 indicates the last character?
<gambl0re> -2 would indicate second last character and so on?
<havenwood> gambl0re: try it out in irb or pry!
DLSteve has joined #ruby
<gambl0re> ok so if you do "string"[0] it would output s
mdavid613 has joined #ruby
rjno has quit []
<gambl0re> i didnt know string have index positions
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bodgix has quit [Quit: Leaving.]
Muhannad has joined #ruby
<miah> >> 'string'[0]
<ruboto> miah # => "s" (https://eval.in/412732)
yqt has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
<gambl0re> cool
banister has joined #ruby
<havenwood> >> 'string'.index 's'
<ruboto> havenwood # => 0 (https://eval.in/412734)
<havenwood> gambl0re: In Pry take a look at: ls ""
baweaver has joined #ruby
kidoz has joined #ruby
lannonbr has joined #ruby
<gambl0re> why are programmers always seeking to create a more efficient sorting algorithm programming languages already have build in sorting functions included
dopie has quit [Quit: This computer has gone to sleep]
<havenwood> >> 'strings'.rindex 's'
<ruboto> havenwood # => 6 (https://eval.in/412735)
davedev2_ has joined #ruby
nsuke has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 244 seconds]
<miah> gambl0re: because humanity is all about iterative improvement
baroquebobcat has quit [Quit: baroquebobcat]
symm- has joined #ruby
<dfockler> and no one has proven, "this is the best sorting algorithm of all time"
<miah> right
<adaedra> and, you're talking about bubble sort
* adaedra flees
robbyoconnor has joined #ruby
baroquebobcat has joined #ruby
safeforge has quit [Remote host closed the connection]
<dfockler> and there are tons of trade-offs per sorting situation
<dfockler> literally tons!
kirun has joined #ruby
BTRE has joined #ruby
jackjackdripper has joined #ruby
<twohlix> yea, different algorithms perform better on differently jumbled sets
j_mcnally has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leesharma has quit [Ping timeout: 265 seconds]
<havenwood> And then stuff like this happens: http://envisage-project.eu/wp-content/uploads/2015/02/sorting.pdf
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
halcyone3 has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
wldcordeiro__ has joined #ruby
banister has quit [Client Quit]
rbennacer has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
rbennacer has joined #ruby
<atmosx> gambl0re: why are f1 teams try to find a way to go faster :-P
<atmosx> s/are/do
quimrstorres has quit [Remote host closed the connection]
Zai00 has joined #ruby
quimrstorres has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
jimms has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
tcrypt has joined #ruby
quimrstorres has quit [Ping timeout: 250 seconds]
polpak has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
Zai00 has quit [Quit: Zai00]
bradleyprice has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thiagovsk has quit [Quit: Connection closed for inactivity]
davedev2_ has quit [Ping timeout: 244 seconds]
ivanskie has joined #ruby
zacstewart has joined #ruby
maverick08 has joined #ruby
wldcordeiro__ has quit [Ping timeout: 256 seconds]
davedev24 has joined #ruby
maverick08 has quit [Client Quit]
gard has joined #ruby
chipotle has quit [Quit: cheerio]
juanpaucar has joined #ruby
iateadonut has left #ruby [#ruby]
Zai00 has joined #ruby
Zai00 has quit [Remote host closed the connection]
webopsx has joined #ruby
quimrstorres has joined #ruby
leesharma has joined #ruby
railsraider has quit [Quit: railsraider]
baroquebobcat has quit [Quit: baroquebobcat]
webopsx has quit [Client Quit]
dopie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
sanguisdex has quit [Remote host closed the connection]
ascarter has joined #ruby
scripore has joined #ruby
sanguisdex has joined #ruby
<shevy> test
mjuszczak has joined #ruby
baroquebobcat has joined #ruby
Guest50 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
jerius has quit [Quit: /quit]
hoov has quit [Quit: Leaving]
<miah> ....F
TomyLobo has joined #ruby
<shevy> S...F
<centrx> SH..F
<eam> this test failed
gagrio has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
slawrence00 has joined #ruby
gagrio has joined #ruby
skade has joined #ruby
<gambl0re> whats the difference between if (movies[title.to_sym] == nil) and if (movies[title.to_sym] == nil?)
<centrx> You mean movies[title.to_sym].nil?
tuelz has quit [Ping timeout: 250 seconds]
<miah> ^
<gambl0re> no...the way i typed it
jerius has joined #ruby
<centrx> Then the difference is the second one won't work, or it calls a method defined with the name "nil?" which we don't see
<nahtnam> Quick question. If users = "", and I do if users, will it return true or false?
<Scriptonaut> Hey guys, I'm trying to do a post in capybara. I'm getting this: https://gist.github.com/robins35/936e7039b8721c694529 However, when I do a rake routes | grep create_seats, I get: create_seats_users POST /users/create_seats(.:format) users#create_seats
<eam> >> false == nil?
<ruboto> eam # => true (https://eval.in/412746)
<eam> gambl0re: nil? is the same as self.nil?
<gambl0re> so it should be written as if (movies[title.to_sym].nil?)
niemcu has quit [Ping timeout: 252 seconds]
yardenbar has quit [Quit: Leaving]
<centrx> nahtnam, "" is truthy. only false and nil are falsy
phutchins has quit [Ping timeout: 250 seconds]
<nahtnam> centrx: Well does ruby have something similar to this: http://stackoverflow.com/questions/5515310/is-there-a-standard-function-to-check-for-null-undefined-or-blank-variables-in where """ is falsy?
<centrx> nahtnam, #empty? or #blank? (#blank? is in ActiveSupport/Rails)
jimms has joined #ruby
<centrx> but
<centrx> >> nil.empty?
<ruboto> centrx # => undefined method `empty?' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/412752)
<nahtnam> :(
<centrx> nahtnam, blank? is in ActiveSupport, ActiveSupport is nice
<nahtnam> There is no combination?
<nahtnam> Oh ok
quimrstorres has quit [Remote host closed the connection]
<centrx> nahtnam, blank? is just: respond_to?(:empty?) ? !!empty? : !self
hazelux has joined #ruby
<centrx> >> ?: ? ? !! ? : !
<ruboto> centrx # => /tmp/execpad-cdaba414cf32/source-cdaba414cf32:2: warning: invalid character syntax; use ?\s ...check link for more (https://eval.in/412753)
spider-mario has joined #ruby
<miah> heh
halcyone3 has quit [Ping timeout: 244 seconds]
<nahtnam> Lol, thanks centrx
<nahtnam> What do you guys think of "cinch"? It looks pretty cool
Musashi007 has joined #ruby
bluOxigen has joined #ruby
<gambl0re> this is confusing.... so you can do it 2 ways =====> 1) statement if(condition) 2) if(condition) do this
<nahtnam> Is there a bot here that will give a link to a rubygem if you know the name?
<centrx> gambl0re, postfix conditional is basically to have nice one liners
jeremy04_ has quit [Remote host closed the connection]
shlomo has quit [Quit: WeeChat 1.2]
jeremy04 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
iamjarvo has joined #ruby
mjuszczak has quit []
puppeh_ has joined #ruby
skade has quit [Read error: Connection reset by peer]
<puppeh_> any1 knows how can I get a unix domain socket with Socket#getaddrinfo ?
skade has joined #ruby
rdark has quit [Quit: leaving]
_blizzy_ has joined #ruby
<eam> puppeh_: what do you mean?
<eam> getaddrinfo queries DNS
Musashi007 has quit [Quit: Musashi007]
safeforge has joined #ruby
prestorium has quit [Ping timeout: 240 seconds]
<puppeh_> documentation states that it accepts Socket::UNIX in the address family http://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket.html#method-c-getaddrinfo
nfk has joined #ruby
baweaver has quit [Remote host closed the connection]
<eam> that looks like wrong documentation to me
_blizzy_ has quit [Ping timeout: 244 seconds]
jerius has quit [Quit: /quit]
niemcu has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> (checking)
webopsx has joined #ruby
webopsx has quit [Client Quit]
jmfurlott has joined #ruby
AlphaAtom has joined #ruby
<jmfurlott> is #rails private ?
gambl0re has quit [Remote host closed the connection]
Dzejmskrokan has quit [Remote host closed the connection]
AlphaAtom has quit [Max SendQ exceeded]
gambl0re has joined #ruby
<eam> puppeh_: it appears some unixes support the unix socket type in getaddrinfo, or did upon a time -- but most do not
<eam> guessing that bit should be removed
AlphaAtom has joined #ruby
jerius has joined #ruby
Alayde has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
Dzejmskrokan has joined #ruby
alexherbo2 has joined #ruby
benlovell has joined #ruby
<gambl0re> whats the difference between .each and .collect
mjuszczak has joined #ruby
<Ox0dea> gambl0re: #collect is an alias for #map; do you know the difference between #each and #map?
<hazelux> jmfurlott: are you looking for #RubyOnRails?
<shevy> use .map rather than .collect
<shevy> .map applies something on each element
nofxx has joined #ruby
<shevy> perhaps you need to append a string to each element of your array
<Ox0dea> eam: Ruby gets to drink legally in the States this year; it has accumulated lots of little inconsistencies like that over the years.
<shevy> then .map would be the proper way
<Ox0dea> shevy: You've written far too much Ruby to not have your method notation down yet. :P
<gambl0re> .map changes the value whereas .each makes a collection or a copy of the original?
<shevy> gambl0re .each just iterates through your collection, you use it typically to output/print it
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<gambl0re> and .map iterates and creates a new copy of the collection and returns it
RandyT has quit [Quit: ZNC - http://znc.in]
<Ox0dea> ...
<shevy> gambl0re who said anything about a new copy
<arup_r> >> require 'date'; p (Date.today.year..Date.today.year + 3).to_a
<ruboto> arup_r # => [2015, 2016, 2017, 2018] ...check link for more (https://eval.in/412757)
<arup_r> it is ok
<gambl0re> ok thanks
<arup_r> but I want
<shevy> gambl0re you can modify in-place via .map!
<Ox0dea> arup_r: You want starts of year as Time objects?
<arup_r> [[15, 2015], [16, 2016], [17, 2017], [18, 2018]]
graydot has joined #ruby
<arup_r> But number can be strings...
<arup_r> These years are credit card display years
<arup_r> 2 digits are option text and 4 digits are option value
scripore has quit [Quit: This computer has gone to sleep]
Trynemjoel has quit [Ping timeout: 245 seconds]
myztic has quit [Ping timeout: 260 seconds]
<TomyLobo> Ox0dea, is that 16, 18 or 21?
benlovell has quit [Ping timeout: 256 seconds]
dman777_alter has joined #ruby
Trynemjoel has joined #ruby
tkuchiki has joined #ruby
jge has joined #ruby
isxek has quit [Ping timeout: 246 seconds]
<Ox0dea> TomyLobo: I don't think it's actually a national mandate, but it's twenty-one in most places.
mjuszcza_ has joined #ruby
<jge> hi everyone, so I was running a ruby on rails app (redmine) with thin and now I've switched over to Passenger but I'm getting the following: http://pastie.org/private/lcuaxcsuywhytigbkrba
<jge> anyone could shed some light please?
<jge> I'm running ubuntu 14.04 LTS
<Ox0dea> ?rails jge
<ruboto> jge, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<TomyLobo> nowadays, congress cant even agree on a budget
mjuszczak has quit [Ping timeout: 250 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<jge> roger that
jge has left #ruby ["WeeChat 1.0.1"]
Muhannad has quit [Ping timeout: 260 seconds]
<adaedra> TomyLobo: that's for the US only though
<al2o3-cr> >> require 'date'; (Date.today.year..Date.today.year+3).map {|y| [y%1000, y] } # arup_r
<ruboto> al2o3-cr # => [[15, 2015], [16, 2016], [17, 2017], [18, 2018]] (https://eval.in/412766)
<Scriptonaut> According to rspec, this value (account.seats) isn't changing. However I put a binding.pry in there and it is. I can't seem to get it to reload. Can you guys see anything obviously wrong with this way of reloading an object in rpsec on line 3: https://gist.github.com/robins35/4478901c239ad7ea1ef5
<TomyLobo> of course
<TomyLobo> over here you can get a beer at 16, i think
<adaedra> ah didn't see it was the original scope
<Ox0dea> al2o3-cr: That should be mod-100.
<TomyLobo> yep and wine too
<adaedra> drink I don't remember, buy it's 18
<adaedra> i think
<al2o3-cr> ah, yeah :(
RandyT has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 265 seconds]
failshell has joined #ruby
<adaedra> ok, no limit for drinking
mjuszcza_ has quit [Read error: No route to host]
<adaedra> NICE
<TomyLobo> purchase: 16 (spirits 18), drinking: no prohibition
crimson_penguin has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
Trynemjoel has joined #ruby
<TomyLobo> seriously, there are countries with laws that forbid drinking alcohol?
Violentr has quit [Ping timeout: 265 seconds]
<Scriptonaut> most of them do TomyLobo
<shevy> based on age
<Scriptonaut> most first world countries do at least
ita-ness has quit [Remote host closed the connection]
<adaedra> We don't :D
mjuszczak has joined #ruby
<Scriptonaut> adaedra: what country?
<adaedra> Scriptonaut: FR
<TomyLobo> https://en.wikipedia.org/wiki/Legal_drinking_age#Europe most of europe has no such silly thing
d2dchat has joined #ruby
<Scriptonaut> according to google, the drinking age in France is 18
<TomyLobo> greece, you're doing it wrong
<adaedra> Scriptonaut: to buy
<Scriptonaut> The age is definietly way too high here in the US
<TomyLobo> in greece if you're <18, you can buy alcohol but not drink it
<Scriptonaut> everyone has to sneak around in high school
<shevy> hehe
jimms has quit [Remote host closed the connection]
jenrzzz has quit [Quit: Lost terminal]
<adaedra> Scriptonaut: it's allowed to make children drink, but not to make them drunk
Violentr has joined #ruby
jenrzzz has joined #ruby
diegoviola has joined #ruby
<Scriptonaut> Here you can drink as a child if your parent gives it to you legally
<Scriptonaut> like having a beer with dinner, etc
<TomyLobo> adaedra, it should not be allowed to *make* children drink
<adaedra> But it's illegal to sell alchool to children
Trynemjoel has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 244 seconds]
<adaedra> TomyLobo: dunno
<adaedra> To force, yes
<TomyLobo> vietnam has no restrictions at all
arup_r has left #ruby ["Leaving"]
<TomyLobo> i was gonna say that explains this, but it's thailand: https://www.youtube.com/watch?v=Wraq6VnXmGo
Trynemjoel has joined #ruby
<adaedra> But we're a country of wine drinkers, having a restrictive alcohol law would be strange, I guess
<Scriptonaut> I think it doesn't make much sense comparing 3rd world countries, you can also buy opium on the streets in Vietnam, haha
tubuliferous_ has joined #ruby
<Scriptonaut> oh wow, this is #ruby
<Scriptonaut> no wonder people haven't been answering my questions
<Scriptonaut> I thought this was #rubyonrails this entire time
<adaedra> :D
<adaedra> There was a question?
myztic has joined #ruby
<Scriptonaut> ya, an rspec question
<Scriptonaut> According to rspec, this value (account.seats) isn't changing. However I put a binding.pry in there and it is. I can't seem to get it to reload. Can you guys see anything obviously wrong with this way of reloading an object in rpsec on line 3: https://gist.github.com/robins35/4478901c239ad7ea1ef5
* adaedra serves Scriptonaut a glass of wine
thiagovsk has joined #ruby
tmtwd has joined #ruby
<Scriptonaut> I hate to admit it but I *hate* wine
<Scriptonaut> I like beer
<Zarthus> stand in line
<Scriptonaut> I brew a lot of beer
<adaedra> I don't actually drink Alcohol
dfockler has joined #ruby
_blizzy_ has joined #ruby
<al2o3-cr> I drink to much :)
<dfockler> you do!
blackmesa has joined #ruby
<adaedra> al2o3-cr: how are the pink elephants?
<al2o3-cr> i've named them all dumbo :D
bradleyprice has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 246 seconds]
NightMonkey has quit [Ping timeout: 260 seconds]
<Scriptonaut> I try not to drink often nowadays, but it's not unusual for me to wake up on the living room floor at 7am on a saturday :P
<centrx> heroin will do that to you
tubuliferous_ has quit [Ping timeout: 244 seconds]
<adaedra> now this is illegal, children or not
<dfockler> with weed you just end up in your bed well rested
<Scriptonaut> that's legal here (near Seattle)
<adaedra> heroin?
<Scriptonaut> no, weed
NightMonkey has joined #ruby
Rickmasta has joined #ruby
<centrx> adaedra, as long as we don't say "guys" I think anything goes
Alayde has joined #ruby
<adaedra> hahaha
Muhannad has joined #ruby
chills42 has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
A124 has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
rbennace_ has joined #ruby
<Ox0dea> Hey, gals! Any tips for choosing the best vein?
<Scriptonaut> hahah
iamjarvo_ has joined #ruby
Vile` has quit [Ping timeout: 265 seconds]
<Aria> Seriously?
ascarter has joined #ruby
A124 has joined #ruby
<Aria> Just don't. This is a programming channel.
<Ox0dea> Aria: Please advise with some haste. I'm goin' in!
<centrx> I think he's mining for ore
<Scriptonaut> Aria don't be so damn uptight
Vile` has joined #ruby
<drbrain> Scriptonaut: that's inappropriate
<Aria> Indeed.
Trynemjoel has joined #ruby
ascarter has quit [Max SendQ exceeded]
<dfockler> Ruby!
<adaedra> Ruby!
<Scriptonaut> Makin a joke like that?
<Aria> dfockler++
<centrx> PHP!
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfockler> GET OUT!
<Aria> centrx++
ascarter has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
* adaedra slaps centrx with all the reasons PHP is bad
<centrx> it's a fractal, fractals are cool man
rbennacer has quit [Ping timeout: 272 seconds]
AlphaAtom has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 244 seconds]
<centrx> Alright, back to work people! I'm not paying you all to...do anything
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
bazbing81 has joined #ruby
<dfockler> >> $.
<ruboto> dfockler # => 0 (https://eval.in/412775)
<dfockler> thanks ruboto
<adaedra> you're welcome
Trynemjoel has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
slawrence00 has quit [Read error: Connection reset by peer]
ivanf has quit [Ping timeout: 260 seconds]
A124 has quit [Ping timeout: 260 seconds]
stylus has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
A124 has joined #ruby
djbkd has quit [Remote host closed the connection]
fractalis has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
hazelux has quit [Remote host closed the connection]
<bazbing81> before I dive into this, how does my gem get another gem's root? so gemA has a a dependency on gemB, how does gemB get gemA's root? Because of the way installed gem's are installed will it always be File.expand_path '../..', __FILE__ or something? I mean I know gems themselves are installed in a folder further up the directory tree in Ubuntu, but when we require them insto another gem would that allow us to use File.expand_path '../..' ?
sbhatore has joined #ruby
ivanf has joined #ruby
sbhatore is now known as jaimessi
<bazbing81> just for more clarification, we're developing gemA gemA isn't an installed gem
jaimessi is now known as abcd1234
<adaedra> usually, gems just require each other without trying to figure where they are installed
yalue has quit [Quit: return 0;]
<shevy> I found that RbConfig::CONFIG['sitelibdir']+'/name_of_gem/' works reliably for my gems
<adaedra> ew
<shevy> what do you use adaedra
<bazbing81> adaedra I want to create a gem that scans the gem we're developing for a keyword...but only the gem we're developing. No gems that are installed
lkba has quit [Quit: Bye]
<adaedra> then just scan the directory, bazbing81
<adaedra> shevy: to do what
<shevy> to get the path of the gem
<adaedra> I don't
<bazbing81> adaedra: you mean they should manually put the root in?
<adaedra> bazbing81: if your goal is to have a gem tool that scans other code bases, the best it to have your gem get as config which path to scan
<adaedra> either by config file, environment or cli argument
<TomyLobo> i have an array with keys and an array with values. how do i combine them into a dictionary?
<TomyLobo> (except by iterating over the indices)
<adaedra> &ri Array#zip Array#to_h
<adaedra> Also, in ruby those are Hashes
<al2o3-cr> >> [[1, 3, 5], [2, 4, 6]].transpose.to_h
<ruboto> al2o3-cr # => {1=>2, 3=>4, 5=>6} (https://eval.in/412777)
<TomyLobo> al2o3-cr, awesome :)
tkuchiki has joined #ruby
<al2o3-cr> np
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> TomyLobo: It may be worth bearing in mind that #to_h is 2.1+.
<TomyLobo> oh
<Ox0dea> Before that, there was the Hash[] constructor.
vickleton has joined #ruby
<TomyLobo> "was"?
<Ox0dea> I mean, it still exists, but #to_h is preferable.
<Ox0dea> >> foo, bar = %i[a b c], [1, 2, 3]; Hash[foo.zip(bar)]
<ruboto> Ox0dea # => {:a=>1, :b=>2, :c=>3} (https://eval.in/412778)
jeremy04_ has joined #ruby
baweaver has joined #ruby
<TomyLobo> %i? huh?
<Ox0dea> Symbol array.
<TomyLobo> ah
jeremy04_ has quit [Remote host closed the connection]
<TomyLobo> kinda redundant, isnt it?
jeremy04_ has joined #ruby
<Ox0dea> Convenient.
scripore has joined #ruby
<adaedra> >> %i[a b c]
<ruboto> adaedra # => [:a, :b, :c] (https://eval.in/412779)
fractalis has joined #ruby
<Ox0dea> %w saves the most typing, but %i is still nice.
skade has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 240 seconds]
calleerlandsson has quit [Quit: Connection closed for inactivity]
<dfockler> what does the %i and %w stand for?
<al2o3-cr> %W for interpolation :)
vdamewood has quit [Quit: Life beckons.]
baweaver has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
jeremy04 has quit [Ping timeout: 260 seconds]
<waxjar> i kinda wish ruby didnt have these
<adaedra> aw :(
<dfockler> %w will stand for '(W)hen you need a string'
Musashi007 has quit [Quit: Musashi007]
<dfockler> %i will stand for '(I) really need a symbol'
djbkd has joined #ruby
<waxjar> %w denotes an array, thought
<waxjar> *though
texasmade has joined #ruby
<dfockler> they both generate arrays
<adaedra> array of Welcomed strings, array of Important symbols
<Ox0dea> dfockler: %w is "word", %i is "intern".
<dfockler> I don't want to hire interns
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> dfockler: Symbols are "interned" strings.
<waxjar> just type a couple characters extra :D
tenderlove has joined #ruby
<Ox0dea> waxjar: Have you never typed out an array of strings? It's fucking annoying.
benlovell has joined #ruby
<adaedra> ^
<al2o3-cr> +1
<adaedra> %w and %i are so nice
baroquebobcat has quit [Quit: baroquebobcat]
erts has joined #ruby
<waxjar> meh, type it out as you would with %w and use your editor to insert quotes, commas and line breaks at the right places
<waxjar> multiple cursors, ftw!
<Ox0dea> Or, y'know,
hazelux has joined #ruby
<puppeh_> I'm searching how I can initialize a unix domain socket and *then* connect to it. I don't want to use Socket.unix or UNIXSocket which connects at the same time it initializes the socket
<puppeh_> any ideas?
fullofcaffeine has quit [Remote host closed the connection]
<adaedra> why would you want to do that
rideh has quit [Ping timeout: 265 seconds]
erts has quit [Client Quit]
<puppeh_> cause I want to connect at a later time, only when needed
<al2o3-cr> don't forget %s
<Ox0dea> al2o3-cr: That doesn't create an array, though.
<adaedra> then create the socket when you need it?
<al2o3-cr> oh, no
<puppeh_> adaedra: I need it earlier, and I want to connect to it later
<puppeh_> for a reason that's out of scope right now
<TomyLobo> in a gsub with a block, can i get the captures somehow? i only get the entire match as a string
fullofcaffeine has joined #ruby
<waxjar> the captures come in as block arguments i believe
michael_mbp has quit [Excess Flood]
<adaedra> >> "hello, world".gsub(/[aeiouy]/) { |e| e.upcase }
<ruboto> adaedra # => "hEllO, wOrld" (https://eval.in/412780)
safeforge has quit [Remote host closed the connection]
<zenspider> rawr
<adaedra> hi zenspider
<waxjar> ah nope, they don't :(
rideh has joined #ruby
<Ox0dea> >> [*?A..?z].select { |x| next if x[/X/i]; begin; eval "%#{x}[]"; rescue SyntaxError; nil end }
<ruboto> Ox0dea # => ["I", "Q", "W", "]", "i", "q", "r", "s", "w"] (https://eval.in/412781)
michael_mbp has joined #ruby
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> all of them :)
<TomyLobo> >> '/issues/:id/comments'.gsub(/\/:([^\/]+)\//) { |match, a, b, c, d| puts match,a,b,c,d }
JoshL has quit []
<ruboto> TomyLobo # => /:id/ ...check link for more (https://eval.in/412782)
<Ox0dea> al2o3-cr: Except %x and %X, which would've borked it.
<Ox0dea> Not sure how "]" ended up in there.
<al2o3-cr> ah, the shell command :)
<TomyLobo> waxjar, so no block arguments i'm afraid :/
<zenspider> Don't forget that you can use %X...X as a string, with any X, including space... which is HORRIBLE.
roolo has joined #ruby
<adaedra> >> %][]
<ruboto> adaedra # => "[" (https://eval.in/412783)
leafybasil has quit [Remote host closed the connection]
<adaedra> interesting
<Ox0dea> Wow.
<zenspider> I... didn't think that would work
<adaedra> ah yes, logical.
<zenspider> I thought the braces were special and had to be matched... but maybe only if you start with the opener
leafybasil has joined #ruby
<adaedra> >> %)()
<ruboto> adaedra # => "(" (https://eval.in/412784)
<zenspider> apparently space doesn't work anymore?
<Ox0dea> >> % it does # right?
<ruboto> Ox0dea # => /tmp/execpad-24a0eba70a84/source-24a0eba70a84:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/412785)
<Ox0dea> >> % it_does # right?
<adaedra> >> % z # hello
<ruboto> Ox0dea # => "it_does" (https://eval.in/412787)
<ruboto> adaedra # => "z" (https://eval.in/412787)
khebbie has quit [Remote host closed the connection]
<zenspider> huh. it is pissing off my ruby
baweaver has joined #ruby
<Ox0dea> >> %x pwd # What's in the box?!
<ruboto> Ox0dea # => (https://eval.in/412788)
<adaedra> >> %w hello # n
<ruboto> adaedra # => /tmp/execpad-f2068085f71e/source-f2068085f71e:2: unterminated string meets end of file ...check link for more (https://eval.in/412789)
<zenspider> ah... no. It was reading the % as a method in my context
<zenspider> I was doing ruby -e 'p % word ' and it looked like p().%(word)
maletor has quit [Quit: Computer has gone to sleep.]
Oka has joined #ruby
<adaedra> ok, how do I close %w<space>
<al2o3-cr> so, most things can be a delimiter for %?
bruno- has quit [Ping timeout: 244 seconds]
fractalis has quit [Ping timeout: 240 seconds]
ap4y has joined #ruby
<adaedra> non alphanumeric iirc
leafybasil has quit [Ping timeout: 252 seconds]
<al2o3-cr> ah, ok nice to know
benlovell has quit [Ping timeout: 256 seconds]
<adaedra> with the special cases of ({[<
diegoviola has quit [Quit: WeeChat 1.2]
<zenspider> no, pretty much anything except those other special chars specifying other types
<zenspider> >> %;blah;
<ruboto> zenspider # => "blah" (https://eval.in/412790)
<zenspider> that kills me
<shevy> hehe
<al2o3-cr> >> %&foo&
sumark has quit [Remote host closed the connection]
<ruboto> al2o3-cr # => "foo" (https://eval.in/412791)
<adaedra> >> %
<ruboto> adaedra # => /tmp/execpad-0171e7c6d572/source-0171e7c6d572:2: invalid multibyte char (UTF-8) ...check link for more (https://eval.in/412792)
<TomyLobo> >> %(blah)
<ruboto> TomyLobo # => "blah" (https://eval.in/412793)
<kenichi> hahaha
<shevy> omg
<TomyLobo> >> %)blah(
<ruboto> TomyLobo # => /tmp/execpad-33b27351e72d/source-33b27351e72d:4: unterminated string meets end of file ...check link for more (https://eval.in/412794)
<adaedra> %(blah(blah)blah)
<adaedra> >> %(blah(blah)blah)
<ruboto> adaedra # => "blah(blah)blah" (https://eval.in/412795)
<zenspider> adaedra: that's ruboto being dumb. try it in your terminal
bb010g has joined #ruby
<adaedra> zenspider: doesn't work either, but with a different error
<zenspider> interesting
Muhannad has quit [Ping timeout: 256 seconds]
<adaedra> ah no, same
<adaedra> %w
sumark has joined #ruby
<shevy> adaedra I can't get %][] to work, what magic have you been doing?
<adaedra> shevy: I use ruby
<al2o3-cr> >> % pizza
<ruboto> al2o3-cr # => /tmp/execpad-7e96b898d592/source-7e96b898d592:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/412796)
<al2o3-cr> :(
<Ox0dea> al2o3-cr: ruboto strips whitespace.
danzilio has quit [Quit: My computer has fallen asleep!]
<al2o3-cr> works in pry
<adaedra> al2o3-cr: you need a comment, ruboto trims
<al2o3-cr> ah, thats why
<Ox0dea> shevy: Do %][] and then ^D.
<adaedra> >> % pizza # yum
<ruboto> adaedra # => "pizza" (https://eval.in/412797)
<al2o3-cr> lol
<shevy> Ox0dea weird
Jackneill has quit [Ping timeout: 250 seconds]
<banister> al2o3-cr pry is for n00bs
<Ox0dea> shevy: Very.
baroquebobcat has joined #ruby
<Ox0dea> Pry gave me a virus.
<al2o3-cr> :D
<Ox0dea> On LFS!
<adaedra> Ah, LFS, it's shevy's fault
<adaedra> I sentence shevy to unicode
<shevy> I don't use LFS
<cscheib> //win 2
maletor has joined #ruby
mjuszczak has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
phutchins has joined #ruby
<TomyLobo> >> '/issues/:id/comments'.gsub(/\/:([^\/]+)\//) { |match| puts match,$1 }
<ruboto> TomyLobo # => /:id/ ...check link for more (https://eval.in/412798)
<TomyLobo> figured it out :)
yfeldblum has joined #ruby
shinnya has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<zenspider> TomyLobo: what are you doing and why?
benlovell has joined #ruby
djbkd has joined #ruby
khebbie has joined #ruby
<TomyLobo> rails-style routing with not-rails
<TomyLobo> not web either
Trynemjoel has quit [Ping timeout: 250 seconds]
<symm-> ah, the wonders of precompiled binaries
<zenspider> def / var; ...; end... just sayin'
<symm-> I was starting to get PTSD from running "./configure" and "make install" in something called "msys"
<kenichi> maybe look at mustermann?
Trynemjoel has joined #ruby
<adaedra> +1
<zenspider> makes me want to eat a sausage
sshuff is now known as sshuff|gone
tcopeland has quit [Ping timeout: 246 seconds]
rideh has quit [Quit: zap]
pengin has joined #ruby
tsvenson has quit [Read error: Connection reset by peer]
jmfurlott has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
<Ox0dea> > mfw zenspider is secretly tenderlove
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
user1138 has quit [Quit: Leaving]
fullofcaffeine has quit [Remote host closed the connection]
6JTABQ8VO has quit [Ping timeout: 252 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
modern has quit []
codecop has quit [Remote host closed the connection]
Muhannad has joined #ruby
<zenspider> nah. he's still driving up from pdx
<Ox0dea> TomyLobo: No need for the block parameter if you're not categorically opposed to magic variables.
ragingcake has quit [Quit: ragingcake]
failshell has quit []
<Ox0dea> $~ == match in your example there.
skade has joined #ruby
fullofcaffeine has joined #ruby
<zenspider> I always forget that one and use () and \1
<TomyLobo> Ox0dea, i removed the block parameter already
<TomyLobo> and i need \1 not \0
Trynemjoel has joined #ruby
<Ox0dea> That's what $1 is for?
<Ox0dea> What is \0, even?
<TomyLobo> ruby calls it $1, yes
iamjarvo_ has quit [Ping timeout: 245 seconds]
ht__ has quit [Quit: Konversation terminated!]
<TomyLobo> entire string
<TomyLobo> $~
<TomyLobo> it's basically working now. i'm cleaning it up a bit then i'll pastebin it
<Ox0dea> '\0' appears to be an alias for '\1', which is weird.
<Ox0dea> >> 'foo'.gsub(/(.)/, '\0\1')
<apeiros> \0 is full match
<ruboto> Ox0dea # => "ffoooo" (https://eval.in/412799)
<Ox0dea> Nope.
<apeiros> \1 is first capture
<Ox0dea> Oh, right.
<apeiros> so yes, if you capture the full match, \0 and \1 are the same ;-p
modern has joined #ruby
user1138 has joined #ruby
<apeiros> but WHO IN THEIR RIGHT MIND capture the full match? makes no sense!
iamjarvo has quit [Client Quit]
iamjarvo has joined #ruby
bmurt has quit []
<zenspider> um... *raises hand*
* apeiros blinks
<drbrain> I think for split and/or scan /(.)/ does special things
iamjarvo has quit [Client Quit]
<drbrain> that /./ does not do
<apeiros> drbrain: sure, but there you don't have \0 nor \1
modern has quit [Client Quit]
<Ox0dea> Well, they're internal backreferences in that case.
<apeiros> split includes captures in the result, scan turns to array of arrays with captures
modern has joined #ruby
<zenspider> I don't like \0 ... dunno why
<zenspider> prolly because $0 vs $1
modern has quit [Changing host]
modern has joined #ruby
<Ox0dea> >> 'aabbcc'.split(/(.)\1/) # POLS violation
<ruboto> Ox0dea # => ["", "a", "", "b", "", "c"] (https://eval.in/412800)
<apeiros> that doesn't capture the full match :-p
* apeiros now wonders whether /(foo\0)/ makes any sense
A124 has quit [Ping timeout: 260 seconds]
kirun has quit [Ping timeout: 246 seconds]
ragingcake_ has joined #ruby
<Ox0dea> Chomsky would like a word.
A124 has joined #ruby
platzhirsch has joined #ruby
<drbrain> Ox0dea: matz would not be surprised because matz knows perl
<zenspider> POLS is a myth
<zenspider> POMLS is the real acronym
Unicorn| has joined #ruby
<drbrain> Principle of Matz Least Surprise
bigbadbear has quit [Ping timeout: 244 seconds]
danzilio has joined #ruby
arup_r has joined #ruby
rbennace_ has quit [Remote host closed the connection]
danzilio has quit [Max SendQ exceeded]
mordocai has joined #ruby
jeremy04_ has quit [Remote host closed the connection]
danzilio has joined #ruby
lannonbr has quit [Ping timeout: 255 seconds]
chuy has quit [Ping timeout: 265 seconds]
leesharma has quit [Ping timeout: 244 seconds]
<TomyLobo> Most Least*
<shevy> :\
omegamike has quit [Remote host closed the connection]
<arup_r> who called me?
<adaedra> santa claus
<Ox0dea> Hey, gals! How would you attach a "label" to a nameless Proc without intefering with its parameter list?
ivanskie has quit [Ping timeout: 260 seconds]
<arup_r> no idea.. I got a beep with a blink..
<apeiros> Ox0dea: what'd that label be?
<arup_r> I am on 20 channels
<arup_r> so no idea from where it came
<Ox0dea> apeiros: A name, essentially, for later referral.
<adaedra> arup_r: and your client don't display where it comes from?
<zenspider> arup_r: not our job to maintain your communications
Lucky__ has quit [Read error: Connection reset by peer]
<Ox0dea> arup_r: "whence" == "from where", for future reference.
<apeiros> Ox0dea: so storing it on the proc itself wouldn't help because then you'd need to have the proc to get it - i.e. can't be used for referral?
<zenspider> Ox0dea: singleton method?
danzilio has quit [Quit: Baiii!]
<TomyLobo> arup_r, as a general rule, dont use amsg
<arup_r> No I think.. I saw blinks in my tray icon,, so came here to see.. who ... :D
Dzejmskr_ has joined #ruby
bruno- has joined #ruby
<Ox0dea> apeiros: But I do have the Proc? I just can't stick it in a bona fide variable.
martinium has joined #ruby
<apeiros> Ox0dea: well, then as zenspider said - singleton method?
<Ox0dea> Might as well just be an instance variable in that case, no?
<arup_r> TomyLobo, didn't get you
ldnunes has quit [Quit: Leaving]
skade has quit [Ping timeout: 244 seconds]
Dzejmskrokan has quit [Ping timeout: 250 seconds]
<arup_r> I use HexChat client
<apeiros> >> module Kernel; module_method def labeled_proc(label, &block); prc = proc(&block); prc.define_singleton_method(:label) { label }; prc; end; end; labeled_proc(:foo) { "hi" }.label
<ruboto> apeiros # => undefined method `module_method' for Kernel:Module (NoMethodError) ...check link for more (https://eval.in/412801)
<arup_r> anyway leave it..
<apeiros> >> module Kernel; module_function def labeled_proc(label, &block); prc = proc(&block); prc.define_singleton_method(:label) { label }; prc; end; end; labeled_proc(:foo) { "hi" }.label
<ruboto> apeiros # => :foo (https://eval.in/412802)
benlovell has quit [Ping timeout: 240 seconds]
Neener54 has joined #ruby
<banister> >> module Kernel; module_function def labeled_proc(label); proc.tap { |v| v.define_singleton_method(:label) { label } } end; end; labeled_proc(:foo) { "hi" }.label
<ruboto> banister # => :foo (https://eval.in/412803)
skade has joined #ruby
leafybasil has joined #ruby
<zenspider> we're golfing now?
<TomyLobo> https://github.com/TomyLobo/jirafuse/blob/master/test.rb Ox0dea zenspider or whoever was curious about what i was doing and why :)
chuy has joined #ruby
tkuchiki has joined #ruby
<zenspider> >> def labeled_proc(label); proc.tap { |v| v.define_singleton_method(:label) { label } } end; labeled_proc(:foo) { "hi" }.label
<ruboto> zenspider # => :foo (https://eval.in/412804)
<zenspider> module Kernel ... end is completely unnecessary
<apeiros> disagree
<zenspider> you would
<Ox0dea> >> Kernel == Object # zenspider
chatrjr has joined #ruby
<ruboto> Ox0dea # => false (https://eval.in/412805)
<apeiros> all global pseudo-functions reside in Kernel and are available as class methods
<apeiros> >> Kernel.proc { "hi" }.call
<ruboto> apeiros # => "hi" (https://eval.in/412806)
<apeiros> >> self.proc { "hi" }.call
<ruboto> apeiros # => private method `proc' called for main:Object (NoMethodError) ...check link for more (https://eval.in/412807)
fractalis has joined #ruby
<Ox0dea> >> def foo; end; method(:foo).owner
<ruboto> Ox0dea # => Object (https://eval.in/412808)
<apeiros> private, as all module_functions. and should be, so it doesn't interfere with method_missing
millerti has joined #ruby
jerius has quit [Quit: /quit]
<apeiros> rubygems got that one wrong with its require replacement :-p
Mendenhall has joined #ruby
paulcsmith___ has quit [Quit: Be back later ...]
<zenspider> that's nice. also completely unnecessary.
gthank has left #ruby ["Textual IRC Client: www.textualapp.com"]
<apeiros> sez u
<zenspider> Kernel.msg == coding like a prat
bruno- has quit [Ping timeout: 245 seconds]
<banister> lol
<apeiros> try using proc in a BasicObject
hazelux has quit [Remote host closed the connection]
<apeiros> and then tell me who pratty you feel :-p
<apeiros> (or any Kernel method)
<zenspider> how...
gamename has quit [Remote host closed the connection]
leesharma has joined #ruby
<zenspider> a... unicorn just walked by... a light blue one. I love my neighborhood
bradleyprice has joined #ruby
<apeiros> >> class X < BasicObject; def gimme_proc; proc { "hi" }; end; end; X.new.gimme_proc
<ruboto> apeiros # => undefined method `proc' for #<X:0x407a3e84> (NoMethodError) ...check link for more (https://eval.in/412809)
<Ox0dea> apeiros: Needs more ::Kernel.
gamename has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
sarkyniin has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has quit [Quit: danman]
<Ox0dea> zenspider: You should start the Church of the Visible Light Blue Unicorn.
<blahwoop> sounds like scientology
<apeiros> scientology is less believable than that…
<adaedra> tell that to all people that are in it.
* Ox0dea worships the IPU.
<Ox0dea> Come at me, Pastafarians.
<apeiros> adaedra: I try not to interact with that level of crazy
<apeiros> IRC is enough :-p
k3asd` has joined #ruby
<adaedra> :D
Yzguy has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
segfalt has quit [Quit: segfalt]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlxAltea has joined #ruby
roolo_ has joined #ruby
bradleyprice has quit [Ping timeout: 244 seconds]
<TomyLobo> zombie jesusism is less believable than that
ddv has quit [Ping timeout: 245 seconds]
<TomyLobo> zenspider, photos?
hazelux has joined #ruby
<Ox0dea> TomyLobo: Have faith.
<TomyLobo> faith or it didnt happen?
_joes_ has quit [Ping timeout: 240 seconds]
<apeiros> that's got some schrödinger touch to it
mordocai has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
freerobby has quit [Quit: Leaving.]
platzhirsch has quit [Ping timeout: 245 seconds]
chatrjr has quit [Quit: Leaving]
treehug88 has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 260 seconds]
roolo has quit [Ping timeout: 260 seconds]
AlexAltea has quit [Ping timeout: 260 seconds]
martinium has quit [Ping timeout: 260 seconds]
tubuliferous_ has joined #ruby
ddv has joined #ruby
platzhirsch has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
martinium has joined #ruby
shinnya has joined #ruby
<Ox0dea> TomyLobo: Applying De Morgan's gets to the heart of the thing: faith and it happened.
FernandoBasso has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Remote host closed the connection]
<TomyLobo> no faith*
speakingcode has quit [Ping timeout: 240 seconds]
DenSchub has quit [Ping timeout: 245 seconds]
<TomyLobo> negate both the result and the inputs
<TomyLobo> not no faith and it happened.
Neener54 has quit [Quit: Textual IRC Client: www.textualapp.com]
omegamike has joined #ruby
<zenspider> TomyLobo: walked by too fast
bruno- has joined #ruby
<Ox0dea> Unicorns move faster than the speed of light.
<Ox0dea> -the speed of
banister has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
FernandoBasso has joined #ruby
<zenspider> this wasn't a mythical unicorn.
tubuliferous_ has quit [Ping timeout: 260 seconds]
DenSchub has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
tmtwd has quit [Ping timeout: 244 seconds]
banister has joined #ruby
scripore has joined #ruby
skade has quit [Ping timeout: 272 seconds]
umgrosscol has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
omegamike has quit [Ping timeout: 265 seconds]
hinbody has quit [Quit: leaving]
baweaver has joined #ruby
treehug88 has joined #ruby
|\|370 has joined #ruby
Sperant has joined #ruby
scripore has quit [Client Quit]
umop3plsdn has joined #ruby
towski__ has joined #ruby
towski_ has quit [Ping timeout: 240 seconds]
gamename has quit [Ping timeout: 244 seconds]
hinbody has joined #ruby
skade has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
kadoppe has quit [Ping timeout: 260 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
kadoppe has joined #ruby
khebbie has quit [Remote host closed the connection]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sperant is now known as sperant
bazbing80 has quit [Quit: Lost terminal]
bazbing81 has quit [Quit: Lost terminal]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
baweaver has quit [Ping timeout: 272 seconds]
sdothum has joined #ruby
arup_r has quit [Quit: Leaving]
robbyoconnor has quit [Quit: Konversation terminated!]
Dzejmskr_ has quit [Read error: Connection reset by peer]
Dzejmskrokan has joined #ruby
graydot has quit [Quit: graydot]
decoponio has quit [Read error: Connection reset by peer]
graydot has joined #ruby
scripore has joined #ruby
decoponio has joined #ruby
devoldmx has joined #ruby
blahwoop has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 255 seconds]
victortyau has quit [Quit: Leaving]
nertzy has quit [Quit: This computer has gone to sleep]
Guest50 has joined #ruby
baweaver has joined #ruby
msnyon_ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has joined #ruby
hinbody has quit [Quit: leaving]
kies^ has quit [Ping timeout: 252 seconds]
msnyon has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby
msnyon_ has quit [Ping timeout: 256 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
_X_C_V_B_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Muhannad has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
baweaver has joined #ruby
vickleton has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
milesforrest has joined #ruby
rodfersou has quit [Quit: leaving]
countryHick has quit [Quit: Connection closed for inactivity]
gambl0re has quit [Ping timeout: 240 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
graydot has quit [Quit: graydot]
crdpink has quit [Quit: q term]
zacstewart has quit [Remote host closed the connection]
crdpink has joined #ruby
ledestin has joined #ruby
roolo_ has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<renanoronfle> is wrong create a method name equal get_products_from_user
<renanoronfle> ?
<Ox0dea> renanoronfle: Is that what the method does?
<zenspider> "wrong"
<renanoronfle> get user products
baweaver has quit [Remote host closed the connection]
<renanoronfle> get products from user :)
preller has quit [Read error: Connection reset by peer]
devdazed has quit [Quit: Computer has gone to sleep.]
<zenspider> any method that returns a value can be seen as a get_* method. Generally rubyists eschew such prefixing
<zenspider> from_user implies that the method belongs on User
tkuchiki has joined #ruby
<zenspider> so, you might want to have User#products
niemcu has quit [Ping timeout: 260 seconds]
<zenspider> that said... "wrong" is a BS notion
oddmunds has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
oddmunds has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
sepp2k has quit [Quit: Leaving.]
tanath has quit [Quit: Quit]
indifference is now known as DifferentLambda
tkuchiki has quit [Ping timeout: 244 seconds]
<renanoronfle> ok thanks :)
Scriptonaut has left #ruby [#ruby]
TomyLobo has quit [Ping timeout: 244 seconds]
Muhannad has joined #ruby
jeremy04 has joined #ruby
jeremy04 has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
gard has quit [Ping timeout: 260 seconds]
puppeh_ has quit [Quit: Leaving...]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
ndrei has joined #ruby
zacstewart has joined #ruby
yqt has quit [Read error: Connection reset by peer]
yqt has joined #ruby
icarus has joined #ruby
icarus has quit [Changing host]
icarus has joined #ruby
RobertBirnie has joined #ruby
jordanm has quit [Ping timeout: 246 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
ereslibre has quit [Ping timeout: 260 seconds]
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icarus has quit [Quit: leaving]
icarus has joined #ruby
sarmiena_ has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
DLSteve has quit [Quit: Leaving]
leesharma has quit [Ping timeout: 250 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Ping timeout: 245 seconds]
ddv has quit [Ping timeout: 245 seconds]
zacstewart has quit [Remote host closed the connection]
DenSchub has quit [Ping timeout: 245 seconds]
DenSchub has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
omegamike has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<shevy> renanoronfle you can alias methods so ultimately could use several different ways to address to methods
Lewix has quit [Remote host closed the connection]
ddv has joined #ruby
graydot has joined #ruby
decoponio has quit [Quit: Leaving...]
banister has joined #ruby
sepp2k has joined #ruby
BTRE has quit [Quit: Leaving]
ereslibre has joined #ruby
omegamike has quit [Ping timeout: 240 seconds]
tchebb has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
tcopeland has joined #ruby
r0bby_ has joined #ruby
jenrzzz has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
Musashi007 has joined #ruby
khebbie has joined #ruby
lannonbr has joined #ruby
sperant has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
r0bby_ has quit [Ping timeout: 246 seconds]
dman777_alter has quit [Quit: Lost terminal]
jenrzzz has quit [Ping timeout: 256 seconds]
michaeldeol has joined #ruby
jenrzzz has joined #ruby
khebbie has quit [Ping timeout: 245 seconds]
al2o3-cr has quit [Read error: Connection reset by peer]
sperant has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
scripore has quit [Quit: This computer has gone to sleep]
psy_ has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
j_mcnally has joined #ruby
r0bby_ has joined #ruby
sperant has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
fractalis has quit [Quit: leaving]
tanath has joined #ruby
jobewan has quit [Quit: Leaving]
robbyoconnor has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
axsuul has quit [Excess Flood]
user1138 has quit [Ping timeout: 246 seconds]
KramerC has quit [Quit: Leaving]
havenwood has joined #ruby
leesharma has joined #ruby
KramerC has joined #ruby
Violentr has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
tcrypt has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tmtwd has joined #ruby
vikaton has joined #ruby
prefixed has quit [Ping timeout: 240 seconds]
r0bby_ has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Max SendQ exceeded]
user1138 has joined #ruby
iamjarvo has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 244 seconds]
al2o3-cr has joined #ruby
vikaton has quit []
jordanm has joined #ruby
rehat has quit [Remote host closed the connection]
j_mcnall_ has joined #ruby
charliesome has joined #ruby
casadei has joined #ruby
j_mcnally has quit [Ping timeout: 245 seconds]
A124 has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
lilsheep has joined #ruby
<lilsheep> how to read input in a nonblocking way?
A124 has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
tmtwd has quit [Ping timeout: 246 seconds]
_X_C_V_B_ has quit [Ping timeout: 260 seconds]
s00pcan has quit [Ping timeout: 265 seconds]
<darix> lilsheep: thread, fiber, eventmachine.
Unicorn| has quit [Quit: Connection closed for inactivity]
s00pcan has joined #ruby
tubuliferous_ has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawz has left #ruby ["Linkinus - http://linkinus.com"]
baweaver has quit [Ping timeout: 272 seconds]
juanpaucar has quit [Remote host closed the connection]
blackmesa has joined #ruby
GeissT has joined #ruby
kwatz has joined #ruby
xelkarin has joined #ruby
tubuliferous_ has quit [Ping timeout: 260 seconds]
<havenwood> lilsheep: For example a `thread = Thread.new { gets.chomp }` then `thread.value` later to get the value or block until it's available.
kwatz is now known as destructure
casadei has quit [Remote host closed the connection]
j3r0 has joined #ruby
hackeron_ has quit [Ping timeout: 244 seconds]
Aswebb_ has quit [Remote host closed the connection]
sperant has joined #ruby
scripore has joined #ruby
Cust0sLim3n has quit [Max SendQ exceeded]
benlovell has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.2]
Cust0sLim3n has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
pietr0 has quit [Quit: pietr0]
blackmesa has quit [Quit: WeeChat 1.2]
valetudo has joined #ruby
segfalt has joined #ruby
_X_C_V_B_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
ascarter has joined #ruby
hackeron has joined #ruby
ascarter has quit [Max SendQ exceeded]
bazbing80 has joined #ruby
ascarter has joined #ruby
cschneid_ has quit [Remote host closed the connection]
lilsheep has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
benlovell has quit [Ping timeout: 246 seconds]
jgpawletko has joined #ruby
<bazbing80> can I replace a file by specific line and column number? File().replace(4,6, with: 'replacemntText') something like that?
segfalt has quit [Client Quit]
<drbrain> ARGF has some tools for that, but not that simple
leesharma has quit [Ping timeout: 244 seconds]
leesharma has joined #ruby
j3r0 has quit [Remote host closed the connection]
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> bazbing80: String#[]= is pretty versatile.
_X_C_V_B_ has quit [Ping timeout: 256 seconds]
MatthewsFace has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
<Ox0dea> >> s = 'foobar'; s[2..-1] = 'rmula'; s
<ruboto> Ox0dea # => "formula" (https://eval.in/412830)
destructure is now known as qwebirc78509
eshy has quit [Max SendQ exceeded]
qwebirc78509 is now known as destructure
polpak has quit [Quit: leaving]
<bazbing80> Ox0dea that's cool...yeah read each line of file when count == line utilize string[], thanks
<Radar> bazbing80: Thor has commands for this iirc
banister has joined #ruby
<Ox0dea> Alternatively, `sed -i`.
rehat has joined #ruby
tmtwd has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
Mendenhall has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
<Alayde> Might someone know why SOAP calls to an internal host fail with 'certificate verify failed' while an 'openssl s_client -connect <host>:443' works without issue? I've ensured that our internal CA is within CentOS' cert bundle (hence the working openssl s_client)
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Alayde> I'm thuroughly stumped
mikecmpbll has quit [Quit: i've nodded off.]
<bazbing80> Radar can't find any reference to that functionality
Musashi007 has quit [Quit: Musashi007]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
d2dchat has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]