steven@ubuntu:~/projects/rails-server-template$ berks vendor
W, [2017-02-23T15:50:00.037000 #1151] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-02-23T15:50:00.037197 #1151] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-02-23T15:50:00.037330 #1151] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-02-23T15:50:00.037456 #1151] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Att
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hitting a problem that actions aren't firing from markup dynamically added inside a controller with `insertAdjacentHTML`. Wondering if anyone has any suggestions? | |
Details: | |
We have a controller that lets the user edit the heights of air conditioners on a roof (its for a solar panel app). For each air conditioner, we have an "air conditioner div" that has has a target ("heightContainer") and an input with an action ("input->heights-form#updateHeight"). | |
The air conditioner div looks like: | |
``` | |
.form-group.col-6{ data: { layout_editor__air_conditioner_heights_form_target: "heightContainer", uuid: ac.uuid }} | |
%div{ class: class_names('field_with_errors': ac.height.blank?), data: { identifier: 'fieldWrapper' } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.modifyInteraction = new Modify({ | |
// source: this.vectorSource, // all features in vector source | |
features: this.selectInteraction.getFeatures(), // only selected features | |
condition: (event) => { | |
// clear out all selectedVertex properties on all features | |
this.vectorLayer.getSource().forEachFeature((feature) => { | |
feature.set("selectedVertex", undefined); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano-db-tasks' | |
# config valid only for current version of Capistrano | |
lock '3.7.1' | |
# Change these | |
server 'myproject.com', port: 54321, roles: [:web, :app, :db], primary: true | |
set :repo_url, '[email protected]:steven_chanin/myproject.git' | |
set :application, 'myproject' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server | info: POST /api/v1/users | |
client | POST /api/v1/users 400 77.773 ms - 686 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server | | |
server | [32minfo: [39m[90mStarting app...[39m | |
server | | |
client | version: 0.2.3 | |
client | | |
client | A new version of ember-cli is available (0.2.7). To install it, type ember update. | |
client | Could not find watchman, falling back to NodeWatcher for file system events. | |
client | Visit http://www.ember-cli.com/#watchman for more info. | |
server | Code did not pass lint rules | |
server | /home/steven/Projects/how-to-sane/server/api/controllers/AlbumController.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#javascripts/models/cleints.js.coffee | |
App.Client = DS.Model.extend | |
name: DS.attr('string') | |
active: DS.attr('boolean') | |
owner: DS.belongsTo('user') | |
contracts: DS.hasMany('contract') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Router.js.coffee | |
App.Router.reopen | |
rootURL: '/' | |
location: 'auto' | |
App.Router.map -> | |
@resource 'users', -> | |
@resource 'user', path: '/:id', -> | |
@route 'edit' |
Create droplet of your liking (ubuntu 12.04 x32) Use an xx.04 LTS version
On Digital Ocean, create a DNS entry for your server (xyz.com)
Make sure it has NS records that use digital oceans nameservers
NewerOlder