[ci skip] adding user @duncanmmacleod

Hi! This is the friendly automated conda-forge-webservice.
I've added user @duncanmmacleod as instructed in #269.
Merge this PR to add the user. Please do not rerender this PR or change it in any way. It has [ci skip] in the commit message to avoid pushing a new build and so the build configuration in the feedstock should not be changed.
Please contact conda-forge/core to have this PR merged, if the maintainer is unresponsive.
Fixes #269

Ping @conda-forge/root.


Basic Go build workflow

Tests are not enabled yet, because they're failing.
Added also b_norepl build flag to make the build succeed.
You can see it run in the PR on my fork: https://github.com/stefanb/rye/pull/1 or https://github.com/stefanb/rye/actions

Hi Stefan! This is great! More than great Thank you! Rok just mentioned me that it would be nice to establish CI at some point. I have no concrete experience with this so this is great help. I will make tests work. There are currently Go tests, made more long ago when I was still working on interpreter and new tests in Rye, which are actively being developed.
How does the CI system know if tests passed? Does it use exit code of a process or is there any other mechanism? Would it be problematic to build Rye and then use the binary that was built, to run all the Rye tests?
I will merge this. Thanks again!

With run steps you can run any command, exit code 0 indicating success, anything else a failure.

I think you should enable actions in the repo settings:
https://github.com/refaktor/rye/settings/actions


Reduce boilerplate for implementing alternate versions of Distributions

          Nice looks good. As we discussed its a lot of copy and paste so ideally we should have an issue to track changes we can make to reduce this (either here or upstream).

Originally posted by @seabbs in https://github.com/CDCgov/Rt-without-renewal/pull/418#pullrequestreview-2240263779

To flesh this out a bit. Implementing SafePoisson and SafeNegativeBinomial was done in a really boilerplate way, involving a lot of copy and paste from Distributions.jl and RandomPoisson.jl.
Possible preferable alternatives:

A macro based approach which generates the various functions to make a Safe version of a dist e.g.

@make_safe_distr Poisson
# SafePoisson is available

A traits based approach where we can make a trait-based dispatch without having to redeclare a lot of auxillary functions e.g. something like

@traitdef IsUnsafe{Poisson}
@traitfn rand(d::Poisson) where {Poisson; IsUnsafe{Poisson}} = safe_rand_method(d)


Doxy documentation in send_event.h and full stops in send_event.cpp.

Hi there,
This PR is just doxy commenting where I can fill in a bit of documentation and also providing the framework where I have not completed the documentation.  On that topic, I've listened to arguments in the past that "No documentation is better than incomplete documentation!", but I've never actually seen those arguments pass muster when put to the test in the real world.  In general, I think that when developers see a gap they work to fill it.  I hope this is useful, even if incomplete.
And on that note, if this PR generates the rest of the documentation, excellent!  Let me know what to add.
Let me know if you have questions on this PR!
-Mark

Hi Mark,
Personally I'm very pleased to see this. I put a comment against a few missing things, most of which I now assume perhaps you knew were missing?
Assuming the fact you didn't add an @brief and some other docs means that you didn't know what the things were for, I think that we should probably assign to someone and ask them. If you can't work it out from the code and it is undocumented then that is a problem  - the ones you can work out are less so :-)
IF you get no engagement/answer from the owner then perhaps we add an @todo (I assume doxygen has something for that) and just note what is missing?

Great. Others might have a different view, but I tend to think that if you have docs, people will come :-)

I agree with you!  When I want to figure out what a method/function does, the first thing I do is go to the header file and see if someone who cared about it took the time to describe it for me! :)

@bkueng , any additional review comments I should attend to?  Thanks.
-Mark

For anyone wondering about code comments and doxygen or other code documentation tools and whether this PR or others are worth the effort, I think that code documentation is one of the biggest time savers for on-boarding newcomers to any project or organization for individuals utilizing a new code base than any other tool I've encountered, and it also produces better quality code.
I ask two things of new hires in my teams, 1) Read the docs, and 2) If there aren't docs, write them.  This has a profound effect on code quality.  That is why I would like to see this PR progress and others like it.  I'll keep submitting more complete documentation as I encounter new code if the work is accepted.  The work will still happen even if it doesn't make it upstream because it is a good exercise and a hallmark of professional code bases.
-Mark

Other than one typo, this works for me. @bkueng Can you merge this please?

@bkueng , it really is OK if you would prefer to just decline this PR, I mean it, it's not offensive.
Just for consistency in the code base, if this PR is declined, should we omit doxy comments in future PRs?  Thanks!

I would prefer this not be declined without clear reasons.

@bkueng @mcsauder Thanks guys. Been a bit of a slog.
Beat, sorry about the annoying insinuation you might reject for no reason. Of course not!
Next step, need to summarise the new "standard" in docs, probably below http://dev.px4.io/en/contribute/#code-style-formatting

FYI, next step is https://github.com/PX4/Devguide/pull/593


Where can I find a Quick Start Video to install DevOps Shield from Docker Hub?

You can find the installation guide video here.


[Feature Request] Implement GetSearchAttributesRequest

I want to be able to search the workflows and activities programatically (it is already possible in java)

I'm currently integrating temporal and I want to be able to write integration tests, where I want to check the states of some workflows. Currently I need to run shell tctl command from PHP to get the data I need. Or maybe I just didn't notice where the API for this is hidden.

Describe the solution you'd like

It would be sufficient to get the same functionality as in the java sdk

Have you checked the ServiceClient? https://github.com/temporalio/sdk-php/blob/master/src/Client/WorkflowClientInterface.php#L22
It has all the Temporal API.

yes, sure, but it would be really nice to have better support for search than just creating grpc requests manually

Sure. Can you point me to the Java reference you are looking for?

https://github.com/temporalio/sdk-java/blob/master/temporal-sdk/src/test/java/io/temporal/workflow/SearchAttributesTest.java

now when I look at it, it seems that the Java sdk doesn't have this functionality either, sorry for the confusion... so basically it would be nice to just pass the query to some client instance and get results

Got it. For now, please stick to GRPC or create your wrapper at top of it. We can think about easier to use search API after dealing with the rest of the backlog.

Sounds like the solution is to use a user-defined GRPC wrapper as in Java. Closing for now.


[e2e]: delegator-generic workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5816617511
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Thu Aug 10 03:33:42 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5816743725
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Thu Aug 10 03:59:06 UTC 2023
Tests are passing now. Closing this issue.


Is there interest for vcpkg support?

I have modified my custom RDKit source to support building using vcpkg which simplifies Windows builds dramatically,
Getting vcpkg working requires some small changes to CMakeLists.txt here and there but overall the modifications are minor and seem not to interfere with builds without vcpkg.
So @greglandrum  would there be interest for a PR?

@SPKorhonen : Definitely. This has been on my ToDo list for quite a while now.

Good to hear. Please find the relevant modifications in PR #6794.

I raised an issue about this on vcpkg: https://github.com/microsoft/vcpkg/issues/30007 but there wasn't much interest and I didn't have time to look into it myself.
I think this would be very useful if it could be done.


Code snippet error in api.slack.com tutorial

Reproducible in:
slack-bolt==1.0.0
slack-sdk==3.0.0
Python 3.8.2
Microsoft Windows [Version 10.0.18363.1198]

The Slack SDK version
slack-bolt==1.0.0
slack-sdk==3.0.0
Python runtime version
Python 3.8.2
OS info
Microsoft Windows [Version 10.0.18363.1198]
Steps to reproduce:
Follow this guide: https://api.slack.com/start/building/bolt-python
Expected result:
Opening the Home tab should result in Home tab being published to.
Actual result:
Home tab is not published to. Instead, receive an error:
Error opening modal: 'WebClient' object has no attribute 'view_publish'

As the fix has been deployed, let me close this issue now. Thanks again for reporting this!

def update_home_tab(client, event, logger) needs a colon at the end

Ah, you're right. I will send another fix for it.

The fix has been deployed. Thanks!


bug fix

@hynix @Minutis will this work with older spark versions? Maybe we should add hadoop version variable to release matrix in github actios pipeline?
And please, use more descriptive commit messages and merge request titles next time we use those in release notes :/

@hynix @Minutis will this work with older spark versions? Maybe we should add hadoop version variable to release matrix in github actios pipeline?
And please, use more descriptive commit messages and merge request titles next time we use those in release notes :/

Probably You missed something: https://github.com/exacaster/lighter/pull/59/files

@hynix @Minutis will this work with older spark versions? Maybe we should add hadoop version variable to release matrix in github actios pipeline?
And please, use more descriptive commit messages and merge request titles next time we use those in release notes :/

Sorry about messages - our bad :)


UV editable install fails on databricks shared cluster

