Kohei Nozaki's blog 

Progress of reading #packt5dollar


Posted on Monday Jan 19, 2015 at 08:48PM in Technology


I bought iPad Air 2 for reading eBooks that bought at #packt5dollar sale. it gave me better experience for eBooks reading than my MacBook Pro Retina 15". I prefer epub than PDF because epub can adjust font size freely and I like continuous scroll mode in iBooks. PDF is well-layouted but some of PDF has wider margin at around the content and fonts are too small still.

I finished these books:

  • WildFly Configuration, Deployment, and Administration - Second Edition

    Description about deployment mechanism was good for me because I did’t know how to deploy applications as exploded. the book has many description for large scale use case such as domain, clustering and load-balancing but that doesn’t make sense for me much because I used WildFly in standalone. also sections of detailed configuration are good, especially a section about web container Undertow. I would look back this book as a reference sometimes later.

  • Responsive Web Design with HTML5 and CSS3

    I’m terrible at client side web technology but the book doesn’t demand much background knowledge so I think I understand most. my knowledge level is something like that I can barely create typical multi-column website which fixed width and non responsive with struggling. I learned such things: how responsive design and fluid layout are important, and basic of HTML5/CSS3 (including media queries) and how to apply polyfill to these latest specs for older web browsers such as IE 6/7/8. at first, I would make my blog to responsive for practice.


Multiple deployment use mode is implemented to jberetweb


Posted on Thursday Jan 15, 2015 at 09:06PM in jberetweb


Now jberetweb can operate (start, stop, etc) distributed batches in multiple deployment. to enable multiple deployment use mode, suppress -DjobOperator.jndi and specify -DjobOperator.name=${facade-class-name} (e.g. JobOperatorFacade) in mvn option when you build it.

In multiple deployment use mode, "App Name" column will be added for grasp where is deployment of each job comprehensively. actions such as restart, stop will be executed through lookup of appropriate remote EJB interface in according to "App Name".

8eb794ca c389 4590 bc0a 643507e66c3a

Also in Start Job window, "App Name" can be specified. this will lookup appropriate remote interface accordingly too.

905367a9 1944 4025 bf2c 0623571313b0


Review of Apache Roller 4.0 Beginner's Guide


Posted on Wednesday Jan 14, 2015 at 11:53PM in Technology


The book seems little obsolete because it was published on 2009 and intended to use with version 4.0. but most part of the book makes sense to me because major features of Roller are unchanged till current version 5.1.1.

A instruction about weblog itself is interested and fun to read. the book has many step-by-step instruction about its function and it's very easy to read. especially, instruction of creating a new template from scratch was good for me. some contents are obsoleted surely but I can recommend this book for beginners of Roller.

But maybe you should read the official documents first than buy this book. official document can be obtained from here as PDF or ODT.

NOTE: an additional Section 9, which is not included the book and the book claims that it can be downloaded via packtpub.com but the URL returns 404 now. the support desk send me PDF after I sent an email to ask how can I get section 9. they said the link got updated after renewal of their web site. it needs to add /sites/default/ as prefix of the path now.


Roller Asciidoctorj Plugin


Posted on Tuesday Jan 13, 2015 at 09:54PM in Technology


I don’t know about Asciidoc very well yet but it works fine anyway so I pushed it to GitHub, and this is the first post with that plugin. I’ve never tried it on except WildFly yet, but it would work with Tomcat or any other application servers. report on various application server or any feedback are welcome.

Distribution, installation instruction and more can be found at: https://github.com/lbtc-xxx/roller-asciidoctorj-plugin

Information about Asciidoctorj can be found at: http://asciidoctor.org/docs/asciidoctorj/


Installing CentOS 6.5 into VMware Fusion 6.0.2


Posted on Monday Jan 12, 2015 at 11:45PM in Technology


What are the good points of virtual machines?

I'm working to move my personal financial system which is running on a physical machine to virtual machine because its simplicity of maintenance and portability. currently I'm running the system on tower form PC, but it makes annoying noise, and it consumes power much, so I'm going to make the system virtual, and move it to my old MacBook or something.

Backup of virtual machines are so easy because it exists as regular files in the physical machine, and it can be automated easily thanks to OS X's TimeMachine and VMware Fusion's snapshot. and I can easily move its machine running on in case I need to do it. when I want to do some heavy calculation, I can easily copy the whole of the virtual machine to another high-performance environment anytime while running it on low power-consuming machine regularly.

Installation 

VMware Fusion 6.0.2 supplies "easy installation" function for CentOS 6.5 (not for 7.0). which answers annoying questions instead of me during installation process. all I need to answer were username and password to use. then, VMware will getting almost all of my work done contains installation of VMware Tools. several minutes after, you'll see GUI login prompt. for my purpose GUI is unnecessary but I don't want to do these annoying work by myself so I just followed this way.

I made some changes before installation begins such as following:

  • Increase HDD size to 384GB (There's no need to reserve that actual size in the host machine. actual size increases with actual use in the virtual machine. Increasing of size is impossible when snapshots available, but it's possible after deleting all of snapshots)
  • Increase CPU number to 2
  • Increate amount of memory to 2GB
  • Set network interface to physical (I want to login via ssh from my LAN)
  • Enable VNC daemon

Partitioning that VMware did automatically:

[kyle@localhost ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       374G  2.6G  353G   1% /
tmpfs           935M  228K  935M   1% /dev/shm
/dev/sda1       291M   39M  238M  14% /boot

After installation TODOs:

  • Software update (System -> Administration -> Software Update)
  • Add user to sudoers
    su -
    visudo
    then insert following:
    kyle    ALL=(ALL)       NOPASSWD: ALL
  • Change timezone to sync the clock
    sudo cp -p  /usr/share/zoneinfo/Japan /etc/localtime
  • Put your ssh public key to ~/.ssh/authorized_keys (make sure to set the permission of .ssh directory to 700, authorized_keys file to 600. if permission wasn't set correctly, password prompt will be appeared)
I would write more about following procedure such as installation of middleware or database.