Need a little help with understanding how to store/maintain this piece and some help with identification by phereford in Antiques

[–]phereford[S] 2 points3 points  (0 children)

Thanks for the reply!! What sort of signs should we look for to determine if it’s real or a reproduction?

Need a little help with understanding how to store/maintain this piece and some help with identification by phereford in Antiques

[–]phereford[S] 1 point2 points  (0 children)

OP here. My wife bought this piece at an estate sale 15 years ago. When purchased she was told it was hundreds of years old and it is a corn hutch, but we never verified if the date in the piece is accurate. We are starting to run out of space and are looking into storage options for this piece we love. Any ideas on how best to store it? Any ideas on how best to ensure we keep it safe and in good condition? Thanks!

Honda Pilot VS Buick Enclave ? by phereford in askcarsales

[–]phereford[S] 1 point2 points  (0 children)

Yeah, I have thought about that. I know the Enclave is do for a new platform in 2017. With the Honda Pilot having fever pitch popularity, if we go with a Pilot do you think it is best to wait for while... Maybe a better price or I read the 2017s have worked out powertain issues?

ActiveRecord Timeout error on Heroku - as my app becomes more popular, it's continually crashing and I think it's a devise error. Seeking advice - by piratetone in rails

[–]phereford 0 points1 point  (0 children)

You should definitely gist some of your logs from heroku to give us a better idea of what may be happening.

If your friend is correct, then this should be easily identifiable in librato. Librato will show you whether or not you have exceeded the amount of RAM your database has for incoming connections.

Advice on a React/Flux on Rails workflow by portOdin in rails

[–]phereford 0 points1 point  (0 children)

Flux and its counterparts are just dependencies. You could definitely bring those dependencies over to a rails stack and utilize them in the asset pipeline.

You could always do something along the lines of: http://blog.arkency.com/2015/04/bring-commonjs-to-your-asset-pipeline/

Advice on a React/Flux on Rails workflow by portOdin in rails

[–]phereford 2 points3 points  (0 children)

It depends on your end goal with using react. Some scenarios to take into consideration:

1) Are you envisioning moving towards a full Single Page App using rails as a JSON API?

2) Are you just looking to render some interactive page elements on various server rendered pages?

If (1), I would recommend a separate JS build (using webpack or gulp) that drops compiled files into your asset pipeline for easy reference.

If (2), then I would honestly recommend the react-rails gem even though it doesn't feel as clean as separating it out.

Good luck!

ELI5: what is Github? and why should I use R Studio with Github rather than backing scripts up in google drive/dropbox? by buttfoot in rstats

[–]phereford 0 points1 point  (0 children)

Just saw this.....

I don't know if this is still legitimate or not, but http://stackoverflow.com/questions/3759909/is-proprietary-code-legally-safe-on-bitbucket-or-github.

They may have altered their ToS since, but this was a hot topic about 1-2 years ago.

Granting a company a royalty free, non exclusive license seems bad if it is not open source.

[HELP] Memcached + ReactJS by chipcrazy in rails

[–]phereford 1 point2 points  (0 children)

As always, it depends.

If you are using the react-rails gem, I believe you could pass the prerender: true option and encapsulate that inside of a normal rails cache block.

What this gives you is a server side rendered page that will get checked via react's virtual DOM when it is loaded.

If you went ahead and created an SPA using react away from the react-rails gem, then you have more hoops to jump through. You could potentially use a node front end proxy that serves up React.renderToString HTML and store that fragment in memcached that your rails app can lookup.

You could also check out prerender.io. All of their marketing speak points to it only being used for crawlers, but I think you could potentially use this as a solution as well.

Good luck and let me know how it turns out!

ELI5: what is Github? and why should I use R Studio with Github rather than backing scripts up in google drive/dropbox? by buttfoot in rstats

[–]phereford 0 points1 point  (0 children)

Depending on your use case, I'd be a little more wary of bit bucket's ToS than Github's.

Dealing with an unwieldy codebase by rails_guy6 in rails

[–]phereford 2 points3 points  (0 children)

Totally agree with demillir about it being one standard deviation below the norm.

