Logo Rails Bling
Logo Inverted Logo
  • Tags
  • active_record
  • activerecord-tablefree
  • activerecord-transactionable
  • africa
  • agile
  • anonymous_active_record
  • archivist-client
  • authentication
  • benchmarking
  • bundler
  • cacheable-flash
  • celluloid-io-pg-listener
  • charity
  • controller_validator
  • csv_pirate
  • database
  • debug_logging
  • destination_errors
  • development
  • DevOps
  • dry_views
  • dvcs
  • Dynamoid
  • each_in_batches
  • email
  • environment
  • federation
  • flag_shih_tzu
  • floss
  • gem_bench
  • ghana
  • git
  • github
  • Go
  • homebrew
  • hooks
  • humanitarian
  • humorous_log_formatter
  • include_with_respect
  • java
  • letter_group
  • liberia
  • logging
  • management
  • month-serializer
  • nokogiri
  • oauth
  • oauth2
  • process
  • qt5
  • rack-insight
  • rack-toolbar
  • rails
  • rails_env_local
  • react-rails-benchmark_renderer
  • refugees
  • release
  • repatriation
  • require_bench
  • resque
  • resque-unique_at_runtime
  • resque-unique_by_arity
  • retired
  • rspec
  • rspec-block_is_expected
  • rspec-pending_for
  • rspec-stubbed_env
  • ruby
  • rubygems
  • rubyweekly
  • SAFe
  • sanitize_email
  • scrum
  • security
  • silent_stream
  • stackable_flash
  • status_tag
  • strict_states
  • subdomain-fu
Hero Image
Introducing each_in_batches

Performance Measured and Tuned Batch Processing of Records with Blocks in Rails. EachInBatches (Originally BolingForBatches) NOTE: I am resurrecting this code because I still have this recurring need, and Rail’s native batching doesn’t cut mustard. It is some of my most ancient code, and it isn’t pretty, but I hope to improve it over time. I often need to execute really large computations on really large data sets. I usually end up writing a rake task to do it, which calls methods in my models.

June 18, 2015 Read
Hero Image
Introducing destination_errors

Collect errors from multiple objects on a single object, especially useful with the Form Object Presenter Pattern. I’ll put something here soon.

April 8, 2015 Read
Hero Image
Introducing letter_group

Organize data results from raw sql queries (as with PGresult, or Dossier) intelligently. I’ll put something here soon.

April 8, 2015 Read
Hero Image
controller_validator

This Gem Is No Longer Maintained

November 20, 2014 Read
Hero Image
Maintaining flag_shih_tzu

Bit Fields for Active Record What is a bit field? https://en.wikipedia.org/wiki/Bit_field What is a bitwise operation? https://en.wikipedia.org/wiki/Bitwise_operation flag_shih_tzu supports both :bit_operator and :in_list query modes, but only :in_list can will utilize a database index. What does it look like? class Lead < ActiveRecord::Base include FlagShihTzu has_flags 1 => :warm_up_email_sent, 2 => :follow_up_call_made, 3 => :final_email_sent, 4 => :appointment_scheduled, 5 => :not_interested, # You can specify use any integer column to use for flags!

August 6, 2013 Read
Hero Image
Introducing gem_bench

Ruby Gemfile analysis. gem_bench is for static Gemfile and installed gem library source code analysis. gem_bench can also be used to trim down app load times by keeping your worst players on the bench. Gem: “Put me in coach!” You: ❨╯°□°❩╯︵┻━┻ Usage Works with Ruby >= 2.0 due to use of named parameters. Example! Getting tired of seeing this irb warning, perhaps? $ bundle exec rails console Loading staging environment (Rails M.

April 5, 2013 Read
Hero Image
Introducing dry_views

Enhancer of Rails’ content_for system. Allows defaults, and no_content_for overrides in partials. For Rails 3, 4. Why? Keep the views dry with content_for_with_default and friends! Complete flexibility in defining defaults and overrides. Remove most or all logic from views. Allow for no content to override a default. DryViews provides extensions to ActionView::Helpers::CaptureHelper, which is part of ActionPack: content_for_with_default no_content_for content_for (enhanced to play nice with the above methods) The rails rendering chain is sort of inside out so the template rendering happens first, and this is what makes it possible to override everything!

August 15, 2012 Read
Hero Image
Introducing sanitize_email

An Email Condom for your Ruby Server sanitize_email This gem allows you to override your mail delivery settings, globally or in a local context. It is like a Ruby encrusted condom for your email server, just in case it decides to have intercourse with other servers via sundry mail protocols. Summary It’s particularly helpful when you want to prevent the delivery of email (e.g. in development/test environments) or alter the to/cc/bcc (e.

November 10, 2009 Read
Hero Image
Introducing csv_pirate

For those engaged in the pillage and plunder of comma separated values. I needed a way to handily create CSVs anytime I want to because I have clients that ask for reports of data all the time. So I wrote a plugin and then turned it into a gem! The source is written in Piratey Ruby. So check my source =) http://github.com/pboling/csv_pirate Originally posted to my old blog Hero image (cropped) by Zoltan Tasi

March 4, 2009 Read
  • ««
  • «
  • 2
  • 3
  • 4
  • 5
  • 6
  • »
  • »»
Navigation
  • About
  • Skills
  • Experience
  • Projects
Contact me:
  • peter.boling a@t gmail.com
  • +1-925-252-5351

Toha Theme Logo Toha (tweaked by @pboling)
© 2024 Peter Boling
CC BY-SA 4.0
Powered by Hugo Logo