[kirkstone] flutter-auto: Building issue with Vulkan backend

Hi,
I'm trying to compile flutter-auto v2 with yocto kirkstone branch with Vulkan feature enabled.
But i encountered issue with this compilation :
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:37:9: note: expanded from macro 'CHECK_VK_RESULT'
|     vk::resultCheck(static_castvk::Result(x), LOCATION);
|     ^
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:502:3: error: no member named 'resultCheck' in namespace 'vk'
|   CHECK_VK_RESULT(d.vkGetPhysicalDeviceSurfacePresentModesKHR(
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:37:9: note: expanded from macro 'CHECK_VK_RESULT'
|     vk::resultCheck(static_castvk::Result(x), LOCATION);
|     ^
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:505:3: error: no member named 'resultCheck' in namespace 'vk'
|   CHECK_VK_RESULT(d.vkGetPhysicalDeviceSurfacePresentModesKHR(
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:37:9: note: expanded from macro 'CHECK_VK_RESULT'
|     vk::resultCheck(static_castvk::Result(x), LOCATION);
|     ^
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:544:3: error: no member named 'resultCheck' in namespace 'vk'
|   CHECK_VK_RESULT(result);
|   ^~~~~~~~~~~~~~~~~~~
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:37:9: note: expanded from macro 'CHECK_VK_RESULT'
|     vk::resultCheck(static_castvk::Result(x), LOCATION);
|     ^
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:554:3: error: no member named 'resultCheck' in namespace 'vk'
|   CHECK_VK_RESULT(
|   ^~~~~~~~~~~~
| /home/debiancompile/msc-ldk/build/01057/tmp/work/cortexa55-poky-linux/flutter-auto/2.0-r0/git/shell/backend/wayland_vulkan/wayland_vulkan.cc:37:9: note: expanded from macro 'CHECK_VK_RESULT'
|     vk::resultCheck(static_castvk::Result(x), LOCATION);
|     ~~~~^
| fatal error: too many errors emitted, stopping now [-ferror-limit=]
Could you help with this ?
Thank's in advance,
Florent LEROY.

@fleroyener I haven't pushed cherry-picks to kirkstone yet.  Only scarthgap is building to spec.  You can try cherry picking today; might just work.  I won't be looking at that for another week

Will be resolved with https://github.com/meta-flutter/meta-flutter/issues/538

Closing this since fixes went in some time back.  Feel free to reopen if needed


Provide a way for custom command to declare "typed argument" like "arg1 is a label"

The core can prompt users "please provide a label"
and can syntax-check that it looks well-formed, or "did you mean".

start by updating the design doc


Missing files on project

Describe the bug
When i reload it said imported the project but none of the files created before was loaded in
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-xaym2u
Steps to reproduce
just reload while being on a project
Expected behavior
Missing all files
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 129
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/<IP_ADDRESS>
performance.memory = {
  "totalJSHeapSize": 73515563,
  "usedJSHeapSize": 71415295,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = fwrobens
Chat ID = fd4a2ab7c5ef

Additional context
No response

Hey! Thanks for reporting this!
Did you reload while the responses from the AI were streaming or had the project finished?
If so the files must not have been written yet, but in that case it should show a message asking you to confirm you want to navigate away. Did you see that message?
We have changed some things related to persisting files, could you try and again and see if it's now resolved?


[BUG] Cannot map the encryption algorithm URL to KeyWrapAlgorithm class

Use Case
I am attempting to create an SSO login system using the SAML authentication protocol whereby any SAML assertion which is received will be encrypted. The only part where the Azure Key Vault is being used is to unwrap the encrypted key during the decryption process.
Bug Description
There is no way of mapping the URL from the encrypted SAML assertion to a value accepted by the KeyWrapAlgorithm class in order to unwrap the encrypted key. E.g. in the encrypted SAML assertion, there is the EncryptionMethod tag in which the Algorithm attribute contains the link "http://www.w3.org/2001/04/xmlenc#rsa-1_5" (as shown in the attached screenshot). However, in order to create a KeyWrapAlgorithm object which maps to the algorithm RSA v1.5, you need to pass "RSA1_5" when calling the fromString() method, which doesn't match exactly like the one in the URL. Even if I were to grab the last part of the URL (from the # onwards), I would still encounter a problem where "rsa-1_5" is not recognized by the this library since it's not the same as "RSA1_5".
Expected Behavior
This library should ideally handle the mapping between the URLs received in the encrypted SAML assertion with the respective KeyWrapAlgorithm objects which are used internally by this library. An example would be to create a new method fromUrl() in the KeyWrapAlgorithm class which will work similarly to the fromString() method.
By doing so, any other library which will integrate with this library needs to pass only the algorithm URL sent within the assertion rather than applying the necessary formatting specific to each and every other library.
Screenshots

Additional Context
When I'm referring to the KeyWrapAlgorithm class, I'm referring to the class with path: com.azure.security.keyvault.keys.cryptography.models.KeyWrapAlgorithm
Should you need any other information, kindly let me know.

Thanks for creating this github issue and sharing this feedback @RobertButtigieg.  @vcolin7 will follow up shortly.
/cc @g2vinay

I will bring this up with the team during today's meeting.


Limit the polys that may be drawn

An option to limit the polys that may be drawn

+1

When I need to do things like this I make the shape a property of the map, and check if it exists... remove it or prevent further shapes of that class being drawn etc.

There's a workaround here:
http://rowanwinsemius.id.au/blog/limiting-leaflet-draw-to-drawing-a-single-feature/
But it would be great if there have an option to control the limitation.

Had the same problem, i needed only one circle so on map.on(L.Draw.Event.CREATED) i just called drawnItems.clearLayers();.
This way the old circle drawn disappear when creating a new one.


The total batch size

Thanks for your awesome work!
But I do not find key information in the paper and the released code. What is the total batch size of H-DETR, 32 or 16?
Thanks!

https://github.com/HDETR/H-Deformable-DETR/blob/10af735b13bb1f28ae391fd4a3926285662b0af3/main.py#L48
We train all the models with a batch size of 16 (2 images/GPU x 8 GPUs) as we do not have access to rich GPU resources.


Discord servers are square instead of round using Vencord

Describe the bug
The Discord Servers are showing as square instead of round
To Reproduce

Enable RadialStatus in Vencord themes online link
The Discord server icons are square, not round

Screenshots

Infomation (please complete the following information)
Discord channel:   Stable
OS:    Windows
Mod:  Vencord
Discord language:  English
Additional context
This seems to have broken on the latest Discord update.  It was working fine yesterday.
Thanks!

This has nothing to do with RadialStatus. RadialStatus is for... User status. Not servers.
This is an issue of the Fluent theme.

Ok thanks.
On Wed, Jun 12, 2024 at 8:19 PM, Ian @.***(mailto:On Wed, Jun 12, 2024 at 8:19 PM, Ian < wrote:

This has nothing to do with RadialStatus. RadialStatus is for... User status. Not servers.
This is an issue of the Fluent theme.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Local NUnit test result file missing

Hi, I'm using the following command (some values redacted):
appcenter test run uitest --app <myApp> --devices <deviceId> --app-path <myApk> --test-series master --locale en_US --build-dir <dir> --uitest-tools-dir <dir> --nunit-xml DroidTestResults.xml --include-category XTC
I'm not seeing an nunit result file being generated. I tried absolute and relative paths. I use this to pass results to my CI build.
The commmand upload and runs the test successfully. Test results are reported to the command line, but no file is created.
I believe this was possible before using Xamarin Test Cloud.

Hi @applied-kevinsalot  - this problem is being address currently. Follow progress in this PR: https://github.com/Microsoft/appcenter-cli/pull/400

@krukow any progress getting this in? AppCenterTask will not work as expected without this fix I think.

@rmarinho This has been merged and will be in the next release - later this week or early next week.

Hey @applied-kevinsalot and @rmarinho , this has been addressed in our CLI v 1.0.14 released on Apr 2. Thank you again for bringing this to our attention @applied-kevinsalot ! I'll be proceeding to close this ticket now. If you have any other questions, please feel free to file a ticket again.
Thank you to @krukow , @owenniblock @erychagov and @christav for working on this! :)


add: show coin name and logo under transactions. checked build -ok

Thank you very much for this! I tried to iterate the design a bit and since I couldn't push it in here it went straight to master. Thanks!


Add Ariadne GraphQL error integration

Capture GraphQL errors when using Ariadne server side and add more context to them (request, response).
One of three integrations for https://github.com/getsentry/sentry-python/issues/2257, split from https://github.com/getsentry/sentry-python/pull/2381

@antonpirker Made two additional changes since your review:

added an ignore_logger to prevent the logging integration from capturing the error first: https://github.com/getsentry/sentry-python/pull/2387/commits/25495d565b8d4b12733d4f0cbf0a33233b0f6a28
changed attaching request.data back so that the ariadne integration rewrites whatever is set there by the web framework integrations: https://github.com/getsentry/sentry-python/pull/2387/commits/2ceb9b106d5c738277647825cedeee0fcb708112 As I was testing stuff for docs I noticed that the web framework integrations sometimes seem to attach a wrong request body. Not sure exactly why. Making the ariadne integration overwrite it ensures that it's the correct one.


Add issue filing and feature requesting helper

Based on this Figma UI design , https://www.figma.com/file/qFoQ4iC27jpNZb7CCuo7Hj/Model-Builder---RM?node-id=292%3A85503

Feedback button is available on all pages and goes the correct links for both bug and feature.


Alarmo don't see Google Nest Hub

Alarmo Version
v1.9.14
HA Version
2024.1.6
Bug description
I choose notification trough Speak to Google Nest Hub 2 and Alarmo shows error there's no entity. I provide working entity.

Steps to reproduce
Open Alarmo tab. Action tab. New notification.
I choose:
Event - Alarm is triggered
Mode - Away, Night
Task target - tts.speak
Entity - my working Nest Hub entity.
Choose Try it.
Relevant log output
service: tts.speak
data:
  message: "The alarm is triggered! Cause: {{open_sensors}}."
  entity_id: media_player.nesthubf857

Thanks, I find entity for two google speakers when I make group.
Regards.


Is this feature complete or still actively developed?

Hi thank you so much for implementing this in Go.  Question:

According to the MAVSDK site it says this is feature complete, but the repo README says it does no implement all the modules.  Which one is correct?
Is this still actively being developed?
Are there any examples?  Ive run the python and C++ takeoff and landing but not yet sure how to implement it here.

@JonasVautherin @julianoes Can you outline the current state?

This repo is likely correct.
Judging from the commits, no.
Doesn't look like it.

I'm sorry, this is just in the state that whatever community contributors left it. I will update the main docs not to be confusing.

https://github.com/mavlink/MAVSDK-docs/pull/283

Hi,
the repository is not being actively maintained in the sense that we do not keep track of the MAVSDK-Proto/MAVSDK repos.  The code generation scripts are being used in our company without any changes (we only generate handful of plugins in use by our app).
We are currently testing a new way of releasing the go package out of the MAVSDK-Go repo so that the consumerswould simply have to import the package in their apps without much hassle. Would be pushing the changes in a couple of weeks. Once this works, we will try to update the package more frequently.
@dp1140a are you facing any specific problem using the repo as such?

Thanks for the reply.  Since GoLang is my goto language for most things when I saw this repo I was pretty stoked.  Im trying to make sense of how to use it; hence the examples request.  Pretty cool to hear that you are using at your company.  In terms of features I would like to be able to:

take off and land
receive sensor data
Set Coordinates / waypoints

And probably other things I cant think of right now.


Bump selenium version to latest with v1.5.0?

Environment
Bobcat version:

Bobcat modules used:

bb-aem-classic
bb-aem-common
bb-aem-touch-ui
bb-annotations
bb-core
bb-cumber
bb-email
bb-junit
bb-reports
bb-traffic

Browser + version:

Expected Behavior
Actual Behavior
Steps to reproduce

Selenium was upgraded in #270 and will be available with the next release.


issue-10356: upgrade logback due to cve

Purpose of the pull request
Fixes #10356
Brief change log
pom change
Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Codecov Report

Merging #10357 (261203a) into dev (12fdd9b) will decrease coverage by 0.26%.
The diff coverage is 30.43%.

:exclamation: Current head 261203a differs from pull request most recent head 8ed9ded. Consider uploading reports for the commit 8ed9ded to get more accurate results

@@             Coverage Diff              @@
##                dev   #10357      +/-   ##
============================================
- Coverage     40.44%   40.18%   -0.27%
+ Complexity     4784     4727      -57
============================================
  Files           868      871       +3
  Lines         35369    35375       +6
  Branches       3943     3943
============================================
- Hits          14306    14215      -91
- Misses        19628    19731     +103
+ Partials       1435     1429       -6

Impacted Files
Coverage Δ

...asource/api/datasource/BaseDataSourceParamDTO.java
0.00% <ø> (-78.58%)
:arrow_down:

...datasource/api/plugin/DataSourcePluginManager.java
0.00% <0.00%> (ø)

...asource/api/plugin/DataSourceProcessorManager.java
0.00% <0.00%> (-88.24%)
:arrow_down:

...ce/clickhouse/param/ClickHouseConnectionParam.java
50.00% <ø> (ø)

...clickhouse/param/ClickHouseDataSourceParamDTO.java
0.00% <ø> (ø)

...lickhouse/param/ClickHouseDataSourceProcessor.java
0.00% <0.00%> (ø)

...lugin/datasource/db2/param/Db2ConnectionParam.java
50.00% <ø> (ø)

...in/datasource/db2/param/Db2DataSourceParamDTO.java
33.33% <ø> (ø)

...n/datasource/db2/param/Db2DataSourceProcessor.java
49.01% <0.00%> (ø)

...r/plugin/datasource/hive/HiveDataSourceClient.java
1.35% <ø> (ø)

... and 50 more

Continue to review full report at Codecov.

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

@kezhenxu94 I fixed the license file


Proposal: Default Service Plans

Let’s wholesale rip off how default storage classes for volumes work and apply it to Service Catalog!
See the proposal file in the PR for the details. I am using github now because it's just easier for me to manage than google docs. Apologies for the confusion! 😊

I like the direction, I look forward to working out the details with everyone.

Hurray! I am really excited to collaborate on this. 💖

I've updated the proposal with milestones for breaking up the implementation into phases.

F2F Feedback

Default plan per class regardless of service type vs service type default plan
Adheres To: url to a spec describing what it does
reorder the milestones to user defined plans first]
making service type at the same level of all the other labels (e.g. version)

/retest
is this still relevant?

We've shifted priorities so I'm closing this issue.


Hazard type CRUD

@sosualfred Please I am done with the CRUD

Please @sosualfred I have made the validation and updates to the CRUD endpoints

There are still some changes you've not made. But, I'll just go ahead and merge it.

Ok


MPI failure in batch mode on Edison/Cori?

When ran in batch mode, diagnostic runs fail while initiating MPI and do not produce output.  @beharrop ran into this problem on Edison but I've also reproduced it on Cori, under both the latest shifter image and the v1.5.0 image.  The demo also fails this way (lat_lon and all_sets demo).  However, when run on an interactive node with the exact same commands and parameters, it does not fail (at least in the latest version).
Fri Mar 29 13:38:54 2019: [unset]:_pmi_alps_init:alps_get_placement_info returned with error -1
Fri Mar 29 13:38:54 2019: [unset]:_pmi_init:_pmi_alps_init returned -1
[Fri Mar 29 13:38:54 2019] [c5-0c0s14n3] Fatal error in PMPI_Init_thread: Other MPI error, error stack:
MPIR_Init_thread(537):
MPID_Init(247).......: channel initialization failed
MPID_Init(636).......:  PMI2 init failed: 1

Hi @kaabre, I'll try to reproduce this error. Is this the full output? If not, can you post it? Thanks!

Hello @kaabre, do you still have this issue?

Others, like Chris and Qi are having this issue. I'm going to look at this.

I'm also getting issues just running the container, please see below. I'm in contact with NERSC support.
$ shifter --volume=/global/u2/z/zshaheen/github/acme_diags/tests/system:/reference_data_path --volume=/global/u2/z/zshaheen/github/acme_diags/tests/system:/test_data_path --volume=/global/u2/z/zshaheen/github/acme_diags/tests/system/all_sets_results:/results_dir --image=docker:e3sm/e3sm_diags:latest -- e3sm_diags
ERROR: unclean exit from bind-mount routine. /var/udiMount/reference_data_path may still be mounted.
BIND MOUNT FAILED from /var/udiMount//global/u2/z/zshaheen/github/acme_diags/tests/system to /var/udiMount/reference_data_path
FAILED to setup user-requested mounts.
FAILED to setup image.

@zshaheen , good to know that you can reproduce the errors. I will be interested in knowing the solutions.

Some good news. @dnadeau4 stated that running in the interactive mode works.


Leapdriod is not opening a

hello,
After installing the leapdriod app from the official website , the app is not opening.
Every times it is loading and atlast not opening.
so please help me

Have you restarted your computer since installing Leapdroid?
The developers have ceased all work and support for Leapdroid. Aside from basic things like the above, no one here can help you. If Leapdroid isn't working, maybe try Nox instead?

no i haven't

/home/michael/Leapdroid/VBoxSVC.log

hello there! leapdroid is not working for me. It says Leapdroid VM is already isntalled. But when i searched it on my pc, it wasnt there. There was only a folder. Please help.


 This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 54)
00:59:53 WARN on-error onError(Error: Error: connect ENETUNREACH <IP_ADDRESS>:8788)
00:59:53 WARN PadchatRpc initWebSocket() ws.on(close) code: 1006, reason:
00:59:58 WARN on-error onError(Error: Error: connect ENETUNREACH <IP_ADDRESS>:8788)
00:59:58 WARN PadchatRpc initWebSocket() ws.on(close) code: 1006, reason:
01:00:03 WARN on-error onError(Error: Error: connect ENETUNREACH <IP_ADDRESS>:8788)
01:00:03 WARN PadchatRpc initWebSocket() ws.on(close) code: 1006, reason:

Seems like this is duplicate with https://github.com/lijiarui/wechaty-puppet-padchat/issues/163
Close for now, please reopen if this is not same issue as the issue pasted above.

No, it's not a duplicate.
In this issue, the puppet-padchat program exited after a WebSocket reset.
In the other issue, the puppet-padchat program got stuck after the WebSocket reset, because when reset event emitted, the puppet state is off(), which should be on() as I expected.

Okay, thanks for the explanation.

@windmemory Yes, it's related with the flash-store.
According to https://github.com/zixia/flash-store/issues/13 , if we use nosql-leveldb then we will not get the segfault error. However, the nosql-leveldb requires the local build when install.
So at last, I switch it back to the leveldown which can just be installed without any compiling job, it will sometimes get the segfault error.

I can switch to use nosql-leveldb back.
So please feel free to let me know if you believe it's necessary.

What if I switch the FlashStoreSync to FlashStore, will that solve the problem?

Doesn't work :(

Seems like we need to switch back to nosql-leveldb...

@windmemory Yes, please use<EMAIL_ADDRESS>for your environment.
There are no much changes between the v0.7 with the latest version, except the nosql-leveldb related changes.

Great! I will revert the version of flash-store back to 0.7.
Thanks!


enable setting upstreams dynamically via HTTP endpoint

The PR exposes an HTTP endpoint for configuring upstream peers, and changes controller code so that instead of reloading it POSTs the list of new upstream peers(endpoints) into Nginx.
For any change that is not an Endpoint change, it falls back to reload behaviour so the change has to be strictly Endpoint change so that it skips reloading.
Also note that skipping reload does not mean skipping updating the config file - the config file on disk gets updated as usual - this is important for resiliency.
Next steps:

Consider using https://github.com/openresty/lua-resty-balancer or design and implement a better load balancing interface and at least Nginx's default LB algorithms
Polish the code, add tests
Using certificate_by_lua make certificate/secret updates dynamic as well

@Shopify/edgescale

@ElvinEfendi have you seen https://github.com/kubernetes/ingress-nginx/pull/2152 ?
That PR provides basically the same thing you are trying to achieve here.

@ElvinEfendi are you interested in collaborating in that PR?

@aledbf thanks for the link, I did not know about it. Yeah the end goal seems to be the same, but that PR is using a different approach. I'm almost done with the proof of concept. Will polish it a bit more then make a PR upstream where we can discuss further.

are you interested in collaborating in that PR?

I'm definitely interested, how do you see us proceed?

Will polish it a bit more then make a PR upstream where we can discuss further.

I would prefer to continue in the PR already opened. Can we do that?
Maybe you can add your comments/suggestions/complains in the PR?
I really want to avoid forks with the same feature but with different implementations

ok, I have the first per namespace/service working load balancing
2018/03/04 05:18:23 [info] 30#30: *293 [lua] configuration.lua:36: update_backend(): updating backend: another-test-an-app1-80, context: ngx.timer
2018/03/04 05:18:23 [info] 29#29: *294 [lua] configuration.lua:36: update_backend(): updating backend: another-test-an-app1-80, context: ngx.timer
I0304 05:18:25.371379       5 controller.go:190] only endpoints have changed, skipping reload and posting them to Nginx via HTTP request
I0304 05:18:25.371446       5 controller.go:233] upstream-default-backend is same as running config. number of endpoints:
I0304 05:18:25.371471       5 controller.go:233] elvin-test-an-app1-80 is same as running config. number of endpoints:
2018/03/04 05:18:25 [info] 30#30: *297 [lua] configuration.lua:108: f(): backend data was updated for another-test-an-app1-80: {"name":"another-test-an-app1-80","service":{"metadata":{"name":"an-app1","namespace":"another-test","selfLink":"/api/v1/namespaces/another-test/services/an-app1","uid":"c3950ded-1f63-11e8-958f-fe295f9f64c3","resourceVersion":"92563","creationTimestamp":"2018-03-04T04:23:17Z","labels":{"app":"default-http-backend"},"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"default-http-backend\"},\"name\":\"an-app1\",\"namespace\":\"another-test\"},\"spec\":{\"ports\":[{\"port\":80,\"targetPort\":8080}],\"selector\":{\"app\":\"default-http-backend\"}}}\n"}},"spec":{"ports":[{"protocol":"TCP","port":80,"targetPort":8080}],"selector":{"app":"default-http-backend"},"clusterIP":"<IP_ADDRESS>","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}},"port":80,"secure":false,"secureCACert":{"secret":"","caFilename":"","pemSha":""},"sslPassthrough":false,"endpoints":[{"address":"<IP_ADDRESS>","port":"8080","maxFails":0,"failTimeout":0,"target":{"kind":"Pod","namespace":"another-test","name":"default-http-backend-55c6c69b88-zhsxm","uid":"c3907f89-1f63-11e8-958f-fe295f9f64c3","resourceVersion":"92581"}},{"address":"<IP_ADDRESS>","port":"8080","maxFails":0,"failTimeout":0,"target":{"kind":"Pod","namespace":"another-test","name":"default-http-backend-55c6c69b88-4p8tl","uid":"b5701772-1f64-11e8-958f-fe295f9f64c3","resourceVersion":"92902"}}],"sessionAffinityConfig":{"name":"","cookieSessionAffinity":{"name":"","hash":""}}}, client: <IP_ADDRESS>, server: , request: "POST /configuration/backends/another-test-an-app1-80 HTTP/1.1", host: "localhost:18080"
I0304 05:18:25.373146       5 controller.go:230] endpoints for another-test-an-app1-80 have been updated
<IP_ADDRESS> - [<IP_ADDRESS>] - - [04/Mar/2018:05:18:25 +0000] "POST /configuration/backends/another-test-an-app1-80 HTTP/1.1" 201 5 "-" "Go-http-client/1.1" 1755 0.000 [-] - - - -
2018/03/04 05:18:25 [info] 30#30: *297 client <IP_ADDRESS> closed keepalive connection
2018/03/04 05:18:25 [info] 30#30: *298 [lua] configuration.lua:36: update_backend(): updating backend: another-test-an-app1-80, context: ngx.timer
2018/03/04 05:18:25 [info] 29#29: *299 [lua] configuration.lua:36: update_backend(): updating backend: another-test-an-app1-80, context: ngx.timer

