Thursday, March 28, 2019

1and1 email address issue

I had this problem with my 1and1 email address. I can't receive any email from outside. I called the customer service in 1and1 and they help me setup into my digitalocean. The problem was that I had tied up my dns records already in digitalocean and all incoming email will intercept from digitalocean, something like that. I think, hehe.

But thanks its already solved. Eureka!


digitalocean

Hostname: @





TODO:
need to call digitalocean to add SPF







Java spring framework and dependency

I just had my refresher course for Java spring framework and it's really nice to be back again with Java. I find it that it's really improved from last used in Java way back in 2014. IDE is getting more better especially when using Eclipse.

I am using Spring tool suite now and it's really nice. One thing when working or coding into IDE I really like to use vim editor style. But now, I find this nice tool called vrapper http://vrapper.sourceforge.net/home/. You just install into the eclipse marketplace and that's it, boom, you have your vim style in your editor. sweet!

Another tool I just recently discovered is to have your clean code automatically formatted. I found this site http://www.eclipseonetips.com/2009/12/13/automatically-format-and-cleanup-code-every-time-you-save/ , it gives you guide how to set up in eclipse. woohh sweet again!



Spring devtools maven
dependency on automatic restarting the application

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


copy and paste in pom.xml




Tuesday, March 26, 2019

I'm back in Java after 5 years

I enrolled a free course at https://courses.edx.org with the title "Fundamentals of Java EE Development". It's really great I hope it will help me refresh my memory in Java.

first I followed the guide to install the necessary tools for this course.
https://prod-edxapp.edx-cdn.org/assets/courseware/v1/f9292ed1b6d208828257761a04df54e9/asset-v1:RedHat+JB083x+3T2018+type@asset+block/JB083x_SG_Updated.pdf


Tuesday, March 19, 2019

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:297


docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:297: copying bootstrap data to pipe caused \"write init-p: broken pipe\"": unknown.


workaround:
use vagrant bento version instead of official ubuntu !!!


How to setup Jenkins and Docker

So I want to learn CI/CD and I want to try this in my work. The setup would be docker, jenkins and odoo as the application.

These are the steps:

1. Pull official jenkins image.
docker pull jenkins

2. Create empty folder
/var/jenkins_home

2. Run the docker, will add the volume to map our local from the container.
docker run -u root --rm -p 8080:8080 -p 50000:50000 -v /var/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean







reference:
https://hub.docker.com/r/jenkinsci/blueocean/

free online comma separating tool

https://delim.co/#