Indicate which version of a schema was used to create metadata instances

When saving a metadata instance it might be good to also specify which version of schema was used to create the instance.
For example: I create an instance using the Person schema from the latest version of openMINDS and save it to a JSON-LD file. If I (or someone else) loads it at a later time,, it might be good to know which version was used to create it in order to re-create the metadata instance in its original form?

Two suggestions (when saving instances to jsonld):

add the version to the @type:

"@type": "https://openminds.ebrains.eu/core/v3/Person"

add a "custom" @version property

"@type": "https://openminds.ebrains.eu/core/Person",
"@version": "v3"

Not sure how to solve this correctly. Instances can be valid for types from multiple versions. Potentially the second one could be adjusted by providing a list? Still not sure. @openMetadataInitiative/openminds-developers your thoughts?

My 2 cents about this:

Adding it to the type is imho not the right place because the type doesn't specify the structure of the instance but "just" its type. This means that a person remains a person even if you change the representation of it.

I would argue that it is irrelevant with which version an instance has been created - the only important information is with which versions it is compatible (remember that schemes can stay the same across versions or might be backwards compatible). You could either add a property called "compatibleWith", ask to dynamically cross-validate against the corresponding JSON schemes or by storing the compatibility information externally. I would recommend not to add this information to the instance because it could cause a change of the instance information solely because a non-related event (the creation of a new version) has taken place. (Which could create confusion e.g. if you have scripts checking if the payload has changed). Keeping track of compatibility externally (e.g. via a central lookup map/index or a side-car file) on the other hand would make sense.

@olinux that means we would rather provide a convenience function (e.g. in the Python, Matlab packages) that could tell for an instance which openMINDS versions it can be used for?


delete result ok

I'm trying to script a deletion but continue on if the release doesn't exist. Currently if the release is not found, helm delete returns an error. Compounding this, there is no command to specifically look for the existence/non existence of a particular release. This makes it difficult to script/ci helm
My current work around is this which returns the proper error codes:
(! helm get values --namespace xxx yyy) || helm delete --namespace xxx yyy
But this is rather awkward.
Can we add a flag to delete called --not-exists-ok ? that returns 0 if the release does not exist?
Also, can we add a new subcommand
helm release-exists  that returns 0 if it exists and 1 otherwise?

Compounding this, there is no command to specifically look for the existence/non existence of a particular release.

helm list?

Also, can we add a new subcommand
helm release-exists that returns 0 if it exists and 1 otherwise?

That use case could be handled as a simple plugin: https://helm.sh/docs/topics/plugins
In general, these small one-off features like the one suggested here are well-suited to be made as Helm plugins. That way we can reduce the maintenance burden on our end, but the community can extend Helm for their own specific use cases.
Hope this helps.

Compounding this, there is no command to specifically look for the existence/non existence of a particular release.

helm list, specifically helm list --all-namespaces?

helm ls and grepping out the release name is error prone to get correct. It does not make it easy to use helm in a CI/CD pipeline or shell script. Just mentioning it as CI/CD is one of the things Helm really enables and filing off that rough edge would help the use case.

Also, can we add a new subcommand
helm release-exists that returns 0 if it exists and 1 otherwise?

That use case could be handled as a simple plugin: https://helm.sh/docs/topics/plugins
In general, these small one-off features like the one suggested here are well-suited to be made as Helm plugins. That way we can reduce the maintenance burden on our end, but the community can extend Helm for their own specific use cases.
Hope this helps.

Again, if one of helm's primary use cases is ci/cd, making it as easy as possible to get into without needing to add lots of extra tools in order to get a basic workflow going would be beneficial. We are not talking about a significant amount of code being added to helm. Its basically a simpler version of 'helm get values 2&>/dev/null >/dev/null' as it doesn't actually need to fetch values and the cli isn't as ugly looking. Adding a few more lines of code in helm to eliminate to need to juggle plugins would be a win in my book. Its also much more obvious to the user how to actually do the task. It took me a while to settle on helm get values as a viable test instead of trying to grep it out of helm ls. This would save the user time making helm more valuable to the user.
There are other usability problems with plugins that we can get into, but probably not the right place to have the discussion.

Again, if one of helm's primary use cases is ci/cd

I think that's an unfair assessment to make here. Helm is a package manager. It is not a configuration management tool like Chef or Puppet. Helm certainly does provide certain features that are shared with such systems, though.
In other words, Helm is more focused to model similar package managers like brew, apt, yum, pacman, etc. It is not modeled against configuration management or ci/cd tools like Chef/Puppet.

Fair. I made an assumption. Sorry. I don't actually know how many folks use helm within CI/scripts. But I just know that the vast majority of the users here are using it through CI. I believe its also considered as a best practice in the K8s general community to use CI to load in workload. Generally helm has worked very well in CI to do that.
Anyway, its just feedback on how to potentially make it easier for a set of users of helm.Your free to not utilize it.


Another warning, queryselector

http://ip-adress/local/lovelace/vertical-stack-in-card.js?1534500832.8876953&v=0.0.6:61:50 Uncaught TypeError: Cannot read property 'querySelector' of null
Latest Chrome is used.
Config:
    title: Security
    cards:
      - type: entities
        entities:
          - entity: input_boolean.show_security
            name: Show
            icon: mdi:security-home
      - type: conditional
        conditions:
          - entity: input_boolean.show_security
            state: "on"
        card:
          type: custom:monster-card
          show_empty: false
          card:
            type: entities
          filter:
            include:
              - entity_id: "sensor.*movement*"
                options:
                  secondary_info: last-changed
      - type: conditional
        conditions:
          - entity: input_boolean.show_security
            state: "on"
        card:
          type: custom:monster-card
          show_empty: false
          card:
            type: entities
          filter:
            include:
              - entity_id: "sensor.*lock*"
                options:
                  secondary_info: last-changed
              - entity_id: "sensor.*door*"
                options:
                  secondary_info: last-changed
                state: 'Open'
                state: 'Closed'
              - entity_id: "sensor.*window*"
                options:
                  secondary_info: last-changed
                state: 'Open'
                state: 'Closed'

I'll check it, Thanks!

I commented out the row that was causing the error and haven't noticed any change in functionality or looks.


[162, 163] Fix build and test hooks (main)

Do not install unittest-xml-reporting==1.14.0
Update versions of externals packages in build hook

Tests pass.

Running tests for EL8 and EL9. If those succeed, then this will be ready for merging.
will report back once those tests complete.

Just realized this is for the main branch.
We need this to happen on 4-3-stable.
Postponing testing until that's done.

@FifthPotato - Let's go ahead and cherry-pick this to 4-3-stable and then we'll merge this after or at around the same time.

@FifthPotato Please address the review comments and leave a comment once completed.

Updated. Tests still pass.

For future PRs, let's keep spaces out of the issue number list (in square brackets) for commit messages.


Is there any way to remove HTTP headers from response for amplify hosting i.e Server Header

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting questions.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
NEW_APP
AWS Region
us-east-1
Amplify Hosting feature
Custom headers
Question
I want to remove some headers from HTTP response & one of the headers is Server Header.
I know we have a way to add custom headers but can we also remove/hide some headers?

Recently this feature was released for Amazon Cloudfront.
I was wondering if it is available for Amplify

Hi @ume3119 👋 , thanks for reaching out to us.
Currently, we do not support the removal of HTTP response headers and I am going to mark this as a feature request.
That being said, can you please elaborate and provide us some detailed insights on your use case for this particular feature?

Hi @Jay2113 there are certain headers that we intend to remove to not disclose unnecessary information.
For example Server header


I packed Font-Mfizz as a Ruby Gem

I run into Font-Mfizz when I need some icons for programming languages in one of my Rails projects. Then I packed it as a Ruby Gem months ago.
Here it is:  https://rubygems.org/gems/font-mfizz-rails
https://github.com/gingerhot/font-mfizz-rails
I release new version with the release of Font-Mfizz here.
It will be very convenient to put a link in your README or website for more guys to use it.
Thanks~

@gingerhot That's awesome.  Added it to the main README.md


Improve Function library interfaces

Currently it is awkward to write Function implementations due to the inputs and outputs being an Object[]. It would also be nice if we could remove the requirement for the Inputs and Outputs annotation to define the object types.
Ideally a FilterFunction should not have to cast the parameters into the required types, something like:
public class FilterFunctionExample extends FilterFunction {
    @Override
    public boolean filter(final String param1, final Integer param2) {
        // do something
    }
}

The Function package names could also be improved to make it a bit clearer what interfaces you should use.
The method name in FilterFunction could be "isValid" instead of "filter" this would make it clearer what the method does.
We have investigated several different options, each having different advantages, but none are perfect. The best so far is something like:
public abstract class FilterFunction {
    public abstract boolean isValid(Object[] input);

    public abstract class FilterFunction1<PARAM_1> extends FilterFunction {
        public boolean isValid(Object[] input) {
            return isValid((PARAM_1) input[0]);
        }

        protected abstract boolean isValid(PARAM_1 item);
    }
}

