Specify the moku folder as a library folder

In order for Moku to be used as a Defold library dependency you should specify the moku folder as a libray folder: https://www.defold.com/manuals/libraries/

Solved this very difficult problem. Thanks for being able to reproduce such a difficult to find issue :P


add case when to is equal to 0 an have a previos approve

Fixes #
🚀 Description

In https://github.com/ethereum/eips/issues/721 the official draft of ERC721 token, in the approve function, when the _to address is equal to 0 and have a previous state, the function have to clear the state and trigger the approve event.

[x] 📘 I've reviewed the OpenZeppelin Contributor Guidelines
[] ✅ I've added tests where applicable to test my new functionality.
[x] 📖 I've made sure that my contracts are well-documented.
[x] 🎨 I've run the JS/Solidity linters and fixed any issues (npm run lint:all:fix).

Thanks for the catch, @NimrodHunter! I added this check in #803, with a test case here. I'm closing this issue in favour of that PR.


Issues with https://www.pulumi.com/learn/building-with-pulumi/

The code is inconsistent and causes failures:

my_first_app vs my-second-app
my_first_app:mongoHost vs my_first_app:mongo_host
running pulumi up on my_first_app staging will fail if my_first_app dev is still running as there is a port clash for the mongo container

more problems:
image=backend.base_image_name,
^^^^^^^^^^^^^^^^^^^^^^^
should be
image=backend.repo_digest,


1D dilated convolutional layer.

This folder contains a PyTorch convolutional layer that can be used to replace the existing PyTorch nn.Conv1d layer. We wrote the optimized convolutional layer code using libxsmm library's brgemm functions. This optimized layer has both float32 and bfloat16 implementations.

@alheinecke, I changed the permute loops into transform TPPs.
a)  I am facing some error in relu due to the mask pointer type. I will apply it correctly and integrate it after correction.
b) Yes. I will define the virtual padding TPP.
c) Currently, I do not see any performance drop. I made 20 iteration runs with and without TPP. The performance difference was 0.5-1% (or less) on cascade lake in FP32 run. So performance difference with TPP kernels seems negligible (atleast for the parameters that I use).
d)  I will also remove USE_TPP after relu integration and checking everything.

Was the ReLU is resolved, do you need @egeor 's help?

I just added the relu kernel. I am currently using the same TPP for both backward and forward pass (with backward flag). It is working for now. I have mentioned the error with FWD flag to @egeor.

I have replaced all the parts of existing code with TPP kernels. Now, I need to check the performance and remove USE_TPP define after that.

great, thanks. Please let us know when done and then we can merge.

I made all the changes and removed the older non-TPP code. Code is ready for integration from my side.

I made all the changes and removed the older non-TPP code. Code is ready for integration from my side.


Create .editorconfig file only on project creation

Instead of always generating one when missing, this PR creates .editorconfig on project creation.

Bugsquad edit: Closes #97796.

I agree with changing this to a project creation step.
I'm not fully sold with the UI though, this dialog is already heavy and adding more checkboxes and labels really makes information overload IMO. It might also be an issue on the Android editor where the dialog might again become too tall for screens in landscape mode.
We might need to rethink this UI a bit, CC @Calinou @KoBeWi.
I'm fine with merging this as a first step and have others rework the UX later.

There are a couple of options if we don't want the dialog to be too high:

Move checkboxes on the right, making the dialog wider
Add foldable categories for Renderer and Metadata files
Use TabContainer

Not sure if I see any reason for making it optional. It's tiny. And .editorconfig in the form Godot creates should not have any effect on most IDEs (it's only setting encoding, and for Godot projects only supported is UTF-8).
Also, adding this option might create a false impression that Godot supports reading and using .editorconfig (which is probably a good idea, but currently it is not implemented), no one will check tooltips.

@bruvzg I think we could hide the option from the project creation dialog for now and create the file without asking.
But in my opinion it still makes sense to move this step to project creation. Since the inability to delete the file permanently seems to be annoying for some users. And it also has a small chance of unexpected issues in projects.
Not sure if it's related but there is "ERROR: Failed to create file "res://.editorconfig".":

#97377

I agree with not making it optional, but having it only on project creation. Forcefully creating the file when editing pre-existing projects was indeed a concern of mine, and we've indeed see it appearing in unexpected places, like the GDScript test suite.
If some users ask for it, we could later add an editor setting to configure whether to create it, or expose it to the project creation dialog, but for now I think we can consider this is part of the new default files for a Godot project.

Done. This PR now moves .editorconfig creation from every startup to project creation.

Thanks!

See also the previous discussion here: https://github.com/godotengine/godot/pull/96845#issuecomment-2343167316


Add includes_hispanic to static DataSourceMetadata

The CardWrapper will read DataSourceMetadata to get the includes_hispanic and update a footer/info bar to indicate which the datasets are

Obsolete.


MINOR: Run rat checks in Jenkins script

@ijuma Not actually sure why this wasn't running before, but it's pretty obvious now that we have ajenkins.sh script that doesn't invoke the right targets... Previous issues with .git don't seem relevant since we must be running in the root repo directory for the jenkins scripts to work, but we'll see based on the jenkins output from this test.
Looks like this can be backported to 0.10.2 and higher since that's when the jenkins.sh script was introduced.

(the script was introduced during the <IP_ADDRESS> cycle, but we backported it to <IP_ADDRESS> as well)

Oops, KAFKA-4459 is exactly what I meant and is in the branch name, just messed it up during commit. Fixed. Seems like we're good as long as the rat checks show up in the Jenkins builds.


[BUG] 1.3.2-1.16 crashes dedicated server Forge 1.16.1 build 32.0.70

Notes:
NoSuchMethodError (probably a class change)
crash report:
http://paste.ubuntu.com/p/q7pZQw2zBP/
fml server latest:
http://paste.ubuntu.com/p/pYxQnqqk4d/

Confirmed on my side: Forge 32.0.71

Will try to fix that soon


No support for iOS Web App

If LuCI is added to Springboard, it opens up Safari instead of its own instance. This is in contrast to the OpenWrt forum, which acts as a separate app. As there’s no OpenWrt iOS app and LuCI having mobile support, it would be great to get the best of both worlds.

I'll just close this as https://github.com/openwrt/luci/pull/6010 was merged.
There's still the issue that subsections open up on a separate section within the webapp. Although that could be a feature instead of a bug.


Log flooded with not existing objects

Since today night, without interaction by me, the adapter is flodding teh log:
2023-05-11 03:26:23.647 - error: hue-sync-box.0 (1207) error: ECONNRESET - Connection reset by peer Message: socket hang up 2023-05-11 03:26:38.683 - error: hue-sync-box.0 (1207) error: ECONNREFUSED - Connection refused Message: connect ECONNREFUSED <IP_ADDRESS>:443 2023-05-11 03:26:55.177 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.device.overheating" has no existing object, this might lead to an error in future versions 2023-05-11 03:26:55.180 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.device.bluetooth" has no existing object, this might lead to an error in future versions 2023-05-11 03:26:55.654 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input1.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:26:55.663 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input2.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:26:55.671 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input3.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:26:55.681 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input4.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:11.989 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.device.overheating" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:12.033 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.device.bluetooth" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:12.253 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input1.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:12.268 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input2.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:12.333 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input3.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:12.343 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input4.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:28.606 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.device.overheating" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:28.635 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.device.bluetooth" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:28.833 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input1.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:28.843 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input2.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:28.853 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input3.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions 2023-05-11 03:27:28.862 - warn: hue-sync-box.0 (1207) State "hue-sync-box.0.box_wohnzimmer.behavior.input4.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions
I changed nothing so it seems to be a problem caused by Philips/Hue?

Same here. After FW Update Syncbox

@ddsak I managed it by adding those 6 datapoints manually. Change to expert mode (otherwise you won't be allowed to add datapoints to adapter structure) and add them at the right place. overheating and bluetooth under devices are boolean, the four hpdInputPortSwitch under each inputs are type number. It's a goog idea to stop the adapter before doing that. After starting again, all is fine.

Same for me:
<html>
<body>
<!--StartFragment-->

hue-sync-box.0 | 2023-05-24 20:32:04.902 | warn | State "hue-sync-box.0.box_schlafzimmertv.behavior.input4.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions
-- | -- | -- | --
hue-sync-box.0 | 2023-05-24 20:32:04.853 | warn | State "hue-sync-box.0.box_schlafzimmertv.behavior.input3.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions
hue-sync-box.0 | 2023-05-24 20:32:04.801 | warn | State "hue-sync-box.0.box_schlafzimmertv.behavior.input2.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions
hue-sync-box.0 | 2023-05-24 20:32:04.753 | warn | State "hue-sync-box.0.box_schlafzimmertv.behavior.input1.hpdInputPortSwitch" has no existing object, this might lead to an error in future versions
hue-sync-box.0 | 2023-05-24 20:32:04.624 | warn | State "hue-sync-box.0.box_schlafzimmertv.device.bluetooth" has no existing object, this might lead to an error in future versions
hue-sync-box.0 | 2023-05-24 20:32:04.580 | warn | State "hue-sync-box.0.box_schlafzimmertv.device.overheating" has no existing object, this might lead to an error in future versions
hue-sync-box.0 | 2023-05-24 20:32:02.005 | info | starting. Version 0.3.5 in /opt/iobroker/node_modules/iobroker.hue-sync-box, node: v16.18.0, js-controller: 4.0.24

<!--EndFragment-->
</body>
</html>

I will try to set the Points also by hand .. but should be fixed


New command: remove enterprise application

Usage
m365 entra enterpriseapp remove [options]
Description
Delete enterprise application
Options

Option
Description

-i, --appId [appId]
ID of the application for which the enterprise application should be deleted

-n, --appDisplayName [appDisplayName]
Display name of the application for which the enterprise application should be deleted

--appObjectId [appObjectId]
ObjectId of the application for which the enterprise application should be deleted

--force
Don't prompt for confirmation

Examples
Delete enterprise application with appId b2307a39-e878-458b-bc90-03bc578531d6.
m365 entra enterpriseapp remove --appId b2307a39-e878-458b-bc90-03bc578531d6 --force

Delete the Contoso app enterprise application.
m365 entra enterpriseapp remove --appDisplayName "Contoso app" --force

Delete the enterprise application with ObjectId b2307a39-e878-458b-bc90-03bc578531dd.
m365 entra enterpriseapp remove --appObjectId b2307a39-e878-458b-bc90-03bc578531dd

Default properties
No response
Additional Info
No response

LGTM 👍
we should add a remark like:
'Specify either the appId, appObjectId or appDisplayName. If you specify more than one option value, the command will fail with an error.'
similar like we have in entra enterpriseapp get

Can I take it?

Please do, @Saurabh7019

While reviewing this PR, I'm having a few comments:

We're missing the flag -f for force.
According to our naming convention, shouldn't it be id instead of appId? Same for appDisplayName and appObjectId. I noticed that the options used in the get, list, and add commands are really inconsistent. Let's try to align them.


[SKiDL BUG] netlist_to_skidl is no more?

Describe the bug
The documentation mentions the netlist_to_skidl tool under the section Converting Existing Designs to SKiDL.
However, some files are missing and the tool doesn't work.
To Reproduce
Steps to reproduce the behavior:

run netlist_to_skidl -i sch.net -o sch.py -w
observe the error:

Traceback (most recent call last):
  File "/home/alice/.conda/envs/bob/bin/netlist_to_skidl", line 5, in <module>
    from skidl.scripts.netlist_to_skidl_main import main
ModuleNotFoundError: No module named 'skidl.scripts'

Expected behavior
Either the shell script and the documentation should be removed, or the netlist_to_skidl_main should work.

I restructured things a few months ago to remove the wildcard imports and that seems to be the cause of this problem. I pushed the fixes into the development branch.

It works great now, thank you for the amazing software!


Ionic Upload "Error Logging In"

I recently changed my username and password on ionic account.
In the terminal when I do ionic login and put in my email and new password I keep on getting Error loggin in
I tried my old password and it doesn't work either. Also, my new password works fine when I log in/out of ionic.io.

Hello, thanks for opening an issue with us! Could you post the output of ionic info here please? Thanks for using Ionic!

Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!


[Reproducer] Extend reproducer test case.

Check that we can remove the binary and move the reproducer.

@swift-ci please test and merge


fix Fix using uint32 for tablet id overflow

Proposed changes
Issue Number: close #xxx

[INTERNAL_ERROR][INTERNAL_ERROR]close wait failed coz rpc error. VNodeChannel[4310428608-10003], load_id=c478455147aeb7f-847eb9b9965435a7, txn_id=42764708, node=<IP_ADDRESS>:8060, add batch req success but status isn't ok, err: [INTERNAL_ERROR]PStatus: (<IP_ADDRESS>)[INTERNAL_ERROR]unknown tablet to append data, tablet=15461331
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


In the PhysicsServer2D, at enum DampedSpringParam description for DAMPED_SPRING_DAMPING it states the default is 1.5, but it's 1

Godot version
4.2
System information
Macos with m1
Issue description
In the class PhysicsServer2D at enum DampedSpringParam, the description for the enum value DAMPED_SPRING_DAMPING is:
● DAMPED_SPRING_DAMPING = 2
Sets the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping).
The default value of this parameter is 1.5.

