Categories
Tech

Mark Zuckerberg still wants to spy on Apple customers

https://www.axios.com/2022/11/30/zuckerberg-apple-policies-not-sustainable

Meta CEO Mark Zuckerberg on Wednesday added to the growing chorus of concerns about Apple, arguing that it’s “problematic that one company controls what happens on the device.”

Categories
Tech

Elon Musk is going to give up with fixing twitter

Some day he is going tell the people still working at twitter to do whatever it takes to make it profitable. He dont want to sell more Tesla stocks to keep twitter running.

Categories
Tech

Few are going to leave twitter and use Mastodon instead

Mastodon is confusing for most people. They are not going to understand what the fediverse is. They are not going to find their favourite celebrities on Mastodon. What they will find is imposters. How can anybody know who is the real person posting by a name. How can they find their friends. Their friends could be on different instances. It could work if there was only a few instances that worked together, but that would not be a fediverse. The twitter blue mark was good. Elon ruined it.

Categories
Tech

It is difficult to stop videos auto playing on Daily mail

I tried first with ublock origin. I could remove the loop attribute on video elements. Then the videos only played once. They played once every time they were scrolled into view. There is some script that starts videos every time they are scrolled into view. I tried with Firefox advanced settings in about:config. It removed the videos from the page. Not what i wanted. Then i tried Tampermonkey. You have to add video controls and pause the video all the time. Daily mail scripts sets back videos and starts them. The script runs a function every second. The function loops through all video elements and puts video controls back and pauses the video. When a video is scrolled into view it stops in a second. You can skip trough it with the video controls. Now i don’t have to get the experience the user expects. As a web developer would say it.

// ==UserScript==
// @name        Stops and add Controls to HTML5 videos on Daily mail
// @namespace   video-controls-html5
// @version     3
// @description Adds controls to HTML5 videos
// @grant none
// @exclude        *//*.youtube.com/*
// @match *.dailymail.co.uk/*
// ==/UserScript==

function func() {
for (var e of document.getElementsByTagName('video')) {
    e.setAttribute('controls', true);
    e.pause();
}

  console.log('Add controls');
}

setInterval(func, 1000);

The uBlock origin filters i use. I believe only the first one makes any difference.

www.dailymail.co.uk##+js(ra.js, loop,video,stay)
www.dailymail.co.uk##+js(ra.js, playsinline,video,stay)
www.dailymail.co.uk##+js(ra.js, auto,video,stay)
Categories
Tech Uncategorized

SQL server 2016 did not start after upgrade to Windows 11

It looked bad for a while. I have tried to upgrade to Windows 11 many times. It was always something that was not ready for Windows 11. The upgrade software did not tell me what is was. I suspect it was the LSI 9211 SAS card. Yesterday there was a new message about that Windows 11 22H2 was ready for me. This time there was nothing that prevented an upgrade. After the upgrade i started to test if everything was working. The storage spaces pool was there. That means the LSI card was working. The cluster manager was working. I could not login to the Veeam backup software. After a while i saw that the SQL server database was not started. I tried to start it but it could not start. I looked in the ERROR file. This looks bad. SQL server is crashing at startup.

2022-11-05 17:12:29.55 spid5s      There have been 256 misaligned log IOs which required falling back to synchronous IO.  The current IO is on file C:\Program Files\Microsoft SQL Server\MSSQL13.VEEAMSQL2016\MSSQL\DATA\master.mdf.
2022-11-05 17:12:29.55 spid5s      11/05/22 17:12:29 Stack Overflow Dump not possible - Exception c00000fd EXCEPTION_STACK_OVERFLOW at 0x00007FFD41D6714A
2022-11-05 17:12:29.55 spid5s      SqlDumpExceptionHandler: Address=0x00007FFD41D6714A Exception Code = c00000fd
2022-11-05 17:12:29.55 spid5s      Rax=000000006ca12248 Rbx=0000000000000001 Rcx=000000007e6b4040 Rdx=0000000000000001
2022-11-05 17:12:29.55 spid5s      Rsi=0000000000000993 Rdi=000000007e6b4040 Rip=0000000041d6714a Rsp=000000006ca11f30
2022-11-05 17:12:29.55 spid5s      Rbp=000000006ca12030 EFlags=0000000000010206
2022-11-05 17:12:29.55 spid5s      cs=0000000000000033 ss=000000000000002b ds=000000000000002b
es=000000000000002b fs=0000000000000053 gs=000000000000002b
2022-11-05 17:12:29.55 spid5s      1: Frame 000000B86CA12030 Return Address 00007FFD41D6714A

