bitcoin core – Isn’t an encrypted wallet.dat automatically a “watch-only” wallet?

I have encrypted my wallet.dat outside of this computer. Now I store my wallet.dat on this computer.

If I open it in Bitcoin Core, I can view the balance but not spend it (without entering the decryption passphrase).

Doesn’t this make an encrypted wallet.dat a “watch-only” wallet? Can’t I simply safely keep this on my PC and use the RPC API to check on the balance to make sure that it still contains my coins?

Basically: What is the difference between an encrypted wallet and a “watch-only” wallet? Why would I make a “watch-only” wallet when the encrypted wallet apparently has the same functionality, and is as secure?

Assuring luggage isn’t lost with short layover

Short of arranging a longer connection (which may involve the payment of change fees) or shipping your luggage ahead (which, itself, may be result in it becoming delayed or lost), there’s not really anything you can do as a passenger to ensure your bags are transferred at your connection. They’re supposed to be, and airlines generally do a pretty good job of it these days, but it doesn’t always happen.

Which means the best thing you can do is to prepare for the possibility that your bag may not arrive with you. Carry a change of clothes. Pack essentials in your carry-on; never check medication, toiletries, electronics, or valuables. If you’re traveling with someone else, cross-pack, with some of your items in their suitcase, for redundancy if only one bag doesn’t arrive (though in the case of a tight connection, it’s likely either all or none of your bags arrive). If your bags don’t make it, sigh, file a report, and move on: you’ve prepared so it won’t be a significant problem.

As Kate Gregory notes in comments, it’s not unheard of to have the reverse problem: your bag makes the connection but you do not, especially if your flight is delayed. Preparing in this way means you’ll have necessary supplies for your extended layover while you wait for another flight.

Beyond that, consider the worst-case scenario. For many trips, the worst that will happen if your luggage is delayed is you get tired of wearing your backup clothes until your delayed luggage arrives and you go to the nearest H&M or Primark to buy something new (for which reimbursement from the airline or travel insurance may be possible). Irritating, but not a huge problem. For other trips, missing luggage could be a showstopper: weddings without wedding dresses, backpacking trips without backpacks, film productions without cameras. Trips where you immediately head into the middle of nowhere or board a ship pose difficulties in arranging to be reunited with your luggage. If that’s the case, plan ahead, allow extra time, and prepare a contingency plan.

ai – Method to make character roam map isn’t working

I’m an absolute beginner in Unreal Engine, so sorry for any strange mistakes, formatting, etc. I’m trying to make a game for a project where an enemy chases the player through a maze when it spots the player, but when there’s no player it roams around the maze. I have the following blueprint:

roamMethodSnip

Every time I run it, it has varying outcomes. Sometimes the enemy will move around a few times, then randomly stop. It won’t return a fail message or move. Other times, it will send a single fail message as soon as the program is run, then not return anything else. And other times, it won’t send anything at all or move and just stand there. It’ll also sometimes simply turn ~95 degrees to the left then stop.

There’s also the issue that the enemy takes the same path every trial, even though it’s supposed to choose a random point and move to it.

The enemy easily chases the player through the maze and won’t get stuck anywhere, but for some reason the enemy stops moving when it’s executing the roam method.

I tried adjusting the radius in the GetRandomPointInNavigableRadius part, but that didn’t affect anything. I also tried making the character smaller in case it was getting stuck on certain turns, but that also didn’t affect it. Removing the delay made it work a few times, but then it went back to not working after a few trials.

Here’s the rest of the code for reference:

fullProgramSnip

and a picture of the maze:

mazeSnip

and the enemy’s width relative to the maze path:

charWidthSnip

Thank you for any help!

centos7 – WordPress running on Nginx Loadbalancer error “The page isn’t redirecting properly”

So I have this setup for my wordpress.

All servers run on Centos 7
MariaDB 10.4.17
Php-FPM 7.4
PHP 7.4
NginX

Server 1, the Front Load Balancing server
Server 2-3-4 the wordpress application served with NginX
Server 4 MariaDB

The Nginx loadbalance setup run fine with standard info.php on each of the server 2-3-4. They switch around using the round robin.

The wordpress on its own run fine on server 2-3-4. I have to change the site URL and home URL of the wordpress in the wp-options DB to reflect the ip address of the server. So for example if I’m testing wp server 2, the site url and home url is pointed to server 2.

The second I combined all of the servers 2-3-4 under the LB with the wordpress, I got this error “The page isn’t redirecting properly”. I’m not quite sure whether there’s a certain settings that needs to be done in order to make the WP works under the Nginx load balancer. Any advise is how to fix the issue? Please help?

