Friday, August 9, 2013

magic apostrophes in linux = Back Quotes for Command Substitution

They are replaced by the output of the command between them:

kill -9 `echo 9999`

is equivalent to:

killing app, listening on a defined port in single line

In Linux this will kill the process, listening on port 8888:

ps aux | grep port=8888 | awk '{print $2}' | tail -n 1 | xargs kill -9

Tuesday, July 23, 2013

Appending HTML file as e-mail in Jenkins/Hudson

You need "Jenkins Email Extension Plugin", which could be installed from Jenkins/Hudson available plugins. Restart is needed.
You need to fill "Project Recipient List, "Pre-send Script" and correct triggers.

"Pre-send Script" have to be something like this:

def reportPath = build.getWorkspace().child("test.html")
msg.setContent(reportPath.readToString(), "text/html");

Thursday, June 27, 2013

Propagating java system properties to maven project code - issue solved

Issue description: I have got Hudson/Jenkins project. It is build via maven. Maven "Goals and options" is set to
test -DxxxApiConfigFile=config-xxxApi-client-jenkins

Starting console command "mvn test -DxxxApiConfigFile=config-xxxApi-client-jenkins" behaves correctly - the system property is set. But running

Solution: Maven field "Goals and options" has to be set to:
-DargLine="-DxxxApiConfigFile=config-xxxApi-client-jenkins" clean test

or even better:
-DxxxApiConfigFile=config-xxxApi-client-jenkins -DargLine="-DxxxApiConfigFile=config-xxxApi-client-jenkins" test


Sourcehttp://www.cowtowncoder.com/blog/archives/2010/04/entry_385.html

Monday, June 24, 2013

Redmine wiki - how-to


Here is a list of tags used in RedMine Wiki.

Source for most of this: http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting

<notextile>**</notextile> - do not process the string inside

h1. Heading

h2. Subheading

h3. Subheading

---- Horizontal rule

Monday, June 3, 2013

Качване на нови карти на китайски GPS със софтуер iGO / Windows Mobile

Oт главното меню превърташ иконите надясно и избираш USB Option
Трябва да е активирано Mass Storage. Ако не е го правиш и даваш опция Запиши която е горе вдясно.
Това са ти картите:
Четеш инструкциите и следваш каквото пише там.
Файлове:
  • iGO_R3_2012.07_8.3TM_EEU_-_TM.2012.Q3_Maps_Update_-_iPLAY#filelistContainer
  • iGO_R3_Europa_TomTom_2012_Q2.rar

Monday, May 13, 2013

Java application as a daemon - initd start/stop template file

Your Java application is a daemon and you want to stop it more gracefully than "killall java".

The example below is what you need: