macos – Photos wont save

sometimes, when I save a picture from Google, it does this thing where it tries to get me to put it somewhere… but it says there aren’t any photos. I have already tried putting it in a file or album, but nothing I have done works.

Django save files from FileField in docker container

I have a model with a FileField. My application is running in a docker container created with a dockerfile. When I save a file it is saved on my local path instead of the containers base root. But when I try to retrieve the file and send it as attachment in an email I get a file not found error. The media root directory is based on the Dockerfile’s base root. The email is built and sent in another container as an async task.
The Dockerfile looks like this:

# pull official base image
FROM python:3.9.1-alpine

# set work directory
#ENV APP_HOME=/code
#RUN mkdir $APP_HOME
#RUN mkdir $APP_HOME/static
#RUN mkdir $APP_HOME/media
#WORKDIR $APP_HOME
WORKDIR /code

# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

COPY requirements.txt /code/

RUN apk --update --upgrade --no-cache add 
    postgresql-libs make gdal-dev geos-dev g++ python3-dev cairo-dev pango-dev gdk-pixbuf-dev ttf-ubuntu-font-family

RUN 
    apk add --virtual .build-deps gcc musl-dev postgresql-dev jpeg-dev zlib-dev libffi-dev && 
    pip3 install --no-cache-dir -r /code/requirements.txt && 
    apk --purge del .build-deps

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

# copy project
COPY . /code/

I have a docker-compose file to build the image and run the container. It looks like that:

version: "3.9"

services:
  db:
    image: postgis/postgis:13-3.0-alpine
    volumes:
      - postgres_data:/var/lib/postgresql/data/
    # TODO remove ports for production
    ports:
      - "5432:5432"
    environment:
      - POSTGRES_DB=GardreamApi
      - POSTGRES_USER=GardreamApi
      - POSTGRES_PASSWORD=gardreamDBUser
  api:
    build: .
    image: gardream/api
    command: python manage.py runserver 0.0.0.0:8000 --settings=api.settings.production
    volumes:
      - .:/code
      - static:/code/static
      - media:/code/media
    ports:
      - "8000:8000"
    env_file:
      - ./.env.dev
    depends_on:
      - db
    entrypoint: /entrypoint.sh
  mail:
    image: gardream/api
    command: python manage.py qcluster --settings=api.settings.production
    depends_on:
      - api

volumes:
  postgres_data:
  static:
  media:

Anyone can help how to save the files in the Dockerfile’s base root?

8 – How can I extend the webform #states conditions to save a custom set of conditions for webform fields?

I need to store sets of conditions on the webform field level (these would then be evaluated according to the field’s submitted values within a custom submit callback).

I would like these conditions to be editable on the webform field level just like #states conditions that honour the field type for value ranges, set values, boolean etc:

enter image description here

No new custom state is necessarily needed here as this new type of condition would not be related to interacting fields. I’m merely looking for a way to expand webforms and add a custom field to each element that will allow adding (on the UI) sets of conditions based on its value(s). These sets would be part of the field’s properties and accessible in a validation / submit callback.

wallet.dat – What possible explanation could there be that Bitcoin Core on Linux Mint claims to but does not save the wallet backups?

Linux Mint. Bitcoin Core 0.21.0.

I go to “File” and “Backup wallet”, then select any location. I’ve tried with /home/a and /tmp and others.

Every time, Bitcoin Core says that the file has been successfully saved to the location I picked.

Then I look at that location in the GUI file manager, as well as in the terminal. THE WALLET .DAT BACKUP FILES ARE JUST NOT THERE!

I swear I’m not making this up and that I’ve enabled “Show hidden files” and tried everything to make sure that I’m not doing something wrong.

The files just are not saved, even though Bitcoin Core claims that they are. Why?

They are just not there on my file system. The only wallet.dat that exists is the actual one that Bitcoin Core itself saved, and it has put that in: /home/a/.var/app/org.bitcoincore.bitcoin-qt/data/blablabla/wallet.dat

At this point, having tried and asked and searched so much, I’m starting to truly question my sanity as well as the QA of Linux/Bitcoin Core.

This is even worse than various file nonsense in Windows. Is there some secret, very well hidden setting that I need to enable to “actually show the files” or something? Beyond “Show hidden files”?

sharepoint on prem – Can’t save Geolocation field