However it seems that the default value for damped spring damping is 1, not 1.5.
Steps to reproduce
Read documentation of PhysicsServer2D.damped_spring_joint_set_param and go to DampedSpringParam.
Minimal reproduction project
N/A

The default value is 1.5 in the physics server. What you're referring to is the default value of the DampedSpringJoint2D node.
https://github.com/godotengine/godot/blob/3ed4497113fa10611b90290ce22a751fb9d26e2e/servers/physics_2d/godot_joints_2d.h#L155
https://github.com/godotengine/godot/blob/3ed4497113fa10611b90290ce22a751fb9d26e2e/scene/2d/joint_2d.h#L126

For manually created springs, using joint_create + joint_make_damped_spring


Possible to use nuspec version for push command?

Is it possible to use the nuspec <version> tag in the nuspec file?
<version>1.0.1</version> would push out a version 1.0.1 to the azure devops artifact feed.

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

ID: 0fa37a3f-6551-16ad-e164-a4ac522cdaab
Version Independent ID: a3fd6935-2b99-92ef-4eb3-3249fca01f8a
Content: NuGet restore, pack, and publish task - Azure Pipelines
Content Source: docs/pipelines/tasks/package/nuget.md
Product: devops
Technology: devops-cicd-tasks
GitHub Login: @steved0x
Microsoft Alias: sdanie

Thanks for your question. It looks like you're working through an issue with your scenario or implementation. Here are a couple of options where you might consider asking your question:

Azure DevOps Support Bot
Azure DevOps on Stack Overflow


Apex Config showForZeroSeries not working?

I am trying to use the showForZeroSeries Apex Config option to hide any legend labels for entities in my donut that have a zero value. But as soon as I enable this the entire donut vanishes. It's possible I am not understanding this setting properly?
I am hoping to hide the legends highlighted in yellow.

Also finding this doesn't work as expected.

Probably a bug with the library, I'll check further.


Failed to build Caldera

I am getting an error when running "docker-compose build". It states that caldera failed to build. Would this be a permission issue? Or, something else?

Hi @garyisaac, is there content in the /caldera directory, specifically caldera/Dockerfile?  If not, the submodules may not have cloned - you can run git submodule update --init --recursive.

Thank you for the help! There is no content. I noticed that other directories like arsenal do not have content. I had an issue running "git clone --recursive git@github.com:mitre-atlas/caldera-atlas.git
cd caldera-atlas". Git did give me permission so I cloned caldera-atlas using HTTPS. I will try running the update in your comment or download each sub-module using HTTPS.


[Proposal] Add "Updates" tab to proposal page

Refer to this build by Yitong:
https://twitter.com/zhayitong/status/1640842592970752001?s=46&t=uKbQszkwNo3Mxk_f6OSjYA

Reviving this as Martin (Mogu) may have found a solution to this using Wilson Cusack's postUpdate
https://github.com/anquetil/propdates-graph
https://github.com/anquetil/propdates-app
https://github.com/wilsoncusack/Propdate


Add UI_CopyToClipboard

What if we call it CopyToClipboard, without the UI_ prefix?

And for my idea, is it dangerous to give programmatic access to the clipboard? Does it have side effects, or other consequences?

And for my idea, is it dangerous to give programmatic access to the clipboard? Does it have side effects, or other consequences?

It only writes string in it. Can't really tell if it can cause issues.

We can allow it only for lobby, so, players can copy stuff that is written by others for translation idk

@Sheikah45 do you know whether programmatic access to clipboard is dangerous?

Technically read access to the clipboard could be used to exfiltrate user secrets but this would have to be coupled with some other operation to get it out of the memory of the program.
Write access could be used to manipulate people's clipboard so that they insert different information than they expect.
Those are the two main considerations with giving a program clipboard access.

If I'm not mistaken then this would only involve write access. If there's no other security concerns, then I suppose we can start by allowing write access to the clipboard in the lobby. It would be nice to be able to copy the content of a message, for example


Bug with customDepth when flattening, whereby the customDepth…

… value was never decremented/reset. Thus, only the first key was actually being flattened.
Currently, you can easily see this bug if you update the customDepth test to:
flatten({
  hello: {
    world: {
      again: 'good morning'
    }
  },
  lorem: {
    ipsum: {
      dolor: 'good evening'
    }
  }
}, {
  maxDepth: 2
})

Instead of the expected result:
{
  'hello.world': {
    again: 'good morning'
  },
  'lorem.ipsum': {
    dolor: 'good evening'
  }
}

You instead receive:
{
  'hello.world': {
    again: 'good morning'
  },
  lorem: {
    ipsum: {
      dolor: 'good evening'
    }
  }
}

@timoxley @hughsk This is a pretty important bugfix, maxDepth is effectively completely broken without it.

Ping @timoxley @hughsk

Thanks! Good catch, this was indeed a bug.

Released in 2.0.1

Can you publish 2.0.1 to npm?

@bendrucker Done.


inconsistent errors when sending on closed track vs closed channel

It's possible I'm misunderstanding something, but...
When you send media to a track with no peers, you get io.ErrClosedPipe back. Many of the examples use this to suppress unimportant error messages.
When you send data to a data channel that is closed, you get data channel not open.
It would be nice if data channels also returned io.ErrClosedPipe in this situation, for consistency.
I guess this is a breaking API change, so maybe it should be considered for v3?

:+1: 100% agree with this.
Yea probably V3 is probably best, great catch :)


Cannot reference regex group for find and replace in Search Panel

VSCode Version:  1.3.1
OS Version: Win7

Steps to Reproduce:

Open the search panel
Click the regex search option
Enter a regex with a group
Open the replace text field
Reference the group from the Find text field with $1
Replace all

Expected:
$1 to replace with the match of the regex group
Actual:
Replaces with "$1" string instead

Duplicates #9010


Add highcharts version in documentation

Gave me a bit of head scratching when I tried to use word cloud which is only inhighcharts 6.x.x. Thought it might be good if the document states the version of highcharts it is currently using

#340 depending on when the update is made, the README.md needs to be updated also

Thanks for the PR @madsonic #340 specified the version, should be good now.


Minor corrections to punctuation and grammar

The document is well written in general. These are just a few touch ups to make reading it even smoother.

Thanks a lot @khaledh, I really appreciate


Improve rating

Need to improve this component on \Rating\src\rating-1.html
Improvements required :
Need to make 3 versions of this.
sm - w-5 and h-5
md - w-7 h-7
lg - w-9  h-9
Any reference image?
No
Any external reference?
Check out this button component to get a understanding how to make the file. Button component

I want to work on this. Please assign me

You are already assigned to an issue. @1ananya3

Do i have to make three more HTML file in record section and add these version in the class or something else is to be done

Yes. make 3 different one. Do you like to work on it. @Hirenachhaada

Sir please confirm 3 different one means 3 div itself in rating1 file
I would like to work on it

please assign this to me

@Rajdip019  I want to work on this issue.
Please assign this issue to me

Sir please confirm 3 different one means 3 div itself in rating1 file
I would like to work on it

Check the rating-2.html file in the same folder. You need to make the structure exactly the same.

Sir please assign the issue

GO ahead @Hirenachhaada

is it correct sir @Rajdip019

This is perfect just add comments on the different div like small, medium, large and make a PR. @Hirenachhaada

ok sir

@Rajdip019 sir, please merge the PR

Merged! Great work @Hirenachhaada


A small shift of the center position

Very useful tools!
I found there is a small shift of the center position between the image I get from unagi (upper) and from hsc_map directly (lower):

They are fed with the same coordinate and the real size of the image is the same (3.6" x 3.6"). What could be a possible reason for this?
Thanks!

Not sure what happened at that time, it is fixed in the current version.


Make it possible to recover after running out of fuel