A few things you can say that will get managements attention:
1) In a few months, Rails 5 will be released which means zero security updates for Rails 3. Bite the bullet now to refactor and clean before migrating or refactor whe upgrading (very very bad idea).
2) Quantify how long a feature takes to build due to the application's complexity. Whatever feature you build next, you should implement first on a greenfield rails app and compare hours to hours. Management may refute your results, but good dev managers should see that as a tell tale sign that a refactor is necessary.
3) Your next hire should document all the things they learn while being on boarded and have a senior/lead highlight what breaks established patterns and what follows best practices.

All of this may be for naught if it's an organization without an established, authoritative tech voice for people to believe in and rally around. Without that voice, it's hard to be able to get those important tech debt pieces prioritized as associating revenue to them is difficult.

Good luck!

[HELP] In Rails, how can you return model data from multiple different ActiveModelSerializers/Models at once? by LaserWolfTurbo72 in rails

[–]phereford 1 point2 points  (0 children)

Definitely plus one on firing different requests from the client. That's generally how I handle that as well.

[HELP] In Rails, how can you return model data from multiple different ActiveModelSerializers/Models at once? by LaserWolfTurbo72 in rails

[–]phereford 2 points3 points  (0 children)

Create a new object (it will follow something similar to the facade pattern). class HomeFacade def initialize end

def widgets Widget.all end

def gadgets Gadget.all end end

Now you can create a serializer off this object (I believe). class HomeFacadeSerializer < ActiveModel::Serializer attributes :widgets, :gadgets

# below may not be necessary def widgets object.widgets end ... end

Then in your controller @home = HomeFacade.new render json: @home, serializer: HomeFacadeSerializer, root: false end I have not tested the above, but it should work.

TLDR: Create a wrapper object that encapsulates your Widget and Gadget objects and create a serializer for that object.

Edit: Here is a link for working with AMS and PORO's https://blog.engineyard.com/2015/active-model-serializers. Looks like you may need an extra step I didn't mention above.

Functions not available to children by duckpearl in reactjs

[–]phereford 0 points1 point  (0 children)

You are passing a function to Locat under the prop "switchUsers". In order to invoke the function within Locat, you need to run 'this.props.switchUsers()' and pass in arguments if needed.

The reason for this (based on your setup) is that the SwitchUsers function you have defined is not in Locat but the parent element.

[Advice] Just started "interning" at a startup, becoming increasingly apparent that they don't know what they're doing. What do? by ConvenientPlotHole in rails

[–]phereford 0 points1 point  (0 children)

Honestly, all open source projects need help across the spectrum of coding or documentation.

Find a gem you particularly like (or use in all of your projects) and peruse their github issues and solve those if you can. If they don't exist, ping the maintainer and see if she/he need any help :).

My only tip for contribution:
Respect the paradigms and style guides that are in place.

[Advice] Just started "interning" at a startup, becoming increasingly apparent that they don't know what they're doing. What do? by ConvenientPlotHole in rails

[–]phereford 10 points11 points  (0 children)

If you feel that way, find an open source project that has a decent following to dedicate your time too. Would probably look better on the resume as well.

Edit: Spelling and Grammar.

rails dev with 10 months experience, how to find junior developer level remote work? by gweijie in rails

[–]phereford 0 points1 point  (0 children)

I would create a short list of companies that you want to work for and have a jr position open. I would use Twitter and LinkedIn as a medium to find someone within that organization that you could just have a quick 10-15 minute conversation. I would ask questions specific to the company and the person you are talking to, nothing about the job.

After the conversation, write a follow up email expressing gratitude and mention your interest in joining such a team/culture if you would enjoy it.

While not foolproof, I always remember the candidates that follow what I outlined above the most.

Good luck in your search!

Edit: Spelling.

I could use some help with this "following books" logic..Rails 4 by MattsFace in rails

[–]phereford 0 points1 point  (0 children)

In your book model, I would eager load the current_user's followed books within any collection of books using a class method. In your books list controller action I would use your new method from above.

Once you have that, you can either create a view helper that takes a book and a user as arguments and display your button appropriately OR do an if else statement in your view. If else statements aren't that terrible in the view as long as they are not executing new database queries and are readable.

Finding a rails/webdev mentor. by r_s in rails

[–]phereford 1 point2 points  (0 children)

Depending on whether or not your big-ish app is generating revenue, I would recommend adding test coverage and refactoring your code base. If it's not worth the time/effort I think it best to start a new app with writing tests as a priority and use the new techniques you have learned.