Don't throw an exception if a filter is not found

I'm using "Microsoft.FeatureManagement.AspNetCore" Version="2.0.0" nuget package. The issue can be reproduced by simply setting the configurations in the appSettings.json file, for example:
"FeatureManagement": {
    "OneFeature": {
      "EnabledFor": [
        {
          "Name": "MyCusstomFeature"
        }
      ]
    }
  }

The filter "Name" is a "hard-coded" string and, as such, there's chance for misspelling. Causing a runtime exception when the application tries to check the feature with the error (OneFeature):

The main goal of a feature flag strategy is to be able to control the features we show to our real users in a production environment, hide unfinished features, perform experimentation, etc.
The way we specify filters is very error prone undermining the whole goal of feature flags if a business member could mistakenly add an additional s to the filter name and crash the whole site.
This scenario is even more probable when managing the features through the Azure App Configuration, where I could miss type the filter name, the parameters name or even the values.
Expected Behavior
If the filter is not found, the behavior should be the same as when the feature is not found. We should return false and mark the feature as disabled.
In general, if any exception is thrown while evaluating the feature, the feature should be marked as disabled and appropriate logs should be generated, so the team can detect and fix the error.
Actual Behavior
If the filter is not found, an exception is thrown and the application crashes.

@mdarefull you can use IgnoreMissingFeatureFilters property to change the default behavior.
https://github.com/Microsoft/FeatureManagement-dotnet#missing-feature-filters

@zhenlan: My deepest apologies, I did my research on https://docs.microsoft.com/en-us/azure/azure-app-configuration/ and I couldn't find any reference for it...
Is there a reason why the options cannot be configured when registering the feature management services similar to how we configure most of ASP.NET Core services? as in:

Other than that, this is exactly what I was looking for! It even logs a warning 💯

Is there a reason why the options cannot be configured when registering the feature management services similar to how we configure most of ASP.NET Core services? as in:

I guess we could. @jimmyca15, are you aware of any reasons?

@zhenlan we should be able to do that. It's not a breaking change and it's pretty simple so should be able to get it in by next release.


parallelcluster 3.9.x failing to build with custom image, even though it worked before and it works with 3.11.0.

Using parallelcluster 3.9.1, .2, or .3.
I have a custom ami that I was able to overlay parallelcluster with build_image with 3.9.1 on May 27, 2024.
The custom ami has been in existence since May 16, 2024.  Custom AMI is Rocky 8.9.
Today, I'm trying to move to 3.9.3 and I am encountering a build problem. In addition, I have reproduced the build problem with 3.9.1 and 3.9.2 as well. (and the fact I fail with 3.9.1 is odd as I did build and am running since May).
I am unable to build a parallel cluster AMI overlayed on my customized AMI with 3.9.x.  I was able to build with 3.11.0.
My build command for 3.9.3 is:
pcluster build-image --image-id pcluster-3-9-3-Rocky-8-x86-64-ami-XXXXXXXXXXXXXX--image-configuration pcluster-3-9-3-Rocky-8-x86-64-ami-XXXXXXXXXXXXXX--region us-west-2
Contents of my pcluster-3-9-3-Rocky-8-x86-64-ami-XXXXXXXXXXXXXX.yml file is:
Image:
Name: pcluster-3-9-3-Rocky-8-x86-64-ami-XXXXXXXXXXXXXX
RootVolume:
Size: 32
Build:
Imds:
ImdsSupport: v2.0
InstanceType: m6a.large # 2 vcpus/8GB
SubnetId: subnet-0redacted
SecurityGroupIds:
- sg-04f9redacted
ParentImage: ami-XXXXXXXXXXXXXX
UpdateOsPackages:
Enabled: false
DevSettings:
TerminateInstanceOnFailure: false
Complete log from the command:
$ pcluster get-image-log-events --image-id pcluster-3-9-3-Rocky-8-x86-64-ami-XXXXXXXXXXX --log-stream-name "3.9.3/1"
is attached.
pcluster_build_3.9.3.log
Here is the relevant section from the log where I see the first error.
  "message": "CmdExecution: Stderr: PLATFORM='RHEL'\n\nif [[ ${PLATFORM} == RHEL ]]; then\n  CA_CERTS_FILE=/etc/ssl/certs/ca-bundle.crt\n  yum -y upgrade ca-certificates\nelif [[ ${PLATFORM} == DEBIAN ]]; then\n  CA_CERT

S_FILE=/etc/ssl/certs/ca-certificates.crt\n  apt-get -y --only-upgrade install ca-certificates\nfi\n\ncurl --retry 3 -L https://us-west-2-aws-parallelcluster.s3.us-west-2.amazonaws.com/archives/cinc/cinc-install-1.2.0.sh | b
ash -s -- -v 18.2.7\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0
0 --:--:-- --:--:-- --:--:--     0\r100 26698  100 26698    0     0   206k      0 --:--:-- --:--:-- --:--:--  206k\n\nif [[ -e ${CA_CERTS_FILE} ]]; then\n  ln -sf ${CA_CERTS_FILE} /opt/cinc/embedded/ssl/certs/cacert.pem\n
fi\n\n/opt/cinc/embedded/bin/gem install --no-document berkshelf:8.0.7\n\n",
"timestamp": "2024-10-16T18:54:53.954Z"
},
{
"message": "CmdExecution: ExitCode 0",
"timestamp": "2024-10-16T18:54:53.954Z"
},
{
"message": "ExecuteBash: FINISHED EXECUTION",
"timestamp": "2024-10-16T18:54:53.954Z"
},
{
"message": "Step DownloadCookbook",
"timestamp": "2024-10-16T18:54:53.974Z"
},
{
"message": "ExecuteBash: STARTED EXECUTION",
"timestamp": "2024-10-16T18:54:53.976Z"
},
{
"message": "Stdout: Vendoring cookbook failed.",
"timestamp": "2024-10-16T18:54:55.202Z"
},
{
"message": "CmdExecution: Command execution has been completed",
"timestamp": "2024-10-16T18:54:55.203Z"
},
{
"message": "CmdExecution: [ ERROR ] Command execution has resulted in an error",
"timestamp": "2024-10-16T18:54:55.203Z"
},
Looking for a clue please...???

Thank you for the pointer to the wiki. I have chosen to move on to 3.11.0 now that you have explained https://github.com/aws/aws-parallelcluster/issues/6478. Much appreciated.


Ask about: Make Object Properties Private

Challenge Make Object Properties Private has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

var Car = function() {
  // this is a private variable
  var speed = 10;

  // these are public methods
  this.accelerate = function(change) {
    speed += change;
  };

  this.decelerate = function() {
    speed -= 5;
  };

  this.getSpeed = function() {
    return speed;
  };
};

var Bike = function() {

  // Only change code below this line.
   var gear = 2;
   this.setGear = function() {
    gear += 4;
  };

  this.setGear = function() {

  };

};

var myCar = new Car();

var myBike = new Bike();

Can you please help me out with it, I totally no glue with the instruction talking about

Hey @hoanluannguyen,
This forum is only for submitting bugs. For problems with solving the assignments you can find find help here. There is enough people every day to give you a hand in your learning journey.
Wish you all the best in future learning and happy coding ;)

@hoanluannguyen Thank you for reporting this issue.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on Free Code Camp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding!


Initializing UART driver causes execution to freeze.

Discussed in https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials/discussions/121

Originally posted by zrthxn October 10, 2021
My setup for this is slightly different from the one shown, but only slightly. I'm using aarch64-none-elf-gcc to compile the assembly file and the using -C link-arg=$(BOOT_OBJ) as an argument to rustc to link the object file into the final ELF.
Up until tutorial 05, everything was working fine with QEMU.
Now after introducing tock-registers I'm having trouble initializing the UART driver.
I've narrowed the problem down to this after a couple days of frustration. When I try to access any register, like the control register or flags register, the execution freezes, maybe because of an infinite nop loop?
I'm able to write to the same memory location with write_volatile and that doesn't cause any problems... for example for the CR
// this works
unsafe { core::ptr::write_volatile(0x3F20_1030 as *mut usize, (0b1 << 31)); }

I'm now out of ideas on what to try, I've tried looking at the disassembly with aarch64-none-elf-objdump and that also doesn't give me any immediate clues. I've even compared every line of my diff to the diff in the readme and its almost all the same except for how I've structured my files. I've even tried structuring my files exactly like in the tutorial but alas to no avail.

Yes. I created a boot.rs module in the cpu module and put the assembly file in there and used include_str! just like your example, and just used rustc to compile the whole thing instead of compiling with gcc and linking with rustc. That didn't fix the issue.


Ventura add support plz

Please add Ventura support))0

I know of no reason MacPorts wouldn't already work on Ventura. An installer will be built after Ventura is released. In any case, merging commits from the stable branch to master that were cherry-picked from master in the first place won't help.

I know of no reason MacPorts wouldn't already work on Ventura. An installer will be built after Ventura is released. In any case, merging commits from the stable branch to master that were cherry-picked from master in the first place won't help.

After upgrading from Monterey to Ventura the following error is received:
Error: Current platform "darwin 22" does not match expected platform "darwin 21"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
    while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

There is not a Ventura installer listed in the 2.8.0 Releases. Is there any update on a release that will support Ventura or a workaround?

After upgrading from Monterey to Ventura the following error is received:
Error: Current platform "darwin 22" does not match expected platform "darwin 21"

Correct. You must reinstall MacPorts for your new macOS version.

There is not a Ventura installer listed in the 2.8.0 Releases.

Correct. I'm sure Josh will make one when he has time. Until then, you can build MacPorts from source.


Is it possible to connect to ZeroSSL?

ZeroSSL supports ACME, however, it provides only the endpoint URL (https://acme.zerossl.com/v2/DV90), EAB KID and EAB HMAC Key. However, Lemur requires the following as well:

Acme_private_key
Acme_regr
Certificate

It's unclear where to get the private key from ZeroSSL as well is what is acme_regr, also, unclear, why there is field "certificate" when you add the authority (isn't that the point that authority will create the cert and use ACME to communicate with Lemur and provide the cert)?
Also, it's unclear if I need to use ACME or ACME HTTP-01 options.
I've tried going though documentation (both ZeroSSL and Lemur's) and googling but it didn't helped. Also I feel like we should have support via ZeroSSL API ideally, although someone would have to write a plugin for this, I suppose.
So the question is if the ZeroSSL is supported, and if yes, what should I enter in the empty fields for that to work.
Thank you!

