Question: How come the MaskDINO Encoder can't use half-precision (AMP) training?

So there's a decorator in the MaskDINOEncoder that disabled FP16 casting here.
A few lines below a comment states that deformable-DETR does not support half precision (in Line 357).
Do you know why, and is there possibly a workaround? Perhaps if we can isolate the problem to specific operations, all other operations inside the encoder can still run in half-precision

So there's a decorator in the MaskDINOEncoder that disabled FP16 casting here. A few lines below a comment states that deformable-DETR does not support half precision (in Line 357). Do you know why, and is there possibly a workaround? Perhaps if we can isolate the problem to specific operations, all other operations inside the encoder can still run in half-precision

For fp16 training with custom operator like DeformableAttention, you should convert the input into fp32 and after the forward pass of Deform.Attn, you can convert them back to fp16 to skip this operator, here is an example:
https://github.com/IDEA-Research/detrex/blob/f34380d3652c0dbc8f9de911626117943a8208c4/detrex/layers/multi_scale_deform_attn.py#L343


external diff

would be nice to be able to call external diff programs. The build-in diff of GitSavvy can only do so much, external tools that focus on diff exclusively have more time to nail that, e.g. show which parts of a line changed like kdiff3.

GitSavvy actually does display which parts of the line changed, when you use the inline diff view.  There is, however, an outstanding bug in Sublime Text 3 that prevents it from being displayed correctly on a Mac.
Adding specific functionality to call an outside diff program is out of scope for GitSavvy.  On the other hand, it should be simple enough for you to add a custom command to accomplish what you're looking for.

I think we we create some kind of diff toggle quite easy since git have a flagg called --word-diff
example
$ git diff file
diff --git a/file b/file
index dd72235..a89dec4 100644
--- a/file
+++ b/file
@@ -1,6 +1,6 @@
 set :stage, :production
 set :rails_env, 'xxx'
-set :branch, 'live'
+set :branch, 'tmp_live'
 set :domain, 'xxxx.no'

$ git diff --word-diff file
diff --git a/file b/file
index dd72235..a89dec4 100644
--- a/file
+++ b/file
@@ -1,6 +1,6 @@
set :stage, :xxx
set :rails_env, 'xxx'
set :branch, [-'live'-]{+'tmp_live'+}
set :domain, 'xxx.no'

maybe we can press W in a diff-"view". Not only diffs but commits too. than toggle --word-diff

@stoivo, we're already displaying bolded sections where a word was added/removed/changed.  The limitation is a bug in Sublime itself.

yeah, in inline diff. This could be adding this for a normal diff view and commit view.


Added EC2 instance to host Defect Dojo

@jodiejones-moj Terraform plan evaluation detected changes to resources that require approval from a member of @ministryofjustice/modernisation-platform - please contact #ask-modernisation-platform for assistance
Guidance on approving these PRs is available at https://user-guide.modernisation-platform.service.justice.gov.uk/runbooks/reviewing-mp-environments-prs.html#process-for-approving-prs


A close button of goog.ui.Dialog does not work on touch device.

You can confirm on the demo site with touch devices. (e.g. iPad)
https://google.github.io/closure-library/source/closure/goog/demos/
If the title bar is draggable, CLICK event does not fired.
Perhaps the cause is, preventDefault is called in goog.fx.Dragger#startDrag.

@ziegs Can you label this? If valid, this seems pretty blatantly broken, but you know priority better than I.

Unfortunately, I can't reproduce this. If someone runs into this issue still, please comment on this issue or open a new one.


Drop Shadows

I would love a feature to add a drop shadow to the edge of a doughnut chart when it reaches / exceeds 100%.
For example, if I have a chart with the number 350%, once the outer ring hits 100%, I want a shadow so that you can see it over the overlap.
If already possible, please advise.

@michaelaguiar you could probably do this by:

Modifying Chart.elements.Arc.prototype.draw to draw with shadows
Modifying Chart.controllers.doughnut.prototype.updateElement to add some properties to the arc elements in the case you want

Closing as answered


Manage picture set in directories endpoints

Context :
There are already endpoints to manage blob storage folders: one to create a directory, one to delete it, and another to get all directory names of a container. Since we now have a database, these folders are related to the picture set table.
Objective :
Therefore, we need to update these routes to create a picture set when a folder is created, delete it when the delete route is called, and retrieve the directories from the database instead of the blob storage because it's more efficient.
Delete use case diagram:
sequenceDiagram
    participant User
    participant FE
    participant BE
    participant DS

    User->>FE: Delete Folder
    rect rgb(191, 223, 255)
      FE->>BE: /delete-request
    end
    rect rgb(191, 223, 255)
          BE->>DS: Check if there are validated inferences or pictures from a batch import
note left of DS: Check for picture_seed entities linked to picture id
 since a verified inference and a batch upload has those
    end
    alt picture_seed exist
        DS-->>BE: Validated inference status or pictures from batch import
        BE->>FE: True : Request user confirmation
        rect rgb(191, 223, 255)
            FE->>User: Ask to keep data for training
note left of FE : "Some of those pictures were validated or upload via the batch import.
Do you want us to keep them for training ?
If yes, your folder will be deleted but we'll keep the validated pictures.
If no, everything will be deleted and unrecoverable.
        end
        alt No
            User ->>FE: delete all
            rect rgb(191, 223, 255)
                FE-->BE:  /delete-permanently
            end
            BE->>DS: delete picture_set
        else YES
            User ->>FE: Keep them
            rect rgb(191, 223, 255)
                FE-->BE: /delete-with-archive
            end
            rect rgb(191, 223, 255)
                BE->>DS: archive data for validated inferences and batch import in picture_set
                    note left of DS: "Pictures are moved in different container
 DB entities updated"
                BE->>DS: delete picture_set
                   note left of DS: "Folder and all the files left are deleted,
related pictures, inference are deleted."
            end
       else CANCEL
            User ->>FE: cancel : nothing happens
       end
    else no picture_seed exist
        DS-->>BE: No pictures with validated inference status or from batch import
        BE-->>FE: False: confirmation to delete the folder
        rect rgb(191, 223, 255)
            FE->>User: Ask confirmation
note left of FE : "Are you sure ? Everything in this folder will be deleted and unrecoverable"
        end
        alt Yes
            User ->>FE: delete all
            rect rgb(191, 223, 255)
                FE-->BE:  /delete-permanently
            end
            BE->>DS: delete picture_set
        else CANCEL
            User ->>FE: cancel : nothing happens

        end
    end

Acceptance criteria :

[x] picture_set table has a name column
[x] https://github.com/ai-cfia/nachet-datastore/issues/46
[x] https://github.com/ai-cfia/nachet-datastore/issues/50
[x] /create-dir route also add a picture set in the database
[x] /dir route retrieves directories names from the database instead of from the blob storage
[ ] https://github.com/ai-cfia/nachet-datastore/issues/63
[ ] Retrieve pictures and inferences with folders
[ ] /delete-request route checks for validated pictures in the folder
[ ] /delete-permanently route delete all pictures, picture set, blobs using datastore function
[ ] /delete-with-archive route move verified pictures and delete others using datastore function
[ ] update frontend to ask confirmation and to use the new routes

I love the new look of this issue. tagging @ChromaticPanic for him to take a look at what will be needed for the FE 👍🏻

Looks good, we should probably deal with Retrieve first. Since that's more useful to the user for processing images and providing feedback. Create -> Retrieve -> Update -> Delete . Not sure if we already have all the back end for retrieving pictures from a folder, retrieving inferences for a picture, retrieving feedback for a picture.

Not sure if we already have all the back end for retrieving pictures from a folder, retrieving inferences for a picture, retrieving feedback for a picture.

Currently, the backend can only retrieve the directory ID and name, as well as the number of images uploaded to it. This could be a new issue on datastore to create functions to retrieve images and their inference with the directory.

This could be a new issue on datastore to create functions to retrieve images and their inference with the directory.
It would also be a low effort issue for the datastore in my opinion. Most of the function to get the objects exists, we need to create a high level function to exactly output the right json.

Would we want to load all the inferences of a directory and store them in the cache of the BE which can then send them over depending on the user's requests without needing to operate a transaction with the DB each time a user access a picture within it's folder?

This could be a new issue on datastore to create functions to retrieve images and their inference with the directory.
It would also be a low effort issue for the datastore in my opinion. Most of the function to get the objects exists, we need to create a high level function to exactly output the right json.

Would we want to load all the inferences of a directory and store them in the cache of the BE which can then send them over depending on the user's requests without needing to operate a transaction with the DB each time a user access a picture within it's folder?

It would be better to do it in 2 steps (Lazy Loading), to just pull metadata required for the view. The string names for the folder contents. Then only retrieve the actual data if the user chooses to on the front end.


Hamburg: Kita Finder Photo

-Change photo for consistency

@soniaskhan does this still needs to be fixed? If so: could you please add the link to your issue? also, who can fix it?
Feel free to close this issue in case it has been fixed already

This is fixed: http://codefor.de/projekte/2014-04-27-hh-kitaKarte


String conditionals returning incorrect response in Presentation View with fields in nested objects

Describe the bug
Conditional statements for strings in the Presentation View always return false, despite returning true outside the Presentation View.
This seems to only happen for nested objects and specifically strings. Printing the string returns the expected result. Boolean and url type fields work fine. This is using Next Js v14.0.4 and app router. It works the same in dev environments and on vercel.
To Reproduce

Make sanity structure:

- page
  - array
    - object
      - object
        - string field

Fill in field and publish
Setup frontend & visual editing (this)
Console log whether the field equals what it does
e.g. console.log(asset_type === "image")

Expected behavior
The conditional statement should return true if it is and false if not.
Should have the same result as outside of Presentation View.
Screenshots

Outside Studio

Inside Studio

Which versions of Sanity are you using?
@sanity/cli (global)       3.23.4
@sanity/image-url        1.0.2
@sanity/overlays           2.3.2
@sanity/react-loader    1.7.0
@sanity/vision               3.23.4
What operating system are you using?
Windows 10
Which versions of Node.js / npm are you running?
npm:  9.4.1
node: v20.10.0
Additional context

@fam-studio-dev I ran into this as well, and found this to solve the issue for me: https://www.sanity.io/docs/loaders-and-overlays#f78abaafcf50
You need to clean your strings when using them for comparison like this. The strings are encoded in presentation mode, so even though they visually look like the correct string, there's hidden encoded data in the string that causes it to fail these types of comparisons.
Hope that helps!

