Get-ChildItem Recurse works on PowerShell 5.1 but not on 7.2.1

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
I have created simple script to find all files of a given name on my C:\ disk. It is working on Windows PowerShell 5.1, but not on PowerShell 7.2.1.
Create empty file demo-2021-12-20.txt in C:\ps_test

and run this script.ps1:
Get-ChildItem -Path "C:\" -Filter "demo-2021*.txt" `
    -Recurse -Force -ErrorAction SilentlyContinue |
    ForEach-Object {
        $output = $_.Name + "`t" + $_.FullName
        Write-Host $output
    }

Expected behavior
demo-2021-12-20.txt     C:\ps_test\demo-2021-12-20.txt

Actual behavior
Line |
   1 |  Get-ChildItem -Path "C:\" -Filter "demo-2021*.txt" `
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The system cannot find the path specified.

Error details
Error occurs when using PowerShell 7.2.1 but not when using Windows PowerShell 5.1.19041.1320 (same machine).

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}

Yes, I've pasted my script here without changes.
Is your script running to the end without errors?
When I search for different names, it sometimes gives me one result, and after a while it stops with the system cannot find the path specified error. Not only prints error, but also stops finding files, which makes my script useless on 7.2.1 :(

I've copied demo-2021-12-20.txt to root C:\ directory, so there are two copies now. First one is being found by both PowerShell versions, but the second txt file is being found only by PowerShell 5.1. PowerShell 7.2.1 throws error and stops.

The system cannot find the path specified.

This error tells nothing about actual path. It is not C:\ but something deeper found by -Recurse flag.
How can I check which exact path it is complaining about?

I think I have found the source of this error. I have paths on my disk that are over 260 characters in length. It was pain to figure it out, but in the end I got it simply by filtering whole disk recursive with "*". There is issue already for it: https://github.com/PowerShell/PowerShell/issues/16123
Thank you @iSazonov for testing! I'm closing this issue and I'll test it with 7.3 :)

Start with
Get-ChildItem -Path "C:\" -Filter "demo-2021*.txt"  -recurse

Without any of the other parts.  I'm guessing there is a problem directory which threw a non-terminating error before and is a terminating error now.
You can try
Get-ChildItem   -path C:\ -Directory | foreach {write-host $_ ; Get-ChildItem  $_ -filter "demo-2021*.txt" -Recurse}

And that well tell you which directory is causing the problem.


Fix optin/opt_in mismatch

Hi!
optin here (see "data" field) doesn't match opt_in here.
Could you please fix the mismatch?

slightly highjacking this is issue:
"opt_in" isn't really a good name for a preference.
For reference "opt in" and "opt out" are qualifiers:

An opt-in setting is one that is false by default
An opt-out setting is one that is true by default

A better name should reflect what the preference actually controls: personalization based on browsing activity
I'd suggest : use_browsing_for_personalization

Fine for me!

If the examples will match the documentation, then use_browsing_for_personalization will be fine too.
Could you please also check version / last_version_implemented [mismatch]](https://github.com/criteo/addressable-network-proposals/blob/main/mvp-spec/dsp-api.md#identity-object) in identity specification?

Sorry for bothering you. Could you please share your expectations about when https://github.com/criteo/addressable-network-proposals/pull/51 will be merged, or, at least, is it already finished, in general terms?

@kyeliseyev The goal of this pull request was to adapt the Transmission API for DSP document accordingly to previous feedback like avoiding duplicated data in the OpenRTB request. So it is not finished in general terms.  I guess we still need some tweaks for consistency across all documents and continue to improve it based on the opened issues.

Could you please also check version / last_version_implemented in identity specification?

https://github.com/criteo/addressable-network-proposals/pull/73


IPv4 address selection

Select IPv4 source address according to destination address. This is needed in multi network interface setup.

Added more text to 1st commit description.


SVO recording via API on machine without GPU

I have a ZED Mini camera and I'm trying to use the Python API to record an SVO file on an old laptop without GPU. Camera initialization fails with "NO GPU DETECTED" and there are further error printouts:

CUDA error at Camera.cpp:94 code=999(cudaErrorUnknown) "void __cdecl sl::Camera::close(void)"
CUDA error at Camera.cpp:148 code=999(cudaErrorUnknown) "void __cdecl sl::Camera::close(void)"
CUDA error at Camera.cpp:183 code=999(cudaErrorUnknown) "void __cdecl sl::Camera::close(void)"
CUDA error at sl_zed/CameraUtils.hpp:691 code=999(cudaErrorUnknown) "void __cdecl sl::ObjectsDetectorHandler::clear(void)"
CUDA error at sl_zed/CameraUtils.hpp:707 code=999(cudaErrorUnknown) "void __cdecl sl::ObjectsDetectorHandler::clear(void)"
CUDA error at sl_zed/CameraUtils.hpp:713 code=999(cudaErrorUnknown) "void __cdecl sl::ObjectsDetectorHandler::clear(void)"
CUDA error at sl_zed/CameraUtils.hpp:716 code=999(cudaErrorUnknown) "void __cdecl sl::ObjectsDetectorHandler::clear(void)"
CUDA error at sl_zed/CameraUtils.hpp:718 code=999(cudaErrorUnknown) "void __cdecl sl::ObjectsDetectorHandler::clear(void)"
CUDA error at sl_zed/CameraUtils.hpp:726 code=999(cudaErrorUnknown) "void __cdecl sl::ObjectsDetectorHandler::clear(void)"
CUDA error at Camera.cpp:198 code=999(cudaErrorUnknown) "void __cdecl sl::Camera::close(void)"

I'm following the example from https://www.stereolabs.com/docs/video/recording/#using-the-recording-api , setting the compression mode to sl.SVO_COMPRESSION_MODE.LOSSLESS, which is supposed to be CPU based. Also setting depth mode to sl.DEPTH_MODE.NONE to make absolutely sure ZED doesn't attempt to use the GPU. The error seems to come from object detection, which AFAIU is not even available on ZED Mini. Can the code be updated to remove unnecessary dependencies?
Code snippets:
self.camera = sl.Camera()

init_params = sl.InitParameters()
init_params.depth_mode = sl.DEPTH_MODE.NONE
init_params.camera_resolution = sl.RESOLUTION.HD720
init_params.camera_fps = 15

error_code = self.camera.open(init_params)
if error_code != sl.ERROR_CODE.SUCCESS:
    print("failed to start the camera:", error_code)

recording_params = sl.RecordingParameters(
   video_filename=...,
   compression_mode=sl.SVO_COMPRESSION_MODE.LOSSLESS,
)

error_code = self.camera.enable_recording(recording_params)
if error_code != sl.ERROR_CODE.SUCCESS:
   print("failed to enable recording:", error_code)

The alternative is to use the ZED Explorer tool, which works on this old laptop, but is CPU intensive and cannot be customized to save less frequently, eg at 1 FPS.

The ZED SDK can't be used without a CUDA-compatible GPU, even just for recording.
ZED Explorer is the only way, and even then it's advised to have an Nvidia GPU to be able to use the hardware accelerator to encode in H264/5. Otherwise, as you saw the image-based encoding is CPU heavy. The LOSSY (based on jpeg) should be faster to encode than lossless (png or zstd based) if that's an acceptable option.

Hello @adujardin,
It's been more than a year after this Issue but I have the same need : record from a ZED on a lightweight edge hardware that doesn't have GPU and  postprocess it later on with GPU-enabled hardware.
The goal would be to be able to use the ZED with minimum video acquisition costs, and GPU hardware is costly.
Has there been any changes on that since the issue was closed ? When you say recording is CPU intense without GPU, could you be a bit more specific ?
CPU cadences have gone a way up and with multicores and specific CPU-oriented frameworks, a lot has been made to alleviate the GPU burden/costs.
Following another lead, we are considering using the ZED on a GPU-enabled smartphone. Would you recommend that path and do you have any documentation/tutorial/dummy projects/good examples in this direction ? It could be Android or iOS or even better Flutter.
Many thanks !

Hi @Fuzl,
There have been no major changes since then. The image-based compressions are heavy for both the CPU and storage as it as encodes fairly big images 1920x1080x2 for instance at 30fps, depending on the mode and platform in PNG, JPEG or ZSTD.
The only way to record a compatible ZED SDK format is to record an SVO, either :

using the SDK with a CUDA-capable GPU on an X86 Desktop or an Nvidia Jetson, no other configurations are supported for hardware-accelerated encoding currently

or the ZED Explorer tool on any X86 machine (or Nvidia Jetson). In that case, it will try to detect the presence of a compatible Nvidia GPU and failover on the CPU encoder-based options.

Smartphones or other architecture will not work for SVO recording. It is also worth noting that acquiring the USB 3.0 stream at full speed may be very challenging on mobile devices if not impossible.
That said, it is technically possible to record a video of the side-by-side images with the compression of your choice and a custom implementation, but this will not be compatible with the ZED SDK.

We don't support any other ARM boards than Nvidia Jetsons, I guess if it's aarch64 you could try the jetson installer but I think a lot of specific libraries will be missing. If it's an option I think it may be easier to buy an Nvidia Jetson, like a Nano devkit, you'll then be able to run the ZED SDK on it. Alternatively, an entry-level intel NUC or a laptop can work well for recording SVOs.
Please note that you'll need an Nvidia GPU PC to process the SVO and run the ZED SDK, regardless of the compression mode used or the ZED SDK settings.


"Size" parameter always required for Market orders

According to https://docs.gdax.com/#place-a-new-order:
MARKET ORDER PARAMETERS

Param   Description
size    [optional]* Desired amount in BTC
funds   [optional]* Desired amount of quote currency to use

* One of size or funds is _required.

So, the following should work to place an order:
var buyParams = {
    'funds': 1, // USD,
    'currency': 'BTC',
    'type': 'market',
};
authedClient.buy(buyParams, callback);

Anyway, it looks like size is always required rather than just one of size or funds.

I put up a simple PR for this guy.


Part of Functions in ProblemEditor Page

Finish tag, provided code, submitted code spec, resource spec, and compilation script components in ProblemEditor page.
But the appearance is not exactly the same as spec yet.

Could you take a snapshot of its appearance for our PM @Chaoyuuu ?


Support more small morphosyntactic variations

Wikipedia redirects and anchors cover most of the frequent morphosyntactic variants (e.g. plurial), but not in an exhaustive manner - we coud add a process (or pre-process) to support them.

see also #72 when morphosyntactic variant is identify as wikidata label, but not in the wikipedia vocabulary.

For some language and some more intermediary Wikipedia in term of size, like Arabic, it seems that the existing "redirects" clearly do not provide enough morphosyntactic variants.


Schrodinger's sentence structure

The sentence "you can name give the file you work with any name you like" is trying to both be

you can give the file you work with any name you like

And

you can name the file you work with anything you like

While both are valid in theory, in-reality we do need to actually pick one. I went with the former.

:+1:


identify languages based on rfc5646

identify languages based on rfc5646
close #211

I did not test if the android framework just pick that up or if it break things ... so that still has to be done


cell shader refactor and optimization

check for state flag in states matrix before even calling the tracks function?
make track_type bitflags so we can combine multiple track_types in one tracks call?
think about a way to do track coordinates consistent with requested turn (= how to combine track coordinates when multiple turns are overlapping)
smarter composition - e.g. already calculate final color in tracks function?

this could be a lot nicer if we had struct support (supported in godot 4.0)
Structs could store the various sdfs coming out of a track_connection() call, or could store common info about a track connection turn that we could reuse in the various track_type constructions

currently, the plan is to do composition one level deeper in tracks() call. This function calls track_connection() which construct all various sdfs for a single turn. tracks() then combines them properly, being able to apply track_coordinate aware effects since it still can distinguish the different turns.


OdspDriverUrlResolver2 is missing unit tests

The ODSPDriverUrlResolver2 is based on some code we found useful from an internal repo that was ported to the shared layer. However, the unit tests were not brought over. We should port the unit tests to the odsp-driver package

There's a larger problem of testing in the ODSP Driver layer. Making this a bigger issue and moving it to Next so we can resource it correctly.

There's a larger problem of testing in the ODSP Driver layer. Making this a bigger issue and moving it to Next so we can resource it correctly.

Completely agreed! I think we need more test coverage and a proper "inner dev loop" within the FF repo. This one item should be cheap in that we have tests in the internal repo that just need to be moved over here

Please migrate the existing test as well.


Update Dockerfile to buster-slim

I think for the testing purpose the slim base is worth trying. :)

