Telefon: 035179593513

tomcat WAR 404 not found

Problem:

A functional and well tested WAR was not reachable on a new tomcat instance.

Solution:

The new tomcat was for java 1.7 apps and the WAR was a 1.8 java compiled app, so the tomcat deployed the war without errors and the app was showing 404 not found.

In the webapp folder of the tomcat you will find your unpacked war and in this unpacked war folder, you will find the web inf folder and in the subfolders of this folder you will find java classes. On this class files you can check the compile time version with javap -verbose filename

iso image auf usb stick schreiben in linux / mac os

Linux

Mac OS

Gerät aussuchen

Der Name des Geräts sieht so aus /dev/disk1

Jetzt kommt das dd Kommando, was als Parameter ein if für InputFile und ein of für OutputFile erwartet. Der InputFile ist euer Image und der OutputFile euer Device.

Linux

wenn das Gerät busy ist dann

Mac OS

wenn das Gerät busy ist dann

 

Search or grep docker logs

Normal grep and piping seems not to work for docker:

 

That is normal, because docker logs internally to the standard error out, so we have to redirect the standard error output (2) to the standard output (1):

 

Install error while installing ios-deploy globally on El Capitan

Solution:

sudo npm -g install ios-deploy –unsafe-perm=true

Error:

7zip process cannot access the file because it is being used by another process

Problem:

I tried to compress a set of files via batch processing. Some of these files were currently opened by another process, so I encountered this problem.

7zip works as designed to skip those files, because an opened file could be uncompleted in the moment where we are trying to read it for compression, so its best practice to skip them.

Solution:

 

or for older 7z Versions

 

 

yarn or npm or node install error

I got an error while using npm or yarn which is based on node js.

Error:

Fix:

Reinstall node js

https://nodejs.org/en/download/package-manager/

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

I got an error while using constants inside my node js app. Here is the solution:

SyntaxError: Block-scoped declarations:

Fix:

node –use_strict [to-be-replaced].js

Fix2:

Update your node version (node -v) to the current version or above 7.4

sudo npm install -g npm
sudo npm install -g n
sudo n stable

That still wasn’t changing the version of Node that was being used. I finally found that you have change the /usr/bin/node symlink like this:

sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node

(Use whatever the highest version is in place of „<VERSION>“ from your install options in /usr/local/n/versions/node.

hashcat on OS X