@lynne It's nowhere near as great a length as you've gone, but:

Once upon a time, a friend of mine streamed on beam.pro while I had classes at uni. I couldn't watch it live, so I really wanted a replay of that stream. However, beam.pro only stored one replay per user, so I had to download it before said friend started another stream. I didn't have youtube-dl at hand, so I ended up parsing a dash manifest with grep and sed, and writing a shell loop to wget each of the video fragments.

I ran it all on a VPS to download quicker (IIRC the video lasted a few hours, and had a rather high bitrate) and left it running in screen.

Then in the evening (after that friend started another stream) I catted all the downloaded fragments together and yay, it worked.

@quad @wolf480pl
ok, how about:

pg_dump -s -t users pleroma-dev > users-schema.sql # dumps only table schema, not the data

psql -d pleroma-dev -c "\copy (select * from users order by id) to 'users.csv' (format 'csv')"

and if it works:

psql -d pleroma-dev -c "drop table users;"
psql -d pleroma-dev <users-schema.sql
psql -d pleroma-dev -c "\copy users from 'users.csv' (format 'csv');"

Today I learned five ways to make a footer in CSS:

1.
.footer { position: absolute; height: 60px; ...}
.body { margin-bottom: 60px; }

problem: not responsive.

2.
.footer { position: absolute; padding: 1.5em 0; ...}
body {}

problem: if body is too long, it hides under the footer

3.
.footer { position: static; padding: 1.5em 0; ...}
body {}

problem: if body is too short, there's empty space between the footer and the bottom of the browser window

and now for the correct ways:

4. mdn.github.io/css-examples/css

5. mdn.github.io/css-examples/css

Went with 5, because we already use flexbox elsewhere on the site, but don't use grid yet.

obscure Linux joke 

[ 2.141521] usb 2-1.1: New USB devoce found
[ 2.141534] usb 2-1.1: {rpdict: DataTraveler 3.0
[ 2.241107] usb-storage 2-1.1:1.0: USB Mass Storage device detected

mount: mounting /dev/disk/by-label/LIVEUSB on /media/live failed: No such file or directory
Failure: failed mount backing device /dev/disk/by-label/LIVEUSB

Spawning shell in initramfs

(initramfs) [ 3.141521] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 3.0
[ 3.152135] sd 6:0:0:0: [sdb] Write Protect is off
[ 3.156135] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled
[ 3.156135] sd 6:0;0:0: [sdb] Attached SCSI removable disk

joke about "disappearing" people 

@lanodan @rin
An man came tired to a hotel. There were no free rooms, but there was one free bed in a 4-person room, which he got assigned. He tried to sleep, but he couldn't, because of his three obnoxious roommates, who were talking loudly, telling jokes about the party. So he came up with an idea.

He went down to the reception, and ordered four teas, but asked for them to be delivered with a 15min delay. Then he came back, and after 10 minutes he said to his roommates:
"stop talking so loudly, this place is bugged, the KGB is hearing all of this"
"no way!"
"you don't believe me? let me show you"
then he said to a picture on a wall: "Comrade Major, 4 teas for me and my roommates to room 34 please".

A few moments later, the hotel service delivered 4 teas. The roommates were shocked, stopped talking and went to sleep.

Next morning, the man wakes up and sees that his roommates are gone. He goes down to the reception and asks
"where did these other guys go?"
The receptionist answers:
"oh, the KGB was here at 5 AM and took them"
"Why did the leave me tho?"
"Comrade Major liked the tea joke"

$ sudo pacman -Syu
Packages (1515) .....

Total Installed Size: 20589.76 MiB
Net Upgrade Size: 954.08 MiB

ohno...

@normandy y u didn't tell me...:meowsad:

Or did I just miss your posts about it too?

@naruciakk @wolf480pl
And on top of that, what guarantee do you have that EU institutions will be a more fair and corruption-resistant supervisor than any kind of Polish institutions?

@naruciakk @wolf480pl
And who supervises the European Union?

What this accomplishes is just moving the problem elsewhere.
Instead of the combo of Polish Constitutional Tribunal, NIK, and Tribunal of State being the root of trust, now some set of EU institutions are a root of trust.

Technically, such movement of root of trust would mean that Poland is no longer a sovereign state. If it was considered legitimate.

Hence, the Polish government has two options:
a) acknowledge EU as a higher authority above any Polish istitutions
b) delegitimize EU oversight over rule of law in Poland

Now you may not care about such abstract concepts as sovereignty and legitimization of power, but many people do care, and they don't want Poland to be a province of EU.

@wolf480pl @naruciakk The expectation I had when voting, and I think many other people had, is that we don't give full rights to the state to whomever wins the election. Instead, we lend it. We give the winner, for 4 years, a limited power, with the limitations set by the constitution, to rule the country. And then, after 4 years, they're obliged to give it up, as we hold another election.

Unfortunately, that contract seems to be broken. People signed up for one thing, and got something different.

The ruling party tells us that winning an election is a carte-blanche permission to do whatever they want. And many people fell for it.

@benis @ignaloidas @wolf480pl @brad @quad

Sigh...

Ok, here we go:

Imagine you're a Tier2 ISP, with 2 upstreams (eg. Level3 and Telia), who can route your packets to the whole Internet, including the other end of the world, if you pay them per gigabyte.

But there are other ISPs in your area. Your customers send traffic to their customers, but that traffic goes through your upstreams, which means:
- more hops, higher ping
- you pay your upstream per GB for that traffic, and so does your neighbour ISP

Solution: arrange peering with your neighbour, so that this traffic goes through a direct link between the two of you. Results:
- fewer hops, lower ping
- both of you pay less to your upstreams

Now imagine that some of your customers also send traffic to customers of some Tier1.
There are 2 situations:

A) That Tier1 is your upstream.
You pay them per GB of this traffic. They get paid for GB of this traffic, and then by their customers on top of that. They like it that way, and won't peer with you. But the pings are still good, so it's fine for your customers.

B) That Tier1 is *not* your upstream.
You pay your upstream per GB of this traffic, then your upstream routes it to the destination Tier1 through a peering. Which may be far away from your area. There are many hops, so pings are bad. But the destination ISP has no reason to peer with you, because:
- you could buy transit from them, i.e. be their downstream. They'd get paid per GB of your traffic.
- them peering with you would bring you one step closer to becoming a Tier1, and not having to pay anyone, which would be bad for the whole Tier1 club.
- They're so big they don't care if their customers have a high ping to your customers. They only care if their customers have low ping to Netflix.

Now, none of this is a problem if the source and destination are far away, because then packets will go through a Tier1 ISP anyway, and they have the longer paths mostly sane.

But when the source and destination are close together, this causes such weird situations as packets from my flat in Warsaw to my faculty in Warsaw, 15min walk away, going through fuckin' Frankfurt, because I get internet from UPC, UPC is Tier1, and it won't peer with anyone in Warsaw.

@wolf480pl @sqwishy @sir
Let's say it's me and my friend. Each of us can easily eat half a large (42cm) pizza as a dinner, but if we want it to serve both as dinner and supper, it has to be more than that. Like 3/4 of large pizza per person.
Then there's the fact that a huge (57cm) pizza has almost twice the surface area of a large pizza, but is only like 1.5x the price.
So instead of ordering two large pizzas, we order one huge pizza. Each of us eats 3/8 of it, and there's 2/8 left for the breakfast that we put in the fridge.

Show more
Moe Goods and Supplies

All your moe needs! A kind, generalistic instance where everyone is welcome! Important: if you sign up, be sure to check "spam" for your confirmation email if it does not appear.