orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duds- has joined #ruby
gr33n7007h has joined #ruby
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
ur5us has joined #ruby
duds- has quit [Ping timeout: 276 seconds]
duds- has joined #ruby
goldfish has quit [Ping timeout: 260 seconds]
ua_ has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
Rounin has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 260 seconds]
CrazyEddy has quit [Ping timeout: 245 seconds]
CrazyEddy has joined #ruby
kaleido has quit [Quit: peas]
kaleido has joined #ruby
tv- has quit [Quit: WeeChat 3.0.1]
tv- has joined #ruby
tv- has quit [Client Quit]
tv- has joined #ruby
dviola has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
duds- has quit [Ping timeout: 276 seconds]
crankharder has joined #ruby
duds- has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
ua_ has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
<mrus>
hey there.. trying to do a bundle install in a newly created rails project, unfortunately it fails when "Installing racc 1.6.0 with native extensions" with an error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
<mrus>
I've tried removing build.racc from bundle config but it still won't do the trick
<mrus>
It also says: /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
<mrus>
however, when I run `gem install racc -v '1.6.0'` the process completes...
<mrus>
my bundle path is configured to 'vendor/bundle'
howdoi has quit [Quit: Connection closed for inactivity]
_ht has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
_ht has quit [Remote host closed the connection]
reset has joined #ruby
<dviola>
adam12: any chance you're familiar with jeremyevans's rack-unreloader?
Skyfire has quit [Quit: brb ffs, frickin configuration]
Skyfire has joined #ruby
hansolo has joined #ruby
Rounin has joined #ruby
Skyfire has quit [Quit: brb ffs frickin configuration]
Skyfire has joined #ruby
fercell has joined #ruby
steerpike has joined #ruby
<steerpike>
hi
<steerpike>
how do i reference a hash value by using a variable as the key name?
<steerpike>
ie
<steerpike>
id = some_value;
<steerpike>
puts data['users'][id]['name']
<steerpike>
i keep getting undefined method `[]' for nil:NilClass
<steerpike>
oh man
<steerpike>
it needed to be a string
<steerpike>
man, that's annoying
<steerpike>
basically had to do.. puts data['users'][id.to_s]['name']
<sam113101>
well, you can have Integers as hash keys, too
<Rounin>
Does it have to be a string, though? Just going from intuition, one could guess that data['users'][id] didn't return anything, because id and the original key were only string-equal, not actually identical
<Rounin>
In Java, one would override .hashCode() and .equals() to solve that... I don't remember what the Ruby equivalent is, but there's probably something
<TomyLobo>
I'm running this headless, there is no thing i can click in to set things up
<weaksauce>
you have to download it per step two in that link
<weaksauce>
and set it up correctly
<TomyLobo>
I have installed the "chromium-chromedriver" ubuntu package. i guess that's that step
<TomyLobo>
oh, I know why it's not working. that package uses a snap package. snap, by default, does not work with home directories outside /home
<TomyLobo>
a fact that is very annoying and already cost me some hours at work once
<TomyLobo>
isn't it great, that ubuntu is replacing everything by snaps?
<adam12>
TomyLobo: If you're not in love with selenium, I found cuprite much simpler. It drives chrome directly.
<adam12>
(as an aside, it doesnt' appear related to your immediate issue)
<TomyLobo>
yeah i need to figure out this snap issue
<adam12>
I'm not sure how much time I've lost in getting headless testing to work (along with database transactions and a million other things it affects). Probably a few days at least.
<TomyLobo>
yeah, those who do not learn their database transactions are doomed to repeat their mistakes over and over again
<TomyLobo>
basically if you first do a read-only lock and then later upgrade to a write lock on the same row, you'll get deadlocks
<TomyLobo>
especially great if you have a big legacy project and you have no idea which parts did and did not obey this principle
<TomyLobo>
actually i just remembered out that the snap issue I thought I remembered solving, was instead an issue with a chroot jail bootstrapping and management tool called schroot, which has similar issues with non-/home homes.