The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,861 other subscribers

Archive for December, 2017

coinmon: In case you don’t want to install 61 packages [1] :)

Posted by jpluimers on 2017/12/04

via: [WayBack] Hacker News – coinmon: In case you don’t want to install 61 packages [1] :) and [WayBack] The curl + jq based approach to check Bitcoin prices looks a bit more attractive than using a node.js package with 61 dependencies, doesn’t it? Source:… – ThisIsWhyICode – Google+

Function to call curl from bash:

    $ coinmon() {
    >     curl "https://api.coinmarketcap.com/v1/ticker/?convert=$1" | jq ".[0] .price_$1"
    > }

    $ coinmon eur
    "6988.4723188"

Or in Python (from the same HackerNew thread): [Archive.is] https://www.pastery.net/jnscrh/

#!/usr/bin/env python3

from urllib.request import urlopen
from decimal import Decimal
import json

def print_coin(coin):
    print("{} ticker:".format(coin["name"]))
    print("Price: {:,} EUR".format(Decimal(coin["price_eur"])))
    print("Market cap: {:,} EUR".format(Decimal(coin["market_cap_eur"])))
    print()


r = urlopen("https://api.coinmarketcap.com/v1/ticker/?convert=eur")
coins = json.loads(r.read().decode("utf8"))

for coin in coins:
    if coin["id"] in ("bitcoin", "ethereum", "ripple", "monero"):
        print_coin(coin)

–jeroe

Posted in Development, JavaScript/ECMAScript, Node.js, Software Development | Leave a Comment »

On the Docker-Kubernetes announcement: if Kubernetes does so much, do you still use Docker?

Posted by jpluimers on 2017/12/03

Must read: [WayBack] Some Thoughts on the Docker-Kubernetes Announcement – Scott’s Weblog – The weblog of an IT pro specializing in cloud computing, virtualization, and networking, all with an open source view

Via a thread with great comments: [WayBack] Two weeks ago, Scott Lowe mused about the Docker-Kubernetes announcement. https://blog.scottlowe.org/2017/10/17/some-thoughts-on-docker-kubernetes-anno… – Kristian Köhntopp – Google+

–jeroen

Posted in Cloud, Containers, Docker, Infrastructure, Kubernetes (k8n) | Leave a Comment »

XS4ALL has stopped providing ftp in the middle of 2017: now you can use sftp or sftp.

Posted by jpluimers on 2017/12/03

As of 20170711, the servername ftp.xs4all.nl does not support the ftp protocol any more; xs4all clients can only use the server sftp.xs4all.nl on port 22.

I missed that because I hardly use ftp except for the few rare occasions where I was in an environment without ftp.

So recently I found out: good move!

Since I still need this every now and then (but far less often than 10 years ago), I have set up a very small ftp server at home with limited storage and very limited users that I can turn on/off when needed.

Much better solution.

–jeroen

Source: [WayBackXS4ALL gaat stoppen met ondersteuning van ftp – Security.NL

Posted in Communications Development, Development, FTP, Internet protocol suite, Power User, TCP | Leave a Comment »

Duplicate File Finder for files & folders on the Mac App Store

Posted by jpluimers on 2017/12/01

Free and – unlike the also free [WayBackdupeGuru – finds duplicate files – hasn’t crashed on my system yet or fails to add folders:

Read reviews, compare customer ratings, see screenshots, and learn more about Duplicate File Finder for files & folders. Download Duplicate File Finder for files & folders for Mac OS X 10.9 or later and enjoy it on your Mac.

[WayBackDuplicate File Finder for files & folders on the Mac App Store

–jeroen

Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User | Leave a Comment »

Restoring files from OS X Time Machine with Terminal.app

Posted by jpluimers on 2017/12/01

cd /Volumes/Backup/Backups.backupdb/Joshua\ Priddle’s\ MacBook\ Pro/Latest/Macintosh\ HD/Users/priddle

tmutil restore -v secret_docs.txt ~/

Learned from [WayBackRestoring files from OS X Time Machine with Terminal.app:

  • do not use cp as it will give you wrong permissions
  • do use tmutil

More elaborate steps (including finding the backup in the first place) is at [WayBackCommandline restoration of a file in Time Machine on OS X | Hacks for Macs

–jeroen

Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »

Re: [opensuse-factory] openssl dependency problems with snapshot 2017112

Posted by jpluimers on 2017/12/01

I had zypper being confused about the dist-upgrade between these snapshots:

< CPE_NAME="cpe:/o:opensuse:tumbleweed:20171125"
---
> CPE_NAME="cpe:/o:opensuse:tumbleweed:20171129"

It ran into this:

Problem: libopenssl-1_0_0-devel-1.0.2m-1.1.x86_64 conflicts with libopenssl-devel > 1.0.2m provided by libopenssl-devel-1.1.0g-1.1.noarch

Based on [WayBackRe: [opensuse-factory] openssl dependency problems with snapshot 2017112 after discussing with DimStar, I choose to have zypper dist-upgrade to perform

deinstallation of libopenssl-1_0_0-devel-1.0.2m-1.1.x86_64

Now all is fine.

Thanks Dominique a.k.a. DimStar!

–jeroen

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed | Leave a Comment »

25-11-2017 Birmingham (GB) Tattoo 2017 | Flickr

Posted by jpluimers on 2017/12/01

This was a really cool event to participate in.

–jeroen

https://www.flickr.com/photos/adestmusica/sets/72157666840122309/with/37799391455/

Posted in About, Adest Musica, Personal | Leave a Comment »