TypeError: Cannot read property 'getCurrentPosition' of undefined

Bug Report
What is expected to happen?
I wanted to get the data
What does actually happen?
Error in Success callbackId: Geolocation1100061559 : TypeError: Cannot read property 'getCurrentPosition' of undefined

processMessage failed: Error: TypeError: Cannot read property 'getCurrentPosition' of undefined

processMessage failed: Stack: TypeError: Cannot read property 'getCurrentPosition' of undefined
at win (./plugins/cordova-plugin-geolocation/www/android/geolocation.js:35:16)
at Object.callbackFromNative (./cordova.js:291:58)
at processAndroidEvent (./cordova.js:986:17)
at _class.<anonymous> (./cordova.js:1005:9)
at ./node_modules/tabris/tabris.min.js:1:27083
at _class.trigger (./node_modules/tabris/tabris.min.js:1:27247)
at _class.$trigger (./node_modules/tabris/tabris.min.js:1:63505)
at _class._trigger (./node_modules/tabris/tabris.min.js:1:63275)
at Tabris._notify (./node_modules/tabris/tabris.min.js:1:70355)

processMessage failed: Message: S01 Geolocation1100061559 sOK

Information

Code
 navigator.geolocation.getCurrentPosition(position => console.log(position), e => console.error(e));

 console.log(navigator.geolocation); returns the following
{ getCurrentPosition: [Function: getCurrentPosition],
watchPosition: [Function: watchPosition],
clearWatch: [Function: clearWatch] }

Version information
Cordova: Cordova 8.1.2, cordova-plugin-geolocation - master branch
Other Frameworks: Tabris.js 3.0.0
Android 8.1.0
Checklist

[x] I searched for existing GitHub issues
[x] I updated all Cordova tooling to most recent version
[x] I included all the necessary information above

You might already be doing this but... make sure you are only calling the API after the deviceready event fires.
If that doesn't help, then I'd suggest creating a minimal project that reproduces the issue. Instructions can be found here

You might already be doing this but... make sure you are only calling the API after the deviceready event fires.

In Tabris, all API requests are made after deviceready.

If that doesn't help, then I'd suggest creating a minimal project that reproduces the issue. Instructions can be found here

Should there be a Tabris framework in the minimal project? Or should I use pure Cordova?

If this works in pure Cordova, but not in Tabris, then this is probably more a issue for/of Tabris, right?

Should be pure Cordova. If the issue only happens in Tabris, it will probably be best to raise the issue with the Tabris team.

All right, I'll send the issue there. I was hoping you could tell me something here.

Yeah, problem on Tabris side. Thx, guys

Thanks for the update @fax1ty!
Tabris is pretty interesting by the way, especially that they still use Cordova plugins although the UI is fully native seems interesting.


