Categories
Blog IT @ Home

Update smart

Keep your software updated is may one of the most effective ways to keep your system safer. Besides the new features, software developers provide they also close security holes which make your system vulnerable as the longer they are known. Bellow some important facts for this topic.

Auto Updater, not always reliable

Some of you may come into the situation that their software is outdated although the Auto Update was activated. This can happen due to various reasons: Pop up you ignored, you didn’t use the software for a while, etc.

To double-check from time to time if my system is up to date I ran the RuckZuck tool which was programmed by an ex-coworker of mine. It is a quick and easy way to see if updates are available and install them. Also, you have the option to silent install new software without downloading it first. https://ruckzuck.tools/

If you start using it often learn here how to get rid of the shortcuts with Powershell.

Test the update if necessary

If you experienced troubles with updates in the past: files not compatible anymore, missing features, interfaces between system don’t work anymore, etc. This is what you can learn from professional IT:

  • Create a test plan and define what you have to check after the update (open files, access systems,…)
  • Use a Test environment
Categories
Blog IT @ Home IT Knowledge Software Packaging

Find your IP address

Here some code snippets to find your IP address

IP v4 address in command line or batch files

ipconfig | find "IPv4" | find /i /v "Suffix"

If you prefer it in a batch script for users

@echo off
 echo\
 ipconfig | find "IPv4" | find /i /v "Suffix"
 echo Press any key to close this window.
 pause > nul

Powershell

Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias "Wi-Fi","Ethernet 2"

Unix

hostname -I
Categories
Blog IT @ Home Raspberry Pi

Raspberry Pi Overview

Get started

In case you just started with Raspberry Pis, read the articles below first. Please note that I usually use Raspberry Pi 4 for my projects.

Categories
Blog IT @ Home Raspberry Pi

Raspberry Pi RDP-connection

The first step after setting up the Raspberry Pi 4 is to enable RDP connections as it makes life a lot easier working from your desktop as directly on the Raspi.

  1. Go to Preferences > Add/Remove Software

2. Search for xrdp and install the RDP Server and install both packages

Ready to connect

The last step before you switch to your desktop is to note the IP address of your pi. There are two ways to do that

The easy one, keep your pointer on the network symbol in the top right corner until you can see the gray box with the connection details

Alternatively, you can run the command

ifconfig

Switch to your desktop

In Windows search for rdp and start the remote desktop connection.

2. Enter the IP Address

3. Insert your pi login information

Port Forwarding

For people who want to connect to their Raspberry Pi from another network, there is the option of port forwarding. This is a setting that you have to do on your router at home and enables you to connect from anywhere via RDP. Follow the link below to see the instructions but please be aware that opening a port creates a new vulnerability for your network. As you forward the requests sent to a specific port of your router to your raspberry pi, it won’t be as protected anymore. In some cases, it may be smarter to use another tool or stick to the local network.

Categories
Blog IT @ Home

Easy Screen Capturing

I assume many of you use a professional tool for screen capturing at work and although I have to admit they are very helpful I don’t want to spend 30 USD or more for such a tool. Luckily Windows 10 has some onboard tools and with a little setting, you may get all you need for at home.

  1. Search in Windows 10 for Print Screen and choose the option bellow

2. Turn on the Print Screen shortcut

Here we go

By activating this feature your Print Screen key will launch the Screen Snipping Tool of Win10.

Categories
Blog Data Science

Bye-bye trading page part 3

Die Schuldenberge der westlichen Staaten scheinen enorm zu sein. Das Wort „Milliarde“ gehört mittlerweile zum Standardvokabular der Medien, sobald es um Sparpakete oder Konjunkturhilfen geht. Dieser Artikel versucht, wieder ein Gefühl für so grosse Zahlen herzustellen.

Staatsverschuldung der USA

Für viele Länder ist es wichtig, die Staatsverschuldung der USA zu beobachten. Die immer noch grösste Volkswirtschaft der Welt hat einen sehr starken Einfluss auf den internationalen Handel. Ihre derzeitigen Staatschulden betragen mittlerweile 16 Billionen US Dollar.

Quellen

Spiegel. (05.09.2012). US-Staatsschulden steigen auf 16 Billionen Dollar, Staatsverschuldung, Staat & Soziales, Wirtschaft, Nachrichten, Spiegel Online. Internetseite (konsultiert am 13.09.2012): http://www.spiegel.de/wirtschaft/soziales/staatsverschuldung-in-den-usa-steigt-auf-mehr-als-16-billionen-dollar-a-853953.html

Wikipedia. (25.08.2012). Internationaler Vergleich, Bruttonationaleinkommen.
Internetseite (konsultiert am 20.09.2012): http://de.wikipedia.org/wiki/Bruttonationaleinkommen