As we all know, because of the halting problem, it isn't possible to know whether the execution of a Wasm function will finish in a finite time.
While a Wasm function is being executed, maybe everything is okay and it is simply taking a long time, or maybe the Wasm execution is stuck in an infinite loop. It isn't possible to know in which of the two scenario we currently are.
Because the program that is interpreting the Wasm doesn't want, itself, to be stuck infinitely, it needs some sort of protection against the Wasm being stuck in an infinite loop.
While the program interpreting the Wasm can't know whether the Wasm is stuck in an infinite loop, it can use heuristics.
For example, if the Wasm has been executing for 10 seconds while normally it should take around 2ms, then it is likely to be stuck.
Wasmi provides a fuel system, making it possible to interrupt the execution of the Wasm after a certain number of instructions have been executed.
This system is however not very flexible. It's all-or-nothing: when all the fuel has been consumed, the execution completely stops and can never be resumed.
Furthermore, it is difficult to map "fuel quantities" with real world time/CPU usage. A precise fuel number means that whether the execution will run out of fuel or not doesn't depend on the speed of the machine, which has the advantage to be deterministic. However, this is also a drawback: it is not possible to stop the execution after an approximate number of seconds. If you pick a certain fuel quantity, on some platforms this fuel will expire quickly and on some others it will expire very slowly. Fuel quantities are very arbitrary anyway, and I think that it is legitimate to want to stop after a certain number of real life seconds.
In order to solve that problem, I would suggest to make it possible to combine the call_resumable feature with the fuel system.
When the fuel expires, call_resumable should return a Ok(ResumableCall::Resumable) (or something similar) instead of an Err.
This would make it possible for the API user to choose what to do: either stop the execution, or add more fuel and resume the execution. This provides maximum flexibility to this feature.
The API user could do things such as print a warning after a certain time, ask the human whether to continue or not, de-prioritize the thread executing the Wasm after a certain time, etc.

Being able to use the fuel system together with call_resumable would be perfect. Would this be a difficult feature to implement? Perhaps I can find some time tonight to fork wasmi and implement this.

@tomaka Thanks for writing the issue!
I have a few questions ...

In order to implement this feature we need to adjust the current API fro resumable function calls as it won't make sense to query the host function that caused the call to be interrupted in the first place. Also for efficiency reasons we might choose to diverge. What is the information that users of resumable function calls actually require? Is function type of the failed function enough? (Minimal information.)

I suppose resumable calls should still return error for normal Wasm traps and this issue is basically about implementing a special rule for OutOfFuel traps, right?

To answer some questions:
At the moment fuel is somewhat arbitrary. However, there are plans to adjust our fuel costs to a similar policy as to what Wasmtime does in where basically one instruction roughly costs 1 fuel to execute. Currently we are trying to do a more precise job but since this can only be a heuristic at best it is better to make this even simpler just like Wasmtime did.
@Lucky4Luuk I think it should be technically feasible to implement this feature. The only actual question is if it is possible to implement this feature without massive performance regressions. We have been dealing with lots of those performance regressions for various reasons lately. Still trying to figure out why.
For the same reason we probably won't implement a feature to call a host function every X instructions. First this is heavily underspecified and secondly host function calls are among the most expensive things you can do in wasmi. So we usually try to minimize those if possible.

In order to implement this feature we need to adjust the current API fro resumable function calls as it won't make sense to query the host function that caused the call to be interrupted in the first place. Also for efficiency reasons we might choose to diverge. What is the information that users of resumable function calls actually require? Is function type of the failed function enough? (Minimal information.)

Well, in smoldot I also need the parameters that were passed to the host function. Again, the idea is simply to implement the body of the host function "externally" and not within a callback.

I suppose resumable calls should still return error for normal Wasm traps and this issue is basically about implementing a special rule for OutOfFuel traps, right?

That's your choice. I suppose that every error that can be resumed from could lead to Ok(ResumableCall::Resumable) instead of Err. Of course, it would then need to be explained which ones are and which ones aren't, or you could change Trap to be enum Trap { Resumable(ResumableTrap), NonResumable(NonResumableTrap) }.

At the moment fuel is somewhat arbitrary. However, there are plans to adjust our fuel costs to a similar policy as to what Wasmtime does in where basically one instruction roughly costs 1 fuel to execute. Currently we are trying to do a more precise job but since this can only be a heuristic at best it is better to make this even simpler just like Wasmtime did.

Well, in smoldot I also need the parameters that were passed to the host function.

Technically you could embed those parameters into the host error that caused the interruption of the resumable call, right?
The current API does not offer this functionality (yet) and I am not sure it will because it would introduce serious overhead for resumable call handles. It might still be a good idea to implement this if the majority of use cases require this information.

or you could change Trap to be enum Trap { Resumable(ResumableTrap), NonResumable(NonResumableTrap) }.

That's partially what already happens in the Engine not visible to users. However, to me it is important that the resumable call API does not crawl on top of every other abstraction in wasmi but is kept isolated.
I will think about a possible API to extend resumable calls with OutOfFuel traps and post it here once I am done. However, there is other work to be done beforehand so it will probably take a little while.

@tomaka How pressing is this issue for smoldot?

It's not pressing.
The objective is simply for smoldot to be able to resist to malicious parachains. At the moment, if you connect to a malicious chain, this chain can freeze smoldot.
However, I don't see a legitimate use case where you want to connect to a chain without knowing whether it's malicious. Typically, you connect a light client to a chain that you know, not an unknown chain.
Even if it exists, all the malicious chain can do is crash smoldot, and it's doubtful why someone would bother with that kind of attack in the first place.

It's not pressing.
The objective is simply for smoldot to be able to resist to malicious chain. At the moment, if you connect smoldot to a malicious chain, this chain can freeze smoldot. However, I don't see a legitimate use case where you want to connect to a chain without knowing whether it's malicious. Typically, you connect a light client to a chain that you know, not an unknown chain. Even if it exists, all the malicious chain can do is a be a small nuisance by freezing smoldot, and it's doubtful why someone would bother with that kind of attack in the first place.

Okay thanks a lot for this info!
I am still going to fix this eventually but it is good to know that you are not blocked by this issue.

Hello. Not to necro this thread but I have a viable use case for this in my operating system AbleOS. I'd like to have this functionality.

This is currently blocked mostly because of two things:

I am not yet super confident that I have a decent enough understanding of the technical requirements of users (you). What I'd need here is the exact semantics that you need and in the best case even an example code for your personal use case.
I am not yet sure if this can be implemented as zero-cost abstraction or with minimal overhead in general. I am sure it can be done though.

The goal: I'd like for the wasm engine to be pauseable so I may do task switching.
I have two main ways that I think my goal could be accomplished.
I think there are two ways this can be done:

Fuel metering with resuming
A tick based system

And if both are implemented I think there is enough variation that all use cases can be covered.
My usecase would require a pause button that halts the engine at the next instruction, stores state and can later be unpaused.
Thank you for the quick response!


Promote bf16 to f32.

Let me know if there's a better way to organize this or tests you think are missing.

Seems just clang-format pending, thanks


[Icon Requests from Feather] helping-hand

As per https://github.com/lucide-icons/lucide/issues/119 and https://github.com/feathericons/feather/issues/831:

I like the third one


Adding "Restaurant Opened for Delivery" feature in Essentials.

To make people aware of the restaurants providing home delivery to them, a restaurant feature must be made available to them in the Essentials section.
I would like to add this feature on a new page which will include the details of the restaurant ( such as an address, contact number, and image). Basically this page will help people to know about the restaurants available for them in this bad time. This page will only display the essential information about the restaurant.
I have also thought about sorting the restaurants on the basis of their location and also to include a search filter that will help the people to quickly find the restaurant of their choice.
Basically this feature will not only provide the restaurants a platform to show themselves but it will also help the jobless people to get the job of a delivery person as well. Since due to this COVID-19 situation it has become difficult for the restaurants to maintain themselves on platforms like swiggy and zomato, and also many small restaurants that are not capable of displaying them there can showcase themselves here.

How do you collate this data? I presume it's quite a lot of data that needs to be collected?

If we use google forms to collect data directly from the restaurant owners them it would be easy to collate this data. We will only be collecting the data such as
-restaurant name
-complete address
-contact number
-restaurant image and its menu card.
Now considering the platforms Swiggy and Zomato,swiggy charges around 18-23% per order for the restaurants on its platform similarly zomato charges around 1000rs. Looking at the current scenario all the restaurants are not in the position to pay this much of charge. Also, many people have lost their jobs in this meantime so these restaurants can also provide such people with a job of a delivery person.

If we use google forms to collect data directly from the restaurant owners them it would be easy to collate this data. We will only be collecting the data such as
-restaurant name
-complete address
-contact number
Now considering the platforms Swiggy and Zomato,swiggy charges around 18-23% per order for the restaurants on its platform similarly zomato charges around 1000rs. Looking at the current scenario all the restaurants are not in the position to pay this much of charge. Also, many people have lost their jobs in this meantime so these restaurants can also provide such people with a job of a delivery person.

Interesting. @sudevschiz @JunaidBabu thoughts?


Fix double comma

In the warn subhed

Coverage remained the same at 98.958% when pulling 1e33f2758ac8b2e31acca4d23bdfa0b3de308c83 on fix-comma into 9a74da7866ee8b1fcb811f7cb4480b9045b1212c on master.


deps: upgrade actions/cache to v2 in all templates

actions/cache@2 has been released and comes with some useful updates.

Thanks, will merge this in this weekend or next week when I'm back from vacation.
The current implementation is flawed btw, as it caches node_modules instead of yarn-cache or ~/.npm.
I've been planning on changing the templates to use the npm_install action as TSDX uses as of #625, but that one is buggy on Mac and Windows and my issue report hasn't been responded to https://github.com/bahmutov/npm-install/issues/24. Planning to fork and fix that, but it relies on a fork of some of the GH actions since there weren't NPM packages of them -- now there are per the changelog so that should make that easier.
This is still an improvement over the current version so still makes sense to merge until that is ready.

@allcontributors please add @devrelm for code


ads jittering while scrolling in iOS pro motion devices

MAX Plugin Version
3.7.0
Flutter Version
3.19.0
Device/Platform Info
iOS 17.2
Current Behavior
while scrolling in iOS pro motion devices, ads jitter and jump. When scrolling stops, ads stop flickering too. This only happens on high end 90-120hz refresh rate phones.
Expected Behavior
No response
How to Reproduce
Put ads in a custom scrollview
Additional Info
No response

@aytunch. this sounds like a general flickering issue for iOS devices while scrolling.   Could you try the solutions available  here?

@alhiwatan the only flickering widgets are Applovin ads. Other widgets can be smoothly scrolled. This might be a Flutter bug on using platform channels in scrollable views. Are Applovin widgets purely in flutter or do they use platform channels?

@aytunch, we are showing a UIView via the platform channel.

This issue is stale due to inactivity and will be closed. If this is an error or you have more info, please reopen.