Try to run: %sh uv pip install -e .
Results in :
%sh uv pip install -e .
error: Failed to download and build: `my_package @ [file:///Workspace/Repos/<user>/<repo>`](file:///Workspace/Repos/<user>/<repo>%60)
  Caused by: Failed to build: `my_package @ [file:///Workspace/Repos/<user>/<repo>`](file:///Workspace/Repos/<user>/<repo>%60)
  Caused by: Build backend failed to determine extra requires with `build_editable()` with exit status: 1
--- stdout:
running egg_info
writing my_package .egg-info/PKG-INFO
--- stderr:
error: [Errno 1] Operation not permitted: '/Workspace/Repos/<user>/<repo>/my_package .egg-info/tmptjepatrp'
---

As simple pip install -e . without UV works.

Do you have write permissions to the directory?
Can you share verbose logs for pip?

@zanieb sorry for late response, got distracted with other stuff at work at that time. I don't have access to databricks anymore so can't provide an MRE at this time

No worries! Going to close for now since it will be hard for us to make progress on this.


Incorporating copy mechanism in decoder

I'm really enjoying this library, thanks for your work. Just curious, are there any plans to implement some sort of copying mechanism for decoding, e.g. CopyNet (https://arxiv.org/abs/1603.06393)?

Thank you for using Texar! Unfortunately we don't have current plans to add built-in support for copying mechanism.
That said, given what's already in the library, it shouldn't be too difficult to implement the copying mechanism based on AttentionRNNDecoder; you would only need to modify the initialize(), step(), and next_inputs() methods: https://github.com/asyml/texar-pytorch/blob/95f3d644680656f38b7b1779f2ba184ef9e1f81a/texar/torch/modules/decoders/rnn_decoders.py#L556-L600
If you have a working implementation, you're more than welcome to create a pull request and contribute to the library!

Ok, I may try to do that at some point. Thanks!


Use dict to speed up record search

This dict is created earlier, presumably to speed up this exact lookup, but it was using the list form instead, requiring a linear scan for each item.

Thanks.


Sphinx docs - add hyperlinks

Add hyperlinks to source code in RTD.
Add hyperlinks to Type definitions (if possible) in RTD.

Done with commit https://github.com/gumyr/build123d/commit/65017b6ccd017ed6753e72ca8960c914985dffe8


【Zig 日报】2024-07-19 Zig book: an open book that provides an introduction to the Zig programming language,

https://pedropark99.github.io/zig-book/

This an open book, meaning that, it is open-source, and it will always be open for anyone that wants to read it. However, this book is still under construction 🚧 and active development, so, it’s contents might change drastically in the near future.
Also, this is a project-based book, which means that we learn how to use the Zig programming language through small and simple projects, in a similar style to the famous “Python Crash Course” book from Eric Matthes.
Official book’s repository: https://github.com/pedropark99/zig-book
About the author
Pedro Duarte Faria have a bachelor degree in Economics from Federal University of Ouro Preto - Brazil. Currently, he is a Data Platform Engineer at Blip1, and an Associate Developer for Apache Spark 3.0 certified by Databricks.

Hi


Spring Cleaning (meta issue)

Deprecated and unused packages
react-components:

[x] moment, deprecated
[x] awesome-typescript-loader, outdated typescript peer dep, archived repo
[x] istanbul-instrumenter-loader, outdated webpack peer dep, archived repo, also shouldn't this be in devdeps?

dashboard:

[x] styled-components, do we really need this since we are mostly using @material-ui/styles?
[x] gh-pages, publishing to gh pages is no longer feasible as this has become a full stack app
[x] react-test-renderer, do we need this since we are using @testing-library/react?
[x] @msgpack/msgpack, don't need this anymore as we are no longer using ros2-bridge
[x] typeface-roboto, deprecated, use @fontsource/roboto instead

ros2-bridge:

[x] move this to its own repo because we are no longer using ros2-bridge in any of the packages

rmf-auth:

[x] gh-pages, don't think this is used
[x] react-test-renderer, do we need this since we are using @testing-library/react?
[x] styled-components, do we really need this since we are mostly using @material-ui/styles?
[x] typeface-roboto, deprecated, use @fontsource/roboto instead

Re-organizing

[x] move e2e to it's own package outside dashboard

Others

[x] migrate to ~yarn~ lerna, removing the existing bootstrap scripts
[x] generate pylintrc files, pylint doesn't support inheriting configs like eslint, but it does support generating a config file based on another.
[x] look at improving the e2e test flow, remove authentication for most tests, run authentication tests separately. Combine multiple test suites to avoid restarting the browser/session unnecessarily.
[ ] rename packages, currently blocked. Need to know which registry we are publishing to and the organization name, if any.
[ ] rename api-server to rmf-server, also see above on org name
[ ] rename api-client to rmf-client, also see above on org name

closing this as most of the issues have been resolved, the remaining ones require knowledge about the release process, which shall be determined when the time comes.


GUI - Add home command and select student functionality

Also added documentation for newly added classes in pr #107 , except for CommandTargetType (in parser package)
Gradle check is failing due to outdated test cases, however PR is ready to merge

LGTM! 👍


project name / file directory name : javascript card tilt animation

Thanks for the PR. It has been merged.
I'll be glad if you can leave a star on this repository.


Model Weights Diff

What is the format of and how are the model weights diff combined into the base weights?
Is there a script to merge them?

This is not the training and serving repo. The training and serving framework is located at EasyLM.


Synapses in the same workflow as ionchannels

Synapses should be FlowChannels. Synaptic reversal may be ionic or internal. If synapse has ionic reversal adding we have to add synaptic ionic currents when building the neuron.

What to do

Want to generalise synapses to allow for:

actuation of ionic currents, as well as voltage
sensing of general species, as well as voltage

How? One proposal:

Each synapse builds an ODESystem similar to channels as now.

The synapse abstract supertype has {pre_sensed, post_sensed, actuated}: Nested tuples of the relevant species.

build_neuron instantiates current variables for each synapse, indexed (in their name) by:

synapse number
actuated species

A new function:

function connecting_equations(synapse_system, pre_neuron_system, post_neuron_system)

end

which is independent of the synapse ODESystem constructor. This builds the connections currently done manually in add_connection().

This would be an improvement.
Another benefit is that by making each synapse build an ODESystem, the user is free to add other keyword arguments to this system (such as events).
I'll see if I have some time to get on this.


Feature/server stack trace

Allow colored output (stdout and stderr) in hot server mode
Improves stack traces on server side code

changes to

Please try to convince me on these changes.

The stack trace still contains a lot of crap which is probably not related to the actual code the developer has been written.
The colors with some red in the stacktrace... what is the idea behind this?
The stack trace still lists build file positions before source file positions. I figure it would be great to have the whole stack trace mentioning source files only.

This is the stack trace generated by V8 and annotated by source-map-support. The red highlighted rows are the ones that have a reference to the original code. The other ones are webpack helper code or nodejs code.
I tried to be not too radical but to solve all your proposals/questions every muted line simply should be hidden.
I will change this so the stack trace is much more reduced. Maybe a command line/env option should reenable the whole stack trace if something in webpack code or nodejs code is wrong.
As you see in the first red line the stack name generated by source-map-support is sometimes strange, I will try to figure out what happens there later...

Stacktrace is now:

Much better 👍


Unable to access Admin Server with provided URL

I have created a new WebLogic domain using the script
./create-weblogic-domain.sh -i create-weblogic-domain-inputs.yaml -o
And I have set
adminNodePort="30701"
exposeAdminNodePort="true"
The script finishes successfully and the domain is created and up and running.
But I cannot access the AdminServer on the URL the script provided. The script finished with the message:
Administration console access is available at http://<IP_ADDRESS>:30701/console
...
But I cannot access this URL (i.e. this IP address) - neither from the kubernetes "client" from which I provisioned the domain (this is my VBox image) nor from the kubernetes master or any of the k8s worker nodes.
I can see that the port 30701 is provided through hyperkube and that I can get to http://localhost:30701/console on all my three k8s cluster nodes (master and two worker). But I am unable to access the URS using the provided IP address (<IP_ADDRESS> in my case). I am also unable to see this ip-address allocated to any of my three k8s nodes.
kubectl get service -n wlsdomain1 shows:
NAME                                    TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
wlsdomain1-adminserver                  NodePort    <IP_ADDRESS>           7001:30701/TCP   30m
...
And I can get to http://<IP_ADDRESS>:7001/console
So - what am I missing to reach http://<IP_ADDRESS>:30701/console ?? From where should this ip be accessible?

OK - I see ...
kubectl cluster-info returns:
Kubernetes master is running at https://<IP_ADDRESS>:443
KubeDNS is running at https://<IP_ADDRESS>:443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
And I can do curl -k https://<IP_ADDRESS>:443
but NOT curl -k http://<IP_ADDRESS>:30701 (=> failed to connect)

The IP address is the loadbalancer of the master node ... automatically provisioned through terraform.
So I needed to modify the loadbalancer configuration on OCI:
create a new backend backend pointing to my master node, port 30701
create a new backend set using session persistence (in case I might add a second master node)
create a new listener for the loadbalancer using http protocol, listen on 30701 and forward to the above backend set
Now I can use the URL provided from the create-weblogic-domain script to access the admin server console. Hurra :-)


Adding link to SIParCS presentations and GitHub usernames

As discussed in #30
I couldn't find the GitHub username for a few interns: Aashiq Shaikh and Alina Guha. Do you know theirs @NihanthCW and @erogluorhan ?

As discussed in #30
I couldn't find the GitHub username for a few interns: Aashiq Shaikh and Alina Guha. Do you know theirs @NihanthCW and @erogluorhan ?

It was alinejg; sorry for the delay!

Thanks @erogluorhan no worries!

As discussed in #30
I couldn't find the GitHub username for a few interns: Aashiq Shaikh and Alina Guha. Do you know theirs @NihanthCW and @erogluorhan ?
Aashiq's username is aashiqsworld

Added both. Thanks!


Aeotec ZW100 needs enableBasicSetMapping compat flag

https://github.com/AlCalzone/ioBroker.zwave2/issues/626#issuecomment-835394624
Apparently it can be configured in a way to send BasicCCSet commands which need to be re-interpreted as the Binary Sensor CC.

@zwave-js-bot add compat flag to 0x0086:0x0002:0x0064:1.10
enableBasicSetMapping: true

Let's see if this works

BAM


Can the upload be triggered from browse? Instead of having to browse and then upload?

Is there anyway of having the upload triggered only from browse? I have another button that after browse they hit to confirm the upload, and it's too many steps to have them browse, upload, and then have to click another button. Is there anyway to trigger to upload on a normal browse like the normal input = "file"?

I see someone already mentioned this issue so merging threads with: https://github.com/tomitrescak/meteor-uploads/issues/195


844 toggle on and off of the extractor livelihood

Backend:

Use aggregated query to calculate "alive" at the whole collection level; then apply different filters

Frontend

Add a switch to toggle on/off view only alive extractors

The code looks okay but I am not able to get it working. @longshuicy I am testing the code by setting the heartbeat interval to 20 secs and stopping the extractor. I am still finding the extractor to be alive even after several minutes. Is there something I am missing?

This is the "default" fallback. Maybe just don't change anything and wait for 5 minutes see if it died. If not I can revisit and see if there is a bug in my code. Thank you!

