Sunday, April 28, 2019

Dockerizing nginx using jwilder/dockerize

Today, most technology stacks are really well suited to be dockerized (e.g. spring boot, cypress.io, .NET core to name a few).

However, still some lack good support for the usual 12x factor app guidelines like

One such example is nginx. It is configured using conf.d-dropins, by default starts in background and does not log to stdout. 

But using Jason Wilder's dockerize tool written in golang it's been a quick breeze to make nginx into a docker-friendly reverse proxy dynamically configured to proxy to this very blog.

Jason's example became a bit dated since nginx is still moving fast. So i updated it for nginx 1.16. You can find the code at mkoertgen/hello.dockerize. Enjoy!

Wednesday, April 17, 2019

Fixing the #Teams Addin Installation in #Outlook

TL;DR gist: Microsoft Teams Outlook AddIn Hacks

In projects inclined to the Microsoft ecosystem, Teams is probably the best collaboration option, especially if your team members are dislocated.

Probably because using different Office 365 accounts i had a hard time getting the Teams-Addin to work with Outlook. This is a know problem as you can find numerous articles on the web from people asking for help about this issue. Microsoft is working to enhance the Teams / Outlook experience.

One especially helpful article was https://realtimeuc.com/2017/08/missing-teams-outlook-add-in/ by Michael LaMontagne (@RealTimeUC). Michael was the only one trying to dig deeper into the nitty-gritty details of COM-registration between Outlook and the Teams .NET application, deployed using Squirrel.Windows (as most Electron-based desktop-apps on Windows, e.g. Slack etc.).

He finally got the Teams-AddIn working by duplicating registry keys from a working machine.

However, after reviewing the Teams & Teams Meeting AddIn startup behavior, it's even simpler.

On installation, the Microsoft Teams application always COM-registers the Team-Addin for Outlook. However, if not enabled for your Outlook/Office365 subscription, it deletes a few registry keys on startup, so Outlook simply won't load it on startup.

So here is how to hack the Teams Meeting Button into Outlook:

1. Start Teams (deletes registry keys!)
2. Add registry keys (see below)
3. Start Outlook

Unfortunately, you will have repeat this everytime you restart Teams.

Hopefully this helps someone going down the same road!

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Resiliency\DoNotDisableAddinList]
"TeamsAddin.Connect"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Resiliency\DoNotDisableAddinList]
"TeamsAddin.Connect"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\TeamsAddin.Connect]
"Description"="Microsoft Teams Meeting Add-in for Microsoft Office"
"FriendlyName"="Microsoft Teams Meeting Add-in for Microsoft Office"
"LoadBehavior"=dword:00000003

Friday, April 8, 2016

What have these in common






Labor Unions are obsolete:
Reinventing Orgnaizations: Amber+Orange Organizations (process driven)

--> All of them speak of how hierarchical organizations try to manage codependent environments, i.e. by introducing another process bridging the silos.

And all of them make clear that this cannot work.


Monday, July 6, 2015

Get involved in Stack Exchange

StackExchange has become one of the most popular Q&A platforms. Having started with StackOverflow there are now many sites to explore and participate in.
In summer 2010, a staging area called Area 51 was launched where you can suggest new sites. Once there is enough appreciation by the community a beta is launched. A few examples currently in beta i especially like are e.g. Open Source, Buddhism and CodeReview.

Sunday, May 3, 2015

Practicing Oracle12c migration made simple

My professional experience with Oracle is that there is no "5 minute introduction tutorial". That means you need to be serious about getting started with Oracle (or just try out a new feature) because things won't get smooth until you pass the entry barrier of installing and configuring Oracle.
Sadly, this experience results in
  1. Developers that are used to more lightweight persistence layers just...don't get started with Oracle ("Meh, let´s try MongoDb or Elasticsearch instead")
  2. Database Administrators that would benefit from keeping up with the latest features...just skip it because it's too cumbersome to get an isolated playground Oracle DB up and running
What can we do to lower this entry barrier? Vagrant to the rescue! Over the past weeks i contributed to the GitHub repository wkoertgen/train.oracle12.migration whichs aims to alleviate most of the nastyness of setting up Oracle. It is also a great resource on installation and configuration.

hello.nVLC: A minimal WPF Media Player


