usb: mcux RT1060 EVK - when using on-chip memory, USB fails

Describe the bug
USB fails to configure when using on-chip memory rather than the default external DDR RAM.
To Reproduce
Change the default DATA_LOCATION to DATA_OCRAM instead of DATA_SEMC.
(be sure to unplug the USB port between resets - I have seen it mask the issue if left plugged in.)
using the samples/subsys/usb/hid example
Expected behavior
USB should configure and work.
Impact
USB showstopper
Logs and console output
-- Using DATA_SEMC (normal and expected):
*** Booting Zephyr OS build zephyr-v2.3.0-1418-g68ef393d2551  ***
[00:00:00.005,000]  main.composite_pre_init: HID Device: dev 0x80002058
[00:00:00.005,000]  main.main: Starting application
[00:00:00.189,000]  main.status_cb: status 1 unhandled
[00:00:00.314,000]  main.status_cb: status 1 unhandled
[00:00:02.440,000]  main.send_report: Wrote 2 bytes with ret 0
-- Using DATA_OCRAM (bug):
*** Booting Zephyr OS build zephyr-v2.3.0-1418-g68ef393d2551  ***
[00:00:00.005,000]  main.composite_pre_init: HID Device: dev 0x20202058
[00:00:00.005,000]  main.main: Starting application
[00:00:00.006,000]  os: ***** BUS FAULT *****
[00:00:00.006,000]  os:   Precise data bus error
[00:00:00.006,000]  os:   BFAR Address: 0xdd416a2c
[00:00:00.006,000]  os: r0/a1:  0x20200600  r1/a2:  0xdd416a28  r2/a3:  0x00000001
[00:00:00.006,000]  os: r3/a4:  0x94cefdf7 r12/ip:  0x00000040 r14/lr:  0x60007d53
[00:00:00.006,000]  os:  xpsr:  0xa1002c00
[00:00:00.006,000]  os: Faulting instruction address (r15/pc): 0x60007d2a
[00:00:00.006,000]  os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:00.006,000]  os: Current thread: 0x20202320 (unknown)
[00:00:00.053,000]  os: Halting system
Environment (please complete the following information):

OS: Linux
Toolchain: Zephyr SDK
Commit SHA 68ef393d255152797d99a271487839d5a70139ab (July 29, 2020)

Additional context
I have located the general area where the fault is occurring:
usb_dc_mcux_ehci.c:  lines 203..
if (k_mem_pool_alloc(&ep_buf_pool, block, cfg->ep_mps, K_MSEC(10))) {
	LOG_ERR("Memory allocation time-out");
	return -ENOMEM;
}

I found the issue to be due to how the endpoint memory pool is being created.
To work around the problem is to ignore the CONFIG_NOCACHE_MEMORY (set in a Kconfig):
usb_dc_mcux_ehci.c:
45:  /* The max MPS is 1023 for FS, 1024 for HS. */
46:  // #if defined(CONFIG_NOCACHE_MEMORY)
47:  // #define EP_BUF_NONCACHED
48:  // __nocache K_MEM_POOL_DEFINE(ep_buf_pool, 16, 1024, EP_BUF_NUMOF_BLOCKS, 4);
49:  // #else
50:  K_MEM_POOL_DEFINE(ep_buf_pool, 16, 1024, EP_BUF_NUMOF_BLOCKS, 4);
51:  // #endif

I'm not sure if this is the correct solution for all mcux, but it does address my particular issue using on-chip RAM for the RT series.

@MaureenHelm Is it configuration issue? This does not seem right select NOCACHE_MEMORY if HAS_MCUX_CACHE.


Update mr-dev-days-sessions.md

Docs Build status updates of commit aee495f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/mr-dev-days-sessions.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[Question] Are there any plans to port this to Tensorflow 2?

There are many changes in TF2. Are there any plans to port this to Tensorflow 2?

We don't have any immediate plans to do so.

Ok. Thanks.


#1356 Display client details of QT participant

What's included?
During a QT we collect information about the user's platform, browser and local time. Here we are displaying that information in Admin.
Who should test?
✅ Product owner
✅ Developers
How to test?
On a qualifying test response page notice there is a new tab called 'Client'.
The 'Client' tab should not be available before the test has been started (as we haven't been able to collect data from the user).
The 'Client' tab should be available during and after a test has been started.
When available the 'Client' tab should display key information about the user's local environment such as:

Platform
Browser
Timezone
Initial time offset. This is the difference in seconds between the user's local time and our server's time
Latest time offset. A significant change here from the initial value indicates that the user changed their local clock (or device) during the test.

Risk - how likely is this to impact other areas?
🟢 No risk - this is a self-contained piece of work
Additional context
Here's an example of the Client tab

PREVIEW:DEVELOP
can be OFF, DEVELOP or STAGING

Merging for testing via dry run on Tue 24th August.


Inferred template type is unknown when complex types and marker interfaces are involved

Bug Report
🔎 Search Terms
marker interface generic template type inferred unknown
🕗 Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about marker interfaces and complex types.
⏯ Playground Link
Playground link with relevant code
💻 Code
interface Marker<T> {}

interface Obj {}

function foo<T>(obj: Marker<T>): T {
    return (obj as any).t as T;
}

function bar<T>(obj: Marker<T>) { // OK: inferred function bar<T>(obj: Marker<T>): T
    return foo(obj); // OK: inferred function foo<T>(obj: Marker<T>): T
}

function baz<T>(obj: Obj & Marker<T>) { // KO: inferred function baz<T>(obj: Obj & Marker<T>): unknown
    return foo(obj); // KO: inferred function foo<unknown>(obj: Marker<unknown>): unknown
}

🙁 Actual behavior
When complex type (&) with generics is used, template type parameter inference results in "unknown".
🙂 Expected behavior
I would rather have expected this:
function foo<T>(obj: Marker<T>): T { ... }

function baz<T>(obj: Obj & Marker<T>) { // inferred function baz<T>(obj: Marker<T>): T
    return foo(obj); // inferred function foo<T>(obj: Marker<T>): T
}

See this FAQ entry: https://github.com/microsoft/TypeScript/wiki/FAQ#why-doesnt-type-inference-work-on-this-interface-interface-foot--.
TypeScript is structurally typed and Marker doesn't use its type parameter, so any Marker<T> is interchangeable with any Marker<U>.  This makes type inference in more complex cases inconsistent, since the compiler tries to "work backwards" to find the type argument.  If you actually use the type parameter in the definition of Marker then it all works as expected: Playground link

@fatcerberus thank you for your reply.
I already tried the solution you suggested, and noticed it works.
However, I would avoid defining fields within Marker<T>, as the sole purpose of Marker<T> is to convey type T for further strong typing. In addition, a field in Marker<T> would force me to define such unwanted field within implementer classes.
Is there a way to actually "use" type T without defining a field (maybe referencing it in some type expression would work)?
e.g.
interface Marker<T> extends SomeUtilityToPinType<T> {}

Clearly, the problem occurs due to complex types (e.g. X & Y). Maybe they consider fields in a structure, and T is discarded as long as no fields are provided by Marker<T>?

Is there a way to actually "use" type T without defining a field

No.  This is a fundamental part of the design of the type system.  It's structurally typed, which means the type of something is ultimately defined by its contents, not how you invoke the type.  Therefore if you don't use T to type something inside the interface, then it effectively doesn't exist from the point of view of type inference.

the sole purpose of Marker is to convey type T for further strong typing

For the record, Marker<T> is not strongly typed for the exact reason outlined above - Marker<string> is assignable to Marker<number>, for example.


Improve documentation and examples

Examples on how to get started using the Java API would be particularly helpful.

Please have a look hereat /doc/examples/Java

Thanks for the reply! I was looking for more extensive documentation, though. I forked the project and started a wiki. Feel free to copy whatever you see fit. I also plan to send a pull request as soon as I have created more examples.


Action fails on when PR's base ref exists as a branch but not a PR

Given this branch stack, with no PRs created for any branch:

main

parent-branch

child-branch

If a PR is created for child-branch, the action will fail be because parent-branch does not have an associated PR. This happens because the action uses the repo's pull requests when building up the stack graph. To fix this, we should first add all branches in the repository as nodes on the graph, even if they don't appear in PRs, so that leafs can be properly connected when iterating through the pull requests.
Is also related to #34, as we will need to handle pagination to make sure that we have a full list of branches for the repository. This doesn't scale very well for large repositories (e.g. monorepos), but it's better than the action failing and not producing a branch stack at all.

Fixed in #44


Write part-assign automation for LogicArrays

Motivation
Currently, to assign a group of elements in a LogicArray, you need to operate on each of elements you're interested in individually.  This is tiresome.
Desired solution
Some automation that allows assigning a range or ranges of elements in a LogicArray all at once.
Alternatives considered
No response
Additional details
There's some discussion to be had on API design.

Hey Max, I would like to take this one on

reference: panda
Case:
data[i:j] = Const(defaultValue)
data[i:j] = [Const(value1), Const(value2)] or LogicArray() of length (j-i+1)

Closed in #456


Why is the CPU version preferred?

Comment:
  track_features:
    {{ "- onnxruntime-cuda" if cuda_enabled else "" }}

seems to prefer the CPU version. this is the opposite logic that exists on the tensorflow feedstock. I feel like many people would want their GPU to be preferred right?

@conda-forge-admin please rerender


manager: add a limit to the capture and replay job history

What problem does this PR solve?

Issue Number: close #693
Problem Summary:
The job history length is unlimited, which may consume much memory if the proxy runs for years.
What is changed and how it works:
Set the length limit to 10.
Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Notable changes

[ ] Has configuration change
[ ] Has HTTP API interfaces change
[ ] Has tiproxyctl change
[ ] Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@26c66bc). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #695   +/-   ##
=======================================
  Coverage        ?   69.90%
