<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom">
  <title>code&#12394;&#12395;&#12364;&#12375;: &#25945;&#12360;&#12390;&#12539;&#21161;&#12369;&#12390;&#12539;&#12467;&#12540;&#12489;&#26360;&#12356;&#12390;&#12387;&#9834;&#12398;&#19968;&#35239;</title>
  <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum"/>
  <link rel="icon" href="/favicon.ico"/>
  <updated>2009-01-06T02:30:37+09:00</updated>
  <id>tag:code.nanigac.com:forums</id>
  <entry>
    <title>OpenCV&#12395;&#12424;&#12427;&#38996;&#35469;&#35388;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/377"/>
    <id>tag:code.nanigac.com:forums,377</id>
    <author>
      <name>&#12466;&#12473;&#12488; (ken)</name>
    </author>
    <updated>2009-01-06T02:30:37+09:00</updated>
    <summary>&#20197;&#21069;&#12371;&#12398;&#12469;&#12452;&#12488;&#12391;&#12300;OpenCV&#12395;&#12424;&#12427;&#26178;&#38291;&#24046;&#34920;&#31034;&#12392;&#38996;&#35469;&#35388;&#65288;http://code.nanigac.com/forum/view/352&#65289;&#12301;&#12434;&#35211;&#12363;&#12369;&#12414;&#12375;&#12383;&#12290;
&#36074;&#21839;&#12394;&#12398;&#12391;&#12377;&#12364;&#12289;&#19978;&#35352;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#21033;&#29992;&#12375;&#12390;&#38996;&#35469;&#35388;&#65288;&#20491;&#20154;&#12398;&#35672;&#21029;&#65289;&#12399;&#21487;&#33021;&#12391;&#12377;&#12363;&#65311;
&#12414;&#12383;&#21487;&#33021;&#12394;&#12425;&#12393;&#12398;&#12424;&#12358;&#12394;&#26041;&#27861;&#12364;&#12354;&#12427;&#12398;&#12363;&#12450;&#12489;&#12496;&#12452;&#12473;&#12356;&#12383;&#12384;&#12369;&#12383;&#12425;&#24184;&#12356;&#12391;&#12377;&#12290;
&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>Pear&#12398;QuickForm&#12398;form&#35373;&#23450;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/376"/>
    <id>tag:code.nanigac.com:forums,376</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2009-01-04T23:00:28+09:00</updated>
    <summary>QuickForm&#12288;&#12398;form&#12398;action&#12434;&#35373;&#23450;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#12393;&#12398;&#12424;&#12358;&#12395;&#12377;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

&#21336;&#12395; new HTML_QuickForm("aaa", "get")&#12288;&#12391;&#12399;&#12381;&#12398;&#12473;&#12463;&#12522;&#12503;&#12488;&#12398;&#12497;&#12473;&#12364;&#20837;&#21147;&#12373;&#12428;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;


</summary>
  </entry>
  <entry>
    <title>WinSock&#12391;&#12398;&#12503;&#12525;&#12464;&#12521;&#12511;&#12531;&#12464;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/375"/>
    <id>tag:code.nanigac.com:forums,375</id>
    <author>
      <name>&#12354;&#12365;&#12420;&#12414;</name>
    </author>
    <updated>2009-01-01T19:25:13+09:00</updated>
    <summary>&#12372;&#36074;&#21839;&#12373;&#12379;&#12390;&#12356;&#12383;&#12384;&#12365;&#12414;&#12377;&#12290;
&#29694;&#22312;WinSock&#12434;&#20351;&#12356;&#12289;&#12354;&#12427;URL&#12398;&#12469;&#12452;&#12488;&#12363;&#12425;&#12487;&#12540;&#12479;&#12434;&#21462;&#24471;&#12377;&#12427;&#12392;&#12356;&#12358;
&#12371;&#12392;&#12434;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

&#21442;&#32771;&#12469;&#12452;&#12488;&#12395;&#12398;&#12387;&#12390;&#12356;&#12427;&#12469;&#12531;&#12503;&#12523;&#12394;&#12393;&#12434;&#25309;&#35211;&#12375;&#12394;&#12364;&#12425;&#12503;&#12525;&#12464;&#12521;&#12511;&#12531;&#12464;&#12394;&#12393;&#12434;&#12375;&#12390;&#12289;&#12487;&#12540;&#12479;&#12434;&#21463;&#20449;&#12375;&#12289;&#25991;&#23383;&#21015;&#12434;&#37197;&#21015;&#12395;&#26684;&#32013;&#12377;&#12427;&#12371;&#12392;&#12399;&#12391;&#12365;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#21462;&#24471;&#12487;&#12540;&#12479;&#20197;&#22806;&#12395;&#12418;&#12504;&#12483;&#12480;&#24773;&#22577;&#65311;&#12392;&#12356;&#12431;&#12428;&#12427;&#12418;&#12398;&#12394;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#12289;

HTTP/1.1 2000 OK
Date : ~~~
P3P : ~~~
Connection : ~~~
Content-Type : ~~~

&#19978;&#35352;&#12398;&#12424;&#12358;&#12394;&#12418;&#12398;&#12414;&#12391;&#21463;&#20449;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;
&#12469;&#12452;&#12488;&#12363;&#12425;&#21462;&#24471;&#12375;&#12383;&#12487;&#12540;&#12479;&#12398;&#12415;&#25277;&#20986;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#12394;&#12395;&#12363;&#12356;&#12356;&#26041;&#27861;&#12399;&#12394;&#12356;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;
&#32771;&#12360;&#12425;&#12428;&#12427;&#12371;&#12392;&#12392;&#12375;&#12383;&#12425;&#25991;&#23383;&#21015;&#25805;&#20316;&#12391;&#25277;&#20986;&#12391;&#12365;&#12381;&#12358;&#12391;&#12377;&#12364;&#12539;&#12539;&#12539;

&#12414;&#12383;&#12289;RSS&#12394;&#12393;&#12398;&#24773;&#22577;&#12434;&#21462;&#24471;&#12377;&#12427;&#22580;&#21512;&#12289;&#12393;&#12428;&#12367;&#12425;&#12356;&#12398;&#12496;&#12483;&#12501;&#12449;&#65288;&#37197;&#21015;&#25968;&#65289;&#12434;&#30906;&#20445;&#12377;&#12428;&#12400;&#12356;&#12356;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;
&#29694;&#22312;&#12399;10000&#12395;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

&#12372;&#25945;&#25480;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;

&#25509;&#32154;----
connect
send
</summary>
  </entry>
  <entry>
    <title>20081230&#12434;&#24180;&#12289;&#26376;&#12289;&#26085;&#12391;&#21106;&#12426;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/374"/>
    <id>tag:code.nanigac.com:forums,374</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2009-01-01T13:50:50+09:00</updated>
    <summary>PHP&#12391;&#12473;&#12463;&#12522;&#12503;&#12488;&#12434;&#20316;&#25104;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

&#12381;&#12398;&#12473;&#12463;&#12522;&#12503;&#12488;&#19978;&#12391;&#25201;&#12358;&#24773;&#22577;&#12395; 20081230 &#12392;&#12356;&#12358;&#26085;&#26178;&#12434;&#34920;&#12375;&#12383;&#25991;&#23383;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;
&#12371;&#12398;&#25991;&#23383;&#12434;&#12288;2008.12.30&#12392;&#12356;&#12358;&#12405;&#12358;&#12395; . &#12391;&#24180;&#12289;&#26376;&#12289;&#26085;&#12392;&#20998;&#12369;&#12427;&#26041;&#27861;&#12434;&#25945;&#12360;&#12390;&#19979;&#12373;&#12356;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#36899;&#32154;&#12375;&#12390;&#25991;&#23383;&#21015;&#12434;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12395;&#25407;&#20837;&#12377;&#12427;&#26041;&#27861;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/373"/>
    <id>tag:code.nanigac.com:forums,373</id>
    <author>
      <name>apple</name>
    </author>
    <updated>2009-01-01T18:46:46+09:00</updated>
    <summary>MySQL&#20869;&#12395;hoge&#12392;&#12356;&#12358;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12364;&#12354;&#12426;&#12289;testData&#12392;&#12356;&#12358;&#12486;&#12540;&#12502;&#12523;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;

&#12371;&#12398;&#12486;&#12540;&#12502;&#12523;&#12398;&#12288;id &#12392; name &#12392;&#12356;&#12358;&#12459;&#12521;&#12512;&#12395;10&#25991;&#23383;&#12398;&#21322;&#35282;&#33521;&#25968;&#23383;&#12434;&#36899;&#32154;&#12375;&#12390;200&#12524;&#12467;&#12540;&#12489;&#20998;&#20837;&#21147;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#26041;&#27861;&#12364;&#20998;&#12363;&#12426;&#12414;&#12379;&#12435;&#12290;

name&#12399;&#37325;&#35079;&#12375;&#12390;&#12418;&#12363;&#12414;&#12431;&#12394;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;id&#12399;&#37325;&#35079;&#12375;&#12390;&#12399;&#12394;&#12425;&#12394;&#12356;&#12398;&#12391;&#12289;for &#12394;&#12393;&#12391;key&#12434;&#21462;&#24471;&#12375;&#12289;&#12381;&#12398;key&#12392;&#12521;&#12531;&#12480;&#12512;&#12398;&#21322;&#35282;&#33521;&#25968;&#23383;&#12434;&#32068;&#12415;&#21512;&#12431;&#12379;&#37325;&#35079;&#12375;&#12394;&#12356;&#12424;&#12358;&#12394;&#24418;&#12395;&#12375;&#12414;&#12375;&#12383;&#12364;&#21205;&#12356;&#12390;&#12367;&#12428;&#12414;&#12379;&#12435;&#12290;

&#12393;&#12358;&#12377;&#12428;&#12400;&#21177;&#29575;&#12424;&#12367;&#12391;&#12365;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;


</summary>
  </entry>
  <entry>
    <title> IF else  &#12434;&#28187;&#12425;&#12375;&#12383;&#21177;&#29575;&#30340;&#12394;&#12503;&#12525;&#12464;&#12521;&#12511;&#12531;&#12464;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/372"/>
    <id>tag:code.nanigac.com:forums,372</id>
    <author>
      <name>apple</name>
    </author>
    <updated>2008-12-30T13:15:10+09:00</updated>
    <summary>PHP&#12391;&#12473;&#12463;&#12522;&#12503;&#12488;&#12434;&#20316;&#25104;&#12377;&#12427;&#38555;&#12289;&#12393;&#12358;&#12375;&#12390;&#12418;&#20966;&#29702;&#21028;&#21029;&#12398;&#22823;&#21322;&#12434;if&#12391;&#34892;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;

&#12381;&#12398;&#28858;1&#12388;&#12398;&#12473;&#12463;&#12522;&#12503;&#12488;&#12395;if&#12398;&#25968;&#12364;&#22810;&#12367;&#12394;&#12387;&#12390;&#12375;&#12414;&#12356;&#12289;&#12393;&#12358;&#12415;&#12390;&#12418;&#21021;&#24515;&#32773;&#12398;&#12467;&#12540;&#12487;&#12451;&#12531;&#12464;&#12392;&#12356;&#12358;&#24863;&#12376;&#12364;&#12375;&#12414;&#12377;&#12290;

&#12503;&#12525;&#12398;&#26041;&#12434;&#21547;&#12417;PHP&#12395;&#31934;&#36890;&#12375;&#12390;&#12356;&#12427;&#26041;&#12399;&#12393;&#12398;&#12424;&#12358;&#12395;&#12375;&#12390;&#20966;&#29702;&#12398;&#21028;&#21029;&#12434;&#21177;&#29575;&#12424;&#12367;&#34892;&#12387;&#12390;&#12356;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>PHP4&#12391;&#12398;SOAP&#23455;&#35013;&#26041;&#27861;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/371"/>
    <id>tag:code.nanigac.com:forums,371</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#12495;&#12525;&#12540;&#12539;&#38738;&#26149;)</name>
    </author>
    <updated>2008-12-26T12:33:25+09:00</updated>
    <summary>&#21021;&#12417;&#12390;&#36074;&#21839;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;&#26032;&#31859;PG&#12391;&#12377;&#12290;

PHP4&#12391;&#12289;SOAP&#12392;WSDL&#12434;&#21033;&#29992;&#12375;&#12383;WEB&#12469;&#12540;&#12499;&#12473;&#12434;&#38283;&#30330;&#12375;&#12383;&#12356;&#12392;&#32771;&#12360;&#12390;&#12362;&#12426;&#12414;&#12377;&#12290;

&#12375;&#12363;&#12375;&#12289;SOAP,WSDL&#12398;&#21033;&#29992;&#12399;&#21021;&#12417;&#12390;&#12391;&#12289;PHP&#12418;&#12372;&#12367;&#31777;&#21336;&#12394;&#12503;&#12525;&#12464;&#12521;&#12512;&#12375;&#12363;&#32068;&#12435;&#12384;&#12371;&#12392;&#12364;&#12394;&#12356;&#12383;&#12417;&#12289;SOAP&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12420;&#12469;&#12540;&#12496;&#12398;&#23455;&#38555;&#12398;&#25369;&#21205;&#12289;WSDL&#12392;&#12398;&#12363;&#12363;&#12431;&#12426;&#12394;&#12393;&#12364;&#12356;&#12414;&#12356;&#12385;&#12424;&#12367;&#12431;&#12363;&#12426;&#12414;&#12379;&#12435;&#12290;

SOAP&#12420;WSDL&#12395;&#12388;&#12356;&#12390;&#12289;&#12393;&#12358;&#12356;&#12387;&#12383;&#24441;&#21106;&#12434;&#26524;&#12383;&#12377;&#12418;&#12398;&#12394;&#12398;&#12363;&#12392;&#12356;&#12358;&#12398;&#12399;&#12289;&#27010;&#24565;&#12392;&#12375;&#12390;&#12399;&#29702;&#35299;&#12375;&#12390;&#12356;&#12427;&#12388;&#12418;&#12426;&#12391;&#12377;&#12290;

&#23455;&#38555;&#12395;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#21205;&#12363;&#12375;&#12394;&#12364;&#12425;&#30906;&#35469;&#12375;&#12383;&#12356;&#12290;

&#20309;&#12363;&#12289;&#21021;&#24515;&#32773;&#12395;&#12418;&#29702;&#35299;&#12391;&#12365;&#12427;&#12424;&#12358;&#12394;&#12469;&#12531;&#12503;&#12523;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#12372;&#23384;&#30693;&#12398;&#26041;&#12356;&#12425;&#12387;&#12375;&#12419;&#12356;&#12414;&#12377;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;&#12371;&#12428;&#12414;&#12391;&#65297;&#26376;&#20197;&#19978;&#25506;&#12375;&#12390;&#12365;&#12414;&#12375;&#12383;&#12364;&#12289;&#12393;&#12428;&#12418;&#38627;&#35299;&#12391;&#12354;&#12387;&#12383;&#12426;&#12289;&#12456;&#12521;&#12540;&#12395;&#12394;&#12387;&#12390;&#12375;&#12414;&#12387;&#12383;&#12426;&#12392;&#12424;&#12367;&#21028;&#12426;&#12414;&#12379;&#12435;&#12391;&#12375;&#12383;&#12290;

&#12394;&#12435;&#12384;&#12363;&#24773;&#12369;&#12394;&#12356;&#36074;&#21839;&#12391;&#12362;&#24677;&#12378;&#12363;&#12375;&#12356;&#12391;&#12377;&#12364;&#12289;&#12371;&#12398;&#12414;&#12414;&#12391;&#12399;&#21069;&#12395;&#36914;&#12417;&#12381;&#12358;&#12395;&#12394;&#12356;&#12398;&#12391;&#12289;&#21161;&#12369;&#12390;&#12356;&#12383;&#12384;&#12369;&#12383;&#12425;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;

&#12469;&#12531;&#12503;&#12523;&#12503;&#12525;&#12464;&#12521;&#12512;&#12392;&#12289;&#33258;&#20998;&#12398;&#29872;&#22659;&#12395;&#21512;&#12431;&#12379;&#12390;&#22793;&#26356;&#12377;&#12409;&#12365;&#31623;&#25152;&#12394;&#12393;&#12418;&#25945;&#12360;&#12390;&#12356;&#12383;&#12384;&#12369;&#12383;&#12425;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;

&#12393;&#12358;&#12382;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#36899;&#24819;&#37197;&#21015;&#12398;&#26368;&#24460;&#12398;&#20516;&#12434;&#31777;&#21336;&#12395;&#21462;&#24471;&#12377;&#12427;&#26041;&#27861;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/370"/>
    <id>tag:code.nanigac.com:forums,370</id>
    <author>
      <name>apple</name>
    </author>
    <updated>2008-12-27T17:20:30+09:00</updated>
    <summary>&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;&#36899;&#24819;&#37197;&#21015;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;

Array
(
    [1] =&gt; Array
        (
            [type] =&gt; php
        )

    [3] =&gt; Array
        (
            [type] =&gt; perl
        )
)

&#26368;&#24460;&#12398;&#36899;&#24819;&#37197;&#21015;&#12398;&#20516;&#12434;&#65288;[]&#20869;&#12398;&#25968;&#23383;&#12391;&#12289;&#20197;&#19978;&#12398;&#22580;&#21512;&#12399;&#8221;3&#8221;&#65289;&#21462;&#24471;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#12393;&#12358;&#12377;&#12428;&#12400;&#12424;&#12356;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

end &#12434;&#20351;&#12358;&#12392;array&#12395;&#25104;&#12387;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;

&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;

</summary>
  </entry>
  <entry>
    <title>zip&#12501;&#12449;&#12452;&#12523;&#12395;&#12497;&#12473;&#12527;&#12540;&#12489;&#12434;&#12363;&#12369;&#12427;&#12395;&#12399;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/369"/>
    <id>tag:code.nanigac.com:forums,369</id>
    <author>
      <name>&#12466;&#12473;&#12488; (coco)</name>
    </author>
    <updated>2008-12-30T21:51:01+09:00</updated>
    <summary>Windows XP&#12434;&#20351;&#29992;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