public class IsTrue extends FilterFunction1<Boolean> {
    public boolean isValid(Boolean item) {
        return Boolean.TRUE.equals(item);
    }
}

In order to deal with the Object[] return types in AggregateFunctions and TransformFunctions we could return an NTuple, where NTuple implementations wrap an Object[] and have generic types like:
TwoTuple<ITEM_1, ITEM_2>
ThreeTuple<ITEM_1, ITEM_2, ITEM_3>

Needs further investigation.

Pull request accepted, merged branch into develop.

Migration Steps
Ensure any simple custom functions that take a single input/output extends one of the following:
SimpleFilterFunction, SimpleAggregateFunction or SimpleTransformFunction and add in the generic type for your function.


Training on the custom dataset

Hi! Thanks for releasing the code of your wonderful work, including both training and inference. I want to train SSDNeRF on my own dataset and have prepared the dataset in the format of the shapenet srn dataset. However, after two days of training, the results are still not good. Here are the visualization results of one tri-plane representation.

It can be seen that there are many noises in the feature plane, which also reflects in the final geometry reconstruction.

And the test rendering result is also not good.

I use the config file ssdnerf_cars_uncond for training. So what should I pay attention to during the training process? Can you give some suggestions based on the current training results? Thank you very much!

Hi! I think this could be caused by imbalanced diffusion and rendering loss. It is very important in SSDNeRF to tune the relative weights of diffusion and rendering loss. Also, I would recommend starting from the new models (e.g., ssdnerf_cars_uncond_16bit), which is more stable to train.

Also, I noticed another minor issue: the object seems too small in the triplane space. It is recommended to normalize the objects' scale to fit them in the triplanes. The scale can be altered through the dataloader's radius parameter.
https://github.com/Lakonik/SSDNeRF/blob/5150270b37f691fd4fcb6614fcd55caa0bf3940b/lib/datasets/shapenet_srn.py#L44

Thanks for your advice! I did use Blender to generate the dataset and modified the code that generates the rays accordingly. I will try the config file you specified for training. Also thank you very much for your suggestion on the data processing part!

With your suggestion, I tried training again, and this time the noise in the tri-plane was much less. At least I could see the approximate shape of the model clearly, but the surface was still not smooth.

May I ask which parameters you suggest adjusting to improve training results? In addition, I am also trying to fine-tune the pre-trained checkpoint of the shapenet table on my data, and the current results also gradually appear a lot of noise.

@FrozenSilent could you please explain in detail how you generated your custom shapenet srn data? I can't find any resources for the same. I have a few computationally generated meshes that I would like to convert into the specified data format and I've written a script for it in blender. The training on the said data works but the testing fails. It would be a great help if you could breakdown your process.


Vasco spawn marker in Ship interior cells.

Ships other than the Frontier don't seem to have a functioning VASCO interior spawn point

Details
Currently, there is a bug in the game that causes Vasco to get stuck in your ship hallways.
Based on tests the source of the problem seems to be that other than the Frontier, the ship interior spawn markers for Vasco in every other ship is bugged.
When you land on a planet, outside the ship, Vasco spawns in front of the landing bay (stairs or the main ramp). But when you are in your ship, Vasco is supposed to spawn besides the landing bay hatch or door inside the ship (like when you just assign him while you're inside). But this is currently bugged, and the exterior spawn point coordinates carries over and glitches Vasco upwards through the ship in the same horizontal coordinates he was supposed to be on the ground.
Only way to prevent Vasco from blocking critical paths (to the cockpit for example) is moving the landing bay on your ship to a place where the ground spawn location does not cross upwards into any important HABs. Frontier is the only ship that does not have this problem.
Game Version
1.7.36
Language
English (EN)
New Game
Yes
Reproduction Steps
Have a ship other than the Frontier (preferably a decently sized ship with more than one floor with an interior cell above where Vasco would be on the ground outside) - Have Vasco as a crew member - Land on a planet and go outside - come back inside the ship (board the ship normally) - Try to find Vasco inside - He should be glitched upwards from where he was on the ground outside - No mods installed.

Can report that this bug is still happening in 1.8.86 - and he blocks pathways in real annoying ways.  I want Vasco as crew on my ship, but I get super-annoyed with this one.

Fixed in v<IP_ADDRESS>
"Fixed an issue that could cause Vasco to appear incorrectly in the player's ship."


[Event Parameter Request] Codeunit 5870 "Calculate BOM Tree" - Event "OnGenerateProdCompSubTreeOnAfterBOMBufferModify"

Describe the request
Hello,
we need the global variable "TreeType" of the Codeunit 5870 "Calculate BOM Tree" as parameter in the event "OnGenerateProdCompSubTreeOnAfterBOMBufferModify".
[IntegrationEvent(false, false)]     local procedure OnGenerateProdCompSubTreeOnAfterBOMBufferModify(var BOMBuffer: Record "BOM Buffer"; RoutingLine: Record "Routing Line"; LotSize: Decimal; ParentItem: Record Item; ParentBOMBuffer: Record "BOM Buffer")     begin     end;
Additional context
.
Internal work item: AB#501507

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


CLI domain failover should be performed without Security protection

fix in https://github.com/uber/cadence/pull/1295


⚡ Enhance Riverpod with SWR (Stale-While-Revalidate) Support for Improved Offline Data Handling

Current implementations in Async Riverpod lack a straightforward and reusable approach to apply the SWR (Stale-While-Revalidate) strategy. This limitation affects the efficiency of serving non-frequently-changing content in our application, particularly under poor network conditions. By integrating SWR, we can instantly deliver cached content during recurring user sessions, significantly enhancing the user experience.

The name “SWR” is derived from stale-while-revalidate, a HTTP cache invalidation strategy popularized by HTTP RFC 5861. SWR is a strategy to first return the data from cache (stale), then send the fetch request (revalidate), and finally come with the up-to-date data.

Background
SWR is a cache invalidation strategy that optimizes data fetching by initially serving stale data from the cache, followed by a revalidation request to update with the latest information. This approach is particularly useful for applications needing to display data quickly, even when offline or under poor network conditions. It has been successfully implemented in various web frameworks and has a growing popularity in the developer community.
Proposal
I propose an API enhancement for Riverpod that incorporates SWR while maintaining backward compatibility. The key aspect of this enhancement is the addition of new properties without altering existing structures. This can be achieved with the following API design:
@riverpod
class Test extends _$Test {
  @override
  /// A method to fetch fresh data from sources like APIs.
  /// Called during the first initialization of the provider, returning [AsyncValue<SomeDataFromAPI>]
  /// Overrides the default [AsyncValue<SomeDataFromAPI>] returned by [cached()]
  /// with [AsyncValue.isValidating = false], indicating fresh data.
  Future<SomeDataFromAPI> build() async {
    // fetch from API...
  }

  @override
  /// An optional method to build the provider from cached data (e.g., localStorage).
  /// Called during the first initialization of the provider, returning [AsyncValue<SomeDataFromAPI>]
  /// with [AsyncValue.isValidating = true], indicating data from cache.
  Future<SomeDataFromAPI> cached() async {
    // Fetch data from local storage solutions like SQLite.
  }
}

/// Extension of AsyncValue to support SWR
class AsyncValue {
  /// Indicates if a revalidation request is in progress.
  bool isValidating;

  /// Inherited properties from [AsyncValue<T>], such as data/loading state.
  /// bool isLoading, etc..
}

Additional context
Given Riverpod's widespread use in mobile application development and the popularity of SWR in similar contexts (e.g., React's implementation), integrating this feature could significantly elevate Riverpod's utility.
For indie developers competing with larger organizations, tools like Riverpod that offer powerful functionalities with minimal effort are invaluable. Implementing SWR in Riverpod could be a game-changer, providing a much-needed edge in application optimization and user experience.

