<foca>
zenspider: drbrain: is Ruby19Parser able to parse any 1.8 file? (I would assume so, but then I'm not sure why the need to separate into two constants, so I might be missing something)
nignaztic has quit [Quit: WeeChat 0.3.7]
rmascarenhas has joined #ruby-lang
nignaztic has joined #ruby-lang
<drbrain>
foca: AFAIK, ruby 1.9 syntax is a superset of 1.8 syntax
<drbrain>
foca: which would explain why 1.9 and 1.8 would need to be separate
<foca>
but if it's strictly a superset, a 1.9 parser should be able to understand a 1.8 file, right?
postmodern has joined #ruby-lang
felipe__ has quit [Quit: Leaving]
<raggi_>
my gut is telling me there are incompatible edge cases, but don't ask me to demonstrate one
<foca>
:)
<zenspider>
foca: nope!
<zenspider>
ruby 1.9 is NOT a superset of ruby 1.8
<foca>
aha
<zenspider>
eg case x; when 42:
<raggi_>
oh yeah
<foca>
true
<zenspider>
I think there are 1 or 2 other small things
<foca>
I forgot about those deprecations
<raggi_>
mostly around the changes for hash literals
macmartine has quit [Quit: macmartine]
<raggi_>
i have a feeling there's a 1.8.6 thing wiht the block args to procs too, but i may be wrong
<foca>
hm, so the only way to parse an arbitrary file would be to attempt Ruby19Parser, rescue parsing errors, and attempt parsing with Ruby18Parser?
<zenspider>
no, 1.8.6 didn't have that... so that's fine
<zenspider>
foca: prolly, yeah
<zenspider>
I was thinking about making CompoundRubyParser last night
<raggi_>
zenspider: yeah, i thought it failed to parse though? i could be worng
<foca>
that'd be nice :)
<raggi_>
not that 1.8.6 really matters
<raggi_>
(we can hope)
<zenspider>
it does matter. ppl still use it.
<foca>
I'm sure there's a bunch of people still using it in prodction
seanstickle has joined #ruby-lang
<raggi_>
sure i still ahve apps on it in production
<zenspider>
but a lot of the 1.9 extensions backported to 1.8.7 have only recently made it to my parser
<raggi_>
because they've never restarted (there's a newer binary on teh box even)
<zenspider>
they're only in the alpha releases
<zenspider>
hah
arooni-mobile has quit [Ping timeout: 265 seconds]
<bnagy>
have you used any jruby / ffi stuff on win64?
brianpWins has joined #ruby-lang
<imperator>
little bit
<imperator>
why? got an ffi question?
<bnagy>
not yet, just wanted to know if it will work
jakko has quit [Remote host closed the connection]
<bnagy>
I still have days before my install iso will finish downloading
jakko has joined #ruby-lang
<imperator>
should work, but jruby ffi is hampered by the lack of real fileno
<bnagy>
well the latest mri build I could find was 1.9.2 something
<imperator>
which can be very problematic in practice
<bnagy>
and then there are many hoops, it seems to get zlib, ffi etc
havenn has joined #ruby-lang
<imperator>
yeah, it has its own libs for zlib, openssl, etc
<imperator>
and you'll want the ffi gem, not whatever ships with jruby by default
<bnagy>
k
<bnagy>
I still need to build zmq as well :S
<bnagy>
soo much crap to DL :(
<imperator>
DL? say what?
<bnagy>
download
<imperator>
oh, misread that
<bnagy>
need to download VS 2008 or later to build zmq libs
<bnagy>
yeah bad context for that acronym
<imperator>
;)
<bnagy>
btw cutest windows instant exit I know xor esp, esp; ret
flowerpot has joined #ruby-lang
<imperator>
ew
<imperator>
didn't know that one, thanks....i think ;)
<bnagy>
so small!
<imperator>
and violent!
<bnagy>
5 bytes, I think
<bnagy>
it's awesome because normal windows exception handling is stack based, but this way there isn't even any unhandled exception crap to go through
bglusman has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
bglusman has quit [Ping timeout: 244 seconds]
neocoin has joined #ruby-lang
cari_cewe has joined #ruby-lang
jeremyolliver has joined #ruby-lang
postmodern has joined #ruby-lang
cari_cewe has quit []
rippa has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
l0st1 has joined #ruby-lang
Hakon|mbp has quit [Client Quit]
jmcphers_ has quit [Ping timeout: 256 seconds]
dalekurt has joined #ruby-lang
jmcphers has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
ruurd has joined #ruby-lang
flowerpot has quit [Ping timeout: 244 seconds]
imperator has left #ruby-lang ["Leaving"]
slyphon has quit [Quit: WeeChat 0.3.7]
Hakon|mbp has joined #ruby-lang
havenn has quit [Remote host closed the connection]
yxhuvud has joined #ruby-lang
havenn has joined #ruby-lang
WillMarshall has joined #ruby-lang
byronb has quit [Ping timeout: 244 seconds]
fayimora has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
macmartine has quit [Quit: macmartine]
Asher has joined #ruby-lang
macmartine has joined #ruby-lang
ttilley is now known as ttilley_off
Dreamer3 has joined #ruby-lang
anacond109 has joined #ruby-lang
corundum has quit [Read error: Connection reset by peer]
corundum has joined #ruby-lang
burgestrand has joined #ruby-lang
ttilley_off is now known as ttilley
TvL2386 has joined #ruby-lang
gregmoreno has joined #ruby-lang
gregmore_ has quit [Ping timeout: 240 seconds]
macmartine has quit [Quit: macmartine]
Fullmoon has joined #ruby-lang
Fullmoon has quit [Client Quit]
r0bby has joined #ruby-lang
kiddorails has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 244 seconds]
jeremyolliver has quit [Ping timeout: 245 seconds]
savage- has joined #ruby-lang
JohnBat26 has joined #ruby-lang
jtoy has joined #ruby-lang
A1241 has quit [Quit: Leaving.]
jtoy_ has joined #ruby-lang
jtoy has quit [Ping timeout: 244 seconds]
jtoy_ is now known as jtoy
gouthamvel has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
venu has joined #ruby-lang
ttilley is now known as ttilley_off
kiddorails has quit [Ping timeout: 245 seconds]
gja has joined #ruby-lang
dreieins has quit [Ping timeout: 244 seconds]
skinny_much has joined #ruby-lang
kiddorails has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
dc5ala has joined #ruby-lang
dreieins has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
ryanf has quit [Quit: leaving]
rking has quit [Quit: bbiaw]
gja has quit [Quit: This computer has gone to sleep]
nignaztic has quit [Quit: WeeChat 0.3.7]
tallship has quit [Remote host closed the connection]
ruurd has quit [Quit: Leaving...]
skinny_much has left #ruby-lang [#ruby-lang]
charliesome has joined #ruby-lang
venu has quit [Ping timeout: 245 seconds]
jtoy has quit [Quit: jtoy]
zmack has joined #ruby-lang
savage- has quit [Remote host closed the connection]
brushbox has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 244 seconds]
outsmartin has joined #ruby-lang
dreieins has quit [Ping timeout: 244 seconds]
dreieins has joined #ruby-lang
l0st1 has quit [Quit: Lost terminal]
ryanf has joined #ruby-lang
brownies has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
Hakon|mbp has quit [Quit: Leaving...]
krz has joined #ruby-lang
dreieins has quit [Ping timeout: 244 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
dreieins has joined #ruby-lang
tintin has joined #ruby-lang
<tintin>
Anyone?
dhruvasagar has joined #ruby-lang
Where_Is_Void has joined #ruby-lang
<erikh>
baby don't hurt me
<Where_Is_Void>
Is it possible to split a string by index? For example, "foo bar".split(3) => ["foo", "bar"] ?
<tintin>
erikh: who did hurt you?
<Where_Is_Void>
erikh: don't hurt me, no more
<Where_Is_Void>
Or what I'm trying to do "ThuJun" => "Thu" "Jun"
<Where_Is_Void>
oh wait don't worry, I'll just insert a space
countdig1 has joined #ruby-lang
<erikh>
you could probably use slice to effect, but I can't think of something that deliberately does it for you
<tintin>
Where_Is_Void: paste you complete input and output.
<erikh>
anyhow, it's way past my bedtime
<erikh>
night :)
<tintin>
night :)
<Where_Is_Void>
it's ok I figured it out "ThurJun 14".insert(3, ' ') => "Thu Jun 14"
kiddorails has quit [Ping timeout: 245 seconds]
kitallis has joined #ruby-lang
fserb has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
gouthamvel has joined #ruby-lang
<tintin>
drbrain: hi
msaffitz has quit [Quit: Computer has gone to sleep.]
tallship has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
outsmartin has quit [Quit: Leaving.]
gouthamvel has quit [Ping timeout: 244 seconds]
<bnagy>
anyone know about FFI::Pointer code incompatability between MRI FFI and JRuby FFI? (tried #jruby too)
ruurd has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
kiddorails has joined #ruby-lang
kiddorails has quit [Ping timeout: 246 seconds]
<tintin>
what is that FFI?
kiddorails has joined #ruby-lang
r0bby is now known as robbyoconnor
gouthamvel has joined #ruby-lang
dreieins has quit [Ping timeout: 244 seconds]
nazty has quit [Read error: Connection reset by peer]
srbartlett has quit [Remote host closed the connection]
tjadc has joined #ruby-lang
dreieins has joined #ruby-lang
diegoviola has quit [Ping timeout: 245 seconds]
TvL2386 has quit [Quit: Ex-Chat]
kiddorails has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
kiddorails has joined #ruby-lang
dreieins has quit [Ping timeout: 244 seconds]
toretore has joined #ruby-lang
brownies has quit [Ping timeout: 265 seconds]
bglusman has joined #ruby-lang
dc5ala has quit [Ping timeout: 245 seconds]
zz_chrismcg is now known as chrismcg
jokke88 has joined #ruby-lang
abuiles has joined #ruby-lang
anildigital_work has joined #ruby-lang
jokke88 has quit [Client Quit]
beawesomeinstead has joined #ruby-lang
supasnashbuhl_ has joined #ruby-lang
outsmartin has joined #ruby-lang
<supasnashbuhl_>
hi all! I'm trying to install diaspora* on my server and get following error message when running bundler to install: ArgumentError: invalid byte sequence in US-ASCII An error occured while installing markerb (1.0.0), and Bundler cannot continue. Make sure that `gem install markerb -v '1.0.0'` succeeds before bundling.
relix has joined #ruby-lang
agib has joined #ruby-lang
<supasnashbuhl_>
I did run gem install markerb -v '1.0.0' and it succeeded. Still i get this message afterwards
<supasnashbuhl_>
i use rvm by the way
<supasnashbuhl_>
because i don't have root access on the server
<supasnashbuhl_>
any clues what might be the issue here?
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
outsmartin has quit [Client Quit]
cesario has joined #ruby-lang
bglusman has quit [Ping timeout: 244 seconds]
outsmartin has joined #ruby-lang
outsmartin has quit [Client Quit]
<supasnashbuhl_>
and i'm using ruby 1.9.2 with rvm
<supasnashbuhl_>
and i ran rvm rubygems latest so i think i have the latest rubygems installed
<supasnashbuhl_>
any help would be greatly appreciated :)
brownies has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tbuehlmann has quit [Changing host]
tbuehlmann has joined #ruby-lang
brownies has quit [Changing host]
brownies has joined #ruby-lang
brownies has joined #ruby-lang
robotmay has joined #ruby-lang
mccraig has joined #ruby-lang
outsmartin has joined #ruby-lang
timbleck has joined #ruby-lang
<outsmartin>
supasnashbuhl_: have you tried to install without docs?
<outsmartin>
sometimes i get this error when i install gems with docs
<supasnashbuhl_>
outsmartin: no, how do i do that? I'm a complete ruby noob. :)
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<supasnashbuhl_>
outsmartin: thanks. I tried that, and the gem installed without docs but still i get the error when bundling.. Maybe bundler has some own config, where i have to set the same arguments..?
andrewhl has quit [Remote host closed the connection]
gouthamvel has quit [Ping timeout: 244 seconds]
gnufied has joined #ruby-lang
qwerxy has quit [Quit: offski]
<supasnashbuhl_>
i sure don't know what to make of it..
the-newsman has quit [Ping timeout: 240 seconds]
ryanf has quit [Quit: leaving]
voker57 has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
GeekOnCoffee has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
nevynxxx has joined #ruby-lang
<outsmartin>
you tried to remove rvm and reinstall it?
<supasnashbuhl_>
no
<outsmartin>
just delete .rvm folder and retr
<outsmartin>
retry
<supasnashbuhl_>
okay
rob_ has joined #ruby-lang
rob_ has left #ruby-lang [#ruby-lang]
<supasnashbuhl_>
jeez, how can deleting one folder take so long? :P
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
futurechimp has joined #ruby-lang
d3vic3 has quit [Ping timeout: 246 seconds]
burgestrand has joined #ruby-lang
d3vic3 has joined #ruby-lang
sora_h is now known as s0ra_h
dreieins has joined #ruby-lang
<supasnashbuhl_>
i had to set the -v flag to make sure rm is even doing something.. Apparently it is :)
heftig has joined #ruby-lang
francisfish has joined #ruby-lang
<outsmartin>
working on a shared host is not a pleasure :)
<supasnashbuhl_>
true :P
<supasnashbuhl_>
But it's an awesome host nonetheless. Check for your self: uberspace.de
abuiles has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
brownies has quit [Remote host closed the connection]
timbleck has quit [Remote host closed the connection]
beawesomeinstead has quit [Remote host closed the connection]
relix has quit [Remote host closed the connection]
agib has quit [Remote host closed the connection]
cesario has quit [Remote host closed the connection]
mccraig has quit [Write error: Broken pipe]
<supasnashbuhl_>
You choose how much you pay a month. The minimum is 1 euro. That's just awesome considering what you can do with your server.
fserb has quit [Quit: ttyl]
<supasnashbuhl_>
oh.. i guess the site is only in german.. too bad. It's incredible.
brownies has joined #ruby-lang
fserb has joined #ruby-lang
mccraig has joined #ruby-lang
<supasnashbuhl_>
and you can test it for a month free of charge. There's also no personal information required. Not even for payment, because you just have to make a deposit to (re)fill your balance from which the monthly fee is withdrawn.
agib has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
fserb has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
<supasnashbuhl_>
i've never seen any host getting even near that good for such a fair pricing.
Weems has quit []
d3vic3 has quit [Read error: Connection reset by peer]
d3vic3 has joined #ruby-lang
abuiles has joined #ruby-lang
anildigital_work has joined #ruby-lang
relix has joined #ruby-lang
soahccc` is now known as soahccc
<rue>
Bunch of VPS:s run only a couple €/month
cesario has joined #ruby-lang
tekin has joined #ruby-lang
nevynxxx has quit [Remote host closed the connection]
<soahccc>
It is possible that ERB cannot handle multi line comments? I tried to comment out a big block of code (erb so with html and so on) with a block comment. It gives sytax errors all over the place :/
pip has quit [Quit: Leaving]
gouthamvel has joined #ruby-lang
<supasnashbuhl_>
outsmartin: awesome. Reinstalling did the trick! Thanks!
timbleck has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
kiddorails has quit [Ping timeout: 245 seconds]
<brownies>
soahccc: i've heard it's hit-or-miss.
kiddorails has joined #ruby-lang
<rue>
soahccc: Possible to move the code out of the .erb and into Rails/CGI/whatever?
<soahccc>
rue: possible but I need it to refactor and it isn't that practical... however I try to move it somewhere else
nevynxxx has joined #ruby-lang
<rue>
Yep
<rue>
Always the better option, though
<soahccc>
oh come on :D I found the error
ioga_wrk has quit [Remote host closed the connection]
<soahccc>
It seems that ruby has a different understanding of block comments than every other language... Therefore nobody uses it in normal as far as I can see
<rue>
More or less
<rue>
In that case, it’s just ERB stupidity
kiddorails has quit [Ping timeout: 244 seconds]
supasnashbuhl_ has quit [Quit: Page closed]
d3vic3 has quit [Ping timeout: 252 seconds]
d3vic3 has joined #ruby-lang
skinny_much has joined #ruby-lang
pp01bit has quit [Remote host closed the connection]
pip has joined #ruby-lang
pip has quit [Changing host]
pip has joined #ruby-lang
kiddorails has joined #ruby-lang
rolfb has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
<rue>
It’s still a good 5-6 hours until PST morning, this could be entertaining
<tintin>
lol
fgomez has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
brianpiercy has joined #ruby-lang
bryancp has joined #ruby-lang
brianpiercy has quit [Ping timeout: 244 seconds]
kiddorails has quit [Ping timeout: 246 seconds]
<gnufied>
i have a question. My manager wants to use rails for this internal application for > 100K employees and he asked can rails scale to 100K concurrent users?
tintin has quit [Quit: tintin]
<gnufied>
I told him, NO but he needs solid reasoning
kiddorails has joined #ruby-lang
<apeiros_>
gnufied: I think you want #rubyonrails
<gnufied>
apeiros_: thank you. but will #rubyonrails scale?
<gnufied>
sorry, I was trolling.
<apeiros_>
I think irc channels scale pretty badly :-p
<outsmartin>
too obvious
<gnufied>
outsmartin: yeah but i realized #ruby-lang is not the proper place to troll
krz has quit [Quit: krz]
<apeiros_>
/kick gnufied trolling not welcome :-p
<rue>
gnufied: Scaling will depend on your actual app and the hardware you have.
<gnufied>
ha ha. are you still in sweden apeiros_ ?
<rue>
But there might be better ways…or you could compose it piecemeal
ttilley_off is now known as ttilley
<apeiros_>
gnufied: I've only been to sweden for ~1 week in my whole life
srbartlett has quit [Remote host closed the connection]
<apeiros_>
gnufied: I heard php scales very well…
krz has joined #ruby-lang
<rue>
apeiros_: That’s not a ‘no’ :)
pip has quit [Quit: Leaving]
<apeiros_>
rue: yes
<rue>
Or yes
knu has quit [Remote host closed the connection]
<apeiros_>
rue: no
<rue>
Hm
<rue>
Watson?
gnufied1 has joined #ruby-lang
gnufied has quit [Ping timeout: 244 seconds]
mark_locklear has joined #ruby-lang
gouthamvel has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
srbartlett has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
<zzak>
good morning!
mytrile has joined #ruby-lang
krz has quit [Quit: krz]
jxie_ has quit [Quit: leaving]
CCD has joined #ruby-lang
tommyvyo_ has joined #ruby-lang
digitalbane has joined #ruby-lang
carloslopes has joined #ruby-lang
dalekurt has joined #ruby-lang
jedmtnman has left #ruby-lang [#ruby-lang]
<kith>
guys i'm trying to call a jruby script from crontab but it doesnt execute while other (MRI scripts) do. what am i missing?
<kith>
the jruby script runs flawlessly when called from terminal
pip has joined #ruby-lang
pip has quit [Changing host]
pip has joined #ruby-lang
d3vic3 has quit [Ping timeout: 240 seconds]
kiddorails has quit [Quit: Leaving.]
<andrewvos>
kith: What happens?
<andrewvos>
kith: How are you opening crontab -e? Using sudo?
<andrewvos>
RVM?
<andrewvos>
Throw me a frikkin bone here
<kith>
crontab -e as root
d3vic3 has joined #ruby-lang
<kith>
not using rvm
dc5ala has joined #ruby-lang
<kith>
the script uses several gems
brianpiercy has joined #ruby-lang
<kith>
cron logfile says the file gets called but no error messages or such
<andrewvos>
Have you write redirecting output to a file?
<Jake232>
That must have been the other machine, sorry.
<mistym>
Some versions of ruby have issues when they're compiled with clang. I *think* they're all sorted out by 1.9.3p194, but maybe not.
<mistym>
You need to either build ruby with gcc-4.2, or upgrade to the latest ruby, or both.
<Jake232>
Surely just mapping over an array and stripping it wouldn't cause a segfault though?
<Jake232>
I use ruby for alot of projects, and this is the only place
<Jake232>
it ever happens.
<mistym>
It does if ruby itself has bugs introduced by the compiler.
<mistym>
Segfaults while running *is* an issue caused by compiling certain ruby versions with clang.
brunocoelho has joined #ruby-lang
<Jake232>
but wouldn't, ['test', 'test1'].map { |sentence| sentence.strip } also cause the segfault, if ruby had been compiled incorectly?
Natch| has joined #ruby-lang
<mistym>
Not really sure.
<Jake232>
I guess I'll try the latest ruby
<mistym>
What Xcode are you on?
<Jake232>
No idea, I'll check. Never opened it since the day it was installed.
<mistym>
I'm going to guess 4.3.
<Jake232>
Version 4.1 - Build 4B110
<Jake232>
4.1, haha
wmoxam has joined #ruby-lang
jstemmer has quit [Quit: leaving]
<mistym>
Oh, so not clang. llvm-gcc may cause some issues too though.
sandbags has joined #ruby-lang
kvirani has joined #ruby-lang
<mistym>
Do you use homebrew?
lucas has left #ruby-lang [#ruby-lang]
francisfish has joined #ruby-lang
<Jake232>
yes
dfr|mac has joined #ruby-lang
<Jake232>
for certain things
<mistym>
OK. Then before you rebuild ruby, do the following:
<mistym>
brew tap homebrew/dupes; brew install apple-gcc42
tekin has joined #ruby-lang
tekin has quit [Client Quit]
<Jake232>
Error: Unknown command: tap
<Jake232>
My homebrew could be old too
<mistym>
brew update
<Jake232>
Yea, running it now
dfr|mac has quit [Remote host closed the connection]
<Jake232>
So, if I have app-gcc, then rvm will auto use that?
rippa has joined #ruby-lang
<mistym>
Yeah, it should autoselect it if it's available, because it's the most compatible compiler for ruby at the moment.
<mistym>
apple-gcc42 is true gcc, which Apple stopped shipping as of Xcode 4.1 or so.
Prx has joined #ruby-lang
chrismcg is now known as zz_chrismcg
<Jake232>
I always pressumed my things were compiling with gcc
<Jake232>
never really looked into it
yannis has joined #ruby-lang
<mistym>
I *think*. You may need to CC=/usr/local/bin/gcc-4.2 rvm install foo
llaskin has joined #ruby-lang
<mistym>
Xcode 4.0+ uses llvm-gcc as the default compiler, not quite the same.
dfr|mac has joined #ruby-lang
tekin_ has joined #ruby-lang
<Jake232>
Running it now
<Jake232>
Although I only see this error like, very rarely
<Jake232>
so I won't know if it has even worked. It's just annoying because of it being a segfault, it brings the whole worker process down. All the threads.
<Jake232>
And they're mid-job and such, a pain to fix.
<apeiros_>
wtf… Symbol#match is an alias to Symbol#=~ instead of working like String#match
<apeiros_>
how awful is that…
ddollar has joined #ruby-lang
<ddollar>
anyone know why IO#read would return only half the number of bytes i ask for? (it's not EOF, if i ask for 4 bytes i get 2, but if i ask for 4 more i get 2 more) https://gist.github.com/d9cf978fdefc401eda60
<apeiros_>
ddollar: because there isn't that much data in the buffer yet
epitron has quit [Remote host closed the connection]
<ddollar>
apeiros_: the description for IO#read suggests it will return the number of bytes you ask for unless eof or an error happens
<apeiros_>
ddollar: not that I think the docs are very clear on that, but in mine, it states "it try to read length bytes"
<ddollar>
apeiros_: the few sentences after that suggest it will only return less than you ask for if eof or an error happens
<apeiros_>
hm…
Prx has left #ruby-lang [#ruby-lang]
<apeiros_>
though actually the way it is written after that it would imply that less than length bytes means EOF
<apeiros_>
no idea then :)
<ddollar>
some kind of encoding issue maybe?
florentg2 has quit [Ping timeout: 244 seconds]
rking has joined #ruby-lang
<ddollar>
it seems weird because if i know what 4 bytes are on the stream.. if i ask for 4 i get the first 2, if i ask for 4 more i get the next 2
<Jake232>
mistym: compiled, thanks for the help
<Jake232>
hopefully it'll work
<mistym>
Jake232: Fingers crossed!
<Jake232>
Honestly, I don't think it will however
<Jake232>
I can't help but think I'd have come across a segfault similar before
<Jake232>
seeing as though I use ruby so much
brianpiercy has joined #ruby-lang
outsmartin has quit [Quit: Leaving.]
zz_chrismcg is now known as chrismcg
jstemmer has joined #ruby-lang
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
d3vic3 has quit [Ping timeout: 240 seconds]
tekin_ has quit [Quit: Computer has gone to sleep.]
epitron has joined #ruby-lang
d3vic3 has joined #ruby-lang
zmack has joined #ruby-lang
thone_ has joined #ruby-lang
thone has quit [Read error: Connection reset by peer]
d3vic3 has quit [Ping timeout: 265 seconds]
d3vic3 has joined #ruby-lang
gouthamvel has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
futurechimp has quit [Ping timeout: 252 seconds]
kitallis has joined #ruby-lang
perryh_away is now known as perryh
<erikh>
ddollar: multibyte?
<erikh>
anyhow, just guessing. I'll leave you alone :)
ruurd has quit [Quit: Leaving...]
fserb has joined #ruby-lang
d3vic3 has quit [Ping timeout: 246 seconds]
rking has quit [Quit: Oops. Didn't start in tmux.]
jtoy has joined #ruby-lang
d3vic3 has joined #ruby-lang
rking has joined #ruby-lang
futurechimp has joined #ruby-lang
tjadc has quit [Read error: Connection reset by peer]
chrismcg is now known as zz_chrismcg
JohnBat26 has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 244 seconds]
gouthamvel has left #ruby-lang [#ruby-lang]
brunocoelho has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
shtirlic has quit [Read error: Connection reset by peer]
nevynxxx has quit [Quit: leaving]
shtirlic has joined #ruby-lang
jtoy has quit [Quit: jtoy]
brianpiercy has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
jtoy_ has joined #ruby-lang
msaffitz has joined #ruby-lang
jtoy_ has quit [Client Quit]
jtoy has quit [Ping timeout: 240 seconds]
zz_chrismcg is now known as chrismcg
sailias has quit [Ping timeout: 244 seconds]
macmartine has joined #ruby-lang
stardiviner has joined #ruby-lang
fayimora has joined #ruby-lang
heftig has joined #ruby-lang
chimkan has quit [Quit: chimkan]
savage- has joined #ruby-lang
andrewhl has joined #ruby-lang
neocoin has joined #ruby-lang
lsegal has joined #ruby-lang
mark_locklear has quit [Remote host closed the connection]
<zzak>
erikh
shtirlic has quit [Read error: Connection reset by peer]
<workmad3>
wmoxam: and yet we'll still argue about vim vs emacs
<oddmunds>
emacs 25
<rhalff>
@mistym thanks for your vision, I'll shut up now :-0
cdt has quit [Quit: Ex-Chat]
rhalff has quit [Quit: Leaving]
<moos3>
anyone have a good example on how to use erb for writing out config files
nuclearsandwich has joined #ruby-lang
dalekurt has quit [Ping timeout: 244 seconds]
shtirlic has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
lsegal has joined #ruby-lang
tjadc has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
gokul has joined #ruby-lang
Carnage\ has joined #ruby-lang
gouthamvel has joined #ruby-lang
<moos3>
how can I access a var more then once in a erb template
qwerxy has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Why would you need anything special for that?
ivanoats has joined #ruby-lang
<moos3>
well i'm doing something like this <% data.each do |f| %> render a xml block <% end %> then doing it again in teh file to render a different child block wiht the same details
tjadc has quit [Ping timeout: 265 seconds]
fgomez has quit [Ping timeout: 248 seconds]
<zzak>
erikh does matchit work for python?
gokul has quit [Ping timeout: 244 seconds]
<zzak>
or other whitespace signicant languages
<zzak>
significant*
<erikh>
zzak: as I understand it yes
fayimora has joined #ruby-lang
toertore has joined #ruby-lang
zmack has joined #ruby-lang
nuclearsandwich has quit [Ping timeout: 244 seconds]
dalekurt has joined #ruby-lang
toretore has quit [Ping timeout: 245 seconds]
<zzak>
erikh: works good for do/end but not indentation based blocks
tekin_ has quit [Quit: Computer has gone to sleep.]
<erikh>
phooey
<erikh>
well, you can't win them all.
<zzak>
i think its just a ruby ftplugin is why
nuclearsandwich has joined #ruby-lang
nuclearsandwich has quit [Read error: Connection reset by peer]
futurechimp has quit [Quit: Leaving]
nuclearsandwich has joined #ruby-lang
florentg2 has joined #ruby-lang
Criztian has joined #ruby-lang
zmack has quit [Remote host closed the connection]
<outsmartin>
you can put it inside the erb and it will stop your script and give you a console
gsav has joined #ruby-lang
<asahi>
I'm wondering why some ruby libraries are written in ruby and others are written in C?
benanne has joined #ruby-lang
brownies has joined #ruby-lang
brownies has quit [Changing host]
brownies has joined #ruby-lang
<mistym>
asahi: Performance, or to interface with external C libraries.
akira989 has joined #ruby-lang
<Boohbah>
asahi: because C is much faster than ruby
jaska has quit [Ping timeout: 245 seconds]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
<moos3>
outsmartin txs
moos3 has quit [Quit: Computer has gone to sleep.]
jaska has joined #ruby-lang
rippa has quit [Ping timeout: 244 seconds]
yxhuvud has quit [Ping timeout: 244 seconds]
tjadc has quit [Read error: Connection reset by peer]
digitalbane has left #ruby-lang [#ruby-lang]
<asahi>
I see. thanks
<apeiros_>
sometimes also because of the memory footprint
<apeiros_>
if you had an object per pixel, a 1 megapixel file would be at least 20MB in memory with ruby
<Defusal>
has anyone here ever used zlib to deflate some json data, base64 encode it and then decode and inflate it in javascript? trying to decode the data in javascript with the browsers native js method results in INVALID_CHARACTER_ERR
<apeiros_>
native js for gzip?
<apeiros_>
s/gzip/deflate|inflate/
msaffitz has quit [Quit: Computer has gone to sleep.]
<tintin>
Can anyone tell me how to use ctags to jump from one function to another in ruby source code?
havenn has joined #ruby-lang
tintin has left #ruby-lang [#ruby-lang]
jakko has quit [Remote host closed the connection]
erpuds has quit [Quit: erpuds]
dfr|mac has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
outoftime has quit [Quit: Leaving]
kvirani has quit [Remote host closed the connection]
gsav has quit [Quit: Lost terminal]
srbartlett has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
gsav has joined #ruby-lang
srbartlett has joined #ruby-lang
S1kx has quit [Quit: Leaving]
threedaymonk has quit [Ping timeout: 252 seconds]
Caius has quit [Ping timeout: 252 seconds]
threedaymonk has joined #ruby-lang
CCD has quit [Ping timeout: 244 seconds]
qwerxy has joined #ruby-lang
Caius has joined #ruby-lang
slyphon_away is now known as slyphon
benanne has quit [Quit: kbai]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
qwerxy has quit [Quit: offski]
fserb has quit [Quit: ttyl]
<apeiros_>
hrm… I'm torn… I'm writing a class that lets you import tabular data from various sources and coerce columns. I have a DSL for that which looks like: Importer.new do |t| t.column :created_at, Date end
<apeiros_>
I'm a bit worried about the Date part, which states the coercion to use. I think I might paint myself into a corner
<apeiros_>
e.g. what about t.column :mode, Integer - what when the mode is given in octal? or :uuid, Integer - of course the uuid is essentially an integer, but usually given in a hex-string…
<drbrain>
apeiros_: optparse lets you register names and converters
<drbrain>
it comes with default ones like Integer (base 10), Octal, Date, DateTime, etc.
<drbrain>
and you can add your own
<apeiros_>
drbrain: so it defines additional constants?
<drbrain>
apeiros_: yes, but under then OptParse namespace (for Octal), IIRC
<drbrain>
for built-in classes it re-uses them
<apeiros_>
hm
<apeiros_>
I pondered adding a :format => … option
<drbrain>
so op.on("--count COUNT", Integer, ...
dgs has quit [Ping timeout: 244 seconds]
<apeiros_>
would be more flexible. e.g. with dates, I wouldn't want to define a constant for every format out there…
<drbrain>
you don't need to define a constant
<drbrain>
any old object would work
dgs has joined #ruby-lang
<drbrain>
when I don't have a constant I define my own with descriptive_name = Object.new
<drbrain>
… so even a Symbol can work
<zenspider>
omnifocus 2.1.1 released. rawr.
<apeiros_>
zenspider: hm? you still work for omni? (still as in - I thought you changed jobs… maybe my memory plays tricks on me…)
<zenspider>
no, I don't work for omni anymore. haven't for quite some time