- 最近在提交前端代码后,前端代码的自动发布老是失败。失败的原因多是编译Docker镜像时在执行
COPY
语句拷贝文件到镜像文件系统时,扔出了'No space left on device'这个错误。这个错误根据描述非常好理解,就是docker文件系统所在磁盘没有了空间。
Read More Recently I wrote a Linux like initd script to start/stop my web application.
The script works well when running it in shell of linux. The web application will run in background by daemon.
However I found both daemon and web application(java) exited immediately if I started the script in Jenkins as a shell step of build …
Read MoreAfter uninstalling some applications from my Mac OSX, I found the applications that depends on JRE totally does not work. I noticed below symptoms,
- Eclipse Mars can not be launched, even though I specified the launching vm to another one(`java -version` still work). The SWT native library failed to resolve the …
Read MoreJenkins supports ssh authentication in CLI.
Below is a command to verify that I am authenticated:
1 2java -jar jenkins-cli.jar -s http://myserver/jenkins who-am-i 3 4 Authenticated as: myuser 5 Authorities: 6 authenticated
However you still would meet permission error when running groovy script in CLI.
1 …
Read MoreThe index has a field named 'create_time' that is the timestamp of document created time. The query string can boost the latest created document like below,
{!boost b=recip(ms(NOW,create_time),3.16e-11,0.08,0.05)}name:keyword
There is another field named 'important' that indicates whether the document is important or …
Read MoreIt's a common and ugly problem when using non-ascii characters in Django.
The general solution is below,
- put # -- coding: utf-8 -- at beginning of every python source files that are using utf-8 characters
- declare every string variable as unicode, such as str_var = u'中文字符'
- add a __unicode__ method in your model classes …
Read MoreI installed both Zend CE and zend debugger of Eclipse on my Mac. Both of them work well in Mac lion. However they don't work any more after I upgraded my Mac to mountain lion.
After some investigation I found some extensions of Zend PHP can't be loaded due to shared library dependency can't be found in mountain lion. …
Read MoreI had two monitors for my workstation. One is 22' and the another is 17'. I used the small one as a extend desktop.
Today I get a another 23' monitor to replace the small one. However the resolution of the 23' monitor can't be changed after pluging it in. It always used the resolution matching the 17' one.
Both …
Read MoreI want to create a test server for my application. Using embedding Http server in equinox is my first option.
I had experience using simple http service implementation of equinox, however I want to play with Jetty this time.
Following the guide of Equinox server, I can't running a Jetty server with my servlet in …
Read MoreSometimes I need access the Intranet of company, however I don't like to create VPN connection. The connection is slow, waste time to create the connection and have to change password due to security policy.
My workstation is Linux, which has a lot of utility tools to help me access Intranet at home without VPN. …
Read More