apeiros changed the topic of #ruby-lang to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
mistym has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
kith has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby-lang
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
AKASkip has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Ping timeout: 276 seconds]
danijoo has quit [Read error: Connection reset by peer]
EngierkO has joined #ruby-lang
danijoo has joined #ruby-lang
mbj has quit [Quit: leaving]
mistym has joined #ruby-lang
rue has joined #ruby-lang
bin8me has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
bin7me has quit [Ping timeout: 252 seconds]
tsou has quit [Quit: out]
huma has joined #ruby-lang
d4rkr4i has quit [Read error: Connection reset by peer]
d4rkr4i has joined #ruby-lang
_mtr has joined #ruby-lang
d4rkr4i has quit [Client Quit]
kurko_ has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
heftig has quit [Ping timeout: 252 seconds]
plurt has joined #ruby-lang
michaeldeol has quit [Ping timeout: 260 seconds]
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
patriciomacadden has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
danijoo has joined #ruby-lang
havenwood has joined #ruby-lang
djinni` has quit [Ping timeout: 248 seconds]
djinni` has joined #ruby-lang
tylersmith has joined #ruby-lang
VTLob has quit [Quit: VTLob]
tylersmith has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
bin8me has quit [Quit: Leaving]
bin8me has joined #ruby-lang
bin8me has quit [Remote host closed the connection]
bin8me has joined #ruby-lang
bin8me has quit [Remote host closed the connection]
EngierkO_ has joined #ruby-lang
EngierkO has quit [Ping timeout: 248 seconds]
heftig has joined #ruby-lang
EngierkO_ has quit [Ping timeout: 248 seconds]
nathanstitt has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
declan has quit [Quit: Leaving.]
Johz has quit [Quit: Leaving]
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
declan_ has quit [Ping timeout: 272 seconds]
_mtr has joined #ruby-lang
_mtr has quit [Max SendQ exceeded]
deens has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
daikan has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
declan has joined #ruby-lang
marr has quit [Ping timeout: 246 seconds]
_mtr has joined #ruby-lang
Lewix has joined #ruby-lang
patriciomacadden has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has quit [Quit: momomomomo]
fire has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
specialblend has joined #ruby-lang
michaeldeol has joined #ruby-lang
dingus_khan has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.2]
|jemc| has joined #ruby-lang
fire has quit [Quit: WeeChat 0.4.1]
michaeldeol has quit [Ping timeout: 272 seconds]
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vpretzel has joined #ruby-lang
hahuang65 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
_mtr has joined #ruby-lang
plurt has quit [Quit: Computer has gone to sleep.]
tectonic has quit []
ledestin has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
charliesome has joined #ruby-lang
plurt has joined #ruby-lang
tylersmith has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
Voker57 has quit [Remote host closed the connection]
specialblend has quit [Quit: specialblend]
nathanstitt has joined #ruby-lang
lsegal` has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Elico has quit [Quit: Elico]
mehlah has quit [Quit: Leaving...]
deens has joined #ruby-lang
diegoviola has joined #ruby-lang
michaeldeol has joined #ruby-lang
deens has quit [Read error: Operation timed out]
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
simoz3 has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Max SendQ exceeded]
fijimunkii has quit [Ping timeout: 272 seconds]
kurko_ has joined #ruby-lang
tylersmith has joined #ruby-lang
Cakey has joined #ruby-lang
fijimunkii has joined #ruby-lang
daikan has joined #ruby-lang
daikan has quit [Ping timeout: 272 seconds]
yatish27 has joined #ruby-lang
Randroid has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
Randroid has quit [Remote host closed the connection]
simoz3 has quit [Ping timeout: 252 seconds]
Randroid has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby-lang
specialblend has joined #ruby-lang
lsegal` has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
woollyams has joined #ruby-lang
Elico has joined #ruby-lang
Elico has quit [Client Quit]
yfeldblu_ has quit [Read error: Operation timed out]
simi has quit [Ping timeout: 248 seconds]
yatish27 has quit [Remote host closed the connection]
plurt has quit [Quit: Computer has gone to sleep.]
yatish27_ has joined #ruby-lang
EngierkO has joined #ruby-lang
deens has joined #ruby-lang
havenwood has joined #ruby-lang
yfeldblum has joined #ruby-lang
deens has quit [Remote host closed the connection]
EngierkO has quit [Ping timeout: 248 seconds]
kotk has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
daikan has joined #ruby-lang
daikan has quit [Ping timeout: 265 seconds]
Cakey has quit [Ping timeout: 260 seconds]
rahul_j has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
dingus_khan has joined #ruby-lang
mistym has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
yatish27_ has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 272 seconds]
yatish27 has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 260 seconds]
diegoviola has quit [Read error: No route to host]
diegoviola has joined #ruby-lang
diegoviola has quit [Changing host]
diegoviola has joined #ruby-lang
diegoviola has quit [Client Quit]
diegoviola has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
havenwood has quit [Remote host closed the connection]
mucker has joined #ruby-lang
h0lyalg0rithm has joined #ruby-lang
achiu has quit [Quit: WeeChat 0.4.2]
Turristan_ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
shinnya has joined #ruby-lang
rahul_j has joined #ruby-lang
diegoviola has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
diegoviola has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
daikan has joined #ruby-lang
deens has joined #ruby-lang
havenwood has joined #ruby-lang
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
daikan has quit [Ping timeout: 265 seconds]
deens has quit [Ping timeout: 248 seconds]
EngierkO has joined #ruby-lang
mucker has quit [Ping timeout: 252 seconds]
heftig has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
deens has joined #ruby-lang
yatish27 has joined #ruby-lang
Lewix_ has joined #ruby-lang
Lewix has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
achiu has joined #ruby-lang
red_menace has quit [Quit: peer reset by connection]
isst has joined #ruby-lang
isst has quit [Client Quit]
Randroid has quit [Quit: Randroid]
tylersmith has joined #ruby-lang
Barrin6 has joined #ruby-lang
zxd has joined #ruby-lang
tylersmith has quit [Ping timeout: 272 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
deens has quit [Remote host closed the connection]
zxd has quit [Ping timeout: 260 seconds]
jtw has quit []
tkuchiki has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 272 seconds]
deens has joined #ruby-lang
daikan has joined #ruby-lang
deens has quit [Remote host closed the connection]
cads has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby-lang
cads has joined #ruby-lang
daikan has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
relix has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
Asher has quit [Quit: Leaving.]
Asher has joined #ruby-lang
phansch has joined #ruby-lang
apeiros_ has joined #ruby-lang
AKASkip has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch has quit [Quit: Leaving]
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
cads has quit [Ping timeout: 248 seconds]
AKASkip has quit [Ping timeout: 252 seconds]
dik_dak has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
daikan has joined #ruby-lang
Barrin6 has quit [Quit: Leaving]
havenwood has joined #ruby-lang
daikan has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 245 seconds]
rahul_j has quit [Quit: rahul_j]
deens has joined #ruby-lang
rahul_j has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
amclain has quit [Quit: Leaving]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
deens has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
brahmana has joined #ruby-lang
AKASkip has joined #ruby-lang
<brahmana> Hi, can I slice a string at a unicode grapheme boundary using the standard Ruby string or do I need to use something like the Unicode gem? http://rubygems.org/gems/unicode
apeiros has joined #ruby-lang
<r0bgleeson> brahmana: what is a unicode grapheme boundary, on 1.9 strings are composed of characters and not bytes as in 1.8, if that makes a difference
<brahmana> r0bgleeson: Here is some info about it : http://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries
<brahmana> With str = "d̪" , str.length returned 2. So I am wondering if native strings can do what I want
<r0bgleeson> ah i see, well, i believe ruby tries to represent characters (as perceived by a human) and to avoid ambiguities like that, but i dont know for sure. what is the encoding of str, and are you on 1.9+?
<brahmana> I want to get the first 100 displayable characters from a string, aka slice at the 100th grapheme cluster
<brahmana> str.encoding => #<Encoding:UTF-8>
<r0bgleeson> [0..99] should do that, no?
<brahmana> This is Ruby 2.0
<r0bgleeson> i cant ask your question for certain except to say give it a shot
<r0bgleeson> UTF-8 is the encoding you want, probably yeah
amerine has quit [Quit: Textual IRC Client: www.textualapp.com]
<brahmana> Regular slicing doesn't seem to work : http://pastie.org/8628560
amerine has joined #ruby-lang
<r0bgleeson> thats one crazy 'd'
<r0bgleeson> but indeed
<brahmana> :)
<r0bgleeson> it looks that way
<r0bgleeson> brahmana: yeah
<r0bgleeson> >> "Hi?"
<r0bgleeson> ok its not here
<r0bgleeson> i can see the same problem in irb as well
<whitequark> brahmana: ruby stdlib doesn't include code for determining grapheme clusters
<r0bgleeson> your d̪ is represented by[0..1]
<brahmana> r0bgleeson: Yup..
<brahmana> whitequark: Thanks for the confirmation. I will try the unicode gem
<brahmana> whitequark: Or do you suggest something else?
apeiros has quit [Remote host closed the connection]
cycorld has joined #ruby-lang
<r0bgleeson> my terminal is lol ever since this 'd̪' came along
<r0bgleeson> everything rendering messed up
<brahmana> r0bgleeson: Gnome terminal?
<r0bgleeson> iterm2
<r0bgleeson> its really bad
<brahmana> oh.. not heard of that..
<r0bgleeson> there's a "g" not attached to any of the messages everyone writes
<r0bgleeson> its for OSX
cycorld has quit [Client Quit]
<whitequark> brahmana: try http://utf8proc.rubyforge.org/
danijoo has quit [Read error: Connection reset by peer]
<r0bgleeson> always a bit worrying when there's a link to rubyforge =/
danijoo has joined #ruby-lang
<r0bgleeson> brahmana: you know it might not be a terrible idea to open an issue on bugs.ruby-lang.org
<brahmana> whitequark: Isn't that somewhat old? Is it still under development?
<brahmana> r0bgleeson: Let me search the existing bugs to see if there is one already
<r0bgleeson> a lot of what you find may be old, since some of this was written on 1.8
<r0bgleeson> if there's an issue or something, maybe MRI can add API
<brahmana> yeah.. that would help with all the non-english text processing.
<brahmana> This seems like a fairly updated gem : http://www.yoshidam.net/unicode.txt
Turristan_ has quit [Remote host closed the connection]
<r0bgleeson> heh
<r0bgleeson> it doesn't resolv right?
vmoravec has joined #ruby-lang
<r0bgleeson> ah
<r0bgleeson> there we go
<r0bgleeson> yeah
<r0bgleeson> its definitely maintained
DouweM has quit [Ping timeout: 272 seconds]
<r0bgleeson> ActiveSupport has an API for everything
<r0bgleeson> you can even build tractors with it
<r0bgleeson> if youre not using rails, id recommend not bothering with AS
mistym has quit [Remote host closed the connection]
<brahmana> haha.. tractors.. well said..
<r0bgleeson> a small little dependency like 'unicode' seems better for that
<brahmana> Yeah, I am not using Rails for the current application, but nevertheless it will probably be handy someday..
michaeldeol has joined #ruby-lang
<r0bgleeson> yeah indeed
dagobah has joined #ruby-lang
d4rkr4i has joined #ruby-lang
GarethAdams has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Ping timeout: 272 seconds]
zxd has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
GarethAdams has joined #ruby-lang
specialblend has quit [Quit: specialblend]
diegoviola has quit [Ping timeout: 272 seconds]
brahmana has quit [Quit: Page closed]
jxie has quit [Ping timeout: 272 seconds]
rahul_j has joined #ruby-lang
Lewix_ has quit [Remote host closed the connection]
daikan has joined #ruby-lang
Lewix has joined #ruby-lang
tbuehlmann has joined #ruby-lang
simoz3 has joined #ruby-lang
simoz3 has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
Lewix has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby-lang
symm- has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
vlad_starkov has joined #ruby-lang
yfeldblum has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
h0lyalg0rithm has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Ping timeout: 276 seconds]
cnivolle has joined #ruby-lang
saarinen has joined #ruby-lang
saarinen has quit [Client Quit]
solars has joined #ruby-lang
aef has joined #ruby-lang
arBmind has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
diegoviola has quit [Quit: WeeChat 0.4.2]
michaeldeol has joined #ruby-lang
Cakey has joined #ruby-lang
mikecmpbll has joined #ruby-lang
michd is now known as MichD
michaeldeol has quit [Ping timeout: 252 seconds]
declan has quit [Quit: Leaving.]
cnivolle has quit [Remote host closed the connection]
jxie has joined #ruby-lang
daikan has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
Cakey has quit [Ping timeout: 246 seconds]
robmiller has quit [Quit: robmiller]
<darix> /usr/share/man/man8/systemd-tmpfiles-clean.service.8.gz
<darix> ww
cnivolle has joined #ruby-lang
skade has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Cakey has joined #ruby-lang
elia has joined #ruby-lang
elia has quit [Remote host closed the connection]
elia has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
albertgrala has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
cnivolle has joined #ruby-lang
heftig has joined #ruby-lang
<yorickpeterse> morning
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
benlovell has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
michaeldeol has joined #ruby-lang
robmiller has joined #ruby-lang
arBmind has joined #ruby-lang
dduvnjak has joined #ruby-lang
dduvnjak has left #ruby-lang [#ruby-lang]
michaeldeol has quit [Ping timeout: 252 seconds]
robmiller has quit [Client Quit]
lele|w has quit [Ping timeout: 252 seconds]
phansch has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
elia has quit [Quit: (IRC Client: textualapp.com)]
daikan has joined #ruby-lang
elia has joined #ruby-lang
lele|w has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
daikan has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
marr has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
CoreData has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
Cakey has joined #ruby-lang
Pupeno_w has joined #ruby-lang
yfeldblum has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
cir0x has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
rahul_j has quit [Quit: rahul_j]
workmad3 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
matp has quit [Ping timeout: 252 seconds]
yatish27 has joined #ruby-lang
michaeldeol has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby-lang
jmeeuwen has quit [Excess Flood]
jmeeuwen has joined #ruby-lang
canton7-mac has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
matp has joined #ruby-lang
mikecmpbll has joined #ruby-lang
michaeldeol has quit [Ping timeout: 272 seconds]
Johz has joined #ruby-lang
rahul_j has joined #ruby-lang
Pupeno_w has quit []
daikan has joined #ruby-lang
dduvnjak has joined #ruby-lang
VTLob has joined #ruby-lang
cir0x has quit [Quit: WeeChat 0.4.2]
mucker has joined #ruby-lang
imperator2 has joined #ruby-lang
h0lyalg0rithm has joined #ruby-lang
h0lyalg0rithm has quit [Client Quit]
skade has quit [Quit: Computer has gone to sleep.]
matp has quit [Quit: Bye!]
diegoviola has joined #ruby-lang
kurko_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matp has joined #ruby-lang
kurko_ has joined #ruby-lang
x0f has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby-lang
x0f has joined #ruby-lang
vlad_starkov has joined #ruby-lang
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
michaeldeol has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
jxie has quit [Quit: leaving]
Yuuvee has joined #ruby-lang
michaeldeol has quit [Ping timeout: 252 seconds]
Phoop has quit []
Onixs has quit [Read error: Connection reset by peer]
leece has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
Onixs has joined #ruby-lang
yatish27_ has joined #ruby-lang
simi has joined #ruby-lang
patriciomacadden has joined #ruby-lang
imperator2 has quit [Ping timeout: 246 seconds]
DouweM has joined #ruby-lang
symm- has joined #ruby-lang
DouweM has quit [Ping timeout: 276 seconds]
<simi> Hello. Is there any way hot to get Ruby patch level from attached gdb?
h_kon has joined #ruby-lang
MrZYX is now known as MrZYX|off
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
yfeldblum has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby-lang
JohnBat26 has joined #ruby-lang
cored has joined #ruby-lang
skade has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
dduvnjak has left #ruby-lang [#ruby-lang]
Thanatermesis has joined #ruby-lang
Thanatermesis has joined #ruby-lang
Thanatermesis has quit [Changing host]
<sluukkonen> my MRI internals -fu is rusty, but something like call rb_p(rb_eval_string_protect("RUBY_PATCHLEVEL", 0))
rahul_j has quit [Quit: rahul_j]
michaeldeol has joined #ruby-lang
yalue has joined #ruby-lang
Oak has joined #ruby-lang
Cakey has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
smashwilson has joined #ruby-lang
daikan has quit [Remote host closed the connection]
robmiller has joined #ruby-lang
<dostoyevsky> Hi... This might be a bit off-topic... but I am executing a shell script in Ruby and then forward the output line-by-line in a [200, "text/html", OutputReader##each]. The script takes a while to run and I see #each being invoked all the time. But in the browser the page only shows when the shell script was completed... I do not see each individual line like I see them on the server side being #each'ed
daikan has joined #ruby-lang
<dostoyevsky> Is there a way to force a browser to show each line as it's being written from the server?
<yorickpeterse> You need a webserver that supports streaming
<yorickpeterse> Webrick doesn't support that
<yorickpeterse> Thin/Unicorn do I believe, not 100% sure about Unicorn though
yatish27_ has quit [Remote host closed the connection]
<dostoyevsky> >> Thin web server (v1.3.1 codename Triple Espresso)
<dostoyevsky> That's the one Sinatra is using here
<yorickpeterse> if you're using Sinatra you might want to look at http://www.sinatrarb.com/intro.html#Streaming%20Responses
yatish27 has joined #ruby-lang
EngierkO has joined #ruby-lang
sepp2k has joined #ruby-lang
<dostoyevsky> cool, thanks!!!
<dostoyevsky> (Example code works)
daikan has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
bin7me has joined #ruby-lang
daikan has joined #ruby-lang
olivier_bK has joined #ruby-lang
<olivier_bK> hy
<olivier_bK> how i can iterate over curl command
<olivier_bK> ?
yatish27 has quit [Ping timeout: 253 seconds]
<yorickpeterse> what the fuck
<yorickpeterse> it returns a String, what did you expect it to return?
<yorickpeterse> also Ruby has dozens of HTTP libraries that you can use instead
<yorickpeterse> including net/http which comes with it
yfeldblum has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
<olivier_bK> yorickpeterse, you talk to me
<olivier_bK> ?
ahmedelgabri has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ahmedelgabri has joined #ruby-lang
patriciomacadden has joined #ruby-lang
<yorickpeterse> yes?
breakingthings has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
kirin` has quit [Ping timeout: 276 seconds]
skade has quit [Ping timeout: 245 seconds]
skade has joined #ruby-lang
rahul_j has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kirin` has joined #ruby-lang
yatish27 has joined #ruby-lang
Yuuvee is now known as Yuuvee|away
Yuuvee|away is now known as Yuuvee
michaeldeol has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
jxie has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
P0bailey_ has quit [Ping timeout: 260 seconds]
Oak has quit [Ping timeout: 246 seconds]
P0bailey_ has joined #ruby-lang
slyphon has joined #ruby-lang
ahmedelg_ has joined #ruby-lang
apeiros has joined #ruby-lang
<olivier_bK> yorickpeterse, how i can execute a curl command with iterating in (20000..180000).step(20000)do |usere| ?
P0bailey_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby-lang
Yuuvee has quit [Quit: Leaving...]
ahmedelgabri has quit [Ping timeout: 252 seconds]
<yorickpeterse> what?
<yorickpeterse> the way you're formatting the command is incorrect
ahmedelg_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
<yorickpeterse> "...{userb}..." <- this is what you'd use for String#%, you're probably looking for "#{userb}"
<yorickpeterse> looks like a lousy copy-paste job but w/e
danijoo has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
<apeiros> String#% would want %{} too, {} alone is insufficient
<yorickpeterse> hm good point
<yorickpeterse> {} is from Python land if I'm not mistaken
<yorickpeterse> They figured "lol fuck those %s and %i, lets use {0} instead!"
<yorickpeterse> or "{name-here}"
<workmad3> yorickpeterse: I think C# can do similar with its string formatters
<yorickpeterse> C# was made by the devil
<apeiros> actually by microsoft, but I can understand the confusion
<yorickpeterse> granted it's better than C by the looks of it
<ljarvis> eh
Oak has joined #ruby-lang
Oak has quit [Changing host]
Oak has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 272 seconds]
slyphon has quit [Ping timeout: 272 seconds]
<charliesome> yorickpeterse: you can't really compare c and C#
<charliesome> completely different domains
<yorickpeterse> yes I can
<yorickpeterse> I just did
<yorickpeterse> bite me :P
momomomomo has joined #ruby-lang
Johz has quit [Quit: Leaving]
daikan has quit [Remote host closed the connection]
DouweM has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
nertzy2 has joined #ruby-lang
slyphon has joined #ruby-lang
nertzy3 has quit [Ping timeout: 245 seconds]
shinnya has quit [Ping timeout: 272 seconds]
daikan has joined #ruby-lang
nathanstitt has joined #ruby-lang
d4rkr4i has joined #ruby-lang
yfeldblum has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
<sluukkonen> turbo pascal wasn't made by the devil
vlad_starkov has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
vlad_sta_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
nigerianceo has joined #ruby-lang
<yorickpeterse> I like MongoDB
jtw has joined #ruby-lang
<yorickpeterse> especially since you can't actually update documents
<yorickpeterse> or remove them
<yorickpeterse> because that takes forever
Cakey has joined #ruby-lang
skade has joined #ruby-lang
mbj has joined #ruby-lang
slyphon has quit [Ping timeout: 246 seconds]
rahul_j has quit [Quit: rahul_j]
mrevd has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
<r0bgleeson> yorickpeterse: would do ya wanna be doing crazay shit like updates or deletes in a database
<r0bgleeson> create, create, create, and then add more nodes
stef_204 has joined #ruby-lang
mrevd has quit [Remote host closed the connection]
<r0bgleeson> woops, s/would/why/
mrevd has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> stop smoking pot while on IRC
<r0bgleeson> im not smoking pot
<r0bgleeson> what now? :)
<yorickpeterse> fine crack w/e
<r0bgleeson> stop living life without a sense of humor
<yorickpeterse> either way yeah, data just goes in a database and never comes out
enebo has joined #ruby-lang
<r0bgleeson> advice all programmers should take!
<r0bgleeson> brb
jxie has quit [Quit: leaving]
seanlinsley has quit [Quit: …]
michaeldeol has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
<olivier_bK> i found one probleme but i have another one :(
d4rkr4i has quit [Ping timeout: 252 seconds]
<olivier_bK> thanks for your help yorickpeterse
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenwood has joined #ruby-lang
mikecmpbll has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
bfleischer has joined #ruby-lang
bjh13 has joined #ruby-lang
michaeldeol has quit [Ping timeout: 252 seconds]
bjh13 has quit [Client Quit]
yatish27 has quit [Ping timeout: 248 seconds]
yatish27 has joined #ruby-lang
tylersmith has joined #ruby-lang
serroft has joined #ruby-lang
momomomomo_ has joined #ruby-lang
momomomomo_ has quit [Client Quit]
rahul_j has joined #ruby-lang
d4rkr4i has joined #ruby-lang
momomomomo_ has joined #ruby-lang
AKASkip has quit [Ping timeout: 276 seconds]
momomomomo_ has quit [Client Quit]
bjh13 has joined #ruby-lang
bin7me has quit [Quit: Leaving]
ahmedelgabri has quit [Remote host closed the connection]
mrevd has quit [Quit: Leaving.]
mrevd has joined #ruby-lang
declan has joined #ruby-lang
mechanicles has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse> random API question: if one has a JSON API, should the response body also be in JSON for errors (e.g. 404s)?
<apeiros> yes
<yorickpeterse> hm
<apeiros> with helpful information in the body. the more the merrier.
patriciomacadden has joined #ruby-lang
Pupeno_w has joined #ruby-lang
cored has quit [Ping timeout: 252 seconds]
vlad_sta_ has quit [Remote host closed the connection]
dwknoxy has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 248 seconds]
Oak has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
t4nkd has joined #ruby-lang
mistym has joined #ruby-lang
cads has joined #ruby-lang
seanlinsley has joined #ruby-lang
aletip has joined #ruby-lang
Yuuvee has joined #ruby-lang
aletip has quit [Read error: Connection reset by peer]
d4rkr4i has quit [Ping timeout: 276 seconds]
Cumol has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<yorickpeterse> huh wtf, gem install sinatra-param and I get an empty gem
jovon has joined #ruby-lang
t4nkd has left #ruby-lang ["Linkinus - http://linkinus.com"]
symm- has joined #ruby-lang
<yorickpeterse> hm, apparently my Rubygems was butchered
<yorickpeterse> update fixed it
<yorickpeterse> ruby makes total sense
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
momomomomo has quit [Quit: momomomomo]
lfox has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
r0bby_ is now known as robbyoconnor
ahmedelgabri has joined #ruby-lang
michaeldeol has joined #ruby-lang
<cirenyc> If I have 3 attributes on an object and want to remove those that are not true and convert the rest to string representations, is there a better approach than https://gist.github.com/0aa3459e0fac655522d2
senj has joined #ruby-lang
<apeiros> cirenyc: looks fine. why do you call it "an object" when you know it's a hash?
|jemc| has joined #ruby-lang
vinhbachsy has joined #ruby-lang
<apeiros> though, your code will return an array, not a string
<cirenyc> apeiros: Because I am building the hash from attributes on an object. That wasn't clear from the code snippet.
<cirenyc> apeiros: Yes, I want an array of string representations.
<apeiros> IMO that's a fine way then.
rahul_j has joined #ruby-lang
<cirenyc> apeiros: Great, thank you.
michaeldeol has quit [Ping timeout: 248 seconds]
perdido has quit [Read error: Connection reset by peer]
mykoweb has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
jovon has quit [Quit: Leaving]
declan has quit [Quit: Leaving.]
ahmedelgabri has quit [Read error: Connection reset by peer]
bcardarella has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bcardarella> with Ripper I can find the line number that corresponds to the opening of a block. Is it possible to find the line number that corresponds to the closing of that block?
momomomomo has joined #ruby-lang
AKASkip has joined #ruby-lang
slyphon has joined #ruby-lang
jtw has quit [Read error: Connection reset by peer]
cnivolle_ has joined #ruby-lang
jtw_ has joined #ruby-lang
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
senj has joined #ruby-lang
<yorickpeterse> bcardarella: no
<yorickpeterse> Ripper is shit, use https://github.com/whitequark/parser instead if you want to keep your sanity
cnivolle_ has quit [Remote host closed the connection]
cnivolle has quit [Read error: No route to host]
<bcardarella> yorickpeterse: can parser do what I'm after?
cnivolle has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Zap-W_ has joined #ruby-lang
zxd has quit [Ping timeout: 272 seconds]
<yorickpeterse> not 100% sure about end blocks
<yorickpeterse> but it can give ranges along with the corresponding source code
cads has quit [Ping timeout: 246 seconds]
hackndoes has joined #ruby-lang
<bcardarella> yorickpeterse: that might be good enough, thank you
Zap-W_ has left #ruby-lang [#ruby-lang]
cads has joined #ruby-lang
<yorickpeterse> don't thank me, thank whitequark for writing something that keeps us sane
<yorickpeterse> well, a bit more sane than usual
<yorickpeterse> just a little bit
<bcardarella> whitequark: thanks :)
slyphon has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby-lang
arBmind1 has joined #ruby-lang
havenwood has joined #ruby-lang
yfeldblum has joined #ruby-lang
arBmind has quit [Ping timeout: 260 seconds]
jsullivandigs has joined #ruby-lang
patriciomacadden has joined #ruby-lang
arBmind1 has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
arBmind has joined #ruby-lang
adegre has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
Yuuvee has quit [Ping timeout: 245 seconds]
perdido has joined #ruby-lang
leece has quit [Ping timeout: 272 seconds]
cnivolle_ has joined #ruby-lang
tbuehlmann has quit [Quit: Konversation terminated!]
cnivolle has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
cnivolle_ has quit [Ping timeout: 252 seconds]
bantic has joined #ruby-lang
ahmedelg_ has joined #ruby-lang
phansch has quit [Ping timeout: 245 seconds]
phansch has joined #ruby-lang
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmedelgabri has quit [Ping timeout: 272 seconds]
panpainter has joined #ruby-lang
mistym has quit [Remote host closed the connection]
deens has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
senj has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
wallerdev has joined #ruby-lang
momomomomo has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
hackndoes has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby-lang
dwknoxy has joined #ruby-lang
Cumol has quit [Quit: Textual IRC Client: www.textualapp.com]
mistym has joined #ruby-lang
heftig has quit [Quit: Quitting]
adegre has quit [Quit: Leaving...]
serroft has quit [Quit: Leaving.]
RoxasShadowRS has joined #ruby-lang
red_menace has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
deens has quit [Remote host closed the connection]
sea6ear has left #ruby-lang ["Killed buffer"]
skade has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
CaptainJet has joined #ruby-lang
ivanskie has joined #ruby-lang
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 252 seconds]
benlovell has quit [Ping timeout: 245 seconds]
phansch has quit [Quit: Leaving]
imperator2 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
d4rkr4i has joined #ruby-lang
canton7-mac has quit [Quit: Leaving]
solars has quit [Ping timeout: 272 seconds]
DouweM has quit [Ping timeout: 276 seconds]
concertm_ has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saarinen has joined #ruby-lang
deens has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
daikan has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
postmodern has joined #ruby-lang
rahul_j has left #ruby-lang [#ruby-lang]
arBmind has quit [Quit: Leaving.]
elia has quit [Read error: Operation timed out]
enebo has quit [Quit: enebo]
Pupeno_w has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
VTLob has joined #ruby-lang
vinhbachsy has quit []
__butch__ has joined #ruby-lang
olivier_bK has quit [Ping timeout: 276 seconds]
deception has joined #ruby-lang
deception has quit [Changing host]
deception has joined #ruby-lang
tylersmith has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
daikan has joined #ruby-lang
relix has joined #ruby-lang
alekst has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
bin7me has joined #ruby-lang
mechanicles has quit []
workmad3 has quit [Ping timeout: 276 seconds]
serroft has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
patriciomacadden has joined #ruby-lang
bantic has quit [Quit: bantic]
CoreData has quit [Quit: CoreData]
deens has quit [Remote host closed the connection]
ahmedelg_ has quit [Ping timeout: 260 seconds]
Yuuvee has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
rebelcan- has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
Yuuvee has quit [Quit: Leaving...]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
wallerdev has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
MichD is now known as michd
paul_k has quit [Quit: ZNC - http://znc.in]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
imperator2 has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
Thanatermesis has joined #ruby-lang
Thanatermesis has joined #ruby-lang
kurko_ has joined #ruby-lang
kurko_ has quit [Max SendQ exceeded]
kurko_ has joined #ruby-lang
paul_k has joined #ruby-lang
<r0bgleeson> yorickpeterse: for your API question, that depends. JSON would be expected and more comfortable without a doubt, however Content-Type is there for a reason too.
<r0bgleeson> your clients should respect that
<r0bgleeson> for the sake of ease, JSON always is better
<yorickpeterse> that implies the clients know what they are doing
<r0bgleeson> exactly
<yorickpeterse> they are most likely not in our case
<yorickpeterse> (I went with JSON-everything btw)
<r0bgleeson> cool
<r0bgleeson> a good client would use 'Accept', probably.
deens has joined #ruby-lang
<yorickpeterse> some of these bs websites I deal with require Content-Type to be set as a request header
<yorickpeterse> which apparently is valid too
<r0bgleeson> it is, if it is has a body
<r0bgleeson> if it does not, it's not
<yorickpeterse> so `Content-Type: application/json`, Accept is completely ignored
<r0bgleeson> Accept is for, "hey, I want X back"
<r0bgleeson> then the server can say, "nope, not got it"
<r0bgleeson> or here you go
<r0bgleeson> X being application/json, text/html, etc
Lewix has joined #ruby-lang
<r0bgleeson> brb again
<bcardarella> yorickpeterse: question on parser. Is there a way to walk the tree? The nodes don't seem to be enumerable
hahuang65 has joined #ruby-lang
lfox has quit [Ping timeout: 245 seconds]
<yorickpeterse> bcardarella: eh yeah, I believe it's in a sub gem, sec
yfeldblum has quit [Remote host closed the connection]
<bcardarella> yorickpeterse: ast?
Pupeno_w has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
<bcardarella> yorickpeterse: thank you
daikan has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
CoreData has joined #ruby-lang
Pupeno_w has quit [Ping timeout: 272 seconds]
CoreData has quit [Client Quit]
CoreData has joined #ruby-lang
robmiller has quit [Quit: robmiller]
deens has quit [Remote host closed the connection]
<yorickpeterse> np
ahmedelg_ has joined #ruby-lang
ahmedelgabri has quit [Ping timeout: 252 seconds]
<apeiros> r0bgleeson: well, I disagree. if I specifically query foo.json, it's IMO unreasonable to return non-JSON, even with proper content-type set.
<apeiros> it's different with content-negotiation
deens has joined #ruby-lang
<r0bgleeson> apeiros: sure, if you have '.json' prefix.
<r0bgleeson> apeiros: that's kind of weird though, and a rails-ism
<r0bgleeson> apeiros: HTTP handles this in headers
<r0bgleeson> suffix*
<r0bgleeson> apeiros: .json may also represent a JSON content-type that is versioned, like mycompany/json-v1 etc.
<apeiros> r0bgleeson: it's not a railsism, no
<apeiros> .foo in urls existed *long* before rails
<r0bgleeson> in ruby, it is
<apeiros> it's not even a rubyism :)
<apeiros> seriously, exhibiting the "document type" (content-type) in the url is about as old as http
<r0bgleeson> my point of view is that it's a railism in the sense that the rails abstraction is so strong you dont even think at the level of headers, which you do
<r0bgleeson> you think at a vague level of file extension
<r0bgleeson> described by a vague content-type, defined by rails
<r0bgleeson> yea sure, that wasn't my point
<apeiros> no, rails just properly sets the content-type for you. just as apache did over a decade ago for static files with .foo in the url
<r0bgleeson> sure, it does, and it doesn't make you think in HTTP
<apeiros> in other words, it just ports over behavior from the static world to the dynamic world
<r0bgleeson> check out webmachine-ruby for a toolkit that actually works with HTTP
<r0bgleeson> not against it, or provides silly abstractions
mistym_ is now known as mistym
tbuehlmann has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
concertm_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
concertman has joined #ruby-lang
DEac-_ has quit [Quit: leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hotpancakes has quit [Ping timeout: 248 seconds]
waxjar is now known as shadesaaaa
momomomomo has joined #ruby-lang
sandroqz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
solars has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
concertman has quit [Remote host closed the connection]
concertman has joined #ruby-lang
mikecmpbll has joined #ruby-lang
concertm_ has joined #ruby-lang
plurt has joined #ruby-lang
spooft has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
concertman has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby-lang
concertm_ has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
spooft has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
<apeiros> r0bgleeson: at a cursory glance, it looks similar to what I once had in mind. wonder why it wants resources to subclass Webmachine::Resource. IMO anti pattern.
perdido has quit [Ping timeout: 272 seconds]
daikan has joined #ruby-lang
<yorickpeterse> first step of teaching Ruby to students:
<yorickpeterse> uninstall RVM
<apeiros> visual trace looks quite nice
<yorickpeterse> step two: install chruby + ruby-install
<apeiros> o0
<postmodern> too be fair, i actually taught a training, students who used RVM had no issues
* apeiros has had 3 years of painless versioned ruby thanks to rvm and doesn't know where the hate for rvm comes from as of late…
<postmodern> students who tried installing rbenv always forgot to add ~/.rbenv/shims to $PATH
<apeiros> I understand that others want a different tool for rvm. but that's not the same as hating on it.
<apeiros> *instead of rvm
heftig has joined #ruby-lang
<postmodern> apeiros, it has caused a lot of grief
<postmodern> apeiros, the bugs within rvm that is
<bougyman> which bugs have you hit?
<bougyman> i've yet to be affected by any bug with rvm that wasn't related to zsh.
<bougyman> in those cases, I just use bash.
<postmodern> bougyman, i also only run bash
<bougyman> so what bugs hit you?
<apeiros> I haven't hit a bug either. but as a single datapoint, I'm statistically irrelevant.
<apeiros> the two times (I think) i ran into issues I got help quickly in #rvm
<yorickpeterse> postmodern: I'll be dealing with Rbx here
<yorickpeterse> I don't want to run in more random issues
<bougyman> apeiros: but I double your sample size with my 0 bugs.
dingus_khan has joined #ruby-lang
<postmodern> bougyman, i last used rvm over a year ago
<apeiros> bougyman: still statistically irrelevant :) also no data to compare to (how many issues with chruby/rbenv/ruby-installer/etc.?)
<bougyman> i was kidding, yo.
<bougyman> but it does Work for Me.
<apeiros> ^^
<postmodern> bougyman, had issues with rubies not installing correctly, or issues with newer versions of libraries/tools that broke rvm
<apeiros> yeah, same. works for me, therefore never felt an urge to move.
<bougyman> I even use it for prod deployments.
<postmodern> bougyman, what motivated me to move off was the workflow
<yorickpeterse> I should probably make it clear that I dislike RVM itself, not the people behind it
<apeiros> and for new students, the "change your ruby version" is irrelevant. for those it's just the 2 lines: install with ruby, upgrade ruby.
<postmodern> protip: use the packaged ruby for production systems
<postmodern> that way you will get the security updates from the package manager
<apeiros> yorickpeterse: that's good for you as a human ;-)
<yorickpeterse> postmodern: only works if packaged Ruby is actually up to date
<apeiros> too many people can't hold such things apart :(
<bougyman> packaged ruby is almost never up to date.
<bougyman> unless you're runninga arch linux.
<apeiros> "I don't like your product, therefore I don't like you!" <- stupid
<yorickpeterse> then it's too up to date
<postmodern> apeiros, yeah nothing wrong with having students use system Ruby, provided they are running a modern OS
<bougyman> yorickpeterse: hehahahah
danijoo has quit [Read error: Connection reset by peer]
<apeiros> postmodern: oh, I meant with rvm
<postmodern> bougyman, on Fedora /usr/bin/ruby -> 2.0.0p353
<apeiros> postmodern: the two people I taught ruby, those were the only 2 rvm related lines I told them to add to their cheatsheet.
danijoo has joined #ruby-lang
<apeiros> osx sadly shipped with 1.8 for a looooong time :)
lfox has joined #ruby-lang
<postmodern> apeiros, yep and that's not our problem, that's Apple's
<postmodern> apeiros, i sort of wish OSX Rubyists would have lobbied Apple to upgrade ruby
<apeiros> postmodern: we had no pain. there was rvm which helped quickly.
<apeiros> and before there was macports and brew
<postmodern> apeiros, but you shouldn't need any ruby switcher
<postmodern> apeiros, system ruby should just work
<eam> not just apple, everyone shipped with 1.8
<apeiros> postmodern: I'm actually not so sure what my opinion on that is
<postmodern> eam, ubuntu, fedora, gentoo, arch all were quick to upgrade to 1.9
<eam> postmodern: rhel, the dist used for actual prod, is still on 1.8
<apeiros> I think software distribution at large is still very broken. despite (or because?) of all the existing package managers.
<eam> production platforms need stability
<postmodern> eam, of course, rhel _never_ upgrades
<eam> postmodern: that's not true, it's just on a reasonable cycle
<postmodern> eam, at any rate, fedora will be merged into rhel soon
<eam> just like apple
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> ya rhel7 will update system ruby
<postmodern> eam, except OSX is a user OS, not an enterprise server OS ;)
rynola___ has joined #ruby-lang
<eam> lots of enterprise corp stuff deployed on osx
<eam> windows has the same platform migration issues
<postmodern> except Microsoft is a-ok with EOLing XP
<eam> xp is older than ruby 1.6
<postmodern> every vendor appears to be realizing that the market wants quicker turn-around on upgrades
<postmodern> and are slowly moving away from the "support legacy forever" mentality
<eam> postmodern: I don't think that's true
<eam> unless you define "the market" as small companies only
<eam> demand at large shops is unchanged
<postmodern> eam, windows 7 is ending mainstream support within one year
<yxhuvud> eam: the bigger question is if rhel7 will update ruby to a version that isn't already obsolete.
<yorickpeterse> "RHEL 7.0, now with Ruby 1.9.2"
<postmodern> yxhuvud, depends on how fast ruby-core releases
<eam> they're getting ruby 2.0
<eam> which is extremely new as far as these things go
<r0bgleeson> apeiros: yeah, it actually implements a cool deicison tree on top of HTTP, which is what makes it unique. indeed, 'include Webmachine::Resource' would probably be a nicer pattern there.
<r0bgleeson> the decision tree is from 'webmachine', erlang version, developed by the basho guys
<r0bgleeson> i believe its used somewhat in riak as well
<r0bgleeson> you couldn't replace rails with it or even try to(totally different application) but it's still a great toolkit for developing close to HTTP and in a way which makes you think in HTTP, more so than sinatra/other-micro framework
<r0bgleeson> thats been my experience at least
<yxhuvud> postmodern: I see two trends. One is support legacy forever (think libc, kernel, perl etc), and the other is to support as little as possible
<postmodern> yxhuvud, the later sounds better
<yorickpeterse> except when you're at the other end
cnivolle has joined #ruby-lang
<eam> it depends on the nature of what lives above, and how stable its behavior needs to be
<yxhuvud> depends on how much time you can spend on maintenance. legacy support for infrastructure like mail servers etc can be quite justified.
RobertBirnie has joined #ruby-lang
<postmodern> certainly, there is infrastructure that must not change
<postmodern> but we were originally discussing the OSes that students run
<eam> I think we were discussing why update cycles vary between distros built for different use cases
perdido has joined #ruby-lang
<r0bgleeson> apeiros: I also wrote a debugger for webmachine-ruby, you can step through each method in the decision tree(in real time) and see the request as it happens
<eam> if you're an individual, or a startup with 1% your code and 99% someone else's code you probably don't care about disruptive updates because the surface area your code touches is small
<apeiros> r0bgleeson: nice
Thanatermesis has quit [Read error: Connection reset by peer]
<eam> but if you're doing heavy engineering you're going to care a lot about stable interfaces
panpainter has quit [Quit: panpainter]
<yorickpeterse> postmodern: where does chruby by default installs it stuff (when installing from Git) ?
<yorickpeterse> my arch linux package moves files around so I can't really compare
<postmodern> yorickpeterse, /usr/local
<yorickpeterse> and the main chruby.sh file?
<postmodern> yorickpeterse, any package should probably install into /usr
<postmodern> yorickpeterse, oh that would be /usr/local/share/chruby/chruby.sh
<yorickpeterse> mine slaps it in /usr/share/chruby/chruby.sh
<yorickpeterse> ah ok
<yorickpeterse> ty
hotpancakes has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
simoz3 has joined #ruby-lang
sandroqz has quit [Quit: Leaving the channel...]
ahmedelg_ has quit []
hotpanca_ has joined #ruby-lang
bantic has joined #ruby-lang
hotpancakes has quit [Ping timeout: 245 seconds]
imperator2 has joined #ruby-lang
patriciomacadden has joined #ruby-lang
hotpanca_ has quit [Ping timeout: 245 seconds]
Thanatermesis has joined #ruby-lang
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby-lang
[_aeris_] is now known as _aeris_
Johz has joined #ruby-lang
panpainter has joined #ruby-lang
simoz3 has quit [Read error: Connection reset by peer]
__butch__ has quit [Quit: Leaving.]
mistym_ has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
alekst has quit [Quit: Computer has gone to sleep.]
nhmood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
concertman has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
simoz4 has joined #ruby-lang
havenwood has joined #ruby-lang
lfox has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
enebo has joined #ruby-lang
<|jemc|> so I was about to try to make a tool that would allow "reverse" usage of a Regexp with named captures
vlad_starkov has quit [Ping timeout: 276 seconds]
<darix> |jemc|: reverse usage?
<|jemc|> that is, given a hash-like object that can be referenced by key, be able to construct a string from a Regexp in which those keys' values are substituted into the named capture groups
<|jemc|> obviously, you can't support the full set of what is possible in a regular expression
alekst has joined #ruby-lang
rynola___ has quit [Ping timeout: 272 seconds]
<|jemc|> but basically the idea would be to be able to create one "specification" object for parsing and for creating strings
<|jemc|> instead of /my string with (?<element>\w+)/ and "my string with #{element}"
<|jemc|> anyway, I was going to try to create something like this unless anyone knows of something off the top of their head that addresses this concept?
<|jemc|> ringing any bells?
<darix> |jemc|: how would you express /foo: (?<value>\d+)/ in your language?
<darix> how would you epxress simple things like ^$\A\z ...
concertman has quit [Remote host closed the connection]
<|jemc|> you'd express it with a regexp in the same way - so it wouldn't be a different language
<darix> o.O
concertman has joined #ruby-lang
<darix> what goal are you trying to achieve?
<|jemc|> it would just be something like:
<|jemc|> /foo: (?<value>\d+)/.fill({value:88})
<|jemc|> in which hash[value].to_s is validated to match \d+
<|jemc|> or rather hash[:value].to_s
<darix> o.O
<darix> so you want to use regexps as format strings?
<|jemc|> yeah so, that regexp.fill(match_data) would yield the original string
hotpancakes has joined #ruby-lang
<|jemc|> but like I said, you can't support non-literal characters outside of named capture groups
<|jemc|> but you don't need to if your regexps are crafted with this in mind
shinnya has joined #ruby-lang
deens has quit [Remote host closed the connection]
concertman has quit [Ping timeout: 246 seconds]
perdido has quit [Ping timeout: 246 seconds]
concertman has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
ledestin has quit [Quit: ledestin]
mbj has quit [Quit: leaving]
CoreData has quit [Quit: CoreData]
mykoweb has quit [Remote host closed the connection]
DouweM has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
imperator2 has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
cnivolle has quit [Ping timeout: 252 seconds]
cnivolle has joined #ruby-lang
plurt has quit [Quit: Computer has gone to sleep.]
<|jemc|> has anybody seen anything more up to date for regexp parsing along the lines of: https://github.com/ammar/regexp_parser ?
<|jemc|> I'm not sure what in regexp syntax would have even changed between 1.9 and 2.1 ....
tkuchiki has joined #ruby-lang
plurt has joined #ruby-lang
concertman has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
concertman has joined #ruby-lang
_aeris_ is now known as [_aeris_]
tkuchiki has joined #ruby-lang
lfox has joined #ruby-lang
DouweM has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mbj has joined #ruby-lang
michaeldeol has joined #ruby-lang
Onixs has quit [Ping timeout: 272 seconds]
solars has quit [Quit: WeeChat 0.4.1]
tkuchiki has quit [Ping timeout: 248 seconds]
concertman has quit [Ping timeout: 272 seconds]
mbj has quit [Read error: Operation timed out]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
atmosx has joined #ruby-lang
<drbrain> |jemc|: I'm not familiar with any new regexp syntax since 1.9
mistym has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
brianpWins has joined #ruby-lang
symm- has quit [Read error: Operation timed out]
arBmind has joined #ruby-lang
concertman has joined #ruby-lang
Lewix has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
DouweM has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
deens has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 252 seconds]
olivier_bK has joined #ruby-lang
albertgrala has quit [Quit: Leaving]
plurt has quit [Quit: Computer has gone to sleep.]
heftig has quit [Quit: Quitting]
patriciomacadden has joined #ruby-lang
mbj has joined #ruby-lang
Elico has joined #ruby-lang
nigerianceo has quit [Remote host closed the connection]
concertman has quit [Remote host closed the connection]
concertman has joined #ruby-lang
charliesome has joined #ruby-lang
brushbox has joined #ruby-lang
prc has joined #ruby-lang
concertman has quit [Ping timeout: 245 seconds]
deens has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
slyphon has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby-lang
skade has joined #ruby-lang
dik_dak has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
phansch has joined #ruby-lang
nigerianceo has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby-lang
concertman has joined #ruby-lang
dingus_khan has quit [Ping timeout: 252 seconds]
heftig has joined #ruby-lang
diegoviola has joined #ruby-lang
mykoweb has joined #ruby-lang
lcdhoffman has joined #ruby-lang
smashwilson has quit [Quit: Leaving]
simoz4 has quit [Ping timeout: 272 seconds]
breakingthings has quit []
diegoviola has quit [Ping timeout: 248 seconds]
concertman has quit [Remote host closed the connection]
concertman has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
io_syl has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
concertman has quit [Ping timeout: 276 seconds]
dingus_khan has joined #ruby-lang
simoz4 has joined #ruby-lang
brianpWins has joined #ruby-lang
concertman has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
cored has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
prc has quit [Quit: Leaving.]
panpainter has quit [Quit: panpainter]
deens has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby-lang
phansch has quit [Quit: Leaving]
DEac- has joined #ruby-lang
simoz4 has quit [Read error: Connection timed out]
deens has quit [Ping timeout: 272 seconds]
mbj has quit [Quit: leaving]
atmosx has quit [Quit: Lost in trance]
momomomomo has quit [Quit: momomomomo]
bin7me has quit [Quit: Leaving]
jeff_r has joined #ruby-lang
jacky is now known as Jacky
bjh13 has quit [Quit: leaving]
deens has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
enebo has quit [Quit: enebo]
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mehlah has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
jeff_r has quit [Remote host closed the connection]
mrevd has quit [Quit: Leaving.]
d4rkr4i has quit [Quit: Leaving.]
mrevd has joined #ruby-lang
mrevd has quit [Client Quit]
hotpancakes has quit [Remote host closed the connection]
alekst has quit [Quit: Computer has gone to sleep.]
bantic has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
patriciomacadden has joined #ruby-lang
concertman has quit [Remote host closed the connection]
concertman has joined #ruby-lang
AKASkip has quit [Ping timeout: 260 seconds]
concertman has quit [Ping timeout: 265 seconds]
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
Johz has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
CaptainJet has quit []