Do you know the size difference between buster and buster-slim?

well, it's not that big difference but is is one. Just built them:
REPOSITORY                            TAG                 IMAGE ID            CREATED             SIZE
geerlingguy/docker-debian10-ansible   slim                8d63e5cb0e69        2 minutes ago       580MB
geerlingguy/docker-debian10-ansible   latest              e9c21b0734ff        4 minutes ago       644MB

Where does the size difference come from?

Hi,
I just did some tests with the buster-slim Base, the final Image is 64MB smaller. Not much, but still good.
geerlingguy/docker-debian10-ansible      latest   f05854a47f88   7 days ago       900MB
geerlingguy/docker-debian10-ansible        slim   51d10b9f9bb9   42 seconds ago   836MB

Where the size difference comes from:

These tags are an experiment in providing a slimmer base (removing some extra files that are normally not necessary within containers, such as man pages and documentation), and are definitely subject to change. - https://hub.docker.com/_/debian

@geerlingguy Can we revert this?
Reasoning:

We are trying to simulate real-world Debian systems - buster:slim is hardly closer to what the majority of people are running as their production Debian systems.
It has broken the above Java installs
It has broken the ansible_default_ipv4 ansible fact, as the ip command is not present (this is based on my tests, not science or code, but I think the ip command is used for getting the fact
We are just going to be hunting for bugs as they come, increasing the maintenance costs
It is slightly less than 10% increase in size to have the standard Debian image instead of buster:slim. Is this even relevant nowadays? Even older computers have a great disk capacity and as far as speed of download goes, I think the speed up won't be major for majority of the people (the ones with bad internet connectivity are still going to be downloading 90% of the image just as slow)

@fourstepper - I like the trimming in size as long as it's not too disruptive; it may not seem like too much, but 10% over the course of the 4-5 years this image is active isn't nothing.
But feel free to open a follow-up PR reverting this change and the man folder addition and I'll reconsider. It's 10% of the uncompressed size; compressed it's even a smaller difference.

@geerlingguy I have sent the PR just now - thank you for considering this. Once a person pulls the image, they usually don't update it that often to justify the maintenance price, I think.
All the best!


Translations don't work

Hello
My site is hosted at an address like: https://mydomain.com/mysite.
But my site is accessible at: https://mysite.eu
If I configure and use Typemill with the address "https://mydomain.com/mysite", Typemill is automatically in French. Very good.
If I configure and use Typemill with the address "https://mysite.eu", Typemill remains in English (no translations work).
Can you help me ? Thank you.

hard to say, I suppose it depends on how you configured the site, maybe you have some details? Do you use a proxy for that?
I assign it to @iusvar because he is more into the details how the translation part works :)

I'm sorry but I didn't understand what the two different addresses are and obviously I can't test this situation ...

