text:
Any good sample of using react-virtualized Infinite Scroll with Redux ?

Just that. I found it quite hard to implement it with basic documentation. Thanks.
_loadMoreRows in just create basic data to show in there. Not quite real sample.
https://github.com/bvaughn/react-virtualized/blob/master/source/InfiniteLoader/InfiniteLoader.example.js

Hello! 😄
I suggest using Stack Overflow with a #react-virtualized tag or asking in the react-virtualized Slack channel to discuss general things like this. Issues are reserved for bug reports and feature-requests.
This helps keep the project somewhat more maintainable for me and hopefully gets you an answer faster (since more people check those places than monitor GitHub issues). 😄

authors: alduro bvaughn

repo: bvaughn/react-virtualized


text:
chore: CI speedup

Thanks for contributing to react-virtualized!
closes #1369
Before submitting a pull request, please complete the following checklist:

[ ] The existing test suites (npm test) all pass
[ ] For any new features or bug fixes, both positive and negative test cases have been added
[ ] For any new features, documentation has been added
[ ] For any documentation changes, the text has been proofread and is clear to both experienced users and beginners.
[ ] Format your code with prettier (yarn run prettier).
[ ] Run the Flow typechecks (yarn run typecheck).

Here is a short checklist of additional things to keep in mind before submitting:

Please make sure your pull request description makes it very clear what you're trying to accomplish. If it's a bug fix, please also provide a failing test case (if possible). In either case, please add additional unit test coverage for your changes. :)
Be sure you have notifications setup so that you'll see my code review responses. (I may ask you to make some adjustments before merging.)

Codecov Report

Merging #1462 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1462   +/-   ##
======================================
  Coverage    94.7%   94.7%
======================================
  Files          47      47
  Lines        1795    1795
======================================
  Hits         1700    1700
  Misses         95      95

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 7304ec6...5bca1a6. Read the comment docs.

source: gharchive/pull-request

authors: codecov-io wuweiweiwu

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 Trifecta Esplanade Clubhouse is down

