apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
benanne has quit [Quit: kbai]
amerine has joined #ruby-lang
wallerdev has joined #ruby-lang
davidbalbert is now known as davidbalber|away
wmoxam has quit [Read error: Operation timed out]
chessguy has quit [Remote host closed the connection]
gregmoreno has quit [Read error: Connection reset by peer]
gregmore_ has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
thufir_ has quit [Quit: Leaving.]
gregmoreno has joined #ruby-lang
marr has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
outoftime has quit [Ping timeout: 258 seconds]
tylersmith has quit [Quit: tylersmith]
corundum has quit [Ping timeout: 245 seconds]
segy has quit [Quit: ZNC - http://znc.in]
io_syl has quit [Quit: Computer has gone to sleep.]
madish has quit [Quit: ChatZilla 0.9.90 [Firefox 16.0.1/20121026125834]]
Mike26 has joined #ruby-lang
heftig has quit [Quit: Quitting]
io_syl has joined #ruby-lang
snarfmason has quit [Ping timeout: 256 seconds]
segy has joined #ruby-lang
heftig has joined #ruby-lang
justinra_ has quit [Remote host closed the connection]
emocakes has joined #ruby-lang
srbaker has joined #ruby-lang
corundum has joined #ruby-lang
johnnybowman has joined #ruby-lang
johnnybowman has quit [Client Quit]
chessguy has joined #ruby-lang
rwk1 has joined #ruby-lang
Averna has quit [Quit: Leaving.]
rwk1 has quit [Remote host closed the connection]
face has quit [Ping timeout: 260 seconds]
rwk1 has joined #ruby-lang
Mike26 has left #ruby-lang [#ruby-lang]
face has joined #ruby-lang
rwk1 has quit [Ping timeout: 264 seconds]
jpwhiting__ has joined #ruby-lang
jpwhiting_ has quit [Ping timeout: 264 seconds]
jpwhiting___ has joined #ruby-lang
jpwhiting__ has quit [Ping timeout: 245 seconds]
chessguy has quit [Remote host closed the connection]
jpwhiting has joined #ruby-lang
jpwhiting has quit [Changing host]
jpwhiting has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
jpwhiting___ has quit [Ping timeout: 252 seconds]
bluepojo has quit [Remote host closed the connection]
sebasoga has joined #ruby-lang
volov has joined #ruby-lang
slyphon has joined #ruby-lang
sebasoga_ has joined #ruby-lang
sebasoga_ has quit [Read error: Connection reset by peer]
sebasoga_ has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
sebasoga has quit [Ping timeout: 256 seconds]
jonahR has joined #ruby-lang
Rarrikins_z_t has quit [Remote host closed the connection]
kurko_ has quit [Quit: Computer has gone to sleep.]
bluepojo has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
sebasoga_ has quit [Ping timeout: 258 seconds]
sebasoga has joined #ruby-lang
Aria has joined #ruby-lang
agarie has quit [Remote host closed the connection]
sebasoga has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
sebasoga has joined #ruby-lang
jpwhiting_ has joined #ruby-lang
marcosvanetta has quit [Quit: Leaving]
brianpWins has quit [Quit: brianpWins]
sebasoga_ has joined #ruby-lang
jpwhiting has quit [Ping timeout: 260 seconds]
Averna has joined #ruby-lang
sebasoga has quit [Ping timeout: 257 seconds]
tn6o_ has quit [Ping timeout: 240 seconds]
sebasoga_ has quit [Ping timeout: 252 seconds]
sebasoga has joined #ruby-lang
jpwhiting_ has quit [Quit: Konversation terminated!]
tenderlo_ has quit [Remote host closed the connection]
sebasoga has quit [Ping timeout: 260 seconds]
sebasoga has joined #ruby-lang
sarclops has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
sebasoga has quit [Ping timeout: 252 seconds]
sebasoga has joined #ruby-lang
sarclops has quit [Client Quit]
xalei has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
sebasoga has quit [Ping timeout: 256 seconds]
Domon has joined #ruby-lang
bzalasky has joined #ruby-lang
sebasoga has joined #ruby-lang
cstrahan has joined #ruby-lang
pepper_chico has quit [Quit: I'm Quitting.]
emocakes has quit [Quit: emocakes]
sebasoga has quit [Ping timeout: 256 seconds]
sebasoga has joined #ruby-lang
brianpWins has joined #ruby-lang
guns has joined #ruby-lang
r3nrut has quit [Remote host closed the connection]
sebasoga has quit [Ping timeout: 260 seconds]
guns has quit [Quit: guns]
sebasoga has joined #ruby-lang
TheNotary has joined #ruby-lang
sebasoga_ has joined #ruby-lang
sebasoga_ has quit [Read error: Connection reset by peer]
sebasoga_ has joined #ruby-lang
sebasoga has quit [Ping timeout: 256 seconds]
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby-lang
flayer has quit [Ping timeout: 245 seconds]
sebasoga_ has quit [Ping timeout: 256 seconds]
sebasoga has joined #ruby-lang
sebasoga has quit [Read error: Connection reset by peer]
sebasoga has joined #ruby-lang
mbull9 has joined #ruby-lang
sebasoga_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
sebasoga has quit [Ping timeout: 256 seconds]
emocakes has joined #ruby-lang
hramrach has quit [Remote host closed the connection]
sebasoga_ has quit [Ping timeout: 264 seconds]
sebasoga has joined #ruby-lang
sebasoga has quit [Read error: Connection reset by peer]
hramrach has joined #ruby-lang
sebasoga has joined #ruby-lang
bzalasky has joined #ruby-lang
bluepojo has quit [Ping timeout: 240 seconds]
torrieri has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
Qwakeree has quit []
segy has quit [Quit: ZNC - http://znc.in]
bzalasky has joined #ruby-lang
segy has joined #ruby-lang
segy has joined #ruby-lang
segy has quit [Changing host]
muttonlambaus has joined #ruby-lang
heftig has quit [Quit: Quitting]
xxaM has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
muttonlambaus has quit [Client Quit]
heftig has joined #ruby-lang
brianpWins has joined #ruby-lang
concernedcitizen has joined #ruby-lang
davidbalber|away is now known as davidbalbert
rwk1 has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 246 seconds]
tcopp has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
segy has quit [Read error: Operation timed out]
heftig has quit [Quit: Quitting]
WillMarshall has joined #ruby-lang
soypirate has quit [Quit: Leaving]
tomzx_mac has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
heftig has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
segy has joined #ruby-lang
intellitech has quit [Ping timeout: 272 seconds]
rwk1 has quit [Remote host closed the connection]
Aria has quit [Remote host closed the connection]
Aria has joined #ruby-lang
rwk1 has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
segy has quit [Ping timeout: 276 seconds]
mistym has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
cstrahan has quit [Ping timeout: 264 seconds]
brhue has quit [Quit: WeeChat 0.3.8]
headius has joined #ruby-lang
srbaker has joined #ruby-lang
ryanf has quit [Ping timeout: 256 seconds]
drumond19 has quit [Remote host closed the connection]
bluepojo has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
kgrz has joined #ruby-lang
intellitech has joined #ruby-lang
torrieri has joined #ruby-lang
bluepojo has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
<zzak> drbrain: how do i not render the labels and notes for headings? i tried to disable notes extension
<drbrain> options.pipe = true should do it
<drbrain> … according to accept_heading
havenwood has joined #ruby-lang
agarie has joined #ruby-lang
<zzak> as long as i set it before calling #accept right?
srbaker has quit [Quit: Computer has gone to sleep.]
<drbrain> yes
<drbrain> it's not a very good option name for that feature
<zzak> i thought it was notes
<drbrain> but being a secondary function of RDoc, I thought it was acceptable
<drbrain> in RDoc input parsing and output generation are separated by a syntax tree
slyphon has quit [Quit: slyphon]
<drbrain> so if it is "decoration" you should start looking in an RDoc::Markup::Formatter
<drbrain> if it is "structure" you should start looking in a parser
<zzak> undefined method pipe= for RDoc::Markdown
<drbrain> no, on options
<drbrain> RDoc::Options
<zzak> ahh
<drbrain> notes are for footnotes
<zzak> same dela
<zzak> deal*
nignaztic has quit [Ping timeout: 252 seconds]
<zzak> let me see if i can reproduce it with a small script
<drbrain> hrm, it must be broken
<zzak> i was working on my next gem, tilt-rdoc-markdown
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<drbrain> oh, I misread accept_heading
<drbrain> labels are always output
<drbrain> I guess RDoc::Options needs a no_decoration option
mbull9 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<zzak> right but even with options.pipe i got the &para; and &uarr;
<zzak> without*
mbull9 has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
<zzak> weird, its false by default?
<zzak> ruby -v -rrdoc -e 'puts RDoc::Options.new.pipe'
<drbrain> false should be the default
<drbrain> since rdoc usually processes source code into documentation
<zzak> why do i get the para's and up arrows by default?
<drbrain> pipe is only for `rdoc --pipe`, which probably 3 people use
<zzak> im one of those 3
<drbrain> you need to: options.pipe = true
<drbrain> but label-foo will still be there
<zzak> ahh!
<zzak> yeah, still get label
<drbrain> yeah, there's no way to suppress that (absent a patch
Averna has left #ruby-lang [#ruby-lang]
<zzak> new option?
<drbrain> hrm
<drbrain> maybe --pipe should omit those labels too
<zzak> redcarpet has toc_data
jerrytgarcia has joined #ruby-lang
<zzak> but this is a formatter
<drbrain> oh, if you're building ToC, you'll need labels, right?
<zzak> right
<zzak> but if you just want html, you probably dont need em
<drbrain> correct
<zzak> im not exposing ToTableOfContents in this gem, but maybe at somepoint
<drbrain> in that case, I think adding RDoc::Options#output_decoration
<drbrain> would be good, but no support for a command-line flag
<zzak> ok
<zzak> think we can get it in a 4.0.1/
<drbrain> default to true
<drbrain> it would be a new feature, so 4.1
<drbrain> but I am not risk-averse for RDoc 4.1
<zzak> what do you mean?
<zzak> i'm fine with it in 4.1, its your call
<drbrain> I mean, RDoc 4.1 can come soon
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
krz has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
robbyoconnor has quit [Remote host closed the connection]
<zzak> released 0.0.1 of tilt-rdoc-markdown: https://github.com/zzak/tilt-rdoc-markdown
<zzak> err, should probably add lib
macmartine has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<zzak> released 0.0.2 of tilt-rdoc-markdown: https://github.com/zzak/tilt-rdoc-markdown
<zzak> now with actual code
<zzak> drbrain: ever see tilt's rdoc template? https://github.com/rtomayko/tilt/blob/master/lib/tilt/rdoc.rb
<drbrain> simple
<zzak> yeah
<zzak> doesnt take a block tho, or leave you with many options
<zzak> @engine.to_s :(
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
<zzak> gotta stop building these little rdoc plugins and get some real work done
hagzag has joined #ruby-lang
davidbalbert is now known as davidbalber|away
rwk1 has quit [Remote host closed the connection]
hagzag has quit [Quit: Konversation terminated!]
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
davidbalber|away is now known as davidbalbert
volov has quit [Ping timeout: 245 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
volov has joined #ruby-lang
krz has quit [Quit: krz]
dhruvasagar has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
thufir_ has joined #ruby-lang
rwk1 has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
davidbalbert is now known as davidbalber|away
ivanoats has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
kurko_ has joined #ruby-lang
rwk1 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
concernedcitizen has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
headius has quit [Quit: headius]
flexd has quit [Ping timeout: 240 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
jg has joined #ruby-lang
xalei has joined #ruby-lang
io_syl has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby-lang
flexd has joined #ruby-lang
rwk1 has quit [Read error: Operation timed out]
mbull9 has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
tcopp has quit [Ping timeout: 260 seconds]
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
qqroach has quit [Quit: leaving]
mjio has quit []
Weems has quit [Read error: Connection reset by peer]
xxaM has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
JohnBat26 has joined #ruby-lang
chendo_ has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has joined #ruby-lang
chendo has joined #ruby-lang
rwk1 has joined #ruby-lang
baba has quit [Ping timeout: 246 seconds]
xxaM has joined #ruby-lang
volov has quit [Remote host closed the connection]
pepper_chico has quit [Quit: Computer has gone to sleep.]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
tonni has joined #ruby-lang
volov has joined #ruby-lang
symm- has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
pepper_chico has quit [Quit: I'm Quitting.]
baba has joined #ruby-lang
rwk1 has quit [Read error: Connection timed out]
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
pepper_chico has joined #ruby-lang
vlad_starkov has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
symm- has quit [Ping timeout: 256 seconds]
zmack has joined #ruby-lang
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
Mon_Ouie has quit [Ping timeout: 256 seconds]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
emocakes has quit [Quit: emocakes]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
nXqd has joined #ruby-lang
woollyams has quit [Ping timeout: 258 seconds]
tbuehlmann has joined #ruby-lang
kogent has quit [Quit: kogent]
rwk1 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
apeiros_ has joined #ruby-lang
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
volov has quit [Ping timeout: 264 seconds]
dr_bob has joined #ruby-lang
intellitech has quit [Quit: intellitech]
dc5ala has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
bantic has quit [Quit: bantic]
brianpWins has quit [Quit: brianpWins]
tbuehlmann has quit [Quit: Quitting.]
benlovell has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
tbuehlmann has joined #ruby-lang
krz has joined #ruby-lang
tonni has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
hasimo-t has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
hasimo-t has joined #ruby-lang
thebastl has joined #ruby-lang
amerine has joined #ruby-lang
face has quit [Read error: Connection reset by peer]
face has joined #ruby-lang
krz has quit [Quit: krz]
krz has joined #ruby-lang
sarclops has joined #ruby-lang
tonni has joined #ruby-lang
<yorickpeterse> morning
sarclops has quit [Client Quit]
tms has joined #ruby-lang
alessio_rocco has joined #ruby-lang
solars has joined #ruby-lang
bryno has quit [Read error: Operation timed out]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
torrieri has joined #ruby-lang
sheerun has quit [Read error: Connection reset by peer]
dagobah has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
gnufied has joined #ruby-lang
<apeiros_> moin yorick
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
charliesome has joined #ruby-lang
torrieri has quit [Ping timeout: 258 seconds]
sheerun has joined #ruby-lang
blacktulip has joined #ruby-lang
jonahR has quit [Quit: jonahR]
marr has joined #ruby-lang
ryanf has quit [Quit: leaving]
shirokuro11 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
dc5ala has quit [Quit: Ex-Chat]
vlad_starkov has joined #ruby-lang
judofyr has joined #ruby-lang
krz has quit [Quit: krz]
barttenbrinke has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
holgerno has joined #ruby-lang
hasimo-t has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
jmeeuwen has quit [Quit: Caught sigterm, terminating...]
kain has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
bzalasky has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
noop has quit [Ping timeout: 256 seconds]
adambeynon has joined #ruby-lang
toretore has joined #ruby-lang
sheerun has quit []
torrieri has joined #ruby-lang
davidw has joined #ruby-lang
skade has joined #ruby-lang
torrieri has quit [Ping timeout: 260 seconds]
davidw is now known as Guest42470
noop has joined #ruby-lang
xxaM has quit [Remote host closed the connection]
jbsan has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby-lang
havenwood has joined #ruby-lang
xalei has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
sarclops has joined #ruby-lang
xalei has joined #ruby-lang
KM|3 has joined #ruby-lang
KM|2 has quit [Read error: Connection reset by peer]
<injekt> moin
<lianj> hoi
mehwork has quit [Ping timeout: 245 seconds]
jbsan has joined #ruby-lang
Guest42470 has left #ruby-lang [#ruby-lang]
hasimo-t has joined #ruby-lang
hasimo-t_ has joined #ruby-lang
hasimo-t has quit [Ping timeout: 260 seconds]
jsaak has joined #ruby-lang
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
<badeball> uhm, I'm completely blank all of a sudden. how do one usually show print output within code? like 'print "Hello world!" # $ Hello world!', except that prompt indicates something entirely different.
<apeiros_> p
<apeiros_> or pp
<apeiros_> pp needs a require 'pp' first
<judofyr> badeball: `p "Hello world"` for inspecting/debugging. `puts "Hello world"` for printing a line
<judofyr> pp for even prettier inpspecting
<judofyr> ppp for prettiest! (j/k)
<badeball> I think I might not be formulating my question correctly. if you look at this gist: https://gist.github.com/anonymous/5212073. I used '->' to show what would be outputted, allowing the user to just look at the example without needing to actually run it.
<yorickpeterse> what's the canonical Ruby way of checking if there's something in STDIN?
<yorickpeterse> STDIN.eof? blocks until it actually gets something
noop has quit [Ping timeout: 256 seconds]
torrieri has joined #ruby-lang
MaddinXx has joined #ruby-lang
<judofyr> yorickpeterse: IO.select([$stdin],[],[],0)
<yorickpeterse> wat
<yorickpeterse> apparently io/wait solves my issue
<yorickpeterse> it adds STDIN.ready?
<judofyr> ah
<judofyr> nice
<judofyr> badeball: ahh =>
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
torrieri has quit [Ping timeout: 264 seconds]
<badeball> judofyr: of cource, that looks familiar, thanks
havenwood has quit [Remote host closed the connection]
hasimo-t_ has quit [Ping timeout: 246 seconds]
hasimo-t has joined #ruby-lang
marr has quit [Read error: Connection reset by peer]
retro|cz has joined #ruby-lang
tbuehlmann has quit [Quit: Quitting.]
skade has joined #ruby-lang
sush24 has joined #ruby-lang
noop has joined #ruby-lang
jg has quit [Quit: Leaving]
GarethAdams has joined #ruby-lang
stef_204 has joined #ruby-lang
hasimo-t has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
hasimo-t has joined #ruby-lang
Averna has joined #ruby-lang
jbsan has quit [Read error: Connection reset by peer]
jbsan has joined #ruby-lang
hasimo-t has quit [Ping timeout: 276 seconds]
bnagy has quit [Ping timeout: 264 seconds]
bnagy has joined #ruby-lang
holgerno has quit [Quit: Linkinus - http://linkinus.com]
shirokuro11 has quit [Remote host closed the connection]
skbierm has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
hasimo-t has joined #ruby-lang
thebastl has quit [Ping timeout: 246 seconds]
wmoxam has joined #ruby-lang
jbsan has quit [Ping timeout: 260 seconds]
Uranio has quit [Ping timeout: 260 seconds]
Uranio has joined #ruby-lang
dr_bob1 has joined #ruby-lang
appu_ has joined #ruby-lang
dr_bob has quit [Ping timeout: 240 seconds]
torrieri has joined #ruby-lang
wmoxam has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby-lang
rsl has joined #ruby-lang
maxmanders has joined #ruby-lang
torrieri has quit [Ping timeout: 256 seconds]
Domon has quit [Remote host closed the connection]
faen has quit [Remote host closed the connection]
thufir_ has quit [Read error: Connection reset by peer]
bnagy has quit [Ping timeout: 260 seconds]
hasimo-t_ has joined #ruby-lang
<appu_> Hey guys.
hasimo-t_ has quit [Remote host closed the connection]
hasimo-t has quit [Read error: Connection reset by peer]
<appu_> I have monekypatched Hash class like
<appu_> class Hash
<appu_> alias_method :_initialize, :initialize
<appu_> def initialize
<appu_> puts 'In my hash class'
<appu_> _initialize
<appu_> end
<appu_> end
<appu_> Now in rib, when I do Hash,new, my class is used. But for something like a = {} it never calls the initialize method which I have
<appu_> why is this not working?
<judofyr> appu_: because that won't call #initialize
<judofyr> appu_: there's no guarantee that #initialize will be called for other than .new
<appu_> yeah. but isn't initialize a constructor?
<appu_> judofyr: so there is no way to have a constructor?
<judofyr> appu_: no
<judofyr> appu_: there's also .allocate which doesn't invoke #initialize: class Foo; end; Foo.allocate
maxmanders has quit [Quit: Computer has gone to sleep.]
<judofyr> appu_: but in general, objects can be constructed in several ways (behind the scenes in a C-extension; by the Ruby runtime; by calling .allocate or .new)
<judofyr> there's no way to hook into tat
<judofyr> that*
<appu_> judofyr: alright. how about trapping allocate and initialize?
bnagy has joined #ruby-lang
<judofyr> appu_: please don't :)
<appu_> judofyr: :)
<judofyr> appu_: there will *always* be ways to avoid it, and it's not worth the hassle :)
<judofyr> appu_: e.g: Class.instance_method(:allocate).bind(Hash).call will invoke the Class#allocate method without looking it up in Hash
<appu_> judofyr: I understand. I was trying to build a little DSL where user has to just say 'key' => 'value'. If I could trap ruby constructing hash for this expression, I can avoid asking them to write something like - my function 'key' => 'value'
cHarNe2 has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
francisfish has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
hasimo-t has joined #ruby-lang
<cHarNe2> hi guys, im having issues installing gems on my RPi running archlinux, says im missing stuff like ssl and ffi. Where should i start investigating?
hasimo-t_ has joined #ruby-lang
<appu_> cHarNe2: gem install ffi ?
hasimo-t has quit [Ping timeout: 260 seconds]
<cHarNe2> ffi (libffi) comes from the os
<cHarNe2> and i got that installed
j303 has joined #ruby-lang
<cHarNe2> but ill try
Nisstyre-laptop has quit [Quit: Leaving]
<judofyr> cHarNe2: your Ruby-version needs to be compiled with OpenSSL if you want SSL-support. not sure how it's done in Arch.
<judofyr> cHarNe2: there might be a package for it
<cHarNe2> same, says im missing ffi.h
<appu_> cHarNe2: libffi will be there. But you need the ruby wrapper to get it working.
kurko_ has joined #ruby-lang
kurko_ has quit [Max SendQ exceeded]
imperator has joined #ruby-lang
kurko_ has joined #ruby-lang
kurko_ has quit [Client Quit]
xalei has quit [Remote host closed the connection]
<cHarNe2> judofyr: i think it is, i dont see why it would be different on the arm-distro :S
sailias has quit [Quit: Leaving.]
appu_ has quit [Quit: appu_]
realDAB has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 252 seconds]
Banistergalaxy has joined #ruby-lang
<cHarNe2> judofyr: require "openssl" in irb works just fine. Tho that might not me an indication of it being supported?
<judofyr> cHarNe2: well, then it should be fine, yes
hasimo-t has joined #ruby-lang
emocakes has joined #ruby-lang
hasimo-t_ has quit [Ping timeout: 260 seconds]
bnagy has quit [Ping timeout: 256 seconds]
hasimo-t has quit [Read error: Connection reset by peer]
hasimo-t_ has joined #ruby-lang
hasimo-t has joined #ruby-lang
jxie has quit [Quit: leaving]
hasimo-t_ has quit [Ping timeout: 256 seconds]
kgrz has quit [Quit: Computer has gone to sleep.]
hasimo-t has quit [Read error: Connection reset by peer]
hasimo-t has joined #ruby-lang
<charliesome> howdy all
<judofyr> howdy handsome
<charliesome> don't you hate it when you decide "tonight i'm going to dive into some awesome code" and then you get sidetracked
<charliesome> and then it's 11pm and you've done nothing
kgrz has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<judofyr> charliesome: ikr
<cHarNe2> charliesome: ye, i know.. starting programming what you should, ending up making something else.. and then you get hungry and realize that all stores are closed..
<judofyr> cHarNe2: damn, you've stolen charliesome's auto-complete :(
AndChat| has joined #ruby-lang
Averna has quit [Quit: Leaving.]
<charliesome> cHarNe2: in my case it was spending my entire evening fixing a broken combination of windows xp, itunes and an iphone for a family member
<cHarNe2> i'v stop helping ppl with crapple-ware
<charliesome> i love me my crapple
bryno has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
barttenbrinke has joined #ruby-lang
kain has joined #ruby-lang
hasimo-t has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 260 seconds]
Aria has quit [Ping timeout: 260 seconds]
barttenbrinke has quit [Remote host closed the connection]
bnagy has joined #ruby-lang
barttenbrinke has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
hasimo-t has joined #ruby-lang
vmoravec has joined #ruby-lang
vmoravec has quit [Client Quit]
carloslopes has joined #ruby-lang
barttenbrinke has joined #ruby-lang
marr has joined #ruby-lang
<cHarNe2> http://pastie.org/6688715 not getting anywere.. :(
<manveru> you have no cpp?
<manveru> how about installing a compiler before trying to compile :)
thisirs has joined #ruby-lang
<cHarNe2> manveru: hmm
<manveru> also libffi wouldn't hurt
torrieri has joined #ruby-lang
<cHarNe2> libffi is installed
MaddinXx has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
torrieri has quit [Ping timeout: 264 seconds]
francisfish has quit [Ping timeout: 256 seconds]
hasimo-t_ has joined #ruby-lang
hasimo-t has quit [Ping timeout: 256 seconds]
mistym has joined #ruby-lang
hasimo-t_ has quit [Read error: Connection reset by peer]
sailias has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
tomzx_mac has joined #ruby-lang
realDAB has quit [Quit: realDAB]
tomzx_mac has quit [Client Quit]
mistym has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
francisfish has joined #ruby-lang
sailias has quit [Ping timeout: 264 seconds]
Aria has joined #ruby-lang
chrismar035 has joined #ruby-lang
soknee has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
hasimo-t has joined #ruby-lang
tomzx_mac has joined #ruby-lang
emocakes has quit [Quit: emocakes]
sailias has joined #ruby-lang
symm- has joined #ruby-lang
<symm-> hi
headius has joined #ruby-lang
<symm-> does arr.map {|x| ... } return an Array whereas arr.map do |x| ... end returns an Enumerator??
<symm-> or am I sleep deprived
<apeiros_> you're sleep deprived
<apeiros_> do/end and {} only differ in precedence, not in functionality
slyphon has joined #ruby-lang
<symm-> thanks :O
<symm-> I'll try to whittle this code down to a testcase
<judofyr> symm-: I guess you have code like this: foo bar.map do; end
wmoxam has joined #ruby-lang
<judofyr> symm-: that will be parsed as foo(bar.map) do; end
<judofyr> symm-: while `foo bar.map { }` is parsed as `foo(bar.map { })`
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
mistym has joined #ruby-lang
anonymuse has joined #ruby-lang
slyphon has quit [Ping timeout: 264 seconds]
tcopp has joined #ruby-lang
<yorickpeterse> Reasons why Ruby -W2 is balls:
<yorickpeterse> exhibit A:
francisfish has quit [Ping timeout: 264 seconds]
<yorickpeterse> app/models/entry.rb:101: warning: statement not reached
<yorickpeterse> the actual statement that's not reached is on line 103
<yorickpeterse> line 101 only contains a ")"
<imperator> so?
<yorickpeterse> it's just flat out wrong
<symm-> judofyr: oh gosh, that must be it, thanks
<judofyr> symm-: :)
<symm-> yes I have a puts arr.map do |x|...
hramrach has quit [Ping timeout: 276 seconds]
<judofyr> there you have it ;)
shtirlic has joined #ruby-lang
stevechiagozie has joined #ruby-lang
<imperator> yorickpeterse, better get in there and mess with the parser then
<yorickpeterse> imperator: nah fuck that, I'd rather add stuff like this to my own linter
<yorickpeterse> no parse.y for me
jxweng has joined #ruby-lang
chrismar035_ has joined #ruby-lang
<imperator> i guess i'm used to error messages showing the line above the actual issue
chrismar035 has quit [Read error: Connection reset by peer]
chrismar035_ is now known as chrismar035
<imperator> see it all the time with syntax errors and such
mlangenberg has joined #ruby-lang
wallerdev has joined #ruby-lang
jxweng has quit [Quit: Lost terminal]
kgrz has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> exhibit B: http://pastie.org/6788103
<yorickpeterse> I don't see a local variable there
<yorickpeterse> (I know what it's trying to say, the error is just silly)
<yorickpeterse> though the line break fucks up Syntastic
<imperator> what version is this?
<judofyr> yorickpeterse: now that is odd. it should know that that isn't a lvar…
<yorickpeterse> 1.9.3
<yorickpeterse> Can you run eval.in with -W2?
<yorickpeterse> >> $VERBOSE = true; 10 /2
<eval-in> yorickpeterse => 5 (http://eval.in/13266)
scampbell has joined #ruby-lang
<yorickpeterse> hm, it doesn't show the errors
<injekt> what errors
<judofyr> yorickpeterse: that doesn't work in Pry either here
slyphon has joined #ruby-lang
<injekt> ah the warnings
<judofyr> >> $VERBOSE = true; eval('10 /2')
<eval-in> judofyr => (eval):1: warning: `/' after local variable is interpreted as binary operator ... (http://eval.in/13269)
<yorickpeterse> judofyr: sec
<judofyr> yorickpeterse: ^
<yorickpeterse> heh, yeah that works too
<injekt> omg pastebin
<injekt> who use dat
<judofyr> yorickpeterse: "$VERBOSE = true; 10 /2" doesn't work in Pry
<yorickpeterse> pastie is down
<injekt> gist > *
<yorickpeterse> judofyr: oh, hmm
<yorickpeterse> injekt: cbf creating gists under my account for this
<judofyr> yorickpeterse: which makes sense
<yorickpeterse> I only use Gist for stuff that's worth keeping
<judofyr> because it's a parse-time error
<yorickpeterse> judofyr: btw, using a line break didn't work in eval.in either
kgrz has joined #ruby-lang
<yorickpeterse> probably redirects STDERR
<judofyr> yorickpeterse: no, because it's still parsed at once
<yorickpeterse> hmm
<judofyr> yorickpeterse: you need to set $VERBOSE *before* parsing
<yorickpeterse> well TIL
<yorickpeterse> also lol, this Rails app has 35k symbols
* yorickpeterse cries in the corner
tms has quit [Quit: Konversation terminated!]
<zzak> whats wrong with that?
<imperator> yorickpeterse, needs more eval
<zzak> btw good morning
<yorickpeterse> zzak: I hope you're being sarcastic
<zzak> judofyr: i wrote you a new plugin last night :D
<yorickpeterse> >> Symbol.all_symbols.length
<eval-in> yorickpeterse => 2243 (http://eval.in/13270)
<yorickpeterse> wow wtf, that's supposed to be 1895
maxmanders has joined #ruby-lang
<yorickpeterse> maybe eval.in adds some shit
<zzak> every method is a symbol, right?
<apeiros_> yes
<apeiros_> every identifier in ruby is
<apeiros_> constants, globals, cvars, ivars
<yorickpeterse> hmmm
<zzak> yeah
hasimo-t has quit [Ping timeout: 256 seconds]
<yorickpeterse> I did see shit like :"/users"
<apeiros_> 35K symbols doesn't seem like an issue to me
<zzak> ape
<zzak> 06:37 <judofyr> *** Message to #ruby-lang throttled due to flooding
<zzak> can you fix that?
<yorickpeterse> apeiros_: kinda depends on how many of those are re-used
<yorickpeterse> if they are, sure, no fucks given
judofyr has quit []
<apeiros_> zzak: don't think so. I'd assume that a) this comes from freenode, and b) I only have op privs here, nothing more :-/
<zzak> :(
judofyr has joined #ruby-lang
<apeiros_> yorickpeterse: with 35K I wouldn't even give a fuck if they're only used twice
<apeiros_> what you have to worry about are "symbol leaks" (for the lack of a better term)
<judofyr> better now?
<judofyr> ping?
<apeiros_> pong
<zzak> hi!
<apeiros_> got fried, judofyr?
<apeiros_> yorickpeterse: i.e. when user-input is blindly converted to syms
hasimo-t has joined #ruby-lang
<judofyr> apieros: yup :-(
<yorickpeterse> apeiros_: well yeah. It's not something that bothers me, just something that I frowned upon when I saw it
<yorickpeterse> "Let's see how many symbols there a....oh..."
<apeiros_> it's a huge code-base, so I'd bet that alone already creates a shit-ton of symbols
sush24 has joined #ruby-lang
<zzak> if every identifier is a symbol
<zzak> does that mean every symbol is a symbol?
* zzak woah
<apeiros_> lol
hramrach has joined #ruby-lang
<apeiros_> you may want to reread that phrase :-p
<apeiros_> yes, every symbol is a symbol - itself
<zzak> every symbol is a symbol of a symbol
<yorickpeterse> zzak: we must go deeper
<judofyr> a symbol of love
<yorickpeterse> lets see how many symbols are created manually
<zzak> its simple really
<zzak> its symbol
<apeiros_> yorickpeterse: hooking into String#to_sym and #intern? :)
<apeiros_> zzak: a symbol is not an identifier, though. it's a literal.
<apeiros_> assuming you mean :foo
<apeiros_> x = :foo # x is an identifier
sebasoga has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> apeiros_: nah, Ripper style
lele|w has quit [Ping timeout: 264 seconds]
<zzak> so "x" is interned?
<apeiros_> yes. as said, every identifier is :)
<zzak> what about "="
<zzak> and " "
<apeiros_> not identifiers
<judofyr> apieros: so we should re-use the same lvars in all methods? :D
<zzak> we must identify them all
lele|w has joined #ruby-lang
<apeiros_> judofyr: yes! a good reason in favor of single-char lvars :D
<apeiros_> judofyr: unless you dynamically create code and eval it - no
<judofyr> oh?
vlad_starkov has quit [Remote host closed the connection]
<apeiros_> judofyr: more code means more symbols - not an issue.
<judofyr> I've always thought this was a bit funny:
<judofyr> >> "+(binary)".intern
<eval-in> judofyr => :+ (http://eval.in/13271)
slyphon has quit [Ping timeout: 264 seconds]
<yorickpeterse> 2282 as far as Ripper can find
<apeiros_> OO
maxmanders has quit [Quit: Computer has gone to sleep.]
<apeiros_> judofyr: wtf.…
outoftime has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby-lang
<judofyr> >> "*(binary)".intern
<eval-in> judofyr => :"*(binary)" (http://eval.in/13272)
<judofyr> >> "-(binary)".intern
<eval-in> judofyr => :- (http://eval.in/13273)
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
hasimo-t_ has joined #ruby-lang
<apeiros_> I think this is about binary vs. unary +/-
<yorickpeterse> >> "(binary)(binary)".intern"
<eval-in> yorickpeterse => /tmp/execpad-ada36f7595c9/source-ada36f7595c9:2: unterminated string meets end of file ... (http://eval.in/13274)
<apeiros_> but (unary) doesn't do anything
<yorickpeterse> eh oops
<yorickpeterse> >> "(binary)(binary)".intern
<eval-in> yorickpeterse => :"(binary)(binary)" (http://eval.in/13275)
<yorickpeterse> meh
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
<apeiros_> i.e., it's not about encoding
<yorickpeterse> let's find out!
<judofyr> I think it supported unary earlier
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
<judofyr> Search for `"+(binary)".intern` here: http://viewsourcecode.org/why/redhanded/bits/aChargedMetatrick.html
<GarethAdams> >> "+(binary)".intern.object_id == "+".intern.object_id # the result is the same
<eval-in> GarethAdams => true (http://eval.in/13276)
sheerun has joined #ruby-lang
hasimo-t has quit [Ping timeout: 258 seconds]
* apeiros_ wonders whether that's a leftover from older rubies
<apeiros_> i.e. whether there was a different notion before +@ and -@
<GarethAdams> ah
<yorickpeterse> This calls for a proper Ruby golfing session
francisfish has joined #ruby-lang
<yorickpeterse> you can only abuse features such as the above
dustint has joined #ruby-lang
mistym has quit [Remote host closed the connection]
breakingthings has joined #ruby-lang
hasimo-t_ has quit [Remote host closed the connection]
skbierm has quit [Quit: Verlassend]
dhruvasagar has quit [Read error: Operation timed out]
<apeiros_> bug in byteslice?
<apeiros_> >> >> y="h\xC3gar"; x = "hägar".byteslice(0,2)+"gar"; [x, y, x.valid_encoding?, y.valid_encoding?, x.b == y.b]
<eval-in> apeiros_ => /tmp/execpad-382018c73050/source-382018c73050:2: syntax error, unexpected >> ... (http://eval.in/13282)
<apeiros_> whoops
<apeiros_> >> y="h\xC3gar"; x = "hägar".byteslice(0,2)+"gar"; [x, y, x.valid_encoding?, y.valid_encoding?, x.b == y.b]
<eval-in> apeiros_ => ["h\xC3gar", "h\xC3gar", true, false, true] (http://eval.in/13283)
<apeiros_> created with byteslice, it says encoding is valid. created as a literal it is not. binary comparison shows the string is identical. seems to me like it copied over some flag or somesuch.
stevechiagozie has quit [Quit: Computer has gone to sleep.]
swav has joined #ruby-lang
srbaker has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
crankharder has quit [Quit: leaving]
srbaker has quit [Quit: Computer has gone to sleep.]
crankharder has joined #ruby-lang
glebm has joined #ruby-lang
r_s_h has joined #ruby-lang
hasimo-t has joined #ruby-lang
srbaker has joined #ruby-lang
nazty has joined #ruby-lang
rwilcox has joined #ruby-lang
noop has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
fjfish has joined #ruby-lang
cstrahan has joined #ruby-lang
maxmanders has joined #ruby-lang
crankharder has quit [Quit: leaving]
sheerun has quit []
crankharder has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Ping timeout: 255 seconds]
maxmanders has quit [Client Quit]
davidbalber|away is now known as davidbalbert
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
r_s_h has quit []
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby-lang
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
methods has joined #ruby-lang
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
torrieri has joined #ruby-lang
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
methods has left #ruby-lang [#ruby-lang]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
thufir_ has joined #ruby-lang
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
torrieri has quit [Ping timeout: 252 seconds]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
soknee has quit [Quit: Leaving.]
megha has joined #ruby-lang
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
baba has quit [Ping timeout: 264 seconds]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
gustavnils has joined #ruby-lang
hasimo-t has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
srbaker has quit [Quit: Computer has gone to sleep.]
scottschecter has quit [Quit: WeeChat 0.4.0]
scottschecter has joined #ruby-lang
hasimo-t has joined #ruby-lang
stevechiagozie has joined #ruby-lang
soknee has joined #ruby-lang
srbaker has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby-lang
lolzie has joined #ruby-lang
realDAB has joined #ruby-lang
<lolzie> Hi. I have a class, which has a variable I have used attr_accessor for. On setting the variable now, I wish there to be a side effect.
<lolzie> Should I retain the attr_accessor and add var=() ? Or change that to attr_reader
<lolzie> I'm not sure what tends to be the best practice. attr_reader seems best as minimal, but I don't know if it gives the wrong idea about the variable's use (externally)
ddd has quit [Ping timeout: 245 seconds]
bzalasky has joined #ruby-lang
jonahR has quit [Quit: jonahR]
vlad_starkov has quit [Remote host closed the connection]
thufir_ has quit [Quit: Leaving.]
<Kero> when you add var=(), the old one (as defined by attr_accessor) is overridden
ddd has joined #ruby-lang
* Kero would write attr_reader and def var= immediately next to each other, so the chance at confusion is minimal
<judofyr> lolzie: `ruby -w` will complain if you use attr_accessor and overwrite the method later
<lolzie> Makes sense, thanks guys
<andrewvos> RUBYYYYY DRAMMMMAAAAA
<andrewvos> Oh wait this is Python
<andrewvos> redacted ^
<Kero> "redacted python" ?
<yorickpeterse> andrewvos: of course nobody makes fun of it when it's not Ruby
<andrewvos> You know, coming from a third world (?) country stuff like this always makes me laugh. Maybe we should be fighting stuff like this rather? http://en.wikipedia.org/wiki/Sexual_violence_in_South_Africa
<imperator> andrewvos, what's the latest ruby drama?
<andrewvos> imperator: Not sure - I'm referring to some PyCon drama actually
megha has quit [Ping timeout: 256 seconds]
bzalasky has quit [Remote host closed the connection]
<imperator> oh, what's the drama there?
robbyoconnor has quit [Ping timeout: 256 seconds]
<andrewvos> Some guys were being dicks at the conference
<andrewvos> Telling possibly sexist jokes
<lolzie> classa.var = "value" # the side effect of my var=() requires another value to be passed to it. Should I instead have a setVar("value", otherObj) ?
<andrewvos> So some girl took a picture of them and tweeted it
<andrewvos> And I think the one guy got fired
<breakingthings> Both did, I believe.
<breakingthings> Spiraled quite out of hand because of her use of twitter
<breakingthings> Now people are threatening her life
<andrewvos> And now the "python community", whoever that is, seems to be up in arms.
<andrewvos> Well, as much in arms as people on twitter can be.
<imperator> threatening her life? for fuck's sake people
<andrewvos> breakingthings: You know the fucked up thing is those people are most likely adults. If it was some thirteen year old, then yeah, probably normal. But adults? What the fuck.
<breakingthings> Yeah, it's a bunch of crazed /b/tards who escaped the confines of to twitter.
<breakingthings> andrewvos: most of them are ^
<breakingthings> ie, dumb teenagers asking for trouble.
<andrewvos> breakingthings: I doubt it. These are probably people from the python community
<breakingthings> Nope.
<andrewvos> I mean why would teenagers give a shit about this?
<breakingthings> 4chan has threads on it.
<andrewvos> How would they even know?
<breakingthings> /b/ and /pol/itics
<andrewvos> Oh.
* imperator proposes Old Ruby, a conference where only people over 40 are allowed
<imperator> it's like Old Spice, but better
kgrz has joined #ruby-lang
<breakingthings> because 4chan loves being sexist
<andrewvos> imperator: Hey I'm 29, and very civil.
megha has joined #ruby-lang
<andrewvos> Well okay I take that back
<imperator> Ye Olde Ruby Conference
<breakingthings> imperator: can I pretend to be 40
<zzak> i reported one of the users, but twitter said they already deleted their account
<breakingthings> there are quite a few being reported
<breakingthings> One posted her address and some gore.
<imperator> breakingthings, hm, you'll have to buy a sports car first, at a minimum
<zzak> im pretty sure thats illegal
<breakingthings> zzak: threats against someone's life are.
<zzak> what is it, intent or something?
<zzak> been a while since i watched law and order
<breakingthings> but, the people in question aren't necessarily in countries that have the same laws
<imperator> yep, it's illegal
* breakingthings shrugs
<breakingthings> It's illegal, that much I know. I can't walk up to you and say "I'm going to shoot you in the head"
<imperator> i'd just report said tweets to the person's employer
<breakingthings> if you felt in fear for your life for it
<breakingthings> you could report it
<breakingthings> again, most of the numbskulls aren't employed
<zzak> a lot of them were proxy accounts
<andrewvos> They're fake accounts
<breakingthings> ^
<breakingthings> that too
<imperator> wow
<zzak> that should be against twitters ToS right?
<breakingthings> yes
<imperator> one would think so
<breakingthings> they remove the accounts
nXqd has quit [Ping timeout: 276 seconds]
cupakromer has left #ruby-lang [#ruby-lang]
<breakingthings> but they have strict policy
<zzak> they should be able to retrieve login information and report them to the police or whatever
<breakingthings> can only follow through on reports if the victim or victim's guardians confirm it, apparently
<zzak> hm
<breakingthings> could, though I would bank on a large number of them being spam accounts with anonymous IPs
<zzak> next they will make you confirm via cell phone
<zzak> theres too much spam on there as it is
<srbaker> those are called Smalltalk conferences. :)
kogent has joined #ruby-lang
<zzak> Bearded Ruby Conf
carloslopes has joined #ruby-lang
<zzak> that would go over well
kain_ has joined #ruby-lang
kain has quit [Ping timeout: 256 seconds]
<Kero> bearded? that's, um, focussing one gender too few...
<imperator> god DAMMIT i didn't win the lottery again
<breakingthings> quite sad that all this controversy over the pycon event started because of her use of twitter over a more private contact to pycon staff
<zzak> Kero: it was a joke
<imperator> zzak, hence "Ye Olde Ruby Conference"
<srbaker> heh
<imperator> much more inclusive ;)
<Kero> oh, I know, but given the context not really funny (to me)
sush24 has joined #ruby-lang
kogent has quit [Client Quit]
<zzak> yeah, it was insensitive, im sorry
<imperator> i wonder if that would work, or if the youngins would freak out
gregmoreno has joined #ruby-lang
hasimo-t has quit [Read error: Connection reset by peer]
hasimo-t has joined #ruby-lang
hasimo-t has quit [Remote host closed the connection]
<antbody> 'ye olde ruby' sounds like a kickass drink
<ddd> i think the ruby community is getting way too over-focused on this gender stuff. yes, both sides are making commentaries that shouldn't be made, but to say that the ruby community isn't inclusive of females is not true.
<antbody> something you drink then wakeup one month later in siperia
hasimo-t has joined #ruby-lang
<antbody> *siberia
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bzalasky has joined #ruby-lang
<srbaker> ddd +1
<ddd> the field itself has been predominantly male, yes. but there are *quite* a few female programmers. (hell my java class alone is probably 3/4 female, admittedly different from when I went to college originally when I was 21)
<srbaker> ddd: it's ebbs and flows. in the 70s it was a predominantly female industry.
<ddd> its the idiots amongst us making sexist comments (on BOTH sides of the fence) causing the issues these days, as I see it.
<zzak> Kero: im dumb :(
* Kero used to work for a dept with 80 devs, 1 female. such a shame. not atypical in my country, afaik.
<Kero> zzak: it's quite alright :)
<srbaker> ddd: there's no such thing as women being sexist. sexism can only be *against* women, otherwise it's not sexist.
<srbaker> that's what i learned on twitter last night
<srbaker> when women are sexist, it's called "being corrective".
jxweng has joined #ruby-lang
jonahR has joined #ruby-lang
<imperator> hammer, ready to drop
<zzak> lets just not be offensive to anyone, race, gender, ethnicity, or otherwise
<antbody> stop, hammer time
<srbaker> zzak: agree.
<andrewvos> what about trekkies?
* imperator looks around.....you, you and YOU.....i'm watching you
* realDAB quakes
<zzak> andrewvos: "otherwise"
<zzak> and we all make mistakes, i just did it, so im sorry, and if someone calls you out just apologize
<imperator> trekkies, no problem, but star wars or lotr nerds....SCUM
<realDAB> i wonder whether i'm still the owner of this channel, now that my nick has been usurped
<imperator> realDAB, can you op yourself?
<realDAB> imperator: no
<realDAB> imperator: i don't think the system has any idea i'm the same as the old dblack
* imperator doesn't remember how to check a channel's owner
<realDAB> what i really wonder is whether the new dblack owns this channel and doesn't know it….
<imperator> realDAB, unless you linked the accounts, i wouldn't think so
bzalasky has quit [Remote host closed the connection]
hasimo-t has quit [Ping timeout: 264 seconds]
<srbaker> realDAB: are you not able to tell nickserv to kill the other dblack?
* Kero renewed his account a while ago, definitely lost ownership of a channel (unimportant channel)
<Kero> renew == request nick being dropped & register it afresh
<realDAB> srbaker: he took advantage of a lengthy absence on my part to convince the admins to release my nick, and then he registered it to himself
<srbaker> realDAB: sonofabitch
<zzak> was it dblack or dablack?
torrieri has joined #ruby-lang
<realDAB> zzak: dblack
<zzak> 08:31 -NickServ(NickServ@services.)- Registered : Sep 05 15:52:52 2012 (28 weeks, 0 days, 23:38:57 ago)
<zzak> 08:31 -NickServ(NickServ@services.)- Last addr : dblack@nat/redhat/session
<zzak> 08:31 -NickServ(NickServ@services.)- Last seen : now
<andrewvos> realDAB: How did you lose your account?
mbull9 has joined #ruby-lang
<zzak> at least he's using it, i guess
<zzak> he or she
<zzak> could be daniel black, or deb black
<realDAB> andrewvos: see about 10 lines above
<realDAB> zzak: for some reason i came away from my pm chat with him thinking it was a him, but i'm not actually sure i had any evidence to go on now that i think of it
<andrewvos> realDAB: ah!
<breakingthings> realDAB: tried talking to network opers about re-instating a new nick as chan op?
mbull9 has quit [Remote host closed the connection]
skade has quit [Ping timeout: 260 seconds]
<realDAB> breakingthings: no, not yet
<andrewvos> realDAB: So someone else owns this channel now?
<breakingthings> k
<realDAB> andrewvos: i'm not sure.
<breakingthings> it's possible but I would hope they're recorded as separately existing accounts
* breakingthings doesn't really know about ircds, though
<Kero> founder of #ruby-lang is one drbrain
<breakingthings> magick
<realDAB> Kero: yes, i was never the founder, but i was the owner/registrant/whatever
<realDAB> Kero: hi, btw :-)
<Kero> hi!
Mon_Ouie has joined #ruby-lang
<Kero> good to see you here; am following you on twitter, so have some idea of what you are up to :)
torrieri has quit [Ping timeout: 276 seconds]
headius has quit [Quit: headius]
<Kero> then perhaps talking to drbrain is enough. Otherwise staff can probably help, esp. if other people confirm who you are.
<Kero> they were helpful when I re-registered my nick; but also very strict in following the freenode rules.
gnufied has quit [Quit: Leaving.]
<realDAB> Kero: what's you're twitter name?
<realDAB> s/you're/your/
<realDAB> (blush)
* realDAB is becoming slipshod in his old age
<realDAB> has anyone here successfully used refinements in ruby 2?
<Kero> realDAB: keroami
<Kero> there used to be a time when "kero" was free whenever I created an account. Those times are long gone...
segy has joined #ruby-lang
<realDAB> Kero: imagine my frustration knowing that this is the use being made of 'dblack' on twitter: https://twitter.com/dblack
<srbaker> realDAB: you got a tan and look extra cool!
<srbaker> nice shades
<realDAB> srbaker: :-)
<Kero> at least he's not yelling all the time
<realDAB> and i shed about 28 years
<zzak> nearly 6 years ago
<srbaker> that's the ruby. ruby makes you young and foolish
<zzak> i thought twitter released accounts that were unused :/
<zzak> 5 years ago someone snagged @zzak and hasnt used it since
<Kero> those people should sell^H^H^H^H give their account to Real Owners (TM)
<realDAB> hmmm, who do i know at twitter these days?
dustint has quit [Ping timeout: 245 seconds]
gnufied has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
<breakingthings> Kero: i'm sorry that your twitter account name has been stolen from you by a french call of duty player
<breakingthings> we're here for you, brother
sepp2k has quit [Quit: Leaving.]
<judofyr> are you still breakingthings? you're a really persistent guy(?), y'know?
<yorickpeterse> he broke Kero's heart
<breakingthings> judofyr: I break lots of things
<breakingthings> like
* breakingthings puts on sunglasses
<breakingthings> the rules
<yorickpeterse> YEEEAAAAAHHHHH
headius has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dustint has joined #ruby-lang
lolzie has quit [Quit: Page closed]
carloslopes has quit [Remote host closed the connection]
<yorickpeterse> seems like you also broke the conversation
dhruvasagar has joined #ruby-lang
lele|w has quit [Ping timeout: 264 seconds]
Xzyx987X has joined #ruby-lang
volov has joined #ruby-lang
<breakingthings> yep
<breakingthings> s'what I'm good at
<breakingthings> I'm also breaking the silence, so there's that
<yorickpeterse> sounds like a bad rock song
<breakingthings> I think you mean emo song
<yorickpeterse> or maybe a new Justin bieber song
headius has quit [Ping timeout: 240 seconds]
lele|w has joined #ruby-lang
tonni has quit [Remote host closed the connection]
|Vargas| has quit [Quit: ...]
cored has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
jsilver has joined #ruby-lang
<imperator> there's a new justin bieber song? where?!?!
Weems has joined #ruby-lang
<yorickpeterse> Somewhere between hell and purgatory
anonymuse has quit [Remote host closed the connection]
<yorickpeterse> probably next to a pile of horse meat
cored has joined #ruby-lang
<imperator> he's british then?
* imperator never knew
<yorickpeterse> nfi
gregmoreno has quit [Ping timeout: 245 seconds]
gregmore_ has joined #ruby-lang
snarfmason has joined #ruby-lang
TheNotary has quit [Quit: Leaving]
<imperator> Nielsen Food Index? Net Farm Income?
* imperator doesn't know "nfi"
dc5ala has joined #ruby-lang
<yorickpeterse> Jesus, apparently people actually use my FFI binding to aspell
Xzyx987X has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 256 seconds]
<andrewvos> wow ^
appu_ has joined #ruby-lang
bzalasky_ has joined #ruby-lang
bzalasky_ has quit [Remote host closed the connection]
<imperator> andrewvos, i think it was reaching "libel" stage....whole thing is quite ugly
<srbaker> NICE
<yorickpeterse> wait what happened?
<imperator> more pycon fallout
<andrewvos> yorickpeterse: The girl who complained about the sexism at PyCon got fired by SendGrid.
<yorickpeterse> wat
<yorickpeterse> What the fuck?
<yorickpeterse> I feel I'm missing context here, because that seems like a very, very bad thing to do
<andrewvos> Everybody is basically just crazy in America.
dc5ala_ has joined #ruby-lang
<imperator> that's it, i'm moving to the netherlands!
dc5ala has quit [Read error: Operation timed out]
<yorickpeterse> No seriously, somebody clarify
<yorickpeterse> Woman complains about sexism, gets fired
<yorickpeterse> This is ok?
<zzak> that is messed up
<yorickpeterse> I mean, I read something about dongle jokes but didn't really follow it
<imperator> i think it's because 2 guys she complained about got fired
<yorickpeterse> since I couldn't really find out what jokes were made exactly
* imperator is guessing here
<zzak> yeah i dont think anyone here has the full story
<srbaker> andrewvos: it wasn't sexism.
<srbaker> andrewvos: it was immaturity.
<yorickpeterse> imperator: regardless, Sendgrid basically just opened a whole hole of shit
mbull9 has joined #ruby-lang
<imperator> and a libel lawsuit was probably headed towards sendgrid's way
Xzyx987X has joined #ruby-lang
<yorickpeterse> wait wait, a lawsuit?
<srbaker> yorickpeterse: clarification: there was no sexism. there was immaturity.
<yorickpeterse> Hmpf, usually there's some Twitter like storyboard for this stuff, better find it
dc5ala_ has quit [Max SendQ exceeded]
<yorickpeterse> srbaker: what exactly happened?
<andrewvos> yorickpeterse: If you look at her tweets, the responses are quite shocking. Grown men.
dc5ala_ has joined #ruby-lang
<srbaker> yorickpeterse: she complained about two comments, claiming sexism. one comment was later found out to be fabricated, the other was clearly not sexism (it was extremely immature). in her complaint, she posted a picture of the guys she was complaining against. one of them lost his job
<yorickpeterse> srbaker: hmmmmm
<srbaker> yorickpeterse: http://pastebin.com/JaNh0w5F
<yorickpeterse> andrewvos: well, that doesn't surprise me. After all, a lot of people in IT are sadly dicks (no literal pun intended)
<breakingthings> yorickpeterse: "opened a whole hole of shit"
<breakingthings> that's already open
<yorickpeterse> srbaker: thanks
<yorickpeterse> breakingthings: fine, a bigger one
<breakingthings> pissing into an ocean of piss
dc5ala_ has quit [Max SendQ exceeded]
<srbaker> i'm definitely moving to the netherlands at some point. but i already live in a mostly reasonable country. :P
<yorickpeterse> > In fact, the next day she made a phallus joke herself (http://imgur.com/7XGY8wB). This suggests that her motivations may be questionable.
<yorickpeterse> welp
dc5ala_ has joined #ruby-lang
<yorickpeterse> imperator: srbaker: please don't become the stereotypical bonghead
<yorickpeterse> we already have enough of those
<imperator> maybe we should just talk about something else
* yorickpeterse looks at r0bglees0n
<imperator> yorickpeterse, never got into it much myself
<imperator> tried it a couple times in college, preferred beer by a large margin
<srbaker> yorickpeterse: haha. i live in Canada. weed in the Netherlands is not one of the draws for me
<yorickpeterse> good, then come drink with us Reddit people during meetups
<yorickpeterse> or the Ruby meetups
<imperator> reddit people..... *SHUDDER*
<srbaker> yorickpeterse: hopefully the Ruby meet ups are higher quality than the ones in Canadian cities. :/
<yorickpeterse> srbaker: hmmm, this clears things up a bit
<yorickpeterse> imperator: heh, basically it's just a bunch of people drinking and talking about anything but Reddit
<srbaker> in fact, i was really fucking disappointed when i was in Leiden and asked people "Can you tell me where I can buy coffee?" and they'd give me a dirty look and send me to the weed shop
<srbaker> i later learned it's Kofie
cstrahan has quit [Read error: Connection reset by peer]
<antbody> I'd be darn happy if I were directed to a weed shop
<imperator> so he asked for "java" instead and got sent srbaker to some boring conference
barttenbrinke has quit [Remote host closed the connection]
<srbaker> in fact, the only thing i didn't enjoy about NL was when i tried my best to speak Dutch, the person on the other end would just speak English. better than i do.
<yorickpeterse> imperator: hahaha
solars has quit [Ping timeout: 252 seconds]
<yorickpeterse> srbaker: oh yeah, most people here are used to people trying to speak Dutch and failing at it
<yorickpeterse> if you want practise, try saying "Grachtengordel", "Hagelslag" or "roggen brood"
<imperator> everyone under 40 spoke near perfect english when i was there
<yorickpeterse> http://www.reddit.com/r/Amsterdam/comments/12ymir/reddit_suit_up_photos/ basically these are Reddit meetups
<yorickpeterse> (the official themed ones)
<srbaker> yorickpeterse: hah. i've been lately singing along to Bløf.
gnufied has quit [Quit: Leaving.]
<srbaker> imperator: that's what i found, too.
<yorickpeterse> aaaaand our Ruby meetups: http://www.meetup.com/Amsterdam-rb/photos/13292252/
<imperator> me: English? them: Of course!
<srbaker> my client's kids were a bit difficult to chat with, but they were very happy to help me learn dutch.
<Kero> srbaker: You can tell people "Ik wil mijn nederlands oefenen" and they will switch back from english
<yorickpeterse> chances are that if you're in Amsterdam the people you talk to don't speak Dutch themselves
<srbaker> Kero: ah.
<Kero> true
<srbaker> i didn't terribly like Amsterdam
<imperator> lots of tourists :)
<srbaker> i mean, it was beautiful and awesome. but I preferred Leiden
pygmael has joined #ruby-lang
<yorickpeterse> It's a decent city if you don't stay in the touristy places for too long
<yorickpeterse> Though a lot is overrated
<yorickpeterse> such as the sex museum
<yorickpeterse> Dam square also gets old really fast
<imperator> drunk brits everywhere!
<srbaker> haha
<yorickpeterse> Or, and no offence, American teenagers
macmartine has joined #ruby-lang
<yorickpeterse> * offense
cstrahan has joined #ruby-lang
<srbaker> it's funny, in North America everyone knows "Amsterdam'
<srbaker> but comparatively few people know "Netherlands" or "Holland"
<srbaker> so i just don't ever say "Amsterdam'
<Kero> but they don't know "New Amsterdam", do they?
<imperator> why they changed it i can't say....
benlovell has quit [Quit: Computer has gone to sleep.]
headius has joined #ruby-lang
realDAB has quit [Quit: realDAB]
appu_ has quit [Quit: appu_]
kain_ is now known as kain
<yorickpeterse> jesus, those comments on the Sendgrid facebook post are really contradicting and confusing
<breakingthings> all of the drama is contradictory and confusing i've stopped trying to follow it anymore
* whitequark goes to register pythondramas.com
<breakingthings> too much crazy on both sides
<yorickpeterse> whitequark: no no
<yorickpeterse> __pythondramas__.com
<whitequark> ROFL
<yorickpeterse> make the index page redirect to /self
<whitequark> yorickpeterse: wanna make a layout? I suck at html
judofyr has quit [Remote host closed the connection]
<imperator> self.__pythondramas__.com ?
<yorickpeterse> imperator: ha
<whitequark> excellent
<yorickpeterse> whitequark: I'm not a designer, use Twitter Bootstrap or something like that
<yorickpeterse> I'm also too busy I'm afraid
gnufied has joined #ruby-lang
rue has quit [Remote host closed the connection]
<whitequark> also _ is not a valid symbol in domain names
fjfish has quit [Remote host closed the connection]
<whitequark> nor is trailing/leading - I'm afraid
<whitequark> that sucks
headius has quit [Quit: headius]
<whitequark> and publishing such a thing would be using completely unrelated dirty story to screw with python community, which doesn't really have anything to do with the drama, by itself
<whitequark> so screw it.
rue has joined #ruby-lang
hasimo-t has joined #ruby-lang
joevandyk_ has joined #ruby-lang
appu_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
brianpWins has joined #ruby-lang
hasimo-t has quit [Ping timeout: 264 seconds]
FlyingLeap has quit [Remote host closed the connection]
FlyingLeap has joined #ruby-lang
mixandgo has joined #ruby-lang
mlangenberg has quit [Ping timeout: 252 seconds]
pygmael has quit [Quit: pygmael]
bawigga has joined #ruby-lang
sepp2k has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
appu_ has quit [Quit: appu_]
zmack has quit [Remote host closed the connection]
jxweng has quit [Quit: leaving]
gearaholic has joined #ruby-lang
nXqd has joined #ruby-lang
tbuehlmann has joined #ruby-lang
bluepojo has joined #ruby-lang
appu_ has joined #ruby-lang
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
mistym is now known as mistym_lunch
dr_bob1 has left #ruby-lang [#ruby-lang]
glebm has quit [Quit: Computer has gone to sleep.]
gregf has joined #ruby-lang
symm- has quit [Quit: Leaving...]
jsilver has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
volov has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
gregf has quit [Quit: WeeChat 0.4.0]
benlovell has quit [Quit: Zzz]
mrsolo has joined #ruby-lang
dr_bob has joined #ruby-lang
jxie has joined #ruby-lang
<darix> whitequark: well it seems now all 3 person involved in the drama got fired.
<whitequark> darix: yeah I've seen that
<andrewvos> "manager who fired first guy fired"
<whitequark> domino effect?
<andrewvos> bet that comes next
<andrewvos> I blame Obama
glebm has joined #ruby-lang
barttenbrinke has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
<darix> andrewvos: i blame people who overreact instead of talking to each other.
<andrewvos> I blame lamp
<darix> that too
io_syl has joined #ruby-lang
<darix> this was just as bad as the green/yellow/red card crap on the last CCC congress
<andrewvos> I don't follow soccer
carloslopes has joined #ruby-lang
kogent has joined #ruby-lang
appu_ has quit [Quit: appu_]
dc5ala__ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
breakingthings has quit []
realDAB has joined #ruby-lang
dc5ala__ has quit [Max SendQ exceeded]
volov has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
dc5ala_ has quit [Ping timeout: 245 seconds]
dc5ala has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
<tbuehlmann> darix, the idea i
<andrewvos> Wow I haven't released a stupid gem in a while. any ideas?
<tbuehlmann> isn't bad. ppl just didn't know what the card were good for
mlangenberg has joined #ruby-lang
mytrile has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
<tbuehlmann> and ppl can't know what they did wrong when getting a card without a proper conversation, which is a pure flaw
gnufied has quit [Quit: Leaving.]
dc5ala_ has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
wallclockbuilder has quit [Remote host closed the connection]
<andrewvos> link?
dc5ala has quit [Ping timeout: 252 seconds]
<tbuehlmann> google for creepercards
<tbuehlmann> first thing done with them: built a naked woman on a wall
swav has quit [Remote host closed the connection]
dc5ala_ has quit [Ping timeout: 246 seconds]
barttenbrinke has joined #ruby-lang
mlangenberg has quit [Quit: mlangenberg]
<andrewvos> wow defcon sounds like a conference full of assholes
dhruvasagar has quit [Ping timeout: 252 seconds]
retro|cz is now known as simi
soypirate has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<srbaker> andrewvos: that was my experience :(
benlovell has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
<andrewvos> srbaker: youu're female?
<srbaker> andrewvos: no.
<bougyman> i officially hate rbenv
<injekt> :)
<srbaker> andrewvos: but i still felt it was a conference full of assholes :P
<whitequark> hey yorickpeterse
<yorickpeterse> ssup
gregmore_ has quit [Ping timeout: 264 seconds]
<yorickpeterse> - ^s
<yorickpeterse> bougyman: chruby bro
<whitequark> I'll probably have to face the venerable ruby_parser rewrite quite soon
<whitequark> wanna cooperate on it?
<yorickpeterse> lawl
<yorickpeterse> Sure
<bougyman> yorickpeterse: chwhat?
<yorickpeterse> given I can find the time for it
<whitequark> because I'm not really excited about it
<ReinH> srbaker: hai
<bougyman> yorickpeterse: rvm works fine, i just came behind someone using rbenv.
<yorickpeterse> bougyman: https://github.com/postmodern/chruby
<yorickpeterse> ah
<srbaker> ReinH: sup
dr_bob has left #ruby-lang [#ruby-lang]
<yorickpeterse> whitequark: how so?
gearaholic has quit [Remote host closed the connection]
<ReinH> srbaker: dude, you need to woosah
<ReinH> :p
<whitequark> yorickpeterse: I have to face shit in RP and shit in Ruby grammar
<whitequark> I despise either
<srbaker> ReinH: i sure do.
gregmoreno has joined #ruby-lang
<ReinH> whitequark: Ruby grammar: good grammar or BEST grammar?
<yorickpeterse> whitequark: how far is your ragel port of it?
<whitequark> you do not want to know the tricks required to distinguish ?a and ternary ops
<yorickpeterse> s/far/complete
dc5ala_ has joined #ruby-lang
<ReinH> Did Matz's spec come with an actual grammar or do we still just reverse engineer it from parse.y?
<whitequark> yorickpeterse: it has everything except the "stack states", ie ?a vs a?b:c
<whitequark> ReinH: it did
<yorickpeterse> ReinH: pretty much the latter
<yorickpeterse> oh?
<whitequark> but you have to pay $600 or so to get the spec
<yorickpeterse> Oh, the ISO
<ReinH> lmao wat
<srbaker> ReinH: this dude on twitter emailed CEO to try and get me fired. his threat was based on my company "liking his moeny"
<srbaker> ReinH: i knew he was full of shit, because we don't get money from any customers yet :P
<whitequark> ReinH: ISO
<yorickpeterse> srbaker: wat
<ReinH> srbaker: assholes gonna asshole
<whitequark> bbl
<ReinH> whitequark: I know. It's just ridiculous.
<ReinH> whitequark: and does it even cover Ruby 2?
dc5ala_ has quit [Max SendQ exceeded]
<ReinH> srbaker: I try not to touch these things. It just adds fuel to the fire.
<yorickpeterse> ReinH: not sure, but 2.0 didn't change that much in terms of syntax
<yorickpeterse> besides refinements and keyword arguments
dc5ala_ has joined #ruby-lang
<srbaker> yeah, i always expect people to be reasonable and respectful
<ReinH> yorickpeterse: right those things :p
<srbaker> and go "Oh yeah, good point, man."
<ReinH> srbaker: ha
<srbaker> not "YOU SUPPORT RAPISTS"
<amerine> I hear an angry canadian.
<ReinH> srbaker: I hope this has disabused you of that quaint notion :p
<ReinH> amerine: hai
<srbaker> ReinH: for now. i'll make the mistake again
<srbaker> amerine: i'm pretty chill today, dude. i'm on the vacations.
<srbaker> FIRST EVER
<ReinH> srbaker: it's never a mistake to act in good faith, even (especially) when others aren't :)
dhruvasagar has joined #ruby-lang
<realDAB> anyone want to be thanked in the acknowledgements of TWGR 2ed for helping me figure out why i can't get refinements to work? :-)
<srbaker> ReinH: eh. whenever i act in good faith, i get shat on. when i'm an asshole in public? much support and followers.
<srbaker> :P
<realDAB> "unknown method using" is as far as i get unless i do the refinement at the top level
* realDAB offers undying gratitude… going once… going twice...
<srbaker> amerine: also, i'm the happiest guy you know now. i split time between Smalltalk and Ruby.
<srbaker> more smalltalk every day
<ReinH> srbaker: nice :)
<ReinH> realDAB: zomg hi David :)
<realDAB> hi ReinH :-)
<ReinH> realDAB: I've never used refinements and frankly I hope I never do, so I don't think I can help you
<realDAB> ReinH: someone on another channel confirms that they're only available at the top level, which is contrary to most examples (which i guess are purely hypothetical)
<ReinH> realDAB: well, to be fair, refinements were only hypothetical until relatively recently ;)
<realDAB> heh, true
<realDAB> i'm not sure they even merit a place in the book yet -- maybe a sidebar
<amerine> Just like gravity. Relatively, of course.
simi has quit [Ping timeout: 264 seconds]
<yorickpeterse> realDAB: correct, they are lexically scoped now
mistym_lunch is now known as mistym
<yorickpeterse> there was a pretty big discussion about it on the Redmine tracker but it seems the general media didn't really cover it
<yorickpeterse> let me see if I can find it
<realDAB> yeah, somehow my finger got off the pulse of this one
<darix> tbuehlmann: the real solution was still - talking to the people. and you can do that without stupid cards and without posting pictures of them online.
<yorickpeterse> bear with me, redmine's search is slow as balls
__butch__ has joined #ruby-lang
<darix> srbaker: you saw this http://www.youtube.com/watch?v=YX3iRjKj7C0 ?
dc5ala__ has joined #ruby-lang
<srbaker> darix: yeah. i found it to be half bullshit :(
symm- has joined #ruby-lang
mwjcomputing has joined #ruby-lang
<realDAB> thanks yorickpeterse
<yorickpeterse> >> refine String do; def herpderp; 'herpderp'; end; end; using String; String.new.herpderp
dc5ala__ has quit [Max SendQ exceeded]
<eval-in> yorickpeterse => /tmp/execpad-4beb18458618/source-4beb18458618:2:in `<main>': undefined method `refine' for main:Object (NoMethodError) (http://eval.in/13289)
<yorickpeterse> wat
dc5ala__ has joined #ruby-lang
<yorickpeterse> oh, apparently they can not be created in the global scope
<yorickpeterse> http://eval.in/13293
dc5ala_ has quit [Ping timeout: 256 seconds]
<srbaker> darix: namely: it's easy to make a mess in smalltalk. It's easier to clean up a mess in Smalltalk than in any other programming environment ever.
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has quit [Remote host closed the connection]
<darix> srbaker: i dont know smalltalk to judge that.
dc5ala__ has quit [Max SendQ exceeded]
<srbaker> darix: i do. it's true. you should try it. get Pharo
skade has joined #ruby-lang
ivanoats has joined #ruby-lang
sarclops has quit [Quit: sarclops]
anjen has joined #ruby-lang
<rue> I’m still confused by the existence of a bot
<yorickpeterse> srbaker: No trolling intended, but is Smalltalk actually used in production somewhere?
skade has quit [Client Quit]
ryanf has joined #ruby-lang
<srbaker> yorickpeterse: all over the place, but you have to go deep in the bowels of banks and insurance companies
<rue> Somewhere ^
<rue> Wasn’t ddfreyne working on an st system?
agile has quit [Remote host closed the connection]
<srbaker> yorickpeterse: if you do anything with money, it passes through a smalltalk system, or 10.
simi has joined #ruby-lang
skade has joined #ruby-lang
<amerine> Long story short, Smalltalk is at the center of the US Financial crisis. Not because Smalltalk is bad, but because no one could fix the HVT systems built in it.
<amerine> </scarcasm>
<srbaker> hahaha
agile has joined #ruby-lang
<bougyman> srbaker: i saw a lot of the same with MUMPS in healthcare finance.
<bougyman> MUMPS and (gasp) PICK
<bougyman> there's a lot of MUMPS in the mortgage industry, as well.
<amerine> bougyman: I haven't heard someone mention MUMPS in years.
<yorickpeterse> srbaker: how come it's popular in those areas?
<srbaker> i've heard of people using MUMPS. we integrate with a few of them
<srbaker> yorickpeterse: because they had the money to pay for the tools int eh 80s
<srbaker> yorickpeterse: in the 80s, to do development on smalltalk was like $3500 or $4000 per seat.
<yorickpeterse> heh
zavier has quit [Quit: WeeChat 0.3.8]
<darix> so in a few years smalltalk programmers will see as much demand as cobol programmers now
rwk1 has joined #ruby-lang
mlangenberg has joined #ruby-lang
<yorickpeterse> cobol on cogs!
torrieri has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
benlovell has quit [Quit: Zzz]
ivanoats has quit [Read error: Connection reset by peer]
__butch__ has quit [Quit: Leaving.]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
rwk1 has quit [Ping timeout: 260 seconds]
__butch__ has joined #ruby-lang
dustint has quit [Ping timeout: 252 seconds]
davidbalbert is now known as davidbalber|away
ilyam has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
breakingthings has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
srbaker has joined #ruby-lang
ilyam has quit [Quit: ilyam]
realDAB has quit [Quit: realDAB]
stef_204 has quit [Quit: quitting]
headius has joined #ruby-lang
glebm has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby-lang
anjen has quit [Quit: anjen]
mlangenberg_ has joined #ruby-lang
dustint has joined #ruby-lang
mlangenberg has quit [Ping timeout: 255 seconds]
mlangenberg_ is now known as mlangenberg
nignaztic has joined #ruby-lang
glebm has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
torrieri has quit [Quit: Leaving...]
nazty has quit [Ping timeout: 256 seconds]
mwjcomputing has quit [Ping timeout: 256 seconds]
bawigga has quit [Quit: Computer has gone to sleep.]
ivanoats has quit [Remote host closed the connection]
headius has quit [Quit: headius]
mwjcomputing has joined #ruby-lang
mistym is now known as mistym_meeting
<r0bglees0n> yorickpeterse: i'm not a typical bonghead, you're sense of perception is just wrong! :p
<r0bglees0n> your*
agarie has quit [Remote host closed the connection]
barttenbrinke has quit [Remote host closed the connection]
<yorickpeterse> pfffff
<yorickpeterse> So far you've always slacked off of going to meetups
<yorickpeterse> and your own girlfriend put you on a ration :P
mbull9_ has joined #ruby-lang
mbull9 has quit [Read error: Connection reset by peer]
mytrile has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
apeiros_ has joined #ruby-lang
methods has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
methods has left #ruby-lang [#ruby-lang]
justinram has joined #ruby-lang
tcopp has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
tylersmith has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
mbull9_ has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
AndChat| has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
<whitequark> ReinH: re ruby2. no.
<whitequark> ISO standard is based on a weird amalgamation of 1.8 and 1.9.
<whitequark> it leaves out all Encoding stuff for example
glebm has joined #ruby-lang
<whitequark> but does not mandate 1.8 behavior either
<whitequark> it also predates 2.0 by a long time.
mbull9 has joined #ruby-lang
<yorickpeterse> whitequark: we need to reverse engineer parse.y into a human readable set of documentation that can be used by everybody
* yorickpeterse gets the razor blades
<whitequark> yorickpeterse: my ragel lexer is very readable
<yorickpeterse> though I think it might be better to reverse engineer the jruby/rbx parser for that
<whitequark> and the grammar.y of ruby_parser is quite manageable
<whitequark> mostly
<yorickpeterse> because...parse.y
<whitequark> rbx parser is parse.y ;)
<yorickpeterse> wat
<whitequark> that
<yorickpeterse> srsly
<whitequark> yep
<yorickpeterse> alas poor brian
<whitequark> they just got it to generate ASTs instead of that ripper crap
<whitequark> jruby is eh java
<whitequark> and antlr
<yorickpeterse> hmpf
<whitequark> I could never quite make sense of antlr, it's LL(k) or whatever
<yorickpeterse> well, sadism it is then
<whitequark> mwahaha
ivanoats has quit [Remote host closed the connection]
<r0bglees0n> yorickpeterse: haha. i will make it to a meetup. most of the time i work nights.
<yorickpeterse> how did the immigration stuff work out by the way?
<injekt> huzzah
<yorickpeterse> did Dutch customs give you a hard time?
torrieri has quit [Quit: Leaving...]
skade has quit [Quit: Computer has gone to sleep.]
torrieri has joined #ruby-lang
mbull9_ has joined #ruby-lang
<yorickpeterse> ugh, fuck you MRI for not giving proper info when using #parameters
judofyr has joined #ruby-lang
<whitequark> ugh, fuck you MRI for not having enough resolution to find the tumor in my brain
<yorickpeterse> wat
<yorickpeterse> oh wait
thisirs has quit [Read error: Operation timed out]
<yorickpeterse> BADUM TSH
thisirs has joined #ruby-lang
mbull9 has quit [Ping timeout: 246 seconds]
davidbalber|away is now known as davidbalbert
mbull9_ has quit [Remote host closed the connection]
dustint has quit [Quit: Leaving]
dustint has joined #ruby-lang
<r0bglees0n> yorickpeterse: no idea. they still haven't got back to me..
<yorickpeterse> seriously? So is your gf now in NL or back in Mexico?
<r0bglees0n> she's in NL right now. her visa is valid until the process is finished, which can take up 6 months.
<yorickpeterse> damn
<injekt> haven't you been there longer than that now?
<yorickpeterse> I suppose this is where it would be handy if I actually knew some people in immigration
<r0bglees0n> injekt: yeah, but she was on a tourist visa for the first three months.
<injekt> r0bglees0n: ah
jaska has quit [Ping timeout: 260 seconds]
<r0bglees0n> yorickpeterse: indeed, but maybe it's a good thing that it's taking longer. it only makes our case look better because we're still together.
judofyr has quit [Read error: Connection reset by peer]
judofyr_ has joined #ruby-lang
bawigga has joined #ruby-lang
<yorickpeterse> hmmmmm, I wouldn't be too sure about that
<yorickpeterse> Dutch customs, and the government in general, can be very unpredictable
davidbalbert is now known as davidbalber|away
<yorickpeterse> and more often than not they're completely batshit crazy
davidbalber|away is now known as davidbalbert
<whitequark> s,dutch,,
tomzx_mac has quit [Ping timeout: 252 seconds]
<yorickpeterse> well yeah, as I've been told the Russians do a good job at it too
TheNotary has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 260 seconds]
skade has joined #ruby-lang
<whitequark> i think we need to pick on os x
<whitequark> because its binary file format is called mach-o.
<yorickpeterse> __MACOSX
bawigga has quit [Quit: Computer has gone to sleep.]
TheNotary has quit [Quit: Leaving]
tylersmith has quit [Quit: tylersmith]
__butch__ has quit [Quit: Leaving.]
sarclops has joined #ruby-lang
sarclops has quit [Client Quit]
rippa has quit [Ping timeout: 240 seconds]
barttenbrinke has joined #ruby-lang
zommi has joined #ruby-lang
workmad3 has joined #ruby-lang
mbull9 has joined #ruby-lang
realDAB has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 256 seconds]
jaska has joined #ruby-lang
zommi has quit [Remote host closed the connection]
tonni has joined #ruby-lang
mistym_meeting is now known as mistym
tomzx_mac has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
zavier has joined #ruby-lang
sarclops has joined #ruby-lang
sarclops has quit [Client Quit]
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
bawigga has joined #ruby-lang
ilyam has joined #ruby-lang
bradland has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
davidbalbert is now known as davidbalber|away
stevechiagozie has quit [Quit: Textual IRC Client: www.textualapp.com]
judofyr_ has quit [Remote host closed the connection]
tbuehlmann has quit [Ping timeout: 252 seconds]
g0bl1n has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
joevandyk_ has quit [Quit: joevandyk_]
mbull9 has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
joevandyk_ has joined #ruby-lang
AndChat| has joined #ruby-lang
mbull9 has joined #ruby-lang
mlangenberg has quit [Quit: mlangenberg]
Banistergalaxy has quit [Ping timeout: 245 seconds]
g0bl1n has quit [Quit: g0bl1n]
AndChat| has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby-lang
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
cjs226 has joined #ruby-lang
realDAB has quit [Quit: realDAB]
agarie has joined #ruby-lang
davidbalber|away is now known as davidbalbert
sailias has quit [Read error: Operation timed out]
kogent has quit [Ping timeout: 260 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
srbaker has joined #ruby-lang
thufir_ has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<andrewvos> Guyysss. Lesser known `cp` switches pls?
<andrewvos> I just learned -v, but I probably would only class that as "lesser known" to me.
skade has joined #ruby-lang
<andrewvos> I suppose I could read the entire man page, but that's not as fun as meaningful conversation.
davidbalbert is now known as davidbalber|away
skade has quit [Client Quit]
<zzak> lets instead have a conversation about meaningful conversations
davidbalber|away is now known as davidbalbert
<apeiros_> andrewvos: better learn tar. you might one day need it to defuse a bomb.
<andrewvos> zzak: I find meaningful conversations meaningful. Do you agree?
<whitequark> hehehe
<andrewvos> The fuck is wrong with people
<andrewvos> There's a pretty NSFW image in that in case anyone has HoverZoom installed :(
<apeiros_> andrewvos: first world problems, that happened.
<andrewvos> Yeah, still surprised that educated people in first world countries say stuff like that.
<andrewvos> Emphasis on educated
carloslopes has quit [Remote host closed the connection]
<apeiros_> people are idiots. sad truth.
<apeiros_> you may want one of these *searches link*
<andrewvos> haha useful
intellitech has quit [Quit: intellitech]
xalei has joined #ruby-lang
tonni has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 245 seconds]
<andrewvos> Hey am I getting old or are video games pretty much just not good anymore?
<apeiros_> you are getting old
<apeiros_> also, video games just aren't as good anymore
<apeiros_> (exceptions exist)
<whitequark> video games? what's that
<andrewvos> What exceptions?
<apeiros_> xenoblade, sc2
<andrewvos> whitequark: Erm, games?
<whitequark> andrewvos: not sure what are you speaking about
<andrewvos> whitequark: Erm, computer games? Xbox etc.
cstrahan has quit [Ping timeout: 240 seconds]
<andrewvos> apeiros_: I don't have a wii
<andrewvos> apeiros_: Should I buy one?
<apeiros_> dunno, overall I'm a bit disappointed
<apeiros_> there are some acceptable games
cored has quit [Ping timeout: 245 seconds]
<apeiros_> don't have the wii U, though
<whitequark> andrewvos: no clue
<andrewvos> whitequark: QUIET PETER
ruby-lang364 has joined #ruby-lang
techlife has quit [Ping timeout: 276 seconds]
<apeiros_> andrewvos: whitequark is russian, you should probably start with tetris
<andrewvos> haha
<whitequark> tetris?..
davidbalbert is now known as davidbalber|away
cored has joined #ruby-lang
<andrewvos> How to explain tetris using only references to Vodka and Bears
<whitequark> hey now :( this is why I've stopped telling people I'm russian.
<andrewvos> :( sorry
<andrewvos> I'm South African, I'm sure you can find plenty of jokes there
<whitequark> btw
<andrewvos> But if I really offended you then I apologise
<eam> at least you're not american, we communciate by honking our rascal scooter horns at each other from adjacent walmart isles
<whitequark> andrewvos: it's hard to really offend me. so no. just tired of it.
<whitequark> and tired of how true at least one part of it is.
ruby-lang364 has quit [Ping timeout: 245 seconds]
<whitequark> so. even C++ has a module system these days: http://clang.llvm.org/docs/Modules.html
j303 has quit [Ping timeout: 260 seconds]
<whitequark> and mruby has something which kinda resembles a module system (no require)
<whitequark> wanna discuss how a module system for ruby might look like?
<andrewvos> I think I need to read up what you mean by a module
<andrewvos> Ohh ok
<whitequark> something like: commonjs modules, python modules, etc
<andrewvos> Is that like what Python has?
<andrewvos> Oh ok
<andrewvos> Yeah that would be cool
<whitequark> sooo my thoughts on this:
<andrewvos> It could be hacked up
techlife has joined #ruby-lang
<andrewvos> Like: Modules { module module_name }
<whitequark> 1) kill global toplevel. every file has its own toplevel. (this should be easy.)
<andrewvos> And catch method_missing to require files :)
<whitequark> 2) make that toplevel the last thing constant lookup depends on, instead of Object
skade has joined #ruby-lang
<whitequark> 3) remove require whatsoever. each module has a YAML file which describes its contents: name, description, version, author, etc. Exported constants.
<whitequark> 4) when you need a module, you write something and the constants of that module get added to toplevel; you can use them now.
cstrahan has joined #ruby-lang
<whitequark> 5) prohibit monkeypatching, hack refinements so they could be automatically applied when you depend on a module.
<whitequark> thoughts?
<andrewvos> Wow
<andrewvos> That's a lot of work
<andrewvos> So you don't want it to be an addon
<andrewvos> Or an extension of MRI?
<whitequark> andrewvos: in fact I'm writing an implementation from scratch, and it's not really Ruby [as in RubySpec-compliant]. But that could be applied to MRI/JRuby/rbx if needed.
<whitequark> the changes are actually not that complex.
anonymuse has joined #ruby-lang
<andrewvos> Why do you want to do this?
<whitequark> andrewvos: what in particular?
<andrewvos> The whole thing
<andrewvos> Modules
<whitequark> I wanna my implementation to have something better than require.
<andrewvos> So how do you expect to use it?
<andrewvos> In code
<whitequark> `import :Foobar', or even just `import Foobar'.
<andrewvos> Okay well the code for that would be pretty simple
<whitequark> now you have access to the constant Foobar, and any refinements it adds are also applied to this scope
<andrewvos> Unless you had a class with the name Foobar and the file with the name LOL_NOT_FOOBAR
dhruvasagar has quit [Ping timeout: 245 seconds]
<andrewvos> Though without the : I can't imagine how you would do it
<andrewvos> Can you mess around with constant lookup on the Foobar constant?
<whitequark> andrewvos: I'll just make `import' a keyword.
<andrewvos> Hmm, that would be hard. Wonder if there's any easy way to get around that.
<andrewvos> easier*
priodev_ has quit [Quit: out.]
priodev has joined #ruby-lang
solars has joined #ruby-lang
wmoxam has quit [Quit: leaving]
dustint has quit [Ping timeout: 264 seconds]
<andrewvos> Is const_lookup not in MRI?
<andrewvos> Aww hell whitequark now you got me hacking around with things I shouldn't be hacking around with
<whitequark> andrewvos: please. I'm not really interested in implementation details of MRI; more, conceptually. It is trivially implemented in MRI by modifying its source.
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has quit [Remote host closed the connection]
<andrewvos> Okay
<drbrain> I wonder how close RDoc is to a ruby implementation
breakingthings has quit []
methods has joined #ruby-lang
<andrewvos> Why do you think this would be better than require by the way?
<andrewvos> (Truly interested)
cjs226 has quit []
soknee has quit [Quit: Leaving.]
<whitequark> andrewvos: Several reasons
benanne has joined #ruby-lang
<whitequark> I believe it's hard to reason about the code when dependencies in the code are decoupled from dependencies in the packages. I believe it's hard to reason about code when everything can silently modify everything.
<andrewvos> Didn't know about const_missing!
<whitequark> Lexical refinements are a big step ahead.
<andrewvos> Okay, so you are saying that require makes dependencies coupled to each file.
<andrewvos> And they aren't truly coupled to each file because everything can modify everything.
<andrewvos> Agreed
Aria has quit [Remote host closed the connection]
<whitequark> exactly
<whitequark> Also I want an easy way to memoize compilation results.
<andrewvos> It took me like a minute to understand what you mean, but it's so true.
<andrewvos> Which is why I try to ignore all that and just require everything in one place.
<andrewvos> Which I'm not sure is good either, because then you don't know when you can delete a require.
<andrewvos> (though unit tests sometimes help with that)
<andrewvos> So surely the logical conclusion is to do away with require AND import
<whitequark> andrewvos: exactly.
<andrewvos> And just have your implementation work out what file you mean
<whitequark> hm
<andrewvos> Perhaps load everything up, but only make certain "modules" get included into the environment when they are used or referenced
<whitequark> please elaborate
<andrewvos> For example, you have two classes ClassOne and ClassTwo. Implementation parses both but doesn't load the code from ClassTwo into an executable area until it actually gets referenced by ClassOne
<andrewvos> Does that make any sense?
sepp2k has quit [Quit: Leaving.]
<whitequark> basically you are suggesting to add rails autoloading to the core
g0bl1n has joined #ruby-lang
<whitequark> is it so?
<andrewvos> Yeah now that I think about it kind of :(
* andrewvos kills self
<whitequark> I don't like it because it's not amenable to static analysis. Think const_missing
<whitequark> er, const_get
<andrewvos> I guess so
<whitequark> actually nevermind, const_get can't be called without an explicit module receiver
<whitequark> or I'm wrong
<whitequark> because with autoloading, that would be Object
<whitequark> so. look. I imagine that a package definition file would be similar to what's currently stored in gemspec.
<andrewvos> Okay
<whitequark> let me write an example...
<andrewvos> And packages can only be files, or external dependencies (gem-like) too?
<whitequark> andrewvos: Hm?
<andrewvos> sorry I mean modules
<andrewvos> I actually mean "can modules only be inside files or can they be in external files"
<andrewvos> Like gems in gemfile
<andrewvos> Suppose it doesn't matter
<whitequark> let's stop calling them 'modules', due to confusion with Module class instances
<whitequark> let's call them 'packages'
<andrewvos> yeah
<whitequark> so, package contains multiple modules
<whitequark> which *are* Ruby modules
<whitequark> package ~ gem.
<andrewvos> rking: Did you get anywhere with your fat packing idea by the way?
<andrewvos> whitequark: I like it
g0bl1n has left #ruby-lang [#ruby-lang]
<whitequark> andrewvos: so I imagine it would be like this: http://pastie.org/6994854
<whitequark> hm, it would be very uncool if the package would need to import its internal stuff
<whitequark> so let's make the toplevel shared for the entire package
<andrewvos> I don't get you
<andrewvos> You mean the "dependencies:" part is a bit too much work?
<whitequark> andrewvos: no no
mrsolo has quit [Quit: Leaving]
<whitequark> I mean that RubyLexer would maybe define a RubyLexerHelper toplevel class for some reason, and then it will have to import it
<whitequark> or actually not even this
<whitequark> if different files in ruby_lexer would get their own toplevel, and they all do `module RubyLexer', they would get lots of distinct modules with same name
mixandgo has quit [Quit: mixandgo]
ruby-lang236 has joined #ruby-lang
<andrewvos> well I would imagine some sort of (shudder) namespacing
<andrewvos> To prevent this
<whitequark> so they need to share their 'toplevel constant resolution scope' in order for it to be convenient
methods has left #ruby-lang [#ruby-lang]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<whitequark> also there is a use case when there's a package 'rack' which defines module 'Rack'
<whitequark> and there's also 'rack-foobar_handler' which defines module 'Rack::FoobarHandler'
tylersmith has joined #ruby-lang
<andrewvos> Share?
<andrewvos> Oh shit I get it
<andrewvos> So sometimes they would need to share
<whitequark> yea
<andrewvos> Ok this is hurting my brain a bit
<andrewvos> How do you get around clashes though?
<whitequark> I dunno :(
<whitequark> this is hurting my brain too (somewhat)
<andrewvos> ruby-lang236 <-- needs to know how to register a nickname is there a link or something?
<andrewvos> nick*
mistym has quit [Remote host closed the connection]
sarclops has joined #ruby-lang
<andrewvos> Well I think people would just have to be sure not to clash
blacktulip has quit [Remote host closed the connection]
<andrewvos> Would this mean the implementation would have to warn when reopening classes?
<andrewvos> It would be helpful in a lot of cases
<whitequark> andrewvos: if the class is from different package, you generally cannot
<whitequark> use refinements.
<andrewvos> Okay
<andrewvos> I'm not sure I like refinements but it's definitely an answer to that
<andrewvos> So you can't reopen classes
<andrewvos> Or maybe you could just enforce namespacing
bawigga has quit [Ping timeout: 240 seconds]
<whitequark> some kind of that, I guess
<andrewvos> For example Rack::Server could be defined, but never just Server
tonni has joined #ruby-lang
<andrewvos> That's probably nicer
<whitequark> nono, it would suck if a gem 'foo' could not define a class 'Foo' in the global scope
<andrewvos> And the first level of namespace is taken frm the package name
<whitequark> I'm fairly sure
<andrewvos> Well then just make the package name the first namespace level and don't allow two packages with the same name
<andrewvos> (You couldn't because that would break the spec file)
<whitequark> but I do like the suggestion that the package name affects the namespecing
<andrewvos> Yeah it's obvious to the first time user I would think
<whitequark> so if there's a package ruby_parser, you could only ever export RubyParser from it
<andrewvos> It's like Java I suppose
<andrewvos> Yeah exactly
<whitequark> that could be a class or a module, the system doesn't care
<andrewvos> And if you want to reopen a class in another package, maybe you can like this: class Root::Rack::Server
<andrewvos> Or: class ::Rack::server
<whitequark> and if you have ruby_parser-ruby20_support, it could just define RubyParser::Ruby20Support
<andrewvos> Do it. If there's anyone who can write a new language it's you
<whitequark> but not reopen RubyParser, or rather, add anything to RubyParser
* whitequark blushes
<andrewvos> And then I could be like "yeah I totally helped whitequark write this language"
<whitequark> also; to hell with the import stuff
<andrewvos> Yeah
<whitequark> if you require smth as a dependency, you have it in the scope
postmodern has joined #ruby-lang
<whitequark> if you don't, you don't have it.
<andrewvos> Yeah!
ruby-lang236 has quit [Quit: Page closed]
<andrewvos> Love the simplicity
<whitequark> also you can even have two distinct versions imported at the same time actually
<whitequark> not sure if good idea or not, but definitely possible
<whitequark> also it fixes the issue with YAML monkeypatching for example.
<andrewvos> I often dream of a language kind of like ruby but with an implementation that is really small and well written.
<andrewvos> How would you support two different versions?
<whitequark> either create a my_cool_yaml package or get the author of yaml to fix it to accept multiple parsers.
<whitequark> or just refine it, that is still safe!
<lianj> andrewvos: mruby?
<whitequark> lianj: "well written"
<lianj> :P
<whitequark> andrewvos: well, because if there are two distinct Rack packages, that's two distinct Rack modules
sarclops has quit [Quit: sarclops]
<whitequark> (Rack1).equal?(Rack2) # => false
<whitequark> I don't really need anything to make it work, it's out of the box.
<andrewvos> whitequark: I see. It would be nice but the problem is it would suck to have to change your package name every release
<lianj> andrewvos: forgivable yields complex/ugly code?
<andrewvos> Though for major releases not that terrible
<lianj> *forgivable syntax
chrismar035 has quit [Quit: chrismar035]
<whitequark> andrewvos: nono, you didn't get it
<andrewvos> lianj: Sure you're right, but I don't have the qualifications to agree :)
<whitequark> let's pretend a function resolve_in_package exists
hnanon has joined #ruby-lang
mixandgo has joined #ruby-lang
<whitequark> resolve_in_package('rack =1.0', :Rack).equal? resolve_in_package('rack =1.5', :Rack)
mixandgo has quit [Client Quit]
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
hnanon has left #ruby-lang [#ruby-lang]
davidbalber|away is now known as davidbalbert
<andrewvos> Ok so you can use code from two different packages quite easily... What I worry about is perhaps you load up something like sinatra, and it starts a server on 9292. What happens if you load up Sinatra1 and Sinatra2. Those kind of edge cases would break everything
hnanon has joined #ruby-lang
<whitequark> andrewvos: why would this break?
workmad3 has quit [Ping timeout: 245 seconds]
<hnanon> Can anyone help with manipulating a string?
<drbrain> cats are good at manipulating string
<hnanon> haha...
srbaker has quit [Quit: Computer has gone to sleep.]
<whitequark> drbrain: that is awesome
<hnanon> No, seriously... say I have "Employee :Bill, Gates"
<hnanon> How would I transform it to "Employee :Gates, Bill"
<andrewvos> whitequark: Well I really mean when loading up packages that have startup behaviour
<andrewvos> ... that may interfere with the startup behaviour of another version
mjio has joined #ruby-lang
<whitequark> andrewvos: doing actions with side effects on startup is a *bad idea*
<whitequark> also sinatra hijacks #at_exit instead
sepp2k has joined #ruby-lang
<andrewvos> Yeah.. And I guess if you try use two different sinatras in your code you deserve to die
<andrewvos> So yeah, no problem there :)
<whitequark> andrewvos: well, two different sinatras both with the default behavior
<whitequark> i.e. hijack at_exit and toplevel
<whitequark> then yes
<whitequark> blogging time!
<andrewvos> Link when you're done please
<drbrain> hnanon: I lost connection after "Employee :Bill, Gates"
<andrewvos> hnanon: Would a simple replace do?
<hnanon> drbrian: How would I transform it to "Employee :Gates, Bill"
<drbrain> hnanon: so the ":" is important?
<hnanon> It's in the HTML...
<drbrain> I would split on ':' then reverse the second half
<hnanon> I hate to ask...can you show me how?
<hnanon> This is the very first script I'm working on and I'm struggling through it.
<drbrain> hnanon: start with label, data = record.split ':', 2
<drbrain> hnanon: do you use irb?
<hnanon> Yes.
<drbrain> ok, good
<drbrain> you can glue those back together with Array#join:
<drbrain> [label, data].join ':'
mwjcomputing has joined #ruby-lang
<hnanon> Hmm, let me give it a try...
mwjcomputing has quit [Client Quit]
tylersmith has quit [Quit: tylersmith]
<drbrain> that suhold give you a clue for how to reverse the name part
<whitequark> drbrain: do you maybe remember an article that said "don't write 'gem' in your gems, the system I use to manage my $LOAD_PATH is none of your concern"?
<whitequark> oh nevermind, that quote brings it from google
<drbrain> oh good
<drbrain> I don't remember, but it sounds like something I would support
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<eam> I don't understand why rubygems exists, $: and standard package manipulation tools should be sufficient
<andrewvos> Hm
publicvoid_ has joined #ruby-lang
<andrewvos> What does rubygems do again?
headius has joined #ruby-lang
<andrewvos> I never really thought to ask. Like it installs gems right?
<whitequark> downloads files to your computer; lets you select from multiple versions of one package.
<whitequark> the last part is what makes it radically incompatible with e.g. debian
<andrewvos> Ok so it must be like 100 lines tops right :)
<eam> manages the odd multiversion structure, and wraps all your executables with some odd stuff
<hnanon> :drbrain data = "Employee :bill, gates".split(":")
<whitequark> you cannot reasonably have rails 3.2.13 and 3.2.12 simultaneously installed on a Debian system if you wrap all your gems in deb packages.
<whitequark> practice shows that you do need that.
<eam> whitequark: eh sure you can
<eam> that's why $: is a thing
<hnanon> gives me the array ["employee ", "bill, gates"]
<whitequark> eam: if you assign each version its own slot, yes
<whitequark> but that is against debian packaging guidelines.
<eam> whitequark: generally people don't bundle application stuff in the distro packaging
<drbrain> hnanon: yes
<eam> you have a /myapp with its own include directory
<whitequark> eam: apt-get install rails
<whitequark> I'm not sure why it exists, either
<drbrain> hnanon: so you could split the data part too and reverse it, then join it all back together
<eam> whitequark: sure yes, but that's not commonly used in production
<whitequark> exactly due to the problem I've mentioned, yes
<eam> you bundle your gems (and quite likely your own ruby)
<eam> well not exactly
<eam> it's because your application likely has dependencies that differ from the entirity of the distro platform
<eam> eg ruby version X vs Y
<eam> or even jruby
<whitequark> ruby version is, frankly, irrelevant
<eam> it's not, for the distro
<whitequark> even if you have a custom one, it's a single one
<whitequark> and you can, and should, trivially package it
<hnanon> drbrain: but how do I reference the second part to split it?
<whitequark> or just install it to /opt fwiw
<hnanon> the second element in the array
<drbrain> hnanon: you can assign each part to a variable
<eam> whitequark: yes, I'm saying for the distro, you cannot modify what the entire distro world is linked against
<drbrain> hnanon: label, data = string.split ':'
publicvoid__ has quit [Ping timeout: 264 seconds]
<whitequark> eam: the good part is that we have no need to statically link stuff in ruby.
<eam> whitequark: we may be saying the same thing
<eam> statically link?
<whitequark> so there's less hard dependencies
<hnanon> label is the variable in your example?
<whitequark> well yes. rails depends on ruby 1.9, not 1.9.3-p328
<eam> with static linking there's no dependencies, but that's fairly uncommon ...
<whitequark> eam: by "statically link" I didn't mean gcc -static, just the fact that it is far easier to have ABI incompatibilities in C-land
<drbrain> hnanon: both are variables
<drbrain> hnanon: try it in irb
<whitequark> I can't detect that my target system is using GLIBC 2.15 instead of 2.17 I've been expecting, and disable some features
<drbrain> label, data = string.split ':'; p label: label, data: data
<eam> whitequark: ruby has those same dependencies in libruby.so
<eam> that's a valid concern for a distro, and is why one should never upgrade /usr/bin/ruby
<whitequark> eam: what I mean is that one can reasonably use the system ruby, on production, right now
<whitequark> I use just the system ruby on my development machine.
<whitequark> it's cool.
<whitequark> export GEM_HOME=~/.gem and you're done
<zenspider> flog version 3.2.3 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/03/flog-version-3-2-3-has-been-released.html
<eam> whitequark: sure, but there's no need for it to be "GEM_HOME". Why is that a thing? Why not just have $:.push "~/.rubylib"
<whitequark> eam: I don't want to use sudo to install ruby packages; I'm lazy
<zenspider> (File.expand_path)
<whitequark> the only reason
<eam> whitequark: did you see what I wrote? no sudo
hasimo-t has joined #ruby-lang
<whitequark> eam: sure but I was talking about my personal setup with rubygems and current ruby
<whitequark> not a theoretical no-rubygems system
<eam> so am I, did you see?
<eam> it's not theoretical
<eam> I do this
<whitequark> well, I like installing packages with `gem'? why shouldn't I use rubygems for running them, then?
<whitequark> *loading
<eam> that's an odd answer to the question I posed "why should you?"
<eam> "well why shouldn't you?"
<eam> the reason is it's totally not necessary
<whitequark> ok
<whitequark> sure
crackit__ is now known as crackity_jones
<whitequark> I'll explain it further
outoftime has quit [Quit: Leaving]
<eam> gems conflate a language-specific packaging mechanism (ala cpan) with a weird version management scheme
<whitequark> I find it realistic that one might use a single ruby, preferably system ruby, in both development and production, and install libs with binary extensions through the system package manager.
<eam> sure
<whitequark> the last part is essentially good
anonymuse has quit [Quit: Leaving...]
<whitequark> now; the part about versions
<drbrain> eam: "weird" :D
<hnanon> drbrain: label, data = "employee :Bill, Gates".split(":")
<whitequark> suppose I have to develop two apps. one uses rails 3.2.13, the other uses rails 3.2.11.
<eam> drbrain: it strikes me as especially odd, having done the same kind of version management without it
<hnanon> drbrain: ["employee ", "Bill, Gates"]
<whitequark> and I cannot/do not want to upgrade.
<drbrain> hnanon: p data
<drbrain> eam: if I wrote rubygems from scratch it would not allow multiple versions
<eam> whitequark: ok. The normal way to do this is to set $: appropriately to require the version of rails you want, as each app contains its own library set
<drbrain> supporting multiple versions is very frustrating
<whitequark> hmmm
<eam> and by normal I mean "all languages which support modules, except for ruby which has this extra layer as well"
<whitequark> drbrain: how would you solve the problem I've described, then?
emocakes has joined #ruby-lang
<drbrain> whitequark: oh, I haven't been paying attention much
Taranis_ has joined #ruby-lang
<eam> eg I don't have a problem doing this in perl, by only manipulating @INC
<whitequark> drbrain: suppose I have to develop two apps. one uses rails 3.2.13, the other uses rails 3.2.11. and I cannot/do not want to upgrade.
corundum has quit [Disconnected by services]
<zenspider> oh noes! corundum! nooooooooooooo
<whitequark> drbrain: what eam suggests is, to me, essentially a suggestion to replace rubygems with apt+bundler
havenwood has joined #ruby-lang
<eam> no, I'm not suggesting replacing the packaging format
<zzak> :(
<drbrain> whitequark: I would support a per-app local gem repository
<zenspider> whitequark: multiple repos. super-duper easy.
<eam> whitequark: are you familiar with cpan?
corundum has joined #ruby-lang
<zenspider> corundum: botsnack
<eam> it's interesting to compare/contrast cpan/perl with gem/ruby
<whitequark> drbrain: zenspider: so I guess it's like directing bundler to install the stuff into vendor/ for current setups
<zenspider> why the fuck do ppl come to public cafe's to play their stupid multiplayer videogames?
<whitequark> eam: no, unfortunately
<whitequark> zenspider: mothers
<eam> cpan is essentially the gem repository + packaging, but not the multiple-version weirdness and dispatch logic (and binary wrapping)
Taranis has quit [Ping timeout: 264 seconds]
<drbrain> whitequark: yes
<zenspider> this guy looks 30
<eam> it's only the latter part I'm questioning
<drbrain> but that rubygems will probably never exist
<whitequark> zenspider: ... so?
<drbrain> well, by default
<whitequark> drbrain: actually, that might work
tomzx_mac_ has joined #ruby-lang
<whitequark> if something already exists in the environment, say installed by apt, this 'bundler' can use it
<zenspider> whitequark: you can look at my gem ohmygems for stupid simple multiple repo support. or set GEM_HOME as you pointed out, or do `gem i -i ~/.gem gemname`
corundum has quit [Client Quit]
<whitequark> if it isn't, it installs it in a local repo.
corundum has joined #ruby-lang
<eam> per-app lib dir + push it on $: is how it's done in the perl world
<drbrain> corundum: botsnack
<corundum> drbrain: thanks :)
<drbrain> must have been hung
<eam> and the rest of system stuff is still in $: if you want it
<zenspider> poor corundum
<drbrain> the process was up
tomzx_mac has quit [Ping timeout: 245 seconds]
security has joined #ruby-lang
<zenspider> not just slurping up bandwidth... clicking and Clicking And CLICKING AND CLICKING... ugh
<whitequark> eam: I like that.
<whitequark> A lot, actually.
<hnanon> Ok, so two array...one includes "Employee" and the other includes "Bill, Gates".
<eam> whitequark: me too, which is why I wonder why rubygems :D
<whitequark> drbrain: way to break stuff in ruby 3.0/rubygems 3.0 :)
<hnanon> I then split "Bill, Gates" at the comma...
megha has quit [Ping timeout: 276 seconds]
<whitequark> drbrain: this is actually not as hardcore a change as it might seem initially...
tomzx_mac_ has quit [Client Quit]
tomzx_mac has joined #ruby-lang
<drbrain> whitequark: it's the user expectations that are the problem more than changing the code
<whitequark> drbrain: I think that most projects which do require this version juggling are already on Bundler
<whitequark> or will/should migrate to it
<whitequark> and bundler either already provides a simple migration path, or can be fixed trivially to do that
<havenwood> sha3-pure-ruby gem released, if anyone is looking for a slower >.> alternative to the C-ext SHA3 gems: https://github.com/havenwood/sha3-pure-ruby#readme
<zenspider> havenwood: hah
<whitequark> havenwood: oh I know what would I use to test foundry's arithmetic performance and autoparallelization support
<drbrain> havenwood: look at Array#reverse
<hnanon> drbrain: how do I split the values in 'data'?
nXqd has quit [Ping timeout: 264 seconds]
<drbrain> the same way as in your regular string
<hnanon> I know but they're in the array now...
<drbrain> did you use the multiple-assignment?
<drbrain> if so, you can use the second variable (data) and split it
<hnanon> I tried that...
<hnanon> let me see again...
<drbrain> I need to catch a bus, so hopefully someone else here can help you further
<eam> is there a way to put a Proc in $: and get it to be called during the require process?
<hnanon> Actually, got it.
<hnanon> Thanks!
<hnanon> Quickly, then I join all varaibles?.
<drbrain> havenwood: yes
<hnanon> I got it...
<hnanon> However, when I join with the colon, I'm getting a space after it...
<hnanon> Anyway to remove that?
Aria has joined #ruby-lang
cupakromer has joined #ruby-lang
chessguy has joined #ruby-lang
jonahR has quit [Quit: jonahR]
<zenspider> hnanon: what'd you split on?
<hnanon> (:
<hnanon> (:)
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
<zenspider> hnanon: you're either confused or you're confusing me
<andrewvos> (:-----'
<hnanon> I split on the colon.
<zenspider> you said before your data was "Gates, Bill" and you split it
<hnanon> Yes, but I had to split before that too: Employee :Gates, Bill
<whitequark> andrewvos: does not include The Legend of Kyrandia. Sadly.
<whitequark> also TLoK:Hand of Fate is awesome too
solars has quit [Read error: Operation timed out]
<zenspider> hnanon: please describe your problem clearly ... preferably using real code
<whitequark> I'm fairly sure I will replay it in year 2030, considering I'll be alive.
rwk1 has joined #ruby-lang
<hnanon> I have: Employee :Bill, Gates
<hnanon> I want: Employee :Gates, Bill
<hnanon> I did:
benanne has quit [Quit: kbai]
joevandyk_ has quit [Quit: joevandyk_]
<hnanon> label, data = "Employee :Bill, Gates".split(":")
<hnanon> then:
<andrewvos> hnanon: Well you could simply reassign the variable.
<hnanon> first, last = data.split(",")
<zenspider> andrewvos: please don't
<zenspider> let him work through it
<zenspider> also: "simply"
<andrewvos> hnanon: I'm trying to get a better explanation
<andrewvos> Err I mean zenspider ^
<zenspider> *nod*
<hnanon> then: [label, name].join(":")
<lianj> >> "Employee :Bill, Gates".gsub(/:(\S+), (\S+)/, ":\\2, \\1")
<eval-in> lianj => "Employee :Gates, Bill" (http://eval.in/13311)
volov has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby-lang
<hnanon> (thanks, guys, by the way)
<zenspider> lianj: how the fuck is someone supposed to learn if you just throw crap at them? let them work it out
<hnanon> Gives me:
<hnanon> Employee : Gates, Bill"
<lianj> good point. was not really following msgs here. sorry then.
<zenspider> hnanon: *nod*
<hnanon> Notice the extra space after the colon.
<zenspider> hnanon: what were you splitting on again?
<zenspider> look at: first, last = data.split(",")
<zenspider> look at the values you get out of that
<zenspider> either in a debugger, or even with `p [first, last]`
<hnanon> I get ["Bill", "Gates"]
realDAB has quit [Client Quit]
<zenspider> don't think so
sepp2k has quit [Remote host closed the connection]
<hnanon> Ahh...
<hnanon> You're right.
<hnanon> there's a space before "Gates"
<hnanon> :)
<zenspider> there you go.
<zenspider> I gotta run. bbiab
<hnanon> How can I strip that?
thone_ has joined #ruby-lang
<hnanon> Ok.
thone has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
torrieri has quit [Quit: Leaving...]
<zenspider> and home.... love my commute.
<zenspider> you don't have to strip that... look at your split again
mwjcomputing has joined #ruby-lang
mwjcomputing has quit [Read error: Connection reset by peer]
<hnanon> I split it at the comma.
<zenspider> hnanon: right... which did what?
wallerdev has joined #ruby-lang
cjs226 has joined #ruby-lang
<hnanon> Damn...I see now...
<hnanon> I'll split at the comma plus a space now...
davidbalbert is now known as davidbalber|away
rwk1 has quit [Remote host closed the connection]
<andrewvos> zenspider: You can walk home? Dyamnnn
wallerdev has quit [Quit: wallerdev]
<zenspider> hnanon: there ya go. if you want to be conservative, use a regexp instead and make the space optional
<zenspider> andrewvos: hell... I could crawl home if I wanted
cupakromer has left #ruby-lang [#ruby-lang]
<hnanon> I would have more trouble using regexp, I think.
<hnanon> lian's gsub solution worked flawlessly, though.
<andrewvos> zenspider: What do you do for a living?
wallerdev has joined #ruby-lang
<hnanon> Would you recommend that?
<andrewvos> zenspider: If you don't mind me asking.
ivanoats has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
<zenspider> hnanon: I'd recommend using what you understand, so you can maintain it 2 months from now
<zenspider> obviously that changes over time...
<zenspider> andrewvos: I write open source
<andrewvos> zenspider: But you get paid for that?
Averna has joined #ruby-lang
<andrewvos> zenspider: The company you work for sounds great
<hnanon> Ok...
ivanoats has quit [Read error: Connection reset by peer]
<hnanon> The string is retrieved from nokogiri...it's the key of a hash.
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
<zenspider> andrewvos: it is a love/hate relationship
<hnanon> I'm not sure how I would do all that, then reintroduce it as the key.