Hello
Thank you for your answers and sorry if I was not clear enough in my request.
My site is accessible through the address https://myblogname.eu
But in fact, this domain name (myblogname.eu) points to a subfolder of my WEB hosting (shared WEB Hosting) in which the files are located (ie www/typemill)
This same subfolder (ie www/typemill) is also accessible by the address «https://mysitename.webhost.com/typemill/»
If I configure and use Typemill with the address "https://mysitename.webhost.com/typemill/", Typemill is automatically in French. Very good.
If I configure and use Typemill with the address "https://myblogname.eu", Typemill remains in English (no translations work).
I hope I have been clearer this time.
Thank you for your work and I will immediately support it with a donation.

Thanks for your more detailed answer.
I too will have to go into more detail on my previous answer.
I understand your configuration but I am unable to recreate it in order to test a suitable solution. I work exclusively locally for my needs (in fact I don't have any website) so I don't know how to proceed.
I'm sorry for you and for @trendschau too.

Thank you @iusvar, and thank you @michelangeli-dev for the donation!
I run several websites with Typemill but I never faced a problem like this. I also checked the code and I don't see anything suspicious here. So it's not possible for me to reproduce and fix the error right now.
Maybe you can activate the error reporting in you installation (under settings -> developers) and then check (e.g. in your error logfiles) if you see anything? Maybe the system cannot load the translation files for some reasons, but again, it is not possible to analyze an error without reproducing it.
At the end it might help to contact the hoster and ask for advice?

I'll activate the error report and look for clues.
I also thought that the system with the address rewrite no longer found the translation file.
So I looked at the codes, but my skills are not enough. I'm having trouble figuring out the encoding of a yaml file!
@trendschau, and @iusvar :
Thank you for your help and your CMS.

I was able to enable site translation by creating an fr.yaml file in the theme's "languages => user" folder.
The translation therefore seems to work except for the administrator part of the site.
Do you want my "fr.yaml" file to be included in a future Typemill update?

I have identified the problem and the translation files are loaded now.
When calling the translation in the "system.php" file, "tm" or "setup" corresponds for me to "$ pieces [1]" and not to "$ pieces [0]".
I think as the domain name "myblogname.eu" points to the folder "www / typemill" when the function "$ uri-> getPath ())" returns the path, "tm" or "setup" is not the root.
I'm not sure if I'm using the right terms.
But, the "page management" and "admin" parts are now translated.
You can close the discussion !!
Thank you for taking your time to help me.

PS: my "fr.yaml" file is available on my Github page

Hi @michelangeli-dev great that you found a solution and thank you for describing the solution to us! Also thank you for the translation file, we will check it on your Github page :)


Fix typo in README.md

Description of changes
Added missing 'o' in README.md
Things done

[ ] Tested the changes in your own NixOS Configuration
[ ] Tested the changes end-to-end by using your fork of nixos-hardware and
importing it via <nixos-hardware> or Flake input

@mergify queue


[community] Pebblo: Policy-based semantic context in PebbloRetrievalQA

Description: Policy-based semantic enforcement in PebbloRetrievalQA. With this update, they can configure policy-based semantic enforcement via the Pebblo cloud dashboard.
Issue: NA
Dependencies: NA
Tests: Added

@eyurtsev Please review

@eyurtsev @ccurme Please review

one question, and if you're interested in maintaining this integration without us in the loop, we'd love to get an integration package out! Future PRs against langchain would just be {docs updates, as well as registering your package in libs/packages.yml, deprecating this community integration in favor of your integration package}
Here's the guide, and if you have questions, feel free to leave them in the comments on those pages so others can see them! https://python.langchain.com/docs/contributing/how_to/integrations/

@efriis Thank you for the suggestion! Just to confirm, when you mention the integration package, do you mean creating it as a separate package under langchain-ai/langchain-pebblo, or should it be under our own GitHub account, like daxa-ai/langchain-pebblo?

the latter! daxa-ai/langchain-pebblo
if that works for you, feel free to close this PR and do the work there! If you think you can replace the threads with a TTL implementation here in the next 5-7 days, feel free to keep this open and push that in, but if you're at all considering the external package would recommend that!

will close and assume external package is the way forward based on conversation!


Add log timestamp

Adds iso timestamps in front of relevant log messages to allow for more fain-grained benchmarking and monitoring.

there's a lot of whitespace changes unfortunately...

Ah, my bad, VSCode auto-remove trailing whitespace on save... I'll revert the spaces.

Maybe add a file option to this PR at the same time?
A helper method that writes the logline to cout and to a file (defined from arguments, maybe a paramter for rolling log files too?)
It's fine and all with using | or >, >> but that breaks SIGINT options with ctrl+c. so you have to use kill -SIGINT instead.

yeah I would prefer the timestamps to be in a log file, not on the terminal


[Q] Lots of new empty sweeps created

Seeing this in the terminal:
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/2v8il4ij
Create sweep with ID: e3iewba6
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/e3iewba6
Create sweep with ID: 61e91obd
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/61e91obd
Create sweep with ID: w41a3yej
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/w41a3yej
Create sweep with ID: cerop646
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/cerop646
  0%|                                                                                | 1/4101 [00:18<21:26:26, 18.83s/it]Create sweep with ID: 3z1dlr18
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/3z1dlr18
Create sweep with ID: qa9vxkbt
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/qa9vxkbt
Create sweep with ID: 1uaic891
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/1uaic891
Create sweep with ID: yflplztn
Sweep URL: https://wandb.ai/sergeyf/SAD_sweep_roberta_v2022_04_07/sweeps/yflplztn

All of these are empty. Here is my complete code:
import torch

torch.multiprocessing.set_sharing_strategy("file_system")

import os

os.environ["WANDB_WATCH"] = "false"
os.environ["TOKENIZERS_PARALLELISM"] = "false"
from multiprocess import freeze_support
import pandas as pd
import numpy as np
from simpletransformers.classification import ClassificationModel, ClassificationArgs
import wandb
import gc
from sklearn.metrics import f1_score

# load data and split randomly into train/val/test
df = pd.read_excel("SAD_v1.xlsx")[["sentence", "top_label"]]
df.columns = ["text", "labels"]
labels = list(df["labels"].unique())
num_labels = len(labels)
df = df.sample(frac=1, random_state=42, replace=False)
n_train = int(0.6 * len(df))
n_val = int(0.2 * len(df))
n_test = len(df) - n_val - n_train
split = np.array(["train"] * n_train + ["val"] * n_val + ["test"] * n_test)

# WANDB
wandb_project_name = "SAD_sweep_roberta_v2022_04_07"

sweep_config = {
    "name": "roberta-base",
    "method": "grid",  # bayes, grid, random
    "metric": {"name": "f1_score", "goal": "maximize"},
    "parameters": {
        "learning_rate": {"values": [5e-6, 5e-5, 4e-5]},
        "num_train_epochs": {"values": [2, 3]},
    },
}

sweep_id = wandb.sweep(sweep_config, project=wandb_project_name)

def f1(y_true, y_pred):
    return f1_score(y_true, y_pred, average="weighted")

def train():
    wandb.init(project=wandb_project_name)
    model_args = ClassificationArgs()
    model_args.scheduler = "cosine_schedule_with_warmup"
    model_args.num_train_epochs = wandb.config.num_train_epochs
    model_args.learning_rate = wandb.config.learning_rate
    model_args.evaluate_during_training = False
    # model_args.evaluate_during_training_steps = 1000
    # model_args.evaluate_during_training_verbose = True
    model_args.reprocess_input_data = True
    model_args.overwrite_output_dir = True
    model_args.manual_seed = 4
    model_args.train_batch_size = 32
    model_args.eval_batch_size = 128
    model_args.labels_list = labels
    model_args.wandb_project = wandb_project_name

    # "roberta", "roberta-large"
    # "roberta", "roberta-base"
    model = ClassificationModel(
        "roberta", "roberta-base", args=model_args, use_cuda=True, num_labels=num_labels, sweep_config=wandb.config
    )

    model.train_model(df[split == "train"], f1_score=f1)

    # eval
    result_vl, model_outputs_vl, wrong_predictions_vl = model.eval_model(df[split == "val"], f1_score=f1)

    wandb.log({"F1": result_vl["f1_score"], "MCC": result_vl["mcc"]})
    del model
    del model_args
    gc.collect()
    torch.cuda.empty_cache()
    wandb.join()
