mistym has quit [Remote host closed the connection]
agarie_ has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
kgrz has joined #ruby-lang
geopet has quit [Quit: geopet]
davidbalbert is now known as davidbalber|away
dzhulk has joined #ruby-lang
chendo_ has quit [Ping timeout: 260 seconds]
agarie has joined #ruby-lang
chendo_ has joined #ruby-lang
nXqd has quit [Ping timeout: 252 seconds]
UziMonkey has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
thone has joined #ruby-lang
jonahR has quit [Quit: jonahR]
thone_ has quit [Ping timeout: 255 seconds]
ramonmaruko has quit [Read error: Connection reset by peer]
agarie has quit [Remote host closed the connection]
slyphon has quit [Quit: slyphon]
nXqd has joined #ruby-lang
chendo_ has quit [Ping timeout: 248 seconds]
chendo_ has joined #ruby-lang
rippa has joined #ruby-lang
ryanf has quit [Ping timeout: 264 seconds]
huydx has quit [Read error: Connection reset by peer]
huydx has joined #ruby-lang
yfeldblum has joined #ruby-lang
ridget has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 252 seconds]
mjio has quit []
JohnBat26 has joined #ruby-lang
Asher has quit [Quit: Leaving.]
rippa has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
KA_ has joined #ruby-lang
nXqd has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
dkannan has joined #ruby-lang
Asher has joined #ruby-lang
crudson1 has left #ruby-lang [#ruby-lang]
robbyoconnor has joined #ruby-lang
macmartine has joined #ruby-lang
<whitequark>
I wonder what was the rationale behind making the RHS of class X < Y an expression, as opposed to a mere constant
<shachaf>
Why not make it an expression, if classes are supposed to be first-class?
charliesome_ has joined #ruby-lang
<shachaf>
Not every class has a (constant) name.
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
<whitequark>
shachaf: well, maybe it was "why not" since there's not a lot of things which are _not_ expressions
<whitequark>
shachaf: but you can use Class.new for those
<whitequark>
also `class X' in a method body is a syntax error
<charliesome>
whitequark: what's not an expression in ruby?
<whitequark>
charliesome: LHS of an assignment
<whitequark>
and, hm, literal names.
<charliesome>
literal names?
macmartine has quit [Quit: Computer has gone to sleep.]
<whitequark>
as `a' in `def a' or `alias a b' or `foo.a'
nXqd has quit [Ping timeout: 256 seconds]
yobiflare has quit [Ping timeout: 255 seconds]
<charliesome>
whitequark: that doesn't really count
<whitequark>
charliesome: it does
<whitequark>
in PHP, you can do $a($b)
<shachaf>
It would be nice if a lot more things were expressions.
<charliesome>
i forgot who mentioned it
<charliesome>
but someone on twitter spoke about the idea of universal interpolation
<charliesome>
def #{method_name}(…) … end
<charliesome>
for example
<shachaf>
charliesome: If only it was def :name {|args| ... } !
<shachaf>
And class :Name { ... } and so on.
<whitequark>
stop it already
<charliesome>
whitequark: as for the B bit of class A < B being an expression
<charliesome>
i assume it's because there's not many reasons not to allow it
<charliesome>
either way, there has to be a type check
<charliesome>
may as well let any expression go there
<charliesome>
rather than unnecessarily restricting it in the grammar
<whitequark>
charliesome: there's not many reasons to *write* it
<charliesome>
hm?
<whitequark>
present me a valid use case
<charliesome>
class A < Struct.new(:foo)
<whitequark>
it's been a few years since I've first thought about it
<whitequark>
oh.
b1rkh0ff has quit [Ping timeout: 272 seconds]
<charliesome>
inb4 don't inherit from structs
<charliesome>
there's a valid use case for doing that too
<charliesome>
overriding accessors and being able to call super is one
JoelMcCracken has quit [Ping timeout: 252 seconds]
nXqd has joined #ruby-lang
mantono has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
<shachaf>
whitequark: From my perspective it seems like a pointless restriction.
<charliesome>
ruby is not so much about pointless restrictions
<shachaf>
You don't really gain any safety for it, and you potentially lose expressiveness. What's the point?
* shachaf
like pointful restrictions, but those are hard to express in a language like Ruby. :-)
dzhulk1 has joined #ruby-lang
zmack has quit [Read error: Connection reset by peer]
zmack has joined #ruby-lang
dzhulk has quit [Ping timeout: 240 seconds]
b1rkh0ff has joined #ruby-lang
dasil003 has joined #ruby-lang
dkannan_ has joined #ruby-lang
ddv has joined #ruby-lang
towski has joined #ruby-lang
wallerdev has joined #ruby-lang
KA_ has quit [Quit: KA_]
dkannan has quit [Ping timeout: 240 seconds]
dkannan_ is now known as dkannan
ddv has quit [Ping timeout: 240 seconds]
ddv has joined #ruby-lang
dasil003 has quit [Ping timeout: 244 seconds]
mercwith1mouth has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
skade has joined #ruby-lang
<flexd>
Uh is ruby 1.9.3p0 the latest? :/
<flexd>
Trying reinstall a old rbenv install and that's the latest version I find hm. Fairly certain I saw a later build doing this at work on monday
<canton7>
1.9.3-p385 now iirc
<flexd>
Yeah nevermind, had a old version of ruby_build :) Thanks!
<flexd>
ruby-build*
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ryanf has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
ryanf has quit [Client Quit]
solars has joined #ruby-lang
mytrile has joined #ruby-lang
towski has quit [Remote host closed the connection]
fsvehla has joined #ruby-lang
jxie has joined #ruby-lang
chekcmate has joined #ruby-lang
<chekcmate>
mornün!
nXqd has quit [Remote host closed the connection]
ridget has joined #ruby-lang
jxie_ has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
jMCg has joined #ruby-lang
<jMCg>
Is anyone else getting connection time outs installing gems?
tbuehlmann has joined #ruby-lang
maxmanders has joined #ruby-lang
xcombelle has joined #ruby-lang
<chekcmate>
jMCg: which did you try? I'll give it a shot!
jxie_ has quit [Ping timeout: 255 seconds]
dzhulk1 has quit [Quit: Leaving.]
<chekcmate>
jMCg: tried a few, no timeouts here
jxie has joined #ruby-lang
dasil003 has joined #ruby-lang
<jMCg>
It's actually just puppet.
<jMCg>
Not even any of the other puppet gems (I tried installing puppet-lint and puppet-module but they all just work out fine)
fsvehla has quit [Quit: fsvehla]
Marco has quit [Ping timeout: 272 seconds]
marr has joined #ruby-lang
lcdhoffman has joined #ruby-lang
<jMCg>
I should've packaged my version of ruby with the puppet gem. Okay. rvm getting confuzzled about what's current and what's default. It would seem :S
Averna has quit [Quit: Leaving.]
dc5ala has joined #ruby-lang
francisfish has joined #ruby-lang
moonglum has joined #ruby-lang
maxmanders has quit [Ping timeout: 252 seconds]
dr_bob has joined #ruby-lang
maxmanders has joined #ruby-lang
<chekcmate>
jMCg: yup, puppet seems times out here too
<chekcmate>
*-s
<chekcmate>
oh wait
<chekcmate>
it's not
<chekcmate>
Fetching: puppet-3.1.0.gem (100%)
<chekcmate>
but somehow takes a way longer time than usual
vlad_starkov has joined #ruby-lang
judofyr has joined #ruby-lang
ridget has quit [Remote host closed the connection]
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Weems has quit []
tbuehlmann has joined #ruby-lang
blacktulip has joined #ruby-lang
dr_bob has quit [Read error: Connection reset by peer]
<yorickpeterse>
Got myself a Das Keyboard
<yorickpeterse>
I fucking love it
<yorickpeterse>
But even for the silent version it makes *a lot* of noise. Can't wait to annoy people with it
dasil003 has quit [Quit: dasil003]
yobiflare has joined #ruby-lang
lele has quit [Ping timeout: 246 seconds]
dr_bob has joined #ruby-lang
<chekcmate>
yorickpeterse: oh, a mechanical one? I heard they have great performance
<yorickpeterse>
Fuck yeah, they type awesome
<yorickpeterse>
not having any prints on them takes some getting used to though
<yorickpeterse>
However, that makes it easier for me to switch to Dvorak
<chekcmate>
though it's not made for large working areas as you said :D
<chekcmate>
*TAK TAK TAK TAK*
<yorickpeterse>
Yeah fuck that, we're getting a new office anyway
<yorickpeterse>
I like my TAK TAK TAK TAK TAK BAM TAK TAK TAK TAK BAM (space)
<chekcmate>
people already asked me to type more silent... it's not even a mechanical one ._.
<chekcmate>
hahaha
<chekcmate>
TAK TAK TAK BOOM!
<yorickpeterse>
One thing I instaly noticed: I can type a lot faster now without making as many mistakes
<chekcmate>
I can see that
<chekcmate>
usually it takes me around 2-3 minutes until I understood what you meant
<chekcmate>
by the way, do you think there are major differences between mechanical keyboards, yorickpeterse?
<chekcmate>
since they're not that cheap...
<yorickpeterse>
I don't know, this is my first one
<chekcmate>
ahh
<yorickpeterse>
I normally work with "Logitech Illuminated" keyboards
<chekcmate>
if you don't mind: What did you pay?
<hackeron>
anyone know of some kind of DSL or ruby library to partition a hard drive?
lele has joined #ruby-lang
<yorickpeterse>
chekcmate: 130 euros
<yorickpeterse>
So that's twice as expensive as the logitech ones (around 70 euros) but it's well worth the money
<chekcmate>
hm, G710+ from logitech won #1 and costs around 125€
<chekcmate>
^-- also mechanical
<yorickpeterse>
meh, I'm not a huge fan of gaming keyboards
Criztian has quit [Remote host closed the connection]
<andrewvos>
manveru: I think I have the Lite edition
<andrewvos>
I got tired of fuckers walking past and being like "look at that keyboard man, such an old school keyboard" or some shit along those lines.
<andrewvos>
It's a keyboard, get over it.
<UziMonkey>
get any keyboard with cherry blues
<UziMonkey>
loud as fuck, but awesome
<manveru>
nobody ever sees mine, so it's ok
nkr has joined #ruby-lang
LnL has joined #ruby-lang
<rue|w>
I like the macbook one…
<UziMonkey>
I like mac keyboards, but they don't seem to hold up to my violent typing style :P
<UziMonkey>
I type forcefully and quickly, I need keys with some travel
maxmanders has quit [Quit: Computer has gone to sleep.]
lcdhoffman has quit [Quit: lcdhoffman]
maxmanders has joined #ruby-lang
kcassidy has quit [Ping timeout: 276 seconds]
<tbuehlmann>
cherry black++
bradland_ has joined #ruby-lang
bradland has quit [Read error: Connection reset by peer]
bradland_ is now known as bradland
adambeynon has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
Criztian has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
beho has quit [Remote host closed the connection]
chendo__ has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
io_syl has quit [Quit: Computer has gone to sleep.]
Qwak has joined #ruby-lang
dr_bob has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<yorickpeterse>
One downside: the Das Ultimate is quite tall
ImSexyandIknowit has joined #ruby-lang
<yorickpeterse>
I'm used to being able to rest my hands on the desk/keyboard but that doesn't really work with this one
krz has quit [Ping timeout: 260 seconds]
gregmoreno has joined #ruby-lang
krz has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
gregmoreno has quit [Ping timeout: 264 seconds]
tbuehlmann has joined #ruby-lang
chendo__ has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby-lang
<UziMonkey>
that'll the the case with all mechanical keys
adambeynon has quit [Quit: Computer has gone to sleep.]
<pseudonymous>
Hi guys, I was wondering, I'll be going through some files like so: http://pastebin.com/7i9LV9GB - I'd like to build some form of structure as I intend to write some code using the ruby-graphviz gem to visualize trees that the file documents. Any gems/techniques I should be looking at ?
io_syl has quit [Quit: Computer has gone to sleep.]
chekcmate has quit [Quit: Page closed]
anonymuse has joined #ruby-lang
tacey has joined #ruby-lang
tacey has quit [Max SendQ exceeded]
srbaker has quit [Quit: Computer has gone to sleep.]
bin7me has quit [Quit: Verlassend]
carloslopes has joined #ruby-lang
gouthamvel has joined #ruby-lang
saLOUt_ has quit [Quit: Konversation terminated!]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
kogent has quit [Quit: kogent]
rue|w has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
hackeron has quit [Ping timeout: 255 seconds]
rue|w has joined #ruby-lang
imajes has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
<soahccc>
Is there any reason why (at least) ruby do "quoting" with backtick-text-singlequote in stack traces?
hackeron has joined #ruby-lang
LnL has quit [Quit: LnL]
<injekt>
it's a unix thing
<injekt>
see any man page
<injekt>
it's basically an old thing that people dont really need to do anymore
gouthamvel has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
<whitequark>
soahccc: it's made to resemble ‘proper’ english quotes
<whitequark>
but in pure ASCII
<soahccc>
Thanks :) I was just curious if I should quote things in exceptions like this or not
totallymike has quit [Read error: Operation timed out]
tdy has joined #ruby-lang
<whitequark>
soahccc: I dunno. I just generally quote these ways. It looks somewhat better, but it is very much a taste thing.
<whitequark>
*this way
outoftime has quit [Ping timeout: 264 seconds]
imajes has quit [Excess Flood]
<soahccc>
I like this for some reason, I guess because it might be possible that ' occur in those strings... "unknown field type `#{@options[:type]}' while casting `#{raw}'"
imajes has joined #ruby-lang
mwest has joined #ruby-lang
totallymike has joined #ruby-lang
Jake232 has joined #ruby-lang
lcdhoffman has joined #ruby-lang
KA_ has joined #ruby-lang
totallymike has quit [Ping timeout: 256 seconds]
ylluminate has joined #ruby-lang
nXqd has quit [Ping timeout: 255 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
judofyr has quit [Remote host closed the connection]
totallymike has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
rue|w has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 252 seconds]
jarib has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
jarib was kicked from #ruby-lang by imperator [jarib]
maxmanders has quit [Quit: Computer has gone to sleep.]
mercwith1mouth has joined #ruby-lang
mercwithamouth has joined #ruby-lang
maxmanders has joined #ruby-lang
cupakromer has quit []
glebm has joined #ruby-lang
KA_ has quit [Quit: KA_]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
davidbalbert is now known as davidbalber|away
Qwak has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
zhul_mechanos has joined #ruby-lang
imajes has quit [Excess Flood]
saLOUt_ has joined #ruby-lang
arca0 has joined #ruby-lang
imajes has joined #ruby-lang
[[johnonymous]] has joined #ruby-lang
Qwak has joined #ruby-lang
<UziMonkey>
imperator: oh, heh, I meant to paste that youtube link in another channel
saLOUt_ has quit [Quit: Konversation terminated!]
<UziMonkey>
but it was some Adobe exec dodging the question of why it's literally cheaper for Australians to fly to the US and buy a copy of CS than to buy one in AU
dasil003 has quit [Ping timeout: 245 seconds]
kurko__ has joined #ruby-lang
krz has quit [Quit: krz]
<imperator>
couldn't you just fake your IP and pretend to be from the US?
<imperator>
and order it online?
<imperator>
probably not a realistic option for businesses, though
Banistergalaxy has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<UziMonkey>
I'm assuming they'd notice when they saw the billing and shipping info
alvaro_o has joined #ruby-lang
imajes has quit [Excess Flood]
tbuehlmann has quit [Ping timeout: 240 seconds]
srbaker has joined #ruby-lang
glebm has joined #ruby-lang
imajes has joined #ruby-lang
aedorn has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
davidbalber|away is now known as davidbalbert
vmoravec_ has quit [Quit: Leaving]
Bearproof has joined #ruby-lang
Bearproof has quit [Client Quit]
Mon_Ouie has quit [Remote host closed the connection]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
<injekt>
mini_magick <3
<manveru>
mini_magick only operates on files though
<manveru>
so do all the other 20 gems that simply wrap the CLI
<injekt>
heh
spinagon has quit [Ping timeout: 240 seconds]
tdy_ has left #ruby-lang [#ruby-lang]
lcdhoffman has joined #ruby-lang
tdy has joined #ruby-lang
Stilo has joined #ruby-lang
jonahR has quit [Quit: jonahR]
mistym_lunch is now known as mistym
pr0ton has quit [Ping timeout: 255 seconds]
jonahR has joined #ruby-lang
ImSexyandIknowit has quit [Quit: афк]
perry has joined #ruby-lang
towski has quit [Ping timeout: 252 seconds]
beho has joined #ruby-lang
d_roge has quit [Remote host closed the connection]
<perry>
I want to write a specific N-number of bytes over a TCP server socket. can this be accomplished by building a string with N-number of characters?
<perry>
any help is much appreciated
<drbrain>
perry: yup
<perry>
drbrain, thanks!
<drbrain>
perry: #write will only write the bytes you tell it
<drbrain>
send it
jacktrick has joined #ruby-lang
<perry>
drbrain, is there a fast way to send an arbitrary n-number of bytes?
tdy has quit [Quit: WeeChat 0.4.0]
tdy has joined #ruby-lang
<drbrain>
perry: just use write
<perry>
I'm working on a real-time application and I am wondering if I can build these messages without storing them in some sort of buffer
wnd has quit [Ping timeout: 245 seconds]
<drbrain>
perry: once you have everything working, then profile
<perry>
okay
<perry>
thanks
wnd has joined #ruby-lang
chendo__ has joined #ruby-lang
outoftime has quit [Read error: Operation timed out]
slyphon has quit [Quit: slyphon]
slyphon has joined #ruby-lang
judofyr has joined #ruby-lang
outoftime has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
sn0wb1rd has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby-lang
mwest has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
s0ber_ has joined #ruby-lang
francisfish has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
s0ber has quit [Ping timeout: 256 seconds]
pr0ton has joined #ruby-lang
s0ber_ is now known as s0ber
francisfish has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
jbsan has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
mwest has quit [Ping timeout: 248 seconds]
judofyr has quit [Remote host closed the connection]
benanne has joined #ruby-lang
imperator has joined #ruby-lang
solars has joined #ruby-lang
<matti>
zzak: You should talk how hard is to contribute code. Documentation is what everyone wants ;]
thillux has quit [Read error: Operation timed out]
thillux_ has joined #ruby-lang
jtoy has joined #ruby-lang
<jtoy>
injekt: hi
<jtoy>
injekt: I've just been using slop just fine after you recommedned it, i then deployed it in production and got this: /usr/local/lib/ruby/gems/1.9.1/gems/slop-3.4.3/lib/slop.rb:296:in `block in to_hash': undefined method `to_sym' for nil:NilClass (NoMethodError)
<jtoy>
and my whole declaration is just Slop.parse(autocreate: true).to_hash
<jtoy>
from /usr/local/lib/ruby/gems/1.9.1/gems/slop-3.4.3/lib/slop.rb:296:in `map'
<jtoy>
from /usr/local/lib/ruby/gems/1.9.1/gems/slop-3.4.3/lib/slop.rb:296:in `to_hash'
<jtoy>
from -e:1:in `<main>
ylluminate has quit [Quit: Bye!]
<jtoy>
injekt: i see why that is breaking, hold on, still looking
<injekt>
right with that code though ARGV is ["-", "--add-file", "filename"]
<jtoy>
yeah, it got lost in copy and paste
<injekt>
if you can reproduce can you open an issue at injekt/slop with reproduction code and I'll check it out
<jtoy>
injekt: its really weird, running that line on the server works, but then in the program it doesn't, hmmmmm
<injekt>
same ruby version?
skade has joined #ruby-lang
<jtoy>
injekt: the box it messed up on is ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux], the one where ti works for me is ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
<injekt>
it should be no different on either of those
<injekt>
nothing else is different?
<injekt>
same slop version etc?
<jtoy>
injekt: yes, 3.4.3
outoftime has joined #ruby-lang
pkrnj has joined #ruby-lang
yobiflare has quit [Ping timeout: 252 seconds]
yianna has joined #ruby-lang
scampbell has quit [Quit: Leaving]
baotrungtn has joined #ruby-lang
baotrungtn has quit [Remote host closed the connection]