Pennyturm

Würde man alle Schulden in Form von Pennys aufeinander stapeln, hätte dieser Stapel eine Höhe von 2.48 Milliarden Kilometer. Das entspricht der 11-fachen Distanz der Erde zum Mars. 

Herleitung

Quellen

Wikipedia. (19.09.2012). Thickness, Cemt (Penny), Penny (United States coin).
Internetseite (konsultiert am 19.09.2012):
http://en.wikipedia.org/wiki/Penny_%28United_States_coin%29

Space.com. (29.02.2012). What Is the Distance Between Earth and Mars?.
Internetseite (konsultiert am 19.09.2012):
http://www.space.com/14729-spacekids-distance-earth-mars.html

Schuldenwachstum

Dieser Turm aus Pennys wächst ständig und zwar exponentiell! Diese Wachstumsgeschwindigkeit hat dadurch ideale Voraussetzungen um ein paar Rekorde zu brechen.

Zinssatz einer US Staatsanleihe für 30 Jahre

Für die Wachstumsgeschwindigkeit nehmen wir die Zinsen einer US Staatsanleihe für 30 Jahre. Am 13. September 2012 betrug dieser Zins 2.94% pro Jahr.

(Diesen Wert exponentiell und nicht linear zu berechnen, ist nur dann richtig, wenn die Zinsen wieder durch neue Staatsanleihen finanziert werden. Diese Finanzierungsart war aber in den letzten Jahrzenten der Regelfall.)

Mit diesem Zins würde der Stapel aus Pennys im ersten Jahr um 72.9 Millionen Kilometer wachsen. Das ist mehr als die 189-fache Distanz der Erde zum Mond. Oder anders gesagt, dass wäre eine Wachstumsgeschwindigkeit von 2312 Meter pro Sekunde bzw. die 6.7-fache Schallgeschwindigkeit. Diese Wachstumsgeschwindigkeit erhöht sich aber ständig und nach 407 Jahren wäre sie schneller als das Licht. Wenn sich aber ein Gegenstand mit dieser Geschwindigkeit bewegen würde, wären nach gewissen physikalischen Theorien Zeitreisen möglich. Vielleicht ist das die geplante Lösung des Schuldenproblems 🙂

Herleitung

Quellen

finanzen.net. (13.09.2012). 30j-US-Staatsanleihen, Zinsen, Börse.
Internetseite (konsultiert am 13.09.2012):
http://www.finanzen.net/zinsen/

Wikipedia. (30.05.2012). Lunar Distance.
Internetseite (konsultiert am 20.09.2012):
http://de.wikipedia.org/wiki/Lunar_Distance

Wikipedia. (16.08.2012). Zeitreisen, Überlichtgeschwindigkeit.
Internetseite (konsultiert am 20.09.2012): 
http://de.wikipedia.org/wiki/%C3%9Cberlichtgeschwindigkeit#Zeitreisen

Categories
Blog Data Science

Bye-bye trading page part 2

I still think the math part of the page was quite entertaining.

Zins und Zinseszins

Viele Leute unterschätzen die Kraft des Zinseszins, die Josef Geschichte dient dazu dies auf eine simple Weise zu vermitteln.
In diesem Artikel geht es darum diese zu analysieren und Rückschlüsse daraus zu ziehen.


Die Geschichte
Dirk Müller erzählt die Geschichte am besten.
(ca. ab 1:10)
www.youtube.com/watch

Formeln
Zur berechnung brauchen wir 2 Formeln
Zinseszins: K0 * (1 + i) ^ n = Kn
Zins: K0 + n * (K0 * i) = Kn

K0: Startkapital
i : Zinssatz
n : Jahre
kn: Kapital nach n Jahren

Berechnung

K0 = 0.01
i  = 0.05
n  = 2000

Zinseszins:
Kn = 0.01 * (1 + 0.05) ^ 2000 = 2.4 * 10 ^ 40 $

Zins:
Kn = 0.01 + 2000 * (0.01 * 0.05) = 1.01 $

Umrechnung in visuelle Grösse

Goldpreis = 51’556 $/Kg (5 Aug 2012)
Gewicht Erde = 5,974 · 10 ^ 24 kg

Erden aus purem Gold = (Kn / (Goldpreis* Gewicht Erde)) = 77’634’311’516


Erkenntnis
-Die Dimension stimmt etwa, die Mr. DAX anspricht.
-In 2000 Verzinsungsschritten ist so eine grosse Differenz erreicht…

Weitere Analysen
(folgen 5 Aug 2012)

Quelle
(5 Aug. 2012)
Goldpreis
zkb.is-teledata.ch/html/finanzprodukte/edelmetallkurse/kunden/index.html

Gewicht Erde
de.wikipedia.org/wiki/Erde

Categories
Blog Data Science

Bye-bye trading page part 1

A friend and I used to run a page about trading based on analyses with the programming language R back in 2012. Before I take that page offline, I want to repost a few articles here.

Trading Data in R

Analysen mit R
Die Rechenleistung der heutigen Computer ermöglicht Privatpersonen zu Hause aufwändige Rechenverfahren durchzuführen. Die meisten Nutzer unterschätzen die Leistung ihres Heimcomputer und beschränken sich meistens auf das surfen im Internet oder das Verfassen von Texten. Wenn dann das Hochfahren der Maschine ein wenig dauert, wird der Rechner schnell als langsam denunziert. Erst durch das eigenhändige Programmieren versteht man, wie enorm gross der Nutzen von Computern für die Naturwissenschaften war und ist.

Um einen Computer zu programmieren, muss man mit ihm über eine Programmiersprache kommunizieren. Dabei ist die Programmiersprache R spezialisiert auf quantitative Analysen.

Die Vorteile von R:

  • es ist eine Freeware d.h. jeder kann sie kostenlos nutzen
  • eine grosse Community entwickelt sie stetig weiter
  • in der Statistik geltet R zunehmend als Standardsprache
  • für viele Systeme verfügbar (Linux etc.)
  • es unzählige Hilfe Foren gibt

Wie man sie einsetzt, wird hier ganz nach dem Motto „Learning by Doing“ vorgestellt.

Um mit R zu arbeiten empfehlen wir die Freeware R-Studio. Da sie unserer Meinung nach die ideale Kombination zwischen Übersichtlichkeit und Programmierfreiheit bietet. Sie ist frei im Internet erhältlich

Um Finanzdaten in R zu laden

library("tseries") # Die benoetigten Funktionen befinden sich in der library tseries

# Beispiel mit Novartis
prices <- get.hist.quote("NVS", quote=c("Open", "High", "Low", "Close","Adj"), start="2011-08-01", retclass="zoo")
stock <- as.matrix(prices)
ts.plot(stock[,"Close"])

Categories
Blog IT @ Home Raspberry Pi

NOOBS for Raspberry Pi

When setting up a new Raspberry Pi, you need to install an operating system. As I do that very rarely I personally stick to NOOBS (New Out Of Box Software) at the beginning as it is an easy operating system install manager for the Raspberry Pi.

Download NOOBS

SD cards with NOOBS preinstalled are available in many online shops and are sometimes well pized. If you are not lucky enough to find a good prize or you have an old SD card you don’t need (min 16 GB) follow the steps bellow.

  1. Using a computer with an SD card reader, visit the Downloads page of raspberrypi.org

2. Click on NOOBS

3. Then select Offline and network install and Download it as a ZIP

Copy NOOBS to the SD Card

  1. It is best to format your SD card before copying the NOOBS files onto it. (Right-click on the SD drive, then Format…)

2. Once your SD card has been formatted, extract the files from the zip you downloaded to your SD card (defaults, os, etc.). The necessary files will then be transferred to your SD card and will look like bellow.

4. When the extraction has finished, safely remove the SD card and insert it into your Raspberry Pi.

First boot

1.Plugin your keyboard, mouse, and monitor cables first.

2. Then plug the USB power cable into your Raspberry Pi. This will trigger the boot process.

3. During the boot, a window will appear with a list of different operating systems that you can install.

4. Please choose your language and your keyboard layout. I use CH as I have a Swiss QERTZ keyboard.

5. Choose Raspbian by making a tick next to the box Raspbian

6. Click on Install and confirm that all existing data on the drive will be overwritten.

7. Raspbian will then run through its installation process.

8. When the installation process has completed, a welcome window will pop up and guides you through the settings e.g. time zone, password, wifi settings, etc. and ends with an optional update.

Categories
Blog Other IT Stuff

Stock Photos

I assume many of you already used stock photos in a PowerPoint presentation. If not, start with it! Never underestimate the power of a symbolic picture and over time you develop a sense for the preferences of your audience (your manager, customer, or team colleagues).

The funnel

The most memorable picture I ever used, was the picture of a funnel. Not because it was super smart to use it but rather it was requested by a friend from Business. He couldn’t define why we needed it for our presentation but after I added some buzzwords, it almost made sense. And to my surprise, we received very positive feedback. I still think it was a useless slide, but hey, give the audience what they want.

Free Stock Photos

The reason why I wrote this article is, that I always have to look up my two main sources for free stock photos. So for you and myself, here the two links:

pixabay.com

pexels.com

Personally I recommend sticking to your own graphics and free stock photos to prevent copyright violation.

P.S.: If some of them look familiar. A friend of a Swiss magazine confessed to me that these are common sources in the media industry.