ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
toretore has quit [Quit: Leaving]
Cykey has joined #ruby-lang
asahi has left #ruby-lang [#ruby-lang]
tbuehlmann has quit []
benanne has quit [Quit: kbai]
cmaxw has quit [Ping timeout: 260 seconds]
Guest86181 has quit [Remote host closed the connection]
dasibre_ has joined #ruby-lang
gsav has joined #ruby-lang
dasibre has quit [Ping timeout: 260 seconds]
soahccc is now known as soahccc`
rippa has quit [Ping timeout: 252 seconds]
cmaxw has joined #ruby-lang
b1rkh0ff has quit [Ping timeout: 246 seconds]
jxie has quit [Quit: leaving]
soahccc` is now known as soahccc
fgomez has joined #ruby-lang
bojicas has quit [Read error: Connection reset by peer]
bojicas has joined #ruby-lang
neoesque has joined #ruby-lang
jbsan has joined #ruby-lang
Cykey has quit [Quit: Computer has gone to sleep.]
kain has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
lsegal has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
fgomez has quit [Remote host closed the connection]
farmer has quit [Remote host closed the connection]
cmaxw has quit [Ping timeout: 246 seconds]
Jade has joined #ruby-lang
tonesfrommars has joined #ruby-lang
sush24 has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
Gaivs has quit []
Guest41602 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
srbartlett has quit [Read error: Connection reset by peer]
seanstickle has quit [Quit: Nihil sub sole novum]
milram has joined #ruby-lang
srbartlett has joined #ruby-lang
srbartle_ has joined #ruby-lang
srbartlett has quit [Read error: Connection reset by peer]
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-rc2)]
zz_wasnotrice is now known as wasnotrice
andrewhl has quit [Remote host closed the connection]
milram has quit [Remote host closed the connection]
bojicas has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
16SAA92IS has joined #ruby-lang
36DABC9EM has joined #ruby-lang
36DABC9EM has quit [Read error: Connection reset by peer]
16SAA92IS has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
cmaxw has joined #ruby-lang
sush24 has quit [Ping timeout: 244 seconds]
tomb_ has joined #ruby-lang
sush24 has joined #ruby-lang
gix has quit [Ping timeout: 260 seconds]
gix has joined #ruby-lang
Guest41602 has left #ruby-lang [#ruby-lang]
ioutfitter has joined #ruby-lang
andrewhl has joined #ruby-lang
ioutfitter has quit [Remote host closed the connection]
cmaxw has quit [Ping timeout: 250 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
dkubb has quit [Quit: Linkinus - http://linkinus.com]
neoesque has quit [Quit: Bye!]
dalekurt has quit [Quit: Zzz...]
mistym has quit [Remote host closed the connection]
jxie has joined #ruby-lang
sush24 has joined #ruby-lang
dkubb|away has joined #ruby-lang
mattonrails has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
mattonrails has quit [Remote host closed the connection]
M4g1c5t0rM has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
deobald__ has joined #ruby-lang
dkubb|away has quit [Quit: Linkinus - http://linkinus.com]
rippa has joined #ruby-lang
bojicas has joined #ruby-lang
dalekurt has joined #ruby-lang
rohit has joined #ruby-lang
yannis has quit [Quit: Bye!]
deobald__ has quit [Ping timeout: 260 seconds]
areil has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby-lang
tRAS has joined #ruby-lang
erpuds has joined #ruby-lang
eggie5 has joined #ruby-lang
<eggie5> anybody know what the growth rate of array1 - array2 in ruby is?
<eggie5> the - opperator on two arrays...
<bnagy> growth rate?
<eggie5> bnagy: yeah "big O" analysis
rohit has quit [Ping timeout: 244 seconds]
rohit has joined #ruby-lang
<bnagy> looks like O 2n or something
tRAS has quit [Quit: Mother, did it need to be so high?]
fromhet has joined #ruby-lang
<bnagy> it converts a2 into a hash, then iterates a1 and looks up in the hash which is constant time
<bnagy> I assume the hash conversion is On
<eggie5> bnagy: so it does hash look up in a loop
<bnagy> but I don't have the src
gsav has quit [Read error: Connection reset by peer]
<eggie5> I wonder what it takes to do the hash conversion...
<eggie5> bnagy: oh so On + On = On
<bnagy> well it's probably one iteration over the array, and newhsh[a[i]]=true or something
<eggie5> bnagy: that's good since a brute force to compare 2 arrays would be On^2 right?
<bnagy> basically it should be constant time
<bnagy> dunno what you mean by copare :)
<eggie5> bnagy: take the diff
<bnagy> how is that different from -
<bnagy> I mean if you want to consider order, something like LCS then yeah it's 'more'
dalekurt has quit [Quit: Zzz...]
<bnagy> I'm not great at bigO stff, but I can't see how even a totally naive - would be worse than n!, and that's in the pathological case, no?
<bnagy> like (1..10) - (10..1)
tRAS has joined #ruby-lang
<bnagy> wait that's not even ! that's gauss n(n-1)/2
<bnagy> which makes sense since ! > **2 :/
* bnagy sits in the corner
<eggie5> bnagy: no I think the worst case possible would be n^2
dalekurt has joined #ruby-lang
<bnagy> how?
<eggie5> bnagy: well array1 has n elements array2 have m elements so m*n and worst case would be m=n so n^2
<bnagy> why? :) you don't need to run m compares every time
<bnagy> as you walk n, you also shrink m
<bnagy> ohhh no I see, if you have two totally distince sets
dalekurt has quit [Read error: Connection reset by peer]
dalekurt has joined #ruby-lang
<bnagy> yeah ok
<bnagy> that would definitely be a retarded algorithm though :)
<eggie5> bnagy: haha yeah - it's the brute force
<eggie5> bnagy: but it's interstring to know how the ruby - opperator on arrays works
<eggie5> interesting design
<bnagy> the rdoc on the web has all the source available - well the first level source anyway
<eggie5> bnagy: yeah I saw that I just dont know how to see what the to hash function does
<eggie5> but since it's not in the for loop I guess it doesn't really matter
<bnagy> it only matters if it's not constant time
tRAS has quit [Quit: Mother, did it need to be so high?]
<bnagy> I think it ends up as O(n+m) and your pathological case with two arrays with nothing in common would be O(nm)
wasnotrice is now known as zz_wasnotrice
rohit has quit [Quit: Leaving]
slyphon has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
soahccc is now known as soahccc`
erpuds has quit [Quit: erpuds]
dalekurt has quit [Quit: Zzz...]
tonesfrommars has quit [Quit: KVIrc 4.0.1 Insomnia http://www.kvirc.net/]
ttilley has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
yxhuvud has joined #ruby-lang
dkubb|away has joined #ruby-lang
dkubb|away is now known as dkubb
tomzx has quit [Ping timeout: 245 seconds]
harukomoto has quit [Ping timeout: 244 seconds]
tomzx has joined #ruby-lang
yannis has joined #ruby-lang
JohnBat26 has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
cirwim has joined #ruby-lang
tomzx has quit [Ping timeout: 246 seconds]
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ryez has joined #ruby-lang
mytrile has joined #ruby-lang
fromhet has quit [Quit: fromhet]
gokul has joined #ruby-lang
pabloh has quit [Ping timeout: 246 seconds]
eggie5 has quit [Quit: Page closed]
setmeaway has quit [Read error: Connection reset by peer]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kitallis has joined #ruby-lang
srbartle_ has quit [Remote host closed the connection]
yannis has quit [Quit: yannis]
LarryLv has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
soahccc` is now known as soahccc
Guedes_out has quit [Excess Flood]
Guedes_out has joined #ruby-lang
stardiviner has joined #ruby-lang
cirwim has left #ruby-lang [#ruby-lang]
wallerdev has quit [Quit: wallerdev]
kitallis has quit [Ping timeout: 245 seconds]
zmack has joined #ruby-lang
woollyams has quit [Ping timeout: 244 seconds]
Faris has joined #ruby-lang
symm- has joined #ruby-lang
stamina has joined #ruby-lang
kitallis has joined #ruby-lang
timbleck has quit [Quit: Connection closed for inactivity]
kitallis has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
tRAS has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 265 seconds]
Banistergalaxy has quit [Ping timeout: 265 seconds]
Carnage\ has joined #ruby-lang
rushed has joined #ruby-lang
solars has quit [Quit: WeeChat 0.3.5]
rushed has quit [Client Quit]
rushed has joined #ruby-lang
solars has joined #ruby-lang
|Vargas| has quit [Read error: Operation timed out]
asdfqwer has joined #ruby-lang
ryanf has quit [Quit: leaving]
tomb_ has joined #ruby-lang
francisfish has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
zz_chrismcg is now known as chrismcg
setmeaway has joined #ruby-lang
mssola has joined #ruby-lang
farmer has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
perryh_away is now known as perryh
tRAS has quit [Quit: Mother, did it need to be so high?]
deobald__ has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
hebz0rl has joined #ruby-lang
gokul has quit [Quit: Leaving]
adambeynon has joined #ruby-lang
adambeynon has quit [Client Quit]
adambeynon has joined #ruby-lang
tRAS has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
sora_h is now known as s0ra_h
futurechimp has joined #ruby-lang
DMKE has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
Z33K|Lux has quit [Ping timeout: 250 seconds]
JohnBat26 has joined #ruby-lang
Viliny has joined #ruby-lang
<Viliny> Hello!
<Viliny> dusting off ruby again after a long pause. im trying to use a variable in a match like this: if this_file.match(/^ident.*/)
<bnagy> #{ident}
<Viliny> how can i use a variable called ident there? instead of the match function using "ident"
<Viliny> ah thank you
<Mon_Ouie> Also, you may need to escape it using Regexp.quote
<Viliny> Mon_Ouie: i see, but i don't quite understand how
sush24 has joined #ruby-lang
<Mon_Ouie> Just Regexp.quote ident
<Viliny> (/Regexp.quote ident^*/) is how i understand that, seems kind of stupid :)
<Mon_Ouie> #{Regexp.quote ident}, you still need to interpolate
<Viliny> thank you, makes more sense
<matled> Viliny: and you may want to use \A (and \z) instead of ^ (and $ respectively). they match on beginning/end of string, instead of beginning/end of line
<matled> Viliny: without a newline there is no difference, but with a newline the regexp may match after each newline
<Viliny> you wouldn't happen to have a good manual for using regexp matching? I have forgotten so much. This line was copied from a program i made a year ago
<Viliny> basicly, i want to match the start of a string right now
<Viliny> trying to clobber together a program that scans a directory for files with a certain name and moves them to another directory
<bnagy> Dir["~/**/foo*.txt"].each {|f| FileUtils.mv f, newplace}
cdt has joined #ruby-lang
<Viliny> Dir["#{sourcedirectory}honda*.txt"].each {|f| FileUtils.mv f, destinationdirectory} ?
<Viliny> thank you FiXato
<FiXato> my first stop when I need a regexp reference :)
<Viliny> my biggest problem right now is that i haven't gotten any sleep last night and my head is a mess, your help is very appreciated :)
<FiXato> http://www.ruby-doc.org/core-1.9.3/Regexp.html also is handy to have around :)
<bnagy> Viliny: something like that, I think, yeah
<bnagy> Viliny: if there is one source dir you can just put it in the string, if you want any dir under a certain root yu can glob with ** - globbing is not a regexp per se
deobald__ has quit [Ping timeout: 260 seconds]
<Viliny> bnagy: i tried that, but a file called hondafile.txt didn't make the move
<bnagy> ok well just test the Dir expression in irb
<bnagy> sould give you an array of all matching files
<bnagy> brb got to joint a chicken
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
jxie has joined #ruby-lang
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
sush24 has quit [Quit: This computer has gone to sleep]
deobald__ has joined #ruby-lang
srbartlett has joined #ruby-lang
tekin has joined #ruby-lang
kitallis has joined #ruby-lang
s0ra_h is now known as sora_h
srbartlett has quit [Remote host closed the connection]
kaspernj has joined #ruby-lang
sora_h is now known as s0ra_h
chendo_ has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
bojicas_ has joined #ruby-lang
perryh is now known as perryh_away
s0ra_h is now known as sora_h
seoaqua has joined #ruby-lang
sepp2k has joined #ruby-lang
bojicas has quit [Ping timeout: 260 seconds]
woollyams has joined #ruby-lang
gnufied has joined #ruby-lang
deobald__ has quit [Ping timeout: 260 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
Criztian has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
woollyams has joined #ruby-lang
sora_h is now known as s0ra_h
ttilley has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
s0ra_h is now known as sora_h
benanne has joined #ruby-lang
farmer has quit [Quit: Leaving...]
farmer has joined #ruby-lang
<youngin> morning lovers
<youngin> whats good in the hood on this glorious day?
Guedes_out has left #ruby-lang [#ruby-lang]
Cykey has joined #ruby-lang
Guedes0 has joined #ruby-lang
Guedes0 has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes0 has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 252 seconds]
Jade has quit [Read error: Connection reset by peer]
d3vic3 has joined #ruby-lang
sora_h is now known as s0ra_h
tbuehlmann has joined #ruby-lang
tbuehlmann has quit [Changing host]
tbuehlmann has joined #ruby-lang
Jade has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
chrismcg is now known as zz_chrismcg
Cykey has quit [Quit: Computer has gone to sleep.]
bojicas_ has quit [Ping timeout: 245 seconds]
Cykey has joined #ruby-lang
Viliny has quit [Ping timeout: 256 seconds]
Cykey has quit [Client Quit]
s0ra_h is now known as sora_h
<zzak> good morning
sora_h is now known as s0ra_h
srbartlett has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
hackeron has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
woollyams has joined #ruby-lang
tomzx has joined #ruby-lang
Zyclops has joined #ruby-lang
<Zyclops> https://gist.github.com/7d6103c63cdca4fd7b6c << is there anyway i can change this so that raw22 is just a method i can call
<Zyclops> i.e. raw22(bla, bla)
<Zyclops> those extra 5 characters (.call) seem like such waste
RegEchse has joined #ruby-lang
<tbuehlmann> why not just have a method that returns a hash?
<Zyclops> because i have to bind an it to an ID first
<Zyclops> because you bind it to an ID
<Zyclops> then use it 20 times
<Zyclops> to create things with different minutes and values
<matthewd> Proc#call is aliased as Proc#[]...
nofxxx has joined #ruby-lang
<Mon_Ouie> There's also proc.(…)
dalekurt has joined #ruby-lang
<Zyclops> ah cool
<Zyclops> so you can just go .
nofxxxx has quit [Ping timeout: 265 seconds]
<lianj> i dont mind writing .call though
<Zyclops> hmm
<Zyclops> raw22.(35, 1200) didn't work.. is that ruby 1.9 thing?
<Mon_Ouie> My code isn't golf either
<tbuehlmann> still don't get why you don't use just a method with 3 arguments (id, min, original_value)
<Mon_Ouie> Yes it is
<Zyclops> tbuehlmann: because it runs 30 times for id 22 and then another 30 times for id 55
nofxxxx has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby-lang
<Zyclops> actually.. hmm
<Zyclops> tbuehlmann.. it does mean nobody has to understand this magic stuff
s0ra_h is now known as sora_h
<Zyclops> because very small number of ruby devs knows the difference between a proc block and lambda anyway
nofxxx has quit [Ping timeout: 256 seconds]
<tbuehlmann> well, still don't get it. is it because procs are.. faster? roflscale? :)
<diegoviola> Zyclops: what is the difference?
<Zyclops> i dunno
<Zyclops> haha :D
<tbuehlmann> returning and other stuff, there are a lot of examples in the wild
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dr_bob has joined #ruby-lang
jds_ has joined #ruby-lang
<jds_> Heya
woollyams has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dr_bob has left #ruby-lang [#ruby-lang]
<jds_> I seem to remember an Array / Enumerable method from somewhere, where you could do "SomeNames.except(:bob, :jon)", which would have much the same affect as "SomeNames - [:bob, :jon]"
<jds_> Anyone know what that might be, or should I just stick to Array#:-
nevynxxx has joined #ruby-lang
tomzx has quit [Ping timeout: 260 seconds]
nevynxxx has quit [Read error: Operation timed out]
Criztian has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 265 seconds]
diegovio1a has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
postmodern has quit [Quit: Leaving]
diegoviola has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
diegovio1a is now known as diegoviola
carloslopes has joined #ruby-lang
hebz0rl has quit [Quit: Verlassend]
gouthamvel has joined #ruby-lang
jxie has quit [Ping timeout: 252 seconds]
LarryLv has quit [Remote host closed the connection]
rmascarenhas has joined #ruby-lang
Viliny has joined #ruby-lang
krz has quit [Quit: krz]
mistym has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
tekin has joined #ruby-lang
soahccc is now known as soahccc`
srbartlett has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
mistym has joined #ruby-lang
sush24 has joined #ruby-lang
zz_chrismcg is now known as chrismcg
mikkelb has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
<mikkelb> At http://home.no/hedhnta/budget_model.xls - can someone look at my Ruby ecommerce startup budget model? I'm not too confident about it as parts of it are directly translated from a foreign language, and other parts are made up. Are the structures okay? My use of the various terms?
<mikkelb> Like the Purchases and Sales sheets, and the relationship between them, could that be made any better? I feel they're very interrelated and that I've failed to model that somehow. The same goes for the Profit and Cash flow sheets - I always hear people talk about profit and cash flow in the same sentence.
<mikkelb> And for the Cash flow sheet - any suggestions to how I could model various scenarios in it (i.e. different marketing/sales costs, and different delays)? So far all I can think of is that I probably need some form elements, maybe a select box?
milram has joined #ruby-lang
<Viliny> What is that, a virus?
<mikkelb> Viliny: no man
<mikkelb> its not even got any macros in it
workmad3 has joined #ruby-lang
<mikkelb> i just know that there's a lotta smart entrepreneurs in here and i was wondering, since it's a ruby-centric startup, if maybe some of y'all could offer some advice
rippa has quit [Quit: derp herp]
gnufied has joined #ruby-lang
<Viliny> naww i just didn't see the connection with ruby and that excel sheet. Pardon my rudeness
<mikkelb> cool
mistym has quit [Remote host closed the connection]
fukushima has quit [Quit: Leaving...]
andrewhl has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
Guest51736 has quit [Quit: /quit]
sora_h is now known as s0ra_h
alindeman has joined #ruby-lang
s0ra_h is now known as sora_h
asdfqwer has quit [Read error: Connection reset by peer]
sora_h is now known as s0ra_h
seanstickle has joined #ruby-lang
s0ra_h is now known as sora_h
nevynxxx has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
deobald__ has joined #ruby-lang
yannis has joined #ruby-lang
tekin has joined #ruby-lang
imperator has joined #ruby-lang
cmaxw has joined #ruby-lang
seoaqua has quit [Quit: Leaving]
mrsrikanth has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
mistym has joined #ruby-lang
farmer_ has joined #ruby-lang
farmer has quit [Ping timeout: 265 seconds]
Carnage\ has quit []
mdstunthamster has joined #ruby-lang
jxie has joined #ruby-lang
farmer_ has quit [Quit: Leaving...]
farmer has joined #ruby-lang
erpuds has joined #ruby-lang
mrsrikanth has left #ruby-lang ["Leaving"]
rue_XIV has left #ruby-lang [#ruby-lang]
rue has joined #ruby-lang
<rue> Stupid IRC
<unsymbol> irc, indifferent (to your complaints) relay chat.
gsav has joined #ruby-lang
mytrile has quit [Ping timeout: 260 seconds]
arooni-mobile has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
soahccc` is now known as soahccc
fgomez has quit [Quit: leaving]
|Vargas| has quit [Quit: ...]
JohnBat26 has quit [Remote host closed the connection]
<andrewvos> Smart entrepeneurs? In here? I doubt it.
farmer has quit [Remote host closed the connection]
<seanstickle> Sometimes
deobald__ has quit [Ping timeout: 260 seconds]
<andrewvos> If I was rich, I wouldn't be hanging around *you guys*
<seanstickle> Most of them are in #python though
<seanstickle> :P
<workmad3> andrewvos: aww, the feeling is mutual :P
yannis has quit [Quit: yannis]
<andrewvos> :/
andrewhl has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
JackNorris has quit [Ping timeout: 245 seconds]
gsav has quit [Read error: Connection reset by peer]
lupine_85 has quit [Ping timeout: 250 seconds]
stepnem has quit [Ping timeout: 252 seconds]
amerine has quit [Ping timeout: 252 seconds]
amerine has joined #ruby-lang
erpuds has quit [Quit: erpuds]
JackNorris has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
stepnem has joined #ruby-lang
erpuds has joined #ruby-lang
gsav has joined #ruby-lang
Zyclops has quit [Quit: Leaving.]
Zyclops has joined #ruby-lang
ryez_ has joined #ruby-lang
lupine_85 has joined #ruby-lang
Zyclops has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby-lang
kaspernj has quit [Read error: Operation timed out]
ttilley has joined #ruby-lang
kyrylo has quit [Ping timeout: 244 seconds]
wasnotrice is now known as zz_wasnotrice
Zyclops has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
apeiros_ has joined #ruby-lang
Zyclops has quit [Ping timeout: 260 seconds]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
tbuehlmann has quit []
zz_wasnotrice is now known as wasnotrice
areil has quit [Remote host closed the connection]
cmaxw has quit [Quit: cmaxw]
dalekurt has quit [Quit: Zzz...]
dalekurt has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
rippa has joined #ruby-lang
cmaxw has joined #ruby-lang
DMKE has quit [Quit: Pingpong.]
nevynxxx has quit [Quit: leaving]
thone has quit [Ping timeout: 240 seconds]
dreieins has quit [Quit: and away]
dreieins has joined #ruby-lang
thone has joined #ruby-lang
M4g1c5t0rM has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 252 seconds]
rushed has quit [Quit: rushed]
bojicas has joined #ruby-lang
d3vic3 has quit [Ping timeout: 265 seconds]
sora_h is now known as s0ra_h
dreieins has quit [Quit: and away]
bojicas_ has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
d3vic3 has joined #ruby-lang
vmoravec has quit [Quit: Leaving]
lupine_85 has quit [Changing host]
lupine_85 has joined #ruby-lang
bojicas has quit [Ping timeout: 260 seconds]
fgomez has quit [Ping timeout: 265 seconds]
carloslopes has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
gokul has joined #ruby-lang
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dreieins has joined #ruby-lang
Boohbah has quit [Remote host closed the connection]
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
mikkelb has quit [Ping timeout: 245 seconds]
hakunin has joined #ruby-lang
Faris2 has joined #ruby-lang
Faris has quit [Ping timeout: 246 seconds]
francisfish has quit [Remote host closed the connection]
dasibre_ has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
d3vic3 has quit [Quit: leaving]
hebz0rl has joined #ruby-lang
carloslopes has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
Z33K|Lux has quit [Remote host closed the connection]
mdstunthamster has quit [Quit: Linkinus - http://linkinus.com]
tomb_ has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
chrismcg is now known as zz_chrismcg
savage- has joined #ruby-lang
crackity_jones has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
cdt has quit [Quit: Ex-Chat]
sush24 has quit [Quit: This computer has gone to sleep]
zmack has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
erpuds has quit [Quit: erpuds]
lsegal has joined #ruby-lang
foca has quit [Quit: Goodbye, cruel world.]
Jay_Levitt has quit [Quit: Jay_Levitt]
foca has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
gokul has quit [Quit: Leaving]
hakunin has quit [Remote host closed the connection]
cmaxw has quit [Ping timeout: 256 seconds]
gsav has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
cmaxw has joined #ruby-lang
kurko_ has quit [Quit: Saindo]
elux has joined #ruby-lang
b1rkh0ff has quit [Ping timeout: 244 seconds]
unsymbol has quit [Quit: leaving]
savage- has quit [Remote host closed the connection]
farmer has joined #ruby-lang
unsymbol has joined #ruby-lang
unsymbol has quit [Changing host]
unsymbol has joined #ruby-lang
hebz0rl has quit [Quit: Verlassend]
andrew__ has joined #ruby-lang
yannis has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
zmack has joined #ruby-lang
ttilley has quit [Remote host closed the connection]
gregmoreno has quit [Remote host closed the connection]
ridders24 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
futurechimp has quit [Quit: Leaving]
yannis has quit [Ping timeout: 252 seconds]
gregmoreno has joined #ruby-lang
mdstunthamster has joined #ruby-lang
sush24 has joined #ruby-lang
savage- has joined #ruby-lang
gouthamvel has joined #ruby-lang
ryanf has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
seoaqua has joined #ruby-lang
Faris has joined #ruby-lang
Faris2 has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
fromhet has joined #ruby-lang
francisfish has joined #ruby-lang
cdt has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
igotnolegs has joined #ruby-lang
cdt has quit [Ping timeout: 246 seconds]
Jay_Levitt has quit [Quit: Jay_Levitt]
hakunin has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
milram has quit [Quit: milram]
brianpWins has joined #ruby-lang
bojicas_ has quit [Ping timeout: 244 seconds]
fromhet has quit [Quit: fromhet]
benanne has quit [Quit: kbai]
fromhet has joined #ruby-lang
yannis has joined #ruby-lang
workmad3 has joined #ruby-lang
dtang has joined #ruby-lang
cmaxw has quit [Quit: cmaxw]
harukomoto has joined #ruby-lang
mdstunthamster has quit [Quit: Linkinus - http://linkinus.com]
workmad3 has quit [Ping timeout: 248 seconds]
fromhet has quit [Quit: fromhet]
Cykey has joined #ruby-lang
fromhet has joined #ruby-lang
rails has joined #ruby-lang
gsav has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
dvorak has joined #ruby-lang
soahccc is now known as soahccc`
igotnolegs has quit [Quit: Computer has gone to sleep.]
brownies has joined #ruby-lang
<brownies> hello
<seanstickle> Hallo
<brownies> i'm realizing that all my tests are too tightly coupled with my copywriting
<brownies> we have a common "pattern" for a lot of tests, where it's "navigate to here, do this, then check for this string somewhere on the page"
<brownies> which is -- on the surface -- reasonable, since it's a simple enough way to make sure the whole thing works and puts the user where he needs to be
<brownies> but i feel like there should be some way to move away from checking for exact copywritten strings? what're some other sane ways to run tests like these?
<seanstickle> Check for a special META tag in each page.
<burgestrand> heh
<seanstickle> We did that at a previous job
<seanstickle> Worked pretty well
<burgestrand> It’s a little funny
<burgestrand> But as long as the test is not for checking for something else, and just validating that the page actually renders and does not blow up in your face it does the job well :)
<brownies> hmmm
<brownies> seanstickle: example?
<brownies> did your code generate such a meta tag?
<seanstickle> brownies: yah
dasibre has joined #ruby-lang
<brownies> seanstickle: just a canonical URL check, or what?
fgomez has quit [Quit: leaving]
<seanstickle> We generated unique strings for each page.
<seanstickle> In the CMS and in the core app.
dvorak has quit [Remote host closed the connection]
<seanstickle> To confirm that the right page was loading at the right URL
<brownies> and then... you copy-pasted those strings over to the tests?
<brownies> o.O
dvorak has joined #ruby-lang
<seanstickle> Sometimes, yes
<seanstickle> Not subject to copyedit changes. :)
<seanstickle> You didn't ask for the sanest approach.
<seanstickle> Merely one resistant to copyediting coupling.
dkubb has left #ruby-lang ["Linkinus - http://linkinus.com"]
seanstickle has quit [Quit: Nihil sub sole novum]
adambeynon has joined #ruby-lang
foca has quit [Quit: Goodbye, cruel world.]
harukomoto has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
virunga has joined #ruby-lang
foca has joined #ruby-lang
workmad3 has joined #ruby-lang
harukomoto has joined #ruby-lang
gouthamvel has quit [Ping timeout: 240 seconds]
foca has quit [Disconnected by services]
foca has joined #ruby-lang
cmaxw has joined #ruby-lang
foca has quit [Disconnected by services]
foca has joined #ruby-lang
foca has quit [Disconnected by services]
foca has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
foca has quit [Client Quit]
<jaimef> anyway to make this assignment work? https://gist.github.com/544babf12d84432ecd4c
gsav has joined #ruby-lang
bglusman has joined #ruby-lang
Faris has quit [Read error: Connection reset by peer]
Faris has joined #ruby-lang
<apeiros_> jaimef: use String#match and MatchData#captures
<jaimef> yeah I was on crack.
<apeiros_> eh?
tonniaagesen has joined #ruby-lang
Faris has quit [Ping timeout: 246 seconds]
Faris has joined #ruby-lang
hakunin has quit [Read error: Operation timed out]
workmad3 has quit [Ping timeout: 250 seconds]
tomb_ has joined #ruby-lang
Criztian has joined #ruby-lang
rippa has quit [Ping timeout: 265 seconds]
rmascarenhas has quit [Quit: leaving]
hakunin_ has joined #ruby-lang
schroedinbug has quit [Read error: Operation timed out]
tomb_ has quit [Quit: Computer has gone to sleep.]
llakey has quit [Quit: leaving]
dasibre has quit [Remote host closed the connection]
bfreeman has quit [Quit: bfreeman]
yannis has quit [Quit: yannis]
yxhuvud has quit [Ping timeout: 265 seconds]
<rue> Good man
dejongge has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<yorickpeterse> Question about Ruby C extensions: I want to bind to GTK3, this requires you to load it using `#include <gtk/gtk.h>`. This header lives in /usr/include/gtk-3.0/gtk/gtk.h. How do I tell my extconf to "append" /usr/include/gtk-3.0 to the makefile (wherever it may go) so that I can actually include it as specified?
<yorickpeterse> I can include it using `#include <gtk-3.0/gtk/gtk.h>` but that will cause it to fail when GTK tries to execute `#include <gdk/gdk.h>`
<yorickpeterse> I tried looking at how the gtk2 gem solves this but their extconf.rb files are a big mess
benanne has joined #ruby-lang
krz has joined #ruby-lang
ttilley has joined #ruby-lang
wmoxam has joined #ruby-lang
<Mon_Ouie> yorickpeterse: Use gtk-config to change $CFLAGS and $LDFLAGS
carloslopes has quit [Quit: Leaving]
<Mon_Ouie> $CFLAGS << " " << `gtk-config --cflags`
<yorickpeterse> hmpf, command not found. ugh
<yorickpeterse> Hm, using `pkg-config --cflags --libs gtk+-3.0` (from the GTK docs) causes it to complain about missing development tools
stamina has quit [Quit: Lost terminal]
fromhet has quit [Quit: fromhet]
zmack has quit [Remote host closed the connection]
mweichert has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<yorickpeterse> Mon_Ouie: Anyway, thanks for the info
milram has joined #ruby-lang
fgomez has joined #ruby-lang
<mweichert> Hi! I'm trying to experiment with algorithms and multi-process development. I'm trying to create a program that finds all valid dictionary words in a crossword-like grid. I fork a new process for each letter, left-to-right, top-to-bottom, and it's working well in terms of finding all of the words - but a 3x3 grid takes about 1.5 minutes to solve
rindolf has joined #ruby-lang
<rindolf> Hi all.
sepp2k has quit [Ping timeout: 246 seconds]
<mweichert> The bottleneck being the call to the dictionary library to verify that I've found a dictionary word
Jake232 has joined #ruby-lang
ridders24 has quit [Quit: Leaving]
macmartine has quit [Quit: macmartine]
macmartine has joined #ruby-lang
mssola has quit [Quit: Konversation terminated!]
macmartine has quit [Client Quit]
<mweichert> Looking for general recommendations how to speed thing sup
macmartine has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<yorickpeterse> mweichert: post some code in a pastebin first
workmad3 has joined #ruby-lang
<yorickpeterse> Mon_Ouie: Hrm, recompiling Ruby using RVM doesn't fix the warning "You have to install development tools first.". Any tips on this?
<mweichert> yorickpeterse: what platform?
<apeiros_> mweichert: given that a dictionary is only a couple of ten thousand words, you could read the dict into ram
<yorickpeterse> mweichert: Linux
igotnolegs has joined #ruby-lang
<yorickpeterse> Clearly this is caused by the CFLAGS I'm appending to but I'm not entirely sure why
<workmad3> yorickpeterse, you've installed all the dev tools and suggested packages that the command 'rvm requirements' gives?
<mweichert> yorickpeterse: what distro?
<Jake232> Anyone here using redis with rails? Ever since upgrading the the redis 3.0 rb client
<yorickpeterse> ah! found it I think
<Jake232> After not using the connection for a while
<Jake232> I'm getting Errno::EPIPE
<apeiros_> mweichert: also shameless plug: https://github.com/apeiros/fork - to making exchanging data from/with forks easier.
<yorickpeterse> --libs gtk+-3.0 should be --libs gtk-3.0 (note the plus)
<Jake232> wrong chat. damn
<Jake232> sorry guys
<yorickpeterse> workmad3: yes, because without those flags it compiles fine (given I don't load GTK)
<yorickpeterse> mweichert: Arch Linux
<yorickpeterse> Jake232: np
<workmad3> sorry, came in halfway through :)
<yorickpeterse> Ugh, same header errors now
<mweichert> apeiros_: nice, thanks!
<apeiros_> mweichert: feedback welcome btw. :)
<mweichert> yorickpeterse: my fav distro :) pacman -S base-devel
<yorickpeterse> Already installed
<mweichert> yorickpeterse: can you paste the full output of rvm install please?
<yorickpeterse> tl;dr of my issue: in order to be able to do `#include <gtk/gtk.h>` I need to somehow tell my extension to map that to /usr/include/gtk-3.0/
dejongge has quit [Remote host closed the connection]
<yorickpeterse> mweichert: http://pastebin.com/raw.php?i=NqGpcWtH
<yorickpeterse> http://pastebin.com/raw.php?i=nh9s8EE3 compile log
<mweichert> yorickpeterse: um, I was referring to the output of the "rvm install" command. Not the actual build log
<yorickpeterse> "../../../../ext/gtk3/gtk3.c:2:21: fatal error: gtk/gtk.h: No such file or directory" is what's the issue. /usr/include/gtk doesn't exist, hence it can't find it
<yorickpeterse> mweichert: oh
<yorickpeterse> mweichert: here it is http://pastebin.com/raw.php?i=T05u0Fjn
wasnotrice is now known as zz_wasnotrice
<mweichert> yorickpeterse: I'm late to the conversation. I thought you were having issues installing ruby using RVM, "Hrm, recompiling Ruby using RVM doesn't fix the warning "You have to install development tools first.". Any tips on this?" What is it that you're having troubles with?
<yorickpeterse> No
<yorickpeterse> lemme lump this in a pastebin to not clutter this channel
bglusman has quit [Ping timeout: 246 seconds]
<Mon_Ouie> It's weird you don't have a gtk-config binary though
ttilley has quit [Remote host closed the connection]
<Mon_Ouie> I have it on archlinux, and it belongs to gtk 1.2.10-11
<yorickpeterse> hm
ndxgosu has joined #ruby-lang
<Mon_Ouie> dir_config is to provide the user with command line options to override the location of a library IIRC, not to find it
tonniaagesen has quit [Remote host closed the connection]
<yorickpeterse> Ah
fukushima has joined #ruby-lang
mweichert has quit [Quit: mweichert]
<yorickpeterse> Mon_Ouie: Ah, the package "gtk" itself is not installed
<yorickpeterse> though gtk3 is
zz_wasnotrice is now known as wasnotrice
<yorickpeterse> Ah, and the "gtk" package hasn't been updated since 2011
<Mon_Ouie> Ah, right, you need pkg-config gtk+ --cflags — without specifying the 3.0 version
<Mon_Ouie> Actually, it works with gtk+-3.0
<yorickpeterse> Mon_Ouie: when using those flags (just gtk+) I still get the header error
<yorickpeterse> And using gtk+-3.0 causes the warning "You need to install development tools" to appear
ndxgosu has quit []
<yorickpeterse> Hmpf, gtk+, gtk, gtk-3 and gtk-3.0 don't work either. dafuq
<yorickpeterse> hm, gtk+-3.0 actually does return some parameters when running in the CLI
<Mon_Ouie> What program outputs that error message? Probably not pkg-config?
<yorickpeterse> No, Ruby itself
<Mon_Ouie> It outputs that because the compilation failed in the end
<Mon_Ouie> What's the mkmf.rb for that output?
<yorickpeterse> aha!
<Mon_Ouie> extconf.rb*
<yorickpeterse> If I do it after have_header('ruby.h') it does seem to work
<yorickpeterse> (I had it set before that call)
b1rkh0ff has quit [Ping timeout: 246 seconds]
<yorickpeterse> now to verify if this actually works
<yorickpeterse> yay it works. Thanks peeps :)
dax has left #ruby-lang [#ruby-lang]
savage- has quit [Remote host closed the connection]
b1rkh0ff has joined #ruby-lang
tomb_ has joined #ruby-lang
wmoxam has quit [Quit: leaving]
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-rc2)]
mistym has quit [Remote host closed the connection]
wasnotrice is now known as zz_wasnotrice
elux has quit [Quit: Bye!]
cantonic_ has joined #ruby-lang
seanstickle has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
cantonic has quit [Read error: Connection reset by peer]
cantonic_ is now known as cantonic
llakey has joined #ruby-lang
llakey has quit [Client Quit]
benanne has quit [Quit: kbai]
bglusman has joined #ruby-lang
harukomoto has quit [Ping timeout: 252 seconds]
bglusman_ has joined #ruby-lang
bglusman has quit [Ping timeout: 245 seconds]
harukomoto has joined #ruby-lang
<MrWGW> what is the point of using an application server like thin or mongrel or whatever or even using a module like phusion passenger for rails or mod ruby or whatever, vs. just using cgi/fastcgi?
wallerdev has quit [Quit: wallerdev]
<workmad3> cgi is slow, fastcgi is difficult to set up and not particularly efficient
wallerdev has joined #ruby-lang
voidx has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
ryanf has quit [Quit: leaving]
voidx has quit [Ping timeout: 246 seconds]
rindolf has quit [Remote host closed the connection]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
llakey has joined #ruby-lang
dreieins has quit [Ping timeout: 246 seconds]
llakey has quit [Client Quit]
llakey has joined #ruby-lang
ryanf has joined #ruby-lang
dreieins has joined #ruby-lang
Cykey has quit [Quit: Computer has gone to sleep.]
<Defusal> i wish there was a way to override constant look ups
<Defusal> no, i mean completely, even if top level matching constants exist
<Defusal> and const_missing also only works on top level
srbartlett has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
fserb has quit [Quit: ttyl]
brianpWins has quit [Quit: brianpWins]
felipe__ has joined #ruby-lang
yannis has joined #ruby-lang
Cykey has joined #ruby-lang
fserb has joined #ruby-lang
s0ra_h is now known as sora_h
Cykey has quit [Quit: Computer has gone to sleep.]
llakey has quit [Quit: Lost terminal]
ryanf_ has joined #ruby-lang
ryanf has quit [Ping timeout: 265 seconds]
rmascarenhas has joined #ruby-lang
ryanf_ has quit [Ping timeout: 244 seconds]
ryanf has joined #ruby-lang
fserb has quit [Quit: ttyl]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang