Update dynamodb, s3 to 2.20.92

About this PR
📦 Updates

software.amazon.awssdk:dynamodb
software.amazon.awssdk:s3

from 2.20.87 to 2.20.92
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "software.amazon.awssdk" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #754.


Make core mbed API thread safe

Make the mbed C++ API thread safe by adding a combination of
mutexes and critical sections.  Stub out all mutexes when the
RTOS is not present.

@mbed-bot: TEST
HOST_OSES=ALL
BUILD_TOOLCHAINS=ALL
TARGETS=ALL

cc @adamgreen @Sissors

I don't like the tiny overhead when RTOS is not present ;). That said, I guess this is good practice to have.
Two things though: Some places it really depends on the implementation. For example I see direction and pin mode are protected, but writing not. I guess because writing is  generally done by writing to a SET/CLR register, while direction is sometimes an OR/AND operation on a register (so reading, modifying, writing). Although on some targets each pin has its own register for this. Overall I don't think it is bad this way, just making the point.
Bigger question: How is this going to work without RTOS/with RTOS. I saw the #ifdef placed, however the mbed library is normally precompiled. So do we then need for each target two precompiled mbed libraries? Will that be done by the mbed staff?

Cool! I like thread safe code!
I do have two comments about how 'I think' this might be a breaking change for people's existing code:

API thread safety is done through a mutex. Doesn't that make those APIs not callable from ISRs when using a rtos whereas they were before. Previously it was up to the user to make sure that their usage of the peripherals was thread safe.
Interrupt safety is added by disabling interrupts. This means that non-ISR thread code can now throw off timing of interrupts when they didn't have an impact before.

In general what was the criteria used to decide if a class would be made thread safe rather than interrupt safe?

Hi @adamgreen, thanks for the review.  If the expected use case was from interrupts then the code was made interrupt safe.  This was a judgement call, so if you think that more/less classes should be safe from interrupts then it can be tweaked.
There has been a bit of discussion about mutexes being used from interrupts.  The current version of RTX returns osErrorISR if used from an interrrupt, so the code doesn't crash.  The same does not apply to critical sections which have interrupts disabled, which does cause a crash.  This might be changed as part of this PR.  The long term goal is to start treating mutex use in interrupts or with interrupts disabled as an error, since it won't actually be providing protection.  I'm not sure if this can be done immediately though, since it would cause a lot of existing code to break.

@mbed-bot: TEST
HOST_OSES=windows
BUILD_TOOLCHAINS=ALL
TARGETS=ALL

HOST_OSES=windows
BUILD_TOOLCHAINS=ALL
TARGETS=ALL

https://github.com/mbedmicro/mbed/pull/1902

@mbed-bot: TEST
HOST_OSES=windows
BUILD_TOOLCHAINS=ALL
TARGETS=ALL

@mbed-bot: TEST
HOST_OSES=windows
BUILD_TOOLCHAINS=ALL
TARGETS=ALL

@mbed-bot: TEST
HOST_OSES=windows
BUILD_TOOLCHAINS=ALL
TARGETS=K64F


Expose a helper to test custom constraints

Describe the bug
I'm defining custom constraints and there seems to be no easy way to test them. In the following example, I'd like to create a Validatable<String>, but without the helpers defined in the _test package, it's hard to do because the ConstraintRegistry class is internal.
fun Validatable<String>.isValidTimeZone() = constrain {
    kotlin.runCatching { TimeZone.of(it) }.isSuccess
} otherwise {
    "Should be a valid time zone"
}

Expected behavior
Would it be possible to expose the helper functions, maybe in a test library so that it's possible to unit test the custom constraints?
fun "test_time_zone_constraint" {
  assertTrue(Validatable("America/New_York").isValidTimeZone().satisfied)
}

Thanks!

You're right, the helpers aren't currently available. The reason is they are not stable and currently only fit the internal use case. Do you think the current internal helpers would fit your use case?
Rest assured that this is something I have in mind, it was already in the roadmap. I will make sure to increase the priority of this feature, it seems reasonable :)
As a workaround, you can create a root Validatable with the following function:
/**
 * Instantiates a root [Validatable] with [a value][wrappedValue], a default [ConstraintRegistry] is automatically provided.
 */
fun <T> Validatable(wrappedValue: T): Validatable<T> {
    lateinit var validatable: Validatable<T>
    val validator = Validator<T> {
        validatable = this
    }
    validator(wrappedValue)
    return validatable
}

That does help thanks, thanks a lot!

Hi @canatella! This helper is now available since release 0.10.0. It's in the dedicated akkurate-test artifact, see documentation here: https://akkurate.dev/docs/extend.html#test-your-code


installer: fire event on missing required certs

The "missing: secrets/serving-cert should be logged by event.

nit on warning. lgtm otherwise
/approve
Self tag after fix up.

/lgtm


[FEATURE REQUEST] Hyphen shouldn't affect search results

Before submitting the issue

[X] I have checked that the requested feature is not a duplicate or, if it is, it needs to be reopened
[X] I have checked that I am running the latest version of WingetUI
[X] I have checked the FAQ section

Is your feature request related to a problem? Please describe.
Scoop web version and Scoop-CLI were able to find the package I was looking for (without the hyphen), but WingetUI wasn't (I had to add the hyphen)
Describe the solution you'd like

done!

It seems this fix is not working for Winget as of 1.6.4
the Winget package yt-dlg does not appear without the hyphen


hardening compiler flags

Select a set of compiler flags to "harden" the build output. Probably best to start with the data / recommandations from http://security.stackexchange.com/questions/24444/what-is-the-most-hardened-set-of-options-for-gcc-compiling-c-c and go from there.
It's likely that we don't want to shove these flags down our users throats though. Probably best to keep the default flags generic and allow consumers to specify their own at ./configure time. This will probably end up being a documentation exercise with the recommended flags for hardening are documented in the README alongside instructions for passing them through ./confgiure.

given the direction from #219 these flags should land in the config.site file

PR #355 will resolve this issue.


Completed 2to3 conversion without running tests

Applied 2to3 to convert from Python 2 to Python 3. Python 3 version used: 3.5.2.

I guess this presents the question of whether the goal is to still support Python 2. If that was the goal then six should probably be used to handle both versions since changing the unicode to str will definitely break existing users still on Python 2. I'm fine moving to Python 3 only support and dropping Python 2 if we move that to a new branch and version to reflect it just so that Python 2 users do not inadvertently get broken.

As Python 2 was gone last year, I think is a good idea to have a separate version and branch for Python 3.

@cacods agreed.

@cacods agreed.


add CRS.geodetic_crs as replacement for CRS.to_geodetic()

#297

Also, made the private attributes private.


[clang-tidy] enable clang-analyzer-cplusplus.NewDeleteLeaks

added SceneNodee:addFeature to avoid naked new

Motivation and Context

Enable static analysis to check for new/delete leaks.
How Has This Been Tested

Verified replica_v1 apartement_0 still loads with viewer.
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[X] I have completed my CLA (see CONTRIBUTING)
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Looks good. Maybe, worth to add more directories to clang-tidy scope first and then enable rules. Otherwise it will be painful to add new directories with all rules enabled. What do you think?

We currently run clang-tidy on all of src/esp. Was only planning on using it for our code and not deps. The only remaining directory to add it to is utils which is just two source files.

I really wish I could see this diff much earlier.
I need the reference to the newly created "features" (here, the drawables) for development. And such needs are not uncommon.


[PLATFORM] Windows + IPEX

@jiqing-feng  Intel-Extension-For-PyTorch has Windows support. Can we expect the ipex kernel to run on Windows without modification?

Yes, it should support Windows without any modification.

Closing until Intel support IPEX for windows.


DRUGS: what to do about drug parameter discreptancy

The default drug parameters are different in  emodpy-malaria and in the files that I'm seeing in Monique's and Ben's files.
What to do?
Options: 1. define Monique's and Ben's drugs that are used "Sulfadoxine", "Pyrimethamine", 'Amodiaquine', SulfadoxinePyrimethamine explicitly as part of "setting up the sims"
2. add them to the default drug parameters as "Sulfadoxine1" or "nu_Sulfadoxine" and call those instead.

For now, I am going to explicitly overwrite drug parameters for the projects as needed. I'm also working on a function that sets up the entire drug parameter (so you don't have to do it one parameter at a time)

This was done.


Cross compile to armhf

Add support on pipeline and devcontainer to compile code for target (Raspberry Pi), this will enable in issue #7.

I'll take care of this, since I'll change some stuff from PR #12


Trigger on-hit effects through explosions

This is a jank fix for a jank problem

We could use a hashset for hits instead of the list of tuples, but I think the runtime costs are more or less going to be the same in practice, so I don't think it matters either way

Considering we already loop through all colliders, this shouldn't be much of an extra cost. The explosion controller uses a hashset for its check anyways.


[BUG] Not resolving API keys

Expected Behavior
Should resolve API keys received from super.json (such as $PROVIDER_API_KEY) to key loaded from .env in new flow of testing library.
Current Behavior
Found this when testing new sdk with station in this PR. Currently it uses not resolved api key from super.json and therefore nock is not able to match the request correctly.
Possible Solution
Resolve credential when it starts with $.
Steps to Reproduce

Get into #279 in station
yarn install
run DEBUG=nock* yarn test communication/send-email/maps/mandrillapp.test.ts to see nock matching

Your Environment
Include as many relevant details about the environment you experienced the bug in. Preferably include:

Version used: 2.0.0
Environment name and version (e.g. Node 8): Node 18.6.0
Operating System and version: MacOs Monterey 12.2.1
Link to your project: https://github.com/superfaceai/station/pull/279

Could you please try to replicate in fresh project using whole sdk (like user would )? I tried it with "in code" super json and it resolves env value correctly.

`
const { SuperfaceClient } = require('@superfaceai/one-sdk');
const sdk = new SuperfaceClient(
{
superJson: {
"profiles": {
"address/ip-geolocation": {
"version": "1.0.1",
"providers": {
"ipbase": {
}
}
}
},
"providers": {
"ipbase": {
"security": [
{
"id": "apikey",
"apikey": "$API_KEY"
}
]
},
}
}
}
);
async function run() {
const profile = await sdk.getProfile('address/ip-geolocation');
const provider = await sdk.getProvider('ipbase')
// Use the profile
const result = await profile
.getUseCase('IpGeolocation')
.perform({
}, {
provider,
}
);

console.log(result.unwrap());
}
run();
`

