Host resources wit-bindgen code generation

Implements host export resource generation #6722
After a discussion with @alexcrichton, I have broken out basic resource generation for host resource exports into it's own PR,
Host import resource generation will follow, as well as more ergonomic resource code generation that abstracts away the raw resource handles.
Example implementation: https://github.com/Nor2-io/wasmtime-resources-example/blob/main/example-host-export-index/src/main.rs
Example code generation output: https://github.com/Nor2-io/wasmtime-resources-example/blob/main/example-host-export-index/main copy 2.rs
Sneak peak of future additions that abstract away resources can be seen in the link below. (It doesn't work with nested resources yet.)
https://github.com/Nor2-io/wasmtime-resources-example/blob/main/example-host-import/src/main.rs
https://github.com/Nor2-io/wasmtime-resources-example/blob/main/example-host-export/src/main.rs
Added temporary exception for cargo deny on multiple versions until memfd has been updated: #62

Ok I've worked on this a bit this morning and I've pushed up https://github.com/Nor2-io/wasmtime/pull/1 which contains another round of comments for me (and some fixes for the deny/vet-related things I think). As I mentioned over there I'm happy to go through anything if you'd like clarifications or explanations!

One more round of changes at https://github.com/Nor2-io/wasmtime/pull/2 (again happy to go through anything if you'd like), and then I think this is good to go 👍

Also @silesmo would you be up for filing an issue for follow-up work?

Also @silesmo would you be up for filing an issue for follow-up work?

Yes I can do that! 🙂

Pat's busy with streams and such so he'll take a look at this after-the-fact, so I'm going to go ahead and flag this for merge. Thanks again @silesmo!

oh I think this may need a rebase for merging now?

oh I think this may need a rebase for merging now?

I merged the latest changes now


Fix purple color setting name

This got left behind in the rename from mauve to purple. It is currently breaking extension activation.

Nice catch thanks @brxck


conception: modification / enrichment of own master data in CX-portal by CX-registred company

Description
see https://jira.catena-x.net/browse/CXAR-1085
a s a CX Portal user want to change/enrich my own data
because there have been changes  which shall be reflected in CX pool (as basis for other use cases and related data consuments)
For this I need a functionality which distributes the changed data content  as data owner from CX portal to service provider along the GR process and feed back the results into the portal (update the data there)
Roles / rights: Who is allowed to feed in such changes (VW vs. AUDI, vs. Skoda,..., ALL legal entities?) --> what is the current registration process
Consideration of famliy tree/ relations (which level)
BPDM  + e.g. Portal Team or other Frontend --> collecting + alignment of requirements
Consider the topic of multi language in this context!
Impact

Additional information

[ ] I'm willing to contribute to this feature

Discussed in open refinement -> ready for planning (status Backlog)
note: description to use the portal is just an option (maybe there are others)

Closing due to duplicate to https://github.com/eclipse-tractusx/sig-release/issues/810


Package subpath './src/builders/application' is not defined by exports ... with Angular 18

When trying to move to Angular 18.0.3 (currently latest) we are getting:

These are the dependency sections of my package.json:

Npm install runs fine. I'm getting this issue when running ng build.

Running a post install script like mentioned here https://github.com/angular-architects/module-federation-plugin/blob/main/libs/native-federation/docs/update18.md seems to be a workaround. But to be honest its nearly impossible to find this hint when searching for the error message. It would be very helpful to put a big reminder in the top level Readme of the repo, as long as the patch is required.

I have a couple of questions:

The documentation mentions that the post-install script is a temporary solution and won't be necessary in future versions. Is there any clarity on when this will be resolved?

The file src/builders/build/builder.ts seems to reuse private functions from Angular's build functions. Am I correct that for this reason the package.json needs to be changed? Is there a way we can avoid this because the @angular/build package does not have to take breaking changes into account for these functions

Hi @gilliamroelofs,

We need to land a PR (basically 2 lines of code) in the Angular CLI. We are already in contact with the CLI team.
Once this PR is landed, we will have an official way of using the parts of the CLI we need. One of our goals is to be as close to the CLI as possible. Hence, we don't implement these parts by ourselves.


Documentation for upload.cgi

Upload.cgi has $MAX_SIZE which is the maximum file which can be uploaded to the server. So documentation for upload.cgi is necessary. It should be added to software.kill-9.xyz/lainsafe (official project's website). A doc/ directory could be also created.

Copy and pasted documentation from software.kill-9.xyz in f154c62 But i still have to write documentation for upload.cgi

Added in b3c06dd


[Document] Security Group Host Design

This is the first draft of Security Group Host Design. It contains the highlevel approach and the advantage compare to OpenStack Neutron. Diagrams and workflow pictures will be added next.

Codecov Report

Merging #390 into master will increase coverage by 0.74%.
The diff coverage is n/a.

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

Codecov Report

Merging #390 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #390   +/-   ##
=========================================
  Coverage     36.79%   36.80%
- Complexity     1149     1150    +1
=========================================
  Files           447      447
  Lines         10703    10703
  Branches       1365     1365
=========================================
+ Hits           3938     3939    +1
  Misses         6231     6231
+ Partials        534      533    -1

Impacted Files
Coverage Δ
Complexity Δ

...alcor/elasticipmanager/dao/ElasticIpAllocator.java
63.53% <0.00%> (-0.28%)
48.00% <0.00%> (ø%)

...alcor/portmanager/util/RestParameterValidator.java
44.61% <0.00%> (+3.07%)
14.00% <0.00%> (+1.00%)

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 83f950b...71b5914. Read the comment docs.

What is the difference between the implementation of the agent side and the neutron agent?

What is the difference between the implementation of the agent side and the neutron agent?

Direct goal state communication between Alcor server and ACA, support batching and parallel processing in ACA.
Delta update, greatly reduced the message size between Alcor server and ACA
On-demand programming, similar to L3 routing design, we can install SG rules only when it is needed by traffic flow. And those on-demand openflow rules can expire with an idle timeout

@er1cthe0ne  Whether PortState, is carried in the Networkconfiguration when updating the security group, if so, will go into Aca_Goal_State_Handler::update_port_states () according to the current code logic for processing, which is not expected to happen. In addition, what fields should be included in the PortState when updating the security group?

@er1cthe0ne Whether PortState is carried in the Networkconfiguration when updating the security group, if so, will go into Aca_Goal_State_Handler::update_port_states () according to the current code logic for processing, which is not expected to happen.

If there is a new port created with security group enable: PortState::operation_type = CREATE
If there is no new port created when security group is updated: PortState::operation_type = INFO
We will add the ignore logic when PortState::operation_type = INFO inside ACA_Dataplane_OVS::update_port_state_workitem similar to update_subnet_state_workitem

In addition, what fields should be included in the PortState when updating the security group?

I think we will need request_id, id, fixed_ips, allow_address_pairs (enforced when security group is enabled) and security_group_ids at the minimal.


Get all secrets from secrets API

In what area(s)?
/area runtime
Describe the feature
Allow applications to get all secrets they've got access to from the secrets API, for example:
GET http://localhost:<daprPort>/v1.0/secrets/<secret-store-name>

[
  {
    "name": "secret1",
    "keys": {
      "key1": "value1",
      "key2": "value2"
    }
  },
  {
    "name": "secret2",
    "keys": {
      "key1": "value1",
      "key2": "value2"
    }
  }
]

This would make it significantly easier to create a .NET Configuration Provider that doesn't require the developer to pass the secret names directly in code when registering the provider (.NET Configuration Providers cannot lazily load configuration. They need to get all configuration from the underlying store at startup time). This behavior would be similar to the implementation of the .NET Configuration Provider for Azure KeyVault.

Just found out there's a PR for this exact functionality over in the components-contrib repo: https://github.com/dapr/components-contrib/pull/310

@amolenk work on https://github.com/dapr/components-contrib/pull/310 is about to be merged and then we'll extend the dapr API.
Regarding the .NET configuration provider this PR: https://github.com/dapr/dotnet-sdk/pull/238 was reverted but will be resurrected as soon as #1493 is fixed.

@cmendible Great! With the new BulkGetSecret api, the .NET configuration provider can be improved and built in a way that doesn't require the user to specify secret keys upfront. I added issue https://github.com/dapr/dotnet-sdk/issues/462 to the dotnet-sdk repo to track the work.

That was the primary driver for the new API and I'll be enhancing the .NET provider as soon as we close this one.

Hi @youngbupark can you asign this one to me?


[BUG] Node Ignoring Max Peers in toml

Tried to reduce peers connected to node with:
peer_max_count = 20
in toml
Restarted node
This is ignored and peers up to 47

Resolved by: https://github.com/EpicCash/epic/pull/96


add es5-amd version to the custom theme routine

Custom themes won't roll everything up correctly for ES5 browsers. If you have custom elements in there that means they won't render so obviously we should fix that 📟

This is now a problem for IE11 and a handful of other older browsers. We also might be able to solve this by having a open-wc style build routine. Let's not add support directly for es5 and instead solve it that way if we get asked for it


Adjust noop frequency up from 250ms to 2s based on feedback from ODSP TAP 40 scalability run.

With current (prior to fix) numbers, we were spamming PUSH with too many ops, causing it not handling workload.
2s adjustment will have (using TAP 40 payload) 8x difference in outbound traffic, and should have zero impact on final file size (due to 5 ops / sec of real traffic that results in all noops not being sequenced).
That said, it will regress certain workloads (search quality, size of snapshots), so we will need to re-evaluate impact and next steps.
Long term, we should strongly consider "alternative solution" proposed in https://github.com/microsoft/FluidFramework/issues/5629, as well as make our system less susceptible to collab window size (i.e. how summaries are working for Sequence and how search works for Sequence).

@heliocliu - FYI, I'll bring this change to 0.45, but I'd love to get TAP40 scalability run results first with it to see that's sufficient to mitigate problems, or we need to go even further.


Refactor types, bson, fjson packages

Problems with the current design:

If type conversion is used (for example, from bson.doubleType to float64), validation can be skipped, and we might want to make NaN values invalid in the future.
If type conversion is not used, then too much copying might be required.
"convert" functions are confusing.
Too many types are exported.
Remove nolint:deadcode.

I close this issue as the description is not complete/accurate. For validation, we have epic #871, where the complete list of validation tasks is mentioned.

I reopened the issue as its number is mentioned in a few places in the code.
@AlekSi would it be possible to improve the description? Currently, it contains your observations, but it's not straightforward why. E.g. "convert" functions are confusing - what do you mean? What is confusing about them? What needs to be changed?

They are horrible. There should be a better solution. I don't know better yet, that's why this task has "not ready" label


scope(ebpf) unix domain socket traffic analysis (research)

User Story

As a User
I want to find out about unusual events on the system
So that I can diagnose them better

Acceptance Criteria

Set Kprobes for sending and receiving on a socket
Creat a timeseries for the amount of packets on a unix socket

We should split proof of concept implementation into another ticket #80.

Any thoughts about io_uring? I have to check whether io_uring is already enabled. Last time I read something about Android disabling io_uring due to security concerns
https://www.phoronix.com/news/Google-Restricting-IO_uring
https://i.blackhat.com/BH-US-23/Presentations/US-23-Lin-bad_io_uring.pdf

But the task was explicitly to analyze data going over sockets. I do not know how io_uring fits into that, the data transferred, be it using io_uring or not, is still going over recv and send as far as i am aware. https://man7.org/linux/man-pages/man3/io_uring_prep_recv.3.html or https://man7.org/linux/man-pages/man3/io_uring_prep_sendmsg.3.html

We could eventually support io_uring tracepoints separately, but I doubt that this will be high priority especially on android:
syscalls:sys_enter_io_uring_enter
syscalls:sys_enter_io_uring_register
syscalls:sys_enter_io_uring_setup
syscalls:sys_exit_io_uring_enter
syscalls:sys_exit_io_uring_register
syscalls:sys_exit_io_uring_setup

io_uring:io_uring_complete
io_uring:io_uring_cqe_overflow
io_uring:io_uring_cqring_wait
io_uring:io_uring_create
io_uring:io_uring_defer
io_uring:io_uring_fail_link
io_uring:io_uring_file_get
io_uring:io_uring_link
io_uring:io_uring_local_work_run
io_uring:io_uring_poll_arm
io_uring:io_uring_queue_async_work
io_uring:io_uring_register
io_uring:io_uring_req_failed
io_uring:io_uring_short_write
io_uring:io_uring_submit_req
io_uring:io_uring_task_add
io_uring:io_uring_task_work_run


Not all Quassar Vue Components included in StippleUI

Hi,
as I've found out from source not all Quassar Vue Components are includede in stippleUI pkg.
Components like FilePicker, Tab/Tab panels, Toolbar are just few of not included.
Is there a plan to extend the pkg? It would be nice if the whole Quasar Component library will be included.
Is there an option to include missing components myself?
Si

@szafna Yes, I will keep adding more components, with a focus on most commonly used ones. So I'm not sure we'll ever have all of them, 100% coverage of the Quasar API is not a goal. But the ones you mention we'll most likely have.
I you want to contribute, that'd be much appreciated - it's about adding Julia wrappers for the missing components, similar to the ones already available.

@essenciary I do not have competences yet for building wrappers (Julia and html/js beginner). Will try after while I get some more skills.

Thank you - I will set up some docs on how to develop components, hopefully that will help.

I have a proposal to make in order to make adding features easier. As an example I have taken textfield() from FormInput and modified it so that it does the same job, but is easier to maintain and adapt for other features.
The key idea is to replace '-' characters by '_' and to loop over the parameters. That way we would keep the nice feature that typical paramters are listed in the documentation or when pressing tab in the REPL, but the text is much shorter. There is practically no performance reduction (66µs vs. 65µs)
function textfield(
                    fieldname::Union{Symbol,Nothing} = nothing,
                    args...;
                    label::String = "",
                    label_color::Union{String,Nothing} = nothing,
                    label_slot::Union{String,Nothing} = nothing,
                    bg_color::Union{String,Nothing} = nothing,
                    input_class::Union{String,Nothing} = nothing,
                    input_style::Union{String,Nothing} = nothing,
                    clear_icon::Union{String,Nothing} = nothing,
                    fill_mask::Union{String,Nothing} = nothing,
                    rules::Union{String,Nothing} = nothing,
                    error_message::Union{String,Nothing} = nothing,
                    shadow_text::Union{String,Nothing} = nothing,
                    bottom_slots::Bool = false,
                    stack_label::Bool = false,
                    unmasked_value::Bool = false,
                    reverse_fill_mask::Bool = false,
                    lazy_rules::Bool = false,
                    reactive_rules::Bool = false,
                    no_error_icon::Bool = false,
                    hide_hint::Bool = false,
                    hide_bottom_space::Bool = false,
                    item_aligned::Bool = false,
                    kwargs...)

    kk = (
        :label_color, :label_slot, :bg_color, :input_class, :input_style, :clear_icon, :fill_mask, :rules, :error_message,
        :shadow_text, :bottom_slots, :stack_label, :unmasked_value, :reverse_fill_mask, :lazy_rules, :reactive_rules,
        :no_error_icon, :hide_hint, :hide_bottom_space, :item_aligned
        )
    vv = (
        label_color, label_slot, bg_color, input_class, input_style, clear_icon, fill_mask, rules, error_message,
        shadow_text, bottom_slots, stack_label, unmasked_value, reverse_fill_mask, lazy_rules, reactive_rules,
        no_error_icon, hide_hint, hide_bottom_space, item_aligned
        )

    k = (:label, )
    v = Any[label]

    if fieldname !== nothing
        k = (k..., Symbol("v-model"))
        push!(v, fieldname)
    end

    for (k_new, v_new) in zip(kk, vv)
        if !(isnothing(v_new) || (typeof(v_new)==Bool && !v_new))
            k = (k..., Symbol(replace(String(k_new), "_" => "-")))
            push!(v, v_new)
        end
    end

    template() do
        q__input(; kwargs..., NamedTuple{k}(v)...)
    end
end

@hhaensel the FormInput implementation is "deprecated". That integration was the first iteration, I have since abstracted away the integration into a different API which is much cleaner. We have come pretty much to similar approaches, see https://github.com/GenieFramework/StippleUI.jl/blob/master/src/Badge.jl
I'm in progress of updating the "legacy" components to this new API.

Thank you everybody for the input!
I'm doing a bit of cleanup and I'll close this as the API seems to have stabilized and I've planned a list of core UI components for v1:
https://github.com/GenieFramework/StippleUI.jl/projects/1

I've just added raw components, which make it possible to use non-registered components.
See #11 and #12

I've just added raw components, which make it possible to use non-registered components.
See #11 and #12


Stuck on caddy v1 because i use http filters in v1 ...

Hello you to let you know you removed the doc of v1 in the website it make it difficult to me to use caddy but i can't migrate i really need this, i think to find a way to go back on nginx because of that, do you have any roadmap for that feature ?
i would like to help, but the only time i try golang i disliked so much that was crazy, i can probaly paid for that one that a current too big pain 😢
my current use :
          naas.ai {
              import basicSnip
              proxy / hub:8000 {
                  transparent
                  websocket
              }
              filter rule {
                  content_type text/html.*
                  search_pattern "</head>"
                  replacement "<script<EMAIL_ADDRESS>              }
          }

I add code to have custom css in platform and custom js, like autofill password in iframed.

you removed the doc of v1 in the website

Caddy v1 docs are linked right in the main navigation of the docs:

Anyway, this feature is actually already implemented. I'm waiting for a client to get back to us before I publish it.

Thanks a lot ! <3

@mholt do you know in what timeline that can go out ?

@BobCashStory Mmm, well, I haven't heard from the client yet, and actually there isn't a contract or anything at this point, so I guess I can just publish it and have people start testing/using it. Give me a few hours to finish up something and I'll push it.

lol I'm gonna rename this to replace-response since response-replace doesn't make much sense... push incoming!

@BobCashStory Okay, it's published! Still a very early version but was working for me.

@mholt i will check tomorrow thanks a lot !


Unexpected Console  Bounds print

Describe the bug
an unexpected bound print appears and seems not necessary
To Reproduce
Steps to reproduce the behavior:
Create app
start tracking
-> watch the console
in current_location_layer.dart  Line 538 will a
print([camera.nonRotatedSize, Bounds(sp - r, sp + r)]);
an unexpected console output
flutter: [Point(392.72727272727275,<PHONE_NUMBER>545455), Bounds(Point(46.398952421033755, 46.03468326153234), Point(166.39895242103375,<PHONE_NUMBER>6153234))]
Expected behavior
don't print this line or make a flag for that behavior
All platforms are affected
flutter_map_location_marker ^9.1.0

Same issue  in line 681 with heading -->
print(heading.heading);

Thanks. Fixed in v9.1.1.


Update README.md URL to CONTRIBUTING.md.

Summary
Updated the link to CONTRIBUTING.md toward .github/CONTRIBUTING.md.

LGTM.


Confirm registration

Fixes #81

@byronigoe thanks for the contribution!
We didn't use the register function and didn't realize it's not implemented by the original author. The implementation looks great to me and I'd be happy to merge it in.
However, I have some security concerns about the public registertion (since it's not there before), would you mind to help adding a config item for enable/disable it? (e.g. common.enableRegister)

Okay. I've added a flag: common.allowRegistration which defaults to false.

cool, thanks for the help!

merge into master with commit messages rebased (coventional commit style for auto-generate changelog)
https://github.com/shm-open/code-push-server/commit/b8b0276f4a54199ce66fb646b327d323a434c7cc
https://github.com/shm-open/code-push-server/commit/53ffab6a2b18abd9468a87370c2300bf27fc27ec


docs: Update README with pointer to Slack

PR summary

Minor update to README.md to include a pointer to Slack as an alternative to Stack Overflow.
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[x] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

N/A: Documentation update only.
What is the new behavior?

N/A: Documentation update only.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Roblox Version Out of Date

Having issue with roblox being out of date. Pop-up reads quote "Your version of Roblox may be out of date. Please update Roblox and try again. Error Code: 280." Do I just reinstall the custom launcher or do I wait for an update?

WAIT NVM! Just saw the contigency plan, disregard my issue.

Im having that same problem where it pops up and says "Your version of Roblox may be out of date. Please update Roblox and try again. Error Code: 280." and I have no idea how to fix it.

Im having that same problem where it pops up and says "Your version of Roblox may be out of date. Please update Roblox and try again. Error Code: 280." and I have no idea how to fix it.

Did you already read this? https://github.com/lolmanurfunny/Roblox-Launcher-minus-the-app#please-read-before-opening-an-issue-thanks

in my pull request, take the other file not the RobloxPatch.py and run it, should automatically update and install latest roblox.


embassy-net/read document return value Ok(0)

Ran into this as I forgot to handle the Ok(0) return case and just kept reading. Documenting it here seemed the best way not to run into it again :)

I have also added some tips to the timeouts

This should be correct now right?


replace hardcoded hive catalog for table preview by default catalog

I want to resolve #113 by using default catalog.

Great, thanks @wing3s!


Learning pathways provisioning is not working

Describe the issue
CURRENT SITUATION : i was advised by MS support to use logging option in Mozilla to try to get correlation ID, this time the provisioning is running for 30 minutes and hasn't finished. I think it's stuck.
OLDER UPDATES:
After getting "Provisioning completed" on sharepoint provisioning web-page, my Learning365 site is created but there is no CustomLearningAdmin.aspx created + I can't use Learning Pathways app on site. When i try to add new app i don't have it in "Apps You can add" list. I have to click on " From Your organization" tab and there are Pathways marked as "You can't add this app here."
After some updates from different team and running some scripts I was able to get both .aspx websites to my Sharepoint site, but apparently I'm missing templates which haven't been deployed. By the info I got there should be 11 of them.
I'm linking the issue description for better understanding:
pnp/custom-learning-office-365#388
Expected behavior
I want learning pathways to fully work, with templates provisioned automatically.
Screenshots
If applicable, add screenshots to help explain your problem.
Details (please complete the following information):

PnP Correlation ID: 50bb9db2-99ae-497f-b116-37c658340dce
Reference Template: https://lookbook.microsoft.com/details/3df8bd55-b872-4c9d-88e3-6b2f05344239
Primary language of the target tenant: English
Are you using a Tenant Global Admin account to provision the template: Yes

Additional context
Add any other context about the problem here.

Hi,
Thanks for using the Look Book service. Actually, based on the event log, I can see that your provisioning completed successfully. Regarding your other questions about how to use the Learning Pathways content in sites, please keep on discussing in the https://github.com/pnp/custom-learning-office-365 repository. Thanks.


IAM service policyDocumentType shape does not represent actual response

Describe the bug
policyDocumentType shape definition is incorrent. According to it, it should be a string. Actual response from botocore is a dict: {"Version": "str", "Statement": [{...}, ]}.
It affects auto-generated boto3 docs as well: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iam/client/get_policy_version.html#
Expected Behavior

boto3 documentation should describe IAM.Client.get_policy_version response correctly

Current Behavior
Current shape definition:
    "policyDocumentType":{
      "type":"string",
      "max":131072,
      "min":1,
      "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+"
    }

Reproduction Steps
https://github.com/youtype/mypy_boto3_builder/issues/212
Possible Solution
The shape definition should be something like:
    "policyDocumentType":{
      "type":"structure",
      "required":["Version", "Statement"],
      "members":{
        "Version":{
          "shape":"policyDocumentTypeVersion", # string
        },
        "Statement":{
          "shape":"policyDocumentTypeVersion", # list[dict[str, Any]]
        }
      },
    }

Additional Information/Context
No response
SDK version used
1.31.16
Environment details (OS name and version, etc.)
Ubuntu Linux

Just in case, this is how it looks in Python types:
PolicyDocumentStatementTypeDef = TypedDict(
    "PolicyDocumentStatementTypeDef",
    {
        "Effect": str,
        "Resource": Union[str, List[str]],
        "Sid": str,
        "Action": Union[str, List[str]],
    },
)

PolicyDocumentTypeDef = TypedDict(
    "PolicyDocumentTypeDef",
    {
        "Version": str,
        "Statement": List[PolicyDocumentStatementTypeDef],
    },
)

Hi @vemel thanks for reaching out. This has come up before in a few other issues:

https://github.com/boto/boto3/issues/229
https://github.com/boto/boto3/issues/978

It appears to affect all PolicyDocument types. I think we should continue tracking this in the open issues above.

To add some more context, this isn't specific to PolicyDocuments. Botocore will attempt to decode strings members in responses into a Python object with json.loads if possible. This is to provide a more native Python representation of structured data to allow for indexing/iteration.
You'll see similar behaviors for timestamps as well which are converted to datetime objects on receipt.


tmt test import: make: *** fopen (temporary file): No such file or directory.  Stop.

[sbertram@sbertram pttest]$ tmt test import
Checking the '/home/sbertram/gitstuff/kernel-tmt/standards/pttest' directory.
Makefile found in '/home/sbertram/gitstuff/kernel-tmt/standards/pttest/Makefile'.
make: *** fopen (temporary file): No such file or directory.  Stop.
Failed to convert metadata using 'make testinfo.desc'.
seems testinfo.desc is not being created.
Tried on an older test that I was able to convert last week and it failed in the same way.
[sbertram@sbertram pttest]$ tmt --version
tmt version: 1.12.0 (1e4997e)
[sbertram@sbertram pttest]$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"
ID="rhel"
[sbertram@sbertram pttest]$ uname -r
4.18.0-348.12.2.el8_5.x86_64
I am on csb.

Do you have /usr/share/rhts/lib/rhts-make.include ? (rhts-test-env rpm) Import is made mostly for standard beaker tasks which contain include /usr/share/rhts/lib/rhts-make.include directive.

I tried it with and without it in the makefile and got the same error. But I tried again just now and it is now working, with and without that include. I cannot explain it. I will close this ticket but I did struggle with this for quite awhile before opening the ticket. No changes that I can think of to my environment since.
Now I am thinking I did not check how much space I had left on my laptop. I didn't think to do that because I manually converted these files and did not run into any space issues. Also ran tests afterwards without any issue. Tests that wrote to disk. I will pay more attention to that if this occurs again.
[sbertram@sbertram pttest]$ tmt test import --no-nitrate
Checking the '/home/sbertram/gitstuff/kernel/standards/pttest' directory.
Makefile found in '/home/sbertram/gitstuff/kernel/standards/pttest/Makefile'.
task: /kernel/standards/pttest
summary: Linux 2.4 VS 2.6 fork VS thread creation time test
test: ./runtest.sh
framework: shell
contact: Kernel General Test Team<EMAIL_ADDRESS>component: kernel
duration: 20m
recommend: glibc @development
Purpose found in '/home/sbertram/gitstuff/kernel/standards/pttest/PURPOSE'.
description:
Test how much time is needed for a process/thread creation
Author:
Test will PASS everytime and following information will be written to test log:
(example)

Fork failures:			0 (success: 1000)
Avarage fork time:		0.458936 msecs
Total fork time:		458.936000 msecs
Successive total fork time:	458.936000 msecs
Thread failures:		0 (success: 1000)
Avarage thread time:		0.042413 msecs
Total thread time:		42.413000 msecs
Successive total thread time:	42.413000 msecs
Avarage fork/thread ratio:	10.820645
Total fork/thread ratio:	10.820645
Successive total F/T ratio:	10.820645

Metadata successfully stored into '/home/sbertram/gitstuff/kernel/standards/pttest/main.fmf'.


Light Client Supervisor: MVP

[ ] Referenced an issue explaining the need for the change
[ ] Updated all relevant documentation in docs
[ ] Updated all code comments where relevant
[ ] Wrote tests
[ ] Updated CHANGES.md

Codecov Report

Merging #302 into romain/light-client-followup will decrease coverage by 1.8%.
The diff coverage is 7.8%.

@@                      Coverage Diff                       @@
##           romain/light-client-followup    #302     +/-   ##
==============================================================
- Coverage                          30.3%   28.4%   -1.9%
==============================================================
  Files                               127     130      +3
  Lines                              4635    4906    +271
  Branches                           1416    1499     +83
==============================================================
- Hits                               1407    1398      -9
- Misses                             2261    2534    +273
- Partials                            967     974      +7

Impacted Files
Coverage Δ

light-client/src/callback.rs
0.0% <0.0%> (ø)

light-client/src/components/clock.rs
0.0% <0.0%> (ø)

light-client/src/components/io.rs
2.1% <0.0%> (-0.1%)
:arrow_down:

light-client/src/components/scheduler.rs
44.0% <ø> (ø)

light-client/src/errors.rs
0.0% <0.0%> (ø)

light-client/src/fork_detector.rs
0.0% <0.0%> (ø)

light-client/src/operations/commit_validator.rs
28.5% <0.0%> (-15.2%)
:arrow_down:

light-client/src/operations/header_hasher.rs
35.8% <ø> (-4.6%)
:arrow_down:

light-client/src/operations/voting_power.rs
45.0% <0.0%> (-15.0%)
:arrow_down:

light-client/src/predicates.rs
72.9% <ø> (ø)

... and 17 more

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 8b7a2aa...8ce22d9. Read the comment docs.


Add a fence pool for frame tracking fences

Ignoring the fact that these tracking fences are doing nothing in D3D (they are set immediately https://github.com/ppy/veldrid/blob/6a43198af1b069e56ac53770249a5424c1859500/src/Veldrid/D3D11/D3D11GraphicsDevice.cs#L229-L232):
This is a regression so let's fix it locally for the time being.
Time spent in ManualResetEvent construction:

Before this PR:

After this PR:

I think we still want this in, at least for now. Can potentially be reverted if we decide we don't want end-of-frame fencing on all platforms.


[Bug] Night Vision upgrades don't show up on terminal after upgrade cycle

Hey there,
After 1st quota I bought the first Night Vision upgrade + the first Quick Hands upgrade.  Then took off from the company, at which point the upgrades rotated in orbit.
I have the settings enabled to rotate on new quota, but to always show purchased upgrades.  I think Night Vision's upgrade may have some sort of override to ignore the "show purchased upgrades" option

Cheers

I also noticed that upon exiting a lobby and reloading, the upgrade pool was randomized in the middle of the quota.  Not a huge issue, but it would be nice if the behavior was consistent so that lobby reloads didn't trigger the shuffle if the "PerQuota" option was selected

Could be an issue of not saving the random seed. I will take a look

If you could check if 3.10.9 fixes this, that would be neat.

Upgraded to 3.10.9 and did the following: bought Protein Powder 1 + Quick Hands 1 --> played 1 day on experimentation --> went back to orbit --> saved/quit out of the lobby --> reloaded lobby
LGU upgrades have rerandomized, unfortunately.

I just started testing v56 tonight, and haven't seen Night Vision upgrade but I will update you on that one when I see it

Also checked the night vision upgrade issue.  Bought NV 1 in orbit --> dropped on experimentation, grabbed some quick loot --> returned to orbit --> saved/quit --> reloaded lobby --> upgrades didn't reshuffle this time
So I guess it's not quite clear what is going on there or why it reshuffled the first time but not this time.
I then did 2 more quick days so I could trigger the next quota.  When the new quota shuffled upgrades, Night Vision was hidden again despite NV 1 being unlocked.

I also noticed that Night Vision Goggles don't seem to have a scan node, for what it's worth

There was another NV check I missed when hiding upgrades. That one at least should be solved by now.
I will try looking at the seed problem at better time. The scan node I'm not so sure what's going on, I haven't touched it in ages.

Appreciate the work.  The upgrade reshuffling isn't a gamebreaker or anything, so it's certainly not pressing.  I'll try to reproduce it when I have a bit of time and update.
I don't think the night vision scan node would be a recent thing.  I don't think it ever had a scan node.  Seemed to trivial to report on its own so I never made a ticket previously.

3.10.10 release should address the NV not showing a scan node. It was badly configured from the start (Switched min and max range values)

closing this out since NV scan and NV upgrade rotation were fixed

I think I found the rerandomization error that was still present, that couldn't be reproduced reliably before.
Current steps:

load into new lobby/save file
in orbit, note current upgrade list
drop on a planet (I picked experimentation)
quit/save while on the planet, then reload into the lobby
pull up the LGU upgrade list to note it is now incorrect

in orbit:

after reloading file as described:

I've used the steps above to reproduce the issue 3x times now
Cheers


At Import: AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv2_METHOD'

When trying to import the module, I get the following:
>>> from facebook_page_scraper import Facebook_scraper as fbscrape
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/USER/.local/lib/python3.9/site-packages/facebook_page_scraper/__init__.py", line 1, in <module>
    from .driver_initialization import Initializer
  File "/home/USER/.local/lib/python3.9/site-packages/facebook_page_scraper/driver_initialization.py", line 3, in <module>
    from seleniumwire import webdriver
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/webdriver.py", line 13, in <module>
    from seleniumwire import backend
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/backend.py", line 4, in <module>
    from seleniumwire.server import MitmProxy
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/server.py", line 4, in <module>
    from seleniumwire.handler import InterceptRequestHandler
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/handler.py", line 5, in <module>
    from seleniumwire import har
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/har.py", line 11, in <module>
    from seleniumwire.thirdparty.mitmproxy import connections
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/connections.py", line 9, in <module>
    from seleniumwire.thirdparty.mitmproxy.net import tls, tcp
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/net/tls.py", line 43, in <module>
    "SSLv2": (SSL.SSLv2_METHOD, BASIC_OPTIONS),
AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv2_METHOD'

Is this a known issue? Searching the internet, I didnt found any useful solutions...
Thx in advance

I have managed to "solve" the issue by hacking myself thru the modules:
In the file
/home/USER/.local/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/net/tls.py line 43f [VERSION_CHOICES]
I changed:
"SSLv2": (SSL.SSLv2_METHOD, BASIC_OPTIONS),
"SSLv3": (SSL.SSLv3_METHOD, BASIC_OPTIONS),

to:
"SSLv2": (SSL.SSLv23_METHOD, BASIC_OPTIONS),
"SSLv3": (SSL.SSLv23_METHOD, BASIC_OPTIONS),

And in line 51f  [METHOD_NAMES] I commented the two options out
#SSL.SSLv2_METHOD: "SSLv2",
#SSLv3_METHOD: "SSLv3",

However, this led me to another error:
>>> json = meta_ai.scrap_to_json()
[WDM] - Driver [/home/demo/.wdm/drivers/geckodriver/linux64/v0.33.0/geckodriver] found in cache
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/USER/.local/lib/python3.9/site-packages/facebook_page_scraper/scraper.py", line 82, in scrap_to_json
    self.__start_driver()
  File "/home/USER/.local/lib/python3.9/site-packages/facebook_page_scraper/scraper.py", line 61, in __start_driver
    self.__driver = Initializer(
  File "/home/USER/.local/lib/python3.9/site-packages/facebook_page_scraper/driver_initialization.py", line 90, in init
    driver = self.set_driver_for_browser(self.browser_name)
  File "/home/USER/.local/lib/python3.9/site-packages/facebook_page_scraper/driver_initialization.py", line 83, in set_driver_for_browser
    return webdriver.Firefox(executable_path=GeckoDriverManager().install(), options=self.set_properties(browser_option))
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/webdriver.py", line 61, in __init__
    self.proxy = backend.create(
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/backend.py", line 35, in create
    proxy = MitmProxy(addr, port, options)
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/server.py", line 43, in __init__
    mitmproxy_opts = Options(
  File "/home/USER/.local/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/options.py", line 147, in __init__
    choices=list(tls.VERSION_CHOICES.keys()),
AttributeError: module 'seleniumwire.thirdparty.mitmproxy.net.tls' has no attribute 'VERSION_CHOICES'

I faced this error successfully by commenting the Line 147 in file  /home/USER/.local/lib/python3.9/site-packages/seleniumwire/thirdparty/mitmproxy/options.py   out [self.add_option]:
#choices=list(tls.VERSION_CHOICES.keys()),
After those changes, the scraper works just fine. I assume that this procedure is not recommended for production purpose. However it might be a work-around for some cases.
I would be

After those changes, the scraper works just fine. I assume that this procedure is not recommended for production purpose. However it might be a work-around for some cases.
I didnt meant to close the issue. As the issue isnt solved, theres just a messy workaround :)

Even after commenting out line #147 #choices=list(tls.VERSION_CHOICES.keys()), I'm still getting the error AttributeError: module 'seleniumwire.thirdparty.mitmproxy.net.tls' has no attribute 'VERSION_CHOICES'. Any workarounds?

After tracing these exception messages, the problem is about the selenium-wire package and the related commit is available here.
The current solution is to upgrade the selenium-wire package to the 5.1.0 version.
Once upgrading the above package version, it should drop Python 3.6 version support in this package because the latest selenium-wire supports Python 3.7+ version only.


Progress bar obscures the header

e.g. https://ubicenter.github.io/ubicenter.org/child-allowance shows

@mgilbert1

@mgilbert1 this is just for this one testing page right? Which we can delete since it's not the right adaptation from ipynb to md/html?

Yeah that was just to see what it would look like, I’ll delete that once I start moving posts over

On Feb 12, 2021, at 7:19 PM, Max Ghenis<EMAIL_ADDRESS>wrote:
@mgilbert1 https://github.com/mgilbert1 this is just for this one testing page right? Which we can delete since it's not the right adaptation from ipynb to md/html?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/UBICenter/ubicenter.org/issues/25#issuecomment-778525315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRRZ7RIWJU6GMHJGXWRAV3S6XAQPANCNFSM4W27LOUA.

This was just in the weird child allowance ipynb post


The [Bug Report] el-tag component sets max-length = 100%, and the content cannot be adapted.

[
Element UI version
2.10.0
OS/Browsers version
win10/chrome v72
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/闭源项目，无公开连接，谢谢
Steps to reproduce
1,elt-ag设置 max-length = 100%
2.文本内容超过100个字符
What is Expected?
超长文本超出部分 为... 同时不会将colseable按钮给遮挡掉
What is actually happening?
组件编译后 ：文本 关闭按钮溢出父级


Many to many relationship get by id is not working

I tried to create a user & pet model in Many to Many relationship using mongoDB and sailsJS, db creation and loading the data's are just fine i checked in mongoDB for dbs and collection it exists. when i try to get the user list and pet list its showing me the contents but when i try to GET a single pet by its iD under user by his iD i'm not getting result
It shows "Response does not contain any data."
I tried to get PET like this "http://localhost:1337/user/54ffd28e9d9ee93c166c7500/pets/54ffd28e9d9ee93c166c7503"
I also tried to display the pet by its name instead of iD its also not working
my sails version is 0.11.0.. my OS is Win7 64 bit

Hello @erkstruwe , it looks there is not problem in MAC as in https://github.com/balderdashy/sails/issues/2664 .. but still a problem in Win7. Can you please guide me to troubleshoot..

See if this fix (taken from https://github.com/balderdashy/sails/issues/2658) helps. https://github.com/konstantinzolotarev/sails/commit/877ab3243dbcdfb3808cf52a20f0a0b8233cacb7

@erkstruwe  yea that fix's the bug
Thanks and regards
Anandapriyan


cli tool doesnt work in windows

./conflate_windows -data data.json -format JSON
parse file://C:\mypath/: invalid character "\\" in host name

fixed by #58

no it is still broken...


chore: remove the internal-objects annotation for gitopsservice [cherry-pick into v1.3]

What type of PR is this?

/kind bug

What does this PR do / why we need it:
Fixes #239
Have you updated the necessary documentation?
NA
Which issue(s) this PR fixes:
Fixes #239
Test acceptance criteria:
NA
How to test changes / Special notes to the reviewer:

closing this PR as the change can be merged into master branch using #240


autobrew.github.io is blacklisted by fortiguard as a "Malicious Website" url

Hi all,
The blacklisting has been in place since November 2022. Unfortunately, this breaks some R installers (like gert, which uses libgit2). I was wondering what may have caused the listing and if perhaps the domain owner could request deblocking. Unfortunately there are quite a few companies and universities using fortigate products.
You can check the listing here:
https://www.fortiguard.com/webfilter

Thanks for letting us know. It looks like we can request a review on https://www.fortiguard.com/faq/wfratingsubmit but that page does not seem to work for me.

I tried to get it re-evaluated through the web portal . I got immediate (automated) answer:

Your submission has been reviewed.
The category of hxxp://autobrew.github.io/
will continue to be 'Malicious Websites'.

I have now tried escalating it but I suspect they will ignore it since the block has been in place since November 2022 and not being the owner I have no way to prove the site is clean.
For anyone running into this: because fortiguard uses a capture portal website with a weird certificate on it, the issue may  present itself as a curl certificate error during an installation. For example, for gert:
package ‘gert’ successfully unpacked and MD5 sums checked
** using staged installation
Error in curl::curl_download("https://autobrew.github.io/archive/x86_64_linux/libgit2-1.4.2-x86_64_linux.tar.gz",  :
  Peer certificate cannot be authenticated with given CA certificates: [] SSL certificate problem: unable to get local issuer certificate

Execution halted

.. and the review failed within half an hour. Which would be too short for an actual review, so it seems the fortiguard blocklist does not really have a de-listing procedure which turns it into a DDOS tool. The irony.

Thanks for trying. I tried the same and got the same response. I don't know if it will make any difference if I own the domain..


FlatList Error

Description
When I navigate to the page which has FlatList,it will send the error "TypeError: undefined is not an object (evaluating 'props.getItem')",I have no idea,help!!!

And I checked my babel.config.js ,it's without "@babel/plugin-proposal-class-properties",but in my yarn.lock,it's came to my dependencies.

Version
0.66.0
Output of npx react-native info

Steps to reproduce
just goto the page which used FlatList
Snack, code example, screenshot, or link to a repository

try const renderItem = ({item}) => .... .... renderItem={renderItem(item)}

I tried, it didn't work; I have written before that this is OK, maybe it is my environment problem, I am going to create a new project to try this component

After I recreated the project, this component is fine, but the props are undefined in my current project

Yep, getting the same error, you can use patch-package to add this.props = props to the constructor, which should give you a temp workaround
constructor(props: Props<ItemT>) {
     super(props);
+    this.props = props;
     this._checkProps(this.props);
     if (this.props.viewabilityConfigCallbackPairs) {
       this._virtualizedListPairs =

I also met the same problem. Have you found a more appropriate solution...

I also met the same problem. Have you found a more appropriate solution...

Same here

@babel/plugin-proposal-private-methods was the culprit in my case. removing it, running yarn start --reset-cache and then running the app worked for me.
source: https://stackoverflow.com/questions/69922302/react-native-flatlist-undefined-is-not-an-object-evaluating-props-getitem

Even something as simple as this component results in an Error.
import React from "react"
import { FlatList, Text } from "react-native"

export default function HomeScreen() {
  return (
    <FlatList
      data={[
        { title: "one", id: "1" },
        { title: "two", id: "2" }
      ]}
      renderItem={({ item }) => {
        return <Text key={item.id}>{item.title}</Text>
      }}
      keyExtractor={(item) => item.id}
    />
  )
}

TypeError: Cannot read property 'getItem' of undefined

This error is located at:
    in FlatList (created by HomeScreen)
    in HomeScreen (created by SceneView)

Even something as simple as this component results in an Error.
import React from "react"
import { FlatList, Text } from "react-native"

export default function HomeScreen() {
  return (
    <FlatList
      data={[
        { title: "one", id: "1" },
        { title: "two", id: "2" }
      ]}
      renderItem={({ item }) => {
        return <Text key={item.id}>{item.title}</Text>
      }}
      keyExtractor={(item) => item.id}
    />
  )
}

TypeError: Cannot read property 'getItem' of undefined

This error is located at:
    in FlatList (created by HomeScreen)
    in HomeScreen (created by SceneView)

So for some reason it seems like the props are not being passed at all here
https://github.com/facebook/react-native/blob/48c7adc3bf574c6d592e9d1c1c4bd266f88063f7/Libraries/Lists/FlatList.js#L480

Are you able to solve the issue ? I am facing the same issue

Even something as simple as this component results in an Error.
import React from "react"
import { FlatList, Text } from "react-native"

export default function HomeScreen() {
  return (
    <FlatList
      data={[
        { title: "one", id: "1" },
        { title: "two", id: "2" }
      ]}
      renderItem={({ item }) => {
        return <Text key={item.id}>{item.title}</Text>
      }}
      keyExtractor={(item) => item.id}
    />
  )
}

TypeError: Cannot read property 'getItem' of undefined

This error is located at:
    in FlatList (created by HomeScreen)
    in HomeScreen (created by SceneView)

So for some reason it seems like the props are not being passed at all here
https://github.com/facebook/react-native/blob/48c7adc3bf574c6d592e9d1c1c4bd266f88063f7/Libraries/Lists/FlatList.js#L480

This became a nightmare for me at this point. A few days ago perfectly working app now stopped working without changing ANYTHING. It's literally the same code base, all I did was to close the emulator and code editor (not even the PC is restarted) and work on some other project for two days and come back and my apps were stuck on loading because of this error (App was already running fine)
So I close the terminals and re-run with npx react-native run-android and this appears. I don't know what happened. It seems to me the super(props) is not working but no idea why.

Are you able to solve the issue ? I am facing the same issue

Description
When I navigate to the page which has FlatList,it will send the error "TypeError: undefined is not an object (evaluating 'props.getItem')",I have no idea,help!!!    And I checked my babel.config.js ,it's without "@babel/plugin-proposal-class-properties",but in my yarn.lock,it's came to my dependencies.
Version
0.66.0
Output of npx react-native info

Steps to reproduce
just goto the page which used FlatList
Snack, code example, screenshot, or link to a repository

are you able to solve the problem

Fixed the issue,
Simply remove @babel/plugin-proposal-class-properties from the babel.config.js's plugins section.
Then run npx react-native start --reset-cache
Error will disappear.

Thank you, this worked for me. Importantly, must clear the cache.

Fixed the issue,
Simply remove @babel/plugin-proposal-class-properties from the babel.config.js's plugins section.
Then run npx react-native start --reset-cache
Error will disappear.

Thank you, this worked for me. Importantly, must clear the cache.

This doesn't work for those of us who need that babel plugin.

Any solution for the case when I need babel plugin?

Another (less ugly) way of fixing it is by moving the constructor to the top of the class, the problem, as stated in docs, is that tere are other statements between the begining of the class and the super(props).
You can make the change locally on node_modules/react-native/Libraries/Lists/FlatList.js and then add patch-package to fix it.
Just add  "postinstall": "npx patch-package",  in your package.json.
You will need the fix until the bugfix is merged and then you will need to install the version with the fix


target: Use root in file_exists check

Use case: To check if a kernel supports function profiling we need to
check for the presence of
"/sys/kernel/debug/tracing/function_profiler_enabled", but
"/sys/kernel/debug/"'s permissions are 700.

Seems ok to me, :+1 for merge.


Merge Chad's changes from https://github.com/broccolijs/broccoli-filter/pull/28

This merge's Chad's changes from https://github.com/broccolijs/broccoli-filter/pull/28 into this plugin.

Awesome! Will review and merge if good tonight. This plus @kellyselden fix of hash for dep may let us get babel/jshint persistent out this weekend!

That's awesome! Let me know if there is anything I can do.

Ember-cli's internal config replacer needs to stop invaliding on each rebuild
broccoli-jshint broccoli-jscs both also need to stop always rebuilding

Something more related to this, is getting broccoli-babel-transpiler using this pr

@zackthehuman window support has landed for hash-for-dep https://github.com/stefanpenner/hash-for-dep/commit/335d69b3fc7d6ed19b6b94551a7d5e943e084f8c

@stefanpenner Shall I bump the version in package.json in this branch?

Yup and remove the windows check.

Bumping to 1.0.0 of hash-for-dep break the tests. On my mac this happens: Error: Cannot find module '/User.//package.json'.
I haven't tracked down the source of the issue yet, though.

@zackthehuman It looks like my change may have broke OSX. @stefanpenner We may need to add OSX testing in Travis to prevent this.

merged the two git histories (as best as possible) and merged manually.

looking into the OSX issue now

@zackthehuman & @kellyselden I am unable to replicate that issue on OSX
@zackthehuman can you share reproduction steps?

@stefanpenner & @kellyselden Maybe my OSX issue was a fluke. I just pulled the latest from master and that branch works fine. Previously the steps to reproduce were: npm install and then npm test. Anyway, looks good to me now.

Anyway, looks good to me now.

lets assume a fluke, but keep in on our radar.
Just a headsup, im working to fix the last bugs with using this and the broccoli-babel-transpiler then i'll move on the jshint and jscs.


Add new EntryRecorded Event

Description
This PR introduces the EntryRecorded event to the Pulse package, offering developers an easy way to handle and respond to the creation of Pulse Entries.
Use Cases

Real-Time Monitoring: Facilitates tracking of Pulse Entries in real-time.
Custom Alerts: Developers can set up alerts for exceeding specific thresholds, like request durations, enhancing application performance monitoring.

Assurance of Non-Breaking Changes

The addition is a small, backward-compatible enhancement designed to leave existing functionalities intact.

Note on Testing

Specific tests for the EntryRecorded event are not included as it leverages core Laravel functionality for dispatching events, which is already well-tested and reliable. If mandatory I can add tests of course.

I don't believe we should dispatch the event here.
We want to do everything we can to psh work outside of the request / response lifecycle.
It would be better if we triggered the event from the storage driver, but then it means that every storage driver would need to trigger the event.
It would mean that the event would be triggered during a request if the application was using the storage ingest.
One thing I can think of is only allowing this functionality if the pulse:work command is active. That means any additional work would always be off the main thread.
One other concern I have here is that any listeners of this event might trigger Pulse recorders, e.g., imagine a HTTP request was sent in response to this listener and it was a slow request. We would then need to capture that as well but it would also send Pulse into an infinite loop.
Will think on a solution to all of this and see if we can come up with something that will have the least impact on the main thread and also no create potential infinite loops.

Thank you for your feedback. I am playing around with how Notifications could be implemented, and the infinite loop problem definitely exists :)
I personally like the way to listen directly for Pulse Events, but it might be getting too confusing for developers.
Another approach that will not need any changes to the Pulse main package would be to query the pulse_entries table via a scheduled job and completely skip internal Pulse logic.
I think this is the most robust way to do that.

@geisi  this is 100% on our radar and something we will look into. It will likely be a bigger project, so I'm going to close this one for now.
You will have to poll the pulse_* tables for now or alternatively you could create either a "decorator" driver or extend the existing storage driver to fire the event for you.
use App\Events\EntriesRecorded;
use Laravel\Pulse\Contracts\Storage;
use Laravel\Pulse\Storage\DatabaseStorage;

$this->app->bind(Storage::class, new class extends DatabaseStorage {
    public function store(): void
    {
        parent::store();

        EntriesRecorded::dispatch($entries);
    }
});


sshpk-agent fails to parse ed25519 keys

Using sshpk-agent in conjunction with node-smartdc, node-manta and node-triton, if I have my ed25519 key loaded into the agent it can't parse the data returned form ssh-agent.. This is compounded by the fact that my keys are encrypted so it can't fall back to the disk file.

I repro'd this locally with an ED25519 key in my agent.
sshpk now has support for ED25519 keys (though of course they're not very useful for anything but fingerprinting and conversion, since crypto can't sign or verify with them), and this now seems to all be working properly.
Please let me know if you have any more issues.


Worker warning messages: DEADLINE_EXCEEDED: deadline exceeded after 69.999

Set sslContext on WorkflowServiceStubs
      WorkflowServiceStubs.newInstance(
             WorkflowServiceStubsOptions.newBuilder()
                     .setSslContext(SimpleSslContextBuilder.forPKCS8(CLIENT_CERT, CLIENT_KEY).build())
                     .setTarget(TARGET_ENDPOINT)
                     .build());

Create client and workflowFactory, create worker and start factory

Let the worker run for some time, no need to run workflows

Getting following two warnings about every 1 minute with no workflows running:
io.grpc.StatusRuntimeException: UNAVAILABLE: Subchannel shutdown invoked
	at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:262)
	at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:243)
	at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:156)
	at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.pollActivityTaskQueue(WorkflowServiceGrpc.java:2702)
	at io.temporal.internal.worker.ActivityPollTask.poll(ActivityPollTask.java:99)
	at io.temporal.internal.worker.ActivityPollTask.poll(ActivityPollTask.java:39)
	at io.temporal.internal.worker.Poller$PollExecutionTask.run(Poller.java:262)
	at io.temporal.internal.worker.Poller$PollLoopTask.run(Poller.java:227)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

and
io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 69.999671598s. [closed=[], open=[[remote_addr=tihomir.temporal-dev.tmprl.cloud/<IP_ADDRESS>:7233]]]
	at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:262)
	at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:243)
	at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:156)
	at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.pollActivityTaskQueue(WorkflowServiceGrpc.java:2702)
	at io.temporal.internal.worker.ActivityPollTask.poll(ActivityPollTask.java:99)
	at io.temporal.internal.worker.ActivityPollTask.poll(ActivityPollTask.java:39)
	at io.temporal.internal.worker.Poller$PollExecutionTask.run(Poller.java:262)
	at io.temporal.internal.worker.Poller$PollLoopTask.run(Poller.java:227)

Worker still picks up workflow tasks, and you can run your workflows. Just these warnings keep popping up when worker is running but idle.
Used sdk verion 1.7.1 (cant test on 1.8.0 yet because of the maven issue, will test on 1.9.0)
Similar issue that was resolved: https://github.com/temporalio/sdk-java/issues/707
This is not related to test env (not using it)

@tsurdilo Have you seen this one recently? Wondering if it's still an issue or if it can just be closed.


"Open in Angle Editor" not included in menumap.json

Given that "Open in Angle Editor" is quite a common menu request, should we manually add it to the .json file?

We could, or you could just use 'Open Clip' instead.
On Tue, 27 Dec 2016 at 2:19 pm, Chris Hocking<EMAIL_ADDRESS>wrote:

Assigned #132 https://github.com/fcpxhacks/fcpxhacks/issues/132 to
@randomeizer https://github.com/randomeizer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fcpxhacks/fcpxhacks/issues/132#event-905394336, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADbEw8vcHeRPs7TLo0qio00nQbdkF7sDks5rMJHQgaJpZM4LWBPB
.

Good idea! Although, I think the problem with that is, then I have no way of knowing if it's a multicam clip or not?

Are you using that to test if it's multicam? Simply adding it to menumap.js
won't help prove that, since it just provides a number - it doesn't care if
the menu actuality matches that text.
On Tue, 27 Dec 2016 at 2:24 pm, Chris Hocking<EMAIL_ADDRESS>wrote:

Good idea! Although, I think the problem with that is, then I have no way
of knowing if it's a multicam clip or not?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fcpxhacks/fcpxhacks/issues/132#issuecomment-269267815,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADbEw30_QdP-wxJgRvw448BOA8Nc9jmqks5rMJMAgaJpZM4LWBPB
.

This is the code I'm currently using, which seems to work?
if menuBar:isEnabled("Clip", "Open in Angle Editor") then
	menuBar:selectMenu("Clip", "Open in Angle Editor")
else
	dialog.displayErrorMessage("Failed to open clip in Angle Editor.\n\nAre you sure the clip you have selected is a Multicam?\n\nError occured in multicamMatchFrame().")
	return "Failed"
end

It will work while FCPX is in English, because MenuBar will first check menumap.js for the menu you ask for, and if it can't find it, it will search manually. But I think you'll find it will fail in another language.

Probably a better solution longer-term is that I enhance the hs.finalcutpro API to be able to tell if the current timeline is the Angle Viewer.

Although that will be useful to have in the API - that won't really help in this case, as we basically need to detect whether the currently selected clip is a multicam clip or not. AFAIK, the only way to do this is whether or not "Open in Angle Editor" exists. I might have to rethink how the multicam match frame currently works.

Well, the way it would be helpful is if you 'Open Clip' and you end up in the Angle Editor, it was a multicam clip. It would be prefereable to check beforehand, but it's at least one way of testing.
Multicam match is a bit gimped at the moment anway, thanks to us having no idea which angle is actually selected once we get into the Angle Editor anway, right?

FYI, there is some information about angles, etc. that ends up in the clipboard when you copy a multicam clip. Way more than is in the UI of the timeline. That might be a better place to get the information, but it will require some more advanced parsing of the clipboard XML.

Of course! Genius!
I never thought about using the clipboard as a way to get information about clips - but that's a really clever workaround! That basically means we'll be able to get information about any clips really quickly and reliably. As you say, it will require some pretty crazy parsing of the clipboard XML - but I think long term, this will be really advantageous.

And yes, you're right - the multicam match frame feature is currently pretty useless. It was a lot more useful in 10.2.3, before Apple "jumped" to the correct timecode.

Closing this issue. Lets fix this in issue #43.


Issue: cyber_launch error of Common Component Example of the CyberRT framework

System information

Linux Ubuntu 18.04；
Apollo version 3.5；

Steps to reproduce the issue:
I am trying to repeat the step of  'cyber/examples/common_component_example/README.md' , but there are some warnings as follows：
(1) Documents of "cyber/examples/common_component_example" from Apollo 3.5  :

(2) Steps:

$ sudo passwd
$ su root
$ cd apollo
$ bash docker/scripts/dev_start.sh
$ bash docker/scripts/dev_into.sh
$ bash apollo.sh clean
$ bazel build //cyber/examples/common_component_example/...
$ export GLOG_alsologtostderr=1
//bash: cyber_launch: command not found, so I added “ source cyber/setup.bash”
$ source cyber/setup.bash
$ cyber_launch start cyber/examples/common_component_example/common.launch

(3) warning:

……
[ OK ] Finished setting up Apollo docker environment. Now you can enter with:
bash docker/scripts/dev_into.sh
[ OK ] Enjoy!
root@morven-Laptop:/home/morven/apollo# bash docker/scripts/dev_into.sh
root@in_dev_docker:/apollo#  bash apollo.sh clean
System check passed. Build continue ...
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
.
INFO: (04-13 00:40:55.338) Starting clean.
INFO: (04-13 00:40:55.348) Output tree moved to /root/.cache/bazel/_bazel_root/540135163923dd7d5820f3ee4b306b32/execroot_tmp_6440 for deletion
root@in_dev_docker:/apollo# bazel build //cyber/examples/common_component_example/...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (04-13 00:41:30.216) Found 3 targets...
INFO: (04-13 00:43:20.321) Elapsed time: 112.718s, Critical Path: 30.42s
root@in_dev_docker:/apollo# export GLOG_alsologtostderr=1
root@in_dev_docker:/apollo# cyber_launch start cyber/examples/common_component_example/common.launch
bash: cyber_launch: command not found
root@in_dev_docker:/apollo# source cyber/setup.bash
root@in_dev_docker:/apollo#  cyber_launch start cyber/examples/common_component_example/common.launch
[cyber_launch_9302] INFO Launch file   [/apollo/cyber/examples/common_component_example/common.launch]
[cyber_launch_9302] INFO
[cyber_launch_9302] INFO Load module [common] library: [common] [CYBER_DEFAULT] conf: [/apollo/cyber/examples/common_component_example/common.dag] exception_handler: []
[cyber_launch_9302] ERROR Subprocess Popen exception: [Errno 2] No such file or directory
[cyber_launch_9302] ERROR Start manager [common] failed. Stop all!
Traceback (most recent call last):
File "/apollo/cyber/tools/cyber_launch/cyber_launch", line 479, in
main()
File "/apollo/cyber/tools/cyber_launch/cyber_launch", line 466, in main
start(params.file)
File "/apollo/cyber/tools/cyber_launch/cyber_launch", line 407, in start
all_died = pmon.run()
File "/apollo/cyber/tools/cyber_launch/cyber_launch", line 259, in run
p.get_exit_state()
File "/apollo/cyber/tools/cyber_launch/cyber_launch", line 183, in get_exit_state
if self.popen.returncode is None:
AttributeError: 'NoneType' object has no attribute 'returncode'
[cyber_launch_9302] INFO All processes have been stopped.
root@in_dev_docker:/apollo#

Hi @Morven-X , Apollo versions prior to 5.5 was not actively maintained, please consider switching to Apollo 6.0+ or master if possible.

Hi @Morven-X , Apollo versions prior to 5.5 was not actively maintained, please consider switching to Apollo 6.0+ or master if possible.

Hi @storypku，Thanks for your reminding,  Apollo 6.0 is ok.


Orbit-db and electron

Hi, when i run orbit-db with electron i have error
Non-base58 character     at Object.decode (C:\final\2\1\node_modules\base-x\index.js:84:11)     at Object.fromB58String (C:\final\2\1\node_modules\multihashes\src\index.js:68:27)     at Function.isValid (C:\final\2\1\node_modules\orbit-db\src\orbit-db-address.js:22:74)     at Function.parse (C:\final\2\1\node_modules\orbit-db\src\orbit-db-address.js:36:25)     at OrbitDB.create (C:\final\2\1\node_modules\orbit-db\src\OrbitDB.js:230:38)     at <anonymous>
How to fix it?

Thanks, @nezzard and @ajayrao80. What version are you running? Did you recently run npm i?

Is there any chance you have an example repo of how you're configuring electron to orbitdb?

No further info provided. Closing but feel free to re-open if problems persist.


Getting Response with promise ?

Hi,
For multi-pages request I want to have access on header params.
I was using promise but I think there is someting wrong with this line
resolve(data, response); on api.js
Does Promise can handle multiple resolve value ?
also I don't see any test using response value.
for now I can use callback and I cannot resolve this without breaking existing code, maybe with an additional parmeter.
{ parameters: { returnResponse : true} } will produce => resolve({data, response});
Thanks,
Mica

Hi @mickz18 !
First of all thanks a lot for you feedback, it's very valuable for us in order to improve our SDK!
Would you mind providing us a comprehensive snippet of code with your case for a better understanding / action to improve your requirement?
Thanks!

Hi,
this is the change I made on my fork
https://github.com/Mangopay/mangopay2-nodejs-sdk/compare/master...mickz18:master
so I can use it like this on my code :
        let mangoUsers = [];         let currentPage = 0;         let per_page = 100;         let number_of_page = 1;         while (currentPage < number_of_page) {             let usersWithResponse = await api.Users.getAll({parameters: {per_page: per_page, returnResponse: true}});             number_of_page = usersWithResponse.response.headers['x-number-of-pages'];             mangoUsers = [...mangoUsers, ...usersWithResponse.data];             currentPage++;         }         return mangoUsers;
Of course I will change it to handle page browsing from my admin interface later but I will still need access to the response header.

getAll: function(callback, options) {
  return this._api.method('users_all', callback, options);
},

the Users.getAll function accepts a callback followed by options. In your case, with no SDK changes, we can call it like this if we want to read the header values:
api.Users.getAll(function(data, response){
    let number_of_page = response.headers['x-number-of-pages'];
}, {
    parameters: {
        per_page: 1
    }
});

Apparently the problem with passing multiple arguments to onFulfilled() was already raised.
One of the indicated solutions would be to use request-promise library, in order to get the full response instead of just the body. Ex:
var options = {
    method: 'DELETE',
    uri: 'http://my-server/path/to/resource/1234',
    resolveWithFullResponse: true    //  <---  <---  <---  <---
};

rp(options)
    .then(function (response) {
        console.log("DELETE succeeded with status %d", response.statusCode);
    })

The issue is that we are doing all the requests trough node-rest-client library, and the control over the request object is limited.
I like the idea of your solution, but I would like to to keep the code consistent with the other popular way of getting the response as argument for the callback.
api.Users.getAll(function (response) {
  // Read pages count
  console.log(response.headers['x-number-of-pages']);

  // Read body
  console.log(response.body);
}, {
  parameters: {
    per_page: 1
  },
  resolveWithFullResponse: true
});

After merging in the opened pull request and releasing the version, you will be able to use it in your case like:
let mangoUsers = [];
let currentPage = 0;
let per_page = 100;
let number_of_page = 1;
while (currentPage < number_of_page) {
    let usersWithResponse = await api.Users.getAll({
        parameters: {
            per_page:
        },
        resolveWithFullResponse: true
    }).then((response) => {
        number_of_page = response.headers['x-number-of-pages'];
        mangoUsers= [...mangoUsers, response.body];
    });

    currentPage++;
}
return mangoUsers;


Parenthesis character literal is treated like list

I don't know if this is the result of using alabaster, but given issues here and there, it may be coming from how Clojure Sublimed treats parentheses.
When using Clojure's character literal, it's displayed correctly for most characters. For lists, however, it seems to treat the parenthesis like a character and part of the form. For example, the following code prints Klay (#3), but highlights the character literal as part of the str form.
(def name "Klay")
(def lb-pos 3)
(println (str name " (#" lb-pos \)))

It doesn't mess with the second to last parenthesis, but it's still unpleasant to see, especially when used in long, complicated forms where a single one of these can completely change the meaning for a reader.

Sorry, I don’t understand what the problem is. It seems to be highlighted correctly? Pink if for constants and this is a constant, not a parenthesis

Oh, I see! It’s called bracket matching and as far as I know Sublime uses its own algorithm for that, ignoring color scheme and syntax. I have no way to affect that. It annoys the hell out of me too, sometimes


Add to linux cpu info Cores

CPU information must be about the processor. Cores is parameter.
Linux info it must look like Windows

Reworked the Windows output to make it look like linux.


Max's plan

I am planning on looking at frequency of mentioned test kits and beds in articles from comm_use_subset.tsv and try to sort them by states. Using that data I will try to build charts showing states with test kits and beds. I am thinking of using Python and can I have some guidance on how to start, please, as I am still new to Python?

See the libraries I linked to here
The overall task will be very similar, to Somya's but you'll be working on looking at a different set of words

Closing because of new semester


Remove undecorated functions and recursively add nonlocals and imports

Description
Recursively add nonlocals and imports from annotated functions. This fixes behavior both with decorated and undecorated functions. We can finally re-decorate all gtscript functions, because the original reason for introducing them is fixed.

bors try


How to use filter

Could you provide some more examples/information on how to use the filter features?

There are 2 level of filters in PocketBase:

Admin level filters (eg. Collection API rules; @request.* and @collection.* filters can be used only if you are authenticated as admin)
Public filters (aka. the ?filter query param; only the schema fields can be used)

You can find more information and some examples about the rules/filter syntax in:

https://pocketbase.io/docs/collections/#auth-collection
https://pocketbase.io/docs/api-rules-and-filters/
In the API Preview from the Admin UI for each collection

It is hard to give a concrete example without context and info of your collections structure, but here is how you can pass a filter using the JS SDK:
// get paginated list of "posts" records that are "active" and after a specific date
// (status and created are fields in the "posts" collection)
const result1 = await pb.collection('posts').getList(1, 20, {
    filter: 'status = "active" && created > "2022-08-01 10:00:00"'
});

// you can even query json or relation fields using the dot-notation
// the below will return all "posts" where the related "anotherSubRelField" records have title that contains the word "hello"
const result2 = await pb.collection('posts').getList(1, 20, {
    filter: 'relField.subRelField.anotherSubRelField.title ~ "hello"'
});

Feel free to open a Q&A discussion in the main repo with more information about your use case. If you think that the current documentation could be improved, you can also open a PR in the static site repo

Thank you for the insanely quick answer, @ganigeorgiev
I I was just about to make another post begging for a related example.
However, I'm glad to report that your response above clears up this question.
To be perfectly honest this driver is quite a bit different from any other I've used so far.
There are some things that are still hard to wrap my head around.
Here are a few more questions about the SDK, as I'm hoping to get a better grasp on the design philosophy of the driver.

Why isn't there a safe CRUD API (methods) that do not throw, and instead return an error object?
What is the reason for the ClientResponseError class not to have underlying types - for example the data object
Isn't it possible to make collections accept a generic with the shape of that table (or I think you call them collections) ?Something like what MongoDB does with their drivers when creating a reference to a collection.
How would one approach batch CRUDING instead of single operations?
I don't know if it is just me, but spawning many simultaneous connections at once makes some of them timeout. So, is it possible to define a config for the pb instance that automatically retries x times or increases the timeout of the fetch calls?

I think this is all I have for now.
Thanks in advance!

Why isn't there a safe CRUD API (methods) that do not throw, and instead return an error object?

Throwing errors is a more idiomatic JavaScript since the native methods doesn't return errors. Additionally, returning an error instead of throwing will require to deal with the error handling in multiple places, especially when the Promise-based syntax (aka. then().catch()) is used.

What is the reason for the ClientResponseError class not to have underlying types - for example the data object

The ClientresponseError.data contains information about the submitted the error fields, which API is used. Please also note that some APIs (eg. collections) supports nested fields submission, and the returned error in the data will be also nested with the key/index of the error.

Isn't it possible to make collections accept a generic with the shape of that table (or I think you call them collections) ?Something like what MongoDB does with their drivers when creating a reference to a collection.

You can pass a generic resolver type/interface to all crud related methods. For example:
await pb.collection("posts").getList<Post>(1, 20);

More information you could find in https://github.com/pocketbase/js-sdk#custom-record-types

How would one approach batch CRUDING instead of single operations?

Transactional batch create/update/delete is planned in the future but currently it is not supported.

I don't know if it is just me, but spawning many simultaneous connections at once makes some of them timeout. So, is it possible to define a config for the pb instance that automatically retries x times or increases the timeout of the fetch calls?

This is probably due to the autocancellation. You can disable it for individual requests using the special $autoCancel and $cancelKey query params or globally for all requests via pb.autoCancellation(false). You can learn more about the autocancellation in https://github.com/pocketbase/js-sdk#auto-cancellation.


Epitech Header support multiline file description

Didn't know that was allowed by the coding-style. Thanks for the addition!


PrintVariables produces config file that ReadConfigFile does not properly read

Expected Behavior:
The API function PrintVariables prints current parameters to a file, and ReadConfigFile reads parameters from a file.  Intuitively,  ReadConfigFile should be able to read the files that PrintVariables writes.  This is explicitly assumed within the ProcessPage function, where these functions are used together to "Save current config variables before switching modes" and then "Restore saved config variables".
https://github.com/tesseract-ocr/tesseract/blob/a873553593988407b7a9043c30c3010e0d066205/src/api/baseapi.cpp#L1293-L1306
Current Behavior:
Unfortunately, this does not currently work properly.  The issue is that PrintVariables prints parameter descriptions alongside key/value pairs (e.g. chs_trailing_punct1	).,;:?!	1st Trailing punctuation), and ReadConfigFile reads the description as a value (for string parameters).  An example showing this is below.
#include <tesseract/baseapi.h>

int main()
{
    tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();
    if (api->Init(NULL, "eng")) {
        fprintf(stderr, "Could not initialize tesseract.\n");
        exit(1);
    }

    static const char *kOldVarsFile = "failed_vars.txt";

    // Print default value of chs_trailing_punct1
    printf("Initial value: %s\n", api->GetStringVariable("chs_trailing_punct1"));
    FILE *fp = fopen(kOldVarsFile, "wb");
    api->PrintVariables(fp);
    fclose(fp);
    api->ReadConfigFile(kOldVarsFile);
    printf("After PrintVariables/ReadConfigFile: %s\n", api->GetStringVariable("chs_trailing_punct1"));

    api->End();
    delete api;
    return 0;
}

This returns the following:
Initial value: ).,;:?!
After PrintVariables/ReadConfigFile: ).,;:?!	1st Trailing punctuation

The impact of this is:

ProcessPage does not work correctly when used with retry_config
There is no simple interface for generating a config file with the user's current settings

This is useful for saving/restoring configurations (as ProcessPage attempts to do)

Suggested Fix:
The simplest solution would be to remove the descriptions from the PrintVariables output (or at least hide that behavior behind an option).  I can write a PR if others agree this makes sense.  Editing ReadConfigFile to ignore the descriptions is likely also possible, but could be higher effort.

Environment
Tesseract Version: 5.2.0
Commit Number: https://github.com/tesseract-ocr/tesseract/commit/15200c6fe7733f71a6cf52fbc1e4d94150f9f168
Platform: Linux ubuntu 5.15.0-43-generic

The simplest solution would be to remove the descriptions from the PrintVariables output

We don't want to do this because that function is used by the command line tool and we need the descriptions in that case.
https://github.com/tesseract-ocr/tesseract/blob/0daf18c2028e5217cd996522816c3dd2ec1a4198/src/tesseract.cpp#L721-L724

@amitdo Good point.  How about adding an option to PrintVariables for whether info text should be included  (enabled by default, but disabled for the call within ProcessPage).

What about using:
if (fp == stdout)
or:
(fp == stdout) ? ... : ...
in:
https://github.com/tesseract-ocr/tesseract/blob/60fd2b4abaa9c5c5c42d32db57576bc95d28a78a/src/ccutil/params.cpp#L164

@amitdo Works for me.  Added PR #3947.

The regression was added in c51691fde in 2014, a long time ago, so all relevant releases are affected.

Obviously the argument retry_config for the API functions ProcessPages and ProcessPagesFileList which triggers the regression was not used for years. Is it useful? If not, we simply might drop the support for it.

I think the ability to dump the user's current parameters and easily restore them later is useful (we're implementing a feature in Tesseract.js that tries to do this using PrintVariables/ReadConfigFile).
Adding a new function that writes a config file without the info text (suggested in the PR #3947) seems like an easy and effective solution.  I looked into whether ReadConfigFile could be tweaked to ignore the info text, however this seems potentially tricky/error-prone.  My first thought was to read everything to the first space character as the parameter value, however at least one parameter uses space character(s) as values (the default value of page_separator is \n).

I think the ability to dump the user's current parameters and easily restore them later is useful

Related issue: #3260

I looked into whether ReadConfigFile could be tweaked to ignore the info text, however this seems potentially tricky/error-prone. My first thought was to read everything to the first space character as the parameter value, however at least one parameter uses space character(s) as values (the default value of page_separator is \n).

ParamUtils::PrintParams uses KEY TAB VALUE TAB COMMENT.

This comment and the comment below it are also related to this issue:

https://github.com/tesseract-ocr/tesseract/issues/3670#issuecomment-985273726

ParamUtils::PrintParams uses KEY TAB VALUE TAB COMMENT.

Okay, if we are confident that VALUE will never include tabs, then I can edit ReadConfigFile to only read until the first tab.  If this is not the case, then I can do the separate DumpParameters function.

@stweil Do you believe it's safe to assume that tabs will not be used as parameter values (so it is safe for ReadConfigFile to read everything up to the tab and ignore everything after)?

I created a new PR (#4074) based on @stweil's idea to implement by adding a new function in https://github.com/tesseract-ocr/tesseract/pull/3947#pullrequestreview-1146878163.


add control statements example

A little example on control  statements, this may serve as the first example. It's rather easy and should give students confidence.

This is now superseded by #76 where I extended this branch with better cases for switch and while. @roiser if you can review it and confirm it works fine


feat(kit): exposeRuntimeModuleConfig util

🔗 Linked issue

❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[x] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
A common use case that I've come across with modules is needing to expose the module config to the app and nitro runtimes. There are a few common ways people do this, all involving quite a bit of boilerplate with no TypeScript support.
This function allows you to simply expose the values in an opinionated way.
export interface ModuleOptions {
  myOption: { foo: string }
}

export default defineNuxtModule<ModuleOptions>({
  meta: {
    name: 'nuxt-my-module',
  },
 defaults: {
   myOption: { foo: 'bar' }
 },
 async setup(config, nuxt) {
    exposeRuntimeModuleConfig('nuxt-my-module', config)
    // config now available at #nuxt-my-module/config
  }
})

.nuxt/modules/config/nuxt-my-module.d.ts
// generated by nuxt-my-module
import type { ModuleOptions } from 'nuxt-my-module'

declare module '#nuxt-my-module/config' {
  export const myOption: 'bar' | ModuleOptions['myOption']
}

composables/foo.ts
import { myOption } from '#nuxt-my-module/config'

export function useFoo() {
   return myOption.foo // typed to 'bar' or ModuleOptions['myOption']
}

Currently testing this in production on most of my modules.
Ideally, this function would use another more general function such as exposeObjectExport(alias, fileName, object), which could be used to expose arbitrary data that is needed in the runtime.
This is a draft until I can write some doc but open to feedback on any the opinionated decisions:

the function name
the export name #{modulename}/config
the types location, currently .nuxt/modules/config/${moduleName}.d.ts
type generation, is there a better way? knitwork seems it would do the job but also a bit overkill
primitive values jsonified

📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

I really do love the idea that we are providing a kit utility to automate injecting config.
This method of injecting (using a generated template) is mainly what app config layer does which i plan to also include in Nitropack. We already reserved appConfig.server namespace so that's a possibility to instead of generating them.
Alternatively, if we keep it, i would suggest to call it exposeBundledConfig/addBundledConfig that avoids confusing with runtime config which is handled completely differently (env based, string, runtime assignable)

Going to close for now, while we did discuss a solution of using runtime config I think the examples provided in the new module author guide are enough.


Rename DisableConvertConstantFoldingOnConstPath to MarkDequantization…

…Subgraph
Related to https://github.com/openvinotoolkit/openvino/pull/11212

can be closed or still valid?

@mateusztabaka can we close this PR? It seems obsolete


bug: unable to download package - 403

Pulumi version
v3.38.0
Provider version
v1.1.2
Steps to reproduce
unable to download the plugin
https://get.pulumi.com/releases/plugins/pulumi-resource-checkly-v1.1.2-windows-amd64.tar.gz
This url gives 403
What is expected?
Should be downloaded easily
What is actually happening?
Giving 403
[resource plugin checkly-1.1.0] installing
warning: Error downloading plugin: 403 HTTP error fetching plugin from https://get.pulumi.com/releases/plugins/pulumi-resource-checkly-v1.1.2-windows-amd64.tar.gz
System Info
No response
Any additional comments?
No response

Till then the available option is
pulumi plugin install resource -f=<path>\pulumi-resource-checkly-v1.1.2-windows-amd64.tar.gz checkly v1.1.2

Hey @krnbr, we're shipping a fix to Pulumi to address this, tracking the issue here: https://github.com/pulumi/pulumi/issues/10648

This should be resolved in 3.39.3, installing the node module or plugin via other means should automatically install it. Please let me know if that doesn't work!

@AaronFriel I am having this problem
Pulumi version: 3.58.0

@Marwennnne, which provider version are you using?

@ianaya89 v1.1.2
I tried with v1.1.4 same thing

I didn't have this problem in my CI CD until today

Are you on the latest version of the Pulumi CLI?


Revert "Kotlin native fixes"

Reverts bmaslakov/kotlin-algorithm-club#3
This breaks both compilation (kotlin 1.3 required) and tests. Will look into it later.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@48ac273). Click here to learn what that means.
The diff coverage is 60%.

@@            Coverage Diff            @@
##             master       #5   +/-   ##
=========================================
  Coverage          ?   60.35%
  Complexity        ?      272
=========================================
  Files             ?       47
  Lines             ?      850
  Branches          ?      210
=========================================
  Hits              ?      513
  Misses            ?      270
  Partials          ?       67

Impacted Files
Coverage Δ
Complexity Δ

.../uuddlrlrba/ktalgs/datastructures/PriorityQueue.kt
76.08% <60%> (ø)
16 <0> (?)

Continue to review full report at Codecov.

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


Server Side rendering with Nuxt

When I import openapi-explorer as a Vue Plugin Docs, it freezes with the following error.

Any ideas?

So it isn't a plugin, so I'm not surprised that it's causing a problem like that. Is there a reason it's being imported that way instead of just importing as you would with any other internal component?

With import 'openapi-explorer'; on the component only, nuxt shows the same error and also freezes.

I'm going to try to look into if we can expose an non-minified version to see if that can help, in the meantime, if you can share a minimal reproduction, that would definitely help us to investigate what might be going on.

Found this error and had no luck on solving it.
Module build failed (from ./node_modules/babel-loader/lib/index.js):                                                                                friendly-errors 10:24:01 TypeError:/src/.nuxt/client.js: this.setDynamic is not a function

Do you have a reproduction example that we can use to look into the problem you are seeing. From this result Babel suggests the issue is mismatch in the babel config and dependencies.

Uninstalled all babel plugin, and discovered  "presets: ['vue-app']" is the module causing trouble.

Cannot find module '@skatejs/ssr/register'

I didn't have any trouble with npm install @skatejs/ssr, are you running into something different?

Installed the dependency and returned to the starting point with the self issue.
We are trying to include openapi-explorer as a component on this nuxt template.
Mithech Nuxt Template
Will keep you updated.

Okay I figured out the best way without any complicated tricks here, it looks like some of these packages aren't supported anymore and nuxt doesn't do this vanilla straight out of the box. So here's a working solution:
In the vue component add explorer to be rendered on the client side:
<template>
  <div class="container">
    <client-only>
      <openapi-explorer spec-url="https://petstore.swagger.io/v2/swagger.json"></openapi-explorer>
    </client-only>
  </div>
</template>

<script>
export default {
  created () {
    if (process.client) {
      require('openapi-explorer')
    }
  }
}
</script>

Thanks a lot. It's working perfectly. Hope that we can show you the final product soon.

Awesome glad to hear it. :+1:


No template for invoice

I have installed invoice2data and created a template for a particular invoice. But still it says no template for the invoice.
I have attached the template and the pdf I am trying to convert.
Invoice_Exp_Dec001_Veneklasen.pdf
Template code
issuer: Veneklasen
fields:
  amount: Total(\d+\.\d+)
  date: InvoiceDate:(\d{1,4}\-\d{1,2}\-\d{1,4})
  #invoice_number: InvoiceNo:(\W\w+)
  invoice_number: InvoiceNo:(\S+)
  order_id: OrderID:(\w{2}\d{16,18})
keywords:
- Veneklasen
- India
options:
  currency: INR
  remove_whitespace: true

Can anyone please help me on this?

Hi,
Can you pos

template file

Hi,
Can you post the final template for the pdf you posted related to Veneklasen
thank you, Ivan

I have installed invoice2data and created a template for a particular invoice. But still it says no template for the invoice.
I have attached the template and the pdf I am trying to convert.
Invoice_Exp_Dec001_Veneklasen.pdf
Template code
issuer: Veneklasen
fields:
amount: Total(\d+.\d+)
date: InvoiceDate:(\d{1,4}-\d{1,2}-\d{1,4})
#invoice_number: InvoiceNo:(\W\w+)
invoice_number: InvoiceNo:(\S+)
order_id: OrderID:(\w{2}\d{16,18})
keywords:

Veneklasen
India
options:
currency: INR
remove_whitespace: true

Can anyone please help me on this?

Can you post the final templte for Veneklasen?
Thank you, Ivan

@tanmaysri: I've put your template in my templates folder and it sort-of works:
invoice2data --template-folder tpl Invoice_Exp_Dec001_Veneklasen.pdf
Loaded 38 templates from /home/rmilecki/praca/healthy/ocr/tpl
Loaded 141 templates from /home/rmilecki/projects/invoice2data/src/invoice2data/extract/templates
Using veneklasen.yml template
{'issuer': 'Veneklasen', 'amount': [], 'date': [], 'invoice_number': [], 'order_id': [], 'currency': 'INR', 'desc': 'Invoice from Veneklasen'}

You need to:

Put your template in a correct directory (folder)
Fixup your regexes.

Your invoice has Total51,900 so it won't be matched by Total(\d+\.\d+) because of different separator (, vs .).
Your invoice has INVOICEDATE:20-Dec-18 so it won't be matched by InvoiceDate:(\d{1,4}\-\d{1,2}\-\d{1,4}) because of lower/upper letters and \d{1,2} expecting 2 digits not a Dec


Making Glass At Furnace XP Drops Don't Count

Just encountered that making glass at a furnace doesn't count for turning off the idle notification.
love the plugin!!
e; while im here, can firemaking be added please? thanks :)

Thanks for the heads up, I'll take a look at the glass issue and I'll add firemaking while I'm at it!

I opened the pull request so it should be in Runelite within a few days. Thanks for the feedback!


how to use spring RestTemplate, RestClient, WebClient

Depends https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/11038

@jeanbisutti please check again

@jeanbisutti please check again

LGTM Thanks!

/fix:all


Orientation Solution Implementation (Vision-EKF)

Position estimation in the Vision-EKF is fully implemented and working, but the orientation estimates diverges at some points in the runtime. The orientation model Jacobian has been calculated using SimuPy, and is a massive 3x3 matrix, which is incedibly hard to debug.

Sucess was had when the measurement was transformed to world frame and the complicated measurement model and ugly Jacobian was foregone in that way. The filter estimates orientation now, however there is something weird with the transformation we are getting to world. Need to look into that and debug it.

This can safely be closed now. The issue of fixing the orientation is mostly handled, and taken up in newer issues.