Hi @sxiii,
I don't believe Lemur has a dedicated ZeroSSL plugin, however, if ZerosSSL supports ACME you are in luck:
https://lemur.readthedocs.io/en/latest/production/index.html?highlight=EAB#external-account-binding-eab
in Lemur UI, initiate "create Authority", set Type to Root, and under More Options select the ACME plugin.
ACME plugin uses DNS for validation; requires access to your DNS providers such that Lemur can update the DNS record required for domain validation.
ACME-http01 plugin uses http01 for validation. (it requires a Lemur destination to upload the token, also you need to redirect http://<YOUR_DOMAIN>/.well-known/acme-challenge to this destination which holds the token for validation)
https://letsencrypt.org/docs/challenge-types/#http-01-challenge


Fixed possible indentation error in the training loop in utils/utils.py.

I think there could be an indendation error in the main training loop in the utils/utils.py in the original main branch. In my opinion the optimizer has to be called for every batch, in order to use the information of the whole training dataset.

Sorry for the delay, the line should now be indented in the latest commit


Progress Bar: fix bug for incorrect progress after clearing

Fixes #233
Fixes #271
Fixes #291

LGTM


Connecting to kernel: Python 3.9.7... loading to infinity

Discussed in https://github.com/microsoft/vscode-jupyter/discussions/12526

Originally posted by leskovecg January 11, 2023
When I start Interactive window loading goes to infinity. How can I solve this issue?

@leskovecg
Sorry you are running into this issue,
Please could you enable logging as follows:

Open settings & go into Jupyter->Logging
Change the value to verbose
Reload VS Code,
Attempt to repro the issue & then copy the output from the Jupyter output panel.

@DonJayamanne
I am running into the same issue.
Attaching the logs.
debug.txt

I solved the problem by myself. I just reinstalled jupyter extension. Hope it will work for others.

@abhirajD @leskovecg
The logs uploaded are incomplete.
Please could you:

Reload VC Code
Close all files in VS Code
Reload again
Open one notebook and run one cell in that one notebook
Wait for a few minutes
Then copy all of the output from the Jupyter output window and upload that here.

@leskovecg @abhirajD
Please could you install the latest pre-release version of the Jupyter extension and provide the same logs
We have fixed a few issues and also identified some issues with python packages (and have added additional logging to identify these).
Thanks for your patience and sorry that you are still running into this.
Open the extensions page, search for Jupyter and click the button Switch to Pre-Release Version
Similarly please install the Pre-Release version of the Python extension.

Closing this issue as its been over 4 weeks, since the information was requested.
We'll be happy to reopen the issue when the requested information has been provided.


consistency and responsive adjustments

There's a bunch of updates here. I still want to clean up some code but it's getting there. I'll try to summarize a bit.
ScrollPane
This component allows the top to stay put and the rest to scroll with overlay scrolling.
Consistency
The search bar is now always to the left with buttons to the far right of it. They're all very squishy too.
Responsive
We add more comfortable spacing and show icon text based on the width / height of the devtools. Looks "good" from 450px up.
CSS Cleanup
The "active" color is set through one variable now, so basically everywhere you see blue can be easily switched to another color. I'd like to add a "switch" to enable a dark mode a little bit down the line as well.
Excited to hear what you all think.

Hey @yyx990803
Not sure who gets notified or what on these comments/commits but I think this is good to go if you wanted to check it out and let me know what you think.

Hi
I'm curious about "0 width horizontal scroll" - how would you scroll a long value and see (at first sight) how long the horizontal values are?
And the "minimal vertical scrollbar" - isn't the scrollbar is for clicking? Making the width minimal makes it harder (but it's great to have a scrollbar :).
Don't take it too serious, I'm feeling like an intruder talking about it (your work is great), I just don't understand the removal of scrollbars, especially in developer tools (and not some fancy hipster website where appearance is more important than usability) - this should be especially pointed at Evan, as we don't have any scrollbars at this moment ;)

Hey,
I don't think you're an intruder. I appreciate the feedback!
The reason I didn't make the vertical scrollbar wide enough to click was because the dragger for the SplitPane blocks a lot of it anyway. I never click the scrollbar personally, I only ever really use it as an indicator I can scroll. I'm sure more people use it to scroll than I think so I shouldn't break that. I just noticed overflow: overlay works in Chrome so I'm thinking that would be a much better approach since you can click to scroll if you want, it's not always there taking valuable horizontal space and it doesn't interfere with the SplitPane dragger.
As for the the horizontal scroll bars I just thought it looked bad. The overflow: overlay takes care of this as well.
I just pushed a commit with the adjustment. Let me know what you think.

I can make some gif updates for the README.md (if you like) as well.

@crswll appreciated - but ideally in another PR? I'll try to take some time to review this this weekend.

Absolutely. I'll wait and see how you like the adjustments before making it.

Tried it out locally and this looks fantastic. Thanks for the great work!

Awesome, thanks! Happy to help! I'll get you some updated gifs for the README tonight.


Supply custom error message on timeout tests

Currently both JS and Python versions have test constructs to test if some pieces of code runs under a certain time limit, but they do not allow the use of custom error message like every other test constructs do.
So, like @timeout(sec) should become @timeout(sec, msg) with a default value?

Is this really required? The only error message which makes sense for the timeout decorator is "Exceeded time limit of N seconds", and that's exactly what it says right now.
Moreover, the default error message must always be prepended in case somebody decides to pass something useless as the msg argument (e.g. like it's done with assert_equals); so the purpose of this custom messages is... to add a comment?


Add --fix-releases flag to the update-runtime-config command

Following the pull-request for the deploy command #559 this is adding the new flag --fix-releases to the update-runtime-config command. During runtime config upload this flag will trigger a reupload of all releases fr.m the releases section in the runtime-config, which provide an url. The reupload will replace the existing releases and is equivalent to the bosh upload-release --fix command.

@aashah as I already mentioned in #559 I create this pr.


Unable to run on 1x 4090 or 2x 4090s

I'm getting different errors when trying to run on either a single or double 4090s.
With 1x 4090  (--num-gpus=1):
2023-04-25 21:25:18 | ERROR | stderr | torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 136.00 MiB (GPU 0; 23.65 GiB total capacity; 23.11 GiB already allocated; 76.19 MiB free; 23.11 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

With 2x 4090s (--num-gpus=2)
2023-04-25 21:27:37 | ERROR | stderr | RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! (when checking argument for argument tensors in method wrapper_CUDA_cat)

I'm not running any other applications at the moment and nvidia-smi shows the following:
Tue Apr 25 21:28:27 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02              Driver Version: 530.30.02    CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                  Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 4090         On | 00000000:01:00.0 Off |                  Off |
|  0%   47C    P5               39W / 450W|     22MiB / 24564MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce RTX 4090         On | 00000000:08:00.0 Off |                  Off |
|  0%   37C    P5               47W / 480W|      6MiB / 24564MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1236      G   /usr/lib/xorg/Xorg                            9MiB |
|    0   N/A  N/A      1486      G   /usr/bin/gnome-shell                         10MiB |
|    1   N/A  N/A      1236      G   /usr/lib/xorg/Xorg                            4MiB |
+---------------------------------------------------------------------------------------+

Any advice?
Thanks!

Hi thank you for the interest in our work!  The currect FP16 version is expected to OOM on a single RTX 4090.  The 8-bit quantization in WIP, and will release this week.  Regarding running on two-gpus.
Would you mind:
(1) sharing the error message before this one, so that I can see which line of code is causing the issue;
(2) sharing the command on running with multiple gpus;
(2) meanwhile, trying to see if the transformers version is correct as there is a fix 5 days ago on multiple gpu: pip install git+https://github.com/haotian-liu/transformers_llava.git@988b6abb3b7da9a5cbb5051e994706f7f88c2565
Thanks.

Thanks for the quick reply!
I updated transformers before running the tests.  I just reran the installation again and tested again, same results.
$ pip install git+https://github.com/haotian-liu/transformers_llava.git@988b6abb3b7da9a5cbb5051e994706f7f88c2565
Collecting git+https://github.com/haotian-liu/transformers_llava.git@988b6abb3b7da9a5cbb5051e994706f7f88c2565
  Cloning https://github.com/haotian-liu/transformers_llava.git (to revision 988b6abb3b7da9a5cbb5051e994706f7f88c2565) to /tmp/pip-req-build-xv11al22
  Running command git clone --filter=blob:none --quiet https://github.com/haotian-liu/transformers_llava.git /tmp/pip-req-build-xv11al22
  Running command git rev-parse -q --verify 'sha^988b6abb3b7da9a5cbb5051e994706f7f88c2565'
  Running command git fetch -q https://github.com/haotian-liu/transformers_llava.git 988b6abb3b7da9a5cbb5051e994706f7f88c2565
  Resolved https://github.com/haotian-liu/transformers_llava.git to commit 988b6abb3b7da9a5cbb5051e994706f7f88c2565
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: filelock in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (3.12.0)
Requirement already satisfied: huggingface-hub<1.0,>=0.11.0 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (0.13.4)
Requirement already satisfied: numpy>=1.17 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (1.24.2)
Requirement already satisfied: packaging>=20.0 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (23.1)
Requirement already satisfied: pyyaml>=5.1 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (6.0)
Requirement already satisfied: regex!=2019.12.17 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (2023.3.23)
Requirement already satisfied: requests in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (2.28.2)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (0.12.1)
Requirement already satisfied: tqdm>=4.27 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from transformers==4.28.0.dev0) (4.65.0)
Requirement already satisfied: typing-extensions>=<IP_ADDRESS> in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from huggingface-hub<1.0,>=0.11.0->transformers==4.28.0.dev0) (4.5.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from requests->transformers==4.28.0.dev0) (3.1.0)
Requirement already satisfied: idna<4,>=2.5 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from requests->transformers==4.28.0.dev0) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from requests->transformers==4.28.0.dev0) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages (from requests->transformers==4.28.0.dev0) (2022.12.7)