I think your proposal is interesting, though further extending the API surface of AsyncNotifier and AsyncValue may make them harder to use (I'll let @rrousselGit comment on that).
Alternatively, maybe you could use StreamNotifier to load from the cache first, then emit a new state when the server responds? I haven't really thought much about the details, so I may be off-mark here.

SWR is covered by https://github.com/rrousselGit/riverpod/issues/1040 (even if the description is lacking).
You can have it today with:
@override
build() {
  ref.onAddListener(() => ref.invalidateSelf());
}

Riverpod already preserves the previous state when a new state is loading.
And AsyncValue already differentiates "isReload" from "isRefresh".

I am trying to wrap my head around this, and I've tried doing a few different examples, however it's still not clear to me.
Can you provide a more hands-on example with both fetching as well as where in the process we fetch from and save to cache?

Well you're asking for multiple different things in that issue.
SWR and offline are not necessarily coupled. You can do offline without SWR and SWR without offline.
The code I gave is what's needed for SWR. But you have to deal with offline on your own.
With that snippet, say your home does a network request. Then, when you open a new page, the page will show the previous network request's state. But a new request will be made in the background. And when that new state is available, the UI will update.

Sorry if I am not totally clear here, but what I'd like to achieve with Riverpod here is a way to use providers "as they're meant", but also work "offline" or pre-fill them with local cached data, before the network requests succeeds. This is what I suggested could be achieved more natively with the addition of cached method.

Offline is tracked here https://github.com/rrousselGit/riverpod/issues/1032

Aha, now we're talking. That's exactly what I have been looking for.


Address static analysis messages for immutable_collection.dart

Current static analysis for fast_immutable_collections prefers braces for if statements. This PR addresses 2 if statements without braces in immutable_collection.dart.


Just for aclaration

I guess i am forgetting one step to view a successful result. Does we need install native Fabric (iOS/Android) module first?

Hi @shuffledex,
Yes the setup process is still in flux and the README is not entirely accurate. You should set up Fabric as instructed on their website firsts. If you run into issues, let me know as I will help you out.


Fix: potential fix for incorrect layer updating when loading indicator

Also changed how logging can be enabled in config

Might fix https://github.com/eodash/eodash/issues/100
https://github.com/eodash/eodash/issues/102
@lubojr to test locally

@santilland @A-Behairi #102 is not fixed for me locally on this branch.

You would need to build it, or we create a release, but 102 not working already makes me be unsure about the potential fix.

@santilland @A-Behairi #102 is not fixed for me locally on this branch.
How can I try out the #100 ? (which was only happening in vitepress env)

@lubojr you can test it by

running npm i && npm pack in eodash
copying the generated .tgz file to the app hosting the library
changing the version (value) of @eodash/eodash with the path to the .tgz file
running npm i


Some elements have wrong info and 4 places in a row

Plz Do correct it if u can .....it would be a great help

This issue is solved in #178 PR...

You can close this one...

Plz Do correct it if u can .....it would be a great help

I have added another issue #175 for the locations...
This issue was specially for the rows, I fixed them :)


Are we able to add classes to a mj-button?

I have been trying to build an email template that reduces the size of my button on smaller screens however when using css-class it does not work and I cannot find another way of making it responsive.
I would like to be able to add css-class on to any of the standard body components, is there a reason why it is restricted?
I have added my mjml code just incase anybody knows a fix for my issue, thanks in advance
`

    <mj-text css-class="font-size" align="center" color="#000"  letter-spacing="2px;">
      20% OFF EXCLUSIVE WALLPAPER
    </mj-text>

    <mj-button css-class="testing" align="center" background-color="#041239" color="#fff" border-radius="0" font-size="16px" font-family="Montserrat" inner-padding="15px 40px" href="https://www.grahambrown.com/uk/wallpaper/g-and-b-exclusive-wallpaper/">SHOP NOW</mj-button>
  </mj-column>

`

css-class will always be applied at the top level of a component. So yes, it works even on button, just check the output  HTML to tweak the selector


Setup Service Account for appropriate permissions when container mode is set

We need to set up a service account with these permissions when a runner with k8s hooks is configured
rules:
- apiGroups: [""]
  resources: ["pods"]
  verbs: ["get", "list", "create", "delete"]
- apiGroups: [""]
  resources: ["pods/exec"]
  verbs: ["create", "get"]
- apiGroups: [""]
  resources: ["pods/log"]
  verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
  resources: ["jobs"]
  verbs: ["get", "list", "create"]

Then map this service account into the runner

if a user specifies a service account, we should trust it has the right permissions and not modify anything.
If no service account is specified, lets create one and clean it up!
I want to be wary of how many resources we make, can we just create a role per namespace or something, so we don't have one role per runner


Error while hosting on server

#Compile time Error
I am getting such errors while i tried to compile the program. Please Help me to solve this error.

if any file is missing or any version problem is there please tell me so i can check it and try again.


How do gym.make go to envs/mujoco/ant.py or half_cheetah.py

Dear author:
I have a small question when trying to understand your code.
I saw you make env by call:
def make_env(env_name):
	"""
	return a function
	:param env_name:
	:return:
	"""
	def _make_env():
		return gym.make(env_name)

	return _make_env

However, you dont call ant.py or half_cheetah.py explicitly. So I wonder How do the gym know you have implemented this class HalfCheetahDirEnv and HalfCheetahVelEnv etc?

In gym you can register custom environments so that you can call them with gym.make. The registrations are done here.


Renaming the JSESSIONID cookie

Is it possible to rename the JSESSIONID cookie?
Is it possible to connect to a proxy instance's websocket without setting the JSESSIONID Cookie in the browser?
Ideally, I would like to proxy all connections through a server without the end user knowing the JSESSIONID, but I cannot get websockets to load without setting the JSESSIONID Cookie in the browser.
Edit: I guess there needs to be some way to verify the user. So the question has been changed.

Hi
You should be able to change the cookie name using the following code in application.yml:
``
server:
servlet:
session:
cookie:
name: MYSESSIONID


Install fail!

I run npm install -g vue-cli in my computer(win10),but install fail.The terminal print the message:
Install fail! Error: ENOENT: no such file or directory, chmod 'C:\Users\linghuam\AppData\Roaming\npm\node_modules\vue-cli\node_modules\_js-beautify<EMAIL_ADDRESS>Error: ENOENT: no such file or directory, chmod 'C:\Users\linghuam\AppData\Roaming\npm\node_modules\vue-cli\node_modules\_js-beautify<EMAIL_ADDRESS>    at Error (native)

can you help me with this problem,thank you very much!

See https://github.com/beautify-web/js-beautify/issues/1247

dup of #591

same problem

Emergency fix for vue-loader is incoming: https://github.com/vuejs/vue-loader/commit/97bd432bba4350988bfd0db6d7a1a514b66a9826


feat: add AppSync Todo template for Java

Description of changes
add Java AppSync Todo templates
Note: Not to merge this until https://github.com/aws-amplify/amplify-cli/pull/10841 has been merged.
The PR is to add Java template examples that allow Lambda functions to call a AppSync API.
Changes include

adding AppSync Todo templates for IAM and API key based examples.
adding new prompt that inputs auth type.
Modify lambda-function.ts file to move cursor based on auth type
adding new attribute to the core settings to allow auth selection
adding e2e tests for both the templates

Issue #, if available

Description of how you validated changes
Wrote e2e test and ran them locally. also used the amplify-dev in a frontend app to test the flow.
Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #10867 (2c36733) into dev (9100adf) will decrease coverage by 0.16%.
The diff coverage is 44.52%.

@@            Coverage Diff             @@
##              dev   #10867      +/-   ##
==========================================
- Coverage   47.43%   47.26%   -0.17%
==========================================
  Files         673      674       +1
  Lines       33274    33211      -63
  Branches     6724     6698      -26
==========================================
- Hits        15782    15697      -85
- Misses      15803    15827      +24
+ Partials     1689     1687       -2

Impacted Files
Coverage Δ

...s/awscloudformation/utils/trigger-file-uploader.js
18.00% <0.00%> (ø)

...fy-category-notifications/lib/multi-env-manager.js
0.00% <0.00%> (ø)

.../amplify-cli-core/src/state-manager/pathManager.ts
73.33% <ø> (ø)

...amplify-cli-core/src/state-manager/stateManager.ts
37.56% <0.00%> (ø)

...r-awscloudformation/src/amplify-service-manager.js
5.60% <0.00%> (-0.14%)
:arrow_down:

...r-awscloudformation/src/amplify-service-migrate.js
10.71% <0.00%> (ø)

...y-provider-awscloudformation/src/attach-backend.js
8.86% <0.00%> (-0.41%)
:arrow_down:

...es/amplify-provider-awscloudformation/src/index.ts
53.12% <ø> (-0.49%)
:arrow_down:

...y-provider-awscloudformation/src/initialize-env.ts
22.03% <ø> (-0.55%)
:arrow_down:

...ider-awscloudformation/src/upload-appsync-files.js
11.20% <0.00%> (ø)

... and 60 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Typescript module resolution "Bundler" types

When setting module resolution to "Bundler" typescript can't find the types for this library, they need to be explicitly written in the exports field in the package json I think:
when I update it to this:
"exports": {
    "import": {
      "default": "./dist/index.mjs",
      "types": "./dist/index.d.ts"
    },
    "require": {
      "default":  "./dist/index.js",
      "types": "./dist/index.d.ts"
    }
 },

Everything works, so will use patch-package in the meantime, would be great if sonner could update!
Im also not an expert at js module stuff so could be missing something, but the above worked for me :)

Fixed in #161


tsc does not infer "this" correctly in MyClass.prototype.getData syntax

TypeScript Version:  2.1.4
Code
Consider this:
class MyClass {
  data: string;
  wrongData: {};
}

interface MyClass {
  getData(): string;
}

MyClass.prototype.getData = function() {
  return this.wrongData; // this.data;
};

Expected behavior:
VS Code should show an error, tsc should refuse to compile it. Hovering this in VS Code should show MyClass, not any.
Actual behavior:
TypeScript 2.1.4 compiles this without complaining. VS Code doesn't show an error. It infers correctly that getData() should return a string, but it thinks this is any.