I'm also adding support for configuring load balancing algorithm per ingress at https://github.com/kubernetes/ingress-nginx/pull/2167.

This is now running in our staging environment. The image is public at index.docker.io/elvinefendi/nginx-ingress-controller:0.0.1
To enable the dynamic configuration one needs to start the controller with --enable-dynamic-configuration flag. If you wanna see more Lua logs you can also set error log level to "info" to see how the balancer chooses different upstream peers and a bit more.
There's one issue I have seen so far which is when I set replicas down to 0 for an app then I see an error:
E0305 06:22:56.438860       5 runtime.go:66] Observed a panic: "index out of range" (runtime error: index out of range)
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/usr/local/Cellar/go/1.10/libexec/src/runtime/asm_amd64.s:573
/usr/local/Cellar/go/1.10/libexec/src/runtime/panic.go:505
/usr/local/Cellar/go/1.10/libexec/src/runtime/panic.go:28
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/internal/ingress/controller/nginx.go:756
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/internal/ingress/controller/controller.go:172
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/internal/ingress/controller/nginx.go:141
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/internal/task/queue.go:112
/Users/elvinefendi/go/src/k8s.io/ingress-nginx/internal/task/queue.go:59

I'll address it later.
The next steps are

Add tests at least for the new Go code
Implement EWMA algorithm