This is only happening with new testing flow in testing library -<EMAIL_ADDRESS>

Here is minimal reproduction of bug with address/geocoding/here integration from station: testing-new-sdk.zip

@martinalbert So is this bug in SDK or in testing lib? I wasn't able to replicate it with using SDK directly so I think it is in testing lib. If bug is in testing lib we should close this issue to not confuse users.

Well this depends on whether intended behaviour is that BoundProfileProvider should resolve credentials or not. If not, I'll move it to testing library and open a PR for the fix.

BoundProfileProvider should resolve credentials if it would take super.json as input but it is not. It takes SecurityCredentials (which contains resolved credentials). It is aligned with idea that BoundProfileProvider just takes prepared stuff (asts, provider.json, config) and runs it. I think this definition allows us to use it in testing-lib and one-service.
Personally I think this is fault (probably mine) in migrating to BoundProfileProvider usage in testing lib not bug in SDK.
@lukas-valenta @freaz  what do you think?

I agree with @Jakub-Vacek that BoundProfileProvider shouldn't resolve credentials, and it should be passed in. It allows way more versatility how BoundProfileProvider can be used.

Ok, I'm closing this and will open PR in testing repo.


Blacklist typing state

Summary
To ensure that there are no remaining user is typing... indicator we are going to prevent it for being stored permanently in redux offline

There's no point in including something like this in the redux repo itself, is there? Or is this exclusive to the RN app since it has the offline version

These settings are platform specific


Prepare 6.6.0 release

[x] CHANGELOG.md has been updated

Closing this pull request because this repo is now archived. If this PR is still active, please submit a new one at https://github.com/Polymer/tools.


Does the appium-flutter driver work on real IOS devices as of now?

I see some issues here where people are using this appium-flutter driver with real IOS devices, but the readMe lists that real IOS devices is still a todo.

@ArchitWagle, yes, but it needs to be modified.
https://github.com/truongsinh/appium-flutter-driver/issues/39

Hi,
@ajschwieterman - do you know when will Appium-Flutter-Driver going to support in iOS real device? and will it support in iOS version 14 and above?

@tevaAutomation, I am not sure when the repo will be updated.  This is a better question for @truongsinh and @shibupanda as they are the owners of the repo.

@truongsinh @shibupanda Any plans to bump the version of appium-flutter-driver, to include https://github.com/truongsinh/appium-flutter-driver/pull/62, which is suppose to solve the problem of real iOS?

@truongsinh @shibupanda Any plans to bump the version of appium-flutter-driver, to include https://github.com/truongsinh/appium-flutter-driver/pull/62, which is suppose to solve the problem of real iOS?

@hex0cter today I will publish it.

@hex0cter today I will publish it.


Docker compose warning

During release build the following warning appears.
'WARN[0000] /Users/abc/projects/trino/trino-gateway/docker/docker-compose.yml: version is obsolete
from the command
docker/release-docker.sh

I dont get that warning with
Docker version 25.0.3, build 4debf41

Seems to occur with OrbStack and


Allow "WebSocket" and "WebTransport" without backticks in doc comments.

Without this configuration, clippy's doc-markdown lint will warn about this not being enclosed in backticks.

I am not aware about doc-markdown. Is not included in clippy by default? Maybe we could add the check in the CR

I've included a change in PR #71 to enable the lint.


Add a shortcode that warns on unmaintained pages

This is a Feature Request

What would you like to be added
Add a shortcode that does nothing provided that a specified version hasn't been reached; otherwise, it prints a build-time warning.
Example:
The Marklar API is deprecated and will not be stabilised. If you use it, the kubelet creates readonly
Marklars, and you see a warning every time foo bar.
{{< warn-if version="1.28" >}}
<!-- this explanation will be out of date following the removal of the beta Marklar API -->
<!-- removal is scheduled for v1.28 -->
{{< /warn-if >}}

Why is this needed
If we add this, it will help release docs folks spot what needs to be updated for a release
(perhaps even to include localization updates!)
Comments
This is an idea. Do we think it is worth doing?
/area web-development

please assign it to me i want to work on this issue

/assign @Nitishupkr

@sftim
This idea is looking good.
Can you specify some pages to be updated. it would be help to get more clarity.

@sftim specify some pages

I think my fairly frank take on this is that folks should be able to find pages that refer to upcoming Kubernetes versions without special help.
Some clues: the previous minor release was v1.26 and the current minor release is v1.27. To me, the pattern's fairly simple to infer.


retry: always free cached send op data

Instead of trying to always get the right spot to free the cached send op data, we just make freeing the cached data idempotent, and unconditionally do so at the end of the call.  This ensures that there will be no memory leaks, even if there are edge cases in the retry logic.

I'm fairly sure that MSAN failure is unrelated.  The test history shows that's an existing flake.  It's happened 5 times in the last month.


App Store screenshots

Not sure if this is a bug or feature request. I saw #621 and it seems that iPhone X styled screenshots were made. On my iPhone XR the phone is not one with a notch. Have the app store screenshots been updated? If not, any thoughts on using an iPhone X, XR, XS type phone to the screenshots for those phones?

Got it
Sent with GitHawk

Want to close this then?
FYI, our app got rejected recently for using non iPhone X-style device frames for iPhone X devices though...

I wouldnt close this if we got rejected


Update Deluge to 1.3_12

Update Deluge to version 1.3_12.
Installer now downloads DMG instead of tbz2 archive.

Thank you for the contribution. It was merged directly as 789b43b80c82f55066006322a8a124c7cffe4e9a to keep commit history cleaner. Your contribution is still credited to you.

@vitorgalvao Cheers.
Thanks.


WIP: fixes exhaustion of GitHub tokens by GoRoutine

creates buffered channels for GitHub clients

Attempt at fixing #46
Will test overnight to make sure rate-limit handling works as expected

forgot to open as a WIP ticket
do not merge

Ran for a couple of days while using 1, 2, and 10 tokens. Issue appears to be resolved. Also by sharing the pool of clients between threads via channels, which are acting like a FIFO queue, the load is spread amongst the provided github tokens. I actually couldn't fully hit API lockouts on all clients when using more than 2 tokens.

This is awesome. Thanks @audibleblink


#208 #207 Remove SimpleTest, Move logging to TcMenuLog library, Add m…

mbed SPI, SimpleTest removal, TcMenuLog library move.

We should not merge this until TcMenuLog is released and more testing is performed.

In fact the tests will not pass until TcMenuLog is pushed into the repository


Error: Internal error encountered.

Environment details

OS: Ubuntu 18.04 5.4.0-1037-oracle
Node.js version: v8.10.0
npm version: 3.5.2
google-auth-library version: 6.1.6

Steps to reproduce

Trying to insert an item into a YouTube playlist
Occurs sporadically

Additional details
UnhandledPromiseRejectionWarning: Error: Internal error encountered.
at Gaxios._request (/home/ubuntu/top40ukgenerator/node_modules/google-auth-library/node_modules/gaxios/build/src/gaxios.js:113:23)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:20389) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20389) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
translatedResponse object:
{ config:     { url: 'https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&mine=true',      method: 'POST',      userAgentDirectives: [ [Object] ],      paramsSerializer: [Function],      data: { snippet: [Object] },      headers:        { 'x-goog-api-client': 'gdcl/4.4.0 gl-node/8.10.0 auth/6.1.6',         'Accept-Encoding': 'gzip',         'User-Agent': 'google-api-nodejs-client/4.4.0 (gzip)',         Authorization: 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',         'Content-Type': 'application/json',         Accept: 'application/json' },      params: { part: 'snippet', mine: true },      validateStatus: [Function],      retry: true,      body: '{"snippet":{"playlistId":"PLfAwBbHA3N6fOINFmXT2264h51LfS_TlF","resourceId":{"kind":"youtube#video","videoId":"8TsWkuWWXgc"}}}',      responseType: 'json' },   data:     { error:        { code: 500,         message: 'Internal error encountered.',         errors: [ { message: 'Internal error encountered.',             domain: 'global',             reason: 'backendError' } ],         status: 'INTERNAL' } },   headers:     { 'alt-svc': 'h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"',      'cache-control': 'private',      connection: 'close',      'content-encoding': 'gzip',      'content-type': 'application/json; charset=UTF-8',      date: 'Tue, 02 Feb 2021 00:10:09 GMT',      server: 'scaffolding on HTTPServer2',      'transfer-encoding': 'chunked',      vary: 'Origin, X-Origin, Referer',      'x-content-type-options': 'nosniff',      'x-frame-options': 'SAMEORIGIN',      'x-xss-protection': '0' },   status: 500,   statusText: 'Internal Server Error',   request:     { responseURL: 'https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&mine=true' } }

Hi @romarioj2h, can you share your code snippet to reproduce? Thanks!

Hi @sofisl, you can check the code at https://github.com/romarioj2h/top40ukgenerator/blob/master/youtube/playlistItems.js#L22

Greetings @romarioj2h!  Sadly, this probably isn't something we can directly help with.  If the error is sporadic, and the result is a HTTP 500, it means there's something happening on the back end, independent of this library.  I'd suggest checking out the support channel for the YouTube API, where it looks like they direct folks through StackOverflow:
https://developers.google.com/youtube/v3/support


[Cosmos] Returns undefined for cross-partition sums when one is undefined

We had an issue noticed in the portal where we were returning seemingly correct values for queries like
SELECT VALUE SUM(c.age) from c

for cross-partition queries, even when age had null or undefined values. For example, with the following items, we were returning the value 44
{ id: id1, age: 22 },
{ id: id2, age: 22 },
{ id: id3, age: null },
{ id: id4, age: 22 },
{ id: id5 },
{ id: id6 }

which is inconsistent with other SDKs

new PR coming


Add AWS comprehend to AwsServices

This is a 🙋♂ feature or enhancement.

[ ] I've added tests (if it's a bug, feature or enhancement)
[ ] I've adjusted the documentation (if it's a feature or enhancement)
[x] The test suite passes (run bundle exec rspec to verify this)

Summary
I've added aws-sdk-comprehend to the list of available AWS services (AwsServices module).

Thanks for the PR. Don't feel it's common enough to be in the core AwsServices.


Show normal and gzipped sizes together

[gulp] gulp-size: app.css 3.38 kB
[gulp] gulp-size: app.css 1.32 kB (gzipped)
=>
[gulp] gulp-size: app.js 3.38 kB (1.32 kB gzipped)

I agree with showing both.

+1 for displaying both


Add new Prometheus metric to help estimate the time until next refill

Since #83 we have a balance metric. That helps answering the question "is it time to refill" but tells us nothing what timing. For instance, we dispense 1 WND on Westend but 100x more on Rococo.
I suggest we introduce an additionnal new metrics called along the lines of remaining_tip_count which is the free balance of the faucet dvided by the size of the drip. That will help guestimate how long the faucet can run at current pace until a new refill is required.

@chevdor what is the threshold for westend and rococo which tells you that's a time to refill? like < 1,000 WND ? or 10,000 ROC...

Currently, there is no alert and we use a single threshold for both.
It does not make much sense to have one single threshold as it is currently done in the dashboard since the tokens have different "value" and the number of user requests also varies per network.,
In the dashboard currently we have the following and it has been working ok:

The goal with alerts is to spot the need to refill early enough so devops have time to reload "at their convenience" without always ending up in an emergency when the faucet is already dry.
I don't think a hard threshold is ideal as the faucet balance may remain stable for a while then plunge due to many more requests for some reasons (event, tweet, etc...).
Since the networks we target have no value, we cannot use that.
The amount of drips is counted by the faucet internally so we should be able to estimate an ETA and report that in the prometheus metrics. It can be a number of hours until estimated depletion.
It is clear that such an ETA could be in 2w, then comes a huge drip from Parity or Web3 and the ETA falls to 2d. At least having this ETA metric, devops can set alerts based on the value itself or the decreasing rate or even both.
When the faucet starts, unless we implement some persistence, we will have very little data and not enough to produce good a good value over time. We should take it into account and not report anything until we conside the value usable. I would start with waiting 1 hour. We don't really need persistence we Grafana and the Alert Manager could keep using the last seen value until we provide something better.
Grafana/ Prom miss a value to do this esttimation: we do provide the requests rate but those services don't know the value of the drip so they cannot estimate if a balance of 1000 will last 1 hour or a 1month. The faucet has this information.

Done


MIT Licence

Could you add a licence, I tend to use MIT licence.

Thank you, I fixed it!
It was part of package.json before, which is not clear and doesn't even include the actual text of the license.


Use complete plotting capabilities of Bokeh.js

Hi,
I have noticed that the iTorch package doesn't use all the capabilities of Boheh.js. For example, I wanted to use the multi_line   but  the method isn't defined.
Is it possible to do so?

@ssakhavi it's very much possible. I just implemented a subset of them that I thought would be most impactful in the first round. Look at Plot.lua and see if you can copy-paste another glyph and modify it a bit and get it to work. Otherwise, I will get to it when I get time.

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.


change URL

https://github.com/MicrosoftDocs/OfficeDocs-SharePoint/issues/1918

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@kaarins PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Digest-SHA

In the changes for Digest-SHA:

5.96  Wed Jul 27 20:04:34 MST 2016
- prevented shasum from possibly running malicious code
-- remove '.' from @INC before module loading
-- ref. rt.cpan.org #116513

https://rt.cpan.org/Public/Bug/Display.html?id=116513
This appears to be a mitigation for CVE-2016-1238 which was fixed in Perl 5.26.
I don't think this is a discrete vulnerability

Thanks for checking these Changes file. This one is the v5.26 change.

Digest::SHA is a dulal life module, in core as well as a separate distribution.
The diff https://metacpan.org/release/MSHELOR/Digest-SHA-5.96/diff/MSHELOR/Digest-SHA-5.95 shows a specific change to remove ".".
Perl 5.26 fixes that issue, but for earlier Perl versions (or even later Perls where someone intentionally added "." to @INC) this is a separate mitigation.
So I think this should be listed as a separate vulnerability, though perhaps tagged as that CVE,

I think your arguments are stronger than my weak reluctance, and I don't think there are adverse consequences of including the report.

As part of this, we should go through all the modules or programs mentioned in CVE-2016-1238 to see which are affected. I think some are "vunerable" because of the perl version and have "safe" versions that are the same in affected and patched perl version.


feat(tests): fix tests

Updates poetry.lock
Add's pytest config example to pyproject.toml
rename wrong tests package name

@DavidVujic hope this help, i have spend almost 2 hours trying to run the tests ;-) ....

This is great @ybenitezf! I'll have a look at your Pull Request as soon as possible. Many thanks! ⭐


Publish plugin zips to maven repo

Description
With existing setup the plugin jars are only published to maven repo, but not the generated plugin zips.
Related META issue
https://github.com/opensearch-project/opensearch-build/issues/1916
Current Behavior
Existing all maven publications target the jar files to publish to maven, but not the generated distribution zips.
Expected Behavior
Along with plugin jars, plugin zips should also be published to maven repo with right maven coordinates, so user can download these plugins using dependancy model.
Steps To Reproduce

Run the gradle assemble task that outputs jar and zips.
Using build setup the jars are published to local staging maven repo.
Zip's are just added to distribution's folder during build runtime.
Finally once build is done, just the jar files are added to local maven repo and updates to the manifest file, but not the zips.

Proposed solution
A custom gradle plugin solution that can create the publication task for the zips to get published to local staging maven repo with right maven coordinates.
Add/Configure the custom gradle plugin openseearch.pluginzip to the gradle project and test the generated plugin zip's to upload to local maven repo.
More details on how to use the Plugin:
https://github.com/opensearch-project/opensearch-plugins/blob/main/BUILDING.md#opensearchpluginzip

@anirudha  @joshuali925 Can you please make the necessary changes as listed on the document to support publishing your zips to Maven?

Reopening this issue as publishing of the zips is not associated with the right artifcatID
More details: https://github.com/opensearch-project/sql/issues/660
@anirudha @joshuali925  @bbarani


Typo in Copyright header

In multiple files, there is a typo in the copyright header for AS IS.
...
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES
...

What's wrong with that?

https://en.wikipedia.org/wiki/MIT_License

@marjohn56 What about "AS IS" vs ``AS IS''.

I'm pretty sure we have better things todo than looking at the type of quoting used in the sentence... which is likely only intended to emphrase the wording and is used in a lot of BSD licences.

@AdSchellevis is this really your sense of quality? A quick find and replace seems too much to ask? I'm willing to do the PR to not affect your better things todo if you are ok with it?

Please don't be silly. This is older typewriter style.

I'm just saying that it's highly likely intentional, please search other BSD licenses (for example in FreeBSD and OpenBSD) before concluding that there's anything worth fixing.
Changing large portions of code mainly to replace a quote seems senseless and counter productive, since changes are that they lead to merge conflicts and lots of noise when handling releases.
So, no, I'm currently not really interested in a PR for these changes.


UnderscoresInNumericLiterals flagged for floats

assertThat(expressionEvaluator.evaluate("π").toDouble()).isEqualTo(3.1415926535897932385)

is being flagged by UnderscoresInNumericLiterals and it should not. RC14

Is this issue that it's flagged for floats, or that it's flagging with only a single digit before the decimal point?
I'd expect things like 3000.1234 would be flagged as it would be better as 3_000.1234, what do you think?

It is flagged because of x.1415926535897932385 and the rule expects 3.1_415_926_535_897_932_385.
Do we really want to to allow 3.1415926535897932385? Yes, phi is known and the number sequence appears familiar for us, but do we want this for other sequences?
No false positive rather open for configuration option here.

I don't think this rule should work for floats/doubles. Even 7.4_534_454 looks super weird

My strong preference would be only doing this for digits before the period only. Pretty sure there's an IntelliJ intention that works the same way.
Good:
1_000
1_000_000.48272848
0x55_43_F8
Bad:
1_000.345_678_910

I'd also exclude heg digits. We are used to 0xFFFFFF and having 0xFF_FF_FF is super weird.


PHP: Use the global variable $memory when freeing it

Without using the global variable, a new local variable is created.
https://3v4l.org/4TbmN vs https://3v4l.org/06HcL

Makes sense.
Out of interest, why do we need to nullify the variable in the shutdown function? Surely the memory would only actually be freed during the next GC cycle, and we're about to exit the program anyway.

I thought it was needed to allocate memory to the variables defined in the shutdown function, as more or less explained in comments.
But actually not: https://3v4l.org/SeA2K
Maybe there is another reason?

From memory, the idea for this came from https://stackoverflow.com/questions/8440439/safely-catch-a-allowed-memory-size-exhausted-error-in-php. I am not a PHP dev, so welcome your opinions!

Ah, I see – I think the idea is that if we manage to use exactly 100% of our available memory, then fail to allocate more as we've run out, we can free up the buffer to make space for the error. However, in many cases we wouldn't be at exactly 100% when the final failing allocation happens, which is probably why @LeoColomb didn't notice any difference.
I'm happy to merge this - thanks for the fix @LeoColomb.


Test Issue created at Tue, 08 Jun 2021 11:04:50 GMT

Test issue body  Tue, 08 Jun 2021 11:04:50 GMT

Comment on issue at Tue, 08 Jun 2021 11:04:52 GMT


add a trait to abstract over CsVec, see #42

@dylanede, would this be ok for your abstraction needs?

That looks great. Thanks.

Closing #42 then.


Bump up WASI version to enable "wasi-snapshot-preview1"."proc_exit"

Motivation
I compiled a C library to wasm which contains the following import (in the .wat file)
(import "wasi-snapshot-preview1" "proc_exit" (func (;0;) (type 4)))
However, when I later use this module with java-wasmer I get the following errors:
Exception in thread "main" java.lang.RuntimeException: Failed to instantiate the module: Error while importing "wasi-snapshot-preview1"."proc_exit": unknown import. Expected Function(FunctionType { params: [I32], results: [] }).
Currently, from Cargo.toml it appears that wasmer-java is using an older version of WASI and I tried to compile wasmer-java with the updated packages:
 11 [dependencies]
 12 wasmer = { git = "https://github.com/wasmerio/wasmer", rev = "2.0.0" }
 13 wasmer-runtime = { git = "https://github.com/wasmerio/wasmer", rev = "1.0.0" }
 14 wasmer-runtime-core = { git = "https://github.com/wasmerio/wasmer", rev = "1.0.0" }

but make fails. Is there an easy way to bump up the versions?
Proposed solution
Update the WASI package versions to allow accessing the undefined WASI functions.
Alternatives
There aren't any.
Additional context
Nothing here as well. It's package versioning.

Two jumbled things here:

You're trying to bump the wasmer version, not the wasi version. There's a PR for that.
wasmer-java doesn't support imports at all. There's an issue with some unfinished code for that.

Thank you @jcaesar. I somehow forgot to reply and just noticed -- I am closing this :)


Fix fix show data regression case

Proposed changes
Issue Number: close #xxx

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


Fix CONSTANCE_CONFIG_FIELDSETS mismatch issue

CONSTANCE_CONFIG_FIELDSETS should be optional (change in 2.1.0 broke it), otherwise nothing could be updated if CONSTANCE_CONFIG_FIELDSETS is not defined at all, which should be the most common use case.

Thank you


When the dependencies of a local addon are not enabled, an error occurred

Describe the bug

When the dependencies of a local addon are not enabled, an error occurred.
➜  catalog git:(generate-terraform-addon) ✗ vela addon enable ./addons/terraform-tencent-REVIEW TENCENTCLOUD_SECRET_ID=xxx TENCENTCLOUD_SECRET_KEY=yyy TENCENTCLOUD_REGION=zzz
Error: fail to get addon meta: registry don't have enough info to build a reader

To Reproduce

Expected behavior

Screenshots

KubeVela Version

Cluster information

Additional context

IMO this issue have been fixed. Closing，feel free if the issue still exist.


Let smart_worker.py know the #concurrent command and spawn processes accordingly.

smart_worker.py should be aware of the number of concurrent commands to run on a node. It could then spawn processes accordingly. When a command is finished, and if there is no limit on how many commands it can run, it will spawn another process with another command (if any left).
With this enhancement, PBS file would contain only one command to run: smart_worker.py ....

You mean one worker should handle all the commands on a given node?

I guess that is what I was trying to say. I don't why, though. :-/

Better control over the resources maybe ?
It's not clear.

Maybe. But you are right, it's better to close it for now.


Train all frames or sample some?

Hi,
Congratualate for the amazing work!
I wonder if it is possible to sample some frames and train these data when I hope to track the whole frames of a video sequence. or I need to train all the frames of a long video and cost a lot of time.

Did you try it? How did it work out?

Hi I think that depends on what kind of sampling you are considering. If it is regular subsampling, e.g., decreasing subsampling from 30 to 10, that is probably okay. But if you are considering uneven sampling which may break the temporal coherence assumption that our method makes, then I think our method might have difficulty handling that.


Is Remote / SSH or Remote / Container development supported?

Hello,
First of all, I really love Playwright, thanks a lot for this awesome extension!
As I try to do all development that I can remotely or in containers, I tried to set up the extension on a remote SSH Windows box (https://code.visualstudio.com/docs/remote/ssh). I can install the extension, trigger the playwright installation action and run headless tests without problems. However, if I try to e.g. set a breakpoint and debug the test, it just hangs when it gets to the breakpoint, I assume because it is trying to open a browser? Is that a supported scenario and I am doing something wrong or is running through remote/SSH not supported?
The same happens with Remote / Container with a WSL2 container on Windows. Same question here, am I missing something or is this not supported?

First of all, I really love Playwright, thanks a lot for this awesome extension!

Happy to hear!
Since debugging spawns a headful browser on the host OS, its not fully possible as of today due this contract.

The same happens with Remote / Container with a WSL2 container on Windows. Same question here, am I missing something or is this not supported?

WSL2 support should be fixed in version 0.2.6 which was released a few minutes ago.
(There was a separate issue that the HTML report was not opening, this was an issue in Playwright, which you can fix by using the dev version: npm install @playwright/test@next.

@mxschmitt Great news, thanks. However, when I try to do this now with a container and the updated extension, I get

Do I need to do some setup / config on the Windows side for this to work?

Ah sorry, I mixed up WSL and containers (cause Linux containers are also using WSL as backend on Windows, but obviously still not the same)

In your scenario you are using containers, where debug is not supported. Why? Because when you debug, it will launch a headed browser, for that you need a GUI to see the browser and the playwright inspector, which you don't have in the container OR you can't control inside the container.

Is it possible to run headed browser with xvfb for rendering, and let user connect to the remote GUI with VNC to view/debug/control the tests?
It looks like Selenium docker container is doing headed rendering like this.
https://github.com/SeleniumHQ/docker-selenium
If this is possible in Playwright, it would be a huge improvement for remote development workflow.

@mxschmitt What if remote _supports headed mode, e.g. X11 forwarding? Would browser-related tasks work then?


TER-77 repeated order by

Jira: TER-77
driver-common: https://github.com/keboola/php-storage-driver-common/pull/19
connection: https://github.com/keboola/connection/pull/4097
Composer dev branches:
$ dcrr dev composer update keboola/storage-driver-common

        "keboola/storage-driver-common": "dev-TER-77-repeated-orderBy as 1.4.0",

Pridal jsem jeste presun PreviewTableOrderBy do sdileneho ImportExportShared.OrderBy - vyuzije se pri exportu apod.


Paging on Get-PCInvoiceLineItems

Paging on Get-PCInvoiceLineItems

Thank you @dennings. Code change suggested on #41


run quanmodel  failed

Before you open an issue, please make sure you have tried the following steps:

Make sure your environment is the same with (https://mace.readthedocs.io/en/latest/installation/env_requirement.html).
Have you ever read the document for your usage?
Check if your issue appears in HOW-TO-DEBUG or FAQ.
The form below must be filled.

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):18.10
NDK version(e.g., 15c):r16b
GCC version(if compiling for host, e.g., 5.4.0):
MACE version (Use the command: git describe --long --tags):0.11.o-rc1
Python version(2.7): 2.7
Bazel version (e.g., 0.13.0):0.13.1

Model deploy file (*.yml)
library_name: mobilenet-v2-quantize-retrain
target_abis: [arm64-v8a,armeabi-v7a]
model_graph_format: file
model_data_format: file
models:
mobilenet_v2_quantize_retrain:
platform: tensorflow
model_file_path: https://cnbj1.fds.api.xiaomi.com/mace/miai-models/mobilenet-v2/mobilenet_v2_1.0_224_quant_retrain.pb
model_sha256_checksum: 1429c8e2a91b251c9fa0dae43dfa5817c5a798bd30284f8c0690e7569a8817f1
subgraphs:
- input_tensors:
- input
input_shapes:
- 1,224,224,3
input_ranges:
- -1.0,1.0
output_tensors:
- output
output_shapes:
- 1,1001
validation_inputs_data:
- http://cnbj1.fds.api.xiaomi.com/mace/miai-models/mobilenet-v1/input_n01440764_15071.JPEG_input
runtime: cpu
limit_opencl_kernel_time: 0
nnlib_graph_mode: 0
obfuscate: 0
winograd: 0
quantize: 1
Describe the problem
A clear and concise description of what the bug is.
crash  see it as log
To Reproduce
Steps to reproduce the problem:
1. cd /path/to/mace
2. python tools/converter.py convert --config_file=/path/to/your/model_deployment_file

python tools/converter.py  run  --config=./mace-models/mobilenet-v2/mobilenet-v2-quantize-retrain.yml  --round=50
Error information / logs
Please include the full log and/or traceback here.
LOGs

========================================================
capability(CPU)        init      warmup     run_avg
time          60.253      32.414      92.652      75.496
I mace/tools/validation/mace_run.cc:430] Write output file /data/local/tmp/mace_run/model_out_output with size 4004 done.
I mace/libmace/mace.cc:603] Destroying MaceEngine
Running finished!
Elapse time: 0.117592 minutes.

Package libs for mobilenet-v2-quantize-retrain
Start packaging 'mobilenet-v2-quantize-retrain' libs into builds/mobilenet-v2-quantize-retrain/libmace_mobilenet-v2-quantize-retrain.tar.gz
builds/mobilenet-v2-quantize-retrain/_tmp/
builds/mobilenet-v2-quantize-retrain/_tmp/armeabi-v7a/
builds/mobilenet-v2-quantize-retrain/_tmp/armeabi-v7a/mace_run_static
builds/mobilenet-v2-quantize-retrain/_tmp/mobilenet_v2_quantize_retrain/
builds/mobilenet-v2-quantize-retrain/_tmp/mobilenet_v2_quantize_retrain/4f98b00eb51c1f35043184db3e60a269/
builds/mobilenet-v2-quantize-retrain/_tmp/mobilenet_v2_quantize_retrain/4f98b00eb51c1f35043184db3e60a269/PBDT00_sdm710/
builds/mobilenet-v2-quantize-retrain/_tmp/mobilenet_v2_quantize_retrain/4f98b00eb51c1f35043184db3e60a269/PBDT00_sdm710/armeabi-v7a/
builds/mobilenet-v2-quantize-retrain/_tmp/mobilenet_v2_quantize_retrain/4f98b00eb51c1f35043184db3e60a269/PBDT00_sdm710/armeabi-v7a/model_input_input
builds/mobilenet-v2-quantize-retrain/_tmp/mobilenet_v2_quantize_retrain/4f98b00eb51c1f35043184db3e60a269/PBDT00_sdm710/arm64-v8a/
builds/mobilenet-v2-quantize-retrain/_tmp/mobilenet_v2_quantize_retrain/4f98b00eb51c1f35043184db3e60a269/PBDT00_sdm710/arm64-v8a/model_input_input
builds/mobilenet-v2-quantize-retrain/_tmp/arm64-v8a/
builds/mobilenet-v2-quantize-retrain/_tmp/arm64-v8a/mace_run_static
builds/mobilenet-v2-quantize-retrain/model/
builds/mobilenet-v2-quantize-retrain/model/mobilenet_v2_quantize_retrain.pb
builds/mobilenet-v2-quantize-retrain/model/mobilenet_v2_quantize_retrain.data
/bin/tar: The following options were used after any non-optional arguments in archive create or update mode.  These options are positional and affect only arguments that follow them.  Please, rearrange them properly.
/bin/tar: --exclude “builds/mobilenet-v2-quantize-retrain/_tmp” has no effect
/bin/tar: 由于前次错误，将以上次的错误状态退出
Traceback (most recent call last):
File "tools/converter.py", line 1346, in
flags.func(flags)
File "tools/converter.py", line 1041, in run_mace
configs[YAMLKeyword.library_name])

