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

Installing Docker on OS X Homebrew

Everybody is talking docker, bsd jail, container virtualization and that it is easy, great and all…
I got infected, too.
But since docker is a linux thing there’re a few steps required to get it going on OS X. And because i really like homebrew to manage software on my apple boxes and will show you the super easy peasy way to use docker
This will summarize the steps required to get docker up and running.

Prepare Homebrew (If it is not already installed head over to Using Homebrew to install software with OS X

[mupfel@volkers-imac]$~ > brew update
Already up-to-date.
[mupfel@volkers-imac]$~ > brew search docker
boot2docker docker

Install docker

[mupfel@volkers-imac]$~ > brew install boot2docker
==> Installing boot2docker dependency: docker
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/docker-1.1.2.mavericks.bottle.tar.gz
######################################################################## 100,0%
==> Pouring docker-1.1.2.mavericks.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary

/usr/local/Cellar/docker/1.1.2: 9 files, 9,8M
==> Installing boot2docker
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/boot2docker-1.1.2.mavericks.bottle.tar.gz
######################################################################## 100,0%
==> Pouring boot2docker-1.1.2.mavericks.bottle.tar.gz
/usr/local/Cellar/boot2docker/1.1.2: 2 files, 7,0M
[mupfel@volkers-imac]$~ >

Voila – just took a few seconds

Verify install was ok

[mupfel@volkers-imac]$~ > boot2docker version
Client version: v1.1.2
Git commit: a229ac1
[mupfel@volkers-imac]$~ >

Cool, lets use it!

Currently there seems to be an issue with docker + virtualbox.
i updated virtualbox to the latest version and will be back as soon as the problem(s) are solved.

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

Showing Icons for all Chrome Apps (Extensions)

Today i faced the problem that i wanted to start Postman (a REST Client Utility). But there was no Icon.

Tools > Extensions shows a list of installed extensions and lets you dis-/enable or remove Extensions. No way to start an extension like postman.

To get a list of of icons for all installed extensions simply call this URL

chrome://apps/

Screen Shot 2014-05-14 at 17.31.03

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

Naming of AngularJS directives

I think the naming schema for directives in angularjs is a bit weird:

// this is how you would define your directive
.directive('uploadTabs', ['$parse', function ($parse) {
  return {
   ...
  };
}])

goes along with

<!-- this is how you would use your directive--> 
<div ng-controller="UploadCtrl">
 <div upload-tabs tabs-base-id="content-tab"></div>
 </div>

The spelling is differently! Some dev. even suggest not to use camel-case at all.
Personally i wouldn’t be that strict – you just have to know this pitfall 🙂

Posted in AngularJS, IT, Web Development | Tagged , , , , | Leave a comment

jboss-cli: deploying and undeploying with wildfly8

There’re several ways to deploy to wildfly. One way is to use jboss-cli:

deploy:

[volker@Volkers-MacBook-Pro]$~/dev/ideaProjects/awesome > jboss-cli.sh –connect –command=”deploy target/awesome.war”

undeploy:

[volker@Volkers-MacBook-Pro]$~/dev/ideaProjects/awesome > jboss-cli.sh –connect –command=”undeploy awesome.war”

 

Posted in CLI, wildfly8 | Tagged , , , | Leave a comment