[SAD_v1.xlsx](https://github.com/wandb/client/files/8446567/SAD_v1.xlsx)

if __name__ == "__main__":
    freeze_support()
    wandb.agent(sweep_id, train)

Dataset is attached if you'd like to reproduce exactly.

Here are the empty sweeps:

Hi @sergeyf,
I'm sorry you are facing this. Just so that I understand you correctly, the script above is generating multiple empty sweeps, but only one of the generated sweeps contains actual runs?
A link to the project where you see this would be incredibly helpful to investigate this.
This is likely happening due to multiple calls being made to wandb.sweep, likely because of the use of multiprocessing. The call to wandb.sweep should be placed inside the if __name__ == '__main__' safety check. Please let me know if this does not work and I will investigate further.
Thanks,
Ramit

Thank you for your help. Moving sweep_id = wandb.sweep(sweep_config, project=wandb_project_name) into the if __name__ == '__main__' fixed the issue.


Virus windows?

I have win10
When i started service-install.bat i saw ten console windows per second. open-close, open-close. WTF ?? It looks like a virus.
Why did you do everything so stupidly? Why bother hacking something. After all, you could make a local DNS(with forward traffic to remote DNS). Which I can specify in the interface settings as <IP_ADDRESS>

Read the documentation. Which intentionally doesn't mention service-install.bat.

Got the same problem untill I read wiki. But for what then these .bat files needed, if they won't work?


Lock body rotation on some axes (x and z)

Hi everyone,
First of all, what a lib ! Really great work @schteppe, I can't imagine what was the amount of work required to develop that library !
I've searched for answers but I didn't found anything :/
What I want to do is to lock my body rotation on axes x and z (I want to prevent my character to fall when jumping or colliding with others bodies).
Thank you for your help

I've found a solution to prevent my character falling by setting the angularDamping to 1.
I can continue my game with this solution but if someone knows how to lock axes, feel free to share :)

In my character demo I'm using the boxBody.fixedRotation = true; on the CANNON.Body character capsule. Then I'm just rotating the model attached to the capsule to my liking.
I think I also started with the same idea as yours, locking the body on X and Z axes, but either I didn't find a solution or there was a problem with it, so I just used this.

Cool demo.
On Sat, Jul 6, 2019 at 9:29 AM swift502<EMAIL_ADDRESS>wrote:

In my character demo http://jblaha.art/examples/characters.html I'm
using the boxBody.fixedRotation = true; on the CANNON.Body character
capsule. Then I'm just rotating the model attached to the capsule to my
liking.
I think I also started with the same idea as yours, locking the body on X
and Z axes, but either I didn't find a solution or there was a problem with
it, so I just used this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/schteppe/cannon.js/issues/422?email_source=notifications&email_token=AAF32QE4BOLYV6YD45XMI33P6DCAPA5CNFSM4H6SRDBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZK4Q6I#issuecomment-508938361,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAF32QBZUG453EXQKH54LOTP6DCAPANCNFSM4H6SRDBA
.

@swift502 That is a cool demo!  Great job!

@swift502 awesome solution ! Just starting with game dev, capsule with 3 spheres (like in your own project) is pretty clever ! Thank you :)

As specified in this spectrum post (from pmndrs/use-cannon), it's possible to set a angularFactor in your body object to specify the dimensions you want to be available for rotation.


Made minor correction

Codecov Report

Merging #26 (ababfda) into master (abba3f3) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
- Coverage   86.84%   86.81%   -0.04%
==========================================
  Files          10        9       -1
  Lines         418      417       -1
==========================================
- Hits          363      362       -1
  Misses         55       55

Impacted Files
Coverage Δ

src/Peacock.jl

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update abba3f3...ababfda. Read the comment docs.

thanks!


Made generator set field to the initial value if null

Hello Kevin Moore, from all the serialization libraries for dart out there, yours was always my favorite. But for me, it was lacking 2 major features: an ignore annotation and keep initial values if the deserialized field is null. I created two branches in this fork which include these features. With them, it's all I wanted from a serialization library for dart for a long time and I use it with joy already, but I want to share my joy with the community.
I want to add examples, tests, how to guides in the readme and so on. I also have to run the tests, which is difficult for me under windows, because the tools don't work so well and I'm lacking time to do it on Linux.
The reason for those pull requests is that I want to get in touch with you first and get feedback on how to change or rename certain things.
This pull request is for the feature that the generator sets the field to the initial value if the deserialized value is missing or null.
Without it all values are written to the fields even if the deserialized value is null or not found:
Column _$ColumnFromJson(Map<String, dynamic> json) =>
    new Column(containerId: json['containerId'] as String)
      ..settings =
          new ColumnSettings.fromJson(json['settings'] as Map<String, dynamic>);

With it, it checks if the deserialized value is null and if so it assigns the value that was already assigned to it.
Column _$ColumnFromJson(Map<String, dynamic> json) {
  Column column = new Column(containerId: json['containerId'] as String);
  column
    ..settings =
        new ColumnSettings.fromJson(json['settings'] as Map<String, dynamic>) ??
            column.settings;
  return column;
}

What I want to know is the following:

This feature currently ignores the nullable annotation at all. This is because I don't know if there should be another name for the annotation as nullable already has the purpose to accept null values and let the user do the handling.
same as includeIfNull = true, nullable = false causes _writeJsonValueNaive to be true and reduces the code size as null checks can be omitted. But in this case, nullable = false increases the code size of the FromJson factory constructor. this can't be used as in ..settings = valueFromJson ?? this.settings; because this.settings doesn't exist in the mixing but in the class that uses the mixin. An extra object is needed for that and like that it's not a single statement anymore which adds the return statement and the curly braces.
it would also be possible or even more performant to generate if(valueFromJson != null) blocks, because an extra assignment could be prevented like this but it would also increase the code size.

@AlexanderJohr – are you running with this one, too?

I guess I better close it for now and try it again, when my first pull request is finished.


ScrollDragController should dispatch creation and disposal events.

Description

Adds ScrollDragController creation and disposal events dispatching for memory leak tracking as part of https://github.com/flutter/flutter/issues/137311

Tests

Updates scroll_activity_test.dart to test ScrollDragController object creation and disposal events dispatching.

Pre-launch Checklist

