slim down binary size

We are able to slim down the image size and speed up CI a bit by disabling symbol table and DWARF generation on binaries. People who prefer to debug when running binaries can still choose to attach gdb on the minimatch binary.

What's the time savings for this change? Because the downside potentially significant.

What's the time savings for this change? Because the downside potentially significant.

I see a 10-15 seconds time save in cloud builder's make all step. What are the downsides? The go build commands in our Dockerfiles are untouched, so the added flags only affect the binaries being generated in the CI step, which will be discarded.

The issue is that this complicates debugging and logging. This will be more apparent once tracing comes online. I'd say we should hold off on this is needed for more practical reasons like it's adding more perf or something.
Shaving off half a minute does not really seem to be worth the gain here. There's more impactful changes that can be made to speed up the build process.


Release 1.1.9 to RubyGems?

Hi! I was wondering if you guys were planning on releasing 1.1.9 to RubyGems? Latest version is 1.1.8. Thanks!

I have released it one minute ago.

Please, let me know if it fixes the issue.

It does, thanks!


Can we get this code updated with reference to Android API level 28

@ayushkul sorry, what is the purpose of this request? Can you please elaborate?


add navbar and footer

solve issue #18

Nice! I like it. However because we merged an earlier pull request there's a merge conflict. If solve it or make a mew pull request we will be happy to merge it :)


How to alter font size with SegmentedControlIOS

Any ideas how this is done? I added a style component to SegmentedControlIOS with fontSize but it didn't change anything.

After a bit of research it appears we need to access [setTitleTextAttributes] (https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISegmentedControl_Class/index.html#//apple_ref/occ/instm/UISegmentedControl/setTitleTextAttributes:forState:) in order to add custom font and size.
Unfortunately that feature is not currently implemented yet, if you think this is something you can tackle a PR would be greatly appreciated. :)
I'll go ahead and label accordingly and see if we can get more info.
@brentvatne @ide Any suggestions on the best way to approach this?

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/segmentedcontrolios-add-settitletextattributes-to-customize-font-stlying
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

+1


Connect Salesforce to Microsoft Defender for Cloud Apps - API limit

looking at the documentation, am I to understand that DFCA leaves 90% of the available API calls granted by the Salesforce license in a Single 24 hour period?

Thank you for your comment. We'll investigate and get back to you.

@LucioBenzor  - Thanks for your question.
Here's the response from the product group:
This is already clarified in the doc. We leave 10 % of the value and at max consume 90 % of available threshold.


fix scikit-image version skipping in the test suite

Due to a typo in test skip conditions (using skimage>=1.18) rather than the intended case of scikit-image>=0.18 a handful of test-cases were always being skipped even when new enough scikit-image was available.
Fixing the test skip condition so that these cases get run revealed a couple of errors in the test cases themselves, but fortunately did not reveal any underlying errors in the functions being tested.

@gpucibot merge


Add busuanzi不蒜子 or similar extensions to count visitors

Add busuanzi to count visitors in the footnote or count visits for each blog.
busuanzi website: https://busuanzi.ibruce.info/
Potential solution(Chinese version): https://cloud.tencent.com/developer/article/1669144

I’m sorry that we do not have a timetable for this feature for now as we want to improve Eureka in many aspects and the time is limited. But any PR is welcome!

