Cannot bind port 111 on docker on WSL2 on windows, but port is (apparently?) currently free

I have this setup:

  • Windows 10 pro with WSL2 with an Ubuntu 20.04 inside.
  • Inside the Ubuntu, I have a running docker engine that has been working perfectly for over during months, exposing multiple ranges of ports with dozens of images and containers. All perfect.

Today I was playing with an NFS server that must be run on version 3. Port 111 is required in addition to port 2049. The original test was with the image erichough/nfs-server.

I narrowed down to problem to this minimum failing example:

If I do this:

docker run -it --rm -p 111:111 alpine

I get this:

docker: Error response from daemon: driver failed programming external connectivity on endpoint hardcore_kilby (9aa7466f1771c9b5926a00eede289fc1084a12ee09ea2f3deee917c4734034c9): Error starting userland proxy: listen tcp4 0.0.0.0:111: bind: address already in use.

docker on port 111 fails

This suggests that port 111 is used in the host.

To discard it’s not something related to the well-known ports range I bound a different port: 112 instead of 111, and it succeeded:

docker on port 112 works

Therefore I thought there’s a process listening on port 111.

This answer on StackOverflow says that Resource monitor can do the job of finding “what process is blocking a port”. I launched it, sorted the listing of “Listening ports” by “Port” and….

Oh surprise!!! there’s nobody listening on port 111!

Port 111 is not used

Why is this happening?
How can I expose 111 on the docker container to the host?

legal – What to do when you genuinely don’t understand anything about taxes, yet are apparently expected to pay them for your Bitcoin?

I’ve just read a massive webpage from Swedish Tax Agency about Bitcoin. I’m not trying to “be cute” here, but I must say that I didn’t understand a single thing of it. I understand Swedish perfectly, yet have no clue whatsoever what is being said on that page.

It’s this page: https://www.skatteverket.se/privat/skatter/vardepapper/andratillgangar/kryptovalutor.4.15532c7b1442f256bae11b60.html

It doesn’t seem to be available in English, so maybe it’s not very useful to link to it here.

All I can interpret from the page is that the government violently hates Bitcoin and I’m supposed to hand them all my money because otherwise they (supposedly) will throw me in prison. Ever since I first got into Bitcoin, I have had zero thoughts or intentions of ever giving anyone one single satoshi besides the transaction fees. The concept never even struck me. It felt like one of the main points of Bitcoin to get rid of all that stupid BS.

The rules for when and how and how much to pay, and even in what currency, are so incredibly cryptic and complex as to make me seriously unable to comprehend them.

If I cannot understand the laws/regulations, what am I supposed to do? They talk about all kinds of forms and special cases and apparently expect me to calculate all sorts of things and hand them huge portions of my hard-earned BTC. I already have so little, and now they want to take a massive chunk of that away?

I regret trying to read up on this because now it seems like I can never buy anything (such as a place to live) or even mention that I own any BTC or they’ll come with the cops and drag me away to a cell and/or seize all my electronics. Or maybe “just” punish me financially with huge fees or something. Again, they make it extremely unclear, but use a very hostile and arrogant language.

I wish I were exaggerating and that I’m just “acting dumb”, but I honestly cannot comprehend the information on that page. It seems to me that it has been deliberately designed to not be understandable, as to make people who read it scared and stay away from Bitcoin entirely. How on Earth can other people comprehend any of this? I’m not legally “mentally challenged”.

What should I do? Re-reading the page over and over isn’t going to help, just as doing the same never helps me in other contexts. I don’t want to get into any trouble, but I also cannot give them any of my Bitcoin, nor pay for any theoretical “gains” that I’ve supposedly made, using fiat. I have virtually no fiat money at all, and if I’m going to buy a home, I want to do it directly with Bitcoin — not converting it to fiat. I don’t know if that makes a difference.

Apparently, I have the brain capacity to deal with Bitcoin Core, and even automate it with its API, but still feel like a 5-year-old child when seeing those tax rules. Not only is it “boring”; it’s utterly nonsensical to me. Again, it feels like they do it in purpose. Nothing is made clear whatsoever.

If it matters: All my Bitcoin were paid either with Localbitcoins in early 2013 (prior to KYC/AML, using local bank transfer), and later Bisq (no KYC/AML, P2P, SEPA bank transfers). I have never used any centralized exchange, but it’s not like I’ve been fully anonymous still.

I’m obviously afraid of sending them a letter and asking about my specific situation, because then they will know that I have coins and probably start pestering me about “unpaid taxes” or something. I seriously never even thought about this until quite recently, today even. To me, Bitcoin was (and is) completely separate from the fiat money system, and thus their taxes cannot apply to this. I was prompted to look into this after seeing somebody mention taxes for Bitcoin in a USA context.

Why does PostgreSQL apparently ignore null cells whenever using NOT LIKE?

This set me back for a long time, puzzled by why the entirely wrong record was returned:

SELECT * FROM bookkeeping WHERE category = 'Food' AND "our description" NOT LIKE 'Online ordering%' ORDER BY timestamp DESC LIMIT 1;

Only by sheer chance did I try this (which made it work):

SELECT * FROM bookkeeping WHERE category = 'Food' AND ("our description" NOT LIKE 'Online ordering%' OR "our description" IS NULL) ORDER BY timestamp DESC LIMIT 1;

You see, the “our description” text field was null for the record I expected, and for some reason, this makes PG not even consider it for “NOT LIKE”, even though a null column obviously is “not like” 'Online ordering%'.

I assume that this is yet another “by design” thing? However, it seems completely bizarre to me, and I keep running into similar issues where it just seems like the developers/designers just didn’t think things through. (But I’m sure they did and probably considered something that I’m not aware of.)