I have added a geolocation field to a SharePoint 2016 list, but am unable to save an entry when I attempt to specify data in this field. A message appears beneath it stating “A required component for using a geolocation field is not installed. Either go to the list settings page to delete this field or contact your administrator.” I do not get a correlation id and I can’t find anything in the SharePoint logs that appears to relate to this error. I have three machines in my SharePoint farm (1 FE and 2 App) and have installed SQLSysClrTypes.msi on each machine and did an IISReset on each machine and still receive the same error. Any ideas what I’m doing wrong?

plugins – save metabox value in another post when current post published or updated

I create 2 custom posts (CPT) – series and episodes, and add metabox using CMB2 cmb2-attached-posts. In series, the metabox name is episodes_id and in episodes, series_id.

In series, I can add and display episodes without problem.

The problem is, I want to update Series episodes_id with current edited Episodes when published/updated button submitted.

This is my code in functions.php:

//Save series episodes_id field when current episode published or updated
add_action( 'save_post', 'save_episode_to_series', 10, 2 );

function save_episode_to_series( $post_id ) {

   if ( get_post_type($post_id) == 'episodes' ) {

        // If this is just a revision, don't send the email.
        if ( wp_is_post_revision( $post_id ) )
        return;

        $series_id = get_post_meta($post_id, 'series_id', true);

        $episode_id = $post_id; //just to make it obvius

        update_post_meta($series_id, 'episodes_id', $episode_id);

    }

}

Help me to make it wok, thanks.

Who could donate 1 BTC to save 1 life?

Community, I need 1 BTC to complement the value of my son’s surgery. He suffers from a gastric ulcer and needs to perform surgery.

Who can help me on this mission?

I will leave my BTC address to anyone who can help:


Thank you all.

unity – Save Script Doesn’t Save Item Variables

I’ve been working on an RPG videogame, and I have been trying to implement a Save button into my game, which is supposed to save the player’s itemAmount variable, which is in another script, called ItemInformation. I retrieve the itemAmount variable at Start() by getting the script from the itemHolder GameObject. I plan to use this script in multiple GameObjects, because I use the same variable (itemAmount) with different values in different GameObjects. For some reason, I don’t receive any errors or warnings in the Console. Here is my script to the Saving System:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

public class InventorySave : MonoBehaviour
{
    // Public variables for inventory and health
    private GameObject itemHolder;
    private ItemInformation myItemAmount;

    // Initiates before the first frame
    void Start()
    {
        // Gets components for the player variables
        itemHolder = transform.gameObject;
        myItemAmount = itemHolder.GetComponent<ItemInformation>();
    }

    // Function that will be called when player saves game from pause menu
    public void SaveGame()
    {
        // Creates file to store variables
        BinaryFormatter bf = new BinaryFormatter();
        FileStream file = File.Create(Application.persistentDataPath + "/SaveData.dat");
        SaveData data = new SaveData();

        // Gets the player data
        data.itemSave = myItemAmount.itemAmount;

        // Writes player data to file and encrypts it
        bf.Serialize(file, data);
        file.Close();
    }
}

// Holds data that is to be saved
(Serializable)
class SaveData
{
    // Variables for save file
    public int itemSave;
}

dnd 5e – How to guarantee a successful DC 20 CON save to maximise benefit from the Bag of Beans Item “explosive egg”?

Planting one of the 3d4 beans from within the magic item Bag of Beans gives this result about 10% of the time:

A nest of 1d4 + 3 eggs springs up. Any creature that eats an egg must make a DC 20 Constitution saving throw. On a successful save, a creature permanently increases its lowest ability score by 1, randomly choosing among equally low scores. On a failed save, the creature takes 10d6 force damage from an internal magical explosion.

The point? One could gain up to 20 in any / all scores pending enough successful Con-saves. That said, simple & easy constitution saving throws are hard to come by. Given vast time, energy, money &/or magical resources (dragons, vampires, elf lords, etc.), how would they prepare? The 35 damage (approx.) is not the issue – a failed save appears to give no ability bonus.


Basic Question: How can one improve &/or guarantee successful constitution saving throws given infinite time, money, support &/or magic to prepare?

All tricks are welcome / hook or crook: be that by advantage, use of luck, rare feat, class or race skill, potent-portent class features, advance preparation, or stacking spells. Even the stress wish counts. Anything.

Note / FYI: This is of great interest to ├╝ltrapowerful creatures that have one ‘flaw’ ability. Take most ancient dragons (lacking dexterity), Beholders (low strength and dexterity), giants (often low dex) – or even some demon lords (Yeenoghu is a bit stupid, relatively speaking).

How to make ubuntu save files with the same names they already have?

Every time I want to save files on my computer, save-window pop-ups asking me to enter a file name and then save the file. It is really annoying because each time I just have to retype the name.