feature suggestion: load fonts from URL

(Like on google fonts.)
This was an idea that came up in the conversation after a live demo at Type Thursday. It was suggested by a web dev/designer, and I filed this as an issue, to give a live demo of how to file an issue on GitHub.
Another participant expressed concern that this may infringe on EULAs.
Personally, I think this could be a nice-to-have feature, but unless it comes up independently from a few more developers in the future, I don't quite feel like it is a high priority. It would add complexity to the UI & codebase, and raise quite a few challenging questions around what URLs people would feed in. I suppose maybe google fonts CSS imports are the most likely candidate? Still, for such fonts, it seems that it would be a relatively small advantage to allow, but nothing groundbreaking.

While I see how this could be useful, I think this goes beyond the scope of the tool: TypeX lets you check your local fonts on websites, to verify how they look "in the wild". It's not a "surf the web in Google Fonts fonts" tool.
To keep the number of issues down & relevant, I propose to close this one. Feel free to re-open if you feel differently!


Script to copy data from prod to staging

Create a js script to copy data from prod to staging using Nexus Delta API, Server Send Events.

Add better handling of ACLs
Document code and process in the Confluence Nexus space (NEX)

Add better handling of ACLs
Document code and process in the Confluence Nexus space (NEX)


GitHub pages deployment not working correctly

It should render our website (build as static in the gh-deployment-setup branch however only the README shows.

Deployed using Vercel.


Add rates provider builder

Introduce a hand-written builder and make use of it.
Most of the changes are adaptations to use the new features of the hand-written builder.

That's everything


Is full-text search being considered?

Technically you can already do this. Just add a a text box somewhere and
filter your data before you send it into react table
On Thu, Nov 17, 2016 at 3:22 PM Constantine Antonakos <
<EMAIL_ADDRESS>wrote:

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/18, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFUmCTC5iyOo8PCw4hrN6_XTI-3dbn82ks5q_NO-gaJpZM4K14o0
.

I personally prefer https://github.com/kentcdodds/match-sorter from @kentcdodds

Technically you can already do this. Just add a a text box somewhere and
filter your data before you send it into react table

@tannerlinsley That would have been exactly my approach, but was curious to ask. :) Thanks!

👍

I've personally used fuzzy search

@mikedevita What did you do if the array contains undefined elements?


Issue with wildcard character '*' in TC Artifact Dependencies --> Artifacts Paths

I had an existing artifact dependency on TC that used a wildcard like
*.dll=>lib/DebugMono
*.config=>lib/DebugMono