=======================================
  Files           ?      105
  Lines           ?    10022
  Branches        ?        0
=======================================
  Hits            ?     7006
  Misses          ?     2524
  Partials        ?      492

Flag
Coverage Δ

unit
69.90% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Incorrect Syntax in Example 1 code

Hey team, Example 1 uses the .ObjectID parameter for OperatorObjectID on the first line
$operatorObjectId = (Get-CsOnlineUser operator@contoso.com).ObjectId
This is the name of the attribute in AzureAD. However, the Get-CsOnlineUser returns the Identity property.
$operatorObjectId = (Get-CsOnlineUser operator@contoso.com).Identity
The above code would be a suitable replacement.
I'm running through the other examples at the moment as I've noticed some weirdness in the cmdlets relating to AutoAttendants recently, So expect a full more issues.

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

ID: 79cc312f-6b92-afa7-e50f-3ea302e58be2
Version Independent ID: 9c3b6b02-ace5-9345-7fb6-24c09ed685e9
Content: New-CsAutoAttendant (SkypeForBusiness)
Content Source: skype/skype-ps/skype/New-CsAutoAttendant.md
Service: skypeforbusiness-powershell
GitHub Login: @tomkau
Microsoft Alias: tomkau

Example 2 has the same issue

Thanks for your feedback


Test model on Google Colab