I noticed the same thing as @ddey2 but with 5 minutes. If I left the tab and went back the dot was red though.

I think I am having issues running extractors. Clowder isn't getting any messages from the extractor. That's the reason why I am probably not seeing the red dots even after 5 mins.
@tcnichol If you've tested the code, feel free to approve and merge it.

@longshuicy @ddey2 @tcnichol It worked for me. I just had to refresh the page to see the red dot.


Syntax supported in WIT but not in WAC

The README states that "The wac language is a declarative superset of wit" and the language guide's that "WAC is a superset of the WIT language."
However, when I tried to use the following WIT fragment in my .wac file:
interface spork {
    use<EMAIL_ADDRESS>response-outparam};
    handle: func(request: incoming-request, response-out: response-outparam);
}

wac encode printed:
error: failed to parse document

  × `0.2.0.` is not a valid semantic version
   ╭─[compose.wac:4:25]
 3 │ interface spork {
 4 │     use<EMAIL_ADDRESS>response-outparam};
   ·                         ───┬──
   ·                            ╰── invalid version
 5 │     handle: func(request: incoming-request, response-out: response-outparam);
   ╰────

Is this expected to work?  If not, it would be useful for the docs to clarify what WIT syntax is supported in WAC and what is not.  Although I realise that may be a moving target at this stage of development...  Thanks!

That is expected to work and is a bug. I think the lexer needs to be updated to not allow a trailing period in a version.

Thanks @peterhuene!  logos seemed happy with the official regex so I've sent #129.


CMake Ninja

I'm getting an error "CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool."
Can you caveat what the suggested solution is in the "getting started"?

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

ID: 56bb629c-a1b1-a305-67c7-eaf46cfc3c8b
Version Independent ID: ff97f9a2-cbd7-89bc-3837-f81952d15833
Content: Build your first Azure Sphere application tutorial
Content Source: AzureSphere/articles/install/qs-blink-application.md
Product: azure-sphere
GitHub Login: @Phka
Microsoft Alias: azurespheredocs

@woutervanranst Thanks for the feedback! We are currently investigating and will update you shortly.

@woutervanranst We are working on this, please let us know if you have further questions meanwhile we get back to you soon.

