/imagegeneration/SoftwareReport/SoftwareReport.Generator.ps1 : The term 'zstd' is not recognized as a name of a cmdlet

Description
I am building the ubuntu-20.04 runner-image and the build fails with:
********/
2022-09-08T06:52:34.5
700833Z ##[debug]Match start ind
ex: -1
2022-09-08T06:52:34.5701
554Z ##[debug]Match start index: -1
2022-09-08T06:52:34.5702490Z ##[debug]Match start index: -1
2022-09-08T06:52:34.5703200Z ##[debug]Match start index: -1
2022-09-08T06:52:34.570
38
2022-09-08T07:45:54.0399990Z ##[debug]Parsing log line to extract output...
2022-09-08T07:45:54.0402200Z ##[debug]/*************************************
2022-09-08T07:45:54.0403897Z ##[debug]==> azure-arm: /imagegeneration/SoftwareReport/SoftwareReport.Generator.ps1 : The term 'zstd' is not recognized as a name of a cmdlet, function, script file, or executable program.

2022-09-08T07:45:54.0405517Z ##[debug]**************************************/
2022-09-08T07:45:54.0407283Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0408246Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0409074Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0409877Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0410665Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0411469Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0412362Z ==> azure-arm: Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
2022-09-08T07:45:54.0412725Z
2022-09-08T07:45:54.0413309Z ##[debug]Parsing log line to extract output...
2022-09-08T07:45:54.0414090Z ##[debug]/*************************************
2022-09-08T07:45:54.0415144Z ##[debug]==> azure-arm: Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

2022-09-08T07:45:54.0416088Z ##[debug]**************************************/
2022-09-08T07:45:54.0416922Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0417723Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0418506Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0419305Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0420101Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0426536Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0427878Z ==> azure-arm: + CategoryInfo          : ObjectNotFound: (zstd:String) [SoftwareReport.Generator.ps1], CommandNotFoundException
2022-09-08T07:45:54.0428237Z
2022-09-08T07:45:54.0428869Z ##[debug]Parsing log line to extract output...
2022-09-08T07:45:54.0429672Z ##[debug]/*************************************
2022-09-08T07:45:54.0430757Z ##[debug]==> azure-arm: + CategoryInfo          : ObjectNotFound: (zstd:String) [SoftwareReport.Generator.ps1], CommandNotFoundException

2022-09-08T07:45:54.0431718Z ##[debug]**************************************/
2022-09-08T07:45:54.0432559Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0433361Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0434161Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0434954Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0435734Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0436531Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0442718Z ==> azure-arm: + FullyQualifiedErrorId : CommandNotFoundException,SoftwareReport.Generator.ps1
2022-09-08T07:45:54.0443102Z
2022-09-08T07:45:54.0443757Z ##[debug]Parsing log line to extract output...
2022-09-08T07:45:54.0444541Z ##[debug]/*************************************
2022-09-08T07:45:54.0445865Z ##[debug]==> azure-arm: + FullyQualifiedErrorId : CommandNotFoundException,SoftwareReport.Generator.ps1

2022-09-08T07:45:54.0446793Z ##[debug]**************************************/
2022-09-08T07:45:54.0447632Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0448419Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0449224Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0450193Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0450990Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0451786Z ##[debug]Match start index: -1
2022-09-08T07:45:54.0995247Z ==> azure-arm: Provisioner failed with "Script exited with non-zero exit status: 1. Allowed exit codes are: [0]", retrying with 3 trie(s) left
2022-09-08T07:45:54.1000761Z
...
2022-09-08T07:46:21.7848425Z ==> azure-arm: time="2022-09-08T07:46:21Z" level=warning msg="Failed to decode the keys [\"machine\"] from \"/usr/share/containers/containers.conf\"."

And consequently the build failed:
2022-09-08T07:47:28.8317576Z ==> azure-arm: Provisioning step had errors: Running the cleanup provisioner, if present...
2022-09-08T07:47:28.8317966Z

Platforms affected

[X] Azure DevOps
[ ] GitHub Actions

Virtual environments affected

[ ] Ubuntu 18.04
[X] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 10.15
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
Current image version: '20220905.1'
Is it regression?
20220828.1
Expected behavior
The image is build correctly
Actual behavior
The build fails.
Repro steps
Run the build pipeline

Hello @zioalex.
We are working on this issue related to the new brew version 3.6.0.

Is there anyway to specify the image Version to use?

Is there anyway to specify the image Version to use?

There is no way to specify image version. You could fork the repo and temporary remove brew installation.

In the release page I still see version Homebrew 3.5.10 (https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md) and not the 3.6.0.

In the release page I still see version Homebrew 3.5.10 (https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md) and not the 3.6.0.

I'm sure it will be updated.  If they update the documentation before they fix the image generation, the documentation will be wrong.  If they fix the image generation before the documentation is updated, the documentation will be wrong.
I would rather they fix the problem, first.

Also applies to Ubuntu 18.04

Should be fixed, please update your main and try again.

When will it be part of a release?
Alessandro Surace
On Mon, Sep 12, 2022 at 5:34 PM Mikhail Koliada @.***>
wrote:

Should be fixed, please update your main and try again.
—
Reply to this email directly, view it on GitHub
https://github.com/actions/runner-images/issues/6200#issuecomment-1243919079,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA3NM4CPWK2SFWW644AHZCDV55EPPANCNFSM6AAAAAAQHQMEEU
.
You are receiving this because you were mentioned.Message ID:
@.***>

@zioalex we currently rolled this change back as brew now installs gcc@11 on ubuntu18 and 20 and this also conflicts with toolchain provided by ubuntu itself, we are working on the fix, hopefully it will be in the next week's release

This is still happening trying to build ubuntu-20.04

@zioalex we currently rolled this change back as brew now installs gcc@11 on ubuntu18 and 20 and this also conflicts with toolchain provided by ubuntu itself, we are working on the fix, hopefully it will be in the next week's release

@al-cheb @mikhailkoliada Is this ubuntu20 issue about 'zstd not recognize' fixed yet. I am having the same issue. Thank you

if you are having the same issue, it isn't fixed, yet, is it?

if you are having the same issue, it isn't fixed, yet, is it?

It's fixed

Then why are you having this exact problem?  Am I misunderstanding?

if you are having the same issue, it isn't fixed, yet, is it?

It's fixed

Then why are you having this exact problem? Am I misunderstanding?

I had that problem last Friday when I was updating our VM. I updated the latest changes yesterday, and the issue is fixed.


[SR-14331] Trying to use swiftinterface file made by 5.3.2 results in a build error in 5.4

Previous ID
SR-14331

Radar
rdar://problem/75325576

Original Reporter
@igor-makarov

Type
Bug

Environment
Swift 5.4
Xcode 12.5 beta 3

Additional Detail from JIRA

Votes
0

Component/s
Compiler

Labels
Bug

Assignee
None

Priority
Medium

md5: 69af16cd807265eb689fd78289feb49e

Issue Description:
Having a deprecation warning in a swiftinterface results in a compile error in Swift 5.4 (Xcode 12.5 beta 3). The file builds fine in the released Xcode.
This is the offending code snippet, reduced to the problematic code by experiment:
@available(*, unavailable, renamed: "Y")
public enum X {
 case case1
 public static func == (a: X, b: X) -> Swift.Bool
}
@available(*, unavailable, renamed: "Y")
extension X : Swift.Equatable {}

