Posts

MEAN stack programming with heroku

Image
Node programming referring to https://www.heroku.com/home . Partial modification of package.json If you check the url created at heroku create, the web is created! Next, try this one  using mongo-db. Using mlab, it is necessary to have a credit card registration on heroku. So refering this https://www.webprofessional.jp/building-facebook-chat-bot-node-heroku/ (in the middle of "How to set the database from mLab's site" or https://www.youtube.com/watch?v=cBfcbb07Tqk ), I linked Heroku to mlab.com. Process.env.mongodb_uri appears in server.js, but this mongodb_uri seems to be already defined as an environment variable of heroku, so I registered this uri created by mlab to heroku.com.  Drop the above sample application https://github.com/chrisckchang/mean-contactlist-angular2 (https://devcenter.heroku.com/articles/mean-apps-restful-api ) locally with git clone. Remove the app.json because the above app assumes the mlab add-on. (App.json seems to be necessary when using herok

Economy as an weapon

Recently I read " 武器としの経済学 " by kenichi ohmae and some articles are intersting. 1. About japanese national pension status (1) 60 % of japanese people pay national pension, that means 40% people didn't pay. He said that this pension plan has already been over.( yukio noguchi also say same thing) Ratio of age over 65 year was 23% at year 2010, 26.6% at year 2015, and will be 38.4% at year 2065, that means 2 of 5 people are over 65 years old at year 2065 so 1.3 people support one person over 65 years old. Current pension plan was made when population was growing year by year and now this premise is broken so this pension plan is over. (2) He propose 2 plan. One is to promote accepting emigration. for example, about 30% of population of California are emigration. On the other hand, ratio of foreiner in japan is only 2%. But this plan might be difficult to introduce in current japan. Second plan is to change the national pension plan. He pointed out reaganomics. President Rea

Kyoto walking -maru-take-ebisu

Image
Our son learns "song of kyoto street name", so we planed to go to Kyoto and walked along this street.(The song is like this ) This song is included in "Kyo-en sodefure" which our son danced with at his junior school's athletic meet, so we learn this song. First place is "maru" which is maruta-machi, so we got off at jingu-marutamachi station at keihan. At first, we bought lunchbox at supermarket and ate them alongside of kamo-river. Then started walking to west. When we met shirakawa street, then we changed direction to south to walk along shinmachi street. (below is shinmachi street) This song songs street names which are running east-west direction and shinmachi street go north-south direction, so there are small intersection and we took photo at each intersection. First is "maru" which means marutamachi street and second is "take" which indicates takeyamachi street. Below is takeyamachi-shinmachi interse

Simpleness and mindfulness

Mindfullness is popular word recently, but for me, living with simplicity might be same as mindfullness. There are so many things around us and these are physical ones and non-physical ones (information). There are so many information using internet, SNS, so on. There are many worrying things happening at work which are mixture of not so important but in a hurry things and important things, and our brain are always under stress circumstance. And mindfullness is of course usefull method to maintain our state of mind. But for me, having little things, clearing up my surroundings, clearing up our garden with broom, listening NHK radio(very simple one), opening windows and feeling cold air, hearing birds whistling through the windows. It's enough for me. It's like old japanese style rooted of buddism and very close to my childfood life style.Recently I notice a goodness of such things. And throughout these things, my mind and brain suddenly clears up. It's true for me.

Camp at makino

Image
Last week, we went to  makino camping site . At first, we planed to go makino sunny beach camping site  the day before a week but typhoon had come and we couldn't go, so this time, we chose this site. This is our first time to do camping at there where we did skiing many times. We planned to arrive there around lunch time but wife's father got injured and she had to take him to a hospital so we left our home about 4:30 p.m. and arrived there about 7:30 p.m. At first, I prepared for barbecue then pitch a tent. Next day, I waked up at 4:30 a.m. and weather was fine ! At this camping site, there are some area and most popular area is kougen free site where we stayed. We can stay there anyplace inside this area and there were many camper. It costs 4500yen ($40) per a tento and enjoy there until 12:00 a.m. There are hot-spring and we took bath after closing our tento (we couldn't take a bath last night due to be late) After taking bath, we walked around there.

Finally building Yeoman !

I tried to build web pages using MEAN stacks on AWS but it took about months to finish. But finally, I succeeded in doing it today. This was a long way. At first, I tried to do it by using mean.io, mean.js but there were many erros. Sometimes reference error happend and I thought that these might be due to nvm because libraries were installed to diffrent directories if we use nvm so I uninstall nvm and use N. But still not work like   No gulpfile found So I quit using mean.io, mean.js (At this time, I didn't understand mechanism of like gulp) Then I happend to find Yeoman at this page  and this instruction are good to understand for me so I tried it. Yeoman consists of 3 parts 1. Bower 2. Yo 3. Grunt *Reference page . then access AWS url plus :9000 and find Yeoman page !

Less information are important to boost our concentration

As I read today's nikkei evening newspaper, it featured mindfullness.(We recently see this topics in many media) And this article said that one method to boost one's concentration is to shut down various informations from our eyes and ears. That's is what I often thought. There are so many informations around us and we can touch many informations from ubiquitas it mobile. Especially SNS are such media. These are designed to stimulate one's curiosity. And recently I strongly think that these things consume our time so getting away of these things is very important skill for us, I think.