Git using https instead of ssh

The other day i found out our firewall blocks outgoing traffic except port 80 and 443.
(HTTP & HTTPS)
Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Docker, Wildfly, your application and the dev life cycle

Hi, using docker it is very easy to have your web application available for testing in a non mocked environment. Continue reading

Posted in JEE7, Unix, wildfly8 | Tagged , , , | Leave a comment

Startrek

Some information and facts about my favorite SciFi Series
Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

timestamps with adb logcat

For me adb is a great tool to interact with your device.
Here’s how to overcome the default lack of timestamps
Continue reading

Posted in adb, adb logcat, logging, timestamp | Tagged , , , , | Leave a comment

Ubuntu, VirtualBox, OS X and Keyboards

Today i wanted to use scm manager. This appliance is available as a virtual machine image. I chose the variant for VirtualBox.
Continue reading

Posted in Java, OS X, Uncategorized | Tagged , , , , , , | Leave a comment

JEE7, Maven, Testing and Wildfly 8.x

Today i want to start a new maven based project. The result should run on wildfly and should employ arquillian for integration testing.

I first read about arquillian back in february. i learned it was very tedious to get wildfly 8 and arquillian play nicely together. Thanks to my friends sorin and octavian for sorting out the difficulties (version number hell comes to my mind) .

i stumbled upon an article by arun gupta telling about a maven archetype to create a project together with arquillian configuration for wildfly and glassfish:


mvn --batch-mode archetype:generate -DarchetypeGroupId=org.javaee-samples \
-DarchetypeArtifactId=javaee7-arquillian-archetype -DgroupId=<YOUR GROUPID> \
-DartifactId=<YOUR ARTIFACT_ID>

(please omit backslashes)

The result is a configuration supporting wildfly 8 and glassfish 4 – both remote and managed.
Pom.xml contained (at least in my case) a commented profile for wildfly embedded – simply remove it.

In my case i removed glassfish stuff, too.

Both remaining profiles (wildfly-remote-arquillian and wildfly-managed-arquillian) worked out of the box.

I tested with wildfly 8.0.0.Final and 8.1.0.Final. The latter after changing a property value in pom.xml:

<version.wildfly>8.0.0.Final</version.wildfly>
to
<version.wildfly>8.1.0.Final</version.wildfly>

 
Thanks to @aslakknutsen for making use of arquillian that easy and to Arun for blogging about it.

Posted in Java, JEE7, maven | Tagged , , , , | Leave a comment

Updating jboss wildfly to the latest version

Updating wildfly installed by homebrew is as easy as it could be:
1. update brew packages
2. upgrade wildfly