A few days ago, i put hello.nVLC on GitHub. This is a minimal WPF media player application comparing an MVVM media player implementation for Windows Media Player and VLC using

  • nVLC, a great managed wrapper for VLC by Roman Ginzburg, 
  • VLC.Native, a NuGet package containing the native VLC dependencies and
  • FontAwesome.Sharp, our WPF wrapper for using awesome icons.



Wednesday, April 29, 2015

Vagrant: Optimizing virtual Ubuntu/Debian boxes

A while ago, we used hilverd/vagrant-ubuntu-oracle-xe to alleviate the testing bottleneck, i.e. too many developers on too few dedicated testing environments. Since then, i am a big Vagrant fan as this really boosted up our testing feedback cycle time.

However, even oracle-xe is anything but a lightweight installation, so minimizing your base box is a good thing to do.

There are quite a few resources on how to optimize virtual boxes for vagrant. I picked up some of these and documented what worked well in this gist mkoertgen/vagrant_export_vbox_vm_basebox.md. Enjoy!

Sunday, April 26, 2015

Squirrel.Windows - Starterkit

You probably know Slack, the team communication tool. If not, go see. It's awesome. The Slack windows app is one of the most prominent users of Squirrell for installation & update. Squirrel itself is an ingeniously simple library for installing and updating desktop windows applications. It uses NuGet packaging to build app releases and supports delta compression for updates. You don't need a NuGet feed to host your releases, just a static web server. If you want to try out Squirrel, you may have a look at the starter sample mkoertgen/hello.squirrel i comitted today. It's a minimal WPF application with an update button.



As extra candy i automated "releasifying" updates with msbuild, i.e. you can build updates by typing

    build.bat HelloSquirrel\HelloSquirrel.csproj /t:Deploy /p:DropLocation=c:\temp\Releases

Enjoy!

Thursday, April 23, 2015

Faceted Search using Elasticsearch and WPF

Today i uploaded a quick sample on how to build faceted navigation for Elasticsearch in WPF which includes highlighting of search results. Below is a screenshot of the sample app. Enjoy!



Sunday, April 19, 2015

Work tip: Disable Chrome history

If you are using Google Chrome at work you should probably disable storing history to avoid your intranet urls being synced out into the Google cloud. Here is how: How to Prevent Google Chrome From Storing Browser History. Chrome basically stores history and other data in a local SQLite database. The tip is a little bit of a hack: You first empty the database (clear history) and then prevent Chrome to modify it (by making it read-only).

Tuesday, February 17, 2015

When to use git-flow and GitHub Flow

Some people ask how good git-flow matches with the practice of continuous integration. In 2011, Scott Chacon from GitHub Inc. wrote a post on exactly that: GitHub Flow.

For the last few weeks we switched from git-flow to GitHub Flow - on GitHub as well as on our gitblit-Server (needs gitblit tickets, v1.4+).

Working both with GitHub Flow vs. git-flow taught us a lot. Well, the direct ticket integration alone is a big win compared to manually keeping commits and tickets consistent, i.e. basically pasting a lot of links in each of them. Apart of that, without surprise we came to the same conclusions as Scott Chacon, i.e.:
  • For continuous deployment projects, github flow is way more effective because you can have dozens of commits each day going directly into production. The many branch transitions required in git-flow quickly become a bottleneck and lose their worth as quality gates. The similar holds for small projects or simple software components where git-flow is just too big a framework.

  • For products with greater release cycles (weeks or months) git-flow makes sense. Example scenarios are concurring milestones (hotfix from production vs. feature for next version) or just bigger quality gates, i.e. a commit should not or can not be directly deployed to production.

Friday, January 30, 2015

Microsoft "Trill" (Predictive Analytics)

From the dotnetpro-Newsticker on 29.01.2015: Trill – eine Billion Events pro Tag:

"Microsoft Research entwickelt mit Trill eine .NET-Bibliothek, die es in sich hat: Sie verarbeitet große Datenmengen zwei- bis viermal schneller als gewöhnliche Streaming Engines..."

The paper: Trill: A High-Performance Incremental Query Processor for
Diverse Analytics


Wednesday, January 21, 2015

Fazit dev.talk - Docker

Yesterday, i gave an introductory talk about Docker. The bottom line: Unmittelbare Vorteile liegen weniger darin, eigene Produkte per Docker zu integrieren/installieren. Der unmittelbare Vorteil von Docker liegt oft eher darin, dass damit andere Lösungen viel leichter zugänglich sind.

