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>
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.]
<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]
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.
<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
<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]
<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
<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>
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