<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/soraka/">
    <title>soraka @ ウィキ</title>
    <link>http://w.atwiki.jp/soraka/</link>
    <atom:link href="https://w.atwiki.jp/soraka/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>soraka @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2011-01-03T16:56:21+09:00</dc:date>
    <utime>1294041381</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/17.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/18.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/25.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/soraka/pages/23.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/24.html">
    <title>miniBBS</title>
    <link>https://w.atwiki.jp/soraka/pages/24.html</link>
    <description>
      まず、「[[MySQL]]」に接続する
そして、DBに接続する

下は、データをDBに入れる部分。
 1 &lt;?php
  2 if(isset($_POST[&quot;name&quot;]) &amp;&amp; isset($_POST[&quot;comment&quot;])){
  3         $name = $_POST[&quot;name&quot;];
  4         $comment = $_POST[&quot;comment&quot;];
  5
  6 }
  7
  8 $link = mysql_connect(&#039;localhost&#039;, &#039;****&#039;, &#039;*****&#039;);
  9 if(!$link){
 10         die(&#039;MySQL connect Error&#039;.mysql_error());
 11 }
 12
 13 $db_selected = mysql_select_db(&#039;bbs&#039;, $link);
 14 if(!$db_selected){
 15         die(&#039;DB connect Error&#039;.mysql_error());
 16 }
 17 print &quot;DB connect OK&quot;;
 18
 19 $sql = &quot;insert into smallBBS_tbl(name, comment, date) values(&#039;$name&#039;, &#039;$comment&#039;, now())&quot;;  #ここで、&#039;$name&#039; のように、囲むことが重要
 20 $result = mysql_query($sql);
 21 if(!$result){
 22         die(&#039;query Error&#039;.mysql_error());
 23 }
 24 print &quot;query OK&quot;;
 25
 26 mysql_close($link);
 27 ?&gt;    </description>
    <dc:date>2011-01-03T16:56:21+09:00</dc:date>
    <utime>1294041381</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/17.html">
    <title>screen設定</title>
    <link>https://w.atwiki.jp/soraka/pages/17.html</link>
    <description>
      escape ^Jj
autodetach on # 回線が切れた場合に自動的にデタッチするか
vbell off # visible bell を使用するか
# bind w windowlist -b # window list の表示方法を変更
deflogin off # 新しいwindowを開く度に/etc/utmpにentryを追加するか
bell &quot;Bell in window %.&quot; # 隠れているwindowでのbellを通知
activity &quot;Activity in window %.&quot; # 隠れているwindowの状態変化を通知
# detach on hangup
startup_message off # スタートアップページを表示するか
termcapinfo xterm|kterm|kterm-color &#039;hs:ts=\E]2;:fs=\007:ds=\E]0;screen\007&#039;    # タイトルバーをステータス表示に使う
terminfo xterm|kterm|kterm-color XT # for mice
shell -$SHELL # make the shell in every window a login shell
defscrollback 10000

caption always &quot;%{= wg} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wm}%c&quot;                                                                            
bind n screen
bind h prev
bind j next
bind l windowlist














## screen        last modified : 2004-07-26

escape ^T^T             # prefixキーをC-tに変更する
vbell off               # visible bell を使用するか
# bind w windowlist -b  # window list の表示方法を変更
deflogin off    # 新しいwindowを開く度に/etc/utmpにentryを追加するか
bell &quot;Bell in window %.&quot; # 隠れているwindowでのbellを通知
activity &quot;Activity in window %.&quot; # 隠れているwindowの状態変化を通知
autodetach on   # 回線が切れた場合に自動的にデタッチするか
# detach on hangup
startup_message off     # スタートアップページを表示するか
termcapinfo  xterm|kterm|kterm-color &#039;hs:ts=\E]2;:fs=\007:ds=\E]0;screen\007&#039;
# タイトルバーをステータス表示に使う
terminfo xterm|kterm|kterm-color XT # for mice
shell -$SHELL # make the shell in every window a login shell
defscrollback 1000

hardstatus string &quot; %m/%d %D %c [%n:%Lw] %H:%h&quot; # status表示のformat
## m:month, d:day, D:weekday, c:current time in 24h,
## n:window number, w:all window numbers, H:hostname,
## h:hardstatus of the window, l:current load of the system
# defhstatus &quot;^En:^Et&quot;
# defhstatus &quot;screen: ^E (^Et)&quot;

caption always &quot;%{= wg} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wm}%c&quot;    </description>
    <dc:date>2010-11-20T17:01:21+09:00</dc:date>
    <utime>1290240081</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/26.html">
    <title>xampp</title>
    <link>https://w.atwiki.jp/soraka/pages/26.html</link>
    <description>
      xampp, phpMyadmin で、パスワードを求められ、ログインできない

以下の設定を行う
http://d.hatena.ne.jp/iShiketa/20090508/1241802969

パスワードの初期化
http://q.hatena.ne.jp/1267848424
・方法2

上記の他に、「xampp\mysql\backup\mysql」から「user.MYD」「user.MYI」「user.frm」をコピーして、

「xampp\mysql\data\mysql」に戻す方法でも大丈夫です。

※すべてのユーザーが初期状態に戻って、パスワードが設定されていない状態に戻ります。(新規に追加した

ユーザも消えますので注意してください。)
を試す。

が、すぐにはログインできず。

Windows コマンドプロンプト
cd /d D:\ とする

mysqlにログインするには、D:\xampp\mysql\bin&gt;mysql -u root -p
パスワードなしで、ログインできた
phpMyAdmin も、パスワードなしでログインできた

原因はよくわからない。

現在は、
xampp\phpMyAdmin\config.inc.php
の、パスワードも空の状態    </description>
    <dc:date>2010-10-03T10:40:10+09:00</dc:date>
    <utime>1286070010</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/soraka/pages/1.html</link>
    <description>
      -[[FreeBSD]]

-[[PHP]]
-[[Perl]]
-[[MySQL]]

-[[googleMap]]
-[[miniBBS]]

-[[xampp]]

-[[サーバ基礎操作]]
-[[サーバ設定基礎]]

-[[vim設定]]
-[[screen設定]]

C++ の場合
 2 #include &lt;iostream&gt;
 3 using namespace std;


**Wiki編集参考
-[[@wikiの基本操作&gt;http://atwiki.jp/guide/category2.html]]
-[[用途別のオススメ機能紹介&gt;http://atwiki.jp/guide/category22.html]]
-[[@wikiの設定/管理&gt;http://atwiki.jp/guide/category6.html]]

**分からないことは？
-[[@wiki ご利用ガイド&gt;http://atwiki.jp/guide/]]
-[[よくある質問&gt;http://atwiki.jp/guide/category1.html]]
-[[無料で会員登録できるSNS内の@wiki助け合いコミュニティ&gt;http://sns.atfb.jp/view_community2.php?no=112]]
-[[@wiki更新情報&gt;http://www1.atwiki.jp/guide/pages/264.html]]
-[[@wikiへのお問合せフォーム&gt;http://atwiki.jp/helpdesk]]
等をご活用ください

**@wiki助け合いコミュニティの掲示板スレッド一覧
#atfb_bbs_list(112)


**その他にもいろいろな機能満載！！
-[[@wikiプラグイン&gt;http://atwiki.jp/guide/category17.html]]
-[[@wiki便利ツール&gt;http://atwiki.jp/guide/category32.html]]
-[[@wiki構文&gt;http://atwiki.jp/guide/category16.html]]
-[[@wikiプラグイン一覧&gt;http://www1.atwiki.jp/guide/pages/264.html]]
-[[まとめサイト作成支援ツール&gt;http://atwiki.jp/matome/]]    </description>
    <dc:date>2010-10-03T10:39:44+09:00</dc:date>
    <utime>1286069984</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/16.html">
    <title>vim設定</title>
    <link>https://w.atwiki.jp/soraka/pages/16.html</link>
    <description>
      *自分のvim
&quot; users generic .vimrc file for vim(1)
&quot; When started as &quot;evim&quot;, evim.vim will already have done these configuration.
if v:progname =~? &quot;evim&quot;
finish
endif

&quot; Use Vim configurations, rather then Vi&#039;s one.
set nocompatible

&quot; allow backspacing over everything in insert mode
set backspace=indent,eol,start

&quot; keep 50 lines of command line history
set history=50

&quot; show the cursor position all the time
set ruler

&quot; display incomplete commands
set showcmd

&quot; do incremental searching
set incsearch

&quot; do syntax highlight
syntax on
set hlsearch

&quot; set background color and text colorn (for black display)
if &quot;cons25&quot; == $TERM
hi Normal ctermbg=black ctermfg=white
endif

&quot; do file encoding auto check
set fileencodings=iso-2022-jp,sjis

set number
set wrapscan
set title
set showmatch


*参考になるページ
http://www.crimson-snow.net/tips/unix/vim.html


*vim から sh に一時的に変わる方法
&gt;:sh
戻るには、Ctl+d


*vim で、対応する閉じ括弧を表示
&gt;はじまりの括弧にカーソルを合わせた状態で、%    </description>
    <dc:date>2010-09-05T20:55:59+09:00</dc:date>
    <utime>1283687759</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/18.html">
    <title>Perl</title>
    <link>https://w.atwiki.jp/soraka/pages/18.html</link>
    <description>
      *ある文字をファイルの中から探す

#!/usr/local/bin/perl -w
use strict;
if(@ARGV != 1){
        print &quot;USAGE: ./prob18_0207.pl fileName\n&quot;;
        exit 1;
}
if(open(FILE, $ARGV[0])){
        while(my $line = &lt;FILE&gt;){
                if($line =~ /[a-zA-Z]{8,}?/){
                        print $line;
                }
        }
}else{
        print &quot;$ARGV[0]: $!\n&quot;;
        print &quot;USAGE: ./prob18_0207.pl fileName\n&quot;;
        exit 1;
}


*ID=数字　の数字を抜き出す
  1 #!/usr/local/bin/perl -w
  2 use strict;
  3
  4 open(FILE, &#039;sample.txt&#039;);
  5 while(my $line = &lt;FILE&gt;){
  6         while($line =~ /ID=(\w+)/g){
  7                 print $1,&quot;\n&quot;;
  8         }
  9 }


*数字3つを別々に抜き出す
 1 #!/usr/local/bin/perl -w
  2 use strict;
  3
  4 open(FILE, &#039;sample.txt&#039;) or die &quot;$!&quot;;
  5 while(my $line =&lt;FILE&gt;){
  6         if($line =~ /(\d+), (\d+), (\d+)/){
  7                 print &quot;height = $1\n&quot;;
  8                 print &quot;weight = $2\n&quot;;
  9                 print &quot;age = $3\n&quot;;
 10         }
 11 }

* perlワンライナー
&gt;perl -i -pe &#039;s/aaa/ccc/g&#039; test.pl

-i でそのファイル自体を書き換え。-eで、そのあとに続くものをperlプログラムと認識する    </description>
    <dc:date>2010-08-28T15:24:33+09:00</dc:date>
    <utime>1282976673</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/13.html">
    <title>FreeBSD</title>
    <link>https://w.atwiki.jp/soraka/pages/13.html</link>
    <description>
      **FreeBSDインストール
-参考URL
http://freebsd.server-manual.com/freebsd7_install.html

これを行った後、ユーザを作成した。
http://www.bugbearr.jp/?FreeBSD%2F%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%AE%E8%BF%BD%E5%8A%A0
いちおこれで動いている。

-ネットワークの設定
ppp0, sl0, plip0, fwe0は選ばない！

-DHCP
http://e-words.jp/w/DHCP.html
ネットにつないだ状態で、Yesを選んだほうが良い

-Ports
portsの管理
http://www.mlab.ice.uec.ac.jp/~ej-sib/freebsd/freebsd_ports.html

インストールは、インストールしたいディレクトリに移動して、
&gt;# cd /usr/ports/www/firefox/
&gt;# make install clean

-shellの変更を行う
http://hp.vector.co.jp/authors/VA022911/tec/freebsd/04chsh.htm

-bashの設定
http://www.atmarkit.co.jp/flinux/rensai/theory09/theory09b.html


*makeについて
このページめっちゃわかりやすい
http://www.yynet.org/~yokota/INSTALL/makefile.html



*MySQL, PHP, Apache の順番でインストールしなければいけないかもしれない。
インストールは1.[[MySQL]]、2.Apache、3.[[PHP]]の順で行います（注）
http://www.atmarkit.co.jp/flinux/rensai/mysql5_01/mysql5_01a.html

**Apache
Apache 設定ファイル
&gt;/usr/local/etc/apache2/httpd.conf

このファイルに、自分のサーバのIPアドレスとDNS名を指定する
&gt;/etc/hosts

apache起動
&gt;/usr/local/etc/rc.d/apache2 start
&gt;もしくは↓
&gt;sudo apachectl start

http://www.kishiro.com/apache/start_stop.html


topコマンドで、apacheが正しく起動されているか確認
or
http://192.168.*.*（自分のIPアドレス）にアクセス

Webページのファイルを置く場所
&gt;自分のディレクトリに public_html ディレクトリを作成


**MySQL
ここを参考にインストール
http://freebsd.server-manual.com/freebsd7_mysql.html
この通りでできた

**PHP
PHPは、portsインストール時に選ぶオプションが重要
http://www.kishiro.com/FreeBSD/php5.html

↑のインストールに失敗した場合は（オプションを選び忘れた場合は
http://d.hatena.ne.jp/methinks/20090115/1232045654

PHPを使うには、apacheの設定が必要
&gt;/usr/local/etc/apache2/httpd.conf

&gt;AddType application/x-compress .Z
&gt;AddType application/x-gzip .gz .tgz
&gt;
&gt;LoadModule php5_module        libexec/apache2/libphp5.so
&gt;AddType application/x-httpd-php .php
&gt;AddType application/x-httpd-php-source .phps

php.iniの設定も変更します
&gt;/usr/local/etc/php.ini

PHPのエラーを画面に表示させるには、
http://logic.stepserver.jp/data/archives/70.html    </description>
    <dc:date>2010-08-01T12:53:26+09:00</dc:date>
    <utime>1280634806</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/25.html">
    <title>googleMap</title>
    <link>https://w.atwiki.jp/soraka/pages/25.html</link>
    <description>
      -参考になるサイト
Google Maps API Documentaion サクっと基本部分だけ
http://archiva.jp/web/javascript/google-maps_api_documentation.html    </description>
    <dc:date>2010-07-21T21:53:57+09:00</dc:date>
    <utime>1279716837</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/15.html">
    <title>PHP</title>
    <link>https://w.atwiki.jp/soraka/pages/15.html</link>
    <description>
      * PHPの設定ファイル　php.ini
&gt;/usr/local/etc/php.ini

* PHPのdefault_charsetをUTF-8にする

その後、apacheリスタート

*PHP参考になるページ

-PHPBook
http://www.phpbook.jp/index.html    </description>
    <dc:date>2010-07-11T12:42:18+09:00</dc:date>
    <utime>1278819738</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/soraka/pages/23.html">
    <title>MySQL</title>
    <link>https://w.atwiki.jp/soraka/pages/23.html</link>
    <description>
      *まず第一歩
MySQLに入る
&gt;mysql -u ID -p

データベース表示
&gt;show databases;

データベース選択
&gt;use DBname

テーブル表示
&gt;show tables;

テーブルの構成を表示
&gt;show fields from smallBBS_tbl;

データベースの文字コードを見る
&gt;show variables like &#039;%char%&#039;;    </description>
    <dc:date>2010-07-08T23:10:08+09:00</dc:date>
    <utime>1278598208</utime>
  </item>
  </rdf:RDF>