My LB Nginx config.

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
include /etc/nginx/conf.d/*.conf;

events {
    worker_connections 1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    root         /var/www/wp;

    sendfile        on;
    keepalive_timeout  65;



log_format upstreamlog '$server_name to : $upstream_addr ($request) '
'upstream_response_time $upstream_response_time '
'msec $msec request_time $request_time';

upstream big_server_com {
    ip_hash;
    server 192.168.1.32;
    server 192.168.1.33;
    server 192.168.1.34;



}

    server {
       server_name myserver.net wp.myserver.net;

#acces_log /var/log/nginx/access.log upstream.log;

    location ~ .php$ {

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;


     fastcgi_pass   unix:/run/php-fpm/wp.sock;
        fastcgi_index index.php;
     proxy_pass      http://big_server_com;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include /etc/nginx/fastcgi_params;
    try_files   $uri $uri/ /index.php?$query_string;
            }
            index  index.php;
        error_page  404              /404.html;
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /usr/share/nginx/html;
        }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/myserver.net/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/myserver.net/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
#    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
    ssl_dhparam /etc/ssl/certs/dhparam.pem; # managed by Certbot

}     
   server {
    if ($host = myserver.net) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = myserver.net) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        listen       80;
     server_name myserver.net wp.myserver.net;
    return 404; # managed by Certbot

}
}

My WordPress wp-config

<?php

define( 'DB_NAME', 'wordpress' );

/** MySQL database username */
define( 'DB_USER', 'admin' );

/** MySQL database password */
define( 'DB_PASSWORD', '*************' );

/** MySQL hostname */
define( 'DB_HOST', '192.168.1.34' );

/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );

/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
    define( 'AUTH_KEY',         'put your unique phrase here' );
define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
define( 'NONCE_KEY',        'put your unique phrase here' );
define( 'AUTH_SALT',        'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
define( 'NONCE_SALT',       'put your unique phrase here' );

/**#@-*/


$table_prefix = 'wp_';
define( 'WP_DEBUG', false );

/* That's all, stop editing! Happy publishing. */

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
    define( 'ABSPATH', __DIR__ . '/' );
}

/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';

define('WP_SITEURL', 'https://' . $_SERVER('HTTP_HOST'));
define('WP_HOME', 'https://' . $_SERVER('HTTP_HOST'));

Why isn’t my CPU being fully utilised for large video conversion/rendering tasks?

I bought a 24-core processor (AMD Ryzen Threadripper 2970WX) for CPU-intensive workloads like converting large media files and rendering video effects. But it generally uses only 35-55% of the total capacity, even when doing large multi-core jobs over many hours, such as:

  • Rendering video effects with Premiere Pro (with or without graphics acceleration enabled)
  • Exporting a huge file with Adobe Media Encoder (with or without graphics acceleration enabled)
  • Converting a huge video file with Handbrake

Below are screenshots taken from Process Explorer and Core Temp while converting a huge video file with Handbrake.exe. By hovering over the individual core histograms, I can see that Handbrake.exe is the main consumer of every core, but it seems to be limited to about 33-34% usage (that said, a few minutes ago it seemed to increase to 40% usage per-core for Handbrake, for a while, so it’s not completely consistent).

The same is true when using Adobe Media Encoder or Premiere Pro to do a large render job. Process Explorer looks about the same.

Is my CPU being under-utilised, and what can I do to un-throttle it if so? Or is it just something to do with how Process Explorer presents the information, and in reality I’m using the full capacity? I don’t know much about CPUs, I just want to make sure I’m getting my money’s worth!

I considered whether it could be thermal throttling, but Core Temp (2nd screenshot) shows the temperature hovering around 40°C, which doesn’t seem high to me.

Screenshot of Microsoft Process Explorer showing current CPU usage over 24 cores, averaging 48% usage

Screenshot of application "Core Temp", showing CPU temperature of 40 degrees celcius

Why isn’t the xvYCC color space seeing uptake for still photography?

To start simply, the answer is “It is used for still photography!” I’ll explain a little more in a bit, and its use is fairly niche at the moment.

The roots of xvYCC

The xvYCC encoding is, as far as I can tell, a modern enhancement to YCC encoding, or in its long form, Y’CbCr (or YCbCr, which is slightly different.) The YCC encoding is part of a family of luminance/chrominance color spaces, which are all largely rooted in the Lab* (‘Lab’ for short) color space formulated by CIE back in the 1930’s. The Lab color space is also a Luminance/Chrominance color space, wherein the luminance of a color is encoded in the L* value, while two chrominance axes of a color are encoded in the a* and b* values. The a* value encodes one half of the chrominance along the green/magenta axis, while the b* value encodes the other half of the chrominance along the blue/yellow axis. These two color axes were chosen to mimic and represent the four color primary sensitivities of the human eye, which also lie along a red/green and blue/yellow pair of axes (although true human eyesight involves a double-peak red curve, with the smaller peak occurring in the middle of the blue curve, which actually means the human eye is directly sensitive to magenta, not red…hence the green/magenta axis in Lab.)

The YUV Encoding

