My dynamic dns behaves weird

  • I have builded a raspberry pi ubuntu all-in-one server (ftp, apache, ssh, vnc) and used dynamic dns to be able to use it remotely. When i try to connect it from lan ip it connects successfully from my connected phone. Also when i try connect it remotely from dynamic dns with cellular data it works great. However, in other possibilities such as wifi as lan connected phone to dyndns doesnt work and i dont know why? I have checked for if ufw is setted up but it says inactive for all. Looked at router settings, it allows lan by http and https, also wan by http and https. It doesnt block that website and also connects to router login page by wifi (lan) so there is no problem about that. Using port forwarding, it seems port forwarding doesn’t work for some reason on lan device. By the way the error i get is connection timed out. Maybe it is about router settings or something else i dont know… Can you explain this?

Weird problem with Canon AE-1, the shutter curtain goes up after advancing the lever

When I advance the lever the shutter curtain goes up by it self without releasing the shutter, the weird thing is that the shutter still fires and the curtain comes down after that certain time. This does not happen every time but after a few advances it goes up and stays there until I release the shutter. I checked the magnets all seem to work fine and also the battery level is normal.

dnd 5e – I have this character idea, but the magic is weird with it and I can't figure it out

It sounds like you're new to 5e and trying to create characters.

The approach you have chosen is that you have chosen a character concept – you want to create a character that can control metal – and you want to create it as a 5e character.

My advice is that as a first-time player, you will probably have more fun choosing one of the existing character classes and following the standard rules for character creation. Once you understand how the system should work, you can experiment with new character concepts.


The best way to develop a "character who can control metal" concept is likely to be to spice up an existing class. For example, you could take the warlock character class that normally deals damage Eldritch explosion::

A beam of crackling energy hits a creature within range. Perform a ranged attack on the target. If hit, the target suffers 1d10 power damage.

and you would season it as new telekinetic metal explosion::

A cloud of metal scraps strikes a creature in range that is hurled by your telekinetic metal control forces. Perform a ranged attack on the target. If hit, the target suffers 1d10 power damage.

If your warlock has received other spells and powers, you can taste them again if you want.

This doesn't change the game mechanics – it just changes the narrative – so your DM is more willing to let you create a character to do so.

Linux – Weird UFW protocols

While backing up my device (Ubuntu), I noticed strange UFW protocols. I am behind a router that is supposed to block these types of requests. I understand that they are using port 443, but I felt that my outgoing connections to a website should not make any incoming connections to me.

(UFW BLOCK) IN=wlp1s0 OUT= MAC=b0:fc:36:e0:0f:2d:2c:30:33:34:bf:32:08:00 SRC=151.101.64.133 DST=192.168.0.2 LEN=52 TOS=0x00 PREC=0x00 TTL=57 ID=34528 DF PROTO=TCP SPT=443 DPT=41164 WINDOW=60 RES=0x00 ACK URGP=0 
(UFW BLOCK) IN=wlp1s0 OUT= MAC=b0:fc:36:e0:0f:2d:2c:30:33:34:bf:32:08:00 SRC=104.106.196.99 DST=192.168.0.2 LEN=52 TOS=0x00 PREC=0x00 TTL=57 ID=45302 DF PROTO=TCP SPT=443 DPT=55166 WINDOW=252 RES=0x00 ACK URGP=0
(UFW BLOCK) IN=wlp1s0 OUT= MAC=b0:fc:36:e0:0f:2d:2c:30:33:34:bf:32:08:00 SRC=213.123.243.84 DST=192.168.0.2 LEN=40 TOS=0x00 PREC=0x00 TTL=123 ID=0 DF PROTO=TCP SPT=443 DPT=43648 WINDOW=0 RES=0x00 RST URGP=0

Other information:

  • There was only one Android phone and this PC was connected to the network.
  • This router was recently reset. upnp is deactivated.
  • I recently connected a USB stick to the PC, but I have no reason to believe that it was compromised since I didn't use it for anything else.
  • I have blocked all incoming connections and only allow http, https and DNS.

Weird little feather that was under a keyboard key on my laptop – is something broken?

I have a Lenovo X1 Yoga.