It has something to do with block size on the volume the database file is stored. SQL server must have block size 512B or 4KB. https://learn.microsoft.com/en-us/troubleshoot/sql/admin/troubleshoot-os-4kb-disk-sector-size

If i run the command “fsutil fsinfo sectorinfo c:” i get.

PS C:\Users\Kalle> fsutil fsinfo sectorinfo c:
LogicalBytesPerSector :                                 512
PhysicalBytesPerSectorForAtomicity :                    4096
PhysicalBytesPerSectorForPerformance :                  16384
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096
Device Alignment :                                      Aligned (0x000)
Partition alignment on device :                         Aligned (0x000)
No Seek Penalty
Trim Supported
Not DAX capable
Not Thinly-Provisioned

SQL server dont like the PhysicalBytesPerSectorForPerformance : 16384 part. Luckily there is a trace flag for SQL server to make it always use 4KB. It is trace flag 1800. If you add -t1800 to the sql server command line it will start.

Categories
Tech

Google put a stop to JPEG-XL

Thank you everyone for your comments and feedback regarding JPEG XL. We will be removing the JPEG XL code and flag from Chromium for the following reasons:

– Experimental flags and code should not remain indefinitely

– There is not enough interest from the entire ecosystem to continue experimenting with JPEG XL

– The new image format does not bring sufficient incremental benefits over existing formats to warrant enabling it by default

– By removing the flag and the code in M110, it reduces the maintenance burden and allows us to focus on improving existing formats in Chrome

The open source guys are upset. I did not know there was a new jpeg format.

Oh boy. If Google had applied the same kind of standards for WebP, that image format simply wouldn’t exist today. And frankly WebP is a complete shitshow and supported nonetheless to this today.

https://www.phoronix.com/news/Chrome-Dropping-JPEG-XL-Reasons

Categories
Tech

Dashlane puts the passwords back into passkeys

When i saw that Dashlane would support passkeys i thought that was interesting. I did not understand how it would work. You can see in the picture how it works. You have to enter Dashlane master password to use passkeys. Passkeys was supposed to get rid of passwords. It is not very bad because you only have to remember one password. Passkeys works much better with Windows Hello and a fingerprint reader.

Dashlane passkey demo
Categories
Tech

Everybody wants Googles money. India also.

India fines Google $113 million, orders to permit third-party payments in Play Store

Techcrunch

https://techcrunch.com/2022/10/25/google-hit-with-113-million-fine-in-india-for-anti-competitive-practices-with-play-store-policies/

Categories
Tech

Looks like i got rid of the AVIF images in Firefox

I hope this works. I am not ready for a new image format. JPEG is good enough for me. If you go to about:config there is a “image.avif.enabled” setting for AVIF images. If you set it to false images are JPEG again on websites.

Categories
Tech

I dont understand why any body care about this terraforming thing

It looks only like a waste of money. If we cant get some small amount CO2 out of earths atmosphere it will fail do something bigger on another planet.

NASA’s Retiring Top Scientist Says We Can Terraform Mars and Maybe Venus, Too

https://science.slashdot.org/story/22/01/03/0112258/nasas-retiring-top-scientist-says-we-can-terraform-mars-and-maybe-venus-too