Author Archives

iPhone native App Konzeption, Entwicklung und Beratung.

Render iOS App Icons from one SVG Image

#!/bin/sh # # Copyright (c) 2015-2016 Marcus Rohrmoser All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) […]

Email Sicherheit III – neue Zertifikate (und Keys)

inzwischen bin ich auf StartCom® umgesattelt – anfangs mit Schlüssel von StartCom® (ja, ich weiß, macht man nicht), inzwischen mit eigenem Schlüssel. Und das geht so: $ cd ~/.ssh $ keyname="" $ year=2016   # $ openssl req -new -newkey rsa:4096 -nodes -keyout "${keyname}.key" -out "${keyname}.${year}.csr"   # funnel through # download & unpack ${keyname}.zip […]

lighttpd +

via Three cases, a ’normal‘ www domain: a ’normal‘ subdomain where the naked domain is part of shared webspace: a proxy subdomain for a rails application (redmine):

Bedienungsanleitung Telephon „Telekom Actron B“

Bedienungsanleitung Telekom Actron B 90° gedreht von Quelle:

MKTileOverlay with gdal2tiles or other TMS tiles

from iOS 7.0 onward there’s the neat MKTileOverlay::initWithURLTemplate: for tiled overlay maps. Sadly it can’t display old-school Tile Map Service maps as e.g. produced by gdal2tiles.py1) because the y-values are flipped upside down. The OSM Wiki says about this fact: „This is really just an unfortunate historical misalignment.“ But with the drop-in MKTileOverlay replacement below, you can […]

App ShaarliOS im Store

brandneu für einen Euro im App Store ist meine ‚Share Extension‘ für iOS 8+ und Shaarli. Und – das ist ein Experiment – gleichzeitig als GPLv3 Free Software bei github. Bin gespannt.

Autolayout: change constraint multiplier

the NSLayoutConstraint multiplier property is read-only. But if you need to change it, you can replace the constraint with a modified clone like @implementation NSLayoutConstraint(ChangeMultiplier) // visal form center -(NSLayoutConstraint *)constraintWithMultiplier:(CGFloat)multiplier { return [NSLayoutConstraint constraintWithItem:self.firstItem attribute:self.firstAttribute relatedBy:self.relation toItem:self.secondItem attribute:self.secondAttribute multiplier:multiplier constant:self.constant]; } @end@implementation NSLayoutConstraint(ChangeMultiplier) // visal form center -(NSLayoutConstraint *)constraintWithMultiplier:(CGFloat)multiplier { return [NSLayoutConstraint […]

hardening ssh (debian wheezy)

LogJam requires some action. (Article in german) Update (open-)ssh to a recent version (6.6)   $ echo "deb wheezy-backports main" | sudo tee -a /etc/apt/sources.list $ sudo apt-get -u update $ sudo apt-get install -t wheezy-backports ssh $ sudo apt-get autoremove$ echo "deb wheezy-backports main" | sudo tee -a /etc/apt/sources.list $ sudo apt-get -u update […]

redmine & chruby (fetch emails)

  #!/bin/bash # chruby needs bash # # # redmine email import with chruby. # # # Put this script into <redmine_dir>/script and a set crontab like # $ sudo -u www-data crontab -l # */15 * * * * <redmine_dir>/script/ # cd "$(dirname "$0")/.."   log="log/$(basename "$0" .sh).log" cat >> "$log" <<EOF   $(date […]

USER_AGENT Blocking – sowas gibt’s wirklich!

schon kindisch, oder? $ curl –head HTTP/1.1 403 Forbidden Server: AkamaiGHost Mime-Version: 1.0 Content-Type: text/html Content-Length: 290 Expires: Mon, 27 Apr 2015 21:01:07 GMT Date: Mon, 27 Apr 2015 21:01:07 GMT Connection: keep-alive Vary: User-Agent   $ curl -A Mozilla –head HTTP/1.1 200 OK Server: Apache res-obj: www Content-Type: text/html; charset=UTF-8 Date: Mon, […]