Using maxEventCount with (only) all day events drops the wrong events

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I have a calendar that contains only fall day events of national holidays here in germany ( http://i.cal.to/ical/65/bayern/feiertage/ef570601.d382ba80-b11081be.ics ). As I only want to see the next e.g. 3 upcoming holidays, I'm using (maxDaysToShow: 180 and maxEventCount: 3).
After debugging i little bit through the code, it seems the the already correctly sorted events are mixed up and finally the wrong events get dropped...
Current Output (with maxEventCount: 3):

Current Output (without maxEventCount):

Expected behaviour
I would expect that the events will be limited according the expected sort order
Steps To Reproduce
Sorting in https://github.com/totaldebug/atomic-calendar-revive/blob/5b70a35bc170906c0d6eb572d263b129fde80152/src/functions/sort_events.ts#L33 is done as expected (as of today it's 8 events in the correct order based on event start
afterwards the all day events get into reverse order in https://github.com/totaldebug/atomic-calendar-revive/blob/5b70a35bc170906c0d6eb572d263b129fde80152/src/functions/sort_events.ts#L42 due to the decrementing loop
and then the all day events get reordered here, now they aren't ordered by start time anymore: https://github.com/totaldebug/atomic-calendar-revive/blob/5b70a35bc170906c0d6eb572d263b129fde80152/src/functions/sort_events.ts#L48
(as I'm not to deep in all the details of the code and especially this all day event sorting, I'm not sure whether there is also a typo in https://github.com/totaldebug/atomic-calendar-revive/blob/5b70a35bc170906c0d6eb572d263b129fde80152/src/functions/sort_events.ts#L50 , comparing entity_id with entity?
and finally those reordered all day events go back into the events list in that new order here:
https://github.com/totaldebug/atomic-calendar-revive/blob/5b70a35bc170906c0d6eb572d263b129fde80152/src/functions/sort_events.ts#L63
Mode
Both
Card Version
9.2.1
Home Assistant Version
2023.12.4
Configuration
type: custom:atomic-calendar-revive
name: Feiertage
enableModeChange: true
entities:
  - entity: calendar.feiertage
    showMultiDay: true
    maxDaysToShow: 180
disableCalLink: true
disableCalLocationLink: true
disableCalEventLink: true
showDescription: false
showWeekDay: true
showMonth: true
disableEventLink: true
showCalendarName: true
maxDaysToShow: 180
maxEventCount: 3
showLocation: false
showRelativeTime: false
europeanDate: true
showHiddenText: false
showAllDayHours: false
offsetHeaderDate: false
showProgressBar: false
dimFinishedEvents: true

Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

I have this problem as well. Any workaround?

Same. Still with 9.3.0.

This should now be resolved on the latest Beta, Please test and let me know how it works out then I will release.

Hi!
Thanks for your work! Unfortunately, the error persists despite the beta, as soon as I remove maxDaysToShow.

For me it is not working with Beta 3 as well :(

@h3rbst what are you seeing that is incorrect?
Have you made sure the old version of the card is still not cached?

Hi!
Thanks for your work! Unfortunately, the error persists despite the beta, as soon as I remove maxDaysToShow.

What are you seeing that is incorrect as I cant replicate an issue with all day events being in the wrong order anymore?
Do you have a copy of your card config that could assist me in testing?

@h3rbst what are you seeing that is incorrect?
Have you made sure the old version of the card is still not cached?

I am sure, that cache is cleared, yes.
Here you see the configuration, how it looks like and what the calendar looks like.
E.g. the dates of 25.03. and 28.03. are missing.
With maxDaysToShow: 14 they are shown.

@h3rbst ok and those events are from a different calendar?

Ok thanks ill look into that, I only tested across one of my calendars so will test with two now

Yes, I also have multiple calendars. 😃

I have done more testing this morning and im unable to reproduce an issue with the sorting since adding the fix:

Thank you very much!


Prefer withVaList over getVaList

getVaList introduces needless autorelease, and should go away eventually

@swift-ci Please test and merge

@swift-ci test

@swift-ci Please test and merge

macOS succeeded, Linux had a strange issue during the LLDB build, retrying:
@swift-ci Please test Linux platform

@swift-ci Please test Linux platform

Trying again (same problem again; sheesh)

@swift-ci Please test Linux platform


psrchive v2023-10-02

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Update to latest release version (2023-10-02).

Alright, seems to be working easily now!  I'll go ahead and merge this.


Do you have the plan to support other pose estimation model?

Hi, I'm from MMPose. Do you have the plan to use other pose estimation model like MMPose? We create an auxiliary tool for aigc here, which can generate both openpose-style and mmpose-style skeleton images, and has a much higher performance than openpose.

cool. please send a note to my private email<EMAIL_ADDRESS>using your email address linked with your github. i will invite you to project of controlnet 1.1 repo. are u student at cuhk mmlab?


[$500] Add Empty State Background To Tasks

We're missing the empty state background in Task reports. Follow up from https://github.com/Expensify/App/pull/27478
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01f8fb00801e6f1236
Upwork Job ID:<PHONE_NUMBER>769077248
Last Price Increase: 2023-10-04

not overdue

@aimane-chnaif making external

Proposal
Please re-state the problem that we are trying to solve in this issue.
Add empty state background for tasks report
What is the root cause of that problem?
We do not have that logic currently in the TaskView component.
What changes do you think we should make in order to solve the problem?
Replicate the same logic in TaskView component View what we have for MoneyRequestView component for showing the background image.
https://github.com/Expensify/App/blob/24aa7c12c269796008f6a96ae153fbd8ced5b43b/src/components/ReportActionItem/MoneyRequestView.js#L139-L141
https://github.com/Expensify/App/blob/24aa7c12c269796008f6a96ae153fbd8ced5b43b/src/components/ReportActionItem/TaskView.js#L56

Thanks, I will check and update based on that.

@aimane-chnaif I have updated the proposal a bit and here are the screencasts.
https://github.com/Expensify/App/assets/14358475/7fa50e19-2b53-4290-802d-6cc4578be147
https://github.com/Expensify/App/assets/14358475/79244bfe-2e9c-4ca8-8f56-79e6366e1e4c

Yes @aimane-chnaif

Yes @aimane-chnaif, currently it seems to be an issue for scrolling which either fix with https://github.com/Expensify/App/pull/29102/files#diff-0ce28fbd4cc98192907f355be9190ce12783cc8d13e0d1b9e183fa67eab7df0cL44 otherwise needs a bit updation for the structure.
<View style={[StyleUtils.getReportWelcomeContainerStyle(props.isSmallScreenWidth), StyleUtils.getMinimumHeight(CONST.EMPTY_STATE_BACKGROUND.MONEY_REPORT.MIN_HEIGHT)]}>
    <AnimatedEmptyStateBackground />
    <View style={[StyleUtils.getReportWelcomeTopMarginStyle(props.isSmallScreenWidth)]}>
        <TaskView

@aimane-chnaif could I get an update on this?

@aimane-chnaif @grgia  as the other PR is merged, the scrolling issue won't occur now with my proposal.
https://github.com/Expensify/App/assets/14358475/8c3b7682-fb9a-47ed-9bce-be5fade1bba0

Assigned @Pujan92 !

@Pujan92 what is ETA?

Working on it and will raise a PR within an hour.

@aimane-chnaif I think this was fixed and we can close

Summarizing payment on this issue:

Issue reporter: N/A
Contributor: @Pujan92 $500, paid via Upwork
Contributor+: @aimane-chnaif, to pay via Upwork

Upwork job is here, [X] bonus is included on final payout
@aimane-chnaif can you please complete the BZ checklist above? Once completed I will issue payment. Thanks!

Sounds good to me - all paid !


Transition 'app.css' to webpack

This PR transitions all css under the app.css bundle to scss files compiled by Webpack.
Testing Plan:
Tested app pages and external pages to make sure CSS is still loading.
GIFs or Screenshots:

@armaanahluwalia is there a reason to move all these files to an scss subdirectory under static/styles?  It seems like that has the downside of adding an extra directory layer, and I don't really see an upside.

@timabbott Yes you're probably right. Makes sense for now to ditch the scss directory since we don't have that much going on.

Hey @timabbott . Fixed the files based on your comments as well as the failing test. I would like to get #9290 merged in before this PR so I can fix up the remaining .css files to .scss as well.
Thanks @priyankp10 for help with testing.
A small note: We are seeing the flash of unstyled content on the app page as is expected with style-loader but also seeing a message to reload the browser for a brief couple of seconds. Would like to know your thoughts on this and whether it would be a significant development intrusion or possible ways to fix.

Yeah, as I mentioned on chat.zulip.org, I think the current style loading situation is unacceptable as the default for development (because it creates some random scrolls, etc., making it impossible to debug the home feed loading situation...).  So I think we need to make hot-module-reloading an option, where we can document it with a warning, or figure out how to fix the underlying unstyled-flashes bug.

@timabbott Fixed up the issue with unstyled content at the beginning of page load using css-hot-loader to re-enable HMR in combination with mini-css-extract-plugin. Also transitioned the remaining portico styles to .scss format. I believe this branch should be ready to merge. Let me know if you see anything else.

(The HMR stuff works great for me; I'm super excited to have that for much of our site; we should get the rest migrated so that there isn't this weird transitional state where some things hot-reload and others don't)


[Cogs Face] Align with latest released version of Face API with  feature of multiple recognition models.

(I am one of the main devs working on Face API and Face containers.)
This is to align Face API swaggers with latest published version with Multiple Recognition Model features. (rollout started on March 13rd and will complete on March 18th)

We have locally generated AutoRest .NET SDK and written tests to ensure all functionalities work.
This should also generate the documentation for both Azure REST API Reference and Face .NET SDK documentation.

Hopefully this review can take short time and catch our rollout timeline, thanks!
Note: This PR has

Added a parameter to existing API interfaces.
Added a new field in API response json schema.

I understand this will be a breaking change from SDK perspective while at least this will not affect existing SDK users before they upgrade to latest SDK version. We have asked an exception from Azure API Review Board for this.
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[x] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-python

Automation for azure-sdk-for-js

@johan can help explain more on this and I would appreciate if you could kindly offer us a sign-off from Azure API review's perspective, thanks.

Automation for azure-sdk-for-node

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

startbuild

startbuild

startbuild

startbuild

Automation for azure-sdk-for-net
A PR has been created for you:
https://github.com/azure/azure-sdk-for-net/pull/5457
.NET SDK Commits:
https://github.com/adxsdknet/azure-sdk-for-net/pull/5457/commits/f316362680fdf098b98578867f70906d97860a9a

@lebronJ thanks a lot for the detailed comments at the top, since they answered several of my questions from the start :) the change looks good to me. I will add the potential-breaking-changes label so SDK owners know. Are the API changes deployed by now? If so, I can approve and merge this change.

@lebronJ thanks a lot for the detailed comments at the top, since they answered several of my questions from the start :) the change looks good to me. I will add the potential-breaking-changes label so SDK owners know. Are the API changes deployed by now? If so, I can approve and merge this change.

@veronicagg Thanks a lot for your quick review while our asking for exception to Azure API review is still on-going. Please hold on this a little bit and will let you know when we reach agreement on merging this.

This involves API design changes. Have you finished the API design review?

Hi @yangyuan , could you please first add a Do-Not-Merge label for this PR?
Actually we are now asking the API review board for exception and we are also applying some API interface changes for service side now upon the review comments. There will be changes for the Swagger after we finalize the implementation for service side and get review sign-off.
Will ping back this PR then.

@lebronJ would you prefer to close this PR and re-open when you're ready? you can tag me back when ready. Thanks!

@lebronJ would you prefer to close this PR and re-open when you're ready? you can tag me back when ready. Thanks!

Hi @veronicagg and @yangyuan, we have gotten the API review sign-off and I have forwarded it to Cognitive Services Experience Team and you two. Can we move forward to review and merge this as soon as possible (thanks), so that we can catch the dates of our roll out, along with the API reference updates, SDKs and samples?

@lebronJ would you prefer to close this PR and re-open when you're ready? you can tag me back when ready. Thanks!

Hi @veronicagg and @yangyuan, we have gotten the API review sign-off and I have forwarded it to Cognitive Services Experience Team and you two. Can we move forward to review and merge this as soon as possible (thanks), so that we can catch the dates of our roll out, along with the API reference updates, SDKs and samples?

Besides, could anyone please help remove the DoNotMerge label and reopen the PR of SDK changes? Let me know if any action needed from my side.

@AutorestCI regenerate azure-sdk-for-go


I am not able to compile the code and begin installation

I am facing issue in compiling the code and begin installation , As I am getting couldnot found Aes_Crypto.cs error. I checked the github history and found it was deleted. Please let me know how I an compile the code

The following issue is probably the case - Not sure about the state of the project though
https://github.com/Netflix/Fido/issues/12


The condition 'Total volume of all products' in a rule of a price matrix (shipping costs) does not get evaluated correctly

When using the condition 'Total volume of all products' in a rule of a price matrix for calculating the shipping costs, the shipping costs are not getting calculated correctly.
Environment:

PHP: 8.3
Shopware <IP_ADDRESS> / <IP_ADDRESS>

Steps to reproduce (based on a new installation):

Remove the express shipping method in order to have only one possible shipping method
Configure the standard shipping method:

Availability: Rule: Cart >= 0 (Payment)
Remove the default price matrix
Add a new price matrix (Condition: Always valid (Default))
Choose to use a custom rule and select "create new rule"
Create a new rule

Name: Volume
Priority: 100
Condition: Total volume of all products
Operator: Is lower than / equal
Value: 0.027 m³

Save that rule and assign it to the matrix. Set some price.

Go to the product "Main Product" and set the following specifications:

Width: 100 mm
Height: 90 mm
Length: 65 mm

Open the Storefront and add the configured product "Main Product" (Quantity: 1) to the cart.
The warning "The shipping method 'Standard' is blocked for your current shopping cart." will show up.

Expected result: The warning should not be displayed as the volume of the product (585.000 mm³ => 0,000585 m³) is less than the configured limit (0.027 m³) of the rule.
Actual result: The warning "The shipping method 'Standard' is blocked for your current shopping cart." shows up.

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-36510
[created from NEXT-36510, comment 514419]


Added Password Generator

This PR solves issue #42.
Demo Video
CODECANVAS.webm
Please review this PR.
Thanks

@cleveranu please review this PR.
Thanks


Schema validation issue on pattern mis-match

I have swagger yaml files which is having schems definition, properties with regex.
If there is an issue with json spec file then it thows an error like "is not valid under any of the given schemas" but doesnt show which specific properties having pattern match issue or something else.
Is there any way to show specific error like patter didnt match with that properties or something because its little difficult to parse long spec file which its not matching on generic error.
using below code to validate ..
    def set_defaults(validator, properties, instance, schema):
        if (('type' not in schema['properties']) or
                (('type' in instance) and (schema['properties']['type']['default'] == instance['type']))):

            for property, subschema in six.iteritems(properties):  # pylint: disable=redefined-builtin
                if 'default' in subschema:
                    instance.setdefault(property, subschema['default'])
        for error in validate_properties(validator, properties, instance, schema):
            yield error

    return jsonschema.validators.extend(validator_class, {'properties': set_defaults})

DefaultsEnforcingDraft4Validator = extend_with_set_default(Draft4RequestValidator)

Using connexion 2.6.0
openapi 3.0.0

Hi. Sorry you're having trouble.
Please have a read through the documentation on ValidationErrors which covers the information available for any error.
It sounds like you may want one of the things there and that you're dealing with some compound validator.
If you have further trouble, please ask on either the JSON Schema slack or StackOverflow so that we can keep the issue tracker for bugs or feature requests.


Proposal: remove Operation and store qubit ids in Gate

I think we should consider removing the Operation class and storing the qubits a Gate applies to directly in the gate instance. One problem with Operation is that we lose type information about the gate inside it, for example we made Operation support raising to a power for convenience, but this actually only works if the gate it contains is an extensible gate, so you might get a TypeError at runtime and mypy can't help. We also lose information about the roles of different qubits on a multi-qubit gate. For example, if we have CNOT.on(q0, q1), which of those is the target and which the control? If the CNOT gate constructor itself takes qubits as arguments we could do CNOT(control=q0, target=q1) and any code that comes across a CNOT gate will be able to see these qubit roles directly.
One thing we would lose by doing this is the ability to generically "remap" operations to different qubits, for example if an optimizer needs to move gates around. But we could add an abstract method on Gate to do this sort of generic remapping that would construct a new instance on different qubits to enable support for this.
Another thing I discussed with @Strilanc is that if gates are always applied to qubits, then there might be confusion about what the matrix for a known-matrix gate means. But I think having gates applied to qubits helps even here. If you ask a gate for its matrix, you can also ask it for the "basis" and it can give its list of qubits which (along with a tensor product convention) tells how to interpret the matrix. If you try to multiply matrices for two gates, that only makes sense if they have the same basis. Also, you could ask the qubit for its matrix in a different basis, so for example if I have gate = CNOT(control=q2, target=q5) I could ask for gate.matrix(basis=[q0, q1, q2, q3, q4, q5, q6, q7]).
One other thing I'll note is that the Gate/Operation split is not reflected in the protos; there the messages like ExpW contain the qubits they apply to as well as the other parameters. So unifying Gate and Operation in cirq would reduce some impedance mismatch with converting to/from protos (we might want to rename the Operation proto to Gate though).
I know this would be a large change but I think it would simplify things for users. Thoughts?

@Strilanc good to close

Second part is done but Operation still exists.
https://github.com/quantumlib/Cirq/blob/1e6436c136dbe94a62970fa64692d27ed8f919c8/cirq/ops/raw_types.py#L231
@Strilanc Considered done?

I consider this to be closed. We need Operation (unitary with specified qubits) because it is the fundamental thing circuits use, and we need Gate (unitary with unspecified qubits) because it's such as a common concept.

(nit nit operation is more than just unitary, gate is more a factory than a keeper of unitary)


python automated build ignores exceptions on ws.send

HKube micro-service
python-wrapper.hkube
Describe the bug
When an exception occurs in WebsocketClient.send it is swallowed and not propagated to the wrapper to fail the algorithm
Expected behavior
The algorithm should fail
kube-HPC/python-wrapper.hkube#1

https://github.com/kube-HPC/python-wrapper.hkube/commit/4d7d748323b5c8fecbf009889d3a9d39ad6fc2c9


Cloning a service that has sidekick redirects user to to Error page.

Server version - v0.43.0-rc2
Steps to reproduce the problem:
Create a service with 2 sidekicks.
Try to clone this service.
User is redirected to an error page.

Tested with UI from master build . Able to clone a service with sidekick successfully.


fix ignore duplicate deployment use case by set workflow to idle state

see Issue: https://github.com/Azure/iot-hub-device-update/issues/609

will be fixed by #659


Can't find libcufile.so.1

When trying to force the benchmark to run with GDS enabled I get the following error:

KVIKIO_COMPAT_MODE=0 python benchmarks/single-node-io.py

Traceback (most recent call last):
  File "/home/quasiben/Github/kvikio/python/benchmarks/single-node-io.py", line 401, in <module>
    main(args)
  File "/home/quasiben/Github/kvikio/python/benchmarks/single-node-io.py", line 307, in main
    read, write = API[api](args)
  File "/home/quasiben/Github/kvikio/python/benchmarks/single-node-io.py", line 28, in run_cufile
    kvikio.memory_register(data)
  File "/home/quasiben/miniconda3/envs/kvikio_dev/lib/python3.9/site-packages/kvikio/__init__.py", line 13, in memory_register
    return libkvikio.memory_register(buf)
  File "libkvikio.pyx", line 44, in kvikio._lib.libkvikio.memory_register
RuntimeError: libcufile.so.1: cannot open shared object file: No such file or directory

I  just installed CUDA 11.8 and confirmed I have libcufile.so:

/usr/local/cuda/lib64/libcufile.so -> libcufile.so.0

Additionally, during buliding kvikIO finds cuFILE:
cmake -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} ${CMAKE_EXTRA_ARGS} ..
-- The CXX compiler identification is GNU 9.5.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/quasiben/miniconda3/envs/kvikio_dev/bin/x86_64-conda-linux-gnu-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CUDAToolkit: /usr/local/cuda/include (found version "11.8.89")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found cuFile: /usr/local/cuda/lib64/libcufile.so
-- Configuring done

Should we also search for libcufile.so in addition to libcufile.so.1 ?

void* lib = load_library("libcufile.so.1");

Have we raised this with the GDS team offline?

Have we raised this with the GDS team offline?

Yes, they requirement using libcufile.so.0 or libcufile.so.
The problem with libcufile.so is that it might pick up a library stub.


see difference in what is played

Hi
I installed it at Domoticz.  and i see is something is playing, On etc..
But i cannot see if im watching a livestream or a movie
I want a trigger if im wachting a movie , so my light can be switch automatically blue. And when im watching livestream the lights should not be controlled

@NiekN,
The plugin shows what Kodi reports so I don't think I can do what you are asking.
I know the Kodi mis-reports when I stream internet radio (thinks it is video for some reason)
If you turn debug on for the plugin, do some streaming, and post the log I can see.

If im correctly this software is the same as "Kodi Mediaserver Support" which is standard hardware in domoticz?

The status at the picture "VIDEO" can be read.  But  what exaclty is not a variable. it would be nice if i can read what exactly is played . If it starts with NL for example it is IPTV . and when it end with (2016) of (2017) or (2018) it is a movie..

bump
Just trying to get the same thing working. My scripts are triggering if Audio changes to Video or similar. I need them to also get triggered, when e.g. a song change happens. The Event is shown in Domoticz log but the scripts are not triggered. Any chance to get the event mapped to do the trigger?


libmd compilation in Visual Studio

Added solution for compiling libmd.a without using makefiles.

So, why this pullrequest is still pullrequest? Any mistakes, disagrees with my code?

I need a bit of time to inspect and test it, it looks like to add a lot of specific VS files right ? is it possible to isolate (at best) them in a VS folder ?

They are all located in vstudio folder.

Ok, i will have a look on it soon so :)