@aledbf as you suggested I'm holding off of making upstream PR and also gave my feedback on the other PR you referenced. My priority with this PR will be to make it more stable and then implement EWMA balancing algorithm. And I'm also going to provide an extendable interface for anyone who wants to contribute with a different LB algorithm.
If you wanna try this the image is linked above.

The general workflow
Controller side:

when force reload is set, we unconditionally POST to Lua endpoint after reload
when controller gets a regular update without force reload, we first check if the change is only about backends
if yes then POST the list of new backends to the Lua endpoint
if successfully POSTed then regenerating new config and save it but skip reload
if not then fallback to reloading

Lua side:

configuration.lua: this middleware accepts JSON payload and stores it in the respective shared Lua dictionary
balancer.lua: this middleware periodically runs a function per worker that decodes raw config that's stored in the shared Lua dictionary and stores it in local per Nginx worker cache. It also takes care of resetting respective LB state. The second responsibility of this middleware is to actually call the respective load balancing algorithm for the upstream and set current upstream peer.

The change has been merged into master at https://github.com/Shopify/ingress/pull/23 and upstream PR is at https://github.com/kubernetes/ingress-nginx/pull/2174.
No need for this PR anymore.


Bower package manager migration while in maintenance

From @peterblazejewicz on May 21, 2017 17:50
Hi folks,
Just to let you know, the Bower package manager tool has been put into maintenance mode officially:
https://github.com/bower/bower/commit/0bd318de53daf9dc3b52bfd7bc753d4d2c2c9948
The related issues was closed on the Bower project discussion list:
https://github.com/bower/bower/issues/2298
The templates ships with Bower configuration and implicit dependency (as precaution the dependencies are bundled with template)
If you start some serious discussion on how to migrate templates to not use Bower and move to NPM/Yarn/Webpack, I'd gladly help.
Copied from original issue: dotnet/templating#840

I mentioned this to @madskristensen yesterday as well. This seems like as good a place as any to start the discussion on what the plan for client side package management should be going forward.

From @rogersachan on August 9, 2017 22:33
Any update on this?

When I talked with @madskristensen about this, the thinking was to use LibraryInstaller. Similar to his PackMan project, it's a lightweight way to install and manage client side content files and is backed by CDNJS by default. It can be configured to point to other sources as well in case there's a restriction on or recommendation for the packages allowed for a particular project.
That being said, tooling for it has not yet reached a 1.0 state to my knowledge and the support policy hasn't yet been made clear.
What would folks think of this approach assuming things get finished up and there's a known support policy?

I think we can close this, since we've done what we planned to do (i.e., remove Bower for now, will introduce Packman in the future). We're not specifically planning to add any further intervening feature. @Eilon

Agreed, closing.


test

Codecov Report

Merging #14 (630b8bd) into codecov (d2b318e) will not change coverage.
The diff coverage is n/a.

Flag
Coverage Δ

*Carryforward flag

msal-angular
95.81% <ø> (ø)

msal-browser
84.55% <ø> (ø)

Carriedforward from d2b318e

msal-common
83.32% <ø> (ø)

Carriedforward from d2b318e

msal-core
73.02% <ø> (ø)

Carriedforward from d2b318e

msal-node
78.48% <ø> (ø)

Carriedforward from d2b318e

msal-react
93.77% <ø> (ø)

Carriedforward from d2b318e

*This pull request uses carry forward flags. Click here to find out more.
@@           Coverage Diff            @@
##           codecov      #14   +/-   ##
========================================
  Coverage    81.10%   81.10%
========================================
  Files          129      129
  Lines         6594     6594
  Branches      1231     1231
========================================
  Hits          5348     5348
  Misses         847      847
  Partials       399      399

Impacted Files
Coverage Δ

lib/msal-browser/src/app/ClientApplication.ts
90.60% <ø> (ø)


Add config to switch between nullable and non-nullable dtypes

Add config to switch between nullable and non-nullable dtypes
Closes #802

This PR adds a global configuration setting use_nullalbe_dtypes that allows users to easily switch between using the newer nullable pandas dtypes and the corresponding older non-nullable dtypes.
To Do:

[x] Update default setting for use_nullable_types to False
[x] Fix failing tests after changing default
[x] Add new tests including null values setting use_nullable_types to True
[ ] Fix documentation build failures
[ ] Update guide to show how to create custom types with the new attribute naming
[x] Merge in latest changes from main

@thehomebrewnerd This is great! Thanks for putting this together. I looked for three things when integrating this into evalml:

