tag:blogger.com,1999:blog-7187067176876865182024-03-19T16:59:07.769+09:00なんかのメモUnknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-718706717687686518.post-88051987745293909852011-07-24T19:19:00.000+09:002011-07-24T19:19:37.151+09:00cakePHPを試そう先日、<a href="http://atnd.org/events/17625">デザイナー向けCakePHP勉強会</a>に参加しました。デザイナーではなくインフラ系ですが。。。<br />
<br />
インフラ系の勉強会とはちょっと違った雰囲気。女性率が高くてビックリ。多分、6(男):4(女性)ぐらい。<br />
<br />
PHP はちょっと触ったことがあって、効率よく手間なくできそうなフレームワークに興味がありました。<br />
<br />
せっかく参加してきたので家で試してみました。<br />
<br />
まずはインストールから。ちなみに家ではubuntuを使っています。<br />
<br />
まずはAMP環境のインストール。以下を実行するだけ。<br />
<span class="Apple-style-span" style="background-color: #999999; font-size: x-small;">$ sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server</span><br />
<br />
ついでに環境のメモ。<br />
<span class="Apple-style-span" style="background-color: #999999; font-size: x-small;">document root: /var/www/</span><br />
<span class="Apple-style-span" style="background-color: #999999; font-size: x-small;">config file: /etc/apache2</span><br />
<br />
安定版CakePHP ver 1.3.9をダウンロードし、そしてインストール。<br />
<span class="Apple-style-span" style="background-color: #999999;"><span class="Apple-style-span" style="font-size: x-small;"> $ cd /var/www</span></span><br />
<span class="Apple-style-span" style="background-color: #999999;"><span class="Apple-style-span" style="font-size: x-small;"> $ sudo unzip <zip file></span></span><br />
<span class="Apple-style-span" style="background-color: #999999;"><span class="Apple-style-span" style="font-size: x-small;"> $ sudo mv cakephp-cakephp-4a161c1/ cake</span></span><br />
<span class="Apple-style-span" style="background-color: #999999;"><span class="Apple-style-span" style="font-size: x-small;"> $ sudo chown -R www-data cake</span></span><br />
<span class="Apple-style-span" style="background-color: #999999;"><span class="Apple-style-span" style="font-size: x-small;"> $ sudo a2enmod php5</span></span><br />
<span class="Apple-style-span" style="background-color: #999999;"><span class="Apple-style-span" style="font-size: x-small;"> $ sudo apache2ctl restart</span></span><br />
<br />
これでインストールは完了と思われる。<br />
<br />
試しに、http://localhost/cake にアクセスしてみると、以下のような画面が表示された。<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQn6gMU_Nh4HJvSgqCrnukktx38F4JWtTWwoOHwjZfzmyTDX-qvJyUWc_tkt7knMubBj6AZxKaDpTNpC5u-XygmIrNQOZ7Tf6Jk0uJp-BlRueRVnbwE1zDDyjbQIXhRuSww4GXqQ7nGRfR/s1600/Cakephp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="194" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQn6gMU_Nh4HJvSgqCrnukktx38F4JWtTWwoOHwjZfzmyTDX-qvJyUWc_tkt7knMubBj6AZxKaDpTNpC5u-XygmIrNQOZ7Tf6Jk0uJp-BlRueRVnbwE1zDDyjbQIXhRuSww4GXqQ7nGRfR/s320/Cakephp.png" width="320" /></a></div><br />
<br />
ここまでは順調らしい・・・。<br />
<br />
<br />
あとはサンプル。まだCakeはわかってないので適当にHello Worldのサンプルを探して、さぁ実行。<br />
<br />
しかし、表示されない・・・。<br />
<br />
いくつかのサイトからサンプルを取ってきたがどれも動かん・・・。<br />
なぜ????<br />
<br />
やはり、フレームワークに向いていないのか。苦笑<br />
<br />
とりあえず、今日はここまで。泣Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-718706717687686518.post-52353780648103269742011-03-21T15:04:00.000+09:002011-03-21T15:04:29.690+09:00クラウド系アプリがぞくぞくとなんと、DropboxやZumoDriveなどもubuntuに対応している!!<br />
<br />
<a href="http://www.dropbox.com/downloading?os=lnx">http://www.dropbox.com/downloading?os=lnx</a><br />
<br />
<a href="http://www.zumodrive.com/download/zumodrive">http://www.zumodrive.com/download/zumodrive</a><br />
<br />
あとはEvernoteかな。nevernoteってのはあるけどやっぱり公式アプリがいいな〜。<br />
<br />
<a href="http://nevernote.sourceforge.net/">http://nevernote.sourceforge.net/</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-718706717687686518.post-91224501077941750712011-03-21T14:58:00.000+09:002011-03-21T14:58:06.138+09:00wine with ituneswine1.2.2にiTunesをインストールしてみる。<br />
特別なことはなにもしていない。<br />
<br />
で、実行すると、<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2txzxRWTSD230GLLG9Q2xxe3U-1Y98wT39MDHkG0Ds3H6ldKpHE922nZ2ohiNTBDVzJesjdk_EUv_COKTAIlKMqcGJeuzgxPz9Z8cyOM3KFJAhw4iUtnLtLTbDLkCV5sYFLjYA6z1OzBy/s1600/itunes.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2txzxRWTSD230GLLG9Q2xxe3U-1Y98wT39MDHkG0Ds3H6ldKpHE922nZ2ohiNTBDVzJesjdk_EUv_COKTAIlKMqcGJeuzgxPz9Z8cyOM3KFJAhw4iUtnLtLTbDLkCV5sYFLjYA6z1OzBy/s320/itunes.jpg" width="320" /></a></div><br />
おぉ!すごい。見た目もなかなかだ。<br />
<br />
ただ、iPod Touchは認識しなかった。<br />
<br />
時間があれば色々と試してみよう。Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-718706717687686518.post-4486926451249426842011-03-21T14:47:00.004+09:002011-03-21T14:51:34.684+09:00Ubuntu10.10の背景を変更するMac4LinでデスクトップはMac風になったが、ログインがまだまだubuntuのままだ。<br />
で、やはりそれも変えたい。<br />
<br />
とりあえず、背景。<br />
<br />
以下で変更できる。<br />
<br />
1. ネタの準備<br />
まずは背景画像を準備する。解像度を1600x1200で。<br />
<br />
2. ファイルをコピー<br />
<span class="Apple-style-span" style="background-color: white;">sudo <filename>.jpg /usr/share/backgrounds</span><br />
<span class="Apple-style-span" style="background-color: white;"><br />
</span><br />
<span class="Apple-style-span" style="background-color: white;">3. 以下を実行する</span><br />
<span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: #110000; font-family: 'Lucida Grande', lucida, arial, sans-serif; font-size: 13px; line-height: 20px;"></span></span><br />
<pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;"><span style="font-weight: bold;"> </span>sudo cp <span style="color: black; font-weight: bold;">/</span>usr<span style="color: black; font-weight: bold;">/</span>share<span style="color: black; font-weight: bold;">/</span>applications<span style="color: black; font-weight: bold;">/</span>gnome-appearance-properties.desktop <span style="color: black; font-weight: bold;">/</span>usr<span style="color: black; font-weight: bold;">/</span>share<span style="color: black; font-weight: bold;">/</span>gdm<span style="color: black; font-weight: bold;">/</span>autostart<span style="color: black; font-weight: bold;">/</span>LoginWindow</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;">
</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;">
</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;">4. 一旦、ログアウトする</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;"> いつものログイン画面になると、「背景」の変更が表示されるので、ここで先程のネタを選ぶ。</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;">
</span></pre><div class="separator" style="clear: both; text-align: center;"><a href="https://lh6.googleusercontent.com/-AN8UAsJ-xtY/TYbMyIxPJuI/AAAAAAAAGOk/K-EiNxuVNqc/s1600/IMG_20110321125800.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://lh6.googleusercontent.com/-AN8UAsJ-xtY/TYbMyIxPJuI/AAAAAAAAGOk/K-EiNxuVNqc/s320/IMG_20110321125800.jpg" width="320" /></a></div><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;">
</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;">
</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="background-color: white;">5. ログインして、以下を実行する。</span></pre><pre class="bash" style="clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', lucida, arial, sans-serif; line-height: 20px; white-space: normal;"><pre class="bash" style="background-color: white; clear: none; font-family: monospace; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; white-space: pre; width: auto;"><span style="color: #c20cb9; font-weight: bold;"> </span>sudo unlink <span style="color: black; font-weight: bold;">/</span>usr<span style="color: black; font-weight: bold;">/</span>share<span style="color: black; font-weight: bold;">/</span>gdm<span style="color: black; font-weight: bold;">/</span>autostart<span style="color: black; font-weight: bold;">/</span>LoginWindow<span style="color: black; font-weight: bold;">/</span>gnome-appearance-properties.desktop</pre></span></pre><span class="Apple-style-span" style="background-color: white;"><br />
</span><br />
<br />
<span class="Apple-style-span" style="background-color: white;">以上、</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-718706717687686518.post-8517891204951210242011-03-21T14:35:00.000+09:002011-03-21T14:35:20.544+09:00Mac4LinやっぱりMacには憧れる。<br />
<br />
ubuntuをこんな感じにしてくれる。<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjPMtWhNrbJlAQ_6y5gC1W0wRYUm_qFRG5Ch0r1UyonKjOa0e_ZIVy33lK2ChDndfMxVxgwskh-ycbPSoW1GkjhXztVVUolFpHnMyWo5QOnqiNYSaH_j5ZgMNSrZJxsQw_OcWQT-a06jLx/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjPMtWhNrbJlAQ_6y5gC1W0wRYUm_qFRG5Ch0r1UyonKjOa0e_ZIVy33lK2ChDndfMxVxgwskh-ycbPSoW1GkjhXztVVUolFpHnMyWo5QOnqiNYSaH_j5ZgMNSrZJxsQw_OcWQT-a06jLx/s320/Screenshot.png" width="320" /></a></div><br />
すごい!カッコいい!<br />
<br />
以下からダウンロード可能です。<br />
<br />
<a href="http://sourceforge.net/projects/mac4lin/">http://sourceforge.net/projects/mac4lin/</a><br />
<br />
zipを解凍して、実行。<br />
<br />
実行したら「背景の変更」→「テーマ」→「Mac4Lin_Aqua」を選べばいい。<br />
<br />
でも、Macファンからみるとどう映るのだろうか?<br />
やはり邪道か?Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-718706717687686518.post-49000597142473699512011-03-21T14:29:00.000+09:002011-03-21T14:29:47.215+09:00windowsとubuntuについて結局、色々と便利なのはwindows。<br />
ただ、個人的にはubuntuを応援していきたい。<br />
<br />
Ubuntu10.10はかなり使い易い。<br />
特に、ubuntu Softwareセンターには感動する。<br />
<br />
欲しいソフトのほとんどがここで手に入る。検索してインストールの2ステップ。これはWindows以上のモノがある。<br />
<br />
こんな感じで主にubuntuについて書いていこう。Unknownnoreply@blogger.com0