[X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[X] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[X] I signed the [CLA].
[X] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[X] I added new tests to check the change I am making, or this PR is [test-exempt].
[X] All existing and new tests are passing.

cc @polina-c

This PR should hold till design discussion for leak_tracker (early December)


Help communicating with a device

I reached out on the beginners channel on Discord, but I haven't been able to get help there, so I thought maybe I could open an issue on here. First, I want to say that I tested against a unix device, and this worked as shown in the example; the issue I'm having is with a network appliance. I first tried using the channel.exec() function, but this gave me an exit code of 127, and the trace logs showed sh: show: command not found. The command I'm trying to send is show version, so I started thinking that this function was doing more than just sending messages back and forth across the channel. I thought that  perhaps the channel.write() or channel.write_all() would be better suited for my purposes. However, when using these functions, the channel hangs as though it is never done writing, and I'm not sure how to get it to end. I would appreciate any help you can provide.
using exec:
fn main() {
    let tcp = TcpStream::connect(ip).unwrap();
    let mut sess = Session::new().unwrap();
    sess.trace(TraceFlags::all());
    sess.set_tcp_stream(tcp);
    sess.handshake().unwrap();
    sess.userauth_password(username, password).unwrap();
    assert!(sess.authenticated());
    let mut channel = sess.channel_session().unwrap();
    channel.exec("show version").unwrap();
    let mut s = String::new();
    channel.read_to_string(&mut s).unwrap();
    println!("{}", s);
    channel.wait_close().unwrap();
   println!("{}", s);```
}

using write[_all]:
fn main() {
    let tcp = TcpStream::connect("").unwrap();
    let mut sess = Session::new().unwrap();
    sess.set_tcp_stream(tcp);
    sess.handshake().unwrap();
    sess.userauth_password("", "").unwrap();
    assert!(sess.authenticated());
    let mut channel = sess.channel_session().unwrap();
    channel.write(b"show version\n").unwrap();
    // nothing below here is executed and program hangs
    println!("{}", "called write_all");
    channel.flush().unwrap();
    let mut s = String::new();
    channel.read_to_string(&mut s).unwrap();
    println!("{}", s);
    channel.wait_close().unwrap();
}

An example that works using python:
import time

from paramiko import SSHClient, AutoAddPolicy

RECIEVE_BYTES = 4096

def read_from_channel(channel):
    response = []
    time.sleep(.2)
    while channel.recv_ready():
        data = channel.recv(RECIEVE_BYTES)
        response.append(data.decode())
        time.sleep(.2)
    return "".join(response)

client = SSHClient()
client.set_missing_host_key_policy(AutoAddPolicy())
client.connect("", username="", password="")
channel = client.invoke_shell()
# clear channel
read_from_channel(channel)
channel.sendall("show version\n")
version_data = read_from_channel(channel)
channel.close()
client.close()

print(version_data)

so I did find out that I needed to add channel.shell().unwrap(); before calling channel.write(message) in order to have available bytes to write across the channel. However, doing this results in the same issue as using channel.exec(message) where the response is -vbash: line 1: show: command not found. I'm not sure why bash is present since the remote system is not bash, nor why it says show: command not found when it should be sending show version, and the normal response from the remote system would be something like incomplete command.


Menu item "Scan QR Code" should show a QR code instead of Barcode

The UI of c:geo is slightly inconsistent for the menu item icon for "scan QR code" (main screen): it shows a barcode. However, for reasons of visual consistency, it should show a (simplified) QR code. This allows users not familiar with the term QR code to better understand what this function is for and to easily identify QR codes when they see them.

"QR code" is no longer used there. It's "geo code" in the current development stream, mainly because people didn't know what to scan at all with the app.

See 3c82f15f68a60cd47c122c660c58219b265f7437

Argh ... so I need to rewrite the manual on this topic.

I reopened this because it's not a geocode, it's a QR-Code that we scan. "Scan geo code" sounds like "Scan the gc-code that is written on this paper", so OCR.
I vote for reverting the change and switch to a QR-code icon.

...and I just asked a tiny, small question! :)

No. We don't scan a QR code. We scan any code (bar codes also work, if you happen to get a geo code encoded as such) and we accept the scan result if it is a geo code. Having "tech speak" at the UI is one of the things which are typical to most software products and which make the user experience quite bad.

The UI shall always express what the user can do, not how it is implemented.

Yes, and if it's "scan geo code" then I expect to scan an hand- or computer-written geocode in text format, not a datamatrix/qr-code with a geocode inside.

I'd prefer qr icon and "scan geocode"

You can do that. And it will work fine, given you have an OCR app like Google goggles installed that is registered for the ZXING scan intent.
When the label was "Scan QR code", we got questions every some days like "Why should I scan a QR code from the app?" and even bad market ratings like "should concentrate on caching, instead includes a useless barcode scanner now" because. That's much worse then your far-from-reality example of smartphone users expecting to do OCR scans.

I'm not completly pro or con for one of the solutions. Personally i'd prefer "Scan QR code" + QR-icon because if the label would be "Scan geocode" i didn't know what to scan exactly. BUT if there are many users that don't understand "Scan QR code" (as Bananeweizen wrote) a good compromise could be "Scan geocode" + QR-icon.

Bananeweizen gave me same background information about what scanning functionality and processing of the scanned data he currently has in place with c:geo.
From my perspective as I user I aggree that "QR code" is much too technical and in fact does not reflect that the exact type of scanner code doesn't matter.
However, as I user I don't understand what a "geo code" is either: does it carry some GPS coordinates? Actually, it could, but c:geo won't understand it. So, currently only GC codes are understood. Either we call the thing "Scan geocache code" or we go for the generic "Scan geocaching code" and then add the functionality to detect and handle at least WGS84 coordinates.
Scanning such a WGS84 geocaching code instead of a geocaching code containing a GC code should take the user to the "navigate anywhere" activity. In fact, this would be really useful for some geocaches which already deploy this method: point your mobile at the code, scan, navigate.

Can you give an example of such a cache having coordinates as code?

In Darmstadt there is a multi that has this as one stage. But this is the only one I remember.

Another one in Erlangen, the QR code sticks next to a T-elekom phone box.

One is on a Litfaßsäule in Hannover

I found 3-5 of such caches with qr-codes.


Unable to stub router-view and router-link

Subject of the issue
When stubbing <router-view> and <router-link> in tests this warning is reported:
    console.warn node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:40
      [Vue warn]: Failed to resolve component: router-link
        at <Anonymous ref="VTU_COMPONENT" >
        at <VTUROOT>
    console.warn node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:40
      [Vue warn]: Failed to resolve component: router-view
        at <Anonymous ref="VTU_COMPONENT" >
        at <VTUROOT>

Steps to reproduce
git clone https://github.com/EgidioCaprino/vue-router-link-test-bug.git && cd vue-router-link-test-bug && npm i && npm run test:unit

This is the test where the warning is printed.
Expected behaviour
It should stub <router-view> and <router-link> and print no warning.
Actual behaviour
<router-view> and <router-link> are not stubbed and a warning is reported.
Possible Solution
Live with the warning.

It cannot stub what it does not know about. You will need to install Vue Router so it knows what to stub out.
Alternatively you could stub them globally yourself:
const localVue  = createLocalVue()
localVue.component('RouterView', {
  render: h => h('div')
})

mount(Foo, {
  localVue
})

Or something like that.
There is a few options. Let me know if you can't get any working. For now I will close this, I don't think this is an issue - you cannot stub out a component that has not been registered at some point prior.


启动前端提示错误：falcon-dashboard started..., pid=cat: var/app.pid: No such file or directory

我也遇到了相同的问题 ，我的日志内容为
`2019-09-05 15:43:17 +0000] [59786] [INFO] Starting gunicorn 19.9.0
[2019-09-05 15:43:17 +0000] [59786] [INFO] Listening at: http://<IP_ADDRESS>:8081 (59786)
[2019-09-05 15:43:17 +0000] [59786] [INFO] Using worker: sync
[2019-09-05 15:43:17 +0000] [59792] [INFO] Booting worker with pid: 59792
[2019-09-05 15:43:17 +0000] [59792] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/usr/local/open-falcon/dashboard/wsgi.py", line 28, in
from rrd import app
File "/usr/local/open-falcon/dashboard/rrd/init.py", line 19, in
from flask import Flask, request
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/init.py", line 21, in
from .app import Flask, Request, Response
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 23, in
from werkzeug.routing import BuildError, Map, RequestRedirect, Rule
SyntaxError: unqualified exec is not allowed in function '_compile_builder' it contains a nested function with free variables (routing.py, line 948)
[2019-09-05 15:43:17 +0000] [59792] [INFO] Worker exiting (pid: 59792)
[2019-09-05 15:43:17 +0000] [59786] [INFO] Shutting down: Master
[2019-09-05 15:43:17 +0000] [59786] [INFO] Reason: Worker failed to boot.
`

同样的问题

只能用python2，又不支持python3， python2还报错

fixed https://github.com/open-falcon/dashboard/pull/140  @jinteng123 @Dollyn

解决了吗

启动openfalcon 的dashboard 服务时，出现错误；
falcon-dashboard started..., pid=cat: var/app.pid: No such file or directory
报错日志是：
[2019-10-30 11:39:58 +0800] [5506] [INFO] Starting gunicorn 19.9.0
[2019-10-30 11:39:58 +0800] [5506] [INFO] Listening at: http://<IP_ADDRESS>:8082 (5506)
[2019-10-30 11:39:58 +0800] [5506] [INFO] Using worker: sync
[2019-10-30 11:39:58 +0800] [5510] [INFO] Booting worker with pid: 5510
[2019-10-30 11:39:58 +0800] [5510] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/open-falcon/dashboard/env/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/home/open-falcon/dashboard/env/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/home/open-falcon/dashboard/env/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/home/open-falcon/dashboard/env/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/home/open-falcon/dashboard/env/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/home/open-falcon/dashboard/env/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/home/open-falcon/dashboard/env/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/home/open-falcon/dashboard/wsgi.py", line 23
print "running without local python env"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("running without local python env")?
[2019-10-30 11:39:58 +0800] [5510] [INFO] Worker exiting (pid: 5510)
[2019-10-30 11:39:58 +0800] [5506] [INFO] Shutting down: Master
[2019-10-30 11:39:58 +0800] [5506] [INFO] Reason: Worker failed to boot.
求大佬解决，十万分感谢。

我也遇到了相同的问题 ，我的日志内容为
`2019-09-05 15:43:17 +0000] [59786] [INFO] Starting gunicorn 19.9.0
[2019-09-05 15:43:17 +0000] [59786] [INFO] Listening at: http://<IP_ADDRESS>:8081 (59786)
[2019-09-05 15:43:17 +0000] [59786] [INFO] Using worker: sync
[2019-09-05 15:43:17 +0000] [59792] [INFO] Booting worker with pid: 59792
[2019-09-05 15:43:17 +0000] [59792] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/usr/local/open-falcon/dashboard/wsgi.py", line 28, in
from rrd import app
File "/usr/local/open-falcon/dashboard/rrd/init.py", line 19, in
from flask import Flask, request
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/init.py", line 21, in
from .app import Flask, Request, Response
File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 23, in
from werkzeug.routing import BuildError, Map, RequestRedirect, Rule
SyntaxError: unqualified exec is not allowed in function '_compile_builder' it contains a nested function with free variables (routing.py, line 948)
[2019-09-05 15:43:17 +0000] [59792] [INFO] Worker exiting (pid: 59792)
[2019-09-05 15:43:17 +0000] [59786] [INFO] Shutting down: Master
[2019-09-05 15:43:17 +0000] [59786] [INFO] Reason: Worker failed to boot.
`

哈喽  你的问题解决了吗  我也遇到了这个问题，麻烦告诉我是咋解决的吗

我也遇到了相同的问题 ，我的日志内容为
2019-09-05 15:43:17 +0000] [59786] [INFO] Starting gunicorn 19.9.0 [2019-09-05 15:43:17 +0000] [59786] [INFO] Listening at: http://<IP_ADDRESS>:8081 (59786) [2019-09-05 15:43:17 +0000] [59786] [INFO] Using worker: sync [2019-09-05 15:43:17 +0000] [59792] [INFO] Booting worker with pid: 59792 [2019-09-05 15:43:17 +0000] [59792] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/gunicorn/util.py", line 350, in import_app **import**(module) File "/usr/local/open-falcon/dashboard/wsgi.py", line 28, in from rrd import app File "/usr/local/open-falcon/dashboard/rrd/**init**.py", line 19, in from flask import Flask, request File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/**init**.py", line 21, in from .app import Flask, Request, Response File "/usr/local/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 23, in from werkzeug.routing import BuildError, Map, RequestRedirect, Rule SyntaxError: unqualified exec is not allowed in function '_compile_builder' it contains a nested function with free variables (routing.py, line 948) [2019-09-05 15:43:17 +0000] [59792] [INFO] Worker exiting (pid: 59792) [2019-09-05 15:43:17 +0000] [59786] [INFO] Shutting down: Master [2019-09-05 15:43:17 +0000] [59786] [INFO] Reason: Worker failed to boot.

哈喽 你的问题解决了吗 我也遇到了这个问题，麻烦告诉我是咋解决的吗

我是把python升级从2.6到2.7后就可以了


Disable sudo on unit tests

This seems to make unit tests on travis somewhat more stable
Signed-off-by: Lamont Granquist<EMAIL_ADDRESS>

:-1: #6888 is the real fix, we should just backport that.

Oh yep. Even better


error running yarn test

I ran yarntest.txt and got the following error. please advice
yarntest.txt

I have this problem too.  I'm a newb...

Just starting out but also getting this error


Incoherent EOL

Mix of windows and linux end of lines, VS always complaining on it
We may want to add a .gitattribute to solve this

I'll just merge this for now. Generally line endings shouldn't get muddled up - I think this probably happened when I edited a file checked out on an osx file system from a windows VM.

Yep - we need a gittattribute to automate this

feel free to do a PR :-) I didn't quickly see how to achieve what is needed. Note that I need to checkout with LF on linux/mac because I'm usually working in that environment. I think the problem occurred when I checked out with LF and then edited in Windows via a mounted disk. I think I just need to remember to not do that.


WIP: Update to Governance doc to reflect current working model

PR Summary
With some changes in the PowerShell Team, need to update Governance doc to reflect current working model being used
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[ ] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] User-facing Documentation needed

[ ] Issue filed - Issue link:

Testing - New and feature

[x] Not Applicable or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[ ] Add [feature] if the change is significant or affects feature tests

@joeyaiello can you approve based on today's @PowerShell/powershell-committee meeting?


app 照片我很不习惯，为何icon都是统一不显示照片的图案？

Translates to "App photos I'm not used to, why icons are uniform do not display photos of the pattern".
@manju-345 Which page are you referring to on docs?

Translates to "App photos I'm not used to, why icons are uniform do not display photos of the pattern".
@manju-345 Which page are you referring to on docs?


Update Posts “being-a-hope-merchant”

Automatically generated by Netlify CMS

👷 Deploy Preview for shimmering-marigold-4f5b4a processing.

Name
Link

🔨 Latest commit
5b04317c3236f9dfa696630245c893766d08b131

🔍 Latest deploy log
https://app.netlify.com/sites/shimmering-marigold-4f5b4a/deploys/64ff865db40a230008f2251d


Exception in thread

Dear Authors, great work and the results seem to be impressive. Unfortunately I can't get the videopose.py with your provided demo video running as I am facing following error:
the video is 25.051 f/s
Loading YOLO model..
Loading pose model from joints_detectors/Alphapose/models/sppe/duc_se.pth
Start pose estimation...
  0%|                                                                                | 0/338 [00:00<?, ?it/s]Exception in thread Thread-4:
Traceback (most recent call last):
  File "/home/sebastian/anaconda3/envs/video_to_pose3D/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/sebastian/anaconda3/envs/video_to_pose3D/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/sebastian/video-to-pose3D/joints_detectors/Alphapose/dataloader.py", line 678, in update
    img = vis_frame(orig_img, result)
  File "/home/sebastian/video-to-pose3D/joints_detectors/Alphapose/fn.py", line 219, in vis_frame
    polygon = cv2.ellipse2Poly((int(mX), int(mY)), (int(length / 2), stickwidth), int(angle), 0, 360, 1)
TypeError: only integer tensors of a single element can be converted to an index
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████| 338/338 [00:22<00:00, 15.10it/s]
===========================> Rendering remaining images in the queue...
===========================> If this step takes too long, you can enable the --vis_fast flag to use fast rendering (real-time).

I waited for long time but this step does not proceed (the --vis_fast flag does not seem to exist anymore). I am not sure if its a threading or visualization issue - do you have any idea how to solve this?
Thanks and best, Sebastian

The TypeError seems caused by the version incompatibility of numpy or opencv.
What I'm using:

opencv-python      <IP_ADDRESS>
numpy                     1.16.4

Try to downgrade or upgrade these two packages in your environment.

Thanks for the quick response @zh-plus !
opencv-python==<IP_ADDRESS> seems not to be available anymore (ERROR: Could not find a version that satisfies the requirement opencv-python==<IP_ADDRESS> (from versions: <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>) ) and i get the same error with other opencv-python versions.
Can you maybe share your requirements.txt  or post your conda env list?


Deprecate create

Description of problem
tanzu apps workload create feature functionality is duplicated by tanzu apps workload apply
The create command was originally created under an assumption that using an apply command wouldn't be an intuitive verb.
Simplifying the command-set will provide greater value than the, minimal, overhead required to learn which apps workload... command to use for creating/updating workloads on TAP.
Proposed solution

deprecate tanzu apps workload create
remove create from the output of tanzu apps workload --help
display deprecation notice in command output when tanzu apps workload create is invoked
update the documentation for create with a deprecated message directly below the command heading
add the deprecation message to release notes
inform PM when included in the release so the PM can execute additional communications

I'd like to work on it.


The shell action in v2.0.5 not working as before (v1.10.1)

Hey, it's me again.
Sorry for being annoying, I hope you don't mind my bug reports. 😬
I'm trying to post one issue at a time, the blockers first... 😅

I'm running the latest version from GitHub (pipx install git+https://github.com/tfeldmann/organize.git).
The shell is not behaving the same way it did before.
This is my rule, converted from v1.10.1 and enhanced with the new syntax from v2.0.5:
rules:
  - name: "Remove some hidden files and then remove empty dirs"
    locations: ~/
    filters:
      - name:
          startswith: .bash_history
    actions:
      - shell:
          cmd: "fd -uu -0 -tf -i .DS_Store ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 rm -v"
          ignore_errors: true
      - echo: "{shell.output}"
      - shell:
          cmd: "fd -uu -0 -tf -i .nomedia ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 rm -v"
          ignore_errors: true
      - echo: "{shell.output}"
      - shell:
          cmd: "find -f ~/Downloads -f ~/Desktop -f ~/Documents ~/OneDrive -mindepth 1 -type d -empty -print -delete"
          ignore_errors: true
      - echo: "{shell.output}"

This is the output:
❯ organize run
organize 2.0.5
Config: "/Users/aa/Library/Application Support/organize/config.yaml"

⚙ Remove some hidden files and then remove empty dirs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
/Users/aa
  .bash_history
    - (shell) $ fd -uu -0 -tf -i .DS_Store ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 rm -v
    - (echo) error: Found argument '-v' which wasn't expected, or isn't valid in this context
    - (echo)
    - (echo) USAGE:
    - (echo)     fd [FLAGS/OPTIONS] [<pattern>] [<path>...]
    - (echo)
    - (echo) For more information try --help
    - (shell) $ fd -uu -0 -tf -i .nomedia ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 rm -v
    - (echo) error: Found argument '-v' which wasn't expected, or isn't valid in this context
    - (echo)
    - (echo) USAGE:
    - (echo)     fd [FLAGS/OPTIONS] [<pattern>] [<path>...]
    - (echo)
    - (echo) For more information try --help
    - (shell) $ find -f ~/Downloads -f ~/Desktop -f ~/Documents ~/OneDrive -mindepth 1 -type d -empty -print -delete
    - (echo) find: ~/Downloads: No such file or directory
    - (echo) find: ~/Desktop: No such file or directory
    - (echo) find: ~/Documents: No such file or directory
    - (echo) find: ~/OneDrive: No such file or directory

success 1 / fail 0

If I run the command manually, exactly as in the rule, it works:
❯ fd -uu -0 -tf -i .DS_Store ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 rm -v
/Users/aa/Desktop/.DS_Store
/Users/aa/OneDrive/.DS_Store

Somehow shell expansion is not working, the ~/ path is not being expanded.
All these directories exist, despite the error in the output:
    - (echo) find: ~/Downloads: No such file or directory
    - (echo) find: ~/Desktop: No such file or directory
    - (echo) find: ~/Documents: No such file or directory
    - (echo) find: ~/OneDrive: No such file or directory

UPDATE: I tried using the full path instead of ~/.
It kind of works, but commands with pipes (|) still fail.
⚙ Remove some hidden files and then remove empty dirs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
/Users/aa
  .bash_history
    - (shell) $ fd -uu -0 -tf -i .DS_Store /Users/aa/Downloads /Users/aa/Desktop /Users/aa/OneDrive /Users/aa/Documents | xargs -0 rm -v
    - (echo) error: Found argument '-v' which wasn't expected, or isn't valid in this context
    - (echo)
    - (echo) USAGE:
    - (echo)     fd [FLAGS/OPTIONS] [<pattern>] [<path>...]
    - (echo)
    - (echo) For more information try --help
    - (shell) $ fd -uu -0 -tf -i .nomedia /Users/aa/Downloads /Users/aa/Desktop /Users/aa/OneDrive /Users/aa/Documents | xargs -0 rm -v
    - (echo) error: Found argument '-v' which wasn't expected, or isn't valid in this context
    - (echo)
    - (echo) USAGE:
    - (echo)     fd [FLAGS/OPTIONS] [<pattern>] [<path>...]
    - (echo)
    - (echo) For more information try --help
    - (shell) $ find -f /Users/aa/Downloads -f /Users/aa/Desktop -f /Users/aa/Documents /Users/aa/OneDrive -mindepth 1 -type d -empty -print -delete
    - (echo) /Users/aa/OneDrive/Pictures/Screenshots
    - (echo) /Users/aa/OneDrive/Pictures/WhatsApp Animated Gifs

I didn't want to hardcode /Users/<username>.
I run organize with different users but the same config.yaml.

@andreoliwa - You might be able to use the environment variable of $USER instead of ~
Such as the two examples below:
- echo: "/Users/{env.USER}/"
or
actions:
  - move:
      dest: /Users/{env.USER}/Downloads/Media/

This should be fixed in v2.0.6. Can you try it?

And thank you for the bug reports! They really help 👍

Oops, got a bug in there! Please wait before testing

Yeah, something was fishy... good thing I used echo when I saw it was stuck on the "organizing" message.
I think it was about to remove all my files (or maybe it already removed some 😱 ):
⚙ Remove some hidden files and then remove empty dirs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
/Users/aa
  .bash_history
    - (shell) $ fd -uu -0 -tf -i .DS_Store ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 echo rm -v
    - (echo) ./Downloads
    - (echo) ./Documents
    - (echo) ./Movies
    - (echo) ./Applications
    - (echo) ./DataGripProjects
    - (echo) ./Postman
    - (echo) ./Code
    - (echo) ./Library
    - (echo) ./Desktop
    - (echo) ./Public
    - (echo) ./Pictures
    - (echo) ./OneDrive
    - (echo) ./Applications/JetBrains Toolbox
    (...)

Yep that went very wrong!! I hope nothing's lost?

I quickly checked the files, I didn't find anything missing yet. 😌
I'm getting a different error now.
I saw this error yesterday, don't know how to reproduce it:
"ERROR! 'shell' is undefined"
❯ organize sim
organize 2.0.7
Config: "/Users/aa/Library/Application Support/organize/config.yaml"
Warning: root path '/Users/aa/OneDrive/Pictures/Facebook' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/WhatsApp Animated Gifs' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Samsung Gallery' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Facebook' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/WhatsApp Animated Gifs' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Samsung Gallery' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Facebook' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/WhatsApp Animated Gifs' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Samsung Gallery' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Facebook' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/WhatsApp Animated Gifs' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Samsung Gallery' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Classify' does not exist
Warning: root path '/Users/aa/OneDrive/Pictures/Organize' does not exist

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ SIMULATION                                                                                │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

⚙ Remove some hidden files and then remove empty dirs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
/Users/aa
  .bash_history
    - (shell) $ fd -uu -0 -tf -i .DS_Store ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 echo rm -v
    - (echo) ERROR! 'shell' is undefined

I'm so glad to hear that! Which python version are you on?

Please try the 2.0.8. 2.0.7 is broken

I upgraded to 2.0.8.
I'm still getting the same 'shell' is undefined" error, as if the shell` action is not being called. 🤔
⚙ Remove some hidden files and then remove empty dirs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
/Users/aa
  .bash_history
    - (shell) $ fd -uu -0 -tf -i .DS_Store ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 echo rm -v
    - (echo) ERROR! 'shell' is undefined