In 8043795, Trifecta Esplanade Clubhouse (https://cloud.tymly.in/status/1167) was down:

HTTP code: 521
Response time: 20246 ms

Resolved: Trifecta Esplanade Clubhouse is back up in bf0e657.

source: gharchive/issue

repo: bvenkysubbu/tymlymonitor


text:
🛑 Nitesh Forest Hills and Flush Meadows is down

In 7a67a2c, Nitesh Forest Hills and Flush Meadows (https://cloud.tymly.in/status/1023) was down:

HTTP code: 521
Response time: 20242 ms

Resolved: Nitesh Forest Hills and Flush Meadows is back up in 016434d.


text:
🛑 Mahaveer Varna B3 is down

In 7b1503d, Mahaveer Varna B3 (https://cloud.tymly.in/status/1086) was down:

HTTP code: 521
Response time: 226 ms

Resolved: Mahaveer Varna B3 is back up in 32fee9c.


text:
🛑 White Breeze 2 is down

In 196a515, White Breeze 2 (https://cloud.tymly.in/status/1097) was down:

HTTP code: 521
Response time: 231 ms

Resolved: White Breeze 2 is back up in 176e8d2.


text:
🛑 Sumadhura Silver Ripples Club House is down

In 763bbca, Sumadhura Silver Ripples Club House (https://cloud.tymly.in/status/1090) was down:

HTTP code: 521
Response time: 20236 ms

Resolved: Sumadhura Silver Ripples Club House is back up in 6f2db7c.


text:
🛑 Trifecta Esplanade D Block is down

In cba6974, Trifecta Esplanade D Block (https://cloud.tymly.in/status/1156) was down:

HTTP code: 521
Response time: 215 ms

Resolved: Trifecta Esplanade D Block is back up in 91bd4ca.


text:
🛑 Sunshine Silicon Citi is down

In d6ac638, Sunshine Silicon Citi (https://cloud.tymly.in/status/1021) was down:

HTTP code: 521
Response time: 231 ms

Resolved: Sunshine Silicon Citi is back up in 714b9f0.


text:
🛑 Prakruthi Villas Sarjapura is down

In 2d8e41e, Prakruthi Villas Sarjapura (https://cloud.tymly.in/status/1058) was down:

HTTP code: 521
Response time: 226 ms

Resolved: Prakruthi Villas Sarjapura is back up in 3803f95.


text:
🛑 Mahaveer Varna B3 is down

In 705f7f9, Mahaveer Varna B3 (https://cloud.tymly.in/status/1086) was down:

HTTP code: 521
Response time: 20224 ms

Resolved: Mahaveer Varna B3 is back up in ccabe09.


text:
🛑 SMD Altezz Block A is down

In 7ab666d, SMD Altezz Block A (https://cloud.tymly.in/status/1175) was down:

HTTP code: 521
Response time: 21075 ms

Resolved: SMD Altezz Block A is back up in 900c002.


text:
🛑 SMD Altezz Block B is down

In a666c8f, SMD Altezz Block B (https://cloud.tymly.in/status/1176) was down:

HTTP code: 521
Response time: 20223 ms

Resolved: SMD Altezz Block B is back up in e737150.


text:
🛑 United Elysium is down

In 2925a59, United Elysium (https://cloud.tymly.in/status/1019) was down:

HTTP code: 521
Response time: 20243 ms

Resolved: United Elysium is back up in eeb00ae.


text:
🛑 Sai Gardens Community Hall is down

In cacb83c, Sai Gardens Community Hall (https://cloud.tymly.in/status/1073) was down:

HTTP code: 521
Response time: 230 ms

Resolved: Sai Gardens Community Hall is back up in 8b72482.


text:
🛑 Trifecta Esplanade C Block is down

In 5b336af, Trifecta Esplanade C Block (https://cloud.tymly.in/status/1155) was down:

HTTP code: 521
Response time: 233 ms

Resolved: Trifecta Esplanade C Block is back up in ff52cb8.


text:
🛑 Trifecta Esplanade C Block is down

In 3270c31, Trifecta Esplanade C Block (https://cloud.tymly.in/status/1155) was down:

HTTP code: 521
Response time: 237 ms

Resolved: Trifecta Esplanade C Block is back up in 3d35529.


text:
🛑 Whitestone Landmark Block A is down

In 342a224, Whitestone Landmark Block A (https://cloud.tymly.in/status/1192) was down:

HTTP code: 521
Response time: 20232 ms

Resolved: Whitestone Landmark Block A is back up in 5c796ad.


text:
🛑 Trifecta Esplanade N Block is down

In 9b689b3, Trifecta Esplanade N Block (https://cloud.tymly.in/status/1165) was down:

HTTP code: 521
Response time: 222 ms

Resolved: Trifecta Esplanade N Block is back up in b015713.


text:
🛑 Desai Grandeur 1 is down

In 08b1e72, Desai Grandeur 1 (https://cloud.tymly.in/status/1133) was down:

HTTP code: 521
Response time: 20234 ms

Resolved: Desai Grandeur 1 is back up in abc5591.


text:
🛑 SBB Touchstone D Block is down

In 5d1a69a, SBB Touchstone D Block (https://cloud.tymly.in/status/1185) was down:

HTTP code: 521
Response time: 20251 ms

Resolved: SBB Touchstone D Block is back up in 3796b13.


text:
🛑 DSR Sunrise Towers 2 is down

In 229e100, DSR Sunrise Towers 2 (https://cloud.tymly.in/status/1027) was down:

HTTP code: 521
Response time: 20240 ms

Resolved: DSR Sunrise Towers 2 is back up in d8e1ee2.


text:
🛑 Nitesh Flushing Meadows Block D is down

In 2b6804e, Nitesh Flushing Meadows Block D (https://cloud.tymly.in/status/1049) was down:

HTTP code: 521
Response time: 20264 ms

Resolved: Nitesh Flushing Meadows Block D is back up in 7d87062.


text:
🛑 Mahaveer Varna B1 is down

In 64faf11, Mahaveer Varna B1 (https://cloud.tymly.in/status/1085) was down:

HTTP code: 521
Response time: 20276 ms

Resolved: Mahaveer Varna B1 is back up in 50fc500.


text:
🛑 Sunshine Silicon Citi is down

In 43c561d, Sunshine Silicon Citi (https://cloud.tymly.in/status/1021) was down:

HTTP code: 521
Response time: 228 ms

Resolved: Sunshine Silicon Citi is back up in ceb621c.


text:
🛑 Mahaveer Varna B1 is down

In c819281, Mahaveer Varna B1 (https://cloud.tymly.in/status/1085) was down:

HTTP code: 521
Response time: 251 ms

Resolved: Mahaveer Varna B1 is back up in 06f57ec.


text:
Error when walrus operator variables referenced in lambda functions

Hi Ben,
When running ssort on the following:
f = lambda: (a := 1) + a

I get the following error:
ERROR: unresolved dependency 'a' in /home/josiah/test.py: line 1, column 23
1 file was not sortable

Thanks

Have pushed a new patch release, 0.11.6, with @jgberry's fix.  Thank you both.

Also, I've just realised it's you @joouha.  Thank you for sticking with ssort after the shenanigans with deleting comments from empty files.  We're getting there.

authors: bwhmather joouha

repo: bwhmather/ssort


text:
Is there a way to seperate Vera switches?

When I add my garage and gate opener GH thinks it's a light switch so when I say turn on all lights it open the gate and garage as well. Is there anyway we can seperate them?

That is a google home command and it turns on everything it knows. I am assuming the GH considers all "Philips HUE" devices as lights as it seems to be. Suggestion: Don't do that.

thanks that's what I figured so i deleted the devices. kind of suck that I can tell it to open and close my doors and gate

authors: bwssytems dannieboiz

repo: bwssytems/ha-bridge

license_source: bigquery


text:
Harmony Press Button http commands

Is it possible to send http commands to ha-bridge to send a "press button" command to harmony like with restful-harmony, or is it necessary to install both parallel?

Yes, that is the harmony device tab

So, did you put in your harmony hub address in the Bridge Control tab? And do you see the devices now?

Thank you for asking, my harmony is integrated into the ha-bridge and i can send command via echo, etc. to my harmony.
My actual question was, if it is possible to send "push button" commands via http like the restful Put-command "PUT http://host:8081/harmony/press" to ha-bridge.
The "/api/devices/harmony/devices" command to ha-bridge gives me the same list like the ":8081/harmony/list/devices" to restful-hamony. So i thought that maybe a command like "/api/devices/harmony/press{..." could work so i don't need to run ha-bridge and restful-hamony.
I hope i explained my question properly.

Sorry, the ha-bridge does not expose the restful-harmony api. You could make button press in the ha-bridge and then call it's api for that device using the emulated hue api.

Then i'll stay with the 2 apps with different ports. Thank you for the reply, the support and the good apps. Donationtime.


text:
one bug in kali2

When I  use this tool in kali2 which is 2016.01 version, I find one bug: when I set username and password in command line, it works right.  but when I put username and password in files, it can not find the right result.  I just put the only one right username and password in file.
in kali1.09, I don't find this problem. This tool works beautifully.
I test in 2016.03.15 with the newest version CrackMapExec.
Thank you for this great tool.

@scuhurricane could you please pastebin an example of the files you're using ? thanks!

@scuhurricane whatever it was, it should be fixed in v3.0


text:
Add a spec test fuzzer for Config

This commit adds a new fuzzer which is intended to run on oss-fuzz. This
fuzzer creates and arbitrary Config which should pass spec tests and
then asserts that it does so. The goal here is to weed out any
accidental bugs in global configuration which could cause
non-spec-compliant behavior.

Thanks! Much cleaner :)

authors: alexcrichton fitzgen

repo: bytecodealliance/wasmtime


text:
Merge into master

This change is

Reviewed 5 of 5 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

repo: byu-oit-appdev/ios-byuSuite


text:
🛑 Wodemo的一楼 is down

In e292531, Wodemo的一楼 (https://bywhite.wodemo.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wodemo的一楼 is back up in 94d23e7.


text:
🛑 www.slovakiatech.sk is down

In cae4669, www.slovakiatech.sk (https://www.slovakiatech.sk) was down:

HTTP code: 503
Response time: 787 ms

Resolved: www.slovakiatech.sk is back up in 40b3bb9.


text:
🛑 www.leopoldov.sk is down

In 1c5c4d7, www.leopoldov.sk (https://www.leopoldov.sk/) was down:

HTTP code: 403
Response time: 523 ms

Resolved: www.leopoldov.sk is back up in c3db426.


text:
fix: repair JSON export

This PR fixes the various problems w/ the exported JSON, including

cleaning up (some) internalization: Title and Hint
removing an internal data structure from the exported JSON

closes https://github.com/dedis/d-voting/issues/316

please add my changes for de

Uploading the form via JSON does work - Hurray!

./scripts/local_form.sh should create a correct form. I tried to run it with the following JSON on line 7 (I had to add Using correct URL #61 to make it work, which is normal, but just in case you want to repeat my experiment):
{"Title":{"En":"Colours","Fr":"","De":""},"Scaffold":[{"ID":"GErn0cNj","Title":{"En":"Colours","Fr":"","De":""},"Order":["DLfAvGgv"],"Ranks":[{"ID":"DLfAvGgv","Title":{"En":"RGB","Fr":"","De":""},"MaxN":3,"MinN":3,"Choices":["{\"en\":\"Red\"}","{\"en\":\"Green\"}","{\"en\":\"Blue\"}"],"Hint":{"En":"","Fr":"","De":""}}],"Selects":[],"Texts":[],"Subjects":[]}]}
a. To reproduce this, run ./scripts/run_local.sh, then ./scripts/local_proxies.sh, and ./scripts/local_forms.sh with the changed JSON
b. It adds the form, but when I try to vote, the screen is empty
c. In the JSON of the 'ranking' vote above, the Choices still looks like an escaped string and not a JSON - is this on purpose?
d. The title of the form created with local_form.sh is title, and not Colours
e. When trying to vote on this form, I have the following error in my javascript console:

Uncaught TypeError: configObj.Scaffold is not iterable
    at unmarshalConfigAndCreateAnswers (JSONparser.ts:171:1)
    at useConfiguration.tsx:13:1

the translations? as I put in a comment somewhere, we'll have to clean up that anyway along w/ all the other translations - since they are not the reason that the JSON is broken I'd like to try to limit this PR to that
I created a form w/ the interface, exported it and re-imported it, and it worked fine on my side (uploading, voting and displaying results)
I'll look into that
a. + b. + d. + e. cf. 2 so it must be a problem w/ the script's output
c. Choices is still a string since Choices/ChoicesMap is a bit more difficult to refactor, so I'm letting that aside for the moment

the translations? as I put in a comment somewhere, we'll have to clean up that anyway along w/ all the other translations - since they are not the reason that the JSON is broken I'd like to try to limit this PR to that
I created a form w/ the interface, exported it and re-imported it, and it worked fine on my side (uploading, voting and displaying results)
I'll look into that
a. + b. + d. + e. cf. 2 so it must be a problem w/ the script's output
c. Choices is still a string since Choices/ChoicesMap is a bit more difficult to refactor, so I'm letting that aside for the moment

just the ones I translated for the mockData.ts

yes, please have a look why this doesn't work anymore. I do still use it to test the front/backend manually, so it would be nice if it still works

1. just the ones I translated for the `mockData.ts`

made up my own translations since that's quicker than copying them, hope that's OK

1. just the ones I translated for the `mockData.ts`

made up my own translations since that's quicker than copying them, hope that's OK

Works for me. Github allows you to "Merge comment" if it's a code change. So you can simply commit all comments. Sometimes there is even "Add to merge batch" or something like that, but I don't see it always, gotta figure out when it appears...

authors: PascalinDe ineiti


text:
!now機能の実装

春雨(元・ぐろりあすの人) のために周回数・ボスの位置を知る機能を作る。
ただし、来月からは全ボスクラバトになるのでこの機能はいらなくなるので作るか不明

めんどいのでやめました


text:
🛑 CBTB Coffee House Shop is down

In eac1daf, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1647 ms

Resolved: CBTB Coffee House Shop is back up in 5866cf3.

repo: cachetech/service-status


text:
🛑 CBTB Coffee House Shop is down

In 85072ac, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1587 ms

Resolved: CBTB Coffee House Shop is back up in 9b0b5b6.


text:
🛑 CBTB Coffee House Shop is down

In 1e315bf, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1168 ms

Resolved: CBTB Coffee House Shop is back up in d759c5d after 30 minutes.


text:
"Whoops, looks like something went wrong." on home page

Hello,
Tried to deploy from the Heroku button but the front-end is showing a "Whoops, looks like something went wrong.".
But looks like that others' Cachet websites are showing the same, like at http://cachet.herokuapp.com/ or http://monitor.dockdogs.com/ (found when searching a bit about this issue here).
Is it just me or is there something broken at the moment?
Thanks for any future help!

Interesting! I'll take a look.

Fixed in 6bbdd864e744942379648fa508c359e0448b530f - sorry about that.

authors: jbrooksuk mkody

repo: cachethq/Cachet


text:
arrange_images: path hardcoded

It looks like that the path datasets is hard coded inside the file.
I think you should remove datasets from the 4 lines of code, isn't it?

The same here


text:
cob_face_recognizer.launch on't show nothing

Hi,
this code seems interesting .I compiled it but when I run cob_face_recognizer.launch , it shows me images in database and after that it is blocked .Thank you for advance for your help

Hi sorry for late reply. This is an expected behavior. Could you check from Rviz whether there is a face detection image topic? Also, you should also check the topic named "/face_recognizer/faces". If there is a stream coming out, then there is no problem.

Ok , thank you for your help . I will see if the problem disappear

Hi,
I opened rviz and I add topic "/face_recognizer/faces/images" but there is no rgb stream coming on . Please Can you pretend what's the problem ?

I run the code on my local PC and there is an RGB stream coming out from "/face_recognizer/faces/image". So, I cannot further help, because everything seems normal and there is not so much information from your side.

I use openni version 1 for kinetic . I tested your code cob_people_detection and it's ok . I tried to change camera topics but no improvements .

There is nothing I can do at this point. Closing the issue.


text:
Investigate "microbatch" incremental strategy

dbt 1.9 introduces a new incremental strategy called "microbatching". It seems like it might be a great fit for our current large incremental time series. It allows some of the following behaviors:

Targeted backfills. Previously we had two options: run the most recent data, or do a full table refresh. This allows us to do more specific backfills, like "refresh the last week of data"
Less manual configuration of lookbacks. We might be able to remove or significantly simplify make_model_incremental().
Breaking large table builds into multiple steps. This probably doesn't matter a huge amount for Snowflake (though I would be interested to be proven wrong!), but with some databases it might help with resource usage.

I think an experimental branch testing this new strategy out would be a great idea. Since it relies on dbt-core 1.9, it would probably need to wait on the version upgrade @summer-mothwood is doing in #352

Next step is to have a team discussion on this topic.

authors: ian-r-rose jkarpen

repo: cagov/caldata-mdsa-caltrans-pems


text:
Context switch function

Prepare simple TCB that stores only an execution context and a pointer to stack. Allocate two TCBs and run two threads that switch between each other. You'll have to implement an assembly routine that switches threads: void switch_context(TCB *from, TCB *to). You can look at setjmp / longjmp implementation - they might prove to be useful starting point.

There're two types of contexts:

CPU context: has to be saved in _intr_handler,
thread context: has to be saved when switching kernel threads.

I'd like both cases to be handled. Have a look at mips/include/pcb.h

repo: cahirwpz/wifire-os

license: mit


text:
Upgrade golang to v1.10

There are two versions we used: v1.8 and v1.9. The latest version is v1.10.
There are some conflicts between v1.10 and before versions (#172). In the lifecycle of release 0.2, we need upgrade golang verison to v1.10

/assign @kdada
/area instrumentation
/priority p0

repo: caicloud/nirvana


text:
Robotcar dataset

In the paper it is mentioned that the model is trained on the RobotCar dataset but int he repo the dataset provided is from Carla. Are the pertained models trained on the Carla dataset? Also can we get the modified robot car dataset that is mentioned in the paper?

I also discover the same question， can we get the modified RobotCar dataset mentioned in your paper?

repo: caipeide/VTGNet


text:
Add Conditional for a specific Message Value to control Message Routing in Azure Service Bus

Love this library, working very well so far.
How can I publish a custom Property that I can use to filter my message.
For example this is a sample test message.. and I'd like only messages with the field data.Authentication.Name set equal to "Jimmy" to be forwarded to the subscriber ....
{
                    ""eventID"": ""74c5a2db-2a9a-4ce3-93c5-c77fb566b8d7"",
                    ""cloudEventsVersion"": ""0.1"",
                    ""eventType"": ""AuthenticationDefinitionCreatedDomainEvent"",
                    ""eventTypeVersion"": ""1.0"",
                    ""source"": ""ede603ab-4e15-400c-8d4a-c903166b590d-created-event#AuthenticationDefinitionCreatedDomainEvent"",
                    ""eventTime"": ""01/26/2023 23:00:50 +00:00"",
                    ""data"": {
                        ""AuthenticationDefinition"": {
                            ""AccessTokenExpiration"": 0,
                            ""AccessTokenUrl"": ""string"",
                            ""Audience"": ""string"",
                            ""AuthenticationType"": 0,
                            ""AuthorizationUrl"": ""string"",
                            ""CheckAuthVerification"": true,
                            ""ClientId"": ""string"",
                            ""ClientSecret"": ""string"",
                            ""DisableIntrospection"": true,
                            ""Name"": ""Jimmy"",
                            ""OAuthCallbackUrl"": ""string"",
                            ""Scopes"": ""string"",
                            ""UseClientCredentialFlow"": true,
                            ""modelVersion"": ""0.0.0"",
                            ""id"": ""8ee21697-b51c-493b-b0e5-fb26aa91210f"",
                            ""deleted"": false,
                            ""createdAt"": ""2023-01-26T18:00:50.8332556-05:00"",
                            ""modifiedAt"": ""2023-01-26T18:00:50.8332557-05:00"",
                            ""deletedAt"": null,
                            ""modifiedBy"": ""d9ecc60b-4867-4cb8-9a8d-5f5971f4558d""
                        },
                        ""Payload"": null,
                        ""AuthenticationDefinitionId"": ""8ee21697-b51c-493b-b0e5-fb26aa91210f"",
                        ""AggregateId"": ""8ee21697-b51c-493b-b0e5-fb26aa91210f"",
                        ""Action"": ""AuthenticationDefinitionCreatedDomainEvent"",
                        ""ModelKey"": ""ede603ab-4e15-400c-8d4a-c903166b590d-created-event"",
                        ""MessageHeaders"": {
                            ""domain-command"": ""Create"",
                            ""nameidentifier"": ""d9ecc60b-4867-4cb8-9a8d-5f5971f4558d"",
                            ""oid"": ""d9ecc60b-4867-4cb8-9a8d-5f5971f4558d"",
                            ""role"": ""access:metamodel-api"",
                            ""tenant"": ""e01a7bdc-ab45-48b0-ac38-0fac30cc1d90"",
                            ""iss"": ""https://login.microsoftonline.com/e01a7bdc-ab45-48b0-ac38-0fac30cc1d90/v2.0"",
                            ""exp"": ""1674773871"",
                            ""aud"": ""e86b11e0-1394-48f2-b298-0fb58f330c4e"",
                            ""azp"": ""875879f8-dbcd-4f06-81ab-c0079df6ecd6""
                        },
                        ""GeneratedFromModelVersion"": """",
                        ""GeneratedSequence"": """",
                        ""id"": ""74c5a2db-2a9a-4ce3-93c5-c77fb566b8d7"",
                        ""deleted"": false,
                        ""createdAt"": ""2023-01-26T18:00:50.833257-05:00"",
                        ""modifiedAt"": null,
                        ""deletedAt"": null,
                        ""modifiedBy"": null
                    }
                }

I see in the BaseAzureServiceBusPublisher class it appears to be adding a number of ApplicationProperties for ProcessorType, ProcessSender etc...
It also seems to be pulling from a headers section and adding Application Properties per each.
Is there a way of extracting the value for data.Authentication.Name property from the message and adding it to "NameCheck" such that I can add a rule in Azure Service bus such as:  NameCheck = 'Jimmy'.

@jkears That's awesome that you are getting some value out of this... 🙌
So you are on the right track!  The original design was that the message sender could/should control various aspects dynamically. And since the SqlTransactionalOutbox is intended to be agnostic of the messaging broker being used (though Azure Service Bus is all I've implemented so far ;-)... I used a few terms that convey the meaning but are not coupled specifically to Azure Service Bus, or any messaging system.
So if your payload as any Json properties in the root of the message with the name headers, or appProperties or userProperties then all properties of that Json node are dynamically mapped into Azure Service Bus' message.ApplicationProperties collection and can be used for subscription routing per Microsoft Docs :-).... this was an intentional feature. NOTE: the Json names noted above are checked in that order of priority and the first one found is used so it's expected that the message is consistent and chooses only one.  Personally I liked the generic term headers as it maps well to Http headers that are passed along with requests and can be used for routing, etc.
You can see in the null coalescing to fallback for these three dynamic Json objects in the BaseAzureServiceBusPublisher:
                //Populate HeadersLookup/User Properties if defined dynamically...
                var headers = GetJsonValueSafely<JObject>(json, JsonMessageFields.Headers)
                                        ?? GetJsonValueSafely<JObject>(json, JsonMessageFields.AppProperties)
                                        ?? GetJsonValueSafely<JObject>(json, JsonMessageFields.UserProperties);

At this time there is not a way to intercept and extract a value and mutate the message (move the data.Authentication.Name value up into a headers.NameCheck property.  It's assumed that whatever code is creating the message to be stored in the Outbox would do this since it has access to or creates the json payload before saving to the outbox.
I'm sure you already know this but here's the MS docs discussing how to filter based on Message.ApplicaitonProperties which is what the latest Az Service Bus libraries offer:
https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-filter-examples#filter-on-message-properties

@cajuncoding, thank you for your prompt support.
As a quick test I added the following header and Correlation rule, and it worked perfectly....

It may not be so obvious but I am using CloudEvents which promotes a specific schema, and so ideally, it would be great if somehow we could push the headers section into the data section of the cloud event.   This way I keep to intended format of the CloudEvent schema, and place the header section within the data section.
Specifically, this is what is defined...
public const string Headers = "headers";
It would be idea for this to be a configuration driven value such that I could place headers in the Data Payload, such as "data.headers", and actually in my case I already have a messageheaders section so "data.messageheaders".
Is that possible with the existing code base and without modifying any code?

@jkears Ok, I sort of mis-spoke in my response above... so I edited to clarify.  There is no configurable way to intercept the json and mutate it (e.g. re-locating a value into the headers node).
However, as an alternative, and by design, the version intentionally allows you to create a customized version of the BaseAzureServiceBusPublisher<Guid> as all methods are virtual by design . . . so that will easily allow you to mutate the actual Azure Service Bus Message that is created.  So you def. can extract the data.Authentication.Name value and manually add it into the message.ApplicationProperties .
So rather than using the DefaultAzureServiceBusOutboxPublisher, you'd just new up your own MyCustomAzureServiceBusOutboxPublisher and use that exactly the same.
Here's an sample (most of the below are code comments you can remove):
    public class MyCustomAzureServiceBusOutboxPublisher : BaseAzureServiceBusPublisher<Guid>
    {
        public MyCustomAzureServiceBusOutboxPublisher(string azureServiceBusConnectionString, AzureServiceBusPublishingOptions options = null)
            : base(azureServiceBusConnectionString, options)
        {
            //All logic is currently in the Base Constructor
        }

        protected override ServiceBusMessage CreateEventBusMessage(ISqlTransactionalOutboxItem<Guid> outboxItem)
        {
            //First parse our input because it's easier to access the Payload before
            //  it's converted to Binary within the Message...
            var payloadJson = ParsePayloadAsJsonSafely(outboxItem);

            //Now create let the Default Outbox handler create the message...
            var eventBusMessage = base.CreateEventBusMessage(outboxItem);

            //Now we can update it with custom Applicatoin properties without affecting
            //  the Payload structure (e.g. no Headers node/section)...
            var nameCheck = payloadJson.SelectToken("$.data.AuthenticationDefinition.Name")?.ToString();
            eventBusMessage.ApplicationProperties.Add(MessageHeaders.ToHeader("data_AuthenticationDefinition_Name"), nameCheck);

            //Finally return the customized message...
            return eventBusMessage;
        }
    }

Thank you so very much, this works like a charm!

authors: cajuncoding jkears

repo: cajuncoding/SqlTransactionalOutbox


text:
No coverage is reported for net5.0 test projects

For test projects that target net5.0 and not netcoreappX.Y coverage always fails with
No results, this could be for a number of reasons. The most common reasons are:
    1) missing PDBs for the assemblies that match the filter please review the
    output file and refer to the Usage guide (Usage.rtf) about filters.
    2) the profiler may not be registered correctly, please refer to the Usage
    guide and the -register switch.

The reason being here that dotnet test is used for NET Core projects and OpenCover is used for NET Framework projects in
combination with https://github.com/cake-contrib/Cake.Incubator/issues/116 which leads to net5.0 projects being treated as NET Framework projects. Hence Cake.Recipe assumes that OpenCover should be used for net5.0 projects.
So we need to wait for a fix of  https://github.com/cake-contrib/Cake.Incubator/issues/116 and afterwards update the reference to Cake.Incubator.

Closing this, since it's an exact duplicate of #797


text:
The unit tests are dotnetapp2.0 and that is EOL.

When building on a brand new laptop with only Visual Studio 2019 16.10.x
You will get this in the build log during testing:
A total of 1 test files matched the specified pattern.
Testhost process exited with error: It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
Expected Behavior
The tests should be run.
Current Behavior
Tests fails and teardown is run.
Possible Solution
Change the TargetFramework tag to netcoreapp3.1
Alternatively change the tag to TargetFrameworks and value to net50;netcoreapp3.1 to run the unit tests both on dotnet core 3.1 and 5.0.
I suggest to leave out 2.1 as dotnet core 2.1 is end of life in August 2021.

I can fix this @augustoproiete

Awesome! Thanks @escarls. Assigning to you then

🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on:

GitHub Release
NuGet Package

authors: augustoproiete escarls


text:
🛑 XMR USA Servers is down

In 69b8266, XMR USA Servers ($XMR_USA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: XMR USA Servers is back up in 9b51d60 after 13 minutes.

repo: cake-tech/upptime-cakewallet


text:
🛑 xmr-node.cakewallet.com:18081 is down

In 9e31e78, xmr-node.cakewallet.com:18081 (xmr-node.cakewallet.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: xmr-node.cakewallet.com:18081 is back up in 34fa8ae after 5 minutes.

repo: cake-tech/upptime-monerocom


text:
Proposal: Show the power in a demo project online

Cool project! I want to suggest you to open a demo website realized with this framework, where how want to use UIWebKit can explore its power and its features.

Yes. I should do this sometime. I am currently tangled up with a bunch of other stuff, so I don't  have much time, but I will do this as soon as possible.

authors: Codeido calebkleveter

repo: calebkleveter/UIWebKit


text:
BASE_URL usage needs instructions

BASE_URL gets embedded into some parts of the static site such as the URLs generated for the calendar links.
There needs to be a way to specify this variable at build time, since Calendso project prefers not inserting variables at runtime.

Added an ARG to the dockerfile to address this.
Added arg examples to the docker-compose.yml

resolved

repo: calendso/docker


text:
Small visual bugs part 1

Description
This is the first commit intended to fix the #119 issues

(package.json):  Blocking dependencies
(Scroll): Fix horizontal scroll
(Button): ♻   handleClick -> onClick
(Heart):  Add to Heart Component Cursor Pointer
(Hero): Fix Hero z-index with the Modal
(Footer):  Margin top over the Footer

Fixes #119
Type of change

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

[ ] Test

Please also list any relevant details for your test configuration
Test Configuration:

OS:
Browser:
Browser Version:

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

The heartIcon is based on design

repo: callback-demons/callback-news


text:
Unable to setup vertical Scroll

Bug report
Summary
Unable to setup Vertical Scroll on Android.
Whatever value I'm assigning to "orientation", it always scrolls horizontally.
Environment info
Expo Version 3.13.1
Tested on Android 9 Device, and Android 7.0.1 Emulator
Library version:
Tested on both 3.1.0 and 4.0.1
Describe what you expected to happen:

It should scroll vertically when I'm assigning the "vertical" to its orientation property

Reproducible sample code
render() {
return (
  <View style={styles.container}>

    <ViewPager
          style={styles.viewPager}
          initialPage={0}
          onPageScroll={this.onPageScroll}
          onPageSelected={this.onPageSelected}
          onPageScrollStateChanged={this.onPageScrollStateChanged}
          orientation="vertical">
          <View key="1">
            <Text>First Page</Text>
          </View>
          <View key="2">
            <Text>Second Page</Text>
          </View>
          <View key="3">
            <Text>Third Page</Text>
          </View>
      </ViewPager>
  </View>
);

}

Did you find a solution or workaround for this? Really hanging on this one :/

repo: callstack/react-native-viewpager


text:
✨ Unify the arguments to Getter, Action Mutation and Plugin. IMPORTAN…

#9

:+1:

authors: cathcheeno fkei

repo: cam-inc/riotx


text:
Simple Edge Discovery requires User Story

Per Commonalities API Readiness Checklist, APIs require a User Story based on the provided template.

Fixed in #194

repo: camaraproject/EdgeCloud


text:
Add Eviden to CAMARA project

Dear admin,
I belong to Eviden company and we would like to participate in CAMARA project. We would like to start by having  our logo show up as a participating organization in the CAMARA website.

What info do you need me to submit for this?

Kind regards,

Hi Herbert,
Thanks for tagging - will handle!
Best,
Evan

Hi @vivesml, please provide your organization's logo in .svg format. Additionally, let us know how you would like to participate in the project and if there's anything we can do to assist you with that!

Hi Casey,
  We currently do not have the .svg format. I hope these other formats can be enough.

  I will get back to you on how we would like to participate in the project.

Kind regards / Saludos / Bien à vous / Viele Grüße / Obrigado
Luis Vives
+34 629 850 376
From: Casey Cain @.>
Sent: Monday, June 24, 2024 20:36
To: camaraproject/camara-landscape @.>
Cc: Luis Vives @.>; Mention @.>
Subject: Re: [camaraproject/camara-landscape] Add Eviden to CAMARA project (Issue #6)
Caution: External email. Do not open attachments or click links, unless this email comes from a known sender and you know the content is safe.
Hi @vivesmlhttps://github.com/vivesml, please provide your organization's logo in .svg format. Additionally, let us know how you would like to participate in the project and if there's anything we can do to assist you with that!

Reply to this email directly, view it on GitHubhttps://github.com/camaraproject/camara-landscape/issues/6#issuecomment-2187175930, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJNMBFITTXJ6HJGSV3M3VCTZJBRKVAVCNFSM6AAAAABJ2IBSXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBXGE3TKOJTGA.
You are receiving this because you were mentioned.Message ID: @.***>

Hi @vivesml, unfortunately, the Landscape tool only supports images in .svg format.
There is some tips on converting images in the README.md, but I suggest working with your marketing team to produce a high quality version.

Merged with https://github.com/camaraproject/camara-landscape/pull/22

authors: MarkusKuemmerle eharrison24 vivesml wrathwolf

repo: camaraproject/camara-landscape


text:
Checkpoint release?

Hi, it seems there is no checkpoint provided in your repo. Are you gonna release the checkpoint with accuracy that reported in your paper?

Hey, we have no plans of releasing checkpoints. Reproducing the checkpoints is relatively easy and fast using the provided scripts.

authors: JamesSand hardyqr

repo: cambridgeltl/visual-spatial-reasoning


text:
feat: Tavily search integration

Description
Implemented the Tavily search functionality and completed local testing with successful results.
Motivation and Context
This change introduces the search feature to the Tavily API. It addresses the need for efficient search capabilities. This feature enhances the user experience by enabling faster, more relevant search results.

[ ] I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds core functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (update in the documentation)
[ ] Example (update in the folder of example)

Implemented Tasks

[ x] Integrated search logic
[ x] Added unit tests for search functionality
[ x] Performed successful local testing

Checklist
Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

[ x] I have read the CONTRIBUTION guide. (required)
[ ] My change requires a change to the documentation.
[ x] I have updated the tests accordingly. (required for a bug fix or a new feature)
[ ] I have updated the documentation accordingly.

Fixed all issues raised above

repo: camel-ai/camel


text:
Update README.md

Wrong syntax :)

Oups

Coverage remained the same at 100.0% when pulling 1bd1c6e33d10fcd6a43538e9038e27f4bcf17f76 on blia:patch-1 into ea4738f42c9f3366c055f00b136b0f32d6152a39 on camelaissani:master.

authors: blia camelaissani coveralls

repo: camelaissani/frontexpress


text:
docs: Update 5.1嵌入式是什么？可以吃吗？

本次更新的内容主要为...
欢迎前来学习

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


text:
Binary xmp blob

Do you have any idea how to convert it to/from editable xml?
I mean Adobe_AdditionalMetadata.XMP column

Found an answer for that https://community.adobe.com/t5/lightroom-classic/lightroom-sqlite-database-binary-xmp-format/m-p/11278896?page=1#M193423

repo: camerahacks/lightroom-database


text:
[lark camp] Add parking passes to campers, not reg

We have too many discrepancies between entered names and camper names, and it would be better for pullers in the reg line if these were tied together cleanly, so they should be moved from the registration schema, to the camper schema, and not have a name that is entered, but instead just use the name of the camper that the parking pass was bought under.

Emails too

repo: camphoric/camphoric


text:
camunda login still showing after logging in keycloak

Hello, I'm having trouble setting up camunda with keycloak, currently I followed two guides:

https://github.com/camunda/camunda-bpm-identity-keycloak
https://github.com/camunda/camunda-bpm-identity-keycloak/tree/master/examples/sso-kubernetes

I copied the three main classes KeycloakAuthenticationProvider.java , KeycloakIdentityProvider and WebAppSecurityConfig that are mainly involved in configuring this with the exception of this line:
 filterRegistration.setInitParameters(Collections.singletonMap("authentication-provider", "org.camunda.bpm.extension.keycloak.showcase.sso.KeycloakAuthenticationProvider")); I changed the second param to point to my current project directories so it won't error out.
Here is also my application.yml : https://pastebin.com/d6SJs6CD
For the keycloak settings I mainly followed the first guide. Only difference I made was I change the valid redirect uri to this: http://localhost:8081/* instead of http://localhost:8081/camunda/* if I changed it to the second one it results to a invalid redirect uri error.
I'm not sure what I'm doing wrong here, whenever I access the localhost:8081 (camunda) via browser it proceeds to keycloak's login once I entered the correct credentials it directs me to camunda's login.

Hi @JetTorres,

Do you have a user in Keycloak who is a member of the Keycloak "camunda-admin" group? Do you have a group called "camunda-admin" in Keycloak (see administratorGroupName of your configuration)? Upon the very first startup of your application you should see some log entries that the Identity Provider grants authorizations to that group. Creating groups and users is your part / the responsibility of Keycloak - the Identity Provider is readonly and thus only reads this information.
The user you're using to login - have you checked the user's groups?
In order to find out what's potentially wrong with your SSO setup you can set the log level of Spring Security to debug.

Hi @JetTorres,

Do you have a user in Keycloak who is a member of the Keycloak "camunda-admin" group? Do you have a group called "camunda-admin" in Keycloak (see administratorGroupName of your configuration)? Upon the very first startup of your application you should see some log entries that the Identity Provider grants authorizations to that group. Creating groups and users is your part / the responsibility of Keycloak - the Identity Provider is readonly and thus only reads this information.
The user you're using to login - have you checked the user's groups?
In order to find out what's potentially wrong with your SSO setup you can set the log level of Spring Security to debug.

Hi @VonDerBeck

Yes I have a user in keycloak under camunda-admin

I also have this session active in keycloak when I logged in the demo account:

How can I check that? The roles I had was query-group, query-user and view-user on realm-management

I saw these logs when I tried logging in https://pastebin.com/2VuLCvJ3

Hi @VonDerBeck

Yes I have a user in keycloak under camunda-admin

I also have this session active in keycloak when I logged in the demo account:

How can I check that? The roles I had was query-group, query-user and view-user on realm-management

I saw these logs when I tried logging in https://pastebin.com/2VuLCvJ3

Hi @JetTorres,
your application.yml misses any camunda.bpm configuration parameters...
If you look at the SSO example, you'll find especially the following parameters:
camunda.bpm:
  authorization:
    enabled: true
  webapp.application-path:

Wether you want to enable authorization in Camunda is your choice. Ok. But Camunda's web application path must match the path's within the Spring WebSecurity configuration. If you just copied my sample this will not match any more. Because in the example Cockpit is directly running under root. But from your log file I can see that your application is under the path camunda:
2021-01-26 19:55:14.975 DEBUG 25816 --- [io-8081-exec-10] o.s.security.web.FilterChainProxy        : /camunda/lib/ngDefine.js?bust=7.14.0 reached end of additional filter chain; proceeding with original chain
...
2021-01-26 19:55:15.328 DEBUG 25816 --- [nio-8081-exec-8] o.s.security.web.FilterChainProxy        : /camunda/app/welcome/fonts/IBMPlexSans-Italic.otf at position 1 of 17 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'

So it is very likely that the KeycloakAuthenticationProvider, which is responsible for wiring Spring Security with Camunda, hasn't been involved at all. Your Camunda application hasn't any knowledge about the authenticated user and its groups. You must either consider the /camunda application path in your Spring WebSecurity configuration (everywhere where there is /app), or you must add the configuration
camunda.bpm:
  webapp.application-path:

to your application.yml and move the Camunda Cockpit to the root path.
Does that help?
Kind regards,
Gunnar

Hi @JetTorres,
your application.yml misses any camunda.bpm configuration parameters...
If you look at the SSO example, you'll find especially the following parameters:
camunda.bpm:
  authorization:
    enabled: true
  webapp.application-path:

Wether you want to enable authorization in Camunda is your choice. Ok. But Camunda's web application path must match the path's within the Spring WebSecurity configuration. If you just copied my sample this will not match any more. Because in the example Cockpit is directly running under root. But from your log file I can see that your application is under the path camunda:
2021-01-26 19:55:14.975 DEBUG 25816 --- [io-8081-exec-10] o.s.security.web.FilterChainProxy        : /camunda/lib/ngDefine.js?bust=7.14.0 reached end of additional filter chain; proceeding with original chain
...
2021-01-26 19:55:15.328 DEBUG 25816 --- [nio-8081-exec-8] o.s.security.web.FilterChainProxy        : /camunda/app/welcome/fonts/IBMPlexSans-Italic.otf at position 1 of 17 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'

So it is very likely that the KeycloakAuthenticationProvider, which is responsible for wiring Spring Security with Camunda, hasn't been involved at all. Your Camunda application hasn't any knowledge about the authenticated user and its groups. You must either consider the /camunda application path in your Spring WebSecurity configuration (everywhere where there is /app), or you must add the configuration
camunda.bpm:
  webapp.application-path:

to your application.yml and move the Camunda Cockpit to the root path.
Does that help?
Kind regards,
Gunnar

Hi @VonDerBeck ,
I updated the settings in keycloak and specifically added this redirect URI:

Also, I updated my application.yml to explicitly call the URIs: https://pastebin.com/H92DE6Pj and added the config I missed. I ran camunda and typed it in the URL bar localhost:8081 and localhost:8081/camunda and we got this error log: https://pastebin.com/gx2TMPR6
I also tried debugging by adding breakpoints on the config classes, I noticed that it doesn't go through there.

Hi @VonDerBeck ,
I updated the settings in keycloak and specifically added this redirect URI:

Also, I updated my application.yml to explicitly call the URIs: https://pastebin.com/H92DE6Pj and added the config I missed. I ran camunda and typed it in the URL bar localhost:8081 and localhost:8081/camunda and we got this error log: https://pastebin.com/gx2TMPR6
I also tried debugging by adding breakpoints on the config classes, I noticed that it doesn't go through there.

Setting camunda.bpm.webapp.application-path: camunda means setting it to default. Which has no effect.
Camunda Cockpit consists of 3 paths, /app, /api, /lib - these are all under /camunda/* now. So you should cleanup your code a little bit. And check the package of the KeycloakAuthenticationProvider. If it still does not work you should debug the KeycloakAuthenticationProvider and check, if it is called and the token info can be sucessfully extracted or not.

Setting camunda.bpm.webapp.application-path: camunda means setting it to default. Which has no effect.
Camunda Cockpit consists of 3 paths, /app, /api, /lib - these are all under /camunda/* now. So you should cleanup your code a little bit. And check the package of the KeycloakAuthenticationProvider. If it still does not work you should debug the KeycloakAuthenticationProvider and check, if it is called and the token info can be sucessfully extracted or not.

Hi @VonDerBeck sir,
Even I am facing this issue. Could you please help me out ?
When I run my Camunda Application:
2024-12-05T12:17:49.438+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Application.
2024-12-05T12:17:49.441+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource User.
2024-12-05T12:17:49.444+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Group.
2024-12-05T12:17:49.447+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Group membership.
2024-12-05T12:17:49.450+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Authorization.
2024-12-05T12:17:49.455+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Filter.
2024-12-05T12:17:49.458+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource ProcessDefinition.
2024-12-05T12:17:49.464+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Task.
2024-12-05T12:17:49.466+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource ProcessInstance.
2024-12-05T12:17:49.472+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Deployment.
2024-12-05T12:17:49.475+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource DecisionDefinition.
2024-12-05T12:17:49.476+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Tenant.
2024-12-05T12:17:49.478+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource TenantMembership.
2024-12-05T12:17:49.480+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Batch.
2024-12-05T12:17:49.481+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource DecisionRequirementsDefinition.
2024-12-05T12:17:49.486+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Report.
2024-12-05T12:17:49.490+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Dashboard.
2024-12-05T12:17:49.493+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource OperationLogCatgeory.
2024-12-05T12:17:49.496+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource Optimize.
2024-12-05T12:17:49.499+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource HistoricTask.
2024-12-05T12:17:49.500+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource HistoricProcessInstance.
2024-12-05T12:17:49.501+05:30  INFO 22288 --- [  restartedMain] org.camunda.bpm.extension.keycloak       : KEYCLOAK-01002 GRANT group camunda-admin[camunda-admin] ALL permissions on resource System.

I am getting these in the logs.
And when I am rerouted back from the keycloak signin page, I am getting:
o.s.security.web.FilterChainProxy        : Secured GET /api/engine/engine/

--- User details in between ---

 o.s.security.web.FilterChainProxy        : Secured GET /error

I have followed the steps from the guide as well as the SSO files in your github repo.

@srikar1234,
This is a very old ticket and has been closed long ago...
What does your application.yaml look like? What does your WebAppSecurityConfig look like? What does your Keycloak setup, especially all the URLs (redirect, ...) look like? What happens if you temporarily allow all URLs to be valid in Keycloak?

Hi sir,
Thank you for taking the time to reply. Here we go:
Camunda version: 7.22.0
Spring: 3.2.2
Application.properties:
server.port = 8081
# Server Servlet Context Path
server.servlet.context-path=/camunda

spring.datasource.url=${JDBC_URL:jdbc:h2:./camunda-db-3;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=TRUE}
spring.datasource.username=${JDBC_USER:sa}
spring.datasource.password=${JDBC_PASSWORD:sa}
#spring.h2.console.enabled=true

#Org data
cms.service.endpoint.url=http://xxxxxx

#ass.hikari.maxpoolsize = 200

# Hibernate
#hibernate.dialect= org.hibernate.dialect.PostgreSQLDialect
#hibernate.show_sql = true
#hibernate.formate_sql = true
#hibernate.hbm2ddl.auto = none
#hibernate.auto_commit = false

spring.jersey.application-path=/engine-rest

#camunda.bpm.history-level=audit
camunda.bpm.authorization.enabled=true
camunda.bpm.filter.create=All tasks
camunda.bpm.webapp.application-path=

# Keycloak SSO URLs
keycloak.url.auth=https://xxx.co
keycloak.url.token=https://xxx.co
keycloak.url.plugin=https://xxx.co

# Keycloak Camunda Identity Client
keycloak.client.id=camunda-identity-service
keycloak.client.secret=XXXXXXXXXXXXXXXX

# Spring Boot Security OAuth2 SSO
spring.security.oauth2.client.registration.keycloak.provider=keycloak
spring.security.oauth2.client.registration.keycloak.client-id=${keycloak.client.id}
spring.security.oauth2.client.registration.keycloak.client-secret=${keycloak.client.secret}
spring.security.oauth2.client.registration.keycloak.authorization-grant-type=authorization_code
spring.security.oauth2.client.registration.keycloak.redirect-uri={baseUrl}/{action}/oauth2/code/{registrationId}
spring.security.oauth2.client.registration.keycloak.scope=openid, profile, email

spring.security.oauth2.client.provider.keycloak.issuer-uri=${keycloak.url.auth}/realms/CamundaTest
spring.security.oauth2.client.provider.keycloak.authorization-uri=${keycloak.url.auth}/realms/CamundaTest/protocol/openid-connect/auth
spring.security.oauth2.client.provider.keycloak.user-info-uri=${keycloak.url.auth}/realms/CamundaTest/protocol/openid-connect/userinfo
spring.security.oauth2.client.provider.keycloak.token-uri=${keycloak.url.token}/realms/CamundaTest/protocol/openid-connect/token
spring.security.oauth2.client.provider.keycloak.jwk-set-uri=${keycloak.url.token}/realms/CamundaTest/protocol/openid-connect/certs
spring.security.oauth2.client.provider.keycloak.user-name-attribute=preferred_username

# Logging
logging.level.org.springframework.security=DEBUG

## Camunda Rest API Security
rest.security.enabled=true
rest.security.provider=keycloak
rest.security.required-audience=camunda-rest-api

# Camunda Keycloak Identity Provider Plugin
plugin.identity.keycloak.keycloakIssuerUrl=${keycloak.url.plugin}/realms/CamundaTest
plugin.identity.keycloak.keycloakAdminUrl=${keycloak.url.plugin}/admin/realms/CamundaTest
plugin.identity.keycloak.clientId=${keycloak.client.id}
plugin.identity.keycloak.clientSecret=${keycloak.client.secret}
plugin.identity.keycloak.useEmailAsCamundaUserId=false
plugin.identity.keycloak.useUsernameAsCamundaUserId=true
plugin.identity.keycloak.useGroupPathAsCamundaGroupId=true
plugin.identity.keycloak.enforceSubgroupsInGroupQuery=true
plugin.identity.keycloak.administratorGroupName=camunda-admin

WebAppSecurityConfig.java
package com.vam.kshema;

import java.util.Collections;

import org.camunda.bpm.webapp.impl.security.auth.ContainerBasedAuthenticationFilter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.web.context.request.RequestContextListener;
import org.springframework.web.filter.ForwardedHeaderFilter;

/**
 * Camunda Web application SSO configuration for usage with KeycloakIdentityProviderPlugin.
 */
@ConditionalOnMissingClass("org.springframework.test.context.junit.jupiter.SpringExtension")
@EnableWebSecurity
@Configuration
public class WebAppSecurityConfig {

    @Bean
    @Order(2)
    public SecurityFilterChain httpSecurity(HttpSecurity http) throws Exception {
        http
                .csrf(csrf -> csrf.ignoringRequestMatchers("/api/**", "/engine-rest/**"))
                .authorizeHttpRequests(authorize -> authorize
                        .requestMatchers("/assets/**", "/app/**", "/api/**", "/lib/**").authenticated()
                        .anyRequest().permitAll());

        // If oauth2Login() is deprecated, verify the new method for OAuth2 configuration
        // This is a placeholder, replace with actual configuration if known
        // http.oauth2Login();

        return http.build();
    }

    @SuppressWarnings({ "rawtypes", "unchecked" })
    @Bean
    public FilterRegistrationBean containerBasedAuthenticationFilter(){
        FilterRegistrationBean filterRegistration = new FilterRegistrationBean();
        filterRegistration.setFilter(new ContainerBasedAuthenticationFilter());
        filterRegistration.setInitParameters(Collections.singletonMap("authentication-provider", "com.vam.kshema.KeycloakAuthenticationProvider"));
        filterRegistration.setOrder(201); // ensure the filter is registered after the Spring Security Filter Chain
        filterRegistration.addUrlPatterns("/app/*");
        return filterRegistration;
    }

    // The ForwardedHeaderFilter is needed to correctly assemble the redirect URL for OAuth2 login.
    // Without the filter, Spring might generate an HTTP URL even though the container route is accessed via HTTPS.
    @Bean
    public FilterRegistrationBean<ForwardedHeaderFilter> forwardedHeaderFilter() {
        FilterRegistrationBean<ForwardedHeaderFilter> filterRegistrationBean = new FilterRegistrationBean<>();
        filterRegistrationBean.setFilter(new ForwardedHeaderFilter());
        filterRegistrationBean.setOrder(Ordered.HIGHEST_PRECEDENCE);
        return filterRegistrationBean;
    }

    @Bean
    @Order(0)
    public RequestContextListener requestContextListener() {
        return new RequestContextListener();
    }
}

All the org and camunda java files are under the same folder: com.vam.kshema
Other dependencies in pom.xml file:
       <dependencies>
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-dependencies</artifactId>
               <version>3.2.2</version>
               <type>pom</type>
               <scope>import</scope>
           </dependency>
           <dependency>
               <groupId>org.camunda.bpm</groupId>
               <artifactId>camunda-bom</artifactId>
               <version>7.22.0</version>
               <scope>import</scope>
               <type>pom</type>
           </dependency>
       <dependency>
           <groupId>org.camunda.bpm.extension</groupId>
           <artifactId>camunda-platform-7-keycloak</artifactId>
           <version>7.22.0</version>
       </dependency>
       <dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
		</dependency>
       <dependency>
           <groupId>org.camunda.bpm.springboot</groupId>
           <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
       </dependency>
       <dependency>
           <groupId>org.camunda.bpm.springboot</groupId>
           <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
       </dependency>
       <dependency>
           <groupId>org.camunda.bpm</groupId>
           <artifactId>camunda-engine-plugin-spin</artifactId>
       </dependency>
       <dependency>
           <groupId>org.camunda.spin</groupId>
           <artifactId>camunda-spin-dataformat-all</artifactId>
       </dependency>
       <dependency>
           <groupId>org.camunda.bpm.springboot</groupId>
           <artifactId>camunda-bpm-spring-boot-starter-test</artifactId>
       </dependency>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-data-jpa</artifactId>
           <exclusions>
               <exclusion>
                   <groupId>org.apache.tomcat</groupId>
                   <artifactId>tomcat-jdbc</artifactId>
               </exclusion>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-devtools</artifactId>
           <scope>runtime</scope>
           <optional>true</optional>
       </dependency>
       <dependency>
           <groupId>org.projectlombok</groupId>
           <artifactId>lombok</artifactId>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-security</artifactId>
       </dependency>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-oauth2-client</artifactId>
       </dependency>
       <dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
           <groupId>com.fasterxml.jackson.dataformat</groupId>
           <artifactId>jackson-dataformat-xml</artifactId>
       </dependency>
       <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
       <dependency>
           <groupId>org.apache.commons</groupId>
           <artifactId>commons-lang3</artifactId>
       </dependency>
       <dependency>
           <groupId>org.apache.commons</groupId>
           <artifactId>commons-collections4</artifactId>
           <version>4.1</version>
       </dependency>
       <dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
		</dependency>
       <dependency>
           <groupId>org.postgresql</groupId>
           <artifactId>postgresql</artifactId>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-jdbc</artifactId>
       </dependency>
       <dependency>
           <groupId>com.sun.xml.bind</groupId>
           <artifactId>jaxb-impl</artifactId>
       </dependency>
       <dependency>
           <groupId>org.camunda.template-engines</groupId>
           <artifactId>camunda-template-engines-freemarker</artifactId>
       </dependency>
       <dependency>
           <groupId>org.camunda.bpm</groupId>
           <artifactId>camunda-engine-plugin-connect</artifactId>
       </dependency>
       <dependency>
           <groupId>org.camunda.connect</groupId>
           <artifactId>camunda-connect-http-client</artifactId>
       </dependency>
       <dependency>
           <groupId>org.springdoc</groupId>
           <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
           <version>2.0.2</version>
       </dependency>
   </dependencies>

Please let me know if we can connect via a call next week incase you need to take a deeper look into the project file. We will try to fix this by then

Have you adapted your Keycloak URLs accordingly?
Example: if you take the SSO example as is and want to move the application root from /camunda to / you would have to do the following on localhost:
application.yaml:

Keycloak:

That's all. The WebAppSecurityConfig remains the same, because URLs are relative to Spring's servlet.context-path.

Btw: your WebAppSecurityConfig misses .oauth2Login(withDefaults()). It's not deprecated in spring-security-config:6.3.3
If you use newer versions you should have a look into Spring Security on how to migrate.

authors: JetTorres VonDerBeck srikar1234


text:
ZeebeSimpleMonitorApp start with error

Hi~
I just did a build with the latest source code by maven command: mvn clean install. The building process is fine but when I started the Springboot application (io.zeebe.monitor.ZeebeSimpleMonitorApp), I got the following errors.

I tried rolling back the code and found that the errors occur after the below merge pull request (update zeebe-bom from 8.1.9 to 8.2.0). When I checkout code before this, everything is OK.

Any suggestions? Thanks a lot!
Environment and Configuration:

OpenJDK 17+
Zeebe Broker : 8.3.0-SNAPSHOT with the latest code. Building from source code and start with standalone mode.
Exporter: zeebe-hazelcast-exporter-1.4.1-SNAPSHOT-jar-with-dependencies
application.yaml: default

I am facing the same issue. What version of Maven are you using? I could circumvent the issue by reverting back to Maven 3.8.8 from 3.9.

circumvent

My Maven version is 3.8.6.

I am facing the same issue. What version of Maven are you using? I could circumvent the issue by reverting back to Maven 3.8.8 from 3.9.

My Maven version is 3.8.6.

I am facing the same issue. What version of Maven are you using? I could circumvent the issue by reverting back to Maven 3.8.8 from 3.9.

My Maven version is 3.8.6.

Looks like I still get this error when I start up the application. But the Maven downgrade got rid of the unit test execution getting stuck and printing a similar error.

@hudishaun I believe this issue still persists as there has been no approval to the Zeebe Hazelcast Connector bump PR that fixes this issue.

authors: hudishaun jaakkoraut


text:
Try FLAML as a Baseline model

https://microsoft.github.io/FLAML/

Done

authors: Favourj-bit cannin


text:
🛑 Ubuntu.com CVE list is down

In 4fc5a9c, Ubuntu.com CVE list (https://ubuntu.com/security/cve) was down:

HTTP code: 503
Response time: 5104 ms

Resolved: Ubuntu.com CVE list is back up in 2d9b00b.

repo: canonical-web-and-design/upptime


text:
Set proxy_env_vars in OpenStackRunnerManager

Applicable spec: n/a
Overview
Set proxy_env_vars in OpenStackRunnerManager
Rationale
to provide outside-world access. Follow-up of https://github.com/canonical/github-runner-operator/pull/351
Juju Events Changes

Module Changes

Library Changes

Checklist

[x] The charm style guide was applied
[x] The contributing guide was applied
[x] The changes are compliant with ISD054 - Managing Charm Complexity
[x] The documentation is generated using src-docs
[x] The documentation for charmhub is updated.
[x] The PR is tagged with appropriate label (urgent, trivial, complex)

Do you plan to unit test the change?

I am in general in favour of having unit tests, but this module has been explicitly disabled for coverage (https://github.com/canonical/github-runner-operator/blob/main/pyproject.toml#L15), and this is more of a bug fix for https://github.com/canonical/github-runner-operator/pull/351, so I am not sure its worth introducing a unit test for this small change.

repo: canonical/github-runner-operator


text:
Resources not owned by the charm's application may be deleted

Resources which weren't added by a charm using this library may delete resources created by another charm if they are of the same type, in the same namespace, and have the same name.
In an effort to prevent unintentionally deleting the resources during a scrub or charm tear-down -- the lib should only delete kubernetes resources this application has created

Resolved by #30

repo: canonical/ops-lib-manifest


text:
Add ca-certificates

Needed for https://github.com/canonical/prometheus-k8s-operator/issues/521.

When we merge, is CI going to overwrite the image using a previously existing tag?
@lucabello

repo: canonical/prometheus-rock


text:
test-branch/execute-job/wrong-commit-sha-on-pr/a6a40de3-01c0-4cd5-8cd7-4d9fe3f27539

PR for testing 986db19c8f62b0e2d1d7db553342c812f9b53478

/canonical/self-hosted-runners/run-workflows 931ad21dd9ace68aaa0a7d341e94de96ad93fa6b

repo: canonical/repo-policy-compliance-tests


text:
Update observability libs

Description
Update observability libs
Merge into

[x] track/1.15 (release KF v1.7)
[x] main

Completed.

repo: canonical/seldon-core-operator


text:
huginn on digitalocean coreOS

on the digitalocean coreOS stable version (835.9.0) which is the lightest weight OS option digitalocean offers and comes with docker already set up:
after running docker run -it -p 3000:3000 cantino/huginn:
result:
Bundled gems are installed into ./vendor/bundle. 2016-01-13 17:19:02,051 CRIT Set uid to user 0 2016-01-13 17:19:02,052 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing 2016-01-13 17:19:02,052 WARN Included extra file "/etc/supervisor/conf.d/bootstrap.conf" during parsing 2016-01-13 17:19:02,052 WARN Included extra file "/etc/supervisor/conf.d/foreman.conf" during parsing 2016-01-13 17:19:02,081 INFO RPC interface 'supervisor' initialized 2016-01-13 17:19:02,082 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2016-01-13 17:19:02,082 INFO supervisord started with pid 1 2016-01-13 17:19:03,086 INFO spawned: 'stdout' with pid 690 2016-01-13 17:19:03,092 INFO spawned: 'bootstrap' with pid 691 2016-01-13 17:19:03,119 INFO success: bootstrap entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2016-01-13 17:19:03,347 INFO exited: bootstrap (exit status 2; not expected) 2016-01-13 17:19:04,350 INFO success: stdout entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) bootstrap stdout | DATABASE_HOST= bootstrap stdout | error: <class 'socket.error'>, [Errno 111] Connection refused: file: /usr/lib/python2.7/socket.py line: 224

FWIW, same result with CoreOS 877.1.0 (beta)

@dsander, does your Docker upgrade fix this?

@cantino This looks like an issue with supervisord, so I guess the dsander/huginn-single-process image would work.
@wasafiri Do you have experience with coreOS? I am a bit confused because the same image id works perfectly fine on boot2docker and ubuntu. Does coreOS do anything special/different then "normal" distributions?

@dsander I haven't any experience with CoreOS, trying it because with Debian on DigitalOcean Huginn maxes out memory on a 512mb droplet almost right away. CoreOS, which is more lightweight, seems like a good candidate for getting Huginn running on a 512mb droplet.
Gave the dsander/huginn-single-process image a try, I get this error with coreOS:
Bundled gems are installed into ./vendor/bundle.  #<Mysql2::Error: Can't connect to MySQL server on 'your-domain-here.com' (4)> Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8mb4", "reconnect"=>true, "database"=>"huginn_development", "pool"=>10, "username"=>"root", "password"=>"password", "host"=>"your-domain-here.com", "port"=>3306, "socket"=>"/tmp/mysql.sock", "strict"=>false}, {:charset=>"utf8mb4"} (If you set the charset manually, make sure you have a matching collation)

@wasafiri That is true, the 512mb RAM will be tight fit for Huginn, but it should work as long as you don't have too many agents.
The huginn-single-process image does not include mysql. Check out the manual startup and linking example, keep in mind the containers will not be deamonized, but you can add the -d flag to the docker run command (make sure to put it before the image name).
I would recommend docker-compose, but it looks like it's not installed on coreOS per default.

@dsander Unfortunately with 512mb it doesn't work at all -- it runs out of memory literally as the install process finishes, before any agents are set.
I'll keep trying with huginn-single-process and will see if I can get docker-compose running on coreOS.

I was able to get docker-compose installed on coreOS but docker-compose up resulted in MySQL failing to initialize due to lack of memory. So, it seems 512mb doesn't work with coreOS, either.
For what it's worth, the only hurdle I had was needing to modify the docker-compose.yml as it seems dashes and underscores are disliked:
Invalid service name "huginn_web" - only [a-zA-Z0-9] are allowed
Modifying huginn_web and huginn_threaded to huginnweb and huginnthreaded got me past that error.

Invalid service name "huginn_web" - only [a-zA-Z0-9] are allowed

Are you running docker-compose < 1.4? With 1.4 compose should support the underscore.
It did some local tests and the mysql container allocates a lot of memory by default:
CONTAINER                         CPU %               MEM USAGE / LIMIT
singleprocess_huginn_threaded_1   0.13%               159.9 MB / 4.143 GB
singleprocess_huginn_web_1        0.00%               227.8 MB / 4.143 GB
singleprocess_mysql_1             0.06%               218 MB / 4.143 GB

So it might be possible to run on coreOS when you restrict/tweak the memory usage for mysql but I don't think it will be fun, especially because huginn will need more RAM when you run a few agents.

@dsander i installed docker-compose 1.5.2.
Thanks for looking into memory usage -- seems 1GB is the practical minimum for me, as I have ~40 agents.

authors: cantino dsander wasafiri

repo: cantino/huginn


text:
Problem handling accessing IWindowManager in ViewModel

VS 2019 Project, MVVM pattern, data model using EntityFrameworkCore, WPF UI, .Net Core 3.1.  When I add IWindowManager windowManager in the constructor of my view model, I keep getting error at runtime I am having problems resolving.  I am painfully new to WPF/MVVM/#C but 25+ years WinForms VB/VB.Net:
using Stylet;
using LibraryModels.Model;
using System.Collections.ObjectModel;
using System.Linq;
using System.Diagnostics;
using System.Windows.Controls;

namespace Library2020.ViewModel
{
    class LookupsViewModel : Screen
    {

        private readonly IWindowManager windowManager;`

        public LookupsViewModel(IWindowManager windowManager)
        {
            this.windowManager = windowManager;

            this.Initialize();
        }

          private void Initialize()
        {

            // Initialize commands

            //Load data
            this.LoadData();

        }

        public void TopicSelected(object sender, SelectionChangedEventArgs e)
        {

            windowManager.ShowMessageBox("Sample",
                "Sample",
                System.Windows.MessageBoxButton.OK,
                System.Windows.MessageBoxImage.Information);

        }
}

What is the error you get?

Thank you for the response, here is the whole blurb:
System.Reflection.TargetInvocationException
HResult=0x80131604
Message=Exception has been thrown by the target of an invocation.
Source=System.Private.CoreLib
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Stylet.ViewManager.InitializeView(UIElement view, Type viewType) in //Stylet/ViewManager.cs:line 331
at Stylet.ViewManager.CreateViewForModel(Object model) in //Stylet/ViewManager.cs:line 315
at Stylet.ViewManager.CreateAndBindViewForModel(Object model) in //Stylet/ViewManager.cs:line 224
at Stylet.ViewManager.CreateAndBindViewForModelIfNecessary(Object model) in //Stylet/ViewManager.cs:line 211
at Stylet.WindowManager.CreateWindow(Object viewModel, Boolean isDialog, IViewAware ownerViewModel) in //Stylet/WindowManager.cs:line 163
at Stylet.WindowManager.ShowWindow(Object viewModel, IViewAware ownerViewModel) in //Stylet/WindowManager.cs:line 102
at Stylet.WindowManager.ShowWindow(Object viewModel) in //Stylet/WindowManager.cs:line 92
at Stylet.BootstrapperBase.DisplayRootView(Object rootViewModel) in //Stylet/BootstrapperBase.cs:line 100
at Stylet.Bootstrapper`1.Launch() in //Stylet/Bootstrapper.cs:line 92
at Stylet.BootstrapperBase.Start(String[] args) in //Stylet/BootstrapperBase.cs:line 81
at Stylet.BootstrapperBase.b__9_0(Object o, StartupEventArgs e) in /_/Stylet/BootstrapperBase.cs:line 48
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at Library2020.App.Main()
This exception was originally thrown at this call stack:
System.DefaultBinder.BindToMethod(System.Reflection.BindingFlags, System.Reflection.MethodBase[], ref object[], System.Reflection.ParameterModifier[], System.Globalization.CultureInfo, string[], out object)
MS.Internal.Xaml.Runtime.DynamicMethodRuntime.CreateInstanceWithCtor(System.Type, object[])
MS.Internal.Xaml.Runtime.DynamicMethodRuntime.CreateInstanceWithCtor(System.Xaml.XamlType, object[])
MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(System.Xaml.XamlType, object[])
MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.CreateInstance(System.Xaml.XamlType, object[])
System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(MS.Internal.Xaml.Context.ObjectWriterContext)
System.Xaml.XamlObjectWriter.WriteEndObject()
System.Xaml.XamlWriter.WriteNode(System.Xaml.XamlReader)
System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, bool, bool, bool, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack<System.Windows.Markup.WpfXamlFrame>, System.Windows.Markup.IStyleConnector)
System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, bool, object, System.Xaml.XamlObjectWriterSettings, System.Uri)
...
[Call Stack Truncated]
Inner Exception 1:
NullReferenceException: Object reference not set to an instance of an object.

Something in your view's InitializeComponent method is throwing a NullReferenceException. Nothing to do with MVVM, Stylet, or IWindowManager I'm afraid.

Thanks again.  If I remove model constructor:
public LookupsViewModel(IWindowManager windowManager)
then, use an empty constructor:
public LookupsViewModel()
Comment the following out of the constructor:
 //this.windowManager = windowManager;
And remove the following out of a method in my ViewModel:
            //windowManager.ShowMessageBox("Sample",             //    "Sample",             //    System.Windows.MessageBoxButton.OK,             //    System.Windows.MessageBoxImage.Information);
Everything then works.  But, I am without WindowManager features I need such as ShowMessageBox and the ability to show modal and non-modal dialogs.
Would appreciate any thoughts.
Shane

I'd:

Tell VS to break when NRE's are thrown, and see what exactly is throwing it
Just comment out the line windowManager.ShowMessageBox(...), see if that helps
Put a breakpoint in TopicSelected, see whether it's being called from InitializeComponent

Is there any other relevant code which you haven't shown?

The exception is very definitely being thrown as a result of loading XAML, though

Very strange, thank you very much Antony.  Will try that and see where it gets me.
Shane

Antony, thank you for setting on the right track.  I thing I was mixing my methodologies a bit.  I removed the following from my XAML:
`
<Window.DataContext>
ViewModel:LookupsViewModel/
</Window.DataContext>
I also removed an attribute from the Window XAML that did not apply in this particular case:
WindowStartupLocation="CenterOwner"
`
Now everything is working as expected.  I just need to do much more reading on IoC, Actions, Commands.
Thank you for your improvement of the Caliburn Micro framework.  I stumbled onto your work while searching for a 'working' framework for .Net Core 3.1.
Cheers
Shane

Glad you solved it! It's odd that <ViewModel:LookupsViewModel/> would throw an NRE, but there you have it I guess.

I think it threw that because there was no parameter-less constructor only the LookupsViewModel(IWindowManager windowManager) version
Shane


text:
How should discovery take?

Hi, i installed Synctrayzor yesterday and added a device. But neither SyncTrayzor or the new devive shows that a a device is trying to sync a new folder. I tried Host  > Android device and Host > Raspberry Pi.
Both RPi en Android don't notice a difference.
I also tried the other way around adding a the "host" on Android and RPi.
I installed synctrayzor using the windows x64 installer to default location.
I am running Windows 8.1 x64.

Hi,
SyncTrayzor is a wrapper around Syncthing. Please either open an issue with Syncthing or post on their forums. I'll make this more clear on the README.
Thanks!

Will do!


text:
Issues about running gan_toy.py

Hi,
I'm trying running the gan_toy.py without any modifications. I use the master version of pytorch after commit #1507. However, there are some errors when I am running the code,
`Traceback (most recent call last):
File "gan_toy.py", line 270, in
gradient_penalty.backward()
File "/usr/local/lib/python2.7/dist-packages/torch/autograd/variable.py", line 145, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, retain_variables)
File "/usr/local/lib/python2.7/dist-packages/torch/autograd/init.py", line 98, in backward
variables, grad_variables, retain_graph)
File "/usr/local/lib/python2.7/dist-packages/torch/autograd/function.py", line 90, in apply
return self._forward_cls.backward(self, args)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/_functions/linear.py", line 23, in backward
grad_input = torch.mm(grad_output, weight)
File "/usr/local/lib/python2.7/dist-packages/torch/autograd/variable.py", line 531, in mm
return self._static_blas(Addmm, (output, 0, 1, self, matrix), False)
File "/usr/local/lib/python2.7/dist-packages/torch/autograd/variable.py", line 524, in _static_blas
return cls.apply((args[:1] + args[-2:] + (alpha, beta, inplace)))
File "/usr/local/lib/python2.7/dist-packages/torch/autograd/_functions/blas.py", line 24, in forward
matrix1, matrix2, out=output)
TypeError: torch.addmm received an invalid combination of arguments - got (int, torch.cuda.ByteTensor, int, torch.cuda.ByteTensor, torch.cuda.FloatTensor, out=torch.cuda.ByteTensor), but expected one of:

(torch.cuda.ByteTensor source, torch.cuda.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
(torch.cuda.ByteTensor source, torch.cuda.sparse.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
(int beta, torch.cuda.ByteTensor source, torch.cuda.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
(torch.cuda.ByteTensor source, int alpha, torch.cuda.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
(int beta, torch.cuda.ByteTensor source, torch.cuda.sparse.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
(torch.cuda.ByteTensor source, int alpha, torch.cuda.sparse.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
(int beta, torch.cuda.ByteTensor source, int alpha, torch.cuda.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
didn't match because some of the arguments have invalid types: (int, torch.cuda.ByteTensor, int, torch.cuda.ByteTensor, torch.cuda.FloatTensor, out=torch.cuda.ByteTensor)
(int beta, torch.cuda.ByteTensor source, int alpha, torch.cuda.sparse.ByteTensor mat1, torch.cuda.ByteTensor mat2, *, torch.cuda.ByteTensor out)
didn't match because some of the arguments have invalid types: (int, torch.cuda.ByteTensor, int, torch.cuda.ByteTensor, torch.cuda.FloatTensor, out=torch.cuda.ByteTensor)`

I'm wondering whether you have any ideas about the causes of this problem.
Thanks.

Sorry, this is one of bug existing in pytorch.
So I can give you an fix to make this error clear.
You can change the source code, and recompile it. This error will be clear.
torch/nn/_functions/thnn/activation.py

         else:
+            mask = input > ctx.threshold
+            grad_input = mask.type_as(grad_output) * grad_output
-            grad_input = grad_output.masked_fill(input > ctx.threshold, 0)
         return grad_input, None, None, None

It seems working now. Thanks for your help!

authors: caogang yscacaca

repo: caogang/wgan-gp


text:
nodeunit should catch exceptions and report them as failures

right now if a test throws an exception, the process just exits.

Dealbreaker for me - uncaught exceptions are gonna be everywhere, tests need to be able to catch them.

authors: christophsturm kellenp

repo: caolan/nodeunit


text:
Changelog entries for "create"/"delete" and numeric values of 0 are not created

Hi,
currently if a numeric field is enabled to be change tracked, and a value of "0" is provided for that the field, it is available until the following point in the code, but will be skipped and not inserted into the changelog table.
https://github.com/cap-js/change-tracking/blob/e4cef968bd972064a84bd0daf58a70d34a8ef195/lib/change-log.js#L489
I expect the same thing will happen if "" is passed for a String field.
Regards,
Ludwig

Hello @stockbal
The fix has been merged into main branch, it will be available at next release. So I'll close this issue, if you have question you can reopen it.
Best Regards,
Wenjun

repo: cap-js/change-tracking


text:
fix: //[!code focus] -> // [!code focus] for proper highlighting

There are many places that are missing a space, leading to no highlighting.

Sorry, missed this PR :(

Sorry, missed this PR :(

Don't worry. I'm glad it's fixed on main now 😄

authors: bugwelle renejeglinsky

repo: cap-js/docs


text:
Enable flash

The application that we're building now is actually for lorry drivers, and they need to scan a QR code on a document.
They always reported that it is very difficult for them to scan at night as the light source is very low.
Is there by any chance that we can enable/on the flash while scanning?
If it is already implemented, can anyone please guide me on how to do it cause I can't find anywhere regarding the flash in the documentation.
If it is not yet implemented, is there any plan to implement it?
Thanks in advance guys. Really appreciate it.

Thank you so much for the quick reply.
I've implemented it and it is working perfect!
Was searching high and low for the documentation about this. 😂
Thanks again for your help.

repo: capacitor-community/barcode-scanner


text:
Errors When Installing SQLiteHook

Describe the bug
Error when installing sqlite hook with "@capacitor-community/sqlite": "^3.5.1-1" in React Ionic
To Reproduce
Steps to reproduce the behavior:
npm i --save-dev react-sqlite-hook@latest
Expected behavior
no errors
$ npm i --save-dev react-sqlite-hook@latest
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: nextjs-tailwind-capacitor@0.1.0
npm ERR! Found: @capacitor-community/sqlite@3.5.1-1
npm ERR! node_modules/@capacitor-community/sqlite
npm ERR!   @capacitor-community/sqlite@"^3.5.1-1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor-community/sqlite@"^3.0.0" from react-sqlite-hook@2.1.8
npm ERR! node_modules/react-sqlite-hook
npm ERR!   dev react-sqlite-hook@"2.1.8" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Local\npm-cache_logs\2022-05-17T06_30_33_439Z-debug-0.log

@rakibul111 fix by removing the peer-dependencies.

@jepiqueau I don't know how to remove peer-dependencies

@rakibul111 remove the node_modules folder and the package-lock.json modified the package.json file to have the latest version of both @capacitor-community/sqlite and react-sqlite-hook and do npm install. This should work

@rakibul111 this has been fixed with react-sqlite-hook@2.1.12

authors: jepiqueau rakibul-dit rakibul111

repo: capacitor-community/sqlite


text:
Fix issue of loading data labeler multiple times

will reduce memory usage for new model graph
reduce running time for populating new graph
fix issue https://github.com/capitalone/DataProfiler/issues/63

Clearly there are still issues, but thus far this change is 50%.
I ran cProfiler on both the main and @AnhTruong branch using the following:
https://gist.github.com/lettergram/d8f7d9f3d19856d4a0187462445382a0
Master repo:
         33013991 function calls (30305353 primitive calls) in 20.547 seconds

   Ordered by: cumulative time
   List reduced from 9981 to 20 due to restriction <20>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000   20.656   20.656 cprofile_test.py:81(Profile)
        1    0.000    0.000   20.656   20.656 profile_builder.py:309(__init__)
        1    0.000    0.000   20.650   20.650 profile_builder.py:456(update_profile)
        1    0.000    0.000   20.606   20.606 profile_builder.py:492(_update_profile_from_chunk)
       10    0.001    0.000   20.606    2.061 profile_builder.py:29(__init__)
       30    0.000    0.000   19.729    0.658 column_profile_compilers.py:18(__init__)
       30    0.002    0.000   19.729    0.658 column_profile_compilers.py:31(_create_profile)
       10    0.000    0.000   12.471    1.247 data_labeler_column_profile.py:14(__init__)
       10    0.000    0.000   12.469    1.247 data_labelers.py:73(__new__)
       10    0.000    0.000   12.469    1.247 base_data_labeler.py:23(__init__)
       10    0.000    0.000   12.469    1.247 base_data_labeler.py:518(_load_data_labeler)
       10    0.000    0.000   12.464    1.246 base_data_labeler.py:459(_load_model)
       10    0.000    0.000   11.179    1.118 character_level_cnn_model.py:253(load_from_disk)
       10    0.052    0.005   11.073    1.107 save.py:160(load_model)
       10    0.001    0.000   10.889    1.089 load.py:97(load)
       10    0.000    0.000    8.712    0.871 load.py:671(load_partial)
       10    0.000    0.000    8.711    0.871 load.py:862(load_internal)
       10    0.003    0.000    8.582    0.858 load.py:122(__init__)
       10    0.076    0.008    6.533    0.653 function_deserialization.py:294(load_function_def_library)
      180    0.001    0.000    6.445    0.036 base_column_profilers.py:77(wrapper)

Anh's fork:
         21868307 function calls (19369223 primitive calls) in 9.962 seconds

   Ordered by: cumulative time
   List reduced from 9955 to 20 due to restriction <20>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000   10.068   10.068 cprofile_test.py:81(Profile)
        1    0.000    0.000   10.068   10.068 profile_builder.py:311(__init__)
        1    0.000    0.000   10.063   10.063 profile_builder.py:458(update_profile)
        1    0.000    0.000   10.017   10.017 profile_builder.py:498(_update_profile_from_chunk)
       10    0.001    0.000   10.017    1.002 profile_builder.py:30(__init__)
       30    0.000    0.000    9.150    0.305 column_profile_compilers.py:18(__init__)
       30    0.002    0.000    9.150    0.305 column_profile_compilers.py:31(_create_profile)
      180    0.001    0.000    5.868    0.033 base_column_profilers.py:77(wrapper)
       10    0.000    0.000    4.721    0.472 data_labeler_column_profile.py:275(update)
       10    0.035    0.003    4.717    0.472 data_labeler_column_profile.py:230(_update_predictions)
       10    0.016    0.002    4.663    0.466 base_data_labeler.py:250(predict)
       10    0.001    0.000    2.688    0.269 data_processing.py:1417(process)
2263330/530    1.254    0.000    2.535    0.005 copy.py:132(deepcopy)
 5959/530    0.010    0.000    2.534    0.005 copy.py:236(_deepcopy_dict)
       10    0.000    0.000    2.474    0.247 data_labeler_column_profile.py:15(__init__)
        1    0.000    0.000    2.473    2.473 data_labelers.py:73(__new__)
        1    0.000    0.000    2.473    2.473 base_data_labeler.py:23(__init__)
        1    0.000    0.000    2.473    2.473 base_data_labeler.py:518(_load_data_labeler)
        1    0.000    0.000    2.472    2.472 base_data_labeler.py:459(_load_model)
 85413/40    0.541    0.000    2.443    0.061 copy.py:210(_deepcopy_list)

authors: AnhTruong lettergram

repo: capitalone/DataProfiler


text:
adding hourly functionality to mark-for-op

Solves for #2006

adding support to enable an hour based mark-for-op
adding support in marked-for-op to parse hourly
ec2 unittests for mark/marked

ugh... forgot to handle for the remaining mark-for-op that are naive datetime

@kapilt i should use utc instead of gmt?

yes please re utc, thanks

authors: joshuaroot kapilt

repo: capitalone/cloud-custodian