If this type is not specified, it is inferred to be any. consider adding a this declaration to your interface:
interface MyClass {
  getData(this:MyClass): string;
}

Well, I guess this is a bit more verbose but it would work as a workaround for now. However, it looks ugly and seems totally unneccessary. MyClass.prototype.xxxx already implies that this is MyClass, doesn't it? So why can't or shouldn't TypeScript infer this correctly?

Please see https://github.com/Microsoft/TypeScript/issues/10288


Calculate the number of bytes in a transaction with TronWeb.

Hello, is it possible to calculate the number of bytes in a transaction before broadcasting using TronWeb?
I found this info in the Tron Protocol docs but haven't been able to achieve the same with TronWeb/TronStationSDK:
https://tronprotocol.github.io/documentation-en/faq/#how-to-calculate-the-number-of-bytes-of-transactions
Any help will be highly appreciated.

Currently, no API or method which can directly calculate the bytes.
However, you can refer to this code to implement it by yourself. thanks.
https://github.com/tronprotocol/java-tron/blob/develop/framework/src/main/java/org/tron/core/Wallet.java#L362


Added new nano-degrees

The associated course are still not public so relevant section is not added

Agree


sed Error for CERTIFY_PASS command?

This is in the docs but I'm getting a sed error?
CERTIFY_PASS=$(LC_ALL=C tr -dc 'A-Z1-9' < /dev/urandom | \
  tr -d "1IOS5U" | fold -w 30 | sed "-es/./ /"{1..26..5} | \
  cut -c2- | tr " " "-" | head -1) ; echo "\n$CERTIFY_PASS\n"

sed: 1: "s/./ /{1..26..5}
": bad flag in substitute command: '{'

You didn't say what platform you are running on but, at a guess, I'd say it's a Mac. Am I right? If yes then please study the screenshot:

What it shows is:

The command running successfully on macOS (in this case an Intel iMac running Ventura).
The version of the bash shell interpreter that has just run the command successfully (5.2.26).
The output from which -a bash showing that two instances of bash are in my search path (the first path is the one that launches when I launch Terminal).
Explicitly launching the second version at /bin/bash. Even though there is no obvious change, that second version takes control at that point.
The version that is running now is 3.2.57.
The result of running the command using version 3.2.57 of bash - the same error as you are getting.

Why is this so? Well, I don't claim to know all the ins and outs of this and I certainly can't speak from certain knowledge so please take this with several grains of salt. What I have read in a few places on the web (example) is that the licence conditions for bash changed in a way that troubled Apple. The upshot is that macOS ships with an obsolete version of bash (3.2.57), and I understand that's also the reason why macOS now defaults to zsh.
I am not a fan of zsh so I used HomeBrew to install an up-to-date version of bash. You could do the same.
That said, zsh will execute the command without error so if that's all you want to do:
$ /bin/zsh
$ CERTIFY_PASS= ...

