万年素人からHackerへの道

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

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

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

    ・Rails 3のエラー rails g model message body:stringでモデルを作ろうとすると、 Could not find gem 'mysql2 (>= 0) ruby' in the gems available on this machine. Run `bundle install` to install missing gems.のエラー・Gemfile #gem 'mysql2' gem '…

    UITweener(Tween系クラス)について Unity NGUI

    NGUIのTween機能のUITweenerについて、 再生を普通の再生と逆再生ができる。fowardのオプションが引数のbool型だったので、 myTweenをUITweenerとすると、 普通の向きの再生は、 myTween.Play (false); 逆の向き(foward)の再生は、 myTween.Play (true);

    NGUIのボタンを押下した時の処理

    UIButtonMessageを使わなくてもできる EventDelegateのリストで複数設定できるが、1つでもOK。MonoBehaviourの変数はtargetMono UIButtonの変数はmyButton List<EventDelegate> list = new List<EventDelegate>(); EventDelegate del = new EventDelegate (); del.target = targetMono; del</eventdelegate></eventdelegate>…

    UnitySteerの使い方

    AIのプラグイン。 githubのURL: https://github.com/ricardojmendez/UnitySteerYouTubeのURL: http://www.youtube.com/watch?v=4ULDER6zJnU

    Unify掲示板のFlockingの使い方

    URL: http://wiki.unity3d.com/index.php/Flockingボイドの動きのサンプルコードが有る。 残念ながら、普通のまともなエンジニアなら選択しないUnityScriptというもの。 コード自体も誤りが多く、さすがUnityScriptのコードだ。 現状は私が修正したコードが…

    MovieTexture Unity

    URL: http://docs-jp.unity3d.com/Documentation/Components/class-MovieTexture.html Play ()がないと怒られる↓ こっちが正しい? URL: http://docs.unity3d.com/Documentation/ScriptReference/MovieTexture.Play.html using UnityEngine; using System.Co…

    prime31のSocialのプラグイン(Android)で普通のPostできない

    Manifest.xmlからAndroidManifest.xmlへコピーして完璧だと慢心していてると、 「FacebookTestScene」シーンサンプルの FacebookAndroid.showDialog( "stream.publish", parameters ); が動かないのに、 FacebookAndroid.showFacebookShareDialog( parameter…

    Twitter Prime31のエラー

    <hash> <error>Desktop applications only support the oauth_callback value 'oob'</error> <request>/oauth/request_token</request> </hash> の謎のエラー。 URL: http://forum.unity3d.com/threads/92154-Prime31-Android-Plugins-Officially-Live!/page42以前自分で聞いたフォーラムが出た! TwitterのD…

    C# Unity 引数の名前を指定

    Objective-Cでは、メソッドを呼ぶときに各変数の名前を書かせるのを矯正されるが、 C#も同じような書き方ができた。 using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { void Start () { Hoge (intVal:1, str…

    keystoreの作り方 MacOS

    keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

    UnityPlugin「Facebook SDK for Unity (beta)」の実験

    URL: https://www.assetstore.unity3d.com/#/content/10989Prime31とかが今までUnityのPluginを出していたが、これはFacebookが公式に出してるっぽいので試す。ドキュメントURL: https://developers.facebook.com/docs/unity/すでにAssetStoreからインストー…

    NGUIToolsの便利メソッド

    GameObjectを渡して、親をさかのぼってComponentを探せる UIRoot mRoot = NGUITools.FindInParents<UIRoot> (gameObject);</uiroot>

    StoryBoardでUIScrollViewができない

    URL: http://chiyoworks.blogspot.jp/2013/05/storyboard-scrollview.html UIScrollViewの中にContentViewを入れる。 ContentViewってのは、サブViewにしたUIViewとかImageViewとかと思う・・。ちなみに、UIScrollViewに対してはこのコードを書いている - (v…

    押下されたボタンの取得

    string buttonName = UIButton.current.name;

    NGUIのUIButtonでOnClickイベントを追加する方法

    UIMessageを使わない方法 List<EventDelegate> list = new List<EventDelegate>(); EventDelegate myDelegate = new EventDelegate (); myDelegate.target = targetMono; myDelegate.methodName = "L1"; list.Add (myDelegate); myButton.onClick = list; 【補足】 myDelegateはEventDelega</eventdelegate></eventdelegate>…

    Titaniumのエラー

    Launching simulator process failed Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI. このエラーが出て直らない。 Titaniumはもうオワコンかな? 起動ができないと話にな…

    データなしでNGUIのUITextureを作成する

    void CreateTextureWithoutData () { // Create a new 2x2 texture ARGB32 (32 bit with alpha) and no mipmaps Texture2D texture = new Texture2D (2, 2, TextureFormat.ARGB32, false); // set the pixel values texture.SetPixel(0, 0, new Color(1.0f, …