検索

TVアニメ『MAO』第2クールのOPを「20th Century」が担当。TVアニメ『犬夜叉』OP・V6「CHANGE THE WORLD」のノンクレジット映像も期間限定で公開 https://news.denfaminicogamer.jp/news/2606184i #denfaminicogamer #僕らが上書きする世界 #MAO #犬夜叉 #坂本昌行 #井ノ原快彦 #高橋留美子 #ばくらば #ニュース #20th_Century #CHANGE_THE_WORLD #長野博 #V6
返信 0 · Renote 0
💬 Commented on "Unable to upload a file even though its size is within the set limit.文件大小是符合要求的,但上传失败了。": Pisces-Moze "> NginxやCDNで最大ファイルサイズが設定されていませんか?

this is my nginx config flie
i set the "client_max_body_size 2000m;"


The specific configuration files are as follows:

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=cache1:16m max_size=1g inactive=720m use_temp_path=off;

server {
listen 80;
listen [::]:80;
server_name pmoze.top;

# For SSL domain validation
root /var/www/html;
location /.well-known/acme-challenge/ { allow all; }
location /.well-known/pki-validation/ { allow all; }
location / { return 301 https://$server_name$request_uri; }
}

server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name pmoze.top;

ssl_session_timeout 1d;
ssl_session_cache shared:ssl_session_cache:10m;
ssl_session_tickets off;

# To use Let's Encrypt certificate
ssl_certificate /etc/nginx/ssl/3.pem;
ssl_certificate_key /etc/nginx/ssl/4.key;


# SSL protocol settings
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
ssl_stapling on;
ssl_stapling_verify on;

# Change to your upload limit
client_max_body_size 2000m;

# Proxy to Node
location / {
set $backend "http://play.pmoze.top:8081";
proxy_pass $backend;
proxy_ssl_server_name on;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_redirect off;

# If it's behind another reverse proxy or CDN, remove the following.
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 https;

# For WebSocket
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

# Cache settings
proxy_cache cache1;
proxy_cache_lock on;
proxy_cache_use_stale updating;
proxy_force_ranges on;
add_header X-Cache $upstream_cache_status;
}
}" https://github.com/misskey-dev/misskey/issues/16583#issuecomment-3338973939
返信 0 · Renote 0

返信元:

For a given line, y = mx, that crosses points (1,1) and (10, mx + 10), I wish to bow the function as an exponential curve. How can I customize the amount of bending and still have it cross (1,1) and (10, mx + 10) ?

To transform a linear function y = mx into an exponential curve that still passes through the points (1, 1) and (10, mx + 10), you can use an exponential function of the form y = a \cdot b^x + c .

Here's a step-by-step approach to customize the amount of bending while ensuring the curve passes through the given points:

1. Identify the general form of the exponential function:

   y = a \cdot b^x + c
   


2. Use the given points to set up equations:
- For the point (1, 1):

     1 = a \cdot b^1 + c
     

- For the point (10, mx + 10):

     mx + 10 = a \cdot b^{10} + c
     


3. **Solve for the constants a, b, and c:**
- From the first point (1, 1):

     1 = a \cdot b + c \quad \text{(Equation 1)}
     

- From the second point (10, mx + 10):

     mx + 10 = a \cdot b^{10} + c \quad \text{(Equation 2)}
     


4. **Subtract Equation 1 from Equation 2 to eliminate c:**

   mx + 10 - 1 = a \cdot b^{10} - a \cdot b
   


   mx + 9 = a \cdot (b^{10} - b)
   


5. **Solve for a:**

   a = \frac{mx + 9}{b^{10} - b}
   


6. **Substitute a back into Equation 1 to solve for c:**

   1 = \left(\frac{mx + 9}{b^{10} - b}\right) \cdot b + c
   


   c = 1 - \left(\frac{mx + 9}{b^{10} - b}\right) \cdot b
   


7. **Customize the amount of bending by choosing different values for b:**
- The base b controls the curvature of the exponential function.
- For b > 1, the curve will bend upwards.
- For 0 < b < 1, the curve will bend downwards.

8. Example calculation:
- Choose a value for b, say b = 1.1 for an upward bend.
- Calculate a and c using the chosen b.

By following these steps, you can create an exponential curve that passes through the points (1, 1) and (10, mx + 10) and customize the amount of bending by adjusting the value of b.
返信 1 · Renote 0
You can blend two TIFF images with identical dimensions using the Pillow library in Python. Below is a sample script that takes two TIFF images and combines them using customizable transparency levels for both images.

