<dnadev2>
Eiam, for these workers I'm using sidekiq and I use the "ever growing list of argv" because they are simple parameters, as I understand them from here - https://github.com/mperham/sidekiq/wiki/Best-Practices.
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
bambanx has joined #ruby
adu has joined #ruby
yxhuvud has joined #ruby
tpanarch1st has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
drincruz has quit [Ping timeout: 256 seconds]
drincruz has joined #ruby
jmcgnh has joined #ruby
breakfastcat has quit [Ping timeout: 260 seconds]
wallace_mu has quit []
ruurd has quit [Ping timeout: 256 seconds]
jayx has joined #ruby
<jayx>
what is the equivalent of parsing in python in the ruby language
<jayx>
?
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ruurd has joined #ruby
jayx has quit [Client Quit]
<havenwood>
jayx, ah, they left?
<havenwood>
I was going to ask, "parsing what?"
<havenwood>
Dunno if text parsing or code parsing was meant.
<havenwood>
Or something else I'm not aware of.
postmodern has quit [Ping timeout: 246 seconds]
mnathani has joined #ruby
mnathani has joined #ruby
wymillerlinux has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 265 seconds]
jenrzzz_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
duckpuppy has joined #ruby
wymillerlinux has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
cthu| has quit [Ping timeout: 240 seconds]
duderono_ has quit [Ping timeout: 264 seconds]
oncall-pokemon has joined #ruby
bruce_lee has quit [Ping timeout: 264 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
duderonomy has joined #ruby
cd has quit [Quit: cd]
DTZUZU has joined #ruby
arthurnn has quit [Ping timeout: 256 seconds]
arthurnn_ has joined #ruby
wymillerlinux_ has joined #ruby
arthurnn_ is now known as arthurnn
t3hyoshi has quit [Ping timeout: 256 seconds]
kinduff1 has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
e2 has quit [Ping timeout: 256 seconds]
extrowerk has quit [Ping timeout: 256 seconds]
phI||Ip_Alternat has quit [Ping timeout: 256 seconds]
t3hyoshi has joined #ruby
llua` has joined #ruby
phI||Ip has joined #ruby
wymillerlinux has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Ping timeout: 256 seconds]
cliluw has quit [Ping timeout: 256 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
kinduff has quit [Ping timeout: 256 seconds]
llua has quit [Ping timeout: 256 seconds]
mydog2 has quit [Ping timeout: 256 seconds]
kinduff1 is now known as kinduff
wymillerlinux_ is now known as wymillerlinux
DTZUZU_ has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
cliluw has joined #ruby
al2o3-cr has joined #ruby
baweaver has joined #ruby
baweaver is now known as Guest17620
extrowerk has joined #ruby
zacts has joined #ruby
aandrew has joined #ruby
braincrash has joined #ruby
jenrzzz has joined #ruby
mydog2 has joined #ruby
<aandrew>
good evening, I'm trying to run a smally Ruby utility I found on github (https://github.com/jankowskib/FELix) on OSX. I've got gem installed via homebrew, and installed bundler installed via homebrew as well. bundler ran without error, but when I try to run the utility it complains that `require': cannot load such file -- hex_string (LoadError). This sounds easy enough, so I ran "brew gem install
<aandrew>
hex_string" which completed without error, but the issue remains.
<aandrew>
I'm not very proficient with ruby, and I'm sure it's something simple, but I don't know what it would be
jenrzzz has quit [Ping timeout: 246 seconds]
<havenwood>
aandrew: Normally one would release a felix gem, so you could just "gem install felix" and it'd work.
<havenwood>
aandrew: This is a bit of a funky setup.
<havenwood>
aandrew: Try prefixing your command with "bundle exec" like: bundle exec felix ...
<aandrew>
havenwood: wow, thank you, that worked. how come?
e2 has joined #ruby
powerhouse has quit [Remote host closed the connection]
<havenwood>
aandrew: Normally a command line utility like this would be cut into a gem. It'd not take a bunch to convert this project to a gem, but it's set up like an app. When you run `bundle` the Gemfile has its dependencies resolved and a Gemfile.lock is created with exact versions of gems resolved. When you prefix `bundle exec`, you run the command in the context of the Gemfile, using the gems from the Gemfile.lock.
<havenwood>
aandrew: It'd be a nice exercise for someone to cut this into a gem. It'd make it easier to use.
<aandrew>
interesting, thank you again. I would have never figured that out
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
skape has quit [Quit: Connection closed for inactivity]
sphex has quit [Ping timeout: 256 seconds]
polishdub has quit [Quit: leaving]
jenrzzz has joined #ruby
alexherbo2 has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
GodFather has quit [Ping timeout: 240 seconds]
bocaneri has joined #ruby
zacts has quit [Quit: leaving]
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
jazzanova has joined #ruby
chalkmonster has joined #ruby
<jazzanova>
Hello, I've been coding for over a month "on a tree." It's not a data structure, it's about an actual tree. I've made a portable table thot goes on a tree, but it doesn't damage the tree in anyway. (There's no "nail"). So, now I go to parks to work, and I don't stay home during the day. The table is based on an expired patent by someone else,
<jazzanova>
called "Tree Table". I've put it up on IndieGoGo under the same name. I've made it for coders -- it's large enough to be a workstation, with a laptop stand, etc.
rose_nd_ash has quit [Ping timeout: 264 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
schne1der has joined #ruby
adu has quit [Quit: adu]
alexherbo2 has quit [Ping timeout: 256 seconds]
shaman42 has joined #ruby
postmodern has joined #ruby
GodFather has joined #ruby
xco has joined #ruby
alexherbo2 has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
alexherbo22 has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo22 is now known as alexherbo2
Itsame1 has joined #ruby
Itsame1 has quit [Client Quit]
BTRE has quit [Ping timeout: 240 seconds]
jxweng has joined #ruby
BTRE has joined #ruby
xco has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 246 seconds]
rose_nd_ash has joined #ruby
alexherbo2 has joined #ruby
BTRE has quit [Ping timeout: 246 seconds]
BTRE has joined #ruby
sphex has joined #ruby
dionysus69 has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
vondruch has joined #ruby
alexherbo2 has joined #ruby
tpanarch1st has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
jazzanova has quit [Remote host closed the connection]
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
jinie_ has joined #ruby
emad has joined #ruby
jinie has quit [Ping timeout: 260 seconds]
jinie_ is now known as jinie
arzWZM has quit [Ping timeout: 264 seconds]
arzWZM has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Ping timeout: 256 seconds]
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
imode has quit [Ping timeout: 246 seconds]
fandre1986 has joined #ruby
ruskie has quit [Ping timeout: 272 seconds]
TCZ has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Ping timeout: 264 seconds]
roadt has quit [Ping timeout: 256 seconds]
sgen has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
roadt has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 256 seconds]
shansen has joined #ruby
dnadev2 has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Itsame1 has joined #ruby
Itsame1 has quit [Client Quit]
Intelo has quit [Quit: WeeChat 2.6]
rose_nd_ash has joined #ruby
mikecmpbll has joined #ruby
leitz has joined #ruby
fandre1986 has quit [Ping timeout: 264 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
dnadev2 has joined #ruby
drincruz has joined #ruby
fandre1986 has joined #ruby
sphex has quit [Ping timeout: 256 seconds]
stryek has joined #ruby
sphex has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
cliluw has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpb_ has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
rose_nd_ash has quit [Remote host closed the connection]
prestorium has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Ping timeout: 264 seconds]
dualfade has quit [Ping timeout: 246 seconds]
dualfade has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
rose_nd_ash has joined #ruby
mikecmpbll has joined #ruby
<leitz>
In good news for the day, I took adam12's mentoring on adapters and mangled it a bit. I think I have a solution to a new problem now. Got the first one working this morning.
rose_nd_ash has quit [Remote host closed the connection]
rdash has joined #ruby
llua` is now known as llua
emad has quit [Ping timeout: 260 seconds]
drincruz has joined #ruby
AndreYuhai has joined #ruby
rdash has quit [Remote host closed the connection]
<AndreYuhai>
I need to get an attribute of an HTML tag. But the attribute might have different names like 'src' or 'srcset'. How can accomplish this like a regexp?
<AndreYuhai>
I don't know whether there are any functions to see all the attributes of a WebDriver::Element
<AndreYuhai>
There probably is but I don't know which one. :D
rose_nd_ash has joined #ruby
cd has joined #ruby
<leitz>
AndreYuhai, if the attribute names are known, you can put them in an array and compare the result to what's in the array.
rose_nd_ash has quit [Ping timeout: 264 seconds]
<AndreYuhai>
leitz, you mean put them in an array and search for each of them in the tag?
<leitz>
AndreYuhai, if "list_of_attributes" is an Array with the attribute you're looking for, then "if list_of_attributes.include?(first.native.attribute) do ... end"
<leitz>
AndreYuhai, though I don't know WebDriver at all.
<AndreYuhai>
leitz, Oh sorry for the misunderstanding. I was looking for a way to get the array of all attributes that an HTML tag has on a particular web page.
sphex has quit [Ping timeout: 240 seconds]
<AndreYuhai>
By the way is there any way to require a newly installed gem in an already running PRY session?
<leitz>
AndreYuhai, can you just "require" it? I'm not familiar with pry.
<AndreYuhai>
leitz, No, then I get "LoadError: cannot load such file"
roadt has quit [Ping timeout: 265 seconds]
roadt has joined #ruby
jenrzzz has joined #ruby
sphex has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
fandre1986 has quit [Quit: Connection closed]
sphex has quit [Ping timeout: 244 seconds]
oz has quit [Read error: Connection reset by peer]
ChmEarl has joined #ruby
cd has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Leaving]
sphex has joined #ruby
cd has joined #ruby
jxweng has quit [Quit: Lost terminal]
purefan has joined #ruby
<purefan>
Hello! beginner here, first project working on Ruby and I found a lone line with: Digest::MD5.hexdigest(blob) no assignment and it looks strange to me, does it change blob into an md5? ("by reference"?)
lektrik has quit [Quit: Leaving]
<CommunistWolf>
no, it doesn't touch its input, it just outputs a string
<CommunistWolf>
maybe the desired side-effect was to spend some time. maybe it's a bug ^^
mikecmpbll has quit [Quit: inabit. zz.]
zapata has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
zapata has joined #ruby
<leitz>
purefan, if the line is in a method "def something ... end", then the result of the Digest call is the return value for the method.
rose_nd_ash has joined #ruby
purefan has quit [Ping timeout: 265 seconds]
TCZ has joined #ruby
<apotheon>
It's the return value only if it's the last line in the method, though.
<apotheon>
(just to make that clear)
pgib has quit [Ping timeout: 240 seconds]
oz has joined #ruby
<leitz>
Err...what apotheon said, and what I meant to say. :)
dionysus69 has quit [Remote host closed the connection]
sgen has quit [Ping timeout: 256 seconds]
SoF4 has joined #ruby
SoF has quit [Read error: Connection reset by peer]
SoF4 is now known as SoF
purefan has joined #ruby
<purefan>
thanks for the feedback CommunistWolf! I imagined as much but Im trying to be respectful of this old code base, there's also the random string just sitting there "uploads/#{name}" which I imagine is as much a waste
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpb_ has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
sgen has joined #ruby
rose_nd_ash has joined #ruby
mikecmpbll has joined #ruby
^amra has joined #ruby
mikecmpb_ has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
crowley has joined #ruby
^amra has quit [Quit: ^amra]
<apotheon>
leitz: It's good you thought of it. I was blanking on why there'd be a line like that with no assignment.
mikecmpbll has quit [Quit: inabit. zz.]
<apotheon>
purefan: Just make sure you check whether those lines are each the last line in a method.
mikecmpbll has joined #ruby
TCZ has quit [Quit: Leaving]
rose_nd_ash has quit [Remote host closed the connection]
cthu| has joined #ruby
rose_nd_ash has joined #ruby
MrCrackPot has joined #ruby
howdoi has joined #ruby
rose_nd_ash has quit [Ping timeout: 265 seconds]
mistergibson has joined #ruby
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Ping timeout: 256 seconds]
rose_nd_ash has joined #ruby
crowley has quit [Ping timeout: 272 seconds]
rose_nd_ash has quit [Ping timeout: 264 seconds]
rose_nd_ash has joined #ruby
roadt has quit [Ping timeout: 240 seconds]
roadt has joined #ruby
rose_nd_ash has quit [Ping timeout: 264 seconds]
rose_nd_ash has joined #ruby
jokester has quit [Ping timeout: 246 seconds]
jokester has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
prestorium has quit [Read error: Connection reset by peer]