git-subtree pull complications

I had the same problem, and in my case it seems to be due to the initial subtree commit being merge-squashed into the master branch. Looking through the subtree source I found this: https://github.com/git/git/blob/master/contrib/subtree/git-subtree.sh#L224 It looks like subtree greps your git log for git-subtree-dir: foo but doesn’t find a suitable commit. Try git log –grep=”git-subtree-dir: … Read more

Entity Framework Merge Nightmare

Craig Stuntz does a good job of explaining that it is the designer related xml (the positions of entities and associations etc on the design surface) that causes most of the problems here. Conflict resolution within the edmx:Runtime element however, is very achievable. The best strategy for dealing with conflicts in the designer related xml … Read more

Merging multiple TypeSafe Config files and resolving only after they are all merged

The answer is to use ConfigFactory.parseResource() in place of ConfigFactory.load(). Here is the finished result private lazy val defaultConfig = ConfigFactory.parseResources(“conf/env/default.conf”) private lazy val environmentConfig = ConfigFactory.parseResources(“conf/env/” + env + “.conf” ) private lazy val userConfig = ConfigFactory.parseResources(“application.conf”) private lazy val config = ConfigFactory.load() .withFallback(userConfig) .withFallback(environmentConfig) .withFallback(defaultConfig) .resolve()

Merge two ActiveRecord arrays and order by created_at

You’re very close. Concatenating the arrays is done with the plus sign: materials = books + articles Sorting the combined array can be done by calling the sort_by method (mixed in from Enumerable) and passing in the attribute prefixed with &: materials.sort_by(&:created_at) This won’t be good performance-wise for large result sets. You might consider deriving … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)