Add terraform import commands

This adds 2 commands for terraform-dependencies - create-import-fileandlink-import-file`
create-import-file is a helper tool, which can be used to easily create import blocks. Given a resource reference, it will output the Terraform Documentation URL, to the import section, showing wether the 'id' needs to be the 'id', 'arn' or name. Once both to and id are provided, it will output the import block to the given location.
link-import-file creates a symlink to either the temporary Account Bootstrap or Infrastructure module, allowing the import blocks to be read whilst running dalmatian terraform commands (eg. a deploy)

Looks nice :) Could you include an example of how someone should use this in the real world?

The full usage for this would most likely be better as part of some better overall documentation - Which is currently in the backlog, started at https://github.com/dxw/dalmatian-tools/blob/main/README-in-development.md
Ideally we would have example usage per command
For now, I'll add it into this PR as a comment
Usage

dalmatian terraform-dependencies create-import-file -h

Usage: create-import-file [OPTIONS]
  -h                                  - help
  -o <output-location>                - Absolute path to output the import.tf file

dalmatian terraform-dependencies create-import-file -o ~/my-import-file.tf

==> You will be promted for the target resource reference (`to`),
    and then the input reference (`id`)
    An attempt will be made to display a Terraform Documetation link
    to the 'Import' section, which explains wether the resource 'id', 'arn'
    or 'name' is required
    You can add multiple resources as needed
    Press CTRL-C once completed, and the file will be saved to the specified
    location

to: aws_subnet.infrastructure_private["a"]
Terraform import docs for aws_subnet: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#import
id: subnet-12345

to: aws_ecs_task_definition.infrastructure_ecs_cluster_service["my-service"]
Terraform import docs for aws_ecs_task_definition: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#import
id: arn:aws:ecs:eu-west-2:123456789112:task-definition/staging-infra-my-service:123

to: ^C
$ cat ~/my-import-file.tf
import {
  to = aws_subnet.infrastructure_private["a"]
  id = "subnet-12345"
}

import {
  to = aws_ecs_task_definition.infrastructure_ecs_cluster_service["my_service"]
  id = "arn:aws:ecs:eu-west-2:123456789112:task-definition/staging-infra-my-service:123"
}

dalmatian terraform-dependencies link-import-file

==> /Users/user/my-import-file.tf linked to /Users/user/repos/dxw/dalmatian-tools/tmp/terraform-dxw-dalmatian-infrastructure/dalmatian-import.tf


Add methods to ReadHyperdrive for getAllOpenLongs and getAllOpenShorts

Using TransferSingle events, return the list of assetIds and balances of the user's open longs and shorts.
This will be used in conjunction with new getOpenLongDetails and getOpenShortDetails methods for grabbing P&L, cost basis, etc.. if available.
example idea:
const openLongs = readHyperdrive.getAllOpenLongs(account);

const openLongDetails = openLongs
  .map(({ assetId, balance }) => {
    return {
      assetId,
      balance,
      // this will be undefined if no details can be calculated by getOpenLongDetails
      details: await readHyperdrive.getOpenLongDetails({ assetId });
  });

Pausing on this to take on more priority work.

Closing since this is marked as Done.


Fix specialization_constants items

specialization_constants block is missing item markers and the resulting YAML is treated like a map, failing on duplicate keys (spirv_id).

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

@dpwiz sorry - I just realized this and https://github.com/KhronosGroup/SPIRV-Reflect/pull/274 were doing the same thing and I merged that one in first


Fix broken commons-lang submodule

The commit referenced for the commons-lang submodule seems to have been removed, which causes a recursive clone of the repository to fail. I've updated the specified commit to another commit published the next day with the same commit message, which seems to work without issue.

Thanks!


Clicking Authorize under bot application on Glimesh

When clicking Authorize while viewing my bot application at the very bottom, it returns an error that this site cannot be reached. If I click Authorize I should be presented with a message from Glimboi that my token has been saved or Glimboi has been authorized for 6 hours, etc. If someone else new to this clicks Authorize and is presented with that they may think the program is broken and uninstall it.

After 1.6 the bot doesn't host an authorization server anymore. Instead it uses client credentials (basic post request with id and secret). I only requested that the URL be used in case I have to go back to the old auth method. That is unlikely, but it would prevent users from having to go back and setting the URL later. Any URL would work since it is unused.
As our overlay evolves I may have the bot host a webserver. I could add a endpoint for it but I want to stay with wss to use less resources if possible.

Gotcha thanks for the info.


fix: add precommit config

fix

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.


Standalone OS X package works but every command ends with "Failed to execute script standalone"

I'm seeing this on OS X with the 0.5.0 standalone package.
All the commands appear to work fine, and the return codes are 0 for successful operations, but something (presumably PyInstaller) spits out Failed to execute script standalone at the end of the output for any command.
This seems to be harmless, but I'll look into it since the error message is annoying and will confuse users.

Still seeing this with Flintrock 0.8.0 and PyInstaller 3.2.

Not seeing this anymore on master with PyInstaller 3.3.


Fix Following Crash Issue

As you scroll down in the following list, it will crash.

Fixed with commit 8f70475479e5f76f59e59853bd7b75c539fa8ad9


Resolve paths from project root

First off, congrats on the 0.10 release! Huge update and some extremely cool and novel stuff here.
I ran against a somewhat sharp edge trying to work with an included lib. It seems that, currently, paths to e.g. included libs or c_src are all resolved relative to the current file, which means co-locating in lib/my_project/.... In my case, that means needing to put a git submodule in lib, which means all contents are included in packages by default, etc.
What do you think about resolving paths relative to the project root by default, and relative to the current module if the path uses ./?
# resolves to PROJECT_ROOT/includes
use Zig, include_dir: "includes"

# resolves to __DIR__/includes
use Zig, include_dir: "./includes"

I think I like this, let's call it provisional since I don't know if the zig build will play nice with it (sometimes it wants things in the project root) but I think it will be ok.

I want to chip with a pattern I recently encountered:  using hex dependency management to pull a C library off the GitHub:
 {:libmagic, git: "https://github.com/file/file", tag: "FILE#{filelib_tag()}", app: false, compile: false}

and being able to add deps/file in the include path would come in handy.


29 July Private Cloud Portal

Document changes and add release notes for Private Cloud Portal release
Scheduled for 29 July.

Release approved over Slack


can solidjs support render canvas animation?

React can render canvas animation. eg: react-pixi-fiber. React can do such thing but the performance is so bad. Solidjs just like react but with better performance and small bundle size. If Solidjs can support this,
I think this could be a big use scenario for Solidjs.

Yes, it requires a Pixi renderer for Solid's universal renderer.

add some demo:
https://codesandbox.io/s/solid-gl-boxes-lmpei
https://codesandbox.io/s/custom-dom-renderer-yu2pj


[FUSE] Override completion isn't working

Using Version 17.13.0 Preview 1.0 [35415.258.main]
Works if I turn FUSE off

Accidentally fixing this


Training step cell in jupyter lab not showing progress output

Hello!
I have encountered an issue,  where I cant see any progress output while training process is calculating. It shows only after execution is complete. Im working in Jupyter Lab run locally on Windows Server 2022.
Any ideas how to fix it?

Same issue here @JoePenna !
I'm locally running the Training cell and my Cuda usage is hovering around 65% with 23.6gb of VRAM being dedicated to training. Also, I can see new last.ckpt and global step sample images being generated every roughly 11 minutes so I know the training is working.
@artgadliba are you still having issues?


az storage blob list does not return nextMarker when combined with certain --query formulations

Related command
az storage blob list --account-name ******* --container-name ****** --num-results 1 --show-next-marker --only-show-errors --include t --query '[?tags."a-b" != null]'
Describe the bug
I want to be able to retrieve data about large numbers of blobs using the --query option to avoid returning too much data. However, az storage blob list does not return nextMarker in the json output if combined with certain formulations of the --query option
To Reproduce
A blob storage account contains 3 txt files with the tags show below:

file name
first tag name
second tag name

wibble.txt
a
a-b

wibble2.txt
a

wibble3.txt
a-b

Below are the expected and actual results for different queries:

query
expected result
actual result

az storage blob list --account-name ******* --container-name ****** --num-results 2 --show-next-marker --only-show-errors --include t
returns wibble.txt/wibble2.txt with nextMarker (1 more records exist for the query performed)
as expected

az storage blob list --account-name ******* --container-name ****** --num-results 2 --show-next-marker --only-show-errors --include t --query '[*]'
returns wibble.txt/wibble2.txt with nextMarker (1 more record exists for the query performed)
as expected

az storage blob list --account-name ******* --container-name ****** --num-results 1 --show-next-marker --only-show-errors --include t --query '[?tags."a-b" != null]'
returns wibble.txt with nextMarker (1 more record exists for the query performed)
Not as expected. Returns wibble.txt --> with no nextMarker <--

Expected behavior
I would expect the third query against blob index tags to return the requested number of results and a continuation token with which to retrieve the next set of results.
Environment summary
Windows-10-10.0.19045-SP0
Python 3.10.8
Installer: MSI
azure-cli 2.45.0 *
Extensions:
azure-devops 0.25.0
Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
Additional context
In the absence of a fix for the above, can you suggest an efficient way to query large numbers of blobs (potentially millions) using tags as a filter, and iterating through the results with a continuation token.

I have upgraded to the latest version 2.45.1 but same result.

@evelyn-ys for awareness

Hi @MonkeyTennis!
The working principle of --query is to first execute the command and obtain the result in JSON format, then use JMESPath to query from this JSON, and finally filter out the result and return it.
For the 3rd query you listed, the result JSON before query is something like:
[
  {
    "name": "wibble",
      …
    "tags": {
          "a": "",
          "a-b": ""
     }
  }
  {
    "nextMarker": "xxxxx"
  }
]

As the second element in the JSON, nextMarker is obviously not compatible with [?tags."a-b" != null], so it will be discarded.  Actually, nextMarker here points to wibble2, not wibble3. If your desired effect is to display only the first result, please avoid using --num-results 1 and instead use JMESPath syntax like --query '[?tags."a-b" != null]|[0]'.

Hi, I used num-results 1 because I only provided a small set of data, to try and illustrate the point in a simple way.
In reality there are millions of blobs in the container that I need to identify using the criteria --query '[?tags."a-b" != null]'. If this query does not return nextMarker, how do I iterate through millions of blobs without using num-results * (causes an out of memory exception)?

To put it another way, if I had a record set something like the following:

record
has tag?

1
no

5
yes

6-999999
no

1000000
yes

1000001-3999999
no

4000000
yes

What is the most efficient way of returning records 5, 1000000, 4000000 and the other ten million tagged blobs that might be interspersed throughout the data set?
It seems to me that I should filter the results (using --query) and receive a continuation marker due to the large number of records.

@MonkeyTennis, I got your request. When dealing with massive amounts of data, it's important to use nextMarker to mark the starting point for the next query. We will solve the issue ASAP.

@MonkeyTennis, after reassessing the risks involved, we have decided not to support the feature. However, we suggest two alternative solutions to help you address your issue. Thank you for your understanding.

Run  az storage blob list --account-name {} --container-name {} --num-results {} --include t --query '[?tags."a-b" != null]'. By removing --show-next-marker --only-show-errors , nextMarker will show in the warning.
Run az storage blob list --account-name {} --container-name {} --num-results {} --include t --show-next-marker --only-show-errors --query '[?tags."a-b" != null || nextMarker != null]'. By adding the condition nextMarker != null to avoid nextMarker being filtered by JMESPath.

ok, Option 2 does work in that nextMarker is returned.
However, i've hit another issue where I cannot iterate through more than 5000 records.
If num-results is set to 1000 then I can iterate 5 times before the next call just hangs forever. If num-results is set to 5000 then I get one continuation token and the next call just hangs forever. The following script, where i've removed --query altogether to simplify things, demonstrates the issue, given a large enough volume of blobs to iterate over:
$blobs = az storage blob list --account-name {} --container-name {} --only-show-errors --show-next-marker --num-results 1000 --include t | ConvertFrom-Json;

$nextMarker = $blobs.nextMarker;
$nextMarker;

while ($null -ne $nextMarker)
{
    $newBlobs = az storage blob list --account-name {} --container-name {} --only-show-errors --show-next-marker --num-results 1000 --include t --marker $nextMarker | ConvertFrom-Json;
    $nextMarker = $newblobs.nextMarker
    if ($null -eq $nextMarker)
    {
        Write-Host nextMarker is null!!;
    }
    else
    {
        Write-Host nextMarker is not null!!;
    }

    $nextMarker;
}

The output of this script is the following (i'm assuming nextMarker is not sensitive data):
2!108!MDAwMDM2ITAwMDRlMDkyLWUxODItNGNlZS1hOWY3LTA0YmYwMDZhZDA5ZiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-
nextMarker is not null!!
2!108!MDAwMDM2ITAwMDljNzQyLTJkOWMtNGJiNy1hNjFkLTVkNDJiOWU0Njc0MCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-
nextMarker is not null!!
2!108!MDAwMDM2ITAwMGVjOTE4LWQ0MjYtNGY3Yy1iYTMzLTljOWJiNjBkMDJjYSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-
nextMarker is not null!!
2!108!MDAwMDM2ITAwMTQwN2Y5LTg5MTYtNDE0NC04NWIwLTViYWI5NmUzZDcwYSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-
nextMarker is not null!!
2!108!MDAwMDM2ITAwMTkyNmZlLWZmM2YtNDI3MS04YTY0LTRhZTk1ZDNhMWE0NSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-
nextMarker is not null!!
2!108!MDAwMDM2ITAwMWU5MTEwLWJkZDYtNDJjNC04NjM2LTRkYWQ2YWYwZjc2OCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-
At this point the script just hangs forever.

@MoChilia any thoughts on the above? Thanks

I ran your script with a container having 10000 blobs. It successfully finished the iteration. However, it returned an error: argument --marker: expected one argument. This is because $nextMarker in the last iteration is not $null, it's an object array. Therefore I recommend you to turn the analyzing condition from $null -ne $nextMarker to ($nextmarker | Measure-Object).Count -ne 0.
BUT, your program hung with a nextMarker. It's strange. Could you share the error information and the full debug logs by running
az storage blob list --account-name {} --container-name {} --show-next-marker --num-results 1000 --include t --marker 2!108!MDAwMDM2ITAwMWU5MTEwLWJkZDYtNDJjNC04NjM2LTRkYWQ2YWYwZjc2OCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE- --debug
in the last iteration?

Hi there, attached is the debug trace for the issue. As you can see, > 5000 records the invocation just goes into a loop for about 15 minutes before terminating with a memory exception:
az cli debug trace.txt

I should mention again that these storage accounts potentially contain tens of millions of blobs. Could there be an inefficiency in retrieving > the default number of records (5000) when such large numbers are involved?
This issue repro's 100% of the time for the storage account in question.

Need storage service side to figure out hanging issue on listing more than 5000 blobs. Cx has shared debug log above.
Hi @MonkeyTennis, we assume that the original issue has been resolved. For the new issue, Can you create a ticket for Storage service so that we can close this one for CLI?

Yes sure and thanks for your help on this, it has moved things forwards.

Raised https://github.com/Azure/azure-cli/issues/25674


dereference?

var db = require('monk')(params)
db.dereference(ref,callback)  not working

+1

We don't say that we support that api in the docs, I don't find db refs necessary really either imo.

@travisjeffery Is there any convenient way to do one to many or many to many relations?

@daimajia I'd do the same as this article: http://blog.markstarkman.com/blog/2011/09/15/mongodb-many-to-many-relationship-data-modeling/. Like it says in the article, you only need to use DBRef's in the array if your collection names change, in which case you could a write a migration anyway.

@travisjeffery I viewed this post before. How about one to many, for example:
db.person.insert({
  "_id": ObjectId("4e54ed9f48dc5922c0094a43"),
  "firstName": "Joe",
  "lastName": "Mongo",
  "groups": [
    ObjectId("4e54ed9f48dc5922c0094a42"),
    ObjectId("4e54ed9f48dc5922c0094a41")
  ]
});

How can i quikly get the instance of the ObjectId("4e54ed9f48dc5922c0094a42") and ObjectId("4e54ed9f48dc5922c0094a41") after I do find({_id: '4e54ed9f48dc5922c0094a43'}) method using monk?
another query?

Yeah another query like so:
var person; // person you have above
var groups = db.groups.find({"_id": {"$in": person.groups }});

@travisjeffery I'm new to mongodb. Thanks a lot for your help. I'll have a try. :-D

@travisjeffery  One more question. How can I bind the db.groups.find result with the person.groups column? Do it manually using underscore?

I implemented a middleware architecture and a dereferencing middleware here: https://github.com/monk-middlewares/monk-middleware-dereference


Adding some report, output, and value check functions

Adding some features to make it more straight-forward to output the margin values, check the PATH variables/constraints etc.

I'm going to add a couple of small things soon.


Export to PDF

Could anybody help with  how to export a model to PDF ?
I am using vuejs and have difficulty in 'importing' PDFKit, which can be downloaded as a js library from https://github.com/foliojs/pdfkit/releases
Tried something like:
npm install pdfkit
then in index.html
<script>
    var pdfKit=  require ('pdfkit');
    </script>

Then in vue component
var doc = new pdfkit();
this.values.PDFExport=makerjs.exporter.toPDF(doc,model);

However already in index.html I got this error:
browser.maker.js:71 Uncaught Error: Cannot find module 'pdfkit'
Thanks in advance

In your index.html the variable is called pdfKit (with capital K), but your vue component it is not using an upper case, also, I think you cannot use "require"  in a

I am almost there (hopefully)
Here is what I did so far:
I used browserify to bundle pdfkit.js:
browserify  -r pdfkit >pdfkit_bundle.js
In index.html I added
<script src='pdfkit_bundle.js'></script>
and
<script>
     var pdfkit=  require ('pdfkit');
 </script>

In my component I try to use:
var doc = new pdfkit();
makerjs.exporter.toPDF(doc,model);
this.values.PDFExport=doc;

However I get the following error from the makerjs.exporter.toPDF(doc,model);
vue.esm.js?efeb:591 [Vue warn]: Error in mounted hook: "TypeError: Cannot read property 'origin' of undefined"
Both the model and the doc are  have a value so they are NOT undefined
My model is otherwise fine and I can export it to  DXF without an issue and show it on the page
Any idea ?

@icodk can you go into your debugger, and enable Pause on exceptions and Pause on caught exceptions and see the exact line of code causing the error?

@danmarshall here is the line that causes the exception, it is inside
 function toPDF(doc, modelToExport, options)
about line 7208 in browser.maker.js as far as I can see
    `offset = MakerJs.point.add(offset, options.origin);`

The error is probably about the options parameter that according to the doc is optional
I could try to supply such option object but I am not sure how to define such object

@icodk - that's a bug that should be fixed. In the meanwhile, you can just send an empty object {} - all the properties are optional:
https://maker.js.org/docs/api/interfaces/makerjs.exporter.ipdfrenderoptions.html

@danmarshall This works (almost) : Downloading the doc as I do with the DXF results  a file with the text:
[object PDFDocument]
That's all
here is my code:
 var doc = new pdfkit();
        var pdf_opt={};
        makerjs.exporter.toPDF(doc,model,pdf_opt);
        var element = document.createElement('a');
        element.setAttribute('href', 'data:application/pdf;charset=utf-8,' + encodeURIComponent(doc));
        element.setAttribute('download', 'mydoc.pdf');
         element.click();

Not sure where the error, Is it in maker or the way I download it

Hi @icodk - the DXF works a little differently, since it is plain text. See the PDFKit documentation on how to create a blob url for download. You can also take a look at the Playground code and see another way to do it, which involves implementing the Node.js string reader interface.

Hi @danmarshall  Thanks for your patient.
finally working
here is some code for others (may be to add something to the docs, was not clear to me how it works):
On commandline:
npm install  blob-stream --save
browserify   -r blob-stream > blob_stream.js

in index.html (in the :
<script src='blob_stream.js'></script>

 <script>
    var makerjs=require('makerjs');
    var pdfkit=  require ('pdfkit');
    var blobStream=  require ('blob-stream');
 </script>

Generating the pdf
var doc = new pdfkit();
        var stream = doc.pipe(blobStream());
        var pdf_opt={};
        makerjs.exporter.toPDF(doc,mymodel,pdf_opt);
        doc.end();

        stream.on('finish',function(){
            var element = document.createElement('a');
            var blobURL=stream.toBlobURL('aplication/pdf');
           element.setAttribute('href', blobURL);
          element.setAttribute('download', 'mydoc.pdf');
          element.click();
      });


Jellyfin plugin is not working

What version of Music Assistant has the issue?
2.1.0b1
What version of the Home Assistant Integration have you got installed?
2024.5.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
MusicAssistant does not show any media from Jellyfin.
How to reproduce
I am using Jellyfin 10.9.2. I connected MusicAssistant with its own user via http to Jellyfin. The user has admin permission and has the permission to download content. I only allowed him to access music content.
Jellyfin and musicassistant is running as a docker instance.
Music Providers
Jellyfin
Player Providers
Snapcast
Full log output
_music-assistant-server_logs.txt
Additional information
No response
What version of Home Assistant Core are your running
2024.5.4
What type of installation are you running?
Home Assistant Container
On what type of hardware are you running?
Linux

As already suggested in other threads, i shared the media directly to musicassistant, and the media is there and able to play.

I set the log level to debug inside the music provider setup:
Logs from MusicAssistant:
2024-05-28 20:55:10.441 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.api] Sending get request to system/info/public
2024-05-28 20:55:10.445 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.connection_manager] connect_to_address http://<IP_ADDRESS>:8596 succeeded
2024-05-28 20:55:10.445 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.connection_manager] begin connect_to_server
2024-05-28 20:55:10.445 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.api] Sending get request to system/info/public
2024-05-28 20:55:10.448 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.connection_manager] calling onSuccessfulConnection with server None
2024-05-28 20:55:10.448 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.credentials] {}
2024-05-28 20:55:10.448 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.api] Trying to login to http://<IP_ADDRESS>:8596/Users/AuthenticateByName as musicassistant
2024-05-28 20:55:10.448 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.api] Sending post request to Users/AuthenticateByName
2024-05-28 20:55:10.593 INFO (ThreadPoolExecutor-0_4) [JELLYFIN.jellyfin_apiclient_python.connection_manager] Succesfully logged in as musicassistant
2024-05-28 20:55:10.593 INFO (MainThread) [music_assistant] Loaded music provider Jellyfin Media Server Library
2024-05-28 20:55:12.041 INFO (MainThread) [music_assistant.music] Sync task for Jellyfin Media Server Library completed

Logs from Jellyfin:
[2024-05-28 22:42:07.399 +02:00] [INF] [109] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was challenged.
[2024-05-28 22:42:38.725 +02:00] [INF] [83] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "musicassistant" has succeeded.
[2024-05-28 22:42:38.725 +02:00] [INF] [83] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "musicassistant": 8/0
[2024-05-28 22:42:38.726 +02:00] [INF] [83] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user 5863345a-8bd5-43c3-8471-2a2ee8dbe44a
[2024-05-28 22:42:38.787 +02:00] [INF] [83] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "<IP_ADDRESS>" request
[2024-05-28 22:43:27.060 +02:00] [INF] [103] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "musicassistant" has succeeded.
[2024-05-28 22:43:27.060 +02:00] [INF] [103] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "musicassistant": 9/0
[2024-05-28 22:43:27.061 +02:00] [INF] [103] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user 5863345a-8bd5-43c3-8471-2a2ee8dbe44a
[2024-05-28 22:55:10.586 +02:00] [INF] [21] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "musicassistant" has succeeded.
[2024-05-28 22:55:10.586 +02:00] [INF] [21] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "musicassistant": 10/0
[2024-05-28 22:55:10.587 +02:00] [INF] [21] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user 5863345a-8bd5-43c3-8471-2a2ee8dbe44a

@lokiberra

Looking at my metadataprovider in jellyfin, i only used MusicBrainz, and no TheAudioDB. I removed all my media from jellyfin and added just one album for testing. I selected both metadata providers.

I also used Picard with ID3v2.4 tags.
Sadly the media is still not in musicAssistant :/

I update jellyfin to 10.9.3. Same error :(

Thanks for the log. Based on the last two lines it connects just fine to your instance and is supposed to start syncing items.
The "Loaded music provider Jellyfin Media Server Library" comes from load_provider in server.py. It should then try to start syncing artists as the first media_type. If it does it should give a message of "Start sync of Artists items." as part of the sync_library in music_provider.py.
If it is successful in running all the tasks for each media_type it will return "Sync task for Jellyfin Media Server Library completed" as part of the _start_provider_sync in music.py.
Long story short, based on the lack of messages in the log it looks like something is happening in the main MA server code base apart from the Jellyfin provider itself that prevents the sync tasks from even starting.
@OzGav  I can't tell what might be going wrong between load_provider and the sync_library task from starting and actually using the Jellyfin provider

@lokiberra ok sounds like we will need to wait for this to get to the top of the pile and Marcel will comment.

This is being looked at

The Jellyfin provider has had a huge bump of updates last couple of weeks and months thanks to @Jc2k.
@florian-asche can you please verify if your issues still exist with the most recent 2.2.0 update of MA Server ?

The Jellyfin provider has had a huge bump of updates last couple of weeks and months thanks to @Jc2k.
@florian-asche can you please verify if your issues still exist with the most recent 2.2.0 (or 2.3 beta) update of MA Server ?

I am currently running 2.2.2 and enabled the jellyfin addon. Good news is, data can be found. I let it scan my library now. Will report if the time that it needs is ok and so on.

The Jellyfin provider has had a huge bump of updates last couple of weeks and months thanks to @Jc2k.
@florian-asche can you please verify if your issues still exist with the most recent 2.2.0 (or 2.3 beta) update of MA Server ?

I am currently running 2.2.2 and enabled the jellyfin addon. Good news is, data can be found. I let it scan my library now. Will report if the time that it needs is ok and so on.

it run trough. Looks great. Thanks for the good work!


[devex] Allow no jsdoc description if method has no parameters

This probably needs a special rule e.g. pseudocode
module.exports = {
  rules: {
    'custom-rule/require-description-for-functions-with-nested-identifiers': {
      create: function(context) {
        return {
          FunctionDeclaration(node) {
            if (node.params.length > 0) {
              const jsdocNode = getJsdocNode(node);
              if (!hasDescription(jsdocNode)) {
                context.report({
                  node,
                  message: 'Missing JSDoc description for function with parameters',
                });
              }
            }
          },
        };
      },
    },
  },
};

But it would let us have one line descriptions for property-like methods

This is an idea, but could be a cool avenue for a more right-fit linter

This is doable with esquery today: MethodDefinition[value.params.length>0]

Good to know, I tried similar things


Endpoint to request all Konfetti Ideas

We need a way to get all Konfetti ideas from the server that belong to one neighborhood.
This needs to contain all public ideas that are up for voting and all ideas that belong to the user and tnat may be still in review or got rejected.
Optional: Also "old" ideas was past events should be part of this - like for archive, when they are within a limit of a certain time (e.g. last month).
The sample/mock ideas data objects I work with on the client side look like this:
{
            "title":"Vogelhaus bauen",
            "description":"Am Spielplatz am Beispielplatz wollen wir ein oder mehrere Vogelhäuser bauen. Wer ist dabei?",
            "address":"Beipsielplatz 3",
            "gps":null,
            "date":1521559800000,
            "wantsHelper":true,
            "helpDescription":"Jeder der einen Hammer Schwingen will. Wer eine kleine Motorstichsäge hat - das wäre super.",
            "wantsGuest":false,
            "reviewStatus":"OK",
            "konfettiTotal": 11,
            "konfettiUser": 0,
            "userIsHelping": false,
            "userIsAttending": false,
            "created": {
              "byUser" : {
                "nickname" : "Christian",
                "avatar" : {
                  "filename" : "avatar-416c2727ae4fce156081d24b31fb3ada.jpg"
                }
              },
              "ts" :<PHONE_NUMBER>
            }
          }

... or like this ...

{
              "title":"Kinderfussball",
              "description":"Kinder. Fussball. 90 Minuten.",
              "address":"Beipsielplatz 3",
              "gps": { "lat": 52.519839, "lon": 13.408893 },
              "date":1521561800000,
              "wantsHelper":false,
              "helpDescription":"",
              "wantsGuest":true,
              "reviewStatus":"OK",
              "konfettiTotal": 8,
              "konfettiUser": 0,
              "userIsHelping": false,
              "userIsAttending": false,
              "created": {
                "byUser" : {
                  "nickname" : "Christian",
                  "avatar" : {
                    "filename" : "avatar-416c2727ae4fce156081d24b31fb3ada.jpg"
                  }
                },
                "ts" :<PHONE_NUMBER>
              }
            }

Some comments on the data fields:
"konfettiTotal" --> The amount of total konfetti on this idea
"konfettiUser" --> The amount of konfetti that the user already put on that idea ... if not possible the UI at least needs to know if the user alread voted once on this idea.
"reviewStatus" --> possible values:
'WAIT' : waiting for review
'OK' : review OK
'REJECTED' : review failed
"userIsHelping" --> has user commited to be part of the helping team
"userIsAttending" --> has user confirmed to visit the event
"created" --> same way as on a chat

Nachtrag. Was da noch fehlt, dass ja zu jeder Idee ein Orgachat gehört ... auf diesen müsste da auch noch eine Referenz rein --> orgaChatID:string

please check if fields userIsHelping and userIsAttending are present. I think my test-tools failed me on this one (i can see the fields in the debugger, but not in the response ?!).

orga-chat reference is still open here.


Correct path for codecov.yml

The current argument in the CI is non-existent:
https://github.com/codecov/codecov-action?tab=readme-ov-file#arguments
I am redirecting the file to the correct path and add verbosity ofr failure debuggin.

Guessing that happened last time versions were bumped?


use regexp for matching both /u/ and /user/ at routes.rb

Thanks to @rafatower there's a cleaner way of housekeeping the config/routes.rb file:
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -349,7 +349,7 @@ CartoDB::Application.routes.draw do
      # Visualizations
     get     '(/user/:user_domain)(/u/:user_domain)/api/v1/viz/tags'                           => 'tags#index', ...
-    get     '(/user/:user_domain)(/u/:user_domain)/api/v1/viz'                                => 'visualizations#index', ...
+    get     '(/:user_url_fragment/:user_domain)/api/v1/viz'                                   => 'visualizations#index',           as: :api_v1_visualizations_index, constraints: { user_url_fragment: /u(ser)?/ }

Implement this change making sure there are no regression issues

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.


redundant GHA workflows

There are both the new rake workflows and the old macos, ubuntu, windows workflows in GitHub Actions in this gem. The latter need to be removed.

Done


Unclear usage of energy key

Hello,
I am currently trying to train a PET model via metatrain using this input file:
seed: 42

architecture:
  name: experimental.pet
  model:
    CUTOFF_DELTA: 0.2
    AVERAGE_POOLING: False
    TRANSFORMERS_CENTRAL_SPECIFIC: False
    HEADS_CENTRAL_SPECIFIC: False
    ADD_TOKEN_FIRST: True
    ADD_TOKEN_SECOND: True
    N_GNN_LAYERS: 3
    TRANSFORMER_D_MODEL: 128
    TRANSFORMER_N_HEAD: 4
    TRANSFORMER_DIM_FEEDFORWARD: 512
    HEAD_N_NEURONS: 128
    N_TRANS_LAYERS: 3
    ACTIVATION: silu
    USE_LENGTH: True
    USE_ONLY_LENGTH: False
    R_CUT: 5.0
    R_EMBEDDING_ACTIVATION: False
    COMPRESS_MODE: mlp
    BLEND_NEIGHBOR_SPECIES: False
    AVERAGE_BOND_ENERGIES: False
    USE_BOND_ENERGIES: True
    USE_ADDITIONAL_SCALAR_ATTRIBUTES: False
    SCALAR_ATTRIBUTES_SIZE: null
    TRANSFORMER_TYPE: PostLN # PostLN or PreLN
    USE_LONG_RANGE: False
    K_CUT: null # should be float; only used when USE_LONG_RANGE is True
    RESIDUAL_FACTOR: 0.5

  training:
    INITIAL_LR: 1e-4
    EPOCH_NUM_ATOMIC:<PHONE_NUMBER>000000000
    SCHEDULER_STEP_SIZE_ATOMIC: 500000000
    EPOCHS_WARMUP_ATOMIC: 250000000
    GLOBAL_AUG: True
    SLIDING_FACTOR: 0.7
    ATOMIC_BATCH_SIZE: 850
    MAX_TIME: 234000
    ENERGY_WEIGHT: 0.1 # only used when fitting MLIP
    MULTI_GPU: False
    RANDOM_SEED: 0
    CUDA_DETERMINISTIC: False
    MODEL_TO_START_WITH: null
    SUPPORT_MISSING_VALUES: False
    USE_WEIGHT_DECAY: False
    WEIGHT_DECAY: 0.0
    DO_GRADIENT_CLIPPING: False
    GRADIENT_CLIPPING_MAX_NORM: null # must be overwritten if DO_GRADIENT_CLIPPING is True
    USE_SHIFT_AGNOSTIC_LOSS: False # only used when fitting general target. Primary use case: EDOS
    ENERGIES_LOSS: per_structure # or per_atom
    BALANCED_DATA_LOADER: False

training_set:
  systems: "GaAs_old.xyz" # file where the positions are stored
  targets:
    energy:
      key: "energy" # name of the target value
      unit: "eV" # unit of the target value
    forces:
      key: "forces"

test_set: 0.1 # 10 % of the training_set are randomly split and taken for test set
validation_set: 0.1

I receive this error message:
Traceback (most recent call last):
  File "/home/kellner/miniconda3/envs/metatrain/lib/python3.11/site-packages/metatrain/__main__.py", line 105, in main
    train_model(**args.__dict__)
  File "/home/kellner/miniconda3/envs/metatrain/lib/python3.11/site-packages/metatrain/cli/train.py", line 195, in train_model
    dataset, target_info_dict = get_dataset(train_options)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kellner/miniconda3/envs/metatrain/lib/python3.11/site-packages/metatrain/utils/data/get_dataset.py", line 29, in get_dataset
    targets, target_info_dictionary = read_targets(conf=options["targets"])
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kellner/miniconda3/envs/metatrain/lib/python3.11/site-packages/metatrain/utils/data/readers/readers.py", line 197, in read_targets
    raise ValueError(
ValueError: Target names must either be one of ['energy'] or start with `mtt::`.

yet, the ase atoms file contains the energy with the energy key:
(ie se this example .xyz header)
336
Lattice="12.242795708356814 0.0 0.0 0.0 14.300662753383094 0.0 0.0 0.0 46.52603943175853" Properties=species:S:1:pos:R:3:forces:R:3 energy=-789746.5072366836 stress="-0.011809343246695348 -0.0006610734829436052 -0.00014231443035591501 -0.0006610734829436052 -0.013699829776391018 -0.0011476970189993147 -0.00014231443035591501 -0.0011476970189993147 -0.005864272688278898" free_energy=-789746.5072366836 pbc="T T T"

Could you point me to how I can fix this error message?

I can provide some sort of educated guess which might help - maybe put energy without quotes, as it is done in the native fitting scripts here: https://github.com/spozdn/pet/blob/main/default_hypers/default_hypers.yaml?

thanks for the quick reply, neither "energy" nor energy nor 'energy' works.
As expected "mtt:energyyields the following error:
ValueError: energy key 'mtt:energy' was not found in system 'GaAs_old.xyz' at index 0

You say that "energy" and 'energy' don't work, but how about energy? ASE 3.23 also gives similar problems. If you have it, you should downgrade to 3.22.1. @spozdn is right: in general, strings in yaml should not be wrapped into "" or ''

Do you have ASE 3.23? If so, can you try to downgrade to 3.22.1?

Hello, no 3.22.1 is installed in the environment

yes, sure -
GaAs_old_example.xyz.txt

Ah, got it! You should not have a forces: key in there. Forces are automatically taken if they are present, and the way to specify a custom key for them is though the gradients subsection of the energy target.
You need to change your system/targets definition to
training_set:
  systems: "GaAs_old.xyz" # file where the positions are stored
  targets:
    energy:
      key: "energy" # name of the target value
      unit: "eV" # unit of the target value

This will print
[2024-09-23 11:36:17][INFO] - Forces found in section 'energy'. Forces are taken for training!
[2024-09-23 11:36:17][INFO] - Stress found in section 'energy'. Stress is taken for training!

To the log if forces/stresses are automatically enabled.

I'll update the error message, and maybe we need another example for training with gradients?

I find this a bit unintuitive - and I would allow this use-case,
what is the motivation to not allow explicitely requesting the forces?

what is the motivation to not allow explicitely requesting the forces?

It is allowed, but with a different syntax (see https://metatensor.github.io/metatrain/latest/getting-started/custom_dataset_conf.html#expanded-configuration-format)
training_set:
  systems: "GaAs_old.xyz"
  targets:
    energy:
      key: "energy"
      unit: "eV"
      forces:
        key: some_other_name_for_forces
      stress:
        key: stress

You can also diable a gradient that would be automatically enabled. If you only want forces and not stress for example:
training_set:
  systems: "GaAs_old.xyz"
  targets:
    energy:
      key: "energy"
      unit: "eV"
      forces:
        key: some_other_name_for_forces
      stress: false

The idea of automatically enabling it is to make it easier for all users to train model on all the available information without to have to think about it.


New PR to test SignCLA at 2018-04-30 14:48:34.210986026 -0700 PDT m=+5.936095562

Body of PR

indiv-pass-staging: test succeeded


Add canonical tagging

Trello card URL:
https://trello.com/c/Uriikjvs/983-canonical-tagging-and-pages-with-pagination
Changes in this PR:

Added canonical URL to head using request URL

Not adding next/prev rel links as these are no longer used by Google for indexing. As mentioned in the Trello card there are 2 options around canonical URLs with search parameters. I've implemented the second option but the first commit represents the first option. Can roll it back to that after discussion with SEO agency for the best approach

I'm not sure this canonical link is adding the value that we believe it is, I thought it was to do with duplicate content. I'm not sure how adding a metatag which just displays what the request.url is would add any value.

It's treating the pages of the paginated search as different pages - so it's not treating the different pages of the search as duplicate content, instead each page of the search is seen as unique. Each search with different parameters is also not being treated as duplicated content but is seen as unique. I will clarify with the agency when I speak to them


Issues with tagged series

I tried to use the new tagged series  (with the local tag database) but wasn't able to read points back. Looks like the path stored in the tag database doesn't contain the prefix generated by encode(), and the finder is not able to find the associated whisper file.
Am I missing anything here ?
cc: @DanCech

The tag index deals with the logical names, the encoded names in the whisper file hierarchy are only used to make sure that we distribute the files properly on the filesystem.
Can you share the list of series you have in the index and the output of find storage/whisper/_tagged -type f?

On the filesystem:
{code}
└── _tagged
├── 200
│   └── 97e
│       └── tags-diceroll2;foo=bar5;label=value.wsp
├── 6d8
│   └── 5fe
│       └── tags-diceroll2;foo=bar2;label=value.wsp
├── 800
│   └── a22
│       └── tags-diceroll;foo=bar;label=value.wsp
└── d16
└── 0fa
└── tags-diceroll2;foo=bar;label=value.wsp
{code}
In the database:
{code}
tags_series:
50|800a22102fd965a88dc9588446cc17838ac77d795f9b845b836dcc2476b0324e|tags.diceroll;foo=bar;label=value
51|d160fae1a6a882cc459d0a456c71958614cebc801b39ece02754ee24daa02ab2|tags.diceroll2;foo=bar;label=value
52|6d85fe9b3066405a43f869d085b914fdabd145ccdb5aff28e04f7c4c8470cd06|tags.diceroll2;foo=bar2;label=value
53|20097e6e32bbddca626bbbfe325e1399367128a05c8764333df08e4362767d54|tags.diceroll2;foo=bar5;label=value
{code}
I tried seriesByTag('label=value') and get empty results. I added a print in the whisper finder and it seems to try to find these:
('find nodes', <FindQuery: tags.diceroll2;foo=bar2;label=value from Wed Oct  4 13:59:39 2017 until Thu Oct  5 13:59:39 2017>)
('find nodes', <FindQuery: tags.diceroll2;foo=bar5;label=value from Wed Oct  4 13:59:39 2017 until Thu Oct  5 13:59:39 2017>)
('find nodes', <FindQuery: tags.diceroll2;foo=bar;label=value from Wed Oct  4 13:59:39 2017 until Thu Oct  5 13:59:39 2017>)
('find nodes', <FindQuery: tags.diceroll;foo=bar;label=value from Wed Oct  4 13:59:39 2017 until Thu Oct  5 13:59:39 2017>)

That all looks correct, the whisper finder is responsible for handling the encoding back into the _tagged format, since it may be handled differently by different readers.  You can see that happens at https://github.com/graphite-project/graphite-web/blob/master/webapp/graphite/finders/standard.py#L33-L37
I wonder if there is some encoding issue that's resulting in a different hash and therefore it can't find the files on disk...

Are you sure you have your whisper finder enabled?
I just did a quick test here:
# sha256sum, this should match the file path
$ echo -n 'tags.diceroll2;foo=bar5;label=value' | sha256sum
20097e6e32bbddca626bbbfe325e1399367128a05c8764333df08e4362767d54  -

# send a point to carbon so it creates the whisper file and tagdb entry
$ echo 'tags.diceroll2;foo=bar5;label=value 1 '$(date +%s) | nc localhost 2003

# validate that the whisper file is where we expect it
$ find storage/whisper -type f -name '*diceroll*'
storage/whisper/_tagged/200/97e/tags-diceroll2;foo=bar5;label=value.wsp

# verify that the entry is present in the TagDB
$ curl 'http://localhost:8000/tags/findSeries?expr=label=value'
["tags.diceroll2;foo=bar5;label=value"]

# query the series
$ curl 'http://localhost:8000/render?format=json&target=seriesByTag("label=value")|sortByName()&from=-1min'
[{"datapoints": [[null,<PHONE_NUMBER>]], "target": "tags.diceroll2;foo=bar5;label=value", "tags": {"foo": "bar5", "name": "tags.diceroll2", "label": "value"}}]

Ok .. my graphite web was pointing to the wrong directory (/tmp/whisper/whisper ..).
Sorry for the noise !

That would explain it ;)


AspireShop with Podman

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
We are using podman instead of Docker.
Visual Studio Code
WSL 2
We didn't change the code and are using the sample Aspire Shop directly.
The problem starts when we try to start the project AspireShop.
We receive the message in Debug Console: "Watch task over kubernetes Executable resources terminated unexpectedly"
And way more, the complete message is in the Debug file.
I've tried with Docker and same problem.
The error happens when we start it with Dotnet run or by the GUI of Visual Studio Code.
Bug file
debug-Aspire.txt
Expected Behavior
The app should start and open the browser.
Steps To Reproduce
We are using AspireShop Sample from this.
https://github.com/dotnet/aspire-samples?tab=readme-ov-file
Exceptions (if any)
debug-Aspire.txt
.NET Version info
PS C:\Users\Admin> dotnet --info
.NET SDK:
Version:           8.0.303
Commit:            29ab8e3268
Workload version:  8.0.300-manifests.d7126b9e
MSBuild version:   17.10.4+10fbfbf2e
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.22631
OS Platform: Windows
RID:         win-x64
Base Path:   C:\Program Files\dotnet\sdk\8.0.303\
.NET workloads installed:
[aspire]
Installation Source: SDK 8.0.300
Manifest Version:    8.1.0/8.0.100
Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.1.0\WorkloadManifest.json
Install Type:        FileBased
Host:
Version:      8.0.7
Architecture: x64
Commit:       2aade6beb0
.NET SDKs installed:
7.0.203 [C:\Program Files\dotnet\sdk]
8.0.206 [C:\Program Files\dotnet\sdk]
8.0.303 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Anything else?
 Tried both command-line run and VS Code-based run, several times each, everything works as expected.
I suspect a timing issue during startup. Will investigate further.

After more careful reading of the debug log I noticed that requests from application host to DCP (Developer Control Plane, the Aspire app orchestrator) end with an error that refers to Squid cache https://www.squid-cache.org/Intro/ I suspect that requests to https://localhost are somehow routed via the Squid cache. This will not work; the Aspire application host needs to talk to DCP directly.

@SamuelNetLogon please try running the app again after disabling Squid cache for localhost requests and let us know if you still see any issues.

@SamuelNetLogon thanks for confirming the app is working as expected when Squid cache is disabled for localhost. Closing.


setSecurityData doesn't work

Hey. This is more of a question I guess. I'm having an issue with setSecurityData.
I do it the way it is shown on doc gifs, but I don't see any headers added to the request. Is there some documentation on how security (bearer header in my case) can be injected into a client?

Hello @JSEvgeny !
Which type of http client are you using ?
Example of how to use setSecurityData

type SecurityDataType = { token: string }

const api = new Api<SecurityDataType>({
  securityWorker: (securityData: SecurityDataType | null) => {
    if (securityData) {
      return {
        headers: {
          ["token-header-name"]: securityData.token,
        }
      }
    }
  }
})

api.setSecurityData({
  token: "token-value"
})

api.pets.listPets({
  limit: 20
}, {
  // this flag sets that this request should call securityWorker function
  secure: true,
})

I'm sorry for delayed answer, this works as a charm!!! Thank you very much for your time. I was just missing securityWorker implementation🙈


ContextBlock's elements argument is incorrectly typed

https://github.com/slackapi/python-slack-sdk/blob/e15975b65a2929c8f758c8109abd56f5f56435a2/slack_sdk/models/blocks/blocks.py#L267
ImageBlock should be ImageElement.
Using ImageBlock will cause the Slack API to fail:

The server responded with: {'ok': False, 'error': 'cannot_parse_attachment'})

While using ImageElement will cause a mypy error:

error: List item 0 has incompatible type "ImageElement"; expected "Union[Dict[Any, Any], ImageBlock, TextObject]"

The Slack SDK version
slack-bolt==1.7.0
slack-sdk==3.9.1

Hi @uroboro, thanks for taking the time to report this issue! And you are right. This seems to be a long-lived bug in the type hints. We'll fix this issue in the next release.


Package lzo

Hi, I am closing and re-opening this PR to bump the CLA bot. Sorry for the inconvenience!

Bond as of https://github.com/Microsoft/bond/commit/52989c8545a78e058ce6c448f3b945d9b87d955b works with RapidJSON v1.0.0 and v1.1.0. We haven't yet bumped the submodule in Bond repository yet, but, IIRC, in vcpkg we use whatever RapidJSON can be found.
Do you need me to update Bond in vcpkg?

If you'd like to make the PR, I'd be happy to accept it :). Otherwise, we can pretty easily update it ourselves. What commit ID would you consider the new latest stable?

Just bumping the versions for Bond isn't working. Seems that something changed in wrt. BOOST_ALL_NO_LIB. Haven't dug into it myself. If you know a fix for this off the top of your head, that would be nice.
As for a good commit from Bond to use, the tip of master (https://github.com/Microsoft/bond/commit/a3ff1018973ade0c9abde435d42d3dee6fcf326c) is fine. Though, you may run into some problems with non-ASCII characters that crept into the Bond code base. I'm scrubbing them out now.

Ok, the change is that we need a way to disable "Boost_USE_STATIC_LIBS". In order to enable the user to choose between the boost static libs or the dynamic libs, we rename the import libraries for boost to always look like the dynamic libraries.
In cmake\Config.cmake, I was able to achieve this by changing the appropriate line to
set (Boost_USE_STATIC_LIBS ON CACHE)

which will set the option only if it was not previously set. Then, we can override it in the portfile.
Would you like me to use the commit above + a patch, or would you like to find a solution we can commit upstream first?

@OlafvdSpek When I tried to build this locally (for the x86-windows triplet), the link fails because lzo expects __setargv(void); to exist. AFAICT, this was an implementation detail of msvcrt.lib which was never supported and was removed in the newer CRTs.
       "D:\src\vcpkg\buildtrees\lzo\x86-windows-rel\install.vcxproj" (default target) (1) ->
       "D:\src\vcpkg\buildtrees\lzo\x86-windows-rel\ALL_BUILD.vcxproj" (default target) (3) ->
       "D:\src\vcpkg\buildtrees\lzo\x86-windows-rel\dict.vcxproj" (default target) (5) ->
       (Link target) ->
         dict.obj : error LNK2019: unresolved external symbol ___setargv referenced in function __setargv [D:\src\vcpkg\buildtrees\lzo\x86-windows-rel\dict.vcxproj]
         D:\src\vcpkg\buildtrees\lzo\x86-windows-rel\Release\dict.exe : fatal error LNK1120: 1 unresolved externals [D:\src\vcpkg\buildtrees\lzo\x86-windows-rel\dict.vcxproj]

It doesn't look like this function is ever called elsewhere in the sources, so I think the right answer is to patch the declaration out. Does that sound fine to you?

Bond doesn't build against the Boost dynamic libraries, so a patch makes more sense for this.

@ras0219-msft Sounds good, I did that locally but forgot and don't know how to include it in the pkg.

Ok, I merged the first commit of this PR. I'll make a second PR about updating bond and rapidjson.
Thanks for submitting this, @OlafvdSpek :)!


Move Apifox.Apifox 2.2.10 to Ruihu.Apifox 2.2.10

Microsoft Reviewers: Open in CodeFlow

[Policy] Reset Feedback

[Policy] Approved


SIEMENS - Remote_local is displayed instead of Remote

Environment:
URL: https://peviitor.ro/
Browser: Microsoft Edge
Device: Desktop
OS: Windows 7
Steps to Reproduce:

Access the link: https://peviitor.ro/
Search for the given company: Siemens.
Check the locations of jobs.

Expected result:
Technical SAP EWM Consultant - Remote
Senior Cyber Security Architect - PKI - Remote
Senior Cyber Security Architect - IAM - Remote
Senior Research Scientist - Embedded Security Testing - Remote
Actual result:
Technical SAP EWM Consultant - Remote_local
Senior Cyber Security Architect - PKI - Remote_local
Senior Cyber Security Architect - IAM - Remote_local
Senior Research Scientist - Embedded Security Testing - Remote_local

Fixed.


OC-731: Fix configuration converter and enhance acceptance tests

OC-731 bugfix: https://github.com/OSGP/Documentation/issues/245

Can one of the admins verify this patch?


Short solution needed: "How to get F1 score" (python-scikit-learn)

Please help us write most modern and shortest code solution for this issue:
How to get F1 score (technology: python-scikit-learn)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments explain solution.
Link to this issue in comments of pull request.

How to get model F1 score


unsatisfied_authorization

Version of EOSJS
20.0.3
Describe the bug
I try to transfer SYS from AccountA to AccountB on TestNet with endpoint https://api.testnet.eos.io.
I already created 2 account on TestNet.
When I exec the code
const transaction = {
    actions: [
      {
        account: "eosio.token",
        name: "transfer",
        authorization: [
          {
            actor: "AccountA",
            permission: "active",
          },
        ],
        data: {
          from: "AccountA",
          to: "AccountB",
          quantity: "0.0001 SYS",
          memo: hash,
        },
      },
    ],
  };

const result = await api.transact(transaction, {
        blocksBehind: 3,
        expireSeconds: 30,
      });

I get the error:
{
  "code": 401,
  "message": "UnAuthorized",
  "error": {
    "code": 3090003,
    "name": "unsatisfied_authorization",
    "what": "Provided keys, permissions, and delays do not satisfy declared authorizations",
    "details": [
      {
        "code": 3090003,
        "name": "unsatisfied_authorization",
        "what": "Provided keys, permissions, and delays do not satisfy declared authorizations",
        "details": [
            {
                "message": "transaction declares authority
                {
                    'actor': 'msfzzlabhhoy',
                    'permission': 'active'
                }
                but does not have signatures for it.,
                file: 'authorization_manager.cpp',
                line_number: 600,
                method: 'get_required_keys'"
            }
        ]
      }
    ]
  }
}

Hi @galliroberto,
This error generally means that you haven't imported the proper key in to your signature provider for the actor (in this case msfzzlabhhoy). Can you verify that you have imported the key for msfzzlabhhoy? https://github.com/EOSIO/eosjs/blob/develop/docs/basic-usage/02_es-modules.md

Closing due to inactivity.


fix: Add handler to check sonar availability

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Enhancement (non-breaking change which improves an existing feature or documentation)
[ ] Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist:

[x] I have performed a self-review of my code
[x] I have commented on my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Pull Request contains one commit. I squash my commits.

/ok-to-test


Return a promise

This PR returns the expected promise for reopenIssueWithComment as well as improves some variable names in checkDeployBlockers.

@roryabraham looks like this was merged without passing tests. Please add a note explaining why this was done or remove the Emergency label if this is not an emergency.

Merging to fix production deploys

It worked!

Next, we need to test the various scenarios that can happen...


Missing "vehicle_and_pedestrian_classification_videomemory.sh " shell script sample

"vehicle_and_pedestrian_classification_videomemory.sh ", i see this in Readme but couldn't find this shell script in samples/shell folder. please  can you add this sample.

Hi @Mushtaq-BGA ,
That shell script is not applicable anymore. Currently, we support only custom allocators.
If you would like to pass video memory through pipeline you can:

Implement custom allocator that wraps your video memory buffer
Register it in gstreamer
Specify name of your allocator in pipeline via property allocator-name

More details regarding GstAllocator you can find here


create SEM simulation to run all the evaluations

currently the previous simulation experiments were run using the custom bash scripts, using SEM would make that less error prone. My scripts had a couple types that resulted in 2 or 3 sets of runs ( 2 days each) to be wasted because it wasnt actually running the correct simulations.

This has currently been implemented, but is not yet under version control, These simulation runner scripts will likely end up being found in the MarshallAsch/sim-scripts repo

As of 6f50026 a SEM script has been created and added as a sample to run what I expect to be all the simulations that Ill need to run, probably with some changes.


Look into how to create a modeless, cross platform, native file dialog

ImGuiFileDialog leaves something to be desired.
Can we figure out how to create native file browser dialogs on all major platforms (using the Windows common dialog, XDG portal API on Linux, and whatever the equivalent on MacOS is)? The NativeFileDialog library may be an interesting reference, however it seems to only support modal operation which is not an option for filter configuration.

New idea: use https://github.com/btzy/nativefiledialog-extended and ImGuiFileDialog with a wrapper layer and some preferences, and actually run the NFD calls in a background thread.
Preferences will support two modes: exclusively NFD (most consistent UX), and ImGuiFileDialog if fullscreened with NFD used otherwise. (Using NFD in fullscreen mode is not an option as it doesn't support setting the topmost flag or window hierarchy, so it will disappear behind the app)


Library name: pkcs11-helper
Library description:pkcs11-helper is a library that simplifies the interaction with	PKCS#11 providers for end-user applications.
Source repository URL:https://github.com/OpenSC/pkcs11-helper
Project homepage (if different from the source repository):

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now.


MBT tests are failing (Ureq error: 404 for apalache-v0.11.0.jar)

Crate
ibc
Summary of Bug
MBT tests are failing due to missing .jar file ->
$ cargo test --all-features --no-fail-fast -- --nocapture
# ...
     Running tests/mbt.rs (target/debug/deps/mbt-df1e65ab5015b576)

running 1 test

test mbt ... FAILED

failures:

---- mbt stdout ----
[modelator] Downloading model-checkers...
thread 'mbt' panicked at 'Error while running modelator: Ureq error: https://github.com/informalsystems/modelator/raw/main/jars/apalache-v0.11.0.jar: status code 404', modules/tests/mbt.rs:11:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5
   1: std::panicking::begin_panic_fmt
             at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:457:5
   2: mbt::mbt
             at ./modules/tests/mbt.rs:11:9
   3: mbt::mbt::{{closure}}
             at ./modules/tests/mbt.rs:7:1
   4: core::ops::function::FnOnce::call_once
             at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227:5
   5: core::ops::function::FnOnce::call_once
             at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

failures:
    mbt

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 52.11s

Version
master
Steps to Reproduce
$ cargo test --all-features --no-fail-fast -- --nocapture

Acceptance Criteria
The MBT tests must pass.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

Sorry from the Modelator team. informalsystems/modelator#96 unfortunately overwritten the old Apalache jar. It should work now :)


Enable the new model serialization for cosmos db for postgre sql

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.CosmosDBForPostgreSql


Offline HTML

Offline PDF documentation is now available (#343), but while working on that I was also considering how to build offline HTML documentation properly. I've got rid of most dependences on external images (hosted inside our GitHub issues), but two “online” images  still remain: the “cover” image (3D Object ⇄ 2D Projection), used in README and in “Comparison”, and the output of “Example of use” from README.
The cover image is, frankly, not essential and takes >2 MB (~1/4 of the whole PDF file, by the way!), although it looks appealing. So I've made an attempt to redraw it in SVG (~10 kB and also convertible to ~30 kB PDF for LaTeX):

(This is also a test that GitHub now supports SVG images!)
I guess, due to its small size, it can now be included in the repository. I don't know, however, what is the proper way to use it simultaneously in

README at GitHub
README in the built documentation
README at PyPI

Searching the internet shows that this is not straightforward. Does anybody know how to do so?
And the image in README example perhaps needs to be updated (it has an old Matplotlib appearance). I guess, we can easily include a script to generate it for offline documentation. But should we then just refresh the online image for GitHub/PyPI or maybe we can instead link to the generated image at RTD?

Nice! What software did you use to generate the figure?
Sorry, no idea(s) on the "proper way", any LaTeX processing appears to require .svg conversion.

Oy vey! According to “Images” and “Relative links” here, GitHub can use images from the repository, and this works indeed. However, PyPI doesn't understand this (see a recent report ~6 months ago) and apparently is not going to in any foreseeable future. I guess, the only viable solution would be to do it in two steps: first, merge the image into master, and then change its path to the corresponding github...raw URL. This has obvious drawbacks, but hopefully after that we'll not need to modify this image often or at all...

And for the example figure: what about changing the colormap to 'ocean_r'?

This is plotted even without clim and still makes more structure visible.
Another variant with even better contrast is 'jet_r':

but isn't it too harsh?

ocean_r looks the best IMO, but I believe the default viridis should be illustrated, as otherwise there may be user confusion  as to why their example does not reproduce the same output.

Oh, that works!

OK, see the results on GitHub and RTD!

This all looks awesome. Regarding the "example of use" figure, I suppose we could modify the example so that the intensity of the outer rings is better matched to the inner rings. Obviously the Abel transform changes this ratio, but we could start with an image that has a ratio of intensities that looks better with whatever colormap we choose.

I think, we can add the artificial image from the Lin-BASEX article (Fig. 3 / Table I) to our SampleImage and use it as an example. It seems to have a more uniform intensity distribution (and would also provide some test data with 4th-order anisotropy, which is useful by itself). A problem is, however, that the article doesn't list exact intensities, only mentioning that “The number of counts ... in each sphere varies between 160 000 and 320 000.” Maybe Thomas Gerber could help us again — if he can recall the details. :–) Or I can try to fit them trying to match the plotted projection...
(For the colormap, this “ocean” has a nice property that it kind of resembles the bluish color of the “overview” image.)

After some pondering, I've realized that “each sphere varies between 160 000 and 320 000” corresponds to total intensity 4πr2 I(r) = 160 000 × β0, with β0 (varying between 1 and 2) from the table. Here is the recreated image (with Poissonian noise and the same colormap terrain_r as in the article):

Looks very similar to Fig. 3, and the projection matches well. So I'm planning to add it to SampleImage in a separate PR later.
It still doesn't look great with the default colormap:

but is quite reasonable with ocean_r:

OK, closing as done (in #348, #349, #352).


PackageReference duplication

I have the problem that I get duplicated PackageReference entries in my project.
Steps to reproduce:

Reconfigure Visual Studio 2022 to use PackageReference for non-SDK projects
Create a .NET Framework Class Library project
Add a package (e.g. System.Net.Http.Json version 7.0.1)
Execute dotnet outdated -u

This keeps the original PackageReference and adds the new PackageReference.

I am also dealing with this issue.

I would also like to see this implemented in the next release, the necessary changes for this issue already exists in #242. I am using a version built from the source with these changes with no issues.


Vrf for Mining Slots

We will rely on the commit reveal of the notebooks for this process, ending an auction at the moment a nonce from notebooks is determined to be below a certain threshold.

For security, we would only check for closing the bidding if the supplied miner is the closest miner to the aggregated voting key (eg, not the second place winner)

If bidding is determined to be closed, no bids can be included in this block. Otherwise a miner could collude to include only bids that support its agenda.

Begin checking X blocks (200?) before the bidding ends, so we would like there to be a 1 in 200 chance that any given block might close the bidding.

 Authored by dependabot[bot]
Dec 31, 2023

Superseded by #46.


Looking for a way to have multiple gesture recognizer

I have a UITableView controller that I present with Presentr
I turn on swipe to dismiss property, but my tableview can't scroll up and down.
I will take a look at the code and see if it's recognizing gestures simultaneously.
Is there a different workaround for this?
Thx!

Hi @patthehuman
swipeToDismiss feature is disabled by default because of that problem that it will stop scroll views from working properly.
I believe this can be fixed, probably something to do with this delegate method:
https://developer.apple.com/documentation/uikit/uigesturerecognizerdelegate/1624208-gesturerecognizer
Which allows two gesture recognizers to work at same time.
Will look into this on the weekend.


Update Retro Music

Update Retro Music icon

Thanks for your interest in contributing! Iʼd suggest these minor geometric tweaks: retro_music.zip.

Looks good. Updated

Thanks, @gr-e!


Added c+ codes of some important algorithms

issue number - #3
c++ codes added.

@afred-khan, have a look at my PR.


Formatting issue in VSCode using Ballerina plugin

Description:
I am on Ubuntu and I tried formatting my code in VSCode using keyboard shortcut Ctrl + Shift +I  and this is what I get for a WebSocket service:
import ballerina/http;

service<http:WebSocketService> echo bind {
    port: 9090
} {
    onText (endpoint caller,     string text,     boolean final) {
        _ = caller ->pushText(text, final = final);
    }
}

The expected formatting is something like the following:
import ballerina/http;

service<http:WebSocketService> echo bind {port: 9090} {
    onText (endpoint caller, string text, boolean final) {
        _ = caller->pushText(text, final = final);
    }
}

Such formatting issues in VSCode needs to be fixed.

Formatting implementation is being revisited and this particular issue will be addressed with https://github.com/ballerina-platform/ballerina-lang/issues/9942. Hence closing the issue.


Merge MethodSignatureProcessor into JarTransformerChain

Before this commit, all class files were parsed twice.
This change results in a ~8% decrease in average runtime on the JUnit benchmark.

thanks! 8% is meaningful

@johnynek Thanks for the reviews. Could you maybe tag the latest commit? The source archives GitHuB generates for tags are stable, whereas the ones for arbitrary commits aren't.


Update converter.py to import tableschema in CKAN

Suggested solution for issue frictionlessdata/ckanext-datapackager#61

I'm sorry. Not having any clue about this Travis Build.

Thanks @GeraldGrootRoessink!


aws-cfn-bootstrap error in ubuntu16.04 pcluster builds

Environment:

aws-parallelcluster-2.4
OS: ubuntu16.04

Bug description and how to reproduce:
In the parallelcluster cookbook processing and install aws-cfn-bootstrap there is currently a regression with python-daemon in py3 which causes cfn-init to fail.
+ cfn-signal --exit-code=1 '--reason=Failed to run cfn-init. If --norollback was specified, check /var/log/cfn-init.log and /var/log/cloud-init-output.log.' --stack=parallelcluster-default2 --resource=MasterServer --region=us-west-2
Traceback (most recent call last):
  File "/usr/local/bin/cfn-signal", line 4, in <module>
    __import__('pkg_resources').run_script('aws-cfn-bootstrap==1.4', 'cfn-signal')
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 3126, in <module>
    @_call_aside
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 3110, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 3139, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 581, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 898, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 784, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-daemon<2.0,>=1.5.2' distribution was not found and is required by aws-cfn-bootstrap
+ exit 1

The error is in the dependency of python-daemon errors earlier in the cookbook.
Running python-daemon-1.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-53mq_2rq/python-daemon-1.6.1/egg-dist-tmp-xlltty5a
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-53mq_2rq/python-daemon-1.6.1/setup.py", line 24, in <module>
  File "/tmp/easy_install-53mq_2rq/python-daemon-1.6.1/daemon/__init__.py", line 42, in <module>
  File "/tmp/easy_install-53mq_2rq/python-daemon-1.6.1/daemon/version/__init__.py", line 17, in <module>
  File "/tmp/easy_install-53mq_2rq/python-daemon-1.6.1/daemon/version/version_info.py", line 20
    print 'revision: %(revno)s' % version_info
                              ^
SyntaxError: invalid syntax

Linking a similar issue. https://github.com/spotify/luigi/issues/2632

Thanks for reporting this @amrragab8080 we're looking into it

Adding more detail - The AMI being used is here a processed pcluster createami build of the Deep Learning AMI Ubuntu Base image. https://aws.amazon.com/marketplace/pp/B077GCZ4GR#pdp-pricing

As part of ParallelCluster 2.4.1 we released a series of enhancements that allow the cluster daemons and cookbook python dependencies to be installed in isolated virtualenvs. Could you try to create a new custom ami starting from those released with the 2.4.1 and see if the issue still occurs? Thank you


Fix auto rebase cronjob

So what's the solution when conflicts occurs? Simply human take back control and do rebase manually and abandon the PR?

So what's the solution when conflicts occurs? Simply human take back control and do rebase manually and abandon the PR?

Yes


Update min/max/range folds to use slidingWindow

fixes issue #5
The benchmarks also need be updated as the types have changed.

Closing and reopening the PR, hopefully that will fix the CI issue.

@specdrake I am closing this, we will create a new PR so that CIs can run.


8la/poodle ssl fix

This will include ssl protocols by default on http block.
As of sslv3 being vulnerable, it will be a good default policy to have it disabled.
The attribute has a conditional block around on the template, to check when we are on source or package install and being on source install, ensure we are using ssl module.
Inludes #282 fixes #281

What you mean with needs a test? You dont have any serverspec test to check the nginx conf template result file.
What do you want me to do?

Serverspec tests added. And travis passing.

ping!

Rebased master

Hi @miketheman
This PR is mergeable from yesterday, closes #282 so you can close that PR and have tests.
AFAIK you can remove all tags from the PR and merge, or close directly if no more merges are coming on this Line.
BTW dont forget to include ssl protocols on the new line. When will be the new line  available?


experiment notebook scrollbar

@rebornix

😞

More specifically: https://github.com/microsoft/vscode/runs/5430222883?check_suite_focus=true#step:12:9313

@bpasero thanks for the ping. The build was red all day so didn't rely on the checks. Pushed fixes for failing tests, will see if there is anything else failing the CI.

Thanks!


Update AboutUs.adoc

Add details and photo for Aaron Seah

Pull Request Test Coverage Report for Build 53

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.811%

Totals

Change from base Build 52:
0.0%

Covered Lines:
1433

Relevant Lines:
1544

💛  - Coveralls


How can I use SVG icons for Tabbed pages?

Hi,
I' trying to use FFImageLoader to display SVG icons on tabbed pages:
If I use a PNG image, it's working fine.
<TabbedPage>    <ContentPage Title="Test" IconImageSource="icon.png"/> </TabbedPage>
But when I try with an SVG image, I get an XAML design time error.
<ContentPage Title="Test">         <ContentPage.IconImageSource>             <ffSvg:SvgCachedImage Source="test.svg">         </ContentPage.IconImageSource>     </ContentPage>
Error: Property 'IconImageSource' does not support values of type 'SvgCachedImage'.
I also tried adding from code (in the ContentPage xaml.cs file) . No error, but still not working.
IconImageSource = new FFImageLoading.Svg.Forms.SvgImageSource("folder_24px.svg", 20, 20, true);
What am I doing wrong? How should I do it?
I'm using Xamarin Forms <IP_ADDRESS>1640 anf FFImageLoading <IP_ADDRESS>2

i normally use the png format, xamarin can fill up the color when selected

I'm trying to avoid to upload the images in multiple resolutions, and also I need the same icon in several other places (where svg image display works), so it would be ideal to have a single scalable resource. Is it considered eventually in future developements?

Same problem and same needs for me. If someone has a solution...

Same problem and same needs for me. If someone has a solution...

I tried use the svg to but i converted all my svg to png and it worked. Even the lines of icons are highlited with the selected color.
I didnt use the FFImageLoading

Somebody knows how solve this problem???

Somebody knows how solve this problem???

Its seems no

it is not possible till today but this is i believe more related to xamarin.forms team.

it is not possible till today but this is i believe more related to xamarin.forms team.

i didn't use the FF i simply convert SVG TO PNG and it worked, and i have was possible to change the line colors

Any update on this?  :/

I know it's been a while, did anyone ever figure this out? Trying to use SVG in Xamarin Flyouts.


ux fixes for input group select elements

Codecov Report

Merging #145 (58d793d) into prep-release (0be48ad) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@              Coverage Diff              @@
##           prep-release     #145   +/-   ##
=============================================
  Coverage         48.07%   48.07%
=============================================
  Files               132      132
  Lines              4728     4728
=============================================
  Hits               2273     2273
  Misses             2455     2455

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


MB-15042-ppm-document-endpoint

Jira ticket for this change
Summary
This endpoint adds a new endpoint that fetches an objects containing arrays of weight ticket, progear, and expenses documents.
Setup to Run Your Code

💻 You will need to use three separate terminals to test this locally.
Terminal 1
This file updates the yaml so if you can't pull in the autogen files you can run swagger udates
make swagger_generate

Messages

:book:
:link: MB-15042

  Generated by :no_entry_sign: dangerJS against 41a4b73acefea355c70b149b72d103e9191a3c01

Thanks for putting this up so quickly! I left a few comments, but otherwise looks good. I ran into an issue locally trying to run make server_generate, which I've tracked down to an issue with the openapi cli tool we use to generate the files in swagger/. I don't know if it's related to this PR though (currently running cleanup/build commands), but it feels like it probably isn't. I can update here once I've confirmed.

Ok, confirmed the issue was with my local env somehow. So I think other than the suggestions I made, this looks good.

I agree that the endpoint URL and name of the yaml ref are clearer with "fetcher", but otherwise LGTM!


ComponentMetadataRule does not replace dependency at generated module file

Gradle version: 7.3.3
I'm contributing to a library for Compose Multiplatform since couple version of their gradle plugin, it provides a RedirectAndroidVariants : ComponentMetadataRule that replaces at the android specific variant the dependency of Jetbrains Compose for the Google's Androidx Compose artifact for Android. This work pretty well while developing a project, but when publishing a library it seems that Gradle only does replace this dependencies at the targeting pom file and not also in the module metadata file. When a user want to use the library for Android specific project (not using Jetbrains artifacts), the gradle can't find the dependencies.
The rule for replacing that was used by the Jetbrains Compose Plugin was this:
Expected Behavior
Gradle should also apply this variant dependencies changes at the generated gradle metadata module and not just in the pom when publishing.
Current Behavior
Gradle is only applying this chance at the pom file while publishing.
Steps to Reproduce
https://github.com/DevSrSouza/gradle-metadata-rule-issue
// https://github.com/JetBrains/compose-jb/blob/master/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt#L133
class RedirectAndroidVariants : ComponentMetadataRule {
    override fun execute(context: ComponentMetadataContext) = with(context.details) {
        if (id.group.startsWith("org.jetbrains.compose")) {
            val group = id.group.replaceFirst("org.jetbrains.compose", "androidx.compose")
            val newReference = "$group:${id.module.name}:$androidxVersion"
            println(newReference)
            listOf(
                "debugApiElements-published",
                "debugRuntimeElements-published",
                "releaseApiElements-published",
                "releaseRuntimeElements-published"
            ).forEach { variantNameToAlter ->
                withVariant(variantNameToAlter) {
                    withDependencies {
                        removeAll { true } //there are references to org.jetbrains artifacts now
                        add(newReference)
                    }
                }
            }
        }
    }

    companion object {
        val androidxVersion: String = "1.1.0-beta04"
    }
}

listOf(
    RedirectAndroidVariants::class.java,
).forEach(dependencies.components::all)

Issue resulting files
The published pom:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <!-- This module was also published with a richer model, Gradle metadata,  -->
  <!-- which should be used instead. Do not delete the following line which  -->
  <!-- is to indicate to Gradle or any Gradle module metadata file consumer  -->
  <!-- that they should prefer consuming it instead. -->
  <!-- do_not_remove: published-with-gradle-metadata -->
  <modelVersion>4.0.0</modelVersion>
  <groupId>br.com.devsrsouza.test</groupId>
  <artifactId>dependency-android-debug</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>aar</packaging>
  <dependencies>
    <dependency>
      <groupId>org.jetbrains.kotlin</groupId>
      <artifactId>kotlin-stdlib-jdk8</artifactId>
      <version>1.6.10</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>androidx.compose.runtime</groupId>
      <artifactId>runtime</artifactId>
      <version>1.1.0-beta04</version>
      <scope>runtime</scope>
      <exclusions>
        <exclusion>
          <artifactId>kotlin-stdlib-common</artifactId>
          <groupId>org.jetbrains.kotlin</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>

Gradle module metadata
{
  "formatVersion": "1.1",
  "component": {
    "url": "../../dependency/1.0-SNAPSHOT/dependency-1.0-SNAPSHOT.module",
    "group": "br.com.devsrsouza.test",
    "module": "dependency",
    "version": "1.0-SNAPSHOT",
    "attributes": {
      "org.gradle.status": "integration"
    }
  },
  "createdBy": {
    "gradle": {
      "version": "7.3.3"
    }
  },
  "variants": [
    {
      "name": "debugApiElements-published",
      "attributes": {
        "com.android.build.api.attributes.BuildTypeAttr": "debug",
        "org.gradle.category": "library",
        "org.gradle.usage": "java-api",
        "org.jetbrains.kotlin.platform.type": "androidJvm"
      },
      "dependencies": [
        {
          "group": "org.jetbrains.kotlin",
          "module": "kotlin-stdlib-jdk8",
          "version": {
            "requires": "1.6.10"
          }
        }
      ],
      "files": [
        {
          "name": "dependency-debug.aar",
          "url": "dependency-android-debug-1.0-SNAPSHOT.aar",
          "size": 1338,
          "sha512": "4e1b37439321824eeadcbae69fcb1e4203fe28e65dd01426be3541bc925e9b73b393fbe615a4c1b816b1d0f37abaee5d15544a2eb5a55707891d1a394e625b03",
          "sha256": "74e996a7ce9c8c57d20db2e2e3a80f72b02cd1c1b81b273780b241c53b442912",
          "sha1": "39a30f88cf612312a4d3adec3de67d0fcacc5fae",
          "md5": "cbe043ca93aa9090d48ad0a4733a940d"
        }
      ]
    },
    {
      "name": "debugRuntimeElements-published",
      "attributes": {
        "com.android.build.api.attributes.BuildTypeAttr": "debug",
        "org.gradle.category": "library",
        "org.gradle.usage": "java-runtime",
        "org.jetbrains.kotlin.platform.type": "androidJvm"
      },
      "dependencies": [
        {
          "group": "org.jetbrains.kotlin",
          "module": "kotlin-stdlib-jdk8",
          "version": {
            "requires": "1.6.10"
          },
          "excludes": [
            {
              "group": "org.jetbrains.kotlin",
              "module": "kotlin-stdlib-common"
            }
          ]
        },
        {
          "group": "org.jetbrains.compose.runtime",
          "module": "runtime",
          "version": {
            "requires": "1.0.1-rc2"
          },
          "excludes": [
            {
              "group": "org.jetbrains.kotlin",
              "module": "kotlin-stdlib-common"
            }
          ]
        }
      ],
      "files": [
        {
          "name": "dependency-debug.aar",
          "url": "dependency-android-debug-1.0-SNAPSHOT.aar",
          "size": 1338,
          "sha512": "4e1b37439321824eeadcbae69fcb1e4203fe28e65dd01426be3541bc925e9b73b393fbe615a4c1b816b1d0f37abaee5d15544a2eb5a55707891d1a394e625b03",
          "sha256": "74e996a7ce9c8c57d20db2e2e3a80f72b02cd1c1b81b273780b241c53b442912",
          "sha1": "39a30f88cf612312a4d3adec3de67d0fcacc5fae",
          "md5": "cbe043ca93aa9090d48ad0a4733a940d"
        }
      ]
    }
  ]
}

Thank you for your interest in Gradle!
This is an issue with the Kotlin Gradle plugins, which is developed by JetBrains and cannot be addressed in the core of the Gradle Build Tool.
Please open such Kotlin plugins-related issues on the JetBrains Issue Tracker at https://youtrack.jetbrains.com/

The Maven POM is actually transformed by the Kotlin MPP plugin which rewrites dependencies.
They really should not do that without also disabling Gradle Module Metadata publication as it creates the reported inconsistency.
In addition, any component metadata rule only applies to transitive dependencies. For first level dependencies, you need an explicit substitution before resolution. Or fail the build, requesting the "right" dependency to be declared.
Finally, Gradle does support, through resolved version publication, publishing the target of a substitution instead of the declared one. But for some reason, I was unable to set that up in the reproducer.


New package: Ninja-build.Ninja version 1.11.1

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

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

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

Resolves #2004

Microsoft Reviewers: Open in CodeFlow

@wingetbot run

@wingetbot waivers Add Validation-Executable-Error

@wingetbot run


How do I enable SSL Bidirectional authentication？

I  set config "SECURITY_MQTT_SSL_ENABLED:true"，I want to enable SSL bidirectional authentication。
thingsboard-mqtt-broker.yml
cert_file: my_server_cert.crt
key_file: my_server_key.key
Where is caRootCert configured？
Component

TBMQ: 1.2.2-SNAPSHOT

   @Override
    public void checkClientTrusted(X509Certificate[] chain,
                                   String authType) throws CertificateException {
        // think if better to add credentials validation here
        //System.out.println("checkClientTrusted" + Arrays.toString(chain) + "authType:" + authType);
        //trustManager.checkClientTrusted(chain, authType);
         Why is the client certificate check logic removed？
    }

Hi @GeXin666!
The cert_file (LISTENER_SSL_PEM_CERT) config should be used in this case. You need to form the certificate chain in the following way:

After that, create MQTT client credentials of the type "X.509 Certificate Chain". The validation is done within SslMqttClientAuthProvider class. I will review once again the logic and the mentioned method checkClientTrusted.

thank you! Here's what I did
The cert_file (LISTENER_SSL_PEM_CERT)  is
-----BEGIN CERTIFICATE-----
rootCa.crt(x509)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
serverCa.crt(x509)
-----END CERTIFICATE-----
modified class ThingsboardMqttX509TrustManager
@Override         public void checkClientTrusted(X509Certificate[] chain,                                        String authType) throws CertificateException {             // think if better to add credentials validation here             trustManager.checkClientTrusted(chain, authType);  }
modified  class AbstractMqttHandlerProvider
SSLEngine sslEngine = sslContext.createSSLEngine();         sslEngine.setUseClientMode(false);         sslEngine.setNeedClientAuth(true);   //here set is true          //sslEngine.setWantClientAuth(false);  I annotated it here
This will allow for two-way authentication

@GeXin666,
thank you for the provided info and your examples. I think it will be useful to make it configurable (i.e. sslEngine.setNeedClientAuth(needClientAuth); and sslEngine.setWantClientAuth(wantClientAuth); or something similar). This will be considered for change and improvement.

Thanks to open Source for such an excellent project, I have learned a lot of knowledge


proposal-results: Support Oasis Core 22.x

TODO:

[ ] Redesign the part that displays the amount of stake that can vote, the amount of stake that voted yes and the new stake threshold parameter.

Tentatively NACKing this, not because there is anything wrong, but because I am moving this to the SDK CLI.


Fix load ralative file

Environment
Liquibase Version: 4.4.3 (and all 4.x before)
Liquibase Integration & Version: any
Liquibase Extension(s) & Version:  liquibase-core
Database Vendor & Version: H2 (and all others)
Operating System Type & Version: Windows 10 (and all others)
Pull Request Type

[x] Bug fix (non-breaking change which fixes an issue.) https://github.com/liquibase/liquibase/pull/1798 fixed the problem of loading files relative for SQLFileChange, but not for LoadDataChange,  CreateProcedureChange or CreateViewChange. This PR solves this. closes #2074
[ ] Enhancement/New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
See #1277, but for  LoadDataChange,  CreateProcedureChange or CreateViewChange.
Testcases showing the problem are included in this PR.
Same as https://github.com/liquibase/liquibase/pull/2060 but with different branch name. My branch name had chars which broke the build.
Steps To Reproduce
List the steps to reproduce the behavior.

create a changelog file with these change sets<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
  			     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  			     xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                      http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.10.xsd"
  			     logicalFilePath="a-logical-file-path"
>
    <changeSet id="1" author="author">
  	  <loadData file="data/some_data.csv" tableName="a_tabe"
  			   relativeToChangelogFile="true"></loadData>
    </changeSet>

    <changeSet id="2" author="author">
  	  <createProcedure path="sql/proc.sql"
  					   relativeToChangelogFile="true"></createProcedure>
    </changeSet>

    <changeSet id="3" author="author">
  	  <createView path="sql/view.sql" viewName="a_view"
  				  relativeToChangelogFile="true"></createView>
    </changeSet>

</databaseChangeLog>

Create these files  (may be empty)

data/some_data.csv
sql/proc.sql
sql/view.sql

Run liquibase update against the db

liquibase --driver=com.microsoft.sqlserver.jdbc.SQLServerDriver --url="jdbc:sqlserver://localhost:1433;database=the_database" --changeLogFile=changelog.xml  --username=the_username --password=thepassword --logLevel=debug update

See it fail
Comment the changeset and repeat (fails for all three)

Actual Behavior
Liquibase throws an exception complaining about missing file (a different one for each changeset):
liquibase.exception.LiquibaseException: liquibase.exception.UnexpectedLiquibaseException: File 'data/some_data.csv' not found

Expected/Desired Behavior
Liquibase does not complain about missing files and works flawlessly.
Additional Context
Same bug has already been fixed in  https://github.com/liquibase/liquibase/pull/1798 for a diffenent change. The changes above have been overlooked.
I had to fix an existing testcase which used a changeset not included in an changelog.
Fast Track PR Acceptance Checklist:

[x] Build is successful and all new and existing tests pass (all in liquibase.core)
[x] Added [Unit Test(s)] Enhanced existing unit tests
[ ] Added [Integration Test(s)]
[ ] Added Test Harness Test(s)
[ ] Documentation Updated

I pushed the current version of master to your fork to fix the build issue.

Hi @smainz Thanks for creating this PR.
A member of the Liquibase team will take a look at your contribution and may suggest:

Changes based on guidelines for PR submission
Additional tests (unit and/or integration) and/or Test Harness Tests
Provide other feedback, like requesting changes.

The PR will be prioritized according to our internal development and testing capacity.
We’ll let you know when it’s ready to move to the next step or if any changes are needed.

Is there anything I can help to get this PR reviewed/approved?

Thanks you for the very good PR!


fix typo of CHANFELOG

fix the render of title in CHANFELOG

@fdehau the render result of title in CHANFELOG has some problem.


⚠ Bofrost.at has degraded performance

In 11ae51c, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1324 ms

Resolved: Bofrost.at performance has improved in 9f11cf5 after 22 minutes.