万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・資産運用おすすめ
    10万円は1000円くらい利益
    資産運用ブログ アセマネ
    • ・寄付お願いします
      YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
      BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
      c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1
      Skycoin:KMqcn7x8REwwzMHPi9fV9fbNwdofYAWKRo

    2017-01-01から1ヶ月間の記事一覧

    fish-shell カラーコード とか vimプラグイン

    色替え set_color green 色見本 fish doesn't understand the color white · Issue #3176 · fish-shell/fish-shell · GitHub 元の色 set_color normal vim用シンタックスハイライト fish-syntax - fish syntax based on sh : vim online

    fish-shellで楽にfuncstions配下に関数生成

    よくわかってないが、関数hogeを作るときに functions/hoge.fishを作って、 その中に funcstions hoge # do something end を書くのが面倒くさい。 これをうまくヒアドキュメントで出来ないのか? fish Tips: string trimで疑似ヒアドキュメントを実現する …

    C# Unity FindObjectOfType

    コンストラクタで呼べない、 FindObjectsOfType is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. デストラクでやると? FindObjectsOfType can only be called from th…

    fishでhistoryで数字出す

    history | nl | less これで出る。 https://github.com/fish-shell/fish-shell/issues/2200 標準コマンドをオーバーライド .config/fish/config.fishをいじる。 function history builtin history | nl | less end builtinを書くのはデフォルトのhistoryコマ…

    scm_breezeがfishで使えない

    GitHub - mroth/scmpuff: :1234: add numbered shortcuts to common git commands こっちに移行する。 scmpuff。

    oh-my-zshからoh-my-fish

    oh-my-zはオワコンなので消す。 oh-my-zshを消す uninstall_oh_my_zsh fishを入れる brew install fish fishをデフォルトのシェルにする which fish chsh -s /usr/local/bin/fish このエラーがでるとき chsh: /usr/local/bin/fish: non-standard shell /etc/…

    neural-styleのエラー

    libpng warning: Application built with libpng-1.4.12 but running with 1.6.28 /Users/shinriyo/torch/install/bin/luajit: /Users/shinriyo/torch/install/share/lua/5.1/image/init.lua:176: [write_png_file] png_create_write_struct failed stack tr…

    neural-styleを使うぜMac

    neural-styleは画像をDeep Learningでピカソ風にしたりとかのやつ。 Torch7,loadcaffeが必要だ。 thコマンドはTorch7のコマンドだ。 インストール 人工知能で画像合成させる「ostagram」実行環境の作り方 - Hacking My Way 〜 itogのhack日記 が参考になる。…

    Raspberry Pi 3 でのWifiとssh

    qiita.com qiita.com これらを見た。 ハマったのは 無線LANパスワード設定 GUIで設定しようとしたけどWifiが日本語名なのかパスワードをOKしてくれない・・。 /etc/network/interfaces 自体に/etc/wpa_supplicant/wpa_supplicant.confの設定ファイルを参照し…

    アニメーションの最後にスキップ Unity Animator

    https://forum.unity3d.com/threads/set-state-to-last-frame-of-animation-save-position-of-animation.276437/ animationならいくらでも情報があるが、Animatorにはあまりない。 animatorがインスタンス変数 int hash = Animator.StringToHash("ステートマ…

    C# Unity 「Save Project」のショートカット

    AssetDatabase.SaveAssets ();の動作は「Save Project」と同じ。 なのでショートカット作成しよう。 using UnityEditor; using UnityEngine; public class MyEditorWindow : EditorWindow { [MenuItem("File/Save Project %&s")] static void SaveProject() …

    MacBook Proに入ったLinuxのドライバ

    qiita.com これ見たが ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the…

    環境構築「はじめての深層学習(ディープラーニング)プログラミング Kindle版」その2

    https://developer.nvidia.com/cuda-downloads ドライバを入れる wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_linux-run みたいにいれる。 ブラックリスト編集 /etc/modprobe.d/blacklist-nouveau.confをいじる…

    環境構築「はじめての深層学習(ディープラーニング)プログラミング Kindle版」

    はじめての深層学習(ディープラーニング)プログラミング Kindle版 のためにVagrantの環境 はじめての深層学習(ディープラーニング)プログラミング作者: 清水亮出版社/メーカー: 技術評論社発売日: 2016/12/07メディア: Kindle版この商品を含むブログ (2…

    Bottleをgrumpyで動かす

    なぜBottleにしたかって? 1ファイルのサーバだからな。 brumpyはgit cloneしたあとに make export GOPATH=$PWD/build export PYTHONPATH=$PWD/build/lib/python2.7/site-packages これでいけた。 2.7対応なのでそれしないとだめっぽい。 ↓このエラー。 Trac…

    VM上にgrumpy入れたい

    VirtualBoxでUbuntu系OSを入れていた。 grumpyとはこれ。 GitHub - google/grumpy: Grumpy is a Python to Go source code transcompiler and runtime. ssh vagrant でsshで入ったあとに、 まず、以下のコマンドでgccgo-goを入れてみると sudo apt-get insta…

    Peppermint 5をvagrantdで

    Peppermint 5 gist.github.com ・アクセス vagrant ssh ・git入ってないのでいれる sudo apt-get install git

    KURO-IOTEXP/KIT3 その2

    12ページのコピペメモ cd ~ git clone https://github.com/blynkkk/blynk-library.git cd blynk-library/linux make clean all target=raspberry sudo ./blynk --token=AUTH TOKEN Lチカ 指南書のLチカはチカチカしないでつけるだけ・・・ コピペでLチカ!ラ…

    KURO-IOTEXP/KIT3

    玄人志向、自作IoTが楽しめるRaspberry Pi 3の組み立てキットと拡張キット | マイナビニュース コレを買った。 必要なもの このキット買えば全部できると思ったが・・ ↓これら必要 ・USBキーボード ・USBマウス ・HDMI対応のモニタ ・SDカードリーダ 必要な…