How might an Ubuntu 18.04 system that has somehow had Python 2 removed be recovered?

A friend tried to help another friend on his Ubuntu 18.04 installation and that somehow involved (as far as I can figure) removing Python 2. This seems to have resulted in poor apt, apt-get and dpkg -i being broken. To try to fix things, I was thinking initially that we could manually download the Python 2 DEB package (https://packages.ubuntu.com/bionic/amd64/python2.7/download) but then we, of course, ran into the problem of getting dpkg -i to run (py_compile.py syntax errors).

So now I’m thinking that we could create a virtual environment with its own wee Python 2 executable installed and tell the system to use that (by simlinking /usr/bin/python to the virtual environment Python executable) in order to run dpkg -i on the proper Python 2 package we have downloaded here.

Would this screw things up more or is this a plausible thing to try?

All topic

Does the ESP8266 somehow remember wifi access data?

Today I did some tinkering with an ESP8266, trying out OTA and writing a webserver. To find an error, I reduced the sketch to just the following lines:

#include 

ESP8266WebServer server(80);

void setup() {
  Serial.begin(115200);
  server.on("/", []() {
    Serial.println("Sending response...");
    server.send(200, "text/plain", "Hi there!");
  });
  server.begin();
}

void loop() {
  server.handleClient();
}

Notice that there is no code to connect to a Wifi network. However, the chip still connects to my local, WPA2-secured, network on every boot. I can ping the chip, my browser can get the “Hi there!” message via http, the Serial message gets printed.

How is this possible? Does the ESP8266 somehow retain the Wifi information, maybe because of some old OTA data that was not completely overwritten?

I’m using platformio. Here’s my entire platformio.ini:

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino

I posted the compile and upload log here: https://pastebin.com/BtGrFZiu

All topic

Question: Can I somehow play HotS in the now free StarCraft II?

Question: Can I somehow play HotS in the now free StarCraft II?

Question: Can I somehow play HotS in the now free StarCraft II?

i m talking about f2p starcraft, that had the wings of liberty campaign for free, allowed you to play the prologue of LotV but had nothing free in HotS

All topic

How might an Ubuntu 18.04 installation that has somehow had Python 2 removed be recovered?

A friend tried to help another friend on his Ubuntu 18.04 installation and that somehow involved (as far as I can figure) removing Python 2. This seems to have resulted in poor apt, apt-get and dpkg -i being broken. To try to fix things, I was thinking initially that we could manually download the Python 2 DEB package (https://packages.ubuntu.com/bionic/amd64/python2.7/download) but then we, of course, ran into the problem of getting dpkg -i to run (py_compile.py syntax errors).

So now I’m thinking that we could create a virtual environment with its own wee Python 2 executable installed and tell the system to use that (by simlinking /usr/bin/python to the virtual environment Python executable) in order to run dpkg -i on the proper Python 2 package we have downloaded here.

Would this screw things up more or is this a plausible thing to try?

All topic

We need to help non-English-speakers somehow

I saw a guy from Portugal today attempt to ask a rather simple question. But the question was so horribly confusing that he started getting down-voted, and close-voted. After discovering where he was from in his profile, I invited him in the comments to ask his question in Portuguese also – this was clearly easier for him.

Considering how many people we have from Brazil, Portugal, and others who understand a great deal of other languages, why can’t we help these people a bit more? Maybe I’m just a bit too mushy, but they are people too and they deserve just as much help as anybody else.

Is there no method of assitance we can implement that will open up Stack Overflow to the rest of the world? So many of us here are willing to assist with other languages, and thus reach out to others who haven’t felt the pure benefits of Stack Overflow-involvement.

Related:

http://blog.stackoverflow.com/2009/07/non-english-question-policy/

Also Related:

http://blog.stackoverflow.com/2014/02/cant-we-all-be-reasonable-and-speak-english/

All topic

Lie under oath and become Judge? How does it make sense? Is Kavanaugh somehow special? [on hold]

For context, I’m German. I am mostly up to date about current politics in the US

This is explicitly motivated by the discussion about Kavanaugh. But it should apply to any judge position. And it should not matter whether the person had a different judge position before.
I am aware that Kavanaugh is not convicted for perjury.

I understand that one can assume that at least one of the allegations to have made a false statement under oath is true? If that is not true, the question does not apply to Kavanaugh.

I originally used the term perjury in the title, but that is not really relevant. Perjury is quite complex – here, only a false statement under oath is relevant.

I assumed that the current status (as of 2018-09-20) is that at least one of the allegations is true. Even if the case was long ago and unrelated to the judge position. So, I make this assumption, that – independent of political background – one can “safely assume” that he made a false statement under oath.

Even considering that somebody who made a false statement to become a judge? Ok, maybe I missed something. Let me know, I am open to delete the question. I feel like this sounds like I’m trolling. But even if I would be, that would not change the validity of the question.

  1. Kavanaugh made a false statement under oath.
  2. Kavanaugh is considered to become a judge.
  3. A judge must be trustworthy.
  4. A person who made a falsehood under oath is not trustworthy.
  5. So Kavanaugh is not trustworthy, because of the falsehood under oath.
  6. So Kavanaugh can not be considered to become a judge.

I think 1. and 2. can not both be true. I assumed there were political reasons, but looking at it like above, that makes no sense.

If I make a logical error, let me know as a comment.

If I make a political error, let me know as answer.

All topic

A Judge who committed perjury? How does it make sense? Is Kavanaugh somehow special?

For context, I’m German. I am mostly up to date about current politics in the US

Even considering that somebody who made a false statement to be a judge? Ok, maybe I missed something. Let me know, I am open to delete the question. I feel like this sounds like I’m trolling. But even if I would be, that would not change the validity of the question.

  1. Kavanaugh made a false statement under oath.
  2. Kavanaugh is considered to be a judge.
  3. A judge must be trustworthy.
  4. A person who made a falsehood under oath is not trustworthy.
  5. So Kavanaugh is not trustworthy, because of the falsehood under oath.
  6. So Kavanaugh can not be considered to be a judge.

I think 1. and 2. can not both be true. I assumed there were political reasons, but looking at it like above, that makes no sense.

If I make a logical error, let me know as a comment.

If I make a political error, let me know as answer.

All topic

Sound-Lost sound somehow

I have lost sound in Ubuntu 18.04. I have checked the other questions regarding sound but none of them seem to fit my situation. I have gone through the troubleshooting steps in Help but I can’t find any settings that are wrong.

Where do I go in the menus or the directory structure to check for editable sound properties?

Suggestions please.

All topic

Question: When using a delivery business is the food somehow packaged so the driver can’t reach in and eat fries or whatever?

Question: When using a delivery business is the food somehow packaged so the driver can’t reach in and eat fries or whatever?

Question: When using a delivery business is the food somehow packaged so the driver can’t reach in and eat fries or whatever?

All topic

Can I somehow identify the physical machine from inside an OpenVZ container?

I am using some VPSes in OpenVZ containers. As I can see, our hosting provider somes moves them between his physical machines. It also means unwaited (and unexpected) reboots.

I have no technical contact with the VPS provider (there is a… complex company structure 😉 ), but I would like to know, what is happening and why.

I checked the /proc/cpuinfo, yes it sometimes changes. But it is not enough.

Can I somehow extract some ID about the host machine, while I have only a root access to the VPS (and zero access to the host)?

All topic