Skip to content

Instantly share code, notes, and snippets.

@HaraShun
HaraShun / PHP呼び出し関数4種の違い
Created October 30, 2014 04:59
PHP呼び出し関数4種の違い
■ 結論
http://d.hatena.ne.jp/unau/20090122/1232574417
● 外部のファイルをそこに差し込みたい場合は include
● 外部のファイルに定義されたものを使いたい場合は require_once
(include_once や require もあるって? それらは使わなくていい)
■ 詳細
@HaraShun
HaraShun / Windowsコマンドの勉強
Created October 30, 2014 02:15
Windowsコマンドの勉強
http://www.atmarkit.co.jp/fnetwork/netcom/netstat/netstat.html
@HaraShun
HaraShun / SAML(Security Assertion Markup Language)/サムル
Last active August 29, 2015 14:08
SAML(Security Assertion Markup Language)/サムル
SAML(Security Assertion Markup Language)/サムル
SAMLは連携した企業間のWebサービスのSSOを目指して最近策定されたLiberty
Allianceの仕様や、マイクロソフトの.NET Passportに用いられる基本的な技術とし
て注目されているものである。さらにSAMLの上できめの細かなアクセス制御を行うた
めの記述言語XACML(eXtensible Access Control Markup Language)については次回
に述べることにする。SAMLやXACMLは、PKIと権限管理のインフラストラクチャである
PMI(Privilege Management Infrastructure)を融合させる次世代のフレームワーク
である。
@HaraShun
HaraShun / 例)「サムネイル用画像を作成する」
Created October 30, 2014 00:36
例)「サムネイル用画像を作成する」(Macのみ?)
例)「サムネイル用画像を作成する」
http://qiita.com/ituki_b/items/b5c577c7520a0fd30460
【xx.jpg/yy.gif/zz.pngを、xx_on.jpgやyy_on.gif、zz_on.pngに変更する方法】
`for F in *.*; do mv $F ${F/./_on.};done`
@HaraShun
HaraShun / Azure PHP
Created October 28, 2014 07:48
Azure PHP
■ Configuring PHP in Windows Azure Websites with .user.ini Files
http://blogs.msdn.com/b/silverlining/archive/2012/07/10/configuring-php-in-windows-azure-websites-with-user-ini-files.aspx
■ PHP-MySQL Azure の Web サイトを作成して Git で展開する
http://azure.microsoft.com/ja-jp/documentation/articles/web-sites-php-mysql-deploy-use-git/
@HaraShun
HaraShun / リソース状況を把握する
Created October 28, 2014 06:24
リソース状況を把握する
●top どのプロセスがCPUを使用しているか
●dstat リソースの経過を把握
●netstat LISTENしているか、使用しているポート数
@HaraShun
HaraShun / N環境
Last active August 29, 2015 14:08
N環境
[ 2014 / 10 / 28 現在]
●Ruby環境
 -空き【 2GB 】(514.0MB of 2500MB used)
 -Python, Perl
 -【 PostgresSQL 】, (MySQL), (mongo)
 -g/g
●Node.js環境
@HaraShun
HaraShun / MVCには『クライアント寄り』と『サーバー寄り』のがある!
Created October 28, 2014 00:17
MVCには『クライアント寄り』と『サーバー寄り』のがある!
■ MVCには『クライアント寄り』と『サーバー寄り』のがある!
== クライアント寄り:【 MVC 】
- SPA、ネイティブアプリ
 
- 画面 → コントローラー → モデル → ビュー → 画面
「本当は楽しいインターネット」より
http://www.slideshare.net/yuyarin/ss-39061287
==【各4層の役目】
●アプリケーション層 : HTTP, SMTP, SSH  : アプリケーションのための制御するよ!
●トランスポート層  : TCP, UDP  : データの信頼性保証してやんよ!
@HaraShun
HaraShun / C10K(同時接続数の爆発)問題
Created October 26, 2014 10:45
C10K(同時接続数の爆発)問題
C10K(同時接続数の爆発)問題
・何も考えないApache(prefork設定)では無理
・nginxやApache event_mpmの検討
・非同期モデル(node.js)なら・・?
・静的データは別ドメインのWebサーバ