发件人: PanZiwei<EMAIL_ADDRESS>发送时间: Wednesday, February 3, 2021 1:05:24 PM
收件人: wangchucheng/hugo-eureka<EMAIL_ADDRESS>抄送: Subscribed<EMAIL_ADDRESS>主题: [wangchucheng/hugo-eureka] Add busuanzi不蒜子 or similar extensions to count visitors (#57)
Add busuanzi to count visitors in the footnote or count visits for each blog.
busuanzi website: https://busuanzi.ibruce.info/
Potential solution(Chinese version): https://cloud.tencent.com/developer/article/1669144
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/wangchucheng/hugo-eureka/issues/57, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJEXGNHZ2FAGZ34JZSDTTKTS5DKRJANCNFSM4XAFP7DA.


There is no onClick function available for DxcLink component

Describe the bug
There is no onClick function available for DxcLink component
Expected behavior
There should be a onClick function available. We have a requirement, where we need to show an link and on click of that link we want to do some processing and do an task.

We are thinking about implementing a solution similar to this:
https://developer.microsoft.com/en-us/fluentui#/controls/web/link#usage

When a link has an href, it renders as an anchor tag. Without an href, the link is rendered as a button

It needs to be rendered as a button for accessibility reasons, but it will be styled as a link.
We will keep you updated with the implementation of this enhancement.
Thanks for the feedback.

Hi Jesus, Do we have any update on this implementation.

TO DO:

Add onClick property to DxcLink component
When DxcLink receives an action, it must render as a button, keeping the same visual style.


Drive Validations based on values returned from REST controller.

Code Sample:
ValidationRules
.ensure('id').displayName('ID').required().then().
Current behavior:
If code is bundled with webpacks, and later on we decided id is not a required field, we need to make code changes by removing .required() on a property and rebundle with webpack and deploy it
Expected/desired behavior:
Consider I have a REST CONTROLLER which says if that is required or not. Based on a value of a key I would like to dynamically set id as required or not required.
if the controller returns as below json, I would like id to be required:
id:{
required:true;
}
if the controller returns as below json, I would like id to be not required:
id:{
required:false;
}
I've already implemented a service which does that for me, Can I know how to achieve this on UI with Aurelia-Validation framework.?

Something like this:
//someother validations written here like as shown
ValidationRules
.ensure('cid').displayName('Company ID').required().then().matches(/^[a-zA-Z]{1}/).withMessage('${$displayName} should always start with alphabet').then().matches(/^[a-zA-Z]{1}[a-zA-Z0-9]*$/).withMessage('Spaces and Special characters are not allowed.').then().minLength(this.companyCidMin).maxLength(this.companyCidMax).on(this.selectedItem);
//then the following:
if(this.companyNameRequired){
ValidationRules
.ensure('cid').displayName('Company ID').required().on(this.selectedItem);
}

Something like this should work:
let partialRules = ValidationRules.ensure(property).required();

if (conditionFromBackend) {
partialRules = partialRules.ensure(property).satisfies(otherCondition);
}

partialRules.on(this.selectedItem);

Rule definition has a fluent interface, so every step can be saved into a variable. Note also that on can be applied to an object only once; doing it multiple times will just overwrite the current rules.


Redesign the UI/UX of the App for landing page

We need to rethink the UI/UX of the MERN stack app for the desktop. So we need experienced designers who are good at using FIGMA or Adobe XD. And create an overall UI of the App so that we can create and modify components according to it. @Mustafiz04 and @Sanyam2000-dot  can you look for experienced participants for it? Contact me as soon as you get one.

@srk224 Its my username, dont know why its not showing, you can share your username so that I could dm you.

@Saptar001 my username-Shahrukh💣#9724
Message me on discord

@Saptar001 Are you working only on the UI/Ux , or Else making The code for that , If not after completing the ui design i can make the code for that. @Saptar001 @srk224 If You agree with this ! @ADRE9 Look into this Contibution

@bhubesh757 start working on it and send me the link to FIGMA or AdobeXd . I will review your design.

@ADRE9 Can you give me a brief idea on what exactly we have to design !?

The total UI of the landing page for first. Since the UI of the app would be and overload. The better UI will be implemented and if I don't like it. I'll hire one from outside.

So basically we have to design a whole new website for this project?

Can I work on Enhancements of the UI of the website , like Fonts , Colors etc. ??

Can I work on Enhancements of the UI of the website , like Fonts , Colors etc. ??

like in this case

I changed the Logo font to Century Gothic
Likewise I'll try to improve the UI of the websites

@srk224 @farseenmanekhan1232 @Saptar001 you all can have a talk and make a consistent design. You can distribute the design of each page . I want it to be perfect and consistent. Each design will carry a level3 tag so yes I wont compromise a bit.

So should we implement the design in project itself or in Figma and Later implement the design in the project and Request for a PR??

Hey , @srk224 &  @Saptar001  , can we collaborate??

Use Figma for now , I'll review it. @Saptar001  is working on the landing page. Chose one page each.and be consistent to use same font and color palette everywhere. Better talk and decide.

Ok


Make plugin manager title links more obvious

Thanks to the work performed in this pull request, the title of a plugin in the plugin manager is now a link.
One improvement would be to make it more obvious the title is actually a link. Currently, there is no indication the title is actually a link until you click it and a page is opened.
My initial thoughts were to simply mimic how links normally work. In other words, the title could become underlined and the mouse cursor change when hovering.

I was thinking about doing the same when implementing that pull request. Would be a simple change, and then the links would behave like they usually do in web browsers.

Closing issue as PR #2294 addresses it.


⚠ SceneTime has degraded performance

In 171b6da, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1238 ms

Resolved: SceneTime performance has improved in 68bcbed after 12 minutes.


Template for workshours

[x] workhours file exists
[x] everybody in the team has done an update to the file

Template has been done and everybody in the team has updated it.


404 Error when trying voice cloning with Vall-E-X

LocalAI version:
localai/localai:v2.8.2-cublas-cuda12-ffmpeg
Environment, CPU architecture, OS, and Version:
Windows 11 Home 23H2, CPU : 12th Gen Intel(R) Core(TM) i9-12900H   2.90 GHz, GPU : Nvidia RTX 3060 Laptop, 32 GB of RAM
Describe the bug
The voice cloning starts generating, but is halted by a 404 error and produces an empty output file.
To Reproduce
Launched a container with the following command :
docker run -e DEBUG=true -ti -p 8080:8080 --mount type=bind,source=c:\voices\models,destination=/models,bind-propagation=shared --mount type=bind,source=c:\voices\audio,destination=/tmp/generated/audio,bind-propagation=shared --gpus all localai/localai:v2.8.2-cublas-cuda12-ffmpeg vall-e-x
logged as root in the container via the command su -
Copied the necessary files in the right place with the following command :
cp /models/cloned.yaml /build/models && cp /models/DunmerM.wav /build/models
Ran voice cloning with the following command :
curl http://localhost:8080/tts -H "Content-Type: application/json" -d '{"backend": "vall-e-x", "model": "cloned-voice", "input": "Bonjour, ceci est un essai"}' > /models/output.wav
Expected behavior
A generated wav file in /models based on the cloned voice saying "Bonjour, ceci est un essai"
Logs
8:10AM DBG Request for model: cloned-voice
8:10AM INF Loading model 'cloned-voice' with backend vall-e-x
8:10AM DBG Loading model in memory from file: /build/models/cloned-voice
8:10AM DBG Loading Model cloned-voice with gRPC (file: /build/models/cloned-voice) (backend: vall-e-x): {backendString:vall-e-x model:cloned-voice threads:0 assetDir:/tmp/localai/backend_data context:{emptyCtx:{}} gRPCOptions:0xc000224800 externalBackends:map[autogptq:/build/backend/python/autogptq/run.sh bark:/build/backend/python/bark/run.sh coqui:/build/backend/python/coqui/run.sh diffusers:/build/backend/python/diffusers/run.sh exllama:/build/backend/python/exllama/run.sh exllama2:/build/backend/python/exllama2/run.sh huggingface-embeddings:/build/backend/python/sentencetransformers/run.sh mamba:/build/backend/python/mamba/run.sh petals:/build/backend/python/petals/run.sh sentencetransformers:/build/backend/python/sentencetransformers/run.sh transformers:/build/backend/python/transformers/run.sh transformers-musicgen:/build/backend/python/transformers-musicgen/run.sh vall-e-x:/build/backend/python/vall-e-x/run.sh vllm:/build/backend/python/vllm/run.sh] grpcAttempts:20 grpcAttemptsDelay:2 singleActiveBackend:false parallelRequests:false}
8:10AM DBG Loading external backend: /build/backend/python/vall-e-x/run.sh
8:10AM DBG Loading GRPC Process: /build/backend/python/vall-e-x/run.sh
8:10AM DBG GRPC Service for cloned-voice will be running at: '<IP_ADDRESS>:32829'
8:10AM DBG GRPC Service state dir: /tmp/go-processmanager1384383809
8:10AM DBG GRPC Service Started
8:10AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr /opt/conda/envs/transformers/lib/python3.11/site-packages/torch/nn/utils/weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
8:10AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr   warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
8:10AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr Downloading: "https://dl.fbaipublicfiles.com/encodec/v0/encodec_24khz-d7cc33bc.th" to /root/.cache/torch/hub/checkpoints/encodec_24khz-d7cc33bc.th
100%|██████████| 88.9M/88.9M [00:04<00:00, 22.4MB/s]r
8:10AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr Server started. Listening on: <IP_ADDRESS>:32829
[<IP_ADDRESS>]:41628 200 - GET /readyz
8:10AM DBG GRPC Service Ready
8:10AM DBG GRPC: Loading model with options: {state:{NoUnkeyedLiterals:{} DoNotCompare:[] DoNotCopy:[] atomicMessageInfo:} sizeCache:0 unknownFields:[] Model:cloned-voice ContextSize:0 Seed:0 NBatch:512 F16Memory:false MLock:false MMap:false VocabOnly:false LowVRAM:false Embeddings:false NUMA:false NGPULayers:0 MainGPU: TensorSplit: Threads:4 LibrarySearchPath: RopeFreqBase:0 RopeFreqScale:0 RMSNormEps:0 NGQA:0 ModelFile:/build/models/cloned-voice Device: UseTriton:false ModelBaseName: UseFastTokenizer:false PipelineType: SchedulerType: CUDA:false CFGScale:0 IMG2IMG:false CLIPModel: CLIPSubfolder: CLIPSkip:0 ControlNet: Tokenizer: LoraBase: LoraAdapter: LoraScale:0 NoMulMatQ:false DraftModel: AudioPath: Quantization: MMProj: RopeScaling: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0 Type:}
8:10AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr Preparing models, please wait
[<IP_ADDRESS>]:43708 200 - GET /readyz
config.yaml: 100%|██████████| 503/503 [00:00<00:00, 2.76MB/s]
pytorch_model.bin: 100%|██████████| 40.4M/40.4M [00:01<00:00, 21.4MB/s]
8:11AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr text: "Bonjour, ceci est un essai"
8:11AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr model: "/build/models/cloned-voice"
8:11AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr dst: "/tmp/generated/audio/piper.wav"
8:11AM DBG GRPC(cloned-voice-<IP_ADDRESS>:32829): stderr
[<IP_ADDRESS>]:37670 404 - POST /tts
[<IP_ADDRESS>]:41666 200 - GET /readyz
Thanks in advance.

the generated audio file is NOT in the models. "/tmp/generated/audio/piper.wav". this is also working in the latest image, Altho if you try to generate anything long it tends to just respond random sounds (this issue specifically is a model issue not backend)
so i suggest updating to the latest image and testing again.


HOW TO FIX CHAPTERS AND SHORTS COMMENTS NOT WORKING(UPDATE)

THIS IS AN UPDATE TO THE PREVIOUS FIX THAT I HAVE POSTED...

So far it seems to be working. Shorts comments and chapter button works. Also appears to have reinstated removal of the front page video ad.
However it seems to have brought back the video ad for recommended videos that shows on the right side of videos:

After further testing, using the 2.7 commit by @TheRealJoelmatic and implementing your line replacements, i've been able to run into the persistent ad center again:

I am afraid the update and replacement code:114 - 228 is not working on my system.

After even more testing, I can also confirm that the white screen persistence is again an issue with 2,7 + @Altex2 's replacement code


modules README.md is always overwritten

tfaction version
1.2.1
Overview
when generating the terraform docs in module test READMe.md is always overwritten
How to reproduce
tfaction-root.yaml
---
plan_workflow_name: pull_request_target # Mandatory
label_prefixes:
  tfmigrate: "migrate:"
# skip_create_pr: true

# drift_detection:
#   # issue_repo_owner:
#   # issue_repo_name:
#   minimum_detection_interval: 5 # 5 days. By default 7 days.
#   num_of_issues: 3 # 3 working directories are checked per workflow run. By default 1 working directory is checked.

tflint:
  enabled: true
tfsec:
  enabled: false
trivy:
  enabled: true

# scaffold_working_directory:
#   skip_adding_aqua_packages: true

aqua:
  update_checksum:
    # Update aqua-checksums.json in `setup` action
    enabled: true # default is false
    skip_push: false # default is false
    prune: true # default is false

target_groups:
  - working_directory: configurations/state-buckets-state
    target: configurations/state-buckets-state
    gcs_bucket_name_tfmigrate_history: '<S3 Bucket Name for tfmigrate history files>' # CHANGEME
    template_dir: templates/gcp

  - working_directory: gcp/
    target: gcp/
    gcs_bucket_name_tfmigrate_history: '<GCS Bucket Name for tfmigrate history files>'
    template_dir: templates/gcp
    # terraform_plan_config:
    #   gcp_service_account<EMAIL_ADDRESS>    #   gcp_workload_identity_provider: projects/000000000000/locations/global/workloadIdentityPools/github/providers/tfaction
    # tfmigrate_plan_config:
    #   gcp_service_account<EMAIL_ADDRESS>    #   gcp_workload_identity_provider: projects/000000000000/locations/global/workloadIdentityPools/github/providers/tfaction
    # terraform_apply_config:
    #   gcp_service_account<EMAIL_ADDRESS>    #   gcp_workload_identity_provider: projects/000000000000/locations/global/workloadIdentityPools/github/providers/tfaction
    # tfmigrate_apply_config:
    #   gcp_service_account<EMAIL_ADDRESS>    #   gcp_workload_identit

tfaction.yaml

GitHub Actions Workflow

Other related code such as local Registry

GitHub Actions' log

Run ! test -f .terraform.lock.hcl || rm .terraform.lock.hcl
Run set -euo pipefail
time="2024-03-13T08:25:35Z" level=info msg="download and unarchive the package" aqua_version=2.24.0 env=linux/amd64 exe_name=terraform-docs package_name=terraform-docs/terraform-docs package_version=v0.16.0 program=aqua registry=standard
Error: Please generate Module's README.md with terraform-docs.
Error: Process completed with exit code 1.

Expected behaviour
inject terraform docs to README.md without overwriting the content
Actual behaviour
overwrites entire README.md
Important Factoids
No response
Note
we can do the following to inject docs anywhere in the README.md the user wants. this will give the user a choice where to add docs.
.terraform-docs.yml
formatter: markdown
header-from: docs/header.md
footer-from: docs/footer.md
output:
  file: README.md
  mode: inject

README.md
<!-- BEGIN_TF_DOCS -->
    {{ .Content }}
<!-- END_TF_DOCS -->
## Requirements

Before this module can be used on a project, you must ensure that the following pre-requisites are fulfilled:

1. Required APIs are activated

    ```
    "iam.googleapis.com",
    "cloudresourcemanager.googleapis.com",
    "iamcredentials.googleapis.com",
    "sts.googleapis.com",
    ```

1. Service Account used to deploy this module has the following roles

    ```
    roles/iam.workloadIdentityPoolAdmin
    roles/iam.serviceAccountAdmin

and remove the redirection to the README.md from the step

also i think you need to add pull_request_targe here

Thank you for your feedback.
I didn't know the output config.
But I think you can use header-from and footer-from instead of inject mode.
https://github.com/suzuki-shunsuke/tfaction-example/blob/main/templates/module-hello/.terraform-docs.yml

also i think you need to add pull_request_targe here

Yeah, that's right. Thank you for pointing it out.

also i think you need to add pull_request_targe here

https://github.com/suzuki-shunsuke/tfaction/pull/1583

📝 --output-file was added at terraform-docs v0.12.0.
https://github.com/terraform-docs/terraform-docs/releases/tag/v0.12.0
The release date is Mar 23, 2021, so there is no problem.

Now test-module runs terraform-docs as the following.
https://github.com/suzuki-shunsuke/tfaction/blob/8e6060b0973557b49709ac60f1833709aae77bc9/test-module/action.yaml#L63
terraform-docs . > README.md

If output is set as the following, README.md becomes empty.
output:
  file: README.md
  mode: inject

$ terraform-docs . > README.md
$ cat README.md
Error: file content is empty

On the other hand, terraform-docs --output-file README.md . works well.
$ terraform-docs --output-file README.md .

But if the comment <!-- BEGIN_TF_DOCS --> isn't set, the command fails.
$ terraform-docs --output-file README.md .
Error: begin comment is missing

So this is a breaking change.

Check .terraform-docs.yml if output.file is set
If output.file is set, tfaction runs terraform-docs .
Otherwise tfaction runs terraform-docs . > README (Redirect the stdout to README.md)

https://github.com/suzuki-shunsuke/tfaction/pull/1584

v1.2.3 is out 🎉
https://github.com/suzuki-shunsuke/tfaction/releases/tag/v1.2.3


Run Android app with bluetooth on windows 11

Hi ,
I am trying to run android app on win 11 with Windows Subsystem for Android.
My app using connection to ble device (Not Audio device).
I am starting to scan ble devices and app is going to bluetooth setting in windows.
Is Windows Subsystem for Android supporting connection and communication with bluetooth device (Not Audio device)?
Thank you,
Salit

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

ID: 31f9a801-c5b5-94e7-41b9-1b2b4a1d27de
Version Independent ID: 31f9a801-c5b5-94e7-41b9-1b2b4a1d27de
Content: Windows Subsystem for Android™
Content Source: hub/android/wsa/index.md
Product: dev-environment
Technology: windows-android
GitHub Login: @mattwojo
Microsoft Alias: mattwoj

@hamza-usmani -- Do you know the answer to this question?

Hi, currently in Windows Subsystem for Android bluetooth functionality such as scanning for BLE devices is not supported.

Added a note about this: https://github.com/MicrosoftDocs/windows-uwp/commit/077f275d07234c6ac5585e9805a8dc656495130f
Closing. Thanks for bringing this to attention.

Do you know if scanning for BLE devices will be supporting in  Windows Subsystem for Android?
if yes when it will be available ?

Do you know if scanning for BLE devices will be supporting in Windows Subsystem for Android?


Numpy<1.22 requirement, could we upgrade it?

First of all, thank you for this amazing project, it has really sped up my team's shap execution.
My problem arises because the numpy<1.22 restriction causes conflicts with other packages we use.
In your setup.py code it says that this restriction is due to using numba, but in their own setup.py the minimum numpy version is 1.18 and there is no maximum version requirement. In fact, I've been able to upgrade numpy's version after installing fasttreeshap in a clean environment and have had no problem at all during my test executions (using numpy==1.23.5). This is how I setup the environment on Windows 10:
$ python -m venv venv_fasttreeshap
$ venv_fasttreeshap\Scripts\activate
$ pip install fasttreeshap
$ pip install --upgrade numpy==1.23.5

It throws the following error, but pip is finaly able to install it anyway:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fasttreeshap 0.1.2 requires numpy<1.22, but you have numpy 1.23.5 which is incompatible.

Do you think you could upgrade the numpy version in the install_requires section of setup.py, so that it's easier to combine fasttreeshap with other packages?
Thank you!

Just to add, this is very important to us, since it is blocking some tasks regarding the use of our packages

Hi, thanks for your kind words for this package. I have removed the numpy version restriction in setup.py and released a new version 0.1.3. Let me know if you still have issues in package installation.

Hi @jlyang1990 , thank you for such a quick response. Indeed our installation issues have been solved by this simple change :)


Format proposal

Let's discuss the output format here!
Rendered

Copied from https://github.com/sthiele/fzn2lp/issues/11
Given the array g, consisting of 20 restricted integer variables.
variable_type("g", array(20,int, set,(range,(17,23)))).   // 20 elements of int in the range 17..23
and a constraint, that expected a single array of integer variables as input:
constraint(c1,"all_diff").
constraint_value(c1,0,var,"g").

I would need to fill this array with all 20 elements of g.
This works, as I have the knowledge that the constraint "all_diff" expects an array of variables, so I can defer that g is either an array of integer variables or a parameter of ints.
Now, how are the variables inside g named?
Would flatzinc/your converter produce something like:
constraint(c2,"non_zero"); // a constraint that constrains a single integer variable to be non zero
constraint_value(c2,0,"g[0]").

Or how are indiced variables named in your converter. A more lp'ish syntax would help, like
constraint_value(c2,0,array_elem("g",0)).

I want to share some insight into the array usage inside minizinc:
Minizinc:
array [1..10] of var 21..30: e;
include "alldifferent.mzn";
constraint alldifferent(e);
constraint e[1] > e[2];

Produces Flatzinc:
predicate all_different_int(array [int] of var int: x);
array [1..2] of int: X_INTRODUCED_10_ = [-1,1];
var 21..30: X_INTRODUCED_0_;
var 21..30: X_INTRODUCED_1_;
var 21..30: X_INTRODUCED_2_;
var 21..30: X_INTRODUCED_3_;
var 21..30: X_INTRODUCED_4_;
var 21..30: X_INTRODUCED_5_;
var 21..30: X_INTRODUCED_6_;
var 21..30: X_INTRODUCED_7_;
var 21..30: X_INTRODUCED_8_;
var 21..30: X_INTRODUCED_9_;
array [1..10] of var int: e:: output_array([1..10]) = [X_INTRODUCED_0_,X_INTRODUCED_1_,X_INTRODUCED_2_,X_INTRODUCED_3_,X_INTRODUCED_4_,X_INTRODUCED_5_,X_INTRODUCED_6_,X_INTRODUCED_7_,X_INTRODUCED_8_,X_INTRODUCED_9_];
constraint all_different_int(e);
constraint int_lin_le(X_INTRODUCED_10_,[X_INTRODUCED_0_,X_INTRODUCED_1_],-1);
solve  satisfy;

So for every array element there is always a variable introduced.
The modified line:
constraint int_lin_le(X_INTRODUCED_10_,[e[0],X_INTRODUCED_1_],-1);
(replacing X_INTRODUCED_1_ with e[0] directly) does not work. So there are no array indices in the flatzinc.
The array declaration can be seen as some kind of macro to aggregate normal variables:
constraint all_different_int(e);
So, in theory flatzingo does not need to do anything with an array declaration, but when the array variable is used, simply replace it with its introduced variables.

Looks, good so far. I leave this open in case you find some more test cases. Then you can add the to the proposal.

I still do get the output
variable_type("X_INTRODUCED_6_",int_in_range(0,7773)).
while int_in_range is never used in the format proposal.

@sthiele Sorry for double posting, somehow I cant find my comment again:
constraint_value_at should be renamed to constraint_value to be consistent.

@sthiele Sorry for double posting, somehow I cant find my comment again:
constraint_value_at should be renamed to constraint_value to be consistent.

done!

in #11
we have written something like
variable_type("e", int, set,(value,23)).
variable_type("e", int, set,(value,42)).
variable_type("e", int, set,(range,(100,200))).

I don't know, a lot of things seem different.

This example was impossible because the values of a set must be of the same type. Either values of int like 23, 42, or a set of int like range (100,200).
So rather something like this:

variable_type("e", int, set,(value,23)).
variable_type("e", int, set,(value,42)).
variable_type("e2", int, range,(value,100,value,200)).

BTW: The brackets are confusing to me,
sometimes it is (range, value, 100, value, 200) sometimes  range, (value,100,value,200) ?

This example was impossible

didn't know it was impossible
At first glance

range, (value,100,value,200)

makes sense to me. I guess sometimes its complicated.
Just make sure it is consistent.

Soweit sieht es wieder gut aus.


Added prop-types devDependency  in package.json

Fixes Issue #304
👨💻 Changes proposed(What did you do ?)
Added  prop-types devDependency , Which Is not in package.json
✔ Check List (Check all the applicable boxes)

[X] My code follows the code style of this project.
[X] This PR does not contain plagiarized content.
[X] The title and description of the PR is clear and explains the approach.

Your PR is wrong, read the guidelines 👉🏽here👈🏽 your PR wouldn't be merged if you don't

@Chetax You can't do it like this, it will delete the file in the main project and we don't want that. You have to find another way try researching how on Google or chatgpt

@Dun-sin  ,creating new pr and closing this one .Thanks !

@Dun-sin ,creating new pr and closing this one .Thanks !


Update module golang.org/x/net to v0.9.0

This PR contains the following updates:

Package
Type
Update
Change

golang.org/x/net
replace
minor
v0.8.0 -> v0.9.0

Release Notes

golang/net
v0.9.0
Compare Source

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: provider/go.sum
Command failed: docker run --rm --name=renovate_sidecar --label=renovate_child -v "/mnt/renovate/gh/cloudy-sky-software/pulumi-render":"/mnt/renovate/gh/cloudy-sky-software/pulumi-render" -v "/tmp/renovate-cache":"/tmp/renovate-cache" -v "/tmp/containerbase":"/tmp/containerbase" -e GOPATH -e GOPROXY -e GOFLAGS -e CGO_ENABLED -e GIT_CONFIG_KEY_0 -e GIT_CONFIG_VALUE_0 -e GIT_CONFIG_KEY_1 -e GIT_CONFIG_VALUE_1 -e GIT_CONFIG_KEY_2 -e GIT_CONFIG_VALUE_2 -e GIT_CONFIG_COUNT -e GIT_CONFIG_KEY_3 -e GIT_CONFIG_VALUE_3 -e GIT_CONFIG_KEY_4 -e GIT_CONFIG_VALUE_4 -e GIT_CONFIG_KEY_5 -e GIT_CONFIG_VALUE_5 -e BUILDPACK_CACHE_DIR -e CONTAINERBASE_CACHE_DIR -w "/mnt/renovate/gh/cloudy-sky-software/pulumi-render/provider" ghcr.io/containerbase/sidecar bash -l -c "install-tool golang 1.20.3 && go get -d -t ./... && go mod tidy && go mod tidy"
go<EMAIL_ADDRESS>invalid version: git ls-remote -q origin in /tmp/renovate-cache/others/go/pkg/mod/cache/vcs/5dfe49b46b32526cea6dd9bb62b49490274709b5465529f7d7788fb7ed5771ee: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/cloudy-sky-software/pulumi-provider-framework/' not found


docker env code Version

Hi OmniGibson developers,
I have tried all the demos in the docker env, and SOME of them cannot work. One of the most common issues is the
No openable joint metadata found for object fridge_xyejdx_0, please take a look.

My fault, the code just takes a lot of time to load all the models

Hi @JiaheXu, these warning messages are caused by missing some metadata information for the Openable state for the fridge assets. You can safely ignore these messages for now, as they shouldn't break any example. We will fix the missing metadata in the next release soon. Thanks!

Can you please tell me which are the most stable envs/settings to use for now? Thanks


Chloropleth map did not show data for all counties AND...

When I tried to add the national data by county dataset downloaded from your site, I got an endless loop in the RStudio window which basically says:
Warning in read_xlsx_(path, sheet, col_names = col_names, col_types = col_types, :+1:  [1495, 17] : expecting numeric: got '--'

This issue is partially duplicated by #140.

We need to get more specificity about the nature of the county choropleth issue. @jread-usgs will work with @KatherineSPaybins to nail down the issue specifically.


Elimination of all ByteBuffer Usage (for Java 8)

Base all of the off-heap memory management on unsafe allocation and access, without ByteBuffer intermediate layer (in addition to existing memory management). The reason for the change is the possibility to gain better throughput without spending CPU cycles and memory on ByteBuffer internals.
That means a new memory manager to be based on using addresses instead of ByteBuffers and allocating the address from unsafe:
Unsafe().allocateMemory(size);
That requires a significant code writing: new (alternative) Block, BlockPool, MemoryAllocator, MemoryManager etc.
For more explanations feel free to add questions in this issue.

It doesn't seem that the doc comments on the relevant code are changed in sync with the changes. For instance, OakUnsafeDirectBuffer's getByteBuffer() returns a new ByteBuffer on every invocation of the method. But the doc comment still has state of the returned ByteBuffer shouldn't be modified mentioning it might be shared and used elsewhere.

Hi @dynaxis ,
Thanks for your comment. Here is the comment/documentation about OakUnsafeDirectBuffer's getByteBuffer()
public interface OakUnsafeDirectBuffer {
    /**
     * Return the underlying memory address wrapped as a ByteBuffer.
     * This buffer might contain data that is unrelated to the context in which this object was introduced.
     * Note 1: depending on the context (casting from OakScopedReadBuffer or OakScopedWriteBuffer), the buffer mode
     *         might be ready only.
     * Note 2: the buffer internal state (e.g., byte order, position, limit and so on) should not be modified as this
     *         object might be shared and used elsewhere.
     *
     * @return the underlying memory address wrapped as a ByteBuffer.
     */
    ByteBuffer getByteBuffer();

Indeed, a new ByteBuffer object is returned on each invocation. However, the underlying memory referenced from this ByteBuffer is always the same (for the same OakUnsafeDirectBuffer  object). Therefore, indeed, modifying those two ByteBuffers may lead to corrupted results. This is why the interface is named Oak-Unsafe-DirectBuffer and it needs to be used with extra care.
How would you suggest to rephrase the documentation so it is more clear?

Hi @dynaxis ,
Thank you for your reply. Your suggestion makes sense. Although I would stress that this buffers brings you no protection from possible concurrent update of the same underlying memory from different ByteBuffer objects. If you are working with single thread then no problem, of course.
public interface OakUnsafeDirectBuffer {
    /**
     * Returns a ByteBuffer wrapping the underlying memory segment backing this buffer.
     * NOT THREAD SAFE! Two ByteBuffers of the same OakUnsafeDirectBuffer will reference to the same memory,
     * so concurrent access with at least one write may result in inconsistent state of the data.
     *
     * Since a new ByteBuffer instance is returned on each invocation of this method, it's absolutely safe
     * to modify the state of the ByteBuffer including its byte order, position, and limit.
     *
     * Note that the buffer mode of the returned ByteBuffer might be read-only,
     * depending on whether this buffer has been casted from OakScopedReadBuffer or OakScopedWriteBuffer.
     *
     * @return a ByteBuffer wrapping the underlying memory segment
     */
    ByteBuffer getByteBuffer();

As for read-only buffer, while creating the buffer inside DirectUtils's wrapAddress we need to check for instance of OakScopedWriteBuffer and only then let the ByteBuffer be writable, otherwise asReadOnlyBuffer().
@dynaxis , as the change is quite easy, would you be able to provide a PR, so I will review and merge to master? So you will join our small but powerful contributors community? :)

Dear @sanastas,
I agree with your additions to the doc comment, though I might suggest a bit of rewording. Also it's good to issue a PR myself.
BTW, I think the check for read only buffer should be inside getByteBuffer() method rather than DirectUtils.wrapAddress(). Otherwise DirectUtils will have unnecessary tight coupling with buffer types.
Anyway, I'll prepare a PR soon and come back.

Thank you very much @dynaxis , do as you think is the best way! Very much appreciated!

@sanastas #209 is issued to resolve the issues I raised above.

@dynaxis , thank you so much! Review done. Code looks good, just one comment left!


[Feature] Add 'TAG' options

Is there a chance to add a tag feature to the logger?
There was already a PR on the old repo:
[Feature] Add 'TAG' options #103
And here is a discussion:
https://github.com/simc/logger/issues/68#issuecomment-786637080
The reason for this is, if you have multiple components for example, I use get_it to inject my logger into these components to collect all log data in one place (FileOutput, whatever.). But I can't figure out which log comes from what component. Maybe just an optional tag attribute like the guy did in the PR.

The original PR is creating rather big breaking API changes, which I would like to avoid for the most part.
However, as there is currently no way in Dart to add optional positional and optional named parameters in the same method signature, this would require at least some breaking changes anyway.
My two cents on the discussion:
It isn't really comparable with Android's Log as this is a static class and after all logger has been created to be usable with multiple instances and possibly a custom PrefixPrinter.
On the other side, an optional TAG parameter could be helpful, this would allow people to tag their logging using a single (possibly static) instance.


Creating Trust Screen

Navigate to trust screen and know information about them under gssoc'24

join this : https://discord.com/channels/1231112132595028008/1239661475799367700

yes i did then ?


translate words into Japanese about page and menu item

Translated words into Japanese around the about page.

Coverage increased (+8.8%) to 90.479% when pulling 23aa7a02dcd152e4444054cd40b1ba5c764351a4 on ma2gedev:translate_japanese into d98f382aec0572b32fd2eeca6665171f321d7755 on 24pullrequests:master.


REPL Issue with Arduino RP2040 Connect

Hello, Im not sure if the Arduino RP2040 Connect is properly supported (for it is similar to the Pico except with wifi functionalities).
I was somewhat able to get it to work on PyCharm however the REPL does not accept any input (>>> appears to be missing). Not sure it is due to the Arduino RP2040 not being supported.

Not sure what I did with some CTRL commands, but it seems to work now.


Unknown plugin transform-object-rest-spread

I'm using Spread Syntax and getting Unknown plugin transform-object-rest-spread error when compiling.

To be sure I understand, are you getting this when running sfc-rollup-init, or after, when you are compiling the component? A few things to try:

The template used to generate the rollup config likely doesn't contain the latest versions of the npm dependencies, try updatint them
The template uses rollup-plugin-buble, which says it has support for object rest spread. You could try switching it out for rollup-plugin-babel. Babel is more widely used for transpiling, but does require more configuration and can add code bloat.

A small example would also be helpful if the above don't get you any closer to a resolution.

BTW, before that I also encounter (buble plugin) CompileError: Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper. error. I just add { objectAssign: 'Object.assign' } fixed the issue.

The problem seems to be with the specific configuration of buble, then. That is something that is outside the scope of this utility. Closing this issue, refer to this example for how others have resolved similar issues. Or feel free to use rollup-plugin-babel instead.


PowerToys Run - New plugin checklist: Target framework

Provide a description of requested docs changes
The plugin target framework instruction is old.
https://github.com/microsoft/PowerToys/blob/8bdbeb41d4fe143425648c153c06049d1865380e/doc/devdocs/modules/launcher/new-plugin-checklist.md?plain=1#L34
Should be net8.0-windows.
What target framework requirements does dependencies have now?

Hi @hlaueriksson
I don't think there is a strict requirements for dependencies. Libraries compatible with .NET 8 should be fine.
In case someone want to open a PR this line is also outdated since we are now targeting x64 and ARM64:
https://github.com/microsoft/PowerToys/blob/8bdbeb41d4fe143425648c153c06049d1865380e/doc/devdocs/modules/launcher/new-plugin-checklist.md?plain=1#L7

@hlaueriksson , @parvezkhan0
You are both working on this and we now have two open PRs. We can only merge one.

@htcfreek Which PR do you prefer?

They are doing exactly the same. I would say the first one.

There is a third one from @Bhomesh that is incomplete.

@hlaueriksson , @parvezkhan0, @Bhomesh
You are all working on this and we now have three open PRs. We can only merge one.

@crutkas
Which one of the three PRs should we keep?

I think we keep https://github.com/microsoft/PowerToys/pull/30927/files and https://github.com/microsoft/PowerToys/pull/30920/files . #30895 doesn't seem correct.

Hi, this has been worked on for the 0.78 development cycle. 😄
Please update PowerToys to the latest: https://github.com/microsoft/PowerToys/releases


Abandon StyleC?

It might be time to go back to the drawing board for StyleC. I barely use it and I was its biggest proponent. Does anyone else use it?
Similar to the Router situation in scalajs-react, it might be better to trade-in a little safety for a much larger portion of usability and Scala-friendliness. Would also allow us to drop the Shapeless dependency.

i never used it , +1 from me :)

Thanks @chandu0101 - the more feedback and voices heard the better.
It's sorta sucks because it actually does address the requirements it was intended for - the problem is it's just a bit fiddly/annoying/alien to use. Might be better to replace it with something based on plain Scala case classes or something.

My motivation for using it to be able to skin a component (that represents more than one element).
For example, I have a SearchBar that has a structure something like this:
div(wrapperStyle,
  span(/*magnifying glass icon*/, iconStyle),
  input(`type` := text, inputStyle)
)

I'd like my component to provide a default skin (defined styles for wrapper, icon, and input) but also allow the caller to pass in a custom style set via Props.  styleC doesn't really serve this purpose or at least I don't see how it could.  What would the type of my style be in Props, just StyleC?  It would need to be parametrized so the caller knew they needed to pass in three styles.

For me styleC is the most complicated and unclear feature - because of the terrible usage syntax. I understand that this conception may be usefull sometimes, but it creates a lot of syntax noise in the code.
Also, in the most cases I need unsafeChild. I just want to have some css hierarchy without restrictions. In standalone styles I can use & to create nested styles, and this & symbol creates less amount of syntax noise than unsafeChild.
So, my proposal - remove styleC and rename unsafeChild to &. If it will help to remove such huge lib as shapeless it would be really cool!

I started with it and ended up ripping it out and prefixing groups of styles. Dropping the shapeless dependency is also a plus for code size.

Yeah same. Will definitely do this (and other work) but it will have to
wait around 2 months unfortunately.
On 25 November 2015 at 13:10, Joseph Price<EMAIL_ADDRESS>wrote:

I started with it and ended up ripping it out and prefixing groups of
styles. Dropping the shapeless dependency is also a plus for code size.
—
Reply to this email directly or view it on GitHub
https://github.com/japgolly/scalacss/issues/48#issuecomment-159465363.

The StyleC experiment was meant to address the following:

A logical/composite style (eg a style for an entire widget) can have multiple CSS styles that need to be applied.
Adding a new sub-style to a composite style should result in a compilation error in all places that you don't update to use the new sub-style.
Styles all have the same type. Adding/removing/reordering sub-styles shouldn't result in silent undetectable errors where the sub-style ends up being applied to the wrong part of HTML.

StyleC does actually solve those things.  Anyway, a replacement will need to at least consider the above goals with the additional goal that it not be horrible to use.

Screw it - I'll just remove it without replacement in 0.4.0. No one likes it, I don't think anyone uses it (except me and only in one place). I'd normally deprecate it and offer a replacement but I think this time it'll be better just to get Shapeless off the classpath.

Closed via #48. New ticket #71 to find a replacement.


Scales Demand

Closes #339
Closes #276
Changes proposed in this Pull Request

In this PR I add sacling to demand. Specifically;

If EIA data is used, data is scaled according to AEO data (now pulled from PUDL).
If EFS data is used, data is interpolated between the two closes EFS years
A Demand Formatter class is added which handles scaling and formatting data, regardless of sector.
The demand formatter will instantiate a DemandScaler object which handles logic for scaling specific data

While this is not the most efficient implementation (as, for example, EFS data has to get read in once during the reading/writing, and again for scaling), I beleive this is clearer and more maintainable for our current workload. But happy to discuss this point! :)
This PR also removes the option of selecting scaling method in the configuration file, as we should lock this to align data.
Checklist

[x] I tested my contribution locally and it seems to work fine.
[x] Code and workflow changes are sufficiently documented.
[x] Changed dependencies are added to envs/environment.yaml.
[x] Changes in configuration options are added in all of config.default.yaml.
[x] Changes in configuration options are also documented in doc/configtables/*.csv.

Notes on this PR:

The first year must be an actual year of data to scale. For example, you cannot do a 2045 and 2050 EFS study, as 2045 demand data does not exist from EFS. You can do a 2040 and 2045 study, though.
EFS scaling can be improved to be by sector and region. Right now it is just linear interpolation for all data over the entire usa for the year


Link to death URL in Tutorial

Link to Official and Community tutorials is not working:
https://tutorials.surrealdb.com/

Hi @vle003 thanks for submitting this issue. The tutorials.surrealdb.com domain has been shutdown as it was out of date, and all links should either point to this repository (https://github.com/surrealdb/awesome-surreal) or to the examples repository (https://github.com/surrealdb/examples).
The link shouldn't be present any more, but can I ask if you found this link still visible somewhere?


Bugfix: segment_duration and media_time use different units

According to ISO 14496-12, section <IP_ADDRESS>,

segment_duration is an integer that specifies the duration of this edit segment in units of the
timescale in the Movie Header Box
media_time is an integer containing the starting time within the media of this edit segment (in
media time scale units, in composition time). If this field is set to –1, it is an empty edit. The last
edit in a track shall never be an empty edit. Any difference between the duration in the Movie
Header Box, and the track’s duration is expressed as an implicit empty edit at the end.

segment_duration is based on timescale in movie header box(mdhd)
media_time is based on timescale track header/media timescale
So segment_duration and media_time use different units.
The implementation in other Media3 codes/AOSP are correct, such as
(1) BoxParser.java line 712, 714, 716--718 and 731: https://github.com/androidx/media/blob/main/libraries/extractor/src/main/java/androidx/media3/extractor/mp4/BoxParser.java#L712
(2) On AOSP https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/media/module/extractors/mp4/MPEG4Extractor.cpp;l=583

I'm going to send this for internal review now. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks!


ver >=2.9.150 broke my stuff :(

reverted back to 2.9.100 and it worked again. will post more information when i figure it out. For now, here's a stack trace
at /Users/jmonster/Downloads/BB/transcoder/encore/encore.js:33:15
at /Users/jmonster/Downloads/BB/transcoder/encore/encore.js:118:3
at /Users/jmonster/Downloads/BB/transcoder/transcoder.js/node_modules/caching/lib/caching.js:26:12
at Array.forEach (native)
at /Users/jmonster/Downloads/BB/transcoder/transcoder.js/node_modules/caching/lib/caching.js:25:18
at /Users/jmonster/Downloads/BB/transcoder/encore/encore.js:112:4
at Request._callback (/Users/jmonster/Downloads/BB/transcoder/encore/encore.js:145:4)
at Request.callback (/Users/jmonster/Downloads/BB/transcoder/encore/node_modules/request/main.js:111:22)
at Request.<anonymous> (/Users/jmonster/Downloads/BB/transcoder/encore/node_modules/request/main.js:442:16)

this is the stack but it's lacking the actual exception.
i fixed a bug yesterday with 2.9.150 that was auto-decoding all responses as JSON that might have caused it so please try the very latest version and also please give me the exception that was thrown, it may be enough on it's own to figure this out.

@mikeal is there a way to turn off auto-decoding of JSON?

nvm, found it json: false, I'm guessing this default changed recently, cause that's what blew up my stuff :)

actually, auto-decoding json was a bug that is now fixed :)


Trainer reset password

Reset a trainer's password page completed
Reset  a trainer's password functionality completed

View and functionality completed


Update athom-smart-plug-v2.yaml

Added ${friendly_name} to:

Restart with Factory Defaults
Safe Mode
Connected SSID
IP Address
Mac Address

As these all have generic names in Home Assistant due to the lack of prefix, so end up with Entity IDs of sensor.ip_address, sensor.ip_address2, sensor.ip_address3, sensor.ip_address4, etc.
Also changed "Mac" to "MAC" (as it is an acronym, so should be in capitals).

Since an update to HA later in 2022, the entity name is automatically prefixed by the friendly name.
i.e.
ssid:
name: 'WiFi SSID'
icon: mdi:wifi-strength-2
entity_category: diagnostic
Will automatically see the creation of an entity named:    sensor.<friendly_name>_wifi_ssid. Example below for the athom v2 plugs I run

Additionally in the esp webserver page the line for this will be 'WiFi SSID', avoiding repeatative and screen space wasting repeating of <friendly_name> upon each line/sensor entry.  i.e.   <friendly_name> WiFi SSID' / <friendly_name> IP Address etc.
Example below of

See here for example of base config:  https://github.com/Roving-Ronin/Home-Assistant/blob/main/esphome/gpo-dishwasher.yaml that then also calls the common settings used across multiple devices, with config here: https://github.com/Roving-Ronin/Home-Assistant/blob/main/esphome/common/common_athom_plug_v2.yaml

Sorry, but that's not my experience.
Here is a brand new plug using the existing athom_plug_v2.yaml configuration:

I've used my own configuration to date to avoid this, but thought I'd do a PR to correct it at the source.
Here's an example of my config where I have put the friendly name in the missing places, and a device where I have used the baseline imported config from this repo:

I don't disagree with you about having the additional display name properties wasting space, so an alternative approach would be to use ID's in the config and allow us to put it in the substitutions.

@loryanstrant I never referred to using the current athom 'public' yaml file, since later last year it has been rather useless, as it hasn't kept up with the introduction of friendly_name as a variable in HA (athom used this as their own unofficial variable prior to then, and people appear to be unwilling to differentiate between unofficial that now clashes with official, and update the yaml).
Suggest you refer to the 2 yaml config files that I linked to that shows how the 'friendly_name' official variable is supposed to be used, and how it can hence be incorporated into athom v2 plug yaml. These are simply of modification of the existing v1.1 athom yaml to bring it in line with HA 2022.10 (?) changes.
See here for example of base config: https://github.com/Roving-Ronin/Home-Assistant/blob/main/esphome/gpo-dishwasher.yaml that then also calls the common settings used across multiple devices, with config here: https://github.com/Roving-Ronin/Home-Assistant/blob/main/esphome/common/common_athom_plug_v2.yaml
For a bonus it also gives a more usable device uptime in days/hr/min/sec instead of xx,xxx seconds. ;-)

Thanks for the suggestion and clarification.
And yes, the base config isn't ideal - which is why I also use my own, but last night I thought I'd do the community thing and try to improve it for others. :-)

@loryanstrant worth a quick glance at https://github.com/athom-tech/athom-configs/pull/25  where it was previously attempted to update/improve it for all ;-)

Sorry off topic, does anyone here know if it's possible to change smart plug v2 update_rate from 10sec to something much faster, say 1sec?
https://github.com/athom-tech/athom-configs/blob/69a809c080df2240a2e277375195ef96cb6676d2/athom-smart-plug-v2.yaml#L80
Also, is there a better/recommended place to ask such a question?

Sorry off topic, does anyone here know if it's possible (safe) to change smart plug v2 update_rate from 10sec to something much faster, say 1sec?
https://github.com/athom-tech/athom-configs/blob/69a809c080df2240a2e277375195ef96cb6676d2/athom-smart-plug-v2.yaml#L80
Also, is there a better/recommended place to ask such a question?

If you want to react as fast as possible within the device itself, use on_raw_value. But yes, you can shorten update interval to 1s with no issue.


Spain – Russia, Russia wins by penalty

@lsv I need write access to this repo in order to merge it.

I need write access to this repo in order to merge it.


Python 3.6.13 Error

Hi @marco-willi. We've recently had to upgrade python within our docker image, to run the latest version of PantheraIDS. We're still using the same version of Tensorflow, but now getting this error when trying to run the Southern Africa model:
Traceback (most recent call last):
File "/srv/shiny-server/custom/machine_classifier/main_prediction/predict.py", line 105, in
main()
File "/srv/shiny-server/custom/machine_classifier/main_prediction/predict.py", line 85, in main
aggregation_mode=args['aggregation_mode'])
File "/srv/shiny-server/custom/machine_classifier/main_prediction/camera_trap_classifier/predicting/predictor.py", line 73, in init
self.model = load_model_from_disk(self.model_path, compile=False)
File "/srv/shiny-server/custom/machine_classifier/main_prediction/camera_trap_classifier/training/prepare_model.py", line 31, in load_model_from_disk
build_masked_loss(K.sparse_categorical_crossentropy)})
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py", line 229, in load_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

Any ideas where I should start looking to fix this?

pip freeze
absl-py==0.12.0
astor==0.8.1
awscli==1.19.25
botocore==1.20.25
cached-property==1.5.2
colorama==0.4.3
docutils==0.15.2
gast==0.4.0
grpcio==1.36.1
h5py==3.1.0
importlib-metadata==3.7.2
jmespath==0.10.0
Keras==2.4.3
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
Markdown==3.3.4
numpy==1.19.5
opencv-contrib-python==<IP_ADDRESS>
Pillow==8.1.2
protobuf==3.15.5
pyasn1==0.4.8
python-dateutil==2.8.1
PyYAML==5.4.1
rsa==4.7.2
s3transfer==0.3.4
scipy==1.5.4
six==1.15.0
tensorboard==1.12.2
tensorflow==1.12.0
termcolor==1.1.0
typing-extensions==<IP_ADDRESS>
urllib3==1.26.3
Werkzeug==1.0.1
zipp==3.4.1

FYI – we aren't using Anaconda anymore, in an attempt to save space, so installing everything manually now.

I decided to try downgrading the version of h5py:
pip install 'h5py==2.10.0' --force-reinstall
Which seems to overcome the above error, but resulted in another one:
WARNING:tensorflow:From /usr/local/lib/python3.6/site-packages/tensorflow/python/ops/init_ops.py:87: calling VarianceScaling.init (from tensorflow.python.ops.init_ops) with distribution=normal is deprecated and will be removed in a future version.
Instructions for updating:
normal is a deprecated alias for truncated_normal
WARNING:tensorflow:From /usr/local/lib/python3.6/site-packages/tensorflow/python/ops/init_ops.py:87: calling VarianceScaling.init (from tensorflow.python.ops.init_ops) with distribution=normal is deprecated and will be removed in a future version.
Instructions for updating:
normal is a deprecated alias for truncated_normal
Found 1651 images in /ids_volume/data/images/S18_20160902_20160923/images/
Traceback (most recent call last):
File "/srv/shiny-server/custom/machine_classifier/main_prediction/predict.py", line 105, in
main()
File "/srv/shiny-server/custom/machine_classifier/main_prediction/predict.py", line 92, in main
batch_size=args['batch_size'])
File "/srv/shiny-server/custom/machine_classifier/main_prediction/camera_trap_classifier/predicting/predictor.py", line 103, in predict_from_image_dir
batch_size, export_type)
File "/srv/shiny-server/custom/machine_classifier/main_prediction/camera_trap_classifier/predicting/predictor.py", line 294, in _predict_inventory
sub_preds = self._iterate_inventory_dataset(dataset, sub_inventory)
File "/srv/shiny-server/custom/machine_classifier/main_prediction/camera_trap_classifier/predicting/predictor.py", line 391, in _iterate_inventory_dataset
img_id = [i for i, x in enumerate(inventory[_id]['images'])
KeyError: b'/ids_volume/data/images/S18_20160902_20160923/images/S18__Station1__Camera1__CAM63791__2016-09-02__11-33-40__1__1.JPG'

Hi Ross, Good to hear from you!
I think downgrading h5py was the right action according to issues that I found here: https://github.com/tensorflow/tensorflow/issues/44467
The error you report later is rather odd. It seems like it occurs here:
https://github.com/marco-willi/camera-trap-classifier/blob/master/camera_trap_classifier/predicting/predictor.py#L389
Where the following key is not found in a dictionary:
b'/ids_volume/data/images/S18_20160902_20160923/images/S18__Station1__Camera1__CAM63791__2016-09-02__11-33-40__1__1.JPG'
Strange is, that the key is a byte string b' instead of a normal str.
However, the following line ensures that the conversion from b' to str is being made: https://github.com/marco-willi/camera-trap-classifier/blob/master/camera_trap_classifier/predicting/predictor.py#L372.
Can you confirm that this line was not changed in your code?

Hi Marco. Thanks for your response! Yep, I can confirm that this line was not changed.

Here is the list of python packages installed in the Docker-Image of the classifier (see https://github.com/marco-willi/camera-trap-classifier/blob/master/Dockerfile.cpu).

Maybe this helps to find the issue (although not all the packages are actually needed). Note, that the 'camera-trap-classifier' is itself a package that you can use by invoking ctc.predict.
Another option may be to use separate python versions for IDS and the classifier. You could put everything in a venv and activate it before running the classifier.
You could also try to debug the issue and check the types of the key that causes the error. It is still a mystery to me how this happens based on the error log you sent.

absl-py==0.6.1
astor==0.7.1
backcall==0.1.0
bleach==3.0.2
camera-trap-classifier==2.1.0
cycler==0.10.0
decorator==4.3.0
defusedxml==0.5.0
entrypoints==0.2.3
gast==0.2.0
grpcio==1.16.0
h5py==2.8.0
ipykernel==5.1.0
ipython==7.1.1
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.13.1
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.3
jupyter-console==6.0.0
jupyter-core==4.4.0
Keras-Applications==1.0.6
Keras-Preprocessing==1.0.5
kiwisolver==1.0.1
Markdown==3.0.1
MarkupSafe==1.1.0
matplotlib==3.0.1
mistune==0.8.4
nbconvert==5.4.0
nbformat==4.4.0
notebook==5.7.0
numpy==1.15.4
pandas==0.23.4
pandocfilters==1.4.2
parso==0.3.1
pexpect==4.6.0
pickleshare==0.7.5
Pillow==5.3.0
prometheus-client==0.4.2
prompt-toolkit==2.0.7
protobuf==3.6.1
ptyprocess==0.6.0
pycurl==7.43.0
Pygments==2.2.0
pygobject==3.20.0
pyparsing==2.3.0
python-apt==1.1.0b1+ubuntu<IP_ADDRESS>
python-dateutil==2.7.5
pytz==2018.7
PyYAML==5.3.1
pyzmq==17.1.2
qtconsole==4.4.2
scikit-learn==0.20.0
scipy==1.1.0
Send2Trash==1.5.0
six==1.11.0
sklearn==0.0
tensorboard==1.12.0
tensorflow==1.12.0
termcolor==1.1.0
terminado==0.8.1
testpath==0.4.2
tornado==5.1.1
traitlets==4.3.2
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.14.1
widgetsnbextension==3.4.2

Glad to hear!


QA/Cert Data Maintenance API: Create DELETE Endpoint

As the ECMPS system, I need to have all "DELETE" endpoints implemented in order to support the functions of the QA/Cert Data Maintenance screen.
DELETE /camd-services/admin/qa-maintenance/cert-events/{id}
Delete QA Cert Event records from camdecmps.qa_cert_event
DELETE /camd-services/admin/qa-maintenance/test-summary/{id}
Delete QA test records from camdecmps.test_summary, camdecmps.qa_supp_data, camdecmpswks.qa_supp_data
DELETE /camd-services/admin/qa-maintenance/extension-exemptions/{id}
Delete Test Extentions and Exemptions records from camdecmps.test_extention_exemption
The deletes will be done as raw queries so no entities need to be brought in

test-summary

cert-events

extension-exemptions

Delete functions work as expected


Extension causes high cpu load

Issue Type: Performance
Extension Name: html-css-class-completion
Extension Version: 1.18.0
OS Version: Darwin x64 18.2.0
VSCode version: 1.31.0

:warning: Make sure to attach this file from your home-directory: /Users/franck/Zignd.html-css-class-completion-unresponsive.cpuprofile.txt :warning:
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

There's already an open issue regarding high CPU usage. https://github.com/zignd/HTML-CSS-Class-Completion/issues/155


Graphite-web can make use of graphite-api's multi_fetch

At least in 0.10.*
It's very useful for different databases like "Cassandra", "InfluxDB" and so on.
Changes seems to be pretty simple and shouldn't break any of existing functional:
https://github.com/brutasse/graphite-api/commit/c4b8445662ae36220074359ec64864b54a7c7767 + mine PR: https://github.com/brutasse/graphite-api/pull/55 which adds support of fetching multiple data for multiple targets.
This is really handy for databases that supports that.

Hi. Any news here?

+1 for this issue, when querying many nodes just the latency of many fetch() calls can be very expensive (when using custom finders).


Auth.SignUp forces email or phone

I want to create a user to have both email and phone provider auth and it is proving rather difficult to get past the following implemented  goTrue-dart line.
149 - assert((email != null && phone == null) || (email == null && phone != null),
150 - 'You must provide either an email or phone number');
The ability to create a user with both email and phone parameters makes things a lot easier when verifying both before future authentications.
Is there a reason for this implementation? Can it be tweaked for the condition where both phone and email providers are being used?

@andrhubb you can always call signUp with either email / phone first and then call the updateUser method subsequently, there are quite a few edge cases around allowing one to signUp with both email and phone which aren't trivial to tackle.

i'm gonna close this issue for now since we don't plan to work on this but feel free to reopen it if i've misunderstood the issue, thanks!


this.$router.replace not works well

<button @click="logout">Logout</button>

export default {
  fetch ({store, redirect}) {
    if (!store.state.authUser) {
      return redirect('/login')
    }
  },
  methods: {
    logout () {
      this.$store.dispatch('logout');
//      this.$nuxt.$router.replace({ path: 'login' });
//      this.$nuxt.$router.replace({ path: 'test' });
      window.location.href = 'login';
    }
  }
}

In this case, when i use this.$nuxt.$router.replace({ path: 'test' }), i am redirected to localhost:3000/test and it requested localhost:3000/api/users/test at the sametime.
But when i use this.$nuxt.$router.replace({ path: 'login' }), it didn't redirect. And in vue-dev-tools, i can see it didn't emit an routeChanged  event.
As a workaround, i use window.location.href = 'login' temporarily.
I don't know if $router in a method page is the right way to browser redirects.
Thanks in advance for awesome nuxt.

Hi @solarhell - I think you are looking for ...router.push(location) - see vue router (programmatic) navigation.

Hi @solarhell
If this.$store.dispatch('logout') sends back a Promise, you should wait that it finished before redirecting the user, to make sure that your store is updated:
methods: {
    logout () {
      this.$store.dispatch('logout')
      .then(() => this.$router.replace({ path: 'login' }))
    }
  }

What I found weird is isn't this.$router.go() made for situations like this? Why does this not work?

it works!
this.$store.dispatch('logout').then(() => this.$router.go({ path: 'login' }))


chore: jsonfmt dns

Ran jsonfmt -w "specification/dns/**/*.json"

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Automation for azure-sdk-for-js

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

Automation for azure-sdk-for-java


CASMINST-4520: Only use existing NCN configuration file at user request

Summary and Scope
If you run the apply_csm_configuration script with a file named ncn-personalization.json in your current directory, the script will assume this contains an existing CFS configuration that you want to apply the new CSM configuration layer on top of. The script has a flag which allows the user to specify such a file, but even if the flag is not specified, if that file exists in the directory, the script will slurp it up. This behavior is not something a user would guess and caused the problem documented in CASMINST-4511. This PR modifies the script so that it will only consume a script as the basis for the new configuration if the user explicitly specifies it on the command line.
Issues and Related PRs

Would have prevented CASMINST-4511
CASMINST-4519 is open to make further improvements to the script. This current PR is targeted specifically to fix this one problem.
Will create backport PRs when this one has been reviewed and approved

Testing
I tested the updated script on surtur and it behaved as expected, using its new temporary files rather than inadvertently using any from the current directory.
Risks and Mitigations
Low risk.
Pull Request Checklist

[X] License file intact
[X] Target branch correct
[X] Testing is appropriate and complete, if applicable

/backport release/1.2


[WIP][SPARK-34282][SQL][TESTS] Unify v1 and v2 TRUNCATE TABLE tests

What changes were proposed in this pull request?

Port DS v1 tests from DDLSuite to v1.TruncateTableSuiteBase and to v1.TruncateTableSuite.

Why are the changes needed?
To improve test coverage.
Does this PR introduce any user-facing change?
No
How was this patch tested?
By running new test suites:
$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *TruncateTableSuite"
$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *CatalogedDDLSuite"

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39214/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39214/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134626/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134626/

Test build #134649 has started for PR 31387 at commit 2b0c5f4.

Test build #134649 has started for PR 31387 at commit 2b0c5f4.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39237/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39237/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39237/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39237/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39237/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39237/

Test build #134649 has finished for PR 31387 at commit 2b0c5f4.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class TruncateTableParserSuite extends AnalysisTest with SharedSparkSession

Test build #134649 has finished for PR 31387 at commit 2b0c5f4.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class TruncateTableParserSuite extends AnalysisTest with SharedSparkSession

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134649/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134649/

@cloud-fan @HyukjinKwon Please, review this PR.

@cloud-fan @HyukjinKwon Please, review this PR.

Test build #134675 has started for PR 31387 at commit ab34310.

Test build #134675 has started for PR 31387 at commit ab34310.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39262/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39262/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39262/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39262/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39262/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39262/

Test build #134677 has started for PR 31387 at commit 4a7b7ca.

Test build #134677 has started for PR 31387 at commit 4a7b7ca.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39264/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39264/

Test build #134675 has finished for PR 31387 at commit ab34310.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #134675 has finished for PR 31387 at commit ab34310.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134675/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134675/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39264/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39264/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39264/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39264/

Test build #134677 has finished for PR 31387 at commit 4a7b7ca.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #134677 has finished for PR 31387 at commit 4a7b7ca.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134677/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134677/

Test build #134775 has started for PR 31387 at commit 48fcae0.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39361/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39361/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39361/

Test build #134775 has finished for PR 31387 at commit 48fcae0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

thanks, merging to master!

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134775/


Merge KeyboardServiceState into KeyboardServiceImpl

It's not clear why we need both of these classes.

KeyboardServiceState is one-to-one with the android.view.View that hosts the keyboard.  KeyboardServiceImpl is one-to-one with Mojo message pipes.  There's a many-to-one relationship between Mojo message pipes and android.view.Views.  The KeyboardServiceImpl-to-KeyboardServiceState relationship is there the many-to-one relationship is held.

So two parts of the system could ask for a KeyboardService and independently set the text and the selection, with no way for them to know when the second has clobbered the first's?

We have these two classes for object lifetime separation.  You can create multiple pipes and they should all back in the same state as is unique to the view.  In the case of the keyboard, yes two views on android can request the keyboard and fight about it.  We're just exposing that reality through to dart.

I'm going to close this issue as wont-fix.  These objects are separate because they have different lifetimes.  We might want to change how we deal with multiple people trying to talk to the keyboard at once, but that's a different issue.


Fix types for walk.sync(dir, cb)

Hi! Thanks for the library.
This call signature is documented and is working. I updated the types to reflect it.

this looks great thanks for the fix.
ill need to make ts integration tests at some point to avoid this in the future.

published in 1.4.1


[Bug]: "descriptors reported by collector have inconsistent label names" reported when making any request

Bug Description
Using the 1.8.0 version of the exporter, I've just been starting to setup the prometheus exporter to extract the stats from our kubernetes hosted solace but whenever I try to make any request it seems to throw the following error:
ts=2024-09-09T11:30:01.357Z caller=solace_prometheus_exporter.go:308 level=info msg="handle http request" dataSource="Vpn=||" scrapeURI=https://solace-k8s.internal:8080
2024/09/09 11:30:01 http: panic serving <IP_ADDRESS>:48622: descriptors reported by collector have inconsistent label names or help strings for the same fully-qualified name, offender is Desc{fqName: "solace_bridge_inbound_operational_failure_reason", help: "Inbound Ops Failure Reason (various very long codes)", constLabels: {}, variableLabels: {vpn_name,bridge_name}}
goroutine 313 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1854 +0xbf
panic({0x946a00, 0xc0003a7520})
/usr/local/go/src/runtime/panic.go:890 +0x263
github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(...)
/go/pkg/mod/github.com/prometheus/client_golang@v1.17.0/prometheus/registry.go:405
main.doHandle({0xb01b70, 0xc0004de1c0}, 0xc00002ac00?, {0xc000196c80, _, _}, {{0xc00002c130, 0xc}, 0x0, {0x0, ...}, ...}, ...)
/go/src/app/solace_prometheus_exporter.go:312 +0x8d9
main.main.func3({0xb01b70, 0xc0004de1c0}, 0xc0001a4e00)
/go/src/app/solace_prometheus_exporter.go:177 +0x349
net/http.HandlerFunc.ServeHTTP(0xc0004c8280?, {0xb01b70?, 0xc0004de1c0?}, 0x40da8a?)
/usr/local/go/src/net/http/server.go:2122 +0x2f
net/http.(*ServeMux).ServeHTTP(0xc00002ac0c?, {0xb01b70, 0xc0004de1c0}, 0xc0001a4e00)
/usr/local/go/src/net/http/server.go:2500 +0x149
net/http.serverHandler.ServeHTTP({0xc000358300?}, {0xb01b70, 0xc0004de1c0}, 0xc0001a4e00)
/usr/local/go/src/net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc000118090, {0xb02040, 0xc0000236e0})
/usr/local/go/src/net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3089 +0x5ed
Expected Behavior
to return the stats requested
Steps to Reproduce
I haven't really done anything special just started the exporter and given it the credentials for our solace.
Solace Broker version
<IP_ADDRESS>
Solace API
No response
Solace API version
No response

I am also seeing this with 1.8.0 image.

This occurs when using BridgeRemote and Bridge in same exporter page.

Just run:
docker build .

that should do the trick.
What i would have done is:
Use in metricsDesc.go in "Bridge" section the variableLabelsBridgeRemote and set remote_vpn_name and remote_router.
This makes it a little more expensive for prometheus but without introduce a breaking change.

Thanks, that's what you get when you try to be too clever.  Should have a fix tested tomorrow (we're moving into our new office today.)

Released with:
https://github.com/solacecommunity/solace-prometheus-exporter/releases/tag/v1.8.1


In-game Console!

The code is ugly. Don't even look at the git history. On the bright side, it works!
How to test in-game: Press ` while game is in progress. Type. Only command currently supported is echo. Press ESC to close again

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!

Got poked on Slack, checked this out again, tested locally, looks and plays good 👍
I'm sure we can improve the console further (and maybe share it with Terasology) but this is good to have. Nice job :-)


Document synchronous I/O

Let's document synchronous I/O. We can start by documenting how Pyret does synchronous I/O with Stopify and then tweak the API as needed.

Done.


Guidline schema not showing as child resource

Can you please advice on how to get the Guideline scheme available? Below are the options that we have.

I have no idea what a "guideline scheme" is...??

This was discussed during the Virtual Office Hours Meeting of today. According to the metadata scheme this should be a type. @HaddadTala, can you please explain?

Hi @markwilkinson ,
@arjengee is referring to the ejprd:Guideline resource type in the EJP RD metadata schema (https://github.com/ejp-rd-vp/resource-metadata-schema/blob/master/images/diagram_onboarding_doc/Class Diagram - EJP RD MM.png)

Oh.... we have never created that in any FDP so far....
I guess you can do so - since Guideline inherits directly from Resource, with no extra features, just create a new class called "Guideline" that is based on the Resource schema.  I have no idea where it should appear in the FDP hierarchy, though, since we have never discussed it in the metadata meetings.  I guess it would be a "child of" Catalog...???  But as I said, we have never discussed it.

Hi @markwilkinson, adding @Orphanet and @brunasv to this thread to confirm.
In the onboarding document, pages 14-15 explain the classes and how to understand them according to the updated schema diagram. For organizations that have multiple resources, it suggests describing themselves as a catalogue and then describing child classes of guidelines or other resources. @arjengee  and myself discussed this option earlier today for the IMT toolbox and its components.
Please advise.

I will raise the issue at the next Metadata meeting.  It's not that straightforward...


Basketball Animation[GSSOC'23]

Describe the project you want to add with tech stack

Basketball Animation
Expected behavior

Hello Sir,
I want to add my new CSS animation project on  Basketball animation where we can see a basketball jumping on the floor. I have made it using HTML & CSS.
Screenshots (optional)

Additional context (optional )

Please assign me this issue under GSSOC'23.

@MohitGupta121 @pranjay-poddar @TusharKesarwani please assign me this issue under GSSOC'23.


Repo sync for protected CLA branch

The pull request is created from main637856751634222593 to main to fix git push error for protected CLA branch

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


Overlay disappears

First I'd like to thank you for your beautiful work on this package, you are a great help for many people like me.
Here is the bug i'm facing.
Following 0.8.1, the suggestions overlay appears quickly before disappearing when the keyboard is shown and resizeToAvoidBottomSheet is false.
Here is a simple page code to reproduce it:
class MainPage extends StatelessWidget {
  const MainPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        resizeToAvoidBottomInset: false,
        body: SearchField(
            suggestions: ['ABC', 'DE', 'DFHK']
                .map<SearchFieldListItem>(
                    (e) => SearchFieldListItem(e, child: Text(e)))
                .toList()));
  }
}

Hello @Ronan-V Thanks for reporting the bug will try to fix it asap.

@Ronan-V This has been fixed in v0.8.3.
Thank you for using this package and helping improve it with your report.

@Ronan-V This has been fixed in v0.8.3. Thank you for using this package and helping improve it with your report.

Hi @Ronan-V ,
How to fix error on scroll the page with overlay? When suggestions are shown, if you scroll page to another direction than suggestions will jump in another place. In previous versions there was a boolean called 'hasOverlay : false' that solved this issue. How to fix it now?

Hey @savdev-ua, I am not sure I understand your issue completely, would you please file a separate issue with more details and a sample code (if applicable)? Btw Overlays are enabled by default in the latest release.


Forecasts extension?

Is there interest in developing an extension for forecast objects?
I am interested in thinking about what a STAC catalog entry would like for forecast objects, such NOAA's Global Ensemble Forecast System products (e.g. https://registry.opendata.aws/noaa-gefs/), though one could imagine a forecast catalog for just about any asset type already used in STAC collections.
Forecasts are a common spatio-temporal data object, but require additional dimensions that are not easily captured in existing 2 or 3-dimensional extension formats such as raster and datacube.
A forecast always has two separate notions of time: the time the forecast is made, or the time the forecast is for. if I ask for a forecast of, say, 2022-05-20 00:00:00, a forecast catalog such as the NOAA GEFS will contain hundreds of different forecasts of that same time, all made at increasingly longer intervals prior to that date.
Forecasts must usually express some measure of uncertainty as well.  This is often in the form of ensemble members, as in the example of the GEFS files, but could also be expressed in terms of a parametric distribution (e.g. as mean and standard deviation, or some other metric).
So unlike existing formats, forecasts are more inherently higher dimensional, requiring a notion of time horizon and a notion of uncertainty. Those dimensions may be captured by using separate assets, as in the case of the NOAA's GRIB (:see_no_evil:) files, or could be additional dimensions in asset serializations that support arbitrary dimensionality (netcdf, Zarr (#956)).
I imagine that a forecasting extension would provide additional metadata fields to declare these additional dimensions such as forecast horizon, and ensemble member, and possibly other forecast specific metadata (identifiers for forecasting model used, description of uncertainty, etc).  I'd very much welcome any input or suggestions from anyone working in spatiotemporal forecasting.

xref https://github.com/radiantearth/stac-spec/discussions/1169

Yes, this would be interesting, indeed. At least I'll also be working with GRIB and STAC soon, although not yet with forecasts. But I'm sure this will be useful in the future.

Proposal at https://github.com/stac-extensions/forecast

:tada:


Convert IsLocalPlayer to behave as isClient && hasAuthority.

Convert IsLocalPlayer to be true if on client and has authority rather than if 'player prefab'.

OnStartLocalPlayer is now called for authoritive objects on client.

Can you explain the rationale?  After this,  isLocalPlayer will be true for non player objects too.
In fact,  with this pr,  isLocalPlayer will always be the same as hasAuthority.

Per discussion in discord, we won't do this.

As mentioned in Discord, I think it would be a useful idea to have client authority toggle-able for the local player, especially in the context of NetworkTransform, if it gets reworked.
I don't support the idea proposed here though. Like @paulpach said,
"After this, isLocalPlayer will be true for non player objects too."


Why FF throws error about jquery-i18n-properties .properties content.

Hello
I have the following structure for a Spring Web App

To create a .properties files in many languages I use: essiembre/eclipse-rbe
For example message.properties contains:
id = Campo ID no puede estar vacio.

and message_en_US.properties contains:
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)