Which python version are you on?

Python 3.9.9
❯ { pipx list --include-injected | rg -A 2 organize; python -V; }
   package organize-tool 2.0.8, Python 3.9.9
    - organize
    Injected Packages:
      - textract 1.6.4
Python 3.9.9

That's strange. Can you post your full rule? Does this happen only in simulation?

I could reproduce this with echo: "{shell.output}" in simulation. Because shell command is not run and the placeholder is not filled. I'm thinking about setting shell.outputto** simulation **` in this case?

Now it's working! 🎉
I's using the latest version from PyPI:
❯ organize --version
organize, version 2.0.8

❯ organize run
organize 2.0.8
Config: "/Users/aa/Library/Application Support/organize/config.yaml"

⚙ Remove some hidden files and then remove empty dirs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
/Users/aa
  .bash_history
    - (shell) $ fd -uu -0 -tf -i .DS_Store ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 rm -v
    - (echo) /Users/aa/Documents/.DS_Store
    - (echo) /Users/aa/OneDrive/Pictures/.DS_Store
    - (echo) /Users/aa/OneDrive/.DS_Store
    - (shell) $ fd -uu -0 -tf -i .nomedia ~/Downloads ~/Desktop ~/OneDrive ~/Documents | xargs -0 rm -v
    - (echo) /Users/aa/Downloads/.nomedia
    - (shell) $ find -f ~/Downloads -f ~/Desktop -f ~/Documents ~/OneDrive -mindepth 1 -type d -empty -print -delete
    - (echo) /Users/aa/Downloads/untitled folder