Hoping @ndimatteo's solution worked for you @fam-studio-dev.
We're working on improving docs to better describe stega encoding and its implications, reporting issues like this helps us inform that work, so thank you.


Turing: Extending Adaptive Cards using AC extensibility feature

Background
Show how to use AC JavaScript extensibility in Web Chat, as a sample.
Goals

Load a custom version of Adaptive Cards

From<EMAIL_ADDRESS>In README.md, please also mention, this work can allow devs to load different versions of Adaptive Cards

By different, it should have similar behaviors as the one shipped in Web Chat, that means, same minor version

Load the AC extensibility sample in the custom-loaded AC package

https://docs.microsoft.com/en-us/adaptive-cards/sdk/rendering-cards/javascript/extensibility

Keep the ProgressBar component as original as possible

Keep TypeScript, use @babel/standalone to transpile TypeScript on-the-fly

@babel/standalone probably not support TypeScript by default
You can register additional plugin/preset with @babel/standalone, some references

https://babeljs.io/docs/en/babel-standalone#script-tags
https://github.com/microsoft/BotFramework-WebChat/blob/master/packages/testharness/src/index.js#L56

The AC sample is currently not working because Adaptive.getStringValueOrDefault and Adaptive.getValueOrDefault are not implemented, please ping David Claux to fix them

Non-goals

Turn into a NPM project

This sample is simple enough to be kept as a NPM project

Action items
Implement https://docs.microsoft.com/en-us/adaptive-cards/sdk/rendering-cards/javascript/extensibility in Web Chat as a sample.
+ <script crossorigin="anonymous"<EMAIL_ADDRESS>
+ window.AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType('ProgressBar', () => new window.WebChatSample.ProgressBar());

  window.WebChat.renderWebChat(
    {
+     adaptiveCardsPackage: window.AdaptiveCards,
      directLine: window.WebChat.createDirectLine({ token })
    },
    document.getElementById('webchat')
  );

Prototype

Very preliminary POC for this sample in this sample.zip.

Needs priority for the sample

Needs priority for the sample


Externalized attachments

The idea has been proposed by @paulfitz  https://github.com/gristlabs/grist-core/issues/886#issuecomment-2125243918
If I understand correctly, and I tend to think that's also something we would like on the ANCT's side: the idea would be to allow creating an attachment column where the file would not be injected in the document but rather in an external storage like S3.
There are several advantages, especially reducing the grist document size and thus allowing increasing the attachment size limit.

Thanks for opening this @fflorent ! Going to dump in some thoughts a developer prepared about this in 2022. Grist has changed somewhat since, and also this was not a plan just one person's thoughts (I personally disagree with some of it), but the set of concerns raised could be helpful for things about this project.
Externalizing attachments
External store
We need a generic interface for storing and retrieving file data that can be implemented in different ways. One obvious data store is S3-compatible stores. Theoretically, the local filesystem might also work.
Migration
Once at least one store is implemented, _gristsys_Files could be deprecated, and a special migration could move the data from there to the external store. The usual Python migration system won’t be enough on its own because the data engine doesn’t see _gristsys_Files, but maybe it could make an external call to node to deal with that.
Downloading documents
We still want to be able to download a single self-contained .grist sqlite file containing all the attachments. When this happens, we’d need to:

Make a copy of the database file
Download all the externalized attachments and put them in the copy, perhaps back in _gristsys_Files
Give that to the user to download
When the document is uploaded again, perform the same process as the migration to move data to the external store.

This would also allow using downloaded documents in older versions of Grist.
Serving attachments without the DocWorker
Currently the client uses a special DocWorker API to view and download attachments. To serve the files, the DocWorker retrieves them from _gristsys_Files. In the first iteration of work, this would be changed to retrieving them from the external store instead. But in the long term, it would be nice if the client could bypass the DocWorker and retrieve the files directly from the store. S3 would work well for this, but other types of store may not allow this.
Deleting externalized attachments
Attachments are likely to contain sensitive data, and storing them longer than necessary is a security risk. When a user deletes an attachment, it’s reasonable for them to expect it to actually be deleted eventually, just like any other data, so that it can’t be leaked. This applies whether they deleted a row, a document, or an entire organisation. We can’t actually fully delete the data immediately in the first case because deleted rows still live in the snapshot history, but we should delete them eventually.
This is like the problem of tracking attachments referenced within a document, on a much larger scale. In this case actually tracking the references (or maybe just their counts) from documents to the external store seems essential. These would need to be updated whenever a document is copied or deleted within a Grist installation. We’d need to consider:

“Duplicate Document”
“Work on a copy”
Other ways of ‘forking’ such as from fiddle mode or templates
Creation and pruning of snapshots.
Deleting a document permanently.

Downloading a document ‘disconnects’ it from the Grist installation so it doesn’t need to be counted. It has its own copy of the attachments so it should either delete or ignore the metadata about the externalized data.
Encryption
An alternative to tracking attachment references to allow deleting them is to encrypt the attachment data to avoid the need to delete it. Each attachment file would have a unique encryption key stored only in the corresponding row of _grist_Attachments . Once all copies of that row are fully deleted, the encryption key should be lost, and decrypting the data in the external store should become impossible. That means we don’t ever have to delete the actual data, so we don’t need to keep track of references to it.
Another security benefit of encryption is that if someone gains access to the data in the external attachments store, they can’t actually read it unless they also have the referencing documents.
One downside is that serving attachments directly from S3 instead of the DocWorker becomes more tricky. Decrypting and displaying a single encrypted file in the browser using SubtleCrypto and createObjectURL seems straightforward. But it’s a lot more delicate to handle a user scrolling through a grid filled with thumbnails, displaying them all efficiently and then reclaiming memory after they disappear from view.
Access Control
Would need thinking about. Important to preserve the property that the existing metadata (particularly fileIdent) is not enough to download the file, so that access is properly revoked even if someone has a past copy of the metadata. It might also be nice if the download URL couldn’t be computed purely from the file content, so that someone with a local copy of a file can’t test whether it exists in the document.

I added this to the other issue already. If you are looking for inspiration, HackMD has a pretty nice integration of Drag&Drop Image upload, which just puts files in a folder on the server using a random hash.

Just to note that architecture work for this feature has started, with some initial thinking from @Spoffy here:
https://docs.google.com/document/d/1ST_DuR22llDyx4PVAMdBlHDz22L5QIJ4qIyLMOUOtZ8/edit#heading=h.guzwiuwiigkd
If anyone would like edit rights, let me know.
There are trade-offs to be made since Grist will no longer be a standalone single-file format. We're trying to come up with a design that still makes moving Grist docs between installations practical.

@Spoffy I updated the proposed change to _grist_Files as follows:

Removed a separate new identifier column. How about we work with the existing ident column, improving it as needed. It is a little funky but that's ok, and better than having two very similar columns.
I converted the boolean column to an enum with just a single non-null value. It is equivalent and every boolean I've let into a schema I've eventually regretted.

If you combine these two changes, you end up with a very harmless low-commitment schema change that seems safe to do even without all details worked out?

Paul and I have an initial design for this now, found here.
The latest design / implementation is in the doc, so I won't copy and paste it here.
Next steps are prototyping this approach and run some basic tests to ensure we haven't missed anything that would cause a big problem.

Quick update on this. The prototype is underway now, and we've got basic attachment functionality working with MinIO and Filesystem storage.

The first PR for this is open, albeit not yet ready for full review and merging: https://github.com/gristlabs/grist-core/pull/1320
It covers the necessary core document changes to make external attachments function, with just about enough configuration to let it be testable.
The full scope of that PR is in the PR description :slightly_smiling_face:


No warning on checking unintroduced variables

Current behavior
When trying to check two variables that have not been introduced the egraph manually the check quietly fails.
Example:
(datatype Dim (Plus Dim Dim) (NamedDim String) (Lit i64))
(run 5)
(check (= (Lit 1) (Lit 1)))

This can be fixed by explicitly adding the node to the egraph
(datatype Dim (Plus Dim Dim) (NamedDim String) (Lit i64))
(run 5)
(Lit 1)
(check (= (Lit 1) (Lit 1)))