Additional context
Add any other context about the problem here, e.g., what you have modified about the code.

Please try our new master code

I convert my self model,got another problem:
TypeError: [<HexagonOp.QuantizedAdd_8p8to8: 'QuantizedAdd_8p8to8'>] has type <type 'list'>, but expected one of: (<type 'str'>, <type 'unicode'>)
Traceback (most recent call last):
File "tools/converter.py", line 1363, in
flags.func(flags)
File "tools/converter.py", line 866, in convert_func
convert_model(configs, flags.cl_mem_type)
File "tools/converter.py", line 794, in convert_model
",".join(model_config.get(YAMLKeyword.graph_optimize_options, [])))

You can try our new master code if your elementwise op type is Add or Sub.


Add keep alive for app engine

Without a keep alive, the app engine stops and the server will return sn SSL error on https while it starts again, which can take a while...

As a workaround, we added a manual scaling parameter of 1 for GAE for now.


Clicking the clear icon

Vue version: 3.4.21
Nuxt version: 3.11.1
multiselect version: 2.6.7
When clicking the clear icon, the dropdown shows shortly before the selection is cleared and dropdown closes again

Same here. Really annoying and looks like a glitch

I found that need to add z-index: 1 to span[data-clear] close buttons. Because input of search overlap it.

Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: span
Ancestor with aria-hidden   -- Additionally, a message appeared in the console when clicking on the cleaning icon


Example pulls nested file in genrule.

Rules can make subdirs, add a demo of pulling a var from a rule that
makes subdirs.
I wrote this to validate a theory on a bug I was having. I was expecting
this to fail, but it didn't so I figured I'd just commit it and improve the
examples a little.

sorry, ran out of energy to get this re-based, I don't think it's that important as Bazel users will have to know about subdirs


Fix WGPU out of memory when repeatedly recreating contexts

See https://github.com/fragcolor-xyz/shards/pull/466 where ui.edn recreates several windows, this runs out of memory on the CI machine in windows release.

Ouch, we need to find more leaks soon...

hey @guusw ? what about this?

I'm waiting a bit, technically it never happens only when the same program (re)creates multiple MainWindows so it's not critical (just tests do it)
I expect it to be fixed when we update wgpu-native along with the VR changes, I merged some changes into wgpu-native to allow it you to destroy the WGPUInstance which previously just kept existing globally.


Removed temporary <1.29 bug workaround for nil affinity

MIXEDARCH-430: Removed temporary <1.29 bug workaround for nil affinity

/test lint

/test lint

/test lint

Hi @AnnaZivkovic, we'd also remove the call to WithAffinity() in https://github.com/openshift/multiarch-manager-operator/blob/f2315e12e4a1a10f7b71f1b3dd16277b55813aad/controllers/podplacement/pod_model_test.go#L544-L545

@AnnaZivkovic maybe you need to rebase due to changes in https://github.com/openshift/multiarch-tuning-operator/pull/48

/test lint

/test e2e-gcp-multi-operator

/test e2e-gcp-multi-operator-olm

/test e2e-gcp-multi-operator-olm

This  TODO needs to be addressed for the test to pass

/test ci/prow/e2e-gcp-multi-operator
(just to check an issue with the other PR #50)

/test e2e-gcp-multi-operator

/lgtm


Inference data

Hi, thank you for your contribution of code, which can solve many problems and achieve better results in panoramic segmentation of large-scale lidar point clouds.
I noticed that in the data in the NPM3D dataset, it is [N,6], which not only includes the value of xyz, but also 'scalar_reflectance', 'scalar_class', 'scalar_label', and the same is true for the test set.
But when I want to reason about my own data, my data format is [N,4] and there are no semantic categories and object instances. How should I reason about my own data, or where should I get the semantic categories and object instances of my own data? I didn't solve this problem in the code, thank you for your generous answer.

Hi, thank you for your contribution of code, which can solve many problems and achieve better results in panoramic segmentation of large-scale lidar point clouds. I noticed that in the data in the NPM3D dataset, it is [N,6], which not only includes the value of xyz, but also 'scalar_reflectance', 'scalar_class', 'scalar_label', and the same is true for the test set. But when I want to reason about my own data, my data format is [N,4] and there are no semantic categories and object instances. How should I reason about my own data, or where should I get the semantic categories and object instances of my own data? I didn't solve this problem in the code, thank you for your generous answer.

Hi, thanks a lot for youe interest in my work! sorry for the late reply, I just finished a ddl.
I think I answered the same question before, for your reference:
https://github.com/bxiang233/PanopticSegForLargeScalePointCloud/issues/2#issuecomment-1655269126

Thank you for your answer. In fact, I have already done so and achieved certain results. Thank you for your help.

Thank you for your answer. In fact, I have already done so and achieved certain results. Thank you for your help.

Good to hear! you are welcome.


Make CI faster / reduce number of GHA workflows

A single commit to a PR triggers 20 GHA workflows, and many of them are slow (up to 10 minutes). Whenever we are developing more than one PR at a time, this represents a severe bottleneck.
Improvements/mitigations:

https://github.com/fractal-analytics-platform/fractal-server/issues/1622
https://github.com/fractal-analytics-platform/fractal-server/issues/1573
https://github.com/fractal-analytics-platform/fractal-server/issues/1623
#1666

Ref https://docs.python.org/3/whatsnew/3.11.html#enum


serializers: fix coordinates and add geolocation box and polygon to datacite

:heart: Thank you for your contribution!
Description
Resolves #1026 and #1095. This PR also fixes a bug in the serializer where geolocation point mapped the longitude and latitude incorrectly for geojson (https://github.com/inveniosoftware/docs-invenio-rdm/pull/460).
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

[x] I'm aware of the code of conduct.
[x] I've created logical separate commits and followed the commit message format.
[x] I've added relevant test cases.
[x] I've added relevant documentation.
[x] I've marked translation strings (for relevant code).
[x] I've followed the CSS/JS and React guidelines (for relevant code).
[x] I've followed the web accessibility guidelines (for relevant code).
[x] I've followed the user interface guidelines (for relevant code).
[x] I've identified the copyright holder(s) and updated copyright headers for touched files (>15 lines contributions).
[x] I've NOT included third-party code (copy/pasted source code or new dependencies).

Third-party code
If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

You license your contribution under the same terms as the current repository’s license.
You agree that you have the right to license your contribution under the current repository’s license.

My understanding of GeoJSON is that you can, alongside the necessary params (geometry-type and geometry-coordinates), there is also the possibility to integrate additional optional fields.
Example for Points:
         "features": [
                {
                    "geometry": {
                        "type": "Point",
                        "coordinates": [
                            6.05,
                            46.23333
                        ]
                    },
                    "identifiers": [
                        {
                            "scheme": "geonames",
                            "identifier": "2661235"
                        }
                    ],
                    "place": "CERN",
                    "description": "Invenio birth place."
                },
                {
                    "geometry": {
                        "type": "Point",
                        "coordinates": [
                            6.05,
                            46.23333
                        ]
                    },
                    "identifiers": [
                        {
                            "scheme": "geonames",
                            "identifier": "111"
                        }
                    ],
                    "place": "TESTING",
                    "description": "blah"
                }
            ]

example of how I handled this for geojson
https://github.com/inveniosoftware/invenio-rdm-records/blob/master/invenio_rdm_records/resources/serializers/geojson/schema.py
and tests here
https://github.com/inveniosoftware/invenio-rdm-records/blob/f3e271b4aee4f9c48487aaa42c411f91b7c764e3/tests/resources/serializers/test_geojson_serializer.py#L85
Is this needed/possible for datacite?
(as I don't think this is implemented in the code and tests)

@TLGINO Thanks!
Point and place are already serialized https://github.com/inveniosoftware/invenio-rdm-records/blob/f3e271b4aee4f9c48487aaa42c411f91b7c764e3/tests/resources/serializers/test_datacite_serializer.py#L164, and there isn't a good DataCite match for description or identifiers. I think this PR gets as much of the RDM metadata into the DataCite geolocation fields as is possible.

Coordination:
Asking @TLGINO for a review since they commented and I think they are from CERN :) .

Rebased and fixed the DCAT tests (merging will also fix the DCAT order, since it assumes the DataCite serialization is correct)


Added section on component customization

I like the specific examples added here. It adds some needed detail onto the post and makes it a more comprehensive guide to people getting started with material ui. Good work!


Update custom.css

Added code snippet for table row color override. This will sync settings with the user's custom CSS.
Closes #199

Thank you for the PR @kimsauce !

You're welcome, my pleasure! Appreciate your hard work and look forward to using Redocusaurus!


Truncated text in PayementSheet component (in french)

Describe the bug
In some small width Android devices, the PayementSheet title is truncated in french "Ajoutez vos informations de"
To Reproduce
Steps to reproduce the behavior:

Change phone language to French
Open PayementSheet component

Expected behavior
Title should be : "Ajoutez vos informations de paiement"
Screenshots

Smartphone (please complete the following information):

Device: Samsung A51
OS: Android 11

Additional context
The bug looks related to device width since with Pixel 4 XL API 30 (Emulator) it works fine.
The bug doesn't happen on ios devices since text popup always display in english
Expo SDK 42
@stripe/stripe-react-native 0.1.4

Has been fixed with new @stripe/stripe-react-native version


[SPARK-33613][PYTHON][TESTS] Replace deprecated APIs in pyspark tests

What changes were proposed in this pull request?
This replaces deprecated API usage in PySpark tests with the preferred APIs. These have been deprecated for some time and usage is not consistent within tests.

https://docs.python.org/3/library/unittest.html#deprecated-aliases

Why are the changes needed?

For consistency and eventual removal of deprecated APIs.
Does this PR introduce any user-facing change?

No
How was this patch tested?

Existing tests

@HyukjinKwon I have noticed these have been inconsistent for a while, and seems like maybe now is a good time to clean up.

Ur, sorry for misleading you.


Add PHPStan 0.11 compatibility and add CI tests

Update extension to work with PHPStan 0.11 and add
a travis configuration that executes linters and (phpstan) tests
against the extension code via phing
Closes #7

WIP because i have to test some of the changes...

Extensions should not hijack bootstrap for themselves, it should be used by
the root project only. Use autoload_files instead.
On Thu, 25 Jul 2019 at 12:48, Sascha Egerer<EMAIL_ADDRESS>wrote:

@sascha-egerer commented on this pull request.
In extension.neon
https://github.com/sascha-egerer/phpstan-typo3/pull/12#discussion_r307233490
:

@@ -1,3 +1,6 @@
+parameters:

bootstrap: %rootDir%/../../saschaegerer/phpstan-typo3/src/PhpstanTypo3Bootstrap.php

You can still overwrite this with your own bootstrap. So if you define a
bootstrap in your config it should not load this one, right?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sascha-egerer/phpstan-typo3/pull/12?email_source=notifications&email_token=AAAZTODMSBZZCRK5LAKYRGLQBGAGBA5CNFSM4IECMGIKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7RSWOA#discussion_r307233490,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAZTOFT6WQGNQEAL5ZODMDQBGAGBANCNFSM4IECMGIA
.

--
Ondřej Mirtes

Extensions should not hijack bootstrap for themselves, it should be used by the root project only. Use autoload_files instead.

Hm yeah ok but autoload_files is to register files for the autoloader, right? Initializing a framework via this option is also not really nice, isn't it?
I'm also fine with removing this line again from the extension config but i think it's good to have a "install and it works" solution.

is to register files for the autoloader, right

PHPStan simply executes these files before running the analysis so you can do whatever you want - initialize something, define constants and aliases, etc...

The installation works and I can run an analysis run. However, I get a whole bunch of new errors. Can you adjust your requirement on phpstan/phpstan to continue supporting 0.10? I'd like to know if this change comes from the 0.10 ➡ 0.11 upgrade of PHPStan.

The installation works and I can run an analysis run. However, I get a whole bunch of new errors. Can you adjust your requirement on phpstan/phpstan to continue supporting 0.10? I'd like to know if this change comes from the 0.10 ➡ 0.11 upgrade of PHPStan.

I've adjusted the requirement as it should run with 0.10 anyways.
Do you use phpstan/phpstan-strict-rules? Then the new errors may come from those checks

I don’t get this requirement. Extensions should not support old versions of
PHPStan. You should run always the latest version of PHPStan. If it’s a
problem, lower the level temporarily.
On Fri, 26 Jul 2019 at 11:03, Sascha Egerer<EMAIL_ADDRESS>wrote:

The installation works and I can run an analysis run. However, I get a
whole bunch of new errors. Can you adjust your requirement on
phpstan/phpstan to continue supporting 0.10? I'd like to know if this
change comes from the 0.10 ➡ 0.11 upgrade of PHPStan.
I've adjusted the requirement as it should run with 0.10 anyways.
Do you use phpstan/phpstan-strict-rules? Then the new errors may come
from those checks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sascha-egerer/phpstan-typo3/pull/12?email_source=notifications&email_token=AAAZTOE6OKOKPUGVVQCKNILQBK4WTA5CNFSM4IECMGIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD237CYA#issuecomment-515371360,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAZTOHT5YKTSY2YAXRSMUTQBK4WTANCNFSM4IECMGIA
.

--
Ondřej Mirtes

@ondrejmirtes If it does not take a huge effort to support multiple versions it's fine to support them IMO. Especially if upgrades between major versions (or minor for 0.x) are planned.

@sascha-egerer The errors are gone with this change and PHPStan 0.10 so I assume it's a general increase in strictness there.
I'll leave it up to you if you want to support 0.10 and 0.11 in parallel. ;-)

Ah i didn't know that the ^ operator has a different behavior for pre release versions (0.*).
Sorry...


"The file you specified in not in your Dropbox folder"

I get this message no matter what file I select -- whether in the root Dropbox folder or otherwise.

Getting this same error as well. Authentication worked fine, it seems.


Solidify what KeyedDataset interface

Related to #25 it's unclear what common Julia operations are applicable to a KeyedDataset (e.g., first(ds), values(ds), etc). Maybe it's worth making this type an AbstractDict with some extra functions?

Or perhaps behave similarly to a Dictionaries.jl Dictionary, which doesn't subtype AbstractDict, largely because they "can be manipulated and transformed using a similar interface to Julia's built-in arrays", which i think makes sense for a KeyedDataset e.g. mapping and broadcasting preserve the indices and transforming the corresponding values.

Interesting, I don't love that there's a different type call Dictionary with a different show syntax, but I do like that:

setindex! and insert! are distinct with different use-cases.
Most of the AbstractIndices behaviour matches most of our set related operations and queries.


Platform title is currently shown 3 times on screen.

As you can see in this image, by default the application shows the platform title 3 times.
The titles surrounded by a green line are OK and are actually useful. Though the one surrounded by red (the one with the icon) offers no extra information and only clutters the screen. It (and also the icon) can just be removed.

I am aware of this. But I can't come up with a better decoration on screen. (For larger aspect ratio and tablet screens)

Do you need a decoration? Sometimes, less is more :)

