Posts

Es werden Posts vom 2015 angezeigt.

using old ps2 eyetoy camera on raspberrypi

Bild
sudo apt-get install fswebcam
fswebcam -r 640x480 --no-banner -S 22 photoTaken.jpg
https://www.raspberrypi.org/documentation/usage/webcams/

quality is *really* bad, but working..


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

Install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libusb-dev 
wget -O sispmctl.tar.gz http://skylink.dl.sourceforge.net/project/sismctl/sispmctl/sispmctl-3.1/sispmctl-3.1.tar.gz
tar xvzf sispmctl-3.1.tar.gz 
cd sispmctl-3.1 
./configure   
make 
sudo make install 

Aufruf

$ 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=193.29.130.207
systemProp.http.proxyPort=8080
systemProp.http.nonProxyHosts=*.ebXXX.local|localhost
systemProp.https.proxyHost=193.29.130.207
systemProp.https.proxyPort=8080
systemProp.https.nonProxyHosts=*.ebXXX.local|localhost

Abfrage AD Gruppen / User mit AdFind.exe

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

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


http://www.joeware.net/freetools/tools/adfind/

online coding with a cloud ide: koding

see koding.com
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 https://github.com/Transmode/gradle-docker 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

[t...rhcloud.com..]\> $OPENSHIFT_DATADOG_DIR/bin/control restart
[t...rhcloud.com..]\> $OPENSHIFT_DATADOG_DIR/bin/control info
[t...rhcloud.com..]\> $OPENSHIFT_DATADOG_DIR/bin/control status

datadog agent:
/var/lib/openshift/551d9768fcf9332cf5000039/datadog

config:
datadog.conf

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

$PSEmailServer = "mailsrv"

Get-ChildItem("c:\temp") |
ForEach {$_.fullname} |
Send-MailMessage -to "x@regele.org" -from "y@regele.org" -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=***"
    )

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

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


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:
http://swagger.io/
https://github.com/springdox/springdox
https://github.com/swa…

updated current tool list (windows)

thunderbirdopen officecalibre
firefox+firebugchrome+any.dotor
picasaraw therapeegimp
lightworksvlcdvd flickavidemux
AudacityMuseScorestreamWriterfoobar2000itunesmp3tagExact Audio Copy
STSAndroid StudioArduinoSource Treegitgradle
CyberduckWinSCP
Areca BackupownCloudFreeFileSyncdropbox
notepad++Process Hacker 2ConEmuExplorer++TrueCryptKeePasscdburnerXPgreenshot

logging ... tools to remember

send windows logs http://nxlog.org/accumulate and search logs http://loggly.com 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 logs-01.loggly.com:514