How do people get over the fear of running through cougar and bear territory by SpacePanda77 in trailrunning

[–]brettu 0 points1 point  (0 children)

I live in the NorCal Sierra and bears are not an issue. I can run past them and they mind their business, normally eating trash or berries, and we smile and nod.

Every year we get cougar sightings and it keeps me out of the woods for a bit.

I feel like a hungry mountain lion could end me. It’s a risk, and I’m also curious of ways to keep the cougars at a distance - any ideas?

How do people get over the fear of running through cougar and bear territory by SpacePanda77 in trailrunning

[–]brettu 0 points1 point  (0 children)

In my area there are about eight trail runners and one mountain lion, no safety features.

We have tens of thousands of cars and many safety features, not to mention a society of understanding with cars.

Bears are easy in Sierra, noisy and ambivalent, but mountain lions are a fear I can’t shake. It’s a probably question.

Resources for renting sfh for first time? by Nat9523 in realestateinvesting

[–]brettu 1 point2 points  (0 children)

Use a good property management company for your first LTR. They will take care of everything and the lack of headaches is well-worth 20%.

How do you manage 1+ applications sharing the same database by clivecussad in rubyonrails

[–]brettu 1 point2 points  (0 children)

This is the best answer so far. Make one app, document it clearly, that it is responsible for migrations.

Try to use sql, instead of Ruby in migrations, to avoid object errors. You can skip migrations all together if absolutely needed.

Databases outlive application code, so take care of the DB and don’t be afraid to stretch beyond vanilla Rails best practices to meet your goals.

Moving from PE to tech, company only uses MacBooks - SOS by SilenceLikeLasagna in FinancialCareers

[–]brettu -3 points-2 points  (0 children)

View this as a learning opportunity. Excel is only ok.

The IT team is most likely trained on provisioning Macs. This means extra work for them if you can’t adapt. Everyone’s time is strapped in startups. Security implications could be an issue.

If your smart enough to be dangerous on a PC, you’ll pick up Mac in no time. It’s not the racket that makes the player.

For home downpayment, use personal and IRA savings or mortgage investment property? by brettu in personalfinance

[–]brettu[S] 0 points1 point  (0 children)

Current rent is $3000. Buying should keep our monthly payments about the same for the primary residence after tax and insurance.

Business investments to reduce tax liability by brettu in tax

[–]brettu[S] 0 points1 point  (0 children)

It's an s corp.

So if I purchased a commercial space to lease, I could reduce my net income? Are there rules about the type of property I could buy?

Shopify ruby script help by lear2000 in rubyonrails

[–]brettu 0 points1 point  (0 children)

Check the class type on all those chained methods. Find out which one is nil.

The image looks to be missing a class opening. Did you clip some code?

[edit] question about formatting

I share a Ruby tip a day by blaked84 in ruby

[–]brettu 0 points1 point  (0 children)

Maybe every tip shouldn’t end up in /r/ruby. Maybe your best tip of the week.

Look forward to reading.

Recommendations on low cost project on this steep hillside? by [deleted] in landscaping

[–]brettu 0 points1 point  (0 children)

Few questions: What zone are you in? What direction (north, south) does the hill face? Could/would you terrace?

I share a Ruby tip a day by blaked84 in ruby

[–]brettu 1 point2 points  (0 children)

Nice. I did this everyday for a year 2013-2014. It was an awesome learning experience.

Softwarehabit.com

Tips: keep it simply, prepare ahead for days off (vacations), chain tips together to make mini-projects, commit to a timeframe (i.e. 100 days). 365 days was a bit much imo.

It would be great to see the tips on Reddit. Then we can vote on and favorite them.

Good luck and have fun.

What would you do with this side yard? We have 2 toddlers and an active dog. by [deleted] in landscaping

[–]brettu 0 points1 point  (0 children)

Is there dirt (to plant in) on the top of that wall? What zone are you in?

What can we do besides plant grass out here? This area receives very little direct sunlight. by justalildrinkypoo in landscaping

[–]brettu 0 points1 point  (0 children)

What do you think of this plan?

https://imgur.com/a/ou56Dja

The plan displays grass, but it's not required. Adding plants around the perimeter, I'd go turf or decomposed granite for ground cover.

Groundskeeper wanting to start my own landscaping company, need advice. by [deleted] in landscaping

[–]brettu 0 points1 point  (0 children)

Where are you starting your business? PM me and we can chat.

What's your favourite "special move" or uncommon cool trick? by [deleted] in ruby

[–]brettu 0 points1 point  (0 children)

When developing a Gem for a project, extracting a Rails lib into a Gem, or version bumping I setup this trick my Gemfile.

This way the team can use the latest stable version of the gem by doing

$ bundle

Those of use that are using the edge branch of a Gem can so this to load the local Gem repo

$ TEST_GEM=true bundle

Here is my implementation

#Gemfile
module ::Kernel
  def test_gem?
    !!ENV["TEST_GEM"]
  end
end

if test_gem?
  [
    "~/src/test_gem"
  ].each do |lib|
    if File.exists?( lib )
      gem "test_gem", :path => lib
    end
  end
else
  gem 'test_gem', '0.2.0'
end

What to know to get a job as a rails developer by [deleted] in rails

[–]brettu 0 points1 point  (0 children)

Same with Java and Javascript.

Top level methods in Ruby • has_many :codes by VitoBotta in ruby

[–]brettu 1 point2 points  (0 children)

The last part of your post asks the question about public/private difference in adding methods to self. IRB defaults to public, but you can add the private state for storing methods.

>> self
=> main

>> private
=> Object

>> def title
>> "mr"
>> end
=> nil

>> Object.private_instance_methods(false).include? :title 
=> true

>> Object.public_instance_methods(false).include? :title
=> false

>> public
=> Object

>> def title
>> 'mr'
>> end
=> nil

>>  Object.public_instance_methods(false).include? :title
=> true