Completely agree with luke charman. The decoration does not give any more clearity to the user. Adding a single consistent location will only make it easier for the user to read. Also since the icon is the same for every platform, it is also not necessary. to add the icon there.

I did simplified 1.4.x UI a bit. I will consider your suggestion when available. (It really looks kidda awkward on larger screen without additional text to me).

Can you show me what you mean by awkward? Because I do not see it. Or havent seen daijisho on a larger screen.

Since I've migrated my desktop operating system. Previously set-up android tablet emulators are no longer present. So, I cannot show you directly.
Here, however is an example on ETA Prime's video.
At the end. I am open to the suggestions, and appreciate it. But I will make my own aesthetic decision.


Support for include directive

support for include:: directive (required adjustment of safe mode and setting of basedir property in asciidoctor

to be discussed:

currently, asciidoc pages included into other pages need to use the _ as prefix in the file name and are excluded from normal conversion based on this pattern (same prefix is used by AsciiDocDirectoryWalker of  AsciidoctorJ)

Coverage increased (+0.1%) to 85.382% when pulling 7005bba23728dfcf5b0364baa2b286715c585840 on feature/includes-support into 7f8c9f8087f2026ca33e44439233e6b0f41b361b on master.

Coverage increased (+0.1%) to 85.382% when pulling 1d10fcfff2f09c3f3d1edb2a05430a99bab6cea9 on feature/includes-support into 7f8c9f8087f2026ca33e44439233e6b0f41b361b on master.


Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0

coverage: 52.747%. remained the same
when pulling e5e360c30f5fd99c549bafb6b41dc49743ed5643 on upgrade-ci-lint
into b2c45fee098a472b2e788a96421125bb12b0d662 on main.


include special functions and linear activation

This includes some special functions (gamma, gammaln, log1p, expm1) and a linear activation.
The code for gamma and gammaln is based on the Cephes library. The author has given permission to incldue Cephes code in mxnet.

Thank you for the contribution. Since we are in the process of a major refactor and your pr involves new ops, could you rebase your code on the NNVM branch?
Please see dmlc/nnvm and this guide https://github.com/dmlc/mxnet/issues/3248


landing page

@laurilano  could you please start the design discussion with the team?
the landing page code is here https://github.com/ModelAtlasofTheEarth/website/blob/main/src/templates/index-page.js
Here is an idea with video header https://mate.science/

@laurilano
You may follow the instructions at https://www.w3schools.com/howto/howto_css_fullscreen_video.asp and create a full screen video handing page. You may use the video at https://mate.science/webdav/media/header-video.mp4. Put the code in  this file  https://github.com/ModelAtlasofTheEarth/website/blob/main/src/templates/index-page.js
The purpose of this prototype page is to start the design discussion with the team. If they do not like the full screen video background design, show them this https://99designs.com/blog/creative-inspiration/landing-page-design-inspiration/ and ask them which one they like.
Thanks.

Hi @laurilano,
After familiarising yourself with html, css and javascript, please start discussion about the website design with @saraemp @dansand and the team. It is very likely that the team has their own ideas about the website. It would be better to talk to them/confirm with them before doing anything. I am overwhelmed by other tasks right now and might skip the weekly meeting from time to time even without notices. I would be grateful if you could lead the website design discussion. Thanks.


Put_assoc with many to many doesn't work.

Precheck
👍
Environment

Elixir version (elixir -v): 1.10.2
Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): Postgres: 12.2
Ecto version (mix deps): 3.4.0 ecto_sql: 3.4.2
Database adapter and version (mix deps): postgrex 0.15.3
Operating system: unix (mac)

Current behavior
I've made a minimal test repo here: https://github.com/Adzz/postgres_test
Essentially if I try to do an upsert on a many to many relationship, the result of the upsert looks correct,  but if I then query the db, the rows in the join table are still there.
Expected behavior
This could be user error which would be very embarrassing but it looks like put_assoc isn't working?
this is the relevant code:
  def run(%{id: post_id}) do
    Ecto.Changeset.cast(%Post{id: post_id}, %{id: post_id, author: "Mike wazowski"}, [:author])
    |> Ecto.Changeset.put_assoc(:post_tags, [])
    |> Repo.insert(
      returning: true,
      on_conflict: {:replace_all_except, [:id]},
      conflict_target: [:id]
    )
    |> IO.inspect(limit: :infinity, label: "insert result")

    from(p in Post, preload: [:post_tags, :tags])
    |> Repo.all()
    |> IO.inspect(limit: :infinity, label: "Database result")
  end

  def setup do
    post = %{id: post_id} = Repo.insert!(%Post{author: "Mike wazowski"})

    %{id: tag_1_id} = Repo.insert!(%Tag{name: "not great"})
    %{id: tag_id} = Repo.insert!(%Tag{name: "great"})

    Repo.insert!(%PostTag{post_id: post_id, tag_id: tag_1_id})
    Repo.insert!(%PostTag{post_id: post_id, tag_id: tag_id})
    post
  end

Here insert result looks correct, but Database result shows the post_tags still there.

put_assoc has to compare the before and after for it to know what to delete. Since you are passing a brand new record, the association is an empty list and when you put_assoc with an empty list, Ecto correctly concludes that there is nothing to change in the database.
You could try to pass the existing tags on insert, but Ecto works under the assumption there is no previous association at the time of insert - which in all cases is a very reasonable assumption to make. What you are trying to achieve is probably more sanely done with using an update operation on the current ID.