Here's my command:
python -m llava.serve.model_worker --host <IP_ADDRESS> --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path /home/ubuntu/models/LLaVA-13B-v0 --multi-modal --num-gpus 2

Here's the full stack:
2023-04-25 21:27:36 | INFO | stdout | INFO:     <IP_ADDRESS>:39364 - "POST /receive_heart_beat HTTP/1.1" 200 OK
2023-04-25 21:27:37 | ERROR | stderr | ERROR:    Exception in ASGI application
2023-04-25 21:27:37 | ERROR | stderr | Traceback (most recent call last):
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/uvicorn/protocols/http/
h11_impl.py", line 429, in run_asgi
2023-04-25 21:27:37 | ERROR | stderr |     result = await app(  # type: ignore[func-returns-value]
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/uvicorn/middleware/prox
y_headers.py", line 78, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     return await self.app(scope, receive, send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/fastapi/applications.py
", line 276, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     await super().__call__(scope, receive, send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/applications.
py", line 122, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     await self.middleware_stack(scope, receive, send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/middleware/er
rors.py", line 184, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     raise exc
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/middleware/er
rors.py", line 162, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     await self.app(scope, receive, _send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/middleware/ex
ceptions.py", line 79, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     raise exc
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/middleware/ex
ceptions.py", line 68, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     await self.app(scope, receive, sender)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/fastapi/middleware/asyn
cexitstack.py", line 21, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     raise e
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/fastapi/middleware/asyn
cexitstack.py", line 18, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     await self.app(scope, receive, send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/routing.py",
line 718, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     await route.handle(scope, receive, send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/routing.py",
line 276, in handle
2023-04-25 21:27:37 | ERROR | stderr |     await self.app(scope, receive, send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/routing.py",
line 69, in app
2023-04-25 21:27:37 | ERROR | stderr |     await response(scope, receive, send)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/responses.py"
, line 270, in __call__
2023-04-25 21:27:37 | ERROR | stderr |     async with anyio.create_task_group() as task_group:
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/anyio/_backends/_asynci
o.py", line 662, in __aexit__
2023-04-25 21:27:37 | ERROR | stderr |     raise exceptions[0]
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/responses.py"
, line 273, in wrap
2023-04-25 21:27:37 | ERROR | stderr |     await func()
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/responses.py"
, line 262, in stream_response
2023-04-25 21:27:37 | ERROR | stderr |     async for chunk in self.body_iterator:
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/concurrency.p
y", line 63, in iterate_in_threadpool
2023-04-25 21:27:37 | ERROR | stderr |     yield await anyio.to_thread.run_sync(_next, iterator)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/anyio/to_thread.py", li
ne 31, in run_sync
2023-04-25 21:27:37 | ERROR | stderr |     return await get_asynclib().run_sync_in_worker_thread(
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/anyio/_backends/_asynci
o.py", line 937, in run_sync_in_worker_thread
2023-04-25 21:27:37 | ERROR | stderr |     return await future
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/anyio/_backends/_asynci
o.py", line 867, in run
2023-04-25 21:27:37 | ERROR | stderr |     result = context.run(func, *args)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/starlette/concurrency.p
y", line 53, in _next
2023-04-25 21:27:37 | ERROR | stderr |     return next(iterator)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/git/LLaVA/llava/serve/model_worker.py", line 294, in generate_stream_gate
2023-04-25 21:27:37 | ERROR | stderr |     for x in self.generate_stream(params):
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/torch/utils/_contextlib
.py", line 35, in generator_context
2023-04-25 21:27:37 | ERROR | stderr |     response = gen.send(None)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/git/LLaVA/llava/serve/model_worker.py", line 232, in generate_stream
2023-04-25 21:27:37 | ERROR | stderr |     out = model(
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
2023-04-25 21:27:37 | ERROR | stderr |     return forward_call(*args, **kwargs)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/accelerate/hooks.py", line 165, in new_forward
2023-04-25 21:27:37 | ERROR | stderr |     output = old_forward(*args, **kwargs)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 844, in forward
2023-04-25 21:27:37 | ERROR | stderr |     outputs = self.model(
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
2023-04-25 21:27:37 | ERROR | stderr |     return forward_call(*args, **kwargs)
2023-04-25 21:27:37 | ERROR | stderr |   File "/home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 631, in forward
2023-04-25 21:27:37 | ERROR | stderr |     cur_new_input_embeds = torch.cat((cur_input_embeds[:image_start_token_pos+1], cur_image_features, cur_input_embeds[image_start_token_pos + num_patches + 1:]), dim=0)
2023-04-25 21:27:37 | ERROR | stderr | RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! (when checking argument for argument tensors in method wrapper_CUDA_cat)

Hmm this is strange.  Your command and installation both look good to me.
Would you mind go to L627-631 in /home/ubuntu/miniconda3/envs/llava/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py to see if you see cur_image_features = ...to(cur_input_embeds.device)?
The reference code is here.
If this is the case, then I may need to look into huggingface doc on what is happening with GPU slicing (and unfortunately I am not reproducing this on my local server)

Thanks for the pointer, fixed now!
Notes:
Mine did not match your version:
                        cur_image_features = image_features[cur_image_idx]
                        num_patches = cur_image_features.shape[0]
                        if cur_input_ids[image_start_token_pos + num_patches + 1] != vision_tower.config.im_end_token:
                            raise ValueError("Seems that the image is cut.")
                        cur_new_input_embeds = torch.cat((cur_input_embeds[:image_start_token_pos+1], cur_image_features, cur_input_embeds[image_start_token_pos + num_patches + 1:]), dim=0)

I had to manually uninstall transformers and re-install your version again and now it matches and works!
So, moral of the story for me is to make sure to pip uninstall transformers and install again.
Thanks again.

Oh cool!  I was always thinking pip install with a package associated with commit hash would ensure a clean install.  I will update the instructions in README as well.
If your problem has been solved, would you mind closing this issue?  Thanks.


Reduce project to only include what is needed for IterativeSVD

I took out everything I can. The only two dependencies are now:
scikit-learn>=0.21.2
numpy==1.19.5

Sorry, github defaulted to opening this here instead of my new repo.


withScope types are hard to use

Consider the following scenario
type SomeType = {};
const myScope = createScope<SomeType | undefined>(undefined);

// ...
const myScopeThing:SomeType = {};
const myThing = useMolecule(someMolecule,{
  withScope:[myScope,myScopeThing]
})

withScope:[myScope,myScopeThing] throws an error due to the type of ScopeTuple. The first entry of the tuple is expected to be MoleculeScope<SomeType> but is in fact MoleculeScope<SomeType | undefined>.
I would expect this code to work

Thanks for this feedback! I'll try incorporating this into the next version.
Sorry for the slow response.

Addressed in https://github.com/saasquatch/bunshi/pull/12


AWS Replicator: Error: No such command 'replicate'

Hi, just followed the guide to the T.
After installing the aws-replicator extension and i lunch the command localstack aws replicate -s sqs
i receive the following error:
Usage: localstack aws [OPTIONS] COMMAND [ARGS]...
Try 'localstack aws -h' for help.

Error: No such command 'replicate'.

And when going to check the content of available commands for aws i get only this
Usage: localstack aws [OPTIONS] COMMAND [ARGS]...

  Accesses additional functionality on LocalStack emulated AWS services.

  This command provides tools to enhance your experience with certain emulated
  AWS services.

Options:
  -h, --help  Show this message and exit.

Commands:
  iam  (Beta) Access LocalStack IAM features

I am using a trial version of the Pro, LocalStack CLI 3.4.0
localstack status output
┌─────────────────┬───────────────────────────────────────────────────────┐
│ Runtime version │ 3.4.1.dev                                             │
│ Docker image    │ tag: latest, id: 4b87860f7f42, 📆 2024-05-06T13:49:55 │
│ Runtime status  │ ✔ running (name: "localstack-main", IP: <IP_ADDRESS>)   │
└─────────────────┴───────────────────────────────────────────────────────┘

I am experiencing the exact same issue

@derick1156 inwrote myself a script that does this. Soon I'll publish it

@derick1156
https://github.com/well-it-wasnt-me/Import-AWS-To-Localstack

Thanks for reporting @well-it-wasnt-me @derick1156 , and apologies for the long delay here, this issue somehow slipped through the cracks. :/
We have made a couple of fixes to the extension in the meantime (there were some Python import errors) - when you get a chance, can you please give it another try installing it?
However, we have recently focusing mostly on the proxy mode of the extension, less so on the replicate mode (which still needs to be refactored/improved a bit in the upcoming weeks). Thanks for sharing the pointer to the external repo, we'll see if we can take some inspiration from it, to make sure the functionality is covered in this repo as well! 🙌

Thanks for reporting @well-it-wasnt-me @derick1156 , and apologies for the long delay here, this issue somehow slipped through the cracks. :/
We have made a couple of fixes to the extension in the meantime (there were some Python import errors) - when you get a chance, can you please give it another try installing it?
However, we have recently focusing mostly on the proxy mode of the extension, less so on the replicate mode (which still needs to be refactored/improved a bit in the upcoming weeks). Thanks for sharing the pointer to the external repo, we'll see if we can take some inspiration from it, to make sure the functionality is covered in this repo as well! 🙌

Thanks ! and deeply sorry to come back this late... feel free to check out what i've done...it works very well actually and does what it says
Perhaps you can use or re-use some of the code.
have a nice day !
Import AWS To Localstackl


"Acquire team models for completions" setting not found

I cannot find the mentioned setting in my installation of Visual Studio. It's not listed in Tools > Options > IntelliCode:

Visual Studio 16.3.9
Microsoft Visual Studio Community 2019
Version 16.3.9
VisualStudio.16.Release/16.3.9+29509.3
Microsoft .NET Framework
Version 4.8.03752

Installed Version: Community

Visual C++ 2019   00435-60000-00000-AA534
Microsoft Visual C++ 2019

.ignore   1.2.77
A language service that makes it painless to handle all types of .ignore files such as .gitignore, .tfignore, etc.

Add New File   3.5.134
The fastest and easiest way to add new files to any project - including files that start with a dot

ASP.NET and Web Tools 2019   16.3.286.43615
ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0   16.3.286.43615
Azure App Service Tools v3.0.0

C# Tools   3.3.1-beta3-19461-02+2fd12c210e22f7d6245805c60340f6a34af6875b
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CheckedExceptionsPackage Extension   1.0
CheckedExceptionsPackage Visual Studio Extension Detailed Info

CodeMaid   11.1.209
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

EditorConfig Language Service   1.17.260
Language service for .editorconfig files.

EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.

Extensibility Message Bus   1.2.0 (d16-2@8b56e20)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

File Icons   2.7
Adds icons for files that are not recognized by Solution Explorer

FormatCommand Extension   1.0
FormatCommand Visual Studio Extension Detailed Info

IntelliCode Extension   1.0
IntelliCode Visual Studio Extension Detailed Info

JetBrains ReSharper Ultimate 2019.2.3   Build 192.0.20191016.60459
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2019 JetBrains, Inc.

Line Press   13d97f3e-75e2-4715-a444-715b5f39f0a4
Control the line-height of code lines, and compress empty or any unimportant lines. Have best of both worlds, more code view with no cram.

Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   2.0.83+gbc8a4b23ec
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   16.3.7 (9d260c5)
Support for debugging Mono processes with Visual Studio.

MoveTypeToFile   1.0
MoveTypeToFile

NamespaceFixer   2.6
VS Extension to fix namespaces following C# and VB.NET convention

NuGet Package Manager   5.3.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Open in Visual Studio Code   1.4.46
Adds a menu command that lets you open any solution, project, folder and file in Visual Studio Code.

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Smart Command Line Arguments Extension   2.2.0
A Visual Studio Extension which aims to provide a better UI to manage your command line arguments. For additional information, visit https://github.com/MBulli/SmartCommandlineArgs

SQL Server Data Tools   16.0.61908.27190
Microsoft SQL Server Data Tools

SteroidsVS   1.0
Multi-purpose extension for VisualStudio

SubwordNavigation   1.5.0
Provides subword navigation for Visual Studio.

TypeScript Tools   16.0.10821.2002
TypeScript Tools for Microsoft Visual Studio

Viasfora   4.2.188
Add color to your Visual Studio editor!

Visual Basic Tools   3.3.1-beta3-19461-02+2fd12c210e22f7d6245805c60340f6a34af6875b
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 10.4 for F# 4.6   16.3.0-beta.19455.1+0422ff293bb2cc722fe5021b85ef50378a9af823
Microsoft Visual F# Tools 10.4 for F# 4.6

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Spell Check Everywhere   VSSpellCheckEverywhere
An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes.
https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Spell Checker   VSSpellChecker
An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows.
https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

Visual Studio Tools for Unity   <IP_ADDRESS>
Visual Studio Tools for Unity

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

VSColorOutput   2.6.7
Color output for build and debug windows - https://mike-ward.net/vscoloroutput

Xamarin   <IP_ADDRESS>8 (d16-3@40034cd)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   <IP_ADDRESS>6 (remotes/origin/d16-3@8a223bfd7)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   16.3.565 (27e9746)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   <IP_ADDRESS> (d16-3/c407838)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: mono/mono/2019-06@476d72b9e32
    Java.Interop: xamarin/java.interop/d16-3@5836f58
    LibZipSharp: grendello/LibZipSharp/d16-3@71f4a94
    LibZip: nih-at/libzip/rel-1-5-1@b95cf3fd
    ProGuard: xamarin/proguard/master@905836d
    SQLite: xamarin/sqlite/3.27.1@8212a2d
    Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-3@cb41333

Xamarin.iOS and Xamarin.Mac SDK   <IP_ADDRESS> (e3c2b40)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c2089e9f-f405-f6a4-2bf2-9da8acfe2885
Version Independent ID: 56ce5868-6ade-0d11-0038-068ffbcd6841
Content: IntelliSense based on your code - Visual Studio IntelliCode
Content Source: docs/custom-models.md
Product: visual-studio-family
Technology: intellicode
GitHub Login: @markw-t
Microsoft Alias: mwthomas

Thank you for taking the time to report this issue. This preview feature is available from  Visual Studio 16.4 Preview 2. You can get it at the preview channel: https://visualstudio.microsoft.com/vs/preview/
We will update the documentation to make it clear. Sorry for the unconvincing.
--
Peter [MSFT]

No problem, thanks for clarifying!

The feature has now released (in Visual Studio 16.8) and is no longer in preview.


SSL and auth for Prometheus API

Hey all! I know this has been discussed before, and was previously listed as a non goal in #149. However, I saw that it was discussed at the Prometheus Dev Summit 2018, and it looked like it might be back on the table to at least allow the option of specifying client certs and doing mutual TLS for the API? Is my understanding around this correct, and is this indeed on the road map? If so, has any work been done for it yet?
My team and I would be happy to contribute to this work. If there is not a plan already, our thoughts were that it could be off by default (backwards-compatibility), but if a server cert and key plus a CA were specified, the API would require valid client certs.

You're looking for https://github.com/prometheus/node_exporter/pull/1277

@brian-brazil thanks so much, exactly what I was looking for. Closing.


Shift deps to futures

I'm not sure if you're interested in this approach, but I swapped out usage of async-std for futures (and futures-timer). https://github.com/hwchen/async-h1/commit/41f57c6a7878e1cb1b62c5eba74717cd80027814
I saw that there was mention of using a core feature in async-std. Just using futures might simplify even further?
Anyways, my thought is only to use futures as much as possible as a clear indicator of async ecosystem compatibility. I'm sure there's many design decisions and trade-offs I don't know about. If you don't feel like discussing, feel free to close, I won't take it personally :) .

Hey @hwchen, thanks for opening! Yeah, it seems unlikely we'll switch to futures. Ecosystem compat stems from futures-core, and futures-io, which we use as our building blocks. These are the parts that are set for inclusion in the stdlib as well. Using async-std provides us access to fast channels and doesn't lock us into using traits such as Sink which seem likely to change. We probably won't be changing anytime soon. Hope that makes sense. Thanks!


Codeviewer: Vertical Splittable slow

In the codeviewer example, the file selection vertical splittable can hardly be moved/re-sized with a mouse.
To reproduce:

run example as it is.
try to re-size the file tree splittable left.

Issue observed:

only small movements possible
very slow and small reactions; mouse lost often and many tries needed

Tried in on 1.0.0-beta5 on MacOs and it works fine. Do you still have this issue?

Works again since 1.0.0 latest.
The issue can be closed.
--
Dr. Christoph Grimm, Professor
Head of Chair of Cyber-Physical Systems
Faculty of Computer Science, TU Kaiserslautern
https://cps.cs.uni-kl.de
Am 16.12.2021 um 16:21 schrieb akurasov<EMAIL_ADDRESS>Tried in on 1.0.0-beta5 on MacOs and it works fine. Do you still have this issue?
—
Reply to this email directly, view it on GitHubhttps://github.com/JetBrains/compose-jb/issues/1215#issuecomment-995915243, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI6NNOPPXY2FZKGLID7EAOTURH7V3ANCNFSM5FEAW2FQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Allow jsonBody in request bodyPatterns

There should be an option to use jsonBody in the request bodyPatterns as an additional matcher like in the response. You can use equalToJson but it requires the entire message to be escaped.

I have a better plan: deprecate jsonBody and implement smarter deserialisation in order to allow JSON wherever there's a string value expected. This would mean you can use the same key (e.g. body in the response case) regardless of what format you choose.


How to render depth map use nvdiffrast?

I want to get a depth map from Mesh. Please send me a sample code using nvdiffrast!
Thank you very much!

Many thanks!

This is my sample code
import imageio  # Importing imageio library, used for reading and writing image data
import numpy as np  # Importing numpy library, which is commonly used for large, multi-dimensional arrays and matrices, along with mathematical operators on these arrays
import torch  # Importing PyTorch library, a popular library for machine learning research
import nvdiffrast.torch as dr  # Importing nvdiffrast's PyTorch interface, a library used for rasterization, mainly in graphics rendering

# Define a helper function that creates PyTorch tensors on GPU ('cuda' device)
def tensor(*args, **kwargs):
    return torch.tensor(*args, device='cuda', **kwargs)

# Initialize a CUDA context for rasterization
glctx = dr.RasterizeCudaContext()

# Define the position of vertices in 3D space. Each vertex has x, y, z coordinates and w (for homogenous coordinates)
pos = tensor([[[-0.8, -0.8, 1, 1], [0.8, -0.8, -1, 1], [-0.8, 0.8, -1, 1], [0.8, 0.8, 1, 1], [0.4, 0.4, 1, 1], [0.3, 0.3, 1, 1], [0.2, 0.2, 1, 1]]], dtype=torch.float32)

# Get the z (depth) values from the position tensor
depth_ = pos[..., 2:3]

# Convert the depth tensor to have only one z-value per vertex
depth = tensor([[[(z_val/1)] for z_val in depth_.squeeze()]], dtype=torch.float32)

# Define the triangles by referring to the indexes of vertices in 'pos' tensor
tri = tensor([[0, 1, 2], [2, 3, 1]], dtype=torch.int32)

# Rasterize the triangles to generate pixel coverage and depth (z-buffer)
rast, _ = dr.rasterize(glctx, pos, tri, resolution=[256, 256])

# Interpolate depth values across the rasterized pixels
out, _ = dr.interpolate(depth, rast, tri)

# Compute old minimum and maximum depth values
old_min = torch.min(out)
old_max = torch.max(out)

# Define new minimum and maximum depth values (for normalization)
new_min = 0
new_max = 255

# Normalize the output tensor to range [new_min, new_max]
out = (out - old_min) / (old_max - old_min) * (new_max - new_min) + new_min

# Convert the output tensor to a numpy array, repeat it across color channels, and convert it to uint8 type
out = np.squeeze(out.cpu().numpy())
out = np.repeat(out[:, :, np.newaxis], 3, axis=2).astype(np.uint8)

# Notify the user that the image is being saved
print("Saving to 'tri.png'.")

# Save the rasterized and interpolated depth values as an image
imageio.imsave('tri_.png', out)


The message in 'Comuna' can be sent if non-printable spaces are used

Date Time
12-14-2020 22:58
Priority
Low
Environment:
OS: [Windows 10]
Browser [Chrome Version 86.0.4240.198 (Official Build) (64-bit) ]
Reproducible: always
Build found: (  tag 20201214.5)
Pre-conditions
The message in 'Comuna' can be sent if non-printable spaces are used
Steps to Reproduce
1.Move to https://eventsexpress-test.azurewebsites.net
2. Sign in as registered user<EMAIL_ADDRESS>"Password"=QWERTY111.
3. Click on the 'Comuna' tab
4. Select any available chat
5. Set the caret into the 'Send Message' textbox and press the 'SPACE' keyboard button
6. Click on the "SEND" button
Expected result
The "SEND" button doesn't perform sending the empty message
Actual result
The empty message(with non-printable spaces) was sent.
Screenshots

User story and test case links:
Labels to be added "Bug", Priority (" low"), Severity ("trivial), Type ("UI, "Functional") .

verified #356


Remove variable declaration from for-loop header and enclose in block

This solves error: for loop initial declarations are only allowed in C99 mode when building on gcc 4.4.7 (Default gcc on CentOS 6.x) against the MySQL 5.7 libs.
This PR has two commits, the first commit only alters indentation because this appears to have accidentally been indented with 3 spaces instead of 4, so it was messing with my editor.
The important portion of the diff is in the second commit: https://github.com/python-oursql/oursql/commit/9ffee5dc887bd1a22cb55a708699007ac58437f7
See also: https://github.com/python-oursql/oursql/pull/4 which introduced 5.7 support.

@jamestryan Any chance you could take a look at this?


[Suggestion]Can't use curl command on the machine which has no 'Internet Explorer' browser

OS: Windows
Node.js: V10.15.0
Build Version: 20190402.1
Azure Functions Core Tools: V2.4.498
Repro Steps:

Create a C# project on the machine which has no 'Internet Explorer' browser.
Create a new function with 'HTTP trigger' template and 'Function' level.
Set a breakpoint in HttpTrigger file and F5.
Copy the HttpTrigger URL that shows in 'Terminal' view and run 'curl  ?name=123'.

Result:
An error occurs.

Suggestion:
It's not convenient to use the curl command on the machine without IE browser, could you also support it for Microsoft Edge?

@v-ruizh we have no control over curl or your browser. Closing as external


Some Riscv-Tests Can't Pass

Hi !
When I excute riscv-tests with the config
    val l = Config.plugins(
      sideChannels = false, //WARNING, FOR TEST PURPOSES ONLY, turn to false for real stuff <3
      xlen = 64,
      withRdTime = false,
      aluCount = 2,
      decodeCount = 2,
      withRvc = true,
      withDebug = false,
      withEmbeddedJtagTap = false,
      debugTriggers = 0,
      withFloat = true,
      withDouble = true,
      lqSize = 16,
      sqSize = 16,
      resetVector = 0x80000000l
    )

I find the rv64si-p-wfi rv64mi-p-csr can't pass the test，can you tell me how to solve the problem? Thank You!

Hi,
I'm currently in a trip on a dying notebook ^^
I will test it when i'm back in the office (home <3)
Does it tell you where the test are failing ?
It can give a clue ^^

they all fails on the ecall trap，I see the wave about the commit PC.They can commit until pass symbol

Ahhhhhhhhh
I were thinking you were using the python script to generate the test list :
https://github.com/SpinalHDL/NaxRiscv/blob/main/src/test/cpp/naxriscv/testsGen.py
But you aren't right ?
You compiled the test and run them by yourself ?
So one thing about riscv-test, is that some test do assumption about having a core which fully implement the privileged spec, which isn't necessarly the case of NaxRiscv (ex PMP)
How did you ran the tests ?


add comment on hash usage in Route

closes #135
In my analysis I assumed that the goal was to order by elements, but it's not

Codecov Report

Merging #153 (1d7a77c) into master (6728cde) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #153   +/-   ##
=======================================
  Coverage   89.78%   89.78%
=======================================
  Files         124      124
  Lines        5646     5646
=======================================
  Hits         5069     5069
  Misses        577      577

Impacted Files
Coverage Δ

include/adm/route.hpp
80.00% <ø> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Update Composer dependencies (2024-02-09-00-17)

Visual regression test passed!
View the visual regression test report


Reviewing GraphQL

Clean Up Week :tada:
It's clean up week, and my course to review is GraphQL. Here it goes:

[ ] Remove extra heading at the top of each page

Introduction to GraphQL

[ ] The introduction could stand to be tightened up a little. It seems like we are doing a lot of talking before we get to the point.
[ ] Rather than starting with links to different apps that have APIs, it might be interesting to use the embedded YouTube video as an example or to embed something else that is pulling from an API (e.g. weather in SF today) OR @JasonEtco took this one step further with this idea:

Rather than telling them "this is what an API does" it would be really cool to have an interactive tool where they click a button and the tool interactively "pulls" in the data from the API, highlighting each piece of data as it is pulled in.

This is a work in progress ... will add more!

Please @ mention me when you are ready for some 👀

This is issue still open? Please @ mention me when you are ready to begin.

Closing this out since our on demand courses are now deprecated.
Thank you for sharing this idea and starting this work!


Update Wallet Name

Relates to #1148
Acceptance Criteria
Give the holder is in the menu
When the holder taps the "edit" pencil icon
Then they are presented with the option to edit their wallet name
And the current name of the wallet is displayed in the text field
And they are able to save or cancel the action
Given the holder is in the scan my QR code screen
When the holder taps the "edit" pencil icon
Then they are presented with the option to edit their wallet name
And the current name of the wallet is displayed in the text field
And they are able to save or cancel the action
Given the holder has changed their wallet name
When the holder is in the "Menu" or "My QR code" screen
Then the wallet name is automatically updated to the latest wallet name
Wireframes or relevant image assets / links
Wireframes

TODO:

[ ] In the Setting/Menu screen, align left, truncate right
[ ] In the QR Code Screen, centered, word wrapped

Resolved by: https://github.com/hyperledger/aries-mobile-agent-react-native/pull/961

@wadeking98  Minor thing. With a really long name, only on android devices does the long name push the edit icon pass the edge of the screen. Private Zenhub Image

Bug #1532 has been created to track the long name alignment issue. This has been tested manually and in test automation.  Closing this story.


docker_auth/github: newly-acquired token is invalid

When I'm trying to authenticate user through Github I'm getting: "Newly-acquired token is invalid"
The logs says that app is unable to validate the organization.
ExpiresIn:0 TokenType:bearer Error: ErrorDescription:} could not validate organization:
Doc at:
https://developer.github.com/apps/building-integrations/setting-up-and-registering-oauth-apps/about-scopes-for-oauth-apps/
says that: read:org scope provides: Read-only access to organization, teams, and membership.
which is and required for the membership access.
The scope defined in:
https://github.com/cesanta/docker_auth/blob/master/auth_server/authn/data/github_auth.tmpl#L3
is only user:email and I'm not sure that it grants organization access.
Any thoughts about this ?
PP: Today I'm going to build a custom image with read:org scope and will give feedback.

It looks like that adding of read:org scope fixes the issue.
Filed up PR #190 that fixes this issue.

Good day @rojer
Can you tag new release for this as github auth is broken otherwise and possibly update the docker image on docker hub


🐛 Bug: this.fn is not defined in Runnable.prototype.run

Bug Report Checklist

[x] I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
[x] I have searched for related issues and issues with the faq label, but none matched my issue.
[x] I have 'smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, my usage of Mocha, or Mocha itself.
[ ] I want to provide a PR to resolve this

Expected
this.fn is not defined in Runnable.prototype.run when called internally on runner.js ln 509
Problem exists in v10.8.2
Actual
No error
Minimal, Reproducible Example
No
Versions
v10.8.2
Additional Info
No response

https://antfu.me/posts/why-reproductions-are-required


Clarity for creating ERGW only

When creating this for an existing scenario (I just had a conversation with a customer on this) we need this added clarity so that they won't have to recreate objects, etc., for those who aren't very familiar with PowerShell, it can be challenging.

@omartin2010 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

adding @cherylmc

I guess I was trying to write it so that someone that didn't create the VNET in this step (and created it 2 years ago) would just "connect" the $vnet to the powershell object so that steps can be executed. Maybe add a TOC label for this one with something like "To create a new ExpressRoute Gateway on an existing virtual network with existing VPN connections". Thoughts?

Updated in a different PR using alternate steps. #please-close


Support SegmentSelector API to select segment names based on expression

Since Pinot supports batch segments replacement, there is a need to find out what are segments to replace in an existing table based on segment metadata.
E.g. When we want to backfill data on a particular date, we want to find out all the segments for that date.
Sample expression:

Find segments for a given time range:
segment.start.time >=<PHONE_NUMBER> and segment.end.time <1614150000
Find segments for a partition:
segment.partition.id==1

Ideally, if we can have a system logical table like __SEGMENTS_METADATA then we can direct send a query like:
SELECT segment_name FROM __SEGMENTS_METADATA WHERE SEGMENT_START_TIME >=<PHONE_NUMBER> and SEGMENT_END_TIME <1614150000

to query segment metadata.

Is this API mainly for debugging purpose? Should we consider using EXPLAIN for this?

the immediate use case is for data backfill, which we can programmatically replace x segments given some criteria then replace with some new segments.

I think that should be done by enforcing the segment name convention and time alignment. In order to replace segments, all the records must match the filter.
For replacing with time range, @snleee 's design doc covers the algorithm if segments are not strictly time aligned.

This is just one example of usage. Segment name convention is used for single segment replacement, for batch replace, the segment name should be different though.
Another example could be replacing segments with given partitions for a time range.
For debugging purposes. we can send a query to find out how many segments per day for a pinot table, which will be helpful to debug potential data missing for large data bootstrap.

I think that should be done by enforcing the segment name convention and time alignment. In order to replace segments, all the records must match the filter.
For replacing with time range, @snleee 's design doc covers the algorithm if segments are not strictly time aligned.


[PE-D][Tester C] Misleading Section Title for Edit Meeting

Noticed that most of the section title ends with the command keyword, e.g. add, delete, filter. Hence it's more reasonable to let this section title ends with editMeeting instead of just edit.

Labels: severity.Medium type.DocumentationBug
original: PallonCX/ped#9

Thank you for pointing this out. We have updated the UG!


reading list

Just wondering if the reading list is coming back? It disappeared sometime yesterday.

Unfortunately it has been removed as it (esp the sync) was quite buggy, and it also proved to be a big blocker for me being able to make a timely release. If you do a options export you should still have the data from the reading list, tho i admit not in a particular user friendly format. Alternatively (AFTER making a backup the current data) downgrade to a 0.4 beta and take screenshots or similar of the data you'd like to preserve. Sorry for the annoyance.
See rest of the release notes for 0.5 here: https://github.com/jsmnbom/ao3-enhancements/releases/tag/v0.5.4

Understood. Do you think a simpler version would make a come back eventually? Perhaps just the READ (completed and currently reading) and DROPPED, I really enjoyed knowing what I had read (and read and didn't like), I think i had just under 4000 books sorted like that since it became an feature.

I hope so, but no promises atm. Maybe in a different form. I'm working on something that works on all sites rather than just AO3 but it wouldn't be only a browser extension but rather a self hosted app.
A really really simple version of reading list could perhaps be implemented, but dunno if I have the motivation atm but we'll see :3


slow query due to not fully utilizing all threads and all cores?

Hi,
First thanks for performant database! It really sets a very high bar on databases for big data.
Recently i am comparing performance between Clickhouse and Spark SQL. In most of my test cases, CH surpasses Spark on speed by a scale. However, in few cases, it is slower by a scale, too :)
For example, using New York Tax Trip data with primary index on (pickup_datetime, dropoff_datetime) columns, if my query is "pickup_datetime > '2013-01-01 00:00:00' and pickup_datetime < '2013-01-02 00:00:00'", CH is x20 faster, but if my query condition is changed to "dropoff_datetime > '2013-01-01 00:00:00' and dropoff_datetime < '2013-01-02 00:00:00'", CH is x10 slower. (it took 8 minutes)
During execution of the slower query, i noticed that all cpu cores were under-utilized (eg. <10%). In contrast, with Spark SQL and parquets and with the same data set and query on the same host, all cpu cores are nearly 100% occupied. (it took 1 minute)
How can i improve performance of the query, eg., without creating another index on  (dropoff_datetime, pickup_datetime)?
Thanks again for making such an excellent software available to the world!!

Hi,
You can increase performance by adding both index columns in condition. For example, if you know that pickup_datetime <  dropoff_datetime,  than instead of query select ... from table where dropoff_datetime > '2013-01-01 00:00:00' you can use select ... from table where dropoff_datetime > '2013-01-01 00:00:00' and pickup_datetime > '2013-01-01 00:00:00'.

Hi, thanks a lot for the quick response.
It's true that more constrained condition can improve the "indexing" performance, but actually my actually point is the poor utilization of massive parallel processing (compare with Spark SQL) in cases of a useless index, which i guess can be improved by forking more threads to fill pipeline of CH query executor.

If CPU cores were under-utilized, there should be bottle neck in something else. It makes sense to measure performance of i/o operations, such as disk and network loading. You can use iotop to measure disk and iftop to measure network performance during query execution.
You can try to increase the number of threads using setting max_threads (in users.xml or with set max_threads = ... query). But if, for example, disk was used on 100%, it won't help.
Also perf top can show in which functions process spend the most of the time.

The comparison is conducted on the same physical host same h/w and s/w environment, so i/o or any objective environment seems not the main factor of the performance difference. (my point here is, on my host CH should be able to read as fast as Spark does)
I raise max_threads to 4 on my dual core cpu. No improvement.
When Spark runs, cpu usage is between 60% - 80%. The query took 1 min.
When CH runs, cpu usage is ~5%. The same query took 8 mins.
It's intriguing...

I ran into same, or similar, issue. Whether using a single large table (3tb) or a merge of many tables my queries would start off using all CPU and most IO then dwindle down to a single thread and little IO. It's not an issue with the system as increasing max_streams_to_max_threads_ratio uses most, if not all, resources until the end of the query at the expense of over utilizing all CPU and IO initially. My queries are only using indexed fields: select indexed_field1, indexed_field2 from ... where indexed_field1 = ??? and indexed_field2 = ???.
https://groups.google.com/forum/#!topic/clickhouse/ErV2cwwyoZg

@fleapapa ,
Could you do the following:

run select count() from system.parts where table = 'your_table_name'
run iotop and look at IO column to see if clickhouse threads spent mots of the time on IO operations (I expect it could be close to 100%)
increase max_threads more (8, 12, 16) and look at changing in top and iotop numbers

the result is 10
io was close to 100% on both threads (by default max_threads)
when max_threads = 16,  io is nearly 100% on 8 threads but very slow on the other 8 thread.
cpu is only ~3% on one thread and nearly 0% on all the other 15 thread.

iotop:
11857 be/4 root        2.16 M/s    0.00 B/s  0.00 % 99.99 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
11860 be/4 root        2.16 M/s    0.00 B/s  0.00 % 99.99 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
11858 be/4 root     1962.52 K/s    0.00 B/s  0.00 % 97.82 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
11861 be/4 root     1962.52 K/s    0.00 B/s  0.00 % 96.63 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
11862 be/4 root     1912.69 K/s    0.00 B/s  0.00 % 95.94 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
11859 be/4 root     1552.39 K/s    0.00 B/s  0.00 % 95.92 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
11850 be/4 root     1962.52 K/s    0.00 B/s  0.00 % 94.44 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
11863 be/4 root     1962.52 K/s    0.00 B/s  0.00 % 93.17 % clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon [ParalInputsProc]
htop:
11051 root       20   0 58860 11128  2132 S  6.1  1.1  0:32.27 /usr/bin/python /usr/sbin/iotop
27992 root       20   0  650M  114M     0 S  4.8 11.6  3:08.09 clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon
3337 ppan       20   0 26640  1920   708 S  0.7  0.2  0:50.05 htop
11862 root       20   0  650M  114M     0 D  0.7 11.6  0:00.51 clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon
11850 root       20   0  650M  114M     0 D  0.7 11.6  0:00.51 clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon
11861 root               650M  114M     0 D  0.7 11.6  0:00.51 clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon
11857 root       20   0  650M  114M     0 D  0.7 11.6  0:00.38 clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon
11860 root       20   0  650M  114M     0 D  0.7 11.6  0:00.49 clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon
11859 root       20   0  650M  114M     0 D  0.0 11.6  0:00.52 clickhouse-server --config=/etc/clickhouse-server/config.xml --daemon

means that you have only 10 parts in table, so more than 10 threads won't help. Is it still works slower with 10 threads than spark?

Could you also show table structure (show create table your_table_name) and full query text?

@daledude,
As I can understand, your issue is not the same. You have degradation in performance because during reading from table with Engine = Merge(...) threads are doing different amount of work.
You can also try to exclude big table from merge and rewrite query with UNION ALL: https://clickhouse.yandex/docs/en/query_language/queries.html#union-all-clause

Nope. With 10 thread, it is even worse -- took 567.033 secs. Weird is during the query, top shows "Load average: 24.83 15.13 6.59" while cpu usage on both cores was very low <5%. Due to the high load, all terminal windows were locked up till the query ended.

show create table trip:
CREATE TABLE default.trip ( _cx Date,  _c0 String,  _c1 String,  _c2 String,  _c3 String,  _c4 String,  _c5 DateTime,  _c6 DateTime,  _c7 Int8,  _c8 UInt16,  _c9 Float32,  _c10 Float32,  _c11 Float32,  _c12 Float32,  _c13 Float32) ENGINE = MergeTree(_cx, (_c5, _c6, _c10, _c11), 8192)

the query =
select _c8,_c9 from trip
where _c0='07290D3599E7A0D62097A346EFCC1FB5'
and _c1='E7750A37CAB07D0DFF0AF7E3573AC141'
and _c6>'2013-01-01 00:00:00'
and _c6<'2013-02-01 00:00:00'

The following tree view might be a clue about why system load was >24.

Any update?
When i redid the test with almost the same environment as previously, except that this time i added 1GB more memory to my Ubuntu VM host, the result got worse! Immediately after i launched Clickhouse server and submitted the first (and the only one) query as below, my VM got completely frozen and no remote ssh access was possible. I had to reboot my VM.
Here is the query that freezed my host:

SELECT
avg(_c8),
avg(_c9)
FROM trip
WHERE (_c0 = '07290D3599E7A0D62097A346EFCC1FB5') AND (_c1 = 'E7750A37CAB07D0DFF0AF7E3573AC141') AND (_c6 > '2013-01-01 00:00:00') AND (_c6 < '2013-02-01 00:00:00')

By the way, when the column _c6 in the WHERE condition was changed to _c5, the query took <1s, so index does help a lot. (Note: in my schema, _c5 is the first column in primary index, _c6 is the second one) The problem is CH doesn't support secondary index. Right?

@fleapapa do you have any further questions?

No. Sorry, i haven't had chance to revisit the issue since. Feel free to close this issue if it has been fixed or never existed. Thanks!


parse object description from structure annotation.

Describe the PR
parse object description from structure annotation.
some entity.go

type Post struct {
	ID int `json:"id" example:"1" format:"int64" description:"Post primary field."`
	// Post name
	Name string `json:"name" example:"poti"`
	// Post data
	Data struct {
		// Post tag
		Tag []string `json:"name"`
	} `json:"data"`
}

output
swagger.json
 "id": {
                    "description": "Post primary field.",
                    "type": "integer",
                    "format": "int64",
                    "example": 1
                },

Additional context
if attribute not setting. use the previous rules

Codecov Report

Merging #457 into master will increase coverage by 0.06%.
The diff coverage is 95.83%.

@@            Coverage Diff             @@
##           master     #457      +/-   ##
==========================================
+ Coverage   83.36%   83.43%   +0.06%
==========================================
  Files           7        7
  Lines        1467     1479      +12
==========================================
+ Hits         1223     1234      +11
- Misses        138      139       +1
  Partials      106      106

Impacted Files
Coverage Δ

parser.go
80.92% <100%> (+0.15%)
:arrow_up:

operation.go
86.13% <80%> (-0.08%)
:arrow_down:

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 4642ffd...befac2c. Read the comment docs.

Before doing any code review.
Why do you think decorating struct with another tag is more fine then a annotation/comment ?

I generated structure from databases.
put the table filed comment of the database into the structure description.
i need swag to show  it.

Longitude *[]float64 `gorm:"column:longitude;type:Longitude;description:" json:"longitude" format:"[]float64"  description:"last connect longitude, don't change" `

How about your thought for this PR? @pei0804 @ubogdan

@easonlin404 this PR does not come from an issue.
My personal trough: tag decoration is ugly and it does not justify if it is already implemented in annotation and is not even used for something else like "validation" by example.
Anyway ,default swagger behavior should be keept (comments from anotations should have priority).

@easonlin404 this PR does not come from an issue.
My personal trough: tag decoration is ugly and it does not justify if it is already implemented in annotation and is not even used for something else like "validation" by example.
Anyway ,default swagger behavior should be keept (comments from anotations should have priority).

I aggre with you. Maybe we could close this PR.


No settings showing up in browser settings

A recent Zen update moved these settings into a separate tab on the settings page called 'Theme Store' (They were previously in Look and Feel). I've also double checked the latest Zen version (1.0.0-a.33 as of writing) and they are visible in the Theme Store tab.The README will be updated to account for this change.

Huh, as an additional comment, now the settings for all themes has disappeared from my 'Theme Store' settings page. Looks like this might be a browser bug. From what I can tell, some fixes for that page will be going out with Zen version 1.0.0-a35.

This has been fixed as of 1.0.0-a.35.


2.6.3 Upgrade to 2.6.12 Fails Description

 const GetValue = lib.func(487, 'bool', ['int', 'int', 'int', '_Out_ SENSOR_READ_RESULT *'])
Calling GetValue does not return the data correctly. 2.6.3 is OK

Hi, there's not enough info for me to do anything.
Please provide more code and information about the API you are trying to call. Ideally, provide a minimal repro code that works with 2.6.3 and fails with 2.6.12.

Please reopen if you have more information.


[1353] only show transition_info page if user is opted in

https://trello.com/c/6AtQ386u/1353-only-redirect-users-to-the-transition-info-screen-if-they-have-any-optedin-providers
Context
Only opted-in users should see the transition page.
Changes proposed in this pull request
Check that a user is opted-in before redirecting them to the transition page.
Guidance to review
Example - http://localhost:3001/api/v2/users/10345
See https://github.com/DFE-Digital/manage-courses-backend/pull/294

 Only redirect users to the transition-info screen if they have any opted_in providers


Missing major tags

A common pattern for actions is to always create a tag for the major version, such as v1, v2 and etc. which this action is missing.
Could that be implemented? There are several actions that can take care of that automatically when new tags following semver are released.

Hey @ldaneliukas,
will take care about this after the v2.3.0 release


Next Steps Azure Storage needs to be updated

Since this document was last modified the Azure Storage for PAAS document was published.  The Azure Storage Next Step needs to be updated to link to this doc:
https://docs.microsoft.com/en-us/azure/security/security-paas-applications-using-storage

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5e6dec1d-373d-292b-a0d2-98ed82b71e44
Version Independent ID: 8833e5bc-fded-cda8-0126-786c72ff6b30
Content: Securing PaaS deployments
Content Source: articles/security/security-paas-deployments.md
Service: security
GitHub Login: @techlake
Microsoft Alias: terrylan

@samworkman Thanks for reporting! I have created pull request with the change and updated content will be live soon.


chore: cleanup publisher rendering

Depends on https://github.com/metanorma/pubid-core/pull/9
Metanorma PR checklist

[ ] Breaking changes (list related PRs)
[ ] Documentation update required (create task for this)
[ ] External dependency introduced (documentation update need)
[ ] Gem with native library introduced

There are some more fixes to be made here. @mico can you please help? Thanks.
Also we need to merge https://github.com/metanorma/pubid-core/pull/9 first, and then remove the line pointing to that repo from the Gemfile.

Failures:
Failures:

  1) Pubid::Iso::Identifier ISO/IEC/IEEE 26512 behaves like converts pubid to pubid converts pubid to pubid
     Failure/Error: expect(subject.to_s(format: :ref_num_long)).to eq(pubid)

       expected: "ISO/IEC/IEEE 26512"
            got: "ISO/IEEE/IEC 26512"

       (compared using ==)
     Shared Example Group: "converts pubid to pubid" called from ./spec/pubid_iso/identifier/identifier_spec.rb:63
     # ./spec/support/convert_pubid.rb:9:in `block (2 levels) in <top (required)>'

  2) Pubid::Iso::Identifier GUIDE ISO/CEI 71:2001(F) behaves like converts pubid to french pubid converts pubid to french pubid
     Failure/Error: expect(subject.to_s(format: :ref_num_long, lang: :french)).to eq(french_pubid)

       expected: "Guide ISO/CEI 71:2001(fr)"
            got: "Guide ISO/CEI  71:2001(fr)"

       (compared using ==)
     Shared Example Group: "converts pubid to french pubid" called from ./spec/pubid_iso/identifier/identifier_spec.rb:372
     # ./spec/support/convert_pubid.rb:21:in `block (2 levels) in <top (required)>'

  3) Pubid::Iso::Identifier ISO/IEC 17025:2005/Cor.1:2006(fr) behaves like converts pubid to french pubid converts pubid to french pubid
     Failure/Error: expect(subject.to_s(format: :ref_num_long, lang: :french)).to eq(french_pubid)

       expected: "ISO/CEI 17025:2005/Cor.1:2006(fr)"
            got: "ISO/IEC 17025:2005/Cor.1:2006(fr)"

       (compared using ==)
     Shared Example Group: "converts pubid to french pubid" called from ./spec/pubid_iso/identifier/identifier_spec.rb:408
     # ./spec/support/convert_pubid.rb:21:in `block (2 levels) in <top (required)>'

  4) Pubid::Iso::Identifier Руководство ИСО/МЭК 76 behaves like converts pubid to russian pubid converts pubid to russian pubid
     Failure/Error: expect(subject.to_s(format: :ref_num_long, lang: :russian)).to eq(russian_pubid)

       expected: "Руководство ИСО/МЭК 76"
            got: "Руководство ИСО/МЭК  76"

       (compared using ==)
     Shared Example Group: "converts pubid to russian pubid" called from ./spec/pubid_iso/identifier/identifier_spec.rb:437
     # ./spec/support/convert_pubid.rb:27:in `block (2 levels) in <top (required)>'

  5) Pubid::Iso::Identifier ИСО/ОПМС 26000:2010(R) behaves like converts pubid to russian pubid converts pubid to russian pubid
     Failure/Error: expect(subject.to_s(format: :ref_num_long, lang: :russian)).to eq(russian_pubid)

       expected: "ИСО/ОПМС 26000:2010(ru)"
            got: "ОПМС 26000:2010(ru)"

       (compared using ==)
     Shared Example Group: "converts pubid to russian pubid" called from ./spec/pubid_iso/identifier/identifier_spec.rb:448
     # ./spec/support/convert_pubid.rb:27:in `block (2 levels) in <top (required)>'

  6) Pubid::Iso::Identifier ISO/IEC/IEEE DTS 17301-1-1:2016(en) behaves like converts pubid to pubid converts pubid to pubid
     Failure/Error: expect(subject.to_s(format: :ref_num_long)).to eq(pubid)

       expected: "ISO/IEC/IEEE DTS 17301-1-1:2016(en)"
            got: "ISO/IEEE/IEC DTS 17301-1-1:2016(en)"

       (compared using ==)
     Shared Example Group: "converts pubid to pubid" called from ./spec/pubid_iso/identifier/identifier_spec.rb:530
     # ./spec/support/convert_pubid.rb:9:in `block (2 levels) in <top (required)>'

  7) Pubid::Iso::Identifier ISO/IEC/IEEE FDTR 17301-1-1:2016(en) behaves like converts pubid to pubid converts pubid to pubid
     Failure/Error: expect(subject.to_s(format: :ref_num_long)).to eq(pubid)

       expected: "ISO/IEC/IEEE FDTR 17301-1-1:2016(en)"
            got: "ISO/IEEE/IEC FDTR 17301-1-1:2016(en)"

       (compared using ==)
     Shared Example Group: "converts pubid to pubid" called from ./spec/pubid_iso/identifier/identifier_spec.rb:536
     # ./spec/support/convert_pubid.rb:9:in `block (2 levels) in <top (required)>'