zip&#12501;&#12449;&#12452;&#12523;&#12395;&#12497;&#12473;&#12527;&#12540;&#12489;&#12434;&#12388;&#12369;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;
zip&#12501;&#12449;&#12452;&#12523;&#12434;&#12480;&#12502;&#12523;&#12463;&#12522;&#12483;&#12463;&#12391;&#38283;&#12356;&#12390;&#12289;[&#12501;&#12449;&#12452;&#12523;]-[&#12497;&#12473;&#12527;&#12540;&#12489;&#12398;&#36861;&#21152;]&#12434;&#12420;&#12429;&#12358;&#12392;&#12375;&#12383;&#12425;
[&#12497;&#12473;&#12527;&#12540;&#12489;&#12398;&#36861;&#21152;]&#12364;&#36984;&#25246;&#12391;&#12365;&#12394;&#12356;&#65288;&#34920;&#31034;&#12373;&#12428;&#12394;&#12356;&#65289;&#12424;&#12358;&#12395;&#12394;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;

&#12371;&#12428;&#12434;&#34920;&#31034;&#12373;&#12379;&#12427;&#26041;&#27861;&#12434;&#25945;&#12360;&#12390;&#12367;&#12384;&#12373;&#12356;&#12290;

&#12418;&#12375;&#12367;&#12399;&#12289;&#20182;&#12395;&#31777;&#21336;&#12395;&#12497;&#12473;&#12527;&#12540;&#12489;&#12434;&#12363;&#12369;&#12427;&#26041;&#27861;&#12364;&#12354;&#12387;&#12383;&#12425;&#25945;&#12360;&#12390;&#12367;&#12384;&#12373;&#12356;&#65281;
</summary>
  </entry>
  <entry>
    <title>Ruby&#12391;&#20837;&#21147;&#12480;&#12452;&#12450;&#12525;&#12464;&#12434;&#34920;&#31034;&#12375;&#12383;&#12356;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/368"/>
    <id>tag:code.nanigac.com:forums,368</id>
    <author>
      <name>&#12466;&#12473;&#12488; (nanako)</name>
    </author>
    <updated>2008-12-24T12:10:20+09:00</updated>
    <summary>Windows&#12391;InstantRails&#12289;Aptana&#12434;&#20351;&#29992;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;
&#12508;&#12479;&#12531;&#12434;&#12463;&#12522;&#12483;&#12463;&#12375;&#12383;&#12425;&#12289;&#12486;&#12461;&#12473;&#12488;&#12434;&#20837;&#21147;&#12377;&#12427;&#12480;&#12452;&#12450;&#12525;&#12464;&#12434;&#34920;&#31034;&#12289;
&#20837;&#21147;&#12373;&#12428;&#12383;&#20516;&#12434;&#21463;&#12369;&#21462;&#12426;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;
&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12391;&#23455;&#34892;&#12375;&#12390;&#12418;&#12469;&#12540;&#12496;&#12540;&#12395;&#12480;&#12452;&#12450;&#12525;&#12464;&#12364;&#34920;&#31034;&#12373;&#12428;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;
 (sc = WIN32OLE.new("ScriptControl")).Language = "VBScript"
      sc.
        AddCode("
          Function input(mes,title,value,left,top)
            input = inputBox(mes,title,value,left*15,top*15)
          End Function
        ")
      title = "&#12390;&#12377;&#12392;"
      message = "&#12467;&#12513;&#12531;&#12488;&#12434;&#20837;&#21147;&#12375;&#12390;&#12367;&#12384;&#12373;&#12356;&#12290;"
      comment = sc.Run("input",message.tosjis,title.tosjis,"",200,200)
 &#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12395;&#34920;&#31034;&#12373;&#12379;&#12427;&#12395;&#12399;&#12393;&#12398;&#12424;&#12358;&#12395;&#12375;&#12383;&#12425;&#12424;&#12356;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;
&#12414;&#12383;&#12289;&#20182;&#12395;&#12424;&#12356;&#26041;&#27861;&#12364;&#12354;&#12428;&#12400;&#12372;&#25945;&#25480;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#25913;&#34892;&#12391;&#21306;&#20999;&#12425;&#12428;&#12383;&#12487;&#12540;&#12479;&#12434;&#19968;&#12388;&#12378;&#12388;&#20966;&#29702;&#12377;&#12427;&#12395;&#12399;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/367"/>
    <id>tag:code.nanigac.com:forums,367</id>
    <author>
      <name>apple</name>
    </author>
    <updated>2008-12-24T08:10:05+09:00</updated>
    <summary>mysql&#12395;&#12487;&#12540;&#12479;&#12505;&#12540;&#12473;&#12486;&#12540;&#12502;&#12523;&#12434;&#12388;&#12367;&#12426;&#12289; text&#12459;&#12521;&#12512;&#12395;&#30701;&#12356;&#25991;&#23383;&#21015;&#12434;&#25913;&#34892;&#12391;&#21306;&#20999;&#12387;&#12390;&#25407;&#20837;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

&#20363;&#65306;
&#12411;&#12370;&#12411;&#12370;
&#12394;&#12395;&#12364;&#12375;
&#26481;&#20140;

&#12371;&#12398;&#12487;&#12540;&#12479;&#12434;&#38918;&#30058;&#12395;&#22793;&#25968;$item&#12395;&#25968;&#23383;&#12434;&#36275;&#12375;&#12383;&#29289;&#12395;&#26684;&#32013;&#12377;&#12427;&#12395;&#12399;&#12393;&#12358;&#12375;&#12383;&#12425;&#12424;&#12356;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

&#20197;&#19978;&#12398;&#20363;&#12391;&#35328;&#12356;&#12414;&#12377;&#12392;&#12289;

$item1 = "&#12411;&#12370;&#12411;&#12370;";
$item2 = "&#12394;&#12395;&#12364;&#12375;";
$item3 = "&#26481;&#20140;";

//&#26368;&#24460;&#12395;&#12487;&#12540;&#12479;&#25968;&#12434;&#21462;&#24471;
$itemNumber = 3;

&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>python 2to3&#12398;&#20351;&#12356;&#26041; &#29872;&#22659;&#12399;windowsXP</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/366"/>
    <id>tag:code.nanigac.com:forums,366</id>
    <author>
      <name>Wilhelm</name>
    </author>
    <updated>2008-12-25T23:22:53+09:00</updated>
    <summary>python2.x&#12398;&#12467;&#12540;&#12489;&#12434;3.&#65368;&#12395;&#26360;&#12365;&#25563;&#12360;&#12427;2to3&#12392;&#12356;&#12358;&#29289;&#12434;&#20351;&#12356;&#12383;&#12356;&#12398;&#12391;&#12377;&#12369;&#12393;&#20351;&#12356;&#26041;&#12364;&#12356;&#12414;&#12356;&#12385;&#12431;&#12363;&#12426;&#12414;&#12379;&#12435;

python&#12434;&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&#12375;&#12383;&#24460;Tools/scripts&#12501;&#12449;&#12452;&#12523;&#12398;&#38917;&#30446;&#12395;2to3.py&#12434;&#30906;&#35469;&#12375;,python2.x&#12398;&#12469;&#12531;&#12503;&#12523;&#12467;&#12540;&#12489;&#12434;&#26360;&#12365;
 def greet(name):
    print "Hello, {0}!".format(name)
print "What's your name?"
name = raw_input()
greet(name)  $ 2to3 example.py&#12288;&#12392;&#25171;&#12387;&#12390;&#12418;&#19978;&#25163;&#12367;&#21205;&#12365;&#12414;&#12379;&#12435;

 &#12481;&#12517;&#12540;&#12488;&#12522;&#12450;&#12523;&#36890;&#12426;&#12420;&#12387;&#12383;&#12398;&#12391;&#12377;&#12364;&#20309;&#25925;2to3&#12398;&#25991;&#27861;&#12364;&#38291;&#36949;&#12387;&#12390;&#12427;&#12398;&#12363;&#12431;&#12363;&#12426;&#12414;&#12379;&#12435;

&#12393;&#12394;&#12383;&#12363;&#12372;&#25945;&#25480;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;

ttp://www.python.org/doc/2.6/library/2to3.html?highlight=2to3



</summary>
  </entry>
  <entry>
    <title>&#27083;&#36896;&#20307;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12364;&#21205;&#12365;&#12414;&#12379;&#12435;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/365"/>
    <id>tag:code.nanigac.com:forums,365</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#20170;&#12434;&#29983;&#12365;&#12427;)</name>
    </author>
    <updated>2008-12-23T00:41:31+09:00</updated>
    <summary>&#65298;&#27425;&#20803;&#24179;&#38754;&#19978;&#12398;&#28857;&#12434;&#34920;&#12377;&#27083;&#36896;&#20307; Point &#22411;&#12434;&#23450;&#32681;&#12375;&#12390;&#65292;&#12381;&#12398;&#28857;&#12395;&#38306;&#12377;&#12427;&#35336;&#31639;&#12434;&#34892;&#12358;&#12503;&#12525;&#12464;&#12521;&#12512;&#12391;&#12377;&#12290;&#20869;&#23481;&#12399;

&#27083;&#36896;&#20307; Point&#22411;&#12399;&#65292;double&#22411;&#12398; X&#24231;&#27161;&#12392; Y&#24231;&#27161;&#12398;&#12513;&#12531;&#12496;&#12434;&#12418;&#12388;&#65294;


&#27083;&#36896;&#20307; Point&#22411;&#12434;&#20351;&#29992;&#12375;&#12390;&#65292;&#21407;&#28857;&#12363;&#12425;&#12398;&#36317;&#38626;&#12434;&#27714;&#12417;&#12427;&#38306;&#25968; length_vector&#12434;&#20316;&#25104;&#12377;&#12427;&#65294;


&#27083;&#36896;&#20307; Point&#22411;&#12434;&#20351;&#29992;&#12375;&#12390;&#65292;&#24179;&#38754;&#12398;&#28857;&#12434;&#34920;&#31034;&#12377;&#12427;&#38306;&#25968; print_v&#12434;&#20316;&#25104;&#12377;&#12427;&#65294;


#include &lt;stdio.h&gt;    /* &#12362;&#12414;&#12376;&#12394;&#12356; */
#include &lt;stdlib.h&gt;   /* &#12362;&#12414;&#12376;&#12394;&#12356; */
#include &lt;math.h&gt;   /* &#25968;&#20516;&#38306;&#25968;&#65288;&#25968;&#23398;&#38306;&#25968;&#65289;&#12434;&#20351;&#12358;&#12392;&#12365;&#12395;&#24517;&#35201; */

/* (x,y)-&#24179;&#38754;&#12398;&#28857;&#12434;&#24231;&#27161;&#12391;&#34920;&#12377;&#27083;&#36896;&#20307; */
struct Point{
double x;
double y;
}p;

/* &#21407;&#28857;&#12363;&#12425;&#12398;&#38263;&#12373;&#12434;&#27714;&#12417;&#12427;&#38306;&#25968; */
length_vector(double x,double y,double p)
{
	p = sqrt(x*x+y*y);
}

/* &#24179;&#38754;&#12398;&#28857;&#12434;&#34920;&#31034;&#12377;&#12427;&#38306;&#25968; */
print_v(double x, double y){
printf("X = %f\n Y= %f/n", p.x, p.y);
}
int main(void)
{
	struct Point p;	
	
	printf("Input Point X: ");
	scanf("%lf", &amp;p.x);
	printf("Input Point Y: ");
	scanf("%lf", &amp;p.y);
	
	print_v;	/* print_v&#12434;&#20351;&#29992;&#12375;&#12390;&#65292;&#24231;&#27161;&#12398;&#34920;&#31034; */

	printf("The length of vector:  %f\n", length_vector);
    
	return 0;
}

&#12371;&#12371;&#12414;&#12391;&#26360;&#12369;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#12467;&#12531;&#12497;&#12452;&#12523;&#12399;&#12391;&#12365;&#12390;&#12418;&#27491;&#12375;&#34920;&#31034;&#12375;&#12390;&#12367;&#12428;&#12414;&#12379;&#12435;&#12539;&#12539;&#12539;&#12450;&#12489;&#12496;&#12452;&#12473;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;

</summary>
  </entry>
  <entry>
    <title>[PHP]HTML&#12434;XML&#12395;&#22793;&#25563;&#12375;&#12383;&#12356;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/364"/>
    <id>tag:code.nanigac.com:forums,364</id>
    <author>
      <name>&#12466;&#12473;&#12488; (doraemon)</name>
    </author>
    <updated>2008-12-18T11:27:52+09:00</updated>
    <summary>&#19968;&#25324;&#12391;&#23455;&#29694;&#12391;&#12365;&#12427;&#12424;&#12358;&#12394;PEAR&#12521;&#12452;&#12502;&#12521;&#12522;&#12420;&#12486;&#12463;&#12491;&#12483;&#12463;&#12399;&#12354;&#12426;&#12414;&#12379;&#12435;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;
</summary>
  </entry>
  <entry>
    <title>&#12371;&#12428;&#12398;&#12511;&#12473;&#12364;&#19968;&#12534;&#25152;&#12354;&#12427;&#12425;&#12375;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#12289;&#25945;&#12360;&#12390;&#12367;&#12384;&#12373;&#12356;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/363"/>
    <id>tag:code.nanigac.com:forums,363</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-12-16T11:18:49+09:00</updated>
    <summary>/* dr0.c
 * contains a trivial error.
 * you should find and correct it before running the robot car.
 */
char porta@0x05;

void init(void)
{
        set_bit(STATUS, RP0);
        OPTION_REG = 7;
        set_tris_a(0);
        clear_bit(STATUS, RP0);
}

void delay_s(int n)
{
        int i;
        while (n&gt;0) {
                for(i=0;i&lt;10;i++) {
                        delay_ms(100);
                }
        }
}

void pause()
{
        int i;
        porta=0x0f;
        delay_s(3);
}

void run()
{
        porta=0x04+0x01; /* left forward, right forward */
        delay_s(3);
}

void stop(void)
{
        porta=0x0f;
        while (1) {
                ;
        }
}

void main(void)
{
        init();
        run();
        stop();
}

</summary>
  </entry>
  <entry>
    <title>&#12300;&#25147;&#12427;&#12301;&#12420;&#20877;&#35501;&#36796;&#12395;&#12424;&#12427;&#20108;&#37325;&#25237;&#31295;&#12398;&#38450;&#27490;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/362"/>
    <id>tag:code.nanigac.com:forums,362</id>
    <author>
      <name>apple</name>
    </author>
    <updated>2008-12-15T10:31:36+09:00</updated>
    <summary>&#12501;&#12457;&#12540;&#12512;&#12391;&#20837;&#21147;&#12375;&#12289;&#12381;&#12398;&#12487;&#12540;&#12479;&#12434;DB&#12395;&#36015;&#12417;&#12427;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#20316;&#25104;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

&#20837;&#21147;&#20013;&#12395;&#12289;&#12502;&#12521;&#12454;&#12470;&#12398;&#25147;&#12427;&#12434;&#12463;&#12522;&#12483;&#12463;&#12377;&#12427;&#12392;&#12289;&#26082;&#12395;&#32066;&#12431;&#12387;&#12383;&#20966;&#29702;&#12364;&#20877;&#24230;&#34892;&#12431;&#12428;&#12289;&#21516;&#12376;&#12487;&#12540;&#12479;&#12364;DB&#12395;&#20877;&#25407;&#20837;&#12373;&#12428;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;

&#12371;&#12428;&#12434;&#38450;&#27490;&#12377;&#12427;&#26041;&#27861;&#12399;&#12354;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;
</summary>
  </entry>
  <entry>
    <title>iPhone Web App&#12398;&#36895;&#24230;&#27604;&#36611;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/360"/>
    <id>tag:code.nanigac.com:forums,360</id>
    <author>
      <name>&#12466;&#12473;&#12488; (doraemon)</name>
    </author>
    <updated>2008-12-19T01:49:05+09:00</updated>
    <summary>&#21482;&#20170;&#12289;&#21330;&#26989;&#30740;&#31350;&#12391;iPhone Web Application&#12434;&#21046;&#20316;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;
iPhone&#12398;&#12493;&#12452;&#12486;&#12451;&#12502;&#12450;&#12503;&#12522;&#12391;&#12399;&#12394;&#12356;&#12398;&#12391;PHP&#12391;&#27083;&#31689;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

&#12502;&#12525;&#12464;&#12398;RSS&#12434;&#21462;&#12426;&#36796;&#12435;&#12391;&#34920;&#31034;&#12377;&#12427;&#21336;&#32020;&#12394;&#12471;&#12473;&#12486;&#12512;&#12394;&#12398;&#12391;&#12377;&#12364;&#12289;
iPhone&#12391;&#36890;&#24120;&#12398;&#12502;&#12525;&#12464;&#12469;&#12452;&#12488;&#12434;&#34920;&#31034;&#12375;&#12383;&#22580;&#21512;&#12392;&#12398;&#36895;&#24230;&#27604;&#36611;&#12434;&#12375;&#12390;&#12289;
&#12381;&#12398;&#12471;&#12473;&#12486;&#12512;&#12398;&#26377;&#21177;&#24615;&#12434;&#35388;&#26126;&#12375;&#12383;&#12356;&#12392;&#32771;&#12360;&#12390;&#12362;&#12426;&#12414;&#12377;&#12290;

 &#12502;&#12525;&#12464;&#12398;&#12450;&#12489;&#12524;&#12473;&#12434;&#20837;&#21147;&#12434;&#12375;&#12390;&#12289;&#12525;&#12540;&#12489;&#12375;&#32066;&#12431;&#12427;&#12414;&#12391;&#12398;&#26178;&#38291;&#12392;
&#27083;&#31689;&#12375;&#12383;&#12471;&#12473;&#12486;&#12512;&#12391;&#21516;&#12376;&#12502;&#12525;&#12464;&#12398;&#12450;&#12489;&#12524;&#12473;&#12434;&#20837;&#21147;&#12434;&#12375;&#12390;&#12525;&#12540;&#12489;&#12375;&#32066;&#12431;&#12427;&#12414;&#12391;&#12398;&#26178;&#38291;
 FireFox&#12398;FireBug&#12394;&#12393;&#12391;PC&#12391;&#12398;&#36895;&#24230;&#27604;&#36611;&#12399;&#12391;&#12365;&#12414;&#12377;&#12364;&#12289;
iPhone&#12391;&#36895;&#24230;&#27604;&#36611;&#12364;&#20986;&#26469;&#12427;&#33391;&#12356;&#26041;&#27861;&#12399;&#12354;&#12426;&#12414;&#12379;&#12435;&#12391;&#12375;&#12423;&#12358;&#12363;?
&#12385;&#12394;&#12415;&#12395;&#12473;&#12488;&#12483;&#12503;&#12454;&#12457;&#12483;&#12481;&#12394;&#12393;&#12391;&#12398;&#26908;&#35388;&#12399;&#12391;&#12365;&#12414;&#12379;&#12435;&#12290;
</summary>
  </entry>
  <entry>
    <title>php&#12391;UTF8&#12398;"&#12354;"&#12434;"\xE3\x81\x82"&#12395;&#22793;&#25563;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/359"/>
    <id>tag:code.nanigac.com:forums,359</id>
    <author>
      <name>yokada</name>
    </author>
    <updated>2008-12-12T00:41:38+09:00</updated>
    <summary>&#19968;&#30330;&#12391;&#22793;&#25563;&#12391;&#12365;&#12427;&#38306;&#25968;&#12394;&#12393;&#12399;&#12354;&#12426;&#12414;&#12379;&#12435;&#12363;&#65311;
&#12394;&#12356;&#12392;&#12375;&#12383;&#12425;&#12289;&#12393;&#12358;&#12420;&#12428;&#12400;&#12424;&#12356;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;
&#12393;&#12394;&#12383;&#12363;&#12372;&#25945;&#31034;&#12367;&#12384;&#12373;&#12356;&#12414;&#12379;&#12290;m(_ _)m


</summary>
  </entry>
  <entry>
    <title>&#26368;&#22823;&#20516;&#12398;&#21462;&#24471;&#65288;&#65354;ava&#65289;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/358"/>
    <id>tag:code.nanigac.com:forums,358</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-12-16T03:28:20+09:00</updated>
    <summary>x[i]&#12395;&#22810;&#37327;&#12398;&#25968;&#20516;&#12398;&#37197;&#21015;&#12434;&#34892;&#12356;&#65292;
&#12381;&#12398;&#26368;&#22823;&#20516;&#12434;&#34920;&#31034;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#65292;
&#26368;&#22823;&#20516;&#12398;&#21462;&#24471;&#12395;&#12388;&#12356;&#12390;&#25945;&#12360;&#12390;&#12356;&#12383;&#12384;&#12369;&#12414;&#12379;&#12435;&#12363;&#65311;
</summary>
  </entry>
  <entry>
    <title>OpenCV&#12395;&#12424;&#12427;&#38745;&#27490;&#30011;&#20445;&#23384;&#65288;&#33258;&#21205;&#65289;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/357"/>
    <id>tag:code.nanigac.com:forums,357</id>
    <author>
      <name>&#12466;&#12473;&#12488; (ryo)</name>
    </author>
    <updated>2008-12-17T02:31:56+09:00</updated>
    <summary>&#25237;&#31295;&#12373;&#12379;&#12390;&#12356;&#12383;&#12384;&#12365;&#12414;&#12377;&#12290;

&#38283;&#30330;&#29872;&#22659;&#12399;WindowsXP&#12289;VC++2008&#12434;&#20351;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;

OpenCV&#12434;&#20351;&#12387;&#12390;&#38745;&#27490;&#30011;&#12434;&#20445;&#23384;&#12391;&#12365;&#12427;&#12424;&#12358;&#12395;&#12394;&#12426;&#12414;&#12375;&#12383;&#12290;
&#12371;&#12428;&#12434;&#25913;&#33391;&#12375;&#12390;&#12487;&#12496;&#12483;&#12463;&#12375;&#12390;&#12363;&#12425;&#65301;&#31186;&#27598;&#12395;&#20445;&#23384;&#12375;&#12390;&#12356;&#12367;&#12424;&#12358;&#12394;&#12418;&#12398;&#12434;&#20316;&#12426;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#12420;&#12426;&#26041;&#12364;&#12424;&#12367;&#12431;&#12363;&#12425;&#12394;&#12356;&#12391;&#12377;&#12290;

 //&#30011;&#20687;&#34920;&#31034;&#12392;&#20445;&#23384;

#include &lt;stdio.h&gt;
#include &lt;highgui.h&gt;

int main( int argc, char** argv ){ 
	int key;								//	&#12461;&#12540;&#20837;&#21147;&#29992;&#12398;&#22793;&#25968;
	CvCapture *capture;						//	&#12459;&#12513;&#12521;&#12461;&#12515;&#12503;&#12481;&#12515;&#29992;&#12398;&#27083;&#36896;&#20307;
	IplImage *frameImage;					//	&#12461;&#12515;&#12503;&#12481;&#12515;&#30011;&#20687;&#29992;IplImage
	//IplImage *faceImage;
	char windowNameCapture[] = "Capture";	//	&#12461;&#12515;&#12503;&#12481;&#12515;&#12375;&#12383;&#30011;&#20687;&#12434;&#34920;&#31034;&#12377;&#12427;&#12454;&#12451;&#12531;&#12489;&#12454;&#12398;&#21517;&#21069;

	char filename[256];
	int count = 0;

	//	&#12459;&#12513;&#12521;&#12434;&#21021;&#26399;&#21270;&#12377;&#12427;
	if ( ( capture = cvCreateCameraCapture( -1 ) ) == NULL ) {
		//	&#12459;&#12513;&#12521;&#12364;&#35211;&#12388;&#12363;&#12425;&#12394;&#12363;&#12387;&#12383;&#22580;&#21512;
		printf( "&#12459;&#12513;&#12521;&#12364;&#35211;&#12388;&#12363;&#12426;&#12414;&#12379;&#12435;\n" );
		return -1;
	}

	//	&#12454;&#12451;&#12531;&#12489;&#12454;&#12434;&#29983;&#25104;&#12377;&#12427;
    cvNamedWindow( windowNameCapture, CV_WINDOW_AUTOSIZE );

	//	&#12513;&#12452;&#12531;&#12523;&#12540;&#12503;
	while ( 1 ) {
		//	&#12459;&#12513;&#12521;&#12363;&#12425;&#12398;&#20837;&#21147;&#30011;&#20687;1&#12501;&#12524;&#12540;&#12512;&#12434;frameImage&#12395;&#26684;&#32013;&#12377;&#12427;
		frameImage = cvQueryFrame( capture );

		//	&#30011;&#20687;&#12434;&#34920;&#31034;&#12377;&#12427;
		cvShowImage( windowNameCapture, frameImage );
		
		//	'q'&#12461;&#12540;&#12364;&#20837;&#21147;&#12373;&#12428;&#12383;&#12425;&#12523;&#12540;&#12503;&#12434;&#25244;&#12369;&#12427;
		key = cvWaitKey( 1 );
		if ( key == 'q' ) {
			break;
		}
		
		// 'c'&#12461;&#12540;&#12364;&#20837;&#21147;&#12373;&#12428;&#12387;&#12383;&#12425;&#30011;&#20687;&#12434;&#20445;&#23384;&#12377;&#12427;
		else if(key=='c'){
			sprintf(filename,"C:/Documents and Settings/ryoji/My Documents/My Pictures/frame%d.bmp",count);
			cvSaveImage(filename,frameImage);
			count++;
			//cvSaveImage("image/face.bmp",faceImage);
		}
	}

	//	&#12461;&#12515;&#12503;&#12481;&#12515;&#12434;&#35299;&#25918;&#12377;&#12427;
	cvReleaseCapture( &amp;capture );
	//	&#12454;&#12451;&#12531;&#12489;&#12454;&#12434;&#30772;&#26820;&#12377;&#12427;
	cvDestroyWindow( windowNameCapture );

	return 0;
}

 &#12371;&#12428;&#12391;[c]&#12461;&#12540;&#12434;&#25276;&#12377;&#12392;&#38745;&#27490;&#30011;&#12434;&#20445;&#23384;&#12377;&#12427;&#12371;&#12392;&#12364;&#12391;&#12365;&#12414;&#12377;&#12290;
&#12371;&#12428;&#12434;[c]&#12461;&#12540;&#12434;&#25276;&#12373;&#12378;&#12395;&#12289;&#12487;&#12496;&#12483;&#12463;&#12375;&#12390;&#12363;&#12425;&#65301;&#31186;&#27598;&#12395;&#20445;&#23384;&#12377;&#12427;&#12424;&#12358;&#12394;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#20316;&#12426;&#12383;&#12356;&#12391;&#12377;&#12290;

&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#37197;&#21015;&#12398;&#20013;&#36523;&#12434;&#12521;&#12531;&#12480;&#12512;&#12395;&#20006;&#12409;&#26367;&#12360;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/356"/>
    <id>tag:code.nanigac.com:forums,356</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#12397;&#12371;&#12397;&#12371;)</name>
    </author>
    <updated>2009-01-05T01:13:16+09:00</updated>
    <summary>&#12503;&#12525;&#12464;&#12521;&#12511;&#12531;&#12464;&#12434;&#22987;&#12417;&#12390;&#65298;&#12534;&#26376;&#12398;&#21021;&#24515;&#32773;&#12391;&#12377;&#12290;
&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;

 *a&#12392;&#12356;&#12358;&#37197;&#21015;&#65288;&#65297;&#65374;&#65297;&#65296;&#65296;&#65289;&#12434;&#12388;&#12367;&#12427;
a=[]
for i in 1..100
	a[i-1] = i
end

*a&#12398;&#37197;&#21015;&#12434;&#12521;&#12531;&#12480;&#12512;&#12395;&#20006;&#12409;&#22793;&#12360;&#12383;&#65346;&#12392;&#12356;&#12358;&#37197;&#21015;&#12434;&#20316;&#12426;&#12383;&#12356;
n = 100
b = []
i = 1

n.times{
	ran = rand(n)
	if b[0] = nil
		b[0] = ran
	else
		b.each{|z|
			if z != ran
				b[i] = ran
				i += 1
			end
		}
	end
}
 &#12371;&#12358;&#12377;&#12427;&#12392;&#12289;&#12394;&#12395;&#12420;&#12425;&#28961;&#38480;&#12523;&#12540;&#12503;&#12395;&#12394;&#12387;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;
&#33258;&#20998;&#12391;&#12399;&#12371;&#12428;&#20197;&#19978;&#12431;&#12363;&#12425;&#12394;&#12356;&#12398;&#12391;&#12289;&#30342;&#27096;&#12398;&#30693;&#24693;&#12434;&#12362;&#20511;&#12426;&#12375;&#12383;&#12356;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;
</summary>
  </entry>
  <entry>
    <title>Alpha Icon</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/355"/>
    <id>tag:code.nanigac.com:forums,355</id>
    <author>
      <name>&#12354;&#12365;&#12420;&#12414;</name>
    </author>
    <updated>2008-12-07T17:33:05+09:00</updated>
    <summary>VS2008 vista &#12391;win&#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#12398;&#38283;&#30330;&#12434;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

&#12489;&#12525;&#12483;&#12503;&#12373;&#12428;&#12383;&#12501;&#12449;&#12452;&#12523;&#12398;&#12497;&#12473;&#12363;&#12425;&#12450;&#12452;&#12467;&#12531;&#12434;&#21462;&#24471;&#12375;&#12289;&#34920;&#31034;&#12375;&#12390;&#12356;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;&#36578;&#36865;&#20808;&#12398;&#12513;&#12514;&#12522;&#12487;&#12496;&#12452;&#12473;&#12399;32bit&#12450;&#12523;&#12501;&#12449;&#20516;&#12388;&#12365;&#12499;&#12483;&#12488;&#12510;&#12483;&#12503;&#12392;&#38306;&#36899;&#20184;&#12369;&#12373;&#12428;&#12383;&#12418;&#12398;&#12395;DrawIcon&#12391;&#12450;&#12452;&#12467;&#12531;&#12434;&#36578;&#36865;&#12375;&#12390;&#12418;&#38306;&#25968;&#12376;&#12383;&#12356;&#21476;&#12356;&#12425;&#12375;&#12367;&#12450;&#12523;&#12501;&#12449;&#20516;&#12434;&#26360;&#12365;&#36796;&#12416;&#12371;&#12392;&#12364;&#12391;&#12365;&#12378;&#32080;&#26524;&#30340;&#12395;0&#12395;&#12394;&#12426;&#34920;&#31034;&#12364;&#12391;&#12365;&#12414;&#12379;&#12435;&#12290;

&#12393;&#12358;&#12395;&#12363;&#12450;&#12523;&#12501;&#12449;&#12388;&#12365;&#12391;&#12450;&#12452;&#12467;&#12531;&#12434;&#34920;&#31034;&#12373;&#12379;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12394;&#12395;&#12363;&#12356;&#12356;&#26041;&#27861;&#12364;&#12354;&#12426;&#12414;&#12377;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;
&#12391;&#12365;&#12428;&#12400;&#12289;GDI+&#12399;&#20351;&#12431;&#12394;&#12356;&#26041;&#21521;&#12391;&#12356;&#12365;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#28961;&#29702;&#12394;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#12539;&#12539;&#12539;


&#12372;&#25945;&#25480;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;
</summary>
  </entry>
  <entry>
    <title>AdobeAIR&#12450;&#12503;&#12522;&#12398;&#20316;&#25104;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/354"/>
    <id>tag:code.nanigac.com:forums,354</id>
    <author>
      <name>&#12466;&#12473;&#12488; (moremore)</name>
    </author>
    <updated>2008-12-03T16:55:35+09:00</updated>
    <summary>Flex&#65299;&#12434;&#20351;&#29992;&#12375;&#12390;AIR&#12450;&#12503;&#12522;&#12434;&#20316;&#25104;&#12375;&#12414;&#12375;&#12383;&#12290;
&#12487;&#12496;&#12483;&#12464;&#23455;&#34892;&#12391;&#12399;&#27491;&#24120;&#12395;&#21205;&#20316;&#12377;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;&#12456;&#12463;&#12473;&#12509;&#12540;&#12488;&#12375;&#12383;AIR&#12501;&#12449;&#12452;&#12523;&#12434;
&#23455;&#34892;&#12375;&#12424;&#12358;&#12392;&#12377;&#12427;&#12392;&#20197;&#19979;&#12398;&#12513;&#12483;&#12475;&#12540;&#12472;&#12364;&#34920;&#31034;&#12373;&#12428;&#12414;&#12377;

This application requires a version of Adobe AIR which is no longer supported. Please contact the application author for an updated version.

&#26368;&#26032;&#12398;&#12521;&#12531;&#12479;&#12452;&#12512;&#12434;&#12480;&#12454;&#12531;&#12525;&#12540;&#12489;&#12375;&#12390;&#12365;&#12383;&#12388;&#12418;&#12426;&#12391;&#12377;&#12398;&#12391;&#12289;&#12521;&#12531;&#12479;&#12452;&#12512;&#12398;&#12379;&#12356;&#12391;&#12399;&#28961;&#12356;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;
&#12371;&#12398;&#12513;&#12483;&#12475;&#12540;&#12472;&#12399;&#12289;&#35352;&#36848;&#12375;&#12383;&#12467;&#12540;&#12489;&#12364;&#20351;&#29992;&#12391;&#12365;&#12394;&#12356;&#22580;&#21512;&#12395;&#12418;&#34920;&#31034;&#12373;&#12428;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

</summary>
  </entry>
  <entry>
    <title>PHP Split&#12391;&#20998;&#21106;&#12391;&#12365;&#12394;&#12356;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/353"/>
    <id>tag:code.nanigac.com:forums,353</id>
    <author>
      <name>&#12466;&#12473;&#12488; (doraemon)</name>
    </author>
    <updated>2008-12-03T22:30:00+09:00</updated>
    <summary>&#27005;&#22825;&#12502;&#12525;&#12464;&#12398;&#20363;&#12360;&#12400;&#30690;&#27810;&#24515;&#12398;&#12371;&#12398;&#12506;&#12540;&#12472;&#65288;http://plaza.rakuten.co.jp/m810j94/diary/200812020000/&#65289;
&#12434;file_get_contents&#12391;&#21462;&#12426;&#36796;&#12415;&#12414;&#12377;&#12290;

&#12381;&#12375;&#12390;&#12289;&#35352;&#20107;&#20869;&#23481;&#12384;&#12369;&#25277;&#20986;&#12375;&#12383;&#12356;&#12398;&#12391;&lt;DIV class="lo"&gt;&#12398;&#12392;&#12371;&#12429;&#12391;Split&#12434;&#25499;&#12369;&#12289;&#21069;&#24460;&#12395;&#20998;&#21106;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#12393;&#12358;&#12375;&#12390;&#12418;&lt;DIV class="lo"&gt;&#12398;&#37096;&#20998;&#12391;Split&#12364;&#12391;&#12365;&#12414;&#12379;&#12435;&#12290;
&#21516;&#12376;&#12367;explode&#12391;&#12418;&#35430;&#12375;&#12414;&#12375;&#12383;&#12364;&#32080;&#26524;&#12399;&#21516;&#12376;&#12391;&#12377;&#12290;

 $url = file_get_contents("http://plaza.rakuten.co.jp/$id/diary/$entry_link[5]");
$url2 = split("&lt;div class=\"lo\"&gt;",$url);
$article = split("&lt;br clear=\"all\"&gt;",$url2[3]);
 &#12393;&#12358;&#12363;&#12362;&#21147;&#12434;&#12362;&#36024;&#12375;&#12367;&#12384;&#12373;&#12356;
</summary>
  </entry>
  <entry>
    <title>OpenCV&#12395;&#12424;&#12427;&#26178;&#38291;&#24046;&#34920;&#31034;&#12392;&#38996;&#35469;&#35388;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/352"/>
    <id>tag:code.nanigac.com:forums,352</id>
    <author>
      <name>&#12466;&#12473;&#12488; (kata)</name>
    </author>
    <updated>2008-12-16T13:51:07+09:00</updated>
    <summary>&#21021;&#12417;&#12390;&#25237;&#31295;&#12373;&#12379;&#12390;&#12356;&#12383;&#12384;&#12365;&#12414;&#12377;&#12290;
&#38283;&#30330;&#29872;&#22659;&#12399;WindowsXP&#12289;VC++&#12434;&#20351;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;

OpenCV&#12434;&#29992;&#12356;&#12390;&#38996;&#35469;&#35388;&#12434;&#34892;&#12358;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23436;&#25104;&#12373;&#12379;&#12414;&#12375;&#12383;&#12290;
&#12381;&#12398;&#20013;&#12395;&#28857;&#12434;&#34920;&#31034;&#12373;&#12379;&#12427;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#20170;&#20316;&#25104;&#20013;&#12391;&#12377;&#12290;
&#12381;&#12398;&#28857;&#12434;&#34920;&#31034;&#12373;&#12379;&#12427;&#12371;&#12392;&#12399;&#12391;&#12365;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#12371;&#12398;&#28857;&#12434;&#26178;&#38291;&#24046;&#12391;&#34920;&#31034;&#12373;&#12379;&#12383;&#12356;&#12392;&#32771;&#12360;&#12390;&#12356;&#12414;&#12377;&#12290;
&#12393;&#12398;&#12424;&#12358;&#12395;&#32068;&#12415;&#36796;&#12435;&#12391;&#12418;&#26178;&#38291;&#24046;&#12391;&#12399;&#12394;&#12367;&#21516;&#26178;&#12395;&#34920;&#31034;&#12375;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;
&#22238;&#31572;&#12398;&#12411;&#12393;&#12375;&#12390;&#12356;&#12383;&#12384;&#12369;&#12428;&#12400;&#24184;&#12356;&#12391;&#12377;&#12290;
&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#33268;&#12375;&#12414;&#12377;&#12290;


 //&#38996;&#38936;&#22495;&#12434;&#35501;&#12415;&#21462;&#12426;&#12289;&#20445;&#23384;&#12289;&#32066;&#20102;&#12377;&#12427;&#12503;&#12525;&#12464;&#12521;&#12512;
//&#38996;&#12434;&#22266;&#23450;&#12377;&#12427;&#20870;&#12398;&#25551;&#30011;
//&#35222;&#32218;&#12434;&#21462;&#12427;&#28857;&#12398;&#26178;&#38291;&#24046;&#34920;&#31034;
#include &lt;cv.h&gt;
#include &lt;highgui.h&gt;

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;assert.h&gt;
#include &lt;math.h&gt;
#include &lt;float.h&gt;
#include &lt;limits.h&gt;
#include &lt;time.h&gt;
#include &lt;ctype.h&gt;
/*
#ifdef _EiC
#define WIN32
#endif
*/
static CvMemStorage* storage = 0;
static CvHaarClassifierCascade* cascade = 0;

void detect_and_draw( IplImage* image );

//&#12501;&#12449;&#12452;&#12523;&#12398;&#35501;&#12415;&#20986;&#12375;
const char* cascade_name =
    "haarcascade_frontalface_alt.xml";
/*    "haarcascade_profileface.xml";*/

int main( int argc, char** argv )
{
	int key;		//&#12461;&#12540;&#12398;&#23459;&#35328;
    CvCapture *capture;		//&#12499;&#12487;&#12458;&#12461;&#12515;&#12503;&#12481;&#12515;&#27083;&#36896;&#20307;
	IplImage *frameImage;
    IplImage *frame, *frame_copy = 0;
    int optlen = strlen("--cascade=");
    const char* input_name;

	char filename[256];
	int count = 0;

	int c=0;
	int fps=15;

	char windowNameCapture[] = "Capture"; 		//	&#12461;&#12515;&#12503;&#12481;&#12515;&#12375;&#12383;&#30011;&#20687;&#12434;&#34920;&#31034;&#12377;&#12427;&#12454;&#12451;&#12531;&#12489;&#12454;&#12398;&#21517;&#21069;

    if( argc &gt; 1 &amp;&amp; strncmp( argv[1], "--cascade=", optlen ) == 0 )
    {
        cascade_name = argv[1] + optlen;
        input_name = argc &gt; 2 ? argv[2] : 0;
    }
    else
    {
        cascade_name = "../../data/haarcascades/haarcascade_frontalface_alt2.xml";
        input_name = argc &gt; 1 ? argv[1] : 0;
    }

    cascade = (CvHaarClassifierCascade*)cvLoad( cascade_name, 0, 0, 0 );
    
    if( !cascade )
    {
        fprintf( stderr, "ERROR: Could not load classifier cascade\n" );
        fprintf( stderr,
        "Usage: facedetect --cascade=\"&lt;cascade_path&gt;\" [filename|camera_index]\n" );
        return -1;
    }
    storage = cvCreateMemStorage(0);
    
    if( !input_name || (isdigit(input_name[0]) &amp;&amp; input_name[1] == '\0') )
        capture = cvCaptureFromCAM( !input_name ? 0 : input_name[0] - '0' );
    else
        capture = cvCaptureFromAVI( input_name ); 

		cvNamedWindow( "&#23455;&#34892;&#32080;&#26524;", 1 );		//&#12454;&#12452;&#12531;&#12489;&#12454;&#12398;&#29983;&#25104;

        while(c&lt;5*fps)
        {
			//&#12459;&#12513;&#12521;&#12363;&#12425;&#12398;&#20837;&#21147;&#30011;&#20687;1&#12501;&#12524;&#12540;&#12512;&#12434;frameImage&#12395;&#26684;&#32013;&#12377;&#12427;
			frameImage = cvQueryFrame( capture );

			if( !cvGrabFrame( capture ))
                break;
            frame = cvRetrieveFrame( capture );
            if( !frame )
                break;

            if( !frame_copy )
                frame_copy = cvCreateImage( cvSize(frame-&gt;width,frame-&gt;height),
                                            IPL_DEPTH_8U, frame-&gt;nChannels );
            if( frame-&gt;origin == IPL_ORIGIN_TL )
                cvCopy( frame, frame_copy, 0 );
            else
                cvFlip( frame, frame_copy, 0 );
            
			//&#30011;&#20687;&#12434;&#36637;&#24230;&#30011;&#20687;&#12395;&#22793;&#25563;,&#32302;&#23567;,&#12498;&#12473;&#12488;&#12464;&#12521;&#12512;&#12434;&#24179;&#22374;&#21270;
            detect_and_draw( frame_copy );

			//	&#30011;&#20687;&#12434;&#34920;&#31034;&#12377;&#12427;
			cvShowImage( windowNameCapture, frameImage );

			//&#12461;&#12540;&#20837;&#21147;&#12364;&#34892;&#12431;&#12428;&#12427;&#12414;&#12391;&#34920;&#31034;&#12434;&#32154;&#12369;&#12427;
			key = cvWaitKey( 2 );

			//'c'&#12461;&#12540;&#12364;&#20837;&#21147;&#12373;&#12428;&#12387;&#12383;&#12425;&#30011;&#20687;&#12434;&#20445;&#23384;&#12377;&#12427;
			if ( key == 'c' ){
				sprintf(filename,"C:/Documents and Settings/ryoji/My Documents/My Pictures/CV-P/fame%d.bmp", count);
				cvSaveImage(filename,frame_copy);
				count++;
			}

			/*
			//	'q'&#12461;&#12540;&#12364;&#20837;&#21147;&#12373;&#12428;&#12383;&#12425;&#12523;&#12540;&#12503;&#12434;&#25244;&#12369;&#12427;
			else if ( key == 'q' ){
				break;
			}
			*/
		}

        cvReleaseImage( &amp;frame_copy );
        cvReleaseCapture( &amp;capture ); 
    
    cvDestroyWindow("result");

    return 0;
}

//&#38996;&#12434;&#26908;&#20986;
void detect_and_draw( IplImage* img )
{

	//&#65300;&#20491;&#12414;&#12391;&#12398;&#25968;&#12434;&#32013;&#12417;&#12427;&#12467;&#12531;&#12486;&#12490;
    static CvScalar colors[] = 
    {
        {{0,0,255}},
        {{0,128,255}},
        {{0,255,255}},
        {{0,255,0}},
        {{255,128,0}},
        {{255,255,0}},
        {{255,0,0}},
        {{255,0,255}}
    };

    double scale = 1.3;
	//&#12504;&#12483;&#12480;&#12398;&#20316;&#25104;&#12392;&#12487;&#12540;&#12479;&#38936;&#22495;&#12398;&#30906;&#20445;&#12289;&#12469;&#12452;&#12474;&#12289;&#28145;&#12373;&#12289;channels
    IplImage* gray = cvCreateImage( cvSize(img-&gt;width,img-&gt;height), 8, 1 );	
    IplImage* small_img = cvCreateImage( cvSize( cvRound (img-&gt;width/scale),
                         cvRound (img-&gt;height/scale)),8, 1 );
    int i;

	int fps=15;
	int c=0;

	//&#33394;&#31354;&#38291;&#12434;&#22793;&#25563;&#12375;dst&#12395;&#20986;&#21147;
    cvCvtColor( img, gray, CV_BGR2GRAY );
	//&#30011;&#20687;&#12398;&#12469;&#12452;&#12474;&#22793;&#26356;
    cvResize( gray, small_img, CV_INTER_LINEAR );
	//&#12464;&#12524;&#12540;&#12473;&#12465;&#12540;&#12523;&#30011;&#20687;&#12398;&#12498;&#12473;&#12488;&#12464;&#12521;&#12512;&#12434;&#22343;&#19968;&#21270;&#12377;&#12427;
	cvEqualizeHist( small_img, small_img );
	//&#12513;&#12514;&#12522;&#12473;&#12488;&#12524;&#12540;&#12472;&#12434;&#12463;&#12522;&#12450;&#12377;&#12427;
	cvClearMemStorage( storage );

    if( cascade )
    {
		//cvGetTickCount&#8594;&#65297;&#12510;&#12452;&#12463;&#12525;&#31186;&#12354;&#12383;&#12426;&#12398;tick&#25968;&#12434;&#36820;&#12377;
        double t = (double)cvGetTickCount();
		//cvhaarDetectObject&#8594;&#38996;&#26908;&#20986;
        CvSeq* faces = cvHaarDetectObjects( small_img, cascade, storage,
                                            1.1, 2, 0/*CV_HAAR_DO_CANNY_PRUNING*/,
                                            cvSize(30, 30) );
        t = (double)cvGetTickCount() - t;

		//&#38996;&#12434;&#22266;&#23450;&#12377;&#12427;&#12383;&#12417;&#12398;&#20870;&#12398;&#25551;&#30011;
		cvCircle(img,cvPoint(320,250),120,CV_RGB(0,0,0),5,8,0);

/***********************************************
&#12371;&#12371;&#12363;&#12425;&#28857;&#12434;&#26178;&#38291;&#24046;&#12395;&#34920;&#31034;&#12375;&#12390;&#12356;&#12427;&#12477;&#12540;&#12473;&#12467;&#12540;&#12489;
		while(c&lt;15*fps){
		
		//&#28857;&#12434;&#25551;&#12367;	
		//&#20013;&#24515;
		if(c&lt;5*fps){
			cvCircle(img,cvPoint(320,250),1,CV_RGB(0,255,0),5,8,0);
		}
		//&#21491;&#38533;
		else if(c&lt;10*fps&amp;&amp;c&gt;=5*fps){
			cvCircle(img,cvPoint(635,250),1,CV_RGB(0,255,0),5,8,0);
		}
		//&#24038;&#38533;
		else{
			cvCircle(img,cvPoint(5,250),1,CV_RGB(0,255,0),5,8,0);
		}
		
		c++;
			}
**************************************************/
        for( i = 0; i &lt; (faces ? faces-&gt;total : 0); i++ )
        {
			//&#12475;&#12483;&#12488;&#12398;&#35201;&#32032;&#12434;&#26908;&#20986;
            CvRect* r = (CvRect*)cvGetSeqElem( faces, i );
            CvPoint center;
            //radius&#8594;&#20870;&#12398;&#21322;&#24452;
			int radius;
			//&#20013;&#24515;&#12398;&#65368;&#24231;&#27161;
            center.x = cvRound((r-&gt;x + r-&gt;width*0.5)*scale);
			//&#20013;&#24515;&#12398;&#65369;&#24231;&#27161;
            center.y = cvRound((r-&gt;y + r-&gt;height*0.5)*scale);
			//&#20870;&#12398;&#21322;&#24452;&#12398;&#22823;&#12365;&#12373;
            radius = cvRound((r-&gt;width + r-&gt;height)*0.25*scale);
            //&#38996;&#38936;&#22495;&#12398;&#20870;&#12398;&#25551;&#30011;
			cvCircle( img, center, radius, colors[i%8], 3, 8, 0 );
		}
	}

    cvShowImage( "&#23455;&#34892;&#32080;&#26524;", img );		//&#30011;&#20687;&#12434;&#34920;&#31034;&#12377;&#12427;
    cvReleaseImage( &amp;gray );
    cvReleaseImage( &amp;small_img );

}
 &#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#33268;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>perl qx[date] ; &#12391;&#12288;&#34920;&#31034;&#12373;&#12428;&#12394;&#12356;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/350"/>
    <id>tag:code.nanigac.com:forums,350</id>
    <author>
      <name>HIDEO</name>
    </author>
    <updated>2008-11-29T07:06:53+09:00</updated>
    <summary>&#12362;&#19990;&#35441;&#12395;&#12394;&#12426;&#12414;&#12377;&#12290;

perl &#12398;&#12288;qx/ /; &#12398;&#35500;&#26126;&#12395;
http://www.rfs.jp/sb/perl/05/qx.html
&#12391;&#12399;&#12289;

qx//  &#12399;&#36870;&#12463;&#12457;&#12540;&#12488;&#12434;&#20351;&#12387;&#12390;&#12471;&#12473;&#12486;&#12512;&#12467;&#12510;&#12531;&#12489;&#12434;&#23455;&#34892;&#12377;&#12427;&#12398;&#12392;&#21516;&#27096;&#12391;&#12377;&#12290;
&#36820;&#21364;&#20516;&#12399;&#27161;&#28310;&#20986;&#21147;&#12395;&#20986;&#21147;&#12373;&#12428;&#12383;&#25991;&#23383;&#21015;&#12395;&#12394;&#12426;&#12414;&#12377;&#12290;
&#12473;&#12459;&#12521;&#12467;&#12531;&#12486;&#12461;&#12473;&#12488;&#12391;&#12399;&#25991;&#23383;&#21015;&#12289;&#12522;&#12473;&#12488;&#12467;&#12531;&#12486;&#12461;&#12473;&#12488;&#12391;&#12399;&#34892;&#12398;
&#12522;&#12473;&#12488;&#12434;&#36820;&#12375;&#12414;&#12377;&#12290;

&#12392;&#26360;&#12363;&#12428;&#12390;&#12356;&#12414;&#12377;&#12290;

#!/usr/bin/perl 
print qx[date];

&#12392;&#35352;&#36848;&#12377;&#12428;&#12400;
&#26178;&#38291;&#12364; &#23455;&#34892;&#12375;&#12383;&#12479;&#12540;&#12511;&#12490;&#12523;&#12395;&#34920;&#31034;&#12373;&#12428;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;

#!/usr/bin/perl
qx[date];

&#12392;&#35352;&#36848;&#12375;&#12390;&#12418;&#12288;&#20309;&#12418;&#34920;&#31034;&#12373;&#12428;&#12414;&#12379;&#12435;&#12290;

qx&#12398;&#35500;&#26126;&#12395;
&#12300;&#36820;&#21364;&#20516;&#12399;&#27161;&#28310;&#20986;&#21147;&#12395;&#20986;&#21147;&#12373;&#12428;&#12383;&#25991;&#23383;&#21015;&#12395;&#12394;&#12426;&#12414;&#12377;&#12290;&#12301;
&#12392;&#26360;&#12363;&#12428;&#12390;&#12356;&#12427;&#12398;&#12391;
qx[date];
&#12384;&#12369;&#12391;&#12418;
&#26178;&#38291;&#12364;&#12289;&#23455;&#34892;&#12375;&#12383;&#12479;&#12540;&#12511;&#12490;&#12523;&#12395;&#34920;&#31034;&#12373;&#12428;&#12427;&#12392;&#24605;&#12387;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;
qx[date];
&#12392;&#26360;&#12356;&#12383;&#26178;&#12398;
&#27161;&#28310;&#20986;&#21147;&#12399;&#12288;&#12393;&#12371;&#12394;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;



</summary>
  </entry>
  <entry>
    <title>java&#12288;for&#12523;&#12540;&#12503;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/349"/>
    <id>tag:code.nanigac.com:forums,349</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-11-28T13:15:55+09:00</updated>
    <summary>for(i=0; i&lt;n; &#9675;&#9675;)
&#12371;&#12398;&#12523;&#12540;&#12503;&#20869;&#12391;i&#65309;&#20598;&#25968;&#12434;&#20837;&#12428;&#12383;&#12356;&#12392;&#12365;&#65292;&#9675;&#9675;&#12395;&#12399;&#20309;&#12434;&#20837;&#21147;&#12375;&#12383;&#12425;&#12356;&#12356;&#12391;&#12377;&#12363;&#65311;
&#12300;i&#65291;2&#12301;&#12391;&#12399;&#12384;&#12417;&#12384;&#12387;&#12383;&#12398;&#12391;&#12377;&#12364;&#12539;&#12539;&#12539;
</summary>
  </entry>
  <entry>
    <title>&#12523;&#12540;&#12503;&#20966;&#29702;&#12391;&#12289;&#26368;&#21021;&#12398;&#34892;&#12384;&#12369;&#25991;&#23383;&#21015;&#12434;&#20184;&#21152;&#12375;&#12390;&#34920;&#31034;&#12375;&#12383;&#12356;&#12290;&#12393;&#12385;&#12425;&#12398;&#26360;&#12365;&#26041;&#12364;&#12356;&#12356;&#12392;&#24605;&#12356;&#12414;&#12377;&#12363;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/348"/>
    <id>tag:code.nanigac.com:forums,348</id>
    <author>
      <name>&#12466;&#12473;&#12488; (guest)</name>
    </author>
    <updated>2008-12-01T12:38:28+09:00</updated>
    <summary>&#12487;&#12540;&#12479;
 $datas = array('a', 'b', 'c', 'd', 'e');
 &#12420;&#12426;&#12383;&#12356;&#20986;&#21147;
 --- a
b
c
d
e
 &#12371;&#12428;&#12363;
 $first = array_shift($datas);
print "--- " . $first . "\n";
while ($row = array_shift($datas)) {
    print $row . "\n";
}
 &#12371;&#12428;&#12363;&#12289;
 $prefix = "--- ";
while ($row = array_shift($datas)) {
    print $prefix . $row . "\n";
    $prefix = null;
}
 &#12393;&#12387;&#12385;&#12364;&#12356;&#12356;&#12392;&#24605;&#12356;&#12414;&#12377;&#12363;&#65311;

</summary>
  </entry>
  <entry>
    <title>python&#12398;&#12463;&#12521;&#12473;&#20869;&#12398;&#12522;&#12473;&#12488;&#12398;&#25369;&#21205;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/345"/>
    <id>tag:code.nanigac.com:forums,345</id>
    <author>
      <name>navyblue</name>
    </author>
    <updated>2008-11-17T23:46:02+09:00</updated>
    <summary>&#12503;&#12525;&#12464;&#12521;&#12511;&#12531;&#12464;&#12381;&#12398;&#12418;&#12398;&#12434;&#12399;&#12376;&#12417;&#12383;&#12400;&#12363;&#12426;&#12398;&#36229;&#21021;&#24515;&#32773;&#12391;&#12289;&#22522;&#26412;&#30340;&#12394;&#36074;&#21839;&#12391;&#12377;&#12364;&#12289;&#12372;&#23384;&#30693;&#12398;&#26041;&#25945;&#12360;&#12390;&#12367;&#12384;&#12373;&#12356;&#12290;

&#19979;&#35352;&#12398;&#12477;&#12540;&#12473;&#12391;&#12289;KeyWord&#12392;&#12356;&#12358;&#12463;&#12521;&#12473;&#12398;&#23455;&#20307;&#12434;3&#12388;&#20316;&#25104;&#12375;&#12390;&#12356;&#12414;&#12377;(newKey1, newKey2, newKey3)&#12290;&#12371;&#12371;&#12391;&#26399;&#24453;&#12375;&#12390;&#12356;&#12427;&#12398;&#12399;&#12289;&#21508;&#23455;&#20307;&#12391;&#21029;&#12293;&#12398;&#20516;&#12364;&#20837;&#12387;&#12383;&#22793;&#25968;&#12289;&#21450;&#12403;&#12522;&#12473;&#12488;&#12364;&#20986;&#26469;&#19978;&#12364;&#12387;&#12390;&#12356;&#12427;&#12371;&#12392;&#12391;&#12377;&#12290;

&#12377;&#12394;&#12431;&#12385;&#12289;
newKey1 -&gt; nmb=1, spl=['1']
newKey2 -&gt; nmb=2, spl=['2']
newKey3 -&gt; nmb=3, spl=['3']
&#12392;&#12289;&#29983;&#25104;&#12377;&#12427;&#12392;&#12365;&#12398;&#24341;&#25968;&#12395;&#12375;&#12383;&#12364;&#12387;&#12390;&#12381;&#12428;&#12382;&#12428;&#12398;&#23455;&#20307;&#12398;&#22793;&#25968;&#12289;&#12522;&#12473;&#12488;&#12364;&#22793;&#12431;&#12387;&#12390;&#12356;&#12427;&#20107;&#12391;&#12377;&#12290;

&#12392;&#12371;&#12429;&#12364;&#12289;&#22793;&#25968;(nmb)&#12395;&#12388;&#12356;&#12390;&#12399;&#26399;&#24453;&#36890;&#12426;&#12394;&#12398;&#12391;&#12377;&#12364;&#12289;&#12522;&#12473;&#12488;&#12395;&#12388;&#12356;&#12390;&#12399;&#26032;&#12375;&#12356;&#23455;&#20307;&#12434;&#20316;&#12427;&#12392;&#12365;&#12289;&#20808;&#12395;&#20316;&#12387;&#12383;&#23455;&#20307;&#12398;&#20013;&#12398;&#12522;&#12473;&#12488;&#12395;&#36861;&#21152;&#12373;&#12428;&#12427;&#32080;&#26524;&#12392;&#12394;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;
newKey1 -&gt; nmb=1, spl=['1']
newKey2 -&gt; nmb=2, spl=['1','2']
newKey3 -&gt; nmb=3, spl=['1','2','3']
&#12392;&#12394;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;

&#31169;&#12398;&#29702;&#35299;&#12391;&#12399;&#12289;&#12463;&#12521;&#12473;&#12392;&#12399;&#12354;&#12367;&#12414;&#12391;&#24773;&#22577;&#12398;&#25345;&#12385;&#26041;&#12398;&#22120;&#12391;&#12354;&#12426;&#12289;&#26032;&#12375;&#12367;&#23455;&#20307;&#12364;&#29983;&#25104;&#12373;&#12428;&#12427;&#38555;&#12399;&#12289;&#21516;&#12376;&#12463;&#12521;&#12473;&#12391;&#12418;&#20808;&#12395;&#20316;&#12387;&#12383;&#23455;&#20307;&#12392;&#12399;&#28961;&#38306;&#20418;&#12289;&#12392;&#35299;&#37320;&#12375;&#12390;&#12356;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#26681;&#26412;&#30340;&#12395;&#20309;&#12363;&#38291;&#36949;&#12387;&#12390;&#12356;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;

&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;

&#12477;&#12540;&#12473;
--------------
print "**********************start************************"
####
class KeyWord:
  nmb=0     # class&#20869;&#12398;&#22793;&#25968;
  spl=[]    # class&#20869;&#12398;&#12522;&#12473;&#12488;
  def __init__(self,data):
    self.nmb=data  &#12288;&#12288;&#12288;&#12288; #&#24341;&#25968;&#12434;nmb&#12395;&#20195;&#20837;
    self.spl.append(data)&#12288;#&#24341;&#25968;&#12434;&#12522;&#12473;&#12488;&#12395;&#36861;&#21152;
####
keyWord=[]
newKey1=KeyWord("1")
newKey2=KeyWord("2")
newKey3=KeyWord("3")
print "   ========   "
print "list",newKey1.spl
print "int ",newKey1.nmb
print "list",newKey2.spl
print "int ",newKey2.nmb
print "list",newKey3.spl
print "int ",newKey3.nmb
--------------

&#20986;&#21147;&#32080;&#26524;
--------------
['1']
['1', '2']
['1', '2', '3']
   ========   
list ['1', '2', '3']
int  1
list ['1', '2', '3']
int  2
list ['1', '2', '3']
int  3
--------------


</summary>
  </entry>
  <entry>
    <title>set_difference()&#12398;&#21033;&#29992;&#27861;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/344"/>
    <id>tag:code.nanigac.com:forums,344</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-11-12T19:58:38+09:00</updated>
    <summary> #include &lt;algorithm&gt;
#include &lt;iostream&gt;
#include &lt;set&gt;
#include &lt;vector&gt;

int main()
{
    std::set&lt;int&gt; someSet1;
    std::set&lt;int&gt; someSet2;

    someSet1.insert(50);
    someSet1.insert(60);
    someSet1.insert(10);
    someSet1.insert(20);
    someSet1.insert(30);

    someSet2.insert(50);
    someSet2.insert(10);
    someSet2.insert(30);

    // &#26412;&#26469;&#12399;vector&#12391;&#12399;&#12394;&#12367;&#12289;std::set&lt;int&gt;&#12434;&#21033;&#29992;&#12375;&#12383;&#12356;&#12290;
    std::vector&lt;int&gt; diffSet;

    std::set_difference(someSet1.begin(), someSet1.end(), someSet2.begin(), someSet2.end(), back_inserter(diffSet));
}
    
 &#38598;&#21512;someSet1&#12392;someSet2&#12398;&#24046;&#20998;&#12434;&#25277;&#20986;&#12377;&#12427;&#12383;&#12417;&#12395;&#12289;set_differnce()&#38306;&#25968;&#12434;&#21033;&#29992;&#12375;&#12414;&#12377;&#12290;
&#12371;&#12398;&#12392;&#12365;&#12289;&#24046;&#20998;&#32080;&#26524;&#12434;std::set&lt;int&gt;&#12395;&#20837;&#12428;&#12427;&#12383;&#12417;&#12395;&#12399;&#12289;set_differnce()&#12398;&#24341;&#25968;&#12395;&#12393;&#12398;&#12424;&#12358;&#12394;&#24418;&#24335;&#12391;&#28193;&#12379;&#12400;&#12424;&#12429;&#12375;&#12356;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;?


</summary>
  </entry>
  <entry>
    <title>C&#35328;&#35486;&#12391;&#12398;&#24341;&#25968;&#12398;&#35413;&#20385;&#38918;&#24207;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/342"/>
    <id>tag:code.nanigac.com:forums,342</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-11-19T18:35:24+09:00</updated>
    <summary> #include &lt;stdio.h&gt;
void f(int x;int y;int z){
	printf(&#8220;%d %d %d\n&#8221;,x,y,z);
}
int main(){
	int n=10;
	f(n++, --n, ++n);
	return 0;
}
 &#19978;&#12398;&#12424;&#12358;&#12394;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#26360;&#12365;CentOS&#12398;gcc&#12391;&#12467;&#12531;&#12497;&#12452;&#12523;&#12375;&#12383;&#12392;&#12371;&#12429;
10 11 11
&#12392;&#34920;&#31034;&#12373;&#12428;&#12414;&#12375;&#12383;&#12290;

&#20104;&#24819;&#12391;&#12399;
10 10 11
&#12392;&#34920;&#31034;&#12373;&#12428;&#12427;&#12392;&#24605;&#12387;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#12394;&#12380;10 11 11&#12392;&#34920;&#31034;&#12373;&#12428;&#12383;&#12398;&#12363;&#12431;&#12363;&#12427;&#12363;&#12383;&#12362;&#12425;&#12428;&#12414;&#12379;&#12435;&#12363;&#65311;
</summary>
  </entry>
  <entry>
    <title>DoJa&#12391;&#12398;&#25968;&#20516;&#12398;&#12501;&#12457;&#12540;&#12510;&#12483;&#12488;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/341"/>
    <id>tag:code.nanigac.com:forums,341</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-11-10T02:12:32+09:00</updated>
    <summary>DoJa&#12391;&#12398;&#25968;&#20516;&#12398;&#12501;&#12457;&#12540;&#12510;&#12483;&#12488;&#12398;&#20181;&#26041;&#12431;&#12363;&#12427;&#26041;&#12356;&#12414;&#12379;&#12435;&#12363;&#65311;
&#25945;&#12360;&#12390;&#12356;&#12383;&#12384;&#12365;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12539;&#12539;&#12539;

&#12385;&#12394;&#12415;&#12395;&#26222;&#36890;&#12398;java&#12391;&#12399;java.text.DecimalFormat&#12398;&#12463;&#12521;&#12473;&#12364;&#20351;&#12360;&#12383;&#12398;&#12391;&#12377;&#12364;&#65292;DoJa&#12391;&#12371;&#12398;&#12463;&#12521;&#12473;&#12364;&#12394;&#12356;&#65311;&#20351;&#12360;&#12394;&#12356;&#65311;&#12424;&#12358;&#12394;&#12398;&#12391;&#12539;&#12539;&#12539;
</summary>
  </entry>
  <entry>
    <title>&#65347;&#65363;&#65366;&#12501;&#12449;&#12452;&#12523;&#12398;&#35501;&#12415;&#36796;&#12415;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/340"/>
    <id>tag:code.nanigac.com:forums,340</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-10-28T07:17:52+09:00</updated>
    <summary>&#12383;&#12384;&#12356;&#12414;&#65292;DoJa&#12434;&#20351;&#12387;&#12390;i&#12450;&#12503;&#12522;&#12434;&#20316;&#25104;&#12375;&#12390;&#12356;&#12414;&#12377;&#65294;

&#12381;&#12371;&#12391;csv&#12501;&#12449;&#12452;&#12523;&#31561;&#12424;&#12426;&#25968;&#23383;&#12434;&#35501;&#12415;&#36796;&#12415;&#65292;
&#12381;&#12428;&#12434;&#20351;&#12387;&#12390;&#35336;&#31639;&#12434;&#12377;&#12427;&#12424;&#12358;&#12394;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#20316;&#25104;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#65292;
&#12431;&#12363;&#12426;&#12414;&#12379;&#12435;&#65294;
&#26222;&#36890;&#12398;java&#12392;&#20351;&#12360;&#12427;&#12463;&#12521;&#12473;&#31561;&#36949;&#12387;&#12390;&#12356;&#12390;&#65292;
&#33394;&#12293;&#26908;&#32034;&#12375;&#12390;&#12415;&#12383;&#12398;&#12391;&#12377;&#12364;&#65292;&#12431;&#12363;&#12426;&#12414;&#12379;&#12435;&#12391;&#12375;&#12383;&#65294;

&#25945;&#12360;&#12390;&#12356;&#12383;&#12384;&#12369;&#12414;&#12379;&#12435;&#12363;&#65311;
</summary>
  </entry>
  <entry>
    <title>FormFile&#22411;&#12434;&#12463;&#12521;&#12473;&#20869;&#12391;&#29983;&#25104;&#12377;&#12427;&#26041;&#27861;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/339"/>
    <id>tag:code.nanigac.com:forums,339</id>
    <author>
      <name>&#12466;&#12473;&#12488; (tester)</name>
    </author>
    <updated>2008-10-31T16:11:10+09:00</updated>
    <summary>&#20170;&#12289;&#12486;&#12473;&#12488;&#12463;&#12521;&#12473;&#12434;&#20316;&#25104;&#12375;&#12390;&#12356;&#12390;FormFile&#22411;&#12434;&#12463;&#12521;&#12473;&#20869;&#12391;&#29983;&#25104;&#12375;&#12424;&#12358;&#12392;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;
&#12375;&#12363;&#12375;&#12289;&#12356;&#12356;&#26041;&#27861;&#12364;&#26908;&#32034;&#12375;&#12390;&#12418;&#35211;&#12388;&#12363;&#12425;&#12378;&#12289;&#12418;&#12375;&#30693;&#12387;&#12390;&#12356;&#12427;&#26041;&#12364;&#12356;&#12414;&#12375;&#12383;&#12425;&#12372;&#25945;&#25480;&#12367;&#12384;&#12373;&#12356;&#12290;
&#12385;&#12394;&#12415;&#12395;&#12289;DiskFile&#12392;&#12356;&#12358;&#12398;&#12434;&#35430;&#12375;&#12414;&#12375;&#12383;&#12364;&#35686;&#21578;&#12391;&#20351;&#29992;&#12375;&#12394;&#12356;&#26041;&#12364;&#33391;&#12356;&#12392;&#12391;&#12414;&#12375;&#12383;&#12290;

&#29872;&#22659;
Java1.4.2_11
Struts1.2.8
</summary>
  </entry>
  <entry>
    <title>PHP&#12398;&#38306;&#25968;&#12289;&#12371;&#12398;&#26360;&#12365;&#26041;&#12399;&#19968;&#33324;&#30340;&#12394;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/338"/>
    <id>tag:code.nanigac.com:forums,338</id>
    <author>
      <name>&#12466;&#12473;&#12488; (PHP&#21021;&#24515;&#32773;)</name>
    </author>
    <updated>2008-10-28T20:17:46+09:00</updated>
    <summary>&#12399;&#12376;&#12417;&#12414;&#12375;&#12390;
&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;&#12467;&#12540;&#12489;&#12434;&#35501;&#12415;&#12289;&#21205;&#12356;&#12390;&#12399;&#12356;&#12427;&#12398;&#12391;&#27491;&#12375;&#12356;&#12467;&#12540;&#12489;&#12384;&#12392;&#24605;&#12358;&#12398;&#12391;&#12377;&#12364;&#12289;&#26360;&#12365;&#26041;&#12392;&#12375;&#12390;&#12393;&#12358;&#12394;&#12398;&#12363;&#12364;&#30097;&#21839;&#12384;&#12387;&#12383;&#12398;&#12391;&#12362;&#32862;&#12365;&#12375;&#12383;&#12356;&#12392;&#24605;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;
PHP&#27508;&#12399;&#32004;3&#12363;&#26376;&#12391;&#12377;&#12290;
&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;

 if($this-&gt;getData($this-&gt;test_id,$this-&gt;user_id)) {
    $ret = $this-&gt;updateDB($new_data, $old_data);
} else {
    $ret = $this-&gt;registDB($new_data);
}
 &#12356;&#12365;&#12394;&#12426;$old_data&#12392;&#12365;&#12383;&#12398;&#12391;&#12394;&#12435;&#12384;&#12429;&#12358;&#65311;&#12392;&#24605;&#12387;&#12390;&#12356;&#12427;&#12392;&#12289;
function getData&#12398;&#20013;&#12391;&#20316;&#12425;&#12428;&#12383;&#22793;&#25968;&#12398;&#12424;&#12358;&#12394;&#12398;&#12391;&#12377;&#12364;&#12290;

     function getData($test_id, $user_id){
        $data = array();
        $array = array();
        $data['where'] = " test.id = ? AND user.id = ?";
        $params = array($test_id, $user_id);
        $data['limit'] = "1";
        $data['order'] = "";

        $array = getData('test_user', $data, $params);
        if($array['data']){
            $old_data = $array['data'][0];
            return true;
        }else{
            return false;
        }
    
    }
 &#38306;&#25968;hasOfferData&#12398;&#20013;&#12391;&#20316;&#12425;&#12428;&#12383;&#22793;&#25968;$old_data&#12394;&#12398;&#12391;&#12289;&#38306;&#25968;&#12364;&#23455;&#34892;&#12373;&#12428;&#12383;&#24460;&#12395;&#12399;&#20351;&#12360;&#12427;&#38306;&#25968;&#12394;&#12398;&#12384;&#12392;&#12399;&#24605;&#12358;&#12398;&#12391;&#12377;&#12364;&#12289;&#12371;&#12398;&#12424;&#12358;&#12394;&#26360;&#12365;&#26041;&#12387;&#12390;&#19968;&#33324;&#30340;&#12394;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;
&#38306;&#25968;&#12398;&#20013;&#12391;&#23450;&#32681;&#12375;&#12383;&#22793;&#25968;&#12434;&#12381;&#12398;&#12414;&#12414;&#20351;&#12358;&#12392;&#12356;&#12358;&#12398;&#12364;&#12385;&#12423;&#12387;&#12392;&#19981;&#24605;&#35696;&#12391;
&#12385;&#12423;&#12387;&#12392;&#12354;&#12414;&#12426;&#35211;&#12383;&#12371;&#12392;&#12364;&#12394;&#12363;&#12387;&#12383;&#12418;&#12398;&#12391;&#12289;&#12356;&#12356;&#26360;&#12365;&#26041;&#12394;&#12398;&#12363;&#24746;&#12356;&#26360;&#12365;&#26041;&#12394;&#12398;&#12363;&#20998;&#12363;&#12425;&#12394;&#12356;&#12383;&#12417;&#12362;&#32862;&#12365;&#12375;&#12383;&#12356;&#12392;&#24605;&#12356;&#12414;&#12375;&#12383;&#12290;

&#12372;&#24847;&#35211;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;


</summary>
  </entry>
  <entry>
    <title>perl use POSIX qw(strftime); &#12392;&#12356;&#12358;&#26360;&#12365;&#26041;&#12395;&#12388;&#12356;&#12390;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/337"/>
    <id>tag:code.nanigac.com:forums,337</id>
    <author>
      <name>HIDEO</name>
    </author>
    <updated>2008-10-22T01:56:51+09:00</updated>
    <summary>&#12371;&#12435;&#12400;&#12435;&#12399;&#12289;

perl &#12398;&#12288;
POSIX &#12514;&#12472;&#12517;&#12540;&#12523;&#12434;&#20351;&#29992;&#12377;&#12427;&#22580;&#21512;&#12395;
use POSIX qw(strftime);
&#12392;&#26360;&#12365;&#12414;&#12377;&#12364;

Net&#12514;&#12472;&#12517;&#12540;&#12523;&#12398;&#22580;&#21512;&#12399;&#12289;
use Net::Ping ;
&#12398;&#12424;&#12358;&#12395;&#12288;::
&#12434;&#20351;&#29992;&#12375;&#12414;&#12377;&#12290;

qw(&#12288;)&#12288;&#12392;&#12288;:: &#12288;&#12391;&#12399;
&#36949;&#12356;&#12364;&#12354;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

</summary>
  </entry>
  <entry>
    <title>PHP&#38306;&#25968;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/336"/>
    <id>tag:code.nanigac.com:forums,336</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-10-18T19:50:17+09:00</updated>
    <summary>php&#12391;&#20197;&#19979;&#12398;&#20107;&#12434;&#23455;&#22320;&#12373;&#12379;&#12383;&#12356;&#12391;&#12377;&#12290;

&#25991;&#23383;&#21015;$ver&#12434;a&#12391;&#21306;&#20999;&#12426;&#12383;&#12356;&#12290;
explode&#38306;&#25968;&#12391;a&#12434;&#25351;&#23450;&#12377;&#12427;&#12392;&#12289;&#12300;b,n,n&#12301;&#12392;&#12394;&#12426;&#12414;&#12377;&#12364;&#12289;a&#12418;&#27531;&#12375;&#12383;&#12356;&#12290;
&#12388;&#12414;&#12426;&#12289;&#12300;ba,na,na&#12301;&#12392;&#12375;&#12383;&#12356;&#12391;&#12377;&#12290;

&#38306;&#25968;&#12414;&#12383;&#12399;&#12289;&#12525;&#12472;&#12483;&#12463;&#12434;&#12372;&#25945;&#25480;&#19979;&#12373;&#12356;&#12290;

$ver = "banana";


</summary>
  </entry>
  <entry>
    <title>Apache Velocity&#12398;&#20351;&#12356;&#36947;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/335"/>
    <id>tag:code.nanigac.com:forums,335</id>
    <author>
      <name>tetsuhon</name>
    </author>
    <updated>2008-10-21T06:52:59+09:00</updated>
    <summary>Apache&#12503;&#12525;&#12472;&#12455;&#12463;&#12488;&#12391;&#29694;&#22312;&#38283;&#30330;&#12373;&#12428;&#12390;&#12356;&#12427;&#12289;Apache Velocity&#12395;&#12388;&#12356;&#12390;&#12372;&#36074;&#21839;&#12373;&#12379;&#12390;&#12367;&#12384;&#12373;&#12356;&#12290;

Apache Velocity&#12392;&#35328;&#12360;&#12400;&#12289;&#12424;&#12367;&#12513;&#12540;&#12523;&#12398;&#12486;&#12531;&#12503;&#12524;&#12540;&#12488;&#12434;&#21033;&#29992;&#12377;&#12427;&#20363;&#12364;&#25369;&#12370;&#12425;&#12428;&#12390;&#12356;&#12414;&#12377;&#12364;&#12289;
&#20182;&#12395;&#12418;&#12300;&#12371;&#12358;&#12356;&#12387;&#12383;&#12418;&#12398;&#12395;&#20351;&#12358;&#12392;&#20415;&#21033;&#65281;&#12301;&#31561;&#12398;&#20351;&#12356;&#36947;&#12399;&#12394;&#12356;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

&#12414;&#12384;Velocity&#12434;&#30693;&#12387;&#12390;&#12363;&#12425;&#26085;&#12364;&#27973;&#12356;&#12398;&#12391;&#12289;&#12383;&#12384;&#21336;&#12395;&#30693;&#12425;&#12394;&#12356;&#12384;&#12369;&#12394;&#12398;&#12363;&#12418;&#12375;&#12428;&#12414;&#12379;&#12435;&#12364;&#12289;
&#21033;&#29992;&#20107;&#20363;&#12434;&#25945;&#12360;&#12390;&#12356;&#12383;&#12384;&#12369;&#12427;&#12392;&#24184;&#12356;&#12391;&#12377;&#12290;
&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>[&#36074;&#21839;]clone &#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/334"/>
    <id>tag:code.nanigac.com:forums,334</id>
    <author>
      <name>rizo</name>
    </author>
    <updated>2008-10-17T15:44:42+09:00</updated>
    <summary>java, php, ruby &#12393;&#12428;&#12391;&#12418;&#12356;&#12356;&#12435;&#12391;&#12377;&#12364;&#12289;clone &#12513;&#12477;&#12483;&#12489;&#12392;&#12356;&#12358;&#12398;&#12399;&#12289;&#12393;&#12358;&#12356;&#12387;&#12383;&#12465;&#12540;&#12473;&#12395;&#20351;&#29992;&#12377;&#12427;&#12371;&#12392;&#12364;&#12354;&#12426;&#12414;&#12377;&#12363;&#65311;
&#12356;&#12414;&#12356;&#12385;&#20351;&#12356;&#26041;&#12364;&#12452;&#12513;&#12540;&#12472;&#12391;&#12365;&#12414;&#12379;&#12435;&#12290;
&#12300;&#12371;&#12358;&#12356;&#12387;&#12383;&#12392;&#12365;&#12395;&#20351;&#12387;&#12383;&#12424;&#12301;
&#12300;&#12371;&#12435;&#12394;&#12392;&#12365;&#12395;&#20415;&#21033;&#12391;&#12375;&#12423;&#12301;
&#12392;&#35328;&#12387;&#12383;&#12450;&#12489;&#12496;&#12452;&#12473;&#12364;&#12356;&#12383;&#12384;&#12369;&#12383;&#12425;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;

&#12393;&#12358;&#12382;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>PHP&#12391;&#30011;&#20687;&#12434;&#21628;&#12403;&#20986;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/333"/>
    <id>tag:code.nanigac.com:forums,333</id>
    <author>
      <name>&#12466;&#12473;&#12488; (yama98)</name>
    </author>
    <updated>2008-10-06T11:51:49+09:00</updated>
    <summary>&#21021;&#24515;&#32773;&#12391;&#12377;&#12289;&#25945;&#12360;&#12390;&#12367;&#12384;&#12373;&#12356;&#12290;
&#12507;&#12540;&#12512;&#12506;&#12540;&#12472;&#12434;HTML&#12391;&#20316;&#25104;&#12375;&#12289;&#30446;&#27425;&#37096;&#20998;&#12434;&#21029;&#12398;&#12486;&#12461;&#12473;&#12488;&#12501;&#12449;&#12452;&#12523;&#12395;&#12375;&#12390;&#12289;PHP&#12391;&#21628;&#12403;&#20986;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;&#26356;&#26032;&#12420;&#22793;&#26356;&#12434;&#31777;&#21336;&#12395;&#12377;&#12427;&#12383;&#12417;&#12391;&#12377;&#12290;&#12371;&#12398;&#12383;&#12417;&#12384;&#12369;&#12395;PHP&#12434;&#20351;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;
&#30446;&#27425;&#37096;&#20998;&#12398;&#12450;&#12452;&#12509;&#12452;&#12531;&#12488;&#12395;&#30011;&#20687;&#12434;&#20351;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;
&#12507;&#12540;&#12512;&#12506;&#12540;&#12472;&#20316;&#25104;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12398;index.php&#12392;&#21516;&#12376;&#38542;&#23652;&#12395;contents.txt&#12501;&#12449;&#12452;&#12523;&#12434;&#32622;&#12365;&#12289;&#21516;&#19968;&#38542;&#23652;&#12398;image&#12501;&#12457;&#12523;&#12480;&#12398;&#20013;&#12398;&#30011;&#20687;aaa.gif&#12434;&#36028;&#12426;&#20184;&#12369;&#12390;&#12356;&#12414;&#12377;&#12290;

|--index.php
|--contents.txt
|--images -- aaa.gif
|--abc -- abc.php
|--def -- def.php

&#12450;&#12483;&#12503;&#12525;&#12540;&#12489;&#12375;&#12390;&#34920;&#31034;&#12375;&#12390;&#12415;&#12427;&#12392;&#20197;&#19979;&#12398;&#21839;&#38988;&#12364;&#12354;&#12426;&#12414;&#12375;&#12383;&#12290;
index.php&#12363;&#12425;&#12399;&#27491;&#24120;&#12395;&#34920;&#31034;&#12391;&#12365;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;abc&#12289;def&#12392;&#12356;&#12387;&#12383;&#12501;&#12457;&#12523;&#12480;&#20869;&#12398;php&#12501;&#12449;&#12452;&#12523;&#12363;&#12425;contents.txt&#12434;&#21628;&#12403;&#20986;&#12377;&#12392;&#12289;&#30011;&#20687;&#12364;&#34920;&#31034;&#12391;&#12365;&#12414;&#12379;&#12435;&#12290;&#38542;&#23652;&#12398;&#21839;&#38988;&#12394;&#12398;&#12384;&#12429;&#12358;&#12392;&#12399;&#24605;&#12358;&#12398;&#12391;&#12377;&#12364;&#12289;&#12354;&#12367;&#12414;&#12391;contents.txt&#12363;&#12425;&#35211;&#12383;images/aaa.gif&#12398;&#38306;&#20418;&#12399;&#22793;&#12431;&#12425;&#12394;&#12356;&#12398;&#12384;&#12375;&#12289;&#12393;&#12358;&#12375;&#12390;&#34920;&#31034;&#12391;&#12365;&#12394;&#12356;&#12398;&#12363;&#12431;&#12363;&#12425;&#12394;&#12367;&#12394;&#12387;&#12390;&#12375;&#12414;&#12356;&#12414;&#12375;&#12383;&#12290;&#20170;&#12414;&#12391;&#12418;&#30446;&#27425;&#12420;&#12504;&#12483;&#12480;&#12540;&#12289;&#12501;&#12483;&#12479;&#12540;&#12395;php&#12434;&#20351;&#12387;&#12390;&#12365;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#30011;&#20687;&#12434;&#20837;&#12428;&#12383;&#12398;&#12399;&#20170;&#22238;&#12364;&#21021;&#12417;&#12390;&#12391;&#12377;&#12290;

&#12393;&#12358;&#12382;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
&#12414;&#12383;&#12289;&#35299;&#27770;&#26041;&#27861;&#12418;&#12372;&#25945;&#31034;&#12356;&#12383;&#12384;&#12369;&#12428;&#12400;&#22823;&#22793;&#12358;&#12428;&#12375;&#12356;&#12391;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>PHP&#12398;&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#25351;&#21521;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/332"/>
    <id>tag:code.nanigac.com:forums,332</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#12422;)</name>
    </author>
    <updated>2008-10-05T19:09:57+09:00</updated>
    <summary>PHP&#12398;&#12456;&#12521;&#12540;&#12395;&#12388;&#12356;&#12390;&#12290;

&#33258;&#21069;&#12391;&#12496;&#12522;&#12487;&#12540;&#12479;&#12463;&#12521;&#12473;&#12434;&#32068;&#12435;&#12384;&#12398;&#12391;&#12377;&#12364;&#12289;&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;&#12456;&#12521;&#12540;&#12391;&#24745;&#12414;&#12373;&#12428;&#12390;&#12356;&#12414;&#12377;&#12290;

Fatal error: Using $this when not in object context in /path/validator.php

&lt;?php
class validator
{

private $err_str = array();

/* &#20013;&#30053; */

//&#12456;&#12521;&#12540;&#12364;&#12354;&#12428;&#12400;$err_str&#65288;&#37197;&#21015;&#65289;&#12395;&#12456;&#12521;&#12540;&#20869;&#23481;&#12364;&#33988;&#31309;&#12373;&#12428;&#12289;&#12371;&#12398;&#38306;&#25968;&#12391;HTML&#12391;&#12522;&#12473;&#12488;&#21270;&#12377;&#12427;&#12290;
public function validateResult()
{
if(count($this-&gt;err_str) &gt; 0) //&#27490;&#12414;&#12427;&#12392;&#12371;&#12429;
{
$str = '&lt;ul&gt;/n';
foreach($this-&gt;err_str as $k =&gt; $v) $str .= '&lt;li&gt;'.$v.'&lt;/li&gt;/n';
$str .= '&lt;/ul&gt;';
}else{
$str = NULL;
}
return $str;
}
}

?&gt;

&#21516;&#12376;&#12463;&#12521;&#12473;&#20869;&#12398;&#22793;&#25968;&#12395;&#12450;&#12463;&#12475;&#12473;&#12375;&#12390;&#12427;&#12398;&#12395;&#12289;&#20309;&#25925;&#12300;Using $this when not in object context&#12301;&#12398;&#12424;&#12358;&#12394;&#12456;&#12521;&#12540;&#12364;&#20986;&#12427;&#12398;&#12363;&#20998;&#12363;&#12426;&#12414;&#12379;&#12435;&#65288;&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#25351;&#21521;&#12398;&#26681;&#26412;&#30340;&#12394;&#29289;&#12434;&#35492;&#35299;&#12375;&#12390;&#12427;&#12363;&#12418;&#12375;&#12428;&#12394;&#12356;&#12398;&#12391;&#12377;&#12364;&#8230;&#65289;
&#35443;&#12375;&#12356;&#26041;&#30693;&#24693;&#12434;&#12362;&#36024;&#12375;&#19979;&#12373;&#12356;&#12290;


</summary>
  </entry>
  <entry>
    <title>&#38996;&#35469;&#35672;&#12395;&#12388;&#12356;&#12390;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/331"/>
    <id>tag:code.nanigac.com:forums,331</id>
    <author>
      <name>Wilhelm</name>
    </author>
    <updated>2008-09-22T10:47:18+09:00</updated>
    <summary>opencv&#12391;&#38996;&#35469;&#35672;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#32068;&#12435;&#12391;&#12356;&#12414;&#12377;
&#12383;&#12417;&#12375;&#12395;&#12487;&#12496;&#12483;&#12463;&#12375;&#12390;&#12415;&#12383;&#12425;&#30011;&#20687;&#12364;&#38283;&#12369;&#12414;&#12379;&#12435;
&#12411;&#12363;&#12398;&#30011;&#20687;&#12434;&#20309;&#24230;&#12418;&#35430;&#12375;&#12390;&#12415;&#12383;&#12398;&#12391;&#12377;&#12364;&#38283;&#12363;&#12394;&#12356;&#12398;&#12391;&#12377;
&#26368;&#24460;&#12398;&#20108;&#34892;&#12398;&#12456;&#12521;&#12540;&#12513;&#12483;&#12475;&#12399;&#12376;&#12417;&#12390;&#12415;&#12427;&#12398;&#12391;&#12393;&#12358;&#12496;&#12464;&#12434;&#21462;&#12426;&#38500;&#12356;&#12390;&#33391;&#12356;&#12363;&#12431;&#12363;&#12426;&#12414;&#12379;&#12435;

&#12372;&#25945;&#25480;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;

 'opencv_test.exe': Loaded 'C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\opencv_test\Debug\opencv_test.exe', Symbols loaded.
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'opencv_test.exe': Loaded 'C:\Program Files\OpenCV\bin\cxcore100.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'opencv_test.exe': Loaded 'C:\Program Files\OpenCV\bin\libguide40.dll', Binary was not built with debug information.
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'opencv_test.exe': Loaded 'C:\Program Files\OpenCV\bin\cv100.dll'
'opencv_test.exe': Loaded 'C:\Program Files\OpenCV\bin\highgui100.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\avifil32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\avicap32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\version.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\msvcr90d.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\avgrsstx.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll'
'opencv_test.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll'
The thread 'Win32 Thread' (0xcb8) has exited with code -1 (0xffffffff).
The program '[3232] opencv_test.exe: Native' has exited with code -1 (0xffffffff).
  #include "stdafx.h"
#include "cv.h"
#include "highgui.h"
 
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;assert.h&gt;
#include &lt;math.h&gt;
#include &lt;float.h&gt;
#include &lt;limits.h&gt;
#include &lt;time.h&gt;
#include &lt;ctype.h&gt;
 
#ifdef _EiC
#define WIN32
#endif
 
static CvMemStorage* storage = 0;
static CvHaarClassifierCascade* cascade = 0;
 
void detect_and_draw( IplImage* image );
 
const char* cascade_name =
    "haarcascade_frontalface_alt.xml";
/*    "haarcascade_profileface.xml";*/
 
int main( int argc, char** argv )
{
    CvCapture* capture = 0;
    IplImage *frame, *frame_copy = 0;
    int optlen = strlen("--cascade=");
    const char* input_name;
 
    if( argc &gt; 1 &amp;&amp; strncmp( argv[1], "--cascade=", optlen ) == 0 )
    {
        cascade_name = argv[1] + optlen;
        input_name = argc &gt; 2 ? argv[2] : 0;
    }
    else
    {
        cascade_name = "../../data/haarcascades/haarcascade_frontalface_alt2.xml";
        input_name = argc &gt; 1 ? argv[1] : 0;
    }
 
    cascade = (CvHaarClassifierCascade*)cvLoad( cascade_name, 0, 0, 0 );
 
    if( !cascade )
    {
        fprintf( stderr, "ERROR: Could not load classifier cascade\n" );
        fprintf( stderr,
        "Usage: facedetect --cascade=\"&lt;cascade_path&gt;\" [filename|camera_index]\n" );
        return -1;
    }
    storage = cvCreateMemStorage(0);
 
    if( !input_name || (isdigit(input_name[0]) &amp;&amp; input_name[1] == '\0') )
        capture = cvCaptureFromCAM( !input_name ? 0 : input_name[0] - '0' );
    else
        capture = cvCaptureFromAVI( input_name ); 
 
    cvNamedWindow( "result", 1 );
 
    if( capture )
    {
        for(;;)
        {
            if( !cvGrabFrame( capture ))
                break;
            frame = cvRetrieveFrame( capture );
            if( !frame )
                break;
            if( !frame_copy )
                frame_copy = cvCreateImage( cvSize(frame-&gt;width,frame-&gt;height),
                                            IPL_DEPTH_8U, frame-&gt;nChannels );
            if( frame-&gt;origin == IPL_ORIGIN_TL )
                cvCopy( frame, frame_copy, 0 );
            else
                cvFlip( frame, frame_copy, 0 );
 
            detect_and_draw( frame_copy );
 
            if( cvWaitKey( 10 ) &gt;= 0 )
                break;
        }
 
        cvReleaseImage( &amp;frame_copy );
        cvReleaseCapture( &amp;capture );
    }
    else
    {
        const char* filename = input_name ? input_name : (char*)"lena.jpg";
        IplImage* image = cvLoadImage( filename, 1 );
 
        if( image )
        {
            detect_and_draw( image );
            cvWaitKey(0);
            cvReleaseImage( &amp;image );
        }
        else
        {
            /* assume it is a text file containing the
               list of the image filenames to be processed - one per line */
            FILE* f = fopen( filename, "rt" );
            if( f )
            {
                char buf[1000+1];
                while( fgets( buf, 1000, f ) )
                {
                    int len = (int)strlen(buf);
                    while( len &gt; 0 &amp;&amp; isspace(buf[len-1]) )
                        len--;
                    buf[len] = '\0';
                    image = cvLoadImage( buf, 1 );
                    if( image )
                    {
                        detect_and_draw( image );
                        cvWaitKey(0);
                        cvReleaseImage( &amp;image );
                    }
                }
                fclose(f);
            }
        }
 
    }
 
    cvDestroyWindow("result");
 
    return 0;
}
 
void detect_and_draw( IplImage* img )
{
    static CvScalar colors[] = 
    {
        {{0,0,255}},
        {{0,128,255}},
        {{0,255,255}},
        {{0,255,0}},
        {{255,128,0}},
        {{255,255,0}},
        {{255,0,0}},
        {{255,0,255}}
    };
 
    double scale = 1.3;
    IplImage* gray = cvCreateImage( cvSize(img-&gt;width,img-&gt;height), 8, 1 );
    IplImage* small_img = cvCreateImage( cvSize( cvRound (img-&gt;width/scale),
                         cvRound (img-&gt;height/scale)),
                     8, 1 );
    int i;
 
    cvCvtColor( img, gray, CV_BGR2GRAY );
    cvResize( gray, small_img, CV_INTER_LINEAR );
    cvEqualizeHist( small_img, small_img );
    cvClearMemStorage( storage );
 
    if( cascade )
    {
        double t = (double)cvGetTickCount();
        CvSeq* faces = cvHaarDetectObjects( small_img, cascade, storage,
                                            1.1, 2, 0/*CV_HAAR_DO_CANNY_PRUNING*/,
                                            cvSize(30, 30) );
        t = (double)cvGetTickCount() - t;
        printf( "detection time = %gms\n", t/((double)cvGetTickFrequency()*1000.) );
        for( i = 0; i &lt; (faces ? faces-&gt;total : 0); i++ )
        {
            CvRect* r = (CvRect*)cvGetSeqElem( faces, i );
            CvPoint center;
            int radius;
            center.x = cvRound((r-&gt;x + r-&gt;width*0.5)*scale);
            center.y = cvRound((r-&gt;y + r-&gt;height*0.5)*scale);
            radius = cvRound((r-&gt;width + r-&gt;height)*0.25*scale);
            cvCircle( img, center, radius, colors[i%8], 3, 8, 0 );
        }
    }
 
    cvShowImage( "result", img );
    cvReleaseImage( &amp;gray );
    cvReleaseImage( &amp;small_img );
}
 </summary>
  </entry>
  <entry>
    <title>win&#12450;&#12503;&#12522;&#12363;&#12425;IE&#12408;&#12398;&#12513;&#12483;&#12475;&#12540;&#12472;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/330"/>
    <id>tag:code.nanigac.com:forums,330</id>
    <author>
      <name>&#12354;&#12365;&#12420;&#12414;</name>
    </author>
    <updated>2008-11-23T16:16:26+09:00</updated>
    <summary>&#36074;&#21839;&#12391;&#12377;&#12290;
&#29694;&#22312;win&#21521;&#12369;&#12398;&#12487;&#12451;&#12473;&#12463;&#12488;&#12483;&#12503;&#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#12434;VC6.0&#12289;&#35328;&#35486;&#12399;C&#12289;winapi&#12391;&#38283;&#30330;&#12375;&#12390;&#12362;&#12426;&#12414;&#12377;&#12290;

&#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#20869;&#12398;&#12450;&#12452;&#12467;&#12531;&#65288;&#25351;&#23450;&#12398;URL&#65289;&#12434;&#12463;&#12522;&#12483;&#12463;&#12377;&#12427;&#12392;&#12289;&#26032;&#35215;&#12395;IE&#65288;&#12502;&#12521;&#12454;&#12470;&#65289;&#12434;&#36215;&#21205;&#12377;&#12427;&#12371;&#12392;&#12394;&#12367;&#12289;&#29694;&#22312;&#38283;&#12356;&#12390;&#12427;IE&#65288;&#12502;&#12521;&#12454;&#12470;&#65289;&#12398;&#12506;&#12540;&#12472;&#12434;&#26356;&#26032;&#12373;&#12379;&#12427;&#12392;&#12356;&#12358;&#12371;&#12392;&#12434;&#12375;&#12383;&#12356;&#12392;&#32771;&#12360;&#12390;&#12356;&#12414;&#12377;&#12290;

&#22806;&#37096;&#12398;&#12450;&#12503;&#12522;&#12363;&#12425;IE&#12408;&#12398;&#12513;&#12483;&#12475;&#12540;&#12472;&#12399;&#12393;&#12398;&#12424;&#12358;&#12395;&#36865;&#12428;&#12400;&#12356;&#12356;&#12363;&#24745;&#12435;&#12391;&#12356;&#12414;&#12377;&#12290;
&#12393;&#12358;&#12356;&#12358;&#25216;&#34899;&#12434;&#29992;&#12356;&#12428;&#12400;&#12356;&#12356;&#12363;&#12380;&#12402;&#12372;&#25945;&#25480;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>SimplePie &#12391; reddit &#12398;&#26085;&#26412;&#35486;&#21462;&#24471;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/329"/>
    <id>tag:code.nanigac.com:forums,329</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-09-09T18:56:47+09:00</updated>
    <summary>SimplePie &#12434;&#20351;&#12387;&#12390; http://ja.reddit.com/r/ja/.rss &#12434;&#35501;&#12415;&#36796;&#12435;&#12391;&#12356;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;&#12394;&#12380;&#12363;&#33521;&#35486;&#12398;&#35352;&#20107;&#12364;&#36820;&#12387;&#12390;&#12365;&#12414;&#12377;&#12290;

&#12502;&#12521;&#12454;&#12470;&#12420; file_get_contents() &#12391; http://ja.reddit.com/r/ja/.rss &#12434;&#35211;&#12427;&#12392;&#26085;&#26412;&#35486;&#12398;&#35352;&#20107;&#12391;&#12377;&#12290;

SimplePie &#12398; SIMPLEPIE_USERAGENT &#12420; SIMPLEPIE_CONSTRUCT_TEXT &#12434; Japanese &#12394;&#12435;&#12390;&#12375;&#12390;&#12418;&#22793;&#21270;&#12364;&#12354;&#12426;&#12414;&#12379;&#12435;&#12290;

&#12393;&#12394;&#12383;&#12363;&#12358;&#12414;&#12367;&#12356;&#12387;&#12383;&#26041;&#12399;&#12356;&#12425;&#12387;&#12375;&#12419;&#12356;&#12414;&#12379;&#12435;&#12363;&#12290;
</summary>
  </entry>
  <entry>
    <title>file_get_contents() &#12391;&#12456;&#12521;&#12540;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/328"/>
    <id>tag:code.nanigac.com:forums,328</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-09-08T10:44:47+09:00</updated>
    <summary>Windows &#19978;&#12391; PHP 5.2.6 &#12391;&#19979;&#35352;&#12434;&#23455;&#34892;&#12377;&#12427;&#12392;

 failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden 
 &#12398;&#12456;&#12521;&#12540;&#12392;&#12394;&#12426;&#12414;&#12377;&#12290;

 &lt;?php
// &#12300;code&#12394;&#12395;&#12364;&#12375;&#12301;&#12399;&#38263;&#12356; URL &#12364;&#27491;&#12375;&#12367;&#34920;&#31034;&#12373;&#12428;&#12394;&#12356;&#12398;&#12391; 2 &#12388;&#12395;&#20998;&#21106;
$url1 = 'http://ja.wikipedia.org/wiki/Wikipedia:';
$url2 = '%E7%B4%A2%E5%BC%95_%E3%81%84%E3%81%93';
print file_get_contents($url1.$url2);
?&gt;
 '' &#12391;&#25324;&#12387;&#12383; URL &#12434;&#12502;&#12521;&#12454;&#12470;&#12395;&#12467;&#12500;&#12540;&#65286;&#12506;&#12540;&#12473;&#12488;&#12377;&#12427;&#12392;&#27491;&#12375;&#12367;&#34920;&#31034;&#12373;&#12428;&#12414;&#12377;&#12290;

&#19981;&#24605;&#35696;&#12394;&#12398;&#12399; http://www.yahoo.com/ &#12420;&#12289;&#12411;&#12363;&#12398; Wikipedia &#12398; URL &#12394;&#12425;&#27491;&#12375;&#12367;&#21462;&#24471;&#12391;&#12365;&#12427;&#12398;&#12391;&#12377;&#12290;

&#35299;&#27770;&#31574;&#12434;&#12372;&#23384;&#12376;&#12398;&#26041;&#12289;&#12450;&#12489;&#12496;&#12452;&#12473;&#12434;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;

</summary>
  </entry>
  <entry>
    <title>youtube&#12434;&#36899;&#32154;&#20877;&#29983;&#12373;&#12379;&#12427;&#26041;&#27861;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/327"/>
    <id>tag:code.nanigac.com:forums,327</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-10-20T17:03:34+09:00</updated>
    <summary>&#20197;&#19979;&#12398;&#12469;&#12452;&#12488;&#12398;&#12424;&#12358;&#12395;&#38306;&#36899;&#12377;&#12427;youtube&#12434;&#36899;&#32154;&#20877;&#29983;&#12373;&#12379;&#12383;&#12356;&#12290;
http://www.saisin.biz/youtube/index.html

php&#12434;&#20351;&#12387;&#12383;&#33258;&#12469;&#12452;&#12488;&#12395;youtube&#12363;&#12425;&#12398;&#12479;&#12464;&#12434;&#34920;&#31034;&#12373;&#12379;&#12390;&#12356;&#12414;&#12377;&#12290;
DB&#12392;&#36899;&#21205;&#12373;&#12379;&#12383;&#26908;&#32034;&#27231;&#33021;&#12418;&#20184;&#12369;&#12390;&#12356;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;&#20363;&#12360;&#12400;&#12300;&#27468;&#25163;&#21517;&#12301;&#12434;&#20837;&#21147;&#12377;&#12427;&#12392;&#12289;&#30331;&#37682;&#12375;&#12390;&#12356;&#12427;&#26354;&#21517;&#12434;&#34920;&#31034;&#12373;&#12379;&#12390;&#12356;&#12414;&#12377;&#12290;

&#23455;&#29694;&#12375;&#12383;&#12356;&#20107;&#65306;
&#27468;&#25163;&#21517;&#12434;&#20837;&#21147;&#12375;&#23455;&#34892;&#12377;&#12427;&#12392;&#12289;&#30331;&#37682;&#12375;&#12390;&#12356;&#12427;&#38306;&#36899;&#26354;&#12434;&#38918;&#27425;&#20877;&#29983;&#12373;&#12379;&#12383;&#12356;&#12290;

youtube&#12398;&#30011;&#20687;&#12364;&#32066;&#20102;&#12377;&#12427;&#12479;&#12452;&#12511;&#12531;&#12464;&#12364;&#21028;&#26029;&#12391;&#12365;&#12428;&#12400;&#12356;&#12356;&#12398;&#12363;&#12394;&#65311;

&#20309;&#12363;&#12289;&#12372;&#23384;&#30693;&#12398;&#26041;&#12364;&#12356;&#12428;&#12400;&#23452;&#12375;&#12367;&#24481;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
&#12385;&#12394;&#12415;&#12395;&#12289;php,html,mysql&#12434;&#12363;&#12376;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;

</summary>
  </entry>
  <entry>
    <title>TabControl&#12434;&#25163;&#21205;&#12391;&#12473;&#12463;&#12525;&#12540;&#12523;&#12373;&#12379;&#12427;&#26041;&#27861;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/326"/>
    <id>tag:code.nanigac.com:forums,326</id>
    <author>
      <name>&#12466;&#12473;&#12488; (Tank2005)</name>
    </author>
    <updated>2008-08-30T12:36:32+09:00</updated>
    <summary>TabControl&#12391;MultiLine=false&#12398;&#38555;&#12289;&#12467;&#12531;&#12488;&#12525;&#12540;&#12523;&#12398;&#27178;&#24133;&#12434;&#36229;&#12360;&#12427;TabPage&#12434;&#36861;&#21152;&#12377;&#12427;&#12392;&#12289;&#12479;&#12502;&#12398;&#21491;&#19978;&#12395;&#30690;&#21360;&#12398;&#12508;&#12479;&#12531;&#12364;&#34920;&#31034;&#12373;&#12428;&#12289;&#12371;&#12398;&#12508;&#12479;&#12531;&#12434;&#12463;&#12522;&#12483;&#12463;&#12377;&#12427;&#12371;&#12392;&#12391;&#12479;&#12502;&#12434;&#12473;&#12463;&#12525;&#12540;&#12523;&#12373;&#12379;&#12427;&#12371;&#12392;&#12364;&#12391;&#12365;&#12414;&#12377;&#12290;

&#12371;&#12428;&#12434;&#12289;&#12508;&#12479;&#12531;&#12434;&#12463;&#12522;&#12483;&#12463;&#12377;&#12427;&#12371;&#12392;&#12394;&#12367;&#12289;&#12503;&#12525;&#12464;&#12521;&#12512;&#12363;&#12425;&#12473;&#12463;&#12525;&#12540;&#12523;&#12391;&#12365;&#12427;&#12424;&#12358;&#12395;&#12375;&#12383;&#12356;&#12392;&#32771;&#12360;&#12390;&#12356;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;&#33391;&#12356;&#30693;&#24693;&#12399;&#12354;&#12426;&#12414;&#12379;&#12435;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#20182;HP&#12398;&#12477;&#12540;&#12473;&#12434;&#12467;&#12500;&#12540;&#12375;&#12390;&#12289;&#33258;&#20998;&#12398;&#12497;&#12477;&#12467;&#12531;&#12391;&#12503;&#12524;&#12499;&#12517;&#12540;&#12375;&#12394;&#12364;&#12425;&#33258;&#20998;&#12398;HP&#12398;&#21442;&#32771;&#12395;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12290;&#12290;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/325"/>
    <id>tag:code.nanigac.com:forums,325</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#21021;&#12417;&#12414;&#12375;&#12390;&#65281;)</name>
    </author>
    <updated>2008-08-28T14:44:11+09:00</updated>
    <summary>&#12456;&#12463;&#12475;&#12523;&#12395;&#12477;&#12540;&#12473;&#12434;&#12467;&#12500;&#12540;&#12375;&#12390;&#12503;&#12521;&#12454;&#12470;&#12391;&#12503;&#12524;&#12499;&#12517;&#12540;&#12434;&#12375;&#12390;&#12415;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#12358;&#12414;&#12367;&#34920;&#31034;&#12391;&#12365;&#12414;&#12379;&#12435;&#12391;&#12375;&#12383;&#12290;
&#12452;&#12513;&#12540;&#12472;&#12392;&#12375;&#12390;&#12399;&#12289;&#12300;&#12371;&#12371;&#12398;&#34920;&#29694;&#12399;&#12289;&#12477;&#12540;&#12473;&#12391;&#12399;&#12393;&#12398;&#12424;&#12358;&#12395;&#26360;&#12367;&#12398;&#12363;&#12394;&#65311;&#12301;&#12392;&#12356;&#12358;&#12371;&#12392;&#12434;&#35519;&#12409;&#12383;&#12356;&#12398;&#12391;&#12377;&#12290;

&#12356;&#12429;&#12356;&#12429;&#12394;HP&#12363;&#12425;&#12289;&#12477;&#12540;&#12473;&#12434;&#21442;&#32771;&#12395;&#12375;&#12383;&#12356;&#12392;&#24605;&#12358;&#12398;&#12391;&#12377;&#12364;&#12289;&#12394;&#12395;&#12363;&#33391;&#12356;&#26041;&#27861;&#12399;&#12394;&#12356;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;

&#24403;&#26041;HP&#20316;&#25104;&#21021;&#24515;&#32773;&#12391;&#12377;&#12290;
&#21021;&#27497;&#30340;&#12394;&#36074;&#21839;&#12391;&#12372;&#12417;&#12435;&#12394;&#12373;&#12356;&#12290;

&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#12371;&#12428;&#12399;&#20309;&#12434;&#12375;&#12390;&#12356;&#12427;&#12398;&#65311;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/324"/>
    <id>tag:code.nanigac.com:forums,324</id>
    <author>
      <name>&#12466;&#12473;&#12488; (nemnem)</name>
    </author>
    <updated>2008-08-27T11:14:35+09:00</updated>
    <summary>&#29694;&#22312;&#12289;&#20182;&#12398;&#20154;&#12364;&#20316;&#12387;&#12383;&#12493;&#12483;&#12488;&#12527;&#12540;&#12463;&#12450;&#12503;&#12522;&#12398;&#12477;&#12540;&#12473;&#12434;&#35211;&#12390;&#12356;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;&#20309;&#12434;&#12375;&#12390;&#12356;&#12427;&#12398;&#12363;&#12356;&#12414;&#12402;&#12392;&#12388;&#12431;&#12363;&#12425;&#12394;&#12356;&#37096;&#20998;&#12364;&#12354;&#12427;&#12398;&#12391;&#12289;&#30342;&#27096;&#12398;&#12362;&#30693;&#24693;&#12434;&#20511;&#12426;&#12383;&#12356;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;
&#65288;&#24341;&#12365;&#32153;&#12356;&#12384;&#12418;&#12398;&#12398;&#12289;&#21069;&#20219;&#32773;&#12399;&#12378;&#12356;&#12406;&#12435;&#21069;&#12395;&#36864;&#32887;&#12375;&#12390;&#12356;&#12427;&#12375;&#12289;&#20309;&#12418;&#36039;&#26009;&#12364;&#12394;&#12356;&#12375;&#12289;&#12467;&#12513;&#12531;&#12488;&#12399;&#12411;&#12392;&#12435;&#12393;&#12394;&#12356;&#12375;&#12289;&#12391;&#12289;&#35211;&#12427;&#12384;&#12369;&#12391;&#12418;&#38627;&#33322;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;&#65289;

------&#12288;&#12477;&#12540;&#12473;&#65288;&#25244;&#31883;&#65289;&#12288;&#12371;&#12371;&#12363;&#12425;&#12288;------

&#12464;&#12525;&#12540;&#12496;&#12523;&#22793;&#25968;
DWORD   gUseNetworkSpeed = 1000;
DWORD   gdwSleepTime = 0;
DWORD   gdwSleepCount = 0;

#define F_BUFSIZ 10000 /* &#36865;&#20449;&#12469;&#12452;&#12474; */

void CGets::SetValues(void){
 DWORD	dwtmp;

 // &#12487;&#12540;&#12479;&#36865;&#20449;&#12452;&#12531;&#12479;&#12540;&#12496;&#12523;&#12434;&#35336;&#31639;&#12377;&#12427;(ms)
 dwtmp = gUseNetworkSpeed / 8 * 100;  // &#20351;&#29992;&#24111;&#22495;(KB/100ms)
 // dwtmp&#12364;0&#12398;&#22580;&#21512;&#12399;100&#12392;&#12377;&#12427;
 if (dwtmp == 0) {
&#12288;&#12288;dwtmp = 100;
 }
 // 1&#22238;&#12398;&#36865;&#20449;&#12469;&#12452;&#12474;&#12392;100ms&#12391;&#36865;&#20449;&#12391;&#12365;&#12427;&#12469;&#12452;&#12474;&#12434;&#27604;&#36611;&#12377;&#12427;
 if (dwtmp &gt; F_BUFSIZ) {
&#12288;&#12288;gdwSleepTime  = 100;
&#12288;&#12288;gdwSleepCount = dwtmp / F_BUFSIZ;
 } else {
&#12288;&#12288;gdwSleepTime  = F_BUFSIZ * 100 / dwtmp;
&#12288;&#12288;gdwSleepCount = 1;
 }
}

------&#12288;&#12477;&#12540;&#12473;&#65288;&#25244;&#31883;&#65289;&#12288;&#12371;&#12371;&#12414;&#12391;&#12288;------


&#12393;&#12358;&#12420;&#12425;1&#22238;&#12398;&#12487;&#12540;&#12479;&#36865;&#20449;&#12391;&#20309;&#31186;&#65288;&#12511;&#12522;&#31186;?&#65289;&#24453;&#12388;&#12363;&#12434;&#35336;&#31639;&#12375;&#12390;&#12356;&#12427;&#12425;&#12375;&#12356;&#12289;gdwSleepCount&#12399;&#20998;&#21106;&#12375;&#12390;&#36865;&#20449;&#12377;&#12427;&#12363;&#12393;&#12358;&#12363;&#12434;&#34920;&#12375;&#12390;&#12356;&#12427;&#12425;&#12375;&#12356;&#12289;&#12392;&#12399;&#12431;&#12363;&#12427;&#12398;&#12391;&#12377;&#12364;&#65381;&#65381;&#65381;
1&#22238;&#12395;&#36865;&#20449;&#12377;&#12427;&#12487;&#12540;&#12479;&#12398;&#12469;&#12452;&#12474;&#12399;&#32080;&#23616;&#12356;&#12367;&#12388;&#12394;&#12398;&#12363;&#12424;&#12367;&#12431;&#12363;&#12425;&#12394;&#12356;&#12375;&#12289;&#12300;dwtmp = gUseNetworkSpeed / 8 * 100;&#12301;&#12398;1&#25991;&#12364;&#20309;&#12434;&#24847;&#21619;&#12375;&#12390;&#12356;&#12427;&#12398;&#12363;&#12418;&#12424;&#12367;&#12431;&#12363;&#12426;&#12414;&#12379;&#12435;&#12290;


&#12393;&#12394;&#12383;&#12363;&#12289;&#12372;&#25945;&#25480;&#12367;&#12384;&#12373;&#12356;&#12414;&#12377;&#12424;&#12358;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>sh posix &#12398; ${1+"$@"} &#12392;&#26360;&#12367;&#26178;&#12398;&#30446;&#30340;&#12399;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/323"/>
    <id>tag:code.nanigac.com:forums,323</id>
    <author>
      <name>HIDEO</name>
    </author>
    <updated>2008-10-07T20:37:41+09:00</updated>
    <summary>&#12371;&#12435;&#12400;&#12435;&#12399;&#12289;

sh &#12391; ${1+"$@"} &#12399;
&#12393;&#12398;&#12424;&#12358;&#12394;&#30446;&#30340;&#12398;&#26178;&#12395;
&#12371;&#12398;&#12424;&#12358;&#12394;&#35352;&#36848;&#12434;&#12377;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;
 
&#12381;&#12428;&#12391;&#12289;
http://docs.hp.com/ja/B2355-60104-02/sh-posix.1.html
&#12395;
--------------------------------
${parameter:+word}
parameter &#12364;&#35373;&#23450;&#12373;&#12428;&#12289;&#12492;&#12523;&#12391;&#12394;&#12369;&#12428;&#12400;&#12289; word &#12434;&#32622;&#12365;&#25563;&#12360;&#12414;&#12377;&#12290;&#12381;&#12358;&#12391;&#12394;&#12369;&#12428;&#12400;&#12289;&#20309;&#12418;&#32622;&#12365;&#25563;&#12360;&#12414;&#12379;&#12435;&#12290;

echo  ${d:-$(pwd)} 

&#19978;&#35352;&#12398;&#24335;&#12363;&#12425;&#12467;&#12525;&#12531; (:) &#12434;&#30465;&#30053;&#12377;&#12427;&#12392;&#12289;&#12471;&#12455;&#12523;&#12399; parameter &#12364;&#35373;&#23450;&#12373;&#12428;&#12390;&#12356;&#12427;&#12363;&#12393;&#12358;&#12363;&#12434;&#21028;&#21029;&#12377;&#12427;&#12383;&#12417;&#12395;&#12481;&#12455;&#12483;&#12463;&#12384;&#12369;&#12375;&#12414;&#12377;&#12290;
-------------------------------

&#12398;&#35500;&#26126;&#12364;&#12354;&#12426;
&#12371;&#12398;&#37096;&#20998;&#12395;&#12289;&#30456;&#24403;&#12377;&#12427;&#12398;&#12391;&#12399;&#12394;&#12356;&#12363;&#12392;
&#24605;&#12387;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;
&#12300;&#12481;&#12455;&#12483;&#12463;&#12384;&#12369;&#12375;&#12414;&#12377;&#12301;
&#12392;&#12399;
&#12393;&#12398;&#12424;&#12358;&#12394;&#21205;&#20316;&#12434;&#12377;&#12427;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;




</summary>
  </entry>
  <entry>
    <title>perl -S &#12458;&#12503;&#12471;&#12519;&#12531;&#12398;&#35500;&#26126;&#12395;&#12388;&#12356;&#12390;&#65311;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/322"/>
    <id>tag:code.nanigac.com:forums,322</id>
    <author>
      <name>HIDEO</name>
    </author>
    <updated>2008-08-26T16:37:04+09:00</updated>
    <summary>&#12371;&#12435;&#12400;&#12435;&#12399;&#12289;

http://www.namazu.org/~tsuchiya/perl/info/perl-ja_52.html#SEC52
&#12395; 
perl&#12398; -S &#12458;&#12503;&#12471;&#12519;&#12531;&#12395;&#12388;&#12356;&#12390;&#12398;
&#35500;&#26126;&#12364;&#26360;&#12363;&#12428;&#12390;&#12356;&#12414;&#12377;&#12364;&#12289;

eval '(exit $?0)' &amp;&amp; eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
    &amp; eval 'exec /usr/bin/perl -S $0 $argv:q'
            if 0;

&#19978;&#35352;&#12398;&#35352;&#36848;&#12399;
&#12393;&#12398;&#12424;&#12358;&#12394;&#30446;&#30340;&#12398;&#12383;&#12417;&#12398;
&#12467;&#12540;&#12489;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;




</summary>
  </entry>
  <entry>
    <title>&#12450;&#12510;&#12490;&#12452;&#12513;&#12540;&#12472;&#12474;&#12398;&#12300;&#12521;&#12452;&#12488;&#12508;&#12483;&#12463;&#12473;&#12301;&#12398;&#12424;&#12358;&#12394;&#12362;&#27671;&#12395;&#20837;&#12426;&#12395;&#19968;&#26178;&#30340;&#12395;&#20445;&#23384;&#12377;&#12427;&#27231;&#33021;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/321"/>
    <id>tag:code.nanigac.com:forums,321</id>
    <author>
      <name>&#12466;&#12473;&#12488; (tamago)</name>
    </author>
    <updated>2008-08-25T15:13:42+09:00</updated>
    <summary>&#12450;&#12510;&#12490;&#12452;&#12513;&#12540;&#12472;&#12474;&#12395;&#12390;&#12289;
http://amanaimages.com/
&#12521;&#12452;&#12488;&#12508;&#12483;&#12463;&#12473;&#12392;&#12356;&#12358;&#12362;&#27671;&#12395;&#20837;&#12426;&#20445;&#23384;&#27231;&#33021;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;

&#12371;&#12358;&#12356;&#12387;&#12383;&#12289;&#19968;&#26178;&#30340;&#12395;&#20445;&#23384;&#12391;&#12365;&#12427;&#27231;&#33021;&#12434;&#12388;&#12367;&#12429;&#12358;&#12392;&#24605;&#12387;&#12390;&#12356;&#12427;&#12398;&#12391;&#12377;&#12364;&#12393;&#12398;&#12424;&#12358;&#12395;&#12377;&#12428;&#12400;&#12424;&#12429;&#12375;&#12356;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;

-

&#20855;&#20307;&#30340;&#12395;&#12399;&#12289;WordPress2.6.1&#12391;&#12502;&#12525;&#12464;&#12434;&#27083;&#31689;&#12375;&#12390;&#12362;&#12426;&#12414;&#12375;&#12390;&#12289;

&#12381;&#12398;&#35352;&#20107;&#12434;&#12521;&#12452;&#12488;&#12508;&#12483;&#12463;&#12473;&#12395;&#20445;&#23384;&#12377;&#12427;&#12371;&#12392;&#12391;

&#12502;&#12483;&#12463;&#12510;&#12540;&#12463;&#12398;&#12424;&#12358;&#12395;&#12381;&#12398;&#12506;&#12540;&#12472;&#12364;&#12521;&#12452;&#12488;&#12508;&#12483;&#12463;&#12473;&#12395;&#33988;&#31309;&#12373;&#12428;

&#12381;&#12428;&#12434;&#12463;&#12522;&#12483;&#12463;&#12377;&#12427;&#12371;&#12392;&#12391;&#35352;&#20107;&#12434;&#35211;&#12427;&#20107;&#12364;&#12365;&#12427;&#12424;&#12358;&#12394;&#12418;&#12398;&#12434;&#24819;&#23450;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

-

&#12381;&#12398;&#24460;&#36023;&#12356;&#29289;&#12459;&#12468;&#12395;&#31227;&#12387;&#12383;&#12426;&#12394;&#12393;&#12399;&#24819;&#23450;&#12375;&#12390;&#12356;&#12414;&#12379;&#12435;&#12290;

&#12354;&#12367;&#12414;&#12391;&#12418;&#19968;&#26178;&#30340;&#12395;&#35352;&#20107;&#12398;&#12502;&#12483;&#12463;&#12510;&#12540;&#12463;&#12364;&#20986;&#26469;&#12427;&#31243;&#24230;&#12398;&#12418;&#12398;&#12391;&#12377;&#12290;

-

&#34920;&#31034;&#24418;&#24335;&#12399;&#12289;&#35352;&#20107;&#12479;&#12452;&#12488;&#12523;&#12392;&#12289;&#35352;&#20107;&#20869;&#12398;&#30011;&#20687;&#12434;&#34920;&#31034;&#12375;&#12424;&#12358;&#12392;&#24605;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;

-

&#12393;&#12358;&#12382;&#23452;&#12375;&#12367;&#12362;&#39000;&#12356;&#33268;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>ruby&#12391;rails&#12398;render:partial&#12398;&#12424;&#12358;&#12394;&#20107;&#12434;&#12375;&#12383;&#12356;&#12290;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/320"/>
    <id>tag:code.nanigac.com:forums,320</id>
    <author>
      <name>&#12466;&#12473;&#12488; (cat)</name>
    </author>
    <updated>2008-10-16T12:16:29+09:00</updated>
    <summary>ruby&#12391;html&#20869;&#12395;&#20182;&#12398;html&#12434;&#20837;&#12428;&#36796;&#12415;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;
&#26908;&#32034;&#12377;&#12427;&#12392;&#12289;rails&#12391;&#12399;render&#12434;&#20351;&#12387;&#12390;&#12398;&#12418;&#12398;&#12364;
&#27810;&#23665;&#12354;&#12427;&#12398;&#12391;&#12377;&#12364;&#12289;ruby&#12384;&#12369;&#65288;&#38750;rails&#65289;&#12391;&#12399;
&#12394;&#12356;&#12398;&#12391;&#12375;&#12423;&#12358;&#12363;&#65311;

ruby+ERB&#12434;&#20351;&#29992;&#12375;&#12390;&#12289;CGI&#12391;&#21205;&#12363;&#12375;&#12383;&#12356;&#12398;&#12391;&#12377;&#12290;

&#12393;&#12394;&#12383;&#12363;&#12372;&#25945;&#25480;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>Ruby&#12391;&#37197;&#21015;&#12487;&#12540;&#12479;&#12434;view&#12398;rhtml&#12395;&#20986;&#21147;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/319"/>
    <id>tag:code.nanigac.com:forums,319</id>
    <author>
      <name>&#12466;&#12473;&#12488;</name>
    </author>
    <updated>2008-08-21T00:17:38+09:00</updated>
    <summary>&#21021;&#12417;&#12390;&#25237;&#31295;&#12373;&#12379;&#12390;&#12356;&#12383;&#12384;&#12365;&#12414;&#12377;&#12290;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;

Ruby&#12391;POST&#12487;&#12540;&#12479;&#12420;&#37197;&#21015;&#12434;rhtml&#12395;&#20986;&#21147;&#12373;&#12379;&#12383;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;&#12358;&#12414;&#12367;&#12391;&#12365;&#12414;&#12379;&#12435;&#12290;
PHP&#12398;print_r&#12398;&#12424;&#12358;&#12395;&#31777;&#21336;&#12395;&#12502;&#12521;&#12454;&#12470;&#12395;&#20986;&#21147;&#12373;&#12379;&#12427;&#26041;&#27861;&#12399;&#12354;&#12426;&#12414;&#12377;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;

&#12393;&#12358;&#12363;&#12372;&#25945;&#31034;&#12356;&#12383;&#12384;&#12369;&#12414;&#12377;&#12424;&#12358;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12356;&#12383;&#12375;&#12414;&#12377;&#12290;



</summary>
  </entry>
  <entry>
    <title>PHP&#12391;&#23567;&#12373;&#12394;&#25968;&#20516;&#12434;&#31185;&#23398;&#34920;&#35352;&#12395;&#22793;&#25563;&#12373;&#12379;&#12394;&#12356;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/318"/>
    <id>tag:code.nanigac.com:forums,318</id>
    <author>
      <name>mikeda</name>
    </author>
    <updated>2008-09-07T20:39:20+09:00</updated>
    <summary>PHP5&#12391;&#38750;&#24120;&#12395;&#22823;&#12365;&#12356;&#25968;&#20516;&#12289;&#23567;&#12373;&#12356;&#25968;&#20516;&#12434;&#20986;&#21147;&#12375;&#12424;&#12358;&#12392;&#12377;&#12427;&#12392;
&#33258;&#21205;&#30340;&#12395;&#31185;&#23398;&#34920;&#35352;&#12395;&#22793;&#25563;&#12373;&#12428;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;
 $ php -v
PHP 5.2.6
...
$ php -r 'print 0.00001;'
1.0E-5
 &#12371;&#12398;&#22793;&#25563;&#12434;&#25233;&#27490;&#12377;&#12427;&#26041;&#27861;&#12434;&#12384;&#12428;&#12363;&#12372;&#23384;&#30693;&#12354;&#12426;&#12414;&#12379;&#12435;&#12363;&#65311;



&#33258;&#28982;&#25968;&#12398;&#22580;&#21512;&#12399;&#12381;&#12398;&#12414;&#12414;&#20986;&#21147;&#12375;&#12383;&#12356;&#12398;&#12391;&#12289;
printf("%f", $num);
&#12395;&#36867;&#12370;&#12389;&#12425;&#12367;&#12390;&#12385;&#12423;&#12387;&#12392;&#22256;&#12387;&#12390;&#12414;&#12377;&#12290;
toString&#12513;&#12477;&#12483;&#12489;&#12398;&#12424;&#12358;&#12394;&#12418;&#12398;&#12434;&#12356;&#12376;&#12428;&#12383;&#12426;&#12391;&#12365;&#12428;&#12400;&#12392;&#24605;&#12358;&#12398;&#12391;&#12377;&#12364;&#12290;


&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#65281;&#65281;
</summary>
  </entry>
  <entry>
    <title>&#12501;&#12457;&#12540;&#12510;&#12483;&#12488;&#12398;&#20181;&#27096;&#12391;&#36855;&#12387;&#12390;&#12356;&#12414;&#12377;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/317"/>
    <id>tag:code.nanigac.com:forums,317</id>
    <author>
      <name>&#12466;&#12473;&#12488; (satosi)</name>
    </author>
    <updated>2008-08-26T00:20:10+09:00</updated>
    <summary>Web&#38283;&#30330;&#12434;&#12375;&#12390;&#12356;&#12427;&#12392;&#12289;
XML&#12418;Json&#12418;&#20181;&#27096;&#12393;&#12362;&#12426;&#12395;&#26360;&#12367;&#12392;&#38263;&#12387;&#12383;&#12425;&#12375;&#12367;&#12390;&#12356;&#12420;&#12395;&#12394;&#12387;&#12390;&#12375;&#12414;&#12356;&#12414;&#12375;&#12383;&#12290;
"&#12392;&#12363;{&#12392;&#12363;&#12290;&#12521;&#12452;&#12502;&#12521;&#12522;&#12434;&#20351;&#12360;&#12400;&#12377;&#12416;&#12398;&#12391;&#12377;&#12364;&#12289;&#12420;&#12387;&#12401;&#12426;&#27671;&#12395;&#12394;&#12387;&#12390;&#12375;&#12414;&#12356;&#12414;&#12375;&#12383;&#12290;

&#12376;&#12419;&#12354;&#29420;&#33258;&#12391;&#12501;&#12457;&#12540;&#12510;&#12483;&#12488;&#12434;&#20316;&#12428;&#12400;&#12356;&#12356;&#12376;&#12419;&#12435;&#12392;&#24605;&#12387;&#12390;&#20316;&#12387;&#12390;&#12415;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;
&#20181;&#27096;&#12395;&#12354;&#12356;&#12414;&#12356;&#12394;&#28857;&#12364;&#12354;&#12387;&#12390;&#12385;&#12423;&#12387;&#12392;&#24515;&#37197;&#12391;&#12377;&#12290;
&#33258;&#20998;&#12384;&#12369;&#12384;&#12392;&#12393;&#12371;&#12364;&#33391;&#12367;&#12394;&#12356;&#12363;&#12431;&#12363;&#12425;&#12394;&#12356;&#12398;&#12391;&#30342;&#12373;&#12435;&#12395;&#21161;&#12369;&#12390;&#27442;&#12375;&#12356;&#12391;&#12377;&#12290;

&#65288;&#36969;&#24403;&#12394;&#65289;&#20181;&#27096;&#26360;&#12408;&#12398;&#12522;&#12531;&#12463;&#12434;&#24373;&#12387;&#12390;&#12362;&#12365;&#12414;&#12377;&#12290;

http://pearl-white.hp.infoseek.co.jp/ldf2.html

&#23452;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>Rails&#12391;&#12398;API&#12398;&#12486;&#12473;&#12488;&#26041;&#27861;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/316"/>
    <id>tag:code.nanigac.com:forums,316</id>
    <author>
      <name>Re:Lax</name>
    </author>
    <updated>2008-08-13T10:06:35+09:00</updated>
    <summary>HTTP&#12398;body&#12395;CSV&#12487;&#12540;&#12479;&#12434;&#22475;&#12417;&#36796;&#12435;&#12384;&#12522;&#12463;&#12456;&#12473;&#12488;&#12434;&#36865;&#20449;&#12377;&#12427;&#12392;&#12289;CSV&#12487;&#12540;&#12479;&#12434;DB&#12408;&#30331;&#37682;&#12377;&#12427;API&#12434;Rails&#12391;&#20316;&#25104;&#12375;&#12414;&#12375;&#12383;&#12290;

&#20316;&#25104;&#12375;&#12383;&#12398;&#12399;&#12356;&#12356;&#12398;&#12391;&#12377;&#12364;&#12289;
RSpec&#12391;&#12486;&#12473;&#12488;&#12434;&#26360;&#12371;&#12358;&#12392;&#12375;&#12383;&#12425;&#12289;post&#12513;&#12477;&#12483;&#12489;&#12391;&#12399;CSV&#12487;&#12540;&#12479;&#12434;&#36865;&#20449;&#12391;&#12365;&#12378;&#12289;&#22256;&#12387;&#12390;&#12356;&#12414;&#12377;&#12290;&#12290;&#12290;

&#29694;&#29366;&#12289;&#20197;&#19979;&#12398;&#12424;&#12358;&#12395;RSpec&#12391;&#12399;&#12394;&#12367;&#21029;&#12501;&#12449;&#12452;&#12523;&#12391;Net::HTTP&#12434;&#29992;&#12356;&#12390;&#12486;&#12473;&#12488;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;

 body = &lt;&lt;EOT
111,222,333,444
111,222,333,444
111,222,333,444
EOT

header = {
  "Accept" =&gt; "text/comma-separated-values",
  "org-header1" =&gt; "aaaa",
  "org-header2" =&gt; "bbbb"
}

Net::HTTP.version_1_2
http = Net::HTTP.start('localhost', 3000)
p http.post('path', body, header)
 RSpec&#12434;&#29992;&#12356;&#12390;&#12486;&#12473;&#12488;&#12434;&#26360;&#12367;&#26041;&#27861;&#12434;&#30693;&#12387;&#12390;&#12356;&#12427;&#26041;&#12364;&#12356;&#12414;&#12375;&#12383;&#12425;&#12289;&#12372;&#25945;&#31034;&#12367;&#12384;&#12373;&#12356;&#12290;&#12424;&#12429;&#12375;&#12367;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;

</summary>
  </entry>
  <entry>
    <title>php&#12391;&#12398;&#12523;&#12540;&#12503;&#20966;&#29702;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/315"/>
    <id>tag:code.nanigac.com:forums,315</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#12394;&#12394;&#12375;)</name>
    </author>
    <updated>2008-09-14T22:25:14+09:00</updated>
    <summary>php&#12391;&#12398;&#12523;&#12540;&#12503;&#20966;&#29702;&#12395;&#12388;&#12356;&#12390;&#12450;&#12489;&#12496;&#12452;&#12473;&#12434;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
 	$array["apple"]
	$array["mikan"]
	$array["budou"]

	foreach($array as $key =&gt; $value){
		&#8251;&#12523;&#12540;&#12503;&#20966;&#29702;
	}
 &#12391;&#12452;&#12531;&#12487;&#12483;&#12463;&#12473;&#12364;&#20309;&#20491;&#26377;&#12387;&#12390;&#12418;&#12523;&#12540;&#12503;&#20966;&#29702;&#12391;&#12365;&#12414;&#12377;&#12364;

	$array["apple"][0]
	$array["apple"][1]
	$array["apple"][2]

&#12398;&#12424;&#12358;&#12395;&#22810;&#27425;&#20803;&#37197;&#21015;&#12395;&#12394;&#12387;&#12383;&#22580;&#21512;&#12399;&#12393;&#12398;&#12424;&#12358;&#12395;&#20966;&#29702;&#12377;&#12427;&#12398;&#12364;&#12473;&#12510;&#12540;&#12488;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;

 $i = 0;
while(){
	if(!strlen($array["apple"][$i])){
		exit;
	}
	&#8251;&#12523;&#12540;&#12503;&#20966;&#29702;
	$i++;
}
 &#19978;&#35352;&#12399;&#12401;&#12387;&#12392;&#24605;&#12356;&#12388;&#12356;&#12383;&#12467;&#12540;&#12489;&#12391;&#12414;&#12384;&#35430;&#12375;&#12390;&#12356;&#12414;&#12379;&#12435;&#12290;
&#12473;&#12510;&#12540;&#12488;&#12395;&#12394;&#12427;&#12467;&#12540;&#12489;&#12434;&#12450;&#12489;&#12496;&#12452;&#12473;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;

</summary>
  </entry>
  <entry>
    <title>php&#12391;&#12398;&#12523;&#12540;&#12503;&#20966;&#29702;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/314"/>
    <id>tag:code.nanigac.com:forums,314</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#12394;&#12394;&#12375;)</name>
    </author>
    <updated>2008-09-29T21:19:12+09:00</updated>
    <summary>php&#12391;&#12398;&#12523;&#12540;&#12503;&#20966;&#29702;&#12395;&#12388;&#12356;&#12390;&#12450;&#12489;&#12496;&#12452;&#12473;&#12434;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;
 	$array["apple"]
	$array["mikan"]
	$array["budou"]

	foreach($array as $key =&gt; $value){
		&#8251;&#12523;&#12540;&#12503;&#20966;&#29702;
	}
 &#12391;&#12452;&#12531;&#12487;&#12483;&#12463;&#12473;&#12364;&#20309;&#20491;&#26377;&#12387;&#12390;&#12418;&#12523;&#12540;&#12503;&#20966;&#29702;&#12391;&#12365;&#12414;&#12377;&#12364;

	$array["apple"][0]
	$array["apple"][1]
	$array["apple"][2]

&#12398;&#12424;&#12358;&#12395;&#22810;&#27425;&#20803;&#37197;&#21015;&#12395;&#12394;&#12387;&#12383;&#22580;&#21512;&#12399;&#12393;&#12398;&#12424;&#12358;&#12395;&#20966;&#29702;&#12377;&#12427;&#12398;&#12364;&#12473;&#12510;&#12540;&#12488;&#12391;&#12375;&#12423;&#12358;&#12363;&#12290;

 $i = 0;
while(){
	if(!strlen($array["apple"][$i])){
		exit;
	}
	&#8251;&#12523;&#12540;&#12503;&#20966;&#29702;
	$i++;
}
 &#19978;&#35352;&#12399;&#12401;&#12387;&#12392;&#24605;&#12356;&#12388;&#12356;&#12383;&#12467;&#12540;&#12489;&#12391;&#12414;&#12384;&#35430;&#12375;&#12390;&#12356;&#12414;&#12379;&#12435;&#12290;
&#12473;&#12510;&#12540;&#12488;&#12395;&#12394;&#12427;&#12467;&#12540;&#12489;&#12434;&#12450;&#12489;&#12496;&#12452;&#12473;&#12362;&#39000;&#12356;&#12375;&#12414;&#12377;&#12290;

</summary>
  </entry>
  <entry>
    <title>PDFlib&#65302; &#12391;&#12289;&#25991;&#26360;&#20013;&#12398;&#20351;&#29992;&#12375;&#12390;&#12356;&#12427;&#20840;&#12501;&#12457;&#12531;&#12488;&#12398;&#24773;&#22577;&#12434;&#21462;&#12426;&#12383;&#12356;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/forum/view/313"/>
    <id>tag:code.nanigac.com:forums,313</id>
    <author>
      <name>&#12466;&#12473;&#12488; (&#12354;&#12356;&#12427;)</name>
    </author>
    <updated>2008-08-06T21:21:08+09:00</updated>
    <summary>PDFlib&#65303;&#12398;&#12481;&#12517;&#12540;&#12488;&#12522;&#12450;&#12523;&#12434;&#35211;&#12427;&#1239