That's strange. Can you post your full rule? Does this happen only in simulation?

My bad, you're right... the ERROR! 'shell' is undefined only shows in simulation. 🙈

I'm thinking about setting shell.output to ** simulation ** in this case?

Yes, that is a good workaround. 👍🏻

One more thing: is there a way to show the current output of the shell command being executed instead of ⠴ organizing with the animated icon?
now the output only shows after the command is over.
If it's a long-running command, I don't see what's going on.
If I remember well, it worked like this in v1.10.1.
I can also open a separate issue for this.

I'm glad it's working now 👍 In the next version you'll be able to specify the value of {shell.output} in the simulation (** simulation ** by default).
Just a note:  Are you deleting these .DS_Store for every file you find?
You can basically do something like this:
rules:
  - locations:
      - path: ~/Desktop/
        system_exclude_files: []
    subfolders: true
    filters:
      - name: .DS_Store
    actions:
      - trash

And as of v2, organize can now delete empty directories, too...

One more thing: is there a way to show the current output of the shell command being executed instead of ⠴ organizing with the animated icon?

This is how it should be, but I have to admit I didn't test with long running commands. I'll look into that!

Just a note: Are you deleting these .DS_Store for every file you find?
You can basically do something like this:
And as of v2, organize can now delete empty directories, too...