ucspi-tcp broken

Issue description
ucspi-tcp is broken in the current master and nixos-17.03.
The bug was introduced by f4b4edc290377a402ad949c6c178785bebd6efe8
Steps to reproduce
nix-shell -p ucspi-tcp on current master or 17.03

The failure is due to s{u,g}id bits now being illegal. To fix it, patch the ucspi-tcp build recipe to avoid attempting to create files with those bits set.


Add Linux binary installation into Brew tap

Is your feature request related to a problem? Please describe.
Can't install tcping on Linux using Homebrew despite having Linux binaries and Homebrew supporting Linux.
Describe the solution you'd like
Add Linux binaries to Homebrew tap.
Describe alternatives you've considered
Homebrew is a great package manager support on Linux too.

Hey @yermulnik ,
Thanks for bringing this to my attention.
I have no experience with brew and Linux but I will try to take a look this weekend.

Could you try with the command below and let me know if it is working now?
brew install pouriyajamshidi/tap/linux_tcping

Thanks in advance

@pouriyajamshidi Thanks for looking into this.
I tried and it failed:
> brew install pouriyajamshidi/tap/linux_tcping
Error: No available formula with the name "pouriyajamshidi/tap/linux_tcping". Did you mean pouriyajamshidi/tap/tcping?
In formula file: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/pouriyajamshidi/homebrew-tap/linux_tcping.rb
Expected to find class LinuxTcping, but only found: Tcping.

