<manveru>
well then i'm out of advise, and it's way past bedtime here
<zenspider>
gem source -c
brownies has joined #ruby-lang
<zenspider>
jkyle: what's the gem?
<jkyle>
holidays
jasonw22 has joined #ruby-lang
<jkyle>
where can I find a reference of what the correct date format should look like?
<jkyle>
seems like this should be a rather easy fix
<jkyle>
here we go
DRCALKIN has joined #ruby-lang
<jkyle>
change this: 2011-10-19 00:00:00.000000000Z to this 2011-10-19
shtirlic has joined #ruby-lang
cube526 has joined #ruby-lang
havenn has joined #ruby-lang
dhruvasagar has joined #ruby-lang
slyphon has joined #ruby-lang
postmodern has joined #ruby-lang
kurko_ has joined #ruby-lang
fayimora has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<oddmunds>
i wonder how hard it would be for github to have a link to the children of a commit along with it's parent(s)
<dominikh>
oddmunds: that might get messy real quick
<oddmunds>
yeah
<oddmunds>
but it would be nice to follow along a branch and see the commits
felipe has joined #ruby-lang
<oddmunds>
they manage to list the commits in the commits tab
<dominikh>
given a branch, you get the topmost commit which has the parent information, so you have a chain. given a single commit, you only know the parent, not any "children" (there's no such relation)
nanothief has joined #ruby-lang
<dominikh>
and given a single commit, there is no way to "follow along a branch" because there can be an infinite number of branches that have "children" of that commit
erpuds has joined #ruby-lang
nguerin has joined #ruby-lang
rushed has joined #ruby-lang
QoQOoO has joined #ruby-lang
qpingu has joined #ruby-lang
looopy has joined #ruby-lang
<oddmunds>
yeah, i know
<oddmunds>
but github has impressed me before
Choobie has joined #ruby-lang
<oddmunds>
if i knew javascript i could make it a greasemonkey plugin
Indian_ has joined #ruby-lang
neoesque has joined #ruby-lang
konr has joined #ruby-lang
rohit has joined #ruby-lang
nguerin has joined #ruby-lang
Heimidal has joined #ruby-lang
slimfit has joined #ruby-lang
<konr>
Is there a method of a string that iterates over its characters and returns the concatenation of everything, like "ab ÇÇÇc".mymethod {|c| c =~ /[A-Za-z]/ ? c : nil} -> "abc"?
nguerin has joined #ruby-lang
<ben>
Sounds like str.gsub(/[^A-Za-z]+/, '')
ilyam has joined #ruby-lang
macmartine has joined #ruby-lang
<konr>
that's even simpler! thanks!
ryanf has joined #ruby-lang
tomzx has joined #ruby-lang
shtirlic_ has joined #ruby-lang
Heimidal has joined #ruby-lang
WillMarshall has joined #ruby-lang
looopy has joined #ruby-lang
shtirlic has joined #ruby-lang
willdrew has joined #ruby-lang
fayimora_ has joined #ruby-lang
Boohbah has joined #ruby-lang
nguerin has joined #ruby-lang
m3nd3s has joined #ruby-lang
setmeaway has joined #ruby-lang
damien__ has joined #ruby-lang
<Boohbah>
hi, how can i get a useful value out of Process.times? the values in Struct::Tms seem to have no relation to the timers i've setup. http://pastie.org/3500831
dhruvasagar has joined #ruby-lang
bhrgunatha has joined #ruby-lang
twittard has joined #ruby-lang
macmartine_ has joined #ruby-lang
macmartine has joined #ruby-lang
aroop has joined #ruby-lang
Luxx_ has joined #ruby-lang
aza_kibou has joined #ruby-lang
fayimora has joined #ruby-lang
brownies has joined #ruby-lang
achiu has joined #ruby-lang
gnufied has joined #ruby-lang
whatasunnyday has joined #ruby-lang
twittard has joined #ruby-lang
twittard has joined #ruby-lang
kurko__ has joined #ruby-lang
bryancp has joined #ruby-lang
whatasunnyday has joined #ruby-lang
<whatasunnyday>
MaRk-I, it activated and asked me to reset
<whatasunnyday>
I've reset however I can't find the additional drivers thing and its still stuck in fall back mode.
<whatasunnyday>
i found the additional drivers, it says its active but not currently in use
savage- has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
srbaker has joined #ruby-lang
skryking has joined #ruby-lang
kurko___ has joined #ruby-lang
sush24 has joined #ruby-lang
<sush24>
Hi... I'm writing a program consisting of arrays consisting of hash to store values and then marshal it to save it in a file... Something tells me this not the "Ruby" way to do things... I'm thinking of creating a custom class with one major method where I can check if a hash with a same :name exist else add a new hash to the array... How do I go about it?
<sush24>
PS: Im a noob
gianlucadv has joined #ruby-lang
rohit has joined #ruby-lang
jxie has joined #ruby-lang
macmartine has joined #ruby-lang
robbyoconnor has joined #ruby-lang
ivanoats has joined #ruby-lang
wyhaines has joined #ruby-lang
rippa has joined #ruby-lang
Dreamer3 has joined #ruby-lang
twittard_ has joined #ruby-lang
jkyle has joined #ruby-lang
Karmaon has joined #ruby-lang
fayimora_ has joined #ruby-lang
fayimora_ has joined #ruby-lang
kurko__ has joined #ruby-lang
brianpWins has joined #ruby-lang
RomyRomy has joined #ruby-lang
ryanf has joined #ruby-lang
brownies has joined #ruby-lang
mephux has joined #ruby-lang
Joeysomo_ has joined #ruby-lang
chessguy has joined #ruby-lang
achiu has joined #ruby-lang
machine1 has joined #ruby-lang
knightMBP has joined #ruby-lang
twittard has joined #ruby-lang
Karmaon has joined #ruby-lang
<TTilus>
sush24: what are you _actually_ doing with it?
<TTilus>
sush24: whats the problem you are trying to solve
<TTilus>
sush24: it is by no means non-ruby to and save serialized structures to files
<sush24>
It just seemed a little "hacky" that's all ... I thought I could've made a custom class with attributes (instead of keys in the hash)
x0F__ has joined #ruby-lang
<TTilus>
sush24: whats the problem you are trying to solve with the program you are writing?
neoesque has joined #ruby-lang
<sush24>
saving objects into a file..
andrewhl has joined #ruby-lang
<TTilus>
sush24: why are you saving objects into a file?
<sush24>
persistence
<TTilus>
shajith: why do you need persistence for the objects?
<TTilus>
sush24: ^
<TTilus>
shajith: sorry for the hilight, bad tab-completion
<sush24>
to use it later... thats what serialization is for right?
<TTilus>
sush24: why do you need the objects later?
<sush24>
to use it..
<TTilus>
sush24: you can cut the corners and just plain tell me what are you writing that program for
<sush24>
anyways... i got it working...
<TTilus>
ok
toretore has joined #ruby-lang
ovnimancer has joined #ruby-lang
<sush24>
wrote another class...
<sush24>
thanks!
<TTilus>
if you at some point later on want to find out if your way is "the ruby way", be prepared to show your code or give a use case ;)
<TTilus>
and if you don't want to, you can tell that too, just to save us from asking "why" =D
QoQOoO has joined #ruby-lang
yxhuvud has joined #ruby-lang
QaDeS has joined #ruby-lang
fayimora has joined #ruby-lang
brownies- has joined #ruby-lang
brownies has joined #ruby-lang
JohnBat26 has joined #ruby-lang
RomyRomy has joined #ruby-lang
Tick-Tock has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
rohit has joined #ruby-lang
<shevy>
TTilus you are a curious person ;)
csherin has joined #ruby-lang
erpuds has joined #ruby-lang
frangiz has joined #ruby-lang
rippa has joined #ruby-lang
wallerdev has joined #ruby-lang
QoQOoO has joined #ruby-lang
dc5ala has joined #ruby-lang
brownies has joined #ruby-lang
pandora17 has joined #ruby-lang
JohnBat26 has joined #ruby-lang
<TTilus>
shevy: aslak taught me that
<TTilus>
shevy: pop the "why" stack
Giddeon has joined #ruby-lang
solars has joined #ruby-lang
ando has joined #ruby-lang
machine1 has joined #ruby-lang
tyman has joined #ruby-lang
QoQOoO has joined #ruby-lang
machine2 has joined #ruby-lang
retro-in-better- has joined #ruby-lang
retro|cz has joined #ruby-lang
brianpWins has joined #ruby-lang
piglop has joined #ruby-lang
lsegal has joined #ruby-lang
rippa has joined #ruby-lang
minsa has joined #ruby-lang
twelvechairs has joined #ruby-lang
takaokouji has joined #ruby-lang
burns180 has joined #ruby-lang
kek1 has joined #ruby-lang
<yorickpeterse>
Morning lads
gasbakid has joined #ruby-lang
francisfish has joined #ruby-lang
IPGlider has joined #ruby-lang
roadkith has joined #ruby-lang
burns180 has joined #ruby-lang
davidw has joined #ruby-lang
zmack has joined #ruby-lang
shtirlic_ has joined #ruby-lang
adambeynon has joined #ruby-lang
cyri_ has joined #ruby-lang
burns180_ has joined #ruby-lang
tekin has joined #ruby-lang
rohit has joined #ruby-lang
d3vic3 has joined #ruby-lang
saLOUt_ has joined #ruby-lang
futurechimp has joined #ruby-lang
burns180 has joined #ruby-lang
fayimora_ has joined #ruby-lang
saLOUt_ has joined #ruby-lang
burns180_ has joined #ruby-lang
workmad3 has joined #ruby-lang
jmeeuwen has joined #ruby-lang
burns180_ has joined #ruby-lang
rolfb has joined #ruby-lang
canton7 has joined #ruby-lang
voker57 has joined #ruby-lang
machine2 has joined #ruby-lang
jmeeuwen has joined #ruby-lang
gianlucadv has joined #ruby-lang
adambeynon has joined #ruby-lang
ramonmaruko has joined #ruby-lang
burns180_ has joined #ruby-lang
burns180 has joined #ruby-lang
dejongge has joined #ruby-lang
ramonmaruko has joined #ruby-lang
Arsen7 has joined #ruby-lang
mytrile has joined #ruby-lang
IPGlider has joined #ruby-lang
davidw has joined #ruby-lang
francisfish has joined #ruby-lang
burns180 has joined #ruby-lang
My_Hearing has joined #ruby-lang
gjaldon has joined #ruby-lang
burns180 has joined #ruby-lang
havenn has joined #ruby-lang
corsican has joined #ruby-lang
Indian has joined #ruby-lang
QoQOoO has joined #ruby-lang
equazen has joined #ruby-lang
hoonforever has joined #ruby-lang
burns180_ has joined #ruby-lang
<equazen>
pastie: hi
rue has joined #ruby-lang
gasbakid__ has joined #ruby-lang
rohit has joined #ruby-lang
burns180 has joined #ruby-lang
Faris has joined #ruby-lang
<Faris>
Why does 'sleep' sleep forever in loop blocks ?
publicvoid_ has joined #ruby-lang
<masterkorp>
Faris: cause you didn't told it how much to sleep ?
<denysonique__>
judofyr: ok, when I will be back from a walk I will defo check those out
<denysonique__>
judofyr: I am writing an IRC client btw
<judofyr>
nice
dhruvasagar has joined #ruby-lang
jkyle has joined #ruby-lang
mssola has joined #ruby-lang
burns180_ has joined #ruby-lang
zenChild has quit [#ruby-lang]
outoftime has joined #ruby-lang
<erikh>
hello internet
andrewvos has quit [#ruby-lang]
theinternet has joined #ruby-lang
d3vic3 has joined #ruby-lang
<theinternet>
hi erikh!
<theinternet>
I must be on my way!
theinternet has quit [#ruby-lang]
andrewvos has joined #ruby-lang
leonL has joined #ruby-lang
<rob_>
hi hi
jkyle has joined #ruby-lang
jkyle has joined #ruby-lang
<erikh>
nice andrew, nice.
<erikh>
are you at the BBC? I know of people interviewing there.
<rob_>
if i have an array of hashes each with a :position key, how can i keep the hashes in order when im adding and removing hashes to the array?
<erikh>
rob_: you mean sort by the value hash[:position] holds?
<erikh>
array.sort_by { |x| x[:position] }
<rob_>
erikh: aye but then if i delete some of the hashes there are 'gaps'
<erikh>
how are you deleting?
<erikh>
also, have you considered just using the index that the array provides?
<rob_>
just removing the hash from the array
<erikh>
I imagine you have -- but I'd like to know why that's not suitable
<rob_>
the problem with that is that my user can re-order the objects in the array
<erikh>
ok, so reorder them in the array as that happens?
<erikh>
how many objects are we talking about here?
<rob_>
oh, not a lot
fayimora has joined #ruby-lang
<erikh>
I'd strongly consider just letting array be an array instead of a linked list
<rob_>
this is for a todo/diary style app
<erikh>
sure.
<rob_>
see, i thought about that
<rob_>
but how can you reorder an array?
srbaker has joined #ruby-lang
<erikh>
Array#splice will probably give you some clues, and Array.delete as well
<erikh>
Array#delete
<rob_>
ahh not used splice before, thanks for the tip
<erikh>
of course you could always re-order into a new variable too
<erikh>
depending on how many edits you're making at a time, that might make more sense
rayners has joined #ruby-lang
wallerdev has joined #ruby-lang
<rob_>
just one at a time
<erikh>
ok, yeah. splice is probably what you want.
<rob_>
.slice?
<rob_>
splice doesn't seem to exist
<rob_>
unless im being stupid..
<rippa>
splice is from javascript
<erikh>
no, I'm probably confusing perl with ruby again
<rob_>
ah :)
<erikh>
it might also be in enumerable
<erikh>
sec.
<erikh>
slice and []= or shift/push will probably do what you want.
<erikh>
anyhow, the point is you have options for using this like a proper array
<rob_>
ok :)
<erikh>
it's also going to be a LOT faster in almost all cases than an independent index-tracking solution
<erikh>
which probably doesn't matter now, but might be useful to know in the future.
Sailias|work has joined #ruby-lang
kitallis has joined #ruby-lang
machine1 has joined #ruby-lang
slimfit has joined #ruby-lang
burns180_ has joined #ruby-lang
KU0N has joined #ruby-lang
machine1 has joined #ruby-lang
KU0N has quit [#ruby-lang]
Spooner has joined #ruby-lang
fayimora_ has joined #ruby-lang
dr_bob has joined #ruby-lang
wyhaines has joined #ruby-lang
havenn has joined #ruby-lang
macmartine has joined #ruby-lang
coreydaley has joined #ruby-lang
fayimora has joined #ruby-lang
erpuds has joined #ruby-lang
asdfdsfjnick has joined #ruby-lang
<asdfdsfjnick>
I keep running out of memory with my multi-dimensional array. Can I use malloc() and free() to solve my problem? How to use them? Will this work with my pastebin code? http://pastebin.com/19ksR8eE int array=malloc(71*49*33); /*initialize array*/char array[71][49][33]=...; /*draw pixels*/ free(array); /* re assign array vars*/array[1][2][3]=...*/ /*draw pixels again*/
Shvillr has joined #ruby-lang
burns180 has joined #ruby-lang
<shevy>
if ruby could just replace all of C
<shevy>
the world would be a more beautiful place
Jake232 has joined #ruby-lang
jkyle has joined #ruby-lang
<Shvillr>
Hello, everyone. This code: http://pastie.org/3505141 works in 1.9.2, but not 1.9.3. Anything I can do to make it work without changing the block? That is, I don't want to change B to self.class::B.
<lianj>
shevy: nah, just replace all of python is enough to do the job
srbaker has joined #ruby-lang
bradland has joined #ruby-lang
kyrylo has joined #ruby-lang
<erikh>
Shvillr: A::B work?
<Shvillr>
erikh: Yes, but I don't want to change the code inside the block. I was hoping there's some kind of class_eval_with_constants or something, anything that actually acknowledges the possibility of defining classes dynamically.
<erikh>
I suspect namespace evaluation happens differently
<erikh>
if you can use A::B, that's the safest route anyhow.
<Shvillr>
Yes, yes, they're cleaning up after that change in 1.9.1 when they allowed dynamic constant lookup in instance_eval and its kin. A pity, really. Breaking backwards compatibility is an issue, I understand, but why remove it outright and not rename it?
<Shvillr>
So okay, no way to refer to just B. Thanks for the clarification!
rippa has joined #ruby-lang
hagebake has joined #ruby-lang
pandora17 has joined #ruby-lang
pandora17 has joined #ruby-lang
rippa has joined #ruby-lang
tyman has joined #ruby-lang
tenderlove has joined #ruby-lang
srbaker has joined #ruby-lang
pablo_ has joined #ruby-lang
burns180_ has joined #ruby-lang
havenn has joined #ruby-lang
fayimora has joined #ruby-lang
wmoxam has joined #ruby-lang
headius has joined #ruby-lang
jredville has joined #ruby-lang
ttilley has joined #ruby-lang
ascarter has joined #ruby-lang
burns180 has joined #ruby-lang
bglusman has joined #ruby-lang
andrewhl has joined #ruby-lang
h4y4shi has joined #ruby-lang
apeiros_ has joined #ruby-lang
<apeiros_>
howdy ho you rubyists!
h4y4shi_ has joined #ruby-lang
<apeiros_>
so what european ruby conference should I visit this year?
<any-key>
apeiros_: come to Texas for the Lone Star Ruby Conference!
<any-key>
:D
<apeiros_>
any-key: sorry, US is on my no-fly list
<any-key>
:'(
achiu has joined #ruby-lang
<apeiros_>
as much as I love to be touched on my genitals, the strict requirement is it must be done by a pretty woman
<apeiros_>
and your TSA agents just ain't that
<any-key>
ugh fine
<lianj>
^^
<any-key>
LSRC is worth getting fondled
<any-key>
in fact, that should be the tagline
<any-key>
I'm telling the organizer
<apeiros_>
g
<any-key>
h?
mssola has joined #ruby-lang
<apeiros_>
g = grin
<any-key>
why not :) ??
<apeiros_>
18:40 any-key: I'm telling the organizer <-- I found it funny, so I smirked/grinned
<any-key>
apeiros_: :p
csherin has joined #ruby-lang
amerine has joined #ruby-lang
<any-key>
when I'm in Austin I see him at the weekly "Ruby Users Group" lunches
<any-key>
so he'll actually hear it :P
<apeiros_>
^^
<apeiros_>
you'll get a free 100 line refactor if you make him do that :-D
<any-key>
haha
<apeiros_>
or a virtual beer
<any-key>
I'll take it
<any-key>
at the last one spiceworks took everyone out for free beer after the first night
<trying2007>
Dir.glob('speeches/*txt').each do |file|
<trying2007>
File.readlines(file).each do |lines|
<trying2007>
end
<trying2007>
end
<trying2007>
i am new to ruby and progamming
<trying2007>
where a text parsing script woudl go in the above code i have just pasted
<trying2007>
i am having trouble finding information on running Dir file method in conjuction with File method
skipper has joined #ruby-lang
<trying2007>
the program will go a folder and read contents of files and run through script
robbyoconnor has joined #ruby-lang
<sly_it>
if i had an array of values [1,2,3,4] and an array of keys, [a,b] and i want to obtain: [[a,1],[b,2],[a,3],[b,4]] what i should do ?
<apeiros_>
trying2007: Dir.glob already takes a block, no need for that .each
ascarter has joined #ruby-lang
<apeiros_>
trying2007: text parsing - well, File.readlines will give you all lines of a file, so the .each will yield you the individual lines. you'd process them in that loop
<trying2007>
where do i put the code between 3 and 4th line or between second and third line?
<apeiros_>
trying2007: do you know irb?
<trying2007>
lets say for simplicity puts lines
<trying2007>
yes i have irb
<sly_it>
lianj: each_slice is not in plain ruby ?
achiu has joined #ruby-lang
<apeiros_>
trying2007: you should probably start playing around with fragments of that code then
<lianj>
sly_it: no, its plain
<sly_it>
lianj: yeah sorry i was checking on array but is part of enumerable :)
<apeiros_>
see what File.readlines("some/file/path.txt") does
<trying2007>
my problem is when i run just readlines method and read file directly from folder i get an array i believe
<apeiros_>
see what File.readlines("some/file/path.txt").each do |line| puts line end does
<trying2007>
when i do it with the afore mentioned code i get a string
<apeiros_>
trying2007: that's the point. DONT believe.
<apeiros_>
try it in irb and KNOW
robbyoconnor has joined #ruby-lang
<trying2007>
ok
<apeiros_>
programming is not a religion. you can check the facts.
gianlucadv has joined #ruby-lang
<trying2007>
thanks
lenilson_dias has joined #ruby-lang
francisfish has joined #ruby-lang
solars has joined #ruby-lang
<shevy>
trying2007 with File.readlines you'll always have an array
<trying2007>
when do puts lines.obj it says string ?
<trying2007>
i mean lines.class
dbussink has joined #ruby-lang
<apeiros_>
trying2007: you do .each
burns180 has joined #ruby-lang
<apeiros_>
and .each will yield you each line separately
<apeiros_>
one per iteration
<apeiros_>
and a line is a string, of course.
<trying2007>
thanks
<trying2007>
it like you said it said string repeatedly
wyhaines has joined #ruby-lang
<shevy>
it
<shevy>
what is it
<shevy>
joe said jump
<shevy>
it said hello
<trying2007>
i am going to step out and try some of this thank you for your help aperios
Austin__ has joined #ruby-lang
heppy has joined #ruby-lang
davidw has joined #ruby-lang
flak has joined #ruby-lang
jredville has joined #ruby-lang
GiambalaGiambala has joined #ruby-lang
beiter has joined #ruby-lang
<dominikh>
apeiros_: :D
<apeiros_>
howdy dominikh
burns180_ has joined #ruby-lang
<dominikh>
ahoi
<yorickpeterse>
I wonder if I can get away with using a cat picture for my Euruko proposal
<yorickpeterse>
(for a profile picture that is)
<shevy>
just dress it like a hipster and off you go
<yorickpeterse>
haha
<apeiros_>
meh, where's euruko 2012's website? o0
<yorickpeterse>
euruko2012.org
<apeiros_>
odd, only 3rd result in google…
<yorickpeterse>
warning: the font looks like comic sans on Linux
<yorickpeterse>
I already bitches about that
<yorickpeterse>
* bitched
<apeiros_>
oooh, amsterdam!
<apeiros_>
I'm *very* inclined to attend euruko 2012 :D
krzyhoo has joined #ruby-lang
<yorickpeterse>
Living close to Amsterdam?
<krzyhoo>
hi guys
<krzyhoo>
a quick question
<apeiros_>
relatively. I'm in switzerland.
<krzyhoo>
will colorize gem also work on windows???
<yorickpeterse>
apeiros_: Ah. I live 20 min away from it by train :)
<yorickpeterse>
krzyhoo: depends on the terminal you're using
<apeiros_>
but I haven't yet visited amsterdam, and it's on my citytrip-list
<yorickpeterse>
krzyhoo: does it support ANSI?
<apeiros_>
oooh, it's only 2 days? :(
<krzyhoo>
yorickpeterse: well, regular windows cmd
<krzyhoo>
and does it??
<krzyhoo>
yorickpeterse: to make it clear
<krzyhoo>
am using linux myself
<krzyhoo>
bur writing a script that should also work on windows
<yorickpeterse>
Don't think the command prompt of windows does ANSI
<yorickpeterse>
apeiros_: meh, just stick a few days longer to explore Amsterdam
<apeiros_>
yorickpeterse: oh, I'll do that anyway
<apeiros_>
at railsconf there was never time to explore during the conf
<apeiros_>
so I always added a day. with amsterdam, I'll probably add 3 days
l0st1 has joined #ruby-lang
<Defusal>
Rack::Directory.new(valid_path) says: undefined method `sub' for nil:NilClass
<Defusal>
any ideas?
<apeiros_>
yorickpeterse: wow, only 1.5h flight time, and ~170€ cost (flight only)
<apeiros_>
yorickpeterse: you don't happen to know a good hotel? :)
<yorickpeterse>
Could probably take the train
<yorickpeterse>
Eh, not in Amsterdam no
<Defusal>
(i am using the latest version of rack...)
<yorickpeterse>
From what I know the hotels in Amsterdam aren't the cheapest
<yorickpeterse>
Defusal: valid_path doesn't happen to be nil by any chance? :)
<Defusal>
yorickpeterse, i wouldn't have said valid_path if there was any chance of that.
<yorickpeterse>
heh, true
curtism has joined #ruby-lang
slimfit has joined #ruby-lang
<yorickpeterse>
Lets see if I can take a shitty profile photo of myself
<Defusal>
i just want to simulate exposing the directory listing publicly, but requiring the rack session that the rest of the application uses for security
<Defusal>
i was excited when i found Rack::Directory, but now i guess i can't use it :(
<apeiros_>
yorickpeterse: yay, hotels in amsterdam seem to be pretty expensive…
<Defusal>
if anyone has a simple alternative solution for me, please let me know
benanne has joined #ruby-lang
<yorickpeterse>
apeiros_: Yeah
Indian_ has joined #ruby-lang
voker57 has joined #ruby-lang
v0yager has joined #ruby-lang
brianpWins has joined #ruby-lang
burns180 has joined #ruby-lang
workmad3 has joined #ruby-lang
<krzyhoo>
bur writing a script that should also work on windows
ilyam has joined #ruby-lang
qpingu has joined #ruby-lang
<amerine>
tenderlove: I hope you enjoyed that hug. ;-)
<tenderlove>
amerine: I did, thank you!!
<amerine>
tenderlove: Thats all Eric's plan. He should probably get a real Monday hug.
<tenderlove>
hahaha
<amerine>
drbrain: ^^
magicbeef has joined #ruby-lang
<yorickpeterse>
Poor krzyhoo, writing Windows code
qpingu has quit [#ruby-lang]
heppy has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has joined #ruby-lang
burns180_ has joined #ruby-lang
S1kx has joined #ruby-lang
gasbakid has joined #ruby-lang
<yorickpeterse>
Oh look at that, I might have a decent picture for Euruko. No need for cat pictures after all
gix has joined #ruby-lang
ryez has joined #ruby-lang
wdperson has joined #ruby-lang
robbyoconnor has joined #ruby-lang
adambeynon has joined #ruby-lang
srbaker has joined #ruby-lang
<Harzilein>
hmm
<Harzilein>
is there any solution already for vim not correctly formatting blocks inside method chains inside assignments
<berth_>
Oh, OK. Thanks a lot! I didn't know about Console2 and bash.
<berth_>
We've started using cygwin to do java dev
<bougyman>
does pik include a mingw build env, too?
<berth_>
and now we're wanting to get a cross platform env for ruby and rails.
<bougyman>
that's what I liked about msysgit, gave the mingw build env, as well (including ssl)
<manveru>
erikh: the pik repo they link to doesn't have anything newer than 1.9.1
<manveru>
bougyman: no idea
m3nd3s has joined #ruby-lang
vpamulap has joined #ruby-lang
<erikh>
ah, maybe it is dead
<erikh>
berth_: check out the railsinstaller linked above there
<erikh>
it's done by the rvm guy, wayneeseguin
<berth_>
I see, :)
<berth_>
Wow. That was very helpful, thank you all!
m3nd3s has joined #ruby-lang
<manveru>
take care
<erikh>
enjoy
<Boohbah>
wow this console2 sounds interesting
Boohbah has joined #ruby-lang
<Harzilein>
hmm... if i have some_enum_of_arrays = some_enum.map do |d| [d.foo, d.bar] end, how can i have the result be a hash of foo elements to bar elements instead?
<berth_>
elems.inject({}) do |result, elem| result[elem.to_s] = elem.abs; result end
<berth_>
... but inject is not very readable most of the time
<Boohbah>
eww
burns180 has joined #ruby-lang
<apeiros_>
berth_: the `; result` is a hint that you don't want inject
<manveru>
Boohbah: it's also way slower :)
<apeiros_>
see #each_with_object
<apeiros_>
hash creation can also often be done in a nicer way using Hash::[]
<apeiros_>
(that's the class method…)
<listrophy_>
i need to run an external, long-running command... and I'd like to output its stdout as it goes. how? most solutions i've come up with buffer the output until the command finishes, then outputs one giant string
<berth_>
Harzilein: I'd try to be readable and write it in two lines