Windows で Git Flow

Windows 7のgit bashでgit flowコマンドが使えなかったのでインストール。 https://git-for-windows.github.io/ v2.8.2.windows.1 をインストールしたら、 git flowが入っていた。 メモ https://github.com/nvie/gitflow/wiki/Windows に載っている手順とか…

intel sawtooth-mktplace (memo1)

memo1 https://github.com/hyperledger/hyperledger Linux Foundation HyperLedgerのリポジトリに、 Intelが作ったSawtooth Lakeという名前のソフトウェアがあったので試してみた。 チュートリアル: http://intelledger.github.io/tutorial.html ソースコー…

Intel Sawtooth Lake Distributed LedgerのTutorial

チュートリアルに沿ってインストールとかをしてみた。 http://intelledger.github.io/tutorial.html Windows 10 VirtualBox 5.0.14 r105127 Vagrant 1.8.1 エラー1 vagrant upでエラー。 とりあえずvagrant sshで接続はできる。 $ vagrant up Proxyconf plug…

MacOS PortをListenしているプロセスを調べるコマンド

lsof -i:8080 http://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x ps aux | grep 実践 lsof -i:8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME com.apple 472 kubottiuser 12u IPv6 0x1cfb42a9233043…

ReactJS 親が持っている値を子コンポーネントに渡す方法

メモ: https://facebook.github.io/react/docs/transferring-props.html render() { return (<Home {...this.props} />) } render() { if (this.state.loggedIn){ return (<Home {...this.props} />) }else{ return (<Login {...this.props} />) } }</login></home></home>

Uncaught TypeError: Cannot read property 'replace' of undefined (react-router)

"react-router": "^2.2.4", "react": "^0.14.8", ES6 Uncaught TypeError: Cannot read property 'push' of undefined Uncaught TypeError: Cannot read property 'replace' of undefined Uncaught TypeError: Cannot read property 'transitionTo' of undef…

Uncaught TypeError: Cannot read property '_currentElement'

"react": "^0.14.8", ES6 ReactCompositeComponent.js:559 Uncaught TypeError: Cannot read property '_currentElement' of null render()の時にエラーになっているようだった。 constructorに this.state = {error: false} を足したらエラーが消えた。 imp…

Only a ReactOwner can have refs

Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded https://github.…

Unexpected token while parsing file

"react": "^0.14.8", エラー Error: /Users/ /index.js: Unexpected token (15:11) while parsing file: /Users/ /index.js http://stackoverflow.com/questions/33460420/babel-loader-jsx-syntaxerror-unexpected-token http://stackoverflow.com/question…

既定のブラウザの確認方法(Windows10)

https://helpx.adobe.com/jp/flash-player/kb/cq01281725.html コントロール パネル > プログラム > 既定のプログラム > プログラムのアクセスとコンピュータの既定の設定

TortoiseGitの秘密鍵保存場所(Windows)

C:\Users\kubottiii\AppData\Local\VirtualStore\Program Files\Git\.ssh TortoiseGitを入れるとインストールされる、GitBashだと /c/Users/kubottiii/.ssh に id_rsa を置けばいいっぽい。 ssh-keygen -t rsa -C "your_email@example.com" http://monsat.ha…

Visual Studio 2013で2つのC#プロジェクトの参照設定

2つのC#プロジェクトが登録?されたソリューションがある。 ConfigToolというC#プロジェクトから、 UtilsというC#プロジェクトへの参照を追加する方法。 Solution ExplorerでConfigToolプロジェクトを右クリック。 Add > Reference... Reference Managerとい…

フォルダ名が変更できないときの解決方法 windows 10

他のプロセスが使用中でフォルダ名を変更できない場合。 「別のプログラムがこのフォルダーまたはファイルを開いているので、操作を... - Yahoo!知恵袋 タスクマネージャを起動 「パフォーマンス」タブを表示 下部にある「リソース モニターを開く」をクリッ…

ReactJS 15.0.1 環境構築メモ

ReactJS 15.0.1を最初に試した時のメモ。 http://d.hatena.ne.jp/tomoya/touch/20160403/1459665374 エラー ES6版React.jsチュートリアル - Qiita を試したらエラーが出た。 TypeError: _react2['default'].render is not a function. (In '_react2['default…

angular2 Attempted to assign to readonly property.

Component.tsと同じファイル内に、 inferfaiceを定義して、Componentのコンストラクタで値を設定しようとしたら、エラーになった。 EXCEPTION: Error during instantiation of AppComponent!. TypeError: Attempted to assign to readonly property. エラー…

EXCEPTION: No provider for Http