As for tap you don't actually need a standalone tap for Linux, but rather just add Linux binaries into existing one. Here are some examples from custom tap I have installed locally:

https://github.com/peak/homebrew-tap/blob/main/Formula/s5cmd.rb
https://github.com/env0/homebrew-terratag/blob/master/terratag.rb
https://github.com/hashicorp/homebrew-tap/tree/master/Formula

Hope this helps.
Also what I've found when initially installed tcping (which obviously installed MacOS binary) was that the binary was missing executable bit. Not sure whether it's okay for Homebrew on MacOS though 🤷🏻
> brew install pouriyajamshidi/tap/tcping
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).

==> Downloading https://github.com/pouriyajamshidi/tcping/releases/download/v1.12.1/tcping_MacOS.zip
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/61d79fbc1b1230f95ba15d9b1029d53cded82d392f373a4775acc3c906e6f6e5--tcping_MacOS.zip
==> Installing tcping from pouriyajamshidi/tap
✔  /home/linuxbrew/.linuxbrew/Cellar/tcping/v1.12.1: 3 files, 5.3MB, built in 1 second
==> Running `brew cleanup tcping`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

> ls -la /home/linuxbrew/.linuxbrew/Cellar/tcping/v1.12.1/bin/tcping
-r--r--r-- 1 giermulnik giermulnik 5509968 Jul 10 23:13 /home/linuxbrew/.linuxbrew/Cellar/tcping/v1.12.1/bin/tcping

