万年素人からHackerへの道

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

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

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

    AndroidManifestのOpenGLバージョン指定方法

    ・OpenGL 1.0 <uses-feature android:glEsVersion="0x00010001" /> ・OpenGL 2.0 <uses-feature android:glEsVersion="0x00020000" /></uses-feature></uses-feature>

    Editor拡張で右クリックメニューに出す Unity

    C# public class HogeClass : EditorWindow { [MenuItem("Assets/Hoge Class")]

    stringのフォーマット

    string.Format("foo{0}bar", 3) // => 'foo3bar' string.Format("{0} × {1} = {2}", 3, 4, 3 * 4); // => '3 × 4 = 12'

    数値結果テーブルの書式設定

    URL: http://msdn.microsoft.com/ja-jp/library/s8s7t687 String.Format("{0:N3}", 10000.123)

    iOS VerificationController

    https://developer.apple.com/library/ios/releasenotes/StoreKit/IAP_ReceiptValidation/VerificationController.zip

    adbコマンドでActivity起動

    adb shell am start -a android.intent.action.MAIN -n jp.hoge.packagename/.ActivityNamejp.hoge.packagename・・・パッケージ名 .ActivityName・・・アクティビティ名アクティビティ名はパッケージ名と同じ時だけ「.Hoge」のようにできる。 カレントディ…

    githubで自分の作った2人目のユーザとかぶって使えない

    URL: http://stackoverflow.com/questions/5335197/gits-famous-error-permission-to-git-denied-to-新ユーザでSSHキーを作ったら、・SSHの追加 ssh-add ~/.ssh/rsa_hogeこれが必要。 ~/.ssh/id_rsaという名前で必ずしも作るのではなくて随時追加できるっぽ…

    The application does not have a valid signature.のエラー

    URL: http://doradick.blog108.fc2.com/blog-entry-983.htmlキーチェーンを削除して追加した

    C#のFormatでハマった

    int amount = 100; string ans = String.Format("{0:#,0}", amount); このamountは文字列にしたら出来ない!

    AndroidのAndroidManifest.xmlでやたらと怒られるエラー (API Level 2.2のとき)

    string types not allowed (at 'configchanges'android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" の中にある、「screenSize」と「smallestScreenSize」を外そう。 新しいAndroid APIにしか…

    Unity 指定したアニメーションでとまったまま指定

    URL: http://docs.unity3d.com/Documentation/ScriptReference/Animation.Sample.htmlおそらく using UnityEngine; using System.Collections; public class example : MonoBehaviour { void Example() { animation["MyClip"].time = 2.0F; animation["MyCli…

    UnityScript eval使える

    Amazon.co.jp ウィジェット上記の本とかで、eval() is "evil"(eval()は悪)とか言われるが、 UnityScriptもJavaScriptを謳ってるし、ActionScriptにも似てるから調べた。あった。 URL: http://answers.unity3d.com/questions/7885/interpret-unityscript-at…

    static変数が生きている Unity GameObject

    static変数に値を入れたまま GameObjectをDestroyしても変数の内容は生きています。 なので、OnDestroyなどで変数を初期化しましょう。

    非アクティブのgameObjectのエラー Unity

    if (this.gameObject.active) { } とするとエラーになるので、 キャッシュしておく _myGameObject = ScoutFree;

    空白の表示 MonoDevelop

    UnityPlayerNativeActivityとかUnityPlayerProxyActivityとか

    http://radiumsoftware.tumblr.com/post/13288868429

    Anfroid activity

    https://sites.google.com/a/techdoctranslator.com/jp/android/guide/manifest/activity-element

    AndroidのWebViewでアイコンが2つ出る現象にハマった

    keijiroさんのプラグインを使ってたアイコンが2つ出る現象が発生・・。 http://shun1adhocblog.wordpress.com/2012/09/21/android%E3%82%A2%E3%83%97%E3%83%AA%E4%BD%9C%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%9F%E3%82%89%E3%80%81activity%E3%81%AE%E6%95%B0%…

    Cameraを非表示 Unity

    Mainのカメラ限定 Camera.main.enabled = false;

    Google Playの二重パスワード

    よく忘れるのでメモGoogle アカウントにログインします。 URL: https://www.google.com/accounts/Login?hl=ja1 2 3 4

    Prime31 Twitterプラグイン

    SocialNetworking/P31MutableOauthRequest.m をいじる? http://prime31.com/support/754/twitter-post-failed-could-not-authenticate-with-oauth

    HashtableからArray配列 C#

    string[] myKeys = myHashtable.Keys; Debug.Log(myKeys); myKeysはなぜか空このサイトを参考にした URL: http://www.java2s.com/Tutorial/CSharp/0220__Data-Structure/CopythekeysfromHashtableintoanarrayusingtheCopyTomethodandthendisplaythearraycont…

    「モトスミHack vol.34」に参加した http://connpass.com/event/2111/目的は悩ましい問題を解決しに1. Rails4 beta1でハマったエラー「ActiveModel::ForbiddenAttributesError」うぜ!!! ・問題のコード def create @train = Train.find(params[:train_id]…

    jsonDataはキャストしないとObject型? Unity C#

    jsonDataにJasonData型の型の値が入ってるとする。 List<String> keyHashTable = ((jsonData as IDictionary).Keys); String keyStr = keyHashTable.Last(); // Invalid Cast Exception 必ずジェネリックスしよう! String keyStr = keyHashTable.Last<String>();</string></string>

    Railsのfavicon.icoのエラー

    twitter-bootstrap-railsを使ってると Train Load (0.2ms) SELECT "trains".* FROM "trains" WHERE "trains"."id" = ? LIMIT 1 [["id", "favicon"]] Completed 404 Not Found in 3ms ActiveRecord::RecordNotFound (Couldn't find Train with id=favicon): a…

    Listの数 C#

    ※System.Collections.Generic.ListのList Lengthです。カッコ要らない。 hogList.Count