Just updated to use SGDK v1.3.0 flags.


Bug report

Microsoft PowerToys version
0.41.3
Running as admin

[X] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce
just typed something I wanna search on my computer, then hit enter on the folder I was looking for and then this bug report pop-up showed up. Attaching the log file here:
2021-07-01.txt
✔ Expected Behavior
It was going to open a folder on my computer.
❌ Actual Behavior
After I hit enter on the folder that I wanted to open, this bug report pop-up appeared,
Other Software
No response

Issue is a duplicate
Thank you for your issue! We've linked your report against another issue  #11898
Thanks for helping us to make PowerToys a better piece of software.

Duplicate of #11898

Slightly different repro, but hopefully the hot fix we have coming soon will resolve this. Thanks for reporting!


Shortcut to end list

Please make it so that when editing a list item, if I hit a shortcut, then I'll move on to the next line and the list also ends. This is how Markdown lists work in the Sublime Text package, for example.
For instance, I have:
- Test

With the cursor at the end of the item, I should be able to hit cmd+Enter to move to the next line and end the list, meaning the next line won't automatically add a -  at the start of it.

Just hit Enter again, the -  will be removed.
That means if you have this (using | to indicate cursor)
- Test
- |

press Enter, you get
- Test

|

I think this is better because it is a good habit to end list with an empty line

Okay fair enough, if it is a conscious design decision, then I can live with it.


[python] Increase UT coverage threshold to 0.9

This patch increase Python API unit test coverage
threshold from 85% to 90%. If coverage is under 90%
will fail our the test

PTAL @devosend @jieguangzhou thanks

Thanks for reviewing @jieguangzhou

LGTM

Restart the failing test

thanks for reviewing


Fixed #128: Add standard modifiers to UI elements

I've added some of the standard modifiers you find in Indigo. The button move is a bit deceptive though, you have to move the button in the model where it's stored. If you move it just before it's rendered, then the hit area doesn't move with it. Still it's an improvement.

The button move is a bit deceptive though, you have to move the button in the model where it's stored.

A bit counterintuitive, yes. Do you mean in the updateModel function and/or the updateViewModel function?

Yeah so, think about the order of events:
Update model -> detect mouse click inside button at (10, 10)
Update view model -> ...
Present -> move the button to (50, 50)
Uh oh, I detected the mouse click in one location and then drew it in another.
The solution is to move it in the place it's stored (i.e. one of the models). Which is weird. But the UI components are odd conceptually.
I think there's an argument that we need a new construct entirely for UI elements specifically, this PR isn't fixing the underlying problems, just the specifics of Button.


ziti CLI - inspect token

Users frequently confuse router and identity tokens and encounter obscure error logs about failing to parse the token or failing to connect to the controller.
The problem is sometimes token expiration and other times it's a mismatch of token type (router vs identity) or a mismatch of controller life cycle (token for wrong PKI).
One solution is to provide a ziti ops token or ziti edge verify token command that analyzes a token for expiration, type, and performs signature verification.
Python PoC: https://gist.github.com/qrkourier/b9cacf765b2d62817672bc7e6be6bdc3
To perform signature verification the new command needs to either load or fetch or both the client API's server cert pubkey. Here's an example of that operation using openssl:
openssl s_client -connect localhost:1280 <>/dev/null \
|& openssl x509 -noout -pubkey \
| tee ./pubkey.pem

I've continued to enhance the Python PoC, which has helped troubleshoot with some forum users. Having this functionality as a feature of the ziti CLI would be friendly.


Finalize protobuf definitions

Review all protobuf definitions as we move to 1.0. Related: #581

@carlisia I took a look at this - here's what I'm thinking:

[ ] currently, ObjectStore.proto and VolumeSnapshotter.proto both use the InitRequest message in Shared.proto for their Init functions. Let's create two separate copies of this, one in ObjectStore.proto and one in VolumeSnapshotter.proto so they can vary independently if needed.
[ ] let's do the same for the AppliesToRequest and AppliesToResponse, that are currently in Shared.proto and are used by both BackupItemAction.proto and RestoreItemAction.proto.
[ ] as part of the previous bullet, we could create a shared message type, something like the following:message ResourceSelector {
    repeated string includedNamespaces = 1;
    repeated string excludedNamespaces = 2;
    repeated string includedResources = 3;
    repeated string excludedResources = 4;
    string selector = 5;
}

and then each AppliesToResponse message would just include a single field, a ResourceSelector.

Other than that, I don't see anything else that needs to change. WDYT?

This makes sense to me. Thanks for the explanation. 👍

@skriss if I copy any of the messages or methods within the same (proto) package, with the same name, there's a duplication conflict. I can't change the names else it won't conform to the interfaces. I'm not familiar enough with this proto stuff to know if I can split these into separate packages?

Discussed in team sync, but we should go with e.g. ObjectStoreInitRequest and VolumeSnapshotterInitRequest to differentiate.


fixes timeout issue

Codecov Report

Merging #15 into master will increase coverage by 1.37%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   22.03%   23.41%   +1.37%
==========================================
  Files           5        5
  Lines         304      316      +12
==========================================
+ Hits           67       74       +7
- Misses        237      242       +5

Impacted Files
Coverage Δ

jupyterlab_celltests/extension.py
56.45% <42.85%> (+0.45%)
:arrow_up:

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 72b12e7...afcb3ae. Read the comment docs.


[prim_ram*_adv] Implement Byte parity in prim_ram*_adv

This introduces a couple of changes related to parity and ECC in the prim_ram*_adv wrappers:

The wrappers now support odd per-Byte parity. This is a feature we will need for memory scrambling, and having it there now also allows us to use the correctly configured SRAM macros for Bronze.
In order to reduce code duplication, the synchronous dual-port RAM wrapper just wraps the asynchronous RAM wrapper, since the underlying prim_ram_2p.sv are the same.
A Byte-write mask input is added to these wrappers - but the mask can only be used if ECC is not enabled.

Signed-off-by: Michael Schaffner<EMAIL_ADDRESS>

I am not sure the input register placement is optimal though. I.e., ECC / parity calculation is currently performed before the input register, meaning that we have an entire cycle to go to the memory afterwards.

On the write mask: You should be able to achieve your goals without changing the interface, since it has been designed to allow for such optimizations/special cases.

The full-width write mask input logic [Width-1:0] wmask is designed to provide the most general interface, that is, bit masks.
The DataBitsPerMask parameter is meant to provide optimization hints if bit masks are not needed. Setting DataBitsPerMask == Width means "no masks at all", setting DataBitsPerMask = 8 means "byte masks only", etc.
There is no requirement for an implementation to support all possible DataBitsPerMask configurations.

