Seg Fault when calling root.set_fullscreen on MacOS Mojave

Following the roguelike tutorial I ended up with this function to handle key presses.
Alt + Enter should toggle the screen between fullscreen and the configured window size.
However, when I call root.set_fullscreen I am getting a Segmentation Fault without much other output as to what the exact error could be.
Here is the code:
fn handle_keys(root: &mut Root, x: &mut i32, y: &mut i32) -> bool {
  let key = root.wait_for_keypress(true);

  match key {
    // movement keys
    Key { code: Up, .. } => *y -= 1,
    Key { code: Down, .. } => *y += 1,
    Key { code: Left, .. } => *x -= 1,
    Key { code: Right, .. } => *x += 1,
    Key { code: Enter, alt: true, .. } => {
      // Alt+Enter: toggle fullscreen
      let fullscreen = root.is_fullscreen();
      println!("{}", fullscreen);
      root.set_fullscreen(!fullscreen);
    }
    Key { code: Escape, .. } => return true,  // exit game
    _ => {},
  }

  return false;
}

On a side note, I think I will be leaving the mac world for good pretty soon.

I also ran into this on Sierra. I'm not sure what other information you need to help you debug the issue.

Here is the stacktrace:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libtcod.dylib                 	0x0000000104a4673b find_resolution + 459 (sys_sdl_c.c:452)
1   libtcod.dylib                 	0x0000000104a43e1c TCOD_sys_set_fullscreen + 60 (sys_sdl_c.c:1240)
2   libtcod.dylib                 	0x0000000104a1406a TCOD_console_set_fullscreen + 90 (console_c.c:137)
3   roguelike                     	0x0000000104966651 tcod::console::Root::set_fullscreen::h489e87843682dd90 + 33 (console.rs:233)
4   roguelike                     	0x0000000104960a47 roguelike::handle_keys::hb6865f503e2e50f5 + 215 (main.rs:111)
5   roguelike                     	0x00000001049608c3 roguelike::main::h788343338086fc09 + 1379 (main.rs:99)
6   roguelike                     	0x000000010495fec2 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::hc0f517b52b1fe0ff + 18 (rt.rs:74)
7   roguelike                     	0x0000000104973078 std::panicking::try::do_call::hcfe6ac53944e0624 + 24 (panicking.rs:310)
8   roguelike                     	0x000000010497f7ff __rust_maybe_catch_panic + 31 (lib.rs:111)
9   roguelike                     	0x000000010496ee9d std::rt::lang_start_internal::hb972e1f76be57958 + 237 (panicking.rs:294)
10  roguelike                     	0x000000010495fea2 std::rt::lang_start::he93384e8863926d4 + 66 (rt.rs:74)
11  roguelike                     	0x0000000104960ac2 main + 34
12  libdyld.dylib                 	0x00007fff53d88015 start + 1

Probably because I am using the GLSL renderer and not SDL so the sdl deref in find_resolution is the seg fault.

Yeah changing back to the default SDL renderer fixes it, but brings back the issue of having a blank screen until hitting a key including when going to fullscreen and back.

Looks like it's coming from libtcod and not us. Moving to the latest version might help with it. I'll try looking into it when I have time.


Document usage of rmarkdown and pandoc for prettier symbol documentation

Is your feature request related to a problem? Please describe.
Documentation improvement.
Describe the solution you'd like
Document the use of languageserver with rmarkdown and pandoc for prettier symbol documentation, as indicated by @ManuelHentschel in https://github.com/REditorSupport/vscode-R/issues/775#issuecomment-914263106.

I'd like to enrich the content of the R language service wiki page so that user could know more about the language service features.


Customers phone not save

This repository is only for reporting bugs or issues. If you need support, please use:

Create support ticket on https://bagisto.uvdesk.com

Thanks!

@marcelowu please use the issue template when you report a issue, as this helps us to investigate issues.

@ghermans,
It's working in master, may I know where it is not working.

@devansh-webkul i remember that this bug came up a while ago, but it has something todo with how the customer is created (admin,shop or velocity)

master, language pt_BR, and gender error

@marcelowu
once a new customer registered, phone number & gender fields need to fill out again by editing customer or by customer itself from profile.

@marcelowu
once the customer is registered then the admin needs to fill out their phone number & gender by editing customer details.
I hope this has been fixed at your end.
Right now closing this as this is an invalid issue.


Language

Add language choice in order to work on different windows language based systems.
(work only with english windows system for the moment).

Currently in test
Will be update in the next commit

Work in the commit 2ebc845ee60f7e6c858306d2c5fe5abf6a465b0d


feat(localization): Add en-GB

Description
Replaces a couple of "Americanisms" with their British versions:

authorize with authorise
organization with organisation

Checklist

[x] npm test runs as expected.
[x] npm run build runs as expected.
[ ] (If applicable) JSDoc comments have been added or updated for any package exports
[ ] (If applicable) Documentation has been updated

Type of change

[ ] 🐛 Bug fix
[x] 🌟 New feature
[ ] 🔨 Breaking change
[ ] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

@anagstef @tmilewski Apologies for the delay–I have updated as per comments and extracted the changed words into a little dictionary object so it is easier to see what is actually changed.
The tl;dr is that now the enGB locale data should automatically stay up to date with any changes to enUS. 🎉


Full Story API

More external-facing functions are needed for external game engines to embed Hank games and do cool stuff with them.

Tag

[ ] getKnotsWithTags(?tagFilter):
tagFilter is in the form of a boolean expression like "content && !hidden" which gets parsed in a little HankInterp whose variables are initialized with `[tagName] = {true or false} and undefined == false.
[ ] nextFrameWithTags(?tagFilter):
Either returns next text frame that satisfies tag filter (skipping others), or HasChoices() filtered by tagFilter or NoMatchingContent

[ ] skipTaggedHScript(?tagFilter): don't execute hscript that matches the given tags


Broken with Test::Unit - cannot load such file -- minitest/autorun

First, thank you for a great gem!  Recently I wanted to update sunspot_solr gem but then tests started to break (wrong number of arguments for #commit method). I wanted to see if upgrading sunspot_matchers will help, but after successful bundle update, the tests break with:
/bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- minitest/autorun (LoadError)
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `block in require'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:236:in `load_dependency'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require'
	from /bundle/gems/sunspot_matchers-<IP_ADDRESS>/lib/sunspot_matchers/test_helper.rb:2:in `<top (required)>'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `block in require'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:236:in `load_dependency'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require'
	from /app/test/unit/searches/browse_product_search_test.rb:2:in `<top (required)>'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `block in require'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:236:in `load_dependency'
	from /bundle/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require'
	from /bundle/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
	from /bundle/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:9:in `each'
	from /bundle/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:9:in `block in <main>'
	from /bundle/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:4:in `select'
	from /bundle/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:4:in `<main>'

It would be great if it is possible to revert this change: https://github.com/pivotal/sunspot_matchers/commit/5ded5c7248a037437567c5bfac0107b9d07fe972
As you can see we are on Rails 3.2 and not using minitest. Adding minitest to the Gemfile didn't help as it was not runinng our tests despite the above error disappearance.
Once again I much appreciate your work! :)

Hey @pjar,
I'm not super familiar with test_unit these days. Which version of ruby are you using?

Hi @jpalermo
It's ruby 2.2.2.
I've made it working for me with this change: https://github.com/codequest-eu/sunspot_matchers/commit/7ee4ec7908a4554c4913fac41c91eca45ad6d09b

I just release gem <IP_ADDRESS>. Let me know if that fixes your problem.

@jpalermo - thank you for a quick and prompt response. It indeed fixes my issue.
Best regards


Fd/card shadow and installer order

add the card shadow back but only in the landing page.
move the cloud configs to after the installer steps.

@jordan-acosta
I'm hijacking the config for the button and card shadows to bring back the desired look.


Implement Search Requests API

Pull Request Description

close #439
PR implements the search requests API and wires them to the database.
Changelog;

add: search/getSuggestionsDatabase request
add: search/getSuggestionsDatabaseVersion request
add: search/completion request
add: impl language-server part of the integraton

Important Notes

Checklist
Please include the following checklist in your PR:

[x] The documentation has been updated if necessary.
[x] All code conforms to the Scala, Java, and Rust style guides.
[x] All code has been tested where possible.

Benchmark results for a database of 1_000_000 records
[info] Benchmark                                         Mode  Cnt    Score    Error  Units
[info] SuggestionsRepoBenchmark.searchBaseline           avgt    5   94.562 ±  9.673  us/op
[info] SuggestionsRepoBenchmark.searchByAll              avgt    5  274.080 ± 12.816  us/op
[info] SuggestionsRepoBenchmark.searchByReturnType       avgt    5  220.701 ± 11.551  us/op
[info] SuggestionsRepoBenchmark.searchBySelfReturnTypes  avgt    5  242.471 ±  9.945  us/op
[info] SuggestionsRepoBenchmark.searchBySelfType         avgt    5  226.999 ± 17.085  us/op

Benchmark results for a database of 1_000_000 records
[info] Benchmark                                         Mode  Cnt    Score    Error  Units
[info] SuggestionsRepoBenchmark.searchBaseline           avgt    5   94.562 ±  9.673  us/op
[info] SuggestionsRepoBenchmark.searchByAll              avgt    5  274.080 ± 12.816  us/op
[info] SuggestionsRepoBenchmark.searchByReturnType       avgt    5  220.701 ± 11.551  us/op
[info] SuggestionsRepoBenchmark.searchBySelfReturnTypes  avgt    5  242.471 ±  9.945  us/op
[info] SuggestionsRepoBenchmark.searchBySelfType         avgt    5  226.999 ± 17.085  us/op

I think this kind of performance is probably fine.


test(ticdc):  add run pulsar cluster in integration shell script

What problem does this PR solve?

