Time Machine – Remove the external drive from TimeMachine

I bought an external drive a few months ago but haven't used it much yet. I found out today that I forgot to exclude it from TimeMachine, and when I started adding tons of files today, TimeMachine complained that it didn't have enough space to back it up. I have excluded the external drive and it is still not backed up. When I look at the Backup.backupdb file, I can see the external drive folder, but I cannot remove it.

How can I restore this space so my main drive can be backed up? Enter the image description here

Operating systems – Why can 32-bit Windows have a maximum 16 TB swap file?

According to Microsoft https://support.microsoft.com/en-us/help/294418/comparison-of-32-bit-and-64-bit-memory-architecture-for-64-bit-edition, the swap file is 64- Bit and 32-bit Windows sizes are 256 TB and 16 TB, respectively.

In 64-bit the virtual address looks like this: https://i.stack.imgur.com/Bswtz.png

With 4 levels of 9-bit memory allocation fields and 12-bit offset within a page, 64-bit Windows can allocate a maximum of 2 ^ (9 + 9 + 9 + 9 + 12) bytes = 256 TB.

In 64-bit the virtual address looks like this: https://i.stack.imgur.com/R19zY.png

With 2 levels of 10-bit memory allocation fields and 12-bit offset within a page, 32-bit Windows should be able to allocate a maximum of 2 ^ (10 + 10 + 12) bytes = 4 GB. Then why 16 TB?

magento2 – M2: How to get the category path

When trying to generate feed, I try to get the full category path.

Our category tree. Example:

Women

-Shoes

== sneakers

We assign products directly to a subordinate category == sneakers

Only the subordinate category is displayed during the feed generation in the category area Sneakers

How do I get the full category? Women/Shoes/Sneakers

I'm trying to use a dynamic variable, but I'm still getting only a subcategory.

$categoryPath = ();
$collection = $product->getCategoryCollection();
foreach ($collection as $category) {
    $cat = $objectManager->create('MagentoCatalogModelCategory')->load($category->getEntityId());
    $categoryPath() = $cat->getName();
}

if (is_array($categoryPath)) {
    return implode(' > ', $categoryPath);
}

https://prnt.sc/rtg72d

osx – Erro and others Executar React-Native Run-Android

Configure the ambience of the Trabalho de Acordo com a documentacao react native, mas ainda sim quando dou o comando react native run-adroid or npx react native run-android, apresenta esse erro…

rafaelribeiroalves @ MacBook-Pro-de-Rafael awesomeproject% react-native run-android

info Run jetifier to migrate libraries to AndroidX. You can deactivate it with the “–no-jetifier” flag.

Jetifier found 960 files to share. With 4 workers …

info JS server is already running.

/ bin / sh: adb: command not found

info start emulator …

Error emulator could not be started. Reason: No emulators found as output from emulator -list-avds.

warn Please start an emulator manually or connect a device. Otherwise the app may not start.

Install the app …

/Users/rafaelribeiroalves/.gradle/wrapper/dists/gradle-6.0.1-all/99d3u8wxs16ndehh90lbbir67/gradle-6.0.1-all.zip could not unpack to /Users/rafaelribeiroalves/.gradle/wrapper/dists/gradle-6.0 be .1-all / 99d3u8wxs16ndehh90lbbir67.

Reason: Error opening the zip file

Exception in the thread "main" java.util.zip.ZipException: Error opening the zip file

at java.util.zip.ZipFile.open (native method)

at java.util.zip.ZipFile. (ZipFile.java:225)

at java.util.zip.ZipFile. (ZipFile.java:155)

at java.util.zip.ZipFile. (ZipFile.java:169)

at org.gradle.wrapper.Install.unzip (Install.java:219)

at org.gradle.wrapper.Install.access $ 600 (Install.java:27)

at org.gradle.wrapper.Install $ 1.call (Install.java:75)

at org.gradle.wrapper.Install $ 1.call (Install.java:48)

at org.gradle.wrapper.ExclusiveFileAccessManager.access (ExclusiveFileAccessManager.java:69)

at org.gradle.wrapper.Install.createDist (Install.java:48)

at org.gradle.wrapper.WrapperExecutor.execute (WrapperExecutor.java:107)

at org.gradle.wrapper.GradleWrapperMain.main (GradleWrapperMain.java:63)

Error installing the app failed. Make sure you have set up the Android development environment: https://reactnative.dev/docs/getting-started.html#android-development-environment. Run the CLI with the –verbose flag for more information.

Error: Command failed: ./gradlew App: installDebug -PreactNativeDevServerPort = 8081

Exception in the thread "main" java.util.zip.ZipException: Error opening the zip file

at java.util.zip.ZipFile.open (native method)

at java.util.zip.ZipFile. (ZipFile.java:225)

at java.util.zip.ZipFile. (ZipFile.java:155)

at java.util.zip.ZipFile. (ZipFile.java:169)

at org.gradle.wrapper.Install.unzip (Install.java:219)

at org.gradle.wrapper.Install.access $ 600 (Install.java:27)

at org.gradle.wrapper.Install $ 1.call (Install.java:75)

at org.gradle.wrapper.Install $ 1.call (Install.java:48)

at org.gradle.wrapper.ExclusiveFileAccessManager.access (ExclusiveFileAccessManager.java:69)

at org.gradle.wrapper.Install.createDist (Install.java:48)

at org.gradle.wrapper.WrapperExecutor.execute (WrapperExecutor.java:107)

at org.gradle.wrapper.GradleWrapperMain.main (GradleWrapperMain.java:63)

at makeError (/Users/rafaelribeiroalves/Desenvolvimento/Aplicativos/AwesomeProject/node_modules/execa/index.js:174:9)