In your case, feel free to support only byte masks for some features such as ECC, and assert on that.
(Old discussion this interface definition is available in https://github.com/lowRISC/stwg-base/pull/688.)

Ah I see that is why the wmask is not individually parameterizable. Sure I'll modify the wrappers such that no interface change is needed.

I've just looked through this change because we should hopefully be able to use the prim_ram_1p_adv primitive for the Ibex ICache RAMs too.
Can the WidthNeedsToBeByteAligned_A check be conditioned on EnableParity? I don't think it matters if you're using ECC (admittedly, we currently only support a width of 32, but this will change!)

Sure, let's evaluate this check only when parity is enabled.

thanks for doing this! this looks good to me.

I haven't enabled Parity on the main SRAM yet, since we still need to add support for Parity in the memory loaders for Verilator and the DV environment. I've moved this discussion into a separate issue  #2450 such that we can move forward with this PR.

Interesting, the test examples/hello_usbdev/hello_usbdev_sim_verilator.elf passes locally, but in CI it seems to fail. Did anyone run into a similar issue lately?

@imphil: Thinking about the write mask question, this isn't actually new in this PR (the code already behaved like this in the 2-port ram). I think I prefer your option (1) though: if someone uses this with DataBitsPerMask == Width, they'll still have to pass something in for the wmask_i signal. If they pass {Width{1'b1}} (the sane option!), I'd expect the synthesis tool to fold away the AND gate in the definition of write. If they pass something else, it will behave the way that it looks like it should, at the cost of an AND gate.
Note that this is a special case of a more general question. Suppose Width=4 and DataBitsPerMask=2 (small numbers for small example masks). How should I interpret a mask of 4'b0001? Or 4'b0010?
I think we should just explicitly document that we use the bottom bit of the relevant range in the write mask. In the special case that DataBitsPerMask == Width, this comes out as your option (1).

Suppose Width=4 and DataBitsPerMask=2 (small numbers for small example masks). How should I interpret a mask of 4'b0001? Or 4'b0010?

I'm reasonably sure that we decided that this isn't a valid value for wmask_i. I thought we did have an assertion for that, but it seems like we don't. This is something that should be fixed. Either way, the current behavior is here: https://github.com/lowRISC/opentitan/blob/master/hw/ip/prim_generic/rtl/prim_generic_ram_1p.sv#L36

Let's add these mask checking assertions directly to the prim_generic_ram modules in a separate PR.

Looks great, thanks!

I have switched parity in spi_device back to ECC for now since parity creates a Verilator CI failure* that I cannot reproduce locally, and I would like to unblock this to move these commits over to Bronze, once the PR is merged. I will turn parity on again in spi_device in a separate PR to root cause this.
(*: the hello_usb test fails in that case, but locally it passes)

:+1: I didn't see the issue on my machine either so far, but I'll give it a fresh try tomorrow.

No need to block this PR on.


Fix timezone problem

Events are defined for TZ Europe/Vienna (+1, and +1 if summertime)
Applicationserver may run in different tz,
Mysql has per default tz 00:00
Date, and Times presented on the Browser differ from the Data-TimeValues entered on Webapp-Forms, and from the values inserted into the DB.

Fixed by:

Use KisoOnlineApp.timezone
Use java.util.Calendar, no usage of java.util.Date
Add UnitTests varying Timezone


use glyphsLib

Pinned to a glyphsLib pre-release which can parse v3 files.

0.2.0 now on pypi with your commit.

Awesome! thank you so much for the quick turn around!


610 subject added entry--corporate name

https://github.com/uwlib-cams/MARC2RDA/blob/main/Working Documents/6XX.csv

Just awaiting attribute mappings #471


review and finalize intro and resources sections in health check mission

https://github.com/openshiftio/appdev-documentation/blob/master/docs/topics/health-check-experience-intro.adoc
https://github.com/openshiftio/appdev-documentation/blob/master/docs/topics/health-check-experience-resources.adoc

@starksm64 do you mind taking this?

@ALRubinger @starksm64 closing this for now. Please re-open if you need any more changes.


DOC: optimize.least_squares: update curve_fit docstring and ValueError message

Reference issue
Closes #20155.
Additional Information
Since I was editing scipy/optimize/_lsq/least_squares.py I also refactored two ".format" strings to f-strings.

I resolved the merge conflicts and removed the documentation that is no longer needed. (It actually can be read to mean that the user can pass x0 as a keyword argument interchangeably with p0, which would not be correct.) I also added a test that the error message is produced as intended.
Please either allow edits from maintainers or merge m-maggi#1. If I don't hear back within a week or so, I'll go ahead and open a new PR to fix this.

Thanks for commenting, I see in this PR that the option "allow edits from maintainers" is ticked (see screenshot below). Should this be ticked in some other place?

Thanks @m-maggi. I had written in https://github.com/m-maggi/scipy/pull/1#issuecomment-2212292626 that you'd need to remove the protections from the branch or merge my PR, but I went ahead and opened gh-21147 to avoid further delay. You will still be credited as an author.


Add update image flag

Sometimes I will be jumping in and out of containers a lot and waiting for dockit to try to pull the image each time gets tedious.
This flag allows you to update the image using the -u flag but defaults to just loading the container. If it can't locally find the image, docker will download it anyways.
$ dockit -u debian

$ dockit -h
...
-u            update image before mounting

Sounds reasonable to me, tested it out and merged :+1:


Update logo in readme

 NOTICE
I dedicate any and all copyright interest in this software to the
public domain. I make this dedication for the benefit of the public at
large and to the detriment of my heirs and successors. I intend this
dedication to be an overt act of relinquishment in perpetuity of all
present and future rights to this software under copyright law.

Preview the change at: https://github.com/FastForwardTeam/FastForward/tree/NotAProton-patch-1#readme

[x] I made sure there are no unnecessary changes in the code*
[N/A] Tested on Chromium- Browser OS
[N/A] Tested on Firefox

* indicates required

nice


⚠ ClamAV has degraded performance

In f5e40f8, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 540 ms

Resolved: ClamAV performance has improved in 6edd2f5 after 5 minutes.


This doesn't make sense, it just goes in a loop to refresh the dataflow, once the dataflow refreshes???

[Enter feedback here]

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

ID: 53048912-9c2a-1cae-4e9a-02cf79307e3c
Version Independent ID: d21f1dab-c67e-2100-f11a-82d3ba6fda9b
Content: Trigger dataflows and Power BI datasets sequentially - Power Query
Content Source: powerquery-docs/dataflows/trigger-dataflows-and-power-bi-dataset-sequentially.md
Service: powerquery
GitHub Login: @miquelladeboer
Microsoft Alias: mideboer

#assign:miquelladeboer in case you have a quick opinion

#assign:@miquelladeboer

Hi @TIM-ME
Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. We've mad some minor changes to the article to indicate that the refresh of the initial analytical dataflow will be used to trigger the refresh of a standard dataflow.
We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


Single dock icon, multiple script executions.

I would like to have a single icon in my dock that when clicked, has multiple submenu scripts that can be invoked individually. I have gotten close but so far, it seems they are all updated. Is there a common way of doing this? I have tried (unsuccessfully) multiple echo "Result: $fn_result|bash=$0 param1=script1 refresh=false" where $fn_result is something like:
if [[ param1 == "script1" ]];then
    func1()
fi
func1(){
    fn_result="🍎"
}

Not sure the best route for this.

Have a look at this plugin, it may be of some help: https://github.com/matryer/bitbar-plugins/blob/master/Dev/GitHub/notifications.30s.py

Do you have a screenshot of this plugin in action?

Not right now, but I'll post one next time i get a notification.
It has different menus items which respond to alt, and each do different things (mark all as read, or mark individual as read).

Essentially what I need to get to is the following where clicking on Prod/Dev/QA on the submenu with run that specific function only and update the submenu icon:
`#!/bin/bash
USER=""
TOKEN=""
BASE_URL=""
#CRUMB=$(curl -s 'http://${USER}:${TOKEN}@${BASE_URL}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
echo "🔥"
echo "---"
prodfunc()
{
local JOB_NAME=""
#local RESULT=$(curl -X POST -H "$CRUMB" "http://${USER}:${TOKEN}@${BASE_URL}/job/${JOB_NAME}/build")
#sleep 5
local STATUS=$(curl -silent http://${USER}:${TOKEN}@${BASE_URL}/job/${JOB_NAME}/lastBuild/api/json?pretty=true | grep "result" | awk '{print $3}')
if [[ $STATUS == "SUCCESS" ]]; then
prod='Prod:🍏'
else
prod='Prod:🍎'
fi
}
devfunc()
{
local JOB_NAME=""
#local RESULT=$(curl -X POST -H "$CRUMB" "http://${USER}:${TOKEN}@${BASE_URL}/job/${JOB_NAME}/build")
#sleep 5
local STATUS=$(curl -silent http://${USER}:${TOKEN}@${BASE_URL}/job/${JOB_NAME}/lastBuild/api/json?pretty=true | grep "result" | awk '{print $3}')
if [[ $STATUS == "SUCCESS" ]]; then
dev='Dev:🍏'
else
dev='Dev:🍎'
fi
}
qafunc()
{
local JOB_NAME=""
#local RESULT=$(curl -X POST -H "$CRUMB" "http://${USER}:${TOKEN}@${BASE_URL}/job/${JOB_NAME}/build")
#sleep 5
local STATUS=$(curl -silent http://${USER}:${TOKEN}@${BASE_URL}/job/${JOB_NAME}/lastBuild/api/json?pretty=true | grep "result" | awk '{print $3}')
if [[ $STATUS == "SUCCESS" ]]; then
qa='QA:🍏'
else
qa='QA:🍎'
fi
}
if [ "$1" = 'prod' ]; then
prodfunc
elif [ "$1" = 'dev' ]; then
devfunc
elif [ "$1" = 'qa' ]; then
qafunc
fi
echo "$prod | bash=$0 param1=prod refresh=false"
echo "$dev | bash=$0 param1=dev refresh=false"
echo "$qa |bash=$0 param1=qa refresh=false"`


Simplebar v3 not on cdnjs

Latest version does not show up on cdnjs (https://cdnjs.com/libraries/simplebar), can you please fix this?
Thank you :-)
Also thanks for offering and maintaining this great plugin  👍

Why are you not using unpkg.com? It can serve every package and version from npm and also uses CloudFront under the covers, so if you're worried about speed, it should remain exactly the same.

Why are you not using unpkg.com? It can serve every package and version from npm and also uses CloudFlare under the covers, so if you're worried about speed, it should remain exactly the same.

Sure, that's a great alternative!
But in my case it saves me a dns lookup and handshake because I load all my libs from cdnjs :-)

Closed in https://github.com/cdnjs/cdnjs/pull/13150


Lightening protection suggestion

The RS485 hybrid has some defined lightening or ESD clamping components.
There has been some discussion of this elsewhere.
However, my analysis, is that the clamping components need a  a low impedance path to ground.
I've added a thick grounding wire to the hybrids ground connection, that can then be connected to an external earth connection. I'm using solid core that I have to hand 18 AWG, or 1mm dia. Ideally it should be green. I'm making the tail 12" long, and it can be trimmed on installation if necessary.

Background: As an EE, I've seen a number of boards that have conducted lightening currents - been hit by lightening.  The number one rule is that shouldn't burst in to flames, potentially causing further damage.
While grounding circuits are not guaranteed to conduct all large currents to ground, having a low ohmic resistance to ground is a starting point.
For areas that have a large number of lightening strikes, local knowledge and code usually defines how a good electrical ground is formed.
There is an IEEE specification on grounding but I haven't got a direct reference on it.
Living in California, while lightening isn't common, we've just been through a storm that was estimated to have created 12,000 strikes, which then caused some 600fires.
The state with the most lightening strikes is supposed to be Florida. However the subsoil is largely on a reef, and I've been to technical presentations that say Florida is the most difficult to form a good ground.

This issue has been functionally moved to the https://github.com/EnviroDIY/Mayfly-Modbus-Wing repo. See:

https://github.com/EnviroDIY/Mayfly-Modbus-Wing/issues/1

If this issue needs further discussion, please continue it in a new issue in https://github.com/EnviroDIY/Mayfly-Modbus-Win


BUG: Version included in release builds suffixed with -dirty

See

e.g.
#17 [build 7/7] RUN make go-alpine-build
#17 0.055 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o the-cla -ldflags="-X 'github.com/sonatype-nexus-community/the-cla/buildversion.BuildVersion=0.2.2-dirty' -X 'github.com/sonatype-nexus-community/the-cla/buildversion.BuildTime=2024-10-01 07:58:08 +0100' -X 'github.com/sonatype-nexus-community/the-cla/buildversion.BuildCommit=63843b8'" ./server.go


Tabs look disconnected from the editor window

Very minor issue but it started to bug me as the tabs look like they are floating and not attached to the editor window.

Hey Paul,
Thanks for your interest in the theme. I'll have a look into it as soon as possible.
Cheers!

It should be fixed in v7.28.0


[Sqlite3] Fix can not get table sql because of case sensitive

Example
Here is an example how to reproduce the issue.
https://github.com/zydmayday/learn-knex/blob/main/knex/knex.test.ts#L34-L44
Details
Use sqlite3 as database for testing, and has some migration scripts for setting up tables.
If we have one script create a table called "some_table(https://github.com/zydmayday/learn-knex/blob/main/knex/migrations/1_create_table.ts)",
and another script alter table but using table name "Some_Table(https://github.com/zydmayday/learn-knex/blob/main/knex/migrations/2_add_columns.ts)".
Then after running jest, we will have the following error logs.
TypeError: Cannot read properties of undefined (reading 'sql')

      at client.transaction.connection (node_modules/knex/lib/dialects/sqlite3/schema/ddl.js:56:13)

How to fix
Because the related SQL script is case sensitive, change it to run in a case insensitive way.

Coverage: 92.392%. Remained the same when pulling dd8f2a96d5a87efaa942c4bcef2d79bfd6a1edd9 on zydmayday:master into 0d27bcb60b9bfd57fabf896715350089e0b1050c on knex:master.

@OlivierCavadenti Thanks for the label, i added the tests.

If SQLite is case-sensitive, why should knex hide that?
does it behave differently between DDL operations and querying? would same code work case-insensitively for querying?

If SQLite is case-sensitive, why should knex hide that? does it behave differently between DDL operations and querying? would same code work case-insensitively for querying?

Hi @kibertoad
Thanks for replying.
Actually it is not because sqlite3 is case sensitive.
It is because the query in function getTableSql is case sensitive.
When we try to get some tables DDL, we don't care if we pass the UPPERCASE or lowercase of table name.
In fact, sqlite3 is not case sensitive as I searched.

got it, thanks!

@zydmayday I will check coveralls configuration before merge that. It's seems coverage decreased computation take into account not only coverage of code, but also coverage of tests... I will not ask you to make a test for test :D.

@zydmayday I will check coveralls configuration before merge that. It's seems coverage decreased computation take into account not only coverage of code, but also coverage of tests... I will not ask you to make a test for test :D.

@OlivierCavadenti
Thanks! Good to know the reason! haha


Update orbs-public-beta.md

This fix reflects:

missing orchastrator parameters required when not using ephemeral storage
upgrading bootstrap management service to v1.1.1
adding "EthereumEndpoint" temporarily to the top level object as well as the management-service config section
nodeSize -> m4.large until issue resolved in boyar

No differences with the latest master


There was an error requesting data from the community connector.

Update
Never mind, I have done it wrong and pasted my Client_ID and Client_Secret directly into the file instead of doing this:
Visit Apps Script, then click on File -> Project Properties -> Script Properties.
Now it is working fine.

I try to use the spotify-recent-plays connector and followed the readme...
Therfor I created an app on the Spotify developer dashboard and added the redirect URI,
copied the src data from github to my Apps Script project (deployment guide),
added the Oauth2 library,
added the key/value pairs in the Oauth2Builder.gs file.

After publishing the manifest and following the link to create a data source in Data Studio I am asked to authorize the connector:
"There was an error retrieving this Add-on's configuration."
And a popup appears:
"There was an error requesting data from the community connector. Please report the issue to the provider of this community connector if this issue persists."
Could you tell me, what am I doing wrong?
Thanks in advance.

See update notice at the top of the first posting!


OE: funs

OF6 : The calculated text refers to F40, although the values in the calculator refer to G32 or OF41? is this correct
Add correct way to extract score from already calculated values

1: updated
2.

completed


Handling key handle closing is noisy and error prone

As discussed in other PRs, having to deal with cleanup operations after a normal operation and returning any errors in the correct order is noisy and error prone.
E.g.:
let export_res = Status::from(unsafe {
        psa_crypto_sys::psa_export_public_key(
            handle,
            data.as_mut_ptr(),
            data.len(),
            &mut data_length,
        )
    })
    .to_result();
    key.close_handle(handle)?;
    export_res?;
    Ok(data_length)

(not sure if the errors are returned in the 'correct' order here!)

@ionut-arm has suggested:
Maybe we should really return a generic error when some of these "internal" methods fail, that the user should not really know about.
An alternative would be to make a "layered" function, where for each variable that needs cleaning up we wrap everything after it in a function that returns a Result. If the result is Ok, attempt to clean up and if that fails return an error, otherwise return the Ok you got. If what you got was Err, then do the clean up anyway and return the Err you got from the next layer function. If you have two things that you need to clean, unfortunately you'd have 2 "layer" functions. But the benefit is that you're sure that you clean up everything and you return the Err that's most appropriate.

I had the idea of using a 'black box' (? not sure if that's a very accurate name...!) that you pass the operation you want done to it with the key handle and it will do the operation and return Errors/Oks in the correct order.
Here's an implementation:
fn do_op(key_id: Id, op: &mut dyn FnMut(u16) -> Result<()>) -> Result<()> {
    let handle = key_id.handle()?;
    let op_result = op(handle);
    let close_handle_res = key_id.close_handle(handle);
    op_result?;
    close_handle_res
}

This is an example of using it:
pub fn sign_hash(
    key: Id,
    alg: AsymmetricSignature,
    hash: &[u8],
    signature: &mut [u8],
) -> Result<usize> {
    initialized()?;

    let mut signature_length = 0;

    let mut sign_res = |handle: u16| {
        Status::from(unsafe {
            psa_crypto_sys::psa_sign_hash(
                handle,
                alg.into(),
                hash.as_ptr(),
                hash.len(),
                signature.as_mut_ptr(),
                signature.len(),
                &mut signature_length,
            )
        }).to_result()
    };
    do_op(key, &mut sign_res)?;

    Ok(signature_length)
}

It's probably one of the more basic solutions but it does work! Thoughts?

I think at some point Mbed Crypto will align to PSA Crypto and remove the key handle to only kepe the key IDs, at which point hopefully we can simplify our code.

Looks like it started in part? cf https://github.com/ARMmbed/mbedtls/pull/3547

Closing as we will use the openless version of Mbed Crypto hopefully soon.


Fix missing port number in Host HTTP header

This fixes an issue where the port wasn't included in requests Host header. Port is now included if it is not the default port for the scheme.

The test that didn't pass was caused by amazon.com sending gzip compressed data while HTTPClient doesn't support it. I added an HTTP header specifying to the server that we don't support compression.

Closing, too many changes since original PR. Will fix this in a new PR.


Skip findbugs for jbpm-installer

there are no java classes in src/main/java
which could be analyzed and the plugin just
fails becuase of that

+1


Timesheet - 23/04/2021 - Chrisha Canete

Task 1
paying the April 18, 2021-TNB-Core Team Payment Calculation
Proof of Work

https://docs.google.com/spreadsheets/d/1wcaFiAyr0cjdPsEXL5ry-6IuqX3dGuKxNfBFEVxEG2I/edit#gid=0

Time Spent
1 hour

Task 2
Making the April 19-20, 2021-TNB-Core Team Payment Calculation
Proof of Work

https://docs.google.com/spreadsheets/d/1aKk4aVg_0nB5Ua2ZIxhJjPaZh2jviRp6ddD97AHItaA/edit#gid=0
https://docs.google.com/spreadsheets/d/1sqAx_6BtkdHV9w2FJtMmC0Ua1npvVgsfydQVPQdpoPo/edit#gid=0

Time Spent
1.5 hour

Task 3
working on analytics
Proof of Work
-https://drive.google.com/drive/u/1/folders/1gbPH8bSf2nn3eRQAlCso5-rGXltMg4CY
Time Spent
1 hour

Total Time Spent
3.5 hour
Account Number
7053f27870d388b0bca4149fe72765172c3e6d1b4ffc7cd0149a296cbefe8f57

Approved


Android device specific module

Hello,
This is intended to be more of an open discussion, than an actual issue.
I want to add some Android specific components in the project, like the Bluetooth and I want to keep the clean architecture.
Currently I have 4 modules:

common - utility stuff that can be used by all the modules (even other projects) - pure Java
data - everything related to data
domain - entities, use cases, repositories
presentation - everything related to the UI

I was thinking to add these to the data module, but this could be out of scope for that module as it will handle other things beside data.
On a presentation made by Tomislav Homan, I've read that a new module could be added which can include Android stuff such as sensors, alarms, notifications, players, all kinds of Managers, and so on.
Something like a device module which should have the actual implementation of the Android specific stuff and expose it via Observables or interfaces.
What do you think it is the best approach for this in order to keep the clean architecture and to respect the dependency rule. If you know/have examples with source code that will be even greater.

IMO the data layer is probably the best place to add those specific functionalities you want.
Have into account that actually you will collect data from the Sensors or certain information from the Bluetooth system. After all, this is what the data layer is doing, it uses external resources to load data (Http request and/or database), so it shouldn't matter which one you use.
You might have a kind of a SystemService class instead of Repository that handles that information, which would be used by your UseCase in a hidden (encapsulated) way, and just deliver the data you need.
Anyway, all depends on how are you managing your layered architecture, since you can create another new layer for that specific purpose, but honestly the result would be the same.
Hope it helps.

Thank you @kuassivi for your opinion and your recommendation.

It's been long discussed in here and many other issues in this board:
https://github.com/android10/Android-CleanArchitecture/issues/151
In summary, someone proposed an infrastructure layer in charge of platform specific stuff.
Personally, I use this to handle socket connections and android permissions in my project. This infrastructure layer coexists simultaneously with the data layer -both at the same level- and is accessed through interfaces defined in the domain layer, pretty much the same as the data layer.

Thank you @Zireck,
That is a very good example and it is very close to what Tomislav Homan described. The only difference there is that everything is in one module. I prefer using modules for each layer as it is easy to decouple from the platform easier. For example, the domain layer is made in pure java, thus enforcing the development to not rely on Android specific components.
After some thinking, I will go with an separate module which will be an Android library module and I will try to keep it as much as possible on the same layer as the data layer.  I will break this down into specific packages and I will make an minimal implementation to expose it's functionality (via Observables or Interfaces).
If you guys think there are better approaches or do you have more examples, presentations, ideas, please share them here and maybe we can make a new PR to include it into this demo project.
Thank you all.

@IonutNegru87 this text was originally published at Five Agency series about Clean Architecture.

Presentation
This module is already created for you by the Android studio when you create a project.
Domain
Entities, use cases, repositories interfaces, and device interfaces go into the domain module. Ideally, entities and business logic should be platform agnostic. To feel safe, and to prevent us from placing some android stuff in here, we will make it a pure java module
Data
The data module should hold everything related to data persistence and manipulation. Here we will find DAOs, ORMs, SharedPreferences, network related stuff like Retrofit services and similar.
Device
The device module should have everything related to Android that’s not data persistence and UI. In example, wrapper classes for ConnectivityManager, NotificationManager and misc sensors.

Thank you for the information @jpventura.
That is exactly what I had done in the end :)

@IonutNegru87 hello, I've got a project set up very similar to how you and @jpventura have described and I'm working on adding some bluetooth stuff to the project. I have different types of bt devices I want to connect to, and I need to use sdk's for some of the devices, so my original idea was to create a core android bt module (has android fg service that handles communication between app and bt layer), and individual modules for each bt device. the individual bt modules would have the core as a dependency and was thinking of using dagger to inject domain implementations (bt repo/service) from the various bt modules into the core bt module. One problem I'm facing is how do I specify which bt device to connect to via the domain? I was trying to keep any kind of reference to a specific type of bt device out of the domain, but after some thought I think I might need to define an enum or sealed class to list the type of devices and then use that as a param in a usecase to pick the device. However, each bt device module implements an interface and to inject a specific one, I need to use the Named annotation, which means if I want to use the repo or service implementation in the usecase to connect to the device, I need to know which one before hand, so that means I need usecases to connect to each specific device, which I don't like. Maybe I pass in the repo or service to the usecase instead of injecting it...?
Anyways, hopefully that's not too incoherent. If anyone has any ideas on how I could structure things, I'm looking for ideas.


Next.js v14.2 support

Hello again :),
may I ask you to update dependencies to support Next.js v14.2? Thanks!

Will do today. Sorry still need to get this automated

This has been published in v5.4.1. Sorry for the delay. We were going to wrap this into another release, but that one is taking longer than expected.


Error: can't find file 'html5'

Hi, I'm getting the error below when trying to use this shard.
 2 | require "html5"
     ^
Error: can't find file 'html5'

If you're trying to require a shard:
- Did you remember to run `shards install`?
- Did you make sure you're running the compiler in the same directory as your shard.yml?

If i use require "html", since the main file is html.cr, I get:
 12 | HTML5.parse(str)
      ^
Error: undefined constant HTML5

Did you mean 'HTML'?

If I use HTML.parse, I get:
 12 | HTML.parse(str)
             ^----
Error: undefined method 'parse' for HTML:Module

Maybe I'm doing something wrong. I don't have any experience with crystal.
The only way for this to work is to rename html.cr to html5.cr.

Thanks @jonian . I've fixed this naming issue and uploaded latest version.

Thanks @jonian . I've fixed this naming issue and uploaded latest version.

Thanks for the quick response @naqvis!

Thanks for the quick response @naqvis!


An Error Has Occured?

I am getting the error below:

If i run the API call manually it all works fine - but the public page always returns this error :(

Sorry forgot to mention this is on a WAMP install - on a generic ubuntu install it works fine.

Hey @teshiburu or creator, I'm not able to get it to work on anything.
Tried Ubuntu 14.04, RHEL6, and more. One some systems I get a blank page, others i get some 500's like in the original post.

I was receiving the same error, which was being caused by bad permissions. Might want to ensure you have correct permissions on all the folders/files @teshiburu


2 new options for pimd

I think it will be usefull  (e.g. in linux name spaces):

pid file location/name : e.g. pimd --pidfile /var/run/pimd/xxx/pimd.pid
syslog-name  in pimd.conf : e.g. syslog-name "pimd iptv1"

btw.
I test last 2.4 beta ( 08.02.2017) - it's very fast ;)))

The UNIX way of doing this is to expose an -I, --ident=NAME that can then be used for /etc/NAME.conf, /var/run/NAME.pid, and syslog.  That's the first thing.  Adding a custom path to the PID file as well, can be added as well.
I've already done this for my Inadyn project, so porting both those features should be a straight forward job.

Fixed in 2cf0f3d for v2.4.
However, note that spaces in the identity string is not allowed.


Config transform in Release when using AzureRmWebAppDeployment

Hi,
We have a product version specific build that has a release pipeline that goes from QA -> UAT -> PROD all on Azure.
We've somehow got the config transform to execute but will issues. The issue is that it picks up the Web.Release.config even when the environment variable "ReleaseConfiguration" is set to CloudQa, CloudUat & CloudProd in the variables section. Also the task for deployment fails without any logs so I've had to literally wait for it to come to a point when it fails while watching the logs and take a printscreen. That's how we've found out that the transform is happening with Web.Release.config which does not have any transform related entries in it.
How do I force the task to transform using the "ReleaseConfiguration" value?

@AmeetAB , Currently transformation is applied using Release-Environment Name.
You need to change Release Environment Name and not Release Configuration.

Please change the Environment name to (CloudQa, CloudUat or CloudProd).
Old Editor View:

That is what I got:

@AmeetAB , *.Release.config is selected by default when available( in the same folder).
Order of Transformation  applied is as follows: *.Release.config followed by  *.<Environment_Name>.config

@vincentdass applied
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
</configuration>

to both Web.Debug.config and Web.Debug.config and made the CI build configuration to run on "Debug" this resulted in the release picking the environment specific config file for transformation for the web api.
We, however, also have a web job as part of the solution which we'd like deployed. Although I'm getting the webjob deployed as desired, the transformation of App.config isn't happening. Here's the log from the release:

It seems that the XML Transformation is looking for a Web.config and the transformation file instead of App.config. How do we handle App.config transformation? Here are the tasks in CloudProd environment:

And this is the config of the web job deploy task:

We have a lot of components using webjobs and releases with webjobs are important as part of ALM. Your help is appreciated!

@AmeetAB, To apply transformation in App.config file, your transformation configuration files should be named App.Release.config or App.<EnvironmentName>.config
Can you please ensure that the files are present in same folder as well?

@vincentdass they're in a different project but at the root and in the format App..config etc
In our case, App.CloudDev.config and so on.

@AmeetAB , can you please share the debug logs for the release (by setting  variable system.debug = true)?
Need to confirm whether the artifact contains the config and transform file in the same folder.

@vincentdass here's some more information from my research:
I have also found another "gotcha":
On the project that contains the transformation files, this
<FilesToIncludeForPublish>AllFilesInTheProject</FilesToIncludeForPublish>
has to be entered as a sub element of this property group of the csproj file
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Our CI build runs on debug configuration so that's where I've got that  entry, if someone runs CI in release mode then it has to obviously be included in that property group.
Unless the above happens, the config files are not part of the artifact package and transformation at release time cannot find the  specific transform file.
With webjob kind projects, in the build, this happens:
2017-07-13T07:22:33.2974267Z _CopyAppConfigFile:
2017-07-13T07:22:33.2974267Z   Copying file from "App.config" to "bin\Debug\Transactions.WebJob.exe.config".

Obviously, at this point the App.config file has been changed into Transactions.WebJob.exe.config in the artifact package. I'm trying to apply the transformation at Release time and it cannot find the App.config or the corresponding App..config file. I can get the files to get copied over by adding  but what about the App.config file getting copied into something else?

@AmeetAB , As you mentioned App.config is renamed to "<Application_Name>.exe.config". This is done by MSBuild to match the executable application file name [Link].
You need to rename your transform files something like this
App.CloudProd.config => Transactions.WebJob.exe.CloudProd.config
App.CloudQA.config => Transactions.WebJob.exe.CloudQA.config

@vincentdass did what you recommended and although the files are part of the artifact, the transformation task still seems to be looking for Web.config file for transformation.

Transform files:

Actual config file:

@AmeetAB , please share the debug logs for the same.

@vincentdass what's the best way to send you these logs?

@AmeetAB , you can paste the logs here.
You can also send the logs to<EMAIL_ADDRESS>with subject as "Config transform in Release when using AzureRmWebAppDeployment #4776" for reference.

@AmeetAB , closing the thread as there is no action item on us. (Based on the offline discussion)
Feel free to reopen or create a new issue, if required.


[Doc Improvement][Updates for action-based message extensions][3348812]

Updates for action-based message extensions.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-message-extension.md
97
5
link
:white_check_mark:

msteams-platform/m365-apps/overview.md
92
7
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-message-extension.md
97
15
link
:white_check_mark:

msteams-platform/m365-apps/overview.md
92
9
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-message-extension.md
97
15
link
:white_check_mark:

msteams-platform/m365-apps/overview.md
92
9
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

All the contents are added to PR https://github.com/MicrosoftDocs/msteams-docs/pull/9554.


Added support for indexing slices/arrays

Closes #13.
This adds support for getting/setting values at indices in slices and arrays. Some of the stdlib syntax is a bit awkward right now because of some instructions expecting TypeDef and others expecting DotnetTypeDef, but I figured that could be handled in a future PR.
For the slice methods, I just wrote a reference implementation in C# (without auto-properties or StructLayout, for simplicity) and copied over the .NET output.
Codegen comparisons
Reference:
internal unsafe struct RustSlice<G0> where G0 : unmanaged
{
    private G0* _ptr;
    private nuint _length;

    public nuint Length => _length;

    public G0 this[nuint offset]
    {
        get => _ptr[offset];
        set => _ptr[offset] = value;
    }
}

.NET 7.0.401:
.class private sealed sequential ansi beforefieldinit
  RustSlice`1<valuetype .ctor (class [System.Runtime]System.ValueType modreq ([System.Runtime]System.Runtime.InteropServices.UnmanagedType)) G0>
    extends [System.Runtime]System.ValueType
{
  .custom instance void [System.Runtime]System.Reflection.DefaultMemberAttribute::.ctor(string)
    = (01 00 04 49 74 65 6d 00 00 ) // ...Item..
    // string('Item')
  .param type [1] /*G0*/
    .custom instance void System.Runtime.CompilerServices.IsUnmanagedAttribute::.ctor()
      = (01 00 00 00 )

  .field private !0/*G0*/* _ptr

  .field private native unsigned int _length

  .method public hidebysig specialname instance native unsigned int
    get_Length() cil managed
  {
    .maxstack 8

    // [42 28 - 42 35]
    IL_0000: ldarg.0      // this
    IL_0001: ldfld        native unsigned int valuetype RustSlice`1<!0/*G0*/>::_length
    IL_0006: ret

  } // end of method RustSlice`1::get_Length

  .method public hidebysig specialname instance !0/*G0*/
    get_Item(
      native unsigned int offset
    ) cil managed
  {
    .maxstack 8

    // [46 16 - 46 28]
    IL_0000: ldarg.0      // this
    IL_0001: ldfld        !0/*G0*/* valuetype RustSlice`1<!0/*G0*/>::_ptr
    IL_0006: ldarg.1      // offset
    IL_0007: conv.u8
    IL_0008: sizeof       !0/*G0*/
    IL_000e: conv.i8
    IL_000f: mul
    IL_0010: conv.u
    IL_0011: add
    IL_0012: ldobj        !0/*G0*/
    IL_0017: ret

  } // end of method RustSlice`1::get_Item

  .method public hidebysig specialname instance void
    set_Item(
      native unsigned int offset,
      !0/*G0*/ 'value'
    ) cil managed
  {
    .maxstack 8

    // [47 16 - 47 36]
    IL_0000: ldarg.0      // this
    IL_0001: ldfld        !0/*G0*/* valuetype RustSlice`1<!0/*G0*/>::_ptr
    IL_0006: ldarg.1      // offset
    IL_0007: conv.u8
    IL_0008: sizeof       !0/*G0*/
    IL_000e: conv.i8
    IL_000f: mul
    IL_0010: conv.u
    IL_0011: add
    IL_0012: ldarg.2      // 'value'
    IL_0013: stobj        !0/*G0*/
    IL_0018: ret

  } // end of method RustSlice`1::set_Item

  .property instance native unsigned int Length()
  {
    .get instance native unsigned int RustSlice`1::get_Length()
  } // end of property RustSlice`1::Length

  .property instance !0/*G0*/ Item(native unsigned int)
  {
    .get instance !0/*G0*/ RustSlice`1::get_Item(native unsigned int)
    .set instance void RustSlice`1::set_Item(native unsigned int, !0/*G0*/)
  } // end of property RustSlice`1::Item
} // end of class RustSlice`1

rustc_codegen_clr:
.class public RustSlice<G0> extends [System.Runtime]System.ValueType{
	.field public !G0* _ptr
	.field public native int _length
.method public hidebysig instance native uint get_Length(valuetype RustSlice<!G0>){
	.locals (

	)
	ldarg.0
	ldfld native uint valuetype RustSlice<!G0>::_length
	ret
}
.method public hidebysig instance !G0 get_Item(valuetype RustSlice<!G0>,native uint){
	.locals (

	)
	ldarg.0
	ldfld !0* valuetype RustSlice<!G0>::_ptr
	ldarg.1
	conv.u8
	sizeof !G0
	conv.i8
	mul
	conv.u
	add
	ldobj valuetype !0
	ret
}
.method public hidebysig instance void set_Item(valuetype RustSlice<!G0>,native uint,!G0){
	.locals (

	)
	ldarg.0
	ldfld !0* valuetype RustSlice<!G0>::_ptr
	ldarg.1
	conv.u8
	sizeof !G0
	conv.i8
	mul
	conv.u
	add
	ldarg.2
	stobj valuetype !0
	ret
}
}

Looks OK.
Quick note: there may be no need to constrain slices to only managed types.  The restrictions on pointer types have been greatly loosened in C#11, and they seem to allow for things such as pointers to a local variable holding a reference to a managed type. If I understand the changes correctly, something like this is now legal.
public unsafe void Test() {
        object a = new object();
        object b = new object();
        if(a != b){
            Console.WriteLine("References not equal!");
        }
        object* aptr = &a;
        *aptr = b;
        if(a == b){
            Console.WriteLine("Reference changed using pointers!");
        }
   }

Not restricting slices would enable us to hold slices of stack-allocated Rust arrays of managed objects:
fn test(){
    let a:[MString;4] = ["A".into(),"B".into(),"C".into(),"D".into()];
    print_mstrings(&a)
}
fn print_mstrings(slice:&[MString]){
    for mstring in slice{
       system::console::Console::wrtienln_mstring(mstring);
    }
}

Allowing for such uses could be quite benefitial.

That's right, I only blindly added the constraint because Rider gave me a warning for taking the pointer of a managed object. I can see the value in this for sure, though we'd need to be sure everything is pinned before calling a method like that (we'd need to do that either way actually).
To be honest, however, I'm not sure if the unmanaged generic constraint exists at runtime, given that it just compiles down to an attribute. It might only exist for IDE warnings and be otherwise treated as struct.
At any rate, agreed - it's worth considering not constraining it at all.

Correct me if I am wrong, but are not managed object pointers equivalent to ref? They use the same instructions, and I have had some object pointer operations decompile back to references. I believe the official documentation even sometimes refers to ref as managed pointers. Since I plan to forbid using raw managed references outside the stack, there will not be any need for pinning, since GC will be aware of all pointers and handle them appropriately.

As far as I'm aware, they're not necessarily the same, although they can be. For one thing, pointers to managed objects can be cast arbitrarily and have the actual value of their pointers stored, at which point there can't possibly be any GC-safe way of using them. I've personally written code that abused ref/pointer conversions before passing things into unmanaged code and gotten burned when generation 2 GC happened.
With that said, I wouldn't be surprised if pointers to managed objects could be replaced with ref automatically in certain cases (and ref is GC-safe), but I certainly wouldn't rely on that. If there is compiler magic there, it probably requires that the pointer is known statically to never be cast to another type or be moved to the heap. As a trivial case in which a pointer to a managed object would not be GC-safe, consider an unmanaged function that takes a managed pointer and returns that exact same pointer (sort of like black_box). Given that the compiler can't know what the unmanaged function did with that pointer, it wouldn't be able to confirm that those conditions are met under any circumstances.

As a somewhat more relevant example (that doesn't reference unmanaged code), a simple unsafe cast to nint and back can't be handled by the runtime, as far as I know.

Transmutes to and from managed types will be forbidden by the backend, it is not something that is implemented yet, but it should not be that hard (most of the questions are around the issue of error messages).
In the case of the backend, we won't be dealing with unmanaged code for the most part (one of the objectives of the project is to have managed rust code). Additionally, you already need to be quite careful when dealing with FFI in Rust (you should not, for example, pass a Box<T> trough FFI), so we will be only extending the preexisting safety rules of rust to include more types.
Since using managed types outside the stack will be already forbidden in Rust code, we can guarantee that a managed pointer points only to the stack. If in projection.rs we forbid getting addresses of fields belonging to managed types (by always getting it by-value), it becomes impossible to have a managed pointer pointing to the managed heap.
I think as long as we can guarantee that managed pointers point only to variables living on the stack, no issues should arise.

There is a bug with the current slice get_Item and set_Item implementation.
They generate
ldobj valuetype !0
// And
stobj valuetype !0

instead of
ldobj !0
// And
stobj !0

I am working on a fix.

Fixed in 6956a5d75e2f1cb6436d160ba39e8ff108451b42. The bug turned out to be quite easy to fix: LDObj and STObj only took DotnetTypeRef as the object to load/Store. Changed to Type, now all edge cases should work out fine.


It loads me all the elements, how do I make it render as I scroll

Same

Do you have a small reproducible example, and environment / browser this is happening in?


[Type checker] Don't shrink() arithmetic expressions of literals.

Shrinking such expressions will immediately restrict the solution set
to the default literal types (Int or Double), causing later solutions
to fail. Fixes rdar://problem/30220565.
(cherry picked from commit 545c43f50012a2ec0bfd5c7e1caeab416215bf95)

@swift-ci please test


strange nginx error

Hi,
when i start the armhf container then a nginx error occurs:
2016/11/13 15:05:14 [emerg] 3069#3069: open() "/var/lib/nginx/logs/error.log" failed (13: Permission denied)
the strange thing is that in /etc/nginx/nginx.conf the error log should be /tmp/ngx_error.log:
error_log /tmp/ngx_error.log error;
any suggestion?

Duplicate : https://github.com/Wonderfall/dockerfiles/issues/37
I know it's annoying, but you'll have to find a way to update aufs (update to 4.x or later).


drop capabilities, enable seccomp and enforce runAsNonRoot

Further restricts the SecurityContext that the controller runs under, by enabling the default seccomp profile and dropping all linux capabilities.
This was set at container-level to ensure backwards compatibility with use cases in which sidecars are injected into the source-controller pod
without setting less restrictive settings.
Add a uid and gid for the container to enforce runAsNonRoot and ensure
the use of non root users.
BREAKING CHANGES:

The use of new seccomp API requires Kubernetes 1.19.
the controller container is now executed under 65534:65534 (userid:groupid).
This change may break deployments that hard-coded the user name 'controller' in their PodSecurityPolicy.

Ref: fluxcd/flux2#2014
Signed-off-by: Sanskar Jaiswal<EMAIL_ADDRESS>Co-authored-by: Paulo Gomes<EMAIL_ADDRESS>

This was tested on Kubernetes 1.23.1 with restrict "pod security" (below) and it worked as expected.
apiVersion: v1
kind: Namespace
metadata:
  name: notification-system
  labels:
    pod-security.kubernetes.io/enforce: restricted
    pod-security.kubernetes.io/enforce-version: latest
    pod-security.kubernetes.io/warn: restricted
    pod-security.kubernetes.io/warn-version: latest


sim: update readme

Subdir sim/vivado was removed in https://github.com/stnolting/neorv32/commit/6eff0dfea90e72d9ea5d60a61ba66060b182ae2d#diff-507a9a8be3d145a86daa9644b28bf42a8dc0720d8baeabdf0406c393692bf082, but the sim/README.md was not updated accordingly.

Oh right, thanks!
Seems like I have forgotten to update this.


Change c.height/ztop/zbottom instance vars in axialExpChngr

c.height, c.ztop, c.zbottom should be local variables and not instance variables.
https://github.com/terrapower/armi/blob/44f287d5a30b83e64709f7988569b8407c8fdc6d/armi/reactor/converters/axialExpansionChanger.py#L208-L238

Hey @albeanth, can you explain a bit more of the reason for the change here? I'm not quite understanding

@jakehader this originated from a chat I had a few weeks ago with @onufer and @mgjarrett .
We had realized that the attributes ztop, zbottom, and height on the instances of Component were not initialized in the class constructor and only used in axialExpansionChanger.py. So I made a ticket to change them from instance variables to local variables. However, in looking at it some more, the attribute ztop gets used here https://github.com/terrapower/armi/blob/44f287d5a30b83e64709f7988569b8407c8fdc6d/armi/reactor/converters/axialExpansionChanger.py#L217
where we access the top of the component stored in linkedComponents[c][0] - which is critical for component realignment during expansion.
We could swap out zbottom and height but for consistency I'll just leave it as an attribute that gets initialized here. If we want to 1) initialize the instance variables in the constructor, or 2) reformat the code to not use instance variables we can reopen this ticket.


native android app?

Hi there,
I like Silver bullet but I cannot use the PWA functionality, since I am not connecting my home server to the internet, local lan/WiFi only.
Locally I can only connect via http and since you can only install a PWA on android when you connect via https, I am not able to use silver bullet offline.
Is there any interest to make this into a native android app at some point or would this go against the principles behind the app?

Once upon a time there was an Android app (and an iOS app, and an Electron app for Linux, Windows and Mac) but it was too much work for me to maintain and test, so I decided simplify and take the PWA route instead. So far no regrets.
The question is: do you see no way to still use SSL even within your network? There are ways to do this, one of them is using tailscale as described here: https://community.silverbullet.md/t/install-silverbullet-on-a-64-bit-debian-ubuntu-raspianos-internet-accessible-via-tailscale/48


[cdc-cli] When using miniCluster, don't check 'FLINK_HOME'.

If 'FLINK_HOME' is not set, we can use empty configuration, rather than throwing exception.
cc @lvyanquan

Overall LGTM. Can you add a test case like CliFrontendTest#testMissingFlinkHome?

@joyCurry30 To go a step further, can you add a section in tutorial to introduce this --use-mini-cluster parameter?


Binary / gRPC server

Overview

execution of DA test suite from go-da, using local-celestia-devnet
binary that expose DA interface via gRPC

Resolves #5.
Resolves #9.

Checklist

[x] New and updated code has appropriate documentation
[x] New and updated code has new and/or updated testing
[x] Required CI checks are passing
[x] Visual proof for any user facing features like CLI or documentation updates
[x] Linked issues closed with keywords

I added auto-merge with merge instead of squash, as this PR contains many little fixes, and commit history is detailed.


improving the ui - ux

Hi @andresma2490 , thanks for your PR!
I'll check any try it in the upcomeing weeks and include it in the next release

@andresma2490 I'll check it next week. Can you shortly describe your changes in the meantime?

@92lleo sure, basically I used JavaScript to make the UI clickable

Just tested it, really nice work!
some additions:

what javascript command do i need to
call to "press" the back button when in chat view? I'd like to link it to the phones back button
the chat overview is really small on my device despite the black space on the right. Can you also span it over the whole screen? (pic 1)

when opening a chat for the first time the view is moved to the top a bit, fixed when the size is changed (pic 2)


Grafana Dashboard metrics query issue

Description:
Grafana dashboard queries use min_over_time, max_over_time to get the difference of a range vector to produce outputs such as req/min, errors/min. This breaks at the initial phase as the minimum and maximum of the initial query execution is the same.
But this issue resolves as the time flows because in the next 1 minute period there are min max values.
eg :
 sum(max_over_time(requests_total_value{instance=~"$instance",protocol=~"$protocol",http_method=~"$http_method",http_url=~"$http_url",service=~"$service",resource=~"$resource",connector_name="http"}[1m])-min_over_time(requests_total_value{instance=~"$instance",protocol=~"$protocol",http_method=~"$http_method",http_url=~"$http_url",service=~"$service",resource=~"$resource",connector_name="http"}[1m]))
Sugeestions
Instead of using min,max of a range vector use the rate function to calculate the
floor( sum(rate(requests_total_value{connector_name="http"}[1m])*60))

Closing this issue since this has been resolved with https://github.com/ballerina-platform/module-ballerinax-prometheus/issues/150


error /usb

hi,
with latest master version /usb no working, for example:
/usb:id,dev:046d:0819
[16:21:35:979] [18170:18170] [ERROR][com.winpr.commandline] - Failed at index 4 [/usb:id,dev:046d:0819]: Unexpected keyword
If you remove /usb... then works
With previous versions was working
Thanks

@trentasis no, this is working on current master 6dbee147d87a79ca646f53a7de0af4302e1fe92d

same for current stable-2.0 branch, run xfreerdp /v:<url> /usb:id,dev:1234:5678 is working.

Hi,
I think that I have found the issue:
compiled using https://github.com/FreeRDP/FreeRDP/wiki/Compilation and now working after installing libfaac-dev, sorry.
additional comment packages libgstreamer-plugins-base0.10-dev libgstreamer0.10-dev are not available on debian and I understand that are replaced byt 1.0, or not? It is needed to remove from wiki this packages?
Thanks


Does this work with Limus 2.0 beta

Does this integration work for Litmus 2.0 Beta?

Hi @saiyam1814 , I am afraid not yet. We are working on it to make it work. Would you have any specific requirements?
cc @ksatchit

I was planning a CI/CD integrated chaos test using Litmus as Demo
Since 2.0 is the future for Litmus so was thinking if something can be done

got it!
I believe supporting 2.0 should not be a big of a deal for this Keptn integration, however, we don't have any experience/testing yet.
But thanks for the push - we are definitely want to make this work.
@ksatchit do you think some major changes have to be made for this integration or is the change more on the Litmus/installation side?

So if this works, I might push this demo for Kubecon ;)

Hey @saiyam1814 the Keptn integration is focused on creation of the chaosengine - something that will continue to be part (and a core construct) of Litmus 2.0 as well. We will be upgrading the litmus versions in the example once we push 2.0 out (it currently uses the latest version on 1.x - 1.13.2).
Having said that, the integration still doesn't support chaos workflows OR portal api-driven execution of chaos for now - so the chaos executed via keptn is still not going to be visible on the portal yet. This needs a bit more work on the litmus side as well - but we do hope to get it working soon!

Hi @saiyam1814 when would you plan to do this demo? I know that KubeCon recordings are due by end of this week. But if you allow a bit more time we could probably work on an upgrade for Litmus 2.0. :)

So I am planning a demo where I will be showing network latency for app
using gitops feature of Litmus2.0.
Right now I am working with Karthik on that and my recording is due by
Thursday  so demo I should be prepared with by Thursday .
On Tue, 30 Mar 2021 at 5:38 PM, Jürgen Etzlstorfer @.***>
wrote:

Hi @saiyam1814 https://github.com/saiyam1814 when would you plan to do
this demo? I know that KubeCon recordings are due by end of this week. But
if you allow a bit more time we could probably work on an upgrade for
Litmus 2.0. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/keptn-sandbox/litmus-service/issues/30#issuecomment-810167473,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB6PRIWYFQQ6ZDJSBOEO45TTGG5MDANCNFSM4ZRHPUWQ
.

--
https://www.linkedin.com/in/saiyam-pathak-97685a64/

got it - I am afraid until then you have to stick with the current release of the integration as we are also working on preparing this for KubeCon. But I am happy to follow up and upgrade it


Tooltips on buttons don't show up when button is focused, but do in Vanilla bootstrap

If I tab through buttons in vanilla bootstrap (example), the tooltip for the button appears. But, when I do so with Sveltestrap, no tooltip appears (example). It's also probably worth checking if the screen reader behavior is the same — in some cases, tooltips may provide essential context for those who are visually impaired.

Focus/blur and accessibility should be fixed up by #293 if you'd like to look/review @john01dav
Thanks for the heads-up on these.

This should be corrected in 5.0.6
Please reopen if you see issues.

Thank you very much for such a quick fix! Everything seems to work exactly as it should in 5.0.6


Improve map rendering detail

Render the map in full size, then scale it to fit

Rendering in full size does not work (it crashes), I need to tile or only load the viewport in higher detail


Add a user guide

This is an umbrella issue for the following sub-issues:

[x] #344
[x] #345
[ ] #346
[x] #347
[x] #348
[ ] #350

I don't think we need an umbrella issue for this anymore