LF API doc tool
Looking for #API #documentation #tool. Easy to maintain, easy to use. Not @Swagger please! #rails
dirt enthusiast
sheepfilms
No title available
One Nice Bug Per Day

Discoholic 🪩
NASA
d e v o n
tumblr dot com
DEAR READER
Not today Justin
todays bird
Keni

izzy's playlists!

roma★

Andulka
Sweet Seals For You, Always

JBB: An Artblog!
Stranger Things

shark vs the universe
styofa doing anything
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from Serbia

seen from Albania

seen from Malaysia
seen from T1
seen from United States

seen from Indonesia

seen from Malaysia
@prokopsimek-blog
LF API doc tool
Looking for #API #documentation #tool. Easy to maintain, easy to use. Not @Swagger please! #rails
Parsing name from email address
Do you want try to parse name of user from email address?
Try this gem: https://rubygems.org/gems/parse_name_from_email
Usage:
# getting email address ParseNameFromEmail.get_email_name('[email protected]') # => 'john-snow' ParseNameFromEmail.get_email_name('[email protected]') # => 'john-snow+nickname' # parsing name from email address ParseNameFromEmail.parse_name_from('[email protected]') # => 'John Snow' ParseNameFromEmail.parse_name_from('[email protected]') # => 'John Snow' ParseNameFromEmail.parse_name_from('[email protected]') # => 'John Snow' ParseNameFromEmail.parse_name_from('[email protected]') # => 'John 123 Snow' ParseNameFromEmail.parse_name_from('John Snow <[email protected]>') # => 'John Snow' # validating RFC format of email ParseNameFromEmail.valid_rfc_format?('[email protected]') # => false ParseNameFromEmail.valid_rfc_format?('John Snow <[email protected]>') # => true # if config.friendly_plus_part = true ParseNameFromEmail.parse_name_from('[email protected]') # => 'John Snow (Nickname 123)' # if config.friendly_plus_part = false ParseNameFromEmail.parse_name_from('[email protected]') # => 'John Snow Nickname 123' # batches string_with_emails = 'John Snow <[email protected]>, [email protected]' ParseNameFromEmail.parse_names_from(string_with_emails) # => ['John Snow', 'Alice 123'] string_with_emails = '[email protected], [email protected]' ParseNameFromEmail.parse_names_from(string_with_emails) # => ['Lily (black)', 'Alice 123'] # advanced parsing string_with_emails = '[email protected], [email protected]' ParseNameFromEmail.parse_emails_with_names_from(string_with_emails) # => {'[email protected]' => 'John Snow', '[email protected]' => 'Lily (black)'}
Blogger > Tumblr migration
It's super easy! Just use http://www.bloggertotumblr.com/ !
Softwarová sebevražda aneb "na to není čas" ve vývojářské firmě
Narazil jsem na internetu na velmi zajímavý článek, který mluví poměrně ze života. :) Pojednává o vývojářské firmě ignorující klasické standardy jako code review, refactoring, test driven development atp., čímž dochází k neustálému fixování bugů a nedostatku času na vývoj. Doporučuju si článek přečíst: http://blog.think-forth.com/2015/11/30/softwarova-sebevrazda/
Alfred for Linux - Albert released!
Do you know Alfred for OS X? Alfred has a brother! His name is Albert and it's omnilauncher for Linux!
Installing albert using package managers
Currently albert is not in any of the major repositories. At least some user repositories contain it. Hopefully there will be more in future:
Archlinux (Official)
yaourt albert
Ubuntu (Thanks to flexiondotorg)
sudo apt-add-repository ppa:flexiondotorg/albert sudo apt-get update sudo apt-get install albert
Developing a RubyGem using Bundler
Did you know that you can use Bundler for not only gem dependency management but also for writing our own gems? It's really easy to do this and Bundler provides a couple of things to help you along this path. Read more: https://github.com/radar/guides/blob/master/gem-development.md
Speed up with Materialized Views on PostgreSQL and Rails
How to implement materialized views in PostgreSQL, utilizing them in a Ruby on Rails application. PostgreSQL, known commonly as Postgres, is an multi-platform, open source SQL database system. It is one of the most popular database systems and second-most used open source database in the world. The development for Postgres is being done under the PostgreSQL Global Development Group. If you’ve never used Postgres I’d recommend trying it on your next project, it’s really cool. The tutorial is split into three parts as follows:
What is a Database View.
What is a Materialized View.
How to add a Materialized View to a Rails application.
Read more: http://www.sitepoint.com/speed-up-with-materialized-views-on-postgresql-and-rails/
How to Build a Rails 5 API Only and Ember Application From Scratch
Rails API has been merged into Rails master branch. There is a how-to on building a Rails API app and integrating it with a simple Ember app. There also is a redux from one year before the merge, which explains how an Ember and Rails API app could be built before the Rails API merge. Read more: http://aviav.github.io/blog/2015/09/21/how_to_build_a_rails_5_api_only_and_ember_application_from_scratch/
Cross-Site Request Forgery and Rails
More about the Cross-Site Request Forgery e.g. for API here: https://rorsecurity.info/portfolio/cross-site-request-forgery-and-rails
clipboard.js
Modern copy to clipboard. No Flash. Just 2kb https://github.com/zenorocha/clipboard.js Why? Copying text to the clipboard shouldn't be hard. It shouldn't require dozens of steps to configure or hundreds of KBs to load. But most of all, it shouldn't depend on Flash or any bloated framework. That's why clipboard.js exists.
Preload, Eagerload, Includes and Joins
Rails provides four different ways to load association data. In this blog we are going to look at each of those: http://blog.bigbinary.com/2013/07/01/preload-vs-eager-load-vs-joins-vs-includes.html
A couple of Airbrake tips
No software is complete without bugs and no Rails application is complete without proper exception tracking. In most cases we choose Airbrake to collect those exceptions for us. Here’s a couple of tips to make Airbrake more useful. http://railsware.com/blog/2012/06/21/a-couple-of-airbrake-tips/
Building a JSON API with Rails 5
How to effectively build api with Rails 5? Read more: http://blog.codeship.com/building-a-json-api-with-rails-5/
Most Popular Ruby CookBooks on GitHub
Here is the most Ruby popular cook books ranked by the number of stars
1. martinisoft/chef-rvm
Chef cookbook for RVM. Recipes for installing system wide and by user. LWRPs to manage Rubies, gems, gemsets, wrappers.
502 Stars & 327 Forks
2. IconoclastLabs/rubymotion_cookbook
RubyMotion iOS Cookbook.
347 Stars & 42 Forks
3. chef-rbenv/chef-rbenv
Chef cookbook for rbenv. Manages rbenv and its installed rubies. Several LWRPs are also defined.
289 Stars & 198 Forks
4. poise/application_ruby
Development repository for Opscode Cookbook application_ruby.
105 Stars & 142 Forks
5. fnichol/chef-ruby_build
Chef cookbook for ruby-build. Manages the ruby-build framework and its installed rubies. A LWRP is also defined.
102 Stars & 68 Forks
6. elm-city-craftworks/practicing-ruby-cookbook
Chef cookbook for practicingruby.com.
73 Stars & 17 Forks
7. vishnugopal/rubymotion-ios-sdk-development-cookbook
A cookbook example from the iOS SDK Development book in RubyMotion.
33 Stars & 0 Forks
8. rosstimson/chef-ruby_install
Chef cookbook for installing ruby-install.
21 Stars & 18 Forks
9. chef-cookbooks/ruby
Chef Cookbook for Managing Ruby from Packages.
20 Stars & 30 Forks
10. IconoclastLabs/rubymotion-android-cookbook
Awesome rm cookbook examples for android.
18 Stars & 4 Forks Source: http://www.sotexa.com/ruby-cookbook-github-w-12024/
Rails Examples and Tutorials
You can found many Rails examples and tutorials on Github: https://github.com/RailsApps
How to Solve Coding Anti-Patterns for Ruby Rookies
Do you know what difference is between "and" and "&&"? How to make cleaner nesting of Ifs? Read this! http://www.sitepoint.com/how-to-solve-coding-anti-patterns-for-ruby-rookies/
Elasticsearch gems and modules, clearly explained
Maybe 3 weeks ago I didn't know nothing about implementation of Elasticsearch. This source about Elasticsearch gems is really very helpful for me: http://hakunin.com/elasticsearch-gems