at /Users/rafaelribeiroalves/Desenvolvimento/Aplicativos/AwesomeProject/node_modules/execa/index.js:278:16

at processTicksAndRejections (internal / process / task_queues.js: 97: 5)

at async runOnAllDevices (/ Users / rafaelribeiroalves / Desenvolvimento / Aplicativos / AwesomeProject / node_modules / @ react-native-community / cli-platform-android / build / commands / runAndroid / runOnAllDevices).

at async Command.handleAction (/Users/rafaelribeiroalves/Desenvolvimento/Aplicativos/AwesomeProject/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:186:9)

Minhas variáveis ​​de ambiente dentro do arquivo .bash_profile

export ANDROID_HOME = / Users / rafaelribeiroalves / Library / Android / Sdk
export PATH = $ PATH: $ ANDROID_HOME / emulator
export PATH = $ PATH: $ ANDROID_HOME / tools
export PATH = $ PATH: $ ANDROID_HOME / tools / bin
export PATH = $ PATH: $ ANDROID_HOME / platform-tools

Python – Check header files for namespace usage

To ensure that there are no name conflicts in our project (C++) I was asked to write a python script to check all of our header files for the appearance of a using namespace ... inside the file. If an occurrence is found, it is appended to a list and then written to a log file. It's a fairly simple script, but I think there could be some tweaks. This script runs whenever someone commits to the repository.

"""
Checks all the header files in our project to ensure there
aren't occurrences of the namespace string.

AUTHOR: Ben Antonellis
DATE: April 4th, 2020
"""

import os

namespace: str = "using namespace"
working_directory: str = os.path.dirname(os.path.realpath(__file__));
occurrences: list = ()

for file in os.listdir(working_directory):
    formatted_file = f"{working_directory}/{file}"
    with open(formatted_file, "r") as source_file:
        for line_number, line in enumerate(source_file):
            if namespace in line and file(-3:) != ".py":
                occurrences.append(f"NAMESPACE FOUND: LINE ({line_number + 1}) IN FILE {formatted_file}")

with open("logs/log.txt", "w") as log_file:
    for line in occurrences:
        log_file.write(line)

Passing arguments from the URL to the panel page block in Drupal 8

I created a view with a context filter set to a taxonomy term. I am trying to use the view block on a panel page (page manager) and pass the taxonomy term from the URL to the block. I could do this in Drupal 7, but I can't find out in D8.

The page URL is approximately / reports / term1. I want to pass term1 into the block.

For the panel page I have a URL like / reports /! (I also tried% as a placeholder). Although I have seen some recommendations to use a context to adopt the term, I have been unable to do so.

I work with Drupal 8.7.1, Panels 8.x-4.4, Page Manager 8.4-4.0.

Any suggestions on how this can be achieved?

Python – How can you access a value of a field in the database without using the attributes of the object in Django?

Is there a way to access the values ​​of the fields in the database without having to use the attributes of the object?
I mean, avoid this:

>>> from biblioteca.models import Libro
>>> libros=Libro.objects.all()
>>> for libro in libros: print(libro.titulo) # ¿como evito tener que acceder de esta manera al valor?
"el gran libro de django"

I want to avoid accessing the database fields this way to create a generic view that takes a model as a parameter and then displays the columns and rows associated with that model in a table. In its view, the attributes of the model are completely ignored.

Greece – Train from Athens to Thessaloniki: Do I need a ticket?

I have traveled by train in Europe before, but mainly in the Czech Republic, Germany and Italy. Next month I'm in Greece and I have plane tickets to Athens and from Thessaloniki. In each city, accommodation is also booked for several days. This means that I plan to get from one place to another on a certain day, but I have no particular time restrictions.

Should I book a ticket in advance or is it okay to wait until the day and buy at the train station? If I book in advance, do I commit to a specific time now?

Java import does not work. Folder not recognized

I am working on an Android project in which the Java code is stored in the src folder. The main code is saved in this folder. In the same folder there is another folder with the Beetbox class. This class must be imported in the main class. The beet box is located in the path under / ofai / music. Please help me fix this.

Import at.ofai.music.beetroot;

Probability distributions – problem of variation: How can the second moment be minimized?

This is a clearer version of a question I've posted here and I'm sticking to.

The problem: Suppose I have a probability density function $ f (x) $, defined as positive $ x $and let's write his down $ n $The non-centered moment $ x_ {n} $. Now if the mean $ x_ {1} $ is fixed what $ f (x) $ minimizes the second moment $ x_ {2} $? My intuition says that it should be an exponential distribution (or a similar form).

My attempt: I want to minimize functionality

$ J (y) = int x ^ {2} f (x) dx $

with the limitations of mean and unit integral:

$ int xf (x) dx = x_ {1} $

$ int f (x) dx = 1 $

So I have to minimize the modified function:

$ J ^ { ast} (y) = int x ^ {2} f (x) dx + alpha int xf (x) dx + beta int f (x) dx $

$ J ^ { ast} (y) = int (x ^ {2} f (x) + alpha xf (x) + beta f (x)) dx $

$ J ^ { ast} (y) = int (x ^ {2} + alpha x + beta) f (x) dx $

Applying Euler-Lagrange results in $ x ^ {2} + alpha x + beta = 0 $, Where $ f (x) $ does not appear!

So I don't know how to do it, especially to find the values ​​of $ alpha $ and $ beta $.
I also tried adding a positivity limitation $ f (x) $by replacing with $ u (x) ^ {2} $ (always positive by design), but leads to the same Euler-Lagrange equation.

Could someone help me with this? Many thanks!