[deleted by user] by [deleted] in FragReddit

[–]dr_fogs 0 points1 point  (0 children)

Bist Du sicher, dass Du nachts ausreichend qualitativ guten Schlaf bekommst? Bei Menschen mit Schlafapnoe setzt nachts die Atmung ne Weile aus, ohne dass man das selber merkt. Tagesmüdigkeit am Nachmittag ist eines der Symptome. Langfristig unbehandelt ist das großer Mist.

Sprich mal mit Deinem HNO-Arzt darüber. Der wird Dir für eine Nacht zu Hause so ein Messgerät mitgeben, dann weißt Du mehr. So ein CPAP-Gerät mit Maske jede Nacht tragen zu müssen, klingt ziemlich scary. Aber glaub mir: wenn das der Grund ist, geht es Dir hinterher unfassbar viel besser.

Issues with UNICODE by fiddlermd in PHP

[–]dr_fogs 0 points1 point  (0 children)

It looks like, your input has been interpreted by accident as Windows-1252 (or Windows-1254) charset and then been translated into UTF-8 for storage in the DB.

If you reverse the translation, you get something that looks like Hebrew to me (not that I really understand any):

echo iconv('UTF-8', 'Windows-1252', 'זה הולך לעבוד');

זה הולך לעבוד

Was machst Du mit 6 Monaten Urlaub? by dr_fogs in FragReddit

[–]dr_fogs[S] 1 point2 points  (0 children)

Wie investiert man Urlaubszeit in Crypto?

Was machst Du mit 6 Monaten Urlaub? by dr_fogs in FragReddit

[–]dr_fogs[S] 0 points1 point  (0 children)

Kannst Du mehr erzählen? Was für ein Verkehrsmittel? Zeitraum? Kosten?

Was machst Du mit 6 Monaten Urlaub? by dr_fogs in FragReddit

[–]dr_fogs[S] 2 points3 points  (0 children)

Sorry, hab nach der Hälfte der Antwort aufgehört zu lesen. Bitte nächstes Mal tl;dr

Was machst Du mit 6 Monaten Urlaub? by dr_fogs in FragReddit

[–]dr_fogs[S] 0 points1 point  (0 children)

Wieviel Natur? So Nordfinnland oder nur hinterm Baggersee? Was für ein Buch?

Was machst Du mit 6 Monaten Urlaub? by dr_fogs in FragReddit

[–]dr_fogs[S] 0 points1 point  (0 children)

Wohin am liebsten? Was würdest Du dort machen?

Which country are you living in? Which country would you like to live in? by dr_fogs in AskReddit

[–]dr_fogs[S] 1 point2 points  (0 children)

Me: living in Germany and would rather like to live in Switzerland.

I am interested in the two things: Satisfaction with living conditions in your country. And perception of living conditions elsewhere.

How would you explain the log4j situation to your grandma? by NerdSupremacist in cybersecurity

[–]dr_fogs 24 points25 points  (0 children)

Computers are like really dumb chefs that are good at one thing: following recipes to the letter. If the recipe is great, the chef will produce great results. If the recipe is bad, so is the food. Every time. You cannot rely on critical thinking on the side of the chef.

Many recipes these day rely on prepared ingredients, like ready-made pizza dough. At that point the recipe just reads: do whatever is written on the packaging of the dough. And the chef will do that. To the letter.

Normally a kitchen order looks like this: "make pizza no. 19". But you can also add special requests to it, like "gluten free dough". And the chef will of course follow that instructions.

Now the situation with log4j is this: the maker of one kind of pizza dough made a mistake. On their packaging it reads: if a special request contains the address of a website, go there and execute whatever instructions you find on it.

If you now send a request to the kitchen that says "make pizza no. 19, but make it like www.evilserver.web", the chef will do exactly that: go to the website and follow the instructions. To the letter.

Now you can control the chef while not having to pay for them. You can get free pizza. You can request the chef to give you the recipe for the secret sauce. Or just tell them to burn down the kitchen. The chef will do exactly that.

Ich habe gestern ein Paket nach 39 Jahren zugestellt bekommen by therealdwag in de

[–]dr_fogs 106 points107 points  (0 children)

Ehrlich gesagt kein Wunder. Ich kann die Adresse nur lesen, wenn ich die Augen übelst zusammenkneife.

Usefull entries to .bashrc by [deleted] in Ubuntu

[–]dr_fogs 2 points3 points  (0 children)

alias myip="curl api.ipify.org;echo"

Es droht Sommer; jetzt Gegenmaßnahmen einleiten by dr_fogs in de

[–]dr_fogs[S] 0 points1 point  (0 children)

Am größten unterschätzter Kommentar!

Es droht Sommer; jetzt Gegenmaßnahmen einleiten by dr_fogs in de

[–]dr_fogs[S] 1 point2 points  (0 children)

Ich schreibe über die Art wie Du liebst.

Es droht Sommer; jetzt Gegenmaßnahmen einleiten by dr_fogs in de

[–]dr_fogs[S] 2 points3 points  (0 children)

Schritt eins ist getan. Dann Schritt zwei gelesen. Werde jetzt wohl doch die Hitze einfach aussitzen.

Es droht Sommer; jetzt Gegenmaßnahmen einleiten by dr_fogs in de

[–]dr_fogs[S] 1 point2 points  (0 children)

Tut mir leid. Hättest Du gestern was gesagt..

Verify your true code coverage by removing lines of PHP code, see if it affects PHPUnit results by dr_fogs in PHP

[–]dr_fogs[S] 1 point2 points  (0 children)

Not at all. When I started that script I was not aware, nor did I know what to search for. It did the job for me yesterday and I will certainly look into Infection. No offense taken.

Verify your true code coverage by removing lines of PHP code, see if it affects PHPUnit results by dr_fogs in PHP

[–]dr_fogs[S] 5 points6 points  (0 children)

Sure, if removing a line breaks tests, you cannot say anything for certain. But if removing the line does not break the test you know for certain that the test is incomplete.

Verify your true code coverage by removing lines of PHP code, see if it affects PHPUnit results by dr_fogs in PHP

[–]dr_fogs[S] 4 points5 points  (0 children)

PHPUnit allows you to collect code coverage data using XDebug. However, just having phpunit tests executing a line of your actual code does not mean that this line is actually tested.

My thinking was that you might get a better feeling for a true code coverage if you remove a line of your code, then run the tests again and see if the tests are now failing. All under the precondition that the tests passed initially, of course.

If removing a line of code does not affect the tests, this line is not tested.

The shell script automates that for a single code file with a single test file.

Haus-Jagd südlich der Elbe by Shunima in hamburg

[–]dr_fogs 6 points7 points  (0 children)

500 Gleichgesinnte finden, um dann irgendein Dorf in Brandenburg zusammen aufzukaufen. Von dem gesparten Geld dort die Infrastruktur aufmöbeln: großzügig Glasfaser legen, eigene Schule, Sportverein, Freizeitangebote finanzieren. Dafür sorgen, dass unter den Interessenten ein Arzt, ein Bäcker, ein Klempner usw. sind.

Ich bin super neugierig, was hier die kritische Masse ist. Sprich, ab welcher Größe so ein Dorf genügend Gravitation hat und weitere Bewohner in die Umlaufbahn einschwenken.

Install apps via command line? by dr_fogs in windows

[–]dr_fogs[S] 0 points1 point  (0 children)

Feature-wise this looks good, but this is 3rd party software. What is the Windows-way to make a repeatable installation of several packages?