Cloud Nine

Avatar

This blog is my everything!!

Oct
28
How to learn English in Japan.
Oct 28, 2008 0

Everyday I study English recently.
I often use this service.

studying

iknow
You can learn English on this web site, nad it is free!!
You can find some course about you want to learn it and you put in your list.
If you are interest in this service,please sent to message to me.
Nikkei Weekly
I often podcat on the way to my office.
And Nikkei weekly provide podcat about Nikkei weekly articles, I buy Nikkei weekly and I listen this podcat when I read Nikkei weekly.
I like this podcat
I sometimes listen Radio
This radio is BBC.
There are a lot of categories,I often listen to world news and environment and Technical news.
If you can not continue to listen to News in English,you can try this news ’cause if you listen to News that it is about your curious things.
You can continue it.So BBC have a lot of categories you can find your news about your curious things
Take a exam
If you take English exam,you can get 2 good things.
One is you have to study English.’cause you take a exam.
Two is you understand your English level,It is important to learn news things.

Oct
16
FlashでGET、POSTの情報を取得する方法
Oct 16, 2008 0

FlashVars

Flash側で直接、GET、POSTは取得できないようなので、「FlashVars」を使用します。

html側の設定

FlashVarsは、Flashを読む込ませるファイルにかく<param>や<object>の中に下記のように指定します。

Object タグの例:
<PARAM NAME=FlashVars VALUE=”hoge=hoge is hoge”>

Embed タグの例:
<EMBED src=”display.swf”
FlashVars=”hoge=hoge is hoge”> </EMBED>

参考サイト
http://support.adobe.co.jp/faq/faq/qadoc.sv?228618+002

Flash側

ActionScriptに下記の内容で取得することができます。

_level0.変数名 

実際のサンプル

GETのcategoryの値によって表示する内容を変更するFlashの場合

sample

html側

flashvarsに渡す値を、PHPで変更しております。
html側の表示部分で、PHPなどと連携して、GET,POSTなりのデータをFlashにわたします。

<object width="300" height="200"  align="middle">
<param name="movie" value="test.swf" />
<param name="FlashVars" value="category=< ?=$_GET['category']; ?>">
<param name="quality" value="high" />
<embed src="test.swf" FlashVars="category=< ?=$_GET['category']; ?>" quality="high" width="300" height="200" name="myflashvars"  />
</object>

Flash側

actionscriptに下記の内容を記述
category が1だったら

if (_level0.category =='1') {
    myTxt.text = "カテゴリー1";
  gotoAndStop(2);//カテゴリーが1のときは2フレームまで飛ばしている。
} else if (_level0.category =='2') {
    myTxt.text = "カテゴリー2 ";
	gotoAndStop(3);//カテゴリーが2のときは3フレームまで飛ばしている。
} 

sampleのダウンロードはこちらから

Oct
11
We went to Danjiri festival at Shimomatsu.
Oct 11, 2008 0

だんじり
だんじり3
だんじり2



We went to friend’s party at Shimomatsu on 18/Oct.
It was nice party,we enjoyed talking and dancing. Thanks a lot!!

And we saw Danjiri festival too,I had never seen Danjiri festival in my life. I wanted to see it.
It was nice festival,if you are man so you want to attend it.

大きな地図で見る

There are a festival in my county town too.
When I was child I love it. I often go to ‘Kenka Matsuri’. It mean fighting festival.
We hitattack another Yatai.

Oct
10
Recently my favorite song is ‘ I’m Yours’
Oct 10, 2008 0

I often listen to this music.

Jason Mraz - I’m Yours

I like this music clip too because if I have a lot of time, I want to go around world that like this clip.

Jason Mraz

Oct
09
Symantec service framework が終了してメールが受信できなくる件
Oct 9, 2008 0

ぼくはNorton AntiVirus2007を入れているんですが、極々稀にメーラでメールを受信していると
「Symantec service framework」が突然終了して、メールがまったく受信できなくなるというエラーになる。
Symantec service framework

毎回調べるのも手間なので、ここの記述しておきます。

まず、タスクトレイの中のNortonが落ちているので「プログラム」→「NortonAntiVirus」あたりから起動をさせる。
その後、タスクトレイから、「Norton Protection Center」を立ち上げる。
Norton Protection Center

「NortonAntiVirus」のタブを選択して、「設定」より「電子メールとメッセンジャー」を選択
「着信電子メールスキャン」の「設定」を選択して、「スキャンする対象」から「着信電子メールメッセージをスキャンする」
のチェックをはずす。

「OK」を押すと、期間の選択がでるので、15分くらいを選択して終了
期間

これで、メールが受信できるようになります。

以下、感想

日ごろよく思うのですが、セキュリティ対策ソフトなりを入れてトラブル回数と、ウィルスなどで起きるトラブルの回数だと
明らかに、セキュリティ対策ソフトのほうがトラブル回数が多いと思うのは僕だけだろうか。。。

Oct
09
We talked about Japanese education.
Oct 9, 2008 0

Education
Tonight we talked about Japanese education.
My girlfriend works at public high school in Osaka.
And she said that Japanese students don’t have eagerness for studying English.
She tried to teach them to enjoy studying English but they did not show no reaction…
And she said that they have everything..so they don’t have purpose about their future.
I agree with her,their life is not bad now .They have a bed and some money and friends and time to play.
They don’t have risk. Sometime risk is important for improve.
I’m 26 years old,now I work in society.I could get a lot of knowledge and experience from risk.