Print type when there is a merge value conflict.

E.g.
F0929 10:57:13.881474 4136660 clusterloader.go:305] Error while preloading images: [mapping merging error: merge conflict for key 'CL2_DELETE_TEST_THROUGHPUT': old value=14 (float64), new value=14 (int64)]

Without this, it's quite hard to tell why the validation fails in some cases.
/assign @tosi3k

/lgtm


What changed in viewreset changed in vers. 1.0

Consider this very simple example of overlaying leaflet with d3.
Taken from here: https://bost.ocks.org/mike/leaflet/
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>D3 Test</title>
        <link rel="stylesheet"<EMAIL_ADDRESS>        <script type="text/javascript" src="https://d3js.org/d3.v3.min.js"></script>
        <script<EMAIL_ADDRESS>    </head>
    <body>
      <div id = "map" style = "width:600px; height:600px;">
  <script>

  var map = new L.Map("map", {center: [37.8, -96.9], zoom: 4})
      .addLayer(new L.TileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"));

  var svg = d3.select(map.getPanes().overlayPane).append("svg"),
      g = svg.append("g").attr("class", "leaflet-zoom-hide");

  d3.json("https://raw.githubusercontent.com/alignedleft/d3-book/master/chapter_12/us-states.json", function(error, collection) {
    if (error) throw error;

    var transform = d3.geo.transform({point: projectPoint}),
        path = d3.geo.path().projection(transform);

    var feature = g.selectAll("path")
        .data(collection.features)
      .enter().append("path");

    map.on("viewreset", reset);
    reset();

    // Reposition the SVG to cover the features.
    function reset() {
      var bounds = path.bounds(collection),
          topLeft = bounds[0],
          bottomRight = bounds[1];

      svg .attr("width", bottomRight[0] - topLeft[0])
          .attr("height", bottomRight[1] - topLeft[1])
          .style("left", topLeft[0] + "px")
          .style("top", topLeft[1] + "px");

      g   .attr("transform", "translate(" + -topLeft[0] + "," + -topLeft[1] + ")");

      feature.attr("d", path);
    }

    // Use Leaflet to implement a D3 geometric transformation.
    function projectPoint(x, y) {
      var point = map.latLngToLayerPoint(new L.LatLng(y, x));
      this.stream.point(point.x, point.y);
    }
  });

  </script>
</body>
</html>

When you zoom in and out, the overlayed layer does not scale anymore. Changing from viewreset to moveend here map.on("viewreset", reset); does the trick. But that would involve unnecessary recalculation when not needed. There is no need of recalculating the overlayed layer on panning of the map for example. I wonder what changed in viewreset with the new leaflet version?

The semantics of the viewreset were changed during https://github.com/Leaflet/Leaflet/pull/3278 - read that bug to get an idea of the reasons.

@IvanSanchez Got it. Thanks!


Sync

How to sync for save notes or backup notes to current dir, because if reinstall system the notes will lost.

Notes are saved into your fyne preference storage directory, which is platform specific.
There is also a way to sync using, for example, dropbox and a symlink (in 2.1 we plan to add proper cloud sync) - some thoughts on the matter at https://fynelabs.com/2021/04/20/keep-all-your-desktop-fyne-apps-in-sync/

Notes are saved into your fyne preference storage directory, which is platform specific.
There is also a way to sync using, for example, dropbox and a symlink (in 2.1 we plan to add proper cloud sync) - some thoughts on the matter at https://fynelabs.com/2021/04/20/keep-all-your-desktop-fyne-apps-in-sync/

Ok


make PV names consistent with web gui names (2)

https://github.com/PandABlocks/PandABlocks-ioc/pull/9#issue-1711962970

Closing as I've made a new branch here


MemoryError when using with custom dataset

Bug Description
After the first model training, in the second model, I am getting the Memory error. I have also added the latest release as in another issue it was mentioned that memory error bug has been fixed in the latest issue. The error looks as follows:
Traceback (most recent call last):
File "/home/monika/.local/lib/python3.6/site-packages/tqdm/_tqdm.py", line 885, in del
self.close()
File "/home/monika/.local/lib/python3.6/site-packages/tqdm/_tqdm.py", line 1090, in close
self._decr_instances(self)
File "/home/monika/.local/lib/python3.6/site-packages/tqdm/_tqdm.py", line 454, in _decr_instances
cls.monitor.exit()
File "/home/monika/.local/lib/python3.6/site-packages/tqdm/_monitor.py", line 52, in exit
self.join()
File "/usr/lib/python3.6/threading.py", line 1053, in join
raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread
/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown
len(cache))
Traceback (most recent call last):
File "mnist.py", line 21, in
clf.fit(x_train, y_train, time_limit=12 * 60 * 60)
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/image_supervised.py", line 239, in fit
run_searcher_once(train_data, test_data, self.path, int(time_remain))
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/image_supervised.py", line 40, in run_searcher_once
searcher.search(train_data, test_data, timeout)
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/search.py", line 190, in search
timeout)
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/bayesian.py", line 257, in optimize_acq
for temp_graph in transform(elem.graph):
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/net_transformer.py", line 83, in transform
temp_graph = to_deeper_graph(deepcopy(graph))
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/net_transformer.py", line 63, in to_deeper_graph
graph.to_conv_deeper_model(layer_id, 3)
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/graph.py", line 313, in to_conv_deeper_model
new_layers = deeper_conv_block(target, kernel_size, self.weighted)
File "/home/monika/.local/lib/python3.6/site-packages/autokeras/layer_transformer.py", line 11, in deeper_conv_block
weight = np.zeros((n_filters, n_filters) + filter_shape)
MemoryError
If I run the code with the mnist classification example, I get the following error after the 8th model :+1:
Process SpawnPoolWorker-9:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/pool.py", line 125, in worker
put((job, i, result))
File "/usr/lib/python3.6/multiprocessing/queues.py", line 347, in put
self._writer.send_bytes(obj)
File "/usr/lib/python3.6/multiprocessing/connection.py", line 200, in send_bytes
self._send_bytes(m[offset:offset + size])
File "/usr/lib/python3.6/multiprocessing/connection.py", line 397, in _send_bytes
self._send(header)
File "/usr/lib/python3.6/multiprocessing/connection.py", line 368, in _send
n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/multiprocessing/pool.py", line 130, in worker
put((job, i, (False, wrapped)))
File "/usr/lib/python3.6/multiprocessing/queues.py", line 347, in put
self._writer.send_bytes(obj)
File "/usr/lib/python3.6/multiprocessing/connection.py", line 200, in send_bytes
self._send_bytes(m[offset:offset + size])
File "/usr/lib/python3.6/multiprocessing/connection.py", line 404, in _send_bytes
self._send(header + buf)
File "/usr/lib/python3.6/multiprocessing/connection.py", line 368, in _send
n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown
len(cache))
/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 4 leaked semaphores to clean up at shutdown
len(cache))
Reproducing Steps
Steps to reproduce the behavior:

Step 1: ... use the mnist.py from examples.
Step 2: ... run the script with either the custom dataset for classification or the default example

Expected Behavior

Setup Details
Include the details about the versions of:

OS type and version: Ubuntu 18.04
Python: 3.6.5
autokeras: 0.2.14
scikit-learn:0.19.1
numpy:1.15.2
keras:2.2.2
scipy:1.1.0
tensorflow:1.10.1
pytorch:0.4.1

Additional context
My data is of the following dimension :
Training Data : (42532, 128,128), training label :  ( 42532,24)
Testing Data : ( 1325,128,128) , testing label : (1325,24)
Running the code on GTX 1080TI 11GB and 32GB RAM

I met the same error
Traceback (most recent call last):   File "ak_aoi_img.py", line 23, in <module>     clf.fit(x_train, y_train, time_limit=2 * 60 * 60)   File "/home/adt/wen/ak_aoi/autokeras/image_supervised.py", line 239, in fit     run_searcher_once(train_data, test_data, self.path, int(time_remain))   File "/home/adt/wen/ak_aoi/autokeras/image_supervised.py", line 40, in run_searcher_once     searcher.search(train_data, test_data, timeout)   File "/home/adt/wen/ak_aoi/autokeras/search.py", line 193, in search     remaining_time)   File "/home/adt/wen/ak_aoi/autokeras/bayesian.py", line 256, in optimize_acq     for temp_graph in transform(elem.graph):   File "/home/adt/wen/ak_aoi/autokeras/net_transformer.py", line 83, in transform     temp_graph = to_deeper_graph(deepcopy(graph))   File "/home/adt/wen/ak_aoi/autokeras/net_transformer.py", line 63, in to_deeper_graph     graph.to_conv_deeper_model(layer_id, 3)   File "/home/adt/wen/ak_aoi/autokeras/graph.py", line 313, in to_conv_deeper_model     new_layers = deeper_conv_block(target, kernel_size, self.weighted)   File "/home/adt/wen/ak_aoi/autokeras/layer_transformer.py", line 11, in deeper_conv_block     weight = np.zeros((n_filters, n_filters) + filter_shape) MemoryError

The solution would be to load the data from disk batch by batch, which can be done by pytorch dataloader.


too many requests error again

We upgraded to 0.28 when it came out and these errors went away, but they have come back again.  What can we do to help fix this as it is part of our CI/CD pipeline?  Thanks
ERROR    [vulndb] Failed to download artifact    repo="ghcr.io/aquasecurity/trivy-db:2" err="oci download error: failed to fetch the layer: GET https://ghcr.io/v2/aquasecurity/trivy-db/blobs/sha256:c3afeb28c808216cc2fa69d1e682164efd3c9967451a061778329ce94ce1a069: TOOMANYREQUESTS: retry-after: 217.944µs, allowed: 44000/minute"
1902024-11-05T13:55:48Z    FATAL    Fatal error    init error: DB error: failed to download vulnerability DB: OCI artifact error: failed to download vulnerability DB: failed to download artifact from any source

Thank you for looking into this

I'd love to see a fix!!

Received same error, TOOMANYREQUESTS. A fix would be greatly appreciated. Thanks.

A fix for this would be helpful in our pipeline process - thx

Have run into this problem also.

Hi @DChevrier1,
as far as I see, you can simply add the following env to your aquasecurity/trivy-action step:
env:
    TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"