@woutervanranst - Does the machine have CMake & Ninja installed and path for Ninja added to your environment variable?
Check link (https://docs.microsoft.com/en-us/azure-sphere/install/install-sdk?pivots=vs-code#install-cmake-and-ninja-on-windows)

@woutervanranst
Just checking back! Please let us know if you need further help.

@woutervanranst
Since we didn't received any response, we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Security center policy change

Overview/Summary
update on policy and policy initiative based on
https://dev.azure.com/CSUSolEng/Azure Landing Zones/_workitems/edit/25037/
Replace this with a brief description of what this Pull Request fixes, changes, etc.
This PR:

Change display name & description to 'Deploy Microsoft Defender for Cloud Security Contacts'
adds possibility to change 'minimalSeverity' property as input parameter for custom policy with name 'Deploy Microsoft Defender for Cloud Security Contacts'. It was previously hardcoded with value "high"
add minimalSeverity as input parameter for Deploy-MDFC-Config, Deploy-MDFC-Config (US Gov), Deploy-MDFC-Config (China) initiatives.

Breaking Changes
No breaking changes
Testing Evidence
Test done manually

As part of this Pull Request I have

[x] Checked for duplicate Pull Requests
[x] Associated it with relevant issues, for tracking and closure.
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Performed testing and provided evidence.
[ ] Updated relevant and associated documentation.
[ ] Updated the "What's New?" wiki page (located: /docs/wiki/whats-new.md)

@prjelesi can you pull in from main and resolve the conflict again please as @krowlandson has just merged #1132

@prjelesi can you also:

Update the Whats New wiki page in docs/wiki with these changes
Add a default value for the new parameter in the initiative as per #1132 did

Thanks

@prjelesi can you also:

Update the Whats New wiki page in docs/wiki with these changes
Add a default value for the new parameter in the initiative as per Patch incorrect policy initiatives #1132 did

Thanks

#jtracey93 updated as per Patch incorrect policy initiatives #1132 and tested.

i will proceed with wiki update now.


ci-10257

add single line limit. updating formatting a little.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Got an error while installing new firmware, now sonoff mini r2 won't turn on

Hi! Through api installed firmware fullhaaboot.bin, got an error
[error] 9#9: *2 open() "/opt/www/file-browser/api/device/otaFlash" failed (2: No such file or directory), client: <IP_ADDRESS>, server: localhost, request: "POST /api/device/otaFlash HTTP/1.1", host: "<IP_ADDRESS>:8000"
now the device does not turn on, the diode does not light up, does not respond to pressing the button, what should I do?

https://hobbytronics.com.pk/sonoff-original-firmware-backup-restore/


Incompatible with Flutter 3.16.0

There were breaking changes in Dart for file system events.
But the watcher dependency of intl_utils has not been updated (it actually is not even a direct dependency).
Adding a specific dependency on watcher: ^1.1.0 fixed the executable script, though.
My dev dependencies look like:
dev_dependencies:
  flutter_test:
    sdk: flutter

  intl_utils: ^2.8.5
  watcher: ^1.1.0

Logs:
dart run intl_utils:generate
Building package executable... (6.2s)
Failed to build intl_utils:generate:
../../../.pub-cache/hosted/pub.dev/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.
abstract class _ConstructableFileSystemEvent implements FileSystemEvent {
                                                        ^
Failed to build intl_utils:generate:
../../../.pub-cache/hosted/pub.dev/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.
abstract class _ConstructableFileSystemEvent implements FileSystemEvent {

[✓] Flutter (Channel stable, 3.16.0, on macOS 14.0 23A344 darwin-x64, locale en-BE)
    • Flutter version 3.16.0 on channel stable at /Users/navaronbracke/Documents/flutter
    • Upstream repository git@github.com:navaronbracke/flutter.git
    • FLUTTER_GIT_URL = git@github.com:navaronbracke/flutter.git
    • Framework revision db7ef5bf9f (8 days ago), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/navaronbracke/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/navaronbracke/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.0 23A344 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.159

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Hi @navaronbracke,
Thank you for bringing this issue to our attention.
I've noted that this error tends to occur when running the intl_utils package after the Flutter upgrade. This might be linked to issues with the Flutter cache following the upgrade, though I still need to investigate further to understand the exact cause.
As a temporary workaround, reinstalling intl_utils often resolves the issue. Could you try this and let us know if it works for you?
Similar issues: FileSystemEvent error, Watcher fails with class FileSystemEvent.

I do not have intl_utils globally activated, only under dev dependencies, since I can run it with dart run intl_utils:generate anyway after fetching dependencies. I did wipe my deps with flutter clean but that didn't fix it iirc.
I do have the latest version of intl_utils, version 2.8.5. For now I have a workaround (explicit dependency on watcher) and it is working.

Interesting.
I've attempted to replicate the reported issue using the example project, ensuring that the same versions of Flutter and intl_utils are utilized. However, in my testing environment, everything seems to be functioning correctly.

@navaronbracke As far as I know this is because of an inconsistency between watcher v1.0.0 and v1.1.0 with latest Dart.
If you do flutter pub upgrade or dart pub upgrade, your transitive dependencies will get updated and you wouldn't need to explicitly depend on version 1.1.0.


Failing "staticland domain" call still has 0 exit code

I haven't done any other auditing of exit codes; just happened to notice this.
Output from my terminal earlier today:
>  staticland -v
3.2.1
>  staticland domain ambirdsall.space; echo $?

  FAILED!
    Domain not ready to deploy to api.static.land. Currently at IP <IP_ADDRESS>.

0
>  if staticland domain ambirdsall.space; then echo 'Success exit code'; fi

  FAILED!
    Domain not ready to deploy to api.static.land. Currently at IP <IP_ADDRESS>.

Success exit code

A nonzero exit in this scenario would be useful for scripting deployment.
By way of man sysexits, I found a list of conventional exit codes at /usr/include/sysexits.h. This one seems right for the job:
/*
 *	EX_TEMPFAIL -- temporary failure, indicating something that
 *		is not really an error.  In sendmail, this means
 *		that a mailer (e.g.) could not create a connection,
 *		and the request should be reattempted later.
 */

#define EX_TEMPFAIL	75	/* temp failure; user is invited to retry */

:+1: I'll make sure this is included in the next version.

This is fixed in v3.2.2. Thanks!


Issue 46857: Handle dataclass that doesn't support merge

Rationale
There are some Biologics registry types that don't support merge, some due to the existence of preinsert triggers, some due to lack of api. The eval data loading in automated tests uses merge to load those data, which is not technically correct. Without changing the way the test loads data, this PR modifies the code that causes failures for those scenarios.
https://teamcity.labkey.org/buildConfiguration/LabKey_Trunk_LabkeyPremiumTrunk_GitModules_BiologicsPostgres95/2180057?buildTab=overview
Related Pull Requests

https://github.com/LabKey/platform/pull/3901

Changes

Skipping adding ExistingRecordIterators in TriggerDataBuilderHelper for registries that don't support merge

This didn't fix the failure. Closing pr for now


Add configuration warning for SubViewportContainer

Display a warning when a SubViewportContainer doesn't have a SubViewport as child.

Thanks!


support for both existing and creation of secret for helm chart

These changes are to easily allow the use of an existing generated secret and certs instead of generating them with the helm chart.

@googlebot I signed it!

Hi @tnishida1, did you mean to close this PR before it got merged?

Apologies, I was simply trying to change the author email on the commits as it didn't match up for the CLA to authorize.

@googlebot I signed it!

@googlebot I signed it!


[Net] IP uses print_verbose when getaddrinfo fails.

Avoid spamming errors when network is disconnected.
Returned address will be invalid, so it can be checked by the user via ret.is_valid_ip_address.
Fixes #61605

Cherry-picked for 3.6.


Can't load plugin

Error detected while processing WinLeave Autocommands for "*":
Error executing lua callback: .../data/nvim/site/pack/packer/start/tint.nvim/lua/tint.lua:147: attempt to call field 'nvim_win_set_hl_ns' (a nil value)
stack traceback:
        .../data/nvim/site/pack/packer/start/tint.nvim/lua/tint.lua:147: in function <.../data/nvim/site/pack/packer/start/tint.nvim/lua/tint.lua:141>

What does :version show? You basically need to be running nightly, or something with this PR merged.

New release of neovim should be out any time now. 🥳


Thoughts on using kubernetes-sigs/application CRD

Re: https://github.com/kubernetes-sigs/application/blob/master/config/crds/app_v1beta1_application.yaml
This discussion assumes that you are planning to replace the component CRD with the Kubernetes Application CRD in this repo, and then write a controller around it:
My primary interest in the Application CRD is to be able to define in a Custom Resource the following information for an "Developer Experience Operator" which both ODO and devOps Console could use:

codebase metadata ( Git url +  sourceSecret .. )
Build Type ( npm , maven ..  )
Language ( Typescript, Java , Javascript, Python, Golang.. )
Port the component listens on
exposeService

and then have a custom controller (written by us) reconcile this with the secondary resources ( build, deployment, service, route ).
What I really like with the existing component CRD in this repo, and the similar one in my PoC is the ability to add validations.

https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#validation
https://github.com/redhat-developer/devopsconsole-operator/blob/29bc48d1579aab6b7f90318d2ce5e759c76fc551/deploy/crds/devopsconsole_v1alpha1_component_crd.yaml#L16

With Application CRD, the option @cmoulliard  @corinnekrych  and I discussed was to

Use the infoItems field to declare the metadata ( exposeService , runtime , buildType ), and,
Write a controller that would process it and create/reconcile secondary resources and populate the componentKinds[1] field of the custom resource.

How would defining the validation work, for above fields ? Not sure if @cmoulliard 's approach ( https://gist.github.com/cmoulliard/da15c03ab217a0ee63f8e7e415fe4085 ) would help here :) I might be missing something.
Assuming there's a workaround to the above concern, I have a few other concerns:

Given that we are going to write our controller, how are we going to package the app.k8s.io's application CRD into the operator, given that our operator doesn't own it.

Option 1 :  If we used the concept of 'dependent operators' in OLM, the dependent operator would also bring the existing controller https://github.com/kubernetes-sigs/application in  [3] . The problem with this approach is that we'll have two controllers watching the same resource.

Option 2 : "Copy-paste" the CRD while packaging the operator into the directory structure that looks like this[4] . This isn't a good practice though. If the user now installs the app.k8s.io's application operator separately, the problem of the same resource being watched and reconciled by two controllers is back :)

Option 3 : Create a 'downstream' application CRD in the group developer.openshift.io [5] - only our controller would be watching the resources in that case.

Thoughts ?
[1] https://github.com/kubernetes-sigs/application/blob/master/config/crds/app_v1beta1_application.yaml#L27
[2] https://gist.github.com/cmoulliard/da15c03ab217a0ee63f8e7e415fe4085
[3] https://github.com/kubernetes-sigs/application/blob/master/pkg/controller/application/application_controller.go
[4] https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/prometheus
[5] https://gist.github.com/sbose78/462714121bfad2429acd6b91ec73c7f3#file-application-developer-openshift-io-crd-yaml-L9

concept of 'dependent operators' in OLM

Do you have info, reference where this is described ? @sbose78

I don't think that it will be possible to use just Application CRD for what you are looking @sbose78.
Application CRD just groups normal Kubernetes Resources (it just refers to other resources, but it is not defining them) and adds some metadata on top of it. It is missing some of the information that you need, like build type, language, code base metadata, exposed ports, environment variables and more.
Component CRD is used to generate Kubernetes resources, there is more info like exposed ports, env variables etc..
Application CRD is not intended for this use. There is not enough information to generate k8s resources. It just links them together based on labels and you don't have enough information to generate. Component CRD can generate Application CRD to nicely group resources and allow to display it nicely in web console and oc, but I don't think that you can use just Application CRD to construct necessary resources for an application.

It is missing some of the information that you need, like build type, language, code base metadata, exposed ports, environment variables and more.

This is not true Tomas as such infos could be defined using Application CRD -> InfoItems field.
This is what we have discussed yesterday with @corinnekrych and @sbose78 and what @metacosm and myself we are investigating to see if we could use an additional field Object interface{} in order to express more complex types such as []EnvVar, []Ports, ....
Here is an example where an EnvVasr = JavaHome is expressed as a yaml array and next converted into a []corev1.EnvVar:
package v1alpha1

import (
	"fmt"

	"github.com/davecgh/go-spew/spew"
	"github.com/ghodss/yaml"
	corev1 "k8s.io/api/core/v1"
	"testing"
)

// InfoItemType is a string that describes the value of InfoItem
type InfoItemType string

// InfoItemSource represents a source for the value of an InfoItem.
type InfoItemSource struct {}

// InfoItem is a human readable key,value pair containing important information about how to access the Application.
type InfoItem struct {
	// Name is a human readable title for this piece of information.
	Name string `json:"name,omitempty"`

	// Type of the value for this InfoItem.
	Type InfoItemType `json:"type,omitempty"`

	// Value is human readable content.
	Value string `json:"value,omitempty"`

	// ValueFrom defines a reference to derive the value from another source.
	ValueFrom *InfoItemSource `json:"valueFrom,omitempty"`

	Object interface{}
}

var data = `
Name: Spring Boot v1
Type: EnvVar
Object:
  - key: JAVA_HOME
    value: /usr/local/bin/java
`

func TestUnMarshalling(t *testing.T) {
	// Initialize the variable p as type Person.
	infoItem := InfoItem{}
	err := yaml.Unmarshal([]byte(data), &infoItem)
	if err != nil {
		fmt.Print(err.Error())
	}

	spew.Dump(CreateEnvVar(infoItem.Type, infoItem.Object))
}

func CreateEnvVar(Type InfoItemType, obj interface{}) *[]corev1.EnvVar {
	envVars := []corev1.EnvVar{}

	r := obj.([]interface{})
	for _, i := range r {
		m := i.(map[string]interface{})
		n := m["key"].(string)
		v := m["value"].(string)

		if Type == "EnvVar" {
			env := corev1.EnvVar{
				Name:  n,
				Value: v,
			}
			envVars = append(envVars, env)
			return &envVars
		}
	}
	return nil
}

but I don't think that you can use just Application CRD to construct necessary resources for an application.

A CRD represents a contract definition such as IDL which was used in past to design CORBA applications. As it transports from the client a CRD created using different tools (odo, fmp, devconsole, ap4k,...) the METADATA description about an application (runtime, service, ...), then this is up to the tool at the client side or at the server side (= operator) to enrich it or potentially to create additional resources. From this point of view, using Application/Component or XyZ CRDis just a matter of taste supporting the use cases that we want to offer for the developers and which are :

Quick and fast deployment: inner or devloop
Container installation from a build: s2i, knative, .... : outerloop or buildloop
Switch from inner to outer
Configure cloud's services such as : Prometheus, Jaeger, EFK, Istio

Option 1

This case (ithink so ?) will only happen if you express as requirement in your OLM definition that you will use the k8s Application CRD and that an operator associated to this CRD has been deployed too. This point was discussed here

I think that maybe we should move forward with a "fork" of Application CRD which supports the use cases we need while maintaining as much compatibility with the official version so that we can try to get the extensions we need in Application CRD at some point.

It is missing some of the information that you need, like build type, language, code base metadata, exposed ports, environment variables and more.

This is not true Tomas as such infos could be defined using Application CRD -> InfoItems field.

It is described as  "InfoItem is a human readable key,value pair containing important information about how to access the Application."
As I understand it is that it just refers to existing information, so it can be shown in UI. Not to create something.

I think that maybe we should move forward with a "fork" of Application CRD

@metacosm I like this approach.
@cmoulliard , Back to my original question :) Can infoItems with your proposed changes include validations ( something like [1][2] ) ?
[1] https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#validation
[2] https://github.com/redhat-developer/devopsconsole-operator/blob/29bc48d1579aab6b7f90318d2ce5e759c76fc551/deploy/crds/devopsconsole_v1alpha1_component_crd.yaml#L16

@sbose78 Regarding validations, will they work on a pre-1.13 cluster or at least not cause issues?

The more I think about it, though, the less I think Application CRD is actually useful for us as it really doesn't address the issue of linking components together in a safe way (only labels are used) and it doesn't really abstract away from the k8s resources (as odo does), which I think we should do to provide a nicer developer experience. :(

I thinking the same...
I wonder if we could still create the Component CRD with its associated controller (as per component-operator) to deal with creation of different resources (Service, Deployment...) and use the SIG Application CRD to group our multi-component app as it seems main focus of SIG app is grouping, describing and providing a standard way of displaying the app on K8s distributions.
As per comment here: https://github.com/kubernetes-sigs/application/issues/68#issuecomment-467180885 It doesn't seem application is intended to take a component from source to deployment as our odo's dev experience.
I need to investigate further what the AppController/GenericReconciler provides...

@sbose78 Regarding validations, will they work on a pre-1.13 cluster or at least not cause issues?

Not sure.. haven't checked.

Do you have info, reference where this is described ? @sbose78

@cmoulliard , here's an example:
https://github.com/operator-framework/operator-manifests/blob/master/manifests/vault-operator/vaultoperator.0.1.9.clusterserviceversion.yaml#L175-L190

Back to my original question

I created a ticket to investigate if that works : https://github.com/snowdrop/component-operator/issues/39

use the SIG Application CRD to group our multi-component app

If we do that, then we must take care about how we will display resources using oc or kubectl get command as the go CLI does not support complex query as we can do in SQL using select * from ... UNION.
Example
oc get application my-application
NAME
my-application

Only the info about the application is displayed and not the components aggregated under an application
If we use this command
oc get application,components my-application

then the result info will be displayed as separate tables
NAME
my-application
NAME
my-spring-boot
....

If now, we would like to display all the related components, then that will work
oc get components
NAME                    VERSION
my-spring-boot          1.5.19
...

As we will not use Kubernetes Application CRD, I will close this ticket. Make sense @sbose78 @tqvarnst @metacosm ?

What is a reason for not using Application CRD?

What is a reason for not using Application CRD?

As you know that was my original idea but we discovered many technical challenges around what they did :

InfoItem which allows to enrich the description of an application can only be used to define key/value and only support a few types defined as key/value or key/stringRef but unfortunately not what we want to use from Corev1 K8s such as EnvVar, ...
K8s Application CRD don't support nice way to define the components, links or capability of an application but list only the k8s resources to be installed
The k8s operator part of their project can't be used as it. It is a dummy operator. That means that another one should be designed.
K8s Application CRD has been designed first for the GCP platform and it is supported by Google. That means that the API, spec will never change excepted if they accept to open again the door to discuss the Application and Components concepts

So, if we want to use it, it will be very difficult to define the composition of our applications as a k8s Application link all the resources to be deployed for an application while we manage such resources creation using an operator.
Their approach is more oriented toward a way to package as a helm chart an application using as definition a k8s application CRD and combining yaml resources are specified.
Make sense ? @kadel
FYI @nainaz @tqvarnst @metacosm

Makes sense. Thank you @cmoulliard for the write-up.

FYI. I opened several tickets to improve the spec of k8s Application CRD, Matt Farina like the others never replied to them and finally they decided to close them @kadel


Is there a way to upload pdf files to the device after rooting using the modified boot.img in the repo?

I have successfully rooted my DPT-RP1 and I can use adb commands. I am aware that I cannot use DPA with the modified boot.img. Is there a way to upload pdf files without DPA? Thanks!

closed as this is the same issue #58


Updated source code?

So I'm trying to self host this on my machine, and I've noticed some issues that appear to be caused because the code I have is somehow different from what you're running on your production servers.
Some example differences:
api.debate.cards returns the card text in the field fullCard, whereas mine returns it in the field card
My instance clears the list of searched cards upon viewing a card (happens on both my and your API backend)
In general I have had to make slight changes to your code to get things to work (like changing the code that generates the solr query)
Would it be possible for you to update the code that exists (in this repo and the cardDB repo), as well as any config files that might have changed?

The code here is actually ahead of the deployed version - release v1.0.0 (d2b6e31) is the version that's currently in production.
The frontend repo should be in sync with the live site. So I'm not entirely sure what's causing that issue, I can look into it.


Charts: implement structures rendering where feasible

[ ] All viewers that show structures as nodes or on axes should render structures.
[ ] Add a check to see if package Chem is installed

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-14613

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-16139


Refactor, bug fixes, and improvements

Proposed change
Hi there, I started down this path because:

I was having trouble getting the integration to work
I wanted to figure out if there was a clean way to remove entities on unload since a lot end up getting left over.

I didn't make it very far on 2 but I did make good progress on 1 and in the middle of it added a bunch of scope creep. I apologize for the size of the PR, but I thought it would be a good way to make this more maintainable going forward. If you see some changes you'd like me to make, or if there are parts of the refactor you would like me to revert, let me know. I haven't changed much of the actual logic as you'll see in the notes below since it all comes from the package templates and the sensors.
NOTE: I have tested this and as far as I can tell, everything is working as expected, but my integration hasn't been working since before my code changes (specifically, the PIN gets set but PIN Status shows as Connecting forever), so it would be great if someone else could test it
New Features

Packages folder gets cleaned up on unload

Changes

switch to using relative path for CONF_PATH to reduce changes of error (existing config entries will be updated automatically)

Bug Fixes

Switch _generate_package from async to sync because it does I/O on the filesystem
fix output file not being opened with context manager (so never closed)
fix sensor creation loop to only create necessary sensors instead of sensors for all code slots
fix CodeSlotsData sensor (now a DataUpdateCoordinator) logic for OZW integrations

Code Cleanup/Improvements

move CodeSlotsData logic into DataUpdateCoordinator since that's what it is being used for
reduce polling frequency significantly by only polling any time a slot is set or cleared with a backup hourly polling in case updates are made outside of KeyMaster (this will significantly improve battery life over current implementation with the same level of accuracy)
Update config entry using update method instead of directly manipulating attributes
use slugify when fixing CONF_NAME
use os.path.join to create paths for better OS compatibility
switch to using f-strings
only attempt cleanup of packages directory if it exists
always rely on entry.data so that options is only used to capture options updates
simplify code and reduced repeat logic by moving things into common functions
raise Exceptions in services when there is a failure (this will be shown in UI)
use more list comprehensions
switch while loops to for loops
added typing
add venv to .gitignore
add requirements_dev.txt
improve debug messaging

TODO (in future PRs)

On options update, clean up no longer used entities
On removal, cleanup all entities that were created from packages

Type of change

[ ] Dependency upgrade
[x] Bugfix (non-breaking change which fixes an issue)
[x] New feature (which adds functionality)
[ ] Breaking change (fix/feature causing existing functionality to break)
[x] Code quality improvements to existing code or addition of tests

Additional information

This PR fixes or closes issue: fixes #
This PR is related to issue:

These changes look good to me. I like the changes auto updating the code slots data myself.
Guess I won't have to do the DataCoordinator implimentation myself either 🎉


Compatibility switches

This introduces a pattern for versioning breaking behaviour changes in
minor releases of MVC.
The general plan is that application developers choose a release version
(2.0, 2.1, Latest) as their baseline which determines the effective
'defaults' for some options. Anything the developer sets explicitly is
an override and always wins.
Then we add a version setting to the template to point to the current
release.
This allows us to be progressive with fixing issues and improving areas
that don't work well, but offers the developer some choice about when to
adopt new behaviours. In effect, we separate new behaviours from the
libraries that develiver them. Apps can update the version, and then opt
in to new behaviours as a separate change.

when to adopt new behaviours

Such as being British? :trollface:

Updated and removed design tag. I plan to do follow ups to work on the actual settings. This just has tests and infrastructure.

@rynowak looks really good. My only current comment is that there are a few missing doc comments on public APIs.

Rebased and added docs that were missing from new public API surface.
I'm planning on merging this by Friday if I haven't gotten any more important feedback. I'll be doing follow ups to address specific switches as well.
I'm also going to get to work on an announcement for this.


Pull to refresh doesn't work when there are no tasks

Why these changes are required ?
Issue link

Currently on the task list screen when the content is empty or no tasks, pull to refresh doesn't work(it is not shown at all after you swipe down vertically)
Reason is the empty container shown doesn't  contain pull to refresh
Exisiting SwipeRefresh is deprecated

What changes are addressed ?

Addressed the issue of showing a pull to refresh spinner both when the content is empty and not empty
Migrated SwipeRefresh to PullRefreshIndicator as suggested

todo_test.webm

Please fix the spotless formatting.

Please fix the spotless formatting.

@dturner Sure will fix and update


Cannot run coffee tests

Hi,
Do you have any idea why it works out of box on gulp-mocha and does not work here?
I'd like to switch to spawn-mocha due to extensive use of env vars.

I figured I can pass require: "coffee-script/register" directly. Thanks for the great plugin!


Some labels on relations

When creating tools with a UI for creating brick data it is quite conventient to have rdfs:labels on most things. Is this interesting to include directly in the main source for the brick ontology?

I will add more labels if there is interest in this PR.

Yes! This is definitely needed; thanks so much for doing what you've done so far. If there are other terms missing rdfs:label it would be fantastic to add those as part of this PR. Let me know how I can help

I've added labels to all entity properties and properties now.

@jbulow can you merge the latest from master and push? I've made some changes to the unit tests that makes them run faster and give the correct result more reliably. There is something going on with the SHACL shapes that causes them to (incorrectly) fail a test from time to time

@gtfierro interested in maintaining translations in this repo as well?

All properties and entity properties now covered in this PR. Anything else to consider in this PR?

@martinwebrant It would be great to have translations into different languages in Brick. I don't have time to produce that myself, but please let me know how I can support translation efforts. I was talking a little with @jbulow today in the Ontology Working Group and I mentioned having lookup tables in the bricksrc/ folder which could store the mapping from Brick classes to different labels for various languages. I'd be happy to set up that infrastructure in the repo, but let me know if you have other ideas. I'll make a note to begin adding @en language tags to existing literals in Brick

Thanks for your great work on the PR, @jbulow!


Fix HTML output

Overview

Fixed HTML template.
Examples/Screenshots
Full output example can be found here.
Screenshot:

Related issues/PRs:

Resolved (at least the HTML output issue) #1108

/cc: @sgaist

how can I install either this patch on my current (latest) kubescape, or install an older kubescape sha that does not need this patch?
I'm trying to generate some html reports and got hit by this bug.

Is there a way to get this patch manually applied on my kubescape? I tried the latest, as well as the september binary but was unable to generate either html or pdf reports

@mautematico This has been released, please update to the latest release :)


Manual corrections on metadata to be done after the Production

[ ] Multiple EBL identifiers for multivolume:
CDS query:  https://cds.cern.ch/search?ln=en&cc=Books+%26+Proceedings&p=596%3AMULTIVOLUMESX+and+035%3AEBL&action_search=Search&op1=a&m1=a&p1=&f1=&c=Books+%26+Proceedings&c=&sf=&so=d&rm=&rg=100&sc=1&of=hb

Create restricted documents on the ILS for ILLs that are currently on loan:
https://cds.cern.ch/admin2/bibcirculation/list_ill_request?status=on loan&ln=en
On the ILS: on the correct Borrowing request, remove the attachment to 'Migrated unknown document' and attach the correct document

[ ] Series: check the series that have a ':' in the title and move the subtitle in the subtitle field.

In this file:

[ ] List of loans yet to be migrated (CERN external emails)
[ ] List of items marked as Missing because the person who had them on loan left CERN:
items-missing.xlsx


Dress naked excepts #2

Replaces #3366,
just so we can resolve in @bjlittle absence
Original head

This PR fixes the iris travis-ci tests after moving to the latest numpy 1.17.0 - and it also follows-up from #3320 to dress the naked try...excepts with an ImportError

Closes #3365  (ref old comment)

Looks good to me.  Just waiting for Travis to do its thing...

Many thanks again @rcomer !


ucon#24: "updates README"

contributes to #24

Codecov Report

Merging #27 (541ca38) into main (6f0518d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   98.57%   98.57%
=======================================
  Files           1        1
  Lines         140      140
  Branches       17       17
=======================================
  Hits          138      138
  Misses          2        2

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 6f0518d...541ca38. Read the comment docs.


Fix documentation imports

Codecov Report

Merging #82 (b39dc62) into main (56e9709) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head b39dc62 differs from pull request most recent head 2d25d8d. Consider uploading reports for the commit 2d25d8d to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@          Coverage Diff          @@
##            main     #82   +/-   ##
=====================================
  Coverage   0.00%   0.00%
=====================================
  Files         11      11
  Lines       1766    1766
=====================================
  Misses      1766    1766


Create goggles

open code, cancel extention function

Details of the Website:goggles

Name:
Link:
Description:

rigthtime and time toberigth


Feat/eslint prettier editorconfig

Description
I installed and configured ESLint and Prettier for formatting coding and granting the code standards.
Fixes # (issue no.)

Type of change

[X ] New feature (non-breaking change which adds functionality)

Explain the Testing instructions
Test Configuration:

Operating system: Ubuntu
Version:  20.4
Text-editors used: VSCode

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

ATTACH SCREENSHOTS

Hi @girordo , I'm getting those errors while running in my local machine, can you fix those errors?

Hi @gauravsinhaweb try to run npm run format and npm run lint-fix
Em qui., 7 de out. de 2021 às 03:01, GAURAV SINHA @.***>
escreveu:

Hi @girordo https://github.com/girordo , I'm getting those errors while
running in my local machine, can you fix those errors?
[image: asasadadad]
https://user-images.githubusercontent.com/75125943/136328119-49e25f48-392a-48eb-ae14-5fbf55333804.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gauravsinhaweb/EduSmart/pull/52#issuecomment-937475371,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANA4ZR2HSJJNW33SWQVJVQLUFUZRZANCNFSM5FMU545A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Add preview for image selection, convert images to png

Add image preview before sending, image converter class


fixes issues 26 & 46. Added support for pagination

FetchTags only returns the first 30 tags so
fetch  --repo https://github.com/gruntwork-io/terratest --tag="<0.2.0"  ./LocalDir
fails with  ... Tag does not exist because terratest has 200+ tags and 0.2.0 isn't in the first 30 tags.
I increased the per_page result to 100 and added a loop to get the next link from the link header.
I believe this fixes both issue #26 and #46.

Alright, I may have to wrap this PR up myself... I'm going to create a new PR with your commits, and fix the final few issues on top of that.

Alright, I may have to wrap this PR up myself... I'm going to create a new PR with your commits, and fix the final few issues on top of that.

OK, I've opened https://github.com/gruntwork-io/fetch/pull/85 to wrap this up. Thanks!

OK, I've opened https://github.com/gruntwork-io/fetch/pull/85 to wrap this up. Thanks!


Azure Key Vault+ Service Endpoints- NSG configuration for AUTHENTICATION

Greetings Microsoft,
I note that article here, I infer that Network Security Groups configuration has been overlooked.
The subnet needing access to Key Vault Service needs outbound allow rule using service tag of Key Vault.
Further,I think the above may not be sufficient for authorization.
A VM in same subnet as service endpoint can use Azure CLI to authenticate into Azure and test key vault.
For authentication into Azure AD followed by key vault access, perhaps outbound NSG allow rule using Azure Cloud tag must be used?
Regards,
Aditya Garg

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

ID: 29579d6a-ad17-fd0f-9a27-3860d81efe6b
Version Independent ID: 73738ba6-8189-1762-52da-326d153ed8b5
Content: Virtual network service endpoints for Azure Key Vault
Content Source: articles/key-vault/general/overview-vnet-service-endpoints.md
Service: key-vault
Sub-service: general
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@adi-garg
Thanks for your feedback! We will investigate and update as appropriate.

@adi-garg Key Vault does not support service tags, any details around networking is outside of the scope in Key Vault, you will need to refer to Azure Networking setup.

@jlichwa
Thanks for your inputs
@adi-garg
if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

@adi-garg
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation


Fix broken find_devices implementation

I think that the find_devices() method implementation in Adafruit_BluefruitLE/interfaces/provider.py is broken, in that it doesn't actually find devices with the specified advertised interfaces. It just finds devices that advertises at least that many services.
Here's the method in question:
def find_devices(self, service_uuids=[], name=None):
    """Return devices that advertise the specified service UUIDs and/or have
    the specified name.  Service_uuids should be a list of Python uuid.UUID
    objects and is optional.  Name is a string device name to look for and is
    also optional.  Will not block, instead it returns immediately with a
    list of found devices (which might be empty).
    """
    # Convert service UUID list to counter for quicker comparison.
    expected = Counter(service_uuids)
    # Grab all the devices.
    devices = self.list_devices()
    # Filter to just the devices that have the requested service UUID/name.
    found = []
    for device in devices:
        if name is not None:
            if device.name == name:
                # Check if the name matches and add the device.
                found.append(device)
        else:
            # Check if the advertised UUIDs have at least the expected UUIDs.
            actual = Counter(device.advertised)
            if actual >= expected:
                found.append(device)
    return found

Testing the Counter comparison in the Python REPL:
>>> expected = Counter(['Service X'])
>>> actual = Counter(['Service W', 'Service Y', 'Service Z'])
>>> actual >= expected
True

That's clearly not what we want! However, if we instead compute the intersection of the two Counter sets and check the count of that, we should be on to a winner:
>>> expected = Counter(['Service X'])
>>> actual = Counter(['Service W', 'Service Y', 'Service Z'])
>>> (expected & actual) >= expected
False
>>> actual = Counter(['Service X', 'Service Y', 'Service Z'])
>>> (expected & actual) >= expected
True

This pull request implements that simple change.

This library has been deprecated. Please update to use this new library:
https://github.com/adafruit/Adafruit_Blinka_bleio
PR's can be submitted to the new library.


feat: add rarity threshold for loot notifs

Follow-up to #425

I have not tested this in-game but it looks sane

Confirmed works in-game


Add precondition support for the SQL Dialect

When using the SQL dialect, the only the sqlCheck precondition is available, like:
-- precondition-sql-check expectedResult:1 select count(*) from INFORMATION_SCHEMA.VIEWS where TABLE_NAME = 'MY_VIEW'

It would be great to be able to use other conditions like viewExists, tableExists, etc.

Hello, thanks for the submition. We will add it to our Feature Request queue, but it can take a while before we address it, you can always submit a pr with your ideas and we will be happy to help.

@FBurguer @kevin-atx I would be happy to contribute to this enhancement. Are there any other preconditions than viewExists & tableExists which would be beneficial to look into.
Thank you
Julien


[Coversion Alogorithm] In git connect apps, After snapshot restore , we are being thrown to invalid PageID resulting in error

https://www.loom.com/share/8c00528bccac4398b73dbb2a8c6607d4

PR for testing, https://github.com/appsmithorg/appsmith/pull/23096


Vulnerability roundup 107: mattermost-5.37.2: 1 advisory [6.1]

search, files

[ ] CVE-2021-37860 CVSSv3=6.1 (nixos-unstable)

CVE details
CVE-2021-37860
Mattermost 5.38 and earlier fails to sufficiently sanitize clipboard contents, which allows a user-assisted attacker to inject arbitrary web script in product deployments that explicitly disable the default CSP.

Scanned versions: nixos-unstable: 34ad3ffe08a.
Cc @fpletz
Cc @ryantm

This is fixed now.


Add support for custom buttons. Closes #53

I'm not sure how I'd best test this, but the code looks quite solid and you've proven you have tested your stuff so far so I'll just hit merge this one time without testing it through


How to run jobs in a redis connection queue?

I am currently using ElastiCache with redis as the driver for the queues.
Based on your example posted at https://github.com/brefphp/examples/blob/master/Laravel/queues/worker.php I see that only one LaravelSqsHandler class is available, I am wondering if it is possible to process the jobs using LaravelRedisHandler or something like that.

That won't be "serverless" as you'll need a worker running 24/7 constantly hitting redis to see if there are available jobs. AWS Lambda isn't a good fit for this. What makes SQS natively supported is the fact that AWS provides a way to attach SQS to Lambda so that Lambda gets triggered automatically everytime a new message arrives.

Oh, I didn't know about native SQS support with lambda. In this case I will try to change my driver to SQS but I am afraid that I will have problems due to the short delay times.
Thanks


[BUG] deploy dataExtension seems to run async somehow

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior

after "completion" the script still has a x server connections waiting before the docs are created
Expected Behavior
after the line "dataExtension upsert: ... created / ... updated" there should only be no more server connections open.
Steps To Reproduce

deploy (a larger number of) DEs
wait & see

Version
3.1.3
Environment

OS:
Node:
npm:

Participation

[ ] I am willing to submit a pull request for this issue.

Additional comments
No response

got a stack trace:


ssh permission denied

I have installed vagrant and ansible. I have done vagrant up and provisioning. All the 4 VMs are up and running, but when i try to do SSH to<EMAIL_ADDRESS>I'm getting error "Permission denied(public key)".
Could anyone help me with the issue .

Default provisioning of Stream4Flow uses a Vagrant box (ubuntu/xenial64) that has been updated recently and do not allow to use password SSH authentication. You need to log in to the server via vagrant ssh sparkMaster and upload your SSH key or change SSH configuration to allow password login (open /etc/ssh/sshd_config and set PasswordAuthentication yes).
Thanks for the question, we will add this information to the Readme file.

Hi,
I have tried as per your suggestions, and it has started to work. I'm
really thankful for your timely reply.
I have ran the sparkMaster and Its running. Softflowd is running as well.
But Graphs are not generated in the stream$Flow web interface. I have tried
for more than 2 days I'm unable to identify the issue.
It would really helpful if you could let me know how the results or graphs
are generated and what might be the issue.
Thanks,
Aakansha Soni
On Mon, May 14, 2018 at 12:55 PM, Milan Cermak<EMAIL_ADDRESS>wrote:

Default provisioning of Stream4Flow uses a Vagrant box (ubuntu/xenial64)
that has been updated recently and do not allow to use password SSH
authentication. You need to log in to the server via vagrant ssh
sparkMaster and upload your SSH key or change SSH configuration to allow
password login (open /etc/ssh/sshd_config and set PasswordAuthentication
yes).
Thanks for the question, we will add this information to the Readme file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CSIRT-MU/Stream4Flow/issues/82#issuecomment-388721558,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgUwKZL4meGvUgJjjuwglgIZan3GQGbHks5tyTGBgaJpZM4T8bzl
.

It looks like you do not run the analysis application. See https://github.com/CSIRT-MU/Stream4Flow#run-an-example-application-protocols_statistics You can check if it is running on Spark Web Interface.

Hi,
I have run the application. I'm able to see the process, jobs in spark web
interface. But I'm not able to see graph in stream4flow web interface.
Thanks,
Aakansha Soni
On Mon, May 14, 2018, 5:27 PM Milan Cermak<EMAIL_ADDRESS>wrote:

It looks like you do not run the analysis application. See
https://github.com/CSIRT-MU/Stream4Flow#run-an-example-application-protocols_statistics
You can check if it is running on Spark Web Interface.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CSIRT-MU/Stream4Flow/issues/82#issuecomment-388791626,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgUwKYVDw2R9fi_CB40bBN2jUVTjOeJGks5tyXE6gaJpZM4T8bzl
.

Do you see any input data going into an application in Spark Web Interface in application tab Streaming?

Hi,
I am getting screen like this. Please help.
Reagrds
Aakansha Soni
On Mon, May 14, 2018 at 6:26 PM, Tomas Jirsik<EMAIL_ADDRESS>wrote:

Do you see any input data going into an application in Spark Web Interface
in application tab Streaming?
[image: screenshot_20180514_145542]
https://user-images.githubusercontent.com/11919446/39998626-ee969360-5786-11e8-89af-c45d6ff61866.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CSIRT-MU/Stream4Flow/issues/82#issuecomment-388806694,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgUwKalx7jN2qjhY0AOsBAXnbuc3cfyBks5tyX7ugaJpZM4T8bzl
.

Look into Kibana, if you can see data there:

consumer IP address:5601
default IP address is http://<IP_ADDRESS>:5601/
index name: spark-*

You should see something like this screenshot:

Hi,
Sorry for for troubling so much, but even after giving index name as
spark-* it is giving index not found error.
Regards
Aakansha Soni
On Mon, May 14, 2018, 7:13 PM Tomas Jirsik<EMAIL_ADDRESS>wrote:

Look into Kibana, if you can see data there:

consumer IP address:5601
default IP address is http://<IP_ADDRESS>:5601/
index name: spark-*

You should see something like this screenshot:
[image: screenshot_20180514_154206]
https://user-images.githubusercontent.com/11919446/40000942-6ea95eb0-578d-11e8-9d14-1dc1a8044819.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CSIRT-MU/Stream4Flow/issues/82#issuecomment-388821115,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgUwKR8CNpNM6yvvKOAp6g9eDCgYPXM7ks5tyYnxgaJpZM4T8bzl
.

Hi,
I feel you are correct. I'm unable to add the spark-* in the Pattern Id of
my kibana. Attaching all the required screenshots. please let me know if I
am missing out anything.
Thanking you.
Regards
Aakansha Soni
On Mon, May 14, 2018 at 7:40 PM, Aakansha Soni<EMAIL_ADDRESS>wrote:

Hi,
Sorry for for troubling so much, but even after giving index name as
spark-* it is giving index not found error.
Regards
Aakansha Soni
On Mon, May 14, 2018, 7:13 PM Tomas Jirsik<EMAIL_ADDRESS>wrote:

Look into Kibana, if you can see data there:

consumer IP address:5601
default IP address is http://<IP_ADDRESS>:5601/
index name: spark-*

You should see something like this screenshot:
[image: screenshot_20180514_154206]
https://user-images.githubusercontent.com/11919446/40000942-6ea95eb0-578d-11e8-9d14-1dc1a8044819.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CSIRT-MU/Stream4Flow/issues/82#issuecomment-388821115,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgUwKR8CNpNM6yvvKOAp6g9eDCgYPXM7ks5tyYnxgaJpZM4T8bzl
.

Hi, it is really hard to help you without any screenshots or error messages. Can you please check if Kafka receive input and output data? Use following commands on producer and send us several lines of their output.
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic ipfix.entry
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic results.output

Hi,
I ran the command as explained by you. Both the command doesnt provide any
output. I have attached the screenshot of the both commands.
Regards
Aakansha Soni
On Tue, May 15, 2018 at 1:09 PM, Milan Cermak<EMAIL_ADDRESS>wrote:

Hi, it is really hard to help you without any screenshots or error
messages. Can you please check if Kafka receive input and output data? Use
following commands on producer and send us several lines of their
output.
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic ipfix.entry
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic results.output
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CSIRT-MU/Stream4Flow/issues/82#issuecomment-389073506,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgUwKdvcJ6hYdZMwr1TAdzzvo5gKSH52ks5tyoYlgaJpZM4T8bzl
.

Hi,
we do not see any screenshots from you. Please put screenshots directly to the issue as I did (not via email). Please provide us with following screenshots:

Screenshosts of outputs of following commands - including errors:
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic ipfix.entry
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic results.output

Screenshot of the command used to start Spark application.

Screenshot from Spark Web Interface - application tab Streaming.

Screenshot of the command used to run a Softflowd.

Without these screenshots, we can not, unfortunately, help you as we do not have sufficient information for troubleshooting.

I do not see any update. Closing the issue.

Hi,
Apologising for not being available for these many days. Attaching all the
required screenshots.
and the last screenshot is after executing these commands.
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic
ipfix.entry
/opt/kafka/bin/kafka-console-consumer.sh --zookeeper producer:2181 --topic
results.output

Thanking you.
Regards
Aakansha Soni
On Tue, May 22, 2018 at 2:21 PM, Milan Cermak<EMAIL_ADDRESS>wrote:

Closed #82 https://github.com/CSIRT-MU/Stream4Flow/issues/82.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CSIRT-MU/Stream4Flow/issues/82#event-1638746205, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AgUwKcr7jNuk5VFcWwG5JIcyVrc-XDrFks5t09GGgaJpZM4T8bzl
.

Screenshots are not available within the issue. Please put screenshots directly to the issue as we did (not via email).

I just deployed producer only and perform the same commands as you and everything works... Can you please check with tcpdump on the producer that exported flows were received? Note that softflowd needs approx. 5 minutes to export flows (shows "EXPIRED" messages). Also try to check the status of IPFIXcol, Kafka, Zookeeper, and TCP normalizer services on producer (needs to be active/running):

sudo service ipfixcol status
sudo service kafka-broker status
sudo service zookeeper status
sudo service tcpnormalizer@default status

I do not see any update. Closing the issue.


How to use different versions of gocahce？

Hello author:
Thank you very much for open sourcing the gocache project, it will be very helpful to me; however I don't know much about gochache, I have encountered various problems in using gochache, I can't even run my project, can you make a tutorial on gochache, starting from the main function;
my  errors：
v1：

v2：

Hi,
Code samples lives in the README file.
You issue is that v2.0.0 release brings context as a first argument of all methods (as specified in the release notes here: https://github.com/eko/gocache/releases/tag/v2.0.0).
If you want to add an example directory in the root of the project, you will be really welcome :-)
Closing this issue for now as there is no real issue with the library.


Add script to generate the stub file

This is a draft for a script that can generate the spherely.pyi stub file.
During the EuroSciPy 2024 sprint, I worked with @jorisvandenbossche on #43 . We realized that we need several different _VFunc_* types to cover the different overloaded arguments for functions going forward. We tried a few different approaches to avoid too much boilerplate/copy-paste code, including ways of creating dynamic types but didn't find anything that was well supported by the type checkers.
Instead, the following script can automatically generate code for such classes. It works by looking a # /// Begin types marker and lines defining which types should be added. For example, to create a type that takes 2 geography inputs, as well as an optional radius parameter of type float, we can add the specification line:
#     - n_in=2, radius=float

Running the script will then update the code in-place between the # /// Begin types and the corresponding # /// End types marker. Any existing edits between those markers will be overwritten, but the rest of the file is left alone.

I'm not sure what's the best location for the script. I ended up pulling it outside the src/ directory. But we could still move it in there? Or, we could run the script as part of CI, and maybe move it to a workflow directory instead? Currently, the output of the script isn't perfectly "blackened" code. We could probably add trailing commas to make black always keep the arguments on separate lines? Or run Black as part of the script/workflow to format def on one line where there's enough room.

Thanks @gahjelle that is a good idea!

We tried a few different approaches to avoid too much boilerplate/copy-paste code, including ways of creating dynamic types but didn't find anything that was well supported by the type checkers.

Out of curiosity, did you try or consider using TypedDict and Unpack (PEP 692)? Mypy seems to support it but I'm not sure about the other type checkers (I'm not an expert in Python static typing). I think one limitation is relying on **kwargs instead of a direct / explicit signature for the optional parameters, but probably not a big deal since the signatures in the docstrings are generated by pybind11 and not from the type stubs.
I'm fine with either solution. If using a script, I'd slightly prefer using Python code for the specs instead of parsing comments (e.g., in Xarray generate_ops.py. The script can be part of the code ; I think that for now it is good enough to run it manually when needed (we don't need to re-generate the type stubs unless we change the specs) and then let black format the generated file via pre-commit.

Thanks @benbovy
No, we didn't think about or explore using a TypedDict for doing the typing. I guess that could work. The types would probably be slightly less specific as, for example, radius would be an allowed optional parameter on all (Nin2) types. But maybe that's acceptable to avoid having to generate the stub file?
I've done an update to the generator, so that we're listing the specs explicitly in Python code instead of parsing the comments in the .pyi file.
But I'm fine with abandoning this script and working with the TypedDict and **kwargs instead.
When you say "The script can be part of the code", do you mean that we should move it into the src/ folder? Or that it should be integrated into some other code file?
Thanks again for your feedback.

I gave a try at implementing a solution based on TypedDict + Unpack (see #65) but didn't really succeed unfortunately. It looks like both Python typing and static type checkers are not ready for supporting generic keyword arguments this way (see https://github.com/python/typing/issues/1399).
I also haven't found any alternative solution based on typing that looks reasonably clean.
This PR is likely be the best way to handle keyword arguments of "universal functions" until there is better support for generic TypedDict + Unpack.

Thanks @benbovy for having a look at this and for the update. I'll take a quick stab at updating this one to be easier to use according to your suggestions.


HSEARCH-4209 Reasonable, future-proof serialization strategy for outbox events

https://hibernate.atlassian.net/browse/HSEARCH-4209
https://hibernate.atlassian.net/browse/HSEARCH-4325
Check if coveralls is still down: https://status.coveralls.io/

Full CI: https://ci.hibernate.org/blue/organizations/jenkins/hibernate-search-personal-fabio/detail/HSEARCH-4209/11/pipeline

@fax4ever Looks like it does not compile for some reason. Can you have a look?

@fax4ever Looks like it does not compile for some reason. Can you have a look?

Yes the problem seems that the coveralls plugin tries to access to the generated source code... I'm trying to fix it.

The error is on coveralls server request:

[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report (default-cli) on project hibernate-search-parent: Processing of input or output data failed: Report submission to Coveralls API failed with HTTP status 405: Not Allowed (Response doesn't contain Content-Type header) -> [Help 1]

Before the fix the error used to be on generated source code:

[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report (default-cli) on project hibernate-search-parent: I/O operation failed: No source found for org/hibernate/search/mapper/pojo/route/impl/DocumentRoutesDescriptorDto.java -> [Help 1]

My bet is that it is solved. But let's wait for https://status.coveralls.io/ works again!

Thanks for the review!
Changes has been made.
Let me know if there is anything else to improve/fix here.

Run a full build: https://ci.hibernate.org/job/hibernate-search-personal-fabio/job/HSEARCH-4209/
In particular to check this commit.

Thanks again!
I added 3 new commits with those changes...

Another full build: https://ci.hibernate.org/blue/organizations/jenkins/hibernate-search-personal-fabio/detail/HSEARCH-4209/15/pipeline

Fixed, and another build is here: https://ci.hibernate.org/blue/organizations/jenkins/hibernate-search-personal-fabio/detail/HSEARCH-4209/16/pipeline

Thanks to you for all corrections... :P

Merged, thanks!


Fix partition length calculation

We're seeing some failures in the TF movielens notebooks, failing with
/nvtabular/nvtabular/io/dataset.py in <genexpr>(.0)
    913             # will not be correct if rows where added or dropped
    914             # after IO (within Ops).
--> 915             return sum(self.partition_lens[i] for i in self.indices)
    916         if len(self.indices) < self._ddf.npartitions:
    917             return len(self._ddf.partitions[self.indices])
IndexError: list index out of range

This error seems to be because we have only a single partition_lens available,
but there are two partitions and indices in the dataset.
Fix by fixing the logic that calculates this partition_lens. The row_groups_per_part
was being included twice in the iterating over the partitions (once in calculating the
number of partitions, and also once in the step size).

Resolves #792


Hosting regions

Adding hosting region in APAC

@mrbullwinkle and @kbrowne8
Can you review this old PR and determine whether it needs to be closed or merged?
@MicrosoftDocs/public-repo-pr-review-team

Closing this PR out. We now autogenerate the table for this info. @LazaUK thanks as always for the PR, sorry we couldn't take this one. We had a pending launch that was going to be touching the same file which is why we weren't able to merge this at the time, and then it was superseded by other updates..

#please-close


ran "make fmt"

What changed?
Just ran "make fmt" so that files are formatted correctly.

Why?
These changes come in when running "make build" and interfere when making changes.

How did you test it?
Should be no functional impact.

Potential risks
Not applicable.

We should probably:

make sure our docker containers are updated, if we have any that are doing a build and looking for changes (iirc we have that on server, I forget about client)
bake in the same kind of go version check as server has: https://github.com/uber/cadence/blob/master/Makefile#L31
make sure you've done fmt with that version of Go

I'm assuming you did this with 1.19, but double check?  >=1.19 and <1.19 produce different output, which is the underlying issue you're hitting.

I did it with 1.19 go version. Yeah I was wondering if gofmt might depend on local configuration. I will check on those points. Thanks Steven.

Normally it doesn't, but 1.19 made (good!) enhancements to godoc's capabilities and formatting... and unfortunately it thrashes with older versions :|  Normally they're fairly careful to make changes that are backwards compatible, but not this time.


[RFC] Provide a Custom Resource Definition API

Status: Open for comments
Need
There doesn't appear to be, for a documentation tool, any documentation that pertains to the API that is being used by Backstage for its CRD(s). This would be helpful for helping to new users for adopting as several IDEs are able to read CRD definitions and use them to validate YAML files
I was unable to find anything pertaining to the definition of the CRD, on both the Backstage site nor the GitHub. It would be helpful to add this section

Need some more information here, not sure I understand the request here? Do you mean CRD's for the k8s-plugin or something else?

To try and help clarify , what I'm referring to is per an example YAML for an API  Component Definition
apiVersion: backstage.io/v1alpha1 # <---- IDE doesn't know what this is, cannot find a YAML definition to pull or reach from
kind: API
metadata:
  name: my-service
  namespace: my-namespace
  description: A Service API definition
  tags:
    - developer
  annotations:
    backstage.io/techdocs-ref: dir:.
    backstage.io/kubernetes-label-selector : 'app=myapp'
spec:
  type: openapi
  owner: group:mygroup
  system: id
  lifecycle: experimental
  definition:
    $text: ./api/myapi.yml

at e.g. IntelliJ IDEA it works as it supports schemas and DTOs. E.g., you can use https://json.schemastore.org/catalog-info.json Schema Store is supported out of the box. The IDE attempts to do an automatic detection, but you may need to add your own mapping (e.g., to use https://json.schemastore.org/catalog-info.json for all catalog-info.yaml files).

@benjdlambert
https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json#L572
seems like you can use the file hosted at another repo, too. E.g., backstage/backstage could make sense.
Currently, the schema file is hosted at their repo
https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/catalog-info.json

Nice @pjungermann, think we should do that. Have the definitions alongside the code in the repo, and then we can manage them from there pretty easily and update the schemastore references to point at our repo instead.

at e.g. IntelliJ IDEA it works as it supports schemas and DTOs. E.g., you can use https://json.schemastore.org/catalog-info.json Schema Store is supported out of the box. The IDE attempts to do an automatic detection, but you may need to add your own mapping (e.g., to use https://json.schemastore.org/catalog-info.json for all catalog-info.yaml files).

I can confirm this is working with JetBrains Webstorm and DTDs configured as well.
I'm using the schemastore catalog-info.json:

Thanks to everyone for the help in finding a workaround or a potential solution here

Thanks for everyone for potential workarounds. I tried to use @stephanschielke 's suggestion but trying to use a JSON schema didn't seem to resolve the issue of Jetbrains not understanding the Backstage Resource (Component, API, etc)

@Mercanuis, I had the same problem. I added the json schema mapping and still had error markers on my catalog-info.yaml. In my case, they were caused by the installed kubernetes plugin. It interpreted the catalog-info.yaml as a CDR and tried to validate it. This caused the inspection errors. Try to disable the kubernetes inspections for catalog-info.yaml files. This helped in my case.

I think this issue is not as potent as I thought. I found out recently you can tell IntelliJ that Backstage resources are not K8s resources by just taggin the file # nonk8s at the top


Implement BatchOpenScheme::Gwc19

There is an error using "Gwc19" scheme on separately.rs like this:
let generator = SolidityGenerator::new(&params[&k], pk.get_vk(), Gwc19, num_instances);

Error message like this:
calldata size: 1636
thread 'main' panicked at src/evm.rs:208:21:
Transaction reverts with gas_used 323628 and output 0x
stack backtrace:
    0: rust_begin_unwind
              at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
    1: core::panicking::panic_fmt
              at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
    2: halo2_solidity_verifier::evm::test::Evm::transact_success_or_panic
              at ./src/evm.rs:208:21
    3: halo2_solidity_verifier::evm::test::Evm::call
              at ./src/evm.rs:172:38
    4:separately::main
              at ./examples/separately.rs:51:34

There is an error using "Gwc19" scheme on separately.rs like this:
let generator = SolidityGenerator::new(&params[&k], pk.get_vk(), Gwc19, num_instances);

Did you also replace the ProverSHPLONK in create_proof with ProverGWC? https://github.com/privacy-scaling-explorations/halo2-solidity-verifier/blob/43dada6924306308c0eb50dd041ac2a82ddf387a/examples/separately.rs#L90
I could run the example separately on my side when I replace that.

Did you also replace the ProverSHPLONK in create_proof with ProverGWC?
https://github.com/privacy-scaling-explorations/halo2-solidity-verifier/blob/43dada6924306308c0eb50dd041ac2a82ddf387a/examples/separately.rs#L90
I could run the example separately on my side when I replace that.

Oh, my bad. yes, you are right! I forgot to modify scheme on generating and verifying proof.  It works well.
Thanks