(Thanks @saulshanabrook)
Expected behavior
It would be great if either the nodes could be implicitly introduced to the egraph or if there would be at least a warning informing the user about this potential issue
(from https://egraphs.zulipchat.com/#narrow/stream/375765-egg.2Fegglog/topic/First.20time.20user.20of.20python.20bindings/near/421896795)

Was this fixed by #344?
I think it was, based on testing this in the web demo.

I was wondering the same thing... but it seems like it still is not working? Unless I am just getting an outdated version somehow:

I was also getting this issue online and locally with the version I built from main today.

Oh that's the behavior I expected.
check runs a query, so if the two terms are not in the database it fails

Perhaps we could improve the documentation or issue a warning, as suggested?
When / how would we detect when a warning should be issued?

I am not familiar with the inner working off egglog so take this with a grain of salt but naïvely I would think a warning should be issued when running check if there is a term within the checked expressions that is not in the database

That's a good idea- we could detect when there's a term with no pattern variables in it.

Yeah, the current behavior is useful when you want to check whether a certain tuple is in the database (e.g., a tuple that would be added when something is violated).

That makes sense, however, I think a warning would still make sense especially for new users. Advanced users who desire this behavior can then ignore/suppress this warning


cli: Provide some kind of scroll mode in ui

Currently boardswarm-cli ui enables the console to be scrolled forward/backward one line at a time with ctrl-a, j|k. This works, however is really inefficient when trying to scroll back many lines.
How about providing a scrollback mode, maybe entered as soon as scrolling has been commenced, whereby the up/down arrow keys and maybe even page up/down can be used to move a line or some greater block at a time without needing to constantly type ctrl-a?

It'd be great to be able to use the scrollwheel, similar to the behaviour of picocom.


Update conv3d.py

when build 3d_conv with cudnn, following error occurred

pad_d, pad_h, pad_w = (padding, padding, padding) if isinstance(padding, int) else padding
ValueError: too many values to unpack (expected 3)

NameError: name 'dtype' is not defined

This pr can fix above errors.

Thanks @solin319 can you send a regression testcase that prevents this from happening later?

add cudnn test in test_topi_conv3d_ncdhw.py

@solin319 please resolve the conflict and pass the CI.

closing due to inactivity, but feel free to reopen!


Remove comment about CodeUri being unsupported in Globals

CodeUri in Globals seems to be supported by at least sam-cli 0.6.1, making the comment about it being unsupported obsolete.
Description of changes:
Remove comment about CodeUri being unsupported in Globals
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #795 into master will decrease coverage by 0.53%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #795      +/-   ##
==========================================
- Coverage   94.85%   94.32%   -0.54%
==========================================
  Files          67       67
  Lines        3772     2626    -1146
  Branches      828      464     -364
==========================================
- Hits         3578     2477    -1101
+ Misses         97       78      -19
+ Partials       97       71      -26

Impacted Files
Coverage Δ

samtranslator/yaml_helper.py
80% <0%> (-8.89%)
:arrow_down:

samtranslator/model/s3_utils/uri_parser.py
71.42% <0%> (-6.35%)
:arrow_down:

samtranslator/model/eventsources/push.py
86.59% <0%> (-3.01%)
:arrow_down:

samtranslator/model/eventsources/pull.py
91.48% <0%> (-2.8%)
:arrow_down:

...el/preferences/deployment_preference_collection.py
88.88% <0%> (-2.78%)
:arrow_down:

samtranslator/translator/arn_generator.py
86.95% <0%> (-1.94%)
:arrow_down:

samtranslator/model/intrinsics.py
95% <0%> (-1.78%)
:arrow_down:

samtranslator/swagger/swagger.py
97.84% <0%> (-0.74%)
:arrow_down:

samtranslator/model/api/api_generator.py
95.9% <0%> (-0.66%)
:arrow_down:

samtranslator/translator/logical_id_generator.py
90% <0%> (-0.48%)
:arrow_down:

... and 25 more

Continue to review full report at Codecov.

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


About train PlaneNet from scratch

Thanks for opensourcing PlaneNet, Its behavior at corridor is amazing.
I'd like to train a revised PlaneNet from scratch, while the data your team provided has no planenet_scannet_train.tfrecords.
Would it be possible for you to share this this part of data? or just the scannet to tfrecord bash?

Thank you for your interests in our work. I just added the training data. Please see the README for details.

Thanks so much!!


E - Cover the most common web dev security problems

Epic
As a web developer, I want up-to-date, thorough resources on web security so that I can ensure my sites are developed with best practices in security.
Acceptance criteria

[ ] Web security docs have been updated and expanded.

Tasks

[x] Audit current security docs to see what we have, and how up-to-date it is.

[x] Discuss audit with Moz security folks, to find out what they think would be ideal/desirable to have.

[x] Make a plan for updating/expanding sec docs.

[ ] Update and expand sec docs. (Will be multiple user stories.)

NOTE - Epic no longer needed as per updated approach


serde_yaml version bump caused test regression

The change in #140 is causing tests to fail locally.
Reverting to the prior version results in tests passing.
Not clear how this got through?
The checks for #140 didn't restore a dependency cache.

The issue is a regression in serde_yaml 0.9.7.
Manually changing the version in Cargo.toml shows that prior versions are fine.

closed by #142


Bug in Export of ContentPickerField

The Exporting method of ContentPickerFieldDriver is buggy.
In the below given code it assumes that all the selected items exist and are valid. But if by chance one of the item gets deleted, it resolves the removed item as NULL and the next step where it tries to get the Identifier, fails by throwing the exception "Object reference not set to an instance of an object". As a result the final recipe doesn't include the ContentPicker filed tag.
        protected override void Exporting(ContentPart part, Fields.ContentPickerField field, ExportContentContext context) {
            if (field.Ids.Any()) {
                var contentItemIds = field.Ids
                    .Select(x => _contentManager.Get(x))
                    .Select(x => _contentManager.GetItemMetadata(x).Identity.ToString())
                    .ToArray();

                context.Element(field.FieldDefinition.Name + "." + field.Name).SetAttributeValue("ContentItems", string.Join(",", contentItemIds));
            }
        }

By making this small code change and introducing a where condition to check for NULL entries, we fixed the issue for us.
        protected override void Exporting(ContentPart part, Fields.ContentPickerField field, ExportContentContext context) {
            if (field.Ids.Any()) {
                var contentItemIds = field.Ids
                    .Select(x => _contentManager.Get(x))
                    .Where(x => x != null)
                    .Select(x => _contentManager.GetItemMetadata(x).Identity.ToString())
                    .ToArray();

                context.Element(field.FieldDefinition.Name + "." + field.Name).SetAttributeValue("ContentItems", string.Join(",", contentItemIds));
            }
        }

Please include this bug fix in future versions.

@sebastienros We discovered that the same issue is with MediaLibraryPickerFieldDriver. If by chance one of the media items that was previously selected in the media picker gets deleted, the Export of this media picker starts failing.
        protected override void Exporting(ContentPart part, Fields.MediaLibraryPickerField field, ExportContentContext context) {
            if (field.Ids.Any()) {
                var contentItemIds = field.Ids
                    .Select(x => _contentManager.Get(x))
                    .Select(x => _contentManager.GetItemMetadata(x).Identity.ToString())
                    .ToArray();

                context.Element(field.FieldDefinition.Name + "." + field.Name).SetAttributeValue("ContentItems", string.Join(",", contentItemIds));
            }
        }

the same line of code which checks for null entries will solve the problem:
.Where(x => x != null)

Kindly also assign it some milestone.


files_to_process doesn't include child paths under templates/default/

This piece of code doesn't scan *.erb files, other than the ones that seat under templates/default/ directory:
template do |ast, filename|
  puts filename
end

I'll do a pull request with the fix right away.
Cheers.

I was unable to reproduce on master, and the source looks right. Closing.

Er, this needs correction - recursively scanning under templates/default/ would be wrong, as according to resource docs source is relative.


[Documentation] Limitation imposed by design

Mendel made some design choice that does not allow certain patterns. Document them.

One suggestion:
Invariant: Can't variate package.json runtime: If package.json exists on a variation, it should exist also on "base" and both should point at the same file/module and have the same "name". For instance, here are a list of invalid repo configurations:
$ find src/client -type f -name package\.json
./variations/foo/some-component/package.json
# Should throw, since base/foo//some-component/package.json don't exist on base/some-component/package.json

$ find src/client -type f -name package\.json
./base/some-component/package.json # → {"name": "foo"}
./variations/foo/some-component/package.json # → {"name": "bar"}
# Should throw because name mismatch on the same path.

$ find src/client -type f -name package\.json
./base/some-component/package.json # → {"main": "foo.js"}
./variations/foo/some-component/package.json # → {"main": "foo/index.js"}
# Should throw because path mismatch between variations


Load Images dynamically from state

Hi everybody,
I have an issue where I try to change the image source from a change in the state object but it's not changing.
I have logged the value and it's changing but the image does not.
Here it's the code im using:
render() {
		var images = {
			playcircle: require('image!playcircle'),
			pausecircle: require('image!pausecircle')
		}
		return (
			<View style={[styles.container, {width: this.props.width - 10}]}>
				<TouchableOpacity onPress={this._playAudio.bind(this)}>
					<Image source={images[this.state.playImage]} style={styles.img} />
				</TouchableOpacity>
				<View style={styles.textWrapper}>
					<Text style={styles.txt}>{this.props.podTitle}</Text>
				</View>
			</View>
		);
	}

_playAudio() {
		var blockThis = this;
		debugger;
		if (!this.state.isPlaying) {
			JSAudioPlayer.play(this.props.url, true, function(error){
				if (error) {
					alert(error);
				} else {
					blockThis.setState({
						isPlaying: true,
						playImage: 'pausecircle'
					})
				}
			});
		} else {
			JSAudioPlayer.pauseCurrent();
			blockThis.setState({
				isPlaying: false,
				playImage: 'playcircle'
			});
		}
	}

Any help will be appreciated.
Thanks in advance
@josev55

I got something similar some time ago. Try to add the key property to the image tag like <Image key={images[this.state.playImage].uri} ... />

@facebook-github-bot stack-overflow

##

[``](

#url

)


pull request for e2e test at 01/03/2017 07:56:14

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


Adding configurable awsAsg cache expiry time

NetflixOSS » eureka » eureka-pull-requests #328 SUCCESS
This pull request looks good


SpecsEqual method on CiliumNetworkPolicy object could be more nuanced

Proposal / RFE
Is your feature request related to a problem?
When creating a CNP whose endpoint selector is the wildcard, it is not possible to test for equality using the SpecsEqual method on the CNP struct.
Consider my workflow: I have a controller that creates CNPs in response to some event. The first time that event occurs:

I instantiate the CNP I wish to create. It happens to have a wildcard endpoint selector (either by leaving the EndpointSelector field blank or by adding it with empty LabelSelectors)
I try to get that CNP from the k8s apiserver using a CiliumNetworkPolicy client (this is to check to see if the CNP already exists, in which case I need to update)
That CNP doesn't yet exist, so I submit the CNP I instantiated to the apiserver

The second time that event occurs:

I instantiate the CNP I wish to create (it will be an update in this case, because a CNP with the same name and in the same namespace already exists). Again, it has the wildcard endpoint selector (either by leaving the EndpointSelector field blank or by adding it with empty LabelSelectors)
I try to get that CNP from the k8s apiserver using a CiliumNetworkPolicy client (this is to check to see if it already exists, in which case I need to update)
That CNP already exists! This means I need to update the CNP. However, first I'd like to make sure that the one I've instantiated and the one I've retrieved from the apiserver aren't identical (because then there's no reason to resubmit)
I compare the CNP I've instantiated with the existing CNP. However, using the SpecsEqual method will always return false, even if they are the exact same CNP created via the same codepath. The reason seems to have to do with how CNPs are deserialized when getting them from the k8s apiserver using a CiliumNetworkPolicy client. The implementation of SpecsEqual just uses reflect.DeepEqual, which is insufficient.

Describe the solution you'd like
The SpecsEqual method could be more nuanced. I've gotten around this for now by checking that the CNP Spec and Specs are either

deeply equal (using the SpecsEqual method)
Or
each field in the Spec/Specs is deeply equal except for the EndpointSelector (using reflect.DeepEqual), and the EndpointSelector is the wildcard (via the isWildcard method)

@willdeuschle just one thing to be clarified, in your 1. you say that Spec and Specs should be deeply equaled, using the SpecsEqual. But isn't this the case already?
https://github.com/cilium/cilium/blob/fa2629c4e1c8009a65ba25c2e7dafc7b76b5e1ba/pkg/k8s/apis/cilium.io/v2/types.go#L170-L177

yes @aanm. I was trying to indicate that I first use the SpecEquals, but that is not always sufficient, so then I also need to check via number 2. It ends up being an OR of 1. and 2.

it has the wildcard endpoint selector (either by leaving the EndpointSelector field blank or by adding it with empty LabelSelectors)

I don't think that EndpointSelector being "blank" (nil) is a valid setting. In Cilium we will call r.Spec.Sanitize() or rule.Sanitize() on each rule inside r.Specs to ensure that we get a valid, canonical form of the selector.

It would be good to get example pkg/checker/checker.DeepEqual() comparison output between the different CNP objects to determine what is being considered different between the Spec/Specs/ in the different CNPs.

To follow up here - @joestringer and I determined that this was ultimately a difference between the submitted CNP and the sanitized version that was actually persisted. Specifically, a nil endpoint selector becomes
				LabelSelector: &metav1.LabelSelector{
					MatchLabels:      map[string]string{},
					MatchExpressions: []metav1.LabelSelectorRequirement{},
				},```

This was causing problems because the codepath that creates this CNP also checks to see if it's equivalent to one that is already persisted. The only follow up here may be to perform the sanitization during the equality check so that others don't hit this edge case. I'll defer to you on what you want to do about this @joestringer

I was thinking about this, and figured that it's a bit weird conceptually to mix up sanitization and equality checks together; for one thing, this requires more effort to validate potentially both structures every time you check if they're equal.
I have a different proposal (already briefly discussed with @willdeuschle out-of-band): Maybe we can provide better rule constructor functions that will ensure that right from CNP creation, the CNPs are sanitized such that if you programmatically construct these objects and inject them into k8s, then when you retrieve the same CNP back out from k8s, it will already be equal.
We have some basics of this, but I think there are ways that library users can shoot themselves in the foot:
https://github.com/cilium/cilium/blob/e7bc8918daf8a3c8b599f1ec84a3ee7544249f62/pkg/policy/api/rule.go#L65-L86
Specifically, Cilium doesn't really assign a meaning to an empty set of selectors. It's not meaningful for a rule to select nothing; such a rule is by definition ineffective. So we might consider changing NewRule() to match all traffic by default. Perhaps something like this:
// NewRule builds a new rule that applies policy to all endpoints.
// To select specific endpoints, extend this Rule using WithEndpointSelector().
// This rule will not deny any traffic by default. To place the selected endpoints
// into default deny and allow specific communication with this endpoint,
// extend this rule using `WithIngressRules()` or `WithEgressRules()`.
func NewRule() *Rule {
    ...
}

Then we could perhaps add constructors that alternatively only put a single direction for selected endpoints into default deny:
// NewIngressWhitelist creates a new rule that places endpoints selected by the
// specified selector into default deny mode. Traffic matched by the specified
// rules will be allowed to access the endpoint.
func NewIngressWhitelist(es EndpointSelector, rules []IngressRule) {
    ...
}

Beyond something like this, there may be ways that we can ease the construction of CiliumNetworkPolicy objects using the above as well.

After having thought about this for a little while and considered our own use cases, the bespoke constructors like NewIngressWhitelist are probably overworked. They would be convenient, but are likely not worth maintaining IMO.
That being said, I think the modification to NewRule that you're proposing would be great.
Right now, for all of my CNPs (because they are namespace-local and thus select all endpoints), I end up tacking this onto all of our CNPs to avoid the sanitization issue described above:
EndpointSelector: ciliumapi.EndpointSelector{
    LabelSelector: &metav1.LabelSelector{
	MatchLabels:      map[string]string{},
	MatchExpressions: []metav1.LabelSelectorRequirement{},
    },
},

I'd much prefer to do something like NewRule().WithEgressRules(...) and know that I won't have issues with sanitization inconsistencies. Given a nil endpoint selector defaults to selecting all endpoints right now anyways, it seems logical that NewRule should explicitly set this up.

@willdeuschle given the lack of activity on this issue, I think you've managed to figure out a path forward so I'm going to go ahead and close the issue. Feel free to respond here or file a new issue if there are other improvements that could be made.


Upgrade version of fh-sync-js

Jira link(s)
https://issues.jboss.org/browse/RHMAP-20023
What
Update version of fh-sync-js to 1.3.2
Version bump to 3.0.10
Changelog update
Why
To pull in this fix: https://github.com/feedhenry/fh-sync-js/pull/45

/restest

retest this


Use Artifact Registry for CI images

/cc @kvmware
Our autobumps are stuck as they don't get bumped anymore because the image locations have changed. I might as well switch to AR properly. Merging this PR will create images on AR and i'll open a follow up PR to change the prowjobs.

All the terraform changes have been applied.

/lgtm


Create charts

[x] checked graphics from GECC/Siemens/Planer
[x] finished graphics from GECC
[x] finished graphics whole project
[x] weekly created graphics GECC

All Done 👍🏼

All Done 👍🏼


Layout conversion error on H100

Hello,
My modified flash attention kernel gives me the following error when I run it on a H100 GPU, even though the kernel works fine on A100 and RTX 3060:
python: ../../../lib/Analysis/Allocation.cpp:43: std::pair<llvm::SmallVector<unsigned int>, llvm::SmallVector<unsigned int> > mlir::triton::getCvtOrder(mlir::Attribute, mlir::Attribute): Assertion `!(srcMmaLayout && dstMmaLayout && !srcMmaLayout.isAmpere()) && "mma -> mma layout conversion is only supported on Ampere"' failed.
Aborted (core dumped)

I've reduced the kernel down to the following minimal example, which crashes on the H100 with the same error, but runs successfully on my RTX 3060:
import torch
import triton
import triton.language as tl

@triton.jit
def fwd_kernel(
    out_LHD,
    stride_o_l,
    stride_o_h,
    stride_o_d,
    BLOCK_M: tl.constexpr,
    BLOCK_N: tl.constexpr,
    BLOCK_D: tl.constexpr,
):

    # current thread block index
    cur_head = tl.program_id(0)

    # data
    x = tl.zeros([BLOCK_N, BLOCK_D], dtype=tl.float16)
    y = tl.zeros([BLOCK_M, BLOCK_N], dtype=tl.float16)

    # calculate
    p = tl.dot(y, x)
    alpha = tl.zeros([BLOCK_M], dtype=tl.float16)
    out = alpha[:, None] * p + p

    # store output
    offs_o = (
        tl.arange(0, BLOCK_M)[:, None] * stride_o_l
        + cur_head * stride_o_h
        + tl.arange(0, BLOCK_D)[None, :] * stride_o_d
    )
    tl.store(out_LHD + offs_o, out)

def main():

    # parameters
    X_len = 84
    H = 8
    D = 32
    BLOCK_M = 64
    BLOCK_N = 64
    device = torch.device("cuda:0")
    torch.manual_seed(999)

    # setup and launch kernel
    out = torch.empty((X_len, H, D), device=device, dtype=torch.float16)
    fwd_kernel[(H,)](
        out,
        out.stride(0),
        out.stride(1),
        out.stride(2),
        BLOCK_M=BLOCK_M,
        BLOCK_N=BLOCK_N,
        BLOCK_D=D,
        num_warps=8,
    )

if __name__ == "__main__":
    main()

The H100 system is LambdaLabs Ubuntu, with these software versions installed using conda:

torchtriton 2.3.1
python 3.11.6
pytorch 2.3.1
pytorch-cuda 12.1

Thanks for the help!

Apparently this is a known issue with Hopper architecture https://github.com/triton-lang/triton/pull/2627

In case anyone else has a similar problem, I was able to successfully work around the issue by removing all num_warps = 8 autotune configurations from my flash attention kernel


Add Saga Persistence Configuration to AddMassTransit registration

Create extension methods for the registration configurator (invoked via the .AddMassTransit container extension method) for the supported saga repositories so that they can easily be configured for the configured sagas (including state machine sagas).
This would configure the persistence components in the container so that they are properly resolved as the endpoints are configured. Should support an easy way to say "for all my sagas, use this" and let the registration sort it out (generics, vs explicit registrations, etc.).
Storage Engines

[ ] In Memory
[ ] NHiberate
[ ] Entity Framework
[ ] MongoDB
[ ] Redis
[ ] Marten
[ ] DocumentDb
[ ] Dapper
[ ] Azure Session State

Possible syntax may include (all within the configuration block):
namespace NewRegistration
{
    public static class Program
    {
        public static void Main()
        {
            builder.AddMassTransit(cfg =>
            {
                // see below
            });
        }
    }
}

Configure the saga for an in-memory repository:
cfg.AddSaga<MyLegacySaga>()
    .UsingRepository(r => r.InMemory());

Configure using entity framework:
cfg.AddStateMachineSaga<MyMachine, MyInstance>()
    .UsingRepository(r => r.EntityFramework(ef =>
    {
        ef.Connection("localhost", "test-database");

        ef.SomethingElse();
    }));

Configure a repository, then use it for multiple sagas:
var repo = cfg.AddEntityFrameworkSagaRepository();

cfg.AddStateMachineSaga<MyMachine, MyInstance>()
    .UsingRepository(repo);

// each instance would add supporting registration for the instance type
cfg.AddStateMachineSaga<MyOtherMachine, MyOtherInstance>()
    .UsingRepository(repo);

Configure a repository, then use it implicitly for any sagas:
cfg.AddEntityFrameworkSagaRepository();

cfg.AddStateMachineSaga<MyMachine, MyInstance>();

cfg.AddStateMachineSaga<MyOtherMachine, MyOtherInstance>();

Thoughts?

I see a bit different way to do that, I'd like user to explicitly provide repo for a saga
cfg.AddSaga<Instance>()
     .UseEntityFrameworkRepository<YourDbContext>(repo =>
     {
          repo.ConcurrencyHandlingType = Pessimistic / Optimistic
     });

//or just provide connectionString
cfg.AddSaga<Instance>()
     .UseEntityFrameworkRepository(connectionString, repo =>
     {
          repo.ConcurrencyHandlingType = Pessimistic / Optimistic
     });

if you want to do something generic for all sagas, you can still use the old way :)

I do think we need to support the case where configuration is coming from the container, so the container context is needed in the interfaces/extension methods.
Such as IOptions<DatabaseSettings> being used for connection setup, etc.

Dang it, now I feel like I need a simple dictionary-based configuration "container" so I can use all this nice stuff without an actual container...

just do not create your own DI :D

Oh, gosh no, I would never, ever do that, cough, erm: https://github.com/phatboyg/ServiceBook

And, what about references like ConnectionMultiplexer, or IDocumentClient? These are both disposable, and should be registered in the container so that they're disposed when the container is disposed. And subsequently used when the saga repository needs to create a typed database, etc. I'm wondering how best to handle these things, tbh.

for EF, would you still use the extension method from microsoft:
services.AddDbContext<DbContext, SampleBatchDbContext>(x => x.UseSqlServer(hostContext.Configuration.GetConnectionString("sample-batch")));
?
outside of the .AddMassTransit? Or is the idea to make this configure option encompass that under the covers?
As long as we make sure that the user isn't forced to .UseSqlServer. Maybe they like UsePgsql or .UseMySql.

I think it will need to match whatever the built-in support is for the framework. If it's EF, I think something like:
cfg.AddSaga<MySaga>()
    .EntityFrameworkRepository(ef =>
    {
        ef.DbContext<MySagaDbContext>(x => x.UseSqlServer(...))
    });

Basically give the same configuration extensions support that EF uses just start it with a different preample.

I really like the way of making DbContext as generic parameter:
cfg.AddSaga<Instance>()
    .UseEntityFrameworkRepository<YourDbContext>(repo =>
    {
         repo.ConcurrencyHandlingType = Pessimistic / Optimistic
    });

so you don't care about how context was registered in your DI

Generic parameter is fine, but it can't be like that one. It would have to be like I showed above.
ef.DbContext<MyDbContext>
Otherwise, all the generic types of the extension method must be specified.

make sense, agreed

.UseEntityFramework(x => x.DbContext<MyContext>(ef =>
{
    // this double lambda syntax seems to freak people out a bit as well, so
    // i'd rather avoid it.
});

I think if you provide ContextType as generic parameter you should register it by yourself.
so I see it like this
.UseEntityFramework(repo =>
{
    repo.UseDbContext<MyContext>();
    repo.ConcurrencyHandlingType = //;
    // if you have connection string
    repo.AddDbContext(cfg => cfg.UseSql());
});

probably we should start of doing something simple, for eg. MongoDB while you start writing a code you'll realize the best fit

LOL, okay, my original example had the database configured as one statement and then used for multiple repositories, and you said you thought it was better to have it per saga. So i changed it, and, now we're back...
var repo = cfg.AddSagaDbContext<MyContext>();

cfg.AddSaga<MySaga>()
    .Repository(repo);

cfg.AddSaga<MyOtherSaga>()
    .Repository(repo, x => x.ConcurrencyMode == ConcurrencyMode.Pessimistic);

🤣
I'm pretty sure how the things work in our life.
(I won't be ever thinking that you have to share Saga persistence with your other Aggregates)

Need to not use Add in that case, maybe something like
cfg.AddSaga<MySaga>()
    .EntityFramework(ef =>
    {
        ef.ExistingDbContext<MySuperDbContext>();
    });

Since it's already registered in the container, it would just find it.

so why just not to do it that way:
cfg.AddSagaDbContext<YourDbContext>(x => x.UseSql())
cfg.AddSaga<Instance>()
    .UseEntityFramework(repo =>
    {
         repo.UseContext<YourDbContext>();
         repo.ConcurrencyHandlingType = Pessimistic / Optimistic;
    });

repo.UseContext<YourDbContext>(); could be use in both cases
and I'm not sure that we need this one evencfg.AddSagaDbContext<YourDbContext>(x => x.UseSql())

I won't "use" .UseContext because that's the prefix for middleware, and it would lead to confusion.

I'm talking not about the naming, more about approach we go

Yep.
I would like to have the cfg.AddSagaDbContext<> so that I can register it in the container correctly.

agreed with that 👍


New Version: sourcegit-scm.SourceGit version 8.20 (#161890)

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

Resolve #161890

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Checklist for Pull Requests

[x]  Is there a linked Issue?

Resolve issue #161890

[!TIP]
Just Resolve #161890 instead of Resolve issue #161890 ❤

@wingetbot run

The number in the title is causing havoc for my automation.

https://github.com/microsoft/winget-pkgs/issues/142854


fix(frontend): When a docker endpoint is selected, configuring a newly added k8s agent fails EE-821

close EE-821

Close https://github.com/portainer/portainer/issues/5171


Disqus出不来

I agree and want to create new issue

[x] Yes, I was on Hexo Docs page, especially on Templates, Variables, Helpers and Troubleshooting.
[x] Yes, I was on NexT Documentation Site.
[x] And yes, I already searched for current issues and this is not help to me.

Expected behavior
Disqus讨论会出现在文章末
Actual behavior
没有出现
Steps to reproduce the behavior

_config.yml：

Disqus
disqus:
enable: true
shortname:
count: true
2. 重新启动 hexo

Link to demo site with this issue: N/A
Link(s) to source code or any usefull link(s): N/A

NexT Information
NexT Version:

[] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini

Other Information

我觉得应该是Disqus在国内被屏蔽了，一些文件加载不出来。
例如：https://shortname.disqus.com/embed.js

@fastzhong solved?

@fastzhong Disqus was blocked in China by the Great Firewall.

不是，我不在国内，改用gitcomment。

Added Gitmint support in#1919.


UpSet as htmlwidget for R?

Hi,
The interactive UpSet tool is a really great. Thanks for developing it.
Would it be possible to port it into an R htmlwidget (http://www.htmlwidgets.org)?
This would make it available to a very large community and would allow to use it in RStudio directly, in Shiny apps, as well as in Rmarkdown files.
I am aware of the UpSetR package, which is very useful, but it would be great if one could also use the interactive version of UpSet in R.
FYI: @sgratzl already started to port Caleydo LineUp (https://github.com/Caleydo/lineup_htmlwidget)
Thank you very much!
Best wishes,
Thomas

do you know: https://github.com/hms-dbmi/UpSetR and https://gehlenborglab.shinyapps.io/upsetr/

I am aware of UpSetR as well as the shiny app. They produce static plots which is very useful for many applications. However, often it is important to have an interactive visualization (e.g., to check which elements are in an overlap, etc). Therefore, a port of the original UpSet is of high interest.
But now I noticed that there might even already be an attempt to port UpSet (in Candela, which is an open-source suite of interoperable web visualization components for Kitware‘s Resonant platform):
https://github.com/Kitware/candela
https://candela.readthedocs.io/

@zichner Yes we have a basic working version that you can use from Candela. I don't claim that it works perfectly, here is an example posted to RPub:
https://rpubs.com/jeffbaumes/cars-upset
It was created with the following in RStudio:
candela('UpSet', data=mtcars, id='_row', fields=list('cyl', 'carb'))

Thanks @jeffbaumes for your reply.
Are there any specific differences between the original UpSet and the HTMLwidget by Candela?

The candela version uses this library directly but puts another simpler API in front of it. The "fields" property will automatically create 0/1 sets for each value found in each field and add them to UpSet. The "sets" property will set properties that are already 0/1.

Thanks for the information.


Update app->share() to app->singleton()

https://github.com/laravel/framework/commit/1a1969b6e6f793c3b2a479362641487ee9cbf736

@Roboroads Moving PR's here so I can accept them


replace use of  with  in all the javadoc

I'm merging this, because it's trivial, and I want to avoid conflicts with a different PR I'm about to push.


How this projects relates to coremltools?

Is it fair to say that, if using TF/swift one no longer needs https://github.com/apple/coremltools ?

Core ML Tools lets you convert TensorFlow, PyTorch, etc. models to the Core ML format, and provides utilities for testing and running Core ML models. Swift for TensorFlow is a ground-up rethink of how to build, train, and run machine learning models (and more) using differentiable Swift and accelerators.
The two serve different goals, and exist at separate points in the machine learning model pipeline. Swift for TensorFlow lets you build, train, test, and deploy machine learning models across a variety of platforms (Linux, macOS, Android, Windows). You typically use Core ML Tools once you have a trained model in TensorFlow, PyTorch, etc. and need to convert it for use with Core ML on iOS or macOS. The two can be used together (we've seen examples of models trained with Swift for TensorFlow, serialized to disk, and then fed into Core ML Tools).
There has even been work on writing directly to the Core ML protobuf file format to bypass Core ML Tools. However, we don't yet have a process for automatically serializing the graph structure of a Swift for TensorFlow model, so there isn't a direct path for going to a Core ML model at present. Also, only a subset of the models that can be built with Swift for TensorFlow will be able to be expressed in the Core ML file format.
In short, you'll still need Core ML Tools for converting from serialized models in TensorFlow, PyTorch, etc. to Core ML, but if you want to explore building and training models in Swift, feel free to give Swift for TensorFlow a try.


I want use command Options to set web root, can you do it ? tks~

just like  -D ./dist

The path to be served can be passed as the first argument. http-server ./my-files [options]


[fix]improvement add HdfsIO profile and modification time

Proposed changes

Refactor the interface of create_file_reader

the file_size and mtime are merged into FileDescription, not in FileReaderOptions anymore.
Now the file handle cache can get correct file's modification time from FileDescription.

Add HdfsIO for hdfs file reader
pick from #21442

Co-Authored-By: kaka11chen<EMAIL_ADDRESS>Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

LGTM


Sometimes the Project explorer will not show the empty packages

This bug is probably fixed in https://github.com/microsoft/vscode-java-dependency/pull/730.
In #730, before fetching the node children, a refreshLocal() will be invoked to make sure the workspace status is up to date, which avoids this issue happening.


Hiding sliders of non-existent housing categories?

In the UK there are no terraced houses and corner houses (as there is no data availbale for these types of houses). This confuses users when they use insulation sliders for these types of houses but see nothing happening in the graph (as there was no energy demand to begin with).
There are 3 potential solutions (feel free to add more):

Hide the sliders
Decrease the types of housing
Research better / new data for EU countries when it comes to housing types

Long term I would suggest going for the second option because data for this is hard to find or inconsistent (what do you define as a 'detached' home?) and mostly based on the dutch way of defining the housing stock. However, there might be good reasons to keep it this way (@marliekeverweij @MartLubben ?).
Short-term I would go for option 1. as this might remove any confusion around the topic for now, is this easily done @antw?.
Let me know what you think @marliekeverweij (from a modelling perspective) @MartLubben (from a local perspective) @antw (from a technical perspective)!

As long as the default values for these sliders are 0, it would be possible to add fields to the dataset has_corner_houses and has_terraced_houses and configure it in the front-end like we do with other has_... features.
However, this is only a thing in ETModel; as far as I know, has_... isn't supported in the dataset manager at this time.


pull request for e2e test at 12/07/2016 21:56:02

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


++⚽Here's How To Watch ⚽ Barcelona vs Las Palmas LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT oN TV Guide & 𝐒𝐭𝐫𝐞𝐚𝐦𝐢𝐧𝐠 30 November 2024

FC Barcelona vs. Las Palmas lineups, live stream: Where to watch La Liga online, TV channel, odds, pick
SOCCER LIVE Barcelona vs Las Palmas LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT
SOCCER LIVE Barcelona vs Las Palmas LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT
SOCCER LIVE Barcelona vs Las Palmas LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT
SOCCER LIVE Barcelona vs Las Palmas LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT
FC Barcelona are currently leading the La Liga table, holding a four-point margin on Real Madrid (who have also one game in hand), but also drew one and lost another match in the last two games played in their domestic competition. The clash against Las Palmas is the perfect opportunity to overturn their current form in the Spanish league and react after a disappointing moment.   Here's what you need to know:
FC Barcelona: Hansi Flick has announced Lamine Yamal's comeback after an ankle injury and the Spanish talent will definitely feature in the home game on Saturday, as the same coach announced in the pre-game press conference: "He's back and he's ready to play. We haven't decided yet if he'll start, but he will play."
Potential FC Barcelona XI: Pena; Kounde, Cubarsi, Martinez, Balde; De Jong, Pedri; Yamal, Olmo, Raphinha; Lewandowski.
Las Palmas: We shouldn't expect many surprises for the guests, with striker Fabio Silva leading the attack. Las Palmas are currently fighting to avoid relegation and lost their last home game against Mallorca over the weekend.
Potential Las Palmas XI: Cillessen; Rozada, Suarez, McKenna, Munoz; Essugo, Campana; Sandro, Rodriguez, Fuster; Silva.
La Liga Soccer Livestream: How to Watch Barcelona vs. Las Palmas From Anywhere
With just a point from their last two matches, La Liga leaders will be hoping for a return to winning ways as they host an improving La Palmas side on Saturday.
They're recent surprise defeat to Real Sociedad followed by their 2-2 draw with Celta Vigo last time out has taken the shine off Hansi Flick's superb start as Blaugrana boss, however their convincing 3-0 win against Stade Brest in the UEFA Champions League in midweek suggests the home side may be over their hump.
They take on a Las Palmas that appear to have been given a new manager boost with the last month's appointment of Diego Martinez, with the Canarians having claimed four wins from their last five matches.
Barcelona take on Las Palmas at the Estadi Olímpic Lluís Companys on Saturday, Nov. 30. Kickoff is set for 2 p.m. CET local time, making it a 8 a.m. ET and 5 a.m. PT start in the US, an 1 p.m. GMT start in the UK and a 12 a.m. AEDT kickoff in Australia.


docs(Duration): fix typo in compareTo method

Fixes small typo in  compareTo method of Duration.

Thank you for the contribution.
It's not a typo. iff means if and only if. See https://en.wikipedia.org/wiki/Iff

Thanks for clarification, misunderstood the docs then.


order of EQU calculations now critical

Again, trying to build an older bit of mole bashing code...
This Fails:
imgData:
incbin "resources/title_target.pbm"
endImgData:
DEFBUFFERSIZE:	equ 	DEFFILESIZE * 32	; file size x 8 bits x 4 colours RGBA  ; 61440	; 320 x 48 x 4 bytes
DEFFILESIZE:	equ	endImgData - imgData 	; DEFBUFFERSIZE/32
But if I work out the maths, it works:
DEFBUFFERSIZE:	equ 	61440 ;DEFFILESIZE * 32
DEFFILESIZE:	equ	1920 ;endImgData - imgData
So maybe the EQU is no longer working out any maths???
Pass 1...
File "mole_23.asm" line 1617 - Invalid number format 'DEFFILESIZE'
DEFBUFFERSIZE:	equ 	DEFFILESIZE * 32	; file size x 8 bits x 4 colours RGBA  ; 61440	; 320 x 48 x 4 bytes

Just done a new build of v10 to make sure I am on the latest.
On a new test, I found out the order is now important. This never used to be the case. But at least I know what the issue is and how to resolve.
If the second operation is completed first, the equ is defined properly and the first can be calculated.
The first calculation relied on the value being created by the second, which had not happened yet.
So, the following order works:
DEFFILESIZE: equ endImgData - imgData ; DEFBUFFERSIZE/32
DEFBUFFERSIZE: equ DEFFILESIZE * 32 ; file size x 8 bits x 4 colours RGBA ; 61440 ; 320 x 48 x 4 bytes

True, this changed a while back so fix an issue. To avoid adding in a third assembly pass, I documented the order in which .equ's can be used with other .equ's. This is in the 'EQU labels' section in the docs.

Thanks, I didn't look at the docs, as it had worked previously.
I see that is implied in the last paragraph, although I would not personally have read that to mean the issue I encountered!
However, now I understand, all sorted :-)

Released as v1.11


nativeError : Template parse errors: Can't bind to 'url' since it isn't a known property of 'image-upload'.

nativeError:Error: Template parse errors: Can't bind to 'url' since it isn't a known property of 'image-upload'.

If 'image-upload' is an Angular component and it has 'url' input, then verify that it is part of this module.
If 'image-upload' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message.
(" <image-upload [ERROR ->]
[url]="'example.com/images/upload'"
[buttonCaption]="'Select Images!'"
[dropBoxMessage]="'Drop yo"): HomeComponent@36:2 Can't bind to 'buttonCaption' since it isn't a known property of 'image-upload'.
If 'image-upload' is an Angular component and it has 'buttonCaption' input, then verify that it is part of this module.
If 'image-upload' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. (" <image-upload [url]="'example.com/images/upload'" [ERROR ->]

[buttonCaption]="'Select Images!'"
[dropBoxMessage]="'Drop your images here!'" (onFileUploadFinis"): HomeComponent@37:2 Can't bind to 'dropBoxMessage' since it isn't a known property of 'image-upload'.

If 'image-upload' is an Angular component and it has 'dropBoxMessage' input, then verify that it is part of this module.
If 'image-upload' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. (" [url]="'example.com/images/upload'"

[buttonCaption]="'Select Images!'" [ERROR ->]
[dropBoxMessage]="'Drop your images here!'" (onFileUploadFinish)="imageUploaded($event)" (onRemov"): HomeComponent@38:2 'image-upload' is not a known element: 1. If 'image-upload' is an Angular component, then verify that it is part of this module. 2. If 'image-upload' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message.
(" [ERROR ->]<image-upload [url]="'example.com/images/upload'" [buttonCaption]="'Select Images!'" "): HomeComponent@35:0 at SyntaxError.BaseError [as constructor] (http://<IP_ADDRESS>:3000/vendor.bundle.js:5206:27) [] at new SyntaxError (http://<IP_ADDRESS>:3000/vendor.bundle.js:5454:16) [] at TemplateParser.parse (http://<IP_ADDRESS>:3000/vendor.bundle.js:17079:19) [] at JitCompiler._compileTemplate (http://<IP_ADDRESS>:3000/vendor.bundle.js:48132:68) [] at http://<IP_ADDRESS>:3000/vendor.bundle.js:48015:62 [] at Set.forEach (native) [] at JitCompiler._compileComponents (http://<IP_ADDRESS>:3000/vendor.bundle.js:48015:19) [] at createResult (http://<IP_ADDRESS>:3000/vendor.bundle.js:47898:19) [] at Zone.run (http://<IP_ADDRESS>:3000/polyfills.bundle.js:15367:43) [ => ] at http://<IP_ADDRESS>:3000/polyfills.bundle.js:15774:57 [] at Zone.runTask (http://<IP_ADDRESS>:3000/polyfills.bundle.js:15405:47) [ => ] at drainMicroTaskQueue (http://<IP_ADDRESS>:3000/polyfills.bundle.js:15672:35) [] at HTMLDocument.ZoneTask.invoke (http://<IP_ADDRESS>:3000/polyfills.bundle.js:15603:25) [

Please help me .

Did you resolve #10 because I think that the root of the problem is that you didn't import the module.


Every command is followed by a needless command to retrieve the again status.

The below output is produced by running btmon on the host.
As you can see the command Handle: 0x0411 -  Data: 4000, immediately returns the status.
and then we see that another command is issued to get the status again (Write Request Handle: 0x0411 - Data:<PHONE_NUMBER>3829 ).
So the second command to retrieve the status doesn't make sense as the status is already returned in response to the first command.
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                #158 [hci0] 588.057662
      ATT: Write Request (0x12) len 4
        Handle: 0x0411
          Data: 4000
> ACL Data RX: Handle 64 flags 0x02 dlen 5                                                                                #159 [hci0] 588.100109
      ATT: Write Response (0x13) len 0
> ACL Data RX: Handle 64 flags 0x02 dlen 13                                                                                #160 [hci0] 588.175197
      ATT: Handle Value Notification (0x1b) len 8
        Handle: 0x0421
          Data:<PHONE_NUMBER>22
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                #161 [hci0] 588.230933
        Num handles: 1
        Handle: 64
        Count: 1
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                #162 [hci0] 590.057463
      ATT: Write Request (0x12) len 9
        Handle: 0x0411
          Data:<PHONE_NUMBER>3829
> ACL Data RX: Handle 64 flags 0x02 dlen 5                                                                                #163 [hci0] 590.110147
      ATT: Write Response (0x13) len 0
> ACL Data RX: Handle 64 flags 0x02 dlen 13                                                                                #164 [hci0] 590.200230
      ATT: Handle Value Notification (0x1b) len 8
        Handle: 0x0421
          Data:<PHONE_NUMBER>22
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                #165 [hci0] 590.230897
        Num handles: 1
        Handle: 64
        Count: 1

I have adapted the code so that this is no longer the case.


Restart an app on non marathon leader not work

Hi,
restart an app through the  /v2/apps/{appId}/restart endpoint only works on the marathon leader. If you restart an app on a non marathon leader
you get an {"message":"Unsupported Media Type"} error.
Greets
Marc

This should of course be fixed, but as a temporary solution you could try setting "Content-Type: application/json" on your request.

The solution works, thx.


Use helm-docs to generate a README file by chart

helm-docs (https://github.com/norwoodj/helm-docs) generates a pretty README.md that is templatizable.
Of course, there is a docker image.
Kept from https://github.com/argoproj/argo-helm/
#!/bin/bash
## Reference: https://github.com/norwoodj/helm-docs
set -eux
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
echo "$REPO_ROOT"

echo "Running Helm-Docs"
docker run \
    -v "$REPO_ROOT:/helm-docs" \
    -u $(id -u) \
    jnorwood/helm-docs:v1.11.0

We now use helm-docs


Throttle TSServer so it doesn't eat my machine

The root issue has been reported a couple times, but then shut down with responses like "disable extensions" or "turn this setting off", but I think there's a better way that this problem can be solved: throttling.
The problem I'm talking about is tsserver.js taking more of the CPU pie than is fair (#127105 and #132678). After not wanting to file a bug report (because if I'm having an issue with VSCode, then someone else definitely is), I resulted to having a dev.to article telling me to turn off automatic type acquisitions. But me, as a very sloppy JS dev, relies on such a thing to make sure I'm using the libraries I require correctly.
I'm proposing that a throttling feature is implemented in the tssever, so I can still get my typings, but I also don't have to wait literally 5 seconds because the speed between my keyboard and VSCode is slower than aussie outback internet. Edit: I'm not joking, it really kills my machine.
I haven't looked into the tsserver code at all, so I don't know if such a feature can be implemented, but any sort of implementation to allow those with Surface Book 2s or less the ability to stop tsserver from halting our dev experience.
Please and thank you. 🙏✨

Similar to other issues that have raised similar concerns, the project I'm currently working on is large, and (from my undocumented observations) this issue seems to only happen on large projects. I think in the dev.to article it mentions that the problem only shows its true colours on large projects.
That being said, I wish I could show you the environment I'm working in, but suffice to say, it's getting on the bulkier side (~50MB of actual code, and ~180MB of node_modules - there's also ~300MB of other files, some code, some not).
Realistically, it's an express/mysql/cloud storage/websocket app, if that gives you any better of an indicator to it's size.


Allow objects in instanceof-like assertions

Affected assertions and their webmozart implementations showing objects are allowed

isInstanceOf / notInstanceOf - https://github.com/webmozarts/assert/blob/1.10.0/src/Assert.php#L411 / https://github.com/webmozarts/assert/blob/1.10.0/src/Assert.php#L434 using instanceof

Thank you!


[FLINK-34363] Set artifact version to $project_version if $FLINK_VERSION is not set

FLINK-34363
This script change is needed for flink-connector-parent releases and it was tested as following:

with $FLINK_VERSION not set:  to build flink-connector-parent-1.1.0-rc2
with $FLINK_VERSION set: to build a local release of flink-connector-cassandra

Also, after the merge, I'll update the wiki connector release page to indicate flink-connector-parent release specificities (need to override $PROJECT and need to specify no  $FLINK_VERSION)

I'm not sure about defaulting to the project version. 🤔

I agree, for the vast majority of the use cases (all the connectors except parent), the script will be used with version=project_version-flink_version ok for not defaulting to version=project_version

The connector version thingy is odd enough that it may be more appropriate to force the user to either set FLINK_VERSION or FULL_VERSION.
OR, how about we check via maven if the project contains a (non-empty) flink.version property, and if so use that as the condition? 🤔

I understand, as the pom will contain only the lowest flink.version supported by the connector you want to distinguish between connector-parent and regular connector release using the emptiness of flink.version in the pom but still use the user provided FLINK_VERSION to build the artifact version. This will allow the default to still be: provide a FLINK_VERSION and concat with project version.  This looks good to me.

@zentol I coded as discussed and tested on a local cassandra connector release and a local connector-parent release. PTAL

Thanks Chesnay for your review. Merging.


feat(ErrorContents): update copy

Overview

Updates the Copy of ErrorContents to be a real sentence.

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.70-alpha.d61803.0@codecademy/gamut-labs@30.1.0-alpha.d61803.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://622677c7b9f925006c61f149--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.71-alpha.def23c.0@codecademy/gamut-labs@30.1.0-alpha.def23c.0@codecademy/styleguide@55.0.3-alpha.def23c.0


[Request] Add VMware Workstation Player

Another awesome virtual machine software program. (free for personal, non-commercial use)
https://www.vmware.com/products/workstation-player.html

VMware Workstation Player is free for personal, non-commercial use (business and nonprofit use is considered commercial use). If you would like to learn about virtual machines or use them at home, you are welcome to use VMware Workstation Player for free. Students and faculty of accredited educational institutions can use VMware Workstation Player for free if they are members of the VMware Academic Program.

see https://github.com/ScoopInstaller/Nonportable/issues/87


Pre-selected categories on Block Top Menu

1. Pre-selected categories
On fresh installation of 1.1.0 we made “ADD NEW” and add several new categories.

On “Block Top Menu” we found three categories selected.

On front office we found these three categories.

2. Parent category
Before created the categories, we saw the box of “Parent category”.

After created the categories the “Parent category” disappear.

I don't understand what the problem is.

On “Block Top Menu” we found three categories selected.

The selected categories matches the categories displayed in front office. Newly created categories are listed in right panel -- available items.


Mac builds with Python 3.6 are failing in Github Actions

The transcript says:
  Version 3.6 was not found in the local cache
  Error: The version '3.6' with architecture 'arm64' was not found for macOS 14.4.1.
  The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

That list does contain some 3.6.x, but then I noticed the part about "architecture arm64"… so this comment seems to be relevant:

For me this looks like it's probably that the macos-latest Github action runner appears to have switched to an M1 ARM mac, where at least last week macos-latest was an x86 mac.

So I see a couple of options:

Pin macos-latest to an earlier revision so we're still ensuring x86, or
Drop 3.6 from CI for mac. It's already excluded for self-hosted, but we're still using it on Ubuntu.

This should be ready, and can prevent other branches from failing on macos/py36 if merged or cherry-picked there.


fix replit hosting

make unlimited links

Get a link from freenom
Change nameservers to cloudflare's
Add CNAME record of @ --> c.terbium.ga
Change SSL/TLS to Full (not strict)

I don't even support this


New accidents using news flashes - save in DB and send to reporters

Save news flashes in a new table in our DB
create a automatic report to send to reporters with:

link to anyway map
report on road if accident was outside the city or on street / area for accident inside a city.

#954

News flashes is already an existing table and updating in our db - thank you @Mano3

Create a dashboard for reporters containing:

Add information on Real Time accidents

news_flash is an existing table in our db that is updating every minute from Ynet.
Add to the dashboard all of the accidents in the news flash table.
Add an option to filter by news flash accident - which will then show:
The accident location with anyway map embedded.
Visualisations of statistical data of the accident location:
Graph of accidents over the years
Injured over the years
Pie graph of accident types
Any other graph that comes in your mind.

Send the report link automatically to reporters in real time with link to anyway.
Add an option to filter a specific road (eg. road no.90) Or a specific municipality and streets: Add visualisations of statistical data as noted above.
Bonus: add other data sources to our new_flash table - For example, use Google Alerts on accidents in Israel (see https://github.com/adasq/google-alerts-api), add walla, Haaretz, Maariv newsflashes scraping, etc.


Fix code format (include indentation and remove dead code)

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Does this PR introduced a user-facing change?

Additional documentation, usage docs, etc.:

done @benjaminhuo

done @benjaminhuo

Still the new comments are incorrect


too much cpu consumption

after using xborders my cpu usage goes up to 30% even when no apps are running. is this normal ?\
EDIT: also when i go fullscreen in i3 i can still see the curved borders . How do i fix that?

I have the same problem:
Setup:
Intel i7-11370H (4 Core, 8 Threads)
TigerLake-LP GT2 [Iris Xe Graphics]
Arch Linux (Endeavour OS), Kernel 5.17.9
X11
i3
picom
pycairo 1.21.0
xdotool 3.20211022.1-1
gtk3 1:3.24.34-1
gtk4 1:4.6.5-1
xborders.json:
{
  "border-radius": 10,
  "border-width": 5,
  "border-mode": "outside",
  "border-rgba": "FFFF00FF",
  "disable-drag-stress-toy": true
}

Load:
Average Load, with Picom running but without xborder: 0.30
Average Load, after about 30 seconds with xborder running: 1.41
According to htop, whenever xborder is running, there is a single Xorg-Thread consuming 149% CPU.

I fixed the fullscreen issue but I can't really do anything about the cpu consumption unless I were to rewrite it without depending on gdk, sorry.

Too bad, but can't be helped, I guess. Thank you anyway.

Same here, very high CPU consumption. Too bad, tool was great.

Hi, my PR #19 aims to solve this issue. If someone could test it on it's system I would appreciate it. On my system I've achieved a 20-25% less CPU usage.

Please let me know if this is still an issue @welcoMattic @Joachim-42he @arnavgr

./xborders --help output:
…
ValueError: Namespace Wnck not available

If you run this command what is your output?
dpkg -l | grep libwnck
Or if you use a distro which is not debian based then what is your distro?

I had to install libwnck on my arch linux. And yes, the CPU consumption is reduced.

I've added this to the dependencies are removed xdotools

Preparing a PR, but in short, it is the use of self.queue_draw() what is causing the performance hit.
gtk.queue_draw_area(x, y, w, h) should be used instead, look at this:
With queue_draw:

With queue_draw_area (taking as parameters win_data):

Notice CPU usage and GPU Frequency, in a laptop, fan noise is also cut.
This is not a perfect solution, as it generates artifacts when resizing/anything borders outside the active window:

This is a sugestion I've readed here: https://stackoverflow.com/questions/6888965/any-way-to-speed-up-reduce-cpu-usage-when-drawing-with-cairo

Closing this since it seems to be resolved!


Added dockerfile and workflow to push to dockerhub

I have the dockerhub credentials. Need access to the secrets to add it

What is cargo dist and why does it not like me? 😆

What is cargo dist and why does it not like me? 😆

cargo-dist is responsible for packaging all of our binaries for releases


[MSF] Require('ix2').init() method causes issues if there are no interactions created in the project

Fixed with v1.1.4

Fixed with v1.1.4


Error in the case when runoff polygon do not cover all river segments

If there are river segments which do not fall in any of the runoff polygons, computing weights fail.

fixed.


json-schema additionalProperties support

Is your feature request related to a problem? Please describe.
I tried to use your example with object type. It works fine but FormlyJsonschema.toFieldConfig() method does not support JSON Schema additionalProperties.
Describe the solution you'd like
I suggest to render the object with additionalProperties like react-json-schema-form does. Here is an example (on Additional Properties tab)

I would VERY much like to see support for this. At the very least include the actual properties in the model on valueChanges from the form group.

is there any update on this , how can we implement additionalProperties in formly ?


Revert "[TUBEMQ-356]C++ SDK Codec decode add requestid"

Reverts apache/incubator-tubemq#268

@charlely  you need push this request to master.


How to control the OpenFace output?

Hi.  I try to run this model but got a issue.  When I run the OpenFace FaceLandmarkVidMulti to extract AU , the output .csv file is not same as yours. How can I control the OpenFace output to save in a .pkl file?

To acquire specific estimations of AU by OpenFace, you can refer to https://github.com/TadasBaltrusaitis/OpenFace/wiki/Command-line-arguments.
Actually, you are not required to generate .pkl file, I use this format just for convenience. But if you don't, you should modify the code in /data/dataset_aus.py to ensure you can read an image and its corresponding AUs

Thanks for your reply! I have find the solution by using FaceLandmarkImg -wild -mutil-view 1 -aus . But a new problem occur: How to balance the weight of different losses? I want got target expression so I set the expression loss to a big scalar , then the  identity can not be preserved and output image quality is not  good :( .  When I try to reduce the  weight of expression loss , sometimes the expression result is not good . So could you please tell me how to find appropriate weights for all of losses?

It's a hard problem. May be you should first try the initial hyper parameters as we did, and then change the hyper-parameters to get acceptable results.  Some times the face pose also matters.

感谢您的回复！我已经找到了

可以告诉我你是怎么输出.pkl文件的吗，

你的意思是我还需要重新将 .csv文件转成.pkl就行了是吧
可以联系你吗？QQ也可以
------------------ 原始邮件 ------------------
发件人:                                                                                "junleen/Expression-manipulator"<EMAIL_ADDRESS>发送时间: 2021年2月26日(星期五) 凌晨0:20
收件人<EMAIL_ADDRESS>抄送: "偶是笨蛋"<2310953180<EMAIL_ADDRESS>主题: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1)
用Python的pickle包  你在csdn找一下使用方法就可以 只要几行代码
发自我的iPhone
------------------ Original ------------------
From: gqghj<EMAIL_ADDRESS>Date: Fri,Feb 26,2021 0:16 AM
To: junleen/Expression-manipulator<EMAIL_ADDRESS>Cc: Bestyunshen <578431642@qq.com>, Author<EMAIL_ADDRESS>Subject: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1)
感谢您的回复！我已经找到了
可以告诉我你是怎么输出.pkl文件的吗，
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

我只是把csv的东西全部提出来做成一个列表 再把这个列表写入成pkl文件
做数据集这块很灵活的 我也是边用边查  也不知道是不是有效率更高的办法 总之能顺利训练就行了
发自我的iPhone
------------------ Original ------------------
From: gqghj<EMAIL_ADDRESS>Date: Fri,Feb 26,2021 0:29 AM
To: junleen/Expression-manipulator<EMAIL_ADDRESS>Cc: Bestyunshen<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1)
你的意思是我还需要重新将 .csv文件转成.pkl就行了是吧
可以联系你吗？QQ也可以
------------------ 原始邮件 ------------------
发件人:                                                                                "junleen/Expression-manipulator"                                                                                <notifications@github.com>;
发送时间: 2021年2月26日(星期五) 凌晨0:20
收件人: "junleen/Expression-manipulator"<Expression-manipulator@noreply.github.com>;
抄送: "偶是笨蛋"<2310953180@qq.com>;"Comment"<comment@noreply.github.com>;
主题: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1)
用Python的pickle包 &nbsp;你在csdn找一下使用方法就可以 只要几行代码
发自我的iPhone
------------------ Original ------------------
From: gqghj <notifications@github.com&gt;
Date: Fri,Feb 26,2021 0:16 AM
To: junleen/Expression-manipulator <Expression-manipulator@noreply.github.com&gt;
Cc: Bestyunshen <578431642@qq.com&gt;, Author <author@noreply.github.com&gt;
Subject: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1)
感谢您的回复！我已经找到了
可以告诉我你是怎么输出.pkl文件的吗，
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

我只是把csv的东西全部提出来合并一个列表再把这个列表写入成pkl文件做数据集这块很灵活的我也是边用边查＆nbsp;也不知道是不是有效率更高的方法同时能顺利训练就行了＆nbsp; 发自我的iPhone

嗯我理解你的意思了，这样就好办了，非常感谢，

我只是把csv的东西全部提出来做成一个列表 再把这个列表写入成pkl文件 做数据集这块很灵活的 我也是边用边查  也不知道是不是有效率更高的办法 总之能顺利训练就行了  发自我的iPhone
…
------------------ Original ------------------ From: gqghj<EMAIL_ADDRESS>Date: Fri,Feb 26,2021 0:29 AM To: junleen/Expression-manipulator<EMAIL_ADDRESS>Cc: Bestyunshen<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1) 你的意思是我还需要重新将 .csv文件转成.pkl就行了是吧 可以联系你吗？QQ也可以
------------------ 原始邮件 ------------------ 发件人: "junleen/Expression-manipulator" <notifications@github.com>; 发送时间: 2021年2月26日(星期五) 凌晨0:20 收件人: "junleen/Expression-manipulator"<Expression-manipulator@noreply.github.com>; 抄送: "偶是笨蛋"<2310953180@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1) 用Python的pickle包 &nbsp;你在csdn找一下使用方法就可以 只要几行代码 发自我的iPhone
------------------ Original ------------------ From: gqghj <notifications@github.com&gt; Date: Fri,Feb 26,2021 0:16 AM To: junleen/Expression-manipulator <Expression-manipulator@noreply.github.com&gt; Cc: Bestyunshen <578431642@qq.com&gt;, Author <author@noreply.github.com&gt; Subject: Re: [junleen/Expression-manipulator] How to control the OpenFace output? (#1) 感谢您的回复！我已经找到了 可以告诉我你是怎么输出.pkl文件的吗， — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

请问action units你用了多少类训练呢？openface里输出的是17类，Expression-manipulator里默认参数是13


Add analytics query for addresses that hold a balance

It might be interesting to see how the ledger state (with regards to addresses) evolves over time. Note that this is different from totalActiveAddresses.

Could you add design specs to this issue?

We basically want the number of unique addresses that owned unspent outputs at a given milestone. Since we only want to have this on a per-milestone basis we need to add a new endpoint under ledger.

Yes, but I mean add the expected endpoint, the format of the output, etc.

This should be specified as part of #790

This was closed by #821.


action: update docker-push action for pushing images on demand

relates to red-hat-storage/ocs-operator#2616, when ocs or odf operator is deployed by u/s CI they try to pull a preconfigured bundle of ocs-client-operator for deployment however that bundle is being created on demand manually.
Having a working gh-action for performing that op reduces manual work, at the same time trying to keep the action as short as possible we should set the vars correctly that corresponds to a particular release in Makefile.
Below is an example on how it was done manually
export VERSION=4.16.0
export IMG=quay.io/ocs-dev/ocs-client-operator:v${VERSION}
export OCS_CLIENT_CONSOLE_IMG=\
quay.io/ocs-dev/ocs-client-console:v4.15.0
export BUNDLE_IMG=quay.io/ocs-dev/ocs-client-operator-bundle:v${VERSION}

Apart from above, client-op depends on csi-addons and for u/s, again we are creating & pushing a bundle for that operator and use the relavent image tags of csi-addons, which will still be manual op atm.

@Madhu-1 could you pls check, secrets mentioned in this PR are already defined in the repo? I don't have perms to view that. @iamniting could you pls provide secrets to @Madhu-1? thanks.

@Madhu-1 could you pls check, secrets mentioned in this PR are already defined in the repo? I don't have perms to view that. @iamniting could you pls provide secrets to @Madhu-1? thanks.

Even I can not see the settings of this repo. @Madhu-1 do let me know if the repo does not have secrets.

@Madhu-1 could you pls check, secrets mentioned in this PR are already defined in the repo? I don't have perms to view that. @iamniting could you pls provide secrets to @Madhu-1? thanks.

Even I can not see the settings of this repo. @Madhu-1 do let me know if the repo does not have secrets.

strangely I don't have all/admin access for this repo. @nb-ohad @jarrpa can help you.


Just add some more features(voice commands) to it

I have added basic voice commands.
If you can add more commands and they are usefull and interesting then go for it.

Can you assign me this?

Anyone can work on this. No need for assigning
Just do code and raise a PR
I will accept it !!

@Kamalpreet-3223  hii i just made a pr pls see to this, hopefully my contribution is meaningful

Your contribution was great @para-docx


Use OrderedDict for query_options to retain dict ordering (issue for …

…Python3.5 and below)
This will fix #114

merged into : https://github.com/AtakamaLLC/onedrive-sdk-python

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #209 for more information


Update DEA User Guide to use theme and tiles from DE Africa 🖌

For example:
https://docs.digitalearthafrica.org/en/latest/index.html

Me and Claire are currently developing this in our V2 of the DEA Docs website.

Actually, I think this ticket is about adding these tiles to the 'User Guide' section of the site. They are already added to the Data Products section of the site. Therefore, I'll reopen this ticket since it isn't done yet.

You can use the same 'image cards' component I have used in the data product section of the site:
https://demo1--dea-docs.netlify.app/data/


Returning a list of partner-id values the device is would be helpful

In the response to /device/{DeviceId}/status it would be very helpful to get the list of partner-id values the device has most recently used to connect to Xmidt.
{

    "deviceid": "5",
    "last_offline_reason": "ping miss",
    "now": "2019-02-26T20:18:15.188881748Z",
    "since": "2019-02-26T20:18:15.188881748Z",
    "state": "online",
    "partner-ids": [
        "hello",
        "world" ]
}

added partner IDs, but set it as partner_ids in the json being returned.  This matches the json key value that is found in the wrp message.


Fixed issue #576

Fixed issue #576 where the text for SIDS with the same transition would stack on top of each other.
Got sick of this when trying to setup NZAA as an airport so I went ahead and fixed it :)

Great! This is perfect, especially with some of my airports where such SIDs overlap, like Delhi which is one of the worst offending ones. Is there anywhere we can see these changes in action? If so, that'd be great! 😉

@indianbhaji check my comment in the actual issue

Beautiful, thank you! :smile:
Merged via b0b093e.


with autoplay={true} the Play-Button don't switch to Pause

if i enable "autoplay" the play-button stays at "play" instead of switching to "pause" after rendering with an source url.
Then the first hit on the play button does nothing but now switch to pause.
Next hit will pause the playing correctly.

Hey, @NiasSt90! Thanks for writing the issue. That issue reproducing for me as well. Please check the new release v1.5.3. I think I fixed it.