This should work - at least when using current aquasecurity/trivy-action@master. Not sure if it also works with the last release.
Oliver Grüneberg<EMAIL_ADDRESS>Mercedes-Benz Tech Innovation GmbH
Provider Information

Seems related to https://github.com/aquasecurity/trivy-action/issues/107

As far as I see, it's a DB download error rather related #389

As far as I see, it's a DB download error rather related #389

@ogruene Yes, both are related.

Hi @DChevrier1,
as far as I see, you can simply add the following env to your aquasecurity/trivy-action step:
env:
    TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"

This should work - at least when using current aquasecurity/trivy-action@master. Not sure if it also works with the last release.
Oliver Grüneberg<EMAIL_ADDRESS>Mercedes-Benz Tech Innovation GmbH Provider Information

Mind providing a source for that repo? https://pkg.go.dev/github.com/aquasecurity/trivy-db#readme-download-the-vulnerability-database only refers to the github container registry

So, it seems that 0.26 was supposed to have added caching and the README says specifically: _ The action has a built-in functionality for caching and restoring [the vulnerability DB]_.
While I am seeing some caching happening in our runs:
Run aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2
Run<EMAIL_ADDRESS>Run echo "dir=$HOME/.local/bin/trivy-bin" >> $GITHUB_OUTPUT
Run actions/cache@v4
Cache Size: ~36 MB (37525313 B)
/usr/bin/tar -xf /home/runner/work/_temp/bbc2d040-9129-4c68-941e-38abe1985a7d/cache.tzst -P -C /home/runner/work/[redacted]/[redacted] --use-compress-program unzstd
Cache restored successfully
Cache restored from key: trivy-binary-v0.56.1-Linux-X64
Run echo /home/runner/.local/bin/trivy-bin >> $GITHUB_PATH
Run echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
Run actions/cache@v4
Cache Size: ~38 MB (39917276 B)
/usr/bin/tar -xf /home/runner/work/_temp/aa0062e0-a74f-49e4-8884-48eb8665af21/cache.tzst -P -C /home/runner/work/[redacted]/[redacted] --use-compress-program unzstd
Received 39917276 of 39917276 (100.0%), 38.0 MBs/sec
Cache restored successfully
Cache restored from key: cache-trivy-2024-11-13

when it comes to getting the vulnerabilities DB, the cache does not seem to be getting used:
2024-11-18T14:51:53Z	INFO	[vulndb] Need to update DB
2024-11-18T14:51:53Z	INFO	[vulndb] Downloading vulnerability DB...
2024-11-18T14:51:53Z	INFO	[vulndb] Downloading artifact...	repo="ghcr.io/aquasecurity/trivy-db:2"
2024-11-18T14:51:53Z	ERROR	[vulndb] Failed to download artifact	repo="ghcr.io/aquasecurity/trivy-db:2" err="OCI repository error: 1 error occurred:\n\t* GET https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2: TOOMANYREQUESTS: retry-after: 95.725µs, allowed: 44000/minute\n\n"
2024-11-18T14:51:53Z	FATAL	Fatal error

So why is caching happening only partially?  Is there a bug related to vulnerability DB caching?

Afaik these containers get released every 6 hours, is it possible that those runs were 6 hours apart?

I don't think so.  It even happens when I "rerun failed jobs" in GitHub Actions repeatedly in quick succession when the jobs fail (i.e. minutes apart).

Trivy tool has a mechanism to verify that the database is not older than one day. If this is the case Trivy tries to download a new database. This mechanism does not take into consideration if the Trivy database is restored from the GitHub cache or not.

Clearly that mechanism is not working or at least is not being effective enough as I can have many runs in a day fail and even have two runs fail within minutes of each other.

IMHO, the database update shall be blocked when the database is restored from the GitHub cache.

It seems that to root cause is inside Trivy tool. It does not support the scenario that the database download fails but scanning could be executed based on cached resources.

That seems like a reasonable summary.


Do not limit contact's pointers to email

A software could have:

a website
one or more social pages
a Forum Italia topic
...

Which could be helpful to learn more about it or ask questions.
Expand the Contact https://docs.italia.it/italia/developers-italia/publiccodeyml/it/master/schema.core.html#contatto
definition to allow for URLs and not just emails.

https://publiccode.discourse.group/t/do-not-limit-contacts-pointers-to-email/59


Adding Hovering Feature

🎇 Description

I would like to add the hovering feature in the "Our New Arrival " Section in your website.
The hovering feature will be similar to  which is used "Our Collection" section .

🖼 Screenshots

Can you assign me this issue and also add the labels of hacktoberfest to it!

🎇 Description

I would like to add the hovering feature in the "Our New Arrival " Section in your website.
The hovering feature will be similar to  which is used "Our Collection" section .

🖼 Screenshots

Please proceed😇


Updates to whisk create and whisk setup log output.

This provides a tree structure and more debugging for the whisk create and whisk setup commands.
Example whisk create terminal output:
whisk --log-file ~/Desktop/whisk.log create -o /Users/dlite/projects/whisk_examples/ demo
├── Creating project directory structure...
|   ├── Project created in /Users/dlite/projects/whisk_examples/demo
|   └── DONE.
│
├── Setting up venv...
|   └── DONE.
│
├── Installing Python dependencies via pip  (may take several minutes)...
|   └── WARNING: You are using pip version 19.2.3, however version 20.1 is available.
|   └── You should consider upgrading via the 'pip install --upgrade pip' command.
|   └── DONE.
│
├── Initializing the Git repo
|   └── DONE.
│
├── Setting up kernel=demo for Jupyter Notebooks...
|   └── Installed kernelspec demo in /Users/dlite/Library/Jupyter/kernels/demo
|   └── DONE.
│
├── Adding files to git...
|   └── DONE.
│
├── Making initial Git commit...
|   └── DONE.
│
└── Setup completed.

 See the docs for help: https://whisk.readthedocs.io

Get started:

cd /Users/dlite/projects/whisk_examples/demo
source venv/bin/activate
###

If an error occurs:
whisk --log-file ~/Desktop/whisk.log create -o /Users/dlite/projects/whisk_examples/ demo
├── Creating project directory structure...
|   ├── Project created in /Users/dlite/projects/whisk_examples/demo
|   └── DONE.
│
├── Setting up venv...
|   └── DONE.
│
├── Installing Python dependencies via pip  (may take several minutes)...
|   └── WARNING: You are using pip version 19.2.3, however version 20.1 is available.
|   └── You should consider upgrading via the 'pip install --upgrade pip' command.
|   └── DONE.
│
├── Initializing the Git repo
|   └── DONE.
│
├── Setting up kernel=demo for Jupyter Notebooks...
|  └── Error executing `venv/bin/pythonBAD -m ipykernel install --user --name=demo`.
       Stack trace:

Traceback (most recent call last):
  File "/Users/dlite/projects/whisk/whisk/setup.py", line 33, in exec
    completed_process = subprocess.run(cmd, shell=True, check=True, universal_newlines=True, stdout=PIPE, stderr=PIPE)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'venv/bin/pythonBAD -m ipykernel install --user --name=demo' returned non-zero exit status 127.

###
SETUP FAILED. See whisk troubleshooting docs for help:
https://whisk.readthedocs.io/en/latest/troubleshooting.html
###

When used with a log file extensive debugging logs are generated. Example: https://gist.github.com/itsderek23/2df565ab8d9979f00604b9271f9b80d9
Needs a round of code cleanup and the troubleshooting doc page.

Released in 0.1.30.


XML Serialization

Crystal should have an XML::Serializable module I have a draft that was derived from an API I integrated with.
An example of adding serialization include XML::Serializable.
class Foo
  include XML::Serializable
end

One question is what default pattern should be used.  Should the values be gathered from the text content or the attributes of the XML document.  I was integrating with Rail active model serializes and that puts all the values in the text content.
I think you should be able to customize the the serialization to pull from attributes.
example
class Foo
  include XML::Serializable

  @[XML::Element(src: Attribute)]
end

XML formats seem to have different ways to store types.  I dont know if we should serialize and deserialize XML with types in the document.
XML serailzers:
YAXLib: text
ExtendedXmlSerializer: text
XMLEncoder: text with types
XmlMapper: text

The library we use at work has a multitude of attributes/annotations to control the exact behavior of how the XML is (de)serialized. E.g. https://jmsyst.com/libs/serializer/master/reference/annotations#xmlattribute. That could be a good source of inspiration.


Youtube API doesn't work

When I start the app (either debug or production), it just displays 'Loading...' Pretty sure I followed all of the instructions.

Yeah I'm getting the same

Got the same issue as well
@jmdobry any ideas about this?


Alternative storage for image assets?

Cloudinary is an amazing service, but if you run out of credits it's $89 to unbreak things for a month.
A back-of-the-envelope calculation suggests I can get 1/4 of the way by syncing all of my Google Photos to a Prime CMS instance, even if no one looks at them, which makes me question whether I'd fit within a free plan if someone does 😜
I don't have a path to making money from from page views in mind, or a startup of my own that I can share an API key with, so this is a little scary.
Are there plans for a prime-field-asset variant that stores images locally / in low-cost general purpose cloud storage? It wouldn't need to resize images to be useful, since Gatsby can do this for static sites and programs like willnorris/imageproxy can do this for dynamic sites.
And if there aren't and I wanted to write one, would it make sense to add to prime-field-asset (to keep the editing options the field offers today,) or to make additional derived field types (prime-field-cloudinary-asset, prime-field-local-asset, ...) ?

This is a great idea.
Because of my MVP goal, I decided to go with cloudinary to get up and running as quickly as possible with the thumbnails feature (like Prismic has), but the end-goal would be to have a local version that does the same thing!
So the idea could be to have prime-field-asset independent of any storage solution, but you could install different drivers for this purpose, (Local, Cloudinary, S3, etc.) or have them baked in, IDK.
Also I want to checkout https://github.com/spacechop/spacechop

spacechop looks promising, a great implementation of this local images would be to let users to save avatars in localhost, as is done in a lot of forums, sometimes even as plaintext in database (Im not saying let's do that! though!)

Images uploaded to an S3 bucket with on-the-fly transformations via Lambda function would make it cheaper and in-keeping with the idea of being self-hosted/managed

I've done a proof-of-concept for that here, will add more documentation and stuffs to help out later https://github.com/irisjae/prime