### Prerequisites

Make sure you have Pillow installed, as mentioned earlier:

bash
pip install Pillow


### Python Script to Superimpose Two TIFF Images

Here is a script that superimposes two TIFF images with customizable transparency:

python
from PIL import Image

def blend_images(image_path1, image_path2, output_path, alpha1, alpha2):
    # Open the images and convert them to RGBA
    img1 = Image.open(image_path1).convert("RGBA")
    img2 = Image.open(image_path2).convert("RGBA")

    # Ensure both images have the same size
    if img1.size != img2.size:
        raise ValueError("Both images must have the same dimensions.")

    # Create a new image for the blended output
    blended_image = Image.new("RGBA", img1.size)

    # Blend the images
    for x in range(img1.width):
        for y in range(img1.height):
            # Get the pixel values of both images
            pixel1 = img1.getpixel((x, y))
            pixel2 = img2.getpixel((x, y))

            # Apply the alpha for each image
            blended_pixel = (
                int(pixel1[0] * alpha1 + pixel2[0] * alpha2),
                int(pixel1[1] * alpha1 + pixel2[1] * alpha2),
                int(pixel1[2] * alpha1 + pixel2[2] * alpha2),
                min(int(pixel1[3] * alpha1 + pixel2[3] * alpha2), 255)  # Ensure alpha is clamped
            )
            blended_image.putpixel((x, y), blended_pixel)

    # Save the blended image
    blended_image.save(output_path, "TIFF")
    print(f"Blended image saved to: {output_path}")

if __name__ == "__main__":
    # Define the paths to your TIFF images
    input_image1 = "image1.tiff"  # Change this to your first input file
    input_image2 = "image2.tiff"  # Change this to your second input file
    output_image = "blended_image.tiff"  # Change this to desired output file

    # Define alpha values for both images (0 to 1)
    alpha1 = 0.5  # Transparency of the first image
    alpha2 = 0.5  # Transparency of the second image

    # Blend the images
    blend_images(input_image1, input_image2, output_image, alpha1, alpha2)
返信 0 · Renote 0
How can we live with #change when even #traditions of the annual cycle no longer work? #Myths and #rituals talk about #nature and #biodiversity of ancient times. But with #climateChange, we are confronted with the phenomena of #shifting baselines and "planetary #amnesia". Listen to how we could redefine the #storytelling connections of time and space in our changing #landscapes. My new episode of #NatureMatchCuts #podcast ▶️ https://naturematchcuts.net #Reconnecting #biodiversityLoss #ClimateDiary
  • d2a6c17c4414676f.jpg
返信 0 · Renote 0
PLEASE TAKE A MOMENT TO READ A POEM THAT HAS COST ME A LOT OF EFFORT AND PAIN IT SHOULD SERVE ONLY ONE PURPOSE IT SHOULD SHAKE YOU UP PHYSICAL AND PSYCHOLOGICAL VIOLENCE IN A RELATIONSHIP CAN HAVE FATAL CONSEQUENCES LET US SHOW AS A COMMUNITY, AS HUMAN BEINGS, THAT WE WILL NOT TURN A BLIND EYE TO THIS GIVE THESE WOMEN A VOICE, BECAUSE THEIRS IS SILENCED, HAS FEAR #AltText #hope #future #love #tolerance #kindness #violence #noviolence #betterworld #help #change #hatred #awareness #kindness
  • 78c905e62fd4ad64.jpeg
返信 0 · Renote 0
Another day passes and I ask myself... Have I changed something? Have I given my love to someone? Have I helped someone? Have I made someone laugh? Have I countered hatred and intolerance? Have I seen the beauty that others overlook? Yes I have. Please let us fight together for a better world. I must not and cannot give up hope. We must not.. Help me with this. ❤️ to everyone out there. si_irini #hope #future #tolerance #love #help #change #hatred #intolerance #betterworld
  • 56d2e7376110d1cc.jpeg
返信 0 · Renote 0
#Introduction #newhere #NatureMatchCuts is a #podcast and #community for #naturelovers and all who search #reconnecting to #nature. It's an adventure to #change #perspectives using #NatureWriting #art #culturalheritage and #science Language: English. Infos at https://steadyhq.com/naturematchcuts and https://naturematchcuts.net We can find and implement #solutions for #future because we are driven to protect what we love from the bottom of our hearts. #biodiversity #ecology #climatecrisis #naturepark
  • 171b54c637ecfcdf.jpeg
返信 0 · Renote 0