adu has quit [Read error: Connection reset by peer]
adu has joined #ruby
fercell has joined #ruby
vondruch has joined #ruby
orbyt_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.1]
actuallybatman has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
feriman has joined #ruby
fercell has quit [Remote host closed the connection]
robotbee has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
adu has quit [Quit: adu]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
gearnode has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
Zy64Jw has joined #ruby
jenrzzz has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
dpl has joined #ruby
AndreYuhai has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bougyman has quit [Ping timeout: 260 seconds]
siery has joined #ruby
bougyman has joined #ruby
venmx has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<jla>
dear rubysts, while installing a jekyll (clone) website.. i'm getting, when 'gem install gsl -v '2.1.0.3' --source 'https://rubygems.org' ... errors:
<jla>
'*** ERROR: missing required library to compile this module: No such file or directory - gsl-config' what am i missing ?
* jla
's guess ... 'GSL - GNU Scientific Library ' might be missing ?
<jla>
no it's not fixed after GSL install ...
jenrzzz has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jamees has joined #ruby
<jamees>
hi all
<jamees>
git checkout -f # Undo things which are not added/commited, is it correct understanding?
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
venmx has quit [Ping timeout: 246 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
sylario has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
jenrzzz has quit [Ping timeout: 240 seconds]
<sylario>
How do you get invited on the #rails channel?
<sylario>
My bad, it's #RubyOnRails I was looking for
jamees has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Rudd0 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
bb8 has quit [Ping timeout: 245 seconds]
bb8 has joined #ruby
NL3limin4t0r has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 252 seconds]
m27frogy has joined #ruby
DaRock has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
bsdbandit-01 has joined #ruby
venmx has quit [Ping timeout: 265 seconds]
stryek has joined #ruby
aef has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
AndreYuhai has quit [Ping timeout: 246 seconds]
AndreYuhai has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
adu has joined #ruby
adu has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
Zy64Jw has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
micah has joined #ruby
StarOnD has joined #ruby
<micah>
what does the ~ in the regexp 'foo~bar' mean?
jimms has joined #ruby
noboruma has joined #ruby
jenrzzz has joined #ruby
<leah2>
~
<leah2>
:D
<leah2>
it's not a special char
StarOnD has quit [Quit: Connection closed]
jenrzzz has quit [Ping timeout: 265 seconds]
feriman has quit [Ping timeout: 260 seconds]
ChmEarl has joined #ruby
AndreYuhai has quit [Read error: Connection reset by peer]
AndreYuhai has joined #ruby
harlin has quit [Read error: Connection reset by peer]
harlin has joined #ruby
<Iambchop>
jla: what OS? is there a gsl dev package? (something like libgsl0-dev on debian)
moldorcoder7 has quit [Ping timeout: 260 seconds]
moldorcoder7 has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
hsmath has joined #ruby
howdoi has joined #ruby
jenrzzz has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
ByronJohnson has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
actuallybatman has joined #ruby
nertzy has quit [Quit: Leaving]
<jla>
Iambchop . opensuse here ... got the package... no joy, though. Same error.
<micah>
thanks leah2
<Iambchop>
jla: is /usr/bin/gsl-config present? does the output look reasonable if you run gsl-config by hand? I don't have a suse install handy but I see /usr/bin/gsl-config in gsl-devel-2.6-lp152.1.3.x86_64.rpm
harlin has quit [Read error: Connection reset by peer]
harlin has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jla has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
oddp has joined #ruby
MalkbabY_ has joined #ruby
dviola has quit [Quit: WeeChat 3.1]
MalkbabY has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cliluw has quit [Ping timeout: 268 seconds]
cliluw has joined #ruby
jla has joined #ruby
jla has quit [Client Quit]
venmx has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
AndreYuhai has quit [Quit: Lost terminal]
jenrzzz has quit [Ping timeout: 260 seconds]
bsdbandit-01 has joined #ruby
roadie has joined #ruby
postmodern has quit [Quit: Leaving]
bsdbandit-01 has quit [Read error: Connection reset by peer]
Bounga has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
harlin has quit [Quit: Leaving]
jimms has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
ByronJohnson has quit [Ping timeout: 260 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 27.1.91)]
neshpion has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jdeen has joined #ruby
chicolismo has joined #ruby
ByronJohnson has joined #ruby
DTZUZU_ has quit [Ping timeout: 252 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 252 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has quit [Read error: Connection reset by peer]
TrufflePump has joined #ruby
robotbee has joined #ruby
chicolismo has quit [Quit: Leaving]
dviola has joined #ruby
<mynameisdebian>
With selenium-webdriver, how can I wait for an element to be present, with a wait interval of 5s, but have it time out and throw an error after 3 wait attempts?
<adam12>
mynameisdebian: Are you using Capybara? I believe this is built in if so.
<mynameisdebian>
adam12, no sorry, just selenium
feriman has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
LiteWait has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
LiteWait has quit [Quit: Connection closed]
MalkbabY_ has quit [Remote host closed the connection]
cliluw has quit [Read error: Connection reset by peer]
<mynameisdebian>
Iambchop, thank you
<mynameisdebian>
I have only a minimal Computer Science background but I have to write a lot of code to get things done for my own side businesses and for my job. Every time I sit down and try to write an application in Ruby I try to do it in what I think would be the "right" way, but I can never quite figure it out.
<mynameisdebian>
Right now, I want to write something that will monitor various pages for certain elements having certain text, and notify me when that's done, like to monitor for price changes on Best Buy or something. So I figure I need a Scheduler (rufus-scheduler), something to fetch a page (selenium, capybara, mechanize, etc.), and something to parse the page (nokogiri) and check that the text of some selector equals something.
<mynameisdebian>
I'm not sure if I should be creating Classes at all here, or how to go about it. In the past I would always just have a script with some "require" statements and method definitions, and would just sort of write some sequential code to run to drive a browser and do some things based on the state of a page, etc., but no Classes. I'm trying to move in a more "software engineering" direction where I can apply testing and things
<mynameisdebian>
like that to my code, but I'm sort of wracking my brain here on how to organize my code.
<mynameisdebian>
Supposing that I had a set of gems (let's say rufus-scheduler, capybara, and nokogiri) that met all of my needs, would I just create a single Class to encompass my entire program, having Objects of other Classes as Instance or Class methods of my single Class? Sorry if this is too vague of a question, doing my best to explain what I mean.
venmx has quit [Ping timeout: 240 seconds]
<weaksauce>
mynameisdebian perhaps something like Practical object oriented design in ruby
<weaksauce>
really depends though and there's no one "best" answer to that
<weaksauce>
more modularity is usually better and small methods are easier to test
<weaksauce>
and it doesn't need to be perfect to start out
robotbee has joined #ruby
ap4y has joined #ruby
cthulchu_ has quit [Ping timeout: 260 seconds]
ap4y has quit [Quit: WeeChat 3.1]
ap4y has joined #ruby
micah has left #ruby [#ruby]
Guest59707 has quit []
Technodrome has joined #ruby
bsdbandit-01 has joined #ruby
teej has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
isene has quit [Ping timeout: 240 seconds]
tinco has quit [Ping timeout: 252 seconds]
tinco has joined #ruby
jla has quit [Ping timeout: 240 seconds]
isene has joined #ruby
jla has joined #ruby
gearnode has quit [Ping timeout: 245 seconds]
Rudd0 has joined #ruby
robotbee has quit [Ping timeout: 265 seconds]
budonyc has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
jla has quit [Ping timeout: 265 seconds]
gearnode has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
sylario has quit [Quit: Connection closed for inactivity]
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
pyra has joined #ruby
noboruma has quit [Remote host closed the connection]
stryek has quit [Quit: Connection closed for inactivity]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
venmx has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
<adam12>
mynameisdebian: You basically describe a few things in those paragraphs. Maybe you have a Crawler, and a Scheduler, and a Page. Maybe you have a Queue. And maybe a Parser. These can all be classes. Or not. There’s nothing wrong with making lots of classes.
<adam12>
mynameisdebian: A good way to identify potential classes is variables with the same prefix. ie. page_title, page_description, page_body might be a Page class.