The error is
Conformance of 'X' to 'Equatable' is unavailable

I'm not able to reproduce this with a compiler built from main. Starting with source like this:
@available(*, unavailable, renamed: "Y")
public enum X {
 case case1
}

The following .swiftinterface, which type checks successfully, is emitted:
// swift-interface-format-version: 1.0
// swift-compiler-version: Swift version 5.8-dev (LLVM 7cb891be0a2a60c, Swift 65c5573ad3bc26a)
// swift-module-flags: -target x86_64-apple-macosx10.9 -swift-version 4 -swift-version 5 -enable-library-evolution -module-name TestModule
import Swift
import _Concurrency
import _StringProcessing
@available(*, unavailable, renamed: "Y")
public enum X {
  case case1
  public static func == (a: TestModule.X, b: TestModule.X) -> Swift.Bool
  public func hash(into hasher: inout Swift.Hasher)
  public var hashValue: Swift.Int {
    get
  }
}
@available(*, unavailable, renamed: "Y")
extension TestModule.X : Swift.Equatable {}
@available(*, unavailable, renamed: "Y")
extension TestModule.X : Swift.Hashable {}```


adding an integralByInterval() function

This will do the same as integral() function, except resetting the total to 0 periodicaly.
For example:
 target=integralByInterval(company.sales.perMinute,"1d")&from=midnight-10days

This would start at zero on the left side of the graph, adding the sales each minute, and show the evolution of sales per day during the last 10 days.

Hi, is someone interested in reviewing and/or merging these changes ?
BTW, happy new year :-)

Hi, is someone interested in reviewing and/or merging these changes ?

Hi, is someone interested in reviewing and/or merging these changes ?

I've just rebased the PR against up to date master.
Is someone interested in reviewing and/or merging these changes ?

[Current coverage][cc-pull] is 37.38%

Merging [#935][cc-pull] into [master][cc-base-branch] will increase coverage by 0.53%

@@             master       #935   diff @@
==========================================
  Files            51         51
  Lines          5729       5752    +23
  Methods           0          0
  Messages          0          0
  Branches       1116       1120     +4
==========================================
+ Hits           2111       2150    +39
+ Misses         3422       3406    -16
  Partials        196        196

Powered by Codecov. Last updated by [c4ff0b2...0b94cdc][cc-compare]
[cc-base-branch]: https://codecov.io/gh/graphite-project/graphite-web/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/graphite-project/graphite-web/compare/c4ff0b27c4ff2fa5000b028d2b1424dc3461637a...0b94cdc3be0d8886f1ce08a102f15e7de89968d0
[cc-pull]: https://codecov.io/gh/graphite-project/graphite-web/pull/935?src=pr

I've just rebased the PR against up to date master.
Is someone interested in reviewing and/or merging these changes ?

❤ Thanks @g76r!

thanks


Hide implementation details with module structure

For a relatively small crate like this, I think it is unnecesary verbose to use nested repeated identifiers like spreet::error::SpreetError.  Instead, I propose to move all the crate-defined IDs to the root like spreet::SpreetError. The only exception is the resvg because it represents a big crate itself.

I patched Martin to use this PR - to see what changes one would have to do to use the new API, including the simpler use pattern. https://github.com/maplibre/martin/pull/984

Makes sense, thanks.
This needs an item in the CHANGELOG (formatted like this) because this is a breaking change. As far as I know no-one but you is using Spreet as a library, but best practices etc.

thx, done

when do you plan the next release?

I have a half-finished PR for #58 that I'd like to include in the next release, so my plan (such that it is) is to wait on that


Custom server logic and middleware

We want developers to add their own logic easily to the server.
We can allow developers to add hooks/middleware to host their logic.

We can use socket.io middleware    https://socket.io/docs/server-api/#socket-use-fn


Fix minimal versions

I was trying to compile bevy using cargo minimal-versions and noticed that gpu-allocator depended on backtrace 0.3 and log 0.4, but actually used features from backtrace 0.3.3 (Backtrace::new_unresolved and Backtrace::resolve) and log 0.4.9 (didn't import the log! macro when calling log::warn!; could be fixed by importing it too if you prefer it, but looks unnecessary), which made the build fail.

Would you mind contributing a cargo +nightly generate-lockfile -Zminimal-versions etc workflow to our CI so that this problem can be prevented in the future?

I wound't mind, but as is it would not pass due to problems in transitive dependencies, in particular the minimal version for winapi ends up being 0.2.5 which doesn't compile (I'm not sure what should be changed to fix this. 0.2.7 is the minimum where it compiles on my machine but it feels wrong to just add it to this crate) and imgui-sys should depend on cc 1.0.3 rather than cc 1.0 (I opened imgui-rs/imgui-rs#744 for that).
The CI workflow should be something like this:
  minimal-versions:
    name: Check minimal versions
    strategy:
      matrix:
        include:
        - os: ubuntu-latest
          features: vulkan,visualizer
        - os: windows-latest
          features: vulkan,visualizer,d3d12,public-winapi
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v3
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: nightly
          override: true
      - uses: taiki-e/install-action@cargo-hack
      - uses: taiki-e/install-action@cargo-minimal-versions
      - run: cargo minimal-versions build --workspace --features ${{ matrix.features }} --no-default-features

and also ran into a failed build due to this backtrace version 0.3.0 mis-dependency.

The backtrace crate is now entirely gone: #186 :tada:


Remove superfluous nolint comments

The false positives of these being unused got fixed in recent linter releases and are no longer flagged in golangci-lint v1.57.1 which is currently used in main.

/test


Avoid ambiguous object syntax

Maybe try bumping cachix/install-nix-action@v10 to v12?

@kritzcreek, pardon my ignorance, but where do I find that?

Sigh, more nix failures. I'm afraid I need help with that.

Damnit... https://github.com/cachix/install-nix-action/releases/tag/v11 has the breaking change:

BREAKING: By default it has no nixpkgs configured, you have to set nix_path
by picking a channel
or pin nixpkgs yourself.

The invocation will end up being something like (from the README):
    - uses: cachix/install-nix-action@v12
      with:
        nix_path: nixpkgs=channel:nixos-unstable

Unfortunately it doesn't say what the default used to be. @nomeata I think we'll need your help on this one. What's a good channel to pick, or should we pin to a certain version?

relase-20.09 would be a good one, I’d say

Hm. Now it's:
15  lrwxrwxrwx 1 root root 82 Jan  1  1970 nixpkgs -> /nix/store/h9rb69h76lgxyw46a85s4aw5wbhqfb6y-nixpkgs-20.03.3269.f05c380a51d/nixpkgs
16  error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
17  Error: Process completed with exit code 1.

@kritzcreek, CI is working again, thanks to @nomeata. PTAL.


Blur or otherwise make 'mature' single results opt-in

Problem

Currently if someone shares a direct link to an image in Openverse that is labeled as mature, users are shown the media without any indication that they are about to see mature content.
Description

We could blur or otherwise block single results until the user agrees to see mature content. We would want a message to the effect of:

This {media} has been marked as mature by our community.
Would you like to view this image?
[View Image] [Return Home]

Alternatives

Additional context

Implementation

[ ] 🙋 I would be interested in implementing this feature.

I've given this a medium priority as it seems like a larger change that may be essential but is not urgent.

We should add the "needs design" label to this issue imo. It'd be nice to have @panchovm's input in terms of UX and some mockups to implement.

Added to my task list


gnome3.gnome-shell: 3.38.1 -> 3.38.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for gnome3.gnome-shell is: "Core user interface for the GNOME 3 desktop"
meta.homepage for gnome3.gnome-shell is: "https://wiki.gnome.org/Projects/GnomeShell"
meta.changelog for gnome3.gnome-shell is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.38.2 with grep in /nix/store/c0madg514bq756pi959vlb1vlq1j9aci-gnome-shell-3.38.2

directory tree listing: https://gist.github.com/abd6ea4306a9c9b45f0dc94734ac2682

du listing: https://gist.github.com/2410299a87c989952c695c51431eb26d

Rebuild report (if merged into master) (click to expand)

46 total rebuild path(s)

16 package rebuild(s)

16 x86_64-linux rebuild(s)
15 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
15 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
adapta-gtk-theme
arc-theme
chrome-gnome-shell
gnome3.gnome-session
gnome3.gnome-shell
gnome3.gnome-terminal
gnome3.gnome-tweak-tool
gnome3.gnome-tweaks
gnome3.gnome_session
gnome3.gnome_shell
gnome3.gnome_terminal
gnome3.pomodoro
gnomeExtensions.easyScreenCast
gnomeExtensions.gsconnect
gnomeExtensions.night-theme-switcher
pantheon.elementary-session-settings

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/c0madg514bq756pi959vlb1vlq1j9aci-gnome-shell-3.38.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gnome3.gnome-shell https://github.com/r-ryantm/nixpkgs/archive/6466f4730fc0dc415c8409bcf479199fccc7fdbe.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/c0madg514bq756pi959vlb1vlq1j9aci-gnome-shell-3.38.2
ls -la /nix/store/c0madg514bq756pi959vlb1vlq1j9aci-gnome-shell-3.38.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

12 packages built:

adapta-gtk-theme
arc-theme
chrome-gnome-shell
gnome3.gnome-session
gnome3.gnome-shell
gnome3.gnome-terminal
gnome3.gnome-tweak-tool
gnome3.pomodoro
gnomeExtensions.easyScreenCast
gnomeExtensions.gsconnect
gnomeExtensions.night-theme-switcher
pantheon.elementary-session-settings

Maintainer pings
cc @hedning @jtojnar @worldofpeace @dasj19 for testing.

  |   | 3.38.2
-- | -- | --
  |   | ======
  |   | * Handle @content properties in ease() functions [Andre; !1461]
  |   | * Fix screencast indicator on Xorg [Jonas Å.; !1466]
  |   | * Fix inline-replies in chat notifications [Florian; #3226]
  |   | * Improve do-not-disturb support [Florian; #2873, !1511]
  |   | * Fix mobile broadband support [Popax21; #3203]
  |   | * Improve app picker spacing on larger resolutions [Georges; !1510]
  |   | * Plugged leaks [Ray; !1460, !1459]
  |   | * Fixed crashes [Daniel, Florian; !1453, #3258, !1507]
  |   | * Misc. bug fixes and cleanups [Florian, Ian, Jonas D., Carlos, Daniel M.,
  |   | Sebastian, Daniel, Georges; #3252, #3307, #3342, !1482, !1486, #3388, !1489,
  |   | !1483, !1481, !1512, !1417, !1518]
  |   |
  |   | Contributors:
  |   | Jonas Dreßler, Carlos Garnacho, Sebastian Keller, Andre Moreira Magalhaes,
  |   | Daniel García Moreno, Florian Müllner, Popax21, Ian Douglas Scott, Ray Strode,
  |   | Daniel van Vugt, Jonas Ådahl
  |   |
  |   | Translators:
  |   | Juliano de Souza Camargo [pt], Fabio Tomat [fur], Akarshan Biswas [bn_IN],
  |   | Daniel Mustieles [es], Boyuan Yang [zh_CN], Kjartan Maraas [nb]

@GrahamcOfBorg test gnome3


Update loofah to mitigate CVE-2018-8048

For: https://trello.com/c/X5u8dMIB/130-rails-security-vulnerability-loofah-220-libxml-292
See: flavorjones/loofah#144

👍 thank you for your work on this


feat(Box): responsive css shorthand border-radius sprint

@juanfabrega this is functional, and follows the css spec, but i think the code could use some refactoring. Can you take a look and see what makes sense?

@juanfabrega this is functional, and follows the css spec, but i think the code could use some refactoring. Can you take a look and see what makes sense?

 Modify radius prop for Box to accept responsive CSS shorthand

 Modify radius prop for Box to accept responsive CSS shorthand


How to handle other code that explicitly references the exe?

Unfortunately there is some code like this in powershell scripts for npm global binaries (ex. in yarn.ps1):
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent

$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
  # Fix case when both the Windows and Linux builds of Node
  # are installed in the same directory
  $exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
  & "$basedir/node$exe"  "$basedir/node_modules/yarn/bin/yarn.js" $args
  $ret=$LASTEXITCODE
} else {
  & "node$exe"  "$basedir/node_modules/yarn/bin/yarn.js" $args
  $ret=$LASTEXITCODE
}
exit $ret

> yarn bootstrap
& : The term 'node.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\USERS\<user>\APPDATA\ROAMING\NPM\yarn.ps1:15 char:5
+   & "node$exe"  "$basedir/node_modules/yarn/bin/yarn.js" $args
+     ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (node.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The problem is that I don't believe an exe shim can be used here. I think the downstream code needs to be fixed 😢

Opened https://github.com/npm/cmd-shim/issues/51

I've been thinking about this and I think there should be an "exe fallback" path below the shims that exists only on Windows that is symlinks to the current global command executable. It's not ideal because it wouldn't use the current directory's symlink, but at least it would allow for things to run in these scenarios.


Can't set external fonts for header or footer with calling PdfDataAsync

Description
I have found a problem with while using this library to create a pdf from a html.
The specific problem is that I can't use external fonts on custom header/footers of documents.
It just throws an exeception whenever I try to use an external font. usinf  tag with href on header of the document.
this doesn't seem to happen in the body, only on the header or the footer.
Complete minimal example reproducing the issue
public static async Task MinimumViableTest()
    {
        string htmlBody = "This is a body";
        string htmlHeader = "<link href=\"https://fonts.googleapis.com/css2?family=Oxygen&display=swap\" rel=\"stylesheet\">
Header
";
        string htmlFooter = "<link href=\"https://fonts.googleapis.com/css2?family=Oxygen&display=swap\" rel=\"stylesheet\">
Footer
";

        try
        {
            _fetcher ??= new BrowserFetcher(Product.Chrome);
            _revisionInfo ??= await _fetcher.DownloadAsync("1022525");
            _browser ??= await Puppeteer.LaunchAsync(new LaunchOptions { Headless = true, ExecutablePath = _revisionInfo.ExecutablePath, Args = new [] {"--force-color-profile=srgb", "--font-render-hinting=none"} });
            await using var page = await _browser.NewPageAsync();
            await page.SetContentAsync(htmlBody);
            await page.EvaluateExpressionHandleAsync("document.fonts.ready");

            var margins = new MarginOptions
            {
                Top = "30",
                Bottom = "30",
                Left = "30",
                Right = "30",
            };

            var bytes = await page.PdfDataAsync(new PdfOptions
            {
                MarginOptions = margins,
                HeaderTemplate = htmlHeader,
                FooterTemplate = htmlFooter,
                DisplayHeaderFooter = true,
                Format = PaperFormat.A4,
            });

            await File.WriteAllBytesAsync("Generated/headlessChrome.pdf", bytes);
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
        }
    }

Expected behavior:
The expected behaviour would be to export a pdf with the referenced font on the header and footer.
Actual behavior:
Throws this exception:

Message:

Protocol error (Page.printToPDF): Printing failed

StackTrace:

at PuppeteerSharp.CDPSession.SendAsync(String method, Object args, Boolean waitForCallback) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\CDPSession.cs:line 159
at PuppeteerSharp.CDPSession.SendAsync[T](String method, Object args) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\CDPSession.cs:line 110
at PuppeteerSharp.Page.PdfInternalAsync(String file, PdfOptions options) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\Page.cs:line 1036
at TestProject.HtmlToPDf_Tests.MinimumViableTest() in /home/prototipo-dev/RiderProjects/TestProject/HtmlToPDf_Tests.cs:line 162
at TestProject.HtmlToPDf_Tests.MinimumViableTest() in /home/prototipo-dev/RiderProjects/TestProject/HtmlToPDf_Tests.cs:line 171

Versions
Im using the nuget package of this library in ersion 7.1.0
Im runing the project in .NET 6
Additional Information
The idea im using is Jetbrains Rider
Im runing Ubuntu 20.04 (focal) Linux

I saw online that this might be a limitation of the library, but, even if a fix is not possible, is there any workaround that I could use to use external fonts on custom header or footer of the exported pdf?

@Prototipo-Erick-Santander I think this is something to report on chromium

@Prototipo-Erick-Santander Do you just need to use  instead of  in your code?


Saved changes not appearing in Git Changes

Visual Studio Code Version: [e.g. 1.43.0]
Operating System: [MacOS 10.15.3]

Steps to Reproduce:
Not entirely sure what the steps to repo are as this appears to possibly be an edge case bug. More details shortly

Create a new branch off of master using Git Graph Extension
Modify and save changes to a file
Open Git Panel and observe that no changes appear in changes

Update: The problem resolved itself. Its possible the polling for a change took a long time to either find a change or just it doesn't poll often?
I'm curious what others have to say about those possibilities. I'll update with more details if I see the issue occur again.
Feel free to close this issue if you don't have anything to add
This issue seems to be similar similar to: https://github.com/microsoft/vscode/issues/70953

Quick update. I'm seeing this issue more consistently now. I frequently have to manually press the refresh button for VSCode to pick up that a file was modified.

You seem to be missing file events. Please go through the following steps:

Run Git: Set Log Level... and choose Trace
Run Git: Show Git Output
Reproduce the issue and wait 10-20 seconds
Paste the whole output here


Harden RBAC for the operator

Summary
Previously the operator had the pod/exe permissions with the verb
create. Which is necessary for K8up to create and bind the namespaced
roles where the actual backups happen.
To harden the RBAC a bit we're now deploying a clusterRole which
contains the necessary RBAC rules. Also K8up is now allowed to bind
exactly this clusterRole.
While this doesn't mitigate all potential exploits in case the K8up
operator pod is accessed by a malicious party, it makes it harder for
the malicious party to abuse K8up's permissions.
Checklist
For Code changes

[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
[x] PR contains the label area:operator
[x] Link this PR to related issues
[ ] I have not made any changes in the charts/ directory.

Even though we should not change anything in the /chart folder, for this to work with the e2e I have to change the chart here as well. Let's hope the CI/CD process doesn't break too hard due to this...


Drawer showing white line or border to left of the screen on some android phones

Version
Tell us which versions you are using:

react-native-router-flux v4
react-native v0.52

Expected behaviour
Should not show the drawer's right border on the left of screen when drawer is closed.
(its only showing in Samsung galaxy s8 device, in other devices its working fine.)
Actual behaviour

you can see a white line or border of drawer on left side, it is appearing on every Scene which is under the Drawer..
Here is my code of Drawer
`<Router sceneStyle={{backgroundColor : '#fff'}} backAndroidHandler={this.onBackPress}>