A bit more verbose:

  • Check which version of wildfly-as is installed. You should see something similar to the following lines:

    [mupfel@volkers-imac]$~ > brew list wildfly-as
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/appclient/ (2 files)
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/bin/ (29 files)
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/docs/ (231 files)
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/domain/ (10 files)
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/modules/ (741 files)
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/standalone/ (10 files)
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/welcome-content/ (10 files)
    /usr/local/Cellar/wildfly-as/8.0.0.Final/libexec/ (4 files)
    [mupfel@volkers-imac]$~ >

  • update homebrew package list:

    [mupfel@volkers-imac]$~ > brew update
    Checking out files: 100% (245/245), done.
    Updated Homebrew from c2ae6780 to 301d14b9.
    ==> New Formulae
    bash-git-prompt homebrew/versions/libdvdcss12 ndpi stuntman
    git-latexdiff jbake ntopng terraform
    gnu-cobol lua51 omega
    ==> Updated Formulae
    ack fleetctl jpeg-turbo mksh ruby-build
    adobe-air-sdk fontforge juju mkvtoolnix s3-backer
    afflib fswatch juju-quickstart mogenerator sbt
    afuse fuse-zip kakasi mongodb selecta
    android-ndk fuse4x knot monotone selenium-server-standalone
    apache-spark gearman kyoto-tycoon mp3fs shadowsocks-libev
    apt-cacher-ng ghc leiningen mpd smlnj
    arangodb git-tf
    ...
    [mupfel@volkers-imac]$~ >

  • verify an updated version is available

    [mupfel@volkers-imac]$~ > brew info wildfly-as
    wildfly-as: stable 8.1.0.Final
    http://wildfly.org/
    /usr/local/Cellar/wildfly-as/8.0.0.Final (1204 files, 172M) *
    Built from source
    From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/wildfly-as.rb
    ==> Caveats
    The home of WildFly Application Server 8 is:
    /usr/local/opt/wildfly-as/libexec
    You may want to add the following to your .bash_profile:
    export JBOSS_HOME=/usr/local/opt/wildfly-as/libexec
    export PATH=${PATH}:${JBOSS_HOME}/bin
    [mupfel@volkers-imac]$~ >

  • Upgrade wildfly-as:

    [mupfel@volkers-imac]$~ > brew upgrade wildfly-as
    ==> Upgrading 1 outdated package, with result:
    wildfly-as 8.1.0.Final
    ==> Upgrading wildfly-as
    ==> Downloading http://download.jboss.org/wildfly/8.1.0.Final/wildfly-8.1.0.Final.tar.gz
    ######################################################################## 100,0%
    ==> Caveats
    The home of WildFly Application Server 8 is:
    /usr/local/opt/wildfly-as/libexec
    You may want to add the following to your .bash_profile:
    export JBOSS_HOME=/usr/local/opt/wildfly-as/libexec
    export PATH=${PATH}:${JBOSS_HOME}/bin
    ==> Summary
    🍺 /usr/local/Cellar/wildfly-as/8.1.0.Final: 1038 files, 131M, built in 95 seconds
    [mupfel@volkers-imac]$~ >

  • Verify upgrade was ok:

    [mupfel@volkers-imac]$~ > brew list wildfly-as
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/appclient/ (2 files)
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/bin/ (29 files)
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/docs/ (231 files)
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/domain/ (10 files)
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/modules/ (741 files)
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/standalone/ (10 files)
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/welcome-content/ (10 files)
    /usr/local/Cellar/wildfly-as/8.1.0.Final/libexec/ (4 files)
    [mupfel@volkers-imac]$~ >

Posted in CLI, IT, OS X, wildfly8 | Tagged , , , | Leave a comment

Terminating multiple processes at once with OS X

I really like the activity monitor that goes with os x. But sometime it sucks. For example when you want to kill a group of processes. You can mark multiple entries in the process list but you can not end those.

In my case i had trillions of google chrome helper tasks: (maybe because i keep too many tabs open?! naa, has to be caused be some weired 3rd party plugins 😉

tasklist

The solution is – as it often is – using the command line: “killall”

[mupfel@volkers-imac]$~ > man killall
[mupfel@volkers-imac]$~ > killall -s "Google Chrome Helper"
kill -TERM 37526
kill -TERM 37431
kill -TERM 37133
...
kill -TERM 56046
kill -TERM 631
[mupfel@volkers-imac]$~ > killall -s "Google Chrome Helper"|wc -l
83
[mupfel@volkers-imac]$~ >

The latter command simulates (“-s”) what would be done by “killall”. Using “wc -l” we want to count how many process would be killed. 83 is way to high a number for doing it manually.

Lets see the effect of “killall” without simulation: All google chrome tasks are dead now. And the process list shows only the main chrome process.

Of course you have to be carefull which bunch of processes you terminate. Especially because killall support specifying a regex pattern to match the process to kill  – as always:

with great power comes great responsibilit 🙂

Posted in CLI, Linux, OS X | Tagged , , , , | Leave a comment

Online code editors

This is not intended to be a complete of online editors – just the ones i use from time to time.
A more complete list of editors can be found here: http://alternativeto.net/software/liveweave/

http://meteorpad.com – really awesome stuff
http://limeweave
http://codepen.io
http://jsfiddle.net
http://plnkr.co

Posted in Uncategorized | Leave a comment