Issue Number: ref #10653
What is changed and how it works?
run pulsar cluster in integration shell script,  this script depends on the docker images file in https://github.com/pingcap/tiflow/pull/10640
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`.

/retest-required

wait for PR https://github.com/PingCAP-QE/ci/pull/2821  to be merged first.

/test cdc-integration-pulsar-test

/test cdc-integration-kafka-test

/test cdc-integration-pulsar-test

Please describe the detailed functionality of the new script in the PR body.

/retest


hover over color to change has gotten annoying

Type: Bug
In a CSS file, I used to be able to hover over a color and click the popup header until I got the format I wanted. Now it only accepts 1 click and closes.
Also, hsl and hwb create extra characters after the closing ')' when switching to rgb. But only half the time.
 Next release expected in two weeks.

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


initial input should be output from FreeBIRD repository

the FreeeBIRD repository ( https://github.com/regcommunity/FreeBIRD ) translates official BIRD published artefacts into the RegDNA standard (RegDNA for datamodels  is a subset of the Eclispe XCore standard), and then genereates both Ecore and Xcore versions. These ecore version should be the starting point of forward engineering.


Adding an "unitialized" app as a remote

Use Case: A user creates an app in their dashboard and immediately tries to add it as a remote. The CLI returns a message that you do not have access to this app because the app has not been fully initialized yet. There user thinks something is wrong, because there's no message about the app not being ready.
Suggestion: Somehow make the response in the CLI more informative: "This app is still initializing", "This app isn't ready yet", etc.

this would be a good thing to add to odin.
once we have solved https://github.com/nanobox-io/nanobox/issues/287 the messages from odin will come through

The fixes to Odin have been deployed. Now users can add remote links to apps before they're fully 'active'. Then if they attempt to deploy or perform an action before the app has the necessary platform services, Odin will return a 404 for that platform service. Previously it was returning a 200 with a nil body.

awesome. I will close the issue with my pull request.


Error while using binary_operator_spaces

Each time I want set align_double_arrow or align_equals to true in my .php_cs, I got an error:
Loaded config default from "/var/www/project/.php_cs".
E
Legend: ?-unknown, I-invalid file syntax, file ignored, S-Skipped, .-no changes, F-fixed, E-error

Fixed all files in 0.013 seconds, 6.000 MB memory used

Files that were not fixed due to errors reported during fixing:
   1) /var/www/project/CSTestController.php

With this file https://gist.github.com/AntoineLemaire/d8153d17fca3b1e67ef2dc98810180b3
And this .php_cs
<?php

return PhpCsFixer\Config::create()
    ->setUsingCache(false)
    ->setRules(array(
        '@Symfony' => true,
        'array_syntax' => array('syntax' => 'short'),
        'unalign_equals' => false,
        'phpdoc_order' => true,
        'phpdoc_to_comment' => false,
        'binary_operator_spaces' => array(
            'align_double_arrow' => true,
            'align_equals' => true,
        ),
    ))
;

I'm using php 7.0.13
PHP 7.0.13-0ubuntu<IP_ADDRESS> (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.13-0ubuntu<IP_ADDRESS>, Copyright (c) 1999-2016, by Zend Technologies

and php-cs-fixer 2.0.0
php-cs-fixer -vvv fix /var/www/project/CSTestController.php

I failed to reproduce the error with a checkout version @ v2.0.0 using PHP 7.1.0-5+deb.sury.org~xenial+1 (cli) ( NTS ) on Ubuntu 16.04.1 LTS. Anyone else got time to help out?

@AntoineLemaire , would it be fine to you to reveal the /var/www/project/CSTestController.php file content ?

He did, see the link to the gist ;)

ah, sorry

It's work with 7.0.15-1
PHP 7.0.15-1+deb.sury.org~xenial+1 (cli) (built: Jan 20 2017 08:53:13) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.15-1+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies
    with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans

Thanks for reporting back!
I took a look at the change log between 7.0.13 and .15-1 and nothing popped out to me what might have fixed the issue. Therefor I'm not sure how to proceed here, bug hunt for 7.0.13 or let it go in fav. of people updating to .15-1 (or up).
One thing that we could do anyway is improving the error/exception reporting of the tool, which has been requested a few times, really hope to find some time for that.

I got the same bug.
php version: PHP 7.0.16-3+deb.sury.org~xenial+1 (cli) (built: Feb 22 2017 10:05:52) ( NTS )

thanks @kcloze for reporting
proposed solution @ https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2556#issuecomment-282239409 @keradus how would you like to deal this?

require symfony/polyfill-xml

The configure with binary_operator_spaces is ok?

@kcloze I think it is ok, does it not work for you?

it's not working.

I used input
<?php
$params = [
    'code' => $code,
    'message' => $message,
    'timeStamp' => time(),
    'content' => $content,
];

output:
<?php
$params = [
    'code'      => $code,
    'message'   => $message,
    'timeStamp' => time(),
    'content'   => $content,
];

config:
  'binary_operator_spaces' => [
               'align_double_arrow' => true,
               'align_equals'       => true,
            ],

so this works for 2.1 for me.
Thanks @kcloze , this seems another issue with the fixer (this/first one was missing requirements).
Maybe you can report this as a new issue?
We would need code that you are fixing and the result (in text form, not screenshot pref. so people can copy-paste it).
The full configuration you use and/or command you run from the commandline.
PHP and PHP-CS-Fixer versions.

Sorry,I finded that it's working with vim editor,but not working in the vscode editor.
then, I changed vscode editor.fontFamily,it's ok!


Problems regarding to dataset downloading

It's challenging to distribute giant datasets like GigaSpeech without resorting to robust commercial cloud services.  It was roughly estimated that a single downloading of GigaSpeech will incur fees around 200 USD( from Amazon S3) and around 1000 CNY(from Aliyun OSS).
We don't want our users to pay such expensive fees and we are currently a non-profit group of volunteers, so the dataset distribution is hosted via Tsinghua University, and it is expected that the downloading channel may be crowded in early days of GigaSpeech release.
You can always rerun our downloading script to resume interrupted or incomplete downloading sessions, as long as the destination directory doesn't change.
In the last stage of our downloading script, there is a full-sweep of md5 check over downloaded resources, this should be the ultimate confirmation that you get everything right and intact.  If this stage fails, please rerun downloading script.
We hope our users can understand this and we are open to any possible complaints and suggestions to help us improve
Please report issues regarding to dataset downloading under this thread and this could be a time-saver for all future GigaSpeech users.

Best regards.

You consider torrents. If people will behave (which they never do, because you know, Internet), the burden can be relieved 10-20x after you get 5-10 seeders.
Some examples:

https://academictorrents.com/details/cc9dc56afd3055c7e0f021ec4f1824021558926c
https://academictorrents.com/details/95b4cab0f99850e119114c8b6df00193ab5fa34f
https://github.com/snakers4/open_stt/#via-torrent

You can consider torrents. If people will behave (which they never do, because you know, Internet), the burden can be relieved 10-20x after you get 5-10 seeders.
Some examples:

https://academictorrents.com/details/cc9dc56afd3055c7e0f021ec4f1824021558926c
https://academictorrents.com/details/95b4cab0f99850e119114c8b6df00193ab5fa34f
https://github.com/snakers4/open_stt/#via-torrent

Thank you Alex, will try.

Hopefully things will get better after the first few days. But we'll also try to add more hosts.

By the way, looks like the download hangs now:

There are too many people downloading at the same time... we are exploring a few ways, including adding new hosts. Will update here.

I really do appreciate your efforts on collecting and sharing such a great dataset, thank you very very much for this.
But unfortunately it is almost impossible to download the dataset right now.

Still working on it... Please allow us some time.

+1 for torrents... Downloading at 4.30KB/s

Added one host, and another is on the way. If you re-run your download script, it should be able to figure out the best download host: https://github.com/SpeechColab/GigaSpeech/pull/71

@chenguoguo Just added a new fast host, anyone can:

stop your current downloading
pull this repo
re-run downloading script

The new script should be able to resume your previous download(with much better speed), and repair any detected corrupted/out-dated files on your local disk.

Can you please create separate download for test set? Cause it is impossible to download full dataset right now.

@RuslanSel We will add the download for test set only. But why is it impossible to download the full dataset right now? If you pull the latest repo, you should be able to download the dataset in one day or so. Let us know if you are observing something else.

My current speed is less than 100KB/s.

Which host is this? Are you using the latest download code?
On Sat, Aug 7, 2021 at 1:57 PM RuslanSel @.***> wrote:

My current speed is less than 100KB/s.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SpeechColab/GigaSpeech/issues/60#issuecomment-894706089,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS6EGTQIEUX3A4RFJG5YD2LT3WM33ANCNFSM474MXZEQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

https://freedata.oss-cn-beijing.aliyuncs.com
The latest download code.

Traffic rush is over, the GigaSpeech dataset downloading has been smooth for quite a while, closing.


library(NMF) failed

When i load NMF package,it failed,the information is :
Error: package or namespace load failed for ‘NMF’:
.onAttach failed in attachNamespace() for 'NMF', details:
call: if (n > 2) n <- n - 1L
error: missing value where TRUE/FALSE needed
Could you give me some advice,many thanks!

Hi,
This is unrelated to maftools. It appears that your NMF installation has issues. Maybe you will have to try re-installing it.


If a driver is removed/renamed on an update it should not cause a fatal error

Describe the bug
If during the development of a Printer Application driver names get changed the Printer Application will not start up with the state file of the previous version. A printer with a driver name which does not exist causes a fatal error.
A "normal" user does not know what is going on.
To Reproduce
Start an arbitrary Printer Application and create a printer. Then stop the Printer Application.
Either

Edit the printer entry in the state file, modifying the driver name to a non-existing one.

Or

Edit the source code of your Printer Application, modifying the name of the driver you have used for your printer, rebuild.

Now start the Printer Application again. It will error out and not keep running. You can only make the Printer Application start again if you undo the above step or edit the state file removing the offending printer entry.
Expected behavior
The Printer Application starts up normally, with some useful treatment of the offending printer:

The auto-add callback is performed on the printer to automatically find the best replacement under the currently available drivers (no re-discovery of the printer required, the device ID is saved in the state file). This is the solution I recommend.
The Printer Application is started regardless of the missing driver but the printer is stopped, to conserve its job history at least. The web interface should offer to change the driver manually.
The Printer is deleted. BAD: The job history gets lost.

Very important is that there should never be caused a fatal error by the content of the state file, as otherwise it is a big problem for non-programming-aware users.

@tillkamppeter I definitely want to address this, but this shouldn't be a common occurrence. I think all we can do is try the auto-add callback if the named driver doesn't exist, as a backup. And if no matching driver can be found, delete/drop the printer.

@tillkamppeter After thinking about this for a bit, a printer application can do the auto-detect stuff in its driver callback, and if it has a bad/unknown driver name then "do the right thing" by auto-detecting or using a generic driver of some sort. The only thing it can't do is pause the printer (because the printer is in the process of being created), and honestly since there is no way to change the driver after creating the printer there is no way to "recover" if the driver is truly gone. Moreover, the job history is very limited (on purpose) and I don't want to special-case supporting a non-working printer that cannot be resumed and does not have any of the required attributes for a printer.
So, what I'm going to do for this is:

Update papplSystemLoadState to not error-out/crash on a broken printer, but to gracefully continue with the bad printer dropped.
Update the documentation to make it clear that this is the expected behavior and what a developer can do in their driver callback to deal with any errors.

[master e716d24] Fix crashes when loading state, and document expected behavior (Issue #87)


Use kube-openapi to generate swagger schema

What this PR does / why we need it:
Will generate more correct from k8s perspective swagger schema, that probably will fix part of python auto-generated client issues.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1227
Special notes for your reviewer:

[x] Use builder.BuildOpenAPISpec to build the spec based on go-restful
[x] During code-generation, dump the resulting spec as json
[ ] Install the generated docs to a go-restful endpoint (wiring code exists in vendoring too)

Release note:

Use kube-openapi to generate swagger schema

Signed-off-by: Artyom Lukianov<EMAIL_ADDRESS>

@rmohr I still do not understand the last point(Install the generated docs to a go-restful endpoint), can you please clarify it, and also I do not sure if we still need swagger-ui endpoint.

@pkliczewski FYI


What is zng's story?

Hi there!
I've been trying to coordinate efforts across the Rust UI ecosystem, and I recently came across your project. I was wondering what the background/history/context of zng is (presumably you're using it for something?), and also what your plans are going forwards. It appears to have a long history of several years, and to be well developed and featureful, but only recently published / open sourced? Perhaps you are planning an announcement sometime soon?
Please don't feel pressured to reveal anything you're not comfortable revealing. But I would love to know more if you're happy to share.

P.S. I am also interested in why you have a fork of webrender (which is how I found zng). Is it just that the base crate wasn't being published frequently enough? Or have you actually made substantive changes? The Servo project is putting more effort into trying to maintain it's crates, so perhaps we can get you back on the upstream version soon?

Hello, thanks for your interest!
We(me and my brother) started developing this to learn Rust, we always intended to share this project, we just waited until we where sure that it has a solid useful core before publishing. If we had published the first API design that would have stopped us from experimenting.
I'm not using it for anything serious yet, I intend to use it to replace two closed source WPF/C# apps that I maintain, it is still not good enough for those, but it is close.
To be honest I'm kind of obsessed with developing it, I definitely will continue working on it, close all the 'todo' issues, maybe enable sponsor and see how that goes.
I'm planing to make an announcement in social media soon, maybe after the next release, I need to figure out how to do that.

About Webrender, I only forked to publish, if they start publishing again I definitely would prefer using the original. The only changes I made were to pass the publish checks and the security audit (a false positive). They would also need to start publishing 'swgl', I don't believe they ever did.


Travis fix

Drop support for old PHP 5.3
Add PHP 7.2 and 7.3 to travis
Fix coverage and build badges in readme

You're the best, happy ❤ day pulzarraider

Coverage decreased (-0.5%) to 95.27% when pulling 6521772ccfd575059bd031d19d3d009d3df0bc24 on pulzarraider:travis_fix into 190639f4f734b6310f5ff238040f0325e5567ecc on kevinkhill:master.

Thanks, you too :smirk:


Feature Request: add ignore argument

Hello,
I am request an ignore argument that ignores the errors and tries extract whatever text the program can extract.
Why: It is useful in #45 and #44 as well as in other places where the program errors out.
Thank you.

I will see if it is feasible.


Error occurred after update

An error occurred after the following update  15c7c2ba2410df1ec3ce2fc327efd660a01db307
When I reverted the update, it worked fine.
Traceback (most recent call last):
  File "C:\Users\toyxy\StableAnimator\app.py", line 263, in <module>
    face_model = FaceModel()
                 ^^^^^^^^^^^
  File "C:\Users\toyxy\StableAnimator\animation\modules\face_model.py", line 11, in __init__
    self.app = FaceAnalysis(
               ^^^^^^^^^^^^^
  File "C:\Users\toyxy\StableAnimator\venv\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Hi, I find that there is a bug in the automatic download process of Antelopev2 and have updated the README file with the solution.

This issue is related to the incorrect path of Antelopev2, which is automatically downloaded into the models/antelopev2/antelopev2 directory. The correct path of Antelopev2 should be models/antelopev2. You can run the following commands to tackle this issue:
cd StableAnimator
mv ./models/antelopev2/antelopev2 ./models/tmp
rm -rf ./models/antelopev2
mv ./models/tmp ./models/antelopev2


Hover on Rectangle

First thanks for this handy library.
Second, this might not be an issue at all in which case I apologize.
I have created a jsfiddle here : http://jsfiddle.net/qyva4m18/
The issue is that on hover, the rectangle which is supposed to hover gets cropped. Is there a way to set the property so that it does not get cropped. Please note that this jsfiddle is a simplified use case of what I am trying to do.
Thanks

I'm guessing you will want to append the 'hidden rects' after all the initial rects have been added, as display is by DOM ordering

I cleared and fixed your fiddle: http://jsfiddle.net/qyva4m18/2/
Call front() to move it to the front (which just does what @ibrierley already mentioned: It put it at the first position in the dom)


Optionally avoid global constructors

Introduce a chip::Global wrapper for managing global objects with non-trivial constructors / destructors.
The behavior of the wrapper can be configured via two CHIP_CONFIG_GLOBALS_* options in the platform config header (the default is current standard C++ behavior). By setting CHIP_CONFIG_GLOBALS_LAZY_INIT = 1 globals can instead be constructed lazily (note this is done in a thread-unsafe way as synchronization is assumed to be external).
Adopt chip::Global in the Darwin platform layer and for key core singletons and enable CHIP_CONFIG_GLOBALS_LAZY_INIT = 1 on Darwin.

Can you describe the problem this is aiming to fix?
Wouldn't it be a lot cleaner to put them inside another object? e.g. something like #19784
You can also get lazy initialization by making them function scoped static variables.

You can also get lazy initialization by making them function scoped static variables (this way is also thread safe).

@mspang See previous discussion in this PR, which GitHub helpfully hides by default.


Passing protocol through instantiation code

Passing through protocol option to SocketIo instance.

Fixes https://github.com/thoov/mock-socket/issues/201

Thanks @davidturissini. This looks good


ImmutableDenseMatrix

DenseMatrix should be renamed to MutableDenseMatrix and ImmutableDenseMatrix should throw for methods that change the matrix.

Fixed in #129


Frontend/display name

displays custom name

ok. username is v, display name is vivi -->

Changed it like this. Thats what you meant?

Yeah seems good!


Update some default AMQP options

Changes:

Mark retry test as pending due to "random" failures.
Allow all events to have timeout set with eventTimeToLive. Don't set a default timeToLive.
Allow heartbeats to have a timeout specified. This is because it was possible for a heartbeat packet to expire before it was handled by the service, causing an erroneous "unavailable" state.
Use a new connection for each purge. Closing the connection eliminates the need to use the forceExit with Jest
Remove some unnecessary timeouts in the testing suite.
Remove messageTtl option for internal packets, this could cause unexpected behaviours. autoDelete is a more elegant solution to the problem messageTtl was trying to solve in this case. (The queues and messages will be deleted when the node stops.)

Coverage increased (+0.005%) to 98.281% when pulling 98c2a121da0c2b4c3f5bceb63ffe6d53cb8b1605 on Nathan-Schwartz:amqp-time-to-live into a249e1659995ca90d5da31ce82dd52fc50c63b6c on ice-services:master.

Thank you!

@icebob Thanks for the quick release! 🙂


Support brokered service without backing application

As discussed in https://github.com/spring-cloud/spring-cloud-app-broker/issues/285, this PR provides the ability to exposed a brokered services which has backing services but not backing applications.

Thanks a lot for the contributions @gberche-orange!
Left a few comments.
Would be really nice if you could add a ComponentTest to demonstrate it, here is an example of one: https://github.com/spring-cloud/spring-cloud-app-broker/blob/master/spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceComponentTest.java#L45
Also, do you mind rebasing and applying the formatting we have in https://github.com/spring-cloud/spring-cloud-app-broker/tree/master/src so that we can merge this in when ready?
Thanks a lot!

Thanks a lot @Albertoimpl for your review and comments! I hope to have time available to address them  within a week, I'll update the issue.

sorry @Albertoimpl for the delay in allocating time to this PR.
I have added a Component test in 45e60b5.
Regarding formatting, I have configured my intellij as discussed in https://github.com/spring-cloud/spring-cloud-app-broker/pull/291#issuecomment-553298237 and have explicitly reformatted all changes in 830fbf5. Please let me know if you see remaining invalid formats.

Thanks a lot for the improvements!

Thanks for your kind review and merge @Albertoimpl !


Updating default email template

looks good. @mcardosos does this conflict your changes?

Nah, 🐑 it


[QUESTION] How can we use dependencies in timing middleware?

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
from fastapi import FastAPI
from fastapi_utils.timing import add_timing_middleware
app = FastAPI()
add_timing_middleware(app, record=logger.info, prefix="app", exclude="untimed")

Description
Here (https://fastapi-utils.davidmontague.xyz/user-guide/timing-middleware/), a potential timing middleware is provided which accesses route and execution time.
But, what if I have a custom dependency I have written (say called GetCurrentUserID) and in the timing logs I also want to include the user id? I don't seem to be able to use dependencies in middleware as previous issues have pointed out since middleware is directly managed by Starlette. But, my goal of printing something like
'User ID ABCDEFG accessed route /api/print, runtime: 10 ms' can't be a dependency either since I need to record the time before and after execution to know run-time. One possible solution is to split them up, where a dependency prints 'User ID ABCDEFG accessed route /api/print' and a timing middleware prints 'route /api/print, runtime: 10 ms', but I'd like to ideally have them in a single line. Any thoughts around this? Would really appreciate insight!
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.70.0
Python Version
Python 3.7.10
Additional Context
No response

You can use request.state https://www.starlette.io/requests/
request is reserved parameter in FastAPI and accessible in every route.
from fastapi import FastAPI, Request, Response
import time

app = FastAPI()

@app.middleware("http")
async def add_process_time_header(request: Request, call_next):
    start_time = time.time()
    print(request.state.__dict__)
    # {'_state': {}}

    response: Response = await call_next(request)
    process_time = time.time() - start_time

    print(request.state.__dict__)
    # {'_state': {'user_id': 20}}

    return response

@app.get("/")
async def root(request: Request):
    request.state.user_id = 20
    return {"message": "Hello World"}

Thank you! Would you know any way that the dependency can be auto attached to the request? I currently have >20 endpoints and thus manually setting request.state seems very error-prone. Would really appreciate any insight!

Sorry, it was obvious for me ;)
You probably already have dependency (you mentioned it in first post), I would add the code there.
from fastapi import Depends
...

def test_dep(request: Request):
    request.state.user_id = 120
    print("I'm in test_dependency and I also have access to request param as in route in prev example")

@app.get("/")
async def root(test_dep=Depends(test_dep)):
    ...

Ahh makes sense, so a dependency attached on the main app that injects the user_id into the request state. Thanks!

To inject additional params into the timing middleware, you'll need to customise the timing middleware. I wanted to add a common id across different timing logs.
I modified the add timing middleware to add a trace id and modified the TimingStats object to store the trace id and use it in the output logs.
def add_timing_middleware(
    app: FastAPI, record: Optional[Callable[[str], None]] = None,
) -> None:
    """
    Adds a middleware to the provided `app` that records timing metrics using the provided `record` callable.
    Typically `record` would be something like `logger.info` for a `logging.Logger` instance.
    """
    metric_namer = _MetricNamer(app=app)

    @app.middleware("http")
    async def timing_middleware(request: Request, call_next: RequestResponseEndpoint) -> Response:
        metric_name = metric_namer(request.scope)
        trace_id = str(uuid4())
        request.state.trace_id = trace_id
        with _TimingStats(metric_name, record=record, trace_id=trace_id):
            response = await call_next(request)
        return response

class _TimingStats:
    def __init__(
            self, name: Optional[str] = None, record: Callable[[str], None] = None, trace_id: Optional[str] = None,
    ) -> None:
        self.name = name
        self.record = record or print
        self.trace_id = trace_id

   ...

    def emit(self, note: Optional[str] = None) -> None:
        """
        Emit timing information, optionally including a specified note
        """
        if not self.silent:
            self.take_split()
            cpu_ms = 1000 * self.cpu_time
            wall_ms = 1000 * self.time

            message = "TIMING: Request {trace_id}" if self.trace_id is not None else "TIMING:"
            message += " | Wall: {wall_ms:6.1f}ms | CPU: {cpu_ms:6.1f}ms | {name}"

            if note is not None:
                message += " ({note})"

            self.record(
                message.format(
                    trace_id=self.trace_id,
                    wall_ms=wall_ms,
                    cpu_ms=cpu_ms,
                    name=self.name,
                    note=note,
                ),
            )

For clarity, I use request.state.trace_id elsewhere in the request lifetime to allow linking other logs to the timing logs.

This wouldn't work so well for modifying it with request based data. If you added the timer onto the request.state (as is done in the fastapi_utils.timing middleware). You could then inject the user_id into the timer once you hit your dependency.


Transform.GetAsync() not deserializing a percentiles aggregation with a script

NEST/Elasticsearch.Net version: 7.12.1
Elasticsearch version: 7.11.2
Description of the problem including expected versus actual behavior:
I have a transform with an aggregation like this
            "my_median": {
                "percentiles": {
                    "script": "doc['field'].value * 2",
                    "percents": [
                        50
                    ]
                }
            }

But calling Transform.GetAsync() on that transform returns an object with the Script field as null

Steps to reproduce:

Create transform with a median aggregation based on a script
call Transform.GetAsync()
inspect returned object

Expected behavior
The Script field should be non-null and match the transform definition

Hi @karoberts. I have just tried to reproduce this and I'm unable to. The following code writes the original script to the console.
var putResponse = client.Transform.Put<MyType>("testing", t => t
	.Source(s => s.Index("my-index-01"))
	.Destination(d => d.Index("my-index-20"))
	.Frequency("5m")
	.Pivot(p => p
		.Aggregations(a =>
			a.Percentiles("my_median", pc => pc.Script("doc['counter'].value * 2").Percents(50)))
		.GroupBy(g => g.Terms("a-term", term => term.Field("location.keyword")))));

var getResponse = client.Transform.Get(r => r.TransformId("testing"));

var script =
	getResponse.Transforms.First().Pivot.Aggregations["my_median"].Percentiles.Script as InlineScript;

Console.WriteLine(script?.Source ?? "Not found");

It's possible your use case is more complex. Are you able to provide the code necessary to reproduce the issue and I'll dig into it? Thanks!

Here is the a template definition json (I added this via postman)
    "source": {
        "index": [
            "my-index"
        ],
        "query": {
            "bool": {
                "must": [
                    {
                        "exists": {
                            "field": "zip"
                        }
                    }
                ]
            }
        }
    },
    "pivot": {
        "group_by": {
            "key": {
                "terms": {
                    "field": "zip"
                }
            }
        },
        "aggregations": {
            "with_filter": {
                "filter": {
                    "range": {
                        "recording_date": {
                            "gte": "now-6M/M",
                            "lt": "now/M"
                        }
                    }
                },
                "aggs": {
                    "percentiles": {
                        "percentiles": {
                            "script": "doc['sales_price'].value * 2",
                            "percents": [
                                50
                            ]
                        }
                    }
                }
            },
            "no_filter": {
                "percentiles": {
                    "script": "doc['sales_price'].value * 2",
                    "percents": [
                        50
                    ]
                }
            }
        }
    },
    "dest": {
        "index": "test"
    },
    "settings": {
        "max_page_search_size": 5000,
        "docs_per_second": null
    }
}```