It’s too late for me at this point to ever switch databases, and I’m sure nothing better exists out there anyway, but sometimes it feels like PostgreSQL and I are fundamentally incompatible in how we think.

anima beyond fantasy – How do I reign in players apparently being able to start off with extraordinarily powerful magic?

So, when using all the books (including the Arcana Exxet), it looks like 1st level players with a say, 8 int (40 Spell levels) and 2 ranks of + spell list (+10), can start the game with….3 Lv 80 Spells? Or a group of lv 50-60 spells? I can’t see anything in the rules that prevents players from doing this, and it would be even easier if players spend advantages to get more int and/or more Zeon. Sure, their low MA would stop them from being able to cast a big combat spell, but a 1st Level character being able to cast a spell like “Tsunami” feels really wrong.

Is there something we are missing? It feels like the only way to reign in my character’s growth is for me to put arbitrary limits on the spells they are allowed to aquire and grow in throughout the game, which feels just like I’m doing my own balancing on the fly. It’s also problematic if I slip up and let a spell through that I should have blocked.

How should we be handling spell acquisition for our players, at creation and as they grow? I’m thinking of putting a limit on purchasing one-of spells, increasing the cost, or somehow making it so players can’t just arbitrarily decide to learn powerful magic on their own without help or a library or something.

upgrade – User home *apparently* scracthed after Big Sur update

The key point of the problem is that my user profile (fritz) is located on a separate encrypted volume Users, so its actually home path is /Volumes/Users/fritz. When I login after a reboot I use another account to enter into the system (administrator) that is regularly located on the root volume (/Users/administrator): then I enter the encryption password for the Users volume and at last I log into my main account.

This setup (which has been working for years) probably messed up the latest system update tool, because it basically recreated a new user fritz from scratch (when I logged in after the system update I was not only asked for enabling Siri – it always does it – but also other preferences, such as the light/dark theme, a thing that happens for users that have just been created). The path of the new bogus account was /Volumes/Users/fritz as it should be but it was not a mount point: it was just a plain directory of the root volume. The Users volume was mounted at /Volumes/Users 1 and everything was still there, but no more associated to the fritz account.

The obvious solution was to remove the bogus /Volume/Users directory, but the system wouldn’t let me do that, even from sudo – typical security restrictions of the latest macOS’s I suppose. I rebooted in Recovery mode just to find – to my surprise – that the bogus directory had not been created in that mode; so it was impossible to remove in that way.

At last the solution was:

  1. Log in as administrator as usual, without entering the password for the Users volume.
  2. Remove the user fritz.
  3. At this point I was able to remove with sudo the bogus directory /Volume/Users.
  4. Open the Disk Utility and mount Users. Now the volume was mounted in the right place.
  5. Re-create the fritz user with all the previous settings (UID and home folder path).

blockchain – Why do people apparently “look up Bitcoin addresses on websites”?

I often hear things such as:

Remember, if you look up an address on Blockchain.info or something, they will have a record of your IP address being interested in that address and thus associate it with you.

Sure. I follow that logic. But what I don’t understand is why they would do that in the first place. Why use some “website” when the whole point is that Bitcoin is decentralized and you have your own wallet/client/node that you can look at?

And what is their “objective” with inspecting some address that they have just used? Why not look in Bitcoin Core (or whatever they use) to simply see if it’s in memory pool or has confirmations or whatever it is they are trying to look up?

FEATURED Ramnode apparently sold to Inmotionhosting

Just came across something that said Ramnode was sold to Inmotion hosting. Apparently there are no plans to change how that operates and the… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1839702&goto=newpost

sql server – Can’t restore database with (apparently) same version

The two managed types of SQL Server in Azure (SQL Database and Managed Instance) are version 12.0.2000.8. Don’t be fooled by the low version number, it is always higher than on-prem meaning you can never restore an “Azure SQL” backup to on-prem.
You cannot perform a backup from SQL Database, but you can do a copy only backup from Managed Instance. This would be my guess.

Perhaps the error message is incorrect, and should have said that backup is from 12.00.2000

If it is the 3:rd type of “SQL Server in Azure”, a VM with SQL Server installed, then it is of any version you like. This should be restoreable.

So, find out what type of SQL you have in Azure, then take it from there.

Apparently, Unity decided to import a bunch of things I already had

enter image description here

I am getting lots of errors ever since Unity decided to reimport plugins and Unity assemblies that were already present in my project. I am not sure what I can now do, what folders to delete to fix this issue, etc. Is there any simple solution to fixing all of these problems? I cannot even click play in the Unity Editor now.

Can’t see Android Emulator when apparently it already is running

I am trying to start learning how to develop Android apps, and I tried to make a new project and navigate through Android Studio. I tried using the Emulator by creating a new virtual device and running my new test project with it, but no matter what i seem to do it never actually does anything once I click the “Run” button on both the AVD Manager and the main one you see on the top right area of Android Studio.

id

I keep seeing this after i try to click the Run button again after not seeing anything happen. and i can’t seem to delete any of the files this is pointing to since Windows keeps complaining its being used by another application even after I close Android Studio and terminate adb.exe

I’ve been looking around for an answer and i’ve found things like “Uncheck Enable ADB Integration”, or “Changing the Emulated Performance Graphics to Hardware/Software”, but a lot of these answers are from threads that are 3+ years old so I don’t think these are applicable anymore. can someone provide some insight to how to get this working? I am using Android Studio 3.6.3

PS: I want to make it clear that even after i restart my pc and delete these so called “*.lock” files, this changes absolutely nothing