December 2008
40 posts
PHP5.1.6で、ZIP関数の導入 - [Linux]
■ライブラリのインストール pecl install zip ■php.iniに以下を追加 extension=zip.so
Dec 26th
memo - [apache]
Apacheの実行ユーザを設定、か。 ■変更対象ファイル httpd.conf ■記述 User Group
Dec 26th
subversion - [Linux]
『undefined symbol: dav_register_provider』 apacheの設定を変更し、再起動する際上記のエラーが発生した場合、 以下のモジュールの読み込みがコメントアウトになっている可能性あり。 #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so
Dec 26th
Grep - [Linux]
■キーワードを含むファイルを全て検索 grep “Keyword” /path/* ■単語の完全一致で検索 grep -w “Keyword” /path/* ■大・小文字の区別をせずに検索 grep -i “Keyword” /path/* ■サブディレクトリ以下を再帰的に検索 grep -r “Keyword” /path/*
Dec 25th
mysql - [文字コード確認]
■文字コードを確認する mysql> show variables like ‘character_set%’; or mysql> status ■文字コードを変更する /etc/my.cnf を編集 [client] default-character-set=utf8 [mysqld] default-character-set = utf8 skip-character-set-client-handshake character-set-server = utf8 collation-server = utf8_general_ci init-connect = SET NAMES utf8
Dec 25th
yumのインストール - [CentOS5 (final)]
wget http://mirror.centos.org/centos/5/os/`uname -i`/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm wget http://mirror.centos.org/centos/5/os/`uname -i`/CentOS/python-elementtree-1.2.6-5.`uname -i`.rpm wget http://mirror.centos.org/centos/5/os/`uname -i`/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm wget http://mirror.centos.org/centos/5/os/`uname -i`/CentOS/python-sqlite-1.1.7-1.2.1.`uname -i`.rpm...
Dec 25th
アプリケーション テンプレートを作成する - [Visual Studio] →
Dec 25th
1 tag
Direct Drawは廃止 - [DirectX, Windows]
DirectX8.0以降 Direct Draw は廃止された、との事。 なので、Direct3Dを勉強した方が良いようだ。 ■参照元リンク http://it_yougo.shooti.jp/s/503292/1 http://dench.flatlib.jp/dxlist.html#dx7 オマケ http://wiki.forest-green.net/index.php?DirectX
Dec 25th
1 tag
PHP - [ランダム文字列]
mt_rand() http://jp.php.net/manual/ja/function.mt-rand.php md5() http://jp.php.net/manual/ja/function.md5.php uniqid() http://jp.php.net/manual/ja/function.uniqid.php
Dec 24th
2 tags
web session - [PHP]
■内容 http://example.com/alias1 http://example.com/alias2 各エイリアス以下で別々のセッションIDを使用する場合 session の domainや、sslの設定有無は同じにして、cookie_pathをそれぞれのエイリア スを指定する。 —— cookie_path = / を上記のように指定せず、/alias/というような形に設定すれば パスごとに別々のセッションIDを使用することができる。 ■参照元URL http://www.asahi-net.or.jp/~wv7y-kmr/memo/php_security.html#PHP_Session_Cookie_Path
Dec 24th
HTML,CSS - [class名, id名]
全体に使えそうな感じ wrap wrapper top-wrapper wrapperAll frame mframe all-frame container page pagetop all allContents layout layout-two-column layout-three-column body carrier 上んトコロに使えそうな感じ head header headerArea headline ナビゲーションっぽいトコロに使えそうな感じ navi navigation navbar gnav gnavi g-navi globalnav global-navi globalNavi globalnavigation ...
Dec 23rd
.htaccess Editor - オンライン版「.htaccess」作成ツール →
Dec 23rd
2 tags
SQL Server - [osql, コマンドライン]
■データベースのテーブル一覧 —システムストアドプロシージャ(システムビューも表示) sp_tables —またはシステムテーブルを使って select o.name “テーブル名”, u.name “所有者” from sysobjects o join sysusers u on o.uid = u.uid where o.type = ‘U’ order by 1 ■テーブルの列名一覧 —システムストアドプロシージャ sp_columns テーブル名 —またはシステムテーブルを使って select o.name,c.name from syscolumns c, sysobjects o where c.id=o.id order by...
Dec 23rd
あると便利なソフト - [Windows]
■IETester http://www.my-debugbar.com/wiki/IETester ■WinMerge http://www.geocities.co.jp/SiliconValley-SanJose/8165/winmerge.html ■Reflector http://www.red-gate.com/products/reflector/
Dec 23rd
★自作曲 - 無題
ピッチ補正かけてるからぱふゅうむ的な歌声ですが、 声質はいじってないかな。多分。 ■URL http://voon.jp/a/cast/?id=3k5b62ic&c=9
Dec 22nd
日本 - [地域]
■北海道・東北  ※北東北:  北海道  青森県 - 青森市 →(青森県#地域)  岩手県 - 盛岡市 →(岩手県#地域)  秋田県 - 秋田市 →(秋田県#地域)  ※南東北:  宮城県 - 仙台市 →(宮城県#地域)  山形県 - 山形市 →(山形県#地域)  福島県 - 福島市 →(福島県#地域と文化) ■関東 北関東: 茨城県 - 水戸市 →(茨城県#地域) 栃木県 - 宇都宮市 群馬県 - 前橋市 →(群馬県#地域) 南関東: 埼玉県 - さいたま市 →(埼玉県#地域) 千葉県 - 千葉市 →(千葉県#地域) 東京都 - 東京特別区(新宿区) 神奈川県 - 横浜市、川崎市 →(神奈川県#地域) ■中部  ※甲信越地方:  山梨県 - 甲府市  長野県 - 長野市 →(長野県#地域)  新潟県 - 新潟市 →(新潟県#地域)  ※北陸地方:  富山県 - 富山市  石川県...
Dec 21st
Windowsのタスク設定 - [Vista]
■タスクの追加 操作→タスクの作成→『ユーザがログオンしているかどうかに関わらず実行する。』にチェックを入れる。 ■実行条件設定 トリガータブ→新規作成 ※Vista以前はトリガーという名称ではなかったが、ここに実行条件を記述する。
Dec 21st
1 tag
C# - [デリゲート, delegate]
using System; namespace Delegate {     delegate void MD();     class Multi     {         void show1()         {             Console.WriteLine(“Show1です。”);         }         void show2()         {             Console.WriteLine(“Show2です。”);         }         void show3()         {             Console.WriteLine(“Show3です。”);         }         static void...
Dec 20th
C# - [配列]
            //配列の定義の方法             //no1             int[] array;             array = new int[10];             //no2 : 宣言と同時に初期化             int[] array2 = new int[10];             //no3 : 要素数と値の代入も同時に             int[] array3 = new int[3] { 1, 2, 3 };             //no4 : 要素数のみ省略             int[] array4 = new int[] { 1, 2, 3, 4, 5 };             //多次元配列の定義             int[,]...
Dec 20th
2 tags
C# - [ArrayList, foreach]
            ArrayList al = new ArrayList();             while (true)             {                 Console.Write(“(xで終了)データ:”);                 string str = Console.ReadLine();                 if (str == “”) return;                 if (!char.IsDigit(str[0]) && str[0] != ‘-‘) break;                 double dData = double.Parse(str);                ...
Dec 20th
1 tag
[STAThread]といふ表記について - [C#, .NET]
■参照URL http://maglog.jp/snri/Article317041.html
Dec 20th
キー入力 - [.NET, VB, C#] →
Dec 20th
分離ストレージを活用するには?[C#、VB] - @IT →
Dec 20th
C# - [#region, プリプロセッサ]
#region リージョン int hoge = 0; int start = 1; #endregion —— Visual C#では上記の様に#resion~#endregionで囲まれた部分を折りたたんで表示する。 とすると、こやつはコメント表記みたいなものか。
Dec 19th
4 tags
Subversionインストール - [CentOS4.6, svn]
■CentOS 4.6にsubversionをインストールした時のメモ yumも併せてインストール・・・ mkdir yum-2.4.3-4 cd yum-2.4.3-4 wget http://mirror.centos.org/centos/4.6/os/`uname -i`/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm                    \n wget http://mirror.centos.org/centos/4.6/os/`uname -i`/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm                 \n wget http://mirror.centos.org/centos/4.6/os/`uname...
Dec 17th
正規表現 - [量指定子]
■量指定子(範囲指定繰り返し制御) {n} 直前のパターンにn回マッチ(nは0以上の整数) {n,} 直前のパターンにn回以上マッチ(nは0以上の整数) {n,m} 直前のパターンにn回以上m回以下のマッチ(nは0以上の整数、mはn以上の整数) * 直前のパターンに0回以上マッチ + 直前のパターンに1回以上マッチ ? 直前のパターンに0回か1回マッチ
Dec 17th
C# - [C#とは?, 解説, 基礎知識] →
Dec 15th
C# - [Windows, ゲーム, フレームワーク, SDK] →
Dec 15th
C# - [画像表示, 文字列表示, Windowsアプリケーション]
namespace WindowsFormsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void Start_Click(object sender, EventArgs e)         {               pictureBox1.Enabled = true;             pictureBox1.Paint += pictureBox1_Paint;             pictureBox1.Refresh();             //pictureBox1.Image =...
Dec 15th
C# - [Windowsプログラミング, 参考サイト] →
Dec 15th
C# - [パス結合, .NET]
System.IO.Path.Combine(path1, path2);
Dec 15th
C# - [EXE, 実行パス, .NET]
string exePath = System.IO.Path.GetDirectoryName(     System.Reflection.Assembly.GetExecutingAssembly().Location);
Dec 15th
PHP - [数値, チェック]
■内容 is_numeric(mixed $var) 変数が数字または数値形式の文字列であるかを調べる ■参照URL http://jp2.php.net/manual/ja/function.is-numeric.php
Dec 10th
ダウンロード - [ie6, ファイル]
■内容 ・現象 Content-Disposition:attachment や Cache-Control:no-cache を使うとファイル名が見つからない内容のエラーが発生し、ファイルを開くことができない場合があります。 ・対策: Content-Disposition に inline を指定する等、Content-Disposition:attachment ヘッダーを使用しない、またはキャッシュを制限しないことにより現象を回避することが可能 ■参照URL http://d.hatena.ne.jp/tenman/20060801/p1 http://support.microsoft.com/default.aspx?scid=kb;ja;436605
Dec 9th
smarty - [コメント表記,comment]
タグにアスタリスクを付加する。 例) {{* comment *}}
Dec 9th
mysql,フィールド定義変更
ALTER TABLE table_name MODIFY field_name data_type;
Dec 9th
VB6 - 全角文字を半角に変換。
Hankaku = StrConv(Zenkaku, VbStrConv.Narrow)
Dec 8th
正規表現の履歴
■内容 data(fields(“hoge”)) … を CollectionGet(data, field(“hoge”), “”) に置換。 ■詳細 [pattern]data\((fields\(“.+”\))\) [replace]CollectionGet(data, \1, “”)
Dec 8th
Rubular - a Ruby regular expression editor →
Dec 8th
SQL Server - コマンドラインでバックアップ
osql -S 【サーバ名】 -U【ユーザ名】 -n -Q “BACKUP DATABASE 【データベース名】TO DISK = ‘【バックアップデータの保存パス】’” 
Dec 8th