I noticed recently that there was a small piece of plastic under one of the keys. I assumed something fell in there. After coming out, however, it looks like a kind of "spring". Could it be something that broke off underneath? Does anyone know what it could be made of?

This thing is tiny – like 4m over.

Enter the image description here

Windows 10 – Weird Task Scheduler and Python Behavior

I'm looking for advice on how to automatically run a Python script through the Windows Task Scheduler.

The task is very simple: send TCP commands over a wireless network every day at specified times to switch devices (video projectors) on or off.

Current setup: Windows Task Scheduler runs a Python script.

Current situation:

  1. The script runs successfully when run manually
  2. The script runs successfully when the task orders execution
    is run manually in the Task Scheduler (i.e. the "Run" button for this task is clicked manually)
  3. The script will not run successfully if the task it orders is its
    The task planner automatically executes the execution: only the first
    Device is switched off
    ,
  4. The projector ON script seems to be working properly

Point 2 tells me that it is not a problem with administrator rights, that the network is set up properly, that the IP addresses are correct, etc. – but I am running out of ideas.

I tried using Wireshark to track TCP traffic on one of the faulty devices, but still didn't find anything helpful. The same applies to the Windows event viewer. I am using Windows 10.

The little script to turn off is inserted below. The turn-on script is essentially the same with a different message.

import socket

IP_1 = '192.168.0.41'
IP_2 = '192.168.0.42'
IP_3 = '192.168.0.43'

TCP_PORT = 33336
#BUFFER_SIZE = 1024
MESSAGE = 'POWER=OFFr'

s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s1.connect((IP_1, TCP_PORT))
s1.send(MESSAGE.encode())
s1.close()

s2 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s2.connect((IP_2, TCP_PORT))
s2.send(MESSAGE.encode())
s2.close()

s3 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s3.connect((IP_3, TCP_PORT))
s3.send(MESSAGE.encode())
s3.close()

Thank you for your help

wp query – Weird orderby => post__in issue

I seem to have a strange problem with WP_Query post__in I can't quite figure it out. ANY help is appreciated!

Goal / progress so far:

Overall, I want to merge two arrays and use the merged array in a WP_Query, I currently have two get_posts Queries, one has 5 posts (can be any number), the second has more than 2000 posts. I then put them together and use the merged array inside WP_Query by saying 'post__in' => $mergedArray and i want to order the posts so the 5 come first so i say then 'orderby' => 'post__in' to keep the same order as the merged array. The problem is that this only works if the $mergedArray The total number is below ~ 1340. Otherwise the result is simply empty.

I have tested many different ideas so far to narrow down the core problem. As far as I can tell at this point, it has something to do with the number of posts in my second query. You will also see that I use a custom taxonomy, but this does not seem to affect the overall actual result. The problem continues with and without tax_query,

My code:

         $queryOne = get_posts( 
            array( 
                'post_type' => 'post', 
                'fields' => 'ids',
                'posts_per_page' => -1,
                'tax_query' => array(
                    array(
                        'taxonomy' => 'blog_post_loc',
                        'field' => 'slug',
                        'terms' => 'blog-hub-page'
                    )
                ),
            )
        );
        $queryTwo = get_posts(
            array(
                'post_type' => 'post',
                'fields' => 'ids',
                'posts_per_page' => 1330, // for some reason if we go higher than 1330 (or use -1) it breaks
                'tax_query' => array(
                    array(
                        'taxonomy' => 'blog_post_loc',
                        'field' => 'slug',
                        'terms' => 'blog-hub-page',
                        'operator' => 'NOT IN'
                    )
                ),
            )
        );
        $mergedArray = array_merge($queryOne, $queryTwo);
        $blogLoop = new WP_Query( 
            array( 
                'post_type' => 'post',
                'post__in' => $mergedArray,
                'orderby' => 'post__in',
                'posts_per_page' => 9,
                'paged' => $paged,
                'has_archive' => true
            )
        );

List of tests I've done so far:

If I remove 'orderby' => 'post__in' then the wp_query will output all 2000+ posts, but they are not the order I am looking for. I have also checked the number to see if this is actually the merged array, and I can confirm this by limiting or increasing the number of posts on the first query and checking the resulting number of entries $mergedArray

