<tockitj_>
well its more like 'its entirely missing' than 'its not so good'
<ddd>
ok ok, i get it. i was looking for something to help with and not sure my code-fu would match those currently working on it, so I'll doc fix.
<ddd>
stdlib the primary one needing TLC?
<drbrain>
tockitj_: 67% of ruby's classes, methods and constants are documented
<drbrain>
most of what isn't documented is rexml and rss
<ddd>
err? i thought steveklabnick documented rss
<drbrain>
bus time
<tockitj_>
random clicking on stdilb docs speaks otherwise :( i think its ore than just rexml & rss
<drbrain>
ddd: rss is huuge
<ddd>
gotcha
<drbrain>
tockitj_: then you know exactly what to submit a patch for
<shachaf>
I'm not sure that there's a great way to make this work with Ruby. :-(
<tockitj_>
how to submit a doc for something i don't understand how is working, and what was rationale for code design :/
<ddd>
and i take it the submissions have to be rdoc? no yard?
<zenspider>
no yard
<ddd>
booo. ok :)
havenn has joined #ruby-lang
<zzak>
ddd: tockitj_ patches welcome :)
<zenspider>
tockitj_: you're handed a nice juicy steak and respond with "no sauce!"... they respond "we're happy to serve your sauce if you make some" and you say "HOW CAN I POSSIBLY MAKE SAUCE?!?"
<ddd>
we're supposed to go through ruby-doc.org correct?
<zenspider>
ddd: no, submit patches either through a pull request on github ruby/ruby or submit to bugs.ruby-lang.org
<zzak>
ddd: ruby-doc.org isn't maintained by ruby-core
<ddd>
ok
<ddd>
reading the wiki. will follow through from there
<tockitj_>
guys i'm grateful for the stake.. but docs are more like a bone from which stake should be cut..
<zzak>
ddd: cool, thanks!
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
<ddd>
i'm davidderyldowney on bugs.* if that matters. ddd on gh
<tockitj_>
i mean, where did that meat come from if was not on any skelet
dankest has quit [Quit: Leaving...]
<tockitj_>
and stdlib is especially more like convention (and documentation) than implementation
<zenspider>
tockitj_: either stfu and enjoy your plain steak, or make us sauce. I'd prefer the latter personally
dankest has joined #ruby-lang
<ddd>
dude, i see their point. ruby's huge. how many programmers do you know that spend a lot of time writing docs vs. code.
<ddd>
someone's gotta step up along with
* zenspider
looks at zzak
<zenspider>
zzak has been doing a tremendous job of it
<ddd>
yeah been following the tweets :)
<tockitj_>
ddd, good programmers write docs (:
<tockitj_>
and tests ofc
<ddd>
tockitj_: so those that don't write crappy code? not buying it
<tockitj_>
haven't said that
<ddd>
sounded like it
<tockitj_>
but good programmers write docs ;)
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
<ddd>
which is why i doc'd dtf. regardless of status of good or bad, i think writing docs is needed if you want people to understand whats happening without having to completely grok the code. I see your point in that. however, zenspider and zzak are right. if you see a problem, fix it :)
<zenspider>
mmmm sauce
<ddd>
come on, tell you what. want to work together? pick a section and I'll earmark skype time with you and pair if you want
gnufied has joined #ruby-lang
<ddd>
money or mouth? :)
<ddd>
pgpkeys on skype
<zenspider>
nice
towski has quit [Remote host closed the connection]
<zzak>
zenspider: thank you!
<zenspider>
THROWDOWN
<zenspider>
zzak: no dude... thank YOU
krohrbaugh1 has quit [Quit: Leaving.]
<tockitj_>
hah.. its 3am here.. i got to get to bed.. but thanks for answering (:
<ddd>
there is always tomorrow
<tockitj_>
true (:
<tockitj_>
nite
mjio has joined #ruby-lang
dankest has quit [Quit: Leaving...]
dankest has joined #ruby-lang
bluepojo has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
dankest has quit [Client Quit]
ryanlecompte has quit [Remote host closed the connection]
Blackavar has quit [Ping timeout: 264 seconds]
imperator has quit [Ping timeout: 265 seconds]
Brainix has quit [Quit: Brainix]
wdperson has joined #ruby-lang
wdperson has quit [Client Quit]
mwjcomputing has left #ruby-lang ["Leaving"]
dankest has joined #ruby-lang
tallship has quit [Quit: Too Hip gotta go - Going..... Down..... Mr. Tyler?]
imperator has joined #ruby-lang
R_Macy has quit []
<perry>
Hi, I'm trying to extract the contents of <text>blah</text> from some old Wikipedia XML archives using nokogiri http://pastie.org/5455891
<perry>
so in line 3, page.text returns the text of all values in the hash set. how can I extract "blah"?
apeiros_ has joined #ruby-lang
faustman has quit [Ping timeout: 256 seconds]
<swarley>
oh boy.
* swarley
installs nokogiri again so he can help
apeiros_ has quit [Ping timeout: 265 seconds]
thatdutchguy has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
kurko_ has joined #ruby-lang
<lianj>
perry: node.inner_text ?
jackhammer2022 has joined #ruby-lang
banister_ has quit [Read error: Connection reset by peer]
aetcore has quit [Remote host closed the connection]
* imperator
goes to watch some more supernatural
imperator has quit [Quit: Leaving]
<havenn>
In other news, in Python package manager pip, there is no way to update (or even list) all packages. Multiple pull requests, years of discussion, no 'right' way so no way at all.
<postmodern>
drbrain, clearly rubydramas.com needs to stop being run like someone's personal project and publish standards!
<postmodern>
*ran
<drbrain>
postmodern: clearly
<havenn>
Mmm, drama about rubydramas. I like.
<postmodern>
drbrain, also I am indignant that rubydramas.com does not provide a HyperMedia API
* postmodern
meta-drama
<postmodern>
we must go deeper
<havenn>
What rubydramas.com needs is to get rid of its GIL or look at migrating to node.js.
havenn has quit [Remote host closed the connection]
<postmodern>
i desire an async websocket feed of all dramas
<postmodern>
so i can be alerted immediately
<Spaceghostc2c>
hachiya: Which is funny, because they're all about having only one right way to do things. :p
<Spaceghostc2c>
Fuck
<Spaceghostc2c>
.I mean, darn.
mjio has quit []
[2]Brian has joined #ruby-lang
stardiviner has joined #ruby-lang
<drbrain>
while I haven't looked inside, I've heard that easy_install and what not are just scrapers that look for special URLs on github and other places
rekky has joined #ruby-lang
[1]Brian has quit [Ping timeout: 264 seconds]
<drbrain>
at least I now know why I'm unlikely to see an easy_update anytime soon
<postmodern>
drbrain, go on, i'm interested. Never looked into easy_install or pip much myself
marcury has joined #ruby-lang
<postmodern>
drbrain, or python eggs, which never seem to have taken off
<drbrain>
postmodern: AFAICT, pip and easy_install are slightly different ways of doing the same thing
<drbrain>
if you can't write update for one of them I imagine you can't write it for the other, either
<Spaceghostc2c>
And wasn't python all about having one way to do things?
swarley has quit [Read error: Operation timed out]
swarley has joined #ruby-lang
gregmore_ has joined #ruby-lang
[2]Brian has quit [Read error: Connection reset by peer]
[1]Brian has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
hahuang65 has quit [Quit: Computer has gone to sleep.]
cirenyc has joined #ruby-lang
datanoise has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
mjio has joined #ruby-lang
mistym has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
verbad has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 252 seconds]
towski has joined #ruby-lang
tenderlove has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
firefux has joined #ruby-lang
rohit_ has quit [Ping timeout: 246 seconds]
thatdutchguy has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
mjio has quit []
gnufied has quit [Quit: Leaving.]
rohit has joined #ruby-lang
verbad has quit []
rippa has joined #ruby-lang
datanoise has joined #ruby-lang
burgestrand1 has joined #ruby-lang
Elico has joined #ruby-lang
burgestrand has quit [Ping timeout: 250 seconds]
<Elico>
Is it possible to passt net/http a socket instead of port and IP ?
gnufied has joined #ruby-lang
burgestrand1 has quit [Ping timeout: 250 seconds]
<drbrain>
elico: no… why do you want to do that?
ledentist has joined #ruby-lang
brianpWins has joined #ruby-lang
<Elico>
drbrain: I am writing a proxy server and it's using TPROXY to be transparent so I need to use the client src IP and port (TPROXY socket) to make it fully transparent.
<drbrain>
elico: you can subclass Net::HTTP and override #connect
<Elico>
on the server end I have what I need and I can create a dst socket But I want something that built in ruby to handle the HTTP request
stonerfish has joined #ruby-lang
<Elico>
Hoo this is it!
<Elico>
it will be quite simple
cirenyc has quit [Quit: Leaving...]
<Elico>
I was looking for this specific point.
<Elico>
is there any chance for me to update the class and it will be added into ruby ?
facest has quit [Ping timeout: 252 seconds]
<drbrain>
elico: of course there's a chance, but not for ruby 2.0
areil has joined #ruby-lang
<drbrain>
we are in feature freeze
<Elico>
Well OK and it can always be an updated version that any can add by themself/
stonerfish has quit [Ping timeout: 276 seconds]
datanoise has quit [Ping timeout: 246 seconds]
ryanlecompte has joined #ruby-lang
faces has joined #ruby-lang
chimkan_ has joined #ruby-lang
<Elico>
drbrain: I will think for a sec lound.
<Elico>
so basically what I will do is: add the connect option for external socket with all the basic checks in it. then make it for the other methods to be able to accept a SOCKET
<Elico>
what http does is: init\new -> start -> do_start ->connect ?
<drbrain>
Net::HTTP.new does not call #start, but Net::HTTP.start does
<drbrain>
start is called elsewhere when needed (by request)
<Elico>
Yes that What I meant.
rekky has quit [Quit: rekky]
<drbrain>
you should be able to store proxy options when the object is created and use them in #connect, then super
<Elico>
OK. thanks
towski has quit [Remote host closed the connection]
<Paradox>
dear god DNSimple's api is gorgeous
rekky has joined #ruby-lang
JohnBat26 has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
mjio has joined #ruby-lang
bluepojo has quit [Ping timeout: 256 seconds]
mjio has quit [Client Quit]
stonerfish has joined #ruby-lang
swarley has quit [Ping timeout: 260 seconds]
towski has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
datanoise has joined #ruby-lang
towski has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 265 seconds]
<Elico>
drbrain: if you are still here, I noticed that there is a constant missing from ruby. a constant related to TPROXY. do i file a bug or what?
burgestrand has joined #ruby-lang
<drbrain>
elico: which constant?
<Elico>
sec
<Elico>
setsockopt(Socket::SOL_IP, 19, 1) which suppose to be "IP_TRANSPARENT = 19" .
<drbrain>
yes, please file a bug
<drbrain>
maybe that one can make it in for ruby 2.0.0
<drbrain>
I can't promise that, though
towski has joined #ruby-lang
<Elico>
OK. not a thing if it's in or out just funny I was talking about it with someone here couple month ago and it never made it into ruby (1.9.1-3)
towski has quit [Remote host closed the connection]
<stardiviner>
I found "private" keyword will affect *all* methods bellowing it. Here is the example code: https://gist.github.com/4174139 I want to let "private" only make one method bellowing it private. how to do that ?
<key>
is it common to require command line input to a program to surround " " (quotes) with ' ' (single quotes) ?
<rue>
key: To require it?
ryanlecompte has quit [Remote host closed the connection]
<key>
yea if you don't surround " " in CLI parameters, they get stripped off
<rue>
Sometimes you need it for the shell. I like ruby -e '"foo"' for example.
<zzak>
also, do you know when caller_locations and backtrace_locations were introduced?
<zzak>
i will have to bug ko1 later >:)
zmack_ has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 250 seconds]
<banisterfiend>
zzak: yeah i've played with it, it doesn't support proc/lambda/block frames
<banisterfiend>
and it segfaults in some situations
<banisterfiend>
but it supports method and class/module frames
<banisterfiend>
but block frames are important so i'll try to hack it in soon
<zzak>
can i see some code? :D
<banisterfiend>
my test code or his implementation code?
<zzak>
yours, ko1 has committed his implementation right?
<banisterfiend>
zzak: i said i'll try to hack it soon, i haven't done it yet. But my binding_of_caller C extension does support block frames, so i can link you that if u want?
anannie has quit [Remote host closed the connection]
<zzak>
banisterfiend: i'm mostly interested in the new debug inspector api, if you're using that sure!
<banisterfiend>
zzak: sure
<banisterfiend>
zzak: well i can show u how to use it
tbuehlmann has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
s1n4 has quit [Quit: leaving]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
bluepojo has joined #ruby-lang
simi has quit [Ping timeout: 244 seconds]
lake has joined #ruby-lang
mistym_lunch is now known as mistym
towski_ has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
ebouchut_ has joined #ruby-lang
ebouchut_ has quit [Client Quit]
benteaa_ has joined #ruby-lang
dankest has quit [*.net *.split]
towski has quit [*.net *.split]
sepp2k has quit [*.net *.split]
robotmay has quit [*.net *.split]
telemachus has quit [*.net *.split]
znz_v has quit [*.net *.split]
naztyone has quit [*.net *.split]
benteaa has quit [*.net *.split]
firefux has quit [*.net *.split]
chendo_ is now known as chendo
sent-hil has quit [Remote host closed the connection]
blacktul_ has quit [Remote host closed the connection]
MaddinXx has quit [Remote host closed the connection]
andre____ has joined #ruby-lang
outoftime has quit [Quit: Leaving]
BigO has quit [Remote host closed the connection]
rsl has quit [Quit: Computer has gone to sleep.]
chimkan has quit [Quit: chimkan]
havenn has joined #ruby-lang
davidbalber|away is now known as davidbalbert
seydar has joined #ruby-lang
<seydar>
with curses, i can set the current cursor position with Curses.setpos
setmeaway has joined #ruby-lang
<seydar>
but how do i GET the current cursor position?
<manveru>
why you no use ncurses? :)
slyphon has quit [Ping timeout: 245 seconds]
<seydar>
because i just tried 'gem install ncurses' and it broke. plus curses comes free. plus i literally need to call one function: the mythical Curses.getpos
<manveru>
curs_getyx is the c function
<manveru>
curses makes that two methods on Curses::Window
<manveru>
cury and curx
<manveru>
of course, you need a window for that
<seydar>
beautiful, thank you
<seydar>
is there a curses method for standard window?
mistym has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
<manveru>
not that i can see, there is no window by default
gsav_ has quit [Ping timeout: 248 seconds]
<seydar>
but with ncurses there is, right? am i just making that up?
<manveru>
there isn't
<manveru>
curses is still using the ncurses lib, just without modern api
<seydar>
wait so curses and ncurses in ruby both use the same underlying C library which is called ncurses
<seydar>
no fuck it i'm confused
<manveru>
it's true :)
<manveru>
i use ffi-ncurses btw
<seydar>
can you explain the history and differences between curses/ncurses in c and ruby?
<manveru>
that might take a while
<manveru>
but the gist is that ncurses is backwards-compatible with curses, so nobody bothers to maintain the older one
<manveru>
which isn't true for all platforms, but at least on linux
<seydar>
so why doesn't ruby ship with ncurses
<drbrain>
seydar: and all of that happened around the time you were born
<manveru>
ruby ships with a lot of cruft
<erikh>
ESR happened IIRC
<erikh>
maybe my memory is jumbled
<seydar>
everything in the computing world is so old
<erikh>
close; I guess he didn't start the project, just maintained it for a while.
<manveru>
it's all the fault of the old way of using printers as monitors
<manveru>
and all the brilliance in the CS world is now used to convert kittens to ascii
<seydar>
well we're all on IRC
<seydar>
internet chatrooms from the '80s
<manveru>
exactly
<seydar>
manveru: Curses.stdscr BOOM
<manveru>
we use hipchat at work, and i curse it every day :P
<manveru>
nice :)
<seydar>
i worked at a place that used irc internally. it was really nice
<erikh>
I actually prefer hipchat for work stuff
<erikh>
having been that guy who was responsible for the irc server
<erikh>
it's logged, it has scrollback replay, rooms have ACLs
<erikh>
I mean the rest is just gravy. the scrollback replay is worth it by itself.
<seydar>
wait guys, as a group, can we take an oath to refer to errors in ACLs as ACL injuries?
<erikh>
that and I never have to help anyone figure out how to set up xchat
<manveru>
just hand them grove
<erikh>
meh
<manveru>
anyway, hipchat handles disconnects really badly, it has no way to adjust font size, it uses AIR, notifications aren't really fine-grained, and the biggest feature they made this year was emoticons :P
<drbrain>
I thought you could connect to hipchat via IRC
<erikh>
jabber
<erikh>
but close enough
bluepojo1 has joined #ruby-lang
<manveru>
their android client crashes every few hours, forgets my login, has trouble switching rooms, and is hard to type in, and cannot use @syntax
<seydar>
does anyone still use jabber?
<manveru>
google
<erikh>
haven't tried yet myself, but one of us here uses it with adium I think
imperator has quit [Ping timeout: 252 seconds]
<manveru>
hipchat is built on jabber too
<erikh>
I use an iphone and a mac
<manveru>
but then you don't get a list of their *enhancements*
<erikh>
I have none of these problems with hipchat
<manveru>
yeah, you prolly have a stable internet connection too :)
<erikh>
there was one issue with animated gifs crashing the client
<erikh>
which was hilarious because our bot can dump tons of them at a time into our main room
<manveru>
i tried using their web interface, but that's just worse
<erikh>
via thecatapi.com
<erikh>
the only node.js I've ever written
<erikh>
I'd say it was a fitting task
bluepojo has quit [Ping timeout: 256 seconds]
<erikh>
manveru: yeah.
<manveru>
the air client i can only use with xzoom because the font is so small
<erikh>
fwiw, I liked campfire for a lot of the reasons I like hipchat
voker57_ has quit [Read error: Connection reset by peer]
<erikh>
but paying $20 for a native client is a compile pile of crap
<erikh>
especially because it's really just webkit and some scraping rules
<manveru>
they have a native client for linux?
<erikh>
there is one
<erikh>
but it uses the campfire api
<manveru>
don't think i ever used campfire
<erikh>
which means it works, in theory. in practice it's useless.
seydar has quit [Quit: leaving]
adamjleonard has quit [Quit: Leaving...]
<erikh>
let me see if I can find it though. I used it for a bit.
<manveru>
i thought DHH was all "get a mac or get out"
<erikh>
sure, but, uh. how is that better than just typing out what you want?
<shachaf>
Alternatively, if you wanted to move each appendage to the right one unit, you could say world.lens(:monsters, :map, :appendages, :map, :position, :x) + 1
<erikh>
if I'm reading that right, you have to know where the inflation happens
<manveru>
because it has less curly braces :)
cardoni has quit [Quit: cardoni]
<erikh>
ah. sorry. didn't have my rails hat on
<manveru>
yeah, never forget that
<manveru>
it's a sad world without that hat, dripping with crazy
<shachaf>
I hardly mind curly braces. I do mind nesting a bit.
<manveru>
ok, then unnest it
<shachaf>
And it seems only reasonable to me that to "get" and "set" some values will have the same interface.
g0bl1n has joined #ruby-lang
bluepojo1 has quit [Quit: Leaving.]
bluepojo has joined #ruby-lang
<manveru>
oh, github is back, i can work again :)
<erikh>
heh
<erikh>
you know you can commit without pushing right? :P