Programming
-
PHPの歴史
誕生 現在 PHP として知られているものは、かつて PHP/FI と呼ばれていたソフトウェアの後継 1994 年に Rasmus Lerdorf C 言語で作成 Personal Home Page Tools – PHP Tools 1995年 6月 最初公開 1996 年の 4 月PHP / FIを公開 ー プログラミング言語として確率(今まではツール群) AndiとZeevが加わりPHP: Hypertext Preprocessorとして公開 1998 年 6 月世界中から新たな開発者が多く参入した PHP Development Team は、PHP/FI 2.0 の正式な後継として PHP 3.0 をアナウンス 1999年なかごろZend Engine を紹介(ZEed + aNDi) PHP 4.0は 前のバージョンのおよそ2年後となる2000年5月にリリース 2004年7月 PHP5公開 - コアである…
-
Unity 클로즈업시에 씬이 사라지는 경우
http://answers.unity3d.com/questions/441567/4-split-view-objects-disappearing-when-zooming-too.html F 키를 눌러서 씬을 하이라이트.
-
swf間でメッソドよびだし
action script3 swf間でのコミュニケーション Official document http://kb2.adobe.com/community/publishing/918/cpsid_91887.html http://www.fabiobiondi.com/blog/2009/08/swf-to-swf-communication-in-flash-csx-how-to-call-methods-between-swf-files/ Commentの loader.load( new URLRequest(“Page.swf”), new LoaderContext(false, new ApplicationDomain())); がkeypoint
-
interface メソッド build が互換性のない署名を使用して…
JavaプログラマーがActionscript3コードを書くと言語仕様に起因する幾つかの問題に直面する。 例えば以下の仕様 – enumの不在 -Abstractの不在 その中で悩みの種となったのはinterfaceの実装の際、戻り値が厳格すぎることである。 例えばinterfaceの戻り値がClass Aのオブジェクトであれば実相時は必ずClass Aのオブジェクトを 返す必要がある。Class AのSuper Class, Sub Class 共にだめである。 以下サイトに識者らのやりとりが参考になる。 http://stackoverflow.com/questions/7837855/actionscript-overriding-methods-in-extended-interfaces-vs-java
-
Vert.x 3.1.0 Tutorial – 2 : Hello World TEST
Vert.x applicationはJUnitとvertx-unitでunitテストが可能なので 今回は前回のHello WorldのUnitテスト手順を投稿 本家の説明はこちら 前回の記事はこちら 今回のソースはこちら 1.依存関係追加 JUnitとvertx-unitテスト用の依存関係をpom.xmlに追加 <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-unit</artifactId> <version>3.1.0</version> <scope>test</scope> </dependency> 追加後libraryを更新[Maven Project パネルより->Reimport all maven projectsを実施] 2.テストソース 以下ソースをsrc/test/java/tutorial/vertx/HelloVerticleTest.javaに生成 /** * Created by bhags on 15/11/08. */ package tutorial.vertx; import io.vertx.core.Vertx; import io.vertx.ext.unit.Async; import io.vertx.ext.unit.TestContext; import io.vertx.ext.unit.junit.VertxUnitRunner; import io.vertx.core.logging.LoggerFactory; import io.vertx.core.logging.Logger; import org.junit.After; import org.junit.Before;…
-
Vert.x 3.1.0 Tutorial – 1 : Hello World
Vert.xの紹介は本家サイト(http://vertx.io/)に譲ってとりあえずHello Word! まず、今回のソースコードはこちら 0.開発環境 Mac OS X java 1.8 以上 IntelliJ 14. 1 : IntelliJでmaven新規プロジェクト作成 File ->New -> Project Mavenを選択しNext maven project 設定 GroupId : totorial.vertx ArtifactId : hello-verticle Version : 1.0-SNAPSHOT Project name / location name : hello-virticle location : すきなところへ 2 : pom.xml に依存関係を追加 以下の依存関係およびbuildをpom.xml のversionの下に追加 <dependencies> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-core</artifactId> <version>3.1.0</version> </dependency> </dependencies>…
-
mysql-connector-c ++ on mac
macでc++開発メモ c++でmysqlを利用したいので mysql-connector-c++をインストールする。 $brew search mysql automysqlbackup mysql++ mysql-connector-c++ mysql-sandbox php53-mysqlnd_ms php56-mysqlnd_ms groonga-normalizer-mysql mysql-cluster mysql-connector-odbc mysql-search-replace php54-mysqlnd_ms mysql mysql-connector-c mysql-proxy mysqltuner php55-mysqlnd_ms $brew install mysql-connector-c++
-
dispatch_asyncの内部コードが実行されない時
dispatch_asyncの内部コードが最後まで実行されず原因を調べた。 原因はsingletone実装の問題があった。 dispatch_asyncで呼ばれたsingletoneオグジェクトが 正しく初期化されないことが原因。 [だめな方法] +(MyClass) shared { static MyClass *_sharedInstance = nil; if(_sharedInstance == nil){ dispatch_once_t onceTokeon; dispatch_once(&onceTokeon, ^{ _sharedInstance = [[MyClass alloc] init]; }); } return _sharedInstance; } [正しい方法] +(MyClass *){ static MyClass *sharedInstance; @synchronized(self) { if (sharedInstance == nil) { sharedInstance = [[MyClass alloc] init]; } } return sharedInstance; } [Apple 推奨] +(MyClass…
-
Xcode 6 iOS UILabel font size 自動リサイズ
XCodeで iPad, iPhoneのサイズ別に fontのサイズを自動調節したい場合 元のネタ: http://stackoverflow.com/questions/30008136/changing-uilabel-font-size-with-autolayout 公式サイト: https://developer.apple.com/library/ios/recipes/xcode_help-IB_adaptive_sizes/chapters/ChangingtheFontforaSizeClass.html#//apple_ref/doc/uid/TP40014436-CH12-SW1 UILabelのfont設定のところの左にある+ボタンを押して対応 compact width/regular height : iPhone portrait any width/compact height : iPhone Landscape regular width/regular height : iPad portrait
-
iPhone ip address 自動更新 airplane モードをCommand lineで実行
[課題] iPhoneのGlobal ip addressを自動更新 [方針] 1.network deviceを再起動し更新 (成功) 2.airplane modeをprivate apiを利用し on / off (成功) [対策詳細1] Step 1)iPhone Jail break 2)open-ssh install 3)network restartメッソドを実装 4)アプリをルートアプリに昇格 1) iPhone Jail break – 7.1.x – iTunesがインストールされているかを確認すること http://tools4hack.santalab.me/how-to-ios71-ios711-untethered-jailbreak-pangu.html 2)-open-sshインストール cydiaよりインストール 3)network refresh method 3-1)ダメな方法 [参考URL] http://www.sinfuliphone.com/showthread.php?t=2144 network commandをインストールしrefreshする方法はwifiは更新できるが 3G/4G回線は更新できなかった。 3-2)成功した方法 system(“/bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist”); system(“/bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist”); CommCenter自体をリロードすることでネットワークの更新に成功 4)アプリをルートアプリに昇格…