> ls -la /home/linuxbrew/.linuxbrew/bin/tcping
lrwxrwxrwx 1 giermulnik giermulnik 35 Nov 19 16:45 /home/linuxbrew/.linuxbrew/bin/tcping -> ../Cellar/tcping/v1.12.1/bin/tcping

Hey @yermulnik,
Thank you so much for providing those examples. I have made the necessary changes and it should be ok now. Though I am not having my Linux machine to test it myself now, so I will rely on your update to give it an ok or not.
Regarding the Mac OS binary, not having the x bit is fine. It works as expected.

All good! Thanks a lot!
> brew install pouriyajamshidi/tap/tcping
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).

==> Downloading https://github.com/pouriyajamshidi/tcping/releases/download/v1.12.1/tcping_Linux.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/34
######################################################################## 100.0%
==> Installing tcping from pouriyajamshidi/tap
✔  /home/linuxbrew/.linuxbrew/Cellar/tcping/v1.12.1: 3 files, 5MB, built in 3 seconds
==> Running `brew cleanup tcping`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

> which tcping
/home/linuxbrew/.linuxbrew/bin/tcping

> tcping -v
TCPING version 1.12.1

Perfect! Thanks!


Update bucketfs-python usage to new API

query_handler_runner_udf.py

self.bucketfs_location: Optional[AbstractBucketFSLocation] = None
self._create_bucketfs_location()