If my original guess was incorrect (you aren't using a Mac) then "obsolete version of bash" is still the most-likely answer. You'll just have to figure out how to upgrade.

Thanks so much, I installed an upgraded version of bash although I mainly use fish shell now, having moved on from zsh.
Added one small tweak though see the -e at the bottom
CERTIFY_PASS=$(LC_ALL=C tr -dc 'A-Z1-9' < /dev/urandom | \
  tr -d "1IOS5U" | fold -w 30 | sed "-es/./ /"{1..26..5} | \
  cut -c2- | tr " " "-" | head -1) ; echo -e "\n$CERTIFY_PASS\n"

Please reopen if this is still an issue with the more portable printf change.


Allow to hide pages

[x ] I agree to follow the Code of Conduct that this project adheres to.
[ x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
I have diagrams for projects with lots o pages as I use them for reference and evidence of the evolution of my design process but many times it happens the page tabs become cluttered so I'm not able to easily identify the page title. Currently the only option I have is to delete pages but that's not what I want.
Describe the solution you'd like
I'd like to be able to hide or archive pages so the app only display a few ones (usually the most recent/relevant ones) and when I need to revisit old pages for reference I can simply unhide/unarchive them.

A First version could allow to hide page by page but for unhide/unarchive it could let to unhide/unarchive all pages.
A 2nd version could allow to unhide/unarchive specific pages. Google Spreadsheets allows this through a menu option (View -> Hidden sheets -> List of currently hidden sheets). For the drawio such option could be added to the page bar man (the bottom-left three dots icon)

Feel free to add he feaure reques here: https://github.com/jgraph/drawio/issues/647


Restricted behaviour for intern/extern variables

The body of intern/extern varialbes will be set at compile time. This should be documented somewhere:
(def test (var intern int (printf "hello\n"))) ;;gets printed at compile-time
No init functions get called on these variables. It is also not possible to define initializers on other types:
(import cstdio)

(def monster (struct intern ((a int))))

(def init (fn intern bool ((a (ref monster)))
  (printf "init monster\n")
  true))

(def setf-copy-init (fn intern bool ((a (p monster)) (b (p (const int))))
  (printf "init monster copy\n")
  true))

(def setf-move-init (fn intern bool ((a (p monster)) (b (rv-ref (const int))))
  (printf "init monster mov\n")
  true))

(def monster0 (var intern monster)) ;;nothing gets printed
(def monster1 (var intern monster 1)) ;;error, wrong type

(def main (fn extern-c void (void)
  (let ((a monster)
        (b monster 2))  ;;these work as expected
    (do))))

Extern functions (extern-c) are not yet accessible:
(def glCreateProgram (fn extern-c uint (void)))

(def program (var intern uint (glCreateProgram))) ;;here glCreateProgram is not yet accessible

(def main (fn extern-c void (void)
  (setv program (glCreateProgram)))) ;here it is accessible

(compile with flag -lGL , opengl functions may not be a good example, you would define them manually anyway, to ensure that everyting important is already initialized)

Thanks for this.  Initialisation of non-procedure-scoped variables has now been documented.
If a library is specified via the -l flag, it will not be available at compile time.  The -a flag can be used to make a dynamic library's symbols available at compile time.


Allow CDN_PKG_PATH at runtime.

This PR implements runtime support for CDN_PKG_PATH, preferring it when available.
Beforehand, only build time would be read.
Why
In my case, my cdn path is categorised as a sensitive key, therefore only available at runtime later than the build stage.

I would lean towards a solution that kept the env var check during compile time, and could be overriden by an env var at runtime. This way both users get what they want

@benwis could you elaborate? I read what you're saying to be exactly how I implemented it.
Before:
avail at build time ? use else default
After:
avail at run time ? use else before logic

I think you're right, I made a mistake with that. Jet lagged 8 hours in London is not helping. Thanks for the PR


Can't install 1.0.0

$rustup toolchain add 1.0.0
info: syncing channel updates for '1.0.0-x86_64-unknown-linux-gnu'
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-1.0.0.toml.sha256'
info: caused by: http request returned an unsuccessful status code: 403

This file seems to only exist for 1.8.0 and up.
$rustup toolchain add stable-2015-05-15
info: syncing channel updates for 'stable-2015-05-15-x86_64-unknown-linux-gnu'
error: could not download file from 'https://static.rust-lang.org/dist/2015-05-15/channel-rust-stable.toml.sha256'
info: caused by: http request returned an unsuccessful status code: 403

There seems to only be a text version of this file.

I've hit the same bug, when wanting to install rust 1.7.0. Its important to have access to historic versions. I for example want to test whether my project runs on rust 1.7.0 so that I can suggest my users to install the debian packages, which I would prefer over asking them to download multirust and stuff.

rustup is supposed to fall back to other installation methods when it can't find the modern installation manifests, but the feature is broken. I thought a PR went through to fix it, but it definitely doesn't work on 0.2.0.
Duplicate of https://github.com/rust-lang-nursery/rustup.rs/issues/452


Adding Calendarific

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is ordered alphabetically
[x] My submission has a useful description
[x] The description does not have more than 100 characters
[x] The description does not end with punctuation
[x] Each table column is padded with one space on either side
[ ] I have searched the repository for any relevant issues or pull requests
[ ] Any category I am creating has the minimum requirement of 3 items
[x] All changes have been [squashed][squash-link] into a single commit

Stop this service
On Sat, Oct 9, 2021, 23:19 Simonarde Lima @.***> wrote:

My submission is formatted according to the guidelines in the contributing
guide http:///CONTRIBUTING.md
My addition is ordered alphabetically
My submission has a useful description
The description does not have more than 100 characters
The description does not end with punctuation
Each table column is padded with one space on either side
I have searched the repository for any relevant issues or pull
requests
Any category I am creating has the minimum requirement of 3 items
All changes have been [squashed][squash-link] into a single commit

You can view, comment on, or merge this pull request online at:
https://github.com/public-apis/public-apis/pull/2431
Commit Summary

Adding Calendarific
https://github.com/public-apis/public-apis/pull/2431/commits/e5006fd5b60ef9242440e45f5a589f875c165c26

File Changes

M README.md
https://github.com/public-apis/public-apis/pull/2431/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
(1)

Patch Links:

https://github.com/public-apis/public-apis/pull/2431.patch
https://github.com/public-apis/public-apis/pull/2431.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/public-apis/public-apis/pull/2431, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AV4FXTXFXF3424BP2ZPTMGDUGB6BNANCNFSM5FVQNBQA
.


Is there an easy way to use Standardized() constraint with target std not equal to 1?

Is there an easy way to use constraint=Standardized() with target standard deviation set to some value sigma instead of 1? Or would I need to define my own class by copying the _Standardized() code and modifying the standard deviation there?

There isn't a way to do that today, sorry about that!


New user requires review

Hi,
I'm trying to implement ngrx-forms into an application I'm working on and so far everything is working and  a whole bunch of code has been removed or moved from components to reducers, which is great. Before I continue the implementation I'd like a quick review of the way I'm working since I'm not 100% sure it's done the way it should be done, especially the validation and adding/updating addresses. The reason for the unusual approach with address is because there is only 1 form for adding/editing them and not a form per address.
export const FORM_ID = 'asset';
export const SUBADDRESSFORM_ID = 'asset_address';

export interface State {
    currentSubaddress: FormGroupState<AssetAddress>;
    formState: FormGroupState<Asset>;
}

const initialState: State = {
    currentSubaddress: undefined,
    formState: createFormGroupState<Asset>(FORM_ID, new Asset())
};

const validationFormGroup = updateGroup<Asset>({
    location: updateGroup<AssetLocation>({
        address: updateGroup<AssetAddress>({
            countryCode: validate(required)
        })
    })
});

const assetFormReducer = createFormGroupReducerWithUpdate<Asset>({
    location: updateGroup<AssetLocation>({
        address: updateGroup<AssetAddress>({
            countryCode: validate(required)
        })
    })
  });

export const addOrReplaceAddressInAssetIdentification = (asset: Asset, address: AssetAddress): Asset => {
    const addressIndex = asset.identification.addresses.findIndex(c => c.id == address.id);
    let newAddresses: AssetAddress[];
    if(addressIndex != -1) {
        newAddresses = [
            ...asset.identification.addresses.slice(0, addressIndex),
            address,
            ...asset.identification.addresses.slice(addressIndex + 1)
        ];
    }
    else {
        newAddresses = [
            ...asset.identification.addresses,
            address
        ];
    }

    return new Asset({
        ...asset,
        identification: new AssetIdentification({
            ...asset.identification,
            addresses: newAddresses
        })
    });
}

export function reducer(state = initialState, action: assetDetail.All): State {
    state = {
        ...state,
        formState: assetFormReducer(state.formState, action),
        currentSubaddress: state.currentSubaddress != undefined ? formGroupReducer(state.currentSubaddress, action) : undefined
    };

    switch (action.type) {
        case assetDetail.SAVE_SUBADDRESS:
            const addressToSave = state.currentSubaddress.value;
            const currentAsset = state.formState.value;

            return {
                ...state,
                currentSubaddress: undefined,
                formState: validationFormGroup(createFormGroupState<Asset>(FORM_ID, addOrReplaceAddressInAssetIdentification(currentAsset, addressToSave)))
            }
        case assetDetail.DONE_WITH_SUBADDRESS:
            return {
                ...state,
                currentSubaddress: undefined
            }
        case assetDetail.EDIT_SUBADDRESS:
            return {
                ...state,
                currentSubaddress: createFormGroupState<AssetAddress>(SUBADDRESSFORM_ID, action.payload.value)
            }
        case assetDetail.ADD_SUBADDRESS:
            return {
                ...state,
                currentSubaddress: createFormGroupState<AssetAddress>(SUBADDRESSFORM_ID, new AssetAddress())
            }
        case assetDetail.LOAD_COMPLETE:
            return {
                ...state,
                progress: new Set<string>(),
                formState: validationFormGroup(createFormGroupState<Asset>(FORM_ID, action.payload))
            };
        default:
            return state;
    }
}

Thanks in advace for your time!

Hi @sylvaingirardbe, it's always nice to see new people trying out the library.
I like your code, and there isn't much that I would to different. Here are a couple of points:

I don't use classes but just plain objects (with an interface) for form values. While classes seem to work just fine, internally ngrx-forms has no logic to preserve the class identity of the object. Instead, it will always copy over the properties into new plain objects. That means formState.value is not an instance of Asset which may cause issues if you use e.g. instanceof or expect the value to have some class method. However, as long as you are aware of these potential issues it's just fine to keep using classes.
I noticed that the address validation is not running on the current sub address all the time but only once it is saved as part of the asset. I am not sure if this is what you intended. In any case, you can remove a bit of redundancy by declaring some more (admittedly verbose) helper methods like this. It uses the (a bit unfortunately named) StateUpdateFns interface from ngrx-forms.

const assetAddressFormStateValidationUpdateFns: StateUpdateFns<AssetAddress> = {
  countryCode: validate(required)
};

const validateAssetAddressFormState = updateGroup(assetAddressFormStateValidationUpdateFns);
const assetAddressFormStateValidationReducer = createFormGroupReducerWithUpdate(assetAddressFormStateValidationUpdateFns);

const assetFormStateValidationUpdateFns: StateUpdateFns<Asset> = {
  location: updateGroup<AssetLocation>({
    address: validateAssetAddressFormState
  })
};

const validateAssetFormState = updateGroup(assetFormStateValidationUpdateFns);
const assetFormStateValidationReducer = createFormGroupReducerWithUpdate(assetFormStateValidationUpdateFns);

// and then in your reducer as you did before:
state = {
  ...state,
  formState: assetFormStateValidationReducer(state.formState, action),
  currentSubaddress: state.currentSubaddress != undefined ? assetAddressFormStateValidationReducer (state.currentSubaddress, action) : undefined
};

Not related to ngrx-forms: In addOrReplaceAddressInAssetIdentification you can shorten the code quite a bit by using splice instead of slice. This should do the same:

export const addOrReplaceAddressInAssetIdentification = (asset: Asset, address: AssetAddress): Asset => {
  const addressIndex = asset.identification.addresses.findIndex(c => c.id == address.id);
  const newAddresses = asset.identification.addresses.splice(addressIndex, 1, address);

  return new Asset({
    ...asset,
    identification: new AssetIdentification({
      ...asset.identification,
      addresses: newAddresses
    })
  });
}

As I mentioned above, none of these points are mandatory and your code is fine without these changes. I'll keep this issue open in case you have more questions. Feel free to close it yourself once you are confident you have achieved what you want.
PS: I edited your post to include syntax highlighting which makes it easier to read.


Fix two cross-references in BasisTranslator docstring

Summary
Fix two cross-references in BasisTranslator docstring
Details and comments
I built this locally and it looks good.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.01%) to 89.617%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
3
92.37%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
62297

Relevant Lines:
69515

💛  - Coveralls


connect to docker through ssh connection

First off, thanks for creating docker-modem and dockerode.  They have been very helpful recently.
I have a use-case where I would like to connect to a docker container on a server which is accessible through ssh.  I am doing some slightly unholy acts to make this work locally, but I'm pretty sure there's an easy solution that could be implemented by giving docker-modem the ability to tunnel to a docker socket through an ssh connection.  I'd be happy to add this functionality if it were something that you would be open to accepting in a pull request.  I wanted to reach out first before to make sure their was interest before taking the time to do it.
Let me know what you think.

@jinxidoru you might want to take a look at strong-tunnel.
I haven't tested it with docker specifically, but it was originally built to work with an http protocol similar to docker's (eg. mix of requests websockets), so it should be able to handle things like connection hijacking like Docker does for streams.
disclaimer: I wrote it

Oh nice.  Have you considered creating an integration with docker-modem?

This should be all the integration you need:
var st = require('strong-tunnel');
var Docker = require('dockerode');

// the '+ssh' tells strong-tunnel to make an ssh tunnel and proxy
var remoteDocker = 'tcp+ssh://<IP_ADDRESS>:5000';

st(remoteDocker, function(err, url) {
  // this returned url the local proxy, something like 'tcp://<IP_ADDRESS>:23989'

  // docker requests now tunnelled over ssh via a local proxy
  process.env.DOCKER_HOST = url;
  var docker = new Docker();

  // your normal docker.* calls here

});

This won't attach to the unix domain socket though, correct? It would require that the remote host be exposing the docker API on a tcp port, correct?

On Jun 10, 2017, at 12:37 PM, Ryan Graham<EMAIL_ADDRESS>wrote:
This should be all the integration you need:
var st = require('strong-tunnel');
var Docker = require('dockerode');
// the '+ssh' tells strong-tunnel to make an ssh tunnel and proxy
var remoteDocker = 'tcp+ssh://<IP_ADDRESS>:5000';
st(remoteDocker, function(err, url) {
// this returned url the local proxy, something like 'tcp://<IP_ADDRESS>:23989'
// docker requests now tunnelled over ssh via a local proxy
process.env.DOCKER_HOST = url;
var docker = new Docker();
// your normal docker.* calls here
});
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Yes, it was written for TCP connections.


Argument 3 passed to dektrium\user\controllers\SecurityController::__construct() must be an instance of dektrium\user\Finder

Argument 3 passed to dektrium\user\controllers\SecurityController::__construct() must be an instance of dektrium\user\Finder, none given, called in /var/www/pravru/vendor/yiisoft/yii2/base/Module.php on line 534 and defined

I tryied to do this \Yii::$container->set('dektrium\user\Finder', 'dektrium\user\Finder'); but it still not working.
All is up to date.

Did you install module using composer?

Yes, i added to composer.json:
"dektrium/yii2-user": "*"

Seems that module hasn't installed correctly. Could you please provide content of file vendor/yiisoft/extensions.php?

  'dektrium/yii2-user' =>
   array (
     'name' => 'dektrium/yii2-user',
     'version' => '9999999-dev',
     'alias' =>
     array (
       '@dektrium/user' => $vendorDir . '/dektrium/yii2-user',
     ),
     'bootstrap' => 'dektrium\\user\\Bootstrap',
   ),

Hmm, that's strange. I can not reproduce the problem.
It seems that you are using an out-dated yii version? Could you please answer which yii version do you use?

2.0.0-beta

Yes, that is the problem. You should update to stable yii2 version (2.0.0 and higher) in order to use yii2-user 0.9.0.
I think I should change version constraint in module's composer.json in order to prevent issues like this.


hubble: Removal of legacy interfaces and minor cleanup of metrics

This PR removes the Flow and AgentEvent interfaces and related data types from the Hubble sources. They were originally intended to support extended Flow definitions, but they always fell short of that goal because the actual interface contains the protobuf-generated getters which depend on the flowpb package.
The use of the interface in combination with the nil-safe protobuf getters (which are heavily used by Hubble) is also hard to get right, as there is a tension between us wanting to use typed nils to support the getters, but this comes at the cost of not being able to do simple nil-checks - see the discussion in #14435
The biggest user of the Flow interface was the metrics package. This commit therefore changes it to use the flowpb.Flow struct (the metrics packages already have a dependency on flowpb, so this has no real impact). While there, I also cleaned up some other minor issues with the metrics package: a) Eliminating some unused case statements and b) using the OnDecodedFlow hook instead of hard-wiring the metrics in the observer.