id = Field ID can't be empty.

My code about jquery-i18n-properties is:
jQuery.i18n.properties({
				name: 'message',
				path: '../resources/jquery.i18n.properties/messages/',
				mode: 'both',

				callback: function() {
					console.log(jQuery.i18n.prop('id'));
				}
			});

When I execute the code on Opera and Chrome all work fine.
But just in Firefox 43.0.2 (Mac) I can see the following:

If I do click for each error syntax in the right part (blue text) I can see the following respectively.
id = Campo ID no puede estar vacio.

And
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)

id = Field ID can't be empty.

I don't know why that error is arising
Some ideas?
Thanks

Incorrect mimetype?

The workaround from this, in Tomcat at least, is to add ...

properties
text/plain

... to conf/web.xml

Hi @adrianfish
I have located the web.xml on TOMCAT_HOME/conf location.
But where exactly and how I should add your
properties
text/plain

Thanks!

Search the file for 'mime-mapping' and you'll find where to add it. I'm using Tomcat 7.


Add unit tests for NativeEngine + NativeCapture

Requested for #916. Tests should fail currently as there is an issue with NativeCapture. Should only be merged after that issue is resolved.
@CedricGuillemet would love feedback on what specific tests you would like for the NativeCapture object. Do you want to have a listener and then check that the data exists? I am not familiar with this class so I'm not sure what the right thing to check is.
We could also probably add some more checks to the NativeEngine test.

