Es werden Posts vom 2015 angezeigt.

using old ps2 eyetoy camera on raspberrypi

sudo apt-get install fswebcam
fswebcam -r 640x480 --no-banner -S 22 photoTaken.jpg

quality is *really* bad, but working..

raspberry pi: steckdosenleiste via usb schalten (meine alte gembird)

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libusb-dev 
wget -O sispmctl.tar.gz
tar xvzf sispmctl-3.1.tar.gz 
cd sispmctl-3.1 
sudo make install 


$ sispmctl -g 3

gradle: use oracle thin client jdbc in database plugin..

buildscript {
    repositories {
    ...     flatDir { dirs 'lib' }  // put in jdbc driver here       }
 dependencies {                 .... classpath files('lib/ojdbc7.jar')  }

gradle proxy settings for work (http and https)

# my gradle proxy file C:\Users\mXX\.gradle\gradle.propertiessystemProp.http.proxyHost=

Abfrage AD Gruppen / User mit AdFind.exe

>AdFind.exe-default -f name="ADONIS_APP-Leser" member -list

CN=ADONIS_Nutzer,OU=Migrierte Gruppen,OU=Gruppen,OU=E***,DC=e****,DC=local

online coding with a cloud ide: koding

git is already installed (as is java 7)get docker with $ kpm docker - install java8$ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer *very* smooth experience so far, want to recommend it after day one!

docker basics ongoing..

sudo docker images

sudo docker ps -a

sudo docker run -i -t osrf/ubuntu_32bit:utopic /bin/bash

sudo ./gradlew buildDocker

      .. using the plugin

sudo docker push  (user)/(app):(version)

sudo docker run (id)

remember: gradle compile error no such property "toolVersiol"

No such property: toolVersion for class: org.gradle.api.sonar.runner.SonarRunnerExtension_Decorated

in my case: used version of gradle to old, use gradle 2.3 (here: gradlew wrapper, not gradle script).

remember: manage datadog agent on openshift

[]\> $OPENSHIFT_DATADOG_DIR/bin/control restart
[]\> $OPENSHIFT_DATADOG_DIR/bin/control info
[]\> $OPENSHIFT_DATADOG_DIR/bin/control status

datadog agent:


powershell: sending e-mail with attachments (using a pipe)

$PSEmailServer = "mailsrv"

Get-ChildItem("c:\temp") |
ForEach {$_.fullname} |
Send-MailMessage -to "" -from "" -subject "hi" -encoding ([System.Text.Encoding]::UTF8)

$PSEMailServer needs to contain the smtp ServerForEach ... $_.fullname is required if files are not in current path

windows powershell: execute select against an oracle instance. (System.Data.OracleClient)

in no way a powershell guy, but

powershell script:

[Reflection.Assembly]::LoadWithPartialName("System.Data.OracleClient") > null

 $connection=New-Object DATA.OracleClient.OracleConnection(
    "Data Source=eoxi;User Id=eoxrep;Password=***"

 $reader = (new-Object DATA.OracleClient.OracleCommand(
    "select * from eox.eox_log_ereignis_a where rownum < 10",

 while( $Reader.Read()) {
    $id   = $reader["log_id"]
    $time = $reader["log_log_area"]
    write-output "$id $time"

executes as:

oracle select

GAC    Version        Location
---    -------        --------
True   v2.0.50727     C:\Windows\assembly\GAC_32\System.Data.OracleClient
174063524 ww Data Import: ISIN nicht gefunden: LU0097188931
174063532 ww Data Import: ISIN nicht gefunden: DE000A0MQR19
174063533 ww Data Import: ISIN nicht gefunden: LU0418839287
174063534 ww Data Import: ISIN nicht …

change git tracked files to executable on windows machines (here: gradle wrapper runner)

git update-index --chmod=+x gradlew

in my case: the ci server runs a linux environent, my currently used dev machine is windows

generate static swagger documentation or client stubs with codgen and gradle (with JavaExec)

Swagger ist a possible language independent solution to describe your REST based services. I use it currently together with spring-boot to provide my mobile json api.

To generate docs and client stubs with gradle I resort to:
task genSwagger(type: JavaExec) {
description "generate swagger doc or clients via codgen package and gradle"
    // needing buildscript dependency  classpath "com.wordnik:swagger-codegen:2.1.2-M1"
classpath = buildscript.configurations.classpath
args  = ["-i", "http://localhost:8080/........-rest-api", "-o", "${buildDir}/docs/rest-api", "-l", "android"]
main      = "com.wordnik.swagger.codegen.Codegen"
} run with "gradlew genSwagger"
As of today to my knowledge no stable gradle plugin exists for codegen (maven only), so starting it's Main class from gradle is my solution for now.

see also:…

updated current tool list (windows)

thunderbirdopen officecalibre
picasaraw therapeegimp
lightworksvlcdvd flickavidemux
AudacityMuseScorestreamWriterfoobar2000itunesmp3tagExact Audio Copy
STSAndroid StudioArduinoSource Treegitgradle
Areca BackupownCloudFreeFileSyncdropbox
notepad++Process Hacker 2ConEmuExplorer++TrueCryptKeePasscdburnerXPgreenshot

logging ... tools to remember

send windows logs and search logs logback syslog appenderlogback loggly appenderkiwi syslog server / winsyslog

2015-02-19 20:17:11 INFO input file C:\**\nxlog\data\nxlog.log was truncated, restarting from beginning2015-02-19 20:17:11 INFO nxlog-ce-2.8.1248 started2015-02-19 20:17:11 INFO connecting to