test-me-please

I never quite understood why pkg/hubble/api/v1 exists at all 🤔 Can we nuke the rest of it too?

test-me-please

net-next failed with #13275 https://jenkins.cilium.io/job/Cilium-PR-K8s-1.13-net-next/243/

retest-net-next

I never quite understood why pkg/hubble/api/v1 exists at all thinking Can we nuke the rest of it too?

I think it used to contain types which were exported as JSON. This is no longer the case. So yeah, I fully agree we should move out everything we can. It should be done as a separate PR though, this one here is already large enough as is and has mostly passed CI.
I did a quick triage of the remaining types:

v1.EndpointInfo: an interface that used to be a JSON-exported struct. This can likely be moved to pkg/parser/getteres
v1.FlowProtocol: a nice helper, but only used in pkg/hubble/metrics. Can probably be moved there.
v1.ObserverServiceName: probably the only variable that belongs here. It contains the gRPC name of the Hubble API. We probably could move into a new package as pkg/server/api?
v1.Event: This is the big one. It is used as the storage type of the Hubble ring buffer. Referenced in a lot of places. For that reason probably should be in it's own package, to avoid accidental circular imports. Moving it will cause a lot of churn.


Responsive examples please

Hey this grid looks really great. Thanks for the work you put into it. I cant wrap my head around responsive behaviour though. Can you provide and example of a responsive grid please?

Ok I figured it out.


Runtime Live layering

Is your feature request related to a problem? Please describe.
Currently to add packages there are two options: or consume specially crafted bundles that installs packages into the persistent partition, or either customize the source container image and re-build the ISO with osbuilder.
 A draft for systemd based system is in #141 , but would be prefered a dracut-modules that acts similarly and extends supports to all the other distros (otherwise alpine would be left in the cold)
Describe alternatives you've considered
Creating custom images with osbuilder
Additional context
This is an additional features to complete the featureset around customization and #116

https://github.com/kairos-io/kairos/pull/141 Covers systemd scenario - can we enable it in the initramfs and make it available for alpine? or can we either use an equivalent to it for openRC based systems?

pretty sure we can just use systemd-sysext

This belongs to immucore now, removing epic as it is now possible to do within immucore

cc @Itxaka

We need a CRD and operator to manage systemd-sysext on nodes, so we can easily apply live layering to massive nodes.


Can't use JSON keys with periods

My JSON file has keys with periods in them: fontname.extension. When I import using NSJI I get:
error in plugin 'sass'
Message:
    ../../.tmp/manifests/rev-manifest.json
Error: expected ':' after $charter-bt-italic in assignment statement
        on line 1 of ../../.tmp/manifests/rev-manifest.json
>> $charter-bt-italic.woff: charter-bt-italic-fc2cd13f73.woff;
   ^

I read up a bit on the other issues with string quoting, and realize it's not so easy. Do you think this is solvable?

Is $charter-bt-italic.woffa valid SASS variable name? Maybe, but I think the period needs to be escaped. Try naming the key $charter-bt-italic\.woff.

@robwierzbowski Any luck? Closing until further updates.

I abandoned this route and went with a custom node sass function. Thanks
for closing.
On Wednesday, December 9, 2015, Patrick Mowrer<EMAIL_ADDRESS>wrote:

Closed #12 https://github.com/Updater/node-sass-json-importer/issues/12.
—
Reply to this email directly or view it on GitHub
https://github.com/Updater/node-sass-json-importer/issues/12#event-487096057
.

--
Rob Wierzbowski
@robwierzbowski http://twitter.com/#!/robwierzbowski
http://github.com/robwierzbowski
http://robwierzbowski.com

What's an up-to-date workaround for this? Ideally there'd be an option on the jsonImporter function to skip keys containing such periods?
For example, I want to make use of this library with the Design Tokens plugin for Figma. Their outputted JSON contain an extensions object which always contains subkeys containing periods:
...
"extensions": {
    "org.lukasoppermann.figmaDesignTokens": {
      ...
  }
}
...

Resulting in the following error from NSJI:
Error: Invalid CSS after "...xtensions: (org": expected expression (e.g. 1px, bold), was ".lukasoppermann.fig"


database on excel format ?

Hello,
Nice job for your API.
On the other hand, is there any possibility of having a pagination bar allowing to go on the next 100 recording?
Is it possible to achieve this? If yes, how ?

Can you have the colors of phones in French ?
Thank you.

For the colors in French, you can write a 2 dimensions array with every color in English and its match in French, then translate every color field with a filter. Shakee doesn't speak French I think ;)


can not run

$> scoop search zoc
panic: runtime error: index out of range [1] with length 1

goroutine 7 [running]:
main.matchingManifests(0xc0001800f0, 0x28, 0xc000010098, 0x3, 0x0, 0x0, 0x0)
        /home/runner/work/scoop-search/scoop-search/main.go:133 +0x106b
main.main.func1(0xc00000c420, 0x1c, 0xc000010098, 0x3, 0x0, 0xc000052280, 0xc000010170, 0x862f00, 0xc000122000)
        /home/runner/work/scoop-search/scoop-search/main.go:70 +0x185
created by main.main
        /home/runner/work/scoop-search/scoop-search/main.go:63 +0x253

version:1.1.0
OS:win11

Looks like one of the manifests has an incorrect format. Could you show you your list of buckets?

Looks like one of the manifests has an incorrect format. Could you show you your list of buckets?

That would be too bad.  Because I'm using an aggregated bucket that merges a lot of buckets.
https://github.com/kkzzhizhou/scoop-apps

Thanks, will check them. Its the second time that this happened with this user's manifests: https://github.com/shilangyu/scoop-search/issues/12

I've decided to silently support this. Though these are incorrect manifest and it would be better to fix them upstream.


[Minor] Fix Issue #1744 Cannot clone DatabaseConnection when the mock flag is enabled

Cannot clone DatabaseConnection when the mock flag is enabled.

PR Info

Closes #1744

Dependencies:

No Dependencies

Dependents:

No Dependencies

New Features

[ ]

Bug Fixes

[x]

The bug is as follows
When enabling the mock feature, the implementation of Clone on struct DatabaseConnection is disabled
#[cfg_attr(not(feature = "mock"), derive(Clone))]
pub enum DatabaseConnection { ... }

Breaking Changes

[ ]

No breaking changes. Since the MockDatabase variant of the enum encompasses and Arc already, nothing breaks when adding #[derive(Clone)]
Changes

[X]
Remove cfg_attr(not(feature = mock))

@billy1624

As explained in the issue.
Ref: https://github.com/SeaQL/sea-orm/pull/665