mutual information works for non-nullable bool (this wasn't the case when I defined my own type system)
ww raises an error when user passes data created with nullable types
Any unintended changes in evalml behavior.

Our data checks unit tests passed without modifying anything so I think we're good on 1!
I manually tested 2 and we get an error! Maybe we can make the error message more actionable in the future but overall this is great. Repro:

For point 3. I didn't find unexpected changes in behavior compared to what I had listed in points 4-6 of the original integration notes but two weird things came up though.
If a user creates a column with [True, False, None] and manually types it as category, ww will infer as a boolean. I expected woodwork to infer as category given the limitations of the non-nullable type:
Repro:
import pandas as pd
import woodwork as ww

df = pd.DataFrame({"should_be_categorical": pd.Series([True, None, False, None, True], dtype='category')})
df.ww.init()
assert df.ww.logical_types["should_be_categorical"] != ww.logical_types.Categorical

The other weird thing is that users can create a column with [True, False] and type it as object and woodwork will not infer it as boolean.
Repro:
 import pandas as pd
import woodwork as ww

df = pd.DataFrame({"should_be_boolean": pd.Series([True, True, False, True, True], dtype=object)})
df.ww.init()
assert df.ww.logical_types["should_be_boolean"] != ww.logical_types.Boolean

I don't think these two points are problems for evalml now, but they might be in the future. Or they might be problems for other users so I want to discuss what the expected behavior should be in these cases!
FYI @dsherry

@freddyaboulton Thanks for testing this out and providing your feedback. Here is a little more info that explains the behavior you are seeing with the Boolean inference.
Our boolean inference function is currently very simple, and we use the pandas function pdtypes.is_bool_dtype to determine if a series is boolean or not.  This is our inference function.
def boolean_func(series):
    if pdtypes.is_bool_dtype(series.dtype):
        return True
    return False

In your first case, what I found interesting is that pdtypes.is_bool_dtype returns true for a category dtype, which I did not expect.
import pandas as pd
import pandas.api.types as pdtypes
series = pd.Series([True, None, False, None, True], dtype='category')
assert pdtypes.is_bool_dtype(series.dtype)
assert series.dtype == 'category'

I think we can fix this by simply returning False from our boolean inference function if the dtype is a categorical dtype.
As for the second case where a series with a dtype of object is not inferred as boolean, this is also consistent with our simple inference function. Certainly room for improvement, but as of now the only columns that will get inferred as boolean are those that have a boolean dtype according to pdtypes.is_bool_dtype.

Closing this in favor of PR #830 which fixes the problems with a less complicated implementation.


removed laravel spark

:-1:

Spark still exists. It's coming back soon.

@GrahamCampbell probably won't be public on GitHub?

@GrahamCampbell am I missing sth? It will be paid, not planned as an open source project again.

@GrahamCampbell come back with Freemium?

paid only


Fix UITraitCollection.hasDifferentColorAppearance check for tvOS version less than 13.0

I got the following build error on tvOS after upgrade lottie-react-native to v5:
'hasDifferentColorAppearance(comparedTo:)' is only available in tvOS 13.0 or newer

This simple fix just add '#available' version check for tvOS.

@emilioicai can you review this? Thanks!

Thanks!


Create App.jsx

Title and Issue number

Title :
Issue No. :
Code Stack :
Close #<issue_no>

Checklist:

[] I have mentioned the issue number in my Pull Request.
[] I have commented my code, particularly in hard-to-understand areas
[] I have created a helpful and easy to understand README.md
[] I have updated the Index.html file for my contribution

You have created 3 Pull requests for one challenge and the files are split among 3 PRs
This is invalid. Everything should be in one PR.


[eas-cli] Handle trailing backslash in gitignore

Checklist

[ ] I've added an entry to CHANGELOG.md if necessary. You can comment this pull request with /changelog-entry [breaking-change|new-feature|bug-fix|chore] [message] and CHANGELOG.md will be updated automatically.

Why
Adding trailing backslash in gitignore, is causing a syntax error when packaging a build archive.
How
Remove all trailing backslashes from gitignore before passing them to the ignore library.
Test Plan
add test + tested manually

/changelog-entry bug-fix Handle trailing backslash in .gitignore.


Start using Mobile.getDeviceName as device name in tests

This makes it easier to associate log outputs to physical devices.

Currently the device name is formed as: String name = """ + android.os.Build.MANUFACTURER + "-"
+ android.os.Build.MODEL + """;
And as the Coordinatro server requires devices to have unique names, the methoid is not directly usable, I'm using it as:
Mobile('GetDeviceName').callNative(function (name) {
myName = name + "_PT" + Math.round((Math.random() * (10000)));;
....
})

Check to make sure that you are using the device's make, model # and its device name. We should not need to use a random string but rather the device's actual name. Jukka showed the code from JXCore that isn't returning the device's name. So this bug is blocked on JXCore giving us the device name.

Blocked on #299

Had trouble getting a hold of Oguz.


Update cisco-all-devices.yml

@thezackm Hi, added cntpPeersVarTable OIDs. Please approve. Thanks

Hi @al3kh ; I am no longer in a position to administer this repo. The current maintainers will review going forward. Thanks!

@i3149 can you please approve. thanks


A new formula to install and compile the package IMG

This is an example of a formula, that actually works well on my homebrew, and installs (compiles and places in appropriate place) my package IMG for use with the homebrew-gap version of gap.

I think I goofed: PR #9 was supposed to be a new formula img.rb while #8
was a small change to the directory structure; but it seems I bundled #8 in
#9.
On Tue, Aug 3, 2021, 00:45 Alexander Konovalov @.***>
wrote:

@.**** commented on this pull request.
Sorry, I've missed this @laurentbartholdi
https://github.com/laurentbartholdi. So, with this I should just close
PR #8 https://github.com/gap-system/homebrew-gap/pull/8 and review this
one? Glad that it worked for you, still want to test for me first.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gap-system/homebrew-gap/pull/9#pullrequestreview-720645838,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARAQUCLROS6LZ6YQJTHVM3T24NYRANCNFSM432HLNTQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.


Add public read bool to acls class

Looks like it's not a blip and a Kafka mirror went down

No longer on the mirror list, in fact


No Such File or Directory Error When Trying to Create SequenceExamples

Here be the code as it runs:
(magenta) Nathaniels-MacBook-Pro:~ Nathaniel$ melody_rnn_create_dataset \
> --config=</Users/Nathaniel/Documents/Music/Magenta/RNN/basic_rnn.mag> \
> --input=/Users/Nathaniel/Documents/Music/Magenta/tmp/notesequences.tfrecord \
> --output_dir=/Users/Nathaniel/Documents/Music/Magenta/tmp/melody_rnn/sequence_examples \
> --eval_ratio=0.10
-bash: --input=/Users/Nathaniel/Documents/Music/Magenta/tmp/notesequences.tfrecord: No such file or directory

I'm pretty basic when it comes to coding. I really only know how to fumble my way through it and I am trying to learn this system. But I do know for a fact that there is such a file in this directory. I have triple checked everything and directly copied and pasted both the path and file name, made sure it was right again, and still get this error.
The one time I got passed it I had discovered 2 spaces at the end of the notesequence file. I removed them, ran the script, got the same error for the output_dir line. I then ran the very same commands (literally pasted them again and hit enter) and it went back to the input error I bring up now.
Any help would be great! Thank you!

Hi @Voxmanns. I think the problem is with this part of your command:
--config=</Users/Nathaniel/Documents/Music/Magenta/RNN/basic_rnn.mag>

It shouldn't have the angle brackets and it should reference the name of a config, not a bundle file. It should look something like:
--config=basic_rnn

cghawthorne,
Much appreciated! I don't know if that was the core problem or not but after sleeping on it and fiddling with a few characters I got it to work. Thank you!


Support for negative prompts & attention slicing

New Stable Diffusion diffusers have support for negative prompts & attention slicing. Can you switch to 0.4.1 to enable those options?

Would be cool to also have weight keywords like cat:0.75

Would love to see this in the Replicate API!

Added support for negative prompts in this PR: https://github.com/replicate/cog-stable-diffusion/pull/43

Will #43 be merged and released online soon?
Is there any way I can try it right now?
@vshashkov @bfirsh

Added PR with only negative prompt support. So it shouldn't be blocked by DDIM and can be merged.

Thanks! That's a good choice.

@EyonJoshua91 looks like negative prompt is live now: https://replicate.com/stability-ai/stable-diffusion

@EyonJoshua91 looks like negative prompt is live now: https://replicate.com/stability-ai/stable-diffusion

Thanks for your work!  I will give it a try.


Update commands for matrix bot

This is still a WIP and there are other parts I need to update. Not final.
But this should resolve issues found
https://github.com/coreos/fcos-meeting-action/issues/60
https://github.com/coreos/fcos-meeting-action/issues/48
https://github.com/coreos/fcos-meeting-action/issues/50

let me know when you are ready for review on this!

re: #60
"the fcosmeetinghtml() should get updated to accept the new meeting html from the matrix bot. It kind of works right now but doesn't properly hyperlink things in the discussion forum post."
Looking at the existing structure of the logs, I think we might have lost some functionality moving to matrix. I may be mistaken but in the past we had access to an actual link, now we just get timestamps and user names.
I am not sure, but I might be able to cobble something together.

@dustymabe I think its getting there, let me know if you see anything I might have missed

I'm still getting a lot of extra output.. here is what I am doing:
fcosmeetinghtml https://meetbot.fedoraproject.org/meeting-1_matrix_fedoraproject-org/2024-01-17/fedora-coreos-meeting.2024-01-17-16.29.html

Then copying that into a forum post.

Then copying that into a forum post.

hmm, I wonder if there is something system based which is causing that. Do you have something in your .rc file?
Try naming the function something else and seeing if there is less output?


Resolve _as_noncontiguous_array workaround for ChainerX

Now that __setitem__ workaround has been implemented, this function can rely on it.

jenkins, test this please.

jenkins, test this please.

Jenkins CI test (for commit f02fde2390ab72a0e117aa6fbe4f1171b106e10b, target branch master) succeeded!

LGTM.

Jenkins CI test (for commit f02fde2390ab72a0e117aa6fbe4f1171b106e10b, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)


Escape control characters and fix tab support

I noticed that we weren't escaping control characters before writing
them out to the terminal. That's not great, since it means opening a
file that contains, say, ANSI escape sequences can change the terminal's
title, tab settings, or cause any number of other changes. We'll display
these characters using "caret notation" [1].
Consequently, we have to update our rendering code to escape these
characters and the width translation code to treat them as multi-column.
This also led to a tweak to the get_click_location() code. Before this
change, clicking on a multi-column character might position the cursor
after the character. For example, clicking the 'A' part of '^A' would
position the cursor after the '^A', rather than on the '^A'.
Finally, this changeset fixes the last of our tab problems (for now, at
least). We couldn't position our cursor properly when the terminal tab
settings and the user's preferences.xiconfig disagree on where tabstops
should be (and the user has 'translate_tabs_to_spaces' disabled), since
the terminal was rendering tabs at a different width from what we were
assuming.. We can sidestep this issue entirely by never letting the
terminal see a raw '\t'.  Instead, xi-term will translate tabs to spaces
during rendering. Since the terminal only sees spaces -- which both
xi-term and the terminal agree are one column wide -- there's no
mismatch anymore.
[1] https://en.wikipedia.org/wiki/Caret_notation
This should fully address https://github.com/xi-frontend/xi-term/issues/80.

Thanks @ktomsic this is very nice. The code looks good, I'd just want to try it out before merging.

@little-dude
I don't mean to nag, but have you had a chance to try things out yet?


[Issue] AZD Deploy Throws ArgumentNullException FromSystem.IO.BinaryWriter.Write()

[x] Make sure you've installed the latest version using instructions in the wiki

Output from azd version
azd version 1.10.1 (commit 31409a33266fb4a5fdbb644bc83988e725d6c7c9)
Describe the bug
Running my Aspire project locally works just great, all containers mount successfully and my 2 API applications run and respond correctly. I have run azd auth login, azd env select MY_ENV_NAME, and azd provision successfully.
However running azd deploy throws System.ArgumentNullException from System.IO.BinaryWriter.Write(String value). A full dump of the command logs are added below.
Running azd deploy --debug for the full debug logs doesn't add any useful information.
To Reproduce
I'm not sure how to reproduce this.
Expected behavior
Azd successfully deploys the built app to my Azure Environment
Environment
Information on your environment:
* aspire                     8.2.0/8.0.100         SDK 8.0.400, VS 17.10.34825.169, VS 17.11.35312.102
* Visual Studio - Version 17.11.4
Additional context
MSBUILD : error MSB4166: Child node "7" exited prematurely. Shutting down. Diagnostic information may be found in files in "C:\Users\chericks\AppData\Local\Temp\MSBuildTemp\" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
MSBUILD : error MSB4166: C:\Users\chericks\AppData\Local\Temp\MSBuildTemp\MSBuild_pid-25732_c7b2ef6c9f844a5587b08fcffa7173cb.failure.txt:
MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 25732:
MSBUILD : error MSB4166: ====================<redacted>
MSBUILD : error MSB4166: 9/27/2024 10:58:41 AM
MSBUILD : error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value')
MSBUILD : error MSB4166:    at System.ArgumentNullException.Throw(String paramName)
MSBUILD : error MSB4166:    at System.IO.BinaryWriter.Write(String value)
MSBUILD : error MSB4166:    at Microsoft.Build.Framework.TelemetryEventArgs.WriteToStream(BinaryWriter writer)
MSBUILD : error MSB4166:    at Microsoft.Build.Shared.LogMessagePacketBase.WriteToStream(ITranslator translator)
MSBUILD : error MSB4166:    at Microsoft.Build.Shared.LogMessagePacketBase.Translate(ITranslator translator)
MSBUILD : error MSB4166:    at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
MSBUILD : error MSB4166: ==================<redacted>
MSBUILD : error MSB4166:
MSBUILD : error MSB4166:
Build failed. Properties, Items, and Target results cannot be obtained. See details in stderr above.

@sb-chericks thanks for reporting.
@vhvb1989 can you check if anything on azd side?
cc @davidfowl @mitchdenny

@sb-chericks can you share your AppHost code?  It looks like there's some input missing during deploy

Here is the content of my AppHost/Program.cs, let me know if you need to see something else. I've redacted my business namespaces and names.
using Microsoft.Extensions.Configuration;
using Projects;

const string applicationInsightsIdentifier = "ApplicationInsightsTelemetry";

var builder = DistributedApplication.CreateBuilder(args);
IResourceBuilder<IResourceWithConnectionString> identityDatabaseResource;
IResourceBuilder<IResourceWithConnectionString> applicationInsightsTelemetryResource;

if (builder.ExecutionContext.IsRunMode)
{
    builder.Configuration.AddUserSecrets<Program>();

    identityDatabaseResource = builder.AddSqlServer(
            "identity-context",
            builder.AddParameter("LocalDatabasePassword", true))
        .WithDataVolume("identityContextVolume").AddDatabase(Constants.IdentityContextIdentifier);

    applicationInsightsTelemetryResource = builder.AddConnectionString(
        applicationInsightsIdentifier,
        "APPLICATIONINSIGHTS_CONNECTION_STRING");
}
else
{
    identityDatabaseResource = builder.AddConnectionString(Constants.IdentityContextIdentifier);

    applicationInsightsTelemetryResource = builder.AddAzureApplicationInsights(applicationInsightsIdentifier);
}

var redisResource = builder.AddConnectionString(Constants.RedisIdentifier);
var gemDatabaseResource = builder.AddConnectionString(Constants.GemContextIdentifier);

var customerPrefetchResource = builder.AddConnectionString(Constants.ServiceBus.CustomerPrefetchSendIdentifier);
var marketingCampaignsResource = builder.AddConnectionString(Constants.ServiceBus.MarketingCampaignsSendIdentifier);

builder.AddProject<My_Business_Aspire_ServerServer>("server-server")
    .WithExternalHttpEndpoints()
    .WithReference(gemDatabaseResource)
    .WithReference(identityDatabaseResource)
    .WithReference(redisResource)
    .WithReference(customerPrefetchResource)
    .WithReference(marketingCampaignsResource)
    .WithReference(applicationInsightsTelemetryResource)
    .WithConfigurationParameters<IdentityConfiguration>()
    .WithConfigurationParameters<CrmConfiguration>()
    .WithConfigurationParameters<DialerConfiguration>()
    .WithConfigurationParameters<GemInstallerConfiguration>()
    .WithConfigurationParameters<DataStoreConfiguration>()
    .WithConfigurationParameters<DoubleBookerConfiguration>()
    .WithConfigurationParameters<GoogleConfiguration>()
    .WithConfigurationParameters<ServerServerConfiguration.ServerServerApplicationConfiguration>()
    .WithConfigurationParameters<ServerServerConfiguration.AzureAdConfiguration>()
    .WithConfigurationParameters<ServerServerConfiguration.QueueNameConfiguration>()
    .WithConfigurationParameters<ServerServerConfiguration.SignalRNegotiateConfiguration>();

// Some configs are being added twice.
// We need to figure out a way to just do it once for both projects.
builder.AddProject<My_Business_Aspire_ClientServer>("client-server")
    .WithExternalHttpEndpoints()
    .WithReference(gemDatabaseResource)
    .WithReference(identityDatabaseResource)
    .WithReference(redisResource)
    .WithConfigurationParameters<GemInstallerConfiguration>()
    .WithConfigurationParameters<DoubleBookerConfiguration>()
    .WithConfigurationParameters<DataStoreConfiguration>()
    .WithConfigurationParameters<GoogleConfiguration>()
    .WithConfigurationParameters<IdentityConfiguration>()
    .WithConfigurationParameters<CrmConfiguration>()
    .WithConfigurationParameters<DialerConfiguration>()
    .WithConfigurationParameters<ClientServerConfiguration.ClientServerApplicationConfiguration>()
    .WithConfigurationParameters<ClientServerConfiguration.CentersDialTimeMinMaxConfiguration>()
    .WithConfigurationParameters<ClientServerConfiguration.AccessTokenConfiguration>()
    .WithConfigurationParameters<ClientServerConfiguration.HostConfiguration>();

builder.Build().Run();

I'm starting to suspect something is wrong with my dotnet installation. I'm running the latest 8.0.4 release, but my work partner was able to run azd deploy with my same repository with no problems. The educated guess of my colleague right now is that there is some parallelism issue with the dotnet build process that is failing.
I'm going to completely purge and reinstall dotnet and see if this helps.

@sb-chericks any updates?

Thanks for checking back @rajeshkamal5050.
No, this did not solve the problem. Of my 4 person team, 2 members were able to manually deploy the Aspire project to Azure, while 2 were not.
We are all running the same version of dot net and visual studio, working from the same secrets and app settings, from the same code repository and branch.
It must be some underlying issue with the installation of the software itself, or some artifact in the individual Windows user profile somewhere that is causing the issue.
The two of us that are failing have given up on this endeavor, since we nearly have our azure dev ops pipeline script finished and will be able to rely on that for deployments instead.
If you don't think this is worth pursuing, I can close the issue.

@sb-chericks suspecting due to this Update your .NET SDK to 8.0.401. There was a regression with container publish.
Related issues

https://github.com/dotnet/aspire/issues/6092
https://github.com/dotnet/aspire/issues/5421

I think we can close this. The resolution is updating the SDK.

Agreed, we can close this. I haven't had time to confirm this was the issue for me, but will next week. My co-worker did confirm it fixed the identical issue for him.
Thanks so much for your help guys.


Revert "teuthology/orchestra/connection: add retry exceptions"

This reverts commit 1e30d6f624921ae98c27981d55e06c29d1b0fdd0.

see http://pulpito.ceph.com/kchai-2020-05-14_11:55:41-rados-wip-kefu-testing-2020-05-05-1333-distro-basic-smithi/
i was using the latest master of teuthology, but still seeing failures like
SSH connection to smithi194 was lost: "/bin/sh -c 'adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage rados --no-log-to-stderr --name client.0 -b 65536 -p unique_pool_0 bench 150 write'"

The issue is this safe_while:
https://github.com/ceph/teuthology/blob/5b221634b3746e14b73f0b75f164e1e79bb3e269/teuthology/orchestra/connection.py#L115
Now this code is catching all the network exceptions that were previously sometimes caught by the caller (e.g. https://github.com/ceph/teuthology/blob/5b221634b3746e14b73f0b75f164e1e79bb3e269/teuthology/provision/cloud/openstack.py#L307-L315). When the safe_while gives up and raises MaxWhileTries, the caller doesn't deal with it causing the failure. Normally the caller would wait longer for the machine to come up. So, the answer here is to increase the safe_while tries/sleep sufficiently.
Now, if the preferred way to go about fixing this is to first revert, I don't mind. I don't really have more time to devote to this though. Please go ahead and write up a new fix.

To summarize the patch is changing behavior of the method, in particular when it was expected by callers to produce connection exceptions it generates maxtry exception, we need to create another PR a test it better adding figuring all the callers of it.


manager: Use errors.Wrap

Wrap errors with github.com/pkg/errors instead of using fmt.Errorf.
cc @stevvooe

Current coverage is 53.95% (diff: 100%)

Merging #1559 into master will decrease coverage by 0.22%

@@             master      #1559   diff @@
==========================================
  Files            82         82
  Lines         13605      13605
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           7371       7340    -31
- Misses         5237       5261    +24
- Partials        997       1004     +7

Powered by Codecov. Last update e134ce4...6918055

LGTM


Script not working

It seems as though this script doesn't work for me. I'm on the most recent version of kali-rolling. Here is my input-output.
Input:
python detect_doublepulsar.py --ip <IP_ADDRESS>
Output:
Traceback (most recent call last):
File "detect_doublepulsar.py", line 124, in
check_ip(ip)
File "detect_doublepulsar.py", line 98, in check_ip
final_response = s.recv(1024)
socket.error: [Errno 104] Connection reset by peer

Some OS versions do not support the protocol sequence used by DOUBLEPULSAR or the script e.g. 2012 and so the target system will close the connection before the sequence is complete.
If you find an OS version that is exploitable with ETERNALBLUE and DOUBLEPULSAR works with but the script does not then please report it. For now, I'm the versions I've been able to test that do not work with the script also do not work with DOUBLEPULSAR.
If you try testing with Windows 7 or 2008 R2 at the very least you should find it works.

Ah, okay. I was testing it against windows 10 machines. Thank you for the information.


0.11.0: recursive_mutex lock failed: Invalid argument. (STD_EXCEPTION)

Stock queries are failing with chdb 0.11.0. Here's an example we know works as expected with chdb 0.10.x
query
SELECT
    town,
    district,
    count() AS c,
    round(avg(price)) AS price
FROM url('https://datasets-documentation.s3.eu-west-3.amazonaws.com/house_parquet/house_0.parquet')
GROUP BY
    town,
    district
LIMIT 10

Failing response
Code: 1001. DB::Exception: std::__1::system_error: recursive_mutex lock failed: Invalid argument. (STD_EXCEPTION)

Expected response
query results

I have fixed the chdb-server, and also some optimization. Run chdb.query without forking new process.
The old implementation will cause deadlock. still not sure if it's the reason cause the recursive_mutex lock failed.
previous implementation has a bug that causes stderr to block when the pipe buffer is full. The issue I'm experiencing here is getting stuck on the query without a chance to run read_pipe. I suspect that the recursive lock problem reported by clickhouse may be due to the same reason, but we can't confirm it now. Let's wait for @nmreadelf 's debug message.

The error changed but the failure persists:

Code: 1001. DB::Exception: std::__1::system_error: recursive_mutex lock failed: Invalid argument. (STD_EXCEPTION)

It seems another ClickHouse issue. Trying sort out why they do that.


Use Ansible docker container for core

The .wex core folder should be executable with "wex app/start", it will run utilities for wex core development.

Postponed


MultiStage-chrisda to Master

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

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Enable-ComplianceTagStorage.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-RecordReviewNotificationTemplateConfig.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/New-ComplianceTag.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-ComplianceTag.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-RecordReviewNotificationTemplateConfig.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/exchange.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/mapping/serviceMapping.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Update capacitypolicy.md

#assign-reviewer:YaelSchuster

#assign-reviewer:yifatsor

#assign-reviewer:shsagir

#assign-reviewer:yaelschuster

@shsagir
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

I'm speaking with Tomer to review this PR.

#please-close
I opened a separate PR to introduce these changes. Thanks Tomer!


Add a front-end

The tool is missing an useable front-end, and is now just used via console commands. This is not only tedious for developers, but also for normal users. Adding a front-end will make selection of asteroids and paths easier.

Due to the restriction of having to use Plotly, this will probably directly mean we'll use Dash. Another option would be embedding the plot as an iframe, but this presumably requires rebuilding the graph from scratch, which is expensive in resources.

Closed as of f1fbe5bfbeff90b954d1a99856fad9e4026aef04. Dash was not used, but instead a custom solution with Flask and Plotly.js


[TW#13065] BLE connection parameter set/update

I'm trying to understand how connection parameters (min/max connection interval, latency and timeout) are set when a BLE connection between gatt server and client is (going) on.

I didn't find any call to these parameters. Are the parameters set by default? Are the parameters suggested by the client ignored?
I think that gatt server event handler is missing the case "CONNECTION PARAMETERS UPDATE REQUEST". Am i right? It will be implemented?

Thank you,
frax

@frax84 , this bug has been fixed in the latest idf sdk, you can update the sdk and try . In the latest gatts demo, gatt server will set the connection parameters when a BLE connection between gatt server and client is  on. ESP_GAP_BLE_UPDATE_CONN_PARAMS_EVT in gap_event_handler callback function will get the result.  gatts_demo.c has a detailed code.

Awesome! Thank you as usual for the support!

@frax84   If solved the problem, please let me know. Thanks.

@Weijian-Espressif
Ok, i had the chance to try the updated code you put on for connection parameters. Unfortunately it's not working as intended.
This is what happens:

When i press "Connect" on my BLE client (PC side) it sends a connection packet with some connection parameters in it, as BLE protocol says to happen
On gatt server side (esp side) the GAP detect a connection event and triggers the callback on CONNECT_EVT that runs smoothly
Considering how the code is now the connection parameters included in the exchange between gatt and client during connection establishment are completely ignored. In fact the UPDATE_CONN_PARAMS_EVT is triggered only by the update function included in the CONNECT_EVT code. If i comment that line nothing happens.

This is my console output when i don't comment che update params function:
I (17332) GATTS_DEMO: ESP_GATTS_CONNECT_EVT, conn_id 0, remote 88:6b:0f:19:ed:da:, is_conn 1
I (17332) GATTS_DEMO: SERVICE_START_EVT, conn_id 0, remote 88:6b:0f:19:ed:da:, is_conn 1
I (17572) GATTS_DEMO: update connetion params status = 13, min_int = 30, max_int = 50,                  conn_int = 0,latency = 0, timeout = 400
I (17572) GATTS_DEMO: update connetion params status = 0, min_int = 30, max_int = 50,                  conn_int = 0,latency = 0, timeout = 400
As you can notice the connection parameters are the ones you define in CONNECT_EVT code. If i comment the update_params function my console output is just this one:
I (17332) GATTS_DEMO: ESP_GATTS_CONNECT_EVT, conn_id 0, remote 88:6b:0f:19:ed:da:, is_conn 1
I (17332) GATTS_DEMO: SERVICE_START_EVT, conn_id 0, remote 88:6b:0f:19:ed:da:, is_conn 1
I would like to add a couple of things:

It would be nice having a "get method" for connection parameters, something like: "esp_ble_gap_get_conn_params"
There is one more try i need to investigate but it will need me a bit more of time: trying to send a pure "update connection parameters" BLE package to dynamically chance the parameters with connection already on and not during its ESTABLISHMENT.

Waiting for your feedback,
frax84

@frax84
esp_ble_gap_update_conn_params()  register the ESP_GAP_BLE_UPDATE_CONN_PARAMS_EVT callback function, so your console output is right. we don't support similar"esp_ble_gap_get_conn_params" function so far.

@Weijian-Espressif
i'm not sure to have well understood. I'll try formulating direct questions:
I send the connection parameters that my connection should have during the connection initialization. From what i can see the ESP seems to ignore these parameters. Maybe i'm a bit confused on the flow of events but imho an update conn param event should trigger just before the connection event because the negotiation of the parameters happens just before the connection. Is not what happens? Are the initial parameters negotiated/managed in another way than UPDATE_PARAM_EVENT?
 Maybe it will make things more clear.
Thanks

hi @frax84 ,  in btm_ble_conn_complete() function of btm_ble.c,  you can add some log .
void btm_ble_conn_complete(UINT8 *p, UINT16 evt_len, BOOLEAN enhanced)
{
#if (BLE_PRIVACY_SPT == TRUE )
UINT8       *p_data = p, peer_addr_type;
#endif  ///BLE_PRIVACY_SPT == TRUE
UINT8       role, status, bda_type;
UINT16      handle;
BD_ADDR     bda;
#if (BLE_PRIVACY_SPT == TRUE)
BD_ADDR     local_rpa, peer_rpa;
#endif  ///BLE_PRIVACY_SPT == TRUE
UINT16      conn_interval, conn_latency, conn_timeout;
BOOLEAN     match = FALSE;
UNUSED(evt_len);
STREAM_TO_UINT8   (status, p);
STREAM_TO_UINT16   (handle, p);
STREAM_TO_UINT8    (role, p);
STREAM_TO_UINT8    (bda_type, p);
STREAM_TO_BDADDR   (bda, p);
BTM_TRACE_DEBUG("status = %d, handle = %d, role = %d, bda_type = %d",status,handle,role,bda_type);
if (status == 0) {

#if (BLE_PRIVACY_SPT == TRUE )
peer_addr_type = bda_type;
match = btm_identity_addr_to_random_pseudo (bda, &bda_type, TRUE);
    if (enhanced) {
        STREAM_TO_BDADDR   (local_rpa, p);
        STREAM_TO_BDADDR   (peer_rpa, p);
    }

    /* possiblly receive connection complete with resolvable random on
       slave role while the device has been paired */
    if (!match && role == HCI_ROLE_SLAVE && BTM_BLE_IS_RESOLVE_BDA(bda)) {
        btm_ble_resolve_random_addr(bda, btm_ble_resolve_random_addr_on_conn_cmpl, p_data);
    } else

#endif
{
STREAM_TO_UINT16   (conn_interval, p);
STREAM_TO_UINT16   (conn_latency, p);
STREAM_TO_UINT16   (conn_timeout, p);
// ===========add some log here ================//
      printf("conn_interval = %d, conn_latency = %d, conn_timeout = %d\n", conn_interval, conn_latency, conn_timeout);

        handle = HCID_GET_HANDLE (handle);

        btm_ble_connected(bda, handle, HCI_ENCRYPT_MODE_DISABLED, role, bda_type, match);

        l2cble_conn_comp (handle, role, bda, bda_type, conn_interval,
                          conn_latency, conn_timeout);

#if (BLE_PRIVACY_SPT == TRUE)
if (enhanced) {
btm_ble_refresh_local_resolvable_private_addr(bda, local_rpa);
            if (peer_addr_type & BLE_ADDR_TYPE_ID_BIT) {
                btm_ble_refresh_peer_resolvable_private_addr(bda, peer_rpa, BLE_ADDR_RANDOM);
            }
        }

#endif
}
} else {
role = HCI_ROLE_UNKNOWN;
if (status != HCI_ERR_DIRECTED_ADVERTISING_TIMEOUT) {
btm_ble_set_conn_st(BLE_CONN_IDLE);
#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
btm_ble_disable_resolving_list(BTM_BLE_RL_INIT, TRUE);
#endif
} else {
#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
btm_cb.ble_ctr_cb.inq_var.adv_mode  = BTM_BLE_ADV_DISABLE;
btm_ble_disable_resolving_list(BTM_BLE_RL_ADV, TRUE);
#endif
}
}
btm_ble_update_mode_operation(role, bda, status);

}

@frax84  do you get a shot to the the SmartRF Packet Sniffer? I have used Lightblue(ios app) connect to esp32 server,  esp32 update connect parameter correctly that lightblue send.

@Weijian-Espressif I downloaded the software but i noticed i need a specific hardware for sniffing. Looking for that on some reseller.
By the way, just to understand, do you connect with standard parameters and then send an update conn params request or do you connect with a specific conn params?
Just answer to this and i suppose we can close the issue.
Thanks for the support

I did two tests:

iPhone app connect to esp32 , the connect parameter is set by phone .
after then, esp32 update connect parameters with  a specific conn params.

@Weijian-Espressif
Ok, i suppose this should be enough to close the issue.
Thank you


Handling of large bodies in request

Hi!
So if I have a very large JSON body in a request. I could just do concat2() for the body, but I'd like to take advantage of the streaming of the body and break the json up since I know it'll be delimited by newlines. There doesn't seem to be an obvious way to do this, but also if i were to operate on individual chunks I think I run the risk of incomplete JSON crossing the chunk threshold. So what is the proper way to accomplish this? My naive concat2 method works right now, but if I were say posting a body of several gbs that might become a memory problem, right?

Hey there! You're right to be hesitant about simply concatenating the full body in memory. There isn't currently anything in hyper to do this sort of thing, but the building blocks are there.
You'd essentially want to poll for a chunk, and with each chunk, determine if you could parse a JSON object from it. If not, you'll want to just buffer that, and poll for a new one. Also may be worth looking at #1335 as well, that has some example code to do this.

Thanks, this is exactly what I was looking for!


Failed to read module directory

terrascan version: version: v1.1.0
Operating System: Mac Catilina & Amazon Linux 2

Description
On Mac, installed via brew.
Linux, terrascan added to path
What I Did
> terrascan scan -t aws -o yaml
2020-09-17T01:59:19.003+0100	error	v12/load-dir.go:85	failed to build unified config. errors:
<nil>: Failed to read module directory; Module directory /Users/bwhyte/git_repos/infa/terraform/aws/test/eks/terraform-aws-modules/eks/aws does not exist or cannot be read., and 1 other diagnostic(s)

Actual repo path with tf files is /Users/bwhyte/git_repos/infa/terraform/aws/test/eks/ so I'm not sure why it's tagging on terraform-aws-modules/eks/aws
If i create the x2 "missing" folder I get a working scan.
> mkdir -p /Users/bwhyte/git_repos/infa/terraform/aws/test/eks/terraform-aws-modules/eks/aws
> mkdir -p /Users/bwhyte/git_repos/infa/terraform/aws/test/eks/terraform-aws-modules/vpc/aws
> ~/g/i/t/a/t/eks (master)> terrascan scan -t aws -o yaml
results:
  violations:
  - rule_name: s3EnforceUserACL
    description: S3 bucket Access is allowed to all AWS Account Users.
    rule_id: AWS.S3Bucket.DS.High.1043
    severity: HIGH
    category: S3
    resource_name: aws_flow_log
    resource_type: aws_s3_bucket
    file: vpc.tf
    line: 45
  count:
    low: 0
    medium: 0
    high: 1
    total: 1

Hi @brenwhyte, thanks for the bug report. Could you provide a bit more info about your setup?
When you ran the command above, what was your CWD?
You mentioned your repo path is /Users/bwhyte/git_repos/infa/terraform/aws/test/eks/. Running that command with an empty dir does a recursive search starting from CWD. Do you happen to have any stray .tf files outside of that dir?
Thanks,
-Willie

Hi @brenwhyte ,
The way terrascan works is, it reads all the terraform configuration files in the provided directory (in this case it's $PWD), and if there are any module calls (only local path source is currently supported) in any of the terraform files, those module paths are traversed, and all the tf files in that module are read as well. If these traversed modules have any more module calls those are traversed as well and so on...
It seems that there is a module call with source field pointing to  /Users/bwhyte/git_repos/infa/terraform/aws/test/eks/terraform-aws-modules/eks/aws in your terraform file somewhere in some module.
If this is not the case, can you please share more information like your PWD, tf files with directory structure etc.
Thanks

I have the same issue. I think that the module @brenwhyte is trying to target is a one provided by a public Terraform registry, referencing it as for the documentation (so, not a local one).
For instance I'm using the terraform-aws-modules/eks/aws module and it lookes for a local path with same name.
$ docker run --rm -it -v $PWD:/app alpine:latest sh -c 'apk add curl tar && curl --location https://github.com/accurics/terrascan/releases/download/v1.1.0/terrascan_1.1.0_Linux_x86_64.tar.gz --output terrascan.tar.gz && tar -xvf terrascan.tar.gz && install terrascan /usr/local/bin && terrascan init && terrascan scan -t aws -d /app'
[...]
2020-11-13T16:54:51.627Z        error   v12/load-dir.go:85      failed to build unified config. errors:
<nil>: Failed to read module directory; Module directory /app/terraform-aws-modules/eks/aws does not exist or cannot be read., and 4 other diagnostic(s)

The fact that only local paths are supported is the answer to this issue I think.
Maybe it could be checked if the module source is formatted as for local path (e.g. starting with "./" as for the Terrraform documentation) and ignoring the others module sources?
Because it seems that this is an issue when we use "remote" modules, blocking from using terrascan as it exits with errors.
Thank you

I'm a little confused, #345 has been merged but but I'm seeing much the same error as above so, remote terraform modules are not actually supported? I'm running 1.2.0 and am referencing remote modules in the form of source  = "terraform-aws-modules/vpc/aws".


Node getting not optimal route. Able to fixate connection to another node?

One of my nodes is almost always getting a red Edges line (9.6 kbit/s). Occasionally I see it gets a yellow (40 kbit/s), only ones I have seen it getting a green (100 kbit/s), - connected to different nodes.
Is it possible to peg a node to another (best) node?
If yes, how, if not, is it a possible functionality?
Thanks for this realy nice integration!
Cheers.

yes you can do this from mesh graph, just select a node and setup a priority route by selecting the node to use as repeater (if any)


Some questions about weights and padding

First, in face_binary_cls.cpp, such as float conv0_weight[16*3*3*3],it means out_channels = 16, in_channels = 3, and size = 3.From teacher words, the weight data is RGB form.I want to know the data in the following 1-d vector, what is the form of data stored? Do it store  data one out_channels after another,?And for every out_channel, it store data R,G,B alternately or store all R data first and following G data and B data in the end?
for example, one out_channel the data form is [r1,g1,b1,r2,g2,b2......,rn , gn ,bn] or [r1,r2.....,rn ,g1,g2.....,gn ,b1,b2.....,bn]?
Second, in modle.py, for this part
self.backbone = nn.Sequential(
            ConvBNReLU(3, 16, 3, 2, 1),    # downsampled by 2, 128 -> 64
            nn.MaxPool2d(2, 2),            # downsampled by 2, 64 -> 32
            ConvBNReLU(16, 32, 3, 1),      # keep
            nn.MaxPool2d(2, 2),            # downsampled by 2, 32 -> 16
            ConvBNReLU(32, 32, 3, 2, 1)    # downsampled by 2, 16 -> 8
        )

for the forth line , it stride = 1 and padding is default value but in this situation, the out picture size will be two less than in size(30) with 3x3 conv_size .If we want to make the picture size is still 32, perhaps need 1 padding? And  from 128 to 64 with 1 padding and 2 stride, for calculate formula, out size is (W-F+2P)/S+1 with W picture size = W, conv_size = F ,padding  = P, stride = S, it will be 64.5 with in picture we assume have a circle of 0s but we only use left and top ,the right and bottom will not be used as long as it becomes 64?

The input is RGB format, and there is no RGB format for the weight.
The weight data in face_binary_cls.cpp is stored channel-wisely, which is like [r0, r1, ..., rn, g0, g1, ..., gn, b0, b1, ..., bn].
ConvBNReLU(16, 32, 3, 1),      # keep As you said, this layer does downsample to be 30, but this does not affect other parts. I will update the comments though. Please help me inform other students in the class since I am not in your group.
Not fully understand your last sentence. What does it mean by the 'circle of 0s', and the 'left and top, the right and bottom'? If  you are confused why it's 64 but not 64.5, this page offers nice equations to compute the output shape given the input shape, kernel size, stride, and padding. The one you offered ((W-F+2P)/S+1) does not have the final round-to-bottom operation.

Comments updated:
https://github.com/ShiqiYu/SimpleCNNbyCPP/blob/920ed7b3c194665ab1be12c7f4bfa0a30dd35f5e/model.py#L51-L57

Hi @fengyuentau , I have a similar question about "how the weight data in face_binary_cls.cpp is stored" and "how the initial image data should be stored".

I didn't fully understand what "channel-wisely" means. Is the weight data stored as
[i0o0k0, ... , i0o0k8, i0o1k0, ... , i0o1k8, .... ]("channel-wisely" according to input channel) or [i0o0k0, ... , i0o0k8, i1o0k0, ... , i1o0k8, .... ]("channel-wisely" according to output channel)
Should the 1-d initial input data be the form of [r0c0R, r0c0G, r0c0B, r0c1R, r0c1G, r0c1B, ....] or the form  of [r0c0R, r0c1R, r0c2R, ... , r0c0G, r0c1G, r0c2G, ...., r0c0B, r0c1B, r0c2B, ...] (channel-wisely)? (r0 means row0 and c0 means column0)
Similar to (2), Should the 1-d flatten output data (input to the fc layer) be the form of [r0c0channel0, r0c0channel1, r0c0channel2, r0c0channel3,  ....] or the form of [r0c0channel0, r0c1channel0, r0c2channel0, r0c3channel0,  ....]?
Thanks.

@apostlewang

I have already given a detailed example in readme, please check carefully. According to your words, the weight data is stored as [i0o0k0, ... , i0o0k8, i0o1k0, ... , i0o1k8, .... ]  ("channel-wisely" according to input channel).
Please check OpenCV's official documentation first imread. It's stored as BGR format, and goes like img[3*w*h]. '3' means the 3-channel (BGR).
It depends on your code. We don't have any restrictions on your internal output data as far as I know, as long as your program works.

@fengyuentau In the demo:

Example of locating weights and bias for a 3x3 kernel at out_channels=o, in_channels=i:

for (int o = 0; o < out_channels; ++o) {
    for (int i = 0; i < in_channels; ++i) {
        // weights
        // first row of the kernel
        float kernel_oi_00 = conv0_weight[o*(in_channels*3*3) + i*(3*3) + 0];
        float kernel_oi_01 = conv0_weight[o*(in_channels*3*3) + i*(3*3) + 1];
        float kernel_oi_02 = conv0_weight[o*(in_channels*3*3) + i*(3*3) + 2];
        // and more rows ...

        // bias
        float bias_oi = conv0_bias[o];
    }
}

Should first row of the kernel be
 float kernel_oi_00 = conv0_weight[i*(out_channels*3*3) + o*(3*3) + 0];
 float kernel_oi_01 = conv0_weight[i*(out_channels*3*3) + o*(3*3) + 1];
 float kernel_oi_02 = conv0_weight[i*(out_channels*3*3) + o*(3*3) + 2];

if the weight data is stored as [i0o0k0, ... , i0o0k8, i0o1k0, ... , i0o1k8, .... ] ("channel-wisely" according to input channel)?
And for fc weights,
for (int o = 0; o < out_features; ++o) {
    for (int i = 0; i < in_features; ++i) {
        float w_oi = fc0_weight[o*out_features + i];
        // ...
    }
    float bias = fc0_bias[o];
}

if I didn't misunderstood, should the float w_oi be float w_oi = fc0_weight[o*in_features + i];?

@apostlewang Good morning. I misunderstood your words, the dimension of output_channels should go first, then input_channels. I have corrected my previous comments.


[2.0]  does not support v-for and dynamic name

<template>
<div>
    <router-view v-for="name in views" :name="name"></router-view>
</div>
</template>

<script>
export default {
    data () {
        return {
            views: ['default', 'page1', 'page2', 'page3']
        }
    }
}
</script>

New example is here:
https://jsfiddle.net/6n7jtnr3/3/

What exactly do you expect to happen in this fiddle that is not happening?

there are no errors
clicking on the links renders the right components.
as you only defined one default comonent per route, there's no use for multiple router-view element anyway.

the name property is for naming the route, not for selecting the router-view.
relevant docs: http://router.vuejs.org/en/essentials/named-views.html

@LinusBorg
Thanks for the answer, the new example is here:  https://jsfiddle.net/6n7jtnr3/2/
Here are my needs:

I want to keep multiple views on a single page.
The views can be switched and closed.
Clicking a link will create a new view if it does not exist.

Clicking a link will create a new view if it does not exist.

This is not possible.


Error on file "/bricks/setlists/setlists.py", line 47

Hello Sergey,
Thank you for this repository :-)
Unfortunately I get the following error on docker compose execution:

Hi,
Thanks for a report. But I have no idea why "id" field is missing. Any details would be helpful. Can you post resp json value?

The JSON:
{
   "count":6,
   "next":"None",
   "previous":"None",
   "results":[
      {
         "list_id":800685,
         "quantity":1,
         "include_spares":true,
         "set":{
            "set_num":"2651-1",
            "name":"Circus Artists",
            "year":1989,
            "theme_id":632,
            "num_parts":9,
            "set_img_url":"https: //cdn.rebrickable.com/media/sets/2651-1/756.jpg",
            "set_url":"https://rebrickable.com/sets/2651-1/circus-artists/",
            "last_modified_dt":"2019-07-15T04:03:34.215841Z"
         }
      },
      {
         "list_id":800685,
         "quantity":1,
         "include_spares":true,
         "set":{
            "set_num":"2612-1",
            "name":"Motorbike & Rider (PreSchool Scooter)",
            "year":1988,
            "theme_id":632,
            "num_parts":2,
            "set_img_url":"https://cdn.rebrickable.com/media/sets/2612-1/10638.jpg",
            "set_url":"https://rebrickable.com/sets/2612-1/motorbike-rider-preschool-scooter/",
            "last_modified_dt":"2019-11-23T16:19:47.747310Z"
         }
      },
      {
         "list_id":800685,
         "quantity":1,
         "include_spares":true,
         "set":{
            "set_num":"2629-1",
            "name":"Tractor and Farm Machinery",
            "year":1985,
            "theme_id":632,
            "num_parts":7,
            "set_img_url":"https://cdn.rebrickable.com/media/sets/2629-1/14770.jpg",
            "set_url":"https://rebrickable.com/sets/2629-1/tractor-and-farm-machinery/",
            "last_modified_dt":"2019-07-18T21:56:44.314976Z"
         }
      },
      {
         "list_id":800685,
         "quantity":1,
         "include_spares":true,
         "set":{
            "set_num":"534-1",
            "name":"Bath-Toy Boat",
            "year":1978,
            "theme_id":632,
            "num_parts":3,
            "set_img_url":"https://cdn.rebrickable.com/media/sets/534-1/14744.jpg",
            "set_url":"https://rebrickable.com/sets/534-1/bath-toy-boat/",
            "last_modified_dt":"2018-07-30T04:00:02.398438Z"
         }
      },
      {
         "list_id":800685,
         "quantity":1,
         "include_spares":true,
         "set":{
            "set_num":"2668-1",
            "name":"Children's Zoo (Zoo Animal Antics)",
            "year":1990,
            "theme_id":632,
            "num_parts":41,
            "set_img_url":"https://cdn.rebrickable.com/media/sets/2668-1/15352.jpg",
            "set_url":"https://rebrickable.com/sets/2668-1/childrens-zoo-zoo-animal-antics/",
            "last_modified_dt":"2019-07-15T20:42:39.517787Z"
         }
      },
      {
         "list_id":800685,
         "quantity":1,
         "include_spares":true,
         "set":{
            "set_num":"2598-1",
            "name":"Large Red Building Plate",
            "year":2006,
            "theme_id":505,
            "num_parts":1,
            "set_img_url":"https://cdn.rebrickable.com/media/sets/2598-1/2520.jpg",
            "set_url":"https://rebrickable.com/sets/2598-1/large-red-building-plate/",
            "last_modified_dt":"2022-09-01T21:05:34.235475Z"
         }
      }
   ]
}

I tried a fix by changing id to list_id in line 47, but still have the error log:
bricks  | make: Leaving directory '/bricks/rebrickable'
bricks  | Traceback (most recent call last):
bricks  |   File "/bricks/setlists/setlists.py", line 47, in <module>
bricks  |     list_id = resp["results"][i]["list_id"]
bricks  |               ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
bricks  | KeyError: 'list_id'

It is strange ... I print resp["results"][i] above the error line and there is an id key available:
bricks  | {'id': 800685, 'is_buildable': True, 'name': 'Borstel DUPLO', 'num_sets': 6}

I have the only one "Set List". And here is my json (resp above the error line):
{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 304743,
            "is_buildable": true,
            "name": "Set List",
            "num_sets": 180
        }
    ]
}

The id field is present.
In your case it looks like that you have more than one list returned from rebrickable. Could you post you resp with all that lists? Let's check that all of them have an id field

Here you are, as far as I can see, ids are provided for all items:
{
   "count":4,
   "next":"None",
   "previous":"None",
   "results":[
      {
         "id":800685,
         "is_buildable":true,
         "name":"DUPLO ONE",
         "num_sets":6
      },
      {
         "id":800691,
         "is_buildable":true,
         "name":"LEGO ONE",
         "num_sets":43
      },
      {
         "id":799836,
         "is_buildable":true,
         "name":"DUPLO TWO",
         "num_sets":14
      },
      {
         "id":633125,
         "is_buildable":true,
         "name":"LEGO TWO",
         "num_sets":50
      }
   ]
}

The error occurs for the first item already as you can see from the first posted JSON.

For this snippet:
    resp = {
        "count": 4,
        "next": "None",
        "previous": "None",
        "results": [
            {
                "id": 800685,
                "is_buildable": True,
                "name": "DUPLO ONE",
                "num_sets": 6
            },
            {
                "id": 800691,
                "is_buildable": True,
                "name": "LEGO ONE",
                "num_sets": 43
            },
            {
                "id": 799836,
                "is_buildable": True,
                "name": "DUPLO TWO",
                "num_sets": 14
            },
            {
                "id": 633125,
                "is_buildable": True,
                "name": "LEGO TWO",
                "num_sets": 50
            }
        ]
    }

    for i in range(resp["count"]):
        list_id = resp["results"][i]["id"]
        print(f"list_id={list_id}")

I have the following output:
list_id=800685
list_id=800691
list_id=799836
list_id=633125

Your first posted JSON looks like the value of resp  at line 55. Do you still crash at line 47?

Maybe we need a DEBUG mode with verbose output

I found the issue - the request was overwritten within the loop 😜

PR submitted!

I found the issue - the request was overwritten within the loop 😜

Great! Exactly!


Local tests failing with psycopg2.OperationalError: "dpr_db_test" does not exist

Following README instructions, tests are failing:
$ FLASK_CONFIGURATION=test pytest
...
OperationalError: (psycopg2.OperationalError) FATAL:  database "dpr_db_test" does not exist

README should have full info on how to launch tests. This includes tests database and user setup.
Related: #103

@Fak3 / @rufuspollock could not reproduce the error. In my work station it is working.

INVALID. @Fak3 please reopen if you think this is actually still a problem.


feat(meta): wrap etcd client to be able to refresh conn when auth token expired

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
If auth enabled in etcd cluster and meta uses user/password to communicate with etcd, meta will crash when the etcd cluster encountered master/standby switchover or reboot.
2022-12-09T06:24:26.224266Z  INFO risingwave_meta::hummock::compactor_manager: Added compactor session 1
thread 'risingwave-main' panicked at 'called `Result::unwrap()` on an `Err` value: Internal(grpc request error: status: Unauthenticated, message: "etcdserver: invalid auth token", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }

But unfortunately Rust etcd library doesn't provide any token refresh APIs, and based on the library's implementation we can impossible refresh the token in all clients using auth interface. See https://github.com/etcdv3/etcd-client/issues/45 for more details.
Currently the only way to achieve it is to create a new connection instead, which is what we did in this PR. Previously I think it might brings some overhead due to the clone of all requests, but since we have already introduced etcd_retry_client, we can leave it to the retry part.
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Documentation
If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.
Types of user-facing changes
Please keep the types that apply to your changes, and remove those that do not apply.

Installation and deployment
Connector (sources & sinks)
SQL commands, functions, and operators
RisingWave cluster configuration changes
Other (please specify in the release note below)

Release note
Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.
Refer to a related PR or issue link (optional)

Generally LGTM.
Can we give some feedbacks to upstream?

@arkbriar has opened an issue here, I'm afraid the modification in this pr is only applicable to our project and It's quite difficult to achieve it in its library side. 🥵 Let's keep this workaround and see.


Zustand UI state for TF selection and related bug fixes

Refs issues #5, #6, #12

Adds a UI State Store (by Zustand) to manage the TF selection state.
Fixes removing nodes/edges after a TF is unselected.  Also changes a TF node's regulatoryFunction to 'regulated' if it's been unselected (in the data table) but can't be removed because it's also a target of another TF. This also allows the node that became a 'regulated' one in the updated network to be visualized properly.
Updates the network style by clearing the cache of all memoize functions after nodes are added/removed.

With this merged I'll take a look at saving the table selection in mongo.


Always generate index.js if not present

Hello @moea,
I wanted to ask and propose here this change before working on it.
In order to really decouple the compilation from everything else around serverless we could make so that whenever there is no index.js file in the root of the project (so in case of a project generated by a lein template this won't happen), we trigger the generation. Probably after the cljsLambdaBuild in index.js.
This would make it easier to add a new compiler (like shadow-cljs, or vanilla script) without duplicating the index generation part.
My plan would be to use lumo from the serverless plugin like this (wishful thinking here):
`lumo -c ${path.resolve(__dirname, 'serverless-cljs-plugin')} ` +
           `-m serverless-lumo.index ` + // <-- main called here
           `--functions '${fns}'`

What do you think? Is it something worth working on?

@arichiardi Hi!  This is worth working on if your work with shadow-cljs indicates that it's 100% compatible with the index.js generation used by the lumo stuff - but I don't think it's a great idea to do it pre-emptively.

Ok good I was thinking the same, I will include it in the same PR then. I think I want to take a stab to the shadow compiler.

Do you use serverless-offline? It seems it needs it at the project root.

I've never heard of it.  If it only works with Javascript, it's probably not super useful.

Well, a completely local mock of AWS (Gateway included!) is always useful :smile:

I can confirm that it works really well when index.js is in the root of the project and I was wondering whether we should move it from where it currently is generated (that is, .serverless/index.js) to project-root/index.js.

Actually better would be to have it in the dir that is the parent of :output-dir.

I don't think so - I would be fine supporting a command in the lumo plugin & cljs-lambda which just generates the index file and writes it to a specified location, but it's easy enough to copy it from .serverless for now.

Uhm too bad :D Why not? At the end of the day the leiningen plugin does the same and index.js is always present and managed by serverless-cljs-plugin.

The leiningen plugin doesn't write the zip file to the project directory, it writes it to the build directory.
Counting on an implicitly generated index.js is janky, because it will break if the user runs lein clean (the modules required by index.js will not exist), or if there's a failed build - and, because the only way to trigger its generation is by building a zip file from the entire project (instead of running a specific command, like I suggested), the user will have to pay an unreasonable penalty any time they add or remove a function from serverless.yml and want to have that change reflected in index.js.
Having a dedicated command to write index.js is superior in every way, but still arguably overkill for a single specific use case.

I see your point, I thought the index.js file was always there when calling $ lein new serverless-cljs. If not, then this changes things.
I like the command and indeed it was the original purpose of this issue.

Alternatively, if we defaulted to build everything in .serverless, we could already take advantage of the fact that the structure would be already right:
.serverless/
├── cloudformation-template-create-stack.json
├── cloudformation-template-update-stack.json
├── index.js
├── out/
└── serverless-state.json

And then this in package.json would work:
{
  "name": "example",
  "version": "0.1.0",
  "main": ".serverless/index.js",
  ...

I still think a separate command to generate it makes sense, especially if that allows us to avoid requiring a package.json - does it?

Yes probably. For simplicity I'd shell to lumo in order to do that, with a warning if the file is already there.
Any preference on the name? sls generate-index feels sensible.

That or adding an --index arg to sls package.

I like yours better, maybe both is a good option too, depending on what's easier

Definitely more tedious to add an actual command but on second thought I feel --index can be misleading. At the end of the day index.js is always packaged/deployed. It can convey the wrong meaning.
The generation is a one-off, only-if-you-need-it thing. Maybe a flag in serverless.yml is more appropriate if a command is too much work:
custom:
  cljsGenerateIndex: true

What do you think?

Just call it --index-only or whatever, any kind of switch is much, much better than editing a config file - it's not once-off, it's once-every-time-you-add-or-remove-a-function

Good point, you are right I hadn't considered that

We cannot generate the index only in case of package because serverless expects the artifact. So --index will create the index in the project root when there. A switch in the serverless.yml still makes sense because one (me) would want to avoid thinking if the index needs regeneration or not, the cljsIndex: true would makes sure I always have the index up-to-date.

Added with https://github.com/nervous-systems/serverless-cljs-plugin/commit/cff74947b49a40cd256478ea1894d00b7a47d143