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/
mjuszczak has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
csaunders has quit [Ping timeout: 255 seconds]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
csaunders has joined #ruby
Rollabunna has quit [Remote host closed the connection]
bohallor has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
polpak has quit [Quit: leaving]
average has quit [Quit: leaving]
marr has quit []
Rollabunna has quit [Ping timeout: 244 seconds]
msnyon has quit [Ping timeout: 260 seconds]
eshy has joined #ruby
Ropeney has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
msnyon has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
maq has left #ruby [#ruby]
sinkensabe has joined #ruby
msnyon has quit [Ping timeout: 250 seconds]
malcolmva has quit [Ping timeout: 246 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
noethics has joined #ruby
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
sinkensabe has quit [Ping timeout: 260 seconds]
Lildirt has joined #ruby
kies has quit [Quit: baaaaiiiiiiiiiii~]
kies has joined #ruby
howdoi has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<shevy> damn it... googling for ruby can bring in a Jazz singer
baweaver has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lildirt has quit [Client Quit]
CloCkWeRX has joined #ruby
Lildirt has joined #ruby
<Ox0dea> shevy: Don't fight it.
Lildirt has quit [Remote host closed the connection]
Lildirt has joined #ruby
<BraddPitt> Anyone using Atom?
<BraddPitt> It's actually pretty nice
sevenseacat has joined #ruby
RobertBirnie has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
<Ox0dea> BraddPitt: Does it still die on "large" files?
<BraddPitt> >2mb I think so
[gmi] has joined #ruby
malcolmva has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
kriskropd has quit [Ping timeout: 272 seconds]
leesharma has joined #ruby
<havenwood> BraddPitt: works on my machine
<BraddPitt> ah, guess they did solve it
<Ox0dea> Yay, ropes!
<BraddPitt> I haven't tried opening anything large yet
_blizzy_ has quit [Ping timeout: 255 seconds]
tmtwd has joined #ruby
n_blownapart has joined #ruby
oo_ has joined #ruby
hahuang61 has quit [Read error: Connection reset by peer]
<havenwood> BraddPitt: yeah, definitely works
hahuang61 has joined #ruby
<Ox0dea> havenwood: When does it start to choke?
sdothum has quit [Read error: Connection reset by peer]
dc has joined #ruby
<havenwood> Ox0dea: trying a gig
<havenwood> Ox0dea: crash
<Ox0dea> :'(
aotg has quit [Remote host closed the connection]
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
Lildirt has joined #ruby
sdothum has joined #ruby
ivanf has quit [Ping timeout: 264 seconds]
[gmi] has quit [Quit: Leaving]
elico has quit [Quit: Leaving.]
tmtwd has quit [Read error: Connection reset by peer]
ivanf has joined #ruby
EllisTAA has joined #ruby
GriffinHeart has joined #ruby
_seanc_ has quit [Quit: _seanc_]
msnyon has joined #ruby
omegamike has joined #ruby
ModernMan has joined #ruby
<havenwood> Ox0dea: 100MB no prob
<Ox0dea> Hey, gals! Which of these syntaxes "surprises" you the least? https://gist.github.com/0x0dea/56c15612fd2c44ac96bc
iateadonut has joined #ruby
kriskropd has joined #ruby
<Ox0dea> havenwood: Vim jumps to the exact middle of a 4GB file in a little under a second. ^_^
<Ox0dea> I think ropes are objective the best data structure for text editors.
<Ox0dea> I can't say whether Atom is using them or not.
<Ox0dea> *objectively
tkuchiki has joined #ruby
<shevy> all of them are horrid
<Ox0dea> You stop that.
<Ox0dea> Which is the "least horrid"?
chills42 has joined #ruby
<ModernMan> Does anybody know of a good ruby syntax checker plugin for vim? Years ago there were ones for python like pyflakes.
<ModernMan> They would show you the errors in the editor
<shevy> it's better to put the horridness on one line rather than spread it out
<Ox0dea> ModernMan: Syntastic does Ruby.
sdothum has quit [Read error: Connection reset by peer]
bohallor has quit [Ping timeout: 250 seconds]
<ModernMan> Ox0dea: is it good?
<Ox0dea> shevy: But those could be blocks of arbitrary complexity?
bhrgunatha has joined #ruby
<shevy> what even is .-->
<Ox0dea> ModernMan: I don't use it. Syntax errors are for nublings.
<shevy> is that the method - and a lambda is passed?
<Ox0dea> Yes, that's right.
Mendenhall has quit [Ping timeout: 272 seconds]
sdothum has joined #ruby
<Ox0dea> Boolean subtraction is silly, so why not commandeer the operator for something useful?
<saddad> ModernMan: syntastic is nice and it conforms asthetically with most other plugins
<ModernMan> saddad: I really just want to catch white space and stuff. is there anything better?
<Ox0dea> ModernMan: As in trailing whitespace?
<Ox0dea> Or bad indentation?
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has quit [Remote host closed the connection]
<havenwood> ModernMan: Tried RuboCop?
omegamike has quit [Ping timeout: 272 seconds]
<ModernMan> Ox0dea: trainly for sure but indentation would be a nice to have. Even to catch tabs after = signs instead of spaces
j4cknewt has quit [Remote host closed the connection]
Wolland has joined #ruby
<Ox0dea> ModernMan: Why on earth do you think you need a plugin for such things?
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> `autocmd BufWritePre * %s/\s\+$//e` to trim trailing whitespace on save.
<Ox0dea> gg=G to indent.
pengin has quit [Remote host closed the connection]
<ModernMan> havenwood: I have but it's manual rather than showing the errors in the editor unless I am misunderstanding syntastic
n_blownapart has joined #ruby
n_blownapart has quit [Remote host closed the connection]
<ModernMan> Ox0dea: idk what gg=G is, I know what G is, as in go to end of file
chouhoulis has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<Ox0dea> gg=G indents the whole file.
<Ox0dea> `set expandtab smarttab shiftwidth=2 tabstop=2` to use the conventional indentation preferences.
ascarter has joined #ruby
<ModernMan> so I type that in :
<Ox0dea> Put it in your vimrc?
<ModernMan> no gg=G
RegulationD has quit [Remote host closed the connection]
<Ox0dea> No, it's normal mode command.
<ModernMan> I have been using this autocmd FileType ruby setlocal tabstop=2 softtabstop=2
ascarter_ has joined #ruby
<Ox0dea> That'll still let tabs in; you should use `expandtab` and `smarttab`.
<Ox0dea> And that outside of any autocommands.
<Ox0dea> Tabs are evil.
chipotle has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
<ModernMan> Ox0dea: I have it like this set tabstop=4 set expandtab set shiftwidth=4 set softtabstop=4
<ModernMan> I do a lot of python too
nokiyem has joined #ruby
ascarter has joined #ruby
<Antiarc> .:set sw=2 ts=2 et <-- my standard Ruby setup
ascarter_ has quit [Ping timeout: 252 seconds]
<Ox0dea> Antiarc: Por que no `sta`?
s00pcan has quit [Ping timeout: 252 seconds]
<Antiarc> because it's not muscle-memoried. But I should start including it!
<Antiarc> (I just end up jamming that into any vim session on servers I work on remotely where I haven't set up a vimrc)
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
s00pcan has joined #ruby
<ModernMan> Ox0dea: smarttabs are a plugin right?
<ModernMan> I have this now autocmd FileType ruby setlocal tabstop=2 softtabstop=2 shiftwidth=2
bhrgunatha has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150702232110]]
Kyuujitsu has quit [Read error: Connection reset by peer]
bricker has quit [Quit: leaving]
blue_deref has joined #ruby
<ModernMan> actually autocmd FileType ruby setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2
<Ox0dea> ModernMan: No, smarttab is a setting.
<Ox0dea> If I may say so, you're way too plugin-happy for having just started learning Vim.
<ModernMan> Ox0dea: I've been using vim for about 10 years...
Muhannad has quit [Ping timeout: 265 seconds]
<ModernMan> This page said it was a plugin http://vim.wikia.com/wiki/Indent_with_tabs,_align_with_spaces
yh has joined #ruby
<Ox0dea> You've been using Vim for 10 years and don't know how to use :help?
<ModernMan> I tend to not bother
<Ox0dea> Maybe start bothering.
<shevy> I gave up on vim a long time ago
baweaver has quit [Remote host closed the connection]
<shevy> actually, I still use it for quick local edits when I need something better than nano
Kyuujitsu has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno-_ has quit [Ping timeout: 250 seconds]
FooMunki_ has quit [Quit: FooMunki_]
s2013 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EllisTAA has quit [Quit: EllisTAA]
avahey has joined #ruby
sinkensabe has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dented42 has joined #ruby
Asher has quit [Quit: Leaving.]
ascarter has joined #ruby
avitzure_ has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 240 seconds]
graydot has quit [Quit: graydot]
sinkensabe has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
chills42 has quit [Write error: Connection reset by peer]
chills42 has joined #ruby
Igorshp has quit [Ping timeout: 240 seconds]
jbw has quit [Ping timeout: 244 seconds]
ModernMan has quit [Quit: Page closed]
nokiyem has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
havenwood has joined #ruby
chouhoulis has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Asher has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bustrarm is now known as busterarm
reset has quit [Quit: Leaving...]
Vile` has joined #ruby
bffff_ has joined #ruby
jbw has joined #ruby
benlovell has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
gamename has quit [Read error: Connection reset by peer]
gamename has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
dorei has quit []
Kyuujitsu has joined #ruby
<drbrain> ah, there it is
GriffinHeart has joined #ruby
nokiyem has joined #ruby
<drbrain> yeah, I'll drive
<drbrain> I lived just around the corner from there
<drbrain> are you ready?
mxrguspxrt has quit []
<drbrain> crap, this is not the right window
<notfowl> No
<notfowl> We arent ready
benlovell has quit [Ping timeout: 244 seconds]
<notfowl> drbrain where we going?
<drbrain> well, I'm going to an impromptu BBQ
FooMunki has joined #ruby
<Ox0dea> OMG
eggoez has quit [Ping timeout: 244 seconds]
<drbrain> later!
GriffinHeart has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> free BBQ at drbrain's house!
<shevy> I'll come!!!
Kyuujitsu has quit [Ping timeout: 255 seconds]
eggoez has joined #ruby
<drbrain> it's not at my house, and my BBQ doesn't get delivered until tomorrow
Kyuujitsu has joined #ruby
GriffinHeart has joined #ruby
<eam> did someone say bbq
roo7 has joined #ruby
gamename has quit []
cajone has quit [Ping timeout: 264 seconds]
<roo7> hey guys, does anyone know a way that i can print the index of an item in an array while in a block?
<roo7> ie:
<roo7> array = ['first', 'second', 'third', 'fourth']
<roo7> array.each do |item|
<roo7> puts item.index
<roo7> end
<havenwood> roo7: each_with_index do |item, index|
<roo7> awesome, thank you havenwood
<havenwood> roo7: no prob, you're welcome
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has quit [Ping timeout: 264 seconds]
banister has joined #ruby
sevenseacat has quit [Read error: Connection reset by peer]
Kyuujitsu has quit [Ping timeout: 260 seconds]
Kyuujitsu has joined #ruby
nahtnam has joined #ruby
towski_ has quit [Remote host closed the connection]
<Ox0dea> `size.times` > `each_index`?
swgillespie has joined #ruby
myztic has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
<havenwood> Ox0dea: Yeah, I'd say #each_index instead of #each_with_index if `index` is really all you want.
<Ox0dea> Sure, but that's not exactly what I was asking about.
<Ox0dea> I suppose #each_index is to be preferred over #size + #times, if only because fewer method calls.
<havenwood> Ox0dea: aye
* Ox0dea benchmarks it anyway.
<mozzarella> I use size.times if I don't need the indexes
<mozzarella> I wouldn't optimize for speed, that's just not what ruby is for
<Ox0dea> ¿Por que no los dos?
<havenwood> mozzarella: if you didn't need the indexes, each instead of size.times
<havenwood> #each, #each_index, #each_with_index
mjuszczak has joined #ruby
minotep has joined #ruby
<mozzarella> and if I don't need the items…
<havenwood> mozzarella: just do nothing :P
<havenwood> mozzarella: a blank line
leesharma has quit [Ping timeout: 240 seconds]
kakusu has quit [Quit: Lost terminal]
tuelz has quit [Ping timeout: 250 seconds]
<mozzarella> not sure what you mean
<havenwood> mozzarella: `each` without a block instead of `size.times` without a block
<havenwood> block arg*
<mozzarella> if I need to do something for size times and I don't need to access the objects, I will use .size.times
<havenwood> mozzarella: ahh
<havenwood> mozzarella: gotcha
leesharma has joined #ruby
<Ox0dea> mozzarella: Still, #each without a block argument is equivalent in that case.
Kyuujitsu has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
<havenwood> mozzarella: ^ just a method less
jpfuentes2 has joined #ruby
Kyuujitsu has joined #ruby
mjuszczak has quit [Client Quit]
<Ox0dea> #each_index is reliably (but, of course, negligibly) slower.
yqt has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
gwendall has quit []
dc has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc has joined #ruby
<havenwood> Ox0dea: Slower than `size.times`? I'm surprised.
<havenwood> Ox0dea: With a block arg?
<Ox0dea> havenwood: Oui.
RegulationD has quit [Ping timeout: 260 seconds]
shadoi has quit [Quit: Leaving.]
FooMunki has quit [Quit: FooMunki]
Kyuujitsu has quit [Ping timeout: 260 seconds]
<Ox0dea> I used benchmark/ips, of course, but here's a demonstration with raw elapsed time:
<Ox0dea> >> foo = [0] * 4200; ts = []; s = Time.now; foo.each_index { |i| i }; ts << Time.now - s; s = Time.now; foo.size.times { |i| i }; ts + [Time.now - s]
GriffinHeart has quit [Remote host closed the connection]
<ruboto> Ox0dea # => [0.000639327, 0.000824984] (https://eval.in/411473)
<Ox0dea> Heh.
rmoriz has quit [Ping timeout: 256 seconds]
s2013 has quit [Client Quit]
Kyuujitsu has joined #ruby
<Ox0dea> Worked on My Machine™
GriffinHeart has joined #ruby
<jackjackdripper> I'm getting no such file or directory when I call ruby from an app. I tested it in a bash script and the I see the same issue. Permissions are ok and the ruby $PATH is not a symlink
<Ox0dea> jackjackdripper: Would you mind elaborating on "call ruby from an app"?
ValicekB has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
<jackjackdripper> so my test was I created a bash script calling /usr/bin/ruby /script/file/path
<jackjackdripper> i'm getting /usr/bin/ruby: No such file or directory --
myztic has quit [Quit: Leaving]
<jackjackdripper> the file exist
FooMunki has joined #ruby
myztic has joined #ruby
<Ox0dea> Clearly not.
<Ox0dea> Computers cannot lie.
<jackjackdripper> file /usr/bin/ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<jackjackdripper> output /usr/bin/ruby: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
<Ox0dea> jackjackdripper: It's the /script/filepath that doesn't exist.
paulcsmith has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
<jackjackdripper> thanks for the direction indeed file can not see the script even if it is there
Kyuujitsu has joined #ruby
sevenseacat has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
<Ox0dea> jackjackdripper: You mean you can run `stat /script/file/path` and not get an error, but `/usr/bin/ruby /script/file/path` errors? I doubt that very much.
ValicekB has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kyuujitsu has joined #ruby
j4cknewt has joined #ruby
mjuszczak has joined #ruby
<havenwood> Ox0dea: JRuby 9k can settle things for us:
<havenwood> size.times 304.000 i/100ms
<havenwood> each_index 304.000 i/100ms
<jackjackdripper> Ox0dea no it fails on both. dos2unix seem to have fixed it. file was just given to me to test he might have his dev environment in win
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<Ox0dea> jackjackdripper: Erm... huh? You used `dos2unix` on the filename?
<havenwood> about 50% faster than my CRuby, which are within margin-of-error either way
freerobby has joined #ruby
chills42 has quit [Remote host closed the connection]
mjuszczak has quit [Client Quit]
<Ox0dea> havenwood: Aye, it's negligible no matter how you slice it, but I rarely reach for #each_index and I couldn't say why.
<eam> Ox0dea: sounds like he had an unprintable character in his script
<havenwood> Ox0dea: yeah, good point
sinkensabe has joined #ruby
<Ox0dea> eam: I don't see how that'd lead to ENOENT?
<eam> when the script looks like /usr/bin/ruby<unprintable non-whitespace>
Kyuujitsu has quit [Ping timeout: 250 seconds]
<eam> kinda common issue
eggoez has joined #ruby
Kyuujitsu has joined #ruby
<eam> I see it happen a lot when copying/pasting from various encodings, webpages -> editor, etc
rbennacer has joined #ruby
<eam> echo -e "\r/usr/bin/ruby /tmp/script.rb" | sh
djbkd has quit [Remote host closed the connection]
icebourg has joined #ruby
sinkensabe has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
davedev2_ has quit []
Kyuujitsu has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
Anne has quit [Remote host closed the connection]
ModernMan has joined #ruby
devoldmx has joined #ruby
Kyuujitsu has joined #ruby
<ModernMan> Does anybody know how to get Rubocop to ignore empty methods with parentheses at the end? We have to put them and it rather sucks that it complains. I looked at the default.yml they provide but didn't see it
dopie has quit [Quit: This computer has gone to sleep]
pauly_oc has joined #ruby
rbennacer has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kyuujitsu has joined #ruby
havenwood has joined #ruby
ybian has quit [Remote host closed the connection]
tejasmanohar has quit [Quit: WeeChat 1.2]
jackjackdripper has quit [Quit: Leaving.]
ybian has joined #ruby
oo_ has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Ping timeout: 265 seconds]
eggoez has joined #ruby
Kyuujitsu has joined #ruby
mesamoo has joined #ruby
ereslibre has joined #ruby
<Ox0dea> ModernMan: You should be able to use `Style/FucksGiven: 0`.
<ModernMan> what do ya mean
saddad has joined #ruby
<ModernMan> But idk what to pass to it
lemur has joined #ruby
lemur is now known as baweaver
Kyuujitsu has quit [Ping timeout: 260 seconds]
<ModernMan> terrible
Kyuujitsu has joined #ruby
<Ox0dea> ModernMan: You're going against a well-established and perfectly logical convention; that you're finding this painful is a feature.
<ModernMan> It destroys readability
nisstyre has joined #ruby
alveric__ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
nisstyre has quit [Changing host]
nisstyre has joined #ruby
alveric_ has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
hashrocket has joined #ruby
mjuszczak has joined #ruby
Kyuujitsu has joined #ruby
Vile` has joined #ruby
pl1ght has quit [Ping timeout: 244 seconds]
<Inside> hey guys
<Inside> what do you all recommend for writing simple gui toolkits in ruby?
Kyuujitsu has quit [Ping timeout: 244 seconds]
Vile` has quit [Remote host closed the connection]
<Ox0dea> Inside: JavaScript.
<Inside> :|
<Inside> I don't mean toolkits
<Inside> I mean 'simple guis' herpderp
Kyuujitsu has joined #ruby
avitzurel has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
<Ox0dea> I was being completely serious.
<Inside> I don't get it
|\|370 has joined #ruby
<Inside> Sorry
<Inside> I meant windows desktop gui applications
<Ox0dea> But why?
jtdoncas has quit [Ping timeout: 244 seconds]
<Inside> I'm writing a simple program which sits on a computer at work and then when it detects a new row in the database it prints a label
<Inside> needs to have an interface so that people can go and re-print a label in case the printer crapped out or something
_seanc_ has joined #ruby
tmtwd has joined #ruby
<mozzarella> cool
<Ox0dea> Inside: Well, if doing it with the world's simplest Rack app doesn't take your fancy, Ruby ships with Tk.
<Inside> Ox0dea: the thing is that it automatically prints the label
sdwrage has quit [Quit: This computer has gone to sleep]
<Inside> unless you can give me an idea of how a rackapp would work in this case?
<Inside> (I'm.. thoroughly not a developer)
braincrash has quit [Quit: bye bye]
sdwrage has joined #ruby
<Inside> I'm essentially just doing system('foxit.exe /t "label.pdf" "DYMO LabelWriter 450" ') at the moment ;)
yfeldblum has quit [Remote host closed the connection]
<Ox0dea> Inside: And what're you currently doing when that returns nil?
<Inside> absolutely jack nothing
Vile`` has joined #ruby
ducklobster has joined #ruby
theery has joined #ruby
eggoez has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
<Ox0dea> Well, you could write the result to a "status file" and poll it with JavaScript, then present a button that requests '/go_again' or some such.
<Inside> ah
braincrash has joined #ruby
<Inside> I see what you mean now, yes
texasmade has joined #ruby
yfeldblum has joined #ruby
<Ox0dea> It's not great, but it'd probably suffice for something as simple as what you've said you need.
pl1ght has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
bronson_ has joined #ruby
rehat has joined #ruby
theery has quit [Ping timeout: 265 seconds]
<Inside> so why rack?
dopie has joined #ruby
darkf has joined #ruby
<Ox0dea> It doesn't get any simpler without becoming painful.
arescorpio has joined #ruby
<pontiki> who needs more the netcat?
blue_deref has quit [Quit: bbn]
<pontiki> than*
njr has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<Inside> I mean all I really need is to.. serv up a single static html file and then listen to a get/post/etc that prompts the system call to print a label
<Inside> oh wait
<Ox0dea> Inside: Aye, that's what Rack'll give you.
<Inside> well, I guess the server can just sit there in the background polling the database constantly
<rehat> hi, new to ruby. I want to do a do while loop and I don't know what the preferred way of doing this. Should I use begin end while condition or just a loop do end and break out of the loop?
<Ox0dea> rehat: That's essentially a stylistic choice.
Ropeney has joined #ruby
<rehat> ok cool thanks
Kyuujitsu has quit [Ping timeout: 260 seconds]
_seanc_ has quit [Quit: _seanc_]
<Ox0dea> rehat: The former is a "true" do-while, but the meat is at the bottom, which isn't so great.
Kyuujitsu has joined #ruby
theery has joined #ruby
j_mcnall_ has joined #ruby
hashrocket has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
n_blownapart has joined #ruby
Kyuujitsu has quit [Ping timeout: 252 seconds]
Kyuujitsu has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
Soda has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
zacstewart has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Feyn has quit [Ping timeout: 264 seconds]
dimasg has joined #ruby
ModernMan has quit [Quit: Page closed]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
tkuchiki has joined #ruby
michael_mbp has joined #ruby
knu has quit [Ping timeout: 246 seconds]
railswebdev has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
baweaver has quit [Remote host closed the connection]
gix has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
baweaver has joined #ruby
Kyuujitsu has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby
djbkd has joined #ruby
gix has joined #ruby
n_blownapart has quit [Quit: Leaving]
hahuang65 has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
leesharma has quit [Ping timeout: 255 seconds]
benlovell has quit [Ping timeout: 250 seconds]
icebourg has quit []
Kyuujitsu has joined #ruby
atomical has joined #ruby
arup_r has joined #ruby
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
sargas has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
saddad has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
bmurt has quit []
<Radar> Does anyone know of a Nanoc 4 + Sass guide that I could follow to get started with it?
Kyuujitsu has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ttilley has quit [Quit: Linkinus - http://linkinus.com]
banister has quit [Ping timeout: 246 seconds]
mjuszczak has quit []
GriffinHeart has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 256 seconds]
icebourg has joined #ruby
Kyuujitsu has joined #ruby
countryHick has quit [Quit: Connection closed for inactivity]
<sevenseacat> running into a weird problem with reform - somehow it's getting nils when trying to validate nested data
<Radar> are you using populate_if_empty?
<sevenseacat> putting together a gist now - this task is turning into a headacle
<Ox0dea> sevenseacat: Was that an intentional portmanteau of "headache" and "debacle"?
<sevenseacat> no, but that works
Kyuujitsu has quit [Ping timeout: 250 seconds]
sdothum has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
GriffinHeart has joined #ruby
Mia has joined #ruby
<sevenseacat> https://gist.github.com/sevenseacat/18f33725438f5525d94e I don't know enough about reform to know whats going on
gambl0re has quit [Ping timeout: 246 seconds]
<sevenseacat> didnt even notice I posted in the wrong channel. lol
<sevenseacat> sigh.
<pipework> What's up?
<Radar> We will forgive you.
<Ox0dea> Anyone familiar with 7 Little Words?
sargas_ has joined #ruby
Axy has quit [Ping timeout: 244 seconds]
<sevenseacat> reform has a really nice api, but when it goes wrong, debugging it is near-on impossible
Rickmasta has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
casadei_ has quit [Remote host closed the connection]
<pontiki> i'm familiar with the 7 words you can't say on television
Channel6 has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
* sevenseacat rips out reform
sargas has quit [Ping timeout: 265 seconds]
Kyuujitsu has joined #ruby
<pontiki> i used reform in one project, then decided it didn't give me anything i could do myself
<Ox0dea> pontiki: SPFCCMT.
<pontiki> :)
tubuliferous_ has joined #ruby
<Ox0dea> I'm entertaining the notion that it'd be feasible to solve most 7 Little Words puzzles without bothering about the actual clues.
ragingcake has quit [Quit: ragingcake]
freerobby has quit [Quit: Leaving.]
c0dedead has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kyuujitsu has quit [Ping timeout: 250 seconds]
<c0dedead> How can I make an options request with net/http?
<Ox0dea> c0dedead: How do you mean?
tubuliferous_ has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
texasmade has quit [Ping timeout: 264 seconds]
nahtnam has quit [Quit: Connection closed for inactivity]
<c0dedead> I want to determine which http methods a resource will respond to.
s2013 has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
sargas_ has quit [Quit: Leaving]
Kyuujitsu has quit [Ping timeout: 260 seconds]
Kyuujitsu has joined #ruby
theery has quit [Remote host closed the connection]
theery has joined #ruby
<Ox0dea> >> require 'net/http'; Net::HTTP::Options # c0dedead
<ruboto> Ox0dea # => Net::HTTP::Options (https://eval.in/411535)
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx_ has joined #ruby
sinkensabe has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
rakm has joined #ruby
|\|370 has quit [Remote host closed the connection]
saddad has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
yh has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 250 seconds]
<Ox0dea> c0dedead: Net::HTTP.new('example.com').options('/')['Allow']
Kyuujitsu has quit [Ping timeout: 250 seconds]
qiukun has joined #ruby
Kyuujitsu has joined #ruby
jesterfraud has joined #ruby
oo_ has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kyuujitsu has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
Kyuujitsu has joined #ruby
yh has joined #ruby
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
dented42 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 260 seconds]
Kyuujitsu has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 264 seconds]
Kyuujitsu has joined #ruby
Synthbread has joined #ruby
yfeldblum has joined #ruby
GriffinHeart has joined #ruby
ascarter has joined #ruby
qiukun has quit [Quit: qiukun]
cornerma1 has joined #ruby
Wolland has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Kyuujitsu has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
Synthbread has quit [Quit: Leaving]
Wolland has quit []
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
radgeRayden has quit [Ping timeout: 265 seconds]
symm- has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
wldcordeiro_ has quit [Remote host closed the connection]
ledestin has quit [Read error: Connection reset by peer]
<c0dedead> http://pastebin.com/RuizgURM works for some but not all.
<ruboto> c0dedead, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/91fba727adc26574b45e
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Kyuujitsu has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
Kyuujitsu has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
Inside has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
jonee has joined #ruby
khebbie has joined #ruby
tkuchiki has joined #ruby
RegulationD has joined #ruby
saddad has joined #ruby
astrobunny has joined #ruby
pawnbox has joined #ruby
wheresmyjetpack has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
Kyuujitsu has joined #ruby
lkba has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
framling has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
lkba has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
c0dedead has quit [Quit: leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
ap4y has quit [Remote host closed the connection]
fantazo has joined #ruby
theery has quit [Remote host closed the connection]
dimasg has joined #ruby
kidoz_ has joined #ruby
kidoz_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
kidoz has quit [Ping timeout: 244 seconds]
busterarm has quit [Ping timeout: 250 seconds]
nokiyem has quit []
icebourg has quit []
ivanskie has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
skade has joined #ruby
texasmade has joined #ruby
Lucky__ has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
theery has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
safeforge has joined #ruby
Kyuujitsu has joined #ruby
framling has quit [Remote host closed the connection]
knu has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
hmnhf has joined #ruby
Oka has quit [Quit: さようなら]
Kyuujitsu has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Kyuujitsu has joined #ruby
skade has quit [Ping timeout: 252 seconds]
skade has joined #ruby
astrobunny has quit []
saddad has quit [Ping timeout: 256 seconds]
Billias_ has joined #ruby
aganov has joined #ruby
Billias has quit [Ping timeout: 246 seconds]
Billias_ is now known as Billias
skade has quit [Client Quit]
Kyuujitsu has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
qiukun has joined #ruby
Kyuujitsu has joined #ruby
krz has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
Kyuujitsu has quit [Ping timeout: 264 seconds]
Kyuujitsu has joined #ruby
arescorpio has quit [Quit: Leaving.]
khebbie has joined #ruby
oo_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
lampshade has joined #ruby
astrobunny has joined #ruby
busterarm has joined #ruby
lampshade has quit [Client Quit]
devbug_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
devoldmx_ has quit [Ping timeout: 240 seconds]
lampshades has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
Kyuujitsu has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
arup_r has quit [Quit: Leaving]
minmax has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
safeforge has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 260 seconds]
Kyuujitsu has joined #ruby
texasmade has quit [Ping timeout: 264 seconds]
yh has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
tubuliferous_ has joined #ruby
blaines has joined #ruby
apofis has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
tagrudev has joined #ruby
Kyuujitsu has joined #ruby
blaines has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
roolo has joined #ruby
omfgtora_ has joined #ruby
psy_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
alveric__ has quit [Ping timeout: 264 seconds]
amclain has quit [Quit: Leaving]
astrobunny has joined #ruby
omfgtora has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
joneshf-laptop has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
Kyuujitsu has quit [Ping timeout: 256 seconds]
safeforge has joined #ruby
Kyuujitsu has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
_blank has joined #ruby
theery has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
Musashi007 has joined #ruby
Feyn has joined #ruby
doertedev has joined #ruby
omegamike has joined #ruby
minotep has quit [Ping timeout: 246 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
omfgtora_ has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Client Quit]
Kyuujitsu has quit [Ping timeout: 260 seconds]
Kyuujitsu has joined #ruby
stan has joined #ruby
omegamike has quit [Ping timeout: 250 seconds]
dimasg has joined #ruby
arup_r has joined #ruby
|\|370 has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
Kyuujitsu has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 265 seconds]
|\|370 has quit [Ping timeout: 264 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Ping timeout: 265 seconds]
h4ckurate has joined #ruby
schaerli has joined #ruby
aceRacer has joined #ruby
Kyuujitsu has joined #ruby
yardenbar has joined #ruby
<aceRacer> hi all. I have a quesrtion. its more of an implementation based question
pawnbox has quit [Remote host closed the connection]
<Ox0dea> aceRacer: Fire away.
h4ckurate has quit [Client Quit]
<aceRacer> ...typing
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
h4ckurate has joined #ruby
<Ox0dea> Preparation is key.
chipotle has quit [Read error: Connection reset by peer]
Kyuujitsu has quit [Ping timeout: 246 seconds]
<aceRacer> Presently in the rails application the database part is being handled by ActiveRecord. But then not everything would be done using a mysql database. like messaging. I would like to save them to mysql as well as redis, so redis will be like a middle tier database :P with maybe 20 recent messages per user. Now the thing is, previously I had wrapped the redis-rb library in a module with...
<aceRacer> ...methods like fetch, create, remove but the problem was I was using zset all the time, but for this feature I need a list. but I don't want to write the same methods again
pawnbox has joined #ruby
<bnagy> ?rails aceRacer
<ruboto> aceRacer, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Kyuujitsu has joined #ruby
<aceRacer> aw.... :(
<pipework> Luckily your OS probably has copy and paste functionality!
<pipework> dem clipboards.
tmtwd has quit [Read error: Connection reset by peer]
<aceRacer> haha
<apeiros> great, my AD throttles my requests… every 3rd request takes 20s…
bigkevmcd has quit [Quit: Outta here...]
Channel6 has quit [Quit: Leaving]
* pipework imagines all the funny things "AD" could mean
mistym- has joined #ruby
ledestin has joined #ruby
mistym- is now known as mistym
mistym has quit [Changing host]
mistym has joined #ruby
<apeiros> pipework: in IT context, most often activedirectory
pawnbox has quit [Read error: Connection reset by peer]
CustosLimen has quit [Read error: Connection timed out]
krz has joined #ruby
kwd has joined #ruby
<apeiros> funny, activedirectory isn't a rails thing :D
Vile`` has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
pawnbox has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
TvL2386 has joined #ruby
schaerli has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
khebbie has quit [Remote host closed the connection]
khebbie has joined #ruby
sameerynho has joined #ruby
Kyuujitsu has joined #ruby
schaerli has joined #ruby
pawnbox has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
blaines has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
doertedev has quit [Quit: Lost terminal]
schaerli has quit [Ping timeout: 264 seconds]
avahey has quit [Quit: Connection closed for inactivity]
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
rehat has quit [Remote host closed the connection]
h4ckurate has quit [Remote host closed the connection]
h4ckurate has joined #ruby
Kyuujitsu has quit [Ping timeout: 272 seconds]
Kyuujitsu has joined #ruby
qiukun has quit [Quit: qiukun]
oo_ has quit [Remote host closed the connection]
<minmax> ?ruboto
<ruboto> I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
oo_ has joined #ruby
<minmax> ?who's ruboto
<ruboto> I don't know anything about who
GriffinHeart has joined #ruby
<Ox0dea> ?nobody
<ruboto> apeiros is nobody
solars has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
wheresmyjetpack has quit [Quit: Konversation terminated!]
doertedev has joined #ruby
rdark has joined #ruby
Philipp__ has joined #ruby
michael_mbp has quit [Excess Flood]
GriffinHeart has quit [Remote host closed the connection]
pawnbox has joined #ruby
Kyuujitsu has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
qiukun has joined #ruby
Trynemjoel has joined #ruby
_ht has joined #ruby
michael_mbp has joined #ruby
busterarm has quit [Ping timeout: 265 seconds]
towski_ has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
busterarm has joined #ruby
ndrei has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
leat has quit [Remote host closed the connection]
leat has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
TomyWork has joined #ruby
Lucky__ has quit [Ping timeout: 260 seconds]
devbug_ has quit [Read error: Connection reset by peer]
ayonkhan has joined #ruby
DoubleMalt has joined #ruby
pkh has joined #ruby
lampshades has quit []
pawnbox has quit [Remote host closed the connection]
ayonkhan has quit []
Iskarlar has joined #ruby
andikr has joined #ruby
sinkensabe has joined #ruby
bigkevmcd has joined #ruby
AlexRussia has joined #ruby
<baweaver> Ox0dea: you on?
<Ox0dea> baweaver: I was just about to step out for a few. Whatcha got?
Kyuujitsu has quit [Ping timeout: 244 seconds]
<baweaver> Curious where in the world you found ?c
roolo has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 265 seconds]
astrobunny has quit [Remote host closed the connection]
jatb has quit [Ping timeout: 244 seconds]
CustosLimen has quit [Ping timeout: 265 seconds]
<Ox0dea> I don't recall its ever being terribly uncommon?
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> trying to find where it's defined / hiding at.
<baweaver> more of a curiosity really.
<Ox0dea> baweaver: In parse.y?
Iskarlar has quit [Client Quit]
sinkensabe has quit [Ping timeout: 255 seconds]
Kyuujitsu has joined #ruby
qiukun has quit [Quit: qiukun]
workmad3 has joined #ruby
cschneid has joined #ruby
<baweaver> ruby source reminds me what a C newbie I am
<Ox0dea> baweaver: It's handled with a few other things in parse_qmark(): https://github.com/ruby/ruby/blob/trunk/parse.y#L7389
<Ox0dea> What's strange is I'm reasonably certain I remember exactly when and where I first encountered the syntax.
<Ox0dea> It was the same instance wherein I learned of Hash#invert.
<baweaver> I'd never seen it until I ran into that one case in your non-an programs
<Ox0dea> I'm sure it's significantly more common in older code.
qiukun has joined #ruby
roo7 has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
nhhagen has joined #ruby
<Ox0dea> I learned of Hash#invert and ?c in the same video of a Japanese fellow showing off his brainfuck interpreter. The vagaries I'm able to recall are as yet insufficient to help me find the damned thing again. :/
<Ox0dea> Christ, that must've been eight-ish years ago.
workmad3 has quit [Ping timeout: 255 seconds]
* Ox0dea steps out.
<baweaver> Not a problem
<baweaver> grepping through all the ruby gems I have installed to find it
<adaedra> Hi
<baweaver> low
<bnagy> I used to use it all the time in 1.8
<bnagy> and ~never since :)
<baweaver> I don't intend to use it either
<baweaver> just knowing what and why it is was driving me up a bit of a wall
marr has joined #ruby
CustosLimen has joined #ruby
charliesome has quit [Quit: zzz]
omfgtora_ has joined #ruby
alveric__ has joined #ruby
<Ox0dea> I'm of the opinion that characters should be distinct from strings, but I suppose that's just the C talking.
devoldmx has joined #ruby
<Ox0dea> It's not of much consequence given that Ruby cleverly handles strings of length less than 23.
Kyuujitsu has quit [Ping timeout: 260 seconds]
lsmola has joined #ruby
eladmeidar has joined #ruby
<pipework> Ox0dea: at least we have support for unicode and both IO and String has support for #chars, but yeah it's not a datatype.
Kyuujitsu has joined #ruby
_blank has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
jonee has quit [Ping timeout: 260 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> '%c' % 'ab' # pipework: Except sometimes sorta.
<ruboto> Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: Curl::Err::ConnectionFailedError:Couldn't connect to server
omfgtora has joined #ruby
<pipework> Ox0dea: I don't know what that's supposed to do, sorry. :(
<Ox0dea> >> '%c' % 'ab'
<ruboto> Ox0dea # => %c requires a character (ArgumentError) ...check link for more (https://eval.in/411632)
tubuliferous_ has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
<Ox0dea> >> '' << 97 # Also this.
<Ox0dea> apeiros: ruboto is on the fritz.
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
omfgtora_ has quit [Ping timeout: 260 seconds]
yh has joined #ruby
clamstar has quit [Ping timeout: 252 seconds]
schaerli has quit [Ping timeout: 246 seconds]
verto has quit [Ping timeout: 265 seconds]
<ruboto> Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: Curl::Err::ConnectionFailedError:Couldn't connect to server
Criten has quit [Remote host closed the connection]
senayar has joined #ruby
Criten has joined #ruby
verto has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
Renich has joined #ruby
Kyuujitsu has quit [Ping timeout: 256 seconds]
MrButh has joined #ruby
Iskarlar has joined #ruby
h4ckurate has quit [Quit: h4ckurate]
Kyuujitsu has joined #ruby
clamstar has joined #ruby
<MrButh> teach me your ways you magical ruby developers you! teach me!
baweaver has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
workmad3 has joined #ruby
<adaedra> Only the bravest ones can be taught the holy ways
anisha has joined #ruby
pkh has quit [Ping timeout: 246 seconds]
keeguon has joined #ruby
arup_r has quit []
apofis has joined #ruby
arup_r has joined #ruby
charliesome has joined #ruby
<MrButh> I commeth from a far away land of the Processor of Hypertext known to the common folk as PHP, where must my browser travel to gain the riches of your knowledge in Ruby and Ruby on Rails?
Tempesta has quit [Read error: Connection timed out]
<bougyman> #rubyonrails
Tempesta has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
<Ox0dea> MrButh: On a largely unrelated note, I think you might enjoy this: http://thecodelesscode.com/
workmad3 has quit [Ping timeout: 246 seconds]
apofis has quit [Read error: Connection reset by peer]
<Ox0dea> Slightly more relevantly, I'm finally in the damned ChangeLog: https://github.com/ruby/ruby/blob/033e093/ChangeLog#L7
<adaedra> Bravo
<sevenseacat> Ox0dea: you're famous!
<Ox0dea> Onoes!
guyz has quit [Ping timeout: 256 seconds]
lxsameer_ has joined #ruby
<Ox0dea> Being in there for the tests feels a little cheap on account of having found and suggested the fix(es) for the bug, but I'll take it.
<adaedra> It's a good start
lxsameer_ is now known as lxsameer
<Ox0dea> adaedra: I've got four outstanding proposals that I stand vehemently behind, but they've all died. :/
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<adaedra> RIP
<Ox0dea> C'est la mort.
<MrButh> oh my holy gosh, I am getting advice from a famous Ruby'er! Thanks dude!
<adaedra> :D
<Ox0dea> I pretty much run into a use case for #grep-like #any? and #all? on a daily basis, and then I 0x5adface.
Kyuujitsu has quit [Ping timeout: 240 seconds]
<adaedra> Looks like you need some 0xC0FEE
ndrei has quit [Ping timeout: 260 seconds]
<adaedra> C0FFEE*
omegamike has joined #ruby
sameerynho has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
glenn_ has joined #ruby
minotep has joined #ruby
Mendenhall has joined #ruby
omegamike has quit [Ping timeout: 250 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
astrobunny has joined #ruby
pawnbox has joined #ruby
Pumukel has joined #ruby
benlovell has joined #ruby
Iskarlar has joined #ruby
<MrButh> cool read Ox0dea, thanks
yh has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
dented42 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Iskarlar has quit [Client Quit]
<Ox0dea> MrButh: Sure thing. I thought you might enjoy the style, if nothing else.
<Ox0dea> Zen and all that.
railswebdev has joined #ruby
joonty has joined #ruby
joonty has quit [Client Quit]
Iskarlar has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Kyuujitsu has quit [Ping timeout: 265 seconds]
Kyuujitsu has joined #ruby
<MrButh> does anyone here work as a Ruby developer somewhere?
<sevenseacat> most of us likely do.
<pipework> quite a lot of us do
oo_ has quit [Remote host closed the connection]
<MrButh> awesome, if I was to be interested in being a Ruby developer, at what point in my online training should I start looking for work? Like what tasks will I need to know how to accomplish or something?
bayed has joined #ruby
<MrButh> or goals
<sevenseacat> MrButh: well you said you come from PHP, take your answer to the same question for PHP, and str_replace Ruby for PHP in it
Mendenhall has quit [Ping timeout: 244 seconds]
<MrButh> lol, nice.
yh has joined #ruby
<sevenseacat> (I would have said gsub, but, yknow, dont know ruby yet)
Kyuujitsu has quit [Ping timeout: 260 seconds]
|\|370 has joined #ruby
Kyuujitsu has joined #ruby
<MrButh> is anyone working on something in their company or outside that I can contribute to?
<pipework> MrButh: github.com
<adaedra> :D
arup_r has quit [Remote host closed the connection]
<Ox0dea> MrButh: How many new moons have hitherto illuminated your path to Ruby enlightenment?
yh has quit [Ping timeout: 246 seconds]
xcesariox has joined #ruby
helpa-bot has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
|\|370 has quit [Ping timeout: 260 seconds]
<yorickpeterse> morning
<pawnbox> Hey guys! Could you tell me something about rubyspec project? What exactly it is?
helpa-bot has quit [Remote host closed the connection]
<pipework> A project to specify ruby
<pipework> Interestingly enough, it's executable.
helpa-bot has joined #ruby
Lildirt has quit [Ping timeout: 252 seconds]
khebbie has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
<pawnbox> Is it currently maintained?
pkh has joined #ruby
<sevenseacat> yes.
<pipework> pawnbox: Have you attempted to look it up for yourself?
pkh has quit [Max SendQ exceeded]
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
pkh has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
<pawnbox> So i was reading the blog posted on the site and guy said he's ending the project
khebbie has joined #ruby
senayar has quit [Remote host closed the connection]
Ox0dea has quit [Disconnected by services]
Ox0dea has joined #ruby
senayar has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
<pipework> And did you google it?
Royalb15 has joined #ruby
Lildirt has joined #ruby
helpa-bot has quit [Remote host closed the connection]
<sevenseacat> why would you do that?
helpa-bot has joined #ruby
<sevenseacat> i mean, information on the internet is never out of date, is it
Iskarlar has quit [*.net *.split]
benlovell has quit [*.net *.split]
minotep has quit [*.net *.split]
Tempesta has quit [*.net *.split]
rdark has quit [*.net *.split]
aceRacer has quit [*.net *.split]
joneshf-laptop has quit [*.net *.split]
Mia has quit [*.net *.split]
njr has quit [*.net *.split]
avitzurel has quit [*.net *.split]
FooMunki has quit [*.net *.split]
myztic has quit [*.net *.split]
s00pcan has quit [*.net *.split]
Rinzlit1 has quit [*.net *.split]
mkosaki has quit [*.net *.split]
jgpawletko has quit [*.net *.split]
shellie_ has quit [*.net *.split]
helpa has quit [*.net *.split]
sevin has quit [*.net *.split]
swills has quit [*.net *.split]
tsvenson has quit [*.net *.split]
lampd1 has quit [*.net *.split]
emdub has quit [*.net *.split]
ZYPP has quit [*.net *.split]
adam| has quit [*.net *.split]
dont-panic has quit [*.net *.split]
monsieurp has quit [*.net *.split]
chuy has quit [*.net *.split]
chihhsin has quit [*.net *.split]
AnoHito has quit [*.net *.split]
Dopagod has quit [*.net *.split]
_5moufl has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
nlsun has quit [*.net *.split]
mrsolow has quit [*.net *.split]
Kharma has quit [*.net *.split]
graft has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
iszak has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
oz has quit [*.net *.split]
Darkwater has quit [*.net *.split]
RTG` has quit [*.net *.split]
yie has quit [*.net *.split]
adzuci has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
brainslug has quit [*.net *.split]
systemd0wn has quit [*.net *.split]
cescalante has quit [*.net *.split]
phreakocious has quit [*.net *.split]
ashleyhindle has quit [*.net *.split]
MisterRusty has quit [*.net *.split]
irk_ has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
ThaiWood has quit [*.net *.split]
C0deMaver1ck_ has quit [*.net *.split]
Nirgali42 has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
olblak has quit [*.net *.split]
drzel_ has quit [*.net *.split]
bmn_ has quit [*.net *.split]
justinmcp has quit [*.net *.split]
shawnacscott has quit [*.net *.split]
Biohazard_ has quit [*.net *.split]
peterhu has quit [*.net *.split]
wmoxam has quit [*.net *.split]
petridish has quit [*.net *.split]
apeiros has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
madhatter has quit [*.net *.split]
nirix has quit [*.net *.split]
rikai has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
Flipez has quit [*.net *.split]
scottstamp has quit [*.net *.split]
EnergyCoffee has quit [*.net *.split]
drager has quit [*.net *.split]
ec\_ has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
spacemud has quit [*.net *.split]
kenichi has quit [*.net *.split]
<pipework> nice netsplit
quimrstorres has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
yh has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
<pipework> So I'm trading freenode's splits for handling availability on my lonesome?
Kyuujitsu has joined #ruby
skade has joined #ruby
Iskarlar has joined #ruby
benlovell has joined #ruby
minotep has joined #ruby
Tempesta has joined #ruby
rdark has joined #ruby
aceRacer has joined #ruby
joneshf-laptop has joined #ruby
Mia has joined #ruby
njr has joined #ruby
avitzurel has joined #ruby
myztic has joined #ruby
FooMunki has joined #ruby
s00pcan has joined #ruby
Rinzlit1 has joined #ruby
mkosaki has joined #ruby
jgpawletko has joined #ruby
shellie_ has joined #ruby
sevin has joined #ruby
swills has joined #ruby
tsvenson has joined #ruby
lampd1 has joined #ruby
emdub has joined #ruby
adam| has joined #ruby
ZYPP has joined #ruby
dont-panic has joined #ruby
monsieurp has joined #ruby
chihhsin has joined #ruby
Nirgali42 has joined #ruby
cescalante has joined #ruby
MisterRusty has joined #ruby
Kharma has joined #ruby
RTG` has joined #ruby
AnoHito has joined #ruby
Skelz0r has joined #ruby
BraddPitt has joined #ruby
graft has joined #ruby
mrsolow has joined #ruby
Killerkeksdose has joined #ruby
yie has joined #ruby
bmn_ has joined #ruby
C0deMaver1ck_ has joined #ruby
ashleyhindle has joined #ruby
oz has joined #ruby
shadeslayer has joined #ruby
apeiros has joined #ruby
Biohazard_ has joined #ruby
scottstamp has joined #ruby
kenichi has joined #ruby
chuy has joined #ruby
justinmcp has joined #ruby
ThaiWood has joined #ruby
drzel_ has joined #ruby
irk_ has joined #ruby
pleiosaur has joined #ruby
rikai has joined #ruby
dostoyevsky has joined #ruby
petridish has joined #ruby
Flipez has joined #ruby
iszak has joined #ruby
phreakocious has joined #ruby
MuffinPimp has joined #ruby
peterhu has joined #ruby
adzuci has joined #ruby
nirix has joined #ruby
spacemud has joined #ruby
shawnacscott has joined #ruby
martinbjeldbak has joined #ruby
Darkwater has joined #ruby
madhatter has joined #ruby
brainslug has joined #ruby
drager has joined #ruby
wmoxam has joined #ruby
shortdudey123 has joined #ruby
nlsun has joined #ruby
EnergyCoffee has joined #ruby
_5moufl has joined #ruby
Dopagod has joined #ruby
systemd0wn has joined #ruby
olblak has joined #ruby
ec\_ has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
tanath has joined #ruby
ruboto has joined #ruby
nhhagen has joined #ruby
Tempesta has quit [Max SendQ exceeded]
Tempesta has joined #ruby
<apeiros> Ox0dea: seems it had a thread overload
tanath has left #ruby [#ruby]
* apeiros crosses fingers for less drama this week
<apeiros> working on the update
senayar has quit [Remote host closed the connection]
yh has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
<adaedra> ?drama
<ruboto> I don't know anything about drama
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
<Ox0dea> rbx>> RUBY_ENGINE
wookiehangover has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
<yorickpeterse> Ox0dea: eval.in only supports cruby
<Ox0dea> apeiros: I trust you're not interested in interfacing with another evaluator?
<yorickpeterse> pawnbox: there's a fork of RubySpec at github.com/ruby/rubyspec
Ox0dea has quit [Read error: No route to host]
<yorickpeterse> The original one is no longer maintained
<adaedra> Good bye Ox0dea
Ox0dea has joined #ruby
<Ox0dea> Hello, adaedra.
<adaedra> :)
<Ox0dea> Linux 4.1.4 doesn't like me. :(
<adaedra> Ah, I'm still at 4.1.3
<Ox0dea> I suppose it could be systemd 224, but I'd rather it wasn't.
yh has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
<yorickpeterse> still on 4.0
charliesome has quit [Quit: zzz]
<yorickpeterse> every time I upgrade something breaks so I'm waiting it out to mature a bit
<Ox0dea> Sage advice, to be sure.
Rinzlit2 has joined #ruby
jonee has joined #ruby
niko has quit [Ping timeout: 608 seconds]
OrbitalKitten has joined #ruby
Nimf has joined #ruby
yh has quit [Ping timeout: 252 seconds]
Rinzlit1 has quit [Ping timeout: 265 seconds]
<tbuehlmann> is there a more idiomatic way to write the following? /(#{Regexp.escape(some_string)})/i
michael_mbp has quit [Excess Flood]
pyon has quit [Ping timeout: 250 seconds]
<yorickpeterse> Not more idiomatic per se
ndrei has joined #ruby
<yorickpeterse> but you can write Regexp.new(Regexp.escape(some_string), Regexp::IGNORECASE)
<jhass> don't need the capture group, just check the entire match
<bougyman> Regexp.new(Regexp.escape("food"), 'i')
<yorickpeterse> but that's not really any better
<bougyman> => /food/i
<bougyman> dunno that's idiomatic.
<bougyman> just different and more verbose.
oo_ has joined #ruby
<bougyman> and doesn't have your captures, though if your capturing the whole regexp captures are kinda pointless.
apfeluser has joined #ruby
Mendenhall has joined #ruby
<Ox0dea> Unless you prefer to say $1 instead of $~.
nik0 has joined #ruby
<jhass> I prefer none of both
michael_mbp has joined #ruby
<jhass> tbuehlmann: depending on your usecase for constructing that thing in the first place there might be alternatives
htmldrum has quit [Ping timeout: 244 seconds]
<Ox0dea> jhass: You wanted "neither", I suspect.
aceRacer has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150629114848]]
<tbuehlmann> jhass, I'm sure there is
withnale____ has joined #ruby
Zai00 has joined #ruby
nolic has joined #ruby
<gregf_> or prolly %r{food}i
<tbuehlmann> writing a highlight method that simply highlights certain strings in a string
cambridge has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<tbuehlmann> having this right now: input.to_s.gsub(/(#{Regexp.escape(highlight)})/i, '<strong class="highlight">%s</strong>' % '\1')
<Ox0dea> tbuehlmann: Zalgo is coming for you.
<Ox0dea> The <center> cannot hold.
scorp007 has joined #ruby
Violentr has joined #ruby
<jhass> mmh, I wish there would be a case ignore version for .gsub(String) { }
<jhass> *ignoring
<Ox0dea> heftig: Why the hard dependency on LLVM 3.5?
Trynemjoel has joined #ruby
TvL2386 has quit [Ping timeout: 252 seconds]
<scorp007> In the C API, does rb_rescue get called only after any in-script rescue blocks are checked? I.e. is it the outer-most handler, or inner most?
<scorp007> I think I'm seeing it get called before the script handler gets a chance.
<scorp007> I called rb_rescue2 with the top-level exception class to implement an "unhandled exception filter" in my embedding
<bougyman> rescues are called from the most specific to the least, innermost to outermost when equal specificity.
soc42 has joined #ruby
<scorp007> bougyman: that's what I'd guess, but it seems like the script isn't getting a chance to run? Here's what's happening:
RegulationD has joined #ruby
<bougyman> which exception is it?
<bougyman> some aren't handled by a bare rescue.
<bougyman> like files not existing and certain other io ones.
<scorp007> debug.rb has a require 'readline' in a rescue block. They filter for LoadError. I don't have readline on my system, so a LoadError is raised
<Ox0dea> Also SyntaxError.
<tbuehlmann> thanks for the input
<scorp007> but debug.rb handles it by itself
<bougyman> right.
unshadow has joined #ruby
<scorp007> problem is, before debug.rb gets a chance to handle it, I get called.
<scorp007> which I don't want to be
<bougyman> huh?
<bougyman> is this a threading thing?
<scorp007> I want debug.rb to handle it -- not propagate it up to me
<scorp007> no threading
<scorp007> I don't think
<bougyman> so what's in rescue LoadError's block?
Trynemjoel has quit [Ping timeout: 250 seconds]
<scorp007> a graceful fallback (debug.rb is part of the standard lib)
pawnbox has quit [Read error: Connection reset by peer]
<scorp007> they hand-roll their own readline if the native module isn't available
frem has quit [Quit: Connection closed for inactivity]
<scorp007> My entire script runs under one big rescue, catching all exceptions:
<scorp007> rb_rescue2((RESCUECB)runScriptGuarded, rb_str_new2(narrowArgv[0]), (RESCUECB)topLevelExceptionHandler, Qnil, rb_eException, 0 /* sentinel */);
Trynemjoel has joined #ruby
<Ox0dea> Well, there's your problem. :P
<scorp007> I'm trying to only handle exceptions that scripts did not handle
<scorp007> to prevent the app from crashing.
<scorp007> Ox0dea: is that wrong?
<Ox0dea> scorp007: It's just really heavy-handed.
<scorp007> is there a better way?
<Ox0dea> charliesome demonstrates how to survive even segfaults in this talk: https://www.youtube.com/watch?v=SBdqCYKWISU
RegulationD has quit [Ping timeout: 255 seconds]
nik0 has quit [Ping timeout: 608 seconds]
chouhoulis has joined #ruby
yh has joined #ruby
<Ox0dea> Yay, FrozenCore! Boo, nobu (for gimping it to death in 2.1+).
<bougyman> trying to make a script or program which never fails is sisyphusian.
<bougyman> making a program fail fast and recover cleanly is at least accomplishable in a lifetime.
<scorp007> bougyman: That's exactly what I'm trying to do: recover cleanly.
<scorp007> if I don't have a top level handler, I will segfault
<bougyman> from a kill -9 ?
<Ox0dea> bougyman: systemd manages.
<bougyman> because you can't control that (nor hard powerdown)
<scorp007> not from a kill, from any old exception a script raises.
<scorp007> is that not clear?
<bougyman> Ox0dea: it really doesn't. their bugzilla is full of hard, bad fail.
<Ox0dea> bougyman: Sure, but `sudo kill -9 1` doesn't do anything.
<bougyman> ah, I get what you meant now.
<scorp007> my question is, with a rescue block like that, should I expect to be called *even if* a script handles the exception?
<Ox0dea> No.
<scorp007> hmm.
<bougyman> scorp007: nope, only if it doesn't.
<scorp007> that's what I thought.
<bougyman> the first matching exception block wins, unless it re-raises.
<scorp007> but not what I got. Let me try a simpler example.
<Ox0dea> Ruby essentially maintains an exception stack.
<bougyman> I mean, it wins, but it can re-raise.
<bougyman> moving it along the stack.
pawnbox has joined #ruby
<scorp007> ok, that's interesting. It worked as expected on a trivial example. I wonder why debug.rb is different.
sinkensabe has joined #ruby
TvL2386 has joined #ruby
<scorp007> ok, something else is amiss here. That isn't the issue.
Pumukel has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
nik0_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
GriffinHeart has joined #ruby
* Ox0dea ponders the feasibility of executing $thing with `rlwrap` iff necessary.
<Ox0dea> I expect it'd have to be a kernel module.
Trynemjoel has joined #ruby
<scorp007> is there a C API to redefine a method on an object?
schaerli has quit [Ping timeout: 255 seconds]
<Ox0dea> scorp007: Does rb_define_method() not do redefinition?
<scorp007> I wasan't sure.
<Ox0dea> I bet it does.
<scorp007> if it does, great!
Trynemjoel has quit [Ping timeout: 250 seconds]
nik0_ is now known as niko
Trynemjoel has joined #ruby
eladmeidar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> 130 files changed, 3074 insertions(+), 2089 deletions(-)
<yorickpeterse> lol rails 4 migration
<yorickpeterse> .______.
<yorickpeterse> and that's just one app out of...
<yorickpeterse> 5
<yorickpeterse> and it's not done yet either
jonee has quit [Ping timeout: 255 seconds]
<adaedra> Sounds like lots of funs
<yorickpeterse> meh
GriffinHeart has quit [Remote host closed the connection]
<yorickpeterse> this app also uses some stone age version of Angular
<yorickpeterse> for extra fun
<adaedra> wow
<adaedra> such upgrade
<adaedra> much fun
<yorickpeterse> oh it already shits itself in staging after logging in
<yorickpeterse> great
GriffinHeart has joined #ruby
<yorickpeterse> "Moped::Errors::ConnectionFailure: Could not connect to a primary node for replica set" lol what
<yorickpeterse> oh yeah of course, it still connects to an old database we nuked centuries ago
CustosLimen has quit [Ping timeout: 250 seconds]
Nirgali42 has quit [Ping timeout: 265 seconds]
GriffinHeart has quit [Remote host closed the connection]
charliesome has joined #ruby
tubuliferous_ has joined #ruby
nolic has quit [Quit: Lost terminal]
Hounddog has joined #ruby
CustosLimen has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tomphp has joined #ruby
Soda has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
jonee has joined #ruby
Trynemjoel has joined #ruby
Hounddog has quit [Ping timeout: 260 seconds]
dc has quit [Remote host closed the connection]
slackbotgz has joined #ruby
Hounddog has joined #ruby
Nirgali42 has joined #ruby
devoldmx has joined #ruby
workmad3 has joined #ruby
FooMunki has quit [Quit: FooMunki]
pawnbox has quit [Remote host closed the connection]
FooMunki has joined #ruby
jonee has quit [Ping timeout: 244 seconds]
FooMunki has quit [Client Quit]
tkuchiki has joined #ruby
FooMunki has joined #ruby
sarkyniin has joined #ruby
blaines_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
psy_ has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
Karpah has joined #ruby
arup_r has joined #ruby
pawnbox has joined #ruby
sevenseacat has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
psy_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ccooke_ has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
ccooke has quit [Read error: Connection reset by peer]
jonee has joined #ruby
kp666 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
_joes__ has joined #ruby
psy_ has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
troulouliou_div2 has joined #ruby
ccooke_ is now known as ccooke
workmad3 has joined #ruby
psy_ has joined #ruby
oo_ has quit [Remote host closed the connection]
pengin has joined #ruby
skade has joined #ruby
ndrei has quit [Remote host closed the connection]
pawnbox has joined #ruby
Mendenhall has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
Phoop has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ndrei has joined #ruby
senayar has joined #ruby
skade has quit [Client Quit]
shiru has joined #ruby
oo_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
Pupeno has joined #ruby
yh has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
shiru has quit [Remote host closed the connection]
ponga has joined #ruby
Zai00 has quit [Quit: Zai00]
jespada has joined #ruby
pengin has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Ping timeout: 245 seconds]
sdothum has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
lele is now known as Guest24
bjornar has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
schaerli has joined #ruby
Trynemjoel has joined #ruby
Karpah has quit [Quit: .]
skyrocker has joined #ruby
skyrocker has left #ruby [#ruby]
<yorickpeterse> Geez, how many assets/ directories can there be in a Rails app
<yorickpeterse> app/assets, lib/assets (wtf?), vendor/assets, etc
Coldblackice has joined #ruby
<adaedra> ahah
Iskarlar has joined #ruby
schaerli has quit [Ping timeout: 264 seconds]
Rickmasta has joined #ruby
Zort0n has joined #ruby
yfeldblum has joined #ruby
safeforge has quit [Remote host closed the connection]
|\|370 has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
safeforge has joined #ruby
Kyuujitsu has joined #ruby
|\|370 has quit [Ping timeout: 244 seconds]
<Ox0dea> yorickpeterse: If you're using an ext filesystem, tune2fs will tell you how many inodes are free and thus capable of holding another assets directory.
c0m0 has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
<Ox0dea> s/holding/pointing to/, I suppose, and I'm sure there exist similar tools for other filesystems.
OrbitalKitten has joined #ruby
pawnbox has joined #ruby
izabera has joined #ruby
yh has joined #ruby
hmnhf has quit [Quit: Konversation terminated!]
<izabera> hi guys, i have a problem with a program written in ruby and i know that this is not the right place but i'd appreciate a pointer in the right direction
quimrstorres has quit [Remote host closed the connection]
<izabera> i tried installing rhc for openshift and i get this error /usr/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'highline' (~> 1.6.11) - did find: [highline-1.7.2] (Gem::LoadError)
chthon has joined #ruby
astrobunny has quit [Remote host closed the connection]
quimrstorres has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> izabera: probably something missing from the program's specification. if you're not a ruby programmer, you might get better advice directly from the program's authors
j4cknewt has quit [Remote host closed the connection]
nolic has joined #ruby
oo_ has joined #ruby
rubytor has joined #ruby
<izabera> i'll try
<izabera> the program's author is red hat...
<shevy> can you publish the source? if you have access to .gemspec you can rebuild the gem with a different specification too
<izabera> https://github.com/openshift/rhc the source is this
oo_ has quit [Remote host closed the connection]
<pontiki> submit your problem here: https://github.com/openshift/rhc/issues after looking through to see if someone already has
dc has joined #ruby
yardenbar has quit [Quit: Leaving]
<shevy> you could change the line at: s.add_runtime_dependency 'highline', '~> 1.6.11'
<izabera> it may very well be my fault for not installing it correctly
<izabera> the error message does look weird tho
<shevy> highline is at: https://rubygems.org/gems/highline
[k- has joined #ruby
<pontiki> it's not a highline issue
<adaedra> it may just be that highline is not installed in the required version by the gem
Trynemjoel has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<shevy> the highline version 1.6.11 is at https://rubygems.org/gems/highline/versions/1.6.11
Phoop has joined #ruby
unshadow_ has joined #ruby
<shevy> the URL is https://rubygems.org/downloads/highline-1.6.11.gem so you could install it; I don't understand the error message though because that .gem is available
Trynemjoel has joined #ruby
<pontiki> i must be lagged
apfeluser has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
unshadow_ has quit [Read error: Connection reset by peer]
apfeluser has joined #ruby
<adaedra> looks like the problem is at loading, not installing
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<izabera> should i downgrade it?
unshadow has quit [Ping timeout: 250 seconds]
<adaedra> izabera: did you run `bundle install` before running it?
<izabera> no i didn't
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> how did you install it?
omegamike has joined #ruby
<shevy> try to downgrade anyway, you can re-upgrade lateron
<izabera> via yaourt
<adaedra> aaah, yaourt
<shevy> yoghurt!
<adaedra> izabera: remove the package and get it though gems: gem install rhc
unshadow has joined #ruby
gheegh has joined #ruby
<adaedra> this should bring the right dependencies at the same time
<izabera> it worked :o
<Ox0dea> yaourt is the Ubuntu of AUR helpers. :P
<adaedra> the AUR package is broken
<adaedra> there's even a fixed one, but since it's a gem, it's better to get it like that
_blizzy_ has joined #ruby
<izabera> thanks guys for guiding me
<adaedra> This is discussed in the AUR package page
rodfersou has joined #ruby
<tsunamie> hi There, I ahve this little snippet of code
chills42 has joined #ruby
<tsunamie> can someone help me, I do't know how to added the entry I parse out of the file into the Master template I define above under the array of packages
<adaedra> you may want to save result of JSON.parse in a variable
<Ox0dea> [k-: grep 0x0dea trunk/ChangeLog && echo Yay!
atomical has joined #ruby
atomical has quit [Client Quit]
<shevy> yoghurt install ruby
CustosLimen has quit [Ping timeout: 246 seconds]
<tsunamie> adaedra, http://hastebin.com/joyelonizi.rb sorry I did that was an older version sorry
<Ox0dea> shevy: We just say `-S`.
<adaedra> Why are you using JSON.parse to parse a ruby hash l. 6 ?
ndrei has quit [Ping timeout: 244 seconds]
<adaedra> That shouldn't even work
<Ox0dea> It doesn't.
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
omegamike has quit [Ping timeout: 252 seconds]
<Ox0dea> This code is being run in the asker's head.
Trynemjoel has quit [Ping timeout: 245 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
<tsunamie> ??
<Ox0dea> tsunamie: Are you executing this program?
<tsunamie> I am a noob at ruby
Kalov has quit []
<tsunamie> trying to it fails
schaerli has joined #ruby
<adaedra> your code is not even running, did you try it
Iskarlar has joined #ruby
astrobunny has joined #ruby
Trynemjoel has joined #ruby
<tsunamie> /usr/share/gems/gems/json-1.8.2/lib/json/common.rb:155:in `initialize': no implicit conversion of Hash into String (TypeError)
<tsunamie> from /usr/share/gems/gems/json-1.8.2/lib/json/common.rb:155:in `new'
<tsunamie> from /usr/share/gems/gems/json-1.8.2/lib/json/common.rb:155:in `parse'
<tsunamie> from splice.rb:6:in `<main>'
Xoro has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
<Ox0dea> tsunamie: JSON.parse expects a string of JSON, not a Hash.
senayar has joined #ruby
<tsunamie> Ox0dea, adaedra I am trying to follow online examples
<Ox0dea> tsunamie: No, you're mashing keys. :(
_blizzy_ has joined #ruby
<adaedra> There should be a copy-paste license
Xoro has joined #ruby
apfeluser has quit [Quit: Leaving]
apfeluser has joined #ruby
<tsunamie> mashing keys?
pawnbox has joined #ruby
<adaedra> if your goal is to learn ruby, there are great resources for that, that are all better than copy/pasting random resources
<shevy> why do people use this? SomeError = Class.new(StandardError)
<tsunamie> trying to learn how to manipulate json
<Ox0dea> shevy: To avoid newlines and/or semicolons, I'd imagine.
<Ox0dea> Those're my reasons, anyhow.
<Ox0dea> [k-: Yeah!
<Ox0dea> > Neither of these is a proper fix
<Ox0dea> > turns out to be the proper fix
skade has joined #ruby
<shevy> hehe
<tsunamie> :(
<tsunamie> can no one help me or amd I just that far gone?
<Ox0dea> I just figured it'd have to be much more involved than swapping a Qnil for a Qfalse.
<shevy> tsunamie try to pass a String?
<Ox0dea> tsunamie: Which resource(s) are you using to learn Ruby?
pawnbox has quit [Read error: Connection reset by peer]
soc42 has quit [Remote host closed the connection]
pawnbox has joined #ruby
<shevy> where in the example do they use a hash?
<adaedra> tsunamie: before parsing JSON files, you should have basic knowledge of ruby itself – do you have that
sarkyniin has quit [Ping timeout: 265 seconds]
<adaedra> adapting samples from the internet from random google searches on a language you don't know will create more problems that it will solve
Zort0n has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> tsunamie: I trust you're familiar with this adage: "You must learn to crawl before you can run."
<shevy> he did not even follow the tutorial
Kyuujitsu has quit [Quit: leaving]
<Ox0dea> tsunamie: You know the expression, yes?
<[k-> this was how i learnt ruby and javascript
<[k-> amazing right
<shevy> and look at the code you write [k- !
<shevy> you even surpassed Ox0dea
Zort0n has joined #ruby
<shevy> leaving the old master in the dust
<[k-> lies
<Ox0dea> I object only on the grounds that obfuscation was never my goal.
CustosLimen has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<shevy> Oxfuscation
<[k-> i still cant into non-alphanum
dc has quit [Remote host closed the connection]
<Ox0dea> Non-alphanumeric code is perhaps definitionally obfuscated, but I did those for the challenge more than for the sake of confusion.
unshadow has quit [Quit: leaving]
bruno- has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 265 seconds]
platzhirsch has joined #ruby
Trynemjoel has joined #ruby
dionysus69 has joined #ruby
Soda has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
<Aeyrix> Fuck code obfuscators
<[k-> in a few months, i wouldnt be able to read them!
<Aeyrix> Looking at you, IonCube
<Ox0dea> Aeyrix: Capstone much?
<[k-> they arent really obfuscated, so easily undone
<Aeyrix> IonCube?
norc has joined #ruby
<Ox0dea> Oh, a PHP thing.
<norc> Given %w(a b c), what is the shortest way to transform this into %w(a b c A B C) ?
<Ox0dea> Aeyrix: Given your background, I thought it might be a thing for making disassembly harder.
<Ox0dea> norc: Do you have it in a variable?
<[k-> map { |a| [a, a.upcase] }.flatten
<adaedra> won't be in the right order, [k-
<Aeyrix> Ox0dea: Ion is supposed to make code reversing hard(er)
<[k-> sort it too!
<Ox0dea> tap { |a| a << a.upcase }
nofxx has quit [Ping timeout: 250 seconds]
<Aeyrix> I just kind of captured the opcodes though so
qiukun has quit [Quit: qiukun]
<Aeyrix> *shrugs*
<Ox0dea> Erm, missed a #map there.
<norc> Ox0dea: That is even shorter! :)
<norc> Yeah I get the idea
<Ox0dea> norc: That should be a.map(&:upcase).
<[k-> how dare you ignore my response!
<Aeyrix> Lmao
pawnbox has joined #ruby
<Ox0dea> norc: I expect you want the whole alphabet, no?
<norc> [k-: I would offer you a cookie, but I already ate them.
nofxx has joined #ruby
pawnbox has quit [Remote host closed the connection]
<[k-> ?cookie k
<ruboto> k, here's your cookie:
<norc> Ox0dea: No, its strings in my case, I just shortened it
<[k-> nomnomnom
<Aeyrix> Nice meme
codecop has joined #ruby
codecop_ has joined #ruby
<adaedra> Ox0dea: miss a flatten too
<Ox0dea> No?
<adaedra> or a *
<[k-> no
<[k-> adaedra, you are confused!
<Ox0dea> No, he's right...
<Ox0dea> I should've used #concat, not #<<.
<adaedra> or that
<Ox0dea> This language a shit.
* [k- slowly parses
Zort0n has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-> oh map returns an array
<duderonomy> For the newbs, can somebody rewrite what just happened with the tap command?
<duderonomy> tap method. rather
<apeiros> duderonomy: foo.tap { … } always returns foo
<Ox0dea> duderonomy: #tap yields and returns the receiver in one fell swoop.
<[k-> &ri Object#tap
<Aeyrix> Tap is awesome tbh
<duderonomy> thx!
tubuliferous_ has joined #ruby
<Ox0dea> It's the most elegant Ruby method, in my estimation.
<Aeyrix> Yeah
<[k-> i hardly use it
<adaedra> I use it time to time, it can be very handy
<[k-> time to get it in my system!
<[k-> and libobf
<Aeyrix> Lmao
<Ox0dea> [k-: You need to learn a Lisp.
sarkyniin has joined #ruby
<norc> [k-: Actually, yours is definitely shorter, since Ox0deas variant still needs to be flattened.
<Aeyrix> [k- gonna get fired for global find / replace with tap
<norc> I dont regret eating the cookies though.
<Ox0dea> norc: Are you about to pit [k- against me in golf?
<adaedra> [k-: but his gives you the wrong order.
<[k-> norc, instead of << use concat
minotep has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
<[k-> adaedra: wrong target
<adaedra> [k-: right, fix it now
<[k-> too hungry? lunch is in 40 min!
khebbie has quit [Remote host closed the connection]
<adaedra> you won't come lunch with me
<duderonomy> do some of you know capybara; or should I ask over in Rails?
<adaedra> :'(
<norc> Ox0dea: The answer depends on whether you can bribe me with a cookie.
Kalov has joined #ruby
<[k-> ?cookie norc
<ruboto> norc, here's your cookie:
khebbie has joined #ruby
<adaedra> norc:
<norc> Oh oh the cookies. :)
<[k-> you stole that from ruboto!
<adaedra> no, it comes from my cookie stash
tubuliferous_ has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
<[k-> really? :o
krz has quit [Quit: WeeChat 1.2]
safeforge has quit [Remote host closed the connection]
pawnbox has joined #ruby
qiukun has joined #ruby
ascarter has joined #ruby
<[k-> a + a.map &:upcase
abyss has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
<[k-> tada!
<adaedra> that requires it to be in a variable
<[k-> a.reduce(a) { |b, c| b << c.upcase }
<[k-> this method does it inplace! be careful!
quimrstorres has quit [Remote host closed the connection]
<[k-> adaedra: tap is a method call!, assignment is not
<adaedra> and?
<[k-> so it is more expensive to call tap than just having a variable
<[k-> the more you know \o/
<adaedra> and?
<workmad3> adaedra: milliseconds count!.
<shevy> adaedra always wants to know more
<workmad3> hmm... where did I put that sarcasm emoji?
<[k->
<adaedra> It's weird, I have emojis on my Linux terminal
ndrei has joined #ruby
<wasamasa> but are they colored?
<adaedra> no
<[k-> Ox0dea: which has more syntax, haskell or Ruby
<wasamasa> adaedra: well then
<adaedra> And, at 9pt, they're pretty unreadable
centrx has joined #ruby
<adaedra> but it's still better than squares with little numbers in it
ldnunes has joined #ruby
abyss has joined #ruby
devoldmx has joined #ruby
<[k-> ◻◻◻◻◻◻
<[k-> rekt
sarkyniin has quit [Ping timeout: 244 seconds]
<adaedra> rectangle*
minotep has joined #ruby
<[k-> ㊗㊗㊗㊗㊗㊙㊙㊙㊙㊙㊗㊙㊗㊙㊗㊙
<Ox0dea> [k-: I think Haskell's permitting any symbolic operators makes it seem like it has way more syntax than it really does.
<[k-> but the answer please!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> haskell!
<[k-> your face
<shevy> beautiful!
<[k-> yeah haskell is beautiful
<shevy> haskell is insanity
<shevy> well captured into a monad
<shevy> and a massive ghci!
<[k-> ?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!
<[k-> come shevy!
<shevy> you started it!
<adaedra> and?
<shevy> and baguette
<adaedra> running out of arguments are we?
<shevy> only out of baguettes
<[k-> yeah, come
<adaedra> “and?” is such a beautiful thing
<shevy> and?
<[k-> DeBot is dead, you can whois to check!
<adaedra> and you're still not in offtopic
<[k-> you neednt be afraid anymore!
<shevy> you are playing unicode hangman
<adaedra> you have an ignore list shevy
<[k-> just whois DeBot
<shevy> I don't
<adaedra> then get a real client
<shevy> I have!
<adaedra> Then you have an ignore list!
<shevy> it connects me to irc and allows me to type wild wisdom
howdoi has joined #ruby
<[k-> join us already! DeBot is dead!
blueOxigen has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
<shevy> he'll be back
<[k-> he has been dead for hours now
<bnizzle> anyone able/willing to give me a hand with HTTP Post via httparty?
<[k-> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
bluOxigen has quit [Ping timeout: 260 seconds]
<[k-> i like how i can type an entire sentence using ?ask
<bnizzle> im trying to auth to Eve's Crest system https://developers.eveonline.com/resource/single-sign-on
<bnizzle> i can get the first code via the redirect
<bnizzle> then when i go to authenticate it i keep getting an invlaid header error
<bnizzle> if im using httparty this should be correct?
<bnizzle> @verify = HTTParty.post('https://login.eveonline.com/oauth/token',
<bnizzle> :body => { "grant_type" => "authorization_code&code=#{params[:code]}"},
<bnizzle> :headers => { "Authorization" => "Basic #{ basic_code }"})
<bnizzle> or have i screwed up somewhere?
benlovell has joined #ruby
<shevy> [k- haha but bnizzle can type more than you can in a second :)
<[k-> he asked the question yesterday
<bnizzle> ^
<Ox0dea> bnizzle: You'll probably need to pass along the cookies that came back with the response.
<bnizzle> as far as i can tell it looks right
<[k-> Ox0dea you havent answered!
<Ox0dea> bnizzle: HTTParty does have a mechanism for automagically handling that, I believe.
<[k-> ruby has more syntax!
<Ox0dea> You lie!
lordkryss has joined #ruby
<[k-> obviously the wtf says everything
<[k-> :>
Trynemjoel has quit [Ping timeout: 245 seconds]
<Ox0dea> I don't know how best to quantify these disparate formats, but the victor(?) is indeed quite plain.
mkosaki has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
eggoez has quit [Ping timeout: 240 seconds]
opalraava has quit [Ping timeout: 240 seconds]
nettoweb has quit [Excess Flood]
<[k-> Victor?
Phoop has quit [Ping timeout: 240 seconds]
<Ox0dea> NewTube is sexy.
quimrstorres has joined #ruby
Trynemjoel has joined #ruby
norc has quit [Ping timeout: 246 seconds]
<izabera> stupid question: why would i want or need to learn ruby?
<[k-> what kind of response do you want?
Phoop has joined #ruby
<izabera> idk
<izabera> i'm just chatting
nhhagen has quit [Remote host closed the connection]
<izabera> people here have been nice before
<MrButh> ruby developers get paid better than others
<MrButh> I believe it's one of the top
<[k-> humans aren't good with broad scope
<izabera> ok better pay is a good point
<izabera> let me narrow the scope: i'm a programmer and i'm good at c
<izabera> and c like languages
<MrButh> but hey, real question... so I installed the latest ruby and ruby-dev and yet when I try to gem install rails it fails with a "failed to build gem native extension." error
<izabera> all i'm reading on the web is "ruby is good as a first language"
<[k-> dynamicnism allows you to do metaprogramming easily and abstracts(?) the chore of repeating things
<[k-> duck typing allows you to hide implementatiom
Musashi007 has quit [Quit: Musashi007]
<[k-> details
<[k-> you don't need an ide for Ruby
schaerli_ has joined #ruby
<[k-> you can use Ruby for quick prototyping
<[k-> expressiveness reduces pain of imperativeness
<izabera> you're good
eggoez has joined #ruby
sarkyniin has joined #ruby
<[k-> if you wouldn't mind, join me in haskell land!
sameerynho has joined #ruby
schaerli has quit [Ping timeout: 272 seconds]
<izabera> haskell is an alien language that i'm physically unable to learn
sarkyniin has quit [Client Quit]
<[k-> you have to give it a few tries
<shevy> :)
sinkensabe has quit [Remote host closed the connection]
<shevy> way to waste time!
<[k-> i did too, and it becomes clearer each time
<shevy> no problem
<shevy> ruby can be clear on the first try
<[k-> ruby idioms like 5.times {} are incredibly expressive and it abstracts away the loop
Zackio has quit [Quit: ZNC - http://znc.in]
lxsameer has quit [Ping timeout: 255 seconds]
<centrx> izabera, Ruby is the best language ever, that's why
<MrButh> is it possible to run Ruby on a server with Apache2 which is already hosting about 7 php sites?
omegamike has joined #ruby
<shevy> MrButh you can always run ruby in .cgi variant
<izabera> centrx: why is it the best language ever? :P
<centrx> izabera, Expressive power and programmer happiness
<MrButh> so I would just add another apache config for it?
opalraava has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<Ox0dea> izabera: I trust you're familiar with FizzBuzz?
<shevy> you can
<[k-> i wonder what Ox0dea is going to do
<izabera> Ox0dea: sure
<[k-> Ruby is a fun language to play in
<centrx> Stand back
<yorickpeterse> Ruby is fizzbuzzscale
<[k-> you have many ways to do things
<Ox0dea> I'm not gonna do it.
Trynemjoel has joined #ruby
<yorickpeterse> I fizzbuz, you fizzbuzz, fizzbuzz, they're fizzbuzzing
<[k-> even without alpha numeric you can code in ruby!
<bnizzle> will this "Content-Type" => "application/x-www-form-urlencoded"
<wmoxam> izabera: what kinds of software do you write in C?
<bnizzle> render as Content-Type: application/x-www-form-urlencoded
<bnizzle> ?
jonee has quit [Ping timeout: 246 seconds]
Zackio has joined #ruby
<Ox0dea> izabera: What does "C-like" mean?
Zai00 has joined #ruby
carlosoliveira has joined #ruby
yqt has joined #ruby
<Ox0dea> For that matter, what does "good at C" even mean?
[k-_ has joined #ruby
xnr has quit [Quit: <3]
<izabera> it means that functions are called with funcname(parameters,here)
<Ox0dea> Wow.
<yorickpeterse> bnizzle: probably, have you tried it?
<wmoxam> O_o
<izabera> it means that scoping is static, brackets work like in c etc...
<yorickpeterse> wat
<Ox0dea> izabera: What is the value of `2["spooky" + 4u]` and why?
<yorickpeterse> "scoping is static"?
<[k-> Ox0dea: which is a better paradigm (w/o considering state/mutability): functional or imperative
<Ox0dea> Functional, of course.
<izabera> yes, c uses static scoping
<bnizzle> i dont know how to debug what httparty is setting as the headers and in what format
<yorickpeterse> ...there's no such thing as "static scoping"
<izabera> yes there is
<Ox0dea> bnizzle: Monitor your network traffic?
<yorickpeterse> There's static _typing_
<izabera> no
<yorickpeterse> which has nothing to do with scopes
<izabera> you're confused
<Ox0dea> yorickpeterse: Static scoping is a thing.
xnr has joined #ruby
<izabera> static scoping is the opposite of dynamic scoping
<yorickpeterse> oh, you mean lexical scoping?
<[k-> yay! look, haskell is better as Ox0dea indirectly said it!
<Ox0dea> [k-: I think Ruby is pretty "functional", for the record.
<yorickpeterse> And func(foo, bar) has _nothing_ to do with C
<[k-> not functional enough!
<[k-> we dont even have external map!
<yorickpeterse> The way brackets behave, or any other syntax element, is also not really related
cambridge has quit [Quit: cambridge]
quimrstorres has quit [Remote host closed the connection]
<Ox0dea> [k-: Come again?
<[k-_> C-like: derived from C?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<izabera> c-like == doesn't make my eyes hurt when i read it
<Ox0dea> This guy.
dkakoti has joined #ruby
Blaguvest has joined #ruby
<[k-_> Ox0dea: Kernel#map(array) { |element| ... } maybe
<Ox0dea> > mfw syntax matters
<[k-_> but we dont have that!
yh has quit [Ping timeout: 272 seconds]
<[k-_> syntax does matter! haskell does it bettuurrrr
<yorickpeterse> [k-_: stop taking acid already
<[k-_> should i take alkalis then?
ruboto has quit [Remote host closed the connection]
<[k-_> should i into Basic even
tvw has joined #ruby
<yorickpeterse> See, the acid is already messing with your ability to write
Zackio has quit [Quit: ZNC - http://znc.in]
<[k-> i am below H+ in the reactivity series
<izabera> Ox0dea: "spooky"[2] + 4u
Zackio has joined #ruby
<Ox0dea> izabera: Not quite.
<izabera> mh annoying
<Ox0dea> It'd be ("spooky" + 4u)[2], for which the behavior is to be defined by the implementation.
<[k-_> such precedence
<izabera> yeah ok well
<izabera> nobody programs that way
<[k-_> :info (+) gives you the fixity!
<Ox0dea> [k-_: LOLCODE > Basic, by the way.
Iskarlar has joined #ruby
minotep has quit [Ping timeout: 244 seconds]
<Takumo> Hi all, silly quiestion. how do I create a time from a string in this format? "1980-09-17T10:50:50+0000" I tried Time.new buw
<Takumo> >> Time.new "1980-09-17T10:50:50+0000"
<[k-_> >> require "Date"; Date.parse "1980-09-17T10:50:50+0000"
<yorickpeterse> Takumo: Time.parse
sunslide has joined #ruby
<Takumo> derrrp
<yorickpeterse> &ri Time.parse
<Takumo> thanks
<[k-_> ruboto is where?
<[k-_> where is ruboto?
<apeiros> don't use parse. parse is bad.
<[k-_> oh no did apeiros already did it?
<[k-_> you did it didnt you
<yorickpeterse> apeiros: Time.parse is fine
<apeiros> [k-_: I did what?
<apeiros> but yeah, no idea what happened with ruboto
<Takumo> yeah, where is ruboto?
<[k-_> you took ruboto away!
<apeiros> yorickpeterse: no. use strptime.
<apeiros> you use parse if you have no clue about the format and don't care if it gets it wrong.
<yorickpeterse> apeiros: that only works if you know the format beforehand, or at least can guarantee it
Nimf has quit [Read error: Connection reset by peer]
<apeiros> and with iso8601 dates, you use iso8601
<Ox0dea> Inconceivable.
Askilada has joined #ruby
<apeiros> yorickpeterse: if you don't know the format, you probably do something wrong.
<apeiros> and Takumo gave a format
<sunslide> hi guys, this is something fairly simple I can't seem to get straight.. I have some strings with wildcards ('*' throughout the string) and trying to compare it with another string.. not exactly regular expressions and I'm not sure how to use it with the /string/ syntax of Regexp.. anyone? it's pretty much says that "*Hello*World*" should match "yey Hello w00t World" to put simply
<Takumo> indeed, I'm expecting only ISO8601
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
<shevy> long live ISO!
jonee has joined #ruby
qiukun has quit [Quit: qiukun]
<apeiros> though, seems ruby doesn't like +0000, wants +00:00…
<[k-_> /^#{str.gsub /*/, ".*?"}$/
<[k-_> look how good i am in regexp!
nhhagen has joined #ruby
<sunslide> woah dude
<Ox0dea> [k-_: target of repeat operator is not specified: /*/
<Ox0dea> Look how shit you are at regex. :P
<yorickpeterse> ヽ( >∀<)ノ
minotep has joined #ruby
<[k-_> /^#{str.gsub /\*/, ".*?"}$/
<[k-_> tada! magnifique!
<Ox0dea> [k-_: Isn't `.*?` redundant?
baroquebobcat has joined #ruby
<[k-_> it will backtrack a lot otherwise
wpp has joined #ruby
<Ox0dea> But pathological regexen are best regexen.
nolic has quit [Quit: Lost terminal]
<centrx> Your boxen have dysentary
<Ox0dea> Needed more cowbell.
<sunslide> so "yey Hello World yey" =~ /^#{"*Hello*World*".gsub /\*/, ".*?"}$/ ?
<sunslide> or is it the other way around?
<Ox0dea> sunslide: Either will do.
<Ox0dea> Ruby loves you.
<sunslide> getting 0 :(
<centrx> All hail Ruby
<[k-_> .match if you want captures
<Ox0dea> sunslide: That means it matched at the first character.
<sunslide> no captures just 0/1
<centrx> sunslide, 0 is true
<sunslide> oh, did it
<sunslide> cool
leafybasil has quit [Ping timeout: 244 seconds]
<[k-_> -1 is false
<Ox0dea> [k-_: Stahp.
<Ox0dea> This is not #javascript.
<centrx> confusing
jtdoncas has joined #ruby
<centrx> Ruby forgive him
<sunslide> confusing indeed
<[k-_> in javascript, 0 is false
<Ox0dea> sunslide: It doesn't actually return -1 on a failure to match.
<Ox0dea> It'll return nil.
<centrx> In Javascript, all is false!
<[k-_> SUCH TYPE MISMATCH!
<Ox0dea> String#=~ returns the index at which the first match occurred, or nil in the case of no matches.
<Ox0dea> It makes plenty of sense.
<sunslide> yes it does
<sunslide> thank you all!
<jhass> alright, opinion poll: do you prefer "foo #{bar 'baz'}" or "foo #{bar "baz"}"
<[k-_> do you want captures?
<Ox0dea> jhass: The former is obviously easier for a human being to quickly parse.
<[k-_> jhass: error, unexpected baz
<sunslide> hmm nope the index is good enough
<jhass> [k-_: nope, method call to bar, passing the string "baz"
gagrio has quit [Ping timeout: 250 seconds]
<[k-_> i meant the """"
<jhass> [k-_: it's valid, try it
<Ox0dea> [k-_: You're lost without ruboto, mate. :P
<[k-_> ruby can do what now?
<Ox0dea> All the things.
<[k-_> i know %q((((())))) works
<[k-_> but """""""" too?
michael_mbp has quit [Excess Flood]
<Ox0dea> There are only two or three constructs you can't interpolate; it's beautiful madness.
<Ox0dea> "foo" "bar" is concatenation.
dimasg has joined #ruby
michael_mbp has joined #ruby
<[k-_> but "foo" baz "}" isnt!
<jhass> [k-_: it's "foo #{"baz"}"
<Ox0dea> [k-_: You still haven't installed SL4A, have you?
<[k-_> what is that?
<Ox0dea> Scripting Layer 4 Android.
<Ox0dea> Ruby on your phone.
<Ox0dea> You need it. :P
<[k-_> it's so big and fat
<[k-_> ruby is fat
<MrButh> is it?
<Ox0dea> >> Time.now.year
<[k-_> ghc is fatter tho, i think
abreu has joined #ruby
<jhass> apeiros: I know you're in the prefer " camp like me, what about inside interpolation ^ ?
pawnbox has quit [Remote host closed the connection]
<apeiros> jhass: still "
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros> jhass: though when strings get noisy, I tend to use %{}
<apeiros> ok, still no ruboto
<apeiros> bad ruboto, bad. no botsnack.
<[k-_> irb(main):001:0> bar = ->_ { _ }
<[k-_> irb(main):002:0> "foo #{bar "baz"}"
<[k-_> irb(main):003:0> "foo #{bar.call "baz"}"
<[k-_> => "foo baz"
<[k-_> :OOOOOOOO
<Ox0dea> [k-_: "Fatter" is a kindness there.
<Ox0dea> ~ $ for pkg in ruby ghc; do pacman -Qql $pkg | xargs stat -c '%s' | paste -sd + | bc; done
<Ox0dea> 22154401
<Ox0dea> 943818984
<Ox0dea> Like, holy shit.
<[k-_> haskell platform?
<[k-_> or bare minimum
ruboto has joined #ruby
<Ox0dea> [k-_: That's almost a gig.
<jhass> I'm kinda split, I do think using ' is easier to read there, but it does violate the prefer " rule
livathinos has joined #ruby
<Ox0dea> jhass: I'm phoning the authorities.
<[k-_> jhass: english uses "quote 'in a quote'"
<jhass> the rule is self set, I'm the authority :P
<Ox0dea> [k-_: And British English flips them.
<Ox0dea> Yay, standardization!
<apeiros> I wonder what killed ruboto. log says nothing :-/
nettoweb has joined #ruby
<Ox0dea> !xkcd 927
<apeiros> more and more reason to switch.
abreu has quit [Quit: Leaving]
<jhass> ?botsnack
<ruboto> nomnomnomnom
<[k-_> ruboto!
<Ox0dea> >> class<<self;undef to_s end;def method_missing m,*a,&b;a.shift.send m,*a,&b end; join(reverse(to_a(map(chars(to_s(123)), &:succ))))
<shevy> you guys really added very useful commands to ruboto
<ruboto> Ox0dea # => "432" (https://eval.in/411799)
<Ox0dea> [k-_: You asked for top-level functions.
<[k-_> HumanParserError LineTooLongError
bodgix has joined #ruby
<[k-_> what is the join part for?
<[k-_> well till the end of the line
ElShafei has joined #ruby
avril14th has quit [Remote host closed the connection]
rideh has joined #ruby
<ElShafei> Is there any good reference to show how to design and implement Mobile Back-end using RoR ?
<[k-_> oh, it's the example!
<jhass> ?rails ElShafei
<ruboto> ElShafei, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ElShafei> Thank You :-)
rideh has quit [Client Quit]
<Ox0dea> [k-_: Would you prefer being able to write native Ruby like that?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Toska has joined #ruby
TaxtacalJackl has joined #ruby
jtdoncas has quit [Quit: WeeChat 1.1.1]
rafaelabreu has joined #ruby
<[k-_> too bad ruby isn't equiped for composing!
<[k-_> map(["a"]) { |_| "b" }
<[k-_> (irb):2:in `method_missing': stack level too deep (SystemStackError)
<[k-_> it doesnt work :(
tkuchiki has joined #ruby
<Toska> Does anyone know if it's possible to use the Dir[] syntax to get only directories and files with a proper extension? I am trying Dir[File.join('somepath', '**/*')] and would like to return only directories or files ending in .md or .txt
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-_> Dir["*.md"]?
<[k-_> im not sure how glob patterns work though
<Toska> That would get me only md files
<Toska> It's something like:
<Toska> Dir['/path/**/*.{md,txt}'] but this only gets me the files, not subdirectories
sdwrage has joined #ruby
nolic has joined #ruby
cambridge has joined #ruby
<[k-_> directories and (files with proper extension)?
<Ox0dea> Toska: That should do it.
<nolic> exit
<Toska> Hrm, let me take another look
<nolic> oups
<Toska> Perhaps I am missremembering what I had and put the correct syntax here!
nolic has quit [Client Quit]
<adaedra> oui oups
dimasg has quit [Quit: leaving]
ElShafei has quit [Quit: Leaving]
dimasg has joined #ruby
<Ox0dea> [k-_: That map() works fine for me?
Igorshp has joined #ruby
<[k-_> in irb?
<Ox0dea> [k-_: `_` is special in irb.
Askilada has quit [Read error: Connection reset by peer]
<[k-_> so it didnt work for you!
eL_bAmba has joined #ruby
<Ox0dea> But yeah, works fine in irb.
<Ox0dea> >> class<<self;undef to_s end;def method_missing m,*a,&b;a.shift.send m,*a,&b end; map(["a"]) { |_| "b" }
<ruboto> Ox0dea # => ["b"] (https://eval.in/411807)
nhhagen has quit [Read error: Connection reset by peer]
<Ox0dea> I suspect you dun goofed.
<Toska> Ox0dea: Nope, still just get's me the md and txt files, no directories
<Toska> gets*
<Toska> Oh well, I think I am approaching this problem wrong anyhow
nhhagen has joined #ruby
<Ox0dea> Toska: You're trying to match directories that have "extensions"?
<Toska> Ox0dea: No, get both directories AND files with those extentions.
<Toska> extensions*
cpruitt has joined #ruby
jimms has joined #ruby
<Ox0dea> Toska: As in, you have directories whose names end with ".{md,txt}"?
<[k-_> terrible idea
<Toska> Ox0dea: No, i have regular named directories, and I also have files in them that have those extensions
jimms has quit [Client Quit]
<[k-_> wait why do i have => method missing at the back
rafaelabreu has left #ruby ["Leaving"]
<Ox0dea> [k-_: Because method definition returns the method name as a Symbol since forever.
<Ox0dea> >> def foo; end
<ruboto> Ox0dea # => :foo (https://eval.in/411808)
<[k-_> but it wasnt on a new line in the gist
<[k-_> i tried again, still didnt work
<Ox0dea> Toska: I think you must be misinterpreting your results.
<Toska> Ox0dea: Naw, it looks by the docs it's not possible.
<Toska> Ox0dea: Not in one call anyhow.
<Ox0dea> Toska: I'm doing it right now!
<[k-_> why doesnt it work :(
<[k-_> it worked for you and ruboto
<Toska> Ox0dea: And you are getting back something like this: ['a_directory', 'a_file_with.md']?
<Toska> Ox0dea: I am only getting back files named with .md, directories completely excluded
<[k-_> Ox0dea: if i dont do the map on a new line, it works
<Ox0dea> Toska: Ah, my apologies, I didn't realize it was your desire to do something so strange. :P
<Toska> Ox0dea: Haha, no worries.
<[k-_> if i do it on a separate line, it breaks
<[k-_> Ox0dea: can you confirm?
<Ox0dea> Toska: Are you certain you need the directories as well?
malconis has joined #ruby
<sunslide> OK, might be that it's not the trick for me :( any chance there are *wildcards* in ruby and not regexps?
<Ox0dea> [k-_: I'm sure it's somehow to do with defining a top-level #method_missing.
<sunslide> or a flag I could give Regexp to behave as a wildcard and not a full-scale regex?
malconis has quit [Remote host closed the connection]
<[k-_> Ox0dea: but you said it works for you!
<Toska> Ox0dea: Well, I am still trying to figure the best way to go about what I am doing, part of me says I should have directories, the other part says I can simplify this since I implicitely have the directories with the file names. But my task seems like it would be better suited having the directories act as a sort of container object.
<Ox0dea> [k-_: Because I did it all on one line.
alveric__ has quit [Remote host closed the connection]
cambridge has quit [Quit: cambridge]
Guest50 has joined #ruby
malconis has joined #ruby
<[k-_> well then you did not confirm it then!
<Toska> Ox0dea: I am building a proxy into some files that are basically the site documentation, so the url matches the file name, but I want a navigation that matches the file structure.
<[k-_> how could you! ;-;
nateberkopec has joined #ruby
<Ox0dea> Toska: Seems reasonable enough, but the subdirectories are still available to you from the results of that glob.
|\|370 has joined #ruby
<Ox0dea> Toska: dirs = glob_results.map(&File.method(:dirname)).uniq
codecop_ has quit [Quit: Išeinu]
<Toska> Ox0dea: For sure, and that's the way I think it's going to be best to approach it from. I have subclassed the Pathname class and created an obeject for each file, shouldn't be too hard to simplify this a bit.
minmax has quit [Quit: WeeChat 0.4.3]
rafaelabreu has joined #ruby
tmtwd has joined #ruby
<Toska> Ox0dea: Oh I hadn't even thought of doing it that way, smart! Thanks!
<Ox0dea> Happy to help.
<[k-_> such reflection
SpecialBlue has joined #ruby
havenwood has joined #ruby
<[k-_> much powerful
Musashi007 has joined #ruby
<[k-_> izabera: ^
<izabera> o.o
<izabera> looks like dogescript
<MrButh> ok, so I did "bin/rails server" but I don't see anything to show the server is running like node.js does. Is it suppose to have something?
<Ox0dea> Smells like a troll.
<adaedra> ?rails MrButh
<ruboto> MrButh, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<[k-_> izabera: hmm?
khebbie has quit [Remote host closed the connection]
<MrButh> I can't talk in rubyonrails though
<Ox0dea> ?rails MrButh
<ruboto> MrButh, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Ox0dea> Read the thing this time. :P
wpp has quit []
<adaedra> Ox0dea: too many words.
sgambino has joined #ruby
<[k-_> izabera: ruby is a reflective language
<Ox0dea> [k-_: izabera was commenting on your diction, not Method#to_proc.
<heftig> Ox0dea: hm? on rubinius?
<Ox0dea> Oui.
<heftig> as opposed to?
<Ox0dea> The latest?
<heftig> llvm 3.6 removes the old JIT and only has MCJIT
<[k-_> MrButh: #rubyonrails → nickserv → auth → speak
<heftig> rubinius needs the old JIT
<Ox0dea> I see.
<Ox0dea> Thank you for clarifying.
hashrocket has joined #ruby
dc has joined #ruby
Muhannad has joined #ruby
rafaelabreu has quit [Quit: Leaving]
eL_bAmba has quit [Remote host closed the connection]
Muhannad has quit [Max SendQ exceeded]
<Ox0dea> izabera: Are you still considering attempting to learn this language?
gagrio has joined #ruby
<izabera> sure why not
<Ox0dea> Do you really want to know?
Muhannad has joined #ruby
<[k-_> the metaprogramming facilities far surpasses other c-like languages
<izabera> where do i start?
<Ox0dea> izabera: Here:
<Ox0dea> >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
<ruboto> Ox0dea # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/411811)
<Ox0dea> That's the simplest possible implementation of FizzBuzz in Ruby.
<Ox0dea> I advise you to run.
<izabera> yeah ok
<adaedra> >_>
<[k-_> I knew you'd do it!
<Ox0dea> I feel dirty for having done so.
* Ox0dea burns his logs.
quimrstorres has joined #ruby
<Ox0dea> (Heh.)
<[k-_> you were dirty when you played with RubyVM and FrozenCore and stuff
allcentury has joined #ruby
chipotle has joined #ruby
tubuliferous_ has joined #ruby
bmurt has joined #ruby
f3ttX] has joined #ruby
* adaedra sets Ox0dea on fire
weemsledeux has joined #ruby
<Ox0dea> adaedra: Was this you? http://i.imgur.com/KdLhvc2.jpg
<adaedra> Ox0dea: no way I would write in Caps Lock.
yh has joined #ruby
RegulationD has joined #ruby
Muhannad has quit [Ping timeout: 246 seconds]
kp666 has quit [Remote host closed the connection]
jud has joined #ruby
jud has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
<adaedra> I've already seen that somewhere, but where?
davedev24 has joined #ruby
rideh has joined #ruby
gizmore has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
<Ox0dea> f3ttX]: Should this be construed as "admission by repetition"?
<Ox0dea> I can't fathom why else you'd repost the link so soon.
rafaelabreu has joined #ruby
Musashi007 has quit [Quit: Musashi007]
chills42 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
<[k-_> unidentified logo
<Ox0dea> f3ttX]: Where is (what's left of) the body?
prestorium has joined #ruby
apfeluser has quit [Ping timeout: 246 seconds]
apfeluser has joined #ruby
apfeluser has quit [Remote host closed the connection]
<Ox0dea> adaedra: I plucked it from a dump recently posted to /r/creepy, but I hadn't seen it before that.
<adaedra> Ox0dea: I was talking about f3ttX]'s link. It was a joke.
sunslide has quit [Ping timeout: 246 seconds]
chills42 has joined #ruby
JoshL has joined #ruby
Feyn has quit [Quit: Leaving]
<adaedra> Why would you rip someone in pieces
<adaedra> Why you can sell his body to scientists that will do it for you
thiagovsk has joined #ruby
eL_bAmba has joined #ruby
<adaedra> When*
<ashleyhindle> Probably the process adaedra
<ashleyhindle> All the fun is in the process
<ashleyhindle> It's not all about money
Rickmasta has joined #ruby
blackmesa has joined #ruby
<[k-_> it's not about the money money money
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> adaedra: only managers outsource. are you a manager?
<adaedra> no
<centrx> adaedra, Then get back to work!
<Ox0dea> And share your findings with the scientific community!
<adaedra> Ok :(
sevenseacat has joined #ruby
leesharma has joined #ruby
* adaedra tears Ox0dea arm
<Ox0dea> We know how arms work.
<Ox0dea> Do the gray blob.
<dkakoti> Hi any cool project to work in ruby (beginner). I am learning ruby
OrbitalKitten has joined #ruby
<adaedra> github.com has plenty
<dkakoti> they are very complex.
<[k-_> that's why i dont look at other's ruby code!
<adaedra> not all of them
Muhannad has joined #ruby
<[k-_> s/r's/rs'
<havenwood> dkakoti: the easy pickings often get done quickly but if you read a lot of code you'll find stuff!
<shevy> @@colour = "colour"
<shevy> aaah the beauty of class variables
<adaedra> yuck
rbennacer has joined #ruby
<[k-_> look, haskell is only just behind ruby!
Muhannad has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 246 seconds]
<dkakoti> @Ox0dea thanks lot
<Ox0dea> shevy: Module variables are slightly more defensible.
benlovell has joined #ruby
<shevy> this is the original code http://pastie.org/10329493 - it is funny in that the variable name in itself is written in UK english, but it may include the US english variant
<dkakoti> @havenwood u r rit.
<Ox0dea> Wat.
lannonbr has joined #ruby
<adaedra> If you're about saving letters, you can drop the @ too
<havenwood> dkakoti: I'd suggest reviewing documentation to find examples that don't work to fix. Or places to improve. That's really helpful and gets you up to speed on the code while you're doing it.
<Ox0dea> dkakoti: u bout dat?
Kully3xf has quit [Ping timeout: 250 seconds]
<shevy> at_exit { exit status.nil? ? 0 : status >> 8 }
<Ox0dea> That... does not do what that person thinks it does.
Doow has joined #ruby
<shevy> hehe
<shevy> I liked what it does... but I can not work with this code
Vile` has joined #ruby
<Ox0dea> Kernel.exit doesn't prevent other exit handlers being run.
dkakoti has quit [Quit: Leaving]
<adaedra> gdby
nettoweb has joined #ruby
<Ox0dea> l8r
dblessing has joined #ruby
<[k-_> that is the same as if exit........
kobain has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I see a lot of ruby code out there that I find unusable to adjust to the modern era :(
<shevy> like this one http://www.erikveen.dds.nl/rubywebdialogs/ - cool idea, but the code is just unusable
Doow has quit [Client Quit]
Doow has joined #ruby
charliesome has quit [Quit: zzz]
cpruitt has quit [Quit: cpruitt]
<shevy> can't one of you update its code :)
<Ox0dea> > 1.8.2 worked fine.
<shevy> hehe
<[k-_> cant you update it yourself?!
<[k-_> you are in this line of business, shevy!
<adaedra> you have to write code for that
<[k-_> lol, me write code
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hinbody has joined #ruby
<shevy> [k-_ I tried to update it but it is confusing
<shevy> I can not even get it to install
<Ox0dea> shevy: You really ought to embrace JavaScript, bud. :(
<shevy> what for
* adaedra hits Ox0dea with his own arm
<Ox0dea> You gals must be wearing blinders or something.
Doow has quit [Client Quit]
sshuff|gone is now known as sshuff
bodgix has quit [Remote host closed the connection]
<adaedra> no
Doow has joined #ruby
sross_work|2 has quit [Read error: Connection reset by peer]
Guest50 has joined #ruby
<Ox0dea> adaedra: 142% of all new code is written in JavaScript.
devdazed has joined #ruby
<adaedra> Care level: ##############[ ]
OrbitalKitten has joined #ruby
bodgix has joined #ruby
<ccooke> Ox0dea: so what you're saying is, new code is 42% less efficient than old?
<Ox0dea> ccooke: No, the percentage is skewed by the plethora of languages which "transpile" to JavaScript.
<shevy> the browser is a huge target audience
jeremy04 has joined #ruby
<ccooke> Ox0dea: heh
<[k-_> no one embraces functional in javascript
<Ox0dea> [k-_: Sounds like you need to be made aware of raganwald.
<yorickpeterse> You can't exactly do proper functional programming in Javascript
<adaedra> too many people embraces JavaScript
<Ox0dea> yorickpeterse: Bollocks.
<yorickpeterse> Too many things have side effects, prototype based programming is inheritly mutable
<havenwood> You can't exactly do proper programming in Javascript*
Renich has quit [Ping timeout: 260 seconds]
<Ox0dea> /part #parrots
<adaedra> +1
<bougyman> why not?
<Ox0dea> Because they read it somewhere.
<bougyman> not that you would or should, but I see no reason why you can't.
<bougyman> especially with ES6
<yorickpeterse> You can write in a style that resembles functional programming, but you can't do it in the purist sense
juanpaucar has joined #ruby
<Ox0dea> BFD.
<yorickpeterse> The same applies to Ruby, or really any other programming language
<centrx> other than Haskell you mean?
<bougyman> pony-lang begs to differ.
<adaedra> I like that the person who says "You should do JavaScript, look how many people does" says we are parrots.
<yorickpeterse> Haskell is a whole different package
<bougyman> and they have a mathematical proof to back up their claims...
Renich has joined #ruby
<yorickpeterse> bougyman: that's re to?
<yorickpeterse> Not sure if I'm following
tenderlove has quit [Ping timeout: 272 seconds]
<shevy> nobody follows javascript
<Ox0dea> adaedra: Being on an inevitable bandwagon into the future, for better or worse, is quite different from regurgitating falsified claims.
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-_> there is a book for functional in javascript
<Ox0dea> [k-_: Quirky Birds?
<[k-_> no
<[k-_> the new one
<[k-_> by dr boolean
<havenwood> [k-_: Clojurescript?
<yorickpeterse> I like the idea of Javascript being the C for the browsers. It's popular, just as broken and not likely to go away soon
umgrosscol has joined #ruby
<[k-_> a book, a book!
<yorickpeterse> but at least you can't have heartbleed in Javascript...I think?
MatrixBridge has quit [Remote host closed the connection]
<Ox0dea> yorickpeterse: "C for the browsers"?
attamusc has joined #ruby
<adaedra> Ox0dea: so if I don't like JavaScript, it can only be because I read things saying I should not like it?
silkfox has joined #ruby
<Ox0dea> adaedra: Well, let's get right down to the thing; what don't you like about JavaScript?
rbennacer has quit [Remote host closed the connection]
<[k-_> YES, YES!
djcp has joined #ruby
<havenwood> Javascript has kidnapped us and the Stockholm syndrome is setting in...
* [k-_ bookmarks
<Ox0dea> [k-_: It's so good.
<Ox0dea> Reginald Braithwaite : JavaScript :: Tom Stuart : Ruby
<[k-_> Reginald Braithwaite to javascript :: tom stuart to ruby
<Ox0dea> Thanks, math guy.
MatrixBridge has joined #ruby
<[k-_> i dont understand the ::
<Ox0dea> "as".
<adaedra> Ox0dea: A messy and incomplete library, no proper support for hashes, and the fucked-up object system
<yorickpeterse> [k-_: it's for those too cool to just write English
<yorickpeterse> adaedra: EM6 has a Map
TaxtacalJackl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> adaedra: Very insightful.
<adaedra> Yeah, EM6
<yorickpeterse> and prototype OO is pefectly fine
<adaedra> We're far from here
<yorickpeterse> However, prior to ES6 there wasn't really a proper message passing system
<[k-_> Ox0dea: how many bookmarks do you have
<yorickpeterse> I _think_ ES6 now has a method_missing of sorts
<[k-_> yay, metaprogramming in ES6!
<[k-_> fun!
jgpawletko has quit [Quit: jgpawletko]
tkuchiki has quit [Remote host closed the connection]
jgpawletko has joined #ruby
<Ox0dea> yorickpeterse: Firefox has had noSuchMethod() for ages.
paulcsmith has joined #ruby
whippythellama has joined #ruby
<yorickpeterse> Ox0dea: since when is Firefox the standard?
<yorickpeterse> oh right, it isn't
<[k-_> i was surprised that an impure function could be turned into a pure one easily
<havenwood> Elm or Clojurescript?
<Ox0dea> [k-_: It's all about hiding what you did.
<ebarrett> chrisseaton: here?
<[k-_> javascript
<[k-_> Ox0dea: elaborate?
jeremy04 has quit [Remote host closed the connection]
dc has quit []
<Ox0dea> Wrapping the impurities to expose a pure interface?
jeremy04 has joined #ruby
<[k-_> SUCH CLEVER!
<adaedra> Ox0dea: but if I read you, we should just follow the crowd and do what is most popular?
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
<Ox0dea> adaedra: Ad hominem means you lose.
<[k-_> that is why we should learn haskell!
<shevy> haskell is not used for real things
<Ox0dea> Haskell was used to send a burrito to the moon in a spacesuit.
<adaedra> Ox0dea: nonono, you misread, I react to "Being on an inevitable bandwagon into the future, for better or worse"
<havenwood> And that burrito was awarded a PhD.
<[k-_> haskell is used for real things
tkuchiki has joined #ruby
<Ox0dea> adaedra: If you don't realize that JavaScript is the dominant language with which software has begun to eat the world, I can only advise you to remove the blindfold, bud.
<yorickpeterse> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse> yay I get to use it
<Ox0dea> That burrito's name? Moonad I.
<[k-_> facebook uses it to check for abusive messages
<adaedra> meh.
turb0 has quit [Quit: Lost terminal]
surs has joined #ruby
surs has quit [Changing host]
surs has joined #ruby
casadei_ has joined #ruby
<shevy> facebook itself is massive abuse!
<adaedra> Ox0dea: I'm curious to see where you read I don't see that.
<[k-_> shevy: just like unusable ruby code!
<shevy> Ox0dea but javascript only won because javascript has the bigget possible market :(
hoey__ is now known as hoey
<atmosx> [k-_: hoh do you know? :-P
<atmosx> s/hoh/how
<Ox0dea> shevy: Aye, we've been doomed to this fate from the start.
<[k-_> know what?
<atmosx> that fb uses haskell
<Ox0dea> shevy: Better to get to know this inevitable devil, no?
<shevy> the empire must strike back
<[k-_> they made a blog post?
<atmosx> [k-_: oh, I'll google it
<Ox0dea> shevy: We can't rebuild the past.
<shevy> the weak man adjusts to the world
<shevy> the strong man adjusts the world to himself
<[k-_> that's why the world hardly changes
prefixed has joined #ruby
<Ox0dea> shevy: A worthless platitude, I'm sure you realize.
<shevy> as you may have noticed [k-_
<yorickpeterse> Ox0dea: we might not be able to rebuild the past, but we can change the future
<shevy> Ox0dea did not write that javascript was used to fly to the moon - it was haskell :)))
<yorickpeterse> Whatever happend in the past is not an excuse for the general sorry state of scripting in the browsers
krz has joined #ruby
<Ox0dea> yorickpeterse: Gonna stop using a browser any time soon?
<yorickpeterse> That's not just limited to JS being poop, but also JS being the only language
sameerynho has quit [Quit: Leaving]
<yorickpeterse> webassembly is pretty interesting
<yorickpeterse> might solve that problem
<[k-_> people are making apps in javascript, brackets, atom
<adaedra> Yeah, but it's not because some people are doing it that everyone has too
<adaedra> And it's not because lots of people use JavaScript that I have to like it
Royalb15 has quit [Quit: Leaving]
<adaedra> Dark future we have if we're doomed to only one language
skyrocker has joined #ruby
skyrocker has left #ruby [#ruby]
<shevy> php
<Ox0dea> adaedra: Why is that "dark"?
<shevy> well it may be easy to create a new programming language, but hard to create a good one
<Ox0dea> adaedra: Would it not be great if all of humanity were able to communicate with itself?
gagrio has quit [Ping timeout: 260 seconds]
chinmay_dd has joined #ruby
<Ox0dea> > The Tower of Babel did nothing wrong.
<adaedra> Ox0dea: you can't please everyone with only one language.
<Ox0dea> adaedra: Communication is about pleasure?
<[k-_> adaedra: that is why no one likes math
<adaedra> Some people do, [k-_
gard has joined #ruby
<shevy> [k-_ haskell dudes love math
<[k-_> math! yay!
<yorickpeterse> dat sin()
<yorickpeterse> omg dem curves
decoponio has joined #ruby
<yorickpeterse> Is that a parabole in your pants or are you just happy to see me?
<yorickpeterse> ok break time
<Ox0dea> Parabola + hyperbole = parabole?
<adaedra> break;
jeremy04_ has joined #ruby
krandi has joined #ruby
andikr has quit [Ping timeout: 244 seconds]
scottschecter has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
<chrisseaton> ebarrett: hello
jeremy04 has quit [Ping timeout: 256 seconds]
gagrio has joined #ruby
<Ox0dea> adaedra: I think you accidentally terminated our discussion prematurely.
hal_9000 has joined #ruby
<adaedra> goto fail;
spider-mario has joined #ruby
<adaedra> Ox0dea: I respected yorickpeterse's break time
aryaching has quit [Ping timeout: 264 seconds]
<Ox0dea> In that case, I trust you'll remember to clarify your position when he gets back.
<[k-_> such sin, much curve
riotjones has quit [Remote host closed the connection]
<[k-_> sin2 x + cos2 x = 1!
<Ox0dea> Euler's identity is better.
krandi has quit [Ping timeout: 250 seconds]
<adaedra> Ox0dea: I have some work to do, and it's more suited for offtopic. Later maybe.
arup_r has quit []
<Ox0dea> What a disappointingly abrupt change of heart, but okay.
<adaedra> Sorry for having things to do.
<Ox0dea> inorite
danzilio has joined #ruby
<[k-_> ultimately, functional is the best
<Ox0dea> [k-_: Church > Turing, you say?
dorei has joined #ruby
danzilio has quit [Client Quit]
<[k-_> yea
<Ox0dea> Heathen.
<[k-_> or something like that
<[k-_> i meant the paradigm
<[k-_> the paradigm!
TvL2386 has quit [Quit: Ex-Chat]
chills42 has quit [Remote host closed the connection]
symm- has joined #ruby
danzilio has joined #ruby
<ebarrett> hey chris
<ebarrett> am i right in thinking jruby wont work with the new graal repos?
tenderlove has joined #ruby
<ebarrett> chrisseaton: "This version of JRuby is built against Graal 0.7 b
<ebarrett> ut you are using it with version 0.9-dev - either update Graal or use with (-J)-original to disable Graal and ignore this error
<ebarrett> "
dgutierrez1287 has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<chrisseaton> Hmm I thought I disabled that message
<chrisseaton> What commit are you on?
<yorickpeterse> Ox0dea: errr parabola apparently
<yorickpeterse> dang it I keep ruining my jokes
tagrudev has quit [Remote host closed the connection]
acovrig has joined #ruby
<acovrig> I have an object (item.start.dateTime) that returns ‘2006-04-20 11:00:00 -0400’; I would like to compare it to 3 vars (month, day, year); (is the item.start.dateTime the same as those 3 vars); what is the best way to do that?
<acovrig> I’m curently failing at `item.start.dateTime == DateTime.strptime("#{month} #{i}, #{@year}", "%B %d, %Y”)`
michael_mbp has quit [Excess Flood]
skade has quit [Quit: Computer has gone to sleep.]
<[k-_> shevy: DeBot isn't back yet
<[k-_> JOIN US!
chills42 has joined #ruby
<acovrig> it looks like I’m trying to compare a Time object with a DateTime object...
Tempesta has joined #ruby
michael_mbp has joined #ruby
<Ox0dea> acovrig: Should you actually be doing that?
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> acovrig: Is item.start.dateTime actually a String?
<acovrig> Ox0dea: no, item.start.dateTime.class => ‘Time’
dopie has joined #ruby
<Ox0dea> acovrig: So DateTime doesn't actually factor in?
<apeiros> acovrig: your month variable contains the month as an english name?
<acovrig> apeiros: yes
rjno has joined #ruby
<acovrig> Ox0dea: I was using DateTime.strptime, I switched to Time.strptime and that comparison seems to be working
<apeiros> and all you need is an equality test?
<acovrig> yes
saddad has joined #ruby
<apeiros> I think I'd actually go the other way and convert the datetime to a string. I think that's less effort.
<apeiros> but it'd be similar
sdwrage has quit [Quit: Leaving]
dimasg has quit [Ping timeout: 250 seconds]
<apeiros> don't think there's anything much better. either strftime on lhs, or strptime on rhs
djstorm has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
<apeiros> you have the day as a string in a guaranteed format? i.e. always with leading zero or never with leading zero?
ndrei has quit [Ping timeout: 240 seconds]
doodleha_ has joined #ruby
<apeiros> yeah, about 3-4x faster going the other way (strftime and compare strings instead of strptime and compare times)
solars has quit [Ping timeout: 252 seconds]
theery has joined #ruby
theery has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaleido has joined #ruby
jeremy04_ has quit [Remote host closed the connection]
jeremy04 has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
gaboesquivel has joined #ruby
rbennacer has joined #ruby
nzst has joined #ruby
ajafo has joined #ruby
minotep has quit [Read error: Connection reset by peer]
lannonbr has quit [Quit: WeeChat 1.2]
<ebarrett> chrisseaton: newest jruby
<ebarrett> just realised i asked in the wrong channel
workmad3 has quit [Quit: leaving]
michael_mbp has quit [Excess Flood]
workmad3 has joined #ruby
kies^ has joined #ruby
d10n-work has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
<havenwood> yay Truffle mode!
aganov has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
jbw has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
chills42 has quit [Remote host closed the connection]
michael_mbp has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
freerobby has joined #ruby
rbennacer has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Client Quit]
andikr has joined #ruby
chills42 has joined #ruby
mjuszczak has joined #ruby
jbw has joined #ruby
rbennacer has joined #ruby
chills42 has quit [Remote host closed the connection]
acovrig has quit [Quit: acovrig]
melter has joined #ruby
msnyon has joined #ruby
gard has quit [Ping timeout: 272 seconds]
senayar has quit [Remote host closed the connection]
<chrisseaton> ebarrett: there's an option to disable that check as it is not needed at the moment
senayar has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
banister has joined #ruby
weemsledeux has quit [Ping timeout: 240 seconds]
chills42 has joined #ruby
MrButh has quit [Ping timeout: 264 seconds]
<chrisseaton> -Xtruffle.runtime.version_check=false
arturmartins has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has quit [Ping timeout: 252 seconds]
chinmay_dd has joined #ruby
Renich has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
Renich has joined #ruby
wpp has joined #ruby
icebourg has joined #ruby
aryaching has joined #ruby
livathinos has quit []
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
anisha has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
Coldblackice has joined #ruby
gambl0re has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
<bougyman> /21
paulcsmith has joined #ruby
njr has quit [Ping timeout: 265 seconds]
j_mcnally has joined #ruby
wpp has quit []
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 265 seconds]
leesharma has quit [Ping timeout: 272 seconds]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
jeremy04_ has joined #ruby
jpfuentes2 has joined #ruby
jeremy04_ has quit [Remote host closed the connection]
jeremy04_ has joined #ruby
s2013 has joined #ruby
Igorshp has quit [Remote host closed the connection]
jeremy04 has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
omfgtora_ has joined #ruby
riotjones has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
andikr has quit [Ping timeout: 240 seconds]
omfgtora has quit [Ping timeout: 250 seconds]
dseitz has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
gambl0re has quit [Read error: Connection reset by peer]
paulcsmith has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
domgetter has joined #ruby
kies^ has quit [Ping timeout: 265 seconds]
gwendall has joined #ruby
railsraider has joined #ruby
Xaitec has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
Xaitec has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
skade has joined #ruby
TaxtacalJackl has joined #ruby
BTRE has quit [Ping timeout: 244 seconds]
schaerli_ has quit [Remote host closed the connection]
leesharma has joined #ruby
_blank has joined #ruby
jespada has quit [Quit: WeeChat 1.1.1]
<prefixed> hey
<centrx> Hi
<prefixed> why does File.stat().mode come back with 6 digits?
zcreative has joined #ruby
<domgetter> those numbers represent the file ownership attributes
<prefixed> domgetter ok. when I run stat on the same host, i get 3 digits
TaxtacalJackl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
omfgtora_ has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
shadoi has joined #ruby
Doow has quit [Quit: Leaving]
prefixed has quit [Changing host]
prefixed has joined #ruby
omfgtora_ has joined #ruby
Kully3xf has joined #ruby
<prefixed> yeah? that shows 10 digits
Kully3xf has left #ruby [#ruby]
nhhagen has quit [Remote host closed the connection]
<domgetter> >> File.stat(".").mode.to_s(8)
<ruboto> domgetter # => "40755" (https://eval.in/411913)
<prefixed> and that shows 5
<domgetter> the number that .mode gives back has to be converted to octal to understand what permissions there are
<prefixed> what are you trying to say
_blank has quit [Ping timeout: 256 seconds]
moshee has quit [Ping timeout: 252 seconds]
<prefixed> permissions = sprintf("%o", File.stat(path).mode)
<prefixed> gives me six digits
<centrx> prefixed, yeah I'm not sure what the first 3 are for, the last 3 are the user permissions
<domgetter> prefixed: I don't understand your question. Can you elaborate on what you're trying to understand?
eL_bAmba has quit [Quit: Saliendo]
<centrx> prefixed, I thought the first 3 might be the group permissions, but it might also be various special bits that can be set on a file, special options
<centrx> prefixed, 100 is not really a common group permission
aryaching has quit []
<prefixed> yes
BTRE has joined #ruby
<domgetter> are you trying to understand what the number means in general? Or what the particular numbers mean that you get back?
kies^ has joined #ruby
<prefixed> i don't understand why there are six digits. i've never seen 6 digits before + it doesn't conform to any other permissions stylings i've ever seen
sevenseacat has quit [Quit: .]
<centrx> prefixed, The stat(2) that the Ruby docs refer to is the C stat function, not the command-line stat command - http://linux.die.net/man/2/stat
myztic has quit [Ping timeout: 265 seconds]
<domgetter> prefixed: ah okay. 6 digits can happen for something like "100644" if it's just a normal file
lannonbr has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
<domgetter> for example, git stores permission levels for saved files and keeps track of whether its a file, a directory, or an executable
<domgetter> and 100644 will be a non-executable file. the 100 means not executable
speaking1ode has quit [Quit: Lost terminal]
<adaedra> o.O
lordkryss has quit [Quit: Connection closed for inactivity]
_blank has joined #ruby
<domgetter> oh nevermind, 100 doesn't mean that. its the 644 part that means its not executable
<adaedra> I prefer that
<adaedra> what does ls -l says about your file, domgetter ?
<prefixed> this is really annoying
<domgetter> adaedra: it says 'ls' is not recognized as an internal or external command, operable program or batch file.
safeforge has joined #ruby
<domgetter> prefixed: what do you need the result of #mode for?
<adaedra> aaaaaaaaaah Windows.
<prefixed> I am doing some file diffing based on a certain file information
<domgetter> adaedra: :P
countryHick has joined #ruby
omfgtora_ has quit [Ping timeout: 256 seconds]
djstorm has joined #ruby
<adaedra> Who expects Windows to work like other systems?
surs has quit [Quit: WeeChat 0.3.7]
<platzhirsch> Best way to check if [array_of_exceptions] includes the current exception e.cause?
<platzhirsch> [...].includes?(e.cause.class) looks wonky
<domgetter> prefixed: what is it about the 6 numbers you get back that is causing a problem?
<prefixed> linux stat comes back with 3 digits, while ruby stat comes back with 6
tkuchiki has quit [Remote host closed the connection]
j4cknewt has joined #ruby
<tsunamie> pwd
<prefixed> I suppose i could take just the last three digits, but that seems hacky
<tsunamie> ls
<domgetter> prefixed: what does sprintf("%o", File.stat(path).mode) return in your example?
<domgetter> You'll probably be okay with taking the last 3 digits
<prefixed> 100644
quimrstorres has quit [Remote host closed the connection]
<prefixed> probably
<prefixed> that's the problem
<domgetter> the 644 is the part you want.
<prefixed> i'd think so
RandyT has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
<adaedra> % 0100
<adaedra> er, % 01000
Igorshp has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has quit []
<domgetter> >> (0100644 % 01000).to_s(8)
<ruboto> domgetter # => "644" (https://eval.in/411914)
myztic has joined #ruby
tkuchiki has joined #ruby
<tsunamie> hi guys when I try to do a loop when opening files usig something like this packages.each do |key, value| file = File.read('$key/$key-$value.json') end it states that no such file or folder exists. I note that in the error the variables are in there and not the values
<tsunamie> how do I gte it to resolve the values?
RandyT has joined #ruby
_cball has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<adaedra> read up on string interpolation
<tsunamie> adaedra, it's not a string it's a hash from a json
j4cknewt has quit [Remote host closed the connection]
<adaedra> '$key/$key-$value.json' <= this is a string, and you are trying to do string interpolation.
quimrstorres has joined #ruby
Rollabun_ has joined #ruby
<adaedra> but you're doing it wrong.
<prefixed> sprintf("%o", File.stat(path).mode).split(//).last(3).join("").to_s
<prefixed> yolo
<adaedra> o.O
<domgetter> prefixed: You can just do File.stat(path).mode.to_s(8)
<tsunamie> adaedra, so what is the right way of doing it. I keep asking and I keep getting told to learn Ruby. I really don't feel like this is helpful
<adaedra> no, indeed, learning ruby is not helpful to code in ruby, you're right.
gwendall has quit []
<tsunamie> adaedra, you know what I mean
ndrei has joined #ruby
<domgetter> >> key = "app"; value = "model"; "#{key}/#{key}-#{value}.json"
<ruboto> domgetter # => "app/app-model.json" (https://eval.in/411916)
Hounddog has quit [Read error: Connection reset by peer]
Miphix has joined #ruby
<domgetter> tsunamie: one way to to string interpolation is to have #{} inside double quotes, and putting whatever ruby code you want to execute inside the {}
Rollabunna has quit [Ping timeout: 244 seconds]
<domgetter> so, "Hello, #{name}" will put "Hello, Bill" if name = "Bill". You can put any Ruby code in there though. >> "2 + 2 = #{2 + 2}"
<domgetter> >> "2 + 2 = #{2 + 2}"
<ruboto> domgetter # => "2 + 2 = 4" (https://eval.in/411917)
speakingcode has joined #ruby
Rollabun_ has quit [Ping timeout: 246 seconds]
cball has joined #ruby
<domgetter> and, of course, single quotes don't work
<domgetter> >> '2 + 2 = #{2 + 2}'
<ruboto> domgetter # => "2 + 2 = \#{2 + 2}" (https://eval.in/411919)
cball is now known as _cball
TomyWork has quit [Ping timeout: 264 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
RobertBirnie has joined #ruby
rideh has quit [Quit: zap]
rehat has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
RobertBirnie has joined #ruby
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
dfockler has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
TaxtacalJackl has joined #ruby
segfalt has quit [Quit: segfalt]
chinmay_dd has quit [Ping timeout: 246 seconds]
<tsunamie> domgetter THANK YOU!
scpike has quit [Quit: leaving]
mleung has joined #ruby
scpike has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
Xaitec has quit [Ping timeout: 265 seconds]
chinmay_dd has joined #ruby
|\|IGGER has joined #ruby
<|\|IGGER> hi
<BraddPitt> nice nick
<|\|IGGER> thanks
<|\|IGGER> you have a nice nick too BraddPitt
<dfockler> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, zenspider, drbrain, rubyhacker1, slyphon, Aria, ljarvis
Xaitec has joined #ruby
_blank is now known as omfgtora
<havenwood> !ban |\|IGGER !T 1d Racism.
|\|IGGER was banned on #ruby by ChanServ [|\|IGGER!*@*]
|\|IGGER was kicked from #ruby by ChanServ [Banned: Racism.]
<BraddPitt> there we go
<Aria> Thank you! Was just getting there.
jpfuentes2 has quit [Ping timeout: 250 seconds]
<adaedra> Too slow
<adaedra> You still get a cookie
<adaedra> ?cookie Aria
<ruboto> Aria, here's your cookie:
<Aria> Aw, thanks. I like cookies.
prettiestPony11 has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
railsraider has quit [Ping timeout: 256 seconds]
Igorshp has quit [Read error: Connection reset by peer]
hectortrope has quit [Ping timeout: 264 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
MVPhelp_ has joined #ruby
<kallisti5> ayone have the time to review this pull request? https://github.com/ruby/ruby/pull/984 should be pretty simple. No change / impact to any platforms except Haiku.
acovrig has joined #ruby
dudedudeman has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
hectortrope has joined #ruby
hectortrope has joined #ruby
hectortrope has quit [Changing host]
leat has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
TaxtacalJackl has quit [Quit: Textual IRC Client: www.textualapp.com]
MVPhelp has quit [Ping timeout: 244 seconds]
bodgix has left #ruby [#ruby]
towski_ has joined #ruby
<tsunamie> domgetter - omg I understand these examples THANK YOU!
MrButh has joined #ruby
<shevy> yay! so I can use ruby on haiku finally
leafybasil has joined #ruby
<kallisti5> shevy: well.. it crashes a lot
<kallisti5> but it builds (tm)
<kallisti5> something threading I think :-\
Guest50 has joined #ruby
|\|370 has quit []
senayar has quit []
Iskarlar has quit [Ping timeout: 250 seconds]
gamename has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
graydot has joined #ruby
<MrButh> haiku?
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hanmac has quit [Ping timeout: 244 seconds]
<kallisti5> think modern BeOS
<adaedra> With real Google development methods (Having a permanent "Beta" badge)
<ytti> TempleOS 4 lyfe
<kallisti5> adaedra: :-D
<adaedra> Long time I did not look what Haiku becomes
<kallisti5> we're alpha at the moment (10 years! woot!)
<kallisti5> almost beta
<adaedra> woohoo
OrbitalKitten has joined #ruby
* kallisti5 is trying to fix that
<adaedra> maybe you'll be out before GNU/Hurd at this rate
fractalis has joined #ruby
<shevy> GNU Hurd will be ready next year, along with the Linux Desktop of the Year
<kallisti5> jeeze.. Enlightenment 17 beat us.
<kallisti5> that suprised me
blandflakes has joined #ruby
rbennacer has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
theery has joined #ruby
towski_ has quit [Remote host closed the connection]
solars has joined #ruby
<ebarrett> chrisseaton: presumably not -J-original, as this disables graal
railsraider has joined #ruby
<chrisseaton> ebarrett: no, you just want -Xtruffle.runtime.version_check=false and -J-server
<ebarrett> ah great
<ebarrett> sorry for all of these questions
Alayde has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
<miah> sup
<chrisseaton> ebarrett: np
<chrisseaton> ebarrett: I don't understand what is going on with this check - not sure how it's been running since 0.7 which was ages ago
pdoherty has joined #ruby
<ebarrett> chrisseaton: something in the graal restructure seems to have exposed it
<chrisseaton> ebarrett: actually I remember now - graal.version went away, so the check didn't do anyhting
baroquebobcat has joined #ruby
yeticry has joined #ruby
<ebarrett> chrisseaton: if you push a fix, let me know, as I will happily update and use it ;)
<ebarrett> otherwise I need the workaround in our benchmark runner
jbw has quit [Ping timeout: 246 seconds]
leat has joined #ruby
<ebarrett> the workaround does work though
mdavid613 has joined #ruby
zacstewart has joined #ruby
<chrisseaton> ebarrett: I'm currently doing a refactoring which changes our base-class object, so my brain is a bit frazzled at the moment
jbw has joined #ruby
<ebarrett> no worries
<ebarrett> i'm grateful for the workaround :)
jbw has quit [Max SendQ exceeded]
yeticry has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
jbw has joined #ruby
hyperdrive has joined #ruby
dgutierrez1287 has joined #ruby
rafaelabreu has quit [Quit: Leaving]
yeticry has joined #ruby
msnyon has joined #ruby
<shevy> yo miah
hahuang61 has joined #ruby
dudedudeman has joined #ruby
hanmac has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
andikr has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 272 seconds]
Philipp__ has quit [Remote host closed the connection]
theery has quit []
blackmesa has quit [Ping timeout: 260 seconds]
<havenwood> hellooo
atmosx has quit [Ping timeout: 252 seconds]
Philipp__ has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
dgutierrez1287 has quit [Ping timeout: 272 seconds]
Philipp__ has quit [Read error: Connection reset by peer]
paulcsmith_ has joined #ruby
paulcsmith has quit [Read error: Connection reset by peer]
bricker has joined #ruby
<adaedra> hallooo
blackmesa has joined #ruby
<shevy> hillooo
<adaedra> hallååå
rakm has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<dudedudeman> shevy:
blaines has joined #ruby
<shevy> yo dude dude man
tkuchiki has quit [Remote host closed the connection]
<dudedudeman> how's life?
<shevy> it's hot again in europe... 34°C
<adaedra> Speak for your part of Europe
<adaedra> It's 26°C here
<Toska> It's still rainy and cold in Ireland...
<dudedudeman> it's hot everywhere. global warming and all
CorySimmons has joined #ruby
<havenwood> require 'regexp-examples'; /h[aeiou]ll[aeiou]{3}/.examples
pawnbox has joined #ruby
raz has joined #ruby
<adaedra> this doesn't include hallååå!
<havenwood> mm, though last letter should be same repeated
<havenwood> also non-ASCII <- adaedra
<adaedra> I don't know in which ISO-8859 it is
mikecmpbll has quit [Ping timeout: 240 seconds]
withnale____ has quit [Quit: Be back later ...]
yalue has joined #ruby
<raz> so, El Capitan is shipping with a broken Ruby (no gem installation possible). is any high profiler rubyist around to blog about it so apple possibly takes their foot outta their mouth before the official release?
failshell has quit [Remote host closed the connection]
j4cknewt has joined #ruby
<adaedra> what do you mean by "no gem installation possible"?
<mistym> raz: What's broken? Did you file a radar?
NeverDie has joined #ruby
<havenwood> raz: I haven't tried El Capitan yet. What happens when you: sudo gem install
<raz> adaedra: their new "rootless" security theater prevents even root from writing to /usr/bin
<raz> so "sudo gem install" bombs out
<raz> for gems that have executables
<adaedra> let me guess: it tries to install to /usr/bin and gets blocked by rootless
<mistym> Ahhh, right
dudedudeman has quit [Quit: Leaving.]
<adaedra> aaaaaand ninja'd
<havenwood> ah
<mistym> Did you file a radar?
acovrig_ has joined #ruby
tenderlove has quit [Quit: Leaving...]
dudedudeman has joined #ruby
<raz> mistym: i typed a description of my problem into vim and saved it to /dev/null
<raz> that's about equivalent, right?
<havenwood> raz: They should switch to a --user-install default.
<adaedra> raz: curiosity, what does ruby -v says
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<kallisti5> we've had rootless for some time in Haiku. We have a user-install to fix it
chthon has quit [Ping timeout: 244 seconds]
<raz> adaedra: i don't have el cap myself, i just got this filed as a bug against a gem of mine on github
Zai00 has quit [Quit: Zai00]
<adaedra> Oh
Rollabunna has joined #ruby
acovrig has quit [Ping timeout: 250 seconds]
acovrig_ is now known as acovrig
<raz> adaedra: the user reproduced it with another gem as well, so...
<mistym> I'm in the dev beta program, I'll file a radar then
* raz predicts a lot of gems will get similar bug reports after the release of el kap ;)
<adaedra> then do user-install in the meantime or use rbenv/chruby/rvm/whatever
<raz> mistym: thanks!
<raz> adaedra: yes that's what i told the user. it's still a problem if el cap gets released like this tho.
fractalis has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
<raz> s/if/when/
<raz> hence someone like yehuda or so should blog about it
<adaedra> They would have to change system gem path
stan has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
<adaedra> Or "If you're a dev disable rootless lol"
<raz> well, most devs probably run on rbenv anyway
fractalis has joined #ruby
<raz> this is more for the poor sobs who believe the "gem install foo" lie that is still percolated on so many github READMEs ;)
icebourg has quit [Read error: Connection reset by peer]
pengin has joined #ruby
<workmad3> raz: does your github readme say to use `sudo gem install`? ;)
benlovell has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
fantazo has joined #ruby
<raz> workmad3: no it doesn't.. if it wanted to be honest the install-section would have to span 3 pages
k3asd` has joined #ruby
<raz> try "gem install foo", haha, just kidding, try with sudo, but that will probably also not work
yqt has quit [Ping timeout: 250 seconds]
r_baron has joined #ruby
voidnoid has joined #ruby
<raz> followed by an elaborate excursion about ruby version managers, sandboxes, bundler, shell search paths and why so many kids love golang
<workmad3> raz: hehe :) you should write those 3 sections, stick it up on a blog somewhere and then campaign to have the README templates for gems replace 'how to install' sections with a link to the article...
Rollabunna has quit [Ping timeout: 244 seconds]
<raz> workmad3: that's be just sad on so many levels :/
jbw has quit [Ping timeout: 272 seconds]
<adaedra> or about gem install --user-install
<raz> adaedra: why is that not the default?
<adaedra> Depends on the systems
<raz> why?
<adaedra> echo 'gem: --user-install' | sudo tee -a /etc/gemrc
* raz doesn't speaks japanese but has a hunch someone on these japanese mailing lists is a huge troll
nzst has quit [Ping timeout: 264 seconds]
icebourg has joined #ruby
icebourg has quit [Client Quit]
imfilp has joined #ruby
<miah> planning on switching to a linux laptop before next osx release. that was the plan last time too, but my laptop from work is now old enough for something new =)
<chrisseaton> ebarrett: I've pushed a patch that just removes that check for now - it does weird things on both branches
voidnoid has left #ruby [#ruby]
<shevy> raz lol how can you know there is a troll if you can not identify what he writes :)
<raz> adaedra: well, it should simply be the default. which everyone can conclude by thinking for all of 3 seconds about it.
tubuliferous_ has joined #ruby
<raz> shevy: i can spot him by his influence on core decisions.. such as something like --user-install apparently existing but not being the default ;)
<raz> also: bundler
<raz> that can only be an elaborate prank, right?
<shevy> bundler came after gem
<shevy> from the rails corner
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<raz> oh god, i'll just stop now ;)
<raz> just came here to report the el kap issue
yfeldblum has joined #ruby
<havenwood> raz: gem i -g
swills has quit [Read error: Connection reset by peer]
BTRE has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
pawnbox has quit [Remote host closed the connection]
allcentury has quit [Quit: WeeChat 1.2]
* havenwood tries to resist the urge to install El Capitan
tubuliferous_ has quit [Ping timeout: 264 seconds]
tjohnson has joined #ruby
<miah> install Mandrake linux for a similar result
pawnbox has joined #ruby
bhorn1 is now known as bhorn1|lunch
sshuff is now known as sshuff|gone
<raz> it's sad that scripting languages have been broken everywhere for so long that nobody even expects the distro version to work anymore
<shevy> that is to be expected
<shevy> debian eliminates mkmf by default for instance
chenillen_ has joined #ruby
skade has quit [Ping timeout: 272 seconds]
<raz> well i'd argue the languages should have long adapted by now
<shevy> adapted to what precisely? You can avoid distributions from crippling a language how?
<raz> i mean, ruby is a tiny bit better off than python.. but still a trainwreck by every metric
thiagovsk has quit [Quit: Connection closed for inactivity]
isale-eko has joined #ruby
<raz> shevy: by defaulting to installing to the home-directory, which should have been the default since the start anyway
swgillespie has joined #ruby
<shevy> nope, this would also break the debian way
xfbs has joined #ruby
<raz> ?
skade has joined #ruby
<chrisseaton> ebarrett: a simpler way to use Graal is from graal-compiler just do ../jvmci/jdk1.8.0_51/product/bin/java
jhack has quit [Remote host closed the connection]
mdavid613 has quit [Quit: Leaving.]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
swills has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
<havenwood> raz: Arch, Fedora, FreeBSD, etc etc have nice Ruby packages. Brightbox Ruby packages are the best bet on Ubuntu. OS X folk tend to Homebrew, Pkgsrc, Macports or Fink - all of which have Ruby packages.
mdavid613 has joined #ruby
gheegh has quit [Ping timeout: 246 seconds]
wldcordeiro_ has joined #ruby
rbennacer has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> raz: You pretty much have to wander into CentOS-land to find Ruby 1.8 these days. But they live in the ancient past so what do you expect?
nhhagen has joined #ruby
<raz> havenwood: i'd have to go on a really elaborate rant from here, so... i'll just go on the balcony instead and hope someone will poke apple before their release elcap ;)
<havenwood> raz: Luckily no Python 2/3-like divide in Ruby, and they aim to keep it that way.
<havenwood> raz: Yeah, that'd be nice!
<havenwood> raz: Fingers crossed.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Contigi has quit [Quit: Leaving]
<havenwood> Always nice to be able to install gems.
CorySimmons has quit [Quit: Bye!]
keeguon has quit [Ping timeout: 246 seconds]
BTRE has joined #ruby
pawnbox has quit [Remote host closed the connection]
mjuszczak has joined #ruby
pawnbox has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
loplin has joined #ruby
ascarter has joined #ruby
rideh has joined #ruby
snockerton has joined #ruby
chenillen_ has quit [Quit: chenillen_]
<havenwood> Is there another shortcut to pass the -X+T flag to irb if you don't have the env flag set or is there a better way?: ruby -X+T -S irb
jbw has joined #ruby
thatsnotjack has quit [Remote host closed the connection]
<havenwood> ^ that's easy enough but just curious
<snockerton> are there any unique ways to set a null value in ruby? trying to pass a key/value in rbvmomi and nil or "" are not working
<Criten> snockerton: nil should owrk
<Criten> qoek*
<Criten> work*...
thatsnotjack has joined #ruby
<ericwood> yeah, need an example
yqt has joined #ruby
failshell has joined #ruby
gard has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
mjuszcza_ has joined #ruby
paulcsmith__ has joined #ruby
paulcsmith_ has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
gard has quit [Remote host closed the connection]
<snockerton> line 9, need to set :deviceName to nil
Igorshp has joined #ruby
mjuszczak has quit [Ping timeout: 272 seconds]
<ericwood> nil should work
<snockerton> could be a rbvmomi type issue
quimrsto_ has joined #ruby
<ericwood> yeah seems more like an issue with that lib
quimrstorres has quit [Read error: Connection reset by peer]
<snockerton> when i set deviceName to nil, the response is that deviceName is missing...
railsraider has quit [Quit: railsraider]
<ericwood> definitely an issue with the lib then
gambl0re has joined #ruby
j_mcnally has joined #ruby
jhack has joined #ruby
gard has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
pengin_ has joined #ruby
jbw has joined #ruby
<snockerton> dang, only 9 ppl in that channel
nzst has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
|\|IGG3R has joined #ruby
<|\|IGG3R> Why are ruby developers paid more than other developers?
psy_ has quit [Quit: Leaving]
<Sou|cutter> they aren't
yeticry has joined #ruby
<notfowl> Hi guys
psy_ has joined #ruby
pengin has quit [Ping timeout: 246 seconds]
<|\|IGG3R> Ruby on Rails engineers are paid more than others. The average salary for a Ruby on Rails developer is 125k whereas other developers are paid ~90k
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lannonbr> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<havenwood> !mute |\|IGG3R
wheresmyjetpack has joined #ruby
<havenwood> lannonbr: thanks
<notfowl> Ohhh muted your truth speaking ass
<havenwood> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<notfowl> Think twice before coming in here and exposing trade secrets
maq has joined #ruby
pengin_ has quit [Remote host closed the connection]
<Sou|cutter> lannonbr: thanks
zcreative has quit [Ping timeout: 260 seconds]
<notfowl> You guys ok??
<notfowl> That was scary
arup_r has joined #ruby
jamesaxl has joined #ruby
Jackneill has joined #ruby
<notfowl> You made the bad man be quiet though. Im going to be ok
blue_deref has joined #ruby
rideh^ has joined #ruby
rideh has quit [Read error: Connection reset by peer]
cornerma1 has joined #ruby
prettiestPony11 has quit [Ping timeout: 265 seconds]
|\|IGG3R has quit [Ping timeout: 246 seconds]
jbw has quit [Ping timeout: 244 seconds]
c0m0 has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
carlosoliveira has quit [Quit: Connection closed for inactivity]
jbw has joined #ruby
Jackneill has joined #ruby
rdark has quit [Quit: leaving]
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
skade has quit [Ping timeout: 240 seconds]
iateadonut has quit [Ping timeout: 260 seconds]
xfbs has quit [Ping timeout: 260 seconds]
Ltnt_Hawkeye has joined #ruby
mjuszcza_ has quit []
podman has joined #ruby
polpak has joined #ruby
nhhagen has quit [Ping timeout: 255 seconds]
xfbs has joined #ruby
leat has quit [Remote host closed the connection]
jbw_ has joined #ruby
leat has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
jbw has quit [Ping timeout: 255 seconds]
jonee has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
tuelz has joined #ruby
skade has joined #ruby
beef-wellington has joined #ruby
Trynemjoel has joined #ruby
maq has quit [Quit: maq]
tkuchiki has joined #ruby
Rollabunna has joined #ruby
yh has quit [Ping timeout: 250 seconds]
thiagovsk has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
sarmiena_ has joined #ruby
<Ltnt_Hawkeye> Anyone have a good rails tutorial?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 244 seconds]
<apeiros> ?rails Ltnt_Hawkeye
<ruboto> Ltnt_Hawkeye, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> Ltnt_Hawkeye: I think the docs on the rails site are good. You might also ask in the #RubyOnRails channel.
Rollabunna has quit [Ping timeout: 244 seconds]
darkf has quit [Quit: Leaving]
vdamewood has joined #ruby
segfalt has joined #ruby
isale-eko has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150630154324]]
arturmartins has quit [Ping timeout: 265 seconds]
<sarmiena_> so i ran into this segfault issue: https://bugs.ruby-lang.org/issues/9592
Toska has quit [Ping timeout: 260 seconds]
chinmay_dd has joined #ruby
<sarmiena_> ruby 2.1.1-p76 & openssl 1.0.1 March 2012
freerobby has quit [Quit: Leaving.]
<sarmiena_> is this fix for this to update openssl? i can’t tell what the resolution is
xfbs has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
<renanoronfle> hi all, has a easy way to return the same objects into 2 arrays?
<jhass> renanoronfle: elaborate please
pengin has joined #ruby
<renanoronfle> i have a = ["a", "b", "c" ] and b = ["b", "c" , "d"] i need return a new array with b and c
bradleyprice has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
Iskarlar has joined #ruby
<renanoronfle> result ["b", "c"]
<jhass> >> a = ["a", "b", "c" ] and b = ["b", "c" , "d"]; a & b
<ruboto> jhass # => ["b", "c"] (https://eval.in/411980)
<wheresmyjetpack> i think im in love with ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> sarmiena_: Why such an old OpenSSL? You should probably update OpenSSL and update to Ruby 2.1.6.
<renanoronfle> jhass, tks i not remember that :)
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
<sarmiena_> havenwood: actually i am on 2.1.6 … reading about ssl right now. i’m on ubuntu 12.04. going to upgrade openssl, but want to avoid the guessing game part of this issue. just trying to verify that th problem is with the version of openssl. or perhaps the bug still exists? i can’t seem to get info on it
jatb has joined #ruby
<havenwood> sarmiena_: You definitely need to update OpenSSL to a secure version. Then build Ruby against it. (Beware if you're using rbenv to build that you must update ruby-build because it ships its own OpenSSL instead of using your package manager's).
troulouliou_div2 has quit [Remote host closed the connection]
rehat has quit [Read error: Connection reset by peer]
<sarmiena_> havenwood: ok. yeah right now this server is firewalled & does no inbound WAN access. also, i’m using RVM & figured it might be using some other package other than my distro’s.
postmodern has quit [Quit: Leaving]
<sarmiena_> any examples on how to make RVM use my distro’s openssl?
<havenwood> sarmiena_: Ah, RVM I was going to suggest Brightbox's packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
<havenwood> sarmiena_: rvm autolibs enable
<havenwood> sarmiena_: then reinstall Ruby
<havenwood> sarmiena_: update RVM first: rvm get master
<sarmiena_> ok. so if i do it this way, how would i check that it used the correct library?
icebourg has joined #ruby
<sarmiena_> also, this means i wouldn’t have to update openssl via ubuntu, right?
<havenwood> sarmiena_: ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
<havenwood> sarmiena_: It will update OpenSSL on your behalf if you enable autolibs.
<sarmiena_> man i asked the right person! :)
<sarmiena_> ohhh hmmm. that means i’ll ahve to run rvm as root or something like that
<havenwood> sarmiena_: You could alternatively set it to: rvm autolibs read-fail
<havenwood> sarmiena_: Or: read-only
<havenwood> sarmiena_: v
<sarmiena_> ok so that would install local copy & use that instead?
kirun has joined #ruby
<havenwood> sarmiena_: https://rvm.io/rvm/autolibs
avitzure_ has joined #ruby
Blaguvest has quit []
<havenwood> sarmiena_: ^ shows the various autolibs options
<havenwood> sarmiena_: you can also check: rvm requirements
<sarmiena_> hm. it looks like if i use read-only it won’t install it
<sarmiena_> only use if available
<havenwood> sarmiena_: right
<havenwood> sarmiena_: No matter what, update OpenSSL. ;)
<sarmiena_> ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
<sarmiena_> "OpenSSL 1.0.1 14 Mar 2012"
<sarmiena_> yep
avitzur__ has joined #ruby
<sarmiena_> to be redundant, you’re saying use autolibs to install openssl instead of having ubuntu do it
<sarmiena_> then rebuild the ruby
<sarmiena_> *the* ruby. similar to *the* google
atmosx has joined #ruby
avitzurel has quit [Ping timeout: 265 seconds]
<havenwood> sarmiena_: Well, I'd probably enable autolibs just to make sure you have the packages you need. Then ensure you are on the latest OpenSSL. And build the latest TINY version of Ruby 2.1 or Ruby 2.2.
<havenwood> sarmiena_: So Ruby 2.1.6 or 2.2.2.
<sarmiena_> ok
cpruitt has joined #ruby
pengin_ has joined #ruby
ledestin has joined #ruby
pengin_ has quit [Remote host closed the connection]
<havenwood> sarmiena_: Then restart all your services using OpenSSL - easiest way is to reboot.
chinmay_dd has quit [Ping timeout: 246 seconds]
DLSteve has joined #ruby
avitzure_ has quit [Ping timeout: 264 seconds]
<sarmiena_> ack. been online for like 400 days haha
rehat has joined #ruby
<sarmiena_> i think the universe might implode if i reboot
arturmartins has joined #ruby
freerobby has quit [Quit: Leaving.]
towski_ has joined #ruby
pengin has quit [Ping timeout: 240 seconds]
khebbie has joined #ruby
docmur_ has joined #ruby
<docmur_> I'm trying to install redmine on debian, I've trying to do the bundle install --without postgesql but I keeping getting
<docmur_> this error: Redmine requires Bndler 1.5.0 or higher (you're using 1.1.4 however when I run gem update bundler I get
<docmur_> nothing to updatre
rakm has joined #ruby
quimrsto_ has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
shadoi has quit [Quit: Leaving.]
pyon has joined #ruby
chinmay_dd has joined #ruby
reset has joined #ruby
yh has joined #ruby
Trynemjoel has joined #ruby
graydot has quit [Quit: graydot]
maq has joined #ruby
<Sou|cutter> docmur_: could be the first bundler found in your PATH isn't the latest one
<Sou|cutter> `gem list | grep bundler` does this show a bundler >= 1.5.0 ?
<docmur_> oh wow I did have two installed, I would of thought upgrading it would of replaced the first one
aryaching has quit []
yqt has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
jackjackdripper has joined #ruby
shadoi has joined #ruby
pengin has joined #ruby
yh has quit [Ping timeout: 255 seconds]
Silox| has joined #ruby
docmur_ has quit [Quit: Lost terminal]
Lucky__ has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
safeforge has quit [Remote host closed the connection]
gambl0re has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
gambl0re has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
swgillespie has joined #ruby
Trynemjoel has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh has joined #ruby
freerobby has joined #ruby
baweaver has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
swgillespie has quit [Client Quit]
<scorp007> does ruby have a fixnum that is 64 bit?
<Ox0dea> scorp007: Do you mean independent of the environment?
<chris2> perhaps on a 128-bit machine ;)
sarmiena_ has quit [Quit: sarmiena_]
wldcordeiro_ has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
freerobby has quit [Client Quit]
<scorp007> I mean on Win64, for example.
<scorp007> I can assume an environment.
freerobby has joined #ruby
<scorp007> I see things like FIX2INT, FIX2ULONG, but not FIX2ULONGLONG
<chris2> long is not 64 bit?
<scorp007> not on windows.
<scorp007> long remains the same on win32/64
<scorp007> long long is 64bit
dopie has joined #ruby
<Ox0dea> Utter madness.
<scorp007> does MRI have an FIX2ULONGLONG or something like that?
<chris2> llp64 madness
centrx has joined #ruby
djbkd has joined #ruby
<scorp007> aside from that, no workaround?
<scorp007> I see thigns like #if SIZEOF_OFF_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
<adaedra> LPCWSTR
<adaedra> :p
<scorp007> so it does check for long long on the platform. Any way to get a fix to that?
<Ox0dea> scorp007: NUM2LL().
<scorp007> adaedra: not with strings.
<scorp007> Hmmm
<Ox0dea> scorp007: Yes, it checks for HAVE_LONG_LONG in several places.
jbw__ has joined #ruby
<scorp007> NUM2LL uses bignum for 64bit numbers?
<scorp007> or fix?
<scorp007> I'd like to avoid bignum if I can, for 64bit.
Lucky__ has quit [Read error: Connection reset by peer]
<chris2> a value below 2**63 is fixnum
<Ox0dea> chris2: Wrong.
<chris2> modulo sign bit
fractalis has quit [Ping timeout: 272 seconds]
<Ox0dea> Right.
pengin has quit [Remote host closed the connection]
nzst has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
jbw_ has quit [Ping timeout: 246 seconds]
<scorp007> they just get transparently converted at runtime between the two?
<Ox0dea> Yes.
<chris2> yeah
<Ox0dea> Fixnums are tagged pointers; you can't ask Ruby to squeeze a bit pattern into too small a space.
graydot has joined #ruby
yh has quit [Ping timeout: 246 seconds]
<scorp007> oh ok
<scorp007> ok then. NUM2ULL looks like what I'll use.
<scorp007> works for any numeric type
<scorp007> thx all
<Ox0dea> scorp007: You're aware that you might get Bignums, though?
pengin has joined #ruby
<scorp007> yes, aware, but not much I can do
<scorp007> perf isn't super critical here, just nice to have
jackjackdripper has quit [Quit: Leaving.]
last_staff has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
<Ox0dea> libgmp is pretty heavily optimized, for what that's worth.
pietr0 has joined #ruby
khebbie has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
arturmartins has joined #ruby
redjack1964 has quit [Read error: Connection reset by peer]
Lucky__ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
arturmartins has quit [Client Quit]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
chinmay_dd has quit [Quit: See ya!]
Iskarlar has joined #ruby
Rollabunna has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
bradleyprice has joined #ruby
MrButh has quit [Ping timeout: 250 seconds]
failshell has quit []
postmodern has joined #ruby
Renich has quit [Quit: Lost terminal]
radgeRayden has joined #ruby
baroquebobcat has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
fractalis has joined #ruby
jpfuentes2 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 244 seconds]
casadei_ has quit []
tubuliferous_ has joined #ruby
Chau has joined #ruby
sanguisdex has quit [Quit: Leaving.]
bradleyprice has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
skade has quit [Ping timeout: 246 seconds]
carlosoliveira has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
sanguisdex has joined #ruby
sanguisdex has left #ruby [#ruby]
rakm has joined #ruby
baweaver has joined #ruby
krz has quit [Quit: WeeChat 1.2]
<snockerton> i'm building a service which monitors a message queue. what's the best way to do a long-running process in ruby? i.e. a graceful infinite loop
<snockerton> is doing `while !stop? do` a bad way?
baweaver has quit [Remote host closed the connection]
skade has joined #ruby
<snockerton> stop = true
mbeasley_ has joined #ruby
<centrx> snockerton, I would have a process that runs ever 1 minute or X seconds, using something like delayed_job
<centrx> *every
<centrx> snockerton, but while loop is fine
<centrx> snockerton, You want to make sure it handles exits gracefully, using signals
<Ox0dea> snockerton: What's the stop condition?
<snockerton> while loop works as long as ruby doesn't crash
<snockerton> Ox0dea: specific error handlers
<Ox0dea> begin; ...; rescue x; ...; rescue y; ...; end
<Antiarc> snockerton: You want either a sleep or a blocking socket read in there
<Antiarc> Otherwise you're just going to burn 100% CPU very efficiently
<snockerton> i'm looking at this:
Oka has joined #ruby
<snockerton> def process! method
Ltnt_Hawkeye has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<snockerton> seems crappy, thinking about extending it or doing the long running process with an OS daemon
khebbie has joined #ruby
<Antiarc> If so then it's fine
robbyoconnor has joined #ruby
Rinzlit2 has quit [Ping timeout: 260 seconds]
diego_ has joined #ruby
diego_ is now known as diegoviola
angrywombat has joined #ruby
<angrywombat> hi everyone
juanpaucar has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dabradley has quit [Ping timeout: 244 seconds]
imfilp has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
Guest50 has joined #ruby
Trynemjoel has joined #ruby
jmhmccr has joined #ruby
gambl0re has joined #ruby
dabradley has joined #ruby
rakm has joined #ruby
platzhirsch has left #ruby [#ruby]
Trynemjoel has quit [Ping timeout: 245 seconds]
leesharma has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah> sup
Trynemjoel has joined #ruby
baweaver has quit [Remote host closed the connection]
musl has quit [Quit: WeeChat 1.1.1]
baroquebobcat has quit [Quit: baroquebobcat]
musl has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
loplin has quit [Remote host closed the connection]
<BraddPitt> hello
dblessing has quit [Ping timeout: 265 seconds]
skade has quit [Read error: No route to host]
skade has joined #ruby
phutchins has joined #ruby
Musashi007 has joined #ruby
last_staff has joined #ruby
nzst has joined #ruby
<phutchins> hi, anyone seen "certificate verify failed" errors when trying to connect to a mongo host using the native mongo driver in jruby?
<phutchins> I've got one box from which everything seems to work just fine and another from which it gives me these errors... From my digging it seems that on the client side i do no thave the right CA file loaded for jruby maybe?
<phutchins> But it's not clear... From the mongo side I see these: ERROR: SSL: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown
<phutchins> which is not turning up a lot on google :(
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
<miah> one of the more common ssl issues tends to be the hostname not resolving to the same thing as entered in the ssl certificate
OrbitalKitten has joined #ruby
symm- has joined #ruby
prestorium has quit [Ping timeout: 260 seconds]
Lucky__ has quit [Ping timeout: 246 seconds]
Cust0sLim3n has joined #ruby
CustosLimen has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
juanpaucar has quit [Remote host closed the connection]
solars has quit [Ping timeout: 272 seconds]
gambl0re has quit [Ping timeout: 265 seconds]
chills42 has quit [Remote host closed the connection]
khebbie has joined #ruby
yh_ has joined #ruby
dabradley has quit [Quit: WeeChat 0.4.2]
gambl0re has joined #ruby
railsraider has joined #ruby
dabradley has joined #ruby
EllisTAA has joined #ruby
blackmesa has joined #ruby
bradleyprice has quit [Remote host closed the connection]
wldcordeiro_ has joined #ruby
kadoppe has quit [Ping timeout: 252 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
n_blownapart has joined #ruby
bazbing81 has joined #ruby
Rollabunna has joined #ruby
RobertBirnie has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
troyready has quit [Quit: Leaving]
kadoppe has joined #ruby
railsraider has quit [Quit: railsraider]
RobertBirnie has joined #ruby
khebbie has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
dgutierrez1287 has joined #ruby
bradleyprice has joined #ruby
lordkryss has joined #ruby
baroquebobcat has joined #ruby
Synthbread has joined #ruby
DoubleMalt has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
chills42 has joined #ruby
arooni-mobile has joined #ruby
<shevy> issues issues issues
chills42 has quit [Remote host closed the connection]
rakm has joined #ruby
unsymbol has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
chills42 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeremy04_ has quit [Read error: Connection reset by peer]
dfockler has quit [Remote host closed the connection]
jeremy04 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
Cust0sLim3n has quit [Ping timeout: 244 seconds]
unsymbol has joined #ruby
frem has joined #ruby
juanpaucar has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
hashrocket has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
leesharma has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
acovrig has quit [Ping timeout: 272 seconds]
shlomo has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railsraider has joined #ruby
<Ox0dea> shevy: Issue trackers are not soapboxes.
rideh^ has quit [Quit: zap]
<ericwood> the mozilla one always seems to be :P
<shevy> lol
<ericwood> when was the last time someone actually stood on a soap box to voice an opinion btw
<ericwood> I never see soap in boxes these days
prestorium has joined #ruby
<miah> dry detergent still comes in boxes, but they are not really strong enough to stand on
<ericwood> you'd need quite a few of those to voice an opinion effectively
<Ox0dea> miah: Aren't they? I'm sure I've stood on a detergent box at some point.
<ericwood> I'd rather stand on a milk crate tbh. or ladder
blackmesa has quit [Ping timeout: 260 seconds]
acovrig has joined #ruby
acovrig has quit [Client Quit]
<miah> ericwood: +1
<miah> last time i stood on a soap box; it was full of soap and i was much younger
<miah> would not try again
rideh has joined #ruby
<Ox0dea> Dissenters will be scoured.
<miah> lol
[Butch] has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
yqt has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
Trynemjoel has joined #ruby
Cust0sLim3n has joined #ruby
arooni-mobile has quit [Quit: Leaving]
lsmola has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Remote host closed the connection]
cpruitt has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Remote host closed the connection]
cpruitt has joined #ruby
EllisTAA has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Igorshp_ has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 260 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tkuchiki has joined #ruby
dblessing has joined #ruby
xfbs has joined #ruby
tmtwd has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
Vile` has quit [Ping timeout: 246 seconds]
doertedev has quit [Quit: Lost terminal]
baweaver has joined #ruby
<shevy> so many build tools ... GNU autoconfigure, make, cmake, scons, waf ... the latter two in python. Nothing in ruby I guess
blackmesa has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
Vile` has joined #ruby
<mozzarella> uh, rake?
tvw has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
EllisTAA has quit [Quit: EllisTAA]
baweaver has quit [Remote host closed the connection]
freerobby has joined #ruby
baweaver has joined #ruby
<shevy> ah yes
railsraider_ has joined #ruby
Kyuujitsu has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Client Quit]
daynaskully has joined #ruby
shlomo has quit [Quit: WeeChat 1.2]
railsraider has quit [Ping timeout: 255 seconds]
railsraider_ is now known as railsraider
chills42 has quit [Remote host closed the connection]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sepp2k has quit [Quit: Leaving.]
Igorshp_ has quit [Remote host closed the connection]
<Ox0dea> This guy.
<Ox0dea> adaedra: Still duper-bizzy?
Trynemjoel has quit [Ping timeout: 245 seconds]
countryHick has quit [Quit: Connection closed for inactivity]
roolo has joined #ruby
EllisTAA has joined #ruby
michaelohartman has joined #ruby
imperator has joined #ruby
Trynemjoel has joined #ruby
gambl0re has quit [Ping timeout: 244 seconds]
mdavid613 has quit [Quit: Leaving.]
glenn_ has quit [Quit: Konversation terminated!]
paulcsmith__ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
gambl0re has joined #ruby
leesharma has quit [Ping timeout: 260 seconds]
wldcordeiro_ has quit [Ping timeout: 265 seconds]
maq has quit [Quit: maq]
leesharma has joined #ruby
juanpaucar has quit []
paulcsmith__ has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
<baweaver> chanserv has spoken! All hail chanserv
jenrzzz has joined #ruby
<shevy> die chanserv!
* imperator makes some t-shirts, "I was there when chanserv spoke"
m8 has joined #ruby
gthank has joined #ruby
gambl0re has quit [Remote host closed the connection]
wldcordeiro_ has joined #ruby
jenrzzz has quit [Client Quit]
gambl0re has joined #ruby
ereslibre has quit [Ping timeout: 244 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
<adaedra> Ox0dea: mmh?
shinnya has joined #ruby
gemmy__ has joined #ruby
pdoherty has joined #ruby
ap4y has joined #ruby
wheresmyjetpack has quit [Quit: Konversation terminated!]
tubuliferous_ has joined #ruby
ap4y has quit [Remote host closed the connection]
Zai00 has joined #ruby
paulcsmith__ has quit [Read error: Connection reset by peer]
paulcsmith___ has joined #ruby
jenrzzz has joined #ruby
juanpaucar has joined #ruby
khebbie has joined #ruby
xfbs has quit [Read error: Connection reset by peer]
ap4y has joined #ruby
michaelohartman has quit [Ping timeout: 246 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
mdavid613 has joined #ruby
myztic has quit [Ping timeout: 265 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
ereslibre has joined #ruby
ereslibre has joined #ruby
sepp2k has joined #ruby
tmi has quit [Ping timeout: 245 seconds]
khebbie has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 250 seconds]
AlphaAtom has joined #ruby
j4cknewt has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
xfbs has joined #ruby
last_staff has quit [Quit: last_staff]
j4cknewt has quit [Remote host closed the connection]
skade has joined #ruby
gambl0re has quit [Ping timeout: 260 seconds]
j4cknewt has joined #ruby
shinobi__ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
dfockler has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
Trynemjoel has joined #ruby
mdavid613 has quit [Quit: Leaving.]
allcentury has joined #ruby
juanpaucar has quit [Remote host closed the connection]
omegahm has joined #ruby
n_blownapart has quit []
FooMunki has quit [Quit: FooMunki]
<hal_9000> imperator: greetings
<imperator> hal_9000, heya
chouhoulis has quit [Remote host closed the connection]
<shinobi__> can i turn a block (has to be a block) into an object? like i = 1.times do |n| puts n end
mjuszczak has joined #ruby
<hal_9000> imperator: sent u email - no worries if you haven’t time
<Ox0dea> shinobi__: Blocks essentially *become* Procs when you use them in a method call.
<imperator> did you? don't see it yet
gregf has quit [Read error: Connection reset by peer]
mdavid613 has joined #ruby
<hal_9000> just an hour ago
chouhoulis has joined #ruby
<Ox0dea> >> def foo &block; block.class end; foo { this is a block } # shinobi__
<ruboto> Ox0dea # => Proc (https://eval.in/412010)
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
myztic has joined #ruby
chouhoulis has quit [Remote host closed the connection]
unsymbol has quit [Ping timeout: 250 seconds]
<Ox0dea> shinobi__: Note well that a Proc is only created from a block if you explicitly refer to it rather than simply yielding to it.
Igorshp has joined #ruby
arup_r has joined #ruby
failshell has joined #ruby
gemmy__ has quit [Quit: leaving]
gregf has joined #ruby
unsymbol has joined #ruby
baweaver has quit [Remote host closed the connection]
hinbody has quit [Quit: leaving]
systemd0wn has quit [Ping timeout: 265 seconds]
douglasssss has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
Neon has joined #ruby
davedev2_ has joined #ruby
juanpaucar has joined #ruby
mdavid613 has quit [Quit: Leaving.]
baweaver has joined #ruby
Trynemjoel has joined #ruby
gamename has quit [Remote host closed the connection]
davedev__ has joined #ruby
<Neon> Let's say I have a file named foo.txt. Now I have a Ruby program running that has this file opened like f = File.open('foo.txt'). Another application on the system now deletes and recreates that file and I need Ruby to reopen the file, but how can I find out if the file has been recreated? My File object returns false on .closed? and always true for .eof? after the file recreation and after writing contents into the new file
<Neon> so it does neither complain about the old fd to not exist anymore nor does it automatically open the new file.
gamename has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
k3asd` has joined #ruby
rakm has joined #ruby
r_baron has quit [Quit: Page closed]
<imperator> Neon, what platform?
<Neon> imperator, Debian Squeeze
<imperator> i think the inode would change
cschneid_ has joined #ruby
<atmosx> Neon: that sounds awful, do you wanna elaborate a bit maybe we can find a better solution
mdavid613 has joined #ruby
<imperator> yeah, personally i would lock the file
amystephen has joined #ruby
<atmosx> imperator: I'd create a copy :-/
davedev2_ has quit [Ping timeout: 256 seconds]
<imperator> or that
<imperator> atmosx, what happens if the file is replaced before the copy finishes?
<Neon> Well, it's a logfile I want to watch and wait until the application that writes to it appends a line of a specific pattern. The problem is that the application automatically archives the logfile and creates a new one (on the same path) on day change.
rideh has quit [Quit: zap]
<Neon> So it might happen that I start watching the logfile on day 1 and will never go on, because the application writes the wanted line on day 2 in the recreated file and the old one I've opened in Ruby will be eof forever.
gamename has quit [Ping timeout: 265 seconds]
<Neon> A case-specific solution for that would be a time check of course, but I couldn't believe that Ruby can't notice if a file has been deleted. I mean the file descriptor (OS-wise) should become invalid, shouldn't it?
pengin has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Antiarc> The file isn't fully deleted until all handles to it are closed, the FD is still valid, it's just not associated with that name anymore
<Antiarc> If you execute lsof after deleting the file but while ruby still has a handle to it, you'll see it show up as still open but marked as deleted
xfbs has quit []
<Antiarc> (this is why you have to rotate logs after deleting files to reclaim the space used by them)
<atmosx> imperator: good question, well if that's even remotely plausible you should lock the file
<Antiarc> rather, you have to reopen any handles to those filenames
Alayde has quit [Ping timeout: 260 seconds]
graydot has quit [Quit: graydot]
systemd0wn has joined #ruby
<Neon> I just noticed I could compare the modification timestamp of f.stat <-> File.stat(f.path)
sarmiena_ has joined #ruby
Rollabunna has joined #ruby
bmurt has quit []
<Neon> Or even the creation time, so I can statically buffer one for performance.
Trynemjoel has quit [Ping timeout: 250 seconds]
<atmosx> Neon: or use guard and run the script whenever the file changes
dopie has quit [Quit: This computer has gone to sleep]
davedev24 has joined #ruby
<Antiarc> that's a good point, something like rb-inotify should let you see when that happens
<Antiarc> then you could just reopen the file
<atmosx> Antiarc: so you don't have to actually lock the file, the sysetm does that for you
rodfersou has quit [Quit: leaving]
Trynemjoel has joined #ruby
cnngimenez has joined #ruby
davedev__ has quit [Ping timeout: 264 seconds]
<Neon> Antiarc, oh yeah, rb-inotify looks useful.
solars has joined #ruby
<Neon> I could also let it watch for changes so I don't have to use a loop with delay.
Firzen has joined #ruby
<Antiarc> then you could just reopen the file
<Antiarc> bah
<Antiarc> I hate when I alt-tab-up-enter into the wrong window
Alayde has joined #ruby
Neon has quit [Disconnected by services]
Firzen is now known as Neon
Rollabunna has quit [Ping timeout: 272 seconds]
M-mistake has quit [Quit: node-irc says goodbye]
<Neon> Had a disconnect so I missed everything between my last message and me joining as Firzen.
M-mistake has joined #ruby
<Antiarc> All you missed was me fat-fingering a message :)
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
jamo_ has quit [Ping timeout: 244 seconds]
Iskarlar has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
crimson_penguin has joined #ruby
bazbing81 has quit [Quit: leaving]
rbennacer has joined #ruby
bazbing81 has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
<crimson_penguin> so I'm trying to use active record, and I've got something that mostly works, except it breaks when it automatically runs the count query before my real one, because I need a custom column from the select statement in my where statement
<crimson_penguin> is there any way around that?
bazbing81 has left #ruby [#ruby]
bhorn1|lunch is now known as bhorn1
_joes__ has quit [Ping timeout: 264 seconds]
bhorn1 is now known as bhorn1|away
freedrull has quit [Ping timeout: 244 seconds]
user1138 has joined #ruby
freedrull has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
imperator has left #ruby ["Leaving"]
<notfowl> !rails alert
<notfowl> Warning warning
systemd0wn has quit [Ping timeout: 250 seconds]
systemd0wn has joined #ruby
Iskarlar has quit [Client Quit]
jamo_ has joined #ruby
freerobby has joined #ruby
Jarboe has joined #ruby
mjuszczak has quit []
unsymbol has quit [Ping timeout: 256 seconds]
omegamike has quit [Remote host closed the connection]
bradleyprice has joined #ruby
Synthbread has quit [Quit: Leaving]
unsymbol has joined #ruby
jpfuentes2 has joined #ruby
Jackneill has quit [Ping timeout: 244 seconds]
failshell has quit []
jmhmccr has quit [Quit: Connection closed for inactivity]
<jhass> notfowl: if you don't want to be helpful, maybe just say nothing and only listen instead
<Ox0dea> "Speak only that you would improve the silence."
ldnunes has quit [Quit: Leaving]
<jhass> crimson_penguin: you would be better in showing some code, though the folks over at #RubyOnRails naturally have more experience with AR related stuff
jpfuentes2 has quit [Ping timeout: 240 seconds]
unsymbol has quit [Ping timeout: 246 seconds]
railsraider has quit [Quit: railsraider]
Iskarlar has joined #ruby
<scpike> has anyone done ETL with kiba (https://github.com/thbar/kiba) ?
unsymbol has joined #ruby
Iskarlar has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
prefixed has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<crimson_penguin> jhass: thank you! I'll ask over there then
<Ox0dea> scpike: What's up?
RobertBi_ has joined #ruby
<scpike> Ox0dea: just looking for any experienced thoughts. I've got a bunch of home-grown ruby scripts doing ETL that I might want to put some more structure around
doodleha_ has quit []
<Ox0dea> scpike: I've enjoyed using it the few times that I have.
quimrstorres has joined #ruby
diegoviola has joined #ruby
<scpike> Ox0dea: thanks, I'll definitely check it out then!
<Ox0dea> scpike: You might find using it in conjunction with Transproc to be doubly pleasant.
Neon has quit [Quit: Leaving]
<scpike> Ox0dea: woa, this looks mind-bending
<scpike> I have to do some reading
RobertBirnie has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
dopie has joined #ruby
<Ox0dea> Kiba + Transproc has temporarily broken my habit of using shell pipelines for data manipulation at least twice now.
jackjackdripper has quit [Ping timeout: 260 seconds]
<scpike> Ox0dea: `csvkit` has changed my life
<scpike> almost literally
<Ox0dea> I know that guy.
baroquebobcat has joined #ruby
<scpike> really awesome stuff
Iskarlar has joined #ruby
<Ox0dea> Pretty handy, to be sure.
<Ox0dea> I think I'm thinking of a different csvfoo, though.
<scpike> I'm thinking of http://csvkit.readthedocs.org
juanpaucar has quit [Remote host closed the connection]
millerti has joined #ruby
rakm has joined #ruby
* wasamasa is using csvfix
<scpike> Particularly csvcut, csvlook, csvsql
ascarter has joined #ruby
mjuszczak has joined #ruby
gamename has joined #ruby
<Ox0dea> wasamasa: That's the one!
juanpaucar has joined #ruby
<Ox0dea> Butterworth is such a fantastic surname.
<wasamasa> Ox0dea: it's very messy, but useful
<wasamasa> Ox0dea: you can tell it's been written by a windows guy
jackjackdripper has joined #ruby
graydot has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
Iskarlar has quit [Client Quit]
<Ox0dea> ~ $ history | grep -c jq
<Ox0dea> 22
<Ox0dea> I think this is probably a good thing.
deepu has joined #ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> And hey, there's no `yq` yet according to `pkgfile`!
<shevy> damn it
* wasamasa rolls eyes
<shevy> I have an at_exit() call in some required .rb file
Missphoenix has joined #ruby
EllisTAA has joined #ruby
FernandoBasso has joined #ruby
<Ox0dea> Well done?
nzst has quit [Ping timeout: 250 seconds]
woobywooby has joined #ruby
<woobywooby> heyo
prestorium has quit [Ping timeout: 260 seconds]
<woobywooby> anyone know how to pass a ruby variable in to C inside of ruby code?
RobertBi_ has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
blue_deref has quit [Quit: bbn]
FernandoBasso has quit [Remote host closed the connection]
<woobywooby> trying to use a c library ruby so using `` but don't know how to pass a ruby variable in tehre
railswebdev has joined #ruby
FernandoBasso has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
Miphix has quit [Ping timeout: 260 seconds]
<Ox0dea> woobywooby: What's using `` got to do with C here?
<woobywooby> im under the impression tick marks will allow me to run c in rails
benlovell has joined #ruby
Iskarlar has joined #ruby
<Ox0dea> woobywooby: Backticks execute system(3).
sarmiena_ has quit [Quit: sarmiena_]
<woobywooby> ah i see
<woobywooby> is there a way i can put a ruby variable in there?
Contigi has joined #ruby
<Ox0dea> woobywooby: Yes, you can use interpolation just like in a String.
pkh has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
<notfowl> jhass if you cant help me dont say anything to me. Reported to freenode
<notfowl> Ignored.
<woobywooby> ox0dea you mean like #{@variable}?
<notfowl> Im going to post about you on my tumblr
notfowl has left #ruby ["AndroIRC - Android IRC Client ( http://www.androirc.com )"]
<woobywooby> or the regular + @variable
<Ox0dea> woobywooby: The former.
<Ox0dea> The latter is concatenation.
Musashi007 has joined #ruby
<Ox0dea> woobywooby: `foo --bar #@var`
<apeiros> oh, so sad, no !kick notfowl. already left.
<woobywooby> hmmm thats sensual
<Ox0dea> NO U
coffeina has joined #ruby
<Ox0dea> >> begin; eval "`"; rescue SyntaxError => e; e end
<ruboto> Ox0dea # => #<SyntaxError: (eval):1: unterminated string meets end of file> (https://eval.in/412023)
<Ox0dea> woobywooby: Just to demonstrate that Ruby treats `` more or less like a string.
nofxx has joined #ruby
<coffeina> hi everyone
benlovell has quit [Ping timeout: 264 seconds]
solars has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
<coffeina> could you please recommend me some good tutorials for lerning ruby ?
<shevy> is there a way to undo an at_exit registered somewhere else?
<Ox0dea> shevy: Not from Ruby, and I couldn't figure out how to do it from C, but I'd imagine the latter is feasible.
<shevy> I guess it must be registered somewhere
<apeiros> coffeina: http://ruby-community.com/pages/links - please tell if you come across other valuable resources
solars has joined #ruby
<Ox0dea> shevy: It's managed by FrozenCore, which has been made almost completely inacessible. :(
<Ox0dea> >> Symbol.all_symbols.grep(/postexe/)
<ruboto> Ox0dea # => [:"core#set_postexe"] (https://eval.in/412025)
<shevy> Ox0dea FrozenCore?
<shevy> you use words unknown to me
quimrstorres has quit [Remote host closed the connection]
<Ox0dea> Definitely worth a watch: https://www.youtube.com/watch?v=SBdqCYKWISU
leesharma has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
xfbs has joined #ruby
leesharma has joined #ruby
xfbs has quit [Max SendQ exceeded]
Chau has quit [Ping timeout: 265 seconds]
xfbs has joined #ruby
devdazed has quit [Ping timeout: 265 seconds]
dgutierrez1287 has joined #ruby
quimrstorres has joined #ruby
tuelz has quit [Ping timeout: 244 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
Rickmasta has joined #ruby
<woobywooby> lots joining
hahuang61 has quit [Ping timeout: 240 seconds]
malconis has quit [Ping timeout: 246 seconds]
<radens> When my program runs I get extraneous output on stdout. It's not being printed with puts. Could it have gotten there?
paulcsmith___ has quit [Quit: Be back later ...]
diegoviola has quit [Quit: WeeChat 1.2]
FooMunki has joined #ruby
paulcsmith___ has joined #ruby
Rollabunna has joined #ruby
<adaedra> 'night
<Ox0dea> radens: What sort of output?
mjuszczak has quit []
<radens> printing to stdout, Ox0dea
ruby-lang858 has joined #ruby
<radens> It says 'true'
<Ox0dea> radens: What is being printed?
dgutierrez1287 has quit [Ping timeout: 250 seconds]
<Ox0dea> radens: Are you on Windows?
<radens> noooo. I am not
leafybasil has joined #ruby
<Ox0dea> radens: Run `ruby thing.rb > /dev/null` and confirm that you still see output.
ruby-lang858 has quit [Client Quit]
<radens> Yep, it's on stdout. I ran that.
ruby-lang573 has joined #ruby
<Ox0dea> radens: Well, there are all sorts of ways to print to stdout.
<radens> If you were debugging, what would you use?
beef-wellington has quit [Ping timeout: 244 seconds]
<Ox0dea> Kernel.p.
<radens> nope
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> It's hardly ever written like that, of course.
paulcsmith___ has quit [Ping timeout: 246 seconds]
<Ox0dea> There's #p, #print, #puts, #sprintf, #write, #<<, and I'm probably missing a few.
<radens> Oh wait, you mean just "p 'stuff'
<Ox0dea> Yes.
Rollabunna has quit [Ping timeout: 246 seconds]
<radens> that's inconvenient. I'll work my way through that list
arup_r has quit [Remote host closed the connection]
mjuszczak has joined #ruby
jgpawletko has joined #ruby
gaboesquivel has joined #ruby
shinobi__ has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
<Ox0dea> Grepping for /\s*p.*[<>=]=/ wouldn't be an unreasonable starting point.
decoponio has joined #ruby
ruby-lang573 has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> you can always stub $stdout
<radens> Ah. Make it record the backtrace or something?
<apeiros> or just make it yell when true is an arg
stardiviner has quit [Ping timeout: 244 seconds]
<apeiros> well, anything which returns "true" on .to_s
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gaboesquivel has quit [Ping timeout: 260 seconds]
<radens> Yeah. So I'm not a ruby veteran, what's the best way to go about that?
Musashi007 has quit [Quit: Musashi007]
m8 has quit [Quit: Sto andando via]
ascarter has joined #ruby
<Ox0dea> radens: Post code?
<apeiros> dunno. class Detector; def initialize; @stdout = $stdout; $stdout = self; @intermediate = StringIO.new; end; def method_missing(*args); @intermediate.send(*args); YIELL if @intermediate.string =~ /true/; @intermediate.clear; @stdout.send(*args); end
<apeiros> + end
<apeiros> maybe something like ^
<radens> Well I can link you to the repo. If I knew where it was happening I would fix it.
hashrocket has joined #ruby
<apeiros> radens: also divide and conquer is always a good strategy
<apeiros> narrow down where it can happen by strategically placing putses
<radens> actually... I just found what is evaluating to true. Now to figure out where it's being printed.
ishahnaz has joined #ruby
<Ox0dea> shevy: Did you end up redefining #at_exit?
kyoshero has joined #ruby
solars has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
<Ox0dea> >> at_exit {}; ObjectSpace.each_object(Array).select { |a| a.size > 0 && a.all? { |o| Proc === o } } # :'(
<ruboto> Ox0dea # => [] (https://eval.in/412032)
rubytor has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
<shevy> nah, that instance was in code that I adopted from someone else, in cgi-exceptions. since I could change the code, I simply added a disabler component for now
tubuliferous_ has joined #ruby
<shevy> life is too short to fix bugs written by other people!
codecop has quit [Remote host closed the connection]
<shevy> that talk from charliesome is interesting
<Ox0dea> It's great.
<radens> Oh... this may be a bug in puppet.
<shevy> $fcore.send(:"core#set_variable_alias", :$c, :$a)
<Ox0dea> Alas, MRI uses two internal linked lists called end_procs and ephemeral_end_procs, but they're not exposed to extensions. :/
countryHick has joined #ruby
<Ox0dea> The only possible recourse would be to muck about in the process's memory to find the lists, but that's insane.
claptor has joined #ruby
Kyuujitsu has quit [Ping timeout: 252 seconds]
<Ox0dea> shevy: I like the bit where he demonstrates hooking Hash literal creation.
rjno has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
<banister> Ox0dea can u link to charliesome's talk?
tubuliferous_ has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
<Ox0dea> Definitely worth a watch: https://www.youtube.com/watch?v=SBdqCYKWISU
cvtsx has joined #ruby
troyready has joined #ruby
xfbs has quit [Ping timeout: 240 seconds]
<Ox0dea> banister: After you've finished, we should brainstorm how to make it "useful" again in 2.1+.
stardiviner has joined #ruby
<radens> Thanks
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kyuujitsu has quit [Ping timeout: 240 seconds]
xfbs has joined #ruby
Kyuujitsu has joined #ruby
musl has quit [Quit: WeeChat 1.1.1]
<Ox0dea> banister: Here's how I get hold of FrozenCore in 2.3: https://gist.github.com/0x0dea/3e9d600768251e28ec3e
umgrosscol has quit [Quit: Quit]
<Ox0dea> MRI says "nothing there, bro", but it was lying.
charliesome has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
musl has joined #ruby
Kyuujitsu has joined #ruby
hashrocket has joined #ruby
polpak has quit [Quit: leaving]
<banister> Ox0dea cool
ledestin has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pengin has joined #ruby
spider-mario has quit [Remote host closed the connection]
gard has quit [Ping timeout: 264 seconds]
<Ox0dea> banister: You'll note charliesome had to go through all sorts of machinations to get anything to stick, and I haven't figured out how to port the magic to >2.1 yet. :/
<Ox0dea> Nakada-san has gone to considerable effort to make FrozenCore *really* internal.
bricker has quit [Quit: leaving]
edenc has quit [Changing host]
edenc has joined #ruby
<banister> Ox0dea ruby i < 1.9.3 was much cooler
<Ox0dea> Confirmed.
<banister> i wrote a bunch of neat little tricks that i dont think are possible anymore
<Ox0dea> banister: I trust you remember evil-ruby?
Kyuujitsu has quit [Ping timeout: 244 seconds]
jackjackdripper has quit [Quit: Leaving.]
<banister> Ox0dea yeah, but i preferred to use C
jackjackdripper has joined #ruby
Kyuujitsu has joined #ruby
skade has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
<banister> Ox0dea https://github.com/banister/object2module was cute too
<symm-> quick question, was ARGV deprecated in >2.0?
Zai00 has quit [Quit: Zai00]
kirun has quit [Quit: Client exiting]
BTRE has quit [Ping timeout: 256 seconds]
xcesariox has joined #ruby
<zenspider> rawr
DLSteve has quit [Quit: Leaving]
<zenspider> symm-: no? why?
dont-panic is now known as eye_of_sauron
<symm-> by mistake
<symm-> my mistake
mjuszczak has quit []
<symm-> somehow I fuxed up and the command line arguments are not getting passed to the script
xfbs_ has joined #ruby
<zenspider> that's ... special.
xfbs has quit [Ping timeout: 264 seconds]
sgambino has quit [Ping timeout: 265 seconds]
xfbs_ has quit [Max SendQ exceeded]
xfbs has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
<symm-> I installed 2.1.6 alongside 1.9.3, enabled "associate .rb files with this installation"... then uninstalled 1.9.3
<Ox0dea> banister: Any immediate insights into arbitrarily reorganizing and/or injecting into an ancestor chain?
davedev24 has joined #ruby
skade has joined #ruby
<symm-> maybe uninstallin 1.9.3 nuked the .rb association
<banister> Ox0dea that's what remix does
tenderlove has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> banister: I opened all your links and was just about to start looking into them.
<banister> hehe
<banister> remix says it's just about modules, but it actually works with any object in the ancestor chain
abara has joined #ruby
<banister> but it's ruby 1.9.2 of course
kyoshero has quit [Quit: Leaving]
<banister> but with a bit of prodding it might still work in ruby > 2.0 i guess
<abara> hey folks, how can i append/add the fulltraceback on the 500 pages in rails?
gambl0re has joined #ruby
xcesariox has quit [Client Quit]
<Ox0dea> abara: $!.backtrace
Igorshp has joined #ruby
eye_of_sauron is now known as dont-panic
Kyuujitsu has quit [Ping timeout: 244 seconds]
<abara> Ox0dea: directly on the template?
freerobby has quit [Quit: Leaving.]
<Ox0dea> Somewhere. :P
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> why
<Radar> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
mjuszczak has joined #ruby
<Radar> abara: Seems like a bad idea to show the backtrace on the 050 page
<Radar> 500*
Kyuujitsu has joined #ruby
<Radar> Typically you'd log it to an external service like Rollbar
<abara> Radar: only for dev env :)
ponga has quit [Quit: Connection closed for inactivity]
snakehsu has quit [Ping timeout: 256 seconds]
<Radar> abara: It should be there automatically in dev env.
sdwrage has quit [Quit: Leaving]
<symm-> so I have a script that does `p ARGV[0]`
<abara> Radar: yeah, but i don't why it's not
<symm-> if I run it as `ruby test.rb hello` it prints hello
<Radar> abara: screenshot of what you see please
<abara> Radar: could i be missing some config entry?
<symm-> if I run it as `test.rb hello` it prints nil
decoponio has quit [Quit: Leaving...]
<Radar> abara: also, please step into my office over in #rubyonrails
<abara> ok
<abara> Ox0dea: i will try your snippet! thanks :)
rakm has joined #ruby
[k- has quit [Ping timeout: 246 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<symm-> fixed by messing with registry.
<Ox0dea> Jesus.
Kyuujitsu has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
weemsledeux has joined #ruby
juanpaucar has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
Pupeno has joined #ruby
Ropeney has joined #ruby
claptor has quit [Quit: this channel is bakas]
jgpawletko has quit [Quit: jgpawletko]
<shevy> haha
slawrence00 has joined #ruby
tuelz has joined #ruby
Rollabunna has joined #ruby
juanpaucar has joined #ruby
KillerFox has quit [Ping timeout: 264 seconds]
<symm-> was it something I said? o_o
KillerFox has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Muhannad has joined #ruby
pkh has joined #ruby
Pupeno has quit [Remote host closed the connection]
malconis has joined #ruby
tuelz has quit [Ping timeout: 252 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
banister has quit [Read error: No route to host]
texasmade has joined #ruby
banister has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 252 seconds]
s00pcan has quit [Ping timeout: 265 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
skade has quit [Read error: No route to host]
Kyuujitsu has quit [Ping timeout: 260 seconds]
frg133 has joined #ruby
jamesaxl|2 has joined #ruby
skade has joined #ruby
Kyuujitsu has joined #ruby
s00pcan has joined #ruby
swgillespie has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
juanpaucar has quit [Remote host closed the connection]
<zenspider> symm-: consider yourself encouraged to switch to an OS that actually supports and encourages development.
<symm-> lol
<zenspider> less a burn and more "It Gets Better" for devs
jamesaxl|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Ox0dea> symm-: Sage advice notwithstanding, what exactly did you muck with in the registry to "fix" command line arguments?
<symm-> one of these days.
<symm-> one sec
<symm-> "D:\Tools\Ruby21\bin\ruby.exe" "%1" %*
<symm-> it should be this ^ but was this:
lordkryss has quit [Quit: Connection closed for inactivity]
hahuang61 has joined #ruby
<symm-> "D:\Tools\Ruby21\bin\ruby.exe" "%1"
<symm-> so args werent being passed along
<Ox0dea> Lovely. :P
<shevy> windows makes my heart warm and fuzzy
<baweaver> I developed Ruby on Windows for a few years
<shevy> building dams?
<baweaver> I still wake up at night in cold sweat
Muhannad has quit [Remote host closed the connection]
icebourg has quit []
<baweaver> Never again
ereslibre has quit [Ping timeout: 272 seconds]
<Ox0dea> baweaver: I spent a solid twenty minutes trying various keywords (and even some hiragana) on b.hatena.ne.jp, but I couldn't find the video. :(
jtdoncas has joined #ruby
<baweaver> Ah not a problem, I was just wondering where it came from more than anything
dopie has quit [Quit: This computer has gone to sleep]
jtdoncas has quit [Client Quit]
<Ox0dea> darix: What do you have to hide?
allcentury has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
<darix> Ox0dea: that's that the people in countries like china and iran also say.
zacstewart has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 272 seconds]
Kyuujitsu has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
dopie has joined #ruby
dopie has quit [Client Quit]
Azure has joined #ruby
tmtwd has quit [Quit: Leaving]
Musashi007 has joined #ruby
mjuszczak has quit []
gamename has quit []
lncdslnc has joined #ruby
pawz has joined #ruby
<baweaver> Probably best to keep that to #ruby-offtopic
mdavid613 has quit [Quit: Leaving.]
<baweaver> Politics don't go over too well.
djstorm has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby
cj__ is now known as cj
snockerton has quit [Quit: Leaving.]
Azure|dc has joined #ruby
fullofcaffeine has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has quit [Remote host closed the connection]
ragingcake has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
adam| is now known as adam12
Azure has quit [Ping timeout: 250 seconds]
Kyuujitsu has quit [Ping timeout: 264 seconds]
Kyuujitsu has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
k3asd` has quit [Ping timeout: 265 seconds]
<symm-> Ox0dea: looking for a japanese video?
michaeldeol has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
<shevy> support the freedom for beavers bill!
Azure|dc is now known as Azure
xfbs has quit []
Kyuujitsu has quit [Ping timeout: 252 seconds]
sepp2k has quit [Read error: Connection reset by peer]
Kyuujitsu has joined #ruby
ishahnaz has quit []
bruno- has quit [Ping timeout: 250 seconds]
<woobywooby> hello
<woobywooby> does anyone know of a problem where a string adds a %0A after it when used?
myztic has quit [Ping timeout: 265 seconds]
<Radar> woobywooby: Steps to reproduce please.
wheresmyjetpack has joined #ruby
skade has quit [Ping timeout: 244 seconds]
fractalis has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
mjuszczak has joined #ruby
<al2o3-cr> %0A is a newline
iateadonut has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
<woobywooby> ohhhh
<Ox0dea> >> "\n".chr == 0x0a
<ruboto> Ox0dea # => false (https://eval.in/412043)
<Ox0dea> >> "\n".ord == 0x0a # Derp.
<ruboto> Ox0dea # => true (https://eval.in/412044)
mjuszczak has quit [Read error: No route to host]
<dorei> >> "\n".chr
<ruboto> dorei # => "\n" (https://eval.in/412045)
Kyuujitsu has joined #ruby
mjuszczak has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
fractalis has joined #ruby
Lucky__ has joined #ruby
coffeina has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150630154324]]
mdavid613 has joined #ruby
skade has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
dede has quit [Quit: Connection closed for inactivity]
cpruitt has quit [Quit: cpruitt]
Unicorn| has joined #ruby
nzst has joined #ruby
cnngimenez has quit [Ping timeout: 250 seconds]
<Ox0dea> baweaver: "Where it came from" in the ancestral sense?
amystephen has quit [Read error: Connection reset by peer]
<Unicorn|> Hi, what can I do to make ruby look for a keypress, (like when someone presses G) and then activate that code?
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Unicorn|: require 'io/console'
<Ox0dea> Which gives you STDIN.getch.
<zenspider> getc
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ox0dea> zenspider: I believe you've misinterpreter the asker's question.
<Unicorn|> and what does io/console do?
<Ox0dea> Unicorn|: It gives you console IO.
<zenspider> entirely possible
<Ox0dea> Unicorn|: You want to receive input without the user having to press Enter, yes?
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
<zenspider> getc requires a newline on osx? huh. I'm misremembering what it should do
<zenspider> ruby -rio/console -e 'p $stdin.getch' works tho
<Unicorn|> Well, I want to have a loop running until the user presses Enter
<zenspider> Unicorn|: why?
<eam> getc doesn't require newline -- but it will only detect the input character in the terminal and will not do key up/down events
<zenspider> eam: my terminal disagrees with you
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
myztic has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<eam> zenspider: oh you're right, was thinking of getch (whatever changes the terminal discipline)
<Unicorn|> So when my program ends, it doesn't automatically quite without letting the user see the output
<eam> cooked input = newline
<zenspider> it takes any amount of input, but only returns the first char. buffering?
<zenspider> Unicorn|: windows? either run your code in cmd directly instead of double-clicking, or put a `gets` at the end
<zenspider> you don't need to do anything complicated
FernandoBasso has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
<Ox0dea> #getc reads one character once it has been made available, which is typically after a newline, an EOF, or an explicit flush.
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nzst has quit [Ping timeout: 264 seconds]
iateadonut has quit [Ping timeout: 240 seconds]
<Unicorn|> Oh, thanks zenspider
<Unicorn|> Is there documentation on collecting kepresses for future reference?
<eam> Ox0dea: what's "flush" in the context of cooked terminal input?
benlovell has joined #ruby
<Ox0dea> Unicorn|: "Collecting keypresses" and "collecting input" are different things; you should clarify what you mean.
<eam> ruby isn't doing the buffering in that case, the kernel is
<Ox0dea> I'm not sure that's so.
<eam> Unicorn|: the thing about this area of interest is it's either dependent on the behavior of the terminal, or is operating system specific
<Unicorn|> I didn't say anything about input...
<eam> the best place to learn the details of interaction would be the lower level documentation
omegamike has joined #ruby
<Ox0dea> Unicorn|: "Input" happens whenever the user interacts with your program in some fashion.
Iskarlar has joined #ruby
<Unicorn|> How about this: When the user presses G, I want to program to display, 'you pressed G!'
<Unicorn|> How could I do that?
<Ox0dea> Unicorn|: Without them having pressed Enter, right?
<Ox0dea> Just G, nothing else?
ragingcake has quit [Quit: ragingcake]
<Unicorn|> What has to do with enter?
<Ox0dea> God dammit.
<Unicorn|> to run the .rb?
<Unicorn|> sorry... but I dont' understand
<Ox0dea> require 'io/console'; c = STDIN.getch; puts "You pressed #{c}!"
<Ox0dea> Unicorn|: Put that in a script and confirm it does what you're looking for.
lncdslnc has quit [Quit: Leaving]
baroquebobcat has joined #ruby
blandflakes has joined #ruby
Rollabunna has joined #ruby
baweaver has quit [Remote host closed the connection]
<eam> Unicorn|: do you want to detect that the "g" key is currently depressed? Or do you want to detect that a "g" character was sent to the terminal?
<Ox0dea> eam: You're being unnecessarily confusing.
wldcordeiro_ has quit [Ping timeout: 256 seconds]
Iskarlar has quit [Client Quit]
shellie_ has left #ruby [#ruby]
<eam> I don't think so, the two are pretty importantly different
benlovell has quit [Ping timeout: 240 seconds]
<eam> like, is this a game? or just a terminal app?
<Ox0dea> Baby steps.
<scorp007> can I define a class type in an extension and make a single instance of it, but not allow scripters to instantiate it?
poguez_ has joined #ruby
centrx has joined #ruby
<Unicorn|> Yes, it does that
<Unicorn|> Thank you
omegamike has quit [Ping timeout: 256 seconds]
atomical has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blueOxigen has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
<scorp007> or rather, not an extension, but an embedding.
<Ox0dea> scorp007: How do you define an "embedding"?
<scorp007> I would like to expose a single module-level Foo object of the Foo class
<Ox0dea> Unicorn|: Was that the behavior you intended to achieve, then?
Kyuujitsu has quit [Ping timeout: 256 seconds]
<scorp007> ruby.dll embedded into myapp.exe.
Kyuujitsu has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
michael_mbp has quit [Excess Flood]
<Unicorn|> When my program ended, I wanted it to not close the console until the user pressed g
<scorp007> I think that rb_define_class* will make it scripter visible.
<scorp007> but I just want to allocate a class object, call rb_class_new_instance on it, but not publish the class visibly
<Ox0dea> scorp007: rb_mod_private_constant() should do.
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 244 seconds]
<scorp007> oh, interesting. Let me see
mleung has quit [Quit: mleung]
kjones_ has joined #ruby
<scorp007> is a class a constant?
<Ox0dea> scorp007: There's also the RBASIC_CLEAR_CLASS() macro which'll make it much less accessible.
tuelz has joined #ruby
<Ox0dea> scorp007: Usually.
kjones_ has quit [Max SendQ exceeded]
quimrstorres has quit [Remote host closed the connection]
<scorp007> that's under internal.h
<Ox0dea> Oh, right.
<Ox0dea> You'll have to settle for privatizing the constant, then. :/
michael_mbp has joined #ruby
tanath has joined #ruby
kjones_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
skade has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Quit: WeeChat 1.2]
<scorp007> hmm, apparently private is not very strong at hiding things...
Kyuujitsu has joined #ruby
<Ox0dea> This is Ruby.
<scorp007> there's no way of allocating a class but not publishing it to the map of classes?
<scorp007> I guess the classes are all stored in some hash table?
rehat has quit [Remote host closed the connection]
<scorp007> keyed on their name?
hahuang61 has quit [Quit: WeeChat 1.2]
<Ox0dea> No, not quite. Some classes don't have names.
<Ox0dea> >> (x = Class.new).name
<ruboto> Ox0dea # => nil (https://eval.in/412047)
<scorp007> that may be what I want...
<scorp007> x is a Object?
<Ox0dea> That's... troubling?
<scorp007> why? It's an anonymous class.
skade has joined #ruby
<Ox0dea> That doesn't make it completely inaccessible, though, which is what you seem to be after.
<scorp007> hmm, maybe I can just instantiate an Object, and define some singleton methods on it?
<Ox0dea> A fool's errand in this language, I might add.
tuelz has quit [Ping timeout: 246 seconds]
<scorp007> that would allocate an anonymous class on my behalf (singleton class)
<scorp007> and point that object's class to it
<Unicorn|> Ok, so you left me thoroughly confused. Lets say this is a game. how can I make variable A increase by 1 when G is pressed? while 1 require 'io/console'; c = STDIN.getch; if c = 'G';A + 1 = A;end; end
<Unicorn|> And I know there is no end to the while loop
<Ox0dea> Unicorn|: You need to learn Ruby first.
jpfuentes2 has joined #ruby
<zenspider> scorp007: what do you actually want to do at the 10k foot level?
<Ox0dea> > There are millions of thousand-story buildings.
<scorp007> zenspider: I'm building an object model in Ruby for my application.
Yzguy has joined #ruby
<zenspider> Unicorn|: learn the difference between = and == to start
leesharma has quit [Ping timeout: 246 seconds]
<scorp007> zenspider: so that ruby can manipulate my application through classes, methods, etc.
<zenspider> scorp007: yes. that's called programming in an OO language
<zenspider> done
Kyuujitsu has quit [Ping timeout: 244 seconds]
<Ox0dea> !next
leesharma has joined #ruby
<zenspider> trying to make the CPU execute instructions to manipulate memory and calculate results
<zenspider> have fun with that. I was motivated to help. not so much now.
<Ox0dea> Hey, gals! How do I open some of the logic gates in my CPU?
<dfockler> You pick the lock
baweaver has joined #ruby
<Ox0dea> dfockler: I've only got these NAND and NOR keys; will they suffice?
<dfockler> You'll need an XNOR key
al2o3-cr has joined #ruby
bmurt has joined #ruby
<symm-> don't open all the gates or you will be overwhelmed with logic
allcentury has joined #ruby