If I take the arguments from the second query and put them directly into the WP_Query args then I get back all 2000+ posts as it should be.

Even if we forget to merge the two arrays for a moment, if I only use the second query and don't restrict it at all, just tell it to get all the posts, then I'll use this array in mine WP_Query by 'post__in' and keep orderby Even then, it still has the same problem where it's just empty. If I remove orderby then all posts in the array are displayed.

If I limit the number of posts in the second query to about 1300, everything works as desired (first query first, followed by the second query), but I only get about half of the total posts.

My guess:

All of this makes me think that either A) I screw up something and don't know what that is, or B) post__in and orderby The number of contributions is limited and / or there are some parameters with which I can remove this limitation.

Any help is also very welcome here. I've tested pretty much everything I can think of, and at this point, if no one else has any ideas, maybe it just has to stay at 1300 posts because I have no options, lol

Savage Worlds – Weird Science Gizmos with Flexible Options: How Do They Work?

In Savage Worlds Deluxe (SWD), the Weird Scientist can select an arcane force and build a gizmo from it.

I'm not entirely sure how exactly these gizmos should work with flexible options. Should the gizmo keep the flexibility of the original performance, or should the strange scientist stick to a version of the performance for his device?

For example, while using Boost / Lower Trait, other wizards can choose which trait to increase or decrease, and can affect more than one target at the price of one Power Point (PP) per additional target. How much of this flexibility should remain in the gizmo? I could imagine the weird scientist developing a very specific device for boost / lower trait, for example a mind cap that increases the intelligence of the wearer. Or the gizmo could be something extremely flexible, such as a general-purpose modification beam that can boost / cut every feature of a target.

The more flexible the device, the more useful it is. How much flexibility is there for the gadgets?

The example in the book shows that there are at least some restrictions on the gizmos. On page 121, Doctor Gold creates a "vibrating knife" (a knife with the power of "hitting") that can cause + 2 / + 4 damage. This is a rather restrictive use of the power. Greater flexibility is to create some "improvement gloves" that can be used to increase the power of any weapon they touch.

In this example, should a GM allow the idea of ​​"enhancement gloves"? Or should "Smite" gizmos only be combined with a single weapon?

HLSL Weird Shadow projection

I'm trying to find the right projection for my shadows, but I can't do it right.

This is part of my shader:

VertexShaderOutput VertexShaderFunction(VertexShaderInput input)
{
VertexShaderOutput output;
output.Position = float4(input.Position, 1);
output.ScreenPosition = output.Position;

output.LightPos = mul(output.Position, LightView);
output.LightPos = mul(output.LightPos, LightProjection);
return output;
}

input.ScreenPosition.xy /= input.ScreenPosition.w;
float2 texCoord = 0.5f * (float2(input.ScreenPosition.x, -input.ScreenPosition.y) + 1);
texCoord -= halfPixel;


float lZ = tex2D(
    shadowSampler,
    texCoord.xy).r;
if (shadows)
{
    float ourdepth = length(lightPosition - input.LightPos) - 0.005f;
    if (lZ < ourdepth)
        ShadowFactor = 0.5;
    else
        ShadowFactor = 1;
}

While LightView is the light view matrix, LightProjection is the light projection matrix. Light position is the position of light in the world.

It looks like this:

Enter image description here

Well, the projection is wrong. It comes straight from the shadow map onto the canvas.

How can I project it correctly?

WHAT I TRIED:

float4 LightScreenPos = input.LightPos;
LightScreenPos /= LightScreenPos.w;
//Calculate Projected UV from Light POV  
float2 LUV = 0.5f * (float2(LightScreenPos.x, -LightScreenPos.y) + 1); 
LUV -= halfPixel;
//Load the Projected Depth from the Shadow Map, do manual linear filtering 


float lZ = tex2D(
    shadowSampler,
    LUV.xy).r;
if (shadows)
{
    float ourdepth = LightScreenPos.z - 0.005f;
    if (lZ < ourdepth)
        ShadowFactor = 0.5;
    else
        ShadowFactor = 1;
}

The scene is illuminated ... but no shadows ...