Skip to content

Instantly share code, notes, and snippets.

170082 error Linux 3.13.0-43-generic
170083 error argv "/home/vagrant/.nvm/versions/node/v6.3.1/bin/node" "/home/vagrant/.nvm/versions/node/v6.3.1/bin/npm" "install"
170084 error node v6.3.1
170085 error npm v3.10.6
170086 error path /vagrant/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv
170087 error code ENOENT
170088 error errno -2
170089 error syscall chmod
170090 error enoent ENOENT: no such file or directory, chmod '/vagrant/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
170091 error enoent ENOENT: no such file or directory, chmod '/vagrant/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
server {
listen 6984 ssl;
server_name myserver.net;
ssl_certificate /etc/sslmate/myserver.net.chained.crt;
ssl_certificate_key /etc/sslmate/myserver.net.key;
location / {
proxy_set_header Access-Control-Request-Headers "";
OPTIONS /_session HTTP/1.1
Host: <myhost>:5984
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Access-Control-Request-Method: POST
Origin: http://localhost:3000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36
Access-Control-Request-Headers:
Accept: */*
07-06 16:36:11.844 1526 1848 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.foo/.FooActivity (has extras)} from uid 10007 on display 0
07-06 16:36:11.878 3115 3115 I art : Not late-enabling -Xcheck:jni (already on)
07-06 16:36:11.883 1526 1849 I ActivityManager: Start proc 3115:com.example.foo/u0a63 for activity com.example.foo/.FooActivity
07-06 16:36:11.943 3115 3115 D XWalkLib: Pre init xwalk core in com.example.foo.FooActivity
07-06 16:36:11.944 3115 3115 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to com.example.foo.FooActivity
07-06 16:36:11.944 3115 3115 D XWalkLib: Reserve method setValue to com.example.foo.FooActivity
07-06 16:36:11.952 3115 3115 D XWalkLib: Reserve object class org.xwalk.core.XWalkView to com.example.foo.FooActivity
07-06 16:36:11.952 3115 3115 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to com.example.foo.FooActivity
07-06 16:36:11.952 3115
Torne: we don't have a way for service workers to be activated in webview other than directly by a page that's currently being shown
Torne: it's extremely nontrivial to design :/
Torne: sync in particular is very hard because the sync event would have to come from *the embedding app*
Torne: not from chrome
Torne: so the app would have to have registered for sync, and then when that happens, tell webview somehow
Torne: in a way that can start up the right service workers
Torne: right now the only use of service worker that really makes sense in webview is the cache api
Torne: and even that has some open questions assocaited
ccapndave: Chrome for Android can do background sync though, can it?
Torne: yes, because *chrome* registers as needing sync, notifications, push, etc
module Component.Requirements.Model exposing (..)
import Focus exposing (Focus)
import ExerciseRenderer
type alias Model a =
{ a
| hasConfirmedRequirements : Bool
, requirementsModel : ComponentModel
update : Msg -> Model -> (Model, Cmd Msg)
update msg model =
withLogic <| update' msg model
update' : Msg -> Model -> (Model, Cmd Msg)
update' msg model =
case msg of
LoginMsg msg ->
LoginUpdate.update msg model
onMenuLoaded : (Http.Error -> msg) -> (Menu -> msg) -> Sub msg
onMenuLoaded onError onSuccess =
let
decodeOnSuccess : String -> msg
decodeOnSuccess str =
case (decodeString Menu.decoder str) of
Ok menu ->
onSuccess menu
Err err ->
onError <| Http.UnexpectedPayload err
import Html exposing (Html)
import Html.App as Html
import Svg exposing (..)
import Svg.Attributes exposing (..)
import Time exposing (Time, second)
main =
Html.program
module FileHttp exposing
( get
, getString
)
import Http
import HttpBuilder exposing (..)
import Json.Decode exposing (Decoder)
import Task exposing (Task, andThen, onError, mapError, map)