ValueError: a must be greater than 0 unless no samples are taken

I'm getting errors when trying to run custom training model code taken from documentation with my own dataset.
`from imageai.Detection.Custom import DetectionModelTrainer
trainer = DetectionModelTrainer()
trainer.setModelTypeAsYOLOv3()
trainer.setDataDirectory(data_directory="keycaps")
trainer.setTrainConfig(object_names_array=["a-key"], batch_size=4, num_experiments=200, train_from_pretrained_model="yolov3.pt")
trainer.trainModel()`
Here is the issue I'm facing when running the code above:
`Warning (from warnings module):
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\core_methods.py", line 264
ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
RuntimeWarning: Degrees of freedom <= 0 for slice
Warning (from warnings module):
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\core_methods.py", line 222
arrmean = um.true_divide(arrmean, div, out=arrmean, casting='unsafe',
RuntimeWarning: invalid value encountered in true_divide
Warning (from warnings module):
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\core_methods.py", line 253
ret = um.true_divide(
RuntimeWarning: invalid value encountered in true_divide
Traceback (most recent call last):
File "C:\Users\shaun\workspace\imageAI-python\DetectionTrainer.py", line 7, in
trainer.trainModel()
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\imageai\Detection\Custom_init_.py", line 229, in trainModel
self.__set_training_param(self._epochs, accumulate)
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\imageai\Detection\Custom_init.py", line 62, in __set_training_param
self.__anchors = generate_anchors(
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\imageai\Detection\Custom\yolo\custom_anchors.py", line 58, in generate_anchors
k, dist = kmeans(wh / s, n, iter=30)  # points, mean distance
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\scipy\cluster\vq.py", line 475, in kmeans
guess = _kpoints(obs, k, rng)
File "C:\Users\shaun\AppData\Local\Programs\Python\Python39\lib\site-packages\scipy\cluster\vq.py", line 503, in _kpoints
idx = rng.choice(data.shape[0], size=k, replace=False)
File "mtrand.pyx", line 909, in numpy.random.mtrand.RandomState.choice
ValueError: a must be greater than 0 unless no samples are taken`

Hi.
I've got same errors too, but I've solved it.
Using PascalVOC format will cause an error, you need to convert your dataset to YOLO format.
https://github.com/OlafenwaMoses/ImageAI/blob/master/BACKEND_MIGRATION.md#convert-pascal-voc-dataset-to-yolo-format
Link to converter script: https://github.com/OlafenwaMoses/ImageAI/blob/master/scripts/pascal_voc_to_yolo.py


CORRECTNESS: Validate keys' order only if from/to keys are available (not null)

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

The change looks good to me.


(lib/IDE) @_documentation attribute always crashes sourcekit-lsp

using the @_documentation attribute always crashes sourcekit-lsp on the 5.8 branch.
@_documentation(visibility: public)
enum E
{
}