Hi, Thanks for your amazing work.
I wanted to test the model on Colab but I got the following error.
Please let me know how I can fix it.
You can find notebook here
]
8s
!python demo/video_demo_with_text.py demo/minions_rush_out.mp4 --out demo_outputs/minions_rush_out_outputs.mp4 --masa_config configs/masa-gdino/masa_gdino_swinb_inference.py --masa_checkpoint saved_models/masa_models/gdino_masa.pth --texts "yellow_minions" --score-thr 0.2 --unified --show_fps
Traceback (most recent call last):
File "/content/masa/demo/video_demo_with_text.py", line 19, in
from mmdet.apis import init_detector
File "/usr/local/lib/python3.10/dist-packages/mmdet/apis/init.py", line 2, in
from .det_inferencer import DetInferencer
File "/usr/local/lib/python3.10/dist-packages/mmdet/apis/det_inferencer.py", line 22, in
from mmdet.evaluation import INSTANCE_OFFSET
File "/usr/local/lib/python3.10/dist-packages/mmdet/evaluation/init.py", line 4, in
from .metrics import *  # noqa: F401,F403
File "/usr/local/lib/python3.10/dist-packages/mmdet/evaluation/metrics/init.py", line 5, in
from .coco_metric import CocoMetric
File "/usr/local/lib/python3.10/dist-packages/mmdet/evaluation/metrics/coco_metric.py", line 16, in
from mmdet.datasets.api_wrappers import COCO, COCOeval, COCOevalMP
File "/usr/local/lib/python3.10/dist-packages/mmdet/datasets/init.py", line 31, in
from .utils import get_loading_pipeline
File "/usr/local/lib/python3.10/dist-packages/mmdet/datasets/utils.py", line 5, in
from mmdet.datasets.transforms import LoadAnnotations, LoadPanopticAnnotations
File "/usr/local/lib/python3.10/dist-packages/mmdet/datasets/transforms/init.py", line 6, in
from .formatting import (ImageToTensor, PackDetInputs, PackReIDInputs,
File "/usr/local/lib/python3.10/dist-packages/mmdet/datasets/transforms/formatting.py", line 11, in
from mmdet.structures.bbox import BaseBoxes
File "/usr/local/lib/python3.10/dist-packages/mmdet/structures/bbox/init.py", line 2, in
from .base_boxes import BaseBoxes
File "/usr/local/lib/python3.10/dist-packages/mmdet/structures/bbox/base_boxes.py", line 9, in
from mmdet.structures.mask.structures import BitmapMasks, PolygonMasks
File "/usr/local/lib/python3.10/dist-packages/mmdet/structures/mask/init.py", line 3, in
from .structures import (BaseInstanceMasks, BitmapMasks, PolygonMasks,
File "/usr/local/lib/python3.10/dist-packages/mmdet/structures/mask/structures.py", line 12, in
from mmcv.ops.roi_align import roi_align
File "/usr/local/lib/python3.10/dist-packages/mmcv/ops/init.py", line 3, in
from .active_rotated_filter import active_rotated_filter
File "/usr/local/lib/python3.10/dist-packages/mmcv/ops/active_rotated_filter.py", line 10, in
ext_module = ext_loader.load_ext(
File "/usr/local/lib/python3.10/dist-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory

You need to downgrade the CUDA version to 11.8:
!wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb
!sudo dpkg -i cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb
!sudo cp /var/cuda-repo-ubuntu2204-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
!sudo apt-get update
!sudo apt-get -y install cuda-11-8
!export CUDA_PATH=/usr/local/cuda-11.8/

Actually don't need to do that. Try this notebook

@rolson24 Thanks for creating the Colab! It looks great!

Actually don't need to do that. Try this notebook

Thanks


Implement Relation.Rule.Or?

This syntax:
obj.querySelectorAll("p,b")
should takes all <p> or <b> elements.

This is not really a relation but simply multiple selectors. I will work on this when I have some spare time. Should be fairly simple to add it to the parser and to the matcher.


tonic-build invalid version number

Bug Report
Invalid version number for tonic-build
Version
tonic v0.7.1 ()
tonic v0.7.1 ()
tonic-build v0.7.0 (*)
Description
After the release of tonic 0.7.1, it seems that you forgot to update the version of tonic-build that don't allow us to use the fix made in this PR [https://github.com/hyperium/tonic/pull/974].

Oh good catch, I wish this stuff was a bit more automated not sure how I missed that. Will get a release out asap.

I can probably write a little shell script for CI that checks the versions are always the same.

@davidpdrsn we could prob setup automatic releases?


Dev session id missing in GUI

Describe the bug
I remember the gui to show the dev session id and link that i have to call every day to keep my dev session enabled permanently
To Reproduce
Steps to reproduce the behavior:

Install webos dev manager desktop
connect to tv
click on "Info" tab
See there is no way to get the dev session link or just the ID

Expected behavior
I expect the gui to show the current dev session id with the link: https://developer.lge.com/secure/ResetDevModeSession.dev?sessionToken=< token >
Screenshots

Additional context

OS: Windows 10

Duplicate of #53
This will be fixed in v1.9.6 (which is building right now), please check updates later and it should work for you.


Fix iOS Crash on Application Exit

Fixes #34952
Some more testing is advised before merging.

I'm getting crash on app exit on 3.2 stable with iOS 13.3.1  Is this fix in 3.2 already?

Just tried with latest Xcode version, iPadOS 13.3.1, 3.2 stable.  When I swipe up and close app I get this during debug:
2020-02-02 13:57:17.417159-0800 HEAVYPAINT[4726:95868] Can't end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
iphone_finish
Also tried with TestFlight version and get a crash on app exit

@HEAVYPOLY  Are you actually getting a crash or just an error message?
This PR prevented a hard crash of the app when the app was closed (Xcode would show an malloc error, point to the location and the app process would be halted).
The error message

2020-02-02 13:57:17.417159-0800 HEAVYPAINT[4726:95868] Can't end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

is generated when the app is put to the background since 2 touch events are still unhandled, the app however should not crash (The fixed crash occurred when these unhandled touch events stayed unhandled when the app was closed). If you put the app to the background and foreground multiple times, you will get this error message every time, the app however should not crash. To get rid of this error message the way inputs are handled in Godot on iOS when the app is put to the background and brought back to the foreground, has to be further look at as I mentioned here.
Note that iOS 13 has been notorious for closing/killing apps with above average memory usage when they are put to the background. So if your app closes automatically when put to the background, this might be the issue.

@zxcvdev  Thanks for the thorough explanation.
I'm getting a crash popup message when I close the app on testflight, does that count?

The strange thing is that an earlier version of the app exported from 3.2 RC4 has no crash on exit.  But on 3.2 stable, crash on exit (testflight version).  Both installed on the same iOS 13.3.1 iPad currently.
I'll check out the memory issue too..but wouldn't it affect the 3.2RC4 version too?

This PR has been merged since Godot 3.2 RC 2 to prevent a crash on exit. If RC 4 was working something in Godot 3.2 has to have changed from RC 4 until stable or maybe something in your latest app version that causes the crash.
Or maybe TestFlight might report the above mentioned error message as a crash (which Xcode doesn't).
Do you get the crash on older iOS devices with a home button? Because the 2 unhandled touch events are generated by the swipe up motion on newer devices (I suspect).

Ok, I tried loading the older app version on Testflight, also getting the crash there (But not on App Store version of the same build). So I guess Testflight is treating that error message as a crash.  I will try publishing the new version to App Store and report back with results

The new upload does not crash on Testflight!  It must be something I've changed accidentally.  Publishing to App Store now.  Thanks for helping


How to allow unsigned CA with SSO enabled

Summary
What happened/what you expected to happen?
I'm trying to configure SSO against an oauth 2 provider. That provider has an unsigned CA (this is a test environement). Argo server complains about it and refuse to start. I see that on dex you can set in the configmap the config "insecureCA: true" but I don't see such option neither in the workflow-controller-configmap or as an argument of the argo-server.
Can you help me?
What version of Argo Workflows are you running?
v3.1.3
Diagnostics
The logs of argo-server pod:
time="2021-09-23T14:10:14.062Z" level=info authModes="[sso]" baseHRef=/ managedNamespace= namespace=argo-wf-development secure=false
time="2021-09-23T14:10:14.062Z" level=warning msg="You are running in insecure mode. Learn how to enable transport layer security: https://argoproj.github.io/argo-workflows/tls/"
time="2021-09-23T14:10:14.062Z" level=info msg="config map" name=workflow-controller-configmap
Error: Get "https://kubernetes.default.svc/.well-known/openid-configuration": x509: certificate signed by unknown authority
Get "https://kubernetes.default.svc/.well-known/openid-configuration": x509: certificate signed by unknown authority
Usage:
  argo server [flags]

Examples:

See https://argoproj.github.io/argo-workflows/argo-server.md

Flags:
      --access-control-allow-origin string   Set Access-Control-Allow-Origin header in HTTP responses.
      --auth-mode stringArray                API server authentication mode. Any 1 or more length permutation of: client,server,sso (default [client])
      --basehref string                      Value for base href in index.html. Used if the server is running behind reverse proxy under subpath different from /. Defaults to the environment variable BASE_HREF. (default "/")

[... it continues on the usage]

What Kubernetes provider are you using?
I'm using openshift:
Client Version: 4.8.11
Server Version: 4.7.7
Kubernetes Version: v1.20.0+c8905da
What executor are you running? Docker/K8SAPI/Kubelet/PNS/Emissary
PNS

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

We use gitHub.com/coreos/go-oidc. This does not support self-signed certificates.
You'll need to raise an issue with the upstream get this changed:
https://github.com/coreos/go-oidc/issues

Opened an issue there:
https://github.com/coreos/go-oidc/issues/321

You can configure go-oidc's HTTP client with ClientContext
https://pkg.go.dev/github.com/coreos/go-oidc/v3/oidc#ClientContext
(This is the same strategy that x/oauth2 uses)

Thank you @ericchiang . Sounds like I was wrong.
@sylock would you be interested in submitting a PR to fix this?

@alexec Do you mean an empty PR so somebody else can take over it? (But I'm not sure how to create an empty PR). If not, I'm not a goland dev and I won't be able to fix this issue. Tell how can I help (except dev).

Did this change make into 3.2.3?  I am getting the same error.

@amit-va Based on the release changelogs and the v3.2.2 cherry pick it doesn't look like it has been in any of the releases yet. @alexec or someone more familiar with how this works could probably weigh in better here,

If anyone wonders: This works now with v3.2.5 by adding insecureSkipVerify: true to the sso object described here: https://argoproj.github.io/argo-workflows/argo-server-sso/
sso:
  insecureSkipVerify: true
  ...

Big thank you from my side - argo is really an awesome project!

Can confirm the solution as provided by @nterra-paul works!

If anyone wonders: This works now with v3.2.5 by adding insecureSkipVerify: true to the sso object described here: https://argoproj.github.io/argo-workflows/argo-server-sso/
sso:
  insecureSkipVerify: true
  ...

Big thank you from my side - argo is really an awesome project!

this parameter is not working in 3.4.2

If anyone wonders: This works now with v3.2.5 by adding insecureSkipVerify: true to the sso object described here: https://argoproj.github.io/argo-workflows/argo-server-sso/
sso:
  insecureSkipVerify: true
  ...

Big thank you from my side - argo is really an awesome project!

this parameter is not working in 3.4.2

Is there any new parameter replace it ? I also found that not worked.


vk_mem_alloc.h, with MSVC (Visual Studio 2019) litters the file with strange, often tautological errors

Some examples of specific errors I'm getting are:
argument of type "VmaDeviceMemoryBlock *" is incompatible with parameter of type "VmaDeviceMemoryBlock *"
and
a value of type "VmaSuballocationType" cannot be assigned to an entity of type "VmaSuballocationType"
and
declaration is incompatible with "void VmaBlockMetadata::PrintDetailedMap_Allocation(VmaJsonWriter &json, VkDeviceSize offset, VmaAllocation hAllocation) const"
when the definition is
void VmaBlockMetadata::PrintDetailedMap_Allocation(class VmaJsonWriter& json, VkDeviceSize offset, VmaAllocation hAllocation) const
It fills the error window with over 100 errors. It compiles and runs seemingly fine, but it renders the error window useless.

I cannot reproduce the problem. I compiled the project in Visual Studio Professional 2019 Version 16.6.3. Both projects build and run in both "Debug" and "Release" configuration without any errors or warnings.
You can try these things:

Regenerate project files by doing premake5 vs2019 in "premake" subdirectory.
Update your Visual Studio to the latest version using Visual Studio Installer.
Retarget solution to the latest Windows SDK version.
Make sure you have "x64" selected as project configuration not "Linux-x64".

I'm closing this bug due to inactivity for some time. Please let me know if you have additional questions.

Happens with Visual Studio (2019) CMake project config

For future reference: these errors pop up when VMA_IMPLEMENTATION is defined after vk_mem_alloc.h is included.
Can I include vk_mem_alloc.h in header file?

For future reference: these errors pop up when VMA_IMPLEMENTATION is defined after vk_mem_alloc.h is included.
Can I include vk_mem_alloc.h in header file?
How could it be possible to define VMA_IMPLEMENTATION before vk_mem_alloc.h if you need vk_mem_alloc.h in header file?

VMA_IMPLEMENTATION is only supposed to be defined once, and it is recommended that you do it in a separate source file.
In the source file that you define VMA_IMPLEMENTATION, make sure it is defined before including any headers:
example.h
#include "vk_mem_alloc.h"
...

example.cpp
#define VMA_IMPLEMENTATION
#include "example.h"
...

For future reference: these errors pop up when VMA_IMPLEMENTATION is defined after vk_mem_alloc.h is included.
Can I include vk_mem_alloc.h in header file?
How could it be possible to define VMA_IMPLEMENTATION before vk_mem_alloc.h if you need vk_mem_alloc.h in header file?

VMA_IMPLEMENTATION is only supposed to be defined once, and it is recommended that you do it in a separate source file.
In the source file that you define VMA_IMPLEMENTATION, make sure it is defined before including any headers:
example.h
#include "vk_mem_alloc.h"
...

example.cpp
#define VMA_IMPLEMENTATION
#include "example.h"
...

right, I did what u said, but still a lot of errors, and I found a wired solution, if I open an empty cpp file in tab, then compilation succeed

Try including the "example.h" file before all other headers (at least before any header that also requires vk_mem_alloc.h). Other than that piece of advice, I can't help you much. You'll have to fix it via trial and error.

MSVC still telling me this :(
use of undefined type 'VmaAllocation_T'

It look like this problem arises when including a mixture of "vk_mem_alloc.h" and the header file included with the single source file with #define VMA_IMPLEMENTATION such as:
example_allocator.h
#include "vk_mem_alloc.h"

example_allocator.cpp
#define VMA_IMPLEMENTATION
#include "example_allocator.h"

example.cpp
#include "example_allocator.h"
#include "vk_mem_alloc.h"

or
#include "vk_mem_alloc.h"
#include "example_allocator.h"

A work around to this issue is to replace all instances of #include "vk_mem_alloc.h" with #include "example_allocator.h"
Applying this fix to the above example looks like this:
#include "example_allocator.h"
#include "example_allocator.h"


docs: add developer guide, more concise README

Feature or Problem
Somewhat subjective improvements to the documentation:

add collapsible sections for install targets
tighten copy on what wash is meant to do
add developer guide

Related Issues
https://github.com/wasmCloud/wash/pull/419
Release Information
next
Consumer Impact
Consumers should be able to get a feel for what wash is and how it fits in the ecosystem, at a glance.
Testing
N/A
Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin
[ ] x86_64-windows

Tested on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin
[ ] x86_64-windows

Unit Test(s)
N/A
Acceptance or Integration
N/A
Manual Verification
Yes, verified manually

@brooksmtownsend thanks for the review, just patched up those issues you found! (BTW it definitely removes other people when I re-request a review)


each not working with ungroup

Trying to use the each function on the results of a group/ungroup, and it is not working right.
NOTE: we have a wrapper around the libs r async calls. This is more a question if you have managed to get each to work with the results of a group
The each on a read of a table works as expected.  the var spits out the last read value
    (let ((var nil))
    (rdb:with-connection
      (rdb:each
       (:limit (:table "actions") 10)   as therow
       do (setf var therow))) var)

but when I :group and :ungroup the table it seems that the each doesn't actually loop
 (let ((var nil))
 (rdb:with-connection
   (rdb:each
       (:ungroup (:group (:limit (:table "actions") 10) "Staff"))
   as therow
   do (setf var therow))) var)

the group query returns data like
      (rdb:with-connection
        (rdb:query  (:ungroup (:group (:limit (:table "actions") 10) "Staff")) ))

example
    {
    group"KLY"
    reduction[  {..} {..} ]
    }
    {
    group"XXY"
    reduction[  {..} {..} ]
    }

forgot

What version of RethinkDB are you running, and would you mind trying the cl-rethinkdb v1.16.x branch?

Scratch that, please try the master branch as is was just upgraded to 2.0.x.


XP Boost showing for armor in enchantment table

Issue Description:
Note: If this bug occurs in a modpack, please report this to the modpack author. Otherwise, delete this line and add your description here. If you are using an unreleased version of Ender IO (e.g. for 1.8.9), please don't open an issue for features that have not been announced as "finished" or "working".
What happens:
I put a pair of diamond pants in the vanilla enchantment table and saw XP Boost as an enchant I could put on them.
What you expected to happen:
Not that. Vanilla enchanting in 1.8+ is really good. If mods break that with a lot of useless/inappropriate enchants that will be very disappointing. I'd really hate to have to decide between vanilla and Ender IO - that'd be painful.
Steps to reproduce:
1.Just try enchanting enough armor and you'll see it.
2.
3.
...

Affected Versions (Do not use "latest"):

EnderIO:EnderIO-1.9.4-<IP_ADDRESS>_alpha
EnderCore:EnderCore-1.9.4-<IP_ADDRESS>-alpha
Minecraft: 1.9.4
Forge:<IP_ADDRESS>0

Your most recent log file where the issue was present:
[pastebin/gist/etc link here]

wrong project


Handle error responses in 'Table.upload_from_file'.

Closes #2132.
/cc @jonparrott

Looks mostly fine other than that nit.

LGTM though you should make Travis go green first


Future Work: Special support for effects and handlers in the IDE

Some unstructured notes about things we might want to support at some point:
Possible IDE features:

infer effects from effect holes
update effects (fix effects refactoring)
display inferred effects / types
what are better alternatives to stack traces?

Questions:

what effects are required by this function?
effect provenance: where does this effect come from? (racket like) -- since we already translate to capabilities, we can easily show this particular binding information to the user
what are potential handlers (call site analysis, called from)
given a handler: which calls to operations might be handled?

def bar(x: Int) = {
    ...
}

def foo(): Int / Print = <?
  val x = foo();
  x
?> // ?? =. <? () ?>

def bar() = {
    val position = 42
    position.<? { x => x + 1 } ?>
    ({ x => 42 })(5)
    ()
}

This was addressed by @timmy-newtron in his BSc thesis, but sadly never merged


MANOPD-83734 Actualize and ensure mandatory thirdparty packages

Description

KubeMarine and Kubernetes require the list of mandatory thirdparty packages, but they are not installed by default.

Solution

All mandatory packages are now installed by default.

Audit is now installed on any OS, and not only on Debian nodes.
Added iptables to the list of mandatory packages.
semanage is installed only on RHEL nodes.
unzip is installed only if it is required by services.thirdparties.
conntrack, iptables are installed only on control-plane, worker nodes.
The remained openssl, curl, and kmod packages are installed on all nodes.

Mandatory packages are managed the same as other system packages (docker, haproxy, etc.) and installed during prepare.package_manager.manage_packages task.
Added services.packages.mandatory section that allows to turn mandatory packages off.
Added mandatory_packages_off patch of existing inventories to turn automatic managing of mandatory packages off for backward compatibility.
Fixed JSON schema for upgrade procedure. Now it allows packages associations only for docker and containerd because there is no process to upgrade other system packages. It now also prohibits package_manager section.
Fixed package detection process to take only relevant nodes into account (for example, control-plane nodes are not checked when detecting of haproxy).
Default packages associations are partially moved to globals.yaml for deduplication.
check_iaas checks that mandatory packages are available.
Added tasks to check_paas to check that audit and mandatory packages have equal versions on the relevant nodes.

How to apply
Run migrate_kubemarine --force-apply mandatory_packages_off
Test Cases
TestCase 1
Test Configuration:

Hardware: Any
OS: Any
Inventory: Empty services.packages.install section.

Steps:

Run install.

Results:

Before
After

Installation fails with lack of packages
Installation succeeds with possible warnings in deploy.kubernetes.init task.

TestCase 2
Test Configuration:

Hardware: Any
OS: Any
Inventory: Turn off some mandatory packages in services.packages.mandatory.

Steps:

Run install.

Results:

Before
After

Not applicable
All except the explicitly turned off mandatory packages are installed. Installation might fail if the omitted package is not installed but required for correct KubeMarine/Kubernetes work.

TestCase 3
Test Configuration:

Hardware: Any
OS: Any
Inventory: Any

Steps:

Run kubemarine_migrate --force-apply mandatory_packages_off.

Results:

Before
After

Not applicable
Inventory is patched and all mandatory packages are turned off

TestCase 4
Test Configuration:

Hardware: Any
OS: Any
Inventory: Any

Steps:

Run any procedure.

Results:

Before
After

Not applicable
Mandatory package versions are detected and cached in cluster_finalized.yaml.

TestCase 5
Test Configuration:

Hardware: Any
OS: Any
Inventory: Any

Steps:

Run check_iaas, check_paas.

Results:

Before
After

Not applicable
check_iaas checks that mandatory packages are available in repositories. check_paas checks that mandatory packages and audit have equal versions.

Checklist

[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] Integration CI passed
[x] Unit tests. If Yes list of new/changed tests with brief description
[x] There is no merge conflicts

Unit tests
test_executor.py - added tests for minor fixes/improvements of RemoteExecutor.
test_audit.py - added tests for installation on centos.
test_install.py - new tests for mandatory packages installation.
test_packages.py - added tests for improved packages versions detection, including support of mandatory packages.

Please also exclude packages to install from ci/default_config.yaml to handle case with mandatory packages from CI

Done

@shmo1218 pls proceed


qwen2 预训练的loss震荡

Reminder

[X] I have read the README and searched the existing issues.

System Info
llama factory 0.9.0
Reproduction

stage: pt
per_device_train_batch_size: 8
gradient_accumulation_steps: 16
learning_rate: 1.0e-4
num_train_epochs: 2
lr_scheduler_type: cosine
warmup_ratio: 0.1
bf16: true
Expected behavior
请问这个训练的loss正常吗？如何才能更平滑一些。
Others
No response

增加 batchsize


Autogenerate slugs for blog posts.

Looks good @coreyryanhanson ! 🎉

To complement this a bit more I also added a config var in the config file to switch between slugs modes easily 👌


Upgrade to Sphinx RTD theme v1.3.0 for Sphinx 6/7 support

Description
Finally after months of pushing and waiting, ReadTheDocs theme has been updated to v1.3.0(rc1).
See release notes: https://sphinx-rtd-theme.readthedocs.io/en/stable/changelog.html#release-1-3-0
With this update, it supports docutils v0.18 (not yet v0.19/v0.20) and Sphinx v6.x/v7.x. As this repository was forked from sphinx_rtd_theme and it's used by many repositories, an update would allow upgrading from Sphinx 5.3 to Sphinx 6.17.1 so latest documentation features and updates could be used.
Environment Info

Python Version: v3.11
Sphinx Version: v6.1.3v7.1.0
RTD Theme Version: v1.2.0v1.3.0

RTD updated their theme to v1.3.0(rc1). Please update this forked theme.

Hi @umarcor.
How do we want to go on with this theme?
I have made a port to ReadTheDocs Theme v2.0.0, but I can't compile the SASS stuff. I used all your modifications in previous commits and recreated a new BuildTheDocs variant. The SASS tool chains are a mess and I ended up hand-manipulating CSS files (how the SASS preprocessor would do it). ... it's not a solution. I also figured out, that RTD theme uses way outdated SASS frameworks like bourbon (oudated), fontawesome (outdated) and neat (outdated and discontinued).  The whole setup doesn't even run in Docker under WSL2.
Then I rechecked Furo, but is has some drawbacks.  You asked me some time ago for my comparison - I did an updated compare on latest Furo:

[+] It supports light and dark mode.
[-] But it needs restyling to achieve a mixed coloring like we had with our modified BTD theme.
So at least some (or a lot?) of handwork is needed.
[+] Furo has better admonitions.
[+] New Sphinx plugins support Furo and some have even better support for Furo then RTD.
[+] My biggest criticism is the missing linking of content and navigation.
Using a link in navigation and the navigation isn't synchronized is a very very bad user experience. It makes reading big documentations a nightmare.
[-] Some width settings seam to be magic or unclear how Furo aligns and sizes elements.
E.g. I'm not able to figure out how to widen the navigation bar.
It looks like they're relying on some side effects.

Do you see any chances to get Furo to a state that it serves our needs like BuildTheDocs did?


}

WDYT?

Could be a BC? Need to look at the usages of FileReader

FileReader is an internal class so there is no BC promise (nice to prevent a BC break, but if better with it we should do it IMHO)

hi there, please check out the docs for this class:
https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3778/files#diff-d6800b5e3c38f7bb28db313ffc5012f3R18
it was supposed to be one-to-one replacement for file_get_contents, with only difference that it would properly read stdin.
for that, everywhere where it's used, it shall already be checking false, thus fixing docs is nice thing for sure.
yet, sadly, we are checking false === $fileReader->read(...) only in FileFilterIterator.
for that, we shall add missing error handling.
would we do that with exceptions or false (mimics native function vs add more custom logic) ? all fine for me.

I'm :+1: for using exceptions, since we already have a layer around the native calls it seems like a good spot to improve further.

Thanks @ntzm.


Emojis do not work in link text

Given a message like so:
[:alien: Aliens!](https://google.com)

I would expect to see an emoji linked. However, the emoji code is rendered literally:

Our frontend markdown processor seems to do this correctly.  This appears to be an ordering thing; the following "fixes" it:
(zulip-py3-venv) tabbott@coset:~/zulip$ git diff
diff --git a/zerver/lib/bugdown/__init__.py b/zerver/lib/bugdown/__init__.py
index 85a2823f72..998ffab22b 100644
--- a/zerver/lib/bugdown/__init__.py
+++ b/zerver/lib/bugdown/__init__.py
@@ -1933,7 +1933,7 @@ class Bugdown(markdown.Markdown):
         reg.register(markdown.inlinepatterns.SimpleTagPattern(EMPHASIS_RE, 'em'), 'emphasis', 30)
         reg.register(markdown.inlinepatterns.SimpleTagPattern(DEL_RE, 'del'), 'del', 25)
         reg.register(markdown.inlinepatterns.SimpleTextInlineProcessor(NOT_STRONG_RE), 'not_strong', 20)
-        reg.register(Emoji(EMOJI_REGEX, self), 'emoji', 15)
+        reg.register(Emoji(EMOJI_REGEX, self), 'emoji', 75)
         reg.register(EmoticonTranslation(emoticon_regex, self), 'translate_emoticons', 10)
         # We get priority 5 from 'nl2br' extension
         reg.register(UnicodeEmoji(unicode_emoji_regex), 'unicodeemoji', 0)

But it breaks having something that looks like emoji syntax in the URL, so I don't think that's the right fix.  The reason ordering matters here is we're marking the text as an AtomicStringinsideLinkInlineProcessor` to prevent a similar problem with linkifiers:
        # Prevent realm_filters from running on the content of a Markdown link, breaking up the link.
        # This is a monkey-patch, but it might be worth sending a version of this change upstream.
        if not isinstance(el, str):
            el.text = markdown.util.AtomicString(el.text)

I'm not sure what the right actual fix is, but it probably involves not using AtomicString and instead using some other technique to prevent linkifiers (RealmFilters in the code) from applying to the text part of links, allowing us to remove the AtomicString hack and thus have this just work.

One of the use cases I had for this was in various bots allowing for simple UIs with emoji as button links.

I have a use case for OpenStreetMap discussions.
For example, I've added a custom emoji :role: , and was experimenting with linkifier:

Pattern: :role:\s+(?P<role>\w+)
URL format string: https://wiki.openstreetmap.org/wiki/Role:%(role)s

Expectation being that it will look like so (with appropriately sized image, of course):

 outer

But it actually looks like so:

:role: outer


Azure Database for PostgreSQL Supported as Sink?

I want to build a pipeline of storage account to Azure Database for PostgreSQL?
Is this possible?

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

ID: 79c3f263-04ba-ea60-1927-c2fedde96d61
Version Independent ID: fe35a13a-a960-9a50-1b89-aa79abe514b9
Content: Copy data from Azure Database for PostgreSQL using Azure Data Factory
Content Source: articles/data-factory/connector-azure-database-for-postgresql.md
Service: data-factory
Product: unspecified
GitHub Login: @linda33wj
Microsoft Alias: jingwang

@Anmolgan81 Thanks for the feedback. We are actively investigating and will get back to you soon.

@Anmolgan81 Azure database for PostgreSQL is not a supported data source as a sink yet. Please take a look at supported data sources here.

@Anmolgan81 We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Please vote for this here: https://feedback.azure.com/forums/270578-data-factory/suggestions/36249289-postgresql-as-sink

is it supported now?

According to the page linked below, it now is.
https://azure.microsoft.com/en-us/updates/data-factory-supports-copying-data-into-azure-database-for-postgresql/


Cannot override bucket name

I'm attempting to write some pulumi code to manage an S3-based website.
For this to work, you must be able to specify a bucket name exactly. This doesn't seem to be happening, though?
    web_bucket = s3.Bucket(
        f'{name}-bucket',
        __name__=domain,
        website={
            "index_document": "index.html"
        },
        website_domain=domain,
        **opts(parent=self),
    )

Is producing bucket names like dingbots.dev-6fe3d77, and it's not clear how to override this.

I believe that passing bucket=domain instead of __name__=domain should accomplish what you want here.

What is __name__ supposed to be, anyways?

Yes, that did it.


Download "_raw" instead of "_1280"

I have recently discovered that it is possible to access the original unrestricted image file by replacing the resolution specification with "_raw". While "_1280" files were thought to be the largest accessible size, it turns out that "_raw" files can be larger if the original file uploaded had a higher resolution than 1280 x 1920.

Thanks for the info! I've just checked it and it seems to the case.
I'll add it within the next days.

Thanks again.


Renamed providerKey to firewallName

While upgrading a Symfony app to 5.3, I saw this error:
1x: Since symfony/security-http 5.2:
Method "SymfonyCorp\Connect\Security\Authentication\Token\ConnectToken::getProviderKey()"
has been deprecated, rename it to "getFirewallName()" instead.

I've added that method, and renamed all private properties to $firewallName. There's still a $this->providerKey usage because I think we can't update that (the class extends from a Symfony class and gets the property from there).
Please note that I don't know if all this is correct and/or enough. Thanks!

Thank you @javiereguiluz.

merged and released


Insert/Append multiple files

Fixes #14

Cool. Have you tested this on both vim and nvim?

I tested in vim version 8.1.279 and nvim v0.3.1
Lambdas were introduced in vim 8.

Thanks!


Replacement of depreciated methods with new ways to save photos and videos

I've adapted the plugin so it works on the latest iOS versions before it had several errors when saving images and videos, I just replace the old save mode with the new ones I did tests on several devices tested from iOS 9.0 onwards and it works perfectly.

build fails with following error.
The following build commands failed:
	CompileSwift normal arm64 /tmp/monaca/5b924c16e788853e31f4dc98/project/platforms/ios/VoiStamp/Plugins/cordova-plugin-photo-library/PhotoLibrary.swift
	CompileSwift normal arm64 /tmp/monaca/5b924c16e788853e31f4dc98/project/platforms/ios/VoiStamp/Plugins/cordova-plugin-photo-library/PhotoLibraryProtocol.swift
	CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(3 failures)
Error: Error code 65 for command: xcodebuild with args: -

@joaoduartemariucio have you tried with remote URLs? (example:  url = https://picsum.photos/200/300/?random)
I am on iOS 12
I keep getting
"Cold not save image to album: Optional(Error Domain=NSCocoaErrorDomain Code=-1 \"(null)\")"


Validate CA package during build

Probably it would be ideal to use a tagged version of the validator rather than main in the future, but for now we don't have a tag which includes the validator.
For now, since it's unlikely to change much, it should be fine to use main.

/unhold


Text to speech conversion

issue #37
i have  converted text to speech in Python using the gTTS (Google Text-to-Speech) library.
pip install gTTS (install this package in terminal)
os.system("start output.mp3") plays the saved audio file directly on your system.

please allow me to contribute in this work as i already made the lab bot which can respond to our voice and gives the response according to it.

@suryanshsk i have made new PR as this was creating conflict due to readme file.
So please merge it #118 PR


Only set value on free text fields

I can not see a way to reproduce this thing in the tests.
We would need a way to test components in integration for this.
Two controllers get in each other's way here.
Fixes #2616

To explain... this lambda did deselects everything the user types if the value list is filled with none string elements...


Refactor common functions

Refactor all common functions to a separate file to avoid duplicate code. Functions like validate(...), train(...) and so on are duplicated in multiple files.
Use dependency injection.

Use the common functions form model_log_loss_l2_hid1.py as they are most up to date.

This is solved by using the model builder instead from pull request #9. Closing this.


SDK 3191

Saving the output overlaid video correctly.
Sample percentage fixed.

Fixes: SDK-3191, SDK-3192, SDK-3193, SDK-3196, SDK-3197, SDK-3199


CHARGING_AMPS and CHANGE_CHARGE_LIMIT error

Describe the bug
CHARGING_AMPS and CHANGE_CHARGE_LIMIT error
Logger: homeassistant.components.automation.wallbox_limite_carga
Source: custom_components/tesla_custom/services.py:110
Integration: Automatización (documentation, issues)
First occurred: 01:47:07 (2 occurrences)
Last logged: 01:47:07
Wallbox Limite Carga Slider: Error executing script. Unexpected error for call_service at pos 1:
While executing automation automation.wallbox_limite_carga
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 381, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 584, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1495, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/tesla_custom/services.py", line 54, in async_call_tesla_service
await api(service_call)
File "/config/custom_components/tesla_custom/services.py", line 110, in api
return await controller.api(name=command, path_vars=path_vars, **parameters)
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/controller.py", line 170, in wake_up
result = await wrapped(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/controller.py", line 1726, in api
return await self.__connection.post(
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/connection.py", line 168, in post
return await self.__open(url, method=method, headers=self.head, data=data)
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/connection.py", line 217, in __open
raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/tesla_custom/services.py:110
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 01:33:43 (3 occurrences)
Last logged: 01:34:05
[140539277649520]
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1495, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/tesla_custom/services.py", line 54, in async_call_tesla_service
await api(service_call)
File "/config/custom_components/tesla_custom/services.py", line 110, in api
return await controller.api(name=command, path_vars=path_vars, **parameters)
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/controller.py", line 170, in wake_up
result = await wrapped(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/controller.py", line 1726, in api
return await self.__connection.post(
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/connection.py", line 168, in post
return await self.__open(url, method=method, headers=self.head, data=data)
File "/usr/local/lib/python3.9/site-packages/teslajsonpy/connection.py", line 217, in __open
raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException

sorry, i was send other car id. it change recently.
now run ok


Add Readme file and create skeleton structure for the repo

Write a fully descriptive README file stating what the repo is about and how it should be used.
Also design the basic skeleton repo structure.

PR #5


add optional subRoutePath property EntityRefLink

Signed-off-by: david.collins<EMAIL_ADDRESS>Hey, I just made a Pull Request!

Allows users of EntityRefLink component to specify an optional subRoutePath property which will be appended to the entityRoute link returned by the component.
:heavy_check_mark: Checklist

[X] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[X] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[X] All your commits have a Signed-off-by line in the message. (more info)

@timbonicus Co-worker @webark discussed this with you in Discord the other day and mentioned getting a pull request together for it.

Hey! We were talking about this addition a bit today, and we are thinking that maybe it's not the right direction. There should probably be some first class support for this kind of thing in the route ref system itself – and we'd have to step back and consider this a bit more first on our side. Until then, could you instead use a regular Link from @backstage/core-components instead, and do effectively
import { getEntityName } from '@backstage/catalog-model';
import { useRouteRef } from '@backstage/core-plugin-api';
import { entityRouteRef } from '@backstage/plugin-catalog-react';

const MyComponent = () => {
  const entity = useEntity(); // if this is in an entity page context
  const ref = useRouteRef(entityRouteRef);
  return <Link to={`${ref(getEntityName(entity))}/the/desired/subpath`}>link text</Link>;
);

? That is untested code but I hope it gets the point across :)
I'll close this for now, but if this seemed wildly wrong or a misunderstanding on our part or not suitable for your needs, feel free to reopen and keep discussing!

@freben that makes sense. Yea, we started off looking through how they were defined through the EntityLayout.Route mechanism to either pull or validate against those, but there wasn't any way we saw. Perhaps those could be given a "route id" similarly to how other route refs are that it could be referenced with?
Anyway, thank you for taking the time to look this over and review it.


Gaussian template is adding an extra line between basis set specification and solvation parameters sometimes

This is causing Gaussian to ignore the
radii=uff
alpha=1.2
eps=40.0
parameters, which messes up our CPCM calculations. I wonder if this is an interaction between input files that do not have ECPs?

should be fixed with my new default gaussian basis set specification


Page 92 Equation 3.175 version 2022-07-07

In 3.6.1 hierarchical binomial model, in equation 3.175, we assume p(\mu, \sigma) \propto 1 Then p(a,b) \propto (a+b)^(-5/2).
However the derivation is not very clear to me.
It seems to assume \sigma = (a+b)^(-1/2), then as \mu= \frac{a}{a+b}, With Jacobian over the change of variables,
then we can get p(a,b) = p(\mu, \sigma) * \begin{vmatrix} \frac{\partial \mu}{\partial a}&\frac{\partial \mu}{\partial b}\\ \frac{\partial \sigma}{\partial a}&\frac{\partial \sigma}{\partial a} \end{vmatrix}  \propto (a+b)^(-5/2)
However, \sigma for Beta distribution is equal to [\frac{ab}{(a+b)^2*(a+b+1)}]^(1/2), which is not equal to (a+b)^(-1/2), under what condition would the former be approximated with the latter?

I agree it's not clear. The prior p(a,b) propto (a+b)^{-5/2} is from
https://www.pymc.io/projects/examples/en/latest/generalized_linear_models/GLM-hierarchical-binomial-model.html
I have clarified the text to drop the reference to the beta distribution.


Update dasv6-dadsv6-series.md

Remove an unnecessary and incorrect column for Max network bandwidth (Mbps Dad) on the Dadsv6 VM.

@iamwilliew
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off

#sign-off


AWS Cognito Integration

Here is some sample code I've written to try to create a means for logging in without using the generated login page provided by AWS.  I don't remember if the code works and it doesn't appear to try to aspire to do anything by obtain a login token.  But it is interesting that it is using the "amazon-cognito-identity-js" package.  So that might be helpful.  To use it, you need the fetch API, which typically only exists in browsers, but I used the "node-fetch" package to make it accessible on the back-end.
const APIError = require('./src/lib/APIError.js');

module.exports = api => {
  if (api.request.method !== 'POST')
    throw new APIError(405, {
      message: 'Only the POST method can be used to login.',
    });

  const username = api.request.params.username;
  if (username === undefined)
    throw new APIError(400, {
      message: 'A username is required to login.',
      source: { parameter: 'username' },
    });

  const password = api.request.params.password;
  if (password === undefined)
    throw new APIError(400, {
      message: 'A password is required to login.',
      source: { parameter: 'password' },
    });

  global.fetch = require('node-fetch');
  const AWSCognito = require('amazon-cognito-identity-js');
  const API = require('node-rest-client').Client;
  const authenticationDetails = new AWSCognito.AuthenticationDetails({
    Username: username,
    Password: password,
  });

  const userPool = new AWSCognito.CognitoUserPool({
    UserPoolId: 'us-east-1_redacted',
    ClientId: 'redactedrab1st130u1kbivbd',
  });

  const cognitoUser = new AWSCognito.CognitoUser({
    Username: username,
    Pool: userPool,
  });

  return new Promise((resolve, reject) => {
    cognitoUser.authenticateUser(authenticationDetails, {
      onSuccess: response => {
        resolve({
          bearer_token: response.idToken.jwtToken,
        });
      },

      onFailure: error => {
        reject(new APIError(401, {
          message: 'Failed to login with the supplied credentails.',
          details: [error],
        }));
      },
    });
  });
};

The above code depends on having a pool ID and client ID.  The below picture points arrows at where you can obtain them.  Also, it is possible to use a login UI generated by AWS in the circled area if we want to get up and running more quickly.

Closing this out.  This is a problem that the Tactics repository doesn't need to solve.


Added loading animation

closes: #371

Does this work with the DnTemplate?

Does this work with the DnTemplate?

Should work out of the box. Just AOT the player and deliver the updated version with the template.

This seems to leave some room for user error. Shouldn't the user then also have to ask for the loading animation to start (at the beginning of Init()). Otherwise there is suddenly a different behaviour when they build to another platform.
I recognize this is controlled by the platform player, but there is no way to do this with the DnTemplate, which is especially for inexperienced users.

Yes, you are right. I think we need to put in some work regarding the way it should be handled and the overall usability.


Contribution Guide

I would like to participate in this project. Unfortunately it is not clear to me how to setup a proper development environment. Is there any kind of contribution guide oder docs that could help?

Dev docs are here.

@arsaboo I know - but they are mostly related to Homeassistant not Hass.IO (supervisor).

There is no developer modus in updater.json. Just find something in /etc # cat /etc/machine-info CHASSIS=embedded DEPLOYMENT=production

that is inside /mnt/data/supervisor. Hass.io/HassOS have his release circle and developer state currently because you can run a stable Hass.io on a developer HassOS and so on.
docker run --rm --privileged -v ~/.docker:/root/.docker homeassistant/amd64-builder --armhf --supervisor --docker-hub cschroeter -r https://github.com/cschroeter/hassio -b my-test-xy


Wider compatibility testing

Hi,
Sorry to be back. It seems that requests 2.11.0 has introduced a breaking change (see https://github.com/kennethreitz/requests/issues/3483 ) on Python 3. As it was annoying me a bit, I've forked, added Travis-CI automated testing for different versions of Python (which simplifies a lot working with all this stuff), rolled my Python 2.6 compatibility changes and added fixes for Python 3/requests 2.11.0.
Even if you don't want to support Python 2.6 (which is terrible, I know), you might want to cherry-pick the other two commits, which will give you automated testing and requests 2.11.0 compatibility.
Cheers,
Álex

👍 I'll release a new version tonight. Thanks for the patch.

@alexntt I push version 0.1.7 to pypi and added this project to Travis. Thanks again for the help!


Correction for raw affiliation School of Community Health Portland State University

Correction needed for raw affiliation School of Community Health Portland State University
raw_affiliation_name: School of Community Health Portland State University
new_rors: 00yn2fy02
previous_rors:
works_examples: W1601052560
contact: ea04f257003a4cc3ddbba898c787ad81:07824766 @ ourresearch.org

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


Can't build - Performing build step for 'chip_gn' FAILED (CON-1388)

idf_py_stdout_output_54103.txt
Any Ideas, how to fix this?

@lacsap88 can you please elaborate more on what steps did you follow when building the light_copy? My guess says, there could be some stale files in build/ directory and they may be messing this up. Can you clean the build directory and sdkconfig and try again?
rm -rf build sdkconfig

[Reference to Programming Guide: Developing with the SDK]

I ran through this tutorial until step 2.2.4 - this failed
I can build the blink example from the esp-idf without any problems.
but any matter example failed with
FAILED: esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build esp-idf/chip/lib/libCHIP.a /Users/pascaljohann/esp-matter/examples/generic_switch/build/esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build /Users/pascaljohann/esp-matter/examples/generic_switch/build/esp-idf/chip/lib/libCHIP.a
so I'm kind of lost

Can you please help me with the below details
Environment

ESP-Matter Commit Id:
ESP-IDF Commit Id:
Target SoC (eg: ESP32 or ESP32-C3):
Device Logs (Please attach the log file, starting from idf.py build or set-target):
Host Machine OS with version:
Host Machine Python version:

ESP-Matter Commit ID: 5b4cc837172fef70bd7f7e8c15fa5cd5cbc32439 (grafted, HEAD -> main, origin/main, origin/HEAD)
ESP-IDF Commit ID: a322e6bdad4b6675d4597fb2722eea2851ba88cb (HEAD, tag: v5.2.1)
Target: ESP32C3
MacBook Pro M1 Pro - 15.0
Python 3.9.6
Archive.zip
All Logs attached

any ideas?

I looked at the logs and could think of few things that may be causing issue

Can you please check if /Users/pascaljohann/esp-matter/examples/light/build/esp-idf/chip exists after running idf.py build. If yes, can you please check the permissions on that directory, or may be on build directory itself.
I tried the steps from the doc but no luck reproducing the issue.
Please make sure all the submodules are updated as per the revision that is being used for both esp-idf and esp-matter.
I hope this is example is being built without any modifications, then can you please try in a new terminal...

cd /path/to/esp-matter
rm -rf `connectedhomeip/connectedhomeip/.environment/`
source /path/to/esp-idf/export.sh
./install.sh
source export.sh
cd examples/light
idf.py -v build

If this fails please paste/redirect the commands and their outputs (better option, cut-paste the complete terminal logs) to a file and attach it for further debugging.
If you want to just try out the firmware, you can try it through esp-launchpad.
If you want to build without setting up stuff, you can use the esp-matter docker image along with esp-idf docker guide.
NOTE: esp-idf docker guide uses espressif/idf as the image, you will need to use the espressif/esp-matter instead.

I encounter the same problem. when I run idf.py -v build I get the attached log.
log.txt

@xbrunosousa
I also tried different python versions as well as idf and matter versions on different host machines (e.g. macOS and endeavouros. In the end the docker image that @shubhamdp mentioned worked for me.

If you want to build without setting up stuff, you can use the esp-matter docker image along with esp-idf docker guide.
NOTE: esp-idf docker guide uses espressif/idf as the image, you will need to use the espressif/esp-matter instead.

These are the steps to make it work for me:
docker

install docker desktop and docker binary on your computer

download the latest esp-matter image (i am using v5.2.3 right now) and this seems to work
espressif/esp-matter Tags | Docker Hub

If you want to flash the firmware and an example on your esp32 you might have to make the ports available inside the docker container. If you just want to build the examples skip this step
pip3 install esptools

Find out on which port the esp32 is connected. It's most often somewhere in /dev/ and start the script

esp_rfc2217_server.py -v -p 4000 /path/to/your/port

start the container
copy the project directory from an esp-matter project where you store your usual projects and inside of that one run the following command to start the docker container:
docker run --rm -v $PWD:/project -w /project -u $UID -e HOME=/tmp -it --network host espressif/esp-matter

erase the esp32 and flash the firmware

you should now be able to run the following commands:

idf.py --port 'rfc2217://host.docker.internal:4000?ign_set_control' erase-flash

idf.py --port 'rfc2217://host.docker.internal:4000?ign_set_control' flash monitor

Hope this works for you as well!

Hi, @herculesp17 and @lacsap88. I found the main Reason for this problem. See #1157
CMake creates the Build step for chip_gn with a semicolon cutted cd command when executed with /bin/sh. It would work if the path to both folder wouldn't be escaped in a double quote. I edited the build.ninja and after that it Worked but that is not a good solution because it is auto generated. Does somebody know where the two folder Paths find place into the build.ninja?
Maybe it is a bug in command cd because I only have a mac. Maybe the command cd "folder1/test;folder2/test" works on Debian/Ubuntu? On MacOs only cd folder1/test;folder2/test works fine. Could be a setting?

@North3rnL1ght  thanks for the instructions. Removing the double quotes from the command didn't help. And it makes totally sense to me that neither cd "folder1/test;folder2/test" nor cd folder1/test;folder2/test are valid commands. I managed to set up a virtual machine running debian and installed everything there. then i had a look at the chip_gn build command inside ./build/build.ninja and it looks something like this:
#############################################
# Custom command for esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build

build esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build esp-idf/chip/lib/libCHIP.a | ${cmake_ninja_workdir}esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build ${cmake_ninja_workdir}esp-idf/chip/lib/libCHIP.a: CUSTOM_COMMAND esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-configure || esp-idf/chip/args_gn
  COMMAND = cd /home/lennart/esp/esp-matter/examples/light_switch/build/esp-idf/chip && ninja esp32
  DESC = Performing build step for 'chip_gn'
  restat = 1

Whereas the command on my arch linux looked like you described with the double quotes and the weird cd-command
#############################################
# Custom command for esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build

build esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build esp-idf/chip/lib/libCHIP.a | ${cmake_ninja_workdir}esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build ${cmake_ninja_workdir}esp-idf/chip/lib/libCHIP.a: CUSTOM_COMMAND esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-configure || esp-idf/chip/args_gn
  COMMAND = cd "/home/lennart/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip;/home/lennart/esp/sensor/build/esp-idf/chip" && ninja esp32
  DESC = Performing build step for 'chip_gn'
  restat = 1

Changing this gives me no more errors when building.
@shubhamdp  do you know how to resolve this issue since we now know that the automated generated cmkae file is generating wrong?

Duplicate of #1157.

We have rolled up the connectedhomeip submodule in https://github.com/espressif/esp-matter/commit/0e53bcab756254026df2406a39f391ef5a7ffd2c which has the patched fix.


Add 16 bit support to kernel operator TRANSPOSE_CONVOLUTION

This PR is one of steps to extend TFLite to support symmetric 16-bit activations.
In this PR we introduce implementation and tests for TRANSPOSE_CONV kernel reference function.
The specification of this operator:
TRANSPOSE_CONVOLUTION
  Input 0:
    data_type  : int16
    range      : [-32768, 32767]
    granularity: per-tensor, zero_point=0
  Input 1 (Weight):
    data_type  : int8
    range      : [-127, 127]
    granularity: per-axis (dim = 0), zero_point=0
  Output 0:
    data_type  : int16
    range      : [-32768,32767]
    granularity: per-tensor, zero_point=0

I have a look on Windows Bazel build and  Windows Bazel GPU build:
none of the logs seems failing relative to this PR
https://source.cloud.google.com/results/invocations/ea48732b-6791-400f-9343-274a6bdce49f/log
https://source.cloud.google.com/results/invocations/1f43a2e1-15b2-4cbf-b0c8-a098297e2eed/log
@suharshs @rthadur can you help to have a look?
Shall I rebase this PR?

I have a look on Windows Bazel build and Windows Bazel GPU build:
none of the logs seems failing relative to this PR
https://source.cloud.google.com/results/invocations/ea48732b-6791-400f-9343-274a6bdce49f/log
https://source.cloud.google.com/results/invocations/1f43a2e1-15b2-4cbf-b0c8-a098297e2eed/log
@suharshs @rthadur can you help to have a look?
Shall I rebase this PR?

I am still  making some internal tests pass with this change. Should be in
soon.
On Wed, Feb 26, 2020 at 3:11 AM Peng Sun<EMAIL_ADDRESS>wrote:

I have a look on Windows Bazel build and Windows Bazel GPU build:
none of the logs seems failing relative to this PR
https://source.cloud.google.com/results/invocations/ea48732b-6791-400f-9343-274a6bdce49f/log
https://source.cloud.google.com/results/invocations/1f43a2e1-15b2-4cbf-b0c8-a098297e2eed/log
@suharshs https://github.com/suharshs @rthadur
https://github.com/rthadur can you help to have a look?
Shall I rebase this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/pull/35997?email_source=notifications&email_token=AALCE5VPJW6WKJR3ARMSL3LREZE57A5CNFSM4KINAG5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM72BZI#issuecomment-591372517,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALCE5RVGPSYVKM6VBMGD6TREZE57ANCNFSM4KINAG5A
.

@suharshs gentle ping for new status ?

Can we rebase? I think there are some stale errors for this one.

Here is the internal error , iam not sure if it is related , can you please verify
third_party/tensorflow/lite/kernels/test_util.cc:330 Expected equality of these values:   CountPartitionsDelegatedTo(interpreter_.get(), TestNnApiDelegate())     Which is: 0   1 Expecting operation to be accelerated but cannot find a partition associated to the NNAPI delegate

I think we just need to blacklist the new int16 tests @ /tensorflow/lite/delegates/nnapi/acceleration_test_list.cc.

I'm wondering, is add a version to int16 TRANSPOSE_CONV gonna be helpful?

@psunn Can you please resolve conflicts? Thanks!

@gbaned thanks for the reminder. done
@jdduke @suharshs  Can you please have a review? thanks!

@gbaned thanks for reminding me, done
@jdduke @suharshs can you please review it? thanks!

@jdduke sorry to bother you, can you have a review and merge if it's ok?

I think @suharshs is working to merge this manually.


postgres: make connection logging shard-aware.

I believe this has been done, commit 19ed23070878bd24cbd9c0eceb10fd815b0abc72 introduced the neon_shard_log macro and it is widely used. Please re-open and add details or create a new issue if there's more to do here.


Upload problem [solved]

Hi @davidkroell
I get the following message when uploading:
"Error uploading file to Garmin Connect:  invalid character 'w' looking for beginning of value"
Looks like the same:
https://github.com/petergardfjall/garminexport/issues/84
Best Regards,
Robert

I'm getting this error too :-(

Problem solved you need to compile version 2.2 with new version of Abrander module: https://github.com/abrander/garmin-connect/issues/17#issuecomment-1002265395
On my project where I use this great software bodycomposition, I make available the fixed version:
https://github.com/RobertWojtowicz/miscale2garmin

I'm opening the case for uploading a new version, just for information

Hi @RobertWojtowicz, thanks for your work.
A new release is available: v2.2.1


When running on PhantomJS, the Object.defineProperty method doesn't w…

When running on PhantomJS, the Object.defineProperty method doesn't work for every element, prints a log on console and doesn't throw an exception. So now it checks for the change, and forces an exception.

Have you signed a Google Contributor License Agreement?
This is one of the requirements before we can merge patches.
If not, can you test if
https://github.com/ewilligers/web-animations-js/tree/PhantomJS-fallback
serves your needs.

Where do I sign it?

I tested with your forked solution, still getting error.
CLA signed.


return type of getInsertedId fix

Thanks for the contribution. This was one of several issues addressed in #183.


feat(system): create system usage message

Description

This PR creates system usage message.
Related links
It will be used in:

https://github.com/autowarefoundation/autoware.universe/pull/7094

Tests performed

Tested on logging simulator with the sample data from Autoware tutorials.
Notes for reviewers

Should be merged with:

https://github.com/autowarefoundation/autoware.universe/pull/7094

Interface changes

ROS Topic Changes

ROS Parameter Changes

Effects on system behavior

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

Current message:
SystemUsage.msg
std_msgs/Header header
uint32 pid
float32 cpu_usage_rate
float32 mem_usage_rate
uint64 mem_usage_kib

Let's name it ResourceUsageReport.msg
std_msgs/Header header

# Process identifier
uint32 pid

# CPU usage metrics
float32 cpu_usage_percentage

# Memory usage metrics
uint64 total_memory_bytes
uint64 used_memory_bytes
uint64 free_memory_bytes
float32 memory_usage_percentage

# Disk I/O metrics (rates in bytes per second)
float32 disk_read_bytes_per_sec
float32 disk_write_bytes_per_sec

# Network usage metrics (rates in bytes per second)
float32 network_receive_bytes_per_sec
float32 network_transmit_bytes_per_sec

Could you add these additional metrics too?
Most Autoware nodes don't need much disk usage but could be used for rosbag writing composable nodes maybe.
Network usage will definitely be useful, many times it even poses a bottleneck for the entire system.
And explicitly reporting total, used, free memory stats is useful, the listening side can decide how to use them.
Also changed the rate to percentage to express it more clearly.
Also prompted chatgpt a bit and I think the final one prompt could be a good start on gathering the remaining stats: https://chatgpt.com/share/16c1aca9-7d12-49eb-85c7-07d2b1e9a5b9

Maybe following: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-units-in-kubernetes
We could name the cpu one to:
float32 cpu_cores_utilized  # e.g. 1.5 physical CPU cores


Possible to default from "id" to "_id"?

This would be handy for example mongodb/couchdb servers.
It would be nice to make this configurable.

Not right now.
I agree, I'll see what can be done.

I would definitely geek out over having this available; emphasis on the configurability.
:grinning:

Just released some new features and it's possible now :)
json-server --id _id --watch db.json

W00t! Thank you.

Awesome, thanks for this.

You're welcome ;)

Thank you!

how to config by configuration file ,my json-server.json file is blow ,but it's not work
{   "id":"_id",   "port":3000 }
can you help me? thanks

@typicode

@fresherchen
I was also wondering how to do that when using json-server as a module.
I needed:

--id _id
--foreignKeySuffix _id

(MongoDB style)
Here is my JSON Server:
const path = require('path');
const jsonServer = require('json-server')
const data = require('./server.json')

const app = jsonServer.create()
const port = process.env.PORT || 3000

const router = jsonServer.router(data, {foreignKeySuffix: '_id'})
router.db._.id = '_id';

console.log(path.join(__dirname, '../../dist'));

app.use(jsonServer.defaults({
    logger: process.env.NODE_ENV !== 'production',
    static: path.join(__dirname, '../../dist')
}))

app.use(router)

app.listen(port, () => {
  console.log('JSONPlaceholder listening on http://localhost:' + port)
})

This allowed me to properly use relationships and  _expand such as in:
GET http://localhost:3000/categories/3/albums
GET http://localhost:3000/albums/5?_expand=category


ViaVersion - git-Spigot-283de8b-4316a8c (1.11.2)

What is the output link of /viaversion dump?
https://gist.github.com/anonymous/e9232dd01350558f6222502281b6400a
Are you using any additional software like BungeeCord? If so, what software and version? (Please list your plugins as well)
No, just spigot
Plugins (3): ViaVersion, ProtocolLib, ServerListPlus
How does this error happen? login? Using an item?
Server starting, after Done message
Is there an error in the console? Use pastebin.com. Is there a kick message?
Yes, http://pastebin.com/rzg2XRbL

(it's just not working at all)

On other spigot version it works so 1.11.x players can connect..

Also it says "ViaVersion detected server version: 1.11.1(316)" and i have Spigot 1.11.2 installed

This message is due to an issue in our update service provider Spiget and will be resolved soon, it has no impact on ViaVersion.
Via does not allow any versions when running on 1.11.1. It supports only newer versions.


Multi-line link not detected

A link that is split onto two lines is not detected:
[foo]
(http://example.org/)

GitLab renders this fine.
Use case for this readability when e.g. the "foo" text is an image, and the link also has a title:
[![Youtube-Screenshot-Link](path/to/uploads/09be07d94465827fdeba9b232fd30500/Bildschirmfoto_2015-12-09_um_09.50.49.png)]
(https://youtu.be/hzZO7sKkDZc "DECT IP How To Transfer (en)")

That is expected behaviour as per the CommonMark spec (see test here). There cannot be any space between ] and (.


Add companion docker-compose.yml for nodes/hosts that send their logs/metrics to the master

@riemers was working on this in #5. Not sure, if this is ready yet?!

I got that working. But Security is out the door pretty much. I'll see if i
can make a pull request.
Op 13 december 2016 om 20:08:09, Wilhelm Uschtrin<EMAIL_ADDRESS>schreef:

@riemers https://github.com/riemers was working on this in #5
https://github.com/uschtwill/docker_monitoring_logging_alerting/issues/5.
Not sure, if this is ready yet?!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/uschtwill/docker_monitoring_logging_alerting/issues/11,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AApoOUwWUYmjXEqok6T512t9xOaP4k55ks5rHu0ZgaJpZM4LMG49
.

Awesome, let's have a look!

Yeah... I did some research on security just now. There's different ways, I guess.
Apparently the guys over at Prometheus decided that node_exporter itself shouldn't provide any security measures, so no TLS/SSL and no basic auth. They're focusing on what Prometheus is all about, monitoring, and advise people to handle the situation by using a reverse proxy. Check here and  here. cAdvisor seems to take the UNIX approach as well.
Logstash and filebeat on the other hand could be secured by SSL/TSL 'natively': https://www.elastic.co/guide/en/beats/filebeat/current/configuring-ssl-logstash.html
So plan A would be to just reverse proxy and SSL/TLS everything by hand.
Plan B.1 really would be to just set up a Docker Swarm, which gives you (among other benefits) an Overlay network which takes care of all "over the internet" routing, encryption and service discovery. With Docker Swarm we should be able to pretty much deploy your docker-compose.yml from #5 as is, and it should magically work and be secure. No need for any port forwarding either.
Plan B.2 would be to go for something more all-encompassing like Mesos or Kubernetes right away, while you're at it.
Plan C would be to roll your own networking with one of these or (Open)VPN.
Plan D would be to go for SSH tunnels. Why not? ;)
I think Plan B.1 sounds good?!
The swarm setup could be done in one line in the setup.sh and we could just wrap the docker-compose.yml for other hosts in a small script with another couple of lines.
What do you think?

version: '2'

services:

#########################################################
####                    LOGGING                      ####
#########################################################

  # Runs on your node(s) and forwards all logs to Logstash.
  filebeat:
    container_name: filebeat
    image: prima/filebeat
    volumes:
      - ./filebeat.yml:/filebeat.yml
    restart: always
    labels:
      container_group: monitoring
    logging:
      driver: gelf
      options:
        gelf-address: udp://<your ip>:12201
        labels: container_group

#########################################################
####                   MONITORING                    ####
#########################################################

  # Runs on your node(s) and forwards node(host) metrics to Prometheus.
  nodeexporter:
    container_name: nodeexporter
    image: prom/node-exporter
    expose:
      - 9100
    ports:
      - 9100:9100
    restart: always
    labels:
      container_group: monitoring
    logging:
      driver: gelf
      options:
        gelf-address: udp://<your ip>:12201
        labels: container_group

#########################################################

  # Runs on your node(s) and forwards container metrics to Prometheus.
  cadvisor:
    container_name: cadvisor
    image: google/cadvisor:v0.24.1
    ports:
      - 8080:8080
    expose:
      - 8080
    volumes:
      - "/:/rootfs:ro"
      - "/var/run:/var/run:rw"
      - "/sys:/sys:ro"
      - "/var/lib/docker/:/var/lib/docker:ro"
    restart: always
    labels:
      container_group: monitoring
    logging:
      driver: gelf
      options:
        gelf-address: udp://<your ip>:12201
        labels: container_group

#########################################################

Then your docker-compose of the other side (for logstash etc) needs to be opened up too.
So for logstash that was:
    ports:
      - 5044:5044
      - <IP_ADDRESS>:8090:8080
      - 12201:12201/udp
    expose:
      - 5044
      - 8080
      - 12201/udp

Might did more, but since i adjusted the files so much to fit my needs (certs and all, creating a PR makes it a bit messy)
Also changed the grafana a bit more to show with extra dockerized apps in it and the multiple hosts, i think if you check it and tweak it back a bit that might be of some help.
(txt file since it didn't except json)
Main Overview-1482229746962.txt

Alright, looks good!
But I really would like to have this work in a swarm (option B.1 from above), since otherwise (if it's not in a VPN) logs and metrics would just be flying through the web unencrypted and ports would be exposed to the wild. Especially as having encryption and such will be the only way for it to be compatible with the new secure mode.
I just tried setting this up with docker swarm init on the 'master' and docker swarm join on the node, but swarm mode, docker-compose, docker run and overlay networks are not really compatible enough with each other to achieve this easily.
Docker 1.13 should make this possible though, see:
https://github.com/docker/compose/issues/3656
https://github.com/docker/docker/issues/23901
Let's wait until then...
I also noticed, that this will require to add jobs to the master's prometheus.yml, which will require a short write up.

Nothing wrong with using swam, but that would make all docker 'servers' a node on the swarm cluster. You can still run normal docker containers on the host, without interrupting the swarm. Would then be limited to the version of docker you are running (1.13 in that case) i do like the benefit of not having to configure and close down all kinds of stuff because its in its own overlay. Only need a user/pwd or something on the frontends, but that should be it. Have not looked into the jobs, but the end of the year is near, so we are always more busy then normal.