Retrieving rules with language+territory locales (e.g. en-US)

When loading CLDR JSON data into cldr.js, I have my number formatting rules inside a language+territory locale code, like so:
{"main":{"en-US":{"identity":{"version": ...
This is found in the main/en-US/*.json files of the full CLDR JSON data set.
Calling Cldr.main(path) causes a problem, because at https://github.com/rxaviers/cldrjs/blob/master/src/main.js#L137
I believe it's trying to lookup the path solely by language, and not the language+territory locale (in this case, en-US).
I've had to hack my code to duplicate the 'en-US' branch of the JSON into 'en' in the meantime, but this won't scale if we need to support more than one locale.

Lot has happened on cldr-users mailing list and basically the conclusion is: Mark Davis said (not with these words) that giving an arbitrary locale ID, the recommended and only process to deduce its respective bundle (reliably) is through Language Matching. The Fixing Inheritance Doc shows a summary of the existing problems with inheritance lookup, including what has been raised here.
Mark Davis also said:

That being said, often people don't understand language matching, and so we are in the process of adding more information so that there is a direct mapping from between locale IDs that are always considered to be "identical" on a deep level, like en-GB and en-Latn-GB

While it's clear there's upcoming improvements to the specification, it's still not clear to me how that will look like.

@patch @rxaviers - so this is on the CLDR agenda for this week.

Hi everyone,
Find a solution for this problem at https://github.com/rxaviers/cldrjs/pull/26/files. Verbose information at https://github.com/rxaviers/cldrjs/blob/fix-17/doc/bundle_lookup_matching.md.
Please, I would very much appreciate your comments.

Looks good.

Thanks @scottgonzalez for the review.

For the record, "make it clear that the recommended methodology for Bundle lookup is to use Language Matching." http://www.unicode.org/cldr/trac/ticket/8067


validate: add checks for interfaces

Check if the interface provided:

exists in the gathered facts (thus on the system)
is active
has an IP address (depending on ip_version )

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1600227
Signed-off-by: Sébastien Han<EMAIL_ADDRESS>

jenkins test pipeline


Slow compilation of certain operation files

Click to expand!
Issue Type
Build/Install
Have you reproduced the bug with TF nightly?
No
Source
source
Tensorflow Version
2.4.0
Custom Code
Yes
OS Platform and Distribution
Linux Ubuntu 20.04
Mobile device
Not applicableapplicable
Python version
Not applicable
Bazel version
Not applicable
GCC/Compiler version
clang14
CUDA/cuDNN version
Not applicable
GPU model and memory
Not applicable
Current Behaviour?
Compiling certain ops takes too many time.
Here is a table with measurement of 10 slowest files:
The longest 10 tasks being:

* [673513 ms]: tensorflow/core/kernels/gather_op.cc
* [624861 ms]: tensorflow/core/kernels/argmax_op.cc
* [576809 ms]: tensorflow/core/kernels/resource_variable_ops.cc
* [526177 ms]: tensorflow/core/kernels/conv_grad_input_ops.cc
* [404275 ms]: tensorflow/core/kernels/bias_op.cc
* [400613 ms]: tensorflow/core/kernels/batch_matmul_op_real.cc
* [395665 ms]: tensorflow/core/kernels/cwise_op_select.cc
* [381854 ms]: tensorflow/core/kernels/matmul_op.cc
* [379893 ms]: tensorflow/core/kernels/conv_ops.cc
* [340674 ms]: tensorflow/core/kernels/cwise_op_equal_to_1.cc

These measurements were done on `Intel(R) Xeon(R) Gold 6338 CPU @ 2.00GHz`.
Out internal build system, being a heterogenious cluster, might schedule these compilations on older CPUs, where single compilation can take up to 15 minutes according to out measurements.

It looks like simply splitting macro instantations into multiple files will allow running compilations on parallel.

I will provide `gather_op.cc` split as an example.

Standalone code to reproduce the issue
I am omitting -I and -D flags for the sake of brewity.
I believe that internal build system is able to provide the same statistics as well

clang++-c -m64 -O3 -g -ggnu-pubnames -fexceptions -fno-common -fuse-init-array -fcolor-diagnostics -faligned-allocation -fdebug-default-version=4 -ffunction-sections -fdata-sections -fopenmp=libomp -fopenmp-version=52 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mcx16 -std=c++20 -w -Wno-everything $(file)

### Relevant log output

_No response_</details>

Hi, @georgthegreat
Apologize for the delay and I see you have submitted PR #59504 from your end to address slow compilation of certain operation files and it will be taken care by concerned team once that PR got merged after following the PR procedure. Thank you for all the hard work and valuable time you put in that and I really I appreciate it. Thank you!

Hi, @georgthegreat
I have re-opened this issue because submitted PR #59504 is still in progress. Thank you!


Ben/wip/gha fedabipkgdiff

Try a second time to add some fedabipkgdiff tests.
I have this on my reading list to work out the problems.

@woodard I can take a look / debug this to help tomorrow!

@woodard I don't understand what you are trying to do - I wouldn't bring in that wrapper around essentially running the same thing that was already there. It adds complexity and only saves a little time of not installing the package. I would restore tests to how they were before.

So far what I have been doing is mostly diagnostic and I expect once, I really get a clear understanding of the problem then I will back out most of these "hammer" changes. If you look at https://github.com/woodard/libabigail/pull/36/commits/4c3bd58ef62203ef35240ce0507508d0a6246a7a https://github.com/woodard/libabigail/pull/36/commits/463abb0ddc5b564452932a0092595c5e27575fdb I tried to make sure that the dependencies are there. By putting in hard paths, I was able to tell that there is some sort of path problem. The python-unversioned-command rpm should provide a /usr/bin/python -> /usr/bin/python3 link.
So right now I can see that I have two problems:

the path isn't setup correctly, I suspect that I will also need to add a LD_LIBRARY_PATH as well. I am not sure but I think that this will need to be setup in some sort of env block in the yaml.
That got me to the place where something is missing that provides the koji config for fedora. I haven't figured out where that is coming from yet. My system seems to have it while the container does not. I need to figure out where that is coming from. There is the koji.read_config on line 51 of fedabipkgdiff, I need to track that back.

If you rely on Koji it means you can't extend this testing to another OS, something to think about.
Here is someone else setting it up in GitHub actions if it helps! https://github.com/containerbuildsystem/koji-containerbuild/blob/master/test.sh

Relying on koji in this case is not a problem. We are simply using Fedora to provide a broad swath of code written in different styles and in a handful of languages as handy test suite of real world code to verify that libabigail is operating correctly. It is sample data.
Once libabigail operates reliably on fedora as a set of sample data, then I would like to introduce additional sample data. In particular, IIUC you have a build of E4S built with -g and thus with DWARF. This will include code from several compilers that are not represented in the fedora sample data and some of the HPC codes are extremely old or extremely cutting edge both of which can be challenging for libabigail.


Initialize the scrw scrh memory

Optionally, both these lines (added by this pr)
	self.Memory[1048572] = 32
	self.Memory[1048573] = 32

and these (which were already there before)
	self.ScreenWidth = 32
	self.ScreenHeight = 32

in ent.Initialize could be replaced with self:Setup(32,32) and it'd do the same thing with less code
however this pr will also work fine

Yeah, should be fine.


FxCop analysis/refactor

This PR is an ongoing effort to apply what I've found in FxCop. The process is:

Add FxCop to projects
Run build
Sort Warnings ascending
Address the Warning as completely as possible given an understanding of the code's context
Commit for that one warning
Go back to step 2 until all warnings are resolved

Some changes here might break interfaces that downstream dependencies assume exist (one clear case is Response.cs). We can handle assets that depend on Sia-Root in another iteration.

Ready for a final review.
Be advised that there are a few breaking changes to Sia.Gateway at this time, including renaming Sia.Shared to Sia.Core.
The process for resolving this and other breaking changes will, on Sia.Gateway, take the form of:

Update the submodule
Fix the build breaks
Replay the process used for this PR against Sia.Gateway to eliminate all FxCop warnings

This error in Travis CI hasn't happened previously. It looks like it's happening during dotnet restore ... Either a dependency has changed or a rebuild might solve this but I don't have access to launch another build at this point. Closing and reopening.


chore(Game/Short): drop SetTheory.PGame.listShortGet

It was deprecated during port on 2023-07-01

bors r+


Update getpercentpageviewed.md

Removing line break on line 116 that broke up "||" within s.handlePPVevents, which caused JS errors (and freaked Launch out).

@jkunz - I fixed this.


chore(main): release 1.0.0

:robot: I have created a release beep boop
1.0.0 (2024-02-27)
Features

initial commit (b55f0cc)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/FreakeyPlays/healthy/releases/tag/v1.0.0 :sunflower:


Community Notes

Describe the Feature
Call it Butterfly Watch. This was a good feature on Twitter.
Attachments
No response
Describe Alternatives
No response
Additional Context
No response

Please see #5783 for discussion of this :)


chore: re enable arb earns, format sett name logging

Codecov Report

Merging #310 (b742482) into develop (0417caf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #310   +/-   ##
========================================
  Coverage    42.41%   42.41%
========================================
  Files           22       22
  Lines         1634     1634
========================================
  Hits           693      693
  Misses         941      941


west.yml: update TF-M module manifest pointer to exclude NS tests

Update manifest pointer for the TF-M module,
so it excludes building the Non-Secure regression
tests (it should be TEST_NS=OFF by default).
Signed-off-by: Ioannis Glaropoulos<EMAIL_ADDRESS>

Need a +1 to get this merged, @microbuilder @galak  (The TF-M module PR is already in)


Ensure float operations in SoundSynthesizerEffects & CompassCalibrator.

Related PR, which includes files in codal-core like LevelDetectorSPL, and together with this PR it saves >400 bytes of flash:

https://github.com/lancaster-university/codal-core/pull/176

Edit: Also ensured float literals in a couple of other files to avoid implicit double promotion.

As the PR in codal-core has been merged, I've udpated target-locked.json to point to that commit and that shows the flash saving from having fewer/smaller math functions included in the build.


chore: set version to 0.8.0

I will perform a release after this merge.

CI failures: Looks like docker-compose vs docker compose at least, maybe other things behind it. :(


Update build-and-release.yml for Azure Pipelines

Waiting for the test of the publish pipeline to succeed before checking this in: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10749455&view=results


Added empty state message to projects list page

Notion
https://www.notion.so/6afc9500b2cc42af86be55f37894fb09?v=b4528f26f4424af7beaf036262796cb3&p=232cbdd6497b4f84b4e52506aad73811&pm=s
What

Add empty state designs for projects for both mobile and desktop views.

Before

After

@prasanthchaduvula Let's remove the search box from empty states.

@apoorv1316 Done


Concatenate kernels

Should handle casting the combination of a point array and a linestring array to a mixed array.

Should also (most simply) enable concatenating a chunked array of the same type to a contiguous array of the same type. E.g. in the Python bindings,
ChunkedPointArray.concatenate() -> PointArray


Error: While trying to resolve module chatgpt from file C:\Users\braintech\reactnative\ChatPlus\src\Screen\Home.js

Verify latest release

[X] I verified that the issue exists in the latest chatgpt release

Verify webapp is working

[X] I verify that the ChatGPT webapp is working properly for this account.

Environment details
node v18.13.0
"chatgpt": "^4.7.2",
windows 11
Describe the Bug
Error: While trying to resolve module chatgpt from file C:\Users\braintech\reactnative\ChatPlus\src\Screen\Home.js, the package C:\Users\braintech\reactnative\ChatPlus\node_modules\chatgpt\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (C:\Users\braintech\reactnative\ChatPlus\node_modules\chatgpt\index. Indeed, none of these files exist:

I see two potential problems with the limited amount of info this issues gives:

It looks like you're trying to import from a react native Home.js file. This will not work because chatgpt only supports Node.js, not react native. It is not meant to be used client-side.
Whatever build toolchain you're using doesn't seem to understand modern imports used by this package (as well as many other NPM packages).

I recommend using chatgpt only from Node.js servers and calling an API that wraps it from your react native application code.


remove coming soon on deletion api

🚀 Deployed on https://62f13ffa90132d06550392f7--cozy-fox-0defec.netlify.app


[ADAP-604] [Bug] 1.3.2 is showing as the latest tagged release. 1.5.1 should be.

Is this a new bug in dbt-snowflake?

[X] I believe this is a new bug in dbt-snowflake
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

Expected Behavior
1.5.1 is tagged as latest.
Steps To Reproduce
Look at https://github.com/dbt-labs/dbt-snowflake or https://github.com/dbt-labs/dbt-snowflake/releases.
Relevant log output
NA

Environment
NA

Additional Context
No response

@nevdelap thanks for reporting! we're also frustrated by this. we're tracking it here: https://github.com/dbt-labs/dbt-release/issues/73. the problem is that we're not exactly sure is what's happening which will make tackling this more challenging.
in the meantime I've manually updated the tag to reflect reality. cheers!

Cheers @dataders.

@dataders
it seems 1.3.0 is still tagged as latest


Fully implement all InsertBefore/InsertAfter overloads

Fixes problem where they wouldn't work with insertionPoint==nullptr.

@pgavlin PTAL

LGTM

@BruceForstall: the variadic template magic above is what I was wondering about the other day. Thanks @mikedn for figuring that out so I don't have to :D

@pgavlin updated PR. Changed range-based insert functions to also use common helper code.

Awesome!
Also, @mikedn: if you want to put together a PR to the LinearBackendIR branch that Bruce and I have been working in with the changes you suggest, we'd be happy to have it.

I'm not sure that meets my "easy to read/understand" bar, but it is cool...

@pgavlin I could do that but I think it's best to do such tweaks after LIR changes reach master, that PR is gigantic as it is...

Fair enough :)


11 feature please expose an

Adds an API for TR/AZ uppercase and lowercase operations. #11

The trait names need to change before this can be merged. They imply they only support lowercaseing


[MXNET-1195] Cleanup Scala README file

Description
The scala-package/README file is outdated and contains some stale information.
This PR aims to clean up the Scala README and also adds new information with regards to the inference APIs for Scala/Java as well as the new Memory Management system.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@lanking520 @andrewfayres @zachgk

@mxnet-label-bot [Scala, Java, Documentation]


Correct container re-use when highlighter is applying a base className

Highlighting was not detecting a reusable container if an extra class name was applied via the elementProperties configuration object. This is because the container comparison required the reusable container have all the classes... including the one about to be applied.
Restrict this particular check to only require class names to match the supplied elementProperties config setting.

I still need to do something about elementProperties, hence I haven't merged this yet.

No problems! A happy 2015 to you @timdown :smile:


Docs keybinding

Consider have docs that describe of all available key bindings.

Yes, absolutely needed IMO. I'm struggling to find them 🙈


Systemd tweaks

With Debian 8 using systemd, the cookbook needs some slight tweaking to handle it. Compatibility with other platforms in the .kitchen.yml is preserved.
I've replaced checking against node['platform_family'] with node['init_package'], overriding the varnish unit files in /etc/systemd/system/varnish*.service and added systemd-daemon-reload to ensure any changes made by the cookbook are picked up by systemd before Chef attempts to restart the service(s).

Hi there -- this appears to be failing tests, specifically the test-kitchen suite libraries-defaults-centos-66. I double-checked that master is still passing. It appears that with your changes, overrides to varnish parameters are no longer applied on CentOS 6.6.
I'm guessing it's broken because your PR makes all init-based systems use an Debian-centric path:
          if node['init_package'] == 'init'
            path '/etc/default/varnish'
            source 'lib_default.erb'

Whereas master allows centos and /etc/sysconfig/varnish:
        template '/etc/default/varnish' do
          if node['platform_family'] == 'debian'
            path '/etc/default/varnish'
            source 'lib_default.erb'
          elsif node['init_package'] == 'systemd'
            path '/etc/varnish/varnish.params'
            source 'lib_default_systemd.erb'
          else
            path '/etc/sysconfig/varnish'
            source 'lib_default.erb'
          end

Hi, I've pushed an additional commit which addresses that. Specifically:
          if node['init_package'] == 'init' && node['platform_family'] == 'debian'
            # Ubuntu < 15.04, Debian < 8
            path '/etc/default/varnish'
            source 'lib_default.erb'

Unfortunately in the systemd unit the ExecReload /usr/share/varnish/reload-vcl script doesn't seem to exist on CentOS7, so Varnish fails to reload on that platform. I can't immediately find if it's just in a different location, but it would appear it's not shipped in the CentOS package and it needs to be dropped off by the cookbook in that case?

@gsreynolds it appears there's a reload script shipped on centos 7:
[root@distro-libraries-centos-70 ~]# rpm -ql varnish | grep reload
/usr/sbin/varnish_reload_vcl

That's it added and passing now. Refactored it slightly as well. Should be good to go!

I'm seeing this pass on test-kitchen / vagrant, but one of the tests is failing when I run them in CI (using Debian 8 servers in the cloud instead of local VMs). Specifically:
         1) Service "varnishlog" enabled
            Failure/Error: expect(subject).to be_enabled
              expected Service "varnishlog" to be enabled
              env PATH="/sbin:/usr/sbin:/bin:/usr/bin" /bin/sh -c systemctl\ --quiet\ is-enabled\ varnishlog

            # /tmp/verifier/suites/serverspec/default_spec.rb:8:in `block (3 levels) in <top (required)>'

I ran in debug, and it seems to be using this provider:
https://github.com/chef/chef/blob/master/lib/chef/provider/service/insserv.rb#L48-L51
When I run those commands on Debian 8 in the cloud, they don't enable the service, according to systemctl is-enabled varnishlog.

Perhaps this is an issue with specific Debian 8 versions and systemd compatibility?

Not sure, just ran the suite that failed in https://circleci.com/gh/rackspace-cookbooks/varnish/320 (vendor-libraries-debian-80) locally in debug. It does pass but I did notice the following:

* service[varnishlog] action enable[2015-08-29T09:09:43+00:00] INFO: Processing service[varnishlog] action enable (/tmp/kitchen/cache/cookbooks/varnish/libraries/varnish_log.rb line 120)
[2015-08-29T09:09:43+00:00] DEBUG: Providers for generic service resource enabled on node include: [Chef::Provider::Service::Insserv, Chef::Provider::Service::Invokercd, Chef::Provider::Service::Debian, Chef::Provider::Service::Systemd, Chef::Provider::Service::Init

<snip thousands of lines of repeated systemctl list-unit-files output>

*[2015-08-29T09:09:45+00:00] DEBUG: Provider for action enable on resource service[varnish] is Chef::Provider::Service::Systemd
Synchronizing state for varnish.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d varnish defaults
Executing /usr/sbin/update-rc.d varnish enable
[2015-08-29T09:09:45+00:00] INFO: service[varnish] enabled
enable service service[varnish]

* [2015-08-29T09:09:44+00:00] DEBUG: Provider for action start on resource service[varnishlog] is Chef::Provider::Service::Systemd
[2015-08-29T09:09:44+00:00] DEBUG: service[varnishlog] already running - nothing to do
(up to date)

This is the same for service[varnish] and service[varnishnsca] as well. In the above output from the provider I'm seeing resolved for enable is Chef::Provider::Service::Systemd, not Insserv however?
(Possibly related: https://github.com/chef/chef/issues/3835)
(I've also just noticed there is now Debian 8.1 bento boxes, no change since it still passes for me locally)

@gsreynolds I'd recommend we drop debian 8/8.1 from the PR, merge that in, and then figure out the specific issue with Debian. I know you added that platform, so it's obviously important to you, but perhaps you can go with the unofficial support of it (since we think it works), and we'll add it in once testing is passing?

Agreed :+1:. Removed Debian 8 from .kitchen.yml. (Debian is in the test-kitchen platforms for our varnish wrapper cookbook anyway so ¯\(ツ)/¯ ). Another route might be to test in Ubuntu 15.04 but let's merge for now.

Thanks @gsreynolds! Merging a few more PRs that came in over the weekend, and then I'll do a release.


Optimized TopN query execution when dimension has only one value

TopNs frequently have just one value (usually Null). For this case, we can add an optimized aggregation method to BufferAggregator class, which aggreates into a single local variable and returns it. Such methods could be compiled much more efficiently (likely vectorized!) by Java than the more generic scanAndAggregate() versions, which assume many dimension values and store aggregates in indexed ByteBuffer.

Is there any reason not to use the bytebuffer anyway? It's already allocated for the query whether we use it or not, and if we use it, then we don't need an additional implementation of aggregation. It seems like this optimization could be done by making changes just to the topN engine and not to BufferAggregator.

@gianm I'm almost sure Hotspot won't be able to vectorize loop, which writes to ByteBuffer on each iteration. However to allow to write a really concise loop and vectorization this optimization should also be integrated with Cursor, it should be checked that cursor is not filtering and goes though the continuous chunk of memory.

Also since now we can use default methods in interfaces, it's not a problem to add such new method(s) to BufferAggregator, they could have default implementation:
ByteBuffer bb = allocate(aggSize());
init(bb);
for (value : cursor) {
  aggregate(bb, value);
}
return get(bb);

Oh, thanks for the example code, now I understand what you mean. Earlier I thought you meant this new method would process just one row. But it looks you meant to process the entire cursor.
Alternatively what do you think of vectorizing the cursor, so it can advance in chunks at a time and we can have aggregators aggregate over a whole chunk? Then they can still use a bytebuffer for storage without too much overhead, by extracting the aggregator state, aggregating a chunk into it, and then writing it back. "aggregating a chunk into it" will be the hot loop. Could also be nicer when aggregating multiple columns in the same query.

@gianm sounds good

And for CountBufferAggregator, it is not even a loop, it's O(1) getting the size of the block or the cardinality of the cursor.


Skip create panel when no Web Components on page

Hi @Matsuuu,
Thank you for creating this amazing tool.
I have folked and cloned the repo, and as I was walking thru the codes to get a better understanding how it works under the hood. I see this this TODO comment you left.
https://github.com/Matsuuu/web-component-devtools/blob/main/lib/devtools-init.js#L2
If I may work on that?
My thoughts process:

Upon document idle, check if there's any Web Components on page, it none, skip create panel
Though there is another scenario where no initial Web Components to start with, but the web page might render Web Components dynamically when user interacts with the page, so I think we should handle this as well by using MutationObserver?

Brandon

There are a few cases around this that would need some looking into:

Currently the devtool loads quite a lot of javascript even though the panel is not open. This is something we would want to prevent.

To prevent this, we would need to add some more code splitting, and have a really really minimal setup that runs in the background and only loads more code when the panel itself is opened.

The TODO comment is deprecated as I feel that the panel should load, even if there are no items on the page as they might appear dynamically.
I think some kind of an overhaul of the panel UI itself and therefore, code loading would be in place, and could be considered for the next major version of WCDT.

Cool. I will keep absorbing the codes and see if I can have any feedbacks for you.
Another note: I was testing WCDT using this tiny web components project of mine: https://guitar-metronome.netlify.app/, and some properties are not showing inside the panel, I will check this as well once I have a good grasp of the codes :)

Could you report the props not showing up with a clear re-production in a separate issue?

Sure thing, I will create a separate issue once I check and confirm that it's not caused by the codes of that web components project.


Adding functional test guidelines

Description
This adds guidelines for writing functional tests and what cases to cover. The content has already been reviewed and approved in a design meeting so the purpose of this PR is to add this info to our docs
Type of change

This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

Fixes: Partially addresses radius-project/radius#6301
Auto-generated summary

🤖 Generated by Copilot at f8e0452
Summary
📝🧪🚀

Moved two existing documents about functional testing to a new subdirectory and added a new document with functional test guidelines. The changes aim to improve the organization and clarity of the documentation for contributing code that requires functional testing.

Radius needs tests
Guidelines for features, scenarios
Autumn leaves of code

Walkthrough

Add a new document with guidelines for functional testing (link)
Rename two existing documents to reflect the new functional test category (link, link)

@sk593 @rynowak @nicolejms I think it' a good time to put this topic back on top. Let me know what you think.

Per discussion with @sk593 - this is stale. She's going to talk to @vinayada1 and create a new PR that's updated.


How to build and run tests on Windows without VCPKG

Query/Question
Instructions needed for how cmocka needs to be installed in Windows and linked so tests can be build and run

Yea I just tried doing this and gave up and am now just running it in Docker.

@vhvb1989 Document the requirements for vcpkg and then close.


Example for custom template for generating Java code from ZDL

I like the Zenwave Domain Model language and would like to create a custom template for it.
Is there any example code on how to create a custom template that can be seamlessly integrated into your generator framework?
I'd like to generate some specialized Java files from the ZDL definition files.

Hi @michael-schnell
the sdk is built with customization in mind but I didn't explore it yet... but it certainly can be done
It will require to create a maven artifact for your generator/templates and then add that new artifact to your jbang alias
It depends if you just need customize son minor changes to an existing template, you can create a maven artifact with just that template and then make sure you add it to the jbang classpath just before the original plugin
If you need bigger customization you can duplicate the contents of an existing plugin, refactor package and groupId/artifactIds and proceed to do the customization... There is an command that can assist you in that duplication (but understand that is just an aid, it will produce an artifact that still needs work to build/compile)
https://github.com/ZenWave360/zenwave-sdk?tab=readme-ov-file#forking-an-standard-or-custom-plugin
If you use that script make sure you configure downloadURL because it may be a bit outdated...
And if you need more help in the process just let me know...
Thanks for using ZenWave and Happy Hacking!!

Tnx. I will try copying one of the plugins and then adjust it.


Prisma2 [ Did not find a relation for models ]

Describe the bug
It is not possible to add two relations in a model A to another same model B.
Reproduce
1- prisma2 init
2- connect to MySql 5.7 database and use a new schema
3- set the following datamodel in project.prsima
model Place {
  id          Int       @id
  owner       User
}

model Space{
  id            Int       @id
  creator       User
  members       User[] @relation(name: "SpaceMembers")
}

model User {
  id            Int       @id
  spaces        Space[] @relation(name: "SpaceMembers")
}

4- Then prisma2 dev raises the following error
Error: process exited with a non-zero code: 101
thread 'main' panicked at 'Did not find a relation for those for model User and field space', src/libcore/option.rs:1034:5

** Note **

This error is cleared if we change the type of creator filed in the space model to be a string

Interesting behavior
if we flip the order of space and user models in the datamodel, the error becomes
Error: process exited with a non-zero code: 101
thread 'main' panicked at 'Did not find a relation for those for model Space and field members', src/libcore/option.rs:1034:5

Expected behavior
We can have as many relations as needed
Versions (please complete the following information):

Connector: MySQL
Prisma Server:  Prisma2 0.0.95
prisma CLI: Prisma2 0.0.95
OS:  Ubuntu 16.04

Same error
model User {
  managedCampaigns: Campaign[] @relation(name: "UserManager")
  followedCampaigns: Campaign[] @relation(name: "UserFollower")
}

model Campaign {
  managers: User[] @relation(name: "UserManager")
  followers: User[] @relation(name: "UserFollower")
}

I can confirm this.
Interestingly enough if I manually perform a migration using prisma2 lift save and prisma2 lift up it creates the correct database schema.

prisma2 dev fails though:

Fixed in latest version.


Disable tests of ConditionalAuthenticationTestCase

Temporary disable the tests of ConditionalAuthenticationTestCase until getting fixed the issues.

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/1190134943

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/1190370915

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1190134943
Status: success

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1190370915
Status: failure

Tracking with #13267


OrganizationRequests Page improvement

Please do work for this task in a branch called issue-147.
I think this page could be improved by setting a conditional so that if no pending requests exist, then it should say so rather than show an empty list

Finished with a conditional statement


issues with shutting down console mode emacs

Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!

Using emacs in console mode is inoperable when the exit command is invoked

Expected Results: Emacs ctrl x - ctrl c would successfully exit the editor and return to terminal

Actual results: I press the keys the programs acts like it will close then reaches an inoperable state.
It cannot be closed from task manager even.

Your Windows build number 14946

Steps attempt to close the console emacs with ctrl x - ctrl c.

Emacs

Also while in this frozen state command prompt cannot be closed or terminated. In a separate command prompt window from the one initially executing emacs this is unclosable bash is also inaccessible.

Sounds like the pty deadlock again.

is there any way to force close out of bash / emacs while in this state because task manager is completely ineffective...

Reboot your pc. The thread is deadlocked in the kernel.

@fpqc is correct, see: #1187.
Closing as dupe.

@zadjii No, you linked the wrong issue I think.  This is the one related to the Oh-my-zsh bug, not the console windows getting stuck open bug (solution is just close all bash windows to end the session).
The diff here is you can't even fix it by restarting the lxssmanager service.

Here @zadjii-msft the correct link is this one:
https://github.com/Microsoft/BashOnWindows/issues/1127 (and I posted one even earlier with just tmux and oh-my-zsh)

@fpqc you're right again, my bad. Regardless, it's fixinbound


structMap/div/fptr/seq

REmove

@karinbredenberg It's not in the table anyway?

Not as separate element but present in structMap/div/fptr so either its own eleemnt aor only say structMap/div/fptr is used.

Removed


How to use this with put bucket config s3 operations?

In README there is example:
aws-curl --request PUT \
  --data<EMAIL_ADDRESS>\
  --region "us-east-1" \
  "https://s3.amazonaws.com/my-bucket/my-file.txt"

doesn't it work anymore?


SSTG-<IP_ADDRESS> build fails during haddock stage

Citing from https://nix-cache.s3.amazonaws.com/log/db3ss486v76x0l1hrgi3a9hmyqrg5r8r-SSTG-<IP_ADDRESS>.drv:
src/SSTG/Core/Execution/Rules.hs:256:3: error:
    parse error on input ‘-- | Rule Con App’

Thanks for bringing this up! It turns out haddock generation is fairly simple with stack haddock. I've fixed this error in version <IP_ADDRESS>, and uploaded it to hackage: https://hackage.haskell.org/package/SSTG
SSTG is still very much in its infancy and is missing SMT that make it fully useful as a symbolic execution engine, but thank you for the interest nonetheless!


Fixed typo in 18.03 rel notes

Proposed changes
Fixes: https://github.com/docker/docker.github.io/issues/9396
Unreleased project version (optional)

Related issues (optional)

Deploy preview for docsdocker ready!
Built with commit 99faa581ee43939d7e03c9502083f6472ddab85e
https://deploy-preview-9417--docsdocker.netlify.com


Add GZip support for the studio plugin server

Closes #22
I tested the functionality and it works fine, I haven't tested out bigger payloads to check the performance but I thought it was unnecessary.

Thanks!


Wrong precision and recall in entity linking evaluation

The scorer seems to calculate the precision and recall wrongly due to the use of consecutive IDs as gold standard and predictions.
Let's consider that the following text is the gold standard. There are three mentions and according to the scorer, there are three links Q69345, Q78068340 and Q39:
Neuchâld    B-loc    O    B-loc.adm.reg    O    O    O    Q69345    _    LED0.33
SI    B-pers    O    B-pers.ind    O    B-comp.title    O    Q78068340    _    NoSpaceAfter|LED0.09
.         Therefore, we have:
P=1/(1+1) = 0.5     Q39/(Q39+NIL)
R=1/(1+2) = 0.33   Q39/(Q39+Q69345+Q78068340)
The error can happens on the other way too.               And I think the main reason of the previous issues, is that the predictions are not being split into spans using the gold standard spans, either defined by NER tags or consecutive QID.
     Yes, I am including the _ as a span of size 1 but they would be removed after. This is done to check that the prediction didn't include a QID in a place where it shouldn't.
     Then, based on the spans generate the values for the evaluation and removing the "" cases, you can have the following data:
Gold standard: Q69345, Q78068340, Q39
Predictions: NIL, NIL, Q39, Q39

In the case one span in the predictions contain more than one QID, you could subsplit them using consecutive QIDs like in:
1 Neuchâld    B-loc    O    B-loc.adm.reg    O    O    O    NIL    _
2 SI    B-pers    O    B-pers.ind    O    B-comp.title    O    NIL    _
3 .     The second error (consecutive NILs in the gold standard) would only by fixed if the spans come from the NER boundaries.
In all the cases, I think this evaluation would be more balanced, specially when multiple NILs are predicted.

Great, thanks a lot. We are resolving this currently.

this was fixed by the PR, thanks again @creat89 !


Variable explorer crash with Numpy arrays made of strings

This code crashes the variable explorer (works with the variable explorer closed):
x = numpy.array(['1','2'])
Version: Spyder 2.3.8 with Anaconda 2.4.1, Windows 7 (recent install)

What's your Python version?

Python 2.7.11 :: Anaconda 2.4.1 (64-bit)

It seems this is a Windows only problem. I'm unable to reproduce it on Linux.

I believe I reported the same/similar issue https://github.com/spyder-ide/spyder/issues/2983

@albertogomcas, you're right. so I'm closing this issue as a duplicate of issue #2983.


Add Rust 1.39 async/await feature to sapper?

This week, Rust 1.39 release has the async/await feature, when it will be added to the Sapper web server?

Sure! I am waiting the new http server crate based on new async-std.

@daogangtang
我对比了hyper 0.10.16和hyper 0.13.9，发现旧版的Handler trait已经被移除了，官网上的教程都是写异步函数。
看来我们需要自己定义类似Handler这样的trait？
想问问你有什么想法、思路？

I am constructing superpoll and porting hyper to it, and then I will update sapper to this new hyper branch, but that shall be not soon.
https://github.com/daogangtang/superpoll
https://github.com/daogangtang/hyper


Add ipv4 forwarding instruction to kubeadm installation requirements

Currently the kubeadm steps walk you through prereqs to install a cluster but walking through these steps on Centos Stream 8 i foudn that my pre-flight checks for kubeadm init failed with the following error:
[root@cp1 ~]# kubeadm init --config kubeadm-config.yml
[init] Using Kubernetes version: v1.23.5
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

This error can be resolved by adding an additional step for users to ensure they have already enabled ipv4 forwarding on their hosts, and provide them a simple command to do so.

Thanks for your comment! Ah, yes I didn't see it there under containerd. I had just setup a cluster using CRI-O and that step never came up. Should the similar step under containerd simply be copied to also be under the Cri-o section?

I think we can:

remove the bridge nf steps from the kubeadm page
remove the forwarding step from containerd
create a new section in the container runtimes page near the top that instruct how to setup bridge nf and forwarding - i.e. have it as a pre requisite for all runtimes.

If you prefer to not work on this bigger change, you can help us by logging an issue. Perhaps linking to the discussion here.

No problem, I'll take it. I should be able to update the PR in a few hours

@neolit123 I'm seeing this error when following the instructions for getting hugo running locally in a container:
▶ sudo make container-serve [sudo] password for jkwiatko:  podman run --rm --interactive --tty --volume /home/jkwiatko/Development/go/src/k8s.io/website:/src --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 gcr.io/k8s-staging-sig-docs/k8s-website-hugo:v0.87.0-b3012f7804d6 hugo server --buildFuture --environment development --bind <IP_ADDRESS> --destination /tmp/hugo --cleanDestinationDir Trying to pull gcr.io/k8s-staging-sig-docs/k8s-website-hugo:v0.87.0-b3012f7804d6... Error: initializing source docker://gcr.io/k8s-staging-sig-docs/k8s-website-hugo:v0.87.0-b3012f7804d6: reading manifest v0.87.0-b3012f7804d6 in gcr.io/k8s-staging-sig-docs/k8s-website-hugo: manifest unknown: Failed to fetch "v0.87.0-b3012f7804d6" from request "/v2/k8s-staging-sig-docs/k8s-website-hugo/manifests/v0.87.0-b3012f7804d6". make: *** [Makefile:78: container-serve] Error 125
Any thoughts on why this pull is failing? I can't pull it outside the makefile either:
podman pull gcr.io/k8s-staging-sig-docs/k8s-website-hugo:v0.87.0-b3012f7804d6 Trying to pull gcr.io/k8s-staging-sig-docs/k8s-website-hugo:v0.87.0-b3012f7804d6... Error: initializing source docker://gcr.io/k8s-staging-sig-docs/k8s-website-hugo:v0.87.0-b3012f7804d6: reading manifest v0.87.0-b3012f7804d6 in gcr.io/k8s-staging-sig-docs/k8s-website-hugo: manifest unknown: Failed to fetch "v0.87.0-b3012f7804d6" from request "/v2/k8s-staging-sig-docs/k8s-website-hugo/manifests/v0.87.0-b3012f7804d6".

@neolit123  Looks like the registry specified is empty?

Perhaps someone from the docs team can help. I haven't run hugo locally.
You can also just push commits to this PR and the CI job for netlify will generate a preview website (the CI leaves a comment on the PR with URL).

https://github.com/kubernetes/website/pull/32946#issuecomment-1099810705

@neolit123 changes made. Let me know what you think.

/remove-language zh

/label tide/merge-method-squash

/lgtm cancel
@JayKayy
could you please add the note in https://github.com/kubernetes/website/pull/32946#discussion_r851681988
i don't see it in the diff.

@JayKayy sorry also please remove this https://github.com/kubernetes/website/pull/32946#pullrequestreview-943893714 as the networking link gets duplicated.

/remove-language zh

/remove-area blog release-eng

@JayKayy this seems good to me, like this.
the sig docs approvers, might have more comments.
thanks.
/lgtm

@JayKayy I see you already have extensive review, so I'm approving this PR to keep things moving, but I'm adding an explicit /hold to give you a chance to resolve feedback. When you've made the changes, feel to /hold cancel. 🙇🏻
/approve
/hold

re-apply LGTM from @neolit123
/lgtm

Perhaps someone from the docs team can help. I haven't run hugo locally.
You can also just push commits to this PR and the CI job for netlify will
generate a preview website (the CI leaves a comment on the PR with URL).

This is already merged and closed.


Create initial composable services for dataplane-operator

Creates all the initial composable services from the config/services dir
from dataplane-operator.
Signed-off-by: James Slagle<EMAIL_ADDRESS>

recheck

recheck

recheck

recheck


[Bug]: Missing Record Field Documentations in RecordFieldSymbol

Description
Currently, the GraphQL module access the Ballerina documentation to generate the GraphQL schema documentation. To get the record field documentation, we access RrecordFieldSymbol at the compiler plugin. But the documentation of the records fields is missing in the RecordFieldSymbol if the records are defined as follows.
# The review input type
#
# + stars - Num of stars
# + commentary - Review Commentary
public type ReviewInput record {
    int stars;
    string commentary;
};

The RecordFieldSymbol include the doc comments only if the documentation is done in-line.
Ex:
# The review input type
public type ReviewInput record {
    # Num of stars
    int stars;
    # Review Commentary
    string commentary;
};

Steps to Reproduce
No response
Affected Version(s)
2201.3.0
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

Is there any update on this? This is affecting the GraphQL schema generation, as we have to access the doc comments inorder to add them to the generated schema.
I've seen we are recommending the users to use inline doc comments in the record types, but that approach doesn't work in GraphQL.

@tharindu-nw any update on this? This is bad UX since we suggest users to use in-line documentation, but it doesn't work with GraphQL documentation. This should be fixed soon.

For GraphQL is the original example/statement still correct? My observation was the opposite, as mentioned in https://github.com/ballerina-platform/ballerina-library/issues/6313.
If the original was correct, is it still the case? Can't we at least access it via the io.ballerina.compiler.api.impl.symbols.BallerinaTypeDefinitionSymbol when documented at type definition level (as opposed to field level)? cc @dulajdilshan

@MaryamZi In the original example, ReviewInput is a input parameter type(That detail was missed in the original statement). Your observation is also correct for output types.


snow-multipsk.txt and unnecessary init_remote_static/resp_remote_static values

In protocols where remote party is sending its static public key to the local party (or vice versa), the local party doesn't have the knowledge of that key in advance. However, the test vectors in the snow-multipsk.txt file have the init_remote_static and/or resp_remote_static value set anyway (Noise_XXpsk0+psk1_25519_AESGCM_SHA256 is one example of that). The spec for the ReadMessage says:

For "s": Sets temp to the next DHLEN + 16 bytes of the message if HasKey() == True, or to the next DHLEN bytes otherwise. Sets rs (which must be empty) to DecryptAndHash(temp).

Initializing the Noise protocol from the values in the test vectors thus violates the spec. In contrast, test vectors in cacophony.txt don't have this issue.

Sorry if I wan't clear enough! Generator is creating correct vectors, but it's also including redundant data.
For example, XX vectors contain init_remote_static, which is redundant. If you just read all the values from the test vectors, you will end up with initialized rs variable. When the responder sends his s value, you could just overwrite your local rs (which will be the same in this case), but the spec mandates that rs should be empty at that moment. That's why I think the test vectors should not contain redundant values.

One more thing: I have removed the redundant values manually (I needed to do that for my implementation of Noise), here is how the file looks after that:
https://raw.githubusercontent.com/Metalnem/noise/master/Noise.Tests/Vectors/snow-multipsk.txt
I would have modified the vector generator myself and submitted the pull request, but I'm not familiar with Rust :)

@Metalnem sorry for taking so long to get on this. Finally fixed this - feel free to grab the newly generated vectors:
https://raw.githubusercontent.com/mcginty/snow/master/tests/vectors/snow-multipsk.txt


Add slider adaptive cupertino thumb color

This PR adds the ability to change the thumbColor of CupertinoSlider if painted via Slider.adaptive
Closes https://github.com/flutter/flutter/issues/52308
Unfortunately, the PR https://github.com/flutter/flutter/pull/62725 was closed unmerged, so I made a new one.
This is no breaking change, since it adds a parameter which hasn't been there before.
The native behavior of the iOS UISlider() is always white thumb, even in darkmode. So no problems with the default color CupertinoColors.white.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Sorry, I tried merging the latest changes from master and automatically requested additional reviews.

@HansMuller is there anything you need from me for a review?

@Piinks done 👍🏽


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_442vozghur/clone/recipe/meta.yaml:14: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_442vozghur/clone/recipe/meta.yaml:19: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_442vozghur/clone/recipe/meta.yaml:31: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_442vozghur/clone/recipe/meta.yaml:38: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_442vozghur/clone/recipe/meta.yaml:38: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_442vozghur/clone/recipe/meta.yaml:38: missing_description: The recipe is missing a description
Errors were found


[zh]Update content/zh/examples/admin/dns/dns-horizontal-autoscaler.yaml

Some good practices:

Mark feedbacks as resolved if fixed.
Always keep your PR as single commit.

/label tide/merge-method-squash

/lgtm
/approve


Add support for nested mutual blocks again

The PR https://github.com/mortberg/cubicaltt/pull/44 breaks support for nested mutual blocks.

I did not have time to react before, but this might be an issue
since we then loose a natural way to have inductive-recursive definitions.

On 29 Jul 2016, at 10:45, Anders Mörtberg<EMAIL_ADDRESS>wrote:
The PR #44 https://github.com/mortberg/cubicaltt/pull/44 breaks support for nested mutual blocks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/mortberg/cubicaltt/issues/48, or mute the thread https://github.com/notifications/unsubscribe-auth/ACrXlKOE13Ol3yXs72IuRPOPdi7Jc_TRks5qacurgaJpZM4JYCZs.

Do you have an example that requires multiple levels of nested mutual
blocks?
The only examples we have so far only required one level and seem to work
just fine. Once I have an example I can try to come up with a solution that
works.
On Jul 29, 2016 15:40, "coquand"<EMAIL_ADDRESS>wrote:

I did not have time to react before, but this might be an issue
since we then loose a natural way to have inductive-recursive definitions.

On 29 Jul 2016, at 10:45, Anders Mörtberg<EMAIL_ADDRESS>wrote:
The PR #44 https://github.com/mortberg/cubicaltt/pull/44 breaks
support for nested mutual blocks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <
https://github.com/mortberg/cubicaltt/issues/48>, or mute the thread <
https://github.com/notifications/unsubscribe-auth/ACrXlKOE13Ol3yXs72IuRPOPdi7Jc_TRks5qacurgaJpZM4JYCZs
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mortberg/cubicaltt/issues/48#issuecomment-236182759,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBNfS_lStDW3dTpGD_xxZmhnp1Nbg_Eks5qagKzgaJpZM4JYCZs
.

What do you mean by “multiple levels of nested mutual blocks”?
The example I had in mind was something like
mutual
data V = n | pi (x:V) (f:El x -> V)
El : V -> U = split
n -> Nat
pi x f -> (u:El x) -> El (f x)
Thierry

On 29 Jul 2016, at 14:59, Anders Mörtberg<EMAIL_ADDRESS>wrote:
Do you have an example that requires multiple levels of nested mutual
blocks?
The only examples we have so far only required one level and seem to work
just fine. Once I have an example I can try to come up with a solution that
works.
On Jul 29, 2016 15:40, "coquand"<EMAIL_ADDRESS>wrote:

I did not have time to react before, but this might be an issue
since we then loose a natural way to have inductive-recursive definitions.

On 29 Jul 2016, at 10:45, Anders Mörtberg<EMAIL_ADDRESS>wrote:
The PR #44 https://github.com/mortberg/cubicaltt/pull/44 breaks
support for nested mutual blocks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <
https://github.com/mortberg/cubicaltt/issues/48>, or mute the thread <
https://github.com/notifications/unsubscribe-auth/ACrXlKOE13Ol3yXs72IuRPOPdi7Jc_TRks5qacurgaJpZM4JYCZs
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mortberg/cubicaltt/issues/48#issuecomment-236182759,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBNfS_lStDW3dTpGD_xxZmhnp1Nbg_Eks5qagKzgaJpZM4JYCZs
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/mortberg/cubicaltt/issues/48#issuecomment-236187684, or mute the thread https://github.com/notifications/unsubscribe-auth/ACrXlBTU_VTH54lxwvAdlCIVUkeuvlVdks5qagdHgaJpZM4JYCZs.

That works just fine. The problem is when you have nested mutual blocks:
mutual
  mutual
    data V = n | pi (x:V) (f:El x -> V)

    El : V -> U = split
      n -> nat
      pi x f -> (u:El x) -> El (f u)

If you input this the resolver will just crash. I can make it not crash, or if there is some interesting example that needs mutual's inside a mutual I can try to come up with something that works.

Maybe I misunderstood: is this connected to the optimisation suggested by Guillaume
or it is a different thing?

On 29 Jul 2016, at 16:00, Anders Mörtberg<EMAIL_ADDRESS>wrote:
That works just fine. The problem is when you have nested mutual blocks:
mutual
mutual
data V = n | pi (x:V) (f:El x -> V)
El : V -> U = split
  n -> nat
  pi x f -> (u:El x) -> El (f u)

If you input this the resolver will just crash. I can make it not crash, or if there is some interesting example that needs mutual's inside a mutual I can try to come up with something that works.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/mortberg/cubicaltt/issues/48#issuecomment-236204311, or mute the thread https://github.com/notifications/unsubscribe-auth/ACrXlHWDk4_uxre8HnyP0bzvOHL1B8DSks5qahWngaJpZM4JYCZs.

I faced a problem of nested mutuals and here is my example which is an extended version of @coquand's example of IR encoding.
module ir where

mutual

data V
    = pi_  (x: V) (y: Elv x -> V)
    | uni_ (f: (x: V) -> (Elv x -> V) -> V)
           (g: (x: V) -> (y: Elv x -> V) -> (Elv (f x y) -> V) -> V)

Elv: V -> U = split
    pi_ a b -> (x: Elv a) -> Elv (b x)
    uni_ f g -> U -- Universe f g

mutual

data Universe
    (f: (x: V) -> (Elv x -> V) -> V)
    (g: (x: V) -> (y: Elv x -> V) -> (Elv (f x y) -> V) -> V)
    = fun_ (x: Universe f g) (_: Elt f g x -> Universe f g)
    | f_   (x: Universe f g) (_: Elt f g x -> Universe f g)
    | g_   (x: Universe f g) (_: Elt f g x -> Universe f g)

Elt: (f: (x: V) -> (Elv x -> V) -> V) ->
     (g: (x: V) -> (y: Elv x -> V) -> (Elv (f x y) -> V) -> V) ->
     Universe f g -> V = undefined

Here you can see, that in Elv second part of functor should transport to Universe. This code is typechecked with following error:
Parsed "ir.ctt" successfully!
cubical: Resolver.hs:(304,34)-(327,55): Non-exhaustive patterns in case


Add Formatting Fail Flag for CI Use

A common use with linters and formatters is checking in CI and failing if the formatter required any changed. This ensures that branches are never merged without the formatter being run.
This PR implements this functionality by tracking the number of files changed, and allowing the user to return an error exit code if -fail is provided, subsequently failing the CI job if formatting was not done before commit.
This PR also has the side benefit of providing additional user situational awareness as it now prints the number of changed files on every format run, even if the CI-fail flag is not used.
After merge, users can add the following to their CI to validate template formatting.
templ fmt -fail .

Results
fmt's help now looks like this:
./templ fmt --help
usage: templ fmt [<args> ...]

Format all files in directory:

  templ fmt .

Format stdin to stdout:

  templ fmt < header.templ

Format file or directory to stdout:

  templ fmt -stdout FILE

Args:
  -stdout
    Prints to stdout instead of in-place format
  -stdin-filepath
    Provides the formatter with filepath context when using -stdout.
    Required for organising imports.
  -v
    Set log verbosity level to "debug". (default "info")
  -log-level
    Set log verbosity level. (default "info", options: "debug", "info", "warn", "error")
  -w
    Number of workers to use when formatting code. (default runtime.NumCPUs).
  -fail
    Fails with an error exit code if files are changed for use in CI.
  -help
    Print help and exit.

A normal run now looks like this (note the changed field) if no changes made.
./templ fmt .
(✓) Format Complete [ count=4 errors=0 changed=0 duration=11.045765ms ]

A normal run now looks like this (note the changed field) if changes are made.
./templ fmt .
(✓) Format Complete [ count=4 errors=0 changed=1 duration=11.045765ms ]

The new flag run now looks like this, if changes are made.
./templ fmt -fail .
(✗) Templates were valid but not properly formatted [ count=4 changed=1 errors=0 duration=19.007765ms ]

In the above case, the unix exit code is also 1 instead of the normal 0.

Thanks for the contribution! A couple of points from me:

Is there a shorter flag name we could use? -c -check -fail ?
I also think we could add some tests here: https://github.com/a-h/templ/blob/main/cmd/templ/fmtcmd/main_test.go

I'm open to another flag, sure. I'll leave that up to you, just let me know. I'd suggest -ci or -fail.
I can look at adding tests too.

I like -fail to let's go with that. Thanks!

pushed the flag change now. Working on tests later.

Ok, I've added both a pass and fail test case @joerdav , as well as adding the flag to the args structs of the other related test for completeness. Let me know what you think.

I think this is my last comment now, thanks for amending based on the last ones! I think the current wording implies it is "for CI", but I think that's just one use case.
I think it may be better to use wording like "This flag does X, this could be used in CI to check blah blah blah" rather than "This flag does X for use in CI"
Does that make sense?

Yes, that makes sense, and better conveys the meaning I was hoping to convey. I like that wording. good feedback!

Ok, ready to rock and roll.


Breakpoints are not hitting while debugging F# console application in VSCode using Mono Debug extension

While trying to debug a f# console application the break points are not hitting, its just launching the application in VSCode debug mode and finishing the execution.
VS Code : 1.10.2
Mono Debug : 0.15.3
launch.json
{
    "version": "0.2.0",
    "configurations": [

        {
            "name": "Launch",
            "type": "mono",
            "request": "launch",
            "program": "C:/FSharp/test/TestFharp/bin/Debug/TestFharp.exe",
            "args": ["Test Arg"],
            "cwd": "${workspaceRoot}",
            "preLaunchTask": "",
            "runtimeExecutable": null,
            "env": {},
            "externalConsole":false
        },
        {
            "name": "Attach",
            "type": "mono",
            "request": "attach",
            "address": "localhost",
            "port": 55555
        }
    ]
}

DEBUG CONSOLE Output:
mono --debug --debugger-agent=transport=dt_socket,server=y,address=<IP_ADDRESS>:54579 C:/FSharp/test/TestFharp/bin/Debug/TestFharp.exe "Test Arg"

Why is address=<IP_ADDRESS>:54579 coming as this even I configured the port as 55555 in launch,json ?
Is break points are not hitting because of address mismatch ? How do I make sync these ?

Link to Stack Overflow question : http://stackoverflow.com/questions/42929225/breakpoints-are-not-hitting-while-debugging-f-console-application-in-vscode-usi

@vrnithinkumar your launch.json contains two configurations: one for launching the target (name: "Launch"), one for attaching to an already launched target (name: "Attach"). They are independent from each other.
From the debug console output I see that you are using the "Launch" launch configuration. In this launch configuration no "port" is specified and mono-debug will use a random port (54579 in your case). So there is no port mismatch.
How did you compile your F# program?
Make sure that you compile it for debugging.

@weinand Maybe I have a similar issue.
I currently have this, it starts my app and it shows in the debug panel that threads are running but breakpoints don't work
{
            "name": "Launch",
            "type": "mono",
            "request": "launch",
            "program": "${workspaceRoot}/../Build/Client/SC_WebApp.exe",
            "args": ["--dev-mode", "--disable-ui"],
            "cwd": "${workspaceRoot}/../Build/Client/",
            "preLaunchTask": "Build",
            "runtimeExecutable": null,
            "env": {},
            "console": "integratedTerminal"
        }

And yes, in my case I am compiling my code before I run and it might also be worth noting that my code is C# not F#


Generate more efficient field accessors for asData

More work than using RecordPatSyn, but more efficient.

One downside of this is that record pattern synonyms don't just generate accessors, they let you use the field name in all the ways you can use a record field name: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/pattern_synonyms.html#record-pattern-synonyms
Specifically, we lose the ability to do:

x = Foo { y = 100 }
Foo { y = example } (pattern)
Foo {y} (pattern with puns)
f { y = 200 }

I wonder if it would be possible to get the effect that you want by just making the matching function always-inline?

Inlining the matcher functions didn't help much, since the main thing here is that you're only accessing the field that is asked for.
It's annoying since the only thing preventing the existing code from doing that is that all the bindings are strict so we can't eliminate them (which is correct from GHC's point of view).

I have been attempting to try out making some of the pattern matching in AsData lazier, which I think is correct, but I'm hitting the stupid reboxing-of-builtin wrappers issue :(

That is far less of a problem. The criticisms of Plutus Tx are (as far as I know) script costs, script sizes, and difficulty to set up and get going, but not that it doesn't support a big enough subset of Haskell.

Well, it creates a particular problem with AsData. At the moment, it's a drop-in replacement for a datatype declaration. This change would make that not true. In particular the Marlowe validator using AsData will not compile with these changes since it uses a bunch of the record syntax features that work with normal record declarations and pattern synonyms, but won't work with this proposal.
I do think that this means it would be significantly better if we could make the existing stuff work better.
But that's going to be difficult. The thing I was trying won't work, for the reason we already discussed: pattern synonyms use a matching function to implement everything, which takes a continuation that gets all the fields. Thus the function application alone will force all the fields (and our inliner can't help since it preserves the semantics). So it's a bit like &&, where we would want to inline it in the GHC inliner or something.

To elaborate, here's a typical workflow with using AsData:

Convert a datatype to AsData
Re-run the tests, see if things got better or not

With this change I would have to have another step in between which was "rewrite any code that uses record syntax", which would be sad.

@michaelpj To me the key observation is that record patterns like Foo { y = example } is (after CSE) quite efficient - more efficient than the improved field accessors.
Somehow such record patterns never crossed my mind, because I never use them in my code.
Given that, I think we can keep the inefficient field accessors as they are, and simply tell people to always use record patterns instead. How does that sound?

Yes, if you use record patterns (or named field puns) instead of accessor functions then it should indeed be more efficient.


Improvements to Mendix Private Cloud documentation

These changes are not linked to any upcoming release and can be published in any convenient moment.

Documented a more reliable way to install Mendix for Private Cloud in Windows

The default installation options for Git Bash will set up a non-working MinTTY terminal. Instead of asking the user to reinstall Git Bash, the updated instructions recommend to use another terminal (PowerShell).
Added a note that the terminal should support mouse forwarding.

A few small documentation fixes that were found when reviewing the Private Cloud learning path
Added a note that NGINX Ingress Controller should be used whenever possible.

Hi Dmitrii (@zlogic).
I've done a small amount of proofreading, but haven't changed anything substantive.
I'll approve this - please let me know if you are happy with my changes and I'll publish.
Thanks for making a PR for these changes.
Mark

Hi Dmitrii (@zlogic).
I've done a small amount of proofreading, but haven't changed anything substantive.
I'll approve this - please let me know if you are happy with my changes and I'll publish.
Thanks for making a PR for these changes.
Mark

Hi @MarkvanMents, looks good to me, can you please publish these changes?

Hi @MarkvanMents, looks good to me, can you please publish these changes?


Refactor agencies endpoint

I propose to reorganize and expand the agencies logic in the following ways:

Have /agencies/ become the namespace for which all agencies-related functions are performed
The /agencies/{page} endpoint becomes /agencies/by-page/{page}
A post method for agencies can still be the means by which an agency is added.

As with #366 , this aims to organize agency-related functionality into a singular namespace, improve documentation, and make it easier to expand to new endpoints in the future.

Closing this one in favor of https://github.com/Police-Data-Accessibility-Project/data-sources-app/issues/417 !


publish to update metadata based on Taxonomy scanned results

Docs Build status updates of commit f4ee6a1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Adds the recurse-into-directory-entries flag.

Following #8

Another way to write that would be:
(unless recurse-into-directory-entries
  (return-from write-entry-to-archive))

Which would keep the indentation of the rest of the method.
I let you decide what you want and will update the PR if necessary.

Thanks for the patch!

Thanks for merging!


Time Profile Days/Hours Data Format

When trying to post data to the Time Profile table the days and hours are being sent as strings where as the api expects symbols :days and :hours. This results in an error when creating a new time profile with a new react form. The days and hours selected on the react form are ignored and the time profile is created with all days and hours selected. Below is an image with the api request data. The second image is the result after the time profile is created and the third image is the result after the time profile is edited.

I think this is related to https://github.com/ManageIQ/manageiq/issues/17201, where the TimeProfile API is presenting the serialized profile column as Strings, but the backend is expecting Symbols.  Some possible fixes to move forward

Tactical fix: Change the API code to be aware of and write Symbols
Medium term fix: Change the backend code to be aware of both Symbols or Strings, or just change the backend to only support Strings with a data migration for existing columns
Long term fix: Get rid of the serialized column and use regular columns (perhaps Array columns) for the values, with a data migration.  This may introduce backward compatibility issues, so we may need a temporary shim in the API.

Another API issue, the API currently allows time profiles with duplicate names

Another API issue, the API currently allows time profiles with duplicate names

This is a model problem, IMO - there should probably be a validation on the model to not allow duplicates.


systemvm: update size and state of systemvm template during registration

Description
This PR fixes #7309
We need to always update the size and state of systemvm template during registration

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@blueorangutan package

@blueorangutan package

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@weizhouapache a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian test result (tid-7470)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41846 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7874-t7470-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

@Pearl1594 , did you test or just reviewed?

I haven't tested it @DaanHoogland

@blueorangutan test

@weizhouapache a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

verified both conditions in a test env.
template size is set during zone creation
only one entry is added per template/store (i didn't know this was a thing)
ready to merge, no?

[SF] Trillian test result (tid-7562)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38997 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7874-t7562-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File


intimating users to use sst ion package instead of sst

I think it's good to mention it but isn't sst init adding the right package for you?

Btw, we mention this here: https://ion.sst.dev/docs/reference/sdk/#installation


A illuminate package "must" have a licence file

Laravel framework core code is separated into many sub-packages under the name "illuminate". Although the framework is released under the MIT license, no illuminate package has a license. This is really not good if someone who want to requires just a few Laravel components. For example, I just want to use illuminate/console for my package but I have to use without a license detail.
A package must have a license to tell people what they could do with the source code or not. Therefore, please add a license file per illuminate package!

Can you submit a PR?

@staudenmeir Thanks! I think it completely depends on Mr.Otwell. I am not sure which license (MIT?) and how many versions he accepts (5.5?, 5.6?, 5.7?). Or he just doesn't care.

I'll take this up with Taylor and see what we can do.

@driesvints I hope to see the all licenses soon. Thanks!

Done for 5.5, 5.7 & upcoming 5.8.


On first install, app starts with no data and takes a while to load data

IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #427
Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Release | Other)
Checklist

[x] I have written Unit tests for any new feature(s) and edge cases for bug fixes
[x] I have added any strings visible on UI components to the strings.xml file
[x] I have updated the  CHANGELOG.md file for any notable changes to the codebase
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the project's style guide
[x] I have built and run the fhircore app to verify my change fixes the issue and/or does not break the app

Pull Request Test Coverage Report for Build #257

0 of 0   changed or added relevant lines in 0 files are covered.
39 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.3%) to 87.095%

Files with Coverage Reduction
New Missed Lines
%

src/main/java/org/smartregister/fhircore/viewmodel/PatientListViewModel.kt
2
98.52%

src/main/java/org/smartregister/fhircore/fragment/PatientListFragment.kt
37
67.1%

Totals

Change from base Build #255:
-0.3%

Covered Lines:
1316

Relevant Lines:
1511

💛  - Coveralls


Submission_Group28_2252612_2252645_2152822

MEMBERS CONTRIBUTION

Nguyen Tuan Phong - 2252612: Best Fit & First Fit Heuristic (BFFF Heuristic)
Nguyen Thien Phuc - 2252645: Skyline Algorithm
Truong Quang Nha - 2152822: Report & real case study

ALGORITHMS DESCRIPTION
Skyline Algorithm
The Skyline algorithm is employed in solving the cutting stock problem, a classic optimization challenge in operations research. This problem involves cutting large stock materials, such as metal sheets, wood planks, or fabric rolls, into smaller pieces to meet specific size requirements while minimizing material waste. The Skyline algorithm is used to efficiently identify non-dominated cutting patterns based on criteria like material utilization, waste minimization, and production cost. By finding a "skyline" of optimal patterns, the algorithm helps narrow down choices and facilitates more efficient decision-making.
Best Fit & First Fit Heuristic
The Best Fit First Fit (BFFF) heuristic is a hybrid approach that combines elements of both the First Fit and Best Fit heuristics to solve the cutting stock problem. In this method, the algorithm first attempts to place each item into the least leftover space (Best Fit). If this doesn’t result in an efficient solution, it then re-evaluates and places the item into the first new stock (First Fit). This combination aims to leverage the simplicity and speed of First Fit, while also improving material utilization by incorporating the efficiency of Best Fit.
Results:
After running 30 rounds, these are average results for 4 policies:

Policy
Average Filled Ratio
Average Trim Loss
Average Execution Time (seconds)

Greedy Algorithm
0,18
0,20
31,36

Random Algorithm
0,69
0,78
0,25

Skyline Algorithm
0,102
0,31
18,86

BFFF Heuristic
0,106
0,18
48,75

Please revise the PR in Dec 16. Otherwise, your group will get 0 score for code.

Hi Mr.@martinakaduc. Currently, our team just had a change in source code and added requierments.txt file in the folder. If our PR still have problems, please let us know particular difficulties so we could fix it immediately so as avoid getting 0 for our code performance.


Promote integration-service from staging to production

Included PRs:

https://github.com/konflux-ci/integration-service/pull/735

/lgtm
/approve

/retest-required


Flutter Textstyle class  ignores invalid fontFamily and fontSize

Everything is recently installed.
Android 3.63(April 13, 2020)
C:\Users\allen>flutter --version
Flutter 1.17.0-3.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 2a7bc389f2 (6 days ago) • 2020-04-21 20:34:20 -0700
Engine • revision 4c8c31f591
Tools • Dart 2.8.0 (build 2.8.0-dev.20.10)
=======================================================

The code snip-it:
// Calling Widget
  child: Text("The quick brown fox jumps over the lazy dog",
                // Center align text
                textAlign: TextAlign.center,
                // set a text style which defines a custom font
                style: myTextStyle()),

// Function
TextStyle myTextStyle(
    {myColor = Colors.blueAccent,
      myFontFamily='nofont',
      myFontWeight = FontWeight.w400,
      myFontSize = -1.0 }
    )
{
  return  TextStyle(
    // set color of text
      color: myColor,
      // set the font family as defined in pubspec.yaml
      fontFamily: myFontFamily,
      // set the font weight
      fontWeight: myFontWeight,
      // set the font size
      fontSize: myFontSize);
}

==================================================
In either scenario, the console output is normal
Performing hot restart...
Syncing files to device SM N910V...
Restarted application in 8,496ms.
==================================================

Two issues here, I would be happy to spawn an extra bug if asked
Issue one:
If you were to enter an invalid(mispelled) fontFamily, the output to the Android phone is some default font, I assume 'Roboto'
Expected behavior: At a minimum an error message to the Console
Perhaps a RT error.
Testing consideration: You could not run automated tests since there would be string output just not the right one. A plain text output would not be noticed by Testing right away.
===========================================================
Issue two:
If you were to enter a negative value, like -36.0 for FontSize, I get no text at all
Expected behavior: At a minimum an error message to the Console
Perhaps a RT error.
Testing consideration: Without a Console message, you couldn't run automated tests.
==========================================================
The answer to the question
"Why would anyone do that" ?
Answer
Because they can.
=========================================================
I have not tried flutter "lint" maybe I should.

Code Sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: Container(
            child: Text(
              'Hello World',
              style: myTextStyle(
                  myColor: Colors.purple,
                  myFontFamily: 'no_font',
                  myFontSize: -1.0),
            ),
          ),
        ),
      ),
    );
  }

  TextStyle myTextStyle(
      {myColor = Colors.blueAccent,
      myFontFamily = 'nofont',
      myFontWeight = FontWeight.w400,
      myFontSize = -1.0}) {
    return TextStyle(
        // set color of text
        color: myColor,
        // set the font family as defined in pubspec.yaml
        fontFamily: myFontFamily,
        // set the font weight
        fontWeight: myFontWeight,
        // set the font size
        fontSize: myFontSize);
  }
}

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0-8.0.pre, on Mac OS X 10.15.4 19E287, locale
    en-GB)
    • Flutter version 1.18.0-8.0.pre at /Users/taha/Code/flutter_dev
    • Framework revision e0c63cd35e (4 days ago), 2020-04-23 22:29:01 -0400
    • Engine revision d2ec21221e
    • Dart version 2.9.0 (build 2.9.0-3.0.dev b0d35855d8)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.44.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (4 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • macOS      • macOS            • darwin-x64     • Mac OS X 10.15.4 19E287
    • Web Server • web-server       • web-javascript • Flutter Tools
    • Chrome     • chrome           • web-javascript • Google Chrome
      81.0.4044.129
• No issues found!

I don't know if https://github.com/flutter/flutter/issues/39420 will help this, or if it's an API plumbing issue.

Reproducible on latest stable and master channel.
multiple flutter doctor
[✓] Flutter (Channel master, 1.25.0-9.0.pre.86, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.25.0-9.0.pre.86 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision 876c313784 (7 hours ago), 2020-12-16 01:23:03 -0500
    • Engine revision a70f6de139
    • Dart version 2.12.0 (build 2.12.0-155.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.5
    • Dart plugin version 203.5981.152

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)             • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 87.0.4280.88

• No issues found!
Process finished with exit code 0

/Users/pedromassango/dev/SDKs/flutter_stable/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.22.5 at /Users/pedromassango/dev/SDKs/flutter_stable
    • Framework revision<PHONE_NUMBER> (6 days ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin installed
    • Dart plugin version 203.5981.152

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (1 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

! Doctor found issues in 1 category.
Process finished with exit code 0

Reproducible on stable 3.3 and master 3.7

code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Material App Bar'),
        ),
        body: Center(
          child: Text(
            'Hello World',
            style: myTextStyle(
                myColor: Colors.purple,
                myFontFamily: 'no_font',
                myFontSize: -1.0),
          ),
        ),
      ),
    );
  }

  TextStyle myTextStyle(
      {myColor = Colors.blueAccent,
      myFontFamily = 'nofont',
      myFontWeight = FontWeight.w400,
      myFontSize = -1.0}) {
    return TextStyle(
        // set color of text
        color: myColor,
        // set the font family as defined in pubspec.yaml
        fontFamily: myFontFamily,
        // set the font weight
        fontWeight: myFontWeight,
        // set the font size
        fontSize: myFontSize);
  }
}

flutter doctor -v (mac)
[✓] Flutter (Channel master, 3.7.0-13.0.pre.131, on macOS 13.1 22C65 darwin-arm64, locale en-IN)
    • Flutter version 3.7.0-13.0.pre.131 on channel master at /Users/mahesh/Development/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0196e6050b (2 days ago), 2022-12-31 11:10:23 -0500
    • Engine revision 932591ec04
    • Dart version 3.0.0 (build 3.0.0-76.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks
      and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.74.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.56.0

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 13.1 22C65 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 108.0.5359.124

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-arm, locale en-IN)
    • Flutter version 3.3.9 on channel stable at /Users/mahesh/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (24 hours ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.70.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.53.20221101

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.6 21G115 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!


Revert PMO to 4.20.3

Towards https://github.com/giantswarm/giantswarm/issues/25713

Is this linked to some issue?

@kopiczko added to PR description


Generate api key for adminUser on registration

Is your feature request related to a problem? Please describe.
Api users with role admin should have authorization to access api routes relating to users with guest role
Describe how to intend to go about adding this feature
Use JWT to create seperate token for access to special routes by user with admin role
Additional context
Use user's unique id and email as secret

I want to take this up

Done https://github.com/microapidev/auth-microapi/pull/384


[MDS] add workspace tests with multiple data source enabled

Description
add workspace tests with multiple data source enabled
Issues Resolved
Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@yubonluo Shall we backport to 2.x for these changes?

@yubonluo Shall we backport to 2.x for these changes?

Sure, cloud you help add a 2.x label?


Using fonts from assets

Me again..so I've added the cleanup plugin to avoid any files getting removed from the assets folder, all good.
Just wondering what the best/correct way to reference them now as this doesn't seem to work? Not sure if I'm not linking to them correctly? Is there a correct way to reference them to them when in the assets folder as its trying to access the frontend folder

Hi @lukecharle :)
The font could be loaded from a liquid file e.g. theme.liquid using @font-face  + the asset_url filter. Then it could be assigned to a CSS variable that you can use in your tailwind config file.
<style>
@font-face {
  font-family: 'My Cool Font',
  font-display: 'swap',
  src: url("{{ 'my-cool-font.woff2' | asset_url }}") format('woff2'),
       url("{{ 'my-cool-font.woff' | asset_url }}") format('woff');
}

:root {
  --font-body-family: 'My Cool Font', sans-serif;
}
</style>


Help wanted: routing of IPSec IKE packets with BGP

OPNsense 18.1.13 with BGP setup (2 peers) and several IPSec tunnels, the preferred peer failed and BGP switched the default gateway to the seconday one, so far so good. Most services were not interrupted but the IPSec tunnels all stayed down, I checked the log and found that the firewall received IKE packets and logged "sending packet..." but a quick tcpdump on the WAN interface reveiled that not a single IKE packet was actually sent out so the tunnels could not be established. Ping and traceroute worked just fine on the IPSec peers and showed that the secondary gateway was used as expected.
I played around with "Connection method" settings, disabled IPSec completely several times and even tried to configure a static default gateway because the preferred peer will be down for a while but nothing really helped. One of the tunnels would come up sometimes but no chance to get all of them up consistently.
Finally they are all up now but I have no real clue why, the last one came up right after I deleted its IKE state from the firewall state table. I know thats not much to go on but maybe someone can explain to me how IPSec decides where to send its Packets because to me it almost looks like it was trying to use the down gateway and since that ARP entry expired it could not send out anything.
Update: all the tunnels went down again once the tried to re-key and dropping their IKE/ESP states really seems to help bringing them back up again but I have no idea why.
any thoughts?

Update: I have now changed the IPSec settings to "Respond only" and "Disable rekeying" which basically means that all IKE communication is initiated by the IPSec peers and that helps a lot. Before that OPNsense would initiate a re-keying after 3000sec and that would kill the tunnel because it did not work. Now that the other side initiates the re-keying (~ every 3300sec) its OK.

Update: it would appear that the problem was/is that the automatic FW-rules created by IPSec contain a "route-to"/"reply-to" part that is not updated when the default gateway changes so every packet that matches those rules is effectively "lost". It works in "passive mode" because there is also a user-rule that allows incomming IKE-traffic and that does not have a gateway in it. I have now disabled the automatic rules and will re-test the failover when its convenient.

@clystron you can disable automatic ipsec rules in VPN->IPsec->Advanced Settings->Disable all auto-added VPN rules.

Thanks, thats what I did eventually, now just need to find a good time to re-test.
I also checked the rules-table for any more "sneaky" entries with gateways attached and there do not seem to be any more.