Restore unsaved documents in Word

How to recover word documentsI think almost everyone knows the scenario: You work on a Word document and either Word itself or the entire computer crashes. In order to prevent a total loss of the document, Word can activate the so-called “auto save” function, which saves the document automatically every X minutes. So in a crash only the changes since the last automatic save are lost.
But what if you had not saved the document yet? In this case, Word does not automatically restore the document. But here, too, is one last salvation. We want to look at both tips in the following.
Enable automatic saving in Word
First, the automatic save should be activated. If this is active, you can even recover documents that have not yet been saved. (Say: Word […]

Update Node.js and NPM via commandline

How to update NodeJS and NPM via ShellToday’s article falls into the category “reminder”. Every few months I write smaller projects with Node.js. But before I start, I’d like to update to the latest version, and that’s where the dilemma starts. Every time I forget the command line commands for it.
Therefore, here are the short and concise CMD/Shell/Bash commands for updating Node.js and NPM. Once for macOS (OSX) / Linux and once for Windows.
Update NPM on Linux and macOS (OS X)

sudo npm install -g npm

Whether the update was successful can be tested with the following command.
npm -v
Update NPM on Windows
The following commands have to be set in Powershell (Start -> “powershell” -> right click -> Run as Administrator). Each line corresponds to one command.

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install […]

Check Paypal account balance and transactions via C# API

How to use Paypal-API in CsharpAfter we had a look at how to sent push notifications via C# recently, there are plans for the next C# article today. This time it’s about how to read account balance, sales and transactions and other things of a Paypal account.
First some basic information. Although Paypal is an “online account”, in many ways it differs from an online (giro) account of a “classic” bank. For example, Paypal does not support the Homebanking Computer Interface (HBCI) to retrieve account information or send payments. Instead, Paypal offers different APIs (REST, SOAP, + SDKs, …), which differ not only in structure and technology, but especially in the range of functions. For our purposes we will use the so-called “NVP / SOAP API” and connect to it […]

How to send push notifications in C#

Push-notifications-in C-SharpIn today’s article, we’ll look at how to push notifications out of C# onto smartphones or other devices. It does not matter if it is an Android or an Apple / iOS device. But when do you need such functionality?
For example, I run a few niche sites (affiliate websites) with which I earn monthly through affiliate programs. However, the revenue reports have to be picked up proactively in almost all affiliate programs. So I wrote a small C# client, which regularly downloads the reports and sends me a push notification for new sales. That’s just one of many uses and I’m sure you’ll think of a few more. But now back to the topic.
Selection of push platform
For a quick and easy integration of the push functionality in […]