Oct
08
I booked Giovanca Live in Osaka!
Oct 8, 2008 0

I booked Giovanca Live in Osaka yesterday.
Sally’s hairdresser recommended this live to Sally.
First time we didnot know this artist and then we listened her music on website.
Her song is very easy listening for us.

So we checked her live schedule and we booked her live next Saturday on Billboard.
There are some thickets,you can get it.

Oct
07
SSHログイン用の鍵生成方法
Oct 7, 2008 0

sshの鍵

鍵ファイルの生成

生成したいユーザで、ログインしてください。

# su - hogehoge
# ssh-keygen -t rsa
以下自動で表示する
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hogehoge/.ssh/id_rsa):パスを指定したい場合は記入
Enter passphrase (empty for no passphrase):パスワードを入力
Enter same passphrase again:上と同じパスワードを入力

指定した場合は、そのパスの下に行ってid_rsaファイルをコピペかftpで
ローカルに落してくるSSH接続時の鍵として保存する。

# cd .ssh
# ll -a
drwx------  2 hoge hoge 4096 10月  7 00:08 .
drwxr-xr-x 27 hoge hoge 4096 10月  7 00:12 ..
-rw-------  1 hoge hoge 1743 10月  7 00:08 id_rsa
-rw-r--r--  1 hoge hoge  409 10月  7 00:08 id_rsa.pub
#mv id_rsa.pub authorized_keys  ← 公開鍵

保存が完了したら不要なので削除しておく

# rm id_rsa

sshの設定ファイル編集

sshの設定はなるべくサーバがおいてある現地でやってください。
もし失敗などして、ログインできなくなると怖いですので。。。

# vi /etc/ssh/sshd_config
Protocol 2  ← SSH2のみでの接続許可
ListenAddress 0.0.0.0
PermitRootLogin no  ← rootでのログインを禁止
StrictModes yes
SSHへのログインを許可する前に、sshdがユーザのホームディレクトリや、.sshディレクトリをチェックします
StrictModesをyesに設定した状態で、ホームディレクトリのGroup・Otherにwrite属性がついていると、ログインを拒否します
参考サイト:oji屋
RSAAuthentication yes  ← RSA認証を許可
PasswordAuthentication no  ← パスワードなしでもログイン禁止
#Limit User
AllowUsers hogehoge ← ログインできるユーザを指定

sshの再起動して終了です。

# /etc/rc.d/init.d/sshd restart

鍵ファイルを使ってログインを試してください。

ぼくは、TeraTerm派です。
UTF-8対応TeraTerm Proを使ってリストに登録して自動でログインできるようにしています。
これが結構便利です。

Oct
06
symfonyのプロジェクト作成
Oct 6, 2008 0

symfonyの設定

$ mkdir localhost  ← ディレクトリの作成
$ cd localhost/

プレロジェクトを作成していきます。

$ symfony init-project project_name  ← プロジェクトの作成
>> dir+      /home/hogehoge/localhost/config
>> file+     /home/hogehoge/localhost/config/schema.yml
>> file+     /home/hogehoge/localhost/config/databases.yml
>> file+     /home/hogehoge/localhost/config/rsync_exclude.txt
>> file+     /home/hogehoge/localhost/config/properties.ini
>> file+     /home/hogehoge/localhost/c…/ProjectConfiguration.class.php
>> file+     /home/hogehoge/localhost/config/propel.ini
>> dir+      /home/hogehoge/localhost/doc
>> dir+      /home/hogehoge/localhost/log
>> dir+      /home/hogehoge/localhost/web
>> file+     /home/hogehoge/localhost/web/robots.txt
>> dir+      /home/hogehoge/localhost/web/js
>> file+     /home/hogehoge/localhost/web/.htaccess
>> dir+      /home/hogehoge/localhost/web/uploads
>> dir+      /home/hogehoge/localhost/web/uploads/assets
・
・

$ symfony init-app myproject  ← アプリの指定の作成

Apacheの設定

# vi /etc/httpd/conf/httpd.conf  ← Apacheの設定

  ServerName localhost
  DocumentRoot “/home/hogehoge/localhost/web”
  DirectoryIndex index.php
  Alias /sf “/usr/share/pear/data/symfony/web/sf”

#permit rewrite
  
   AllowOverride All
  

  
   allow from all
  

Apacheの再起動で、設定した画面にアクセスして下記の画面がでると設定完了
symfony完了

Oct
04
Meadow(emacs)の背景を透過させる
Oct 4, 2008 0

.emacsに下記の内容を追加

;;;背景関係を設定2008/10/04 追記
(if window-system (progn
   (set-background-color "Black")    ←背景
   (set-foreground-color "LightGray") ←前景
   (set-cursor-color "Gray")              ←カーソルの色
   (set-frame-parameter nil 'alpha 90)←透過具合
))

大変参考にさせてもらったサイト
suztomoの日記
ありがとうございました。

ちなみに、キャプチャーを取ったけど透過が具合がキャプチャーでは取れなかった。。。。
残念

,

Advertisings

Search Keyword

Calendar

2008年 October
« Sep   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Status

フィードメーター - Cloud  Nine あわせて読みたいブログパーツ