Yes, I tried the new syntax as well. 🙂
rules:
  - name: "Delete .DS_Store"
    locations:
      - path: ~/Documents
        system_exclude_files: []
      - path: ~/Downloads/
        system_exclude_files: []
      - path: ~/Desktop/
        system_exclude_files: []
      - path: ~/Library/Mobile Documents/com~apple~QuickTimePlayerX/Documents
        system_exclude_files: []
      - path: ~/OneDrive/
        system_exclude_files: []
    subfolders: true
    filters:
      - name: .DS_Store
    actions:
      - trash

I kept using the shell action to test it in v2.0.x.
And also because find is still a bit faster in this case (3 times)... 😅
I'm planning to rewrite or remove these shell actions.

but I have to admit I didn't test with long running commands. I'll look into that!

Thanks! 🙏🏻
And also many thanks for the super-fast answers, fixes and new releases! 💪🏻

How about giving the users an option to decide which shell they want to use to execute the shell commands ? Shell examples for Linux can be bash, zsh, etc.
Why am I saying so ?
As far as I have seen, Python automatically uses sh (on Linux) for executing commands in subprocess.run(...) (and other similar functions/methods of subprocess) when shell=True. But, users generally write commands which are tested and run properly on bash (or some other shell) and not tried on sh. Thus resulting in unexpected outcomes at runtime.
Following is the console output when I used subprocess.run(..., shell=True)
>>> import subprocess
>>> subprocess.run('pstree -aps $$ ; ps', shell=True)
systemd,1 rhgb --switched-root --system --deserialize 31
  └─systemd,1075 --user
      └─plasmashell,1232 --no-respawn
          └─konsole,16832
              └─zsh,16849
                  └─python3,16919
                      └─sh,16952 -c pstree -aps $$ ; ps     👈 See this, sh -c "..." is used
                          └─pstree,16953 -aps 16952
    PID TTY          TIME CMD
  16849 pts/1    00:00:00 zsh
  16919 pts/1    00:00:00 python3
  16952 pts/1    00:00:00 ps
CompletedProcess(args='pstree -aps $$ ; ps', returncode=0)
>>>

Secondly, giving the user an option to decide the shell will ensure determinism at runtime about which shell is being used to execute the commands they write in the config file and how they are interpreted.

Valid points, but can't you do subprocess("bash somescript.sh", shell=True)?


wandb: Expose training parameters

This change sends all the training parameters to wandb.ai when that is used instead of TensorBoard (by default ie. if log_tracker_config is not specified).
Now they show up in the Runs table, so it helps to get a better understanding of what the difference is between runs.
It also uses the model's name as run name to give more context.

This is a re-implementation of #792.

This wouldn't affect normal workflow if not using wandb, that is because the extra configs are passed within the ['wandb'] key of the configs. This also is not a breaking change for wandb users since the extra arguments can just be ignored on the wandb side.
However i agree that some filtering is necessary, can i revise this PR to be in line with #1123 ?

This change sends all the training parameters to wandb.ai when that is used instead of TensorBoard (by default ie. if log_tracker_config is not specified).
Now they show up in the Runs table, so it helps to get a better understanding of what the difference is between runs. It also uses the model's name as run name to give more context.

This is a re-implementation of #792.

HI
Seems like SDXL_Train.py has changed. Could you please advise how to change this code so it works again?
This is what I am seeing in Kohya_ss >> sdxl_train.py

if accelerator.is_main_process:
        init_kwargs = {}
        if args.wandb_run_name:
            init_kwargs["wandb"] = {"name": args.wandb_run_name, "config": args}
        if args.log_tracker_config is not None:
            init_kwargs = toml.load(args.log_tracker_config)
        accelerator.init_trackers("finetuning" if args.log_tracker_name is None else args.log_tracker_name, init_kwargs=init_kwargs)

Unfortunately, that code "config": args isn't sending args to wandb
thank you

@rafstahelin  check out #1285


code page not set in capabilities

In rdp_write_order_capability_set the code page is always set to 0.
According to specs at https://msdn.microsoft.com/en-us/library/cc240556.aspx textANSICodePage should be set by the client to the codepage used.

nice catch, you're right we're setting the value but we're not sending it !
Looks like nobody cares :)