Für Dependencies in Form von Bibliotheken haben ist das ja mit Dependency Managern wie Maven und NuGet schon gelöst. Das Einbinden von Fremd-Code ist damit keine Hürde mehr.
Die Integration und der Betrieb von externen Komponenten der Produkten (z.B. ElasticSearch, RabbitMQ, MongoDb, PostgreSQL, etc.) wird oft jedoch noch manuell durchgeführt, genauso wie früher das Einbinden anderer Bibliotheken.

Dass man das bisher manuell tut, macht sich auch zunächst im Einzelfall nicht wirklich bemerkbar. Beispiel ElasticSearch, nur Entwicklung: herunterladen, starten, fertig. Ist doch kein Aufwand. Wozu also Docker?

Vergrößert sich die Anzahl der Komponenten sieht das schon anders aus. Beispiel: RabbitMQ (river) + ElasticSearch + ...
Jede Komponente wird ein wenig anders bezogen, installiert und betrieben.

Berücksichtigt man jetzt nicht nur die Entwicklungsphase, sondern auch Integration/QS und Produktion wird schnell klar, dass der Aufwand über-linear, vielleicht sogar quadratisch von der Anzahl der verschalteten Komponenten/Produkte abhängt. Von der Zahl der verschiedenen Zielumgebungen ganz zu schweigen.

Das ist genau die wesentliche Aussage und Motivation der Matrix from hell. Durch die Vereinheitlichung mittels Container kann jede Komponente automatisiert bezogen, installiert, betrieben und deinstalliert werden. Und das immer gleich, egal ob Entwicklungsrechner, Integrationsanlage, Produktion oder vor Ort beim Kunden.

Damit reduziert Docker den o.a. Aufwand nahezu wieder auf O(1), zumindest was die teure menschliche Arbeit betrifft. In dieser Hinsicht bietet Docker also einen Mehrwert in Form einer Infrastruktur zum Betrieb von Komponenten/Produkten, vergleichbar mit der Infrastruktur durch Paketmanager zur Handhabung von Fremdbibliotheken.

Thursday, January 8, 2015

Wednesday, December 17, 2014

Technische Dokumentation in einem agilen Umfeld (Erfahrungsbericht)

In ihrem Blogpost Technische Dokumentation in einem agilen Umfeld hat Melanie Diop die Erfahrungen ihres ersten Jahres als Technische Redakteurin bei Qudosoft zusammengefasst.

Sie stellt zunächst fest, dass die Abgrenzung von Redaktion und Entwicklung in einem agilen nicht funktioniert. Ihre Schlussfolgerungen, Ideen und Ansätze sind eigenen Erfahungen nicht unähnlich, vgl.

Friday, December 12, 2014

Code Review Tools: Gerrit/Hub, Crucible, UpSource, ...

In einer Mittagspause letzte Woche haben Thomas und ich mal kurz den Code Review-Service GerritHub angeschaut. Gerrit selbst war ja hier im Blog auch schon einmal Thema. Bisher haben wir allerdings die Mühen für eine Testinstallation gescheut. Gerrit war da nicht soweit wie andere Projekte (download & start) sondern benötigte etwas mehr Arbeit.

Der erste Eindruck von GerritHub war jedenfalls noch nicht so doll. Gerrit selbst ist cool. Was gibt es sonst noch?

Thursday, December 11, 2014

Mocking in Java: JMockit, Mockito, ...

In .NET i cannot imagine working without mocking frameworks like NSubstitute. But
every once in a while i do some Java. This autumn vacation i had a look at some mocking frameworks for Java. Starting with Stack Overflow: Comparison between Mockito vs JMockit - why is Mockito voted better than JMockit? i did some quick tests with JMockit. First impression: JMockit has all what you need and getting started is really easy.

After asking around i got responses that the arrange-syntax might be a little lighter in Mockito.

What mocking frameworks do you use?

References:

Atlas by HashiCorp: Vagrant, Packer & Co.

Mitchell Hashimoto, founder of HashiCorp (think: Vagrant), announced the commercial cloud solution Atlas that bundles HashiCorp's Open-Source-Tools: Vagrant, Packer, Serf, Consul and Terraform.

I had just a quick look at packer.io which looks very promising. Anyway, i love the name and the logo of terraform.