2018/04/20

有感于AWS

市场最下层存在着最本质,最难以解决的特征。
有了好的方案,怎么迅速从最下层发展到最上层,值得研究

2018/04/03

2018/03/28

spring的想法

能不能用spring的想法来服务现实世界呢!?让控制反转来减轻客户的负担!能实现的话真是太棒了!

一般的买东西==去买,自己行动
定期便==cron,定时的执行,没有什么新意

仔细分析一下:
需要的时候就被提供。怎么知道需要呢?用到了,用的时候直接取,已经准备好了,提供了。。。

比如说厕所手纸,
基本上可以实现,使用的频率,家族构成,日程,分析一下,判断什么时候需要买手纸了。
手纸的话,价格,品牌可以事先设定。。。
数据分析,AI?!!
世界还在发展中。。。

对,准备一个特定的容器,刚开始是满的,没有了的话,自动补充。。。。!

这个容器是象征性的还是实物呢?
实物的话,就变成仓库了。
象征性的话,得想办法反应现实世界。。
自动并且准确的反应现实世界,然后行动

2018/03/27

TypeConverterDelegate.doConvertTextValue

目的是想解决gcs的resource数组对应问题。

editer.setAsText()
这个地方很重要啊,好像是做一些转换
不同类型的resource被不同的类处理?
Resource[]被安排到了ResourceArrayPropertyEditor了
这里面没有对应的protocolReslover是问题点。
对比单个gcs resource 的流程可以洞晓

在GoogleStorage Protocol Resolver
里添加相应的处理就可以了?!

Google_application_credentials

好像是gcloud或者机器登录帐号,或者安装gcp sdk的时候,这个变量被设置了。
gcloud auth login
设置了之后,eclipse还是用另外一个账号。。
为什么呢?以前解决了,又忘记了。。。
写在笔记本上也找不着了。

细细地查了一下

gcloud auth application-default login

试了一下,可以了。。。

在我可以理解的范围之内,我只能理解成故弄玄虚。。

2017/05/17

自転車タイヤのサイズ表記の見方

 700 × 25 C

700 → タイヤの外径を、ミリメートルで示しています。
25 → タイヤの幅(太さ)を、ミリメートルで示しています。
C → リム(鉄部分?)の大きさ
を表す記号です

2017/05/07

exec-maven-plugin java angular

pomファイルに下記を追加:
<build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <configuration>
                    <mainClass>com.example.DemoApplication</mainClass>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <configuration>
                    <workingDirectory>${project.basedir}/src/main/angular</workingDirectory>
                    <executable>ng.cmd</executable>
                    <arguments>
                        <argument>build</argument>
                        <argument>--watch</argument>
                        <argument>--output-path=${project.basedir}/src/main/resources/static</argument>
                    </arguments>
                </configuration>
            </plugin>
        </plugins>
    </build>


IDEのdebug configurationのmaven goadsに
exec:exec
を記載してangular buildを実行する
exec:javaでspringを実行する

 うまくいきました!!
次はangularのhot swapping ね!!

2017/05/06

spring-boot:run does not stop the tomcat

eclipseでmvn spring-boot:run を停止して、tomcatがまだ生きる

the port has been usedになる。

↓
The best way to "fix" that is to not do it. Why would you need to run a maven goal from eclipse when you can just right click in the main class and Run As->Java Application?

boot dashboardも回避できる。
=> boot dashboardの仕組みは?単純に実行したことを思えたかな?
   あとで調べる

spring-boot hot swapping にする

・pomフィアルに下記を追記する

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>
    </dependencies>
  
・IDEの自動ビルドを有効にする


他に、devtoolsはcacheを無効にしている。
properties.put("spring.thymeleaf.cache", "false");
properties.put("spring.freemarker.cache", "false");
properties.put("spring.groovy.template.cache", "false");
properties.put("spring.mustache.cache", "false");
properties.put("server.session.persistent", "true");
properties.put("spring.h2.console.enabled", "true");
properties.put("spring.resources.cache-period", "0");
properties.put("spring.resources.chain.cache", "false");
properties.put("spring.template.provider.cache", "false");
properties.put("spring.mvc.log-resolved-exception", "true");
properties.put("server.jsp-servlet.init-parameters.development", "true");

また、
By default, any entry on the classpath that points to a folder will be monitored for changes. Note that certain resources such as static assets and view templates do not need to restart the application.

HERE:

 https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html#using-boot-devtools-restart-exclude

2017/04/19

持ち家のコスト

【諸費用参考例】


・物件(新築マンション):専有面積…75m2


・物件価格:3000万円(消費税込み、うち建物評価額2000万円)

・固定資産税評価額:建物…1300万円、土地…600万円


・住宅ローン(民間融資):借入金額2400万円(元利均等、30年)






取得




項目 金額(万円)

1 土地 1000  
2 建物 2000  
3 消費税     役所
4 売買契約 印紙税 1.5  
5 土地所有権移転登記 登録免許税 6  
6 建物所有権保存登記 登録免許税 1.9  
7 不動産取得税 3  
  水道負担金    
8 司法書士に登記依頼の場合、司法書士報酬 10   司法書士
9 住宅ローン契約 印紙税 2   銀行
10 融資手数料 5  
11 融資保証料 47  
12 団体信用生命保険料 6.7 ローンの年数*6.7
13 引越し代     引越し業者
14 家具など    
15 仲介手数料     不動産業者


83.1

維持



1 火災保険料 5 一年分
2 地震保険料 5 一年分
3 日割り固定資産税 6