My use case uses the one with the filter, but I tried both ways

var templateInfo = await _elasticClient.Transform.GetAsync(t => t.TransformId("test").ExcludeGenerated());
log.Warn((templateInfo.Transforms.First().Pivot.Aggregations["with_filter"].Aggregations.First().Value.Percentiles.Script as InlineScript)?.Source);
log.Warn((templateInfo.Transforms.First().Pivot.Aggregations["no_filter"].Percentiles.Script as InlineScript)?.Source);

both of those log null

Thanks for confirming @karoberts. I'll keep this open to track whether this can be safely implemented in 7.x.

@karoberts Apologies for the long delay on this one. I have added a serialisation fix which adds support for the string-based scripts that will go out in the next release.


how to create user variable

First of all I'm not programer, so I try to understand but I'm limited.
I create a user variable, type string, copy and paste the code and modify to my needs:
{     "MQTT":{         "devIdx" : 40,         "inTopic" : "persiana/sta",         "outTopic" : "persiana/cmnd",         "slope" : 1,         "intercept" : 0,         "limits" : "0,0",         "type" : "dimmer"     } }
I get error in domoticz: not a valid date notation (DD/MM/YYYY)
Any help will be apreciated

Hi!
By the means of the string you have posted I presume you are trying to send a command to a dimmable light.
Have you configured a dimmer item inside domoticz and have you triggered the node-flow to read the user variables from domoticz?