Closing for now. We can reopen this later when the feature is used more.


How use weak event with delegate PropertyChangedEventHandler?

How use weak event with delegate PropertyChangedEventHandler?

Hi @rostov-da,
Sorry, you can't... WeakEvent only supports EventHandler<TEventArgs>

Thank you. Is it possible to write class WeakEventSource for any delegate?

It's complicated... Mostly because an arbitrary delegate can have any signature, so I don't know what the signature of Raise should be. A possible way to do it would be to expose Raise as a property of the delegate's type:
public class WeakEventSource<TDelegate>
{
    public void Subscribe(TDelegate handler) { ... }
    public void Unsubscribe(TDelegate handler) { ... }
    public TDelegate Raise { get; }
}

Raise would be generated dynamically (using Reflection.Emit for instance). I think I tried that at some point; I don't remember exactly why I didn't keep it.
In the meantime, there's a workaround for using WeakEvent with PropertyChangedEventHandler; since it has the same signature as EventHandler<PropertyChangedEventArgs>, you can convert between the two:
class Publisher : INotifyPropertyChanged
{
    private readonly WeakEventSource<PropertyChangedEventArgs> _weakPropertyChanged = new WeakEventSource<PropertyChangedEventArgs>();

    public event PropertyChangedEventHandler PropertyChanged
    {
        add { _weakPropertyChanged.Subscribe(value.ConvertDelegate<EventHandler<PropertyChangedEventArgs>>()); }
        remove { _weakPropertyChanged.Unsubscribe(value.ConvertDelegate<EventHandler<PropertyChangedEventArgs>>()); }
    }