<Scene key='drawer' drawer contentComponent={DrawerContent} open={false} hideNavBar sceneStyle={{backgroundColor : '#fff'}} drawerWidth={width*0.74} gestureResponseDistance="200">

        <Scene key='homeScreen' component={HomeScreen} title='HOME' hideNavBar={false} navBar={CustomNavBar} panHandlers={null} />
        <Scene key='bookmarks' component={Bookmarks} title='BOOKMARKS' hideNavBar={false} navBar={CustomNavBar} />

    </Scene>
    <Scene key='inbox' component={Inbox} title='MESSAGES' hideNavBar/>
    <Scene key='chatScreen' component={ChatScreen} title='Ernest Woods' hideNavBar={true} />
    <Scene key='editProfile' component={EditProfile} title='Edit Profile' hideNavBar />
    </Scene>
  </Router>`

I have this issue in ios devices as well

Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists

not fixed in 4.2.0 :(


git protocol deprecated, use https instead

git:// has been deprecated by github for 2 years. git+https:// will use the https protocol to fetch code instead, which is also the protocol the official repository use: https://github.com/ocaml/opam-repository/blob/47c192ba656a7b302c16bde355fbbe34e0dbf937/packages/fstar/fstar.2022.01.15/opam#L36C1-L36C51.
Without the fix, one can only opam pin fstar --dev-repo once, and pinning any further will always timeout unless you unpin first. I discovered the issue when I was switching between specific opam dev versions.

Thank you!


WebXR Teleportation

closing https://github.com/BabylonJS/Babylon.js/issues/7270
Added an enabled flag to the loop. if teleportation.enabled set to false, the teleportation will stop working. Notice that if set enabled WHILE teleporting, results can be unexpected.

fixing docs


The download link for BlendedMVS is invalid

The download link for BlendedMVS is invalid.

Seems that the authors updated their link. You can directly visit their github page link


Drag and Drop reparenting bug

Testing the current drag and drop behavior gives me a bug on moving nodes.
It can happen that by changing the node order all nodes can get unparented.
Here is a small gif showcasing the bug.

I have problem with behavior when you take two nodes on the bottom and drag them between two on the beginning. Then they are parented to top node, when I expect it to be moved between them...


feat(py): Add setters for Program calibrations, waveforms, frames, and memory_regions

closes #263

genuine question - is this a good thing to offer? My impression of those fields within the Rust library was that they were just views into instructions which had already been added, but maybe that's moved since I first wrote it.

genuine question - is this a good thing to offer? My impression of those fields within the Rust library was that they were just views into instructions which had already been added, but maybe that's moved since I first wrote it.

I'm not sure what the intent was, but I believe these fields have always been public. I think they count as more than a view too, since they actually maintain the state of the program, it's not just a query into the program. As it exists today, the fields being public expose all the mutable methods in CalibrationSet and FrameSet, which I assume were added because they are useful in some way. In pyQuils Program at least, it's not uncommon to operate on these properties, and I've learned it's useful to be able to think of these things as in different "buckets". I think the ultimate target would be a Program that really is just instructions, with a configurable way of getting and/or mutating a "bucket" of instructions in the program defined by a filter of some sort. This gets us out of the business of defining what those buckets are. That said, CalibrationSet and FrameSet have specialized purposes that would probably be missed.
In absence of revamping all the access patterns quil-rs currently uses, then I think we need a way to modify them. For example, say we want to remove a single calibration. If the field was private, then the workaround requires a fair amount of boilerplate. Create a new Program, iterate over every instruction in the original program, adding each one to the new Program except the calibration you want to skip. Though I'm generally hesitant to make fields public, I'm not sure what clamping down on the visibility gets us as long as we make sure CalibrationSet and the like can be constructed and modified in a sound way. Having them as a writable field on a Program gives the type more modularity. I can see the case that the public fields we have today could be generically useful across multiple programs, and making them public allows you to mix and match between programs.


"Animation channel cannot target WEIGHTS when mesh does not have morph targets." when exporting from Blender

Hey! I'm fairly new to GitHub, please forgive me.
I posted this thread on Stack Exchange and it was suggested that I report a bug here.
To give a rundown of the issue, my .glTF exports cause Microsoft's 3D Viewer to crash before I'm even able to view the file. I opened the file in this online .glTF viewer to try to pinpoint the issue, and got the error message
Animation channel cannot target WEIGHTS when mesh does not have morph targets.
I converted every object into a mesh and ensured that each object had at least one shape key, but the issue prevailed. Is this a bug?
You can find the project files here.

I'm also having trouble.
I don't think I can share the blender file I'm having trouble with.
But I can say that using Blender append from the troublesome file, of one mesh, allows me to export morph targets OK.
Exporting that same mesh from the troublesome file (and only that mesh, using Export Selected) the targets attribute on the primitive in the JSON GLTF file is missing...

Ok, here is:

A blender file exhibiting my problem
A GLTF export from that file missing the meshes[].primitives[].targets key
A fresh 3.3.1 blender file with the object I am testing with appended into it
A GLTF export from that file with working morph targets

https://drive.google.com/drive/folders/1m1Ng4aFuSYsRCCKyqZRV5wSnaTd7fK_F?usp=share_link
I'm piggy-backing on this issue as I'm seeing a very similar symptom, I apologise if it turns out to be unrelated.

Can you please also make screenshots of options you are using at export?


Number of parameters

The number of parameters for your implemented model is 28298376, which is much more than the official.

@erichhhhho hi, I will check the parameters you said. How do you get the number of parameters of the official model?

@liminn it is aroung 7754340

@liminn May I ask in this code, you train the model from scratch or from the pretrained?

Not from scratch, because backbone used pretrained weights


Block kit message templating

Hey,
I was wondering if anyone had time to look into the new Slack block kit style messaging. I think it would be a great addition to the library.
https://api.slack.com/block-kit

I'm working on an initial implementation of blocks.  Hope to have a PR up in the next few days

I've opened PR #480 to as an initial implementation of Block Kit

The PR has been merged into master.  Please take a look at the examples and read me file, it can be very verbose at times, but allows for flexibility when creating blocks.

I was looking at this and it's not clear how you actually send messages in this new block format. Constructing the actual block Message object is easy enough, but what do you do with that afterwards to actually send it?

I'm responding to the slack request (action, slash command, etc) with the json generated, the entire Message object (as json)

@MattDavisRV Could you provide an example of this please? 😄

Here's an example of a slack command being initiated by the user, with the word "help" entered after the command.
I use chi to handle my requests, this example is setup with that in mind.
`func RequestHandler() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {

	// Create an empty response
	var response slack.Message

	// All responses will be of type json
	w.Header().Set("Content-Type", "application/json")

	// Parse the request from slack
	slackRequest, _ := slack.SlashCommandParse(r)

	// Check for the word help
	if slackRequest.Text == "help" {

		// Shared Section, this is like an <hr /> tag in html
		divSection := slack.NewDividerBlock()

		// Create text element to display to the user
		headerText := slack.NewTextBlockObject(
			"mrkdwn",
			"*Need some help?*\n Here are different things you can do!",
			false,
			false,
		)

		// Add a close button to the right of the text
		closeBtn := slack.NewTextBlockObject("plain_text", "Close", false, false)
		closeBtnEle := slack.NewButtonBlockElement("close", "close", closeBtn)

		// Create block with both text and close button
		headerSection := slack.NewSectionBlock(headerText, nil, closeBtnEle)

		// Add block to response message.  If you had additional blocks, you'd pass them in here
		response = slack.NewBlockMessage(headerSection)

	}

	// Note: if the word "help" was not passed in during this example, the response
	// will be empty, likely resulting a validation error from slack.  Your application should
	// have additional logic, this is just a simple example.

	// Normal JSON stuff
	responseBytes, _ := json.Marshal(response)
	w.Write(responseBytes)
	return

}

}`

@MattDavisRV Excellent, thanks!
Do you also have any pointers regarding how to handle button action requests nicely?

In my use case, I've built an app to look up employees within our company.  I've added a url to slack such as: http://my-url.com/slack-app/action to handle interactive requests.  When a request is made to this URL, I have the following code.  Currently, this only supports the close button and viewing an employee.  If I were to add additional actions, I'd likely put them in a switch statement.  See comments in code below.
There are probably better ways to handle errors and responses using this package that I have not implemented, I would recommend using those in your project.
I've added additional comments in the code for the sake of this comment.
`func (s *Service) ActionHandler() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {

	// Parse input from request
	if err := r.ParseForm(); err != nil {
                     // getSlackError is a helper to quickly render errors back to slack
		responseBytes := getSlackError("Server Error", "An unknown error occurred")
		w.Write(responseBytes)
		return
	}

	interactionRequest := slack.InteractionCallback{}
	json.Unmarshal([]byte(r.PostForm.Get("payload")), &interactionRequest)

            // Get the action from the request, it'll always be the first one provided in my case
	actionValue := interactionRequest.ActionCallback.Actions[0].Value

            // Handle close action
	if strings.Contains(actionValue, "close") {

                     // Found this on stack overflow, unsure if this exists in the package
		closeStr := `{
			'response_type': 'ephemeral',
			'text': '',
			'replace_original': true,
			'delete_original': true
		}`

                     // Post close json back to response URL to close the message
		http.Post(interactionRequest.ResponseURL, "application/json", bytes.NewBuffer([]byte(closeStr)))
		return

	}

	// Only implemented view at this point, error everything else
	if !strings.Contains(actionValue, "view_") {

		responseBytes := getSlackError("Server Error", "An unknown error occurred")
		w.Write(responseBytes)
		return
	}

             // In this example, the action will be "view_12345", with 12345 being a unique id for each employee.  In a larger application, I'd likely grab the word before the _ and switch on that value to render the correct view to the user.

	eid := strings.Replace(actionValue, "view_", "", -1)

             // This function will generate blocks, similar to the previous comment.  responseData is an instance of slack.Message
	responseData, err := s.lookupByEmployeeID(eid)

	// Handle any errors from the lookup
	if err != nil {
		responseBytes := getSlackError("Employee Search", "Unable to read request from slack, please try again.")
		w.Write(responseBytes)
		return
	}

	// Replace original text that included in the button they clicked.  This is optional, but a better end user experience in my opinion.
	responseData.ReplaceOriginal = true

	// Write results back to to slack.
	responseBytes, _ := json.Marshal(responseData)

	http.Post(interactionRequest.ResponseURL, "application/json", bytes.NewBuffer(responseBytes))

	return

}

}
// Helper function to display errors to the user only and not to the channel
func getSlackError(system, msg string) []byte {
respoonse := slack.Message{
	Msg: slack.Msg{
		ResponseType: "ephemeral",
		Text:         fmt.Sprintf("%s: %s", system, msg),
	},
}

responseBytes, _ := json.Marshal(respoonse)

return responseBytes

}
`

is it possible to use the PostMessage function to send BlockKit style messages?

ahh okay. so my guess is that something like the following:
// MsgOptionBlocks provide blocks for the message.
func MsgOptionBlocks(blocks ...Block) MsgOption {
	return func(config *sendConfig) error {
		if blocks == nil {
			return nil
		}

		blocks, err := json.Marshal(blocks)
		if err == nil {
			config.values.Set("blocks", string(blocks))
		}
		return err
	}
}

@MattDavisRV since the Block struct was made private, and the only exposed form is through a function that wraps it in an Msg, is there a different way to add this to chat.go? Would it be a bad idea to make block an exported type again?

👍 for @khayyamsaleem request.
Adding blocks support only to be able to reply to slack requests is kind of half-baked. Sorry it is merged to master so to me it is considered prod ready for a release.
Slack encourages to use blocks to send regular messages over attachments:

This feature is a legacy part of messaging functionality for Slack apps. We recommend you stick with layout blocks as above, but if you still want to use attachments, read our caveats below.

As a temporary thing that shouldn't require altering the library itself, I knocked together this (currently untested) snippet, which you can put in your own app as a helper:
// MsgOptionBlocks applies the blocks from a block message to an existing message.
func MsgOptionBlocks(msg slack.Msg) slack.MsgOption {
	return slack.MsgOptionCompose(
		// Copy the blocks from the source message into the new message
		slack.UnsafeMsgOptionEndpoint("", func(v url.Values) {
			blocks, err := json.Marshal(msg.Blocks)
			if err == nil {
				v.Set("blocks", string(blocks))
			}
		}),
		// Since the unsafe option above erases the endpoint, reset it to
		// the normal post one.
		slack.MsgOptionPost(),
	)
}

this allows you to use the exported NewBlockMessage method to create a block message, then pass it into the helper to have the blocks defined on it applied to the message you want to send via PostMessage.
Hacky? Yes. But in lieu of a change to the library to export blocks and make a native MsgOptionBlocks method, this may suffice.

@MattDavisRV Thanks! Very helpful!

@mihaip I agree it should also have a way to respond to the original request.  I was going to submit a PR for a way to do that, just haven't had time.  The original reason I did not do that is that I've run into edge cases of responding back to slack within the timeframe (3 seconds?  Don't remember off the top of my head), so I general respond via the response url instead to account for unknown variables when processing requests.
I'll try to get a PR in this week with something similar to what's been posted in this thread.

Is there a reason the block type is unexported?
I'm having a hard time making a block message, with a variable length of blocks.

It wasn't in the original PR, but was requested by @james-lawrence to be made private before it was merged. I'll add another function in my upcoming PR to append blocks after they've been initialized.

I'm currently using it like ```golang
msg := slack.NewBlockMessage()
msg = slack.AddBlockMessage(...)