Options for refactoring class BucketFSLocationProxy:

O1) change return type of bucketfs_location() from  BucketFSLocation to PathLike
O2) implement PathLike by implementing all required methods

in each method call self._check_if_released() inherited from ObjectProxy

Status

[ ] bucketfs_location_proxy.py
[ ] top_level_query_handler_context.py
[ ] query_handler_runner_udf.py
[ ] fixtures.py
[ ] test_scope_query_handler_context.py
[ ] test_top_level_query_handler_context.py
[ ] test_mock_query_handler_runner.py
[ ] test_json_udf_query_handler.py
[ ] test_query_handler_runner_udf_mock.py
[ ] test_json_udf_query_handler_factory.py


CHANGELOG.txt not up to date

Thanks for a very useful app!
A minor request though: can CHANGELOG.txt be kept up to date for future releases?
It hasn't been updated since 2.0.0; currently we're running manual diffs between releases to confirm that there appears to be no breaking changes and I'm sure we're not the only ones doing this.
This would be much quicker (and less error-prone) for users if the change log was updated on each release (or -- less work for you -- if pull requests weren't accepted until the requester updated it).

Hi @levic.
Thanks for your feedback. I absolutely agree!
I will update the CHANGELOG.txt in the next days.
In the meantime you can check https://github.com/arteria/django-hijack/releases or open a new Issue if you have any questions.

Changelog is up to date.


MAE-219 Rich text form component

Hey Guys, good to see work going on for this!  Do you know when you may have this published, i'm almost done with a Community "Baseline" project and i would love to have this as part of it (and then be able to remove our TinyMCE rich text editor that we are using for the Form Component)

Hi @KenticoDevTrev, it's great to see you're excited about this feature, but since the launch of the next v13 beta is near, we had to switch our focus a bit, but you can expect the rich text form component to be released in 2 weeks or so.

Alright, thanks!


Is is possible to use diskover without creating an account with a 3rd party ?

Is it possible to deploy diskover without having to create an account with an unknown entity or issue token myself ? thanks.

It's not an unknown entity, it's hosted by the Shirosaidev team who developed diskover.

@domainoverflow just use the version without the callback, there has been very little added other than the callback itself from what I understand. The linuxserver.io docker uses the non callback version by default if you use docker.
@shirosaidev just because the Shirosaidev team is the one hosting the callback doesn't really make them (you) an unknown entity.

Thanks KodeStar !

From: KodeStar<EMAIL_ADDRESS>Sent: September 3, 2020 1:16 PM
To: shirosaidev/diskover<EMAIL_ADDRESS>Cc: DomainOverflow.com<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [shirosaidev/diskover] Is is possible to use diskover without creating an account with a 3rd party ? (#84)
@domainoverflowhttps://github.com/domainoverflow just use the version without the callback, there has been very little added other than the callback itself from what I understand. The linuxserver.io docker uses the non callback version by default if you use docker.
@shirosaidevhttps://github.com/shirosaidev just because the Shirosaidev team is the one hosting the callback doesn't really make them (you) an unknown entity.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/shirosaidev/diskover/issues/84#issuecomment-686482940, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIA6ESQXMBVCYRUQ2RWMW4LSD6JKRANCNFSM4PH6PMQQ.

It's not an unknown entity, it's hosted by the Shirosaidev team who developed diskover.

@shirosaidev It's all about having f u l l control and passing compliances in multiple envs. And that doesn't cut it unfortunately.


How can high concurrency for EV have a positive effect on load reduction with storage

I am trying to wrap my head around the following effect (at least qualitatively): If, in this LES, I give all EV the same profile and apply storage, the reduction is a LOT (even in January):

But when I use as many profiles (spreading the load), the reduction when using storage is far less:

How can this be?

This has to do with the differences in distance travelled for each profile. Driver 1 travel only 4.3 km (total from and to work). See an overview of the distances travelled for each driver in the tabel below:

@jorisberkhout thanks for your input. Unfortunately, it seems to be a more technical issue. If you look at the first week of January for one profile you can see huge reductions in load:

For a number of profiles that reduction is gone:

I would trust the latter result more because there is not enough local solar PV production (see blue curve) to charge the EV at all.

After @antw's fix of https://github.com/quintel/etmoses/commit/969cf3b2b6fc1d4e87c45b99032068855ee25332, the results are less weird but still there is the following issue:
For a single profile there are moments that the EVs are all loading to buffer the excess PV production (which is expected):

For multiple profiles, I would think this effect would be less: the concurrency of loading is lower with multiple profiles. But I see much higher peaks in summer weeks then would be the case without storage enabled. Maybe I'm tired and not reading these curves right but it looks to me as if the cars are loading at a higher capacity then the solar panels are actually proving:

Now that I think of it, this may be because the cars can only load at their maximum capacity at the moment and are (in effect) not loading for the entire duration of the time-step. Is that the case @antw ?
If not, are we sure that energy is conserved? Or are EVs buffering more kWh's than PV are actually producing?

I think the problem in your example is that you're comparing a testing ground which has an EV technology which uses profile_1 and units=15 to a testing ground which uses a wide range of different profiles and units=1.
I created two new LES' based on yours: one which uses one EV profile_1 and units=15 technology here, and another which uses 15 separate profile_1 and units=1 EVs here. The charts are almost identical. In theory, I think they should be completely identical – I'll make an effort to find out why next week – but I think the remaining anomalies are tiny in the big scheme of things.
1x profile_1 and units=15

15x profile_1 and units=1

Or are EVs buffering more kWh's than PV are actually producing?

If you look at the load on Cluster #2 and Cluster #3 in the same time period, they have negative loads. PV from Cluster 2 and 3 is being used to charge EVs in cluster 1. Ideally they would prioritise EVs attached to their own node – PV in cluster 2 should charge EVs in cluster 2 first – but that depends on "subnet awareness" (got to find a better name for that).

@antw thanks for looking into this. I think your assessment makes sense. I'll do some more quantitative checks later.

I think this issue is fixed!


[SPARK-38754][SQL][TEST][3.1] Using EquivalentExpressions getEquivalentExprs function instead of getExprState at SubexpressionEliminationSuite

What changes were proposed in this pull request?

This pr use EquivalentExpressions getEquivalentExprs function instead of getExprState at SubexpressionEliminationSuite, and remove cpus paramter.
Why are the changes needed?

Fixes build error
Does this PR introduce any user-facing change?

NO
How was this patch tested?

CI Tests

Can we merge it ？cc: @cloud-fan

thanks, merging to 3.2/3.1

Hi, @cloud-fan .
This seems to break branch-3.2 compilation.
[error] /home/runner/work/spark/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/SubexpressionEliminationSuite.scala:404:26: value getEquivalentExprs is not a member of org.apache.spark.sql.catalyst.expressions.EquivalentExpressions
[error]       assert(equivalence.getEquivalentExprs(expression).size == 0)
[error]                          ^
[error] one error found

Originally, branch-3.1 was broken, but branch-3.2 wasn't.
Given that, the forward-port from 3.1 to 3.2 looks wrong to me.
I'm going to revert this from branch-3.2 and recover branch-3.2 compilation.
If we need this in branch-3.2 for some other reasons, please make a follow-up PR to get a build result.
Thanks!