The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
How to use trained Keras and TensorFlow machine learning models within Ruby on Rails
So you’ve built and tuned your machine learning model using Keras with TensorFlow backend. Now you want to deploy it to production so it’s available for use within Ruby on Rails. [more inside]
tty-pie_chart - draw pie charts in your terminal
tty-pie_chart draws a pie chart in your terminal. You can specify each slice color and fill character. Next to the pie chart you can display a legend with a name and percentage value for each data item. Enjoy!
Ruby Conference MY 2018
Dropping by to promote Ruby Conference MY 2018 happening on Oct 25 and 26 in Kuala Lumpur, Malaysia. Early bird tickets are only available until end of this month. Grab the tickets before it runs out! Remember to check out our great line up of speakers and buy the ticket! https://rubyconf.my/
csvrecord - read in comma-separated values (csv) records with typed structs / schemas
Hello, I’ve put together a new library / gem, that is, csvrecord - that lets you read in comma-separated values (csv) records with typed structs / schemas e.g. use beers = Beer.read( 'beer.csv' ).to_a; beers[0].brewery instead of rows = CSV.read( 'beer.csv', headers: true ); rows[0]['Brewery'] and so on. Why care about CSV? It’s the world’s most popular tabular data interchange format in text :-).
Happy data / text wrangling with ruby. Cheers. Prost.
PS: For some getting started .csv datafiles, see the /football.csv collection
(incl. English Premier League, Bundesliga, Seria A, Ligue 1, European Cup, etc.).
Why you shouldn't run multiple apps on the same server
I’m writing about deploying Rails from a sysadmin perspective, here is why putting everything on the same server is a bad idea: Read more
Ruby 2.6 KeyError#initialize accepts message, receiver, and key as arguments
Learn about KeyError#initialize method which accepts :message, :receiver and :key as options to set message, receiver, and key on the KeyError object. Read more
Proc vs Lambda
lambdas are strict on argument number. If the call doesn’t respect the exact number of arguments then an ArgumentError is raised… SEE MORE
4 steps process to drop a table in production
In this post, we will see a four steps process how to drop a table from production without running into weird issues. [more inside]
Migration from the Wordpress to the own Ruby blogging engine - pros and cons
After 6 months of blogging using the Wordpress engine, I decided to switch to my own Ruby blogging engine that I created from scratch. This decision has many advantages and disadvantages so I want to share my experiences in case you will be wondering in the future what solution for blogging you should use. READ MORE
any_login gem - login as any user in development (or even in prod)
https://github.com/igorkasyanchuk/any_login - login as any user in the system. today I’ve pushed a minor update, mostly with new travis ci config and CSS styles. Please try it. [more inside]
Invalid or incomplete POST parameters
This was an interesting error: [more inside]
Error Handling in Ruby: Part I
In this article, we’re going to explore the following topics:
Help us to provide translations for Ransack gem!
Hey everyone! The ransack gem ( https://github.com/activerecord-hackery/ransack ), very popular in Ruby community, needs help to provide translations for many locales. Send us a pull request with translations of any locale you know to make Ransack more accessible in different languages! [more inside]
CodeFund has raised over $36,000 for OSS
July 8 marks the 1 year birthday of CodeFund (previously Code Sponsor). In the past year, we’ve raised over $36,000 for Open Source (including ruby related gems/sites). If you have a ruby gem website or blog, we’d love to help you as well! [more inside]
How to Speed Up Your Ruby on Rails App
Let’s see what you can do to optimize the performance of a Ruby on Rails app and speed it up. https://yalantis.com/blog/how-to-speed-up-your-ruby-on-rails-app/
Measuring Chronic Pain Outcomes with Ruby and Twilio
My recent talk about tackling a private problem with the help of Ruby is now available online: https://www.youtube.com/watch?v=ZtBckwQaEBA
csvutils - tools & scripts for working w/ comma-separated values (csv) datafiles
Hello, I’ve put together a new library / gem, that is, csvutils - a collection of tools ‘n’ scripts for working with comma-separated values (csv) datafiles - the world’s most popular tabular data interchange format in text :-). Command-line tools include: csvhead, csvheader, csvstat, csvsplit, csvcut and more. It’s just a start. Happy data / text wrangling with ruby. Cheers. Prost. PS: For some getting started .csv datafiles, see the /football.csv collection (incl. English Premier League, Bundesliga, Seria A, Ligue 1, European Cup, etc.).
40 Best Ruby On Rails Companies Websites [State For 2018]
Carefully curated list of most famous & best-designed websites and web applications based on Ruby on Rails framework. Looking for inspiration? You found the right piece of content. https://ideamotive.co/blog/40-best-ruby-on-rails-companies-websites/
Ruby Command Line Options
In this article, we’re going to explore the following topics:
Dependency Injection Containers vs Hard-coded Constants
Dependency injection (DI) is a somewhat contentious topic in the Ruby community. Some argue that DI containers are unnecessary complexity cargo-culted from Java. Some argue that DI is the path to cleaner, simpler, more-testable code. In this article, I want to compare and contrast two approaches: hard-coded constants versus using a DI container. The difference might not be as big as you think!
Check your sidekiq performance and stats
https://github.com/igorkasyanchuk/sidekiq_log_analyzer if you need to check the performance of sidekiq worker (number of runs, duration, time).
Rutie 0.3.4 released! “The Tie Between Ruby and Rust.”
Now with full encoding support and to/from bytes for Ruby strings. Processing strings and working with foreign encodings for Ruby in Rust has never been easier. [Rutie]