    public void RaisePropertyChanged(string propertyName)
    {
        _weakPropertyChanged.Raise(this, new PropertyChangedEventArgs(propertyName));
    }
}

static class DelegateExtensions
{
    public static TDelegate ConvertDelegate<TDelegate>(this Delegate d)
    {
        return (TDelegate)(object)Delegate.CreateDelegate(typeof(TDelegate), d.Target, d.Method);
    }
}

Probably not terribly efficient, but it seems to work.

I think I tried that at some point; I don't remember exactly why I didn't keep it.

Ah, I remember know. It's because of this:
private delegate void OpenEventHandler(object target, object sender, TEventArgs e);

I can't dynamically create an open equivalent (i.e. with the target parameter) of the delegate, without knowing the delegate's signature in advance.

Closing due to inactivity


Improve enchantment generate using WeightedRandomSampler

Related Issues
Close #1626.
Summary
Improve enchantment generate  in enchantment.cpp using WeightedRandomSampler in random.hpp.

LGTM, thank you for refactoring!


Upgrade to postcss v6

@ben-eb Any chance you could merge and release this? I'm using this in https://github.com/RyanZim/postcss-repl and it's causing postcss to be included twice in the bundle, which has significant filesize impacts.

Oops, this still tests on 0.12; gotta fix that.