Y’CbCr is probably most prominently recognized in the form of YUV video encoding. The YUV encoding was specifically designed to reduce the amount of space necessary to encode color for video transmission, back in the days when bandwidth was a rather scarce commodity. Transmitting color information as RGB triplets is wasteful, since R,G,B triplets encode color with a fair amount of redundancy: all three components include luminance information as well as chrominance information, and luminance is weighted across all three components. YUV is a low-bandwidth form of Y’CbCr luminance/chrominance color encoding that does not have the wasteful redundancy of RGB encoding. YUV can consume anywhere from 2/3 down to 1/4 the bandwidth of a full RGB signal depending on the subsampling format (and, additionally, it stored the full detail image in the distinct luminance channel Y, which conveniently supported both B&W as well as Color TV signals with a single encoding format.) It should be clearly noted that YCC is not really a color space, rather it is a way of encoding RGB color information. I think a more accurate term would be a color model than a color space, and the term color model can be applied to both RGB and YUV.

From the reference linked in the original question, it appears that xvYCC is an enhanced form of Y’CbCr encoding that stores encoded luminance/chrominance color information with more bits than YUV. Instead of encoding luminance and chrominance in interleaved sets of 2-4 bits, xvYCC encodes color in modern 10-bit values.

Use in Still Photography

Intriguingly enough, there is one DSLR camera brand that does use something very similar. Canon added a new RAW format to their cameras in recent years, called sRAW. While a normal RAW image contains a direct bayer dump of full sensor data, sRAW is actually not a true RAW image format. The sRAW format does not contain bayer data, it contains processed Y’CbCr content interpolated from the underlying bayer RGBG pixel data. Similar to the TV days, sRAW aims to use more original signal information to encode luminance and chrominance data in a high precision (14-bpc), but space-saving, image format. An sRAW image can be anywhere from 40-60% the size of a RAW image, and the gains are realized by a similar interleaving and sharing of luminance information amongst multiple chrominance pairs (similar to how RGBG bayer pixels are shared to generate actual RGB pixels.)

The benefit of sRAW is that you maintain high human-perceptual color accuracy in a compact file format, and make better use of the RGBG pixels on the bayer sensor (rather than overlapped sampling that produces nasty color moire, sRAW performs non-overlapped chrominance sampling and overlapped/distributed luminance sampling.) The drawback is that it is not a true RAW format, and color information is interpolated and downsampled from the full bayer sensor. If you do not need the full RAW resolution of the camera (i.e. you only intend to print at 8×10 or 11×16), then sRAW can be a real benefit, as it can save a lot on space (as much as 60% savings over RAW), it saves faster than raw providing a higher frame rate, and makes better use of color information captured by the sensor than full resolution RAW.

sharepoint online – Default views for list folders isn’t working in new experience lists

I’m trying to set up a folder based list where the top level of the list will only contain folders of a custom type “Incident” and the incident folders will contain other types such as “Action” etc.

I have this set up but the automatic view selection isn’t working. I have created two views:

  • Incidents – set to show in “Top-level” and is set as the default view
  • Actions – set to show in folders of type “Incident” and is also set as the default view

I want it to automatically switch between those views when I go from the top level to the “Incident” level but it doesn’t. It just stays at whatever I last set it to and both views are available in both the top level folder and the incident folders.

Our site is configured to use the “new experience” and if I change the list to use the “classic experience” instead of the default one then this part works.

I don’t want to use the classic experience because other parts of it don’t work well for what we want and also we need to be able to use the list from Teams which seems to use the new experience regardless of the setting in the list.

Is there something that I am doing wrong or is it a fault in Sharepoint?

vulnerability – Isn’t it a massive security concern for Andriod to force always logged in email, and encourage a weak lock screen?

I have been baffled for years about why the general design of android is so weak from a security perspective.

To begin, it is pretty much a requirement to have a very simple lock screen pattern, since most people must access the phone quickly and frequently, often with one hand or while doing other things. It is simply unrealistic to have a long complex pin or swipe pattern. Sure, some have fingerprint sensors, but not all do. Most simple swipe patterns can be determined just by the smudge on the screen, so locking a phone is minimally secure.

That would be ok if you could secure your most important apps behind something stronger. However google pretty much forces you to be logged into email at all times. If you don’t use a throwaway account dedicated just to your phone, but rather use your real email, as in the same one you use for banking and other things, that could be big trouble.

This means realistically, anyone can steal your phone, unlock it with the smudge pattern then just get right into your email and potentially get all your bank info, perform password resets, etc.

It seems like such a blatant and unbelievable weakness, yet it exists. I don’t understand why it is designed like this.

I think it is obvious you should be able to have a basic low security swipe pattern unlock to access the phone in general to make simple calls, play games, etc. However you should be able to have your more important apps strongly locked, and should absolutely not have email logged in and accessible with no password prompt.