万年素人からHackerへの道

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

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

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

    CommonLisp Mac初める WebサーバWoo

    Lispはいろんなのがあるけど、sbclにした。 Common LispのWebサーバ「Woo」がだから。 依存系のインストール(面倒なのでbrew) brew install libev brew install sbcl パッケージ管理?QuickLispのインストール quicklisp.lisp がDLされ、それがあるフォル…

    Django 1.11で動かない

    from django.shortcuts import render ## 略 return render_to_response('mysite/home_u.html', my_context, context_instance=RequestContext(request )) これが動かなくなってた。 stackoverflow.com render_to_responseとかcontext_instanceとかいらなく…

    UnityのAnimatorのControllerを拡張

    普段無いが、 using UnityEditor; using UnityEditor.Animations; using UnityEngine; [CustomEditor(typeof(AnimatorController))] public class AnimatorControllerInspector : Editor { public override void OnInspectorGUI() { } } これでいける。

    Xamarinで実機転送遅い時

    iOS 9.0, Xamarin Studio, "waiting for debugger to connect..." - Stack Overflow 実はiPhone設定

    Xamarinのフォント

    qiita.com https://forums.xamarin.com/discussion/30207/whats-the-deal-with-xamarin-forms-label-font-is-obsolete https://developer.xamarin.com/guides/xamarin-forms/user-interface/text/fonts/

    0件の配列でLinqのLast()ではエラー

    int[] hoge = {}; Debug.Log(hoge.Length); hoge.Last (); InvalidOperationException: Operation is not valid due to the current state of the object System.Linq.Enumerable.Last[Int32] (IEnumerable`1 source)

    XamlFilePathAttribute' does not exist in the namespaceのエラー

    XamlFilePathAttribute' does not exist in the namespace のエラーが出た。 https://forums.xamarin.com/discussion/86352/i-keep-getting-xamlfilepathattribute-class-not-found-error-when-modifying-xaml-files を見る。 Cleanをする、その後でbinとobj…

    fish shellでtkも動くようにRubyを入れる

    /Users/shinriyo/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- tk (LoadError) from /Users/shinriyo/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb…

    fishとrbenvとのエラー

    <W> fish: An error occurred while redirecting file '/Users/shinriyo/.rbenv/version' open: No such file or directory rbenv global 2.4.1 のコマンド。 それで消えた。</w>

    Xamarin Realm C# Manageが非推奨

    // Update and persist objects with a thread-safe transaction realm.Write(() => { realm.Add(new Dog { Name = "Rex", Age = 1 }); }); https://realm.io/docs/xamarin/latest/#class-subsets

    gamedev.stackexchange.com .Load Text Assetsの代わり

    カバーフロー

    GitHub - rakkarage/Flop: Unity 4.6 uGUI 'Cover Flow' Test

    Dropboxのアプリの消し方 macOS

    普通にApplicationsのフォルダをcommand + deleteしてもダメだった・・。 The item “Dropbox” can’t be moved to the Trash because some of its extensions are in use. こんなエラー。 仕方ないので、調べる。 https://discussions.apple.com/thread/70034…

    XcodeでFramework動かない時

    ここの設定をYESにしないとだめっぽい いや、してもだめ? Add to?が必要? 【Unity】iOS向けビルドで必要なframeworkのインポートやビルド設定の変更を自動化する - naichi's lab いや、FrameWorkのSearch Pathっぽい? $(SRCROOT)追加。 matsu-chara.haten…

    Xamarin iOS実機ビルド

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: No installed provisioning profiles match the installed iOS signing identities. (アプリ名.iOS) こんなの出る。 実機ビルドにいちいちDeveloper登…

    stdio.hを探す clang++

    stdio.hがないといわれる c - Where is my "stdio.h" in Mac? - Stack Overflow find /Applications/Xcode.app -path '*/usr/include/stdio.h' しかし、 https://developer.apple.com/download/more/ からCommand Line Toolsインストールでいけた Architectu…

    lipo iOS

    https://pewpewthespells.com/blog/convert_static_to_dynamic.html https://pewpewthespells.com/blog/convert_static_to_dynamic.html

    The device cannot run executables for arm64.の対処 Xcode Unity

    http://howtocodethings.tumblr.com/post/146094967283/the-device-cannot-run-executables-for-arm64howtocodethings.tumblr.com を見た。

    Asset Store

    Google Analyticsの設定 https://docs.unity3d.com/Manual/AssetStoreAnalytics.html

    regex C#

    http://stackoverflow.com/questions/11507239/linq-query-result-with-string-manipulation-and-regex string source = @"\354\202\254\354\232\251\354\236\220\354\203\201\354\204" + @"\270\354\240\225\353\263\264\354\236\205\353\240\245"; var r =…

    変換 8進数数字 C#

    c# - I have a string of octal escapes that I need to convert to Korean text - not sure how - Stack Overflow string source =@"\343\201\213\343\201\247\343\201\260"; こんなやつを変換

    XamarinのAndroid SDK

    /Users/ユーザ名/Library/Developer/Xamarin/android-sdk-macosx ここにある。

    EntryPointNotFoundException

    UnityでDLLを使う UnityでDLLを使う | TVML

    __declspec mac gcc C++

    error: unknown type name '__declspec' のエラー。 本の虫: attributeは難しい Macというかgccでは__attribute__なの? __declspec(dllexport) を単純に __attribute__(dllexport) 置き換え。 すると error: expected '(' after '(' (を二重にしたw __attr…

    mrubyの実行 macOS 10.12.3

    mrubyをダウンロードした。 mruby-1.2.0.tar.gz 展開 tar zxvf mruby-1.2.0.tar.gz ビルド cd mruby ruby minirake mrubyでコンパイル sample.cpp作る #include <stdlib.h> #include <stdio.h> #include "mruby.h" #include "mruby/compile.h" int main() { auto mrb = mrb_open</stdio.h></stdlib.h>…

    Chrome 検索 プルダウン 消す

    Google グループ IEではDeleteキーだけで今までの検索の履歴を簡単に消せたけど、 MacのChromeでDeleteキーで消えないと思ってた。 [Shift]+[fn]+[Delete]で消せる。 Windowsは[Shift]+[Delete]のみ。

    gcc, clang++, llvm-gcc ....

    $ which clang++ /usr/bin/clang++ $ which g++ /usr/bin/g++ $ which llvm-g++ /usr/bin/llvm-g++ $ which llvm-gcc /usr/bin/llvm-gcc $ which gcc /usr/bin/gcc Comparing clang to other open source compilers バージョンを見る $ clang -v Apple LLVM …

    C++のコマンドラインのコンパイルでカレントでパスを入れたいとき Mac

    #inclideで相対パスにしないといけなさそうでいちいちfile not foundになった。 clang++ -std=c++11 -I ./ sample.cpp のように-Iオプションで./を指定した。 ヘルプはclang++ --helpで見られた。

    vimのカーソルを細い|にする

    blog.remora.cx Setting the cursor to a vertical thin line in vim - Stack Overflow

    Swift3 コピペ可能なNSTextField

    NSTextFieldで定義したやつはコピペできない・・・。 例えばこんなコード。 let urlField = NSTextField() urlField.frame = NSRect(x: 0, y: 0, width: 300, height: 20) urlField.lineBreakMode = NSLineBreakMode.byTruncatingHead urlField.usesSingleLi…