Fixed


"Pitulați" is listed in the drop-down menu

Description:
"Pitulați" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Pitulați" in the search bar.

Expected results
The location is listed in the drop-down menu as "Pitulați, Brăila (Scorțaru Nou)".


add /MT for MSVC static lib

Added /MT flag for MSVC static build (cmake -DG3_SHARED_LIB=OFF), as mentioned in #275
Without /MT it results in errors like this:
1>g3logger.lib(logcapture.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(loglevels.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(g3log.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(logworker.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(crashhandler_windows.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(logmessage.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(filesink.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(stacktrace_windows.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>g3logger.lib(time.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in ConsoleApplication9.obj
1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _memmove already defined in LIBCMT.lib(memmove.obj)
1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _memchr already defined in LIBCMT.lib(memchr.obj)

👍

Being a static library doesn't imply /MT. That is only if you statically link the runtime library. This needs to be an option as it will break all my apps I use g3log in because they are all /MD (which is the default).
It is generally not recommended to use /MT because you will bake a version of the CRT into you app, which means you will have a bad time when the system upgrades and you have to recompile. There is a fairly narrow set of circumstances where you actually want /MT.

@englercj thanks for the quick feedback.
@AlexandrePTJ please address this with CMake options so it doesn’t break for other users
I will revert the changes in: https://github.com/KjellKod/g3log/pull/279

This PR is reverted in https://github.com/KjellKod/g3log/pull/279