30 October, 2020

Minify or Remove new Lines from a File

For a WordPress plugin I need a program, that will remove any new lines in html. Then you can use the code in a PHP variable. In practise this is what a minifier does. There are many online tools, but I'd prefer to do it myself.

In Bash - that is Linux or Mac terminals - you can do this with just one line of code. First save your markup in a file test.html via your most trusted editor. 

Then do this:

#  tr -d '\n' < test.html > test.min.html


Understand this code:

  • tr = translate characters
  • -d = delete
  • '\n' = new line
  • < test.htm = from the file test.html
  • > test.min.html = save the result to the file test.min.html

Done.


26 October, 2020

[ SOLVED ] Mac: Onedrive

 I had some issues with Mac and onedrive. I used Outlook via a browser, mostly Chrome. That was no good idea. There were no error messages from the Onedrive app. I had a hunch and installed Outlook on Mac.

Et voila: that did the trick.


09 October, 2020

Guitar Amp and the Effect Loop

 In this article Jed Van Wyngaardt explains what you should put where.

In front of the amp:

  • Tuner
  • Wah
  • Overdrive
  • Distortion
In the effects loop:
  • EQ
  • Chorus
  • Delay
  • Reverb
How about Orange Crush and Boss GT-1?
With Boss GT-1 everything gets somewhat complicated, since it has everything in one. Probably you should disable wah, overdrive, distortion and preamp - and then run the chorus, delay and reverb in the effects loop. Or simply add everything in front of the amp.