rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
mossplix has quit [Remote host closed the connection]
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
arzWZM has quit [Ping timeout: 256 seconds]
mossplix has joined #ruby
venmx has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
arzWZM has joined #ruby
lxsameer has joined #ruby
mossplix has quit [Remote host closed the connection]
hiroaki has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
_aeris_ has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
ChmEarl has joined #ruby
rose_nd_ash has quit [Quit: Leaving...]
konsolebox has joined #ruby
mossplix has joined #ruby
lucasb has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
SeepingN has joined #ruby
roadie has joined #ruby
ellcs has joined #ruby
<Tuor>
Hi, this is my code right now: https://paste.ubuntu.com/p/PHFVMZxWDj/ I would like to now search in the names, old_names, ipv4s, if a string matches. The purpose of the script is: a user can enter a part of an ip address or name and get listet all matching servers. :)
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
skape has joined #ruby
<adam12>
Tuor: Since you're working with Strings, it should be easy enough. Maybe the Servers class has a search method that accepts a term and asks all the servers if they might match that term.
Mikaela has quit [Quit: Ping timeout (120 seconds)]
alfiemax has quit [Ping timeout: 240 seconds]
Mikaela9 is now known as Mikaela
konsolebox has quit [Read error: Connection reset by peer]
<adam12>
Tuor: Yeah I like it.
<adam12>
Tuor: I'd look at Enumerable#select. Maybe you want to select if name.match(pattern) or description.match(pattern). etc :)
<Tuor>
My csv data seems to not be complete, some ipv4 addresses are missing, now I got a "undefined method `match' for nil:NilClass (NoMethodError)". I have to skip the check, if it does not have a match method...
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
xco has joined #ruby
<havenwood>
phykos: The trunk branch doesn't always compile, fwiw.
<havenwood>
phykos: It's unstable.
<havenwood>
phykos: Does 2.7.1 compile?
<havenwood>
phykos: What distro?
<havenwood>
xco: I have an Ikea IDÅSEN that's sturdy and functional.
drincruz has joined #ruby
rose_nd_ash has quit [Quit: Leaving...]
dionysus69 has quit [Read error: Connection reset by peer]
<adam12>
xco: I use an Ikea tabletop (solid wood) and a sit-stand base from PrimeCables.ca.
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
<xco>
havenwood adam12 do you use this daily? How many hours at a time? does is help in lower back pain relief?
rose_nd_ash has joined #ruby
teclator has quit [Ping timeout: 256 seconds]
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Client Quit]
<adam12>
xco: I use the desk daily _but_ I stand very little lately. It's hard to gain a rythm. It was easier when it was _always_ a standing desk (the desk before this one).
<adam12>
xco: for my lower back pain, I make a conscious effort to keep my feet planted on the floor. If I'm messing around (browsing HN/etc), I'm notorious for putting my feet up and sitting sideways, messing up the back.
phykos has quit [Quit: Leaving]
<leftylink>
but my feet dno't feel as comfortable. I wonder if a mat would help
<adam12>
fatigue mats definitely help. Wearing shoes can help too.
<leftylink>
you know, somehow I would not have thought of the shoes thing
<havenwood>
No, not shoes!
<adam12>
leftylink: It feels strange to wear them in the house, at least where I am (cultural, etc). Maybe it's more common in other areas. But it definitely helps.
<havenwood>
Lems are nice if you must stuff your feet into foot boxes.
<adam12>
xco: There's also different chair options like the kneeling chair or balance ball, if you're so inclined.
<xco>
adam12 shoes? hm. i never would have thought of that...
<adam12>
I feel like RSI is going to get me before the back pain.
<havenwood>
xco: I actually lie down more than standing. ¯\_(ツ)_/¯
<havenwood>
xco: I just prop my computer so I can type.
<havenwood>
xco: I don't really use the standing desk properly. I do like my wobbly stool to sit.
<xco>
havenwood i lied down too but i have a bigger screen while at my desk :(. serious dilemma... to lie or not to lie :(
<havenwood>
xco: I'm waiting on my 16" laptop to replace this 15" with broken keys. I'll type so much faster without all the missed strokes.
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
<xco>
havenwood preach, i have some missed keys too so i bought the magic keyboard to replace it :D
Sauvin has quit [Read error: Connection reset by peer]
gix has joined #ruby
alfiemax has quit [Remote host closed the connection]
stryek has quit [Quit: Connection closed for inactivity]
<adam12>
leitz: Inside your Gemfile, just put `gemspec` after `source`.
<adam12>
leitz: You can mix and match too; keep development dependencies in Gemfile after/before gemspec, and just production dependencies in .gemspec
bambanx has joined #ruby
<leitz>
adam12, thanks! I'm giving it a go, but it's been a long day.
<leitz>
I've avoided bundler for as long as possible, but a friend wants to help with some code, and getting everything set up with Ruby is harder for him.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greypack has joined #ruby
<adam12>
leitz: Bundler has it's warts but I'm not sure I could ever go back..
drincruz has quit [Ping timeout: 240 seconds]
<leitz>
adam12, is bundler just used for development? That is, if I install "my_gem", and it installs and dependencies, is bundler needed at that point?
bambanx has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
zacts has quit [Client Quit]
zacts has joined #ruby
<CommunistWolf>
it's mostly for development. there is a deploy mode that packages all the dependent gems up, but I've never seen anyone use it
<adam12>
CommunistWolf: I've noticed the Eventide project uses bundler --standalone.
<adam12>
leitz: Development / application deploys mostly.