Explore >> Select a destination


You are here

janko.io
| | blog.arkency.com
6.4 parsecs away

Travel
| | [AI summary] The authors explain how they discovered that using Ruby's built-in .hash method for PostgreSQL advisory locks was unreliable across separate MRI processes, leading to race conditions, and detail their solution of creating a custom PostgreSQL function to generate consistent 64-bit keys.
| | samsaffron.com
5.7 parsecs away

Travel
| | Sam's Spot - Sam saffron's web log
| | tenderlovemaking.com
8.1 parsecs away

Travel
| | File.open('somefile.txt', 'wb') do |fh| # Open the file fh.write "hello world" # Do some work with the file end # Close file when block returns ActiveRecord::Base.establish_connection( :adapter => "sqlite", :database => "path/to/dbfile") connection_handle = ActiveRecord::Base.connection def retrieve_connection_pool(klass) pool = @connection_pools[klass.name] return pool if pool return nil if ActiveRecord::Base == klass retrieve_connection_pool klass.superclass end spec = ActiveRecord::Base.specificiation ActiveRecord::ConnectionPool.open(spec) do |conn| ... end spec = database_a ActiveRecord::ConnectionPool.open(spec) do |conn| User.find_all end spec = database_b ActiveRecord::ConnectionPool.open(spec) do |conn| User.find_all end # Retrieve the connection as...
| | johna.compoutpost.com
43.5 parsecs away

Travel
| With the release of Bootstrap Icons v1.2, there is now an easy-to-use web font. Here's how you can use the new web font in your web pages.