But that would result in a lot of copy of the same message over and over, I fear.

@Multiply the block type is an interface there isn't a need to export it. as for it being merged into master....
particularly new APIs from slack may be merged in without being fully baked from a global perspective. Generally my assumptions for PRs is that it fullfills some need the library failed to fill.
I then evaluate the PR around the following:

does the functionality apply well globally? i.e. is it useful for everyone or is it only really applicable to their application. for example: caching results, generally caching tends to be application specific so I won't consider those in the library core.
is the code maintainable? (is it using the internal library utilities correctly?)
does it expand the libraries api in unacceptable ways? (block interface for example didn't need to be public to do its job)

@MattDavisRV any headway on this?

#490

Sorry I did not see this issue before opening #490, would appreciate any/all input

is this good to close?

@khayyamsaleem there is a separate but related issue I am currently working on a PR for regarding the unmarshalling of JSON responses from the block interaction callback. We could open a new issue but might be easier to keep tracking here

One  use case that might need the Block template is when you want to return a list of results, like a search, and you want to create a TextBlock per item.  Maybe with SeparatorBlocks between..   Then being able to have a []Block to fill make life easier.
Now if you want to keep the low level interface private, then the MsgOptionBlocks needs to be accumulative.   So that you can pass in more that one to the [Send|Post]Message  call and it correctly assembles all the block.

have a working branch for dynamically unmarshalling the JSON responses for actions/blocks since both can contain multiple, unique types in the response from Slack (talking about InteractionCallback specifically)
not super confident in implementation so will clean up, share, and ask for feedback 🙏

will try to push in the next day or so, I'm pretty much done and just fixing/adding tests at the moment. the functionality is really limited without the ability to unmarshal the callback from block interactions, so I'm trying to get this done as soon as I can.

@khayyamsaleem got a PR up, though it's still WIP
https://github.com/nlopes/slack/pull/494
examples are failing since the branch I'm working off of is from my forked repo, but should resolve that in the next day or so then I will add tests. I have confirmed the behavior pretty extensively around InteractionCallbacks (still not exhaustive), but have yet to confirm channel history.
Would love feedback from any/everyone on this one--I'm sure there is a more elegant way to do the same thing 🙏

examples are failing since the branch I'm working off of is from my forked repo

Is that still the same cause? Currently examples are broken in latest master, see #564


[5.x] stream_create: Fix crash on stream creation error

Backport of

#22163

Merged, thanks @andersk!


Improvement: JSON to Dictionary<Value, Value>

Hey there,
It would be mighty convenient if there was a utility function for going directly from JSON into Dictionary<Value, Value>.
Thanks!

Hey,
Yes indeed it would, but wouldn't it also require to reference a json library from Cottle? To avoid this I would rather imagine a separate package to do this glue, wdyt?

e.g. something like this but a bit more official:
using System.Collections.Generic;
using Cottle;
using Newtonsoft.Json.Linq;

public class TemplateRenderer
{
    private readonly Dictionary<Value, Value> _values = new();

    public TemplateRenderer(string json)
    {
        AddToValuesDictionary(json);
    }

    public void AddToValuesDictionary(string jsonString)
    {
        // Parse the JSON string into a JObject
        var jObject = JObject.Parse(jsonString);

        // Iterate through the properties of the JObject
        foreach (var property in jObject.Properties())
        {
            // Convert the property key to a Value
            Value key = Value.FromString(property.Name);

            // Convert the property value to a Value
            Value value = Value.Undefined;
            switch (property.Value.Type)
            {
                case JTokenType.Boolean:
                    value = Value.FromBoolean(property.Value.ToObject<bool>());
                    break;
                case JTokenType.Integer:
                    value = Value.FromNumber(property.Value.ToObject<long>());
                    break;
                case JTokenType.Float:
                    value = Value.FromNumber(property.Value.ToObject<double>());
                    break;
                case JTokenType.String:
                    value = Value.FromString(property.Value.ToObject<string>());
                    break;
                case JTokenType.Array:
                    value = Value.FromEnumerable(property.Value.ToObject<List<Value>>());
                    break;
                case JTokenType.Object:
                    AddToValuesDictionary(property.Value.ToString());
                    break;
                default:
                    value = Value.Undefined;
                    break;
            }

            // Add the KeyValuePair to the result dictionary
            _values.Add(key, value);
        }
    }

    public void ClearValuesDictionary()
    {
        _values.Clear();
    }

    public string Render(string template)
    {
        var document = Document.CreateDefault(template).DocumentOrThrow;
        var result = document.Render(Context.CreateBuiltin(_values));
        return result;
    }
}```

Hey,
Yes indeed it would, but wouldn't it also require to reference a json library from Cottle? To avoid this I would rather imagine a separate package to do this glue, wdyt?

I don't disagree, would be nice to have an example though. So this issue will now come up in search results, for people who are looking for a quick solution to this ^-^.

Thanks for posting this code sample 👍 You're right leaving it as is already provides a valuable sample 🙂 If other people are interested, I'm definitely open to including this helper in some sibling assembly 🙂


How to control play pause ? and custom controls ?

Hello, to control play and pause, use player.pause() and player.play().
Regarding the custom controls, since the package is very low-level, it doesn't add anything like that by default. You should use <VideoView playerId={playerId} /> and build your controls on top of it.


Support for Lighting visualization server.

Support for Lightning(http://lightning-viz.org/) visualization server.

@minyk I'd love to merge it ;). Do you have any news regarding what we miss?

@andypetrella At this moment, no. Maybe more readable documentation?

@minyk you mean for using it? or more centrally for the whole project 😄?

@andypetrella I mean just the integration. :)

@andypetrella I update the readme.md with the official repository. Just fix the sample result url after the merge. Thanks.

I feel pain about this one, it's very sad that the scala lib (https://github.com/lightning-viz/lightning-scala/issues/8) doesn't land.
I'm actually afraid this lib is not much continued, am I wrong @freeman-lab? (just wondering)

Gah, sorry! Have had too many balls in the air for Lightning core (including a major update about to be released!), but promise I'll finish this out tonight.

Hehe don't want to put any pressure, but this is an interesting integration that I'd love to see more.
So do your tricks first man :-).

No it's great, needed the reminder! =)

let's close this for now.


Feature/historical data endpoints

:tada: This PR is included in version 1.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Transcode non-ASCII &str to UTF-16 in nsstring! macro

In Objective-C, NSString literals (e.g. @"string") with unicode data are represented as UTF-16. This crate currently does not transcode non-ASCII &str data to UTF-16 and instead incorrectly emits UTF-8 data.
Correct behavior would be to have the pointer refer to UTF-16 data with 0x7D0 as the flags.
These flags are 7 for the CFTypeID and D0 for (from CFString.c source):

!!! Note: Constant CFStrings use the bit patterns:
C8 (11001000 = default allocator, not inline, not freed contents; 8-bit; has NULL byte; doesn't have length; is immutable)
D0 (11010000 = default allocator, not inline, not freed contents; Unicode; is immutable)
The bit usages should not be modified in a way that would effect these bit patterns.

So, you managed to nerd-snipe me into this, but actually integrating it into the nsstring! macro is too much of a hassle. Mostly because of non-encoding stuff the macro needs to do, such as:

Forbid NULs in the input unless it's at the end of the input.
Automatically append a NUL to the end of the input, but only if it wasn't given.
Use the current code for ASCII.
Use the right NSString flags, admittedly this one is not bad.
...

And so, my motivation to keep pushing is dwindling (had other code I wanted to write today) and so here's a playground link that defines a utf16_lit! macro (including tests for it and the encoding helpers):
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d4bf36ff8d49186c4a299a81e67c1d01
Notes on implementation:

It's annoying you can't do &s[i..] inside const fn. It just passes indices around as a result.
It will panic for most invalid UTF-8, and probably just spit out garbage for the rest. If you give it a bad index it should panic though.

If you use it, you should give me and @rodrimati1992 (who wrote the macro part and skeleton code for using an iterator like this) coauthored-by lines on the commit for it, e.g. end the commit message with:
Co-authored-by: Nikolai Vazquez<EMAIL_ADDRESS>Co-authored-by: Thom Chiovoloni<EMAIL_ADDRESS>Co-authored-by: rodrimati1992<EMAIL_ADDRESS>

Thanks a ton for your implementation @thomcc! This also enables the string to contain interior nulls, which is a cool bonus feature.


Typing Speed Test Path Issue - any one to fix

Issue in this code. The image path is wrong, the game thumbnail not showing.

This is the game

when we open this game CSS not working
output

Help to fix this issue.

Which Image do I have to add
Could you send that Image?

Pls assign this issue to me

@Japneet001 you can use any image that fits nicely on this game.

Ohk

I will do it can you assign me. I did it you can check and assign me in this issue.

Also i add some styling

If you assign me i will do as soon as possible


Availability of the best Base (smaller) multilingual models from the XLSR paper

🚀 Feature Request
The paper Unsupervised Cross-lingual Representation Learning for speech recognition demonstrates experiments using two sizes of the XLSR architecture; Base and Large. I appreciate that the XLSR-53 Large model has been released; it is very useful for multilingual experiments. However, could the best available Base XLSR system also be released? This would be easier for the purpose of finetuning for researchers with limited number of GPU resources.

@aconneau

@aconneau

Hey @ajd12342 ,
unfortunately I have not trained an XLSR-53 model with the Base architecture. But I understand the constraint, and will definitely consider releasing a Base model as well for the next version of XLSR. For now I would suggest increasing the "update-freq" parameter and reducing the number of GPUs you are using. You can also potentially consider reducing the number of updates during which the model is frozen at the beginning (which is usually set to 10k).
Best,
Alexis

Hey @ajd12342 ,
unfortunately I have not trained an XLSR-53 model with the Base architecture. But I understand the constraint, and will definitely consider releasing a Base model as well for the next version of XLSR. For now I would suggest increasing the "update-freq" parameter and reducing the number of GPUs you are using. You can also potentially consider reducing the number of updates during which the model is frozen at the beginning (which is usually set to 10k).
Best,
Alexis

Thanks! I will try your suggestions. Looking forward to the next version of XLSR, too. I will close the issue now.

Thanks! I will try your suggestions. Looking forward to the next version of XLSR, too. I will close the issue now.


Feature Request: Revert to Save Point

When debugging interpreted languages (I'm thinking of python) it would be nice to be able to "save" at a breakpoint and then return to that point and state after continuing in order to try some hot code replacements to fix a bug.
if __name__ == "__main__":
    df = load_filtered_data('in.ss') # takes 5 minutes; create a save point to debug from here

This isn't something that vscode can do, it would be a feature request for a particular language/runtime


[Feature] Make bots go to pokestops to spin

Hi,
I am running an instance of Monocle in an area, where only 2-3 pokestops are available. Most workers do not encounter a stop as they "stay" at "their" spawn points and they stay level 1 and get captchas all the time.
An option would be nice to actively make a worker go to visit a pokestop when its time to spin has come. From what I understand from the code, currently a worker would only spin if it is in the neighbourhood of a stop incidentally or am I wrong here?

It only spin when worker GET_MAP_OBJECTS (means in range) have pokestop only.
try to narrow the search area (looks like very slow, don't know why) or put them at nearest pokestops cluster and wait all the account to levelup.

Thanks for that idea! I reduced the scan area to where 1 of the stops is only (about 100m x 100m) but it won't start up any more, last log entry is "Starting up!" and then nothing...Maybe the area is too small, but when I increase it, the workers might spread out again...how big can the area around a stop be so all bots can still see/reach it and will spin?

1km for pokestop?


Fix Chat Bridge is Offline message not sending

Something was causing the bridge to not send the Chat Bridge is Offline message upon exiting or being restarted - this fixes that issue and makes it send when needed.

Looks like the bug was introduced in #19, specifically commit ceda7110, thanks for fixing this bug!👍


Copy KGO for new OPS feature's stem test to common location

resolution_fixed   |    by<EMAIL_ADDRESS>
A new feature to be added to the OPS, needs the KGO for its stem test to be copied to the common location.
The KGO for the test is located here:
/home/548/sjr548/cylc-run/ops-2016.09.0_extraobs_bufrdir/log/job/1/ops_process_from_extraobsodb_bogus_global__ops_x86_64_ifort_opt_mirror__v1
/home/548/sjr548/cylc-run/ops-2016.09.0_extraobs_bufrdir/work/1/ops_process_from_extraobsodb_bogus_global__ops_x86_64_ifort_opt_mirror__v1
Can these be copied into the following directory structure?
/g/data/access/OPS/KGO/control-t667/log/job/1/ops_process_from_extraobsodb_bogus_global__ops_x86_64_ifort_opt_mirror__v1
/g/data/access/OPS/KGO/control-t667/work/1/ops_process_from_extraobsodb_bogus_global__ops_x86_64_ifort_opt_mirror__v1
i.e. the log and work directories for the task ops_process_from_extraobsodb_bogus_global__ops_x86_64_ifort_opt_mirror__v1 should be located under /g/data/access/OPS/KGO/control-t667, preserving the directory structure.

Issue migrated from trac:294 at 2024-01-31 18:26:32 +1100

<EMAIL_ADDRESS>set resolution to fixed

<EMAIL_ADDRESS>commented

Directory now has open permissions for dp9, so am able to copy the directories myself.

<EMAIL_ADDRESS>changed status from new to closed


Warrior of serenity stage 8 soft locking

Needs to be checked on for missing "exit zone" part on stage 8

This issue was fixed. In addition to there being an exitzone failsafe just in case, the entrance to the tomb has been set to infinite so that players can re-enter it safely if required.


BasePath on v1.8.8

On version 1.8.8 I can't use @BasePath to define base path of my API.
Your swag version
1.8.8
Your go version
1.19.3
Desktop (please complete the following information):

OS: macOS Ventura 13.0.1
Browser: Chrome
Version: 108.0.53XX.XX

v1.8.8 is a deprecated version with fault

v1.8.9 fixed it


[Feature]: Worker stops, at the same time stop node_exporter host information collector

Tell us what feature you want?
Worker stops, at the same time stop node_exporter host information collector

This function has been implemented in the host agent startup function


#259 appendix image updates

New logo and appendix images - this should fix the bug of the images not appearing on the deployed site either.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How do you define your input ?

Hello,
Thanks for your work,
Just want to know how do you define what is the input1,2,3,4....
I mean, Is the input1 video of companion the input1 video of the lowest node id ?
Thanks,
I should have ask you this by MP but I didn't find it,

Thanks for your question. It got me thinking.
At the moment i number the inputs from 1 to „Number of matrix inputs“.
I just realized that, this means that when a input is added in the middle of the matrix the following inputs will be pushed by one index. This could change the companion layout. So i think i have to change the numbering to the actual matrix index.
Thanks for raising the question 😄

Hello, thanks for the reply, now that I have your answer I can bother you with some other... :-D
The matrix system work with groups that we create, do we must have all the input and output in the same group or can we have multiple groups ?
If I go futher in the brainstorming, could the companion change the group in the matrix, that way we could organize the XY into categories ?
Another thinking...
The matrix system is link to a the mediorwork application not the micron, if you have multiple application running on the network you can have multiple matrix, how companion know which matrix he have to follow ?
Sorry for all these questions, I just think that your work can be a great help for all of us :-D

Hey,
sorry for the late reply.
If you mean the Groups in the Mediorworks Matrix, they have no impact on the companion module as far as i know.
The 3rd Party Master provides every Source and destination which has a 3rd Party ID. I can not see a way how you could use the Mediorworks Groups in order to change the matrix organization.
If i didn‘t get your idea, please correct me.
And what do you mean by mediorwork application? Do you mean the apps you can use on some devices?
Like i said before, the module uses the 3rd Party IDs provided by the net master. The IP of the NET Master therefore specifices the matrix.
I appreciate every new input for improving the module and i hope others benefit from it.

Is this question answered and can I close the issue?

with no further update, this issue gets closed.


dart fix - Add the ability to replace a static method invocation with a const constructor.

The Flutter team has a static function on MaterialStateProperty:
static MaterialStateProperty<T> all<T>(T value)

We would like to have a dart fix that will allow us to replace invocations of .all with a call to a constructor for a new class that implements MaterialStateProperty<T>:
const MaterialStatePropertyAll(this.value);

So instead of:
final color = MaterialStateProperty<Color>.all(Colors.blue);

We want:
const color MaterialStatePropertyAll<Color>(Colors.blue);

Looking at the docs for fixes, there doesn't appear to be a way to define this kind of transform. If possible this would be a nice feature for us.

@pq @keertip

I have had a look and I think a common padding field does not make any real sense since the padding is applied in different ways. If you want to have different padding between material and cupertino then use the
PlatformSearchBar(
   material: MaterialSearchBarData(padding: ...),
   cupertino: CupertinoSearchBarData(padding: ...),
)