万年素人からHackerへの道

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

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

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

    iOS Simulator failed to install the application.

    iOS Simulator failed to install the application.のエラーが出た。 画面はこれ。 URL: http://d.hatena.ne.jp/shu223/20130905/1379359877「iOS Simulator」を起動した時の左上のメニュー →「Reset Content And Setting」を選択。 それでも解決しない!更…

    tm_twitter_apiの使い方 Titanium、Alloy、Twitter

    githubはこちらにある。 URL: https://github.com/mogya/tm_twitter_api Ti.include("lib/twitter_api.js"); とサンプルでは書いているので、保存先は assets/lib/twitter_api.jsとなるはず。よって、 libディレクトリを作成して。 command+Iでプロパティを…

    Unityでハマること persistentDataPath使う理由

    iOSだけStreamingAssetにアクセス出来ない。Androidはできる。http://docs.unity3d.com/Documentation/ScriptReference/Application-persistentDataPath.htmlStreamingAssetかr,あpersistentDataPathに転送させて後から使えるようにする。

    Unityの変なエラー

    An asset is marked as dont save, but is included in the build: UnityEditor.HostView:OnGUI()Building - Failed to write file: 0000000000000000d000000000000000 UnityEditor.HostView:OnGUI()Error building Player: Couldn't build player because o…

    HOTween.Shake Unity

    http://www.holoville.com/hotween/hotweenAPI/class_holoville_1_1_h_o_tween_1_1_h_o_tween.html Shake (object p_target, float p_duration, string p_propName, object p_fromVal, float p_shakeAmplitude=0.1f, float p_shakePeriod=0.12f)みたいな引数…

    sudo gem install railsでのエラー

    unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/icons/up.png, skippingみたいなのが大量に出て怖い。URL: http://d.hatena.ne.jp/january/20130727/1374897775 文書のパースなので、放置しておいても大丈夫かも?

    rbenv バージョンで切り替わらない

    URL: http://qiita.com/sinapps/items/34a9685e322fb77046c2rbenv initコマンドで行けるらしいが、 # Load rbenv automatically by adding # the following to ~/.zshrc: eval "$(rbenv init -)"と表示された。しかし、 > ruby -v ruby 1.8.7 (2012-02-08 pa…

    CopyPNGFileエラー Xcode

    URL: http://programming-ios.com/xcode-copypngfile-error/ Build Phases → Copy Bundle Resourcesから赤いのを削除

    よく出るXcodeのエラー

    ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Library not found for -lPodshttp://d.hatena.ne.jp/samril/20130910/1378890218 http://qiita.com/katryo/items/af62cd47276829dd30b0…

    Podfileのdeprecated

    [!] [BlocksKit (1.8.2)] The `documentation` DSL directive of the podspec format has been deprecated. [!] [SDWebImage (3.2)] `preferred_dependency` has been renamed to `default_subspec`. [!] [SDWebImage (3.2)] `preferred_dependency` has bee…

    お手軽ダブルタップ Unity

    URL: http://hiiro-game.seesaa.net/article/279869280.html こちらのブログにあるコードを改善したもの。 foreach ( var touch in Input.touches ) { if ((touch.phase == TouchPhase.Began) && (touch.tapCount > 1)) { } } しかし、これはAndroidやEditor…

    Unity Advent Calendar 2013

    URL: http://qiita.com/advent-calendar/2013/unityAIかランキング機能をやろうと思いました。 しかし、AIはすぐに書けないので、需要ありそうなランキング機能にしますね。 Mac OS X前提です(^^)参考ネタURL: Unifyの記事 http://wiki.unity3d.com/index.ph…

    UISpriteのコピー NGUI Unity

    myUISpriteというUISpriteへ、hogeのUISpriteであるotherUISpriteをコピーしたい myUISprite = hoge.otherUISprite; だとダメ。 myUISprite.atlas = hoge.otherUISprite.atlas; myUISprite.spriteName = hoge.otherUISprite.spriteName; と行う!しかしさす…

    Google Admob Unityプラグイン

    公式? http://googleadsdeveloper.blogspot.jp/2013/07/admob-plugin-for-unity3d.html

    Google Play Game Service を Unity から利用するためのプラグイン

    https://github.com/playgameservices/play-games-plugin-for-unity

    Titanium Studio 3 で "Launching simulator process failed Unable to locate the CLI executable." が出てエミュレータが動かない

    Titanium Studio, build: 3.1.3.201309132423 (c) Copyright 2012-2013 by Appcelerator, Inc. All rights reserved. Build: jenkins-titanium-rcp-master-21 (origin/master) Date: 13 September 2013, 00:23:57を使ってるが、そのエラーが出る。URL: http:…

    Redisのインストールから起動

    ・インストール brew install redis・起動 redis-server /usr/local/etc/redis.conf ■MongoDB Universityの解説 その4最近MongoDB University(https://education.mongodb.com/)の解説Quiz: Blog in Relational TablesQ. let’s assume that our blog can be…

    Python 3.xのbyteリテラル

    print(hashlib.md5(b"Nobody inspects").digest()) これはbというbyteリテラルだが リテラルを使うと変数の時に困る print(hashlib.md5(bytes("Nobody inspects", "utf-8")).digest()) これなら "Nobody inspects"がたとえ変数でもできる。

    Kindle Paperwhiteの「3G」について

    URL: http://bbs.kakaku.com/bbs/K0000431816/SortID=16321636/ ・3G通信は無料。 ・メリットは、Wi-Fi通信しなくても、3G通信で Amazon (Kindleストア含む) と Wikipedia にアクセスできること。 ※AmazonとWikipedia以外に接続できない。【結論:3Gのメリッ…

    MongoDB Universityの解説 その3

    最近MongoDB University(https://education.mongodb.com/)の解説Quiz: JSON SubdocumentsQ. Write a JSON document with a single key, "address" that has as it value another document with the keys “street_address”, “city”, “state”, “zipcode”, wi…

    Webデザイナー系の資格が多い

    ・Webデザイナー検定(CG-ARTS協会) http://www.cgarts.or.jp/kentei/about/web/・Webクリエイター能力認定試験(サーティファイ) http://www.sikaku.gr.jp/web/wc/・ウェブデザイン技能検定(NSPC) http://www.webdesign.gr.jp/

    MongoDB Universityの解説 その2

    最近MongoDB University(https://education.mongodb.com/)の解説Quiz: JSON RevisitedQ. Write the JSON for a simple document containing a single key "fruit" that has as its value an array containing three strings: "apple", "pear", and "peach"…

    MongoDB Universityの解説 その1

    最近MongoDB University(https://education.mongodb.com/)を始めた。 修了すれば資格がもらえる!M101P: MongoDB for Developers Quiz: What is MongoDB?Q. Which of the following statements are true about MongoDB? 【MongoDBにおいて以下に述べるもの…

    Unityでソースからドキュメント

    URL: http://www.doxygen.jp/Mac OS X用の.dmgも用意されている。 下の方: http://www.stack.nl/~dimitri/doxygen/download.htmlウィザードを進める。 出力と入力をきちんと選択。 再帰的に読み込むオプションにチェックを忘れないこと!UnityScriptなんての…

    MonoDevelopでのXMLドキュメント

    ↓ ↓ 「Generate xml documentation」をチェック。。monodocが使えない。どうする? http://stackoverflow.com/questions/10307294/xsl-templates-for-xml-documentation-in-monodevelopこちらは簡単と・・・

    UnTested Unity 値がパターンのいずれかなのかをテスト。 C#

    string hoge = "b"; Assert.IsTrue (hoge == ("a", "b"), "correct hoge value"); なんてテストしたい。 しかし、そんな書き方は出来なかった。 using System.Linq; Linqを入れ、 string hoge = "b"; Assert.IsTrue (new string[] {"a", "b"}.Contains ("b")…

    UnTested Unity Coroutineでテスト。 C#

    このコードは動かない。 [Test] public IEnumerator APIAccessTest () { Dictionary <string, object> webInfo = new Dictionary<string, object> (); string userId = "00001"; // yield return StrarCoroutine (apiAccess.FireWebAPI (userId, (value) => { webInfo = value;})); yield ret</string,></string,>…

    UnTested Unity C#

    これでいけた [TestFixture] public class WaitTests { [Test] public IEnumerator AscyncTest () { yield return RunWait(); Assert.IsTrue (true, "THIS SHOULD PASS"); } private IEnumerator RunWait () { yield return new WaitForSeconds (0.5f); } }

    FileInfoから拡張子を外して取得

    GetFileNameWithoutExtensionを使えば、拡張子が外せる。 string myPath = Application.dataPath + "/Resources/MyPrefab"; DirectoryInfo dir = new DirectoryInfo(myPath); FileInfo[] info = dir.GetFiles("*.prefab"); foreach (FileInfo f in info) { D…

    UnTested Test単体テストフレームワーク。 Unity C#

    NUnit Liteでは、コルーチンはテスト出来ない。(多分(^_^;)) StartCoroutineとかIEnumeratorとか書くだけで動かない。 現在最新版の「NUnitLite 0.7」でもできなかった。 仕方ないので作者に聞くと別のAssetを紹介してもらった。(自分のアセットに自信な…