Not yet, because domoticz does not let me save the string.

Have you set the type of the variable to string?

Yes, variable type string.
If I copy exactly the code I get error: string is too long.
If I take out a part (limits), I get error of invalid date.

Sorry about everything, it seems it was a domoticz issue, found the solution and it's working
[https://www.domoticz.com/forum/viewtopic.php?t=27123]

No problem! I'm glad you found a solution to the problem!


DataSet.band(): creating wrong "_banded" name for auto-suffixing

... the .format() uses new_name in this case which will be None in this case, resulting the name None_banded...

picked up in #763


Expanded | Collapse

Once expanded, How can I collapse?
e.g. I want to collapse on tap on label like toggle. Tap to expand and again tap to collapse.
Even I want different font and colour for read more button.

sorry for the late reply
And I'm going to add a button.
Do you want the text, expand button, and collapse button to have different fonts and colors?

I added that function. #4


Feature request: "Table" widget

This is really cool, but do you know what would make it cooler? A table widget!  Maybe something like https://github.com/olekukonko/tablewriter

+1

Seems pretty nice, I will keep that in mind!

:+1:

Well I'm working on a download manager and have created something like a table.


bump homebrew version to 0.16.1

Issue #, if available:
Description of changes:
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


To do much I need to know my account ID in sandbox

Where do I find my coinbase/gdax account ID?

@bdelaney using this library you can use the accounts service and do GetAllAccountsAsync() which will return all of your accounts with the ids

Thanks, I should have realized it is obscure and not been looking in the web pages for it.


Change min_temp for TH to -40

Hi Alex.
Something I stumbled over by accident.
I've used automations to adjust freezer temps based on various condition or button presses for some time, however recently noticed this wasn't working.  I can only presume something since the last update to v3.7.3.
I was getting the following error when running the service calls manually
Provided temperature -16.0 is not valid. Accepted range is 1 to 99
The climate sensor attributes were as follows in the developer tools (States tab)
hvac_modes:
  - "off"
  - heat
  - cool
  - dry
min_temp: 1
max_temp: 99
target_temp_step: 1
current_temperature: -16.2
target_temp_high: -14.5
target_temp_low: -16.5
friendly_name: Chest Freezer
supported_features: 386

The model in question is TH16R2

I've noticed in the climate.py file there is a setting for 'min-temp: 1' on line 31.  For my purposes I changed this to min_temp: -20 which has fixed my issue, however I wonder if this is something can can be rolled into the next update without breaking stuff for others?

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.8.0


Fix CMake checks for Apple Clang 11.0 on macOS 10.15

Fix CMake checks for Apple Clang 11.0 on macOS 10.15
Related #8490

Please add also this patch:
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index d89d5a15b..55859d1f8 100644
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -244,7 +244,7 @@ else
 fi
 if [ "$os" = "osx" ]; then
     if [ "$vcpkgAllowAppleClang" = "true" ] ; then
-        CXX=clang
+        CXX=clang++
     else
         selectCXX CXX || exit 1
     fi

since it's necessary for proper build

Thanks @cenit, I aded it to PR branch.

Thanks @cenit, I added it. I did a force push because I used another email in first commit.

This works for me

Thanks for the PR!


Terminal Process "node down

Visual code studio version: 1.51.1
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 18.7.0
Steps to Reproduce:

Install Pymakr extension, add node JS on the system if not already there
Close VS Code and re-open it
3 litle windows pop-up on the bottom left screen simultaneous

Does this issue occur when all extensions are disabled?: Yes

It looks like your report is missing some important information, See this wiki page for more info on how to report actionable terminal issues.
/label "needs more info" integrated-terminal


[wxwidgets] Upgrade to 3.1.3

 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.:x: cnbatch sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for the PR!
Could you also change the Version: field in the CONTROL file?

Sure

Thanks!


Update index.md - VSTS rebranding to Azure DevOps

@galbantow Thank you for for fixing these. I am merging this PR and it should be live soon.


[frature] expose api to run single file or project

VSCode Version: Code - Insiders 1.10.0-insider (50f8848e44029ffabf0727de49cd18ae4069b4fe, 2017-02-17T13:43:37.461Z)
OS Version: Darwin x64 16.5.0

Now vscode can easily debug project, or single file(with extension support), but for a single file or project, there looks no way to run it. In sometimes run is more useful than debug.
A suggestion, expose CMD+r to run a single file use language default build tool, for python , user can set use python2 or python3 and add some command line variables through config file, for go, default use go run ${currentFile} also with more command line variables defined in config file.

Checkout my extension, vscode-prompt-debug. I made it for debug sessions, but it should work for normal run configurations as well (currently untested; afk at the moment. Let me know if you try and it works/doesn't)
You should just be able to include ${command.prompt-debug.resolve} in your launch configuration.

Yes this can be achieved by extensions as @rozzzly points out.
The api is already available, more about that can be found here https://github.com/Microsoft/vscode/issues/285 and https://github.com/Microsoft/vscode/issues/6248

It's run single file or project, not debug.
With debug, I should set bp in some lines, but with run, we can run it and see result immediately without debug steps.

It is still possible via an extension more details https://github.com/Microsoft/vscode/issues/2780
In short 'noDebug': true should just be added to the launch configuration

@leaxoy

I made it for debug sessions, but it should work for normal run configurations as well

You should just be able to include ${command.prompt-debug.resolve} in your launch configuration.


[Feature] Dynamic variants

This introduces a new set of features in stitches called dynamic variants.
The purpose of this is to allow dynamic props to apply CSS values at static, server, and client-side.
Example of dynamic spacer component.
export const Spacer = styled("div", {
  $$spaceHeight: 0,
  $$spaceWidth: 0,

  minHeight: "$$spaceHeight",
  minWidth: "$$spaceWidth",

  variants: {
    size: (size: Stitches.ScaleValue<'space'>) => {
      $$spaceHeight: size,
      $$spaceWidth: size,
    },
    height: (value: Stitches.ScaleValue<'space'>) => {
      $$spaceHeight: value,
    },
    width: (value: Stitches.ScaleValue<'space'>) => {
      $$spaceWidth: value,
    }
  }
})

It looks like there are still some conflicts to work out. Starting with a clean copy of stitches.d.ts and restoring your modifications (if any) from there might be easier. Let me know if you’d like some additional help. 😄

Okay so I finally got the typings to work properly, now I just have to ensure the tests run perfectly.
Well, I have a discussion with myself about the arguments of a function, but I realize this also includes utility functions.
So lets say we have a function e.g.
variants: {
    size: (value: Stitches.ScaleValue<'space'>) => ({
        width: value,
        height: value
   })
}

This should result in a component with the prop size="$small" a single argument. But what if a function has more than a single argument like.
variants: {
    translate: (x: number, y: number) => ({
        translate: `${x}px, ${y}px`
   })
}

Currently, the typings only support the first argument as prop value (this also applies to utils), but should we look into allowing for multiple arguments through translate={[100, 200]}?
It will not be a part of this pull request, but a general question about the future of utility functions and dynamic variants.

@ch99q this is going to be great addition to stitches, i can think of so many cases where this functionality would be useful, brilliant work :) @peduarte pls bring it into the lib when the time is right 😃

It is indeed a good feature. We're having lots of internal discussions about the future of stitches.
Right now, this isn't a priority. Stitches goal has always been to have as minimal runtime as possible. This increased the potential amount of runtime so we have to think about how it fits in the roadmap, how it affects performance, etc.
But it is being considered!

I really hope this or something like it makes it into the lib soon! It feels like the final piece of the puzzle.
Something I've found while working on a few sites with Stitches is that it's quite cumbersome to fudge this behaviour by creating a wrapper functional component and using a css prop in that wrapper — forwarding refs, merging the css prop, getting prop types for tokens etc. Because of this, use of the css prop becomes a necessary evil.
Understand the performance concern though, especially after coming from theme-ui where there are some serious performance issues on complex pages. Performance wise, is this much different from using the css prop? Is the main concern just that this encourages too much dynamic behaviour? I'd argue that the lack of this feature encourages overuse of the css prop in general — if I have to define some one-off flex settings for a Box via the css prop, I may as well add my padding/border/font/color styles there too. At least with this proposed feature, we can be more intentional about which dynamic values a component can receive, and I assume it could be optimised more easily by the library as well, since you could potentially regenerate styles + memoize on a per-variant basis.
Congrats on v1! 🎉

Really looking forward into this, since I'm building my entire design system with stitches, having dynamic column sizes is really a hassle without anything like dynamic variants.

Noted 🙏 and thank you!

I'm on board with the @fmal @manspaniel and @darklight9811 arguments! Stitches have already proven to be one of the best, if not THE best, ways to create design systems.
And while I understand that runtime is important and it's one of the greatest features of Stitches, I believe that the smashing majority of users fall in love with Stitches because of the awesome DX your team was able to achieve, and dynamic variants vastly improve the DX for a lot of use cases that, without it today, we are limited to what we can achieve (I think a great example is the Stack component for Radix UI, I've seen that in order to achieve a fully-featured component, the team had to create every possible variant for flex-direction values, justify-content values, align-items values, etc.). And this limitation breaks a lot of that great DX Stitches has because we can only go so far before hitting a wall, and dynamic variants definitely would have improved the DX on that Stack component or for the use case that @darklight9811 just gave us.
Just adding another argument in favor of this feature even if we compromise a little on the runtime