Sure, one can use dev-dependencies for tests, but for example using DbConn on a axum state, assumes that DbConn is Clone, when trying to mock tests around this it will fail, because MockDatabase doesn't support Clone, and since it's already an Arc the cost is minimal, while make all the DbConn passing around use an Arc, is quite a change.
By the way, Sea-ORM is a great crate and the work done on it is amazing, this is just my 2 cents regarding making easy to test.

I am so frustrated after writing all the codes because now I need to wrap my DatabaseConnection with Arc<Mutex> to make it Clone, if I want to write some tests. As DatabaseConnection is already Clone,  I'd say this is not intuitive.


ENH: Array, OptimizerParameters constructors with size and initial value

Added explicit constructors to Array and OptimizerParameters, allowing to specify the size (dimension) and the initial value of each element.
Both std::vector and vnl_vector have a similar constructor.
Included a GoogleTest unit test for OptimizerParameters.

Thanks for your approval, Dženan!
@thewtex Matt, do you think that this pull request could still be included with ITK 5.2? I think it's pretty simple enhancement, but it could certainly make the use of OptimizerParameters easier. This is how I created a const OptimizerParameters variable of two elements for an elastix unit test with ITK 5.1:
const itk::OptimizerParameters<double> optimizerParameters(itk::Array<double>(vnl_vector<double>(2U, testValue)));

https://github.com/SuperElastix/elastix/blob/b60640fe6e0ef002ca567768cce404573f0c0109/Common/GTesting/elxTransformIOGTest.cxx#L324
The pull request would allow, hopefully for ITK 5.2:
const itk::OptimizerParameters<double> optimizerParameters(2U, testValue);

Thanks for your approval, Dženan!
@thewtex Matt, do you think that this pull request could still be included with ITK 5.2? I think it's pretty simple enhancement, but it could certainly make the use of OptimizerParameters easier. This is how I created a const OptimizerParameters variable of two elements for an elastix unit test with ITK 5.1:
const itk::OptimizerParameters<double> optimizerParameters(itk::Array<double>(vnl_vector<double>(2U, testValue)));

https://github.com/SuperElastix/elastix/blob/b60640fe6e0ef002ca567768cce404573f0c0109/Common/GTesting/elxTransformIOGTest.cxx#L324
The pull request would allow, hopefully for ITK 5.2:
const itk::OptimizerParameters<double> optimizerParameters(2U, testValue);

This does not seem like a potentially problematic feature. #2246 might qualify for that. But we did not announce a feature freeze.
If you are not going to request more reviews, you could merge this PR Niels.

This does not seem like a potentially problematic feature. #2246 might qualify for that. But we did not announce a feature freeze.
If you are not going to request more reviews, you could merge this PR Niels.

If you are not going to request more reviews, you could merge this PR Niels.

@dzenanz Thanks Dženan, could you please do the merge? I always prefer not to merge my own PRs, if possibly 😃 It looks nicer to me when there are two names with a commit (author + committer).

If you are not going to request more reviews, you could merge this PR Niels.

@dzenanz Thanks Dženan, could you please do the merge? I always prefer not to merge my own PRs, if possibly 😃 It looks nicer to me when there are two names with a commit (author + committer).