angular2で、画面を表示したら、ブラウザの開発コンソールにエラーが出た。 EXCEPTION: No provider for Http! ( Component -> Http) main.ts に2個目のbootstrapを足したときに、 , [HTTP_PROVIDERS]を書いていなかった事が原因っぽい。 bootstrap(MenuCom…

angular2 Component間データ受け渡し メモ

anguler2のチュートリアルを改造していて、 serviceで実行したHTTP POST通信の処理結果によって、 呼び出し元componentの画面を変更したくなった。 angular2 - Global Events in Angular 2 - Stack Overflow Service Events というものがあるらしい。 my app…

angular2 post通信

angular2でPOST通信をしようとしたら、エラーになった。 subscribeした後に、console.log出力しようとすると、undefinedのエラーになる。 たぶんsubscribeの中でRxJSが実際のPOST通信をしているけど、非同期でやっているので、 完了する前に、応答を格納する…

angular2 でHTTP POST(をクライアントとして実行)したときのエラー

angular2 で、Java Servletに向かって、http のpost methodをしたら、うまくいかなかった。 ブラウザのデバッグツールで通信内容をみたら、 他のPOST通信は、データ本体(body)が、 form data なのに、今回の通信は、 Request Payload だった。 解決策 reques…

Cannot POST /dummy_json/login_result.json( npm local-web-server のインストール)

npmコマンドで起動する、lite-serverで、 POST methodでアクセスするとエラーになる。 Cannot POST /dummy_json/login_result.json local web server local web serverなら、いろいろできるらしい。 https://www.npmjs.com/package/local-web-server npm ins…

capistranoでデプロイしたときのエラー

Net::SFTP::StatusException (Net::SFTP::StatusException write デプロイ先のHDD容量不足だった。 ruby on rails - Deployment is failing on update_code phase with rvm-capistrano - Stack Overflow AWSインスタンスのresizeをしていなかった。

capistrano 2.11.2 のインストール

CentOS 6.7に会社で使っている、 capistrano -v 2.11.2 を入れる。 yum install ruby yum install rubygems gem install highline -v 1.6.11 gem install net-ssh -v 2.3.0 gem install net-sftp -v 2.0.5 gem install net-scp -v 1.0.4 gem install net-ssh…

angular2 + TypeScriptのステップ実行デバッグ メモ

Visual Studio Codeでステップ実行デバッグをする方法を調査中。 まずは、Visual Studio Codeからnode.jsのlite-serverを起動する方法を調べる。 ${workspaceRoot}/.vscode/launch.json "program": "${workspaceRoot}/node_modules/lite-server/bin/lite-ser…

angular2のチュートリアル

公式サイトのチュートリアルをやってみる。 Windows10 https://angular.io/docs/ts/latest/quickstart.html $ npm start > angular2-quickstart@1.0.0 start C:\Users\kkkkkkkkkubotti\Documents\test_angular\angular2-quickstart > concurrently "npm run …

Visual Studio Codeのインストール(MacOX)

Visual Studio Codeを入れて、 Angular (2.0) の開発に挑戦。 MacOSで。 ダウンロード https://code.visualstudio.com ダウンロードしたファイルを実行したら、起動した。 インストール不要? チュートリアル的なものを試す AngularJS 1系 Getting Started w…

npmコマンド(node.js)のインストール(MacOS)

Pycharmでangularを使おうとしたら、いろいろツールのインストールが必要だった。 環境は、 Mac OS X Yosemite Version 10.10.5 手順をメモったけど、PyCharmはversion5でないとangular2 + TypeScriptの開発が できない(やりにくい?)気がする。 Visual Stud…

TypeScript + npm で.jsファイルを別ディレクトリにする

Angular 2 + TypeScript + npm で.jsファイルを別ディレクトリにする。 Visual Studio Codeでangular2のチュートリアルをやっていたら、 .tsファイルがあるディレクトリに.jsと.js.mapというファイルが生成されて、 Visual Studio CodeのファイルEXPLORERが…

angular2でhttpのコードを追加したらエラーになった

angular2で、Http Clientの機能を使ってリモートサーバーと通信。 https://angular.io/docs/ts/latest/guide/server-communication.html チュートリアルのコードは動いたけど、 自分で作ろうとしたらエラーになった。 SyntaxError: expected expression, got…

Edgeブラウザでlocalhostのウェブページを表示

なぜかEdgeは、localhostに立てたウェブサーバーのページを開けなかった。 このページに到達できません。 対処方法 •URL が正しいことを確かめる: http://kubotti-computername1:8080 •ページを最新の情報に更新 •目的の情報を検索する HTML1300: ナビゲーシ…

Laravel5 Eloquentで、主キーを"id"カラムにしない設定

2015年11月20日頃のメモ。 Laravel5 Eloquentで、主キーをidという名前のカラムにしない設定。 Zendで書かれたウェブアプリをLaravel5で書き換えられるか技術検証した。 room_idという文字列が主キーのテーブルが旧システムにあるので、 それをそのまま使い…