@lukemorales yes, but I kinda understand if they decide not do it, but making my own design system, I made a util that would build everything for me, so it wasn't a deal breaker after all.

@darklight9811 yeah, I would understand as well if they decide not to do it, but the reason I believe the smashing majority of users wanna use Stitches is because of the awesome DX, the awesome runtime is a plus, and dynamic variants definitely improves DX for components like this: (Flex Component in Radix Design System)[https://github.com/radix-ui/design-system/blob/master/components/Flex.tsx] to be written like this:
export const Flex = styled('div', {
  boxSizing: 'border-box',
  display: 'flex',

  variants: {
    direction: (value: TypeForCSSPropertyValues<'flexDirection'>) => ({
      flexDirection: value,
    }),
    align: (value: TypeForCSSPropertyValues<'alignItems'>) => ({
      alignItems: value,
    }),
    justify: (value: TypeForCSSPropertyValues<'justifyContent'>) => ({
      justifyContent: value,
    }),
    wrap: (value: TypeForCSSPropertyValues<'flexWrap'>) => ({
      flexWrap: value,
    }),
    gap: (value: Stitches.ScaleValue<'space'>) => ({
      gap: value,
    })
  },
  defaultVariants: {
    direction: 'row',
    align: 'stretch',
    justify: 'start',
    wrap: 'noWrap',
  }
});

@lukemorales one thing that I didn't see how they are going handle is the type of the generated variant, since they do this automatically because of the predefined scope, how they would generate that for unknown values?

@lukemorales one thing that I didn't see how they are going handle is the type of the generated variant, since they do this automatically because of the predefined scope, how they would generate that for unknown values? And most dynamic variants would still need a constraint for that (both type and callback), would that be handled manually by the programmer? If so, that would kinda sacrifice a part of DX to get another part.

Maybe I'm not understanding what you're trying to describe, but I don't see how this would be different from the config utils Stitches already has?

Never mind, just noticed they could use the argument type to type the prop. For example, if you defined a column dynamic variant, just use the parameter for the type (value: 1 | 2 | 3 | 4) and constraint it with a clamp method inside it.

I would like to say theres possibilities to improve the runtime performance, with features line predefined arguments (Making it generate styles for an array og argument possibilities).
Also the runtime performance is only affected when changing arguments in runtime.
When hydrating the application in SSG or SSG it will generate the styles at that point.

Just started getting my feet wet with Stitches, coming from a rather large emotion + styled-system codebase. One of the first things I was also looking for was a way to map variants to a whole scale of theme tokens or valid set of css properties without having to manually map every individual value so that we could easily port over our primitives. As far as I can tell there is currently no way to achieve this, which would make this a rather cumbersome migration (and possibly also maintenance) effort.
I think this is exactly what this proposal is suggesting so definitely a thumbs of from me as well.

@pleunv love that createScaleVariant concept – that's exactly the kind of API I'm after (see #816) 💪

@pleunv replied here https://github.com/modulz/stitches/discussions/816#discussioncomment-1423958

@emadabdulrahim This is the same pattern I came to before realizing there was a request for dynamic variants. I feel like having this in the docs as a recipe would be great.
While shorthand could be nice, I don't personally feel like I'm missing anything from stitches using static objects as long as I can use my token definitions as types.

Something I've found while working on a few sites with Stitches is that it's quite cumbersome to fudge this behaviour by creating a wrapper functional component and using a css prop in that wrapper — forwarding refs, merging the css prop, getting prop types for tokens etc. Because of this, use of the css prop becomes a necessary evil.
Understand the performance concern though, especially after coming from theme-ui where there are some serious performance issues on complex pages. Performance wise, is this much different from using the css prop? Is the main concern just that this encourages too much dynamic behaviour? I'd argue that the lack of this feature encourages overuse of the css prop in general — if I have to define some one-off flex settings for a Box via the css prop, I may as well add my padding/border/font/color styles there too.

So I was struggling with this kind of usage a bit at first; but since I'm creating a whole design system, with extensive theme tokens (including over 30 size/spacing tokens), I was ultimately able to use variants to cover most cases, without requiring this kind of runtime-centric solution.
For instance, here is a bit of code I'm producing, via Stitches-powered primitives (NOTE: my variants are based on styled-system):
      <Row alignItems="center">
        <Box h="7" w="6" bg="primary9" radiusLeft="4" mr="px" />
        <Box h="7" w="6" bg="secondary9" radiusRight="4" mr="3" />
        <Heading bold flat h="7" mb="1" color="secondary9">
          {title}
        </Heading>
      </Row>

Which produces this output:

I've created some helper functions to help me generate sequences of variants, without writing them all out, but having them fully typed — e.g.:
    // Produces a sequence of 12 numbered fontSize variants, starting at 1
    fontSize: generateVariantSequence<Size>(12, (n: number) => ({
      fontSize: `$${n}`,
    })),

You can even extend it in some ways that really simplify some complex cases. For instance, I created a Grid primitive that's insanely powerful, yet really simple (and fully typed):
      <Grid columnFit="11" p="5" radius="2">
        {keys.map((key: number) => (
          <GridItem
            key={key}
            bg={`primary${key as ColorNumberKey}`}
            color={`textPrimary${key as ColorNumberKey}`}
            p="4"
          >
            {inner}
          </GridItem>
        ))}
        {keys.map((key: number) => (
          <GridItem
            key={key}
            bg={`secondary${key as ColorNumberKey}`}
            color={`textSecondary${key as ColorNumberKey}`}
            p="4"
          >
            {inner}
          </GridItem>
        ))}
      </Grid>

Which produces this output:

The heavy lifting columnFill variant is coded as:
    columnFill: generateVariantSequence<FillVariant>(
      15,
      (n: number) => ({ gridTemplateColumns: `repeat(auto-fill, minmax($sizes$${n}, 1fr))` }),
      4
    ),

If you like the DX of something like Chakra, but want the performance and customizability of Stitches, I think this is a great solution.

Between something like what I'm doing, and the creation of your own primitives — which can map additional dynamic props to css={{...}}, I personally think it's best to actually discourage this feature (no offense to @ch99q's excellent and hard work).
One might argue and say, "well, you don't need to use it, even if they put it in", which is true, but...

That's more JS that will get bundled and shipped, which many folks would have no use for.
It will encourage using Stitches in a way that, to my understanding, was against to whole original premise. At that point, it becomes harder to argue your team should switch to Stitches for performance reasons, when there's a usage of it that will degrade performance as well (you'd have to introduce conventions against that... it's a whole mess).
That usage will feel more natural to anyone coming from more dynamic, and less performant, styling libs, so Stitches would be contributing to the issue, instead of promoting better alternatives.

Anyhow, that's my 2 cents.

@LucasUnplugged really nice examples, would you mind sharing a codesandbox with the implementation of generateVariantSequence, the Grid component etc? Would be a nice reference for anyone wanting to leverage the full power of variants 😃

@LucasUnplugged really nice examples, would you mind sharing a codesandbox with the implementation of generateVariantSequence, the Grid component etc? Would be a nice reference for anyone wanting to leverage the full power of variants 😃

Yeah, I'd be happy to! I'll post here once it's ready.

As promised, here's a sandbox showcasing some of what I mentioned above; it's not a super complex example, and the typing isn't perfect (I spent quite a while on this in my design system), but it should do the trick:
https://codesandbox.io/s/stitches-variants-showcase-wtr3i?file=/src/App.tsx

I followed @emadabdulrahim 's idea and created this demo, though I'm not sure it's a good idea as it will generate a huge style for each component, as I have to use initial to prevent nested inherits which I think is an issue in @emadabdulrahim 's demo

const { config } = createStitches({
  theme: {
    colors: {
      primary: 'red',
    },
    space: {
      1: '',
      2: '',
      3: '',
    },
  },
});

type CSS = Stitches.CSS<typeof config>;

export const getVariant = <
  P extends keyof typeof config.theme,
  T extends keyof typeof config.theme[P],
  R extends Record<T, CSS>,
>(
  prop: P,
  map: (tokenValue: `$${T}`) => CSS,
): R => {
  const values = Object.keys(config.theme[prop]) as T[];
  return values.reduce<R>(
    (acc, tokenValue) => ({ ...acc, [tokenValue]: map(`$${tokenValue}`) }),
    {} as R,
  );
};

const Flex = styled('div', {
  boxSizing: 'border-box',
  display: 'flex',
  variants: {
    color: getVariant('colors', (tokenValue) => ({
      color: tokenValue,
    })),
    gap: getVariant('space', (tokenValue) => ({
      gap: tokenValue,
    })),
  },
});

// <Flex color="primary" gap={2} />

@elsangedy seems like TypeScript has some issues with your example: https://codesandbox.io/s/priceless-shape-6i7ku?file=/src/App.tsx
❤ the solution by the way

const { config } = createStitches({
  theme: {
    colors: {
      primary: 'red',
    },
    space: {
      1: '',
      2: '',
      3: '',
    },
  },
});

type CSS = Stitches.CSS<typeof config>;

export const getVariant = <
  P extends keyof typeof config.theme,
  T extends keyof typeof config.theme[P],
  R extends Record<T, CSS>,
>(
  prop: P,
  map: (tokenValue: `$${T}`) => CSS,
): R => {
  const values = Object.keys(config.theme[prop]) as T[];
  return values.reduce<R>(
    (acc, tokenValue) => ({ ...acc, [tokenValue]: map(`$${tokenValue}`) }),
    {} as R,
  );
};

const Flex = styled('div', {
  boxSizing: 'border-box',
  display: 'flex',
  variants: {
    color: getVariant('colors', (tokenValue) => ({
      color: tokenValue,
    })),
    gap: getVariant('space', (tokenValue) => ({
      gap: tokenValue,
    })),
  },
});

// <Flex color="primary" gap={2} />

This was mt approach
import "./styles.css";
import type * as Stitches from "@stitches/react";
import { styled, theme, CSS, css } from "./stitches.config";

const { colors } = theme;

type TColors = {
  [K in keyof typeof colors]: { $$color: string };
};

const ColorsVariants = css({
  variants: {
    color: {
      inherit: {
        $$color: "currentColor"
      },
      ...Object.keys(colors).reduce(
        (prev, curr) => ({ ...prev, [curr]: { $$color: "$colors$" + curr } }),
        {} as TColors
      )
    }
  }
});

const SvgIcon = styled(
  "svg",
  {
    $$size: "1em",
    $$color: "$colors$black",
    lineHeight: "1em",
    verticalAlign: "middle",
    width: "$$size",
    height: "$$size",
    // here we actually select the path data with css
    "& path": {
      stroke: "$$color"
    },
    variants: {
      size: {
        xs: {
          $$size: "10px"
        },
        xl: {
          $$size: "$sizes$xl"
        }
      }
    }
  },
  ColorsVariants
);

type TSvgIcon = {
  css?: CSS;
};

const MyCoolIcon = (
  props: TSvgIcon & Stitches.VariantProps<typeof SvgIcon>
) => (
  <SvgIcon
    viewBox="0 0 10 10"
    fill="none"
    xmlns="http://www.w3.org/2000/svg"
    {...props}
  >
    <path
      d="M8.74997 1.25L1.25 8.74997M1.25 8.74997L8.75 8.75M1.25 8.74997L1.25003 1.25003"
      stroke="currentColor"
      strokeLinecap="round"
      strokeLinejoin="round"
    />
  </SvgIcon>
);

export default function App() {
  return (

Hello CodeSandbox

Start editing to see some magic happen!

      <MyCoolIcon size="xs" color={{ "@xs": "inherit", "@sm": "red" }} />

  );
}

https://codesandbox.io/s/thirsty-satoshi-bbggf?file=/src/App.tsx:0-1652
I will try yours because seems more clever in matter to type the key of the locale token

in case anyone is interested in this, I did a little experiment to showcase how to handle highly dynamic variants using css custom properties and inline styles. you can check it out here


Process compressed log files stored on aws s3

Can BindPlane Agent directly process compressed log files stored on aws s3?

Hey @ColinSu20240311 - I don't think there's currently a way to accomplish reading compressed files out of an AWS S3 bucket. The AWS Rehydration receiver we have is specifically for loading logs/metrics/traces generated from the S3 exporter.
I think it's probably worthwhile to file an issue and ask upstream in the collector-contrib repository if you haven't yet - it's possible someone has a workaround I'm just not familiar with.
If you have any future questions, feel free to ask again here, or if you need a faster response I'd recommend asking in our slack channel!


Asset Subdirectory only - without the project files

Hy,
nice job so far, thanks for publishing and maintaining this package. :)
Is there a reason why we need the Unity project folders (Assets & Project Settings)?
What would speak against just using the SteamVR directory?
So it could be used as a git submodule, which is not possible with the current structure of the repository!?
kind regards
M

I just took what was included in the SteamVR plugin on the Asset Store.  If it'll make it easier to strip off that top level, then I can do that in the next update.


[Feedback Request] Portal-UI | Support Trusted Launch for MGMT-VM

If a gallery image is used in the portal UI rollout that has Trusted Lunch enabled, the creation of the MGMT VM fails because it does not support Trusted Launch. Would be great if this is supported in the future so that full deployment with Trusted Launch is possible.

@florian-ried a PR was merged recently to use a different source image for the mgmt VM and apply the same security settings of the session hosts to it.

@florian-ried may you provide the inputs of that MGMT-VM-XX deployment?

Of course :)
inputs.zip


Add workflow for making a PR based on user filing issues

We can copy what Charlie did here:
https://github.com/biopragmatics/bioregistry/blob/main/.github/workflows/new_prefix_pr.yml
This triggers:
https://github.com/biopragmatics/bioregistry/blob/main/src/bioregistry/gh/new_prefix.py

user submits an issue using KCDL DSL
gh action periodically runs ocrawl (analogous to new_prefix_pr.yml)
ocrawl executes changes and modifies the src ontology file (analogous to new_prefix.py)
make a PR (covered in the workflow above)

Also by this workflow


.focus() on vs-input inside vs-popup not working

Having this template code:
<vs-popup classContent="popup-example" title="Tarea" :active.sync="popupIsActive">
  <vs-input id="taskDescription" class="inputx" placeholder="Descripción de la tarea" v-model="taskDescription"/>
  <br>
   <vs-button
          id="setFocusButton"
          @click="setFocusOnInput()"
          color="primary"
          type="filled"
   >Set Focus on Input</vs-button>
</vs-popup>

I would like to set the focus on the vs-input control, each time the popup is loaded.
For that I have this watch:
  watch: {
    popupIsActive() {
      if (this.popupIsActive) {
        console.log(document.getElementById('taskDescription'));    // <==  the input exists in DOM
        document.getElementById('taskDescription').focus();         // <== but the focus is not set
      }
    },
  },

But the focus is not set.
Otherwise, if I click on the button, the focus is set:
 methods: {
    setFocusOnInput() {
      console.log(document.getElementById('taskDescription'));    // <==  the input exists in DOM
      document.getElementById('taskDescription').focus();         //  <== this time the focus is set
   },
},

I presume it has something to do with the hooks of vs-popup component, but I'm not really sure.
If anyone could point me at the right direction I would really appreciate it.
Thanks!

Here is my working solution
<vs-input
     ref="email"
     placeholder="Descripción de la tarea"
     v-model="taskDescription"
 >
</vs-input>

here is my method
var input = this.$refs.**email**.$el.querySelector("input");
input.focus();


Disabled Email Capture fields in dashboard when using Guest Registration

Disabled Email Capture fields in dashboard when using Guest Registration
Added note to bottom of card to clarify
Resolves issue #389

@ZakMooney Two things:

Don't hide the controls when the reg. form is disabled. Just disable them. Except for merge reg fields and single-opt in.

The 'merge reg fields' option should be only be available if the splash is set to registration.

re enabled email capture fields
re enabled merge fields switch for just registration & MC single opt-in for just MC

disabled opt-in switches
removed registration message


Sia UI wallet not receiving coins

I just recently started mining Sia and got my wallet setup. Everything looks good and I have been receiving payments fine through the siamining.com. I am however missing a single transaction that won't show up on my wallet. It has since received a few other payments fine. The TX id is 5a007ead22d17de0b1864ea35ed729b9048ade665b276f2ad7b8ca5bb7d7799f and my specific transaction for 2177 coins is on output id https://explorer.siahub.info/hash/c1c7559dc4e08f949cdf279c45a81b3a0edabb44675bb517ed1ea57b33ddaaeb .  I have tried restarting my wallet with no success and running the consensus command in CLI shows that I am synced.  If I try to run the wallet sweep command it gives an error  "Seed: Reading seed failed: The handle is invalid" . Or if I click on the recover seed button in the wallet I also get an error showing "error when calling /wallet/sweep/seed: cannot sweep primary seed".
Sia version: 1.3.1
OS: Windows 7 Pro 64bit

Try this solution https://github.com/NebulousLabs/Sia-UI/issues/581#issuecomment-299747969

If you continue to need help I recommend you join the #Help channel in the Sia Discord.  The GitHub issues are not the appropriate or best place to ask for help unless you have a specific task for the Sia devs.  I'm going to close this issue since it doesn't have a specific action item for the devs and recommend you seek help through Discord.
I believe this is a relatively common issue that the devs are aware of and working on a comprehensive fix.  My understanding is that the SC are simply not being found by the wallet software when it scans the blockchain, they are putting in code that will occasionally rescan the blockchain to find orphaned transactions like the one you've shown.  The guys on Discord will know more.

Thanks to Bojak. I was able to resolve this issue with the trouble shooting that went on in the thread he pointed me to.


After upgrade from 2.08 to 2.1 one node became Unavailable

Rancher versions:
rancher/server or rancher/rancher: 2.1
rancher/agent or rancher/rancher-agent: 2.1
Docker version: (docker version,docker info preferred)
docker 1.7.3
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
Linux  4.4.0-1069-aws #79-Ubuntu SMP Mon Sep 24 15:01:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
AWS
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
HA rancher with 3 nodes
Steps to Reproduce:
After upgrade to rancher 2.1 one node shown as Unavailable in rancher UI, Status section in UI says that "Kubelet stopped posting node status." however kubectl describe node says different
kubectl describe node rancher02
Name:               rancher02
Roles:              controlplane,etcd,worker
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/os=linux
                    kubernetes.io/hostname=rancher02
                    node-role.kubernetes.io/controlplane=true
                    node-role.kubernetes.io/etcd=true
                    node-role.kubernetes.io/worker=true
Annotations:        field.cattle.io/publicEndpoints=[{"nodeName":"local:machine-t8gj9","addresses»:[«----»],»port":80,"protocol":"TCP","podName":"ingress-nginx:nginx-ingre...
                    flannel.alpha.coreos.com/backend-data={"VtepMAC":"da:aa:2b:d3:82:05"}
                    flannel.alpha.coreos.com/backend-type=vxlan
                    flannel.alpha.coreos.com/kube-subnet-manager=true
                    flannel.alpha.coreos.com/public-ip=<IP_ADDRESS>
                    node.alpha.kubernetes.io/ttl=0
                    rke.cattle.io/external-ip=----
                    rke.cattle.io/internal-ip=<IP_ADDRESS>
                    volumes.kubernetes.io/controller-managed-attach-detach=true
CreationTimestamp:  Tue, 17 Jul 2018 14:34:47 +0000
Taints:             <none>
Unschedulable:      false
Conditions:
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  OutOfDisk        False   Thu, 11 Oct 2018 18:19:58 +0000   Thu, 11 Oct 2018 15:55:28 +0000   KubeletHasSufficientDisk     kubelet has sufficient disk space available
  MemoryPressure   False   Thu, 11 Oct 2018 18:19:58 +0000   Thu, 11 Oct 2018 15:55:28 +0000   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     False   Thu, 11 Oct 2018 18:19:58 +0000   Thu, 11 Oct 2018 15:55:28 +0000   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure      False   Thu, 11 Oct 2018 18:19:58 +0000   Tue, 17 Jul 2018 14:34:47 +0000   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready            True    Thu, 11 Oct 2018 18:19:58 +0000   Thu, 11 Oct 2018 15:55:28 +0000   KubeletReady                 kubelet is posting ready status
Addresses:
  InternalIP:  <IP_ADDRESS>
  Hostname:    rancher02
Capacity:
 cpu:                2
 ephemeral-storage:  20263528Ki
 hugepages-2Mi:      0
 memory:             4045052Ki
 pods:               110
Allocatable:
 cpu:                2
 ephemeral-storage:<PHONE_NUMBER>4
 hugepages-2Mi:      0
 memory:             3942652Ki
 pods:               110
System Info:
 Machine ID:                 8c859f2bde9e41155bca40d2d85aebb5
 System UUID:                EC2D3C30-BCA1-CA37-F231-EAE802513AB0
 Boot ID:                    c9c5970f-24d5-4f09-99cc-f3990396107f
 Kernel Version:             4.4.0-1069-aws
 OS Image:                   Ubuntu 16.04.4 LTS
 Operating System:           linux
 Architecture:               amd64
 Container Runtime Version:  docker://17.3.2
 Kubelet Version:            v1.10.1
 Kube-Proxy Version:         v1.10.1
PodCIDR:                     <IP_ADDRESS>/24
ExternalID:                  rancher02
Non-terminated Pods:         (3 in total)
  Namespace                  Name                              CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ---------                  ----                              ------------  ----------  ---------------  -------------
  cattle-system              cattle-node-agent-9xzlw           0 (0%)        0 (0%)      0 (0%)           0 (0%)
  ingress-nginx              nginx-ingress-controller-d7tms    0 (0%)        0 (0%)      0 (0%)           0 (0%)
  kube-system                canal-wlhld                       250m (12%)    0 (0%)      0 (0%)           0 (0%)
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ------------  ----------  ---------------  -------------
  250m (12%)    0 (0%)      0 (0%)           0 (0%)
Events:         <none>

Some services in this node reports as Unknown in UI: cattle-agent, nginx-ingess-controller, canal. There is no any errors in logs for those services. We have tried to restart failed node but with no luck. Because of this we are unable to control our main cluster as UI says

This cluster is currently Provisioning; areas that interact directly with it will not be available until the API is ready.
Exit status 1, Error from server (ServiceUnavailable): the server is currently unable to handle the request

Well, it looks  this problem is related to our current RKE add-on install. So it seems that rancher updated himself from 2.0.8 to 2.1 as we have rancher:latest tag and this caused this problem. Is it safe to patch rancher deployment with rancher:stable tag?
As I understand, we need somehow to rollback to 2.0.8 and then migrate from RKE add-install. Such update to unstable state looks like a bug.

Thanks for the report.
Sorry about that. Please check https://github.com/rancher/rancher/issues/16012#issuecomment-428728986

Same issue here, 2 nodes saying Kubelet stopped posting node status. We're using the latest tag as well. Is there a way to rollback to 2.0.8 (no snapshots) and change the tag?
Or, would following this guide help?
I'd like to avoid having to reinstall Rancher


UpdateApp assigning a struct from a goroutine is not safe

The UpdateApp method on EurekaConnection starts a goroutine that periodically unmarshals a new Application value, and then assigns it wholesale to an Application that represented the previous version of that Eureka application.
Per my note in file net.go, such assignment is not safe without either synchronization or use of atomic store and load operations. It's possible for a goroutine reading the Application value submitted to UpdateApp to observe a corrupted value. Per The Go Memory Model,

Reads and writes of values larger than a single machine word behave as multiple machine-word-sized operations in an unspecified order.

Since we can't orchestrate all the reads of the Application value submitted to UpdateApp, I suggest instead that UpdateApp offer a single-valued buffered channel from which interested clients can receive updates.

Now that #37 is merged, should we consider deprecating the UpdateApp method?
That would involve a change to the documentation, as we'd have to leave the method in place to avoid stranding existing callers.

Yep, we'll definitely want to leave that method in place, but the example in the readme should be updated as well as the documentation for that method in connection.go


"Command failed: tox -a 'tox' is not recognized as an internal or external command, operable program or batch file." error when attempting to run any tox commands

when pressing F1 and run "Select and run tox environment", the following error appears:

this may be caused by the fact that tox is installed inside my pdm project's venv, not globally. if that's the case, it should use vscode's python interpreter path to locate the tox executable. this is how most other extensions work

I believe it should also be able to run test from an arbitray path (even outside the interpreter).
Many tools support both. For instance black defines the black-formatter.path and black-formatter.interpreter options.


REQ to ROUTER-DEALER to REP multiprocessing issue

I'm using the REQ - REP pattern with a router-dealer in between to handle multiple requests to a single REP service. It seems that the router/dealer pattern is not working with multiprocessing.
Threading works:
thread = threading.Thread(target=worker_thread, args=(worker_uri,))

multiprocessing does not:
thread = multiprocessing.Process(target=worker_thread, args=(worker_uri,))

worker_uri = "tcp://<IP_ADDRESS>:10103"

Typical router/dealer pattern:
workers = context.socket(zmq.ROUTER)
workers.bind(...worker uri ...)
socket = context.socket(zmq.DEALER)
socket.bind (... socket uri ...)
zmq.device(zmq.QUEUE, socket, workers)

Until I can figure this out, I have to use threads with the router/dealer then python multiprocessing pipes for the handoff to the processes.

Copy-pasta mistake, my fault:
Bad:
        context = zmq.Context.instance()

Good:
        context = zmq.Context()


VRF verification tests on-chain

@KelvinThai I am going to reassign to myself and work on this later.


WireGuard stops working after pi upgrade

I’m running ubuntu on my pi 4 version B. Whenever I update my pi, WireGuard stops functioning and I have to uninstall/reinstall pivpn. I’m guessing this has something to do with the kernel being updated.
I attempted to restore a backup I made with pivpn prior to it no longer working, but still couldn’t get things working again. I’ll probably have to start from scratch and have to readd all my clients again.
Is there an easier way to do all this or is this just how it is with WireGuard on pi?
thanks.

Both Raspbian 10 and Ubuntu 20.04 (and later) have been shipping the WireGuard bundled with the kernel for quite some time now. I've not tested Ubuntu lately but on Raspbian I haven't experienced a breakage on kernel upgrades in the last six months or more. Are you using a custom kernel? Perhaps post the debug log here the next time it breaks so we can attempt to figure out.

Important! Avoid using rpi-update if you plan to run WireGuard. rpi-update installs development kernel that don't always come with matching kernel headers, which are required to successfully compile the module.
Reinstall latest kernel and kernel headers: sudo apt install --reinstall raspberrypi-kernel raspberrypi-kernel-headers.
Reboot into the new kernel: sudo reboot.
Recompile WireGuard kernel module: sudo dpkg-reconfigure wireguard-dkms.
Restart WireGuard (you should get no output): sudo systemctl restart wg-quick@wg0.
Run pivpn -d and verify that all checks are [OK].

https://github.com/pivpn/pivpn/wiki/WireGuard#how-to-i-fix-a-broken-wireguard-update

If by "pi upgrade" you mean running "rpi-update".

Nope. I've only ever ran sudo apt upgrade on it as I run Ubuntu for Pi.

Mh okay, running here on raspberry os lite without any prolems since months.. :)

At most you need to do what @TheUntouchable suggested, definitely you don't need to reinstall PiVPN. Can't say much besides wait for the issue to come up again and then take a look.

I've had a similar problem after updating Ubuntu.. I solved it reloading systemctl's deamon with sudo systemctl daemon-reload and sudo systmectl restart<EMAIL_ADDRESS>


Less configuration

Hey @mzaccari, I like the gem! I was about do create something similar, because I couldn't find a gem that offered "chore" type migrations, which generally just need to be run once.
What I don't get for these types of migrations is the ability to run the migration multiple times (e.g. on every deploy). At that point, is it really a migration? Seems more like a regular rake task. If you removed this ability, the code would be much simpler and the need for configuration goes away. The lib I wrote that was similar to this, just found all the rake tasks that were namespaced under "chores" and saved it to the db after a successful run (like "schema_migrations"). Saving it to a yaml seems unreliable... it can't get checked in to version control, cause then migrations wouldn't be run again on each developers laptop, or in production. So if it's ignored, seems like it could get overwritten or removed in production, depending on the deploy setup.
I need a simple migration gem that you can just drop in and go. So I was wondering how open you are to modifying this one to be "zero config" and focus specifically on chore type migrations?
I'm more than willing to help out with PRs as well.

Hey @ridiculous, thanks for looking at this, I really like what you outlined.
The every option of running tasks multiple times was just an experimental item I added when I threw this together. I agree that it does not add much value and can be removed.
I think the zero-configuration approach of using a specific namespace is nice. I may look at an alternative name for chores, as it sounds like something that is periodically done. Perhaps migrations would work? I am open to any suggestions here.
And yeah, I went with YAML initially just to get something working. Persisting to the database is definitely where I think this gem should head to.
To answer your question - I am very open to modifying the gem. I've got some free time coming up later this week and should be able to get most of these items knocked out, including adding rspec tests.

Awesome! :sparkles: :sparkles: I actually like what you already have as the namespace: rake tasks:migrate. I had it setup to just exclude the migrate task from the rest of the namespaced tasks. But I think that reads nicely.

Removed the every option here in #2

Hey @ridiculous, I was able to spend some time on this gem and got these items done:

Changed the name to rake-task-migration
Removed the config and manifest files
Added the database backup
Added support for custom namespace and table name
Added rspec tests
Hooked into travis-ci and codeclimate

When you get a chance please try out the updates and let me know what you think.

Wow, good progress! I'll try it out this weekend. The readme says this is how you run it:
rake tasks:migrate
But is that correct? Because the default namespace is "migrations", so intuitively that would be the way to call it ... Also, I noticed you didn't quite update the directory structure correctly when renaming. It should following the Rubygems naming convention.
How to do you feel about adding this to the engine so that migrations are seamlessly integrated into the parent app, and we can skip the rake task_migration:install:migrations step:
initializer "rake.task.migrations.register_migrations" do
  config.paths["db/migrate"].expanded.each do |expanded_path|
    Rails.application.config.paths["db/migrate"] << expanded_path
  end
end

What about using rake task:migrations as the way to run it? Makes the most sense based on the name...

Thanks. I will look into the naming conventions this weekend.
As for the rake task, the namespace is arbitrary and can be configured. I prefer to follow the example other migrators use with name:migrate
$ bundle exec rake db:migrate
$ bundle exec rake seed:migrate
$ bundle exec rake tasks:migrate

I'm open task:migrate as a possible alternative.
Thanks for the db migration suggestion, I've added it as issue #10

cool, sounds good! :+1:


Minor fixes

Fix the problem with APIs with @
Fix the problem with "number" type to map "double"
Fix the problem with "object" type to map Dart "Object"
Updates the README with instructions with all dependencies and steps to run generate the code

TODO:

Fix problem with keywork "default" as attribute on Open API
Fix inheritance on generated models (should be mapped by "allOf")
Fix problem with oneOf and anyOf generating "List" and "Null" types (should map to the most ancestor class of the inheritance)

And it is also necessary to upgrade the version to 0.3.1 in pubspec.yaml after the fixes.

And also add this changes to changelog.md

Sorry, my editor is set to 120 as everybody around here uses wide screens.
On Tue, 13 Dec 2022 at 11:10, Roman Laptev @.***> wrote:

@.**** commented on this pull request.
In swagger_parser/lib/src/parser/parser.dart
https://github.com/Carapacik/swagger_parser/pull/6#discussion_r1047008135
:

@@ -29,8 +29,7 @@ class OpenApiJsonParser {
return;
}
}

if (_jsonContent.containsKey('swagger') &&

It is necessary to roll back the changes to this file (parser.dart).
Because in the project the length of the lines is 80 characters.
—
Reply to this email directly, view it on GitHub
https://github.com/Carapacik/swagger_parser/pull/6#pullrequestreview-1215245649,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFFM2UEIQJ6GJXXXR26O2LWNBKRDANCNFSM6AAAAAAS3XWEDE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Pablo Santiago Sánchez
ZCE ZEND006757
p<EMAIL_ADDRESS>/ @.***
+353838691070
"Pluralitas non est ponenda sine necessitate"

Rollback file changes and it can be merged

Sorry, my editor is set to 120 as everybody around here uses wide screens.

Just did it. :-) As I said, was accidental commit.
On Tue, 13 Dec 2022 at 11:56, Roman Laptev @.***> wrote:

Rollback file changes and it can be merged
Sorry, my editor is set to 120 as everybody around here uses wide screens.
—
Reply to this email directly, view it on GitHub
https://github.com/Carapacik/swagger_parser/pull/6#issuecomment-1348365710,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFFM2W6Z4BFYNOPEY2ZPJDWNBP5PANCNFSM6AAAAAAS3XWEDE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Pablo Santiago Sánchez
ZCE ZEND006757
p<EMAIL_ADDRESS>/ @.***
+353838691070
"Pluralitas non est ponenda sine necessitate"

Plz fix errors with tests


Update enr version

Bump enr to latest version.

ah rip, breaking change, looks like a builder rename

ah rip, breaking change, looks like a builder rename

yepp, I'm on it. tbh, I outsourced compiling to ci this time, but will have new hw soon.

depends on https://github.com/gakonst/ethers-rs/pull/2741

cc https://github.com/paradigmxyz/reth/issues/6006

waiting now on ethers-rs to cut new release


Min disk is 40G in Huaweicloud

Update boot from volume size to 40G to march min disk of image
in Huawei cloud.
Related-Bug: theopenlab/openlab#214

recheck

recheck

recheck

recheck

recheck

recheck


int8 calibration for batch > 1

Hi @rmccorm4,
I would like to ask some advice on int8 calibration. I've had no trouble building explicit batch engines where the batch > 1 with fp16 and I've managed to get int8 explicit batch engines built where the batch = 1. However, int8 calibration seems to not work for batch > 1. It calibrates without errors or failures, and my demo app runs without errors so it's getting hard to debug. Do you have any advice? I've tried building the cache with batch = 1 and then using that to build an engine of batch > 1, and it seemed to work but I haven't been able to replicate that particular result.

Hi @maidmentdaniel ,
The int8 code in this repo is pretty outdated - I would encourage you to refer to Polygraphy's INT8 sample. The API is very intuitive to use: https://github.com/NVIDIA/TensorRT/blob/master/tools/Polygraphy/examples/api/04_int8_calibration_in_tensorrt/example.py

Thanks a lot for the pointer. I'm not quite sure I'm ready to update TensorRT and Cuda yet.

What version are you currently running? Also, the tensorrt NGC containers are a good way of trying different versions without always having to update host dependencies: https://ngc.nvidia.com/containers/nvidia:tensorrt


add DNS record for subdomain

marketplace.digital.gov.bc.ca

request additional A record to point to ingress IP for OpenShift (GCPE current Admins)

Related Tasks

add wildcard SSL to *.digital.gov.bc.ca (renewal July 22, 2022)
generate a CSR for marketplace subdomain
install certificate in OpenShift
replace reverse proxy Caddy config to 301 redirect /marketplace/* to marketplace.digital.gov.bc.ca/*
update values for ORIGIN and PATH_PREFIX in the application

update KeyCloak values
update deployment values

update relevant documentation on bcgov/digital.gov.bc.ca
roll out changes

https://github.com/bcgov/digital_marketplace/pull/323


proto_descriptor_set: export ProtoInfo with all deps

This allows proto_descriptor_set to depend on other
proto_descriptor_set targets.

Could we get this merged then?

I'd rather not merge in workarounds like this. rules_proto is the first things proto rule authors might look in. Seeing the workarounds here propagates them to all other repositories.

Alright. So how shall we proceed? Should we add a (native or starlark-builtin) proto_common.merge(ProtoInfo ...infos), similar to java_common.merge(JavaInfo ...infos)?

ProtoInfos are not very happy to be merged. :) That's because the aspects used in lang proto libraries expect to have proto_library.deps -> proto_library structure. That is ProtoInfo returned from a rule, should represent just proto_library and ProtoInfos returned from rules in deps.

Closing, stale


while mineralcount > mincount, create unecessary sell orders that drain your credits

It feels like commie bot creates a sell order for the mineral whenever it is over a specific count. No further checks are in place to stop it from continuously doing it if a selling order for it already exists. Making you repay the market fee for the unchanged selling order every single time it creates the same sell order. Leaving you with no credits and like a hundred active sell orders.

Luckely it doesnt drain it because if after 30 days the market fee that is left gets paid back but I had this one time aswell.

Finally fixed!