Make it possible to identify when server has successfully navigated to a new URL (_ver#c$ is not bumped)

Right now any change in local modal will result in client side version increase. Currently it's stored in the model["/_ver#c$"] property.
Palindrom has an event onRemoteChange, which can be used to monitor incoming patches, a patch from server with /_ver#c$ value of N guarantees, that server has applied all patches with /_ver#c$ less or equal to N. Every patch from client side has a response patch from server, the response patch may or may not contain some extra changes from server side, but it always indicates that server has successfully applied the initial patch.
I am currently using this mechanism to calculate how much time server takes to process a patch.

On the other hand, navigating to other pages, so called morphing URL, is not updating the client side version (the /_ver#c$) value. There is also no extra callback which would be triggered when server has successfully performed navigation.
This makes it impossible to identify the moment, when server has finished navigation and applied the requested changes.
In my setup, there are a few background jobs, which are constantly updating database objects and sessions, which result in random patches push from server to client, thus I can't rely on server to client patch after requesting navigation to identify whether server has performed the navigation.
cc @tomalec, @warpech, @alshakero

You have two ways to do this. You can subscribe to palindrom-after-navigation event that is dispatched on window.
Or you can do await morphUrl(url) as morphUrl is async now!

@alshakero While being correct, the above reply misses the problem reported in the OT. The problem here is that the local version is should be bumped upon a navigation request but it is not.
You can try that by navigating and then examining the contents of palindrom.queue.localVersion and palindrom.queue.remoteVersion. The first one is not bumped by the client, but the latter is bumped by the server.
For consistency, the client should bump the local version upon navigation request, because that's a patch that modifies the requested state.

PR in https://github.com/Palindrom/Palindrom/pull/232

Discussion in #232 tells it is impossible to finish this issue before changes in server-side. Unassigning from @alshakero for the time being.


Two-way audio not working through Tailscale

Checklist:

[ x] I updated to the latest version available
[ x] I cleared the cache of my browser

Release with the issue:
Last working release (if known):
Browser and Operating System:
Tried in Safari, Chrome and iOS app.
Using Tailscale and with HA behind a caddy reverse proxy.
Description of problem:
I use my Home Assistant behind a reverse proxy (caddy) which is connected to Tailscale for remote access.
Locally, I have two-way audio working perfectly through the card, but when connected from a different network (mobile) using Tailscale, the microphone button does not appear.
I am aware WebRTC would try to establish a P2P connection: WebRTC streams (even video only) through the go2rtc dashboard do not work through Tailscale, but I believe that is expected.
Video and audio seem to work perfectly fine through WebRTC (both go2rtc and webrtc card as providers) when using Tailscale, though.
I really don't understand how :) , and I am not familiar with your code at all, but maye the card uses Frigate/HA Ingress to direct the traffic?
Could something similar be done for the microphone too? Or this is some limitation that requires further configuration?
This seems somewhat similar to https://github.com/dermotduffy/frigate-hass-card/issues/1255 (they mention Zerotier there), but I have double checked everything is using HTTPS, plus it does work locally with the same app/browser.

Frigate card diagnostic information

Javascript errors shown in the web inspector (if applicable):

Additional information:

I think this is unlikely to be an issue related to the card. All network traffic from the card to go2rtc in your Frigate installation is proxied via the Frigate integration which runs as part of your HA process. That behavior is consistent whether you are local or not. If it doesn't work when you are remote, but everything else in Home Assistant appears to work okay remotely, there must be something odd going on with your reverse proxy and/or you are not using https (causing your browser to not offer you audio).
TL;DR: There's no reason this shouldn't just work.

Thank you for your answer!
Adding the machine where the Home Assistant lives to the Tailnet works around the issue, and I can see in the logs that indeed a P2P connection is set between its Tailscale IP and the client's when I start the two way audio in the card. So it seems that Frigate does proxy WebRTC and audio, but not the microphone, which stills requires raw WebRTC communication. I might ask in Frigate :)


Added User Interviews to User Research Tools

Checklist

[x] I made something good today 💐.
[x] I put links in the correct format: [Tool](link) — description.
[x] My description starts with the lower-case letter and ends with the full stop.
[x] I put the tool in the alphabetical order.

Optional

[x] I added the appropriate labels: free, open-source or mac.
[x] I put the tool only to one category.
[x] I followed Contribution Guidelines.

@GLaDO8 thanks for the contributions :)


npm fails on npm start

Hey everyone, U try to start the quickstart tutorial. I'm currently in the last part (HTTP) but I'm not able to run the project. This happened earlier but then I just removed everything and started again. But if this seems to be a recurring problem I think it might be a bug. (or perhaps I'm doing something wrong.
node -v:
v6.11.3
npm -v: 3.10.10
NPM debug log:
npm-debug.log
Hopefully anyone can help me.
Thank you in advance!

Hello,
I am also having an issue installing quickstart.  Here are the errors with the log file:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\b
in\npm-cli.js" "run" "build"
npm ERR! node v6.11.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: tsc -p src/
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'tsc -p src/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc -p src/
npm-debug.log

@mrdjar ... I also got your error. It simply means typescript isn't installed (tsc is typescript). So if you do npm install typescript -g  that should already fix your error.
But then you will get others. In the current state the rxjs version in use by the tutorial won't work (because of an error in the "lift" function), if you change in package.json rxjs and typescript to "rxjs": "^5.4.2" and "typescript": "^2.3.4" and do npm install again, then that part should also work.
But then you get some other errors, which  I'm not yet through yet.

I'm having the same error

This repository is now deprecated. The Angular Quickstart project was a nice starting point for creating Angular applications. Now we recommend using the Angular CLI to create new Angular projects.
Starting from 1 November 2017, all the Angular documentation, at angular.io, is based on the Angular CLI.
Let's get started


Revert "Obj-C class metatypes should never satisfy Obj-C existentials"

This reverts commit aed05b9a36ab593deb995127e2b0e2b2fc054a2b.
This needs some additional work.  Reverting out until it can be fixed.

@swift-ci Please test

Reverts PR #69435


Add parsing for grouped KOBO data

Still a work in progress but the API is able to return the following form data and the frontend doesn't raise the same error.
{'start': '2022-03-15T20:57:19.311-07:00', 'end': '2022-03-15T20:58:01.896-07:00', 'q_Enum': 'asddf', 'q_Funtion': 'asdf', 'q_Phone': 'asdf', 'Date_Dis': datetime.datetime(2022, 3, 1, 0, 0, tzinfo=datetime.timezone.utc), 'DisTyp': '4', 'Specify': 'asdf', 'Province': '20', 'District': '2007', 'Commune': '200706', 'NumVillAff': 24, 'NumFamAff': 25, 'NumPeoAff': 26, 'NumFeAff': 27, 'lat': 11.558558, 'lon': 104.927453, 'date': datetime.datetime(2022, 3, 1, 0, 0, tzinfo=datetime.timezone.utc), 'status': None}
Note - it requires the API to be run locally

Thanks @ericboucher - this gets us closer. I added some more attributes in layers.json in this branch. I'm trying to use a value from the response to use as a 'measure' to plot a form submission on the map with symbology based on the value. The data has a field called 'NumPeoAff'. I can get that value back correctly in the 'feature_info_props', but not in the 'measure' attribute (see 'Number of people affected' and 'No Data' respectively in the screenshot).
Note, if I include the group name using the value 'group_tc1fy38/NumPeoAff' as the 'measure', the locations show up correctly on the map, but no value is given. If I use 'NumPeoAff', the locations do not appear on the map. I've got two data points in Phnom Penh on 1-March-2022 for testing. The screenshot below is based on 'group_tc1fy38/NumPeoAff' as the measure.

A couple of other things to mention:

The goal is still to eventually use the Commune ID to plot the location and not depend on lat/long. I just included lat/long for now so that we can figure out the grouping issue
The form I am testing with 'test-form-admin-codes' is a simplified version of the full form called 'ទម្រង់ ឧបទ្ទវហេតុ'. The full form was created by the WFP Cambodia office based on input from the national disaster management agency. We could request them to change the names of the variable names for form fields if needed (i.e. remove spaces, use English, etc.). Variable names are not seen by Kobo users

@wadhwamatic can you let me know how to reproduce the issue in the screenshot (which layer to select) because I can't reproduce the issue?

@wadhwamatic can you let me know how to reproduce the issue in the screenshot because I can't reproduce the issue?

@tdlinh2712 - use this branch: khm_kobo_03_2022. You'll have to run docker locally and run 'make api' in prism-frontend/api-flask. Then REACT_APP_COUNTRY=cambodia yarn start.
Choose the layer: exposure > field reports. http://localhost:3000/?hazardLayerId=kh_incident_report&date=2022-03-01.
Click on a survey result (black dot north of Penh as an example). You should see two conflicting results in the tooltip. "ទម្រង់ ឧបទ្ទវហេតុ: No Data" & "Number of people affected: 2000". We should see '2000' as the value in both of these attributes.

@wadhwamatic with the flattened name and the fix on the legendStops, here is what I get:

@wadhwamatic with the flattened name and the fix on the legendStops

@ericboucher - great, this is working now as expected. I added new boundary files which now should match the admin codes used in the form. I also reverted the Kobo form to 'test-form-admin-codes' which has codes as strings with a leading 0 when admin1 is < 10


Fix large_image installation in docker

This removes some duplicate installation commands and includes large_image installed from github.  I tested that this fixes the issues I was seeing on the latest tag.
Closes #242

Codecov Report

Merging #243 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #243   +/-   ##
=======================================
  Coverage   60.79%   60.79%
=======================================
  Files           8        8
  Lines         352      352
=======================================
  Hits          214      214
  Misses        138      138

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 93a0b6a...46e3089. Read the comment docs.


Create .devcontainer

Adds configuration for running the project in devcontainer with all dependencies installed.
Current status:

runs data prep script.
only runs in an x86_64 container (emulated on Mac).

Don't merges this yet, please.


Small changes

This PR adds a return statement to the PT diffusion solver
	    return (
        iter_count=iter_count,
        norm_ResT=norm_ResT,
    )

and updates the runtest() function that test_traits.jl, test_types.jl, test_arrays_conversions.jl are not run twice in the CI
 f0 = ("test_traits.jl", "test_types.jl", "test_arrays_conversions.jl")
    for f in f0
        include(f)
    end
testfiles = [f for f in testfiles if basename(f) ∉ f0]

Codecov Report
Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Files
Patch %
Lines

src/thermal_diffusion/DiffusionPT_solver.jl
50.00%
1 Missing :warning:

Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!


Ability for an extension to depend on other extensions

The upcoming ext::auth needs ext::pgcrypto to validate authentication tokens, so we need the ability to declare EdgeQL dependencies in extensions.  Unlike current SQL extension dependencies, an EdgeQL dependency should automatically create or upgrade all dependent extensions if they don't exist in the target schema already.
Proper dependency solver is hard, so we can either consider borrowing one from something like Poetry or implementing something basic a-la pre-solver pip.

Done in #6139


jsx styles not included in server rendered page in 2.4.1

I suddenly noticed in 2.4.1 that my server rendered pages missed the jsx styles. Then when the client takes over the styles appear.
Moving back to 2.4.0 solves the problem.

Try the latest releases. And make sure not to do npm link Next.js or styled-jsx to your repo.

Hi @arunoda , with the latest version it works and I had also a separate dependency to styled-jsx in my package.json. It seems that removing this one solved the problem.
Thanks.


Prevent full-page reload on form submit and use useEasyWrite

closes #86
closes #87

Current dependencies on/for this PR:

main

PR #100   👈

This stack of pull requests is managed by Graphite.


Verify opam 2.0/2.1 compat

The tool should be compatible with both 2.0 and 2.1 one installs, even if it does require 2.1 versions of the opam libraries. On the fly in-memory config conversion in the 2.1 libraries should allow us to be backward compatible but this needs to be confirmed!

Just tested it, worked like a charm! Closing!


Listen to websocket

Hi,
Is there anyway to listen to websocket instead of heartbeat?
Ricky

How to switch away from heartbeat? Is it okay to reimplement poloniex using this library?
https://www.npmjs.com/package/poloniex-unofficial

See here:

Gekko works with a concept of markets, so we just need to add a "websocket" market type. Not a lot of functionality needs to be written for that (we can just pipe them straight into the tradeBatcher or candleCreator.
The bad thing about websockets is that you don't have access to historical data, also the situation that if you lose connection for a minute you have incomplete data.

Without WebSocket it's impossible to execute orders without slippage.

What do you mean? Whenever Gekko receives a signal from a strategy it will check the orderbook to base the order price on. Also, Gekko only creates limit orders.

In my use case, the orderbook has to be up to date within a second.

That sounds like high frequency, are you able to use Gekko at all since all
trading data is summarized as minute OHLC data?
On Nov 1, 2016 12:36 AM, "Ricky Han"<EMAIL_ADDRESS>wrote:

In my use case, the orderbook has to be up to date within a second.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/askmike/gekko/issues/400#issuecomment-257461737, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA7MD08BcGglG6koeWvP_ny5mVLY9yOkks5q5omngaJpZM4Jd-s_
.

Yes I was able to create a bot with a custom indicator with a 40% odds. The slippage was 20-140% depends on market volatility. I ended up implementing my own bot using code from tribeca. Now the odds are 62% so it's profitable in the long run.
Your code is definitely an inspiration. Thank you.


Fix the default package set config

Needs more documentation - I believe this was in reference to project-specific configurations for gopm.
If it comes up again I'll address it, but it seems to not be a 'thing'.


Feedback not properly saved for classification, disambiguation, relation discovery

Steps to reproduce:

Run Book-v1 task against dbpedia Jan
remove the class for first column, click Save feedback.
return to the list of tasks
Reopen the same task - the classification is again there although it was removed in step 2

The same if you remove disambiguation or relation, or change classification, disambiguation, relation. It works only for subject columns!

Well, this does not sound good at all.

We have thoroughly discussed this and t proved to be a major flaw in the server-client interaction design, where the client is currently unable to apply the feedback when re-entering the screen, because it is too tightly coupled with the UI result model which is lost when the user leaves the screen.
In the end we went with @josef-janousek idea to solution, which I am implementing and that is to merge the feedback provided by the client. If that fails some workaround might ne introdcued...

Fixed in https://github.com/odalic/sti/pull/460 .

@brodecva Can you pls describe a bit more the issue and the selected solution?


Update German translation

I've fixed and adjusted several texts to make it consistent with the official German translation of RimWorld. All changes have been tested and are working.
Some notes:

Added periods to some option descriptions for consistency with older descriptions (might be worth adding these to the English texts as well)
Changed T-V distinction ("Sie" → "Du") for consistency with official translation
Changed pawns' right-click menu options to imperative mood (verb + subject) for consistency with official translation
Replaced some "erzw." with "erzwungen" to avoid overuse (generally only necessary to save space)

Gut gemacht!