pr0ton has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
jtoy has quit [Quit: jtoy]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
chimkan has quit [Quit: chimkan]
justinmcp has quit [Remote host closed the connection]
voker57 has quit [Remote host closed the connection]
WillMarshall has joined #ruby-lang
WillMarshall has quit [Client Quit]
andrewhl has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
ivanoats has quit [Remote host closed the connection]
dgs has quit [Read error: Connection reset by peer]
dgs has joined #ruby-lang
bfreeman has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
dous has quit [Ping timeout: 246 seconds]
chessguy has joined #ruby-lang
towski has joined #ruby-lang
coryf has quit [Remote host closed the connection]
javilm has quit [Quit: javilm]
gmci has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
banisterfiend has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
wyhaines has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
dgs has quit [Quit: dgs]
burgestrand has joined #ruby-lang
rue has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
banisterfiend has joined #ruby-lang
mistym has quit [Remote host closed the connection]
goshakkk has joined #ruby-lang
rue has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
brianritchie has quit [Ping timeout: 245 seconds]
kingCrawlerx has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dgs has joined #ruby-lang
krohrbaugh has joined #ruby-lang
havenn has quit [Remote host closed the connection]
banisterfiend` has joined #ruby-lang
pabloh has quit [Quit: Ex-Chat]
nXqd has quit [Ping timeout: 246 seconds]
gmci has joined #ruby-lang
Rakko has joined #ruby-lang
<Rakko>
What's the mathematical principle for when you want to find all combinations of e.g. three values, where each value can be one of [1, 2, 3], and identical values can occur in different slots?
<heftig>
repeated permutation?
wyhaines has quit [Remote host closed the connection]
<heftig>
repeated combination?
<heftig>
depends on whether order matters
<Rakko>
order does matter.
<heftig>
permutation, then
<Rakko>
thanks.
<heftig>
[1,2,3].repeated_permutation(3).to_a
<Rakko>
I see my terms were wrong. I used "value" to mean both "slot" and "number permitted in a slot"
<heftig>
but this is what you want?
<Rakko>
exactly, yes
<banisterfiend`>
Rakko: heftig is an expert in combinatorics
<heftig>
i had a course on it last semester
<banisterfiend`>
heftig: cool, what things?
ilyam_ has joined #ruby-lang
<heftig>
permutations, combinations, without and with repetition
<banisterfiend`>
oh pretty basic stuff
<heftig>
stirling numbers first and second kind
<banisterfiend`>
k00
<heftig>
binomial coefficients
<heftig>
multinomial coefficient
<banisterfiend`>
heftig: did you learn about the euler beta function ?:)
<heftig>
counting methods
<heftig>
nope
<heftig>
set partitioning
<banisterfiend`>
iirc that's a generalization of binomial theorem over the continuous complex plane
ilyam has quit [Ping timeout: 246 seconds]
<banisterfiend`>
heftig: have you done any group theory too?
<heftig>
amount of mappings between sets
dgs has quit [Quit: dgs]
<heftig>
banisterfiend`: not in any depth
<heftig>
generating functions
<heftig>
linear recurrence relations
<heftig>
er, equations
banisterfiend has quit [Ping timeout: 260 seconds]
ilyam_ has quit [Ping timeout: 246 seconds]
dc5ala has joined #ruby-lang
dgs has joined #ruby-lang
<Rakko>
cool
burgestrand has joined #ruby-lang
dous has quit [Ping timeout: 244 seconds]
dgs has quit [Remote host closed the connection]
<Rakko>
Also, I see there's a site modruby.net which is about a certain mod_ruby. Previously I had thought that Passenger was mod_ruby; but modruby.net doesn't mention Passenger. Are the two separate?
kain has joined #ruby-lang
towski has quit [Remote host closed the connection]
<Rakko>
it annoys me that it has that nickname or whatever it is
<Rakko>
but anyway
towski has joined #ruby-lang
nXqd has joined #ruby-lang
solars has joined #ruby-lang
nXqd has quit [Ping timeout: 248 seconds]
rohit has quit [Quit: Leaving]
Madis has joined #ruby-lang
kaiwren has joined #ruby-lang
<Rakko>
hmmm.... now how can I get something like a repeated permutation, but where the slots have different sets of permitted values, and the sets contain different numbers of values?
<Rakko>
I mean, if there is an existing implementation. I can make one if not.
<heftig>
[[1,2,3],[4,5,6],[7,8,9]].map(&:sample)
deryl1 has joined #ruby-lang
<heftig>
er, well, that gets you one
deryl has quit [Ping timeout: 252 seconds]
<Rakko>
true
<heftig>
[1,2,3].product([4,5,6],[7,8,9])
gmci has quit [Quit: Computer has gone to sleep.]
gregmoreno has quit [Ping timeout: 252 seconds]
<Rakko>
damn
<Rakko>
you're a genius
gregmoreno has joined #ruby-lang
kitallis has joined #ruby-lang
rue|w has joined #ruby-lang
Criztian has joined #ruby-lang
towski has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
towski has joined #ruby-lang
stepnem has joined #ruby-lang
towski has quit [Remote host closed the connection]
<swarley>
sometimes i wish that you could do 9! to denote factorials
<swarley>
but then i dont
<Rakko>
hehe
<Rakko>
destructive factorial method
<Rakko>
I just made a proggy to see what letter combinations different phone keys can represent
<swarley>
hm that sounds fun
* swarley
gives it a whirl
<Rakko>
because I noticed my cell phone rendered 52635463 (the digits for "landline") as "kamelgod"
elico has joined #ruby-lang
Tearan has joined #ruby-lang
<Rakko>
someone is using the name "kamelgod deadites" online
<Rakko>
"deadites" apparently is "deceiver" or "deceives"
mytrile has joined #ruby-lang
swarley has quit [Ping timeout: 252 seconds]
Criztian has quit [Remote host closed the connection]
Fullmoon has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
Dreamer3 has quit [Ping timeout: 240 seconds]
zmack has joined #ruby-lang
jackhammer2022 has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 240 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
banisterfiend` has quit [Read error: Connection reset by peer]
Tearan has quit [Quit: Sleepy Badger....]
dhruvasagar has joined #ruby-lang
dous has quit [Ping timeout: 246 seconds]
Rakko has quit [Quit: Bye]
jbsan has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby-lang
banisterfiend` has joined #ruby-lang
banister_ has joined #ruby-lang
banisterfiend` has quit [Ping timeout: 248 seconds]
kaiwren has quit [Quit: kaiwren]
banisterfiend has quit [Ping timeout: 255 seconds]
lun_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby-lang
dhruvasagar has joined #ruby-lang
solars has joined #ruby-lang
robbyoconnor has quit [Read error: No route to host]
robbyoconnor has joined #ruby-lang
kaiwren has joined #ruby-lang
runeb has joined #ruby-lang
<yorickpeterse>
Morning
<rue|w>
N-uh
elico has quit [Quit: Elico]
Nathandim has joined #ruby-lang
<rue|w>
exec 5>&- <3
<rue|w>
You could always define #! for factorials
Dreamer3 has joined #ruby-lang
banisterfiend has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
DanielZ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
savage- has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
s1n4 has joined #ruby-lang
qwerxy has quit [Ping timeout: 246 seconds]
s1n4 has left #ruby-lang [#ruby-lang]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
rolfb has joined #ruby-lang
banisterfiend has quit [Ping timeout: 260 seconds]
robotmay has joined #ruby-lang
chimkan has joined #ruby-lang
kitallis has quit [Ping timeout: 244 seconds]
meisterT has quit [Quit: Lost terminal]
banisterfiend has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
Assurbanipal has joined #ruby-lang
heftig has quit [Remote host closed the connection]
kitallis has joined #ruby-lang
chimkan has quit [Quit: chimkan]
heftig has joined #ruby-lang
toretore has joined #ruby-lang
heftig has quit [Remote host closed the connection]
<elux>
is there a way from within a process to check if it was started with "&" via cli?
<whitequark>
try to read from stdin
<whitequark>
STDIN.read_nonblock
<darix>
whitequark: you sure that stdin is no longer available when started with & ?
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
imajes has quit [Excess Flood]
<elux>
read_nonblock': Resource temporarily unavailable - read would block (Errno::EAGAIN)
<elux>
.. hrmm.. without running as &
<elux>
maybe this is because of timing how things are happening.. i should select or whatever
imajes has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
<whitequark>
darix: kinda.
dhruvasagar has quit [Ping timeout: 260 seconds]
<whitequark>
well, the problem is that without &, it raises EAGAIN
<whitequark>
and with &, it blocks.
<darix>
elux: just curious ... why does it matter?
<masterkorp>
darix: no
<masterkorp>
its only the first checkout takes some time
<masterkorp>
but as much as the svn does
<masterkorp>
then after all is local it converts
<darix>
masterkorp: git-svn walks every single svn revision and if i recall correctly does full tree checkouts for each
esin has joined #ruby-lang
outoftime has joined #ruby-lang
<masterkorp>
ofc
<masterkorp>
but it gets the diffs imho
m3nd3s has quit [Remote host closed the connection]
solars has quit [Ping timeout: 268 seconds]
bfreeman has quit [Quit: bfreeman]
krohrbaugh has quit [Ping timeout: 246 seconds]
wmoxam_ has joined #ruby-lang
coryf has joined #ruby-lang
rue|w has joined #ruby-lang
tRAS has joined #ruby-lang
chimkan_ has joined #ruby-lang
|Vargas| has quit [Quit: ...]
enebo has joined #ruby-lang
rue|w has quit [Ping timeout: 246 seconds]
qwert666_ has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
nXqd has quit [Ping timeout: 245 seconds]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
p_np has joined #ruby-lang
RegEchse has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
zmack_ has joined #ruby-lang
nXqd has joined #ruby-lang
qwerxy_ has quit [Quit: offski]
MrOnFireMr has quit [Ping timeout: 264 seconds]
zmack has quit [Ping timeout: 255 seconds]
rikkus has joined #ruby-lang
<rikkus>
Hello
qwerxy has joined #ruby-lang
tjadc has joined #ruby-lang
<rikkus>
On the Ruby standard library docs: Some method parameters are not documented, for example: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/dl/rdoc/Win32API.html - there is no documentation describing any of those parameters, such as what they mean (the first two are, thankfully, self-explanatory), what is acceptable to pass, what the consequences of different values would be, etc. Is there somewhere e
<rikkus>
lse I should look for standard library documentation which goes further than simply naming existing methods?
<rikkus>
Okay my question was about standard library docs. The first link you posted, deryl, goes to what looks like it should be standard library docs, but the Win32API link on there is a 404.
<rikkus>
The others aren't links to standard library docs.
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
m3nd3s has joined #ruby-lang
<deryl>
umm, core is the ruby core library, the stdlib is the standard library, and the last link is for you to find additional documentation
Asher has quit [Read error: Connection reset by peer]
<deryl>
first link too
<zzak>
rikkus: thats because Win32API is undocumented, you can file a ticket and/or send a patch to bugs.ruby-lang.org
<rikkus>
deryl: that's the link I posted.
<rikkus>
deryl: But thanks for the other links, which weren't to the standard library, and for googling and pasting me the link I pasted.
<deryl>
umm, yes stflib *is* the standard library
<rikkus>
zzak: Ah right, I see, so the answer is simply: No, there is no documentation.
<rikkus>
deryl: Yes. I know. I keep saying that.
<deryl>
sigh
<deryl>
nm, these are not the droids you're looking for
<rikkus>
I don't think 'droids' quite describes.
<rikkus>
Trolls, perhaps.
towski has joined #ruby-lang
<deryl>
heh, point him to the core documentation for _the_ ruby core library *and*_the_ ruby standard library, but its trolling. how quaint.
gsav_ has quit [Quit: Lost terminal]
gsav has quit [Quit: Lost terminal]
gsav___ has quit [Quit: Lost terminal]
<rikkus>
deryl: As I've said a few times above now, thanks very much for the link to the core library, but I didn't ask for one.
<rikkus>
You can send me a link to myspace, but, again, I don't want that.
<rikkus>
But I'd still say thanks.
<zzak>
rikkus: patches welcome :)
<deryl>
rikkus: Sorry my question was if there is a set of **actual documentation for the standard library** somewhere - am I looking in the wrong place?
<deryl>
so i did just that. my apologies if it was not what you wanted
<deryl>
&
<rikkus>
deryl: I obviously wrote my question too clearly, so I apologise.
<deryl>
there is only one 'standard library' so i pointed you at it
<deryl>
my bad for taking you literally
<rikkus>
deryl: And also to the core library.
<deryl>
yep, a little 'extra'. sorry for trying to make sure you have a full set of docs for ruby itself. i won;t do it again
<rikkus>
deryl: I've been using ruby since it existed. I know where ruby-doc.org is, but thanks :P
anildigital has quit [Remote host closed the connection]
<rue>
Lies, you’d know nothing Windows is documented if you had
ivanoats has quit [Remote host closed the connection]
<deryl>
rue++
runeb has quit [Remote host closed the connection]
anildigital has quit [Changing host]
anildigital has joined #ruby-lang
<rikkus>
rue: Except I never used to use Windows.
<zzak>
2007 is hardly the birth of ruby
<bnagy>
rikkus: I would recommend loving up FFI for windows
<bnagy>
win32api is old and fragile in a lot of places
<rikkus>
bnagy: thanks
ascot21 has joined #ruby-lang
<rikkus>
zzak: That's the earliest I found in a quick google search, apologies
<bnagy>
bad news being the FFI docs for windows are even worse
<rue>
The FFI docs are pretty much the same everywhere
carloslopes has quit [Quit: Leaving.]
<rikkus>
hehe
<rikkus>
I've found another... gem win32-api
anildigital has quit [Client Quit]
<bnagy>
yeah dan berger's stuff
<rikkus>
Oh and it's by djberg, so it'll be good :)
<rikkus>
yep
<bnagy>
I still recommend ffi
<bnagy>
afaik he's moving his own stuff over as he has time
<bnagy>
FFI is also a lot easier to make portable
<bnagy>
as in windows portable
<rikkus>
win32-api at least has docs...
<rikkus>
will look at ffi though, sounds good
<bnagy>
win32api in the stdlib is also djb code
<bnagy>
basically one is just higher level and more sugar
anildigital has joined #ruby-lang
<bnagy>
anyway, I'm usually here if you have windows questions
<elux>
in my app.. how can i reset the $LOAD_PATH / $: ?
<elux>
to the default before any modification to $: from other deps.. etc. bundler, etc.
<zzak>
rikkus: no worries :)
anildigital has quit [Remote host closed the connection]
<elux>
or.. unload the bundler paths from load path..
itcharlie has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
lun_ has quit [Remote host closed the connection]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
MrOnFireMr has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
relix has quit []
s1n4 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
s1n4 is now known as Guest55231
Guest55231 has quit [Client Quit]
jxie has joined #ruby-lang
mrsolo has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
stephenp has joined #ruby-lang
_s1n4_ has joined #ruby-lang
tentimes has joined #ruby-lang
esin has quit [Quit: Leaving]
toretore has quit [Quit: Leaving]
<stephenp>
is there a way to add class level methods to modules without adding them to Module itself? like the ActiveRecord macros, only for modules? (which as far as I can tell, can't have "super modules")
rdavila has joined #ruby-lang
tentimes has quit [Quit: Take my advice. I don't use it anyway]
towski has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
Elico1 has quit [Quit: Elico1]
elico has joined #ruby-lang
<elico>
hey there.. need some help with md5. i have a program in c++ that gets a url and computes the hash of the method and the url of the request but. the method is a binary byte ie 1. i want to calculate the same md5 hash in ruby. can it be done?
<yorickpeterse>
eh, what?
<yorickpeterse>
Assuming you're talking about HTTP methods, how does, say, "GET" translate to "1"
<yorickpeterse>
other than that generating an MD5 is very easy
Nisstyre-laptop has quit [Quit: Leaving]
krohrbaugh has quit [Quit: Leaving.]
Tearan has joined #ruby-lang
savage- has joined #ruby-lang
Asher has joined #ruby-lang
Tearan has quit [Client Quit]
sailias has quit [Quit: Leaving.]
Tearan has joined #ruby-lang
savage- has quit [Ping timeout: 246 seconds]
ivanoats has quit [Remote host closed the connection]
dgs has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
toretore has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
chimkan has quit [Remote host closed the connection]
<rue>
You just need the data from which the MD5 is computed
m3nd3s has joined #ruby-lang
chimkan_ has joined #ruby-lang
rdavila has joined #ruby-lang
tooky has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
tooky has quit [Ping timeout: 246 seconds]
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 260 seconds]
mwjcomputing has joined #ruby-lang
rue has quit [Ping timeout: 244 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
rue has joined #ruby-lang
runeb has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
burgestrand has joined #ruby-lang
runeb has quit [Ping timeout: 246 seconds]
krohrbaugh has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
robotmay has joined #ruby-lang
nariyal has joined #ruby-lang
<yorickpeterse>
TIL dealing with scoping isn't all that hard (when writing parsers and such)