When I ran buildupdate, I got the following error:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!': 404 Resource Not Found (RestClient::ResourceNotFound)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in
`process_result'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in
`block in transmit'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:746:in `start'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in
`transmit'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in
`get'
        from C:/src/BuildUpdate/buildupdate.rb:242:in `block (2 levels) in <main>'
        from C:/src/BuildUpdate/buildupdate.rb:233:in `each'
        from C:/src/BuildUpdate/buildupdate.rb:233:in `block in <main>'
        from C:/src/BuildUpdate/buildupdate.rb:232:in `each'
        from C:/src/BuildUpdate/buildupdate.rb:232:in `<main>'

If a modify the artifact dependencies to use specific names
icu.net.dll=>lib/DebugMono
icu.net.dll.config=>lib/DebugMono

The buildupdate script runs fine.  Some older project configurations still reference dependencies with the wildcard, so I wondered if something in buildupdate got changed.

It would help to fix if you give me an example.

I think I was previously getting this on id=buildType:bt454, but I can't duplicate it now.
I'll close this.


Remote Desktop Issues

Already known, but just kept here in case others would like to investigate or propose fixes to these issues with the Remote Desktop feature.
Issues:

Sucks down memory on the Client - Yes, the Garbage Collector will eventually collect the unused resources that have gone astray. However, it does so every second (low-blow to the performance train). It could be very negative to the user if the machine being used is rather poor. The memory allocations will stay around 200MB to 700MB while running the Remote Desktop tool. It will cycle up and down those limits as fast as 3/4 of a second to 1 second...
Issues with multiple monitors:
--> When receiving data of a monitor that is larger than the one you are watching (ex: client has a 1920x1080 monitor and yours is 1080x760) the smaller monitor does not correctly scale the image. This issue is likely due to the way changes are calculated on the client. It causes random pixel anomalies (black pixels, poor resolution in some patches).

I worked on this a while ago and believed to had found a long-term fix, however I wanted to get another perspective on how to go about accomplishing this.
I found that calling the Garbage Collector after the send buffer had received the bitmap data would keep the memory usage down greatly.  Perhaps there could be something done in this area?

The problem is that the garbage collector is collecting multiple times a second (around 2-3). This is something that should be avoided. Telling the garbage collector to forcibly collect is not what was intended to be done, but is a fix that is viable but very slow. Telling the Garbage Collector to forcibly collect on all generations for each time the send buffer receives the data would be incredibly slower than letting it leak until the Garbage Collector automagically collects the garbage. The short-term fix is let it leak because the Garbage Collector will get rid of it when it gets bad, but the long-term fix really, really should be to locate the things that are leaking so much and to stop them at the source instead of working around the leak.

I am going to be stepping through the code and I will find the solution to one portion of this bug today. That is, I will fix the memory leaking issues. However, what we need is someone that is skilled with algorithms! We need someone that can take a glance at the algorithm and find out what is causing the lossy-compression with differing monitor resolutions...

I can look into it if you want, made codecs, remote desktops, compression/encryption algorithms etc :)

@AnguisCaptor that would be great! I appreciate any solution for this.


Remove heavy dependencies

Currently spf13/cobra is used as a dependency, however app is quite simple and requires only a few features that are used.

Cobra-cli is now more heavy variant (with code generation & viper). The cobra itself is now more lightweight: https://github.com/spf13/cobra/releases/tag/v1.4.0


lib/power-after-fail-lib.robot: wait 15 seconds before power on

Use 15 seconds delay because if power is absent for less than roughly 10 seconds the platform powers on regardless of the settings (original firmware behaves the same) and waiting 10 seconds doesn't produce stable results.
Fixes https://github.com/Dasharo/dasharo-issues/issues/557.

robotidy check fails with such worktree changes:
diff --git a/lib/dl-cache.robot b/lib/dl-cache.robot
index b8a99cb7..651e546c 100644
--- a/lib/dl-cache.robot
+++ b/lib/dl-cache.robot
@@ -23,9 +23,7 @@ Download To Host Cache
     END
     Log    Downloading ${url} ...
     ${wget_rc}=    Run And Return RC    wget -O ${local_path} ${url}
-    IF    ${wget_rc} != 0
-        Fail    Download failed with exit code: ${wget_rc}
-    END
+    IF    ${wget_rc} != 0    Fail    Download failed with exit code: ${wget_rc}

 Calculate SHA256 Sum
     [Arguments]    ${file_path}

Don't know if that's intended, the syntax is unreadable even on multiple lines, let alone on a single one.

Thanks for getting down to the bottom of the problem.
I went ahead and applied robotidy suggestion.


Chapter menu crashes when encountering untitled sequences

Regression from introducing nonlinear sequences.
The menu is getting confused between the indexes of the menu selection and the index of the actual sequence (since untitled sequences are skipped).

fixed in v1.5.1


Run all pipeline commands in docker (Proof of concept)

This is an idea on how to build on the changes made in https://github.com/digital-land/makerules/pull/5 to provision make option to run arbitrary pipeline commands in docker
TODO

[ ] Fix error when running make DOCKERISED=1 collect: make: *** No rule to make target '/pipeline/collection/source.csv', needed by 'collect'.  Stop.

Deprecated in favour of https://github.com/digital-land/makerules/pull/7


Add fields via admin: This app could be listed at dynamic-models comparison grid?

I was told this app can add fields via admin. If this is true, then this app should
be listed at the following comparison grid:
https://www.djangopackages.com/grids/g/dynamic-models/
I am sorry, if this is not what this app is about.

The fields can only be added to forms, not models.


PR Request: Swap exception for monoError

Request from Srikanta,

Do not throw an exception from a method that returns Mono<T>. Use monoError defined in FluxUtil class from azure-core library.

Methods to be updated in HttpUrlConnectionClient class are:

openConnection
setConnectionRequest
writeRequestBody
readResponse

Note: readResponse uses Mono.error but this should probably be replaced with monoError.
PR review comment can be found here

Completed and merged issue#73 and main branches after running the test class to confirm the client runs as expected.
Notes about the changes:

throw statements have been replaced with FluxUtil.monoError calls.
The logic of the handleConnection method was previously wrapped in Mono.callable. This has been replaced with Mono.defer.
Mono.just wraps the return HttpUrlConnectionResponse response.


luci-app-sms-tool-js: Synchronization upstream support js source code

https://github.com/immortalwrt/wwan-packages
Please submit new js app to here.


Password Not Being Accepted Gitlab with Docker Image: image: python:latest

Hello!  I am using the :"mkdocs-encryptcontent-plugin" and I am seeing a persistent error with the plugins section of the "mkdocs.yml" within VSCODE.
Error:  Value is not accepted. Valid values: "blog".yaml-schema: Built-in blog plugin(1)
The
plugins:

glightbox:
touchNavigation: true
loop: false
effect: zoom
width: "100%"
height: "auto%"
zoomable: false
draggable: false
search: {
separator: '[\s-.]+'
}
encryptcontent: {} <-- VSCODE Error "Value is not accepted. Valid values: "blog".yaml-schema: Built-in blog plugin(1)"
View Problem: No quick fixes available

Within Gitlab, my .gitlab-ci.yml looks like
The Docker image that will be used to build your app
image: python:latest
Functions that should be executed before the build scripts is run
pages:
stage: deploy
only:
- main
script:
- pip install mkdocs-material
- pip install mkdocs-glightbox
- pip install mkdocs-encryptcontent-plugin
- mkdocs build --site-dir public
artifacts:
paths:
- public
Also, when I run the "mkdocs serve" command with a terminal window of vscode and test the password protection, works fine.  However, when loading it up Gitlab and using the image "python:latest" the password typed is not being accepted.

I am also running into the same issue, where locally running mkdocs serve and testing the password works however for me with Github Pages the password wont work and console logs a net::ERR_ABORTED 404

Hey,
With the same configuration as defined above by @preston3271?
Can you try with a classic YAML format such as:
plugins:
  - <other plugin>:
      option1: value
  - search:
      separator: '[\s\|\.]+'
  - encryptcontent

Thanks for you feedback

Hey,
With the same configuration as defined above by @preston3271? Can you try with a classic YAML format such as:
plugins:
  - <other plugin>:
      option1: value
  - search:
      separator: '[\s\|\.]+'
  - encryptcontent

Thanks for you feedback

This still shows in VSCode error

I am still running into the issue where the password is only "valid" on some pages while "invalid password" on other pages for some reason

@preston3271  @zerenxyz  Could you provide me with your complete mkdocs.yaml file ?
This plugins doesn't seem to have anything to do with your "blog" error.

@zerenxyz Could you provide me with your complete mkdocs.yaml file ? This plugins doesn't seem to have anything to do with your "blog" error.
The problem seems to be related to the "blog" mode of the insider version of material. Did you install the "insider" version of material with the "mkdocs-material-insiders" package ?

https://gist.github.com/zerenxyz/6099544a8998099679b660f8040c69ad
Here is a gist of the full mkdocs.yaml file, I edited out some information into generic text as it is part of private information but it is all the same as I have it

Hi,
I was sponsoring squidfunk for two months, because without the privacy plugin from insiders risks are high to receive a GDPR warning letter from an attorney (at least were I live). I am not rich enough to keep sponsoring him, but I got the first version featuring the blog plugin and I was able to replicate the strange behaviour related to this plugin.
The problem seems to be that the blog pages aren't encrypted at all. Please check the page source at your blog pages to verify.

This plugin works by encrypting the page.content of a theme. The blog plugin generates a blog post not by filling page.content, but rather filling its meta information into a special blog template (with page enumeration and other stuff). This circumvents the mechanism of this plugin to inject it's encrypted page template.
There currently is no easy way to solve this. One idea I have in mind is using the on_post_page event like the encrypted_something option does to encrypt md-content: [div, class] afterwards, but then we'd need to inject our encrypted page template somewhere...

Well, okay, thanks for the insight, I was will a different angle.
On Tue, Oct 25, 2022 at 1:56 PM unverbuggt @.***> wrote:

This plugin works by encrypting the page.content of a theme. The blog
plugin generates a blog post not by filling page.content, but rather
filling its meta information into a special blog template (with page
enumeration and other stuff). This circumvents the mechanism of this plugin
to inject it's encrypted page template.
There currently is no easy way to solve this. One idea I have in mind is
using the on_post_page event like the encrypted_something
https://github.com/unverbuggt/mkdocs-encryptcontent-plugin#encrypt-something
option does to encrypt md-content: [div, class] afterwards, but then we'd
need to inject our encrypted page template somewhere...
—
Reply to this email directly, view it on GitHub
https://github.com/unverbuggt/mkdocs-encryptcontent-plugin/issues/38#issuecomment-1291065128,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFILMZ2VMY6AHB4QUW2IJDWFA3N5ANCNFSM6AAAAAARBOV3RA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Thank you.
Louis Preston Thornton III
Software Engineer
Proud Graduate Of
Colorado Technical University
Cell Phone:<PHONE_NUMBER>
Voice Phone:<PHONE_NUMBER>
Email:   @.** @.>
Alternate Email: @.
@.**>

Please try the current development version, this patch should also encrypt the blog pages.
You need to configure the plugin like this (for material theme):
plugins:
  - blog
  - encryptcontent:
      global_password: '12345'
      remember_password: True
      session_storage: True
      encrypted_something:
        md-footer__inner: [nav, class] #Footer
        md-sidebar__inner: [div, class] #Menu and toc
      inject:
        md-content: [div, class]


#188 - Update spring security

Fixes https://avd.aquasec.com/nvd/2023/cve-2023-34035/

I think the benefits from updating spring security outweigh the missing test coverage on the config class.


test tcp window creation_test fails, cannot alloc > 1024MB

dpdk requires 1024MB Hugepages to run. But when the host
has allocated exactly that amount, tcp_window.rs creation_test
fails as when i ==<PHONE_NUMBER>, ReorderedBuffer::new(i + 1) asks
for more bytes than we have in Hugepages.
Change so the max i is /2. new(i + 1) will still test an
allocation requiring all pages, since the pages are always a
power of 2.

Hey @ncarter100, I don't have access to Travis logs, but when I pulled your commit locally, I saw that rustfmt wanted to change the spacing in your comments.
If you run ./build.sh fmt and push again, I think your build will probably pass.

@sirspinach you were right, it was rustfmt error. Checks passing now.  Thanks.


Separate anvil and ganache tests

Description
This PR separates ganache and anvil tests. The latter don't use --runInBand flag hence they will be run faster.
Other changes
None.
Tested
TBD
Backwards compatibility
Backwards compatible.
Documentation
None.

PR-Codex overview
The focus of this PR is to optimize test execution by selectively running Ganache or Anvil tests based on environment variables.
Detailed summary

Added shouldRunGanacheTests function to determine if Ganache tests should run
Updated test setup and teardown functions to conditionally run based on shouldRunGanacheTests
Introduced testWithGanache function for Ganache-specific tests
Modified test scripts to allow running Ganache or Anvil tests separately

The following files were skipped due to too many changes: .github/workflows/ci.yml

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

can you write up how it knows when to run ganache and the tests that need. vs anvil etc.
i think i see after reading the pr, but it wasnt as i expected (thought youd need file names like election.ganache.test.ts and filter tests.
I think what you have done is probably better. but still a little documentation for the posterity,


Convert inches to miles

Description
1 mile = 63360 inches
Input  : 316800
Output : 5

Program added successfully :tada:
Thanks for your contribution :hugs:


Adding Terms of Use and Breaking Changes

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Articles/ActionSDKLicense.md
:white_check_mark:Succeeded

Articles/BreakingChanges.md
:white_check_mark:Succeeded

Articles/DevChangelist.md
:white_check_mark:Succeeded

Articles/Licenses.md
:white_check_mark:Succeeded

Articles/TOC.md
:white_check_mark:Succeeded

Articles/connectors/WebHookValidaton.md
:white_check_mark:Succeeded

Articles/connectors/webHooks.md
:white_check_mark:Succeeded

Articles/feedback.md
:white_check_mark:Succeeded

Rest-API-docs/kaizala_api_full_swagger.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Direction

Hi Coda developers,
Its hard to discribe what Im doing to most people especially when using meaning. It appears im looking for a genesis state, fitting really. A fresh start perhaps away from the scales and snarks?
Stu

Closing this issue as it is stale for a long time.


shimo.rb: removed appcast

It does not work.

Also same problem?
"vitorgalvao merged commit 3dad1bf into delete-safemonk "


Kotlin DSL support for the "download" extension

Hi,
it would be nice to have full Kotlin DSL Support out of the box for the "download" Extension.
For now it is only possible with some ugly code like this:
tasks.register("downloadFile") {
    doLast {
        download.configure(
                delegateClosureOf<DownloadAction> {
                    src("http://www.example.com/index.html")
                    dest(buildDir)
                }
        )
    }
}

As a workaround i can create a Kotlin Extension by my own in the build.gradle.kts script like this. But this should be a part of the plugin.
fun Task.download(action: DownloadAction.() -> Unit) =
        download.configure(delegateClosureOf(action))

tasks.register("downloadFile") {
    doLast {
        download {
            src("http://www.example.com/index.html")
            dest(buildDir)
        }
    }
}

Thanks for the request. I'll see what I can do and get back to you.

I've been happily using the download plugin from Kotlin build script like this. I used version 4.0.4 of the plugin and Gradle 6.2. No extensions necessary.
tasks {
    val downloadZipFile by registering(Download::class) {
        src("https://github.com/michel-kraemer/gradle-download-task/archive/1.0.zip")
        dest(File(buildDir, "1.0.zip"))
    }
}

The following extension allows you to simply use download anywhere as intended:
fun Project.download(action: DownloadAction.() -> Unit) {
    download.configure(delegateClosureOf(action))
}

It's also possible to define it slightly differently and use named arguments instead of a closure:
fun Project.download(
    src: String,
    dst: String,
    overwrite: Boolean? = null,
    quiet: Boolean? = null,
    onlyIfModified: Boolean? = null,
    onlyIfNewer: Boolean? = null,
    // and so on ...
) {
    download {
        src(src)
        dest(dst)
        overwrite?.let(this::overwrite)
        quiet?.let(this::quiet)
        onlyIfModified?.let(this::onlyIfModified)
        onlyIfNewer?.let(this::onlyIfNewer)
        // and so on ...
    }
}

tasks {
    register("foo") {
        doLast {
            download("http", "/path", quiet = true)
        }
    }
}

@jiridanek I guess that's another thing

@rafiwew I'm not completely sure what you mean. If you found a bug in gradle-download-task or have a feature request or a general question, please open a new issue instead of commenting on old ones. I will be more than happy to answer your request if you can provide more information. Thanks for your understanding.


How to contribute to this project?

Do you have any guidelines on how to contribute to this project? Do you accept PRs here?

Hey. Actually not, but I guess this should be an discussion point. I personally would prefer working here as a main repository and mirroring back to the other one. But we have to decide this with the project owner. :)

Yep, I support doing the main work here. I think it would be of much benefit to the project.

@saschagrunert I agree, can we check with project owner? I've only read the project's technical whitepaper, I haven't looked into code. Assuming project owner is happy to host project here, even a simple write up on how you're planning to structure this project would be a good starting point to take it further in my opinion.

Very good :) What do you think @zx2c4?

All WireGuard work should have as a canonical location a repository on git.zx2c4.com. This way we keep all repos together. But, because some people like to use github, these repositories are mirrored in real time to Github. This is a very common pattern for projects.
So, the actual definitive repository is git.zx2c4.com/wireguard-rs.
As far as PRs and Issues and various development/maintainer things go, the repository maintainers (essentially Sascha) should use whatever tools they like best. As a kernel developer, personally I very much prefer mailing list style patch postings and discussions, and so I generally do not accept PRs or Issues, and instead shuffle contributors toward the mailing list. However, Sascha might prefer interacting with contributors via PRs and Issues, or perhaps various other means. And that's perfectly fine. I suspect for Rust development, these modes of interaction will prove more dynamic. So use whatever tools you'd like for this. And if I can make this easier by running any additional infrastructure you might need, I'm at your disposal. The only thing is to always push commits up to git.zx2c4.com. IOW, after you press "merge pull request", the maintainer can type git pull github master && git push origin master. (If this extra step becomes burdensome, we can setup automatic 2-way mirroring pretty easily.)


[ASCII-1899] Scrub layers separately in GetFullConfigBySource to avoid hitting size limit

What does this PR do?

Change GetFullConfigBySource to scrub each config layer independently rather than all at once.
Motivation

The scrubber has an implicit max size of 65kB (default size of bufio.NewScanner), we don't want to hit the limit.
Additional Notes

It's not really clear how big the config can be so for now just go with this fix, but we'll probably need to increase the scrubber limit at some point.
Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Added a unit test which ensures that the endpoint will not error as long as layers are smaller than ~60kB.
QA'ed manually:

reproduced the previous error by setting a config with size 40kb in different layers (with latest release candidate)
with this fix the error disappears

/merge


Why do template_url and additional_cfn_template have to be public objects?

Environment:

aws-parallelcluster-2.4.1
OS: centos7
Scheduler: slurm
Master instance type: t2.micro
Compute instance type: t2.micro

It is only because pcluster uses TemplateURL instead of TemplateBody in the create_stack call here and here?
If so, I have a feature request. I would like to be able to specify these two fields as S3 URLs, with the bucket being accessible by the user running the pcluster CLI. From what I've seen, it should be fairly easy for template_url, as that stack is created directly with a create_stack call.
For additonal_cfn_template, I haven't seen any documentation about using a TemplateBody inside a AWS::CloudFormation::Stack clause, or how to create a nested stack from the CloudFormation CLI. It would be possible to create a completely separate stack, but that doesn't seem ideal to me.
If you have other ideas, I'd be glad to hear them. I'm also open to opening a PR myself for this work, if there is an agreed-upon solution for this.

Hi @joeydumont
Yep, you nailed it. You could technically use pre-signed urls that are not public but that's a huge pain.
template_url is a simple feature, so I'd go ahead and create a PR for that. Looking at the docs I don't see a simple way to do additonal_cfn_template. Can you try with a s3 uri? I really doubt that'll work but I'm at a loss for a better way to do it.

I tried with an S3 URI for both template_url and addditional_cfn_template, like this:
template_url = s3://<bucket_name>/pcluster_scripts/aws-parallelcluster-2.4.1.cfn.json
additional_cfn_template = s3://<bucket_name>/pcluster_scripts/additional_cfn_template.json

and both give the same error:
S3 error: Domain name specified in <bucket_name> is not a valid S3 domain

I will create a PR to load the template_url parameter and then use TemplateBody in the create_stack call, but, as you said, this cannot work for additional_cfn_template.
That solution is a bit of a hack though, and my opinion is that it stems from a limitation of the CloudFormation API itself. TemplateURL should be able to accept S3 URIs, not just links to public objects. Is there a way to open a feature request for the API itself?
I've tried to find where that error originates from in botocore and boto3, but I couldn't find anything of value. It'd be great to see how the TemplateURL parameter is processed.

@joeydumont Your best bet is to generate a pre-signed url before the cluster create. I know it's not ideal but it's the only workaround we have now:
aws s3 presign s3://<bucket-name>/object

If you want to script this, you can use the -u flag:
$ pcluster create mycluster -u $(aws s3 presign s3://<bucket-name>/object)

Which imho is a decent workaround.
https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html

Oh, apparently I didn't post the last comment I wrote. I did have success with using pre-signed URLs. I had a script that modified the config file and then ran pcluster create. Your solution is way better.
Could I something similar for additional_cfn_template?

We don’t have it as a cli parameter but you could add it. I think the use case makes sense.
On Sep 6, 2019, at 7:53 AM, Joey Dumont <notifications<EMAIL_ADDRESS>wrote:
Oh, apparently I didn't post the last comment I wrote. I did have success with using pre-signed URLs. I had a script that modified the config file and then ran pcluster create. Your solution is way better.
Could I something similar for additional_cfn_template?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/aws/aws-parallelcluster/issues/1299?email_source=notifications&email_token=ABKJ77FA5MXYTL7LASWFENLQIJVDHA5CNFSM4ITV5H3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DCV3I#issuecomment-528886509, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABKJ77GWJHWFNYTZUE6G7G3QIJVDHANCNFSM4ITV5H3A.

Good, I think I will add it then, and ideally document that somewhere. I must not be the only one who doesn't want to use public S3 objects.

@joeydumont Let's document on the https://github.com/aws/aws-parallelcluster/wiki


[Feature] Click on Video to Play / Pause

This codebase enables users to click on Video to play or pause.

Oh yes. I'll put them back. :D Sorry for deleting them earlier!


Question: Example on storing JSONB column with prepared query

Hi,
I've been trying to store an embedded jsonb object, but column is always null and console prints
"Data type 3802 does not support binary encoding". I've tried saving the "JsonObject" type - and the string representation. Is there an example on how to do this that I missed? I searched through tests and examples (but probably not diligently enough!)

JSONB not yet implemented for prepared query.

I need it myself, so I'll have a look at it. Thanks for reply. Closing as it's already tracked


lib: Allow ID_CRED_I to be a value

Currently, EDHOC panics when attempting to use use a credential by value in CRED_I.
This fixes this, mainly by copying code from the CRED_R case where that was already supported.

Note that this is not quite trivial to test because using the test vector credential by value (it is relatively long given we use p256 and not x25519, and on top of that has a serial number in it) exceeds the 256 default length by some bytes.

I think this is showing a few cases where instead of doing CBOR encoding there is the tacit assumption that a byte value is just CBOR_MAJOR_BYTE_STRING ^ value :-/

I've added a crude CBOR dissection for the message 3 lengths, and adjusted the Python tests so that different variations are run. I didn't quickly find where else we had that kind of CBOR processing -- refactoring would be welcome, but getting this out with the next release might be more urgent than doing this cleanly.

Yep good on my side. Merging as CI passes.


[Bug] Grafana dashboard folder controller causes CrashLoopBackOff timed out waiting for cache to be synced

Describe the bug
Hi, we are currently observing this error and are not sure what causes it.
ERROR	dashboardfolder manager exited non-zero	{"error": "failed to wait for grafanadashboardfolder-controller caches to sync: timed out waiting for cache to be synced"}

We are using the helm chart v2.7.11 to deploy grafana and the operator with mostly the default values. Not sure which changes will be relevant here but in general nothing major besides maybe the database, which is hosted by google and we are using a proxy container as a sidecar for grafana to access it (gce-proxy 1.28.0 see here).
both grafana and the operator are running in the namespace and all CRs are deployed there as well (we are also not sure why the operator is trying to list/watch CR on a cluster level scanAllNamespaces, scanNamespaces and dashboardNamespaceSelector are not used)
Version
v4.8.0
To Reproduce
Unfortunately, we are not sure.
Expected behavior
Dashboard folder controller can successfully run its sync.
Suspect component/Location where the bug might be occuring
Grafana dashboard folder controller
Runtime (please complete the following information):

OS: Linux and the images are containerized by Flatcar Container Linux by Kinvolk 3227.2.4 (Oklo)   5.15.70-flatcar containerd://1.6.6
Grafana Operator Version: v4.8.0
Environment: Kubernetes v1.24.5-gke.600
Deployment type: deployed
Other:

Additional context
the logs provided simply keep rotating from the moment the error occurs causing the crash to it occurring again (in between looks almost always the same)
grafana-operator.log

Sorry about that. We discovered a dangling environment variable DASHBOARD_NAMESPACES_ALL that was causing the operator to try scraping all namespaces also not needed and no ClusterRole was provided (as expected) to allow this. After removing/setting it to false the sync errors disappeared.


Update Composer dependencies (2024-01-02-00-17)

Visual regression test passed!
View the visual regression test report


Update C# examples

All C# examples are (mostly) copy-paste (user will need to create an EasyPostExamples project to copy files into)
Any file can be run from command-line via csc /langversion:latest official/docs/csharp/addresses/FILE_NAME.cs
Fix some bad syntax and broken tests (non-await, wrong function). We should have caught this during the initial push of these examples to the repo, oops.

@Justintime50 @nwithan8 Should we consider compressing the format for the dictionary? Some files have more than 100+ lines of code and it would make the code example really long in the API doc

It's our styleguide doing that, I'm open to the idea of changing it.


Add Plotly in Powered by Dask section in homepage

As in title Plotly with Dash Enterprise is using Dask https://plotly.com/dash/gpu-dask-acceleration/ I think this satisfies  use Dask to power components of their infrastructure in dask.org

I agree that Plotly meets the requirements. Please feel free to open a Pull Request!

Do you mind to point me to the file for the homepage?

This list so far is about OSS projects.  I wouldn't add Dash Enterprise to
this list.  If we want to make a separate list of companies that
incorporate Dask into their products then I think that this would fit
better there.
On Thu, Oct 8, 2020 at 7:18 AM Roberto Panai<EMAIL_ADDRESS>wrote:

Do you mind to point me to the file for the homepage?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/6714#issuecomment-705602204, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTAPGUWS2RXNKPDCDVDSJXC37ANCNFSM4SIEMHAQ
.


GSD Shape Spec for Polyhedra

Description
The gsd_shape_spec property of the Polyhedron class returns a dictionary with keys type, vertices, and faces. It should return a dictionary with keys type, vertices, and indices to be consistent with gsd.
To reproduce
Make any polyhedron and print the gsd_shape_spec dictionary
System configuration
Please complete the following information:

Operating System: macOS
Version of Python: 3.7.12
Version of coxeter: 0.6.1
Version of gsd: 2.4.2

Where is this completed? I don't see the commits on https://github.com/glotzerlab/coxeter/commits/master.

#170


[CERT-TEST-FAILURE] TC-ICDM-3.2 - Test Failed

Feature Area
Area:ICDPhase2
Test Case
TC-ICDM-3.2
Reproduction steps

Bring up the DUT with ./lit-icd-app
Pair the DUT using chip-tool through "Onnetwork" transport.
Run the command

When TH sends the RegisterClient command with the same CheckInNodeID and VerificationKey as in Step 3a, but with different MonitoredSubject and Key. DUT responded with Failure response instead of Success.
./chip-tool icdmanagement register-client 3 6 hex:3334567890abcdef3334567890abcdef 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890
Expected log :

[1703267703.849366][2694:2696] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001 [1703267703.849532][2694:2696] CHIP:TOO: RegisterClientResponse: { [1703267703.849587][2694:2696] CHIP:TOO: ICDCounter: 228745930 [1703267703.849633][2694:2696] CHIP:TOO: }

Actual log :

[1706701328.878338][14642:14644] CHIP:DMG: InvokeResponseMessage =
[1706701328.878373][14642:14644] CHIP:DMG: {
[1706701328.878405][14642:14644] CHIP:DMG: 	suppressResponse = false,
[1706701328.878439][14642:14644] CHIP:DMG: 	InvokeResponseIBs =
[1706701328.878484][14642:14644] CHIP:DMG: 	[
[1706701328.878519][14642:14644] CHIP:DMG: 		InvokeResponseIB =
[1706701328.878564][14642:14644] CHIP:DMG: 		{
[1706701328.878602][14642:14644] CHIP:DMG: 			CommandStatusIB =
[1706701328.878640][14642:14644] CHIP:DMG: 			{
[1706701328.878685][14642:14644] CHIP:DMG: 				CommandPathIB =
[1706701328.878731][14642:14644] CHIP:DMG: 				{
[1706701328.878778][14642:14644] CHIP:DMG: 					EndpointId = 0x0,
[1706701328.878828][14642:14644] CHIP:DMG: 					ClusterId = 0x46,
[1706701328.878876][14642:14644] CHIP:DMG: 					CommandId = 0x0,
[1706701328.878922][14642:14644] CHIP:DMG: 				},
[1706701328.878975][14642:14644] CHIP:DMG:
[1706701328.879014][14642:14644] CHIP:DMG: 				StatusIB =
[1706701328.879056][14642:14644] CHIP:DMG: 				{
[1706701328.879100][14642:14644] CHIP:DMG: 					status = 0x01 (FAILURE),
[1706701328.879146][14642:14644] CHIP:DMG: 				},
[1706701328.879191][14642:14644] CHIP:DMG:
[1706701328.879230][14642:14644] CHIP:DMG: 			},
[1706701328.879274][14642:14644] CHIP:DMG:
[1706701328.879312][14642:14644] CHIP:DMG: 		},
[1706701328.879355][14642:14644] CHIP:DMG:
[1706701328.879388][14642:14644] CHIP:DMG: 	],
[1706701328.879431][14642:14644] CHIP:DMG:
[1706701328.879465][14642:14644] CHIP:DMG: 	InteractionModelRevision = 11
[1706701328.879498][14642:14644] CHIP:DMG: },
[1706701328.879590][14642:14644] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0000 Status=0x1
[1706701328.879665][14642:14644] CHIP:TOO: Error: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1706701328.879731][14642:14644] CHIP:DMG: ICR moving to [AwaitingDe]

Bug prevalence
whenevere I do
GitHub hash of the SDK that was being used
bdbd6de18e4cdc2b09c28fe7bf91eef8da524d9a
Platform
raspi
Anything else?
PFA log Below :
TC-ICDM-3.2.txt
Test-plan Reference :
https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/icdmanagement.adoc#tc-icdm-3-2-verify-registerclient-command-with-dut_server

Issues resolved in latest TOT, hence closing this issue


⚠ Mobitopup has degraded performance

In 9a19af7, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 4051 ms

Resolved: Mobitopup performance has improved in d23b8ef.


EXSWHTEC-106 - Reimplement tests for hipOccupancyMaxActiveBlocksPerMultiprocessor and hipOccupancyMaxPotentialBlockSize APIs

Add helper file occupancy_common.hh with parameterized templates
Expand all positive and negative tests to use the templates

This change needs to be submitted through hip-tests project.


Missing 1.9.4 release

Just as a reminder, 1.9.4 is missing in release page.

P.S.: Any plans to release V2? (compatable with vuepress2) ( •̀ ω •́ )✧

Thanks for the reminder

Thanks for the reminder


[#2286] Add function of getting thread dump from agent

add message for failed response

Codecov Report

Merging #2659 into master will increase coverage by <.01%.
The diff coverage is 34.92%.

@@            Coverage Diff             @@
##           master    #2659      +/-   ##
==========================================
+ Coverage   40.41%   40.42%   +<.01%
==========================================
  Files        1781     1781
  Lines       61635    61652      +17
  Branches     8594     8597       +3
==========================================
+ Hits        24910    24922      +12
- Misses      36725    36730       +5

Impacted Files
Coverage Δ

...orp/pinpoint/web/vo/AgentActiveThreadDumpList.java
88.23% <ø> (-11.77%)
:x:

...inpoint/web/controller/AgentCommandController.java
0% <0%> (ø)
:white_check_mark:

...oint/web/cluster/DefaultPinpointRouteResponse.java
63.41% <80%> (-1.59%)
:x:

.../pinpoint/web/vo/AgentActiveThreadDumpFactory.java
81.13% <81.81%> (-0.27%)
:x:

...pinpoint/profiler/instrument/AccessorAnalyzer.java
77.14% <0%> (-5.72%)
:x:

...m/navercorp/pinpoint/test/OrderedSpanRecorder.java
77.9% <0%> (ø)
:white_check_mark:

Continue to review full report at Codecov.

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


Add active record support

Hi!, I've been working to add metrics from sql on projects that use active record. We use it on rails.

It uses the rails instrumentation api to hook to sql queries notifications
It normalizes the queries so we can group them together and have labels with the query form added to the metric
It skips cached and schema queries

I hope this is useful for more people. It's been for us.

We need to extend the documentation here a ton and make sure there are some switches for fidelity here.
My big concern here is that this has very strong potential to blow prometheus storage especially in cases where you can not normailze eg: User.joins('join user_extra on id = #{user.id}')

Hey @SamSaffron, my experience using Prometheus is very limited so the feedback is very welcomed.
About opting-in, I was planning to conditionally initialize this instrument base on an environmental variable on my project.

Thanks for the ping - I can go look into this. Our agent isn't open source, but we like to share code when possible. I'm asking internally to figure out what the policy and approach would be for this.

closing this... :)


Add link to TSC Meeting Notes on Google Docs instead of Discussions

Historically we have been archiving the TSC Meeting Notes on GitHub. I think this has been used for further discussion after the meetings, but in my opinion those should happen in the relevant discussion threads. It's also a bit easier to link to meeting notes this way, but I have not seen this happen a lot (or at all).
It's more convenient to just keep the notes on Google Docs in my opinion, hence this PR to link to them there.

So it's more like a permanent record ? Didn't consider that google search was incompatible with google docs, but it's of course that's what happens when all the text is rendered in a  ...

Yes exactly

Any ideas how we could automate this?

It usually takes me less than 5 min to export the notes manually once a month. So it is not worth automating in my opinion.

The wiki has a checklist how to do it with an extension.


🎨  public client registration updates

refs #7654
This is WIP and only works with https://github.com/TryGhost/passport-ghost/pull/8/files
In this PR i will push each change (each issue of the referred issues) into a separate commit.
Two tasks are missing right now, see the referred issue 👍

Pushed my updates. I still need to final test my changes and add 1-2 tests.
Will do that in the tomorrow as first thing.

Ready for review.
If we have time i would like to get a merge of #7692. If not, no problem we can do that later.

I have to push one little update, but this is not related to the changed logic. The logic itself can be reviewed.
It's that passport-ghost is now responsible for doing retries. And the retry logic was removed in Ghost. I want to handle the auth.init as asynchronous operation. Pushing a separate commit soon.

I've added a new commit, see https://github.com/TryGhost/Ghost/pull/7690/commits/4a6ffa3af866f748e294c2e04581edc62a1aaded
We could think about outsourcing this commit to a separate PR.
So when you start Ghost: auth.init won't block your server.
It runs in background. If it can't register a client, passport-ghost will retry under the hood and if an error occurs you will see it in your log. You can always enable DEBUG=passport-ghost:* to see what is going on.

Just one comment in follow up to the existing conversation - everything else is looking great 👍

I will add one more small commit to fix a TODO, then we can merge.
see https://github.com/TryGhost/Ghost/pull/7690/files#diff-79a58308a1a36ab1b54544a17f88997aR125


templates: remove centos-stream-8, deprecated/centos-7

Reached the EOL:

CentOS Stream 8: May 31, 2024
CentOS 7: June 30, 2024

https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/

Debian 11 will reach EOL soon, too (2024-07)
https://wiki.debian.org/DebianReleases

There is a CentOS Stream 10, around the corner...
https://blog.centos.org/2024/06/june-2024-news/

https://cloud.centos.org/centos/ still lacks 10-stream


Add test for checking Example Notebooks

Example Notebooks must be checked for every PR. The notebooks are typically the first point of entry for anyone using the code-base and it is not uncommon for the notebooks to go out of date (and become malfunctioning) when some breaking changes are introduced in the code.

Codecov Report

Merging #20 (8b350cc) into dev (e7f4f9c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #20   +/-   ##
=======================================
  Coverage   41.66%   41.66%
=======================================
  Files          28       28
  Lines        3840     3840
=======================================
  Hits         1600     1600
  Misses       2240     2240

Continue to review full report at Codecov.

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

Codecov Report

Merging #20 (8b350cc) into dev (e7f4f9c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #20   +/-   ##
=======================================
  Coverage   41.66%   41.66%
=======================================
  Files          28       28
  Lines        3840     3840
=======================================
  Hits         1600     1600
  Misses       2240     2240

Continue to review full report at Codecov.

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

The Notebook Test check fails (expectedly) because of #19. Putting this PR on hold until that is resolved.

The Notebook Test check fails (expectedly) because of #19. Putting this PR on hold until that is resolved.


Configuration option in admin page with collector changes.

Allows the admin to configure the servers and credentials with which the collectors will fetch the data. Collector changes for Nexus-iq-collector and Jenkins-build collector.

@Satheesh-Balachandran  please upload screenshots for this change

@nireeshT These are Java changes for the PR #2073.

@Satheesh-Balachandran  Can you detail how we can use this configuration once it is saved to Mongo. I see a record generated in Configuration collection, what's the purpose of that configuration item.

The config data(url, username, password) will be fetched from each collectors on each run. If the password for a particular tool, say rally, changes at any time, it need not have to be changed in the application.properties. The admin can just change this in the configuration page UI(#2073 ) and without restarting the collector, the changes will be adapted automatically.

@Satheesh-Balachandran  I see this as a good baseline for updating properties for all collectors.Sounds good

@dhivahar19  @Satheesh-Balachandran  please update branch. We are planning to merge this PR

@Satheesh-Balachandran Can you update branch and re push?


Tensorrt engine instead of tflite for faster inference on nvidia xavier.

Hi is it possible to support tensorrt instead of tflite.

MediaPipe supports TensorFlow model inference on Nvidia GPUs. See the instruction at https://github.com/google/mediapipe/blob/master/mediapipe/docs/gpu.md#tensorflow-cuda-support-and-setup-on-linux-desktop. For TensorRT, I think we need to do two more things

install libnvinfer via package manager
add --action_env TF_NEED_TENSORRT=1 to the bazel build command. For example,

$ bazel build -c opt --config=cuda --spawn_strategy=local \
    --define no_aws_support=true --copt -DMESA_EGL_NO_X11_HEADERS \
    --action_env TF_NEED_TENSORRT=1 \
    mediapipe/examples/desktop/object_detection:object_detection_tensorflow

We are closing this issue for now due to lack of activity.

Updated url link https://github.com/google/mediapipe/blob/master/docs/getting_started/gpu_support.md

https://github.com/houmo-ai/mediapipe_plus

so what is the status on TensorRT support?
@jiuqiant

MediaPipe supports TensorFlow model inference on Nvidia GPUs. See the instruction at https://github.com/google/mediapipe/blob/master/mediapipe/docs/gpu.md#tensorflow-cuda-support-and-setup-on-linux-desktop. For TensorRT, I think we need to do two more things

install libnvinfer via package manager
add --action_env TF_NEED_TENSORRT=1 to the bazel build command. For example,

$ bazel build -c opt --config=cuda --spawn_strategy=local \
    --define no_aws_support=true --copt -DMESA_EGL_NO_X11_HEADERS \
    --action_env TF_NEED_TENSORRT=1 \
    mediapipe/examples/desktop/object_detection:object_detection_tensorflow

Hi @jiuqiant does mediapipe still support TF_NEED_TENSORRT? Do I need to convert tflite models to tensorrt models?


Add MathJax

Hello @RatanShreshtha , thanks a lot for such a great theme.
I added MathJax (as in https://github.com/aaranxu/adidoks) [One can use it by setting mathjax.enabled = true in config.toml]

please add example in docs section

Done.


Fixes for the new symlink feature

Found some bugs.

I've gotten access to an actual windows computer and tested there.

Thanks again @ata2001!

Release as 4.2.0 on PyPI.


It's there has some demo about run a windows vmi on using kubrvirt？

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind enhancement

I‘m so sorry to ask this kind question ......
I‘m a beginner learning kubevirt，
I want to know there is possible run a windows vmi on linux host？
and where can i get more demo about launch a windows vmi

It maybe help you, here(https://github.com/kubevirt/kubevirt/tree/master/cluster/examples)

It maybe help you, here(https://github.com/kubevirt/kubevirt/tree/master/cluster/examples)
I see this (https://github.com/kubevirt/kubevirt/blob/master/cluster/examples/vmi-windows.yaml) but don't understand what should embed in this pv

  volumes:
  - name: pvcdisk
    persistentVolumeClaim:
      claimName: disk-windows

It maybe help you, here(https://github.com/kubevirt/kubevirt/tree/master/cluster/examples)
I see this (https://github.com/kubevirt/kubevirt/blob/master/cluster/examples/vmi-windows.yaml) but don't understand what should embed in this pv

  volumes:
  - name: pvcdisk
    persistentVolumeClaim:
      claimName: disk-windows


satellite_unet custom_objects: '<' not supported between instances of 'function' and 'str'

I'm trying to continue training model "satellite_unet" by loading weights. but got this issue when using custom_objects
here is the code
`model = satellite_unet(
input_shape,
)
callback_checkpoint = ModelCheckpoint(
os.path.join(checkpoint_path, 'weights.{epoch:02d}.{val_loss:.4f}.hdf5'),
verbose=1,
monitor='val_loss',
save_best_only=True
)
model.compile(
optimizer=SGD(lr=0.01, momentum=0.99),
loss='binary_crossentropy',
metrics=[iou, iou_thresholded]
)
####### if checkpoints exist  get last_epoch ....
model = load_model(os.path.join(checkpoint_path, checkpoint_path_file), custom_objects={
"iou": iou,
"iou_thresholded": iou_thresholded,
})
history = model.fit(
train_gen,
steps_per_epoch=len(x_train),
epochs=EPOCHS,
validation_data=(x_val, y_val),
callbacks=[callback_checkpoint],
initial_epoch=last_epoch
)`

Hi @parcodepie
Could you share more details on this issue? It's hard to understand what is the problem and it's impossible to replicate.

Hi @parcodepie
Could you share more details on this issue? It's hard to understand what is the problem and it's impossible to replicate.

I'm using this repo to load last checkpoints if exists before so I could continue training
here is the whole code.
It works where there is no checkpoints before but when trying to load the last checkpoints the error thrown

import numpy as np
import glob
from PIL import Image
from tensorflow.keras.optimizers import SGD
import os
from tensorflow.keras.models import load_model
from keras_net.keras_unet.metrics import iou, iou_thresholded
from keras_unet.models import satellite_unet
from keras_unet.utils import get_augmented, plot_segm_history
from sklearn.model_selection import train_test_split
import tensorflow as tf
from tensorflow.keras.callbacks import ModelCheckpoint

SAVED_MODEL = 'model_test.h5'
EPOCHS = 10
BATCH_SIZE = 6
CHECK_POINT = "cp-{epoch:04d}.ckpt"
images = glob.glob("/xx/train/.png")
masks = glob.glob("/xx/.png")
checkpoint_path = 'weight'
images_list = []
masks_list = []
for image, mask in zip(images, masks):
images_list.append(np.array(Image.open(image).resize((384, 384))))
masks_list.append(np.array(Image.open(mask).resize((384, 384))))
images_np = np.asarray(images_list)
masks_np = np.asarray(masks_list)
x = np.asarray(images_np, dtype=np.float32) / 255
y = np.asarray(masks_np, dtype=np.float32) / 255
y = y.reshape(y.shape[0], y.shape[1], y.shape[2], 1)
print(x.shape, y.shape)
x_train, x_val, y_train, y_val = train_test_split(x, y, test_size=0.8, random_state=0)
train_gen = get_augmented(
x_train, y_train,
batch_size=BATCH_SIZE,
data_gen_args=dict(
rotation_range=5.,
width_shift_range=0.05,
height_shift_range=0.05,
shear_range=40,
zoom_range=0.2,
horizontal_flip=True,
vertical_flip=True,
fill_mode='constant'
))
input_shape = x_train[0].shape
print("input_shape:", input_shape)
model = satellite_unet(
input_shape,
)
callback_checkpoint = ModelCheckpoint(
os.path.join(checkpoint_path, 'weights.{epoch:02d}.{val_loss:.4f}.hdf5'),
verbose=1,
monitor='val_loss',
save_best_only=True
)
model.compile(
optimizer=SGD(lr=0.01, momentum=0.99),
loss='binary_crossentropy',
metrics=[iou, iou_thresholded]
)
def checkpoint_function():
# if there is no file being saved in the checkpoint path then routine will go to loop model.fit(X, y, epochs=150, batch_size=1, callbacks=[ckpt_callback])
# this signifies that no file is saved in the checkpoint path and let us begin the training from the first epoch.
if not os.listdir(checkpoint_path):
return
# this loop will fetch epochs number in a list
files_int = list()
for i in os.listdir(checkpoint_path):
epoch = int(i.split('.')[1])
files_int.append(epoch)
# getting the maximum value for an epoch from the list
# this is reference value and will help to find the file with that value
max_value = max(files_int)
# conditions are applied to find the file which has the maximum value of epoch
# such file would be the last file where the training is stopped and we would like to resume the training from that point.
for i in os.listdir(checkpoint_path):
epoch = int(i.split('.')[1])
if epoch > max_value:
pass
elif epoch < max_value:
pass
else:
final_file = i
# in the end we will get the epoch as well as file
return final_file, max_value
checkpoint_path_file = checkpoint_function()
if checkpoint_path_file is not None:
# Load model:
checkpoint_path_file = checkpoint_function()[0]
last_epoch = checkpoint_function()[1]
model = load_model(os.path.join(checkpoint_path, checkpoint_path_file), custom_objects={
    "iou": iou,
    "iou_thresholded": iou_thresholded,
})
 model.fit(
    train_gen,
    steps_per_epoch=len(x_train),
    epochs=EPOCHS,
    validation_data=(x_val, y_val),
    callbacks=[callback_checkpoint],
    initial_epoch=last_epoch
)

if there is no checkpoint_path_file it means no file is saved and hence model will be trained from scratch
file is saved in form of .hdf5 extension
else:
model.fit(
train_gen,
steps_per_epoch=len(x_train),
epochs=EPOCHS,
validation_data=(x_val, y_val),
callbacks=[callback_checkpoint],
)

I'm using this repo to load last checkpoints if exists before so I could continue training
here is the whole code.
It works where there is no checkpoints before but when trying to load the last checkpoints the error thrown

import numpy as np
import glob
from PIL import Image
from tensorflow.keras.optimizers import SGD
import os
from tensorflow.keras.models import load_model
from keras_net.keras_unet.metrics import iou, iou_thresholded
from keras_unet.models import satellite_unet
from keras_unet.utils import get_augmented, plot_segm_history
from sklearn.model_selection import train_test_split
import tensorflow as tf
from tensorflow.keras.callbacks import ModelCheckpoint

SAVED_MODEL = 'model_test.h5'
EPOCHS = 10
BATCH_SIZE = 6
CHECK_POINT = "cp-{epoch:04d}.ckpt"
images = glob.glob("/xx/train/.png")
masks = glob.glob("/xx/.png")
checkpoint_path = 'weight'
images_list = []
masks_list = []
for image, mask in zip(images, masks):
images_list.append(np.array(Image.open(image).resize((384, 384))))
masks_list.append(np.array(Image.open(mask).resize((384, 384))))
images_np = np.asarray(images_list)
masks_np = np.asarray(masks_list)
x = np.asarray(images_np, dtype=np.float32) / 255
y = np.asarray(masks_np, dtype=np.float32) / 255
y = y.reshape(y.shape[0], y.shape[1], y.shape[2], 1)
print(x.shape, y.shape)
x_train, x_val, y_train, y_val = train_test_split(x, y, test_size=0.8, random_state=0)
train_gen = get_augmented(
x_train, y_train,
batch_size=BATCH_SIZE,
data_gen_args=dict(
rotation_range=5.,
width_shift_range=0.05,
height_shift_range=0.05,
shear_range=40,
zoom_range=0.2,
horizontal_flip=True,
vertical_flip=True,
fill_mode='constant'
))
input_shape = x_train[0].shape
print("input_shape:", input_shape)
model = satellite_unet(
input_shape,
)
callback_checkpoint = ModelCheckpoint(
os.path.join(checkpoint_path, 'weights.{epoch:02d}.{val_loss:.4f}.hdf5'),
verbose=1,
monitor='val_loss',
save_best_only=True
)
model.compile(
optimizer=SGD(lr=0.01, momentum=0.99),
loss='binary_crossentropy',
metrics=[iou, iou_thresholded]
)
def checkpoint_function():
# if there is no file being saved in the checkpoint path then routine will go to loop model.fit(X, y, epochs=150, batch_size=1, callbacks=[ckpt_callback])
# this signifies that no file is saved in the checkpoint path and let us begin the training from the first epoch.
if not os.listdir(checkpoint_path):
return
# this loop will fetch epochs number in a list
files_int = list()
for i in os.listdir(checkpoint_path):
epoch = int(i.split('.')[1])
files_int.append(epoch)
# getting the maximum value for an epoch from the list
# this is reference value and will help to find the file with that value
max_value = max(files_int)
# conditions are applied to find the file which has the maximum value of epoch
# such file would be the last file where the training is stopped and we would like to resume the training from that point.
for i in os.listdir(checkpoint_path):
epoch = int(i.split('.')[1])
if epoch > max_value:
pass
elif epoch < max_value:
pass
else:
final_file = i
# in the end we will get the epoch as well as file
return final_file, max_value
checkpoint_path_file = checkpoint_function()
if checkpoint_path_file is not None:
# Load model:
checkpoint_path_file = checkpoint_function()[0]
last_epoch = checkpoint_function()[1]
model = load_model(os.path.join(checkpoint_path, checkpoint_path_file), custom_objects={
    "iou": iou,
    "iou_thresholded": iou_thresholded,
})
 model.fit(
    train_gen,
    steps_per_epoch=len(x_train),
    epochs=EPOCHS,
    validation_data=(x_val, y_val),
    callbacks=[callback_checkpoint],
    initial_epoch=last_epoch
)

if there is no checkpoint_path_file it means no file is saved and hence model will be trained from scratch
file is saved in form of .hdf5 extension
else:
model.fit(
train_gen,
steps_per_epoch=len(x_train),
epochs=EPOCHS,
validation_data=(x_val, y_val),
callbacks=[callback_checkpoint],
)

In one of your imports you have this line:
from keras_net.keras_unet.metrics import iou, iou_thresholded
I don't think it's correct. Please try changing it to the following:
from keras_unet.metrics import iou, iou_thresholded
let me know if that helped

In one of your imports you have this line:
from keras_net.keras_unet.metrics import iou, iou_thresholded
I don't think it's correct. Please try changing it to the following:
from keras_unet.metrics import iou, iou_thresholded
let me know if that helped

Thanks @karolzak  but it's because I have two folders has the same name inside so the import is correct.(keras_net/keras_unet)
the project folder and your repo folder
I forgot to put the whole exception. Here it is
Epoch 4/10
Traceback (most recent call last):
  File "/home/x/Documents/projects/keras_net/re_train.py", line 125, in <module>
    history = model.fit(
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py", line 1100, in fit
    tmp_logs = self.train_function(iterator)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 828, in __call__
    result = self._call(*args, **kwds)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 871, in _call
    self._initialize(args, kwds, add_initializers_to=initializers)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 725, in _initialize
    self._stateful_fn._get_concrete_function_internal_garbage_collected(  # pylint: disable=protected-access
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 2969, in _get_concrete_function_internal_garbage_collected
    graph_function, _ = self._maybe_define_function(args, kwargs)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 3361, in _maybe_define_function
    graph_function = self._create_graph_function(args, kwargs)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 3196, in _create_graph_function
    func_graph_module.func_graph_from_py_func(
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 990, in func_graph_from_py_func
    func_outputs = python_func(*func_args, **func_kwargs)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 634, in wrapped_fn
    out = weak_wrapped_fn().__wrapped__(*args, **kwds)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 977, in wrapper
    raise e.ag_error_metadata.to_exception(e)
TypeError: in user code:

    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:805 train_function  *
        return step_function(self, iterator)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:795 step_function  **
        outputs = model.distribute_strategy.run(run_step, args=(data,))
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:1259 run
        return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:2730 call_for_each_replica
        return self._call_for_each_replica(fn, args, kwargs)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:3417 _call_for_each_replica
        return fn(*args, **kwargs)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:790 run_step  **
        with ops.control_dependencies(_minimum_control_deps(outputs)):
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:2793 _minimum_control_deps
        outputs = nest.flatten(outputs, expand_composites=True)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/util/nest.py:341 flatten
        return _pywrap_utils.Flatten(structure, expand_composites)

    TypeError: '<' not supported between instances of 'function' and 'str'

Thanks @karolzak  but it's because I have two folders has the same name inside so the import is correct.(keras_net/keras_unet)
the project folder and your repo folder
I forgot to put the whole exception. Here it is
Epoch 4/10
Traceback (most recent call last):
  File "/home/x/Documents/projects/keras_net/re_train.py", line 125, in <module>
    history = model.fit(
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py", line 1100, in fit
    tmp_logs = self.train_function(iterator)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 828, in __call__
    result = self._call(*args, **kwds)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 871, in _call
    self._initialize(args, kwds, add_initializers_to=initializers)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 725, in _initialize
    self._stateful_fn._get_concrete_function_internal_garbage_collected(  # pylint: disable=protected-access
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 2969, in _get_concrete_function_internal_garbage_collected
    graph_function, _ = self._maybe_define_function(args, kwargs)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 3361, in _maybe_define_function
    graph_function = self._create_graph_function(args, kwargs)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 3196, in _create_graph_function
    func_graph_module.func_graph_from_py_func(
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 990, in func_graph_from_py_func
    func_outputs = python_func(*func_args, **func_kwargs)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 634, in wrapped_fn
    out = weak_wrapped_fn().__wrapped__(*args, **kwds)
  File "/home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 977, in wrapper
    raise e.ag_error_metadata.to_exception(e)
TypeError: in user code:

    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:805 train_function  *
        return step_function(self, iterator)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:795 step_function  **
        outputs = model.distribute_strategy.run(run_step, args=(data,))
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:1259 run
        return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:2730 call_for_each_replica
        return self._call_for_each_replica(fn, args, kwargs)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:3417 _call_for_each_replica
        return fn(*args, **kwargs)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:790 run_step  **
        with ops.control_dependencies(_minimum_control_deps(outputs)):
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:2793 _minimum_control_deps
        outputs = nest.flatten(outputs, expand_composites=True)
    /home/x/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/python/util/nest.py:341 flatten
        return _pywrap_utils.Flatten(structure, expand_composites)

    TypeError: '<' not supported between instances of 'function' and 'str'

I think it works now after I changed the compile option for False and compile the model after loading it from the last checkpoints
 model = load_model(os.path.join(checkpoint_path, checkpoint_path_file), ### compile=False, custom_objects={
        "iou": iou,
        "iou_thresholded": iou_thresholded,
    })

 model.compile(
        optimizer=SGD(lr=0.01, momentum=0.99),
        loss='binary_crossentropy',
        metrics=[iou, iou_thresholded]
    )

It now continues training from the last checkpoints. But is there a way to make sure it works?

I think it works now after I changed the compile option for False and compile the model after loading it from the last checkpoints
 model = load_model(os.path.join(checkpoint_path, checkpoint_path_file), ### compile=False, custom_objects={
        "iou": iou,
        "iou_thresholded": iou_thresholded,
    })

 model.compile(
        optimizer=SGD(lr=0.01, momentum=0.99),
        loss='binary_crossentropy',
        metrics=[iou, iou_thresholded]
    )

It now continues training from the last checkpoints. But is there a way to make sure it works?

No other option than just training it for a bit and running some predictions to see :)

No other option than just training it for a bit and running some predictions to see :)


MB-3917 Add event trigger to GHC API's updateMoveTaskOrderStatus endpoint

Description
This PR adds an event trigger to the UpdateMoveTaskOrderStatusHandlerFunc.Handle function and updates the test to check that a webhook notification was created.
Setup
To test this endpoint, you'll need to spin up your server and your client app:
make db_dev_e2e_populate && make server_run

and (in a different terminal tab/window):
make client_run

Then:

Navigate to http://officelocal:3000 in your browser
Select "Local Sign In"
Choose the TOO role and login
You should now see a list of customer moves. Select a move that is NOT available to Prime and click on the MoveOrderID to navigate to the Move Details page.

Some of these are available to Prime already, and some of them are not. To check which ones are not available, click on the link in the "Actions" column and then search for "Available to Prime At". If you see "N/A" directly under this label, then it's not available and you can use it for testing.

On the Move Details page, you should see a "Requested shipments" panel. Select at least one shipment and one service item, then click "Approve selected shipments".
In the resulting pop-up, click "Approve and send". This will approve the selected shipment(s) and service item(s), and also mark the move as available to Prime. This last part is what we're testing.
There are two ways to verify that the notification has been successfully created:

Search the server logs for "UpdateMoveTaskOrderStatus" and check that there's a log entry for adding a notification for this endpoint. Or:
Using a database viewer, look in the webhook_notifications table to check that there's a new record for the given move with the MoveTaskOrder.Update event.

Please run the server tests as well!
Code Review Verification Steps

[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change.

Messages

:book:
:link: MB-3917

  Generated by :no_entry_sign: dangerJS against 60e9adcae2566fa323266c356e9f276c6cfc421a


Support @classmethod in Tracer.capture_method()

Use case
Sometimes you want to trace a @classmethod. In my case I have an ORM-like (https://en.wikipedia.org/wiki/Object–relational_mapping) library that provides some get, put, query, etc. class methods in a base class. I want tracing for all subclasses. Something like:
class Table:
    @classmethod
    @tracer.capture_method  # Unclear which should nest innermost.
    def get(cls, id: str):
        db.get(table_name=cls.table_name, id=id)

    table_name: str

class Users:
    table_name = "users"

user = Users.get(123)

This doesn't work at the moment (fails with an error about get not having __module__ defined IIRC, at least if you nest @classmethod innermost).
Solution/User Experience
Either extend capture_method to cover @classmethods or add another decorator.
Ideally, as far as I'm concerned, we actually want to use the actual class (cls) in the sub-segment name. So in the example above "## user_module.Users.get". This provides more information in the span name than using Table. You could extend the same argument to the existing behavior of capture_method for instance methods. Although changing it there would be a breaking change (although probably benign).
Alternative solutions
Currently I've written my own, limited workaround:
_P = ParamSpec('_P')
_R_co = TypeVar('_R_co', covariant=True)

_Class = TypeVar('_Class', bound=type)

# Tracer.capture_method does not work for classmethods, so we need our own
# version.
def decorate_sync_classmethod(
    func: Callable[Concatenate[_Class, _P], _R_co],
) -> Callable[Concatenate[_Class, _P], _R_co]:
    '''Equivalent to<EMAIL_ADDRESS>but for classmethods.

    Only works on sync (i.e. not async) classmethods.
    '''
    @functools.wraps(func)
    def wrapper(cls: _Class, *args: _P.args, **kwargs: _P.kwargs) -> _R_co:
        method_name = f'{cls.__module__}.{cls.__qualname__}.{func.__name__}'
        with _tracer.provider.in_subsegment(name=f"## {method_name}"):
            return func(cls, *args, **kwargs)
    return wrapper

Acknowledgment

[X] This feature request meets Lambda Powertools Tenets
[ ] Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript

Hey Johan, thanks a lot for creating the feature request. I did a quick
research and it turns out it’s more complex than I imagined it to be.
A classmethod returns a descriptor which is devoid from call.
Therefore, we’d need to create a new decorator that is actually a class
that decorates bounded methods that call  unbounded function objects for it
to work safely.
For now, we should update the Tracer documentation with a FAQ and/or new
section that customers would need to swap the order @.*** being the
top-most).
After that, I’d love to hear feedback from you on what a new decorator name
would look like. I thought we could extend capture_method easily but the
more I think about it the less ideal it is — e.g., what if the static
method is async?
Suffice to say we welcome contributions and experiments in this area until
we can prioritise it accordingly.
Thanks a lot for kicking this off; TIL.
https://github.com/GrahamDumpleton/wrapt/blob/master/blog/02-the-interaction-between-decorators-and-descriptors.md
On Wed, 15 Mar 2023 at 21:25, Johan Tibell @.***> wrote:

We're on Python 3.9. Seems like starting with 3.10 module is defined:
https://docs.python.org/3/library/functions.html#classmethod. For older
Python versions we might have to work around it by digging out the module
from cls directly.
—
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-lambda-powertools-python/issues/2011#issuecomment-1470791908,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZPQBGYMI23Z4MIOO6X2ALW4IQVDANCNFSM6AAAAAAV37NQ3A
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>


Hot reload bug-fix

I believe this will fix the bug I reported previously. If nothing else, to the best of my abilities I am now unable to reproduce the bug.
TL;DR:
In one of the instances where you created a tree walker, you instantiated it with a filter. The filter was however incorrect. It returned a boolean true/false, where the spec states it needs to be one of 3 enum values, NodeFilter.FILTER_{ACCEPT,REJECT,SKIP}.
The first commit, which I am happy to remove if you want me to(!), is a reformatting pass of the patch javascript file. It had a mix of indentation styles and tabs and spaces.

That is awesome, and thank you so much! Looks good to me.


Fix mistake in sample code in README

To wit:
>>> import omnijson as json
>>> json.engine
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'engine'
>>> json.core.engine
'ujson'

yikes, thanks ;)


Error 404 when downloading archive files

When pressing archive download button it result in an error 404.
domain.tld/storage/app/panakour-backup/2018-02-07-12-33-31.zip
is blocked by October's default .htaccess file on apache servers.
    ##
    ## White listed folders
    ##
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} !/.well-known/*
    RewriteCond %{REQUEST_FILENAME} !/storage/app/uploads/.*
    RewriteCond %{REQUEST_FILENAME} !/storage/app/media/.*
    RewriteCond %{REQUEST_FILENAME} !/storage/temp/public/.*
    RewriteCond %{REQUEST_FILENAME} !/themes/.*/(assets|resources)/.*
    RewriteCond %{REQUEST_FILENAME} !/plugins/.*/(assets|resources)/.*
    RewriteCond %{REQUEST_FILENAME} !/modules/.*/(assets|resources)/.*
    RewriteRule !^index.php index.php [L,NC]

Temporary workaround :

add in October defaut .htaccess file at white listed folders section, the following line :

    RewriteCond %{REQUEST_FILENAME} !/storage/app/panakour-backup/.*

Update need :

change the archives destination folder  for one in white listed folders

@damsfx Thank you for the feedback. So it will be ok if I will change the path to /storage/app/uploads/panakour-backup/... ?

@panakour ,
I think that all folders under a path in the white list will be ok.
If the folder is under /storage/app/media/, archives files will be visible under the media manager of October's backend.

with the new version it should be ok. I will close this issue now and feel free to open new one if the problem exist.


futures_util::stream::SelectAll::push should use &self.

FuturesUnordered::push bound is &self, so SelectAll should be able to use the same bound.

Is it a breaking change though? It's just loosening the bound from mut to ref. Should be similar to going from FnMut to Fn.

impl Fn type is guaranteed to be impl FnMut, but fn(&mut T, ..) and fn(&T, ..) are different types.
Given that SelectAll::push has multiple arguments (self + item), I think this is very unlikely to cause actual breakage, but I tend to consider this as a breaking change. (Unfortunately, RFC 1105 has no explicit mention of changes like this.)


working with bottom navigation?

hi. Does your lib support show/hide bottom navigation like youtube?

   fragment
   slidingLayout

Above code works.
I think SlidingUpPanelLayout need root element.
The problem is fragment layout don't show when app started.
Change the tab and you will see...
But, you have to do this every time you launch the app

bro, i ask this question 5 year ago, then i am not Android developer anymore


Attestation type wrapping SLSA v0.2 Provenance

This unifies the parsing of in-toto attestations containing SLSA v0.2 Provenance payloads. This is the only supported attestation format with github.com/hacbs-contract/ec-cli/internal/attestation.SLSAProvenanceFromLayer as the only entry point.
Future refinements might introduce a layer of indirection that for a given source (currently OCI layer, other sources could be possible) returns differing payload types. For simplicity, this is not done here.
Ref. https://issues.redhat.com/browse/HACBS-1768

I think this should be okay to merge now. Happy to address anything in followup PRs.


feature csrf-protection : multipart/form-data

multipart/form-data content-type
get _csrf field and add it to the body

The code is functional but the test is skipped due to the dependence on mocha/sinon which makes it difficult to mock function calls.
Work in progress.


Fixed window focusing issue

Fixed an issue where setting mouse modifier to cmd would make it impossible to switch focus to another window.
Fixes #1551

Fixed in https://github.com/koekeishiya/yabai/commit/53c426d57a0bc947a930060efff52af4959494af


Update dependencies, added auto-discover, fixed autoload

@llaiajiale please consider merging this PR as I had to do the same changes on my fork to allow it to work with recent Laravel (5.8)  and Lumen.

@rabin-io you may refer to my blog post if you want to use the package now. Tested with Laravel 5.8, it works and I will update to support Laravel 6.0 as well.

thx @nasrulhazim as you did I had to fork and update the repo my self once, and it seems you had to resolve the same issued as I did. so this is why I'm asking @llaiajiale to approve the PR and push the changes upstream and make them available for every one, as this is the first repo you find when you look for informix + laravel.

@rabin-io , I have added for Laravel 6.0 Support.
So in this PR includes Laravel 5.8 and Laravel 6.0 as well. You may want to test it on your environment.

Thanks I see,
you should probably diff your fork with mine and see if there any thing you can benefit from as well, and reduce the diff to the upstream between our forks.


GUI of repo broken (missing dowload links)

The download links are not available anymore, and the GUI presents the latest versions only.
https://github.com/SynoCommunity/spksrc/issues/4868

Fixed by #46


The app doesn't build on macOS

Describe the bug
The current version of fvm doesn't build on macOS.
To Reproduce
Steps to reproduce the behavior:

Clone the repo
run flutter run on macOS

Expected behavior
The app should run on macOS
Desktop (please complete the following information):

OS: macOS 11.1 Big Sur (intel)
FVM Version 1.3.7

Additional context
The file_chooser repo doesn't contains anymore a pubspec.yaml

Meanwhile, until the new fixed version is released:
Just add ref of the commit to the file_chooser dependency inside pubspec.yaml
  file_chooser:
    git:
      url: git://github.com/google/flutter-desktop-embedding.git
      path: plugins/file_chooser
      ref: 43901ebd12548a3c2a077d4dbeb3b56f0a0bdd09


Add Node 6 as a supported runtime

Cancelled this builds. This is a noop as far as our tests are concerned until #1486 lands. It's currently blocked by appveyor/ci#770.
Going to ship this since #1486 will fail without it.


Behavior of the Home tab

What behavior will have the Home tab? It will have a "explore" or/and "trending" tabs, or "seasonal" too? I would like to know it, so it could be doing the GraphQL queries and the UX.
Here are my thoughts for the Home tab (to get started):

A searchbar on the top to search stuff with a filter, like in AL-chan (https://github.com/zend10/AL-chan)

AL-chan searchbar behavior

Display in an horizontal view the trending animes and in other one the trending mangas

If the user is logged it, display the name or/and the cover image above the searchbar

Of course, this are my thoughts, but I think this tasks are essential to start with it:

[ ] Create the GraphQL queries to get the trending animes and mangas
[ ] Create the GraphQL query to get the results from a query (searchbar)
[ ] Some UX design to have it as a reference (maybe I'm going to make one)

These are some great suggestions. Ideally, I want it to look like the main page of Anilist the reason I don't have any super complicated requests yet is because I wanted to lay some groundwork first (roughly, according to this kanban board); and also because I should familiarize myself with some of the more complicated aspects of Coroutines (like Flows). I did previously have some other requests that I played around with (the searchbar one for instance) but I digress. I have a rough mockup of what I want the screens to look like in my mind and on paper (yes, I know, paper), but nothing concrete yet. We can take this offline if you really want to contribute/discuss more; you can reach me on Discord at imashnake_#0318, or Telegram at @imashnake.

Great! I'm also like you with the groundwork, I need to learn more about Coroutines and some of other aspect of your kanban board, like the dependency injection, Room and Jetpack Compose.
About the UI, when you make it at Figma, you could share it in an issue or in other site, so I and the new people who come (I hope) can take a look at it to get as reference.
For now I don't have anything to discuss with you, maybe in the future I have some doubts about something with the project and I will send you a message. Also here is my Discord Relwi#2515 and Telegram @Relwi if you want something.

Sounds good, I will most certainly share mockups if and when I have them ready (I'll likely work on them when I get to "documentation" on the board). Closing this since we can reopen it in the future after laying the said groundwork.


Describe how to use .artifactignore files

Figured out how to use this when playing with the Build Pipelines, please formalize this documentation.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: nuket sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@mitchdenny can you review?

Thanks for the contribution @nuket! @PRMerger13 - this can be merged!


portabal -> portable

Is fixed in the Rmd file - I don't pay too much attention to the tex at the moment.


Node.js Foundation Community Committee Meeting 2018-05-17

Time
UTC Thu 17-May-2018 16:00 (04:00 PM):

Timezone
Date/Time

US / Pacific
Thu 17-May-2018 09:00 (09:00 AM)

US / Mountain
Thu 17-May-2018 10:00 (10:00 AM)

US / Central
Thu 17-May-2018 11:00 (11:00 AM)

US / Eastern
Thu 17-May-2018 12:00 (12:00 PM)

London
Thu 17-May-2018 17:00 (05:00 PM)

Amsterdam
Thu 17-May-2018 18:00 (06:00 PM)

Moscow
Thu 17-May-2018 19:00 (07:00 PM)

Chennai
Thu 17-May-2018 21:30 (09:30 PM)

Hangzhou
Fri 18-May-2018 00:00 (12:00 AM)

Tokyo
Fri 18-May-2018 01:00 (01:00 AM)

Sydney
Fri 18-May-2018 02:00 (02:00 AM)

Or in your local time:

http://www.timeanddate.com/worldclock/fixedtime.html?msg=Node.js+Foundation+Community Committee+Meeting+2018-05-17&iso=20180517T16
or http://www.wolframalpha.com/input/?i=04PM+UTC%2C+May+17%2C+2018+in+local+time

Links

Minutes Google Doc: https://docs.google.com/document/d/1ynEM_MM9-K9EyWvC7avSplLHd7I73zNjSkXY7kwBySA/edit

Agenda
Extracted from cc-agenda labelled issues and pull requests from the nodejs org prior to the meeting.
nodejs/mentorship

"Priority Document" outlining areas of greatest need for Node.js ecosystem #38
We need more active members of the WG #32
Set a Code of Conduct for mentors and mentees #31
Create a mentorship subgroup focused on to identify 6 month projects in Node.js #30

nodejs/node

readme: add link to unofficial discord #20508

nodejs/community-committee

Record and serve the meetings in audio format  #232

nodejs/user-feedback

2018-04-27 Public User Feedback Meeting - Enterprise Use Case #52

nodejs/website-redesign

Node.js Extended Color Palette  #42

Invited

CommComm Members: @nodejs/community-committee

Observers

@DiegoZoracKy (Diego ZoracKy - observer)
@ZibbyKeaton (Zibby Keaton - observer)
@Bamieh (Ahmad Bamieh - observer)
@pchrysa (Chrysa - observer)
@foadlab (observer)
@codeekage (Abraham Agiri - observer)
@Voskan (Voskan Voskanyan - observer)
@waleedashraf (Waleed Ashraf - observer)
@maddhruv (Dhruv Jain - observer)
@elainechan (Elaine Chan - observer)

Notes
The agenda comes from issues labelled with cc-agenda across all of the repositories in the nodejs org. Please label any additional issues that should be on the agenda before the meeting starts.
Joining the meeting

link for participants: Will be added a few minutes before meeting starts
For those who just want to watch:
youtube admin page: https://www.youtube.com/my_live_events?filter=scheduled

@bnb and @mhdawson the Node.js Foundation will be releasing data from our 2018 survey on May 31, and we would like to present details on the survey findings and what we are doing with the CommComm team. I'll be OOO, but @SarahKConway and @gtewallace would like to present. Is there room to have us on the agenda for Thursday? Thanks in advance for your guidance here.

@ZibbyKeaton I'll let @bnb answer for the commcomm meeting but I'm wondering if you want to get on the TSC agenda as well.  If so would it be possible this week  on Wednesday?  I'm guessing it might be in the private section as it will be covering data in advance?

@mhdawson checking in with Sarah and Greg to see if they will be available. I think private meeting for the TSC will be better given that we are wanting to keep the data under NDA until May 31 as we will be sharing this information with media. Is there a private meeting with CommComm as well - if not, we can go over some high level items and general plan, so folks are in the know and can ask questions.

Want to make sure there is also plenty of time for feedback and questions from CommComm. Around 20-30 min. should work. Will that work?

Looks fine to me. We're happy to have you join us for the day 🙂

As long as there are no objections to it being in the meeting, I don't see why not. It would be stellar if we could time box it to 20 minutes, as we do have something that we need to discuss in the private session anyway.
I'd like to also suggest that we prioritize nodejs/mentorship above all else in the public meeting, since we've tabled their agenda issues a few times now.

(Moving nodejs/mentorship items to the top of the agenda)

Happy to have you both join us for the meeting @SarahKConway and @gtewallace 🙂

Going to kick the meeting off in a second, there's another meeting and I don't want to cut them off early (@mhdawson is in it and is aware of the CommComm meeting).

Thursday is just chock full of meetings

@bnb can you please share zoom link again? I am having trouble launching it.

https://zoom.us/j/193588946

I apologize for missing the meeting. I wasn't aware my document was on the agenda. :(


Modify the User Guide for help, list, and exit features

Update the existing User Guide for help, list, and exit features
Update the helpWindow image to show the expected output
Add the listResult image to show the expected output

LGTM!


Support for "linking" HD assets to SD assets on PKG patch.

num made a similar PR, but I fixed up and modified a few areas.
What this does is when a new original asset is patched in of a supported type (2dd, 2ld, bar, bin, mag, mdlx, imd, imz, pax, tm2, and a.(region)) the patcher will check if a remastered directory exists before scanning the file itself to find the image offsets for correctly linking the SD asset to the remastered textures/audio.
if the remastered folder does not exist, or if the file is not of one of those types then the file is patched in as normal.

Looks pretty good at first look, just one question would it be better to extract all the data classes outside of the tool so it can be used by other tools?

Whoops, didn't notice the duplicate. that should be fixed now.
Maybe, but i'm not sure what use the data classes have for other tools. To be honest i'm also not actually sure how to even do that, my coding ability isn't actually all too great.

Hmm when needed it can always been cleaned up it's not that we need to be able to display hd assets in map editor at this point.


Add API POST /robotframework/run

I suggest to add a new generic API POST endpoint to handle all possible robot CLI options (running test, task, suite... or overloading variables or changing loglevel... eventualy all possibles robot options).
Execution can be synchronous or asynchronous.
For example :

Options implemented (Swagger Schema) :

Examples in Swagger :

Old execution GET API could be deprecated :

Wow, that's great. It's exactly what I need. Thank you very much

Great idea! I rather not deprecate the GET endpoints, though. Other than that, I think, these changes should be merged and improve the webservice. Thank you 🥇

Ok, no problem, I remove the deprecation changes.


Add tests to environment creation script

...including:
python -c "import vcs"

addressed by #16


报错

Traceback (most recent call last):
File "main.py", line 332, in
main("","")
File "main.py", line 308, in main
client = get_infouser(HT_cookies,HT_UserAgent)
File "main.py", line 53, in get_infouser
response = session.get('https://www.heytap.com/cn/oapi/users/web/member/info', headers=headers)
File "D:\Program Files\Python37\lib\site-packages\requests\sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "D:\Program Files\Python37\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files\Python37\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files\Python37\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\Program Files\Python37\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "D:\Program Files\Python37\lib\site-packages\urllib3\connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "D:\Program Files\Python37\lib\http\client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "D:\Program Files\Python37\lib\http\client.py", line 1270, in _send_request
self.putheader(hdr, value)
File "D:\Program Files\Python37\lib\http\client.py", line 1202, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 2350-2354: ordinal not in range(256)
这是为什么

自己检查网络 www.heytap.com 国外IP无法访问的

我再查查


move IP generators into an abstract base class

A proposed fix for #189
Created an abstract base class for the IP generator and let every other class that needs the fake IP generator including the Tank as well as LNNode inherit it.
@josibake  Kindly review. Thanks

Hey @TChukwuleta ! Welcome to warnet :smile:
Now that we are closer to having the kubernetes backend finished, I think we are going to move away from setting the IP addresses manually all together, and instead just apply a patch to bitcoin core that ignores the IsRoutable() function. This simplifies things quite a bit and means we will probably get rid of all of this IP related code altogether.
The patched docker image is being worked on here: https://github.com/bitcoin-dev-project/warnet/pull/206
I think we can keep this PR open for now until we have the patched docker images full ironed out, in case we need to back to generating the addresses.

If we use the k8s images (post #241 ) in docker, we can get rid of all the ip address generation stuff from the repo.
Even if we want to add ASMap (#217) we can simply map the assigned ip address to a new AS manually, as I did in the linked PR...
@m3dwards @josibake @pinheadmz

Tend to agree as I don't think we'd even have the ability to set IP addresses on a managed k8s cluster. Also, with the isroutable patch for docker, I don't think we need to manually specify addresses, just need to pick the appropriate subnet. I'd say we close this for now and then can reopen if we do end up needing the IP addresses.

Thanks for PR @TChukwuleta but I have to agree that it shouldn't be needed now.


Set non-package mode

Once that we have updated Poetry to 1.8.2, we can set non-package mode in the components we are not packaging:

docs
admin-ui
e2e

Note that currently a warning was raised when installing<EMAIL_ADDRESS>install) the docs and the admin-ui components:
Warning: The current project could not be installed: No file/folder found for package dataset-viewer-doc
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
In a future version of Poetry this warning will become an error!

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

e2e CI: we can't run ruff on src/ since we deleted it... I don't know if it's worth the pain handling this case in the github actions, maybe better to revert https://github.com/huggingface/dataset-viewer/pull/2731/commits/1b0a9879f3df7759b9f93c6130b172d294ebd75b

@severo I am merging this PR, after the fix in the Makefiles and the addition of py.typed to cache_maintenance.


Docs with links to classes, interfaces and methods with class qualifiers dont get rendered

It looks like the only time the @link syntax works as expected for symbols is when it is for methods without class qualifiers. This is resulting in a whole lot of <xref in our docs at the moment

cc @willmtemple

Closing as this is being tracked separately by the reference docs working group


using genish for modulation

I am running Live 10, Max 8, 10.13.3, I just installed 1.2.
I'm testing gibberwocky.demo.
I get this, is it expected:
gibberwocky is ready to burble.
error Compiling Gen graphs is not authorized for this install of Max; using genish.js for modulation
BTW Just got on gibberwocky today, grabbed your 1.2 update right away. Great stuff.

using genish.js for modulation is the important part of that message. It's saying it can't compile Gen but will calculate modulations in the browser instead. Are modulations working?

Modulations are working. I'm testing through them and will have more details but they seem to be working well.


fix(modal): align with figma

Describe pull-request
Some paddings didn't match figma and storybook story didn't match either
Solving issue
Please link to the issue this pull request is solving by adding ticket number after CDEP-
Fixes: CDEP-2617
How to test
Provide detailed steps for testing, including any necessary setup.

Go to storybook
Compare with ui library

Checklist before submission

[x] I have added unit tests for my changes (if applicable)
[x] All existing tests pass
[x] I have updated the documentation (if applicable)

@EmelieLitwin - What is the status of this ticket?