Skip to main content

Posts

Showing posts from 2017

How to install Java on your Mac 

Here I explain about how to install Java on your . You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please use the link below to go to further reading if necessary. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files I. How to install Java 1. Download JDK Install most up-to-date JDK from Oracle site . Click downloaded dmg file and follow the guidance. Please follow the step explain this site if you have problem following the instruction. 2. Set up JAVA_HOME 2.1. Open Terminal and enter the following command. vim ~/.bash_profile 2.2. Enter  i  to change to insert mode. 2.3. Add JAVA_HOME as follow. export JAVA_HOME=/Library/Java/JavaVirtualMachines/{your JDK folder}/Contents/Home 2.4. Press esc button and enter  :wq  to save and quit the .bash_profile . 2.5. Enter the command below to update bash source .bash_p...

How to install Tomcat on Mac 

Here I explain how to install Tomcat on your . You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please use the link below to go to further reading if necessary. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files II. How to install Tomcat 1. Download Tomcat Download tar.gz file from Apache Tomcat site and extract the file. 2. Make Tomcat folder Make /usr/local folder and move Tomcat folder to this folder. sudo mkdir -p /usr/local sudo mv ~/Downloads/apache-tomcat-9.0.0.M15 /usr/local 3. Create a symbolic link sudo rm -f /Library/Tomcat sudo ln -s /usr/local/apache-tomcat-9.0.0.M15 /Library/Tomcat 4. Change privilege sudo chown -R /Library/Tomcat 5. Make all shell file executable sudo chmod +x /Library/Tomcat/bin/*.sh 6. Command to start and stop Tomcat /Library/Tomcat/bin/startup.sh /Library/Tomcat/bin/shutdown.sh You will see t...

How to deploy PHP/JavaBridge on your Mac 

Here I explain how to deploy PHP/JavaBridge on your . You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please use the link below to go to further reading if necessary. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files IV. Deploy PHP/JavaBridge 1. Download JavaBridge Download JavaBridge.war from PHP/JavaBridge site . 2. Deploy war file Move the war file to /usr/local/{your tomcat version folder}/webapps/ After few seconds, JavaBridge folder will be created. 3. Change PHP configration 3.1. Go to PHP folder Open Finder and go to directory showed on the test page. 3.2. Edit php.ini file php.ini file and add following line. allow_url_include = On 4. Restart Tomcat If you have not set up Tomcat on your local machine, here is II. How to install Tomcat . /Library/Tomcat/bin/startup.sh /Library/Tomcat/bin/shutdown.sh 5. Check JavaBridge G...

How to install PHP and CGI on your Mac 

Here I explain how to install PHP and CGI on your . You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please use the link below to go to further reading if necessary. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files III. How to install PHP and CGI 1. Check PHP and CGI are installed 1.1. Check PHP version Open Terminal and enter following command. php -v You can also find out where is php.ini by entering these following command. which php whereis php 1.2. Check CGI version php-cgi If you see your result as below, you have already installed PHP and CGI. If not, follow next step. 2. Install XCode In order to use Port , you need to install XCode first. Open AppStore and install XCode . Make sure you run XCode after the installation. 3. Install Port Here I show How to install Port . If you have Brew , go head and use it instead of P...

How to deploy your PHP and Java file in PHP/JavaBridge

Here I explain how to deploy your PHP and Java file in your PHP/JavaBridge folder. You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please use the link below to go to further reading if necessary. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files V. Deploy your PHP and Java file In this chapter, I will not talk detail about how to create and run Java . If you are curious about how to create PHP that executes Java , check PHP/JavaBridge site. 1. Create Java Hello World 1.1. Open eclipse and create Java Project . 1.2. Create HelloWorld.java file under the project. import javax.swing.JOptionPane; public class HelloWorld {     public static final String JAVABRIDGE_PORT="8080";     static final php.java.bridge.JavaBridgeRunner runner = php.java.bridge.JavaBridgeRunner.getInstance(JAVABRIDGE_PORT);     public stat...

How to install PHP/JavaBridge on Mac 

Looking for how to execute Java from PHP or vice versa? By using PHP/JavaBridge , it is possible! Here I write the instraction of how to set up PHP/JavaBridge on your Mac . You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please read following links. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files If you have any suggestion and question, especially technically and grammatically, please feel free to leave your comment. Thank you for your visit😊

私の個人主義

私は現在アメリカに住んでるのですが、どうもアメリカの個人主義というのに慣れない。 うまく立ち回れずに落ち込んだりする。 ということがあり、常にどうすればいいか考えていました。 そんな時にこちらのサイトを見つけたのです。 夏目漱石は「自分がない」空虚な状態からどう脱したのか?――「自己本位」の発見 このサイトの内容もその通りだと思いましたし、福沢諭吉の「私の個人主義」を読んでみようと思いました。 そこで、本の感想を書きます。 福沢諭吉が学生に向かって講演をした内容になります。 ページ数が少ないので一気に読めます。 ”今までは全く他人本位で、根のない萍(うきぐさ)のように、そこいらをでたらめに漂っていたから、駄目であったという事にようやく気がついたのです。 私のここに他人本位というのは、自分の酒を人に飲んでもらって、後からその品評を聴いて、それを理が非でもそうだとして今ういわゆる人真似を指すのです。 〜(中略)〜 ましてその頃は西洋人のいう事だと云えば何でもかんでも盲従して威張ったものです。 だからむやみに片仮名を並べて人に吹聴して得意がった男が比々皆是なりと云いたいくらいごろごろしていました。 〜(中略)〜 つまり鵜呑みといってもよし、また機械的の知識といってもよし、とうていわが所有とも血とも肉ともいわれない、よそよそしいものを我物顔にしゃべって歩くのです。 しかるに時代が時代だから、またみんながそれを賞めるのです。” これが1914年当時のことだと思えないぐらい、古さを感じません。 ましてや100年経った今でも同じ状態です。 上記サイトでも述べてますが、他人本位から自己本位へ覚醒したことで、 福沢諭吉本人も鬱から脱出しております。 そして正しい主体性とは何か。 ”第一に自己の個性の発展を仕遂げようと思うならば、同時に他人の個性も尊重しなければならないという事。 第二に自己の所有している権力を使用しようと思うならば、それに付随している義務というものを心得なければならないという事。 第三に自己の金力を示そうと願うなら、それに伴う責任を重んじなければならないという事” ”いやしくも倫理的に、ある程度の修養を積んだ人でなければ、個性を発展する価値もなし、 権力を使う価値もなし、また金力を使う価値もないという事...

Photoshop Short Cut Keys

Photoshop Short Cut Key list is here. Will keep adding as I find out more... ■■Short Cut Keys■■ ● Quick Mask 1. Start quick mask Q 2. Change black and white background X 3. Choose brush B Then, you can start drawing quick mask area. 4. Change cutting area Shift + command + I 5. Finish selection command + D ● Level Adjustment command + L ■■Other helpful option■■ ● Show History Window -> History