both @_documentation(visibility:) and @_documentation(metadata:) are affected, as well as both quoted and un-quoted metadata forms.
it appears to trip this assertion in lib/IDE/SyntaxModel.cpp:
sourcekit-lsp: /home/build-user/swift/lib/IDE/SyntaxModel.cpp:1343: auto (anonymous namespace)::ModelASTWalker::handleAttrRanges(ArrayRef<(anonymous namespace)::ModelASTWalker::DeclAttributeAndRange>)::(anonymous class)::operator()(swift::SourceRange) const: Assertion `(TokenNodes.empty() || SM.isBeforeInBuffer(AttrRange.End, TokenNodes.front().Range.getStart())) && "AttrRange doesn't align with any TokenNode?"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.

this happens on swift-5.8-DEVELOPMENT-SNAPSHOT-2023-02-23-a.
$ swift --version
Swift version 5.8-dev (LLVM 44d4f9d4b49845f, Swift b9562e1a860ec0b)
Target: x86_64-unknown-linux-gnu

I opened https://github.com/apple/swift/pull/64326 which fixes a crash, though it's not the same assertion as your message. I'm building a Linux toolchain on that PR; if it succeeds, would you be willing to test it out for me?

if it is an Amazon Linux 2 toolchain, yes!

Looks like Swift CI builds an Ubuntu toolchain on its Linux builder. 😕 Still, the archive is here: https://download.swift.org/tmp/pull-request/64326/384/ubuntu2004/PR-ubuntu2004.tar.gz

just verified the @_documentation attribute is no longer crashing sourcekit-lsp on the 5.8 release. thanks Victoria!


:sparkles: Add Copy Function to Translation Module

I tried to implement a Copy procedure as proposed in issue #12342

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Availability update: We will publish a fix for this issue in the next update for release 18.


Add a job_extra flag to the SGECluster

The SGECluster has no job_extra setting like all the other clusters do, which limits its abilities. This PR adds the job_extra flag in the same way as it appears in the other cluster files.
xref #219 and #235 which seemed to allude to SGECluster having the job_extra flag, but no such flag appears to exist.

Merging, thanks a lot @Lnaden!

Glad to see you back around @lesteve, I'm quite taken by work since several weeks!


Add support for line comments

e.g.
// This is a full-line comment
const a = 5; // this is a trailing comment

This was addressed by migrating to a tree-sitter grammar.


[?] merge uwlswd + uwlswd_metadata

SUMMARY
QUESTION ❓ Merge repositories uwlswd and uwlswd_metadata?
DETAILS
UWLSWD resources and publishing tools are spread across several repositories (see uwlswd/repositories for details). As a result it is often difficult to decide which repository an issue or discussion should be created in.
Merging these two repositories might make these decisions easier. That is:

for any issue or discussion affecting all/multiple UWLSWD resources, the new merged repo should be used
for any issue or discussion specific to a given resource (dataset/vocab), the repo containing the resource serializations should be used

Seeking feedback from @uwlib-cams/uwlswd members

It seems OK. The trick, I believe, is to actually "merge" and not "move" so as to retain the commit history. I've never merged two repos. This is a little more advanced git so maybe we can do it at a git meeting? (We had something else for a Git meeting, I can't remember what.)

This would actually be quite helpful! It shouldn't cause any problems in the workflow.

Combined repositories 🎉 lost commit history 😢 (or, at least, commit history that can be viewed easily in the browser)
See details of the attempt at Sandbox/combine-repos-attempt-20230815
The very minimal commit history for DataCite metadata files is still available, for the moment, at that repository. But, @gerontakos , @cspayne , any reason not to delete the old repo and complete the tasks above?

I don't see any potential issues on my end!

Done - DataCite XML in uwlswd/DataCite, uwlswd_metadata deleted


Disable Home Screen requirements

Apple is removing support for web apps / PWAs in iOS 17.3 for EU customers. This means that the current implementation will no longer work for them as we explicitly require the app to be on the home screen before we show the main UI. 🤦🏻♂
While the user experience will be less than stellar, we should drop this home screen requirement and allow Game Play to run directly in Safari.

I'd love to write something more public about this once it's supported too. This trend from Apple feels incredibly restrictive and deserves calling out and it would be good to have something to point users to when people are inevitably upset about this change.

I'm planning to disable these as part of the work to support adding local files instead of using Google Drive.


Decouple message handling from express

I want to be able to create multiple bots on different pages and forward to the correct bot based on the page id from the incoming message.
Currently this is impossible because the message handling is coupled with the express request handling.
This opens that up and also makes testing easier without needing to create an express instance to test message handling.
The tests are ugly, but I think useful.

If this is interesting, I think the next step would be to make it possible to just turn off express.

Regarding my last comment: It turns out you don't have to turn off express. Just don't run bot.start() and the express server will never be started.

I like this. Thanks for adding those tests, we definitely need better test coverage, and this change makes the task a lot easier.
My only request is, could you add some documentation to the readme file? I'm thinking another subsection at the end of the Documentation section (before Examples) with a description of how to use this handleFacebookData method and, like you said in your last comment, what should be done if you don't want to use Express.
Thanks!


h3-session: ERROR  [nuxt] [request error] [unhandled] [500] Cannot set properties of undefined (setting 'content-type')

Environment
In Node v20.14-latest
Nuxt: Nuxt 3.11.2 and 3.12.1
on MacOS and Ubuntu
Nuxt Modules: @vueuse/nuxt
Vuetify installed as defined on their homepage
Reproduction
I have no idea, where this came from. When removing SSR: false it showed up, at the end of a long development.
Describe the bug
Nuxt shows: TypeError: Cannot set properties of undefined (setting 'content-type') on the website.
the Console shows:
 ERROR  [nuxt] [request error] [unhandled] [500] Cannot set properties of undefined (setting 'content-type')
  at ServerResponse.setHeader (node:_http_outgoing:712:45)
  at setResponseHeaders (./node_modules/h3/dist/index.mjs:778:20)
  at Object.handler (./node_modules/nitropack/dist/runtime/renderer.mjs:31:7)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async ./node_modules/h3/dist/index.mjs:1962:19
  at async Object.callAsync (./node_modules/unctx/dist/index.mjs:72:16)
  at async toNodeHandle (./node_modules/h3/dist/index.mjs:2249:7)
  at async ufetch (./node_modules/unenv/runtime/fetch/index.mjs:9:17)
  at errorhandler (./node_modules/nuxt/dist/core/runtime/nitro/error.js:37:41)
  at async Server.toNodeHandle (./node_modules/h3/dist/index.mjs:2256:9)

Nothing else.
Additional context
I never set content-type anywhere.
Is this a known thing?
Anything specific could search the code for?
Logs
No response

Without reproduction, it is really not possible to tell. If you have same issue still and can assemble a repo (nuxt app) would be happy to track here.

i got same issue
"TypeError: Cannot set properties of undefined (setting 'content-type')"
if i set the node express in server/middleware folder.


For Metal way to scan the options - Syntax to grow past one parameter

What is the feature being requested?
Issue #175 is being broken up.
This allows the user to scan multiple options at one time.  Can be multi dimension output
What are use cases for this feature?
When a user want to scan a second parameter for each value of a first parameter.

This could be added as a demo within a notebook..


docs(tailwind): Update tailwind-css.mdx

Add guidance to integrate with TailwindCSS.
Related shuding/nextra-docs-template#45

We need this!!! Otherwise tailwind doesn't work.


List of compliant national DGC gateways

List of compliant national DGC gateways
I'm following the development of the DGC libraries with great interest and I'd like to thank the community for steadily improving the respositories. Currently I am trying to implement the DGCG connector for easier retrieval of trusted certificates and business rules. Sadly, I did not find any list of compliant national gateways at the moment. In a longer discussion (https://github.com/eu-digital-green-certificates/dgc-participating-countries/issues/10) various implementations were mentioned, but I refuse to implement a different logic per country (or even provider) when there is an open standard.
Does anyone have a source with publicly available gateways (or at least one trustworthy source with a proper documentation)?
Sources I've already screened

https://dgc.a-sit.at/ehn/ (sadly, no documentation)
https://github.com/eu-digital-green-certificates
https://github.com/ehn-dcc-development
https://github.com/panzi/verify-ehc/blob/main/verify_ehc.py (great work!)

Hi @grieshofer , from dev team I can say that we do not have an overview about the current implementations of the national backends.
But I can let this ticket open that maybe somebody else has some information.
But I don't think that you will get any response here because this repo is more or less a "hidden place" with not so much visitors.


Fix a hyperlink to "Guide to migrating Big Data workloads to Azure HDInsight"

It looks like the artifact "Guide to migrating Big Data workloads to Azure HDInsight" in the section Lift and Shift to HDInsight is broken. Could you please fix the link?

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

ID: 7c269dec-85ae-1519-e309-ae710fff30f4
Version Independent ID: 7c269dec-85ae-1519-e309-ae710fff30f4
Content: Hadoop migration to Azure - Azure Architecture Center
Content Source: docs/guide/hadoop/overview.md
Service: architecture-center
Sub-service: azure-guide
GitHub Login: @martinekuan
Microsoft Alias: namratam

@arnabganguly
It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!!

@arnabganguly
Duplicate of https://github.com/MicrosoftDocs/architecture-center/issues/4294


App Crashes when using observable

What
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An instance of NSFetchedResultsController requires a fetch request with sort descriptors'
Context
let request : FetchRequest<DataObject> = FetchRequest<DataObject>()

                self.observable = db.observable(request: request)

                pedometerDataObservable.observe { (changes) in
                    switch changes {

                    case .initial(let objects):
                        print("\(objects.count) objects in the database")
                    case .update(let deletions, let insertions, let modifications):
                        print("\(deletions.count) deleted | \(insertions.count) inserted | \(modifications.count) modified")
                    case .error(let error):
                        print("Something went wrong", error.localizedDescription)
                    }
                }

@firecrackerz the project is no longer maintained so I encourage you to look for alternatives


Add a Supplies tracker to the Equipment tab

The easier way is just add this to the main tab.

This will be added in the next version of the module.


Spring 3.1.x and Keycloak 22.x OAuth2 Tutorial not working

Article and Module Links
"Spring-Boot-Keycloak" @ Github
"Spring-Boot-Keycloak" @ Baeldung Website
Describe the Issue
The following code is not working in Spring 3.1.5 and Keycloak 22.0.5 with OIDC via OAUTH2, because I can remove the role user in Keycloak and still can access the /customers enpoint.
@Configuration
@EnableWebSecurity
class SecurityConfig {

    private final KeycloakLogoutHandler keycloakLogoutHandler;

    SecurityConfig(KeycloakLogoutHandler keycloakLogoutHandler) {
        this.keycloakLogoutHandler = keycloakLogoutHandler;
    }

    @Bean
    protected SessionAuthenticationStrategy sessionAuthenticationStrategy() {
        return new RegisterSessionAuthenticationStrategy(new SessionRegistryImpl());
    }

    @Order(1)
    @Bean
    public SecurityFilterChain clientFilterChain(HttpSecurity http) throws Exception {
        http.authorizeRequests()
                .requestMatchers(
                        new AntPathRequestMatcher("/"),
                        new AntPathRequestMatcher("/js/**"),
                        new AntPathRequestMatcher("/css/**"),
                        new AntPathRequestMatcher("/font/**")
                )
                .permitAll()
                .anyRequest()
                .authenticated();
        http.oauth2Login()
                .and()
                .logout()
                .addLogoutHandler(keycloakLogoutHandler)
                .logoutSuccessUrl("/");
        return http.build();
    }

    @Order(2)
    @Bean
    public SecurityFilterChain resourceServerFilterChain(HttpSecurity http) throws Exception {
        http.authorizeRequests()
                .requestMatchers(new AntPathRequestMatcher("/customers*"))
                .hasRole("USER")
                .anyRequest()
                .authenticated();
        http.oauth2ResourceServer((oauth2) -> oauth2
                .jwt(Customizer.withDefaults()));
        return http.build();
    }

    @Bean
    public AuthenticationManager authenticationManager(HttpSecurity http) throws Exception {
        return http.getSharedObject(AuthenticationManagerBuilder.class)
                .build();
    }
}

Expected Behavior
The endpoint /customers should be restricted if the role "user" is removed in Keycloak from a user.
Screenshots
OAuth2AuthenticationToken [Principal=Name<EMAIL_ADDRESS>Granted Authorities: [[OIDC_USER, SCOPE_email, SCOPE_openid, SCOPE_profile]], User Attributes: [{at_hash=SDlv04mxz7mjKqvp36vMLw, sub=c9ce52ef-0b65-4af9-a5ff-0ef84c5e5806, resource_access={app={roles=[member]}, account={roles=[manage-account, manage-account-links, view-profile]}}, email_verified=true, iss=https://MyKeycloakDomain.com/realms/MyRealm, typ=ID<EMAIL_ADDRESS>given_name=Kevin, nonce=KeAWgOor7dsAqWQo1K8jm0K_H8EDEHWxalZecaB4KXk, sid=2f35089a-9e35-4ca1-b1f8-aadc5990bb2a, aud=[app], acr=1, azp=app, auth_time=2023-11-20T09:19:24Z, name=Kevin Surname, exp=2023-11-20T09:24:24Z, session_state=2f35089a-9e35-4ca1-b1f8-aadc5990bb2a, family_name=Surname, iat=2023-11-20T09:19:24Z<EMAIL_ADDRESS>jti=751e18c1-9c3d-4edc-9926-786b465c2797}], Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=BBCFD5155D3ECD8B46C6E4049E95186F], Granted Authorities=[OIDC_USER, SCOPE_email, SCOPE_openid, SCOPE_profile]]
As you can, even if the role user is assigned to my account, it's no in Granted Authorities. The role is stored in resource_access={app={roles=[member]}
Environment (please complete the following information):

OS: WINDOWS
Browser: BRAVE
Version Keycloak: 22.0.5
Version Spring: 3.1.5

Additional Context
I just created the Keycloak realm like in te tutorial, only create the realm, create the user and assign the role. I also added a second role named "admin" and protected endpoints /admin - doesn't work.

Hey, @OtenMoten.
Thanks for the feedback. We'll look into this.
This issue will remain open until then.

Dear @ulisseslima and community,
I found a pretty solutions for Spring 3.1.5 as well as 3.2.0 and Keycloak 22 as well as 23.
I'm now working on finalizing the code - it will be inserted here.
[PLACEHOLDER]
Thanks for your patience!

hi @OtenMoten , where can I have a look to your updates, please ;)

@OtenMoten Any updates on this issue would be highly appreciated. If there is an earlier version of Keycloak where it works, please suggest.

Hello,
We applied the fix. The issue should be resolved now. The code and the article have been updated to reflect the changes.

Dear @vsbgugan and @anthonydenecheau I really appriciate your patience. I'm heavly busy but I did not foget you.
Before I drop my code, what has changed @kasramp ?


Bug in Wire timeout loop causes long delays in I2C read/write.

There is a bug these Wire.cpp member functions that causes delay(1) to be called for almost all transactions:
uint8_t TwoWire::read_from(uint8_t address, uint8_t* data, uint8_t length, unsigned int timeout_ms, bool sendStop)
uint8_t TwoWire::write_to(uint8_t address, uint8_t* data, uint8_t length, unsigned int timeout_ms, bool sendStop)

I tested with several I2C devices, a RTC and a OLED display.
Here are results of the RTC test with this program reading the time/date registers for a PCF8523 RTC.
I ran the program on a R4 WiFi.
#include "Wire.h"
// Read PCF8523 RTC registers
const uint8_t PCF8523I2cAdd = 0X68;  ///< I2C address.
const uint8_t PCF8523SecAdd = 0X03;  ///< Seconds register address.
void setup() {
  Serial.begin(9600);
  while (!Serial) {}
  digitalWrite(D13, LOW);
  pinMode(D13, OUTPUT);
  Wire.begin();
  Wire.setClock(400000L);
  Wire.beginTransmission(PCF8523I2cAdd);
  Wire.write(PCF8523SecAdd);
  digitalWrite(D13, HIGH);
  uint8_t rtn1 = Wire.endTransmission();
  digitalWrite(D13, LOW);
  digitalWrite(D13, HIGH);
  uint8_t rtn2 = Wire.requestFrom(PCF8523I2cAdd, 7);
  digitalWrite(D13, LOW);
  Serial.print("ss mm hh DD WD MM YY: ");
  for (uint8_t i = 0; i < 7; i++) {
    Serial.print(Wire.read(), HEX);
    Serial.print(i == 6 ? '\n' : ' ');
  }
  Serial.print("rtn1: ");
  Serial.print(rtn1);
  Serial.print(", rtn2: ");
  Serial.println(rtn2);
}
void loop() {}

Here is timing of Wire with the recent 400kHz fix.    I use D13 HIGH on channel 2 to indicate time in Wire.

Here is timing after I did a hack to remove the delay.  This is not meant to be a fix for the bug.

Note that the time to to read the RTC was reduced from 2,146 μs to 259 μs.
Here are the two hacked timeout loops:
in read_from at about line 464 of Wire.cpp
    timeout_ms = 10000;   // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    while(timeout_ms > 0 && bus_status == WIRE_STATUS_UNSET) {
      timeout_ms--;
//      delay(1);  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    }

In write_to at about line 493 of Wire.cpp
    timeout_ms = 10000;   //  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    while(err == FSP_SUCCESS && timeout_ms > 0 && bus_status == WIRE_STATUS_UNSET) {
      timeout_ms--;
 //     delay(1);  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    }

Edit:  I tested on a R4 Minima and results are almost identical.

Thank you for this report. It is not that easy to fix it, but it's definitely something that needs to be improved.
Examples of how this can impact a real-world project can help setting a priority for this

Being tacked in #46 , testing would be very appreciated :slightly_smiling_face:


Doesn't seem to work for me

Hello, after configuring this I am still able to access the site from anywhere. I am running caddy built with this module in docker compose. My caddyfile is below:
(headers) {
    header {
        -Server
        Cache-Control "no-transform"
        Content-Security-Policy "upgrade-insecure-requests; frame-ancestors 'self'"
        Permissions-Policy "interest-cohort=()"
        Referrer-Policy "same-origin"
        Strict-Transport-Security "max-age=63072000"
        X-Content-Type-Options "nosniff"
        X-Frame-Options "SAMEORIGIN"
        X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"
        X-UA-Compatible "IE=Edge"
        X-XSS-Protection "1; mode=block"
    }
}

(encode) {
    encode zstd gzip
}

(geofilter) {
    @geofilter {
      maxmind_geolocation {
        db_path "/home/user/GeoIP/GeoLite2-Country.mmdb"
        allow_countries US
      }
    }
    respond @geofilter 403
}

website.example.com {
    tls<EMAIL_ADDRESS>
    reverse_proxy https://example.com:443 {
        transport http
    }

    import tls
    import headers
    import geofilter
    #import encode
}

Hi @ale-rinaldi
I was able to resolve this by changing the maxmind_geolocation to not maxmind_geolocation. After doing that it started working. Thank you


update socket.io

Because I had some stability issues with the socket.io connections, I looked into the socket handling and have seen that quite outdated packages are in use for that.

Package
In use
Latest

socket.io
2.4.1
4.0.1

socket.io-client
2.4.0
4.0.1

express-socket.io-session
1.3.5
no release since 3 years

Due to incompatibilities it is not possible to simple switch to a newer version, some changes must be done.
Here is a simple example on how to combine socket.io 4 with express and passport:
https://github.com/socketio/socket.io/blob/master/examples/passport-example/index.js

Done in new client/server


Failed to clean up S3 bucket when cloudformation rolls back

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
Amplify Console GitHub Issue Tracker

Describe the bug
A clear and concise description of what the bug is.
When running amplify push fails, it fails to roll back S3. Then the following push is blocked by the error below
CREATE_FAILED      S3Bucket                                                     AWS::S3::Bucket            Sun Jan 12 2020 20:27:37 GMT-0500 (EST) vendorauto192349-dev already exists
CREATE_FAILED      amplify-vendorauto-dev-192349-storagevendorauto-LPHG617K6MXG AWS::CloudFormation::Stack Sun Jan 12 2020 20:27:37 GMT-0500 (EST) The following resource(s) failed to create: [S3Bucket].
Amplify CLI Version
4.12.0
To Reproduce

create an amplify project with storage
run amplify push
amplify push fails after S3 bucket created
rerun amplify push

Expected behavior
when amplify push fails it should delete S3 bucket
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Mac
Node Version. 10

Additional context
Add any other context about the problem here.

@gaochenyue Can you try manually removing the bucket using the console and retrying the push. I am assuming since the bucket is newly created it's empty

Thanks @ammarkarachi. Removing the bucket and rerun amplify push works for me.

This is still broken though, and should be addressed.  It results in a lot of undue work and wasted time.  If these processes were way more instant it might be acceptable.


improved compatibility with PEP660 and latest setuptools (#4711)

Pull request opened by the merge tool on behalf of #4711

Merged into branches iso5 in dfcee49411e88adc07bd26d12eeed8ff773d7dca


Disable NSValue serialization tests on OSX

Disables NSValue arbitraryStructCanBeSerializedAndDeserialized on OSX because __m128 has no encoding on OSX and the struct cannot be serialized.
Fixes #778

:shipit:

@rajsesh-msft is added to the review. #Closed

:shipit:

:shipit:

Passed CI Build


Fix varint encoding

varint has a bug where its not quite bit compatible with Google's varint.

Removed varint since it wasn't used, easier solution.


[WAX]: Add WAX chain

Description
Add WAX chain with basic transfer functions (#2670).
How to test
Unit tests, check transaction on explorer
Types of changes

New feature (non-breaking change which adds functionality)

Checklist

[X] Reuse existing EOS code to add WAX
[X] Add tests to cover changes as needed.
[x] Update documentation as needed.
[x] If there is a related Issue, mention it in the description.

Description
Add WAX chain with basic transfer functions (#2670).
How to test
Unit test
Types of changes

New feature (non-breaking change which adds functionality)

Checklist

[X] Create pull request as draft initially, unless its complete.
[X] Add tests to cover changes as needed.
[ ] Update documentation as needed.
[ ] If there is a related Issue, mention it in the description.

If you're adding a new blockchain

[ ] I have read the guidelines for adding a new blockchain.

We'd be happy to look into this for you. Kindly file a support ticket here
https://forms.gle/zVGLP7GATPsDHdkH9

If you run iOS and Android tests locally, you will find why it's failed, not random guess

If you run iOS and Android tests locally, you will find why it's failed, not random guess

iOS worked locally, there's something weird going on, investigating...

If you run iOS and Android tests locally, you will find why it's failed, not random guess

iOS worked locally, there's something weird going on, investigating...

There is nothing to investigate you just need to add few unit tests, this is very easy to spot if you compare with existing pull request that was merged adding a new chain:

https://github.com/trustwallet/wallet-core/pull/2595/files#diff-409f71ddd7380158c6b0039185f287b61c5e7519cb3f39ef3dd5c4a89d189dbc
https://github.com/trustwallet/wallet-core/pull/2595/files#diff-86476675b291daafb740aad7001dcde0757fb37d41bbcde777c33e959ae84616

So coinId 14001 is now present in Slip44 repo, initiated by our side :)
https://github.com/satoshilabs/slips/blob/master/slip-0044.md


Use C# events to hook things like Love.Load, love.Update

Can love hooks be made to work with events?
aka
Scene.Load   += MyClass.Init;
Scene.Update += MyClass.Tick;
Scene.Draw   += MyClass.Draw;

this also has to do with https://github.com/endlesstravel/Love2dCS/issues/82

you can use Scene.OnXXXX at version 11.0.44 https://www.nuget.org/packages/Love2dCS/11.0.44

cool thankyou


Constant "problem" reported about CPU load

After hacking the template, I made it work.
I added my router; an ER-8-XG, and it keeps reporting a "PROBLEM": Load average is too high (per CPU load over 1.5 for 1m)
The router hovers between 1-4% total CPU load. My guess is it's complaining when any core exceeds 1.5% CPU load, which happens all the time.
Is this intended? Why is the template setup to complain about 1.5% CPU usage?
Perhaps I misinterpreted the error?

Hi again,
No, it is complaining because the 1-minute load average is above the macro value LOAD_AVG_PER_CPU.MAX.WARN. I'd suggest looking at the value you are currently retrieving from the device whilst it is doing a high workload, then adjust the macro value LOAD_AVG_PER_CPU.MAX.WARN accordingly (or calculate it a bit loosely with this formula)


ISPN-5899 ContinuousQuery tests should disable expiration reaper

Disable reaper to prevent spurious failures with more than 1 event

https://issues.jboss.org/browse/ISPN-5899

Seems this should also be possibly backported to 8.0.x.

Pulling ...

Looks like I was faster @anistor!

Cherry-picked to 8.0.x as well.


Allow marking packages/versions "deprecated"

Pub currently ranks packages based on the updated column:

This works great, until it doesn't. For the angular package, there is a historic, unsupported/maintained 1.x version that is presented instead of the newest 4.0.0-alpha version:

Under normal circumstances, this might be fine, i.e. ranking stable releases higher than unstable for viewing preference. However, package authors should be given an option (perhaps in an admin, or manually via a ticket system for the time being) to deprecate a version range.
In this case, imagine the following metadata was attached to the angular package:
{
  "deprecated": [
    "<4.0.0-alpha",
  ],
}

And the ranking was instead stable > unstable > deprecated.

Yes, please. This also affects https://pub.dartlang.org/packages/dev_compiler. See dart-lang/sdk#29911 for details.

Nit: What you are referring to is not the search ranking, it is the package index ordering.
I see a few conflicts with deprecated as it is proposed:

version 2.0 could deprecate 1.0, but what if 2.1 un-deprecates everything?
version 2.3 could deprecate 2.3, and it could be just as valid as not allowing it

I think at one point the package author needs to answer the question: what version do I want to be used by others? And if I want to use the newer, why don't I release it as stable?
If you deprecate everything that was stable, then what does it mean to be unstable?

Another thing is that we could consider is to use discontinued instead of deprecated, because deprecation is the intent of the original developer, but others using it may consider it just fine a keep going and use it. It also simplifies the tracking, because a package is discontinued if and only if the last published version (stable or otherwise) has this flag set to true.
If the developer changes their mind, publishes a new version without the flag, it is clear that they continue working on it, and we clear the flag, handle it as a normal package.
Deprecation and removal of an API, and introducing a new one (like in case of angular) and its incremental rollout should be handled by a new major semver, but that is unrelated to whether the package is considered discontinued (or it could be called abandoned).

Any comment on discontinued?
Another item for it: If a package has no recent release (e.g. in the past 2 years), it can be considered discontinued.

Added a new issue for the notion of a "broken" release - https://github.com/dart-lang/pub-dartlang-dart/issues/378
I think we should have separate concepts here...

Very-minimal solution discussed for now:

Add a 'deprecated' flag in our backend
Create a script we (the pub maintainers) can run to set/unset this for a package
In package analysis, skip packages where this flag is set
In pub searches, exclude packages where this flag is set
in an pub package page, add a red DEPRECATED tag (placed right in front of the current platform tags)

Later work can expand on this, for example to add a pub deprecate command that uploaders could run.

SGTM!
On Fri, Feb 2, 2018 at 5:26 AM, Michael Thomsen<EMAIL_ADDRESS>wrote:

Very-minimal solution discussed for now:

Add a 'deprecated' flag in our backend
Create a script we (the pub maintainers) can run to set/unset this
for a package
In package analysis, skip packages where this flag is set
In pub searches, exclude packages where this flag is set
in an pub package page, add a red DEPRECATED tag (placed right in
front of the current platform tags)

Later work can expand on this, for example to add a pub deprecate command
that uploaders could run.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/pub-dartlang-dart/issues/289#issuecomment-362585628,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCiip7i4tknLknGWutvy1858oHA4E2ks5tQwzxgaJpZM4Ow6be
.

Updating title to reflect that the present feature will allow marking a whole package (i.e., all versions of the package) as deprecated.

Updating to reflect we will be using the term 'discontinued' rather than 'deprecated'

This has landed!


Switch allows dial itself

Discovery modules can emit PeerInfo objects with multiaddrs that do not have the peer ID encapsulated.
A libp2p node's own peer info seems to have multiaddrs that do have the peer ID encapsulated.
It means that a libp2p node will attempt to dial itself because the following test will fail, when attempting to decapsulate /ip4/<IP_ADDRESS>/tcp/4002 from the peer's own address /ip4/<IP_ADDRESS>/tcp/4002/ipfs/QmebzNV1kSzLfaYpSZdShuiABNUxoKT1vJmCdxM2iWsM2j:
https://github.com/libp2p/js-libp2p-switch/blob/828e685e79a918831a6dac0a868d0b209dd5874c/src/transport.js#L212-L220
refs https://github.com/libp2p/js-libp2p/issues/323

I could PR a temporary fix for this @jacobheun if you like while we wait for https://github.com/libp2p/js-libp2p/issues/323 ?

@alanshaw I think a temporary fix is sufficient for now. I have https://github.com/libp2p/js-libp2p/issues/323 on my list for this quarter as a part of https://github.com/libp2p/js-libp2p/issues/202

On it


Fix: Update abstract regex for the other format of description date

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix
https://github.com/hlxsites/accenture-newsroom/pull/438 - I added capture on this regex to capture other format of date.
Condition

Lisboa, 28 de junho de 2023 - A Accenture Portugal e a
Lisboa, 28 de junho de 2023- A Accenture Portugal e a
Lisboa, 28 de junho de 2023 -A Accenture Portugal e a
Lisboa, 28 de junho de 2023-A Accenture Portugal e a
Lisboa, 28 de junho de 2023 : A Accenture Portugal e a
Lisboa, 28 de junho de 2023: A Accenture Portugal e a
Lisboa, 28 de junho de 2023 :A Accenture Portugal e a
Lisboa, 28 de junho de 2023:A Accenture Portugal e a

Test URLs:

Before: https://newsroom.accenture.pt/
Before: https://main--accenture-newsroom--hlxsites.hlx.page/
After: https://regex-abstract-news--accenture-newsroom--hlxsites.hlx.page/

@jjjaspher changes are merged in https://github.com/hlxsites/accenture-newsroom/pull/438, so closing this PR


[Linear Chart] [Tiles] The x axis is being autocompleted

I have the following FlSpot list:
  FlSpot(1, 0),
  FlSpot(30, 0),
  FlSpot(29, 0),
  FlSpot(28, 0),
  FlSpot(27, 0),

Because there is FlSpot(1, 0), it autocompletes the x axis until it reaches FlSpot(27, 0), thus, an undesirable behavior
Code:
lineBarsData: [
LineChartBarData(
barWidth:  5,
color:  Color(0xFFE8A0BF),
spots: [
FlSpot(1, 0),
FlSpot(30, 0),
FlSpot(29, 0),
FlSpot(28, 0),
FlSpot(27, 0),
],
dotData:  FlDotData(show:  true),
),
]

expected: 1 , 30, 29, 28, 27
obtained: 1, 2 , 3 , 4, 5, 6, 7, 8, 9, 10, 11, 12.....25, 26 ,27, 28, 29, 30

Can you please provide me a reproducible code? Is it related to #1393?
If yes, please close this issue, and let's follow it in one place.
Thanks!


Changes lost when multiple blocks edited prior to saving

When editing multiple blocks, previous edits revert if they are not saved before the next edit.
Expected behavior is to continue persisting the edits among multiple blocks until save is clicked.

Issue found and addressed in markdown-translatable v0.5.0, updated datatable-translatable v0.3.0, and updated both in this project as of v0.6.0.


Would like to be able to set form name and labels for external brokers

Or, maybe, support the use of a custom form to provide these values rather than the auto-generated one.


4B4D07DF - Dead Island

Marketplace
Tested on https://github.com/xenia-canary/xenia-canary/commit/5a3929109332afc16eb6e9ef723c1dd0aa53d461
Issues:
N/A
Might be playable haven't tested much.
Log:
canary
Screenshots:

Tested on https://github.com/xenia-canary/xenia-canary/commit/e6898fda6695fa01795a79e2e0570d3c8e34a36d
Commit from master: https://github.com/xenia-project/xenia/commit/2606fa57090085a0ebe00baca4e4045d7e7646bd
This broke the game - crashes on startup with no error. Log:
xenia.log

Tested on: https://github.com/xenia-canary/xenia-canary/commit/eeb96f91a5639c241bdb6d1d5f1dfdc31e8b3e48
xenia.zip
Crashing from previous report has been fixed. Back to state-gameplay.


Terrarium can't build a new virtualenv if pip 10 is installed

Terrarium seems to fail with pip 10.
Terrarium adds some code to the virtualenv bootstrap script, which is run with the python, wheel, setuptools and pip which have just been installed into the venv at a temporary location.
This includes the command from pip.commands.install import InstallCommand. See https://github.com/PolicyStat/terrarium/blob/master/terrarium/terrarium.py#L633 This command fails with the new version of pip which no longer has a module called commands.
I tried building a new environment on a couple of Linux machines and got similar results. There might be something about my setup which I'm missing - however it seems like this will fail whenever the updated pip is pulled in by virtualenv. Note that virtualenv itself can create a virtualenv fine because the import command which fails is added to the virtualenv script by terrarium.
Versions - note that pip 9 is currently installed. However since pip 10 is available (since 2 days ago), building a new virtualenv causes pip 10 to be installed.
jack@neptune-vm:~/z$ python --version
Python 2.7.12
jack@neptune-vm:~/z$ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
jack@neptune-vm:~/z$ easy_install --version
setuptools 38.5.1 from /usr/local/lib/python2.7/dist-packages (Python 2.7)
jack@neptune-vm:~/z$ virtualenv --version
15.1.0
jack@neptune-vm:~/z$ terrarium --version
terrarium 1.0.1

Error message
jack@neptune-vm:~/z$ terrarium --target venv install
Building new environment
New python executable in /home/jack/z/venv.g9SgyC/bin/python
Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/tmp/terrarium_bootstrap-JqbF6h.py", line 2396, in <module>
    main()
  File "/tmp/terrarium_bootstrap-JqbF6h.py", line 717, in main
    after_install(options, home_dir)
  File "/tmp/terrarium_bootstrap-JqbF6h.py", line 1848, in after_install
    from pip.commands.install import InstallCommand
ImportError: No module named commands.install
Traceback (most recent call last):
  File "/usr/local/bin/terrarium", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/terrarium/terrarium.py", line 956, in main
    r = terrarium.install()
  File "/usr/local/lib/python2.7/dist-packages/terrarium/terrarium.py", line 216, in install
    new_target
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 797, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /usr/bin/python /tmp/terrarium_bootstrap-JqbF6h.py --prompt=(venv) /home/jack/z/venv.g9SgyC failed with error code 1

This is a critical bug which stops us from running new builds of our software.
If anyone can suggest a fix, a workaround, or just point out where I have gone wrong, I would be very grateful. Thanks in advance!

Possibly relevant: https://github.com/pypa/pip/issues/5070

I have an (admittedly) sketchy fix. Which is to update the imports to use the new _internal path. As part of my fix I'm also dropping support for virtualenv<15 and python 2.6.
I'll see if I can get a PR up and reviewed soon.

I don't think I have pypi access to update this lib there. We'll get it sorted out first thing tomorrow morning.


kubelet services is not starting

Hi There,
I tried this kubenetes-the-hard-way for learning purpose ....
When Bootstrapping the Kubernetes Worker Nodes and Kubelets configuration and starting ... I got this error :
_ubuntu@worker1:~\$  sudo systemctl status kubelet
kubelet.service - Kubernetes Kubelet
   Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Active: activating (auto-restart) (Result: exit-code) since Wed 2018-10-17 12:06:49 PDT; 1s ago
     Docs: https://github.com/kubernetes/kubernetes
  Process: 13724 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_SYSTEM_PODS_ARGS $KUBELET_NETWORK_ARGS $KUBELET_DNS_ARGS $KUBELET_AUTHZ_ARGS $KUBELET_CADVISOR_ARGS $KUBELET_CERTIFICATE_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
 Main PID: 13724 (code=exited, status=1/FAILURE)
ubuntu@worker1:~\$_

ubuntu@worker1:~\$ sudo cat /var/lib/kubelet/kubeconfig
[sudo] password for ubuntu:
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data:
<deleted>
    server: https://<IP_ADDRESS>:6443
  name: kubernetes-the-hard-way
contexts:
- context:
    cluster: kubernetes-the-hard-way
    user: system:node:worker1.mylabserver.com
  name: default
current-context: default
kind: Config
preferences: {}
users:
- name: system:node:worker1.mylabserver.com
  user:
    client-certificate-data:
<deleted>
    client-key-data:
<deleted>
ubuntu@worker1:~\$

Any idea ? Whats the issue ? what did I missed or forgetted ?

With the infomation you povided, it's had to tell.Could you check the output of journalctl for this service? That should tell you why the service doesn't start/crash
Since, you are rurnning systemd your command would be
journalctl -u kubelet
Then post the log output here and someone can offer help..

Thanks Rahul.

Oct 19 13:50:09 worker1.mylabserver.com systemd[1]: Stopped Kubernetes Kubelet.
-- Subject: Unit kubelet.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit kubelet.service has finished shutting down.
Oct 19 13:50:09 worker1.mylabserver.com systemd[1]: Started Kubernetes Kubelet.
-- Subject: Unit kubelet.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit kubelet.service has finished starting up.
--
-- The start-up result is RESULT.
Oct 19 13:50:10 worker1.mylabserver.com kubelet[28495]: I1019 13:50:10.150990   28495 feature_gate.go:156] feature gates: map[]
Oct 19 13:50:10 worker1.mylabserver.com kubelet[28495]: I1019 13:50:10.151393   28495 controller.go:114] kubelet config controller: starting controller
Oct 19 13:50:10 worker1.mylabserver.com kubelet[28495]: I1019 13:50:10.151428   28495 controller.go:118] kubelet config controller: validating combination of defaults and flags
Oct 19 13:50:10 worker1.mylabserver.com kubelet[28495]: error: unable to load client CA file /etc/kubernetes/pki/ca.crt: open /etc/kubernetes/pki/ca.crt: no such file or directory
Oct 19 13:50:10 worker1.mylabserver.com systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Oct 19 13:50:10 worker1.mylabserver.com systemd[1]: kubelet.service: Failed with result 'exit-code'.

So, the error is evident
Oct 19 13:50:10 worker1.mylabserver.com kubelet[28495]: error: unable to load client CA file /etc/kubernetes/pki/ca.crt: open /etc/kubernetes/pki/ca.crt: no such file or directory
Your kubelet does not see the CA Cert file, and it needs that file to validate the Kube API Server certificate.
You need to go back to the process which provisioned your certs and ensure that a CA cert is present at the required path for the kubelet.

Thanks Rahul.
I fixed the issue. Thanks for your help and support.
-- Kylix

Thanks Rahul.
I fixed the issue. Thanks for your help and support.
-- Kylix

Can you please indicate how you fixed it? It would be helpful for the next person who encounters a similar issue

Thanks Rahul.
I fixed the issue. Thanks for your help and support.
Regards,
Kylix

On Oct 22, 2018, at 7:35 AM, Rahul Mishra<EMAIL_ADDRESS>wrote:
So, the error is evident
Oct 19 13:50:10 worker1.mylabserver.com kubelet[28495]: error: unable to load client CA file /etc/kubernetes/pki/ca.crt: open /etc/kubernetes/pki/ca.crt: no such file or directory
Your kubelet does not see the CA Cert file, and it needs that file to validate the Kube API Server certificate.
You need to go back to the process which provisioned your certs and ensure that a CA cert is present at the required path for the kubelet.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/399#issuecomment-431853499, or mute the thread https://github.com/notifications/unsubscribe-auth/Ak2Op7dpSrOH9nx8r7l224KZhQHaABShks5undengaJpZM4XlCNl.


[WIP] Enable codecov

Solves #2218.
cc @mrocklin @jakirkham @TomAugspurger

[ ] Tests added / passed
[ ] Passes flake8 dask

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@cb58d97). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #4631   +/-   ##
=========================================
  Coverage          ?   91.02%
=========================================
  Files             ?       92
  Lines             ?    17165
  Branches          ?        0
=========================================
  Hits              ?    15624
  Misses            ?     1541
  Partials          ?        0

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 cb58d97...fa87b94. Read the comment docs.

Looks like we have something here already. We should probably tweak what options we want to enable, and maybe decide on enforcement policy. For now I suggest we don't enforce coverage maintenance (i.e., that it's never negative) but provide this as a tool for developers to check how PRs affect the project, at least until we are comfortable that options we set suit our needs.

Generally seems ok to me.
Would slightly prefer if we could turn the comments off (to cutdown on noise). Also would be good to enable the status information so we can link to the details on their website as needed.

Generally seems ok to me.
Would slightly prefer if we could turn the comments off (to cutdown on noise). Also would be good to enable the status information so we can link to the details on their website as needed.

Agreed.

I think to get codecov statuses we need to install its Codecov Github app. Could someone with permissions do that?

Done, I think

We have status now, thanks @mrocklin for installing the app. I've attempted to add coverage for each submodule, but they all seem to redirect to the same place, I'm not sure if that's because there's no report (we have to merge to get it first) or something wrong with the configuration.
Either way, would you say we should have codecov status for each submodule as different projects or just a single one? I'm personally fine with either.

Thanks Matt!
No strong feelings. We might be ok with just one report near term. However if that's difficult to do, wouldn't worry about it.

On the contrary, it's actually easier. I just thought it would be cool to
see them separately, but I'm not sure that worked. For now I'm gonna revert
it into a single project then.
On Thu, Mar 28, 2019, 8:04 AM jakirkham<EMAIL_ADDRESS>wrote:

Thanks Matt!
No strong feelings. We might be ok with just one report near term. However
if that's difficult to do, wouldn't worry about it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/pull/4631#issuecomment-477474370, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEMcptPLUOI2S1CPZ1SojCR-I4VvGREWks5vbGlvgaJpZM4cLxRv
.

Ok, we now have the status for a single project setup. Unless someone already knows about other options that we may want, I would suggest we merge this PR and start looking at codecov comparisons after this to improve it further, since I don't think we can see the comparisons before it gets merged and creates a baseline report.

OK to merge?

+1 from me


Issue #3: Added tests_require for testtools

Added tests_require=['testtools'] to setup.py so that testtools is downloaded when
python setup.py test

is run. Wrote a wrapper class TestTools so that testtools will not be
imported before being installed by setuptools.

Yes, sure. Brain fail on my part there:).
That said, the wrapper class is irrelevant, there are wrappers for running tests around already, no need to have one in-tree.

Is there a wrapper for testtools in setuptools or extras itself? If not how are you going to get the testtools.TestCommand wrapper or another wrapper loaded if it is not installed? I am curious how this is done. The reason I did it this way was to delay the import of testtools so that setup.py can first download the tool. I read about this kind of solution for pytest here.

Well, the newly approved PEP will handle it now :). that said I've added a tox.ini which serve for automation.


routes File selection error

I run this project with this result:
"Action not found
For request 'Get /'
These routes have been tried ,in this order:"
what is the situation？

Hi @Xlingxiao. Please provide more information on how you are currently attempting to run the application, so we can help you debug.

Thank you for your reply, I downloaded the ground here: https://github.com/ground-context/ground, and installed sbt1.1.1,postgresql10 according to wiki. Then run ‘sbt run’ under the main project file.
This is the output of the console

This is the result of the operation：

When I use a compiled version. Operating normally.

To run the application with SBT, please use sbt "postgres/run". The default application has an empty routes file because the Postgres app is a module.

Thank you ！！！！！

I haven't been successful for a long time. However, there are few online play framework tutorials. thanks again!


this package works with Oracle Database?

My mission is to implement OAuth2 + Laravel + Oracle database.
To use Oracle on Laravel am using the package yajra / laravel-oci8.
#Help me please!
Note: Oracle only allows object names up to 30 chars.

sorry for the late answer: at the time being support for oracle is not guaranteed, guess you would have to rename all the tables and relations to max 30chars.

Thanks for the answer.
I managed to implement, actually had to rename the tables and their relationships to a maximum of 30 characters.


Bulk delete still enabled, even though access.delete is set to false

Link to reproduction

To Reproduce
I conditionally set access.delete in collection. All good in Edit page, delete button was not appear, but in List page I still able to do bulk delete
Edit page

List page

Describe the Bug
These documents should not be able to removed.
Payload Version
1.10.2

Hi @rrums123,
When I first read your issue I was worried we had a major issue with our access control. After testing, it seems that documents are prevented from being deleted and that the issue you're reporting is only a UX issue where the delete control is available when it might not be possible to perform the action.
I tested with the following scenarios to be certain that our access control was behaving correctly.

delete: () => false there is no delete control.
delete: ({ req }) => (req.user.email ===<EMAIL_ADDRESS>when logged in as<EMAIL_ADDRESS>I had the option to delete, but when I changed my email to something that didn't, I was not given the option to bulk delete.
delete: () => ({ name: { equals: 'delete' } }) This is the scenario I believe you must have encountered. There is not a good way for the frontend UI to present the delete option or not since a DB query must be performed to know if the documents selected should be allowed to be deleted.

If you attempt to delete under that 3rd scenario, you do get the correct output that says how many documents were able to be deleted.
I don't think there is an issue here. If I've misunderstood the problem you're reporting, please re-open.
If there is something else we can improve in this workflow, I'd be very interested in your ideas.

Aha. I think I know why.
This is the code:
delete: async ({ req, id }) => {
            if (id) {
                const page = await req.payload.findByID({
                    collection: 'ui-pages',
                    id
                });

                const tests = await req.payload.find({
                    collection: 'tests',
                    where: {
                        page: {
                            equals: id
                        }
                    }
                })

                return !(page?.fallback || tests.totalDocs > 0);
            }

            return true
        }

My condition depends on ID.
I just realized that ID was not present when in List page. Is there any way to handle this?

I think I will set to return false by default, to not allow bulk delete

Ideally we would have a way to prevent the UI from having the bulk delete option for a collection. For now, you'll have to do it through access control.


[hotfix] include  in lidar_naive_l_shape_detect

Status
PRODUCTIONT
Description
Compie error because not inclusing #include <random> #1678
This PR adds include <random> in lidar_naive_l_shape_detect/include/lidar_naive_l_shape_detect.h

How about moving the #include into lidar_naive_l_shape_detect.cpp?
The header lidar_naive_l_shape_detect.h itself does not require <random>.


fmt does not find modules inside inline modules inside non-inline modules

Problem
cargo fmt does not processes modules that are referenced in an inline mod in a non-inline mod.
This is slightly more complex case than https://github.com/rust-lang/rustfmt/issues/4874, so it seems that bug was not fully fixed.
Steps
crate tree:
.
├── Cargo.toml
└── src
    ├── foo
    │   └── bar
    │       └── baz.rs
    ├── foo.rs
    └── main.rs

src/main.rs:
fn main() {
    println!("Hello, world!");
}

mod foo;

src/foo.rs:
mod bar {
    mod baz;
}

src/foo/bar/baz.rs: empty
1.52.0 is fine:
> cargo +1.52.0 fmt -- -v
Formatting /home/jan/x/src/foo/bar/baz.rs
Formatting /home/jan/x/src/foo.rs
Formatting /home/jan/x/src/main.rs

1.53.0, stable and nightly are broken:
> cargo +1.53.0 fmt -- -v
Formatting /home/jan/x/src/foo.rs
Formatting /home/jan/x/src/main.rs

> cargo +stable fmt -- -v
Formatting /home/jan/x/src/foo.rs
Formatting /home/jan/x/src/main.rs

> cargo +nightly fmt -- -v
Formatting /home/jan/x/src/foo.rs
Formatting /home/jan/x/src/main.rs

Notes
Output of rustfmt --version:

1.52.0: rustfmt 1.4.36-stable (7de6968 2021-02-07)
1.53.0: rustfmt 1.4.37-stable (2a3635d 2021-05-04)
stable: rustfmt 1.4.37-stable (59eed8a 2021-11-01)
nightly: rustfmt 1.4.38-nightly (baba668 2021-11-03)

Rust via rustup 1.24.3, Arch Linux.

Thanks for the report @heftig and the repro case! Believe I know what the issue is so I'll take a look later today after work.
I still suspect we could handle our mod/file resolution process a bit more simply, but can never seem to find the time for investigating a more holistic refactor. Will make sure the fix for this gets pulled into the next sync though


Should moderation move to a similar place as the help command?

Currently moderation tools are treated as a standard plugin. Should it be builtin? Another handler needs to be created anyway for the message filter so is it in everyones best interest to bring the whole moderation rigamarole with it?

It did, as it needs special handlers and work with a database.


Collection JSON serialization

I think JSON serialization of Collections is not right, at least not as right as it could be.
In the current implementation, the JSON serialization of a collection uses toArray to serialize, instead of recursively calling json_encode on the Collection items. The problem with that is that it is not enough to implement a jsonSerialize in the collection members, as it does not get called (but I think it should). Instead, you have to implement a toArray method in the collection members.
Current implementation:
    /**
     * Convert the object into something JSON serializable.
     *
     * @return array
     */
    public function jsonSerialize()
    {
        return $this->toArray();
    }
    /**
     * Get the collection of items as JSON.
     *
     * @param  int  $options
     * @return string
     */
    public function toJson($options = 0)
    {
        return json_encode($this->toArray(), $options);
    }

I propose to avoid the toArray call for implementing this. Instead of that, call json_encode directly on the collection members, and put that in a JSON array, or something along those lines (I'm no Laravel expert).

:thumbsup:

@mmontone Fixed in 5.2. You may close this issue.