WinAppDriver hangs when creating session

Hi guys,
I am automating one of our UWP apps by WinAppDriver, however, when I execute my tests, sometimes, the UWP app to be tested can be launched but the WinAppDriver hangs, so the test code are not executed anymore. From the console log in below, it seems that the session mgr gets stuck in loading MitaBroker.
SessionManager - Creating session SessionManager - WinAppDriver succeeded loading MitaBroker
Could you pls help look into this issue?
I use below code to initialize the web driver instance
DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.SetCapability("platformName", "Windows");
appCapabilities.SetCapability("deviceName", "WindowsPC");
appCapabilities.SetCapability("launchTimeout", 5000);
appCapabilities.SetCapability("app", "Dolby.DAX3.UI.CS_rnnrkadb60ba0!App");
new WindowsDriver(new Uri("http://<IP_ADDRESS>:4723"), appCapabilities);
WindowsDriver appSession= new WindowsDriver(new Uri(app_Driver_Url), appCapabilities)`
The version of the WinAppDrive I'm using is: v0.9-beta

In WinAppDriver v0.9 it can take a while to find your app window.  I expect v1.0 will address this as work was done to improve the speed of finding the app window.

other possibilities we've seen that could cause this

a splash screen which we're attaching to
your app tries to load an application file from the current working directory instead of the app install directory

Thanks for your update. In my case, when I completed all tests, I didn't call Quit() method to close and release current windows driver instance, next time, when I launched the test, the windows driver would hung.

@holphi,
Depending on the application you test, some app supports multiple instance creation for every launch (e.g. Notepad) while some simply use a single instance (Alarms & Clock). When you create a session with the given Dolby.DAX3.UI.CS_rnnrkadb60ba0!App appId, WinAppDriver will attempt to launch/activate it and locate the main application window if it succeed.
Can you please retry the scenario using the latest Widows Application Driver v1.0-RC and share your findings?

@timotiusmargo
Sorry for slow response. I've upgraded WinAppDriver to v1.0 and tried re-run test scenarios, I don't meet the issue anymore.


Remove redundant group from ProductOptionValue's normalization_context

Changelog
Remove redundant group from ProductOptionValue's normalization_context
related issues:

https://github.com/bagrinsergiu/brizy-cms-ui/issues/2066
https://github.com/bagrinsergiu/brizy-cloud-sylius-demo-template/issues/165

@brizyNicu May you describe please, how this line of code, resolves the main issue?


Engine wrong set up https in Dockerfile

i have problem when enable https. the engine api throw error that there is no key and cert file in /app/src/https
i found the problem come from https set up at Dockerfile
it should be
WORKDIR /app/src/https

More info about error:

@warengonzaga

this is when you are running it locally with Docker I believe. Will fix it. Thanks

Fixed, in this PR

Fixed, in this PR


fix: old node overlay migration

Old overlay key is migrated to a new one for old nodes (mainly test-net) to operate properly. This will be be removed in the future, and we can may also migrate it back to the old key.

This change is

I run this on my node that has been working with non-minable overlays before (already 1.0-rc) and get:
Error: localstore: error getting migrations for current schema (batch-index): could not find current db schema


[Fix #12603] Fix an infinite loop error for Style/MultilineTernaryOperator

Fixes #12603.
This PR fixes an infinite loop error for Style/MultilineTernaryOperator when using a method call as a ternary operator condition with a line break between receiver and method.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

thank you for creating this PR


Add Skill section

Fixes #4
Changes
A skill section is added based on catgorization of the skill itself, like Programming skills, framework knowledge and Interpersonal skills in the form of cards.
How Has This Been Tested?

This has been tested locally in the systems and in the docker environment with no errors, warnings etc on the console.
This has been tested for responsiveness for multiple screens.

Mentions

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] New feature and improvements (non-breaking change which adds/improves functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Code Refactoring (internal change which is not user facing)
[ ] Documentation
[ ] Test, CI, or build

Checklist

[x] Coding style of this project is followed
[ ] Change in documentation is required
[ ] Documentation has been updated accordingly
[ ] Unit tests have been added to cover code change

am a bit concerned about asset images, is there way to get these from some third party service and not have them in the template?

yes, I have just added the fontawesome and devIcons to fetch regular and development related icons respectively.

Wow, it broke:

Will fix it.

I also had one last doubt, currently there 3 in each category but what if I have more how would it look? can u post a screenshot with 6 3 2.

This is how it will look.

@Korusuke Please let me know if you have some other suggestions.

it looks fine to me, sorry I forgot to merge....merging now!


Added support for environment variables when using Azure Functions

This PR is in relation to issue #1161 for supporting environment variables in Azure Functions. This was functionality that I was looking for and the schema shows that this should be supported. I've made a small change to allow this to work.

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


Fixed seek on Android

Seek was broken on Android as this 2fdevs/videogular#287 points out.
It turns out the UIEvent.layerX variable was being used to calculate the seek time but it is not part of the standard and it is broken on Android.
I removed the layerX dependency using this piece of advice and now seek works on Android.
I tested this on Android 5.1.1 (Xperia Z3) and iOS 9.0.2 (iPad Mini 2).

Thanks @zanemcca your PR looks very promising indeed!
However, this repository is only for distribution, if you want you can make your PR to the development repository: https://github.com/2fdevs/videogular
If you don't have time I will take your PR and merge it manually, so as you wish :)

I'll do that right now.

Done
2fdevs/videogular#291


Support for RAW___HKTM

Even if RAW___HKTM products are not involved in the data processing, they are ingested, by the CPF, from the acquisition facility and disseminated to the master archive.
To facilitate the overall end-to-end PDGS testing, it may be worth to add to Procsim the capability to generate "dummy" RAW___HKTM products. This feature may be used, in the test preparation phase, to generate such products.
These products have the same structure as the other RAW (see the applicable BIOMASS RAW Product Format Definition document).
Can you please evaluate the feasibility of this additional feature?

We have implemented this feature in #26. HKTM files are now generated alongside other RAW files. You can set the following fields unique to HKTM headers in the scenario:

num_tf
num_tf_erroneous
num_tf_corrupt

These are set analogously to the num_isp settings. If unset, they default to 0.

Tested


RuntimeError: maximum recursion depth exceeded while calling a Python object

Hi,
at first - thank you for sharing this gem with community!
Too bad, it seems there are some issues with it.
As soon I open up a larger document, entire ST3 screen became messed up (see screenshot below).
ST3 itself reports:

Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 537, in on_deactivated
v = sublime.View(view_id)
File "C:\Program Files\Sublime Text 3\sublime.py", line 707, in init
self.selection = Selection(id)
RuntimeError: maximum recursion depth exceeded while calling a Python object
error: plugin_host has exited unexpectedly, plugin functionality won't be available until Sublime Text has been restarted

Any ideas how to handle this?
Sreenshot:

It creates the group over and over again, which is weird.

What build of sublime text are you using?
could you give the content of your file (i tried with a fairly big file, every thing was working)

Hi,
I'm using latest version (build 3126) of ST3, tested with Windows as well as MacOS version.
Because files content is confidential, I replaced it with dummy text.
But effect stays the same.
testfile.zip

I've tried with your file, but St does not crash...
Can you re do the manip (so plugin_host crashes), open up the console, and type:
view.settings().get('markdown_preview_enabled')

You should have True.
view.settings().get('markdown_preview_id')

You should have an integer.
Thanks for your time, I really appreciate it. :+1:

Please find infos attached.
SC did not crash this time, but behave similar.
First file (ZIP) contains console log, at the very end, you'll find output of requested commands (true, 71).
After causing strange behavior, markdown preview does not even open up any more for file used.
But it works like a charm for an other (very small) test file.
I've even restarted ST3, but without any success.
Thanks for YOUR time, because I am the beneficiary of your work :-)

Testfile.problem.zip

You say that MarkdownLivePreview does not do anything with large file: can you have a look in the console after trying to run the command?
Something that might affect it: what plugins do you have?
The only time that MLP is creating a new view is when the markdown view is modified (that on_modified is fired). The problem might be coming from a plugin that would edit the file as soon as you open them.
Try do disable every plugin except MLP, and see if you still have this issue. To do this quickl:

go to Preferences -> Package Settings -> Package Control -> Settings - User
copy the list installed_package
open your settings
paste the list in the ignored_packages one.

Thank you, that solved the issue.
I've disabled all other packages, now it works like expected.
Now I need to find the cause for this, because I depend on some of these plugins...
Anyhow, thank you for support and great tool!

Hi,
found the (most likely) reason for the probem: "AutoWidth" (https://packagecontrol.io/packages/AutoWidth) plugin.
After disabling it everything works like a charm again.

Strange behavior occurs again....
But I think I found the root cause:
As soon you are trying to use someting like xxxx&xxx (without blanks), previewer stops working.
Simple test:
create markdown file (test.mdown) containing content below - works as expected:

test & test

now change content of file to no longer separate word and & by blank:

test &test

parser goes nuts.
Maybe this is of help!

Cool that it works now. About the &test, it's because a the & should be replaced by & A regex should solve this :smirk:

Yepp, great it works now.
But replacing & by &amp would not work in normal text (e.g. bread&breakfast would look... interesting in this case)

But replacing & by &amp would not work in normal text (e.g. bread&breakfast would look... interesting in this case)

I don't really understand...

Hm.
It seems it is still related to my Windows-Installation.
On my Mac, system behaves (now, after disabling AutoWidth) as expected.
Sorry for bothering!

So, it's not working on window? (just to make sure we're talking about the same thing: this is about the escaping of & right?)

Sorry for bothering!

You're not bothering me at all!

It seems your fix has solved that also.
Works in Windows as well as on Mac now.
A big "Thank You!"

Works in Windows as well as on Mac now.

Cool! Thanks to you also!


项目启动提示如何解决

版本号：
2.4.5
问题描述：
项目启动提示如何解决
截图&代码：
2021-12-07 22:04:49.138 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'jdbcTemplate' of type [org.springframework.jdbc.core.JdbcTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.149 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.jdbc.NamedParameterJdbcTemplateConfiguration' of type [org.springframework.boot.autoconfigure.jdbc.NamedParameterJdbcTemplateConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.168 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'namedParameterJdbcTemplate' of type [org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.184 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean '(inner bean)#45592af7#9' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.199 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'jimuReportShareDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.203 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean '(inner bean)#45592af7#8' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.207 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'jimuReportMapDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.211 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean '(inner bean)#45592af7#7' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.214 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'jimuReportLinkDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.218 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean '(inner bean)#45592af7#6' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.222 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'jimuReportDictItemDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-12-07 22:04:49.229 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean '(inner bean)#45592af7#5' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；
描述过于简单或模糊，导致无法处理的，会被直接删掉；

项目本地启动的时候就提示这个


[FEATURE] Documenting that the network stack must be ready when attempting an automatic installation

Is your feature request related to a problem? Please describe.
The automated installation starts without the network stack fully ready and this ended with a network unreachable message in the console.log.
That means the harvester-console can't download the config-create.yaml hosted on my web server and the installation just fails.

The webserver is working perfectly because I was able to download the kernel and initrd from there.
Workaround
I was able to get over this by adding boot_cmd="echo include_ping_test=yes >> /etc/conf.d/net-online" on the kernel cmdline.
Describe the solution you'd like
I can see two solutions here:

Document that the workaround just above could be used on the automated installation process.
By default, the setting include_ping_test=yes is disabled on k3os, maybe it can be activated when the scenario is a harvester automatic deployment.

documented in https://github.com/harvester/harvester/pull/780


Add container image mirror for the docker daemon

In order to lower the amount of public pulls as well as enable faster serving of images, we change the upstream url to a local pull through cache.

Closing this in favor of using userdata configuration


[api-minor] Add support for basic structure tree for accessibility.

When a PDF is "marked" we now generate a separate DOM that represents
the structure tree from the PDF.  This DOM is inserted into the
element and allows screen readers to walk the tree and have more
information about headings, images, links, etc. To link the structure
tree DOM (which is empty) to the text layer aria-owns is used. This
required modifying the text layer creation so that marked items are
now tracked.
Fixes #6269
This will need more work to wire up the annotation layer. We'll also need to come up with a way to better handle alt text for images. Currently, the browser/screen reader sees an empty figure so it doesn't announce the alt text.

Example of how this works:
<canvas>

</canvas>

In the text layer:
Some Heading
Hello world!

For testing, I was hoping to use something that would provide us a dump of the accessibility tree, but nothing quit matched what we want. Chrome's puppeteer has a way to get the tree, but it doesn't handle aria-owns. Firefox's devtools also has a way to dump the tree to JSON, but there's no easy way to expose this to content. Alternatively, I started making a "FauxScreenReader", but it was starting to get rather complicated, so I'll move that to a patch on its own.

/botio test

/botio test

Really nice work! I also did a pass over this, but it looks really good to me.
/botio makeref


Recent openapi versions are broken (v0.23.23/24)

Describe the bug

I think it has to do with the code generation (oas-schema.ts), it comes out very differently - pretty unreadable with a long string being parsed inside. The build then seems to loop, I canceled it with a couple of Ctrl+C presses.
Might need to invest more time to clarify with your help sorry.
To Reproduce
Steps to reproduce the behavior:
Build a Mesh SDK

Expected behavior

Build should not fail and/or report error information
Environment:

OS: Windows/WSL Ubuntu
@graphql-mesh/openapi: 2.23.24
NodeJS: 14

Additional context

Pinning to v0.23.21 brings me back to successfully building .mesh artifacts
Did I miss some changelog/announcements?
Please add regression tests before release!
I see this is a very recent build, so you probably know already what's going on here... @ardatan

Could you confirm the alpha versions working for you?
https://github.com/Urigo/graphql-mesh/pull/3708#issuecomment-1069201390


DITA to ODF generates not wellformed content.xml [DITA OT 2.x]

If the DITA topic looks like this:
    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
    <topic id="topic_zk3_y1k_z5">
      <title>Product safety</title>

        <note type="warning">

ABC

DEF

1

2

44

        </note>

    </topic>

and I publish it to ODF, the generated "content.xml" from inside the ODT archive is not wellformed.

In the XSLT stylesheet:
plugins\org.dita.odt\xsl\xslodt\dita2odt-utilities.xsl
there is a comment somewhere like:

followed by a "note_count" variable which multiples the number of notes with 3, while all other variables multiple it with 2. This seems to fix my small example. But the larger project still does not publish with a similar problem somewhere else.
The XSLT for ODF is horrible.

I started to refactor the ODF code and since you can't really refactor it because the basis is so bad, it ended up being a rewrite. I haven't had time to finish this task because it really rewrites just about everything.

Similar problem with this simple task:
        <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
        <task id="task_xvk_dsw_z5">
            <title>T</title>
            <shortdesc>SDC</shortdesc>
            <taskbody>
                <context>
                    <note type="note">

ABV

                    </note>
                </context>
            </taskbody>
        </task>

This second case seems to be related to the fact that the "context" element is also a "section" element so the "calculate_span_depth" template computes too many end tags to output for it.

The ODT transformation type has a lot of issues (as indicated above), and is not regularly maintained; if this issue is still causing problems, it should be re-opened in the ODT repo: https://github.com/dita-ot/org.dita.odt


Extract generation of planets into separate method.

This organizes the code a tad more in order to make future
modifications easier. Should help tackle issue #8.

Nice 👍 I was thinking of doing this, but I hadn't got round to it yet :)


BUG - error handling of backend-proxy-middleware and ui5-proxy-middleware needs improving

Description
In some rare case in BAS the http-proxy-middleware will thrown an "empty" error like this:
{
message: '',
stack: 'Error'
}

When this error is thrown the server is stopped and also the application execution. But this error is "harmless". Upon investigation it seems just a shot network issue. If this error is ignored, then the application and all necessary resources are loaded successfully.
Expected results
"Invalid" errors doesn't break the local server execution
Actual results
Server is stopped as soon as this error is thrown
Screenshots
If applicable, add screenshots to help explain the problem.
Version/Components/Environment
Add any other context about the problem here
OS:

[ ] Mac OS
[ ] Windows
[x] SAP Business Application Studio

Root Cause Analysis
Problem
{describe the problem}
Fix
{describe the fix}
Why was it missed
{Some explanation why this issue might have been missed during normal development/testing cycle}
How can we avoid this
{if we don’t want to see this type of issues anymore what we should do to prevent}

Done


Bump crypto wasm to 0.21.0

See https://github.com/docknetwork/crypto-wasm/pull/13

Version 0.40.0 has been published with this change.


alter table error with json type on unique and primary table

Steps to reproduce the behavior (Required)

CREATE TABLE `t1` (
                      `k1` INT,
                      `k2` VARCHAR(20)
                    ) ENGINE=OLAP
                    PRIMARY KEY(`k1`)
                    COMMENT "OLAP"
                    DISTRIBUTED BY HASH(`k1`) BUCKETS 3
                    PROPERTIES (
                    "replication_num" = "3"
                    );
ALTER TABLE t1 ADD COLUMN k3 JSON;

CREATE TABLE `t1` (
                      `k1` INT,
                      `k2` VARCHAR(20)
                    ) ENGINE=OLAP
                    UNIQUE KEY(`k1`)
                    COMMENT "OLAP"
                    DISTRIBUTED BY HASH(`k1`) BUCKETS 3
                    PROPERTIES (
                    "replication_num" = "3"
                    );
ALTER TABLE t1 ADD COLUMN k3 JSON;

CREATE TABLE `t1` (
                      `k1` INT,
                      `k2` VARCHAR(20),
                      `k3` JSON NOT NULL,
                      `k4` JSON,
                      `k5` JSON

                    ) ENGINE=OLAP
                    PRIMARY KEY(`k1`)
                    COMMENT "OLAP"
                    DISTRIBUTED BY HASH(`k1`) BUCKETS 3
                    PROPERTIES (
                    "replication_num" = "3"
                    );
ALTER TABLE t1 MODIFY COLUMN k3 JSON NULL;

Expected behavior (Required)
1.query ok
2.query ok
3.query ok

Real behavior (Required)
1.ERROR 1064 (HY000): JSON must be used in duplicate key
2.ERROR 1064 (HY000): JSON must be used in duplicate key
3.ERROR 1064 (HY000): JSON must be used in duplicate key

StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()

+----------------------+
| current_version()    |
+----------------------+
| MAIN-RELEASE d12a28a |
+----------------------+

Fixed


[Producer] After TopicAuthorizationFailed error that producer instance times out permanently

Description
We are seeing an issue where the singleton producer after receiving TopicAuthorizationFailed , now always timing out and never able to publish a message.
NOTE: we are using Kerberos to authenticate and authorize producer/consumer requests against brokers. It's on Linux (.net core application) with Service Principal name provided and client keytab file.
This is the original message received days ago
Confluent.Kafka.ProduceException`2[System.String,sample_app.Sample]: Broker: Topic authorization failed
   at Confluent.Kafka.Producer`2.ProduceAsync(TopicPartition topicPartition, Message`2 message, CancellationToken cancellationToken)
   at Kafka.Producer.EventBusProducer`2.<>c__DisplayClass13_0.<<ProduceAsync>b__0>d.MoveNext()

We see some logs in vicinity indicating Kerberos ticket refresh failed:
[thrd:main]: Kerberos ticket refresh failed: kinit -R -t "/opt/messaging/client.keytab" -k<EMAIL_ADDRESS>kinit -t "/opt/messaging/client.keytab" -k<EMAIL_ADDRESS>: exited with code 1

Now however, other producer instances are working just fine and producing messages successfully against other topics and the same topics of the producer in question.
However, that same producer is timing out and never recovering. We know for sure a restart will recover the producer but we want to understand and get to the bottom of this without losing the repro.
This is the new error message we keep getting every time we try to publish using that particular producer instance.
Confluent.Kafka.ProduceException`2[System.String,sample_app.Sample]: Local: Message timed out
   at Confluent.Kafka.Producer`2.ProduceAsync(TopicPartition topicPartition, Message`2 message, CancellationToken cancellationToken)
   at Kafka.Producer.EventBusProducer`2.<>c__DisplayClass13_0.<<ProduceAsync>b__0>d.MoveNext()

and does not seem to be recovering at all.
How to reproduce
We are not able to reproduce this on-demand. We have a node with live repro currently that is stuck with timeout errors constantly.
Can you please provide suggestions on how to debug further and proceed with this investigation?
The Kafka brokers do not seem to be showing any error logs. In fact we see log statements indicating the user principal authenticated successfully.
Successfully authenticated client: authenticationID=user@ourdomain; authorizationID=user@ourdomain. (org.apache.kafka.common.security.authenticator.SaslServerCallbackHandler)```

Checklist
=========

Please provide the following information:
 - [ ] A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
 - [x ] Confluent.Kafka nuget version.  (Confluent.Kafka 1.5.0)
 - [ ] Apache Kafka version.
 - [ ] Client configuration.
 - [x ] Operating system.  (Linux)
 - [ ] Provide logs (with "debug" : "..." as necessary in configuration).
 - [ ] Provide broker log excerpts.
 - [ x ] Critical issue.

we found that chef policy was externally changing the Kerberos ticket and logging in as different user. The details are irrelevant but intermittingly when that external script ran, our service became running as different user and hence rejected from producing to topics that user has no access to write to.


Fix #80

The original bug was due to the fact that we didn't interrupt the validation after a validation group failed (the issue was introduced not so long ago). This fixes the underlying problem

Add test for that, pls.

The PR reverts the commit "fix get_ast_trees not to return None as trees"  since the syntax validator relies on the opposite behavior.
I'm not sure though what was the purpose of the commit in the first place.

Revert "fix get_ast_trees not to return None as trees" commit is bad idea: it's convenient for get_ast_trees to return trees only on valid files, without None. Otherwise it breaks on some real dvmn submissons, I don't remember the details for now.
Pls revert that revert and fix syntax validator (for example, you can add argument for get_ast_trees to return None or write separate validator).


Database schema does not defend against metadatavalue.place IS NULL

Describe the bug
A site has reported a problem against dspace index-discovery which suggests that a metadatavalue has a null place attribute.  This caused Hibernate to fail to load the tuple.
The place attribute has no NOT NULL constraint.  Having one would have prevented the insertion of invalid data and identified the source of it.
To Reproduce
Steps to reproduce the behavior:
Unknown in normal operation.  One could INSERT a test metadatavalue tuple with a null place and run index-discovery.
Expected behavior
Either an invalid null place is rejected on INSERT, or a default value is applied by the schema, so that the data are always valid.  I don't know whether defaulting is a good idea.

Hello, I would like to work on this, please assign this to me

@ogkunald : Feel free to work on it and send us a PR.  Thanks for volunteering!


Typo

Found a small typo in the event "summoner" vs "summoners" when I was playing w/ this yesterday.

well spotted! :bow_and_arrow: merging>>>>


Android App Versions not dedected

Running SPDX sbooms on an android project results in the following warning
spdx sboms require a version but project: app has no specified version

I guess this is again an android thing, the version is part of the gradle file and can be found in:
android {
    defaultConfig {
        applicationId "XYZ"
        minSdk 29
        targetSdk 34
        versionCode 1
        versionName "1.0"

Originally posted by @PeterHasse in https://github.com/spdx/spdx-gradle-plugin/issues/49#issuecomment-1845251229

are android dependencies the same? Or is just the root project. If you had an android aar dependency, does it look the same? I wondering how deep into subproject parsing we need to go

The project gradle file does not include the the version, only the app level gradle file. I'm note aware if there are projects with more than one app but i guess they will always be on the 2. level.

Presumably you're generating sboms off the app level gradle file though?

correct


Unique items teleporters

About the PR
Adds two teleporters for BSO and NTR that allows them teleport their lockers if station don't have them.
Why / Balance
Since we can't map them on every map
Technical details
Lockers create unique item marker to prevent abuse with locker breaking.
UniqueEntityChecker search for all markers and delete teleporter entity if found with proper marker name.
Media
https://discord.com/channels/1202734573247795300/1236697829171527841/1288306630307483648
:cl:

add: BSO and NTR now can teleport their lockers if they not mapped!

Summary by CodeRabbit
Release Notes

New Features

Introduced components to restrict item usage to specific stations.
Added unique entity markers and teleporters for enhanced gameplay.
New localization string to inform users about station usage requirements.

Bug Fixes

Improved event handling for item usage attempts to prevent unauthorized actions.

Updates

Adjusted equipment for roles, enhancing gameplay dynamics with unique items.

Chores

Updated metadata for teleporters to include licensing and resource details.

could this also be done for nukies to spawn in syndicate bombs? that's the way it's done in ss13

github not allows me to push commit (dead russia servers :()

namespace is _Goobstation, other than that looks good though

Fixed


Add the ability to select renderer when creating new project

Add the ability to select the renderer when creating a new project.
Like in the project manager of godot.

Why this is needed?
Currently, the project is created with the forward+ renderer by default but someone who wishes to use other renderer method (Mobile or Compatibility) have to first create the project using forward+ and then switch it again which waste sometime.
This issue proposes the godot project manager's like renderer selection interface to select the desired renderer at project creation phase to save some time.

It's important because some pc can't even run project on Forward+ (no Vulcan support on device)


Avoid double-wrapping in VList.from

There are some cases in which VList.from might be passed a VList, so at runtime, it should check if its argument is a VList and, if so, return that list back instead of wrapping it in yet another VList.

I think I can solve the issue, I am new to open source contribution, could you help me where is VList used.

@shaiksamad thanks for helping out! You should now be able to make a pull request to get your changes onto the main repository. If you write closes #1473 in that pull request, this issue will automatically close once that pull request is merged.

@shaiksamad thanks! I've made the pull request for you. When that is merged, this issue will be closed.

Didn't get closed? Anyway, closed by #1747


Use slim version of hub image to minimise exposure to vulnerabilities

z2jh's security documentation recommends using the slim version of the image for the hub pod. https://z2jh.jupyter.org/en/latest/administrator/security.html#minimal-hub-image

The default hub image includes some useful debugging tools. You can use the slim version of image to minimise your exposure to vulnerabilities in those optional tools.

hub:
  image:
    # The slim variant excludes a few non-essential packages that are useful
    # when debugging something from the hub pod. To use it, apply this
    # configuration.
    #
    name: quay.io/jupyterhub/k8s-hub-slim

@m1p1h
I was thinking that this might be a good place for you to start looking

Linking to lsc-sde/lsc-sde#40 and lsc-sde/lsc-sde#42


User is unable to select the dates from 'Date picker' dialog in scan mode.

Describe the bug
User is unable to select the dates from 'Date picker' dialog in scan mode.
Repro Steps

Open the above mentioned 'URL' in 'Microsoft Edge browser'.
'Intern support' Home page will get open.
Navigate to 'Candidate' link via tab key & activate it using enter.
'Candidates' detail page will get open.
navigate to 'New candidate' link via tab key & activate it using enter.
A page with 'Form' fields to create a candidate will get open.
Turn on the narrator using 'Ctrl+Windows+Enter' keys & toggle to scan mode using 'Capslock+Space' keys.
Navigate among the dates present in 'Date picker' dialog using 'Up/down' arrow keys & try to select the date using enter/space
key.
Observe the issue.

Actual behavior
Narrator is reading as 'No primary action', when user tries to select the date using 'enter/space' key in scan mode.
Expected behavior
User should be able to select the dates from date picker dialog, even while navigating in scan mode.
Desktop (please complete the following information):
OS: Windows 11 Version: 21H2 (OS Build 22000.978)
Browser: Microsoft Edge Version 105.0.1343.42 (Official build) (64-bit)
URL: [https://internsupport.microsoft.com/
](https://internsupport.microsoft.com/)https://internsupport.microsoft.com/
Screen Reader: Narrator
Additional context

Issue repro only when user navigate among the dates using 'Up/down' arrow keys.
user can be able to select the dates when user navigates using 'Left/Right' arrow keys in scan mode.

Hi Team, is there any update on this bug?

please don't close this issue as it is still repro'ing.Thanks_


[SMALLFIX] Java 8 Improvement: replace anonymous type with lambda in alluxio.StreamCache#RemovalListener

…ener

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/746/
Test FAILed.

Merged build finished. Test FAILed.


Automated cherry pick of #1989: fix: qcloud reserved first, second and last ip for internal connection

Cherry pick of #1989 on release/2.9.0.
#1989: fix: qcloud reserved first, second and last ip for internal connection

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.9.0@b0e3461). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             release/2.9.0   #1992   +/-   ##
===============================================
  Coverage                 ?   7.67%
===============================================
  Files                    ?     336
  Lines                    ?   53973
  Branches                 ?       0
===============================================
  Hits                     ?    4145
  Misses                   ?   49440
  Partials                 ?     388

Flag
Coverage Δ

#aFlag
7.67% <ø> (?)

Continue to review full report at Codecov.

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

/approve

/lgtm


Positional arguments?

The feature section on the README talks about positional arguments but no example has been shown and I can't find how it can be done even after reading the code.

positional arguments are remainder arguments after all positional arguments are processed and removed, see the example code here

after all positional arguments are processed and removed
you mean optional arguments, right?

yes, my typo

oh okay

but you have to parse the value types manually, wouldn't it be more easier that we specify positonals in the argparse_option array so it takes care of it.


Make client listener code simply grab packets and then send them off in a background thread so that it can return right away to listening for more packets

Currently, the code that listens for packets for the clients will decode the packet and then send it off to the respective listening event. This forces the packet listening code to wait for it to return successfully before it can listen for a new packet. Packets should instead be sent off in a background thread so as to not force the packet listener thread to wait for their return.

This was performed in the following commit: https://github.com/SaviorXTanren/mixer-client-csharp/commit/fd50cd456e355bbc3471f0dcdddd14fcd55fc9dc


[Screen Reader - Windows Powershell]: In scan mode user is not able to activate dropdown as combined focus is navigating to 'New tab' split button.

User Experience:
If any application does not expose information and mechanisms necessary to track focus, text insertion point, and selection attributes (e.g. whether text has been selected for copy/paste) of user interface components,  it would be difficult for the platforms that provide Accessibility APIs, and would in turn affect the screen reader dependent users to determine the focus
Test Environment:
OS: Win 10 2004 Build (20262.1010)
App: Windows Terminal
App version: 1.4.3243.0
Repro Steps:

Open Windows terminal app.
Launch Narrator.
Turn on the scan mode of the narrator using "Caps+Space".
Now navigate using Up/Down arrow key to New tab split button.
Now try to open the flyout/dropdown using keyboard "Alt down" key.
Observe the issue.

Actual Result:
In scan mode user is not able to activate dropdown as combined focus is navigating to 'New tab' split button.
Expected Result:
In scan mode user should be able to activate dropdown by any keyboard key defined which should be announced by the narrator.
Or, Separate focus should navigate to 'New tab' button and dropdown button.
Note: NVDA browse mode is not working.
MAS Reference:
MAS4.2.10
https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc={b24201d1-2276-4471-8183-e1e5353031ad}&cid=83352b15-6eaa-4fc1-bd5a-2d857a532986

MAS4.2.10_Split button_focus navigates one time_not able to open flyout.zip

I could have sworn we already had this bug filed on us, and it got move upstream to the WinUI repo...

A few things:

https://github.com/microsoft/microsoft-ui-xaml/issues/1238 was filed on XAML. They're considering how to get around this.
I'll copy this comment since it has some good info:

Alt+Down opens the split options, consistent with the Office control set. With narrator, the secondary action should open the overflow.

We have an openNewTabDropdown action.

use Ctrl+Shift+Space to open the dropdown (only works when focused on shell)
the user can introduce their own keybinding for openNewTabDropdown to open it with their custom keybinding

@Chandresh1007 Is this sufficient to close this issue?

@carlos-zamora Pressing 'Alt+Down' to open the flyout of the split button the focus is navigating to the tab and then by pressing 'Alt+Down' once more, the flyout is getting open. Here, the flyout should get open by pressing 'Alt+Down' key once.
Also it would be good, if narrator announces the information that press 'Alt+down' to open the flyout.
Refer attachment
Terminal_Split button_scan mode_flyout getting open in 2nd time.zip

Closing the bug as it is External to XAML team:
WinUI 2 team has accepted this as a XAML bug.
plitButton's "More Options" button is not keyboard accessible · Issue #1238 · microsoft/microsoft-ui-xaml (github.com)


Add contributing guidelines

Description

Changes

Screenshots

Linked issue

Codecov Report

Merging #45 (1456592) into main (19f6279) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #45   +/-   ##
=======================================
  Coverage   69.23%   69.23%
=======================================
  Files          28       28
  Lines        1144     1144
=======================================
  Hits          792      792
  Misses        269      269
  Partials       83       83

Continue to review full report at Codecov.

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


Allow users to clear search index

Note that I did not yet confirm that clearing out the index of the search service doesn't work. I'm reasonably sure it doesn't though. @gregorydlogan, can you confirm that?
First, the operations currently clearing the entire index should also clear the search service index. These are:

POST /index/clear
POST /index/rebuild

Second, you should be able to clear just one index. Something like:

DELETE /index/<index>
…where index is one of the existing OpenSearch indexes.

This is an artifact of SearchServiceIndex's inheritance tree.  AbstractIndexProducer does not register itself with OSGi in the same way as... whatever class the index is expecting.  I caught this very shortly before the 16.0 release, too close to properly fix and QA, cf https://github.com/opencast/opencast/pull/5597#issuecomment-2098993782.
It will clear if you rebuild just the Search index, but that's obviously not ideal if you just want a clear index...


feat: Restore from stronghold

Closes https://github.com/iotaledger/firefly/issues/7821
wip

we need https://github.com/iotaledger/firefly/pull/8401 first

Works! 🚀
When logging in there is a 503 error from the node so I cannot do a complete test, but it correctly restores the wallet 🙌🏼


Support octal input and output

Prefix for octal is just "o" https://doc.rust-lang.org/std/fmt/

Prefix is "0o" (instead of 0x or 0b)


Add time synchronization from NTP to GU clock example

Unless you're connected to Thonny, the clock will always start from midnight.
This change allows the Galactic Unicorn to connect to wifi and synchronize the time using NTP at boot, and whenever A is pressed to resynchronize.  Time from NTP is UTC, so volume up/down buttons allow the offset in hours from UTC to be set (this is retained over any later NTP synchronization).

Looks great, thanks both :)


Update msal-node samples

Coverage decreased (-0.08%) to 82.715% when pulling 971a18bcb0942eddbe579743587df67e7b3d70cc on msal-node/update-samples into 679dab0146a70dde87dee58781bcbcdadf20397d on dev.

I'll make a PR based on @sangonzal 's branch and update the samples as necessary!


vc_redist download link not loading

The link:
https://aka.ms/vs/17/release/vc_redist.x64.exe
does not load

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 75e6432b-c6ec-e208-5f1c-bbc4fde9929b
Version Independent ID: 9cbb940e-cddd-f82f-e8bb-ee62b17af794
Content: Latest supported Visual C++ Redistributable downloads
Content Source: docs/windows/latest-supported-vc-redist.md
Product: visual-cpp
Technology: cpp-windows
GitHub Login: @corob-msft
Microsoft Alias: corob

Just tried again, now it works.


gnupg: 2.2.10 -> 2.2.11

Motivation for this change
See:
http://lists.gnu.org/archive/html/info-gnu/2018-11/msg00003.html
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

Haven't rebuild system against this (yet), but as maintenance release
and looking through changelog (see above) there shouldn't be any breakage AFAICT.

Success on aarch64-linux (full log)
Attempted: gnupg
Partial log (click to expand)
/nix/store/lh31lbnf4jhy7cbdhrdj4gwsq2rjqb10-gnupg-2.2.11

Success on x86_64-darwin (full log)
Attempted: gnupg
Partial log (click to expand)
make[1]: Leaving directory '/private/tmp/nix-build-gnupg-2.2.11.drv-0/gnupg-2.2.11'
post-installation fixup
gzipping man pages under /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/share/man/
strip is /nix/store/rk3p99jbj4idl3dkkg1rxja5gz0qgs98-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/lib  /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/libexec  /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/bin  /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/sbin
patching script interpreter paths in /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11
/nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/sbin/addgnupghome: interpreter directive changed from "/bin/sh" to "/nix/store/ixr5kls084hdlrs1wcy4c1q9fyw3rxfb-bash-4.4-p23/bin/sh"
/nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/sbin/applygnupgdefaults: interpreter directive changed from "/bin/sh" to "/nix/store/ixr5kls084hdlrs1wcy4c1q9fyw3rxfb-bash-4.4-p23/bin/sh"
moving /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/sbin/* to /nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11/bin
/nix/store/55phyg1qmpbyxiknvwyznjv265b0a37s-gnupg-2.2.11

Success on x86_64-linux (full log)
Attempted: gnupg
Partial log (click to expand)
shrinking /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/bin/gpg-connect-agent
gzipping man pages under /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/share/man/
strip is /nix/store/rpbg8gmqxhz8g61p1plz5d2srs84pvmv-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/lib  /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/libexec  /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/bin  /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/sbin
patching script interpreter paths in /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11
/nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/sbin/applygnupgdefaults: interpreter directive changed from "/bin/sh" to "/nix/store/n2hjbpkf4c0m48945ivxs3lmsczzw2rg-bash-4.4-p23/bin/sh"
/nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/sbin/addgnupghome: interpreter directive changed from "/bin/sh" to "/nix/store/n2hjbpkf4c0m48945ivxs3lmsczzw2rg-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11...
moving /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/sbin/* to /nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11/bin
/nix/store/ipglbqjp2p3k1yfzaggfgy1dgc7546dh-gnupg-2.2.11

A duplicate of https://github.com/NixOS/nixpkgs/pull/49831, no?

Absolutely, my mistake.  Thanks for noticing!


Totally refactored work with lotusrc

It's very urgent!!!
Currently, every lotus command line generates .lotusrc file, even lotus help. The reason is https://github.com/lotus/lotus/blob/master/lib/lotus/setup.rb#L3.
More complex problem is that Lotus::Lotusrc.new generates this file (prooflink) , although creation should be executed only on generation new application (like this).
I propose to detect lotusrc existance, if no then use default options
It should resolve #369

@aderyabin Hello, how that would happen? Currently (v0.5.0) there is a guard that creates the file only if missing.
Now, that being said, I'm keen to remove that auto-creation, because we assume that now all the apps created with a version minor of 0.3.0 have now a valid .lotusrc file. Note, v0.3.0 is the version that introduced this feature. :+1:
There are a couple of comments that I left. Can you please address them? Thank you :+1:

@jodosha
Each command line usage Lotus, for example lotus help in current implementation calls Environment.new. Environment.new calls Lotusrc.new. Last should check .lotusrc existence because command lotus help could be called from any path (I mean not project root path). Also this command should not generate .lotusrc file but use default values.
DEFAULT_OPTIONS = Utils::Hash.new({
  ARCHITECTURE_KEY => DEFAULT_ARCHITECTURE,
  TEST_KEY         => DEFAULT_TEST_SUITE,
  TEMPLATE_KEY     => DEFAULT_TEMPLATE
}).symbolize!.freeze

As for renaming #read  to #options. If .lotusrc doesn't exists read is not a good verb.

As for renaming #read to #options. If .lotusrc doesn't exists read is not a good verb.

It's the same File.new('...').read semantic. :smile:

Yep, if file exists, but if file not exists method returns default options.

@jodosha What is your latest decision?

@aderyabin It's fine :smile:
Before to merge, can you please verify this? https://github.com/lotus/lotus/pull/371/files#r42261568 Thank you!

@aderyabin Thanks, it looks good! :+1:


Remove Telegram links temporarily

Description
Community team requested we remove these links until ownership of the "Official" KlimaDAO Telegram group is clarified
Related Ticket

Resolves #

Checklist

[ ] I have run npm run build-all without errors
[ ] I have formatted JS and TS files with npm run format-all

No longer necessary


fix(SaveAsImage): don't create an anchor element if you don't need to

We won't use $a for IE and edge. In addition, there's no document object in web worker. So we'd better don't create an element if we don't need to.
Ref: https://github.com/apache/incubator-echarts/issues/9232

Thanks @CarterLi


Update build.yml - speed up the builds

Removed buildx
Replaced the slow status update action with a faster typescript one
Saves about 20 seconds overall

Merging for now since I've tested this a couple times


Chapter 9 - Clustering for Semi-Supervised Learning

I get a different set of representative digits from those in the notebook. Labelling with
y_representative_digits = np.array([
0, 1, 3, 2, 7, 6, 4, 6, 9, 5,
1, 2, 9, 5, 2, 7, 8, 1, 8, 6,
3, 1, 5, 4, 5, 4, 0, 3, 2, 6,
1, 7, 7, 9, 1, 8, 6, 5, 4, 8,
5, 3, 3, 6, 7, 9, 7, 8, 4, 9])
produces a log_reg score of 92.4%. Alternatively using:
y_representative_digits = y_train[representative_digit_idx]

I got the same thing happened. Not sure why. Hopefully I can find out the reason behind this

I came to Github to find answer to related problem:  why are these digits representative, using the code:
What does
representative_digit_idx = np.argmin(X_digits_dist, axis=0) X_representative_digits = X_train[representative_digit_idx]
argmin do here, to make these ones representative?

I came to Github to find answer to related problem: why are these digits representative, using the code:
What does
representative_digit_idx = np.argmin(X_digits_dist, axis=0)
argmin do here, to make these ones representative?

argmin is just to find the index where the value is the minimum in the axis=0 in this case, this minimum value is equivalent to the minimum distance between the cluster's centroid and the instance, thus making it representative.

I get a different set of representative digits from those in the notebook. Labelling with
y_representative_digits = np.array([
0, 1, 3, 2, 7, 6, 4, 6, 9, 5,
1, 2, 9, 5, 2, 7, 8, 1, 8, 6,
3, 1, 5, 4, 5, 4, 0, 3, 2, 6,
1, 7, 7, 9, 1, 8, 6, 5, 4, 8,
5, 3, 3, 6, 7, 9, 7, 8, 4, 9])
produces a log_reg score of 92.4%. Alternatively using:
y_representative_digits = y_train[representative_digit_idx]

Hi,
Did you set the random_state=42 while training and splitting the dataset?
Hopefully, that should solve your problem.
Thanks
Ash

Thanks ash.
Yes, random_state = 42 is set in kmeans definition.

Thanks Ash.
Yes, random_state = 42 is set in both the split and the kmeans definition


./env/install-flink.sh fails on CentOS7

After the execution of the script the the flink task manager is not up
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libprotobuf17 python3-pkg-resources python3-six
Suggested packages:
  python3-setuptools
The following NEW packages will be installed:
  libprotobuf17 python3-pkg-resources python3-protobuf python3-six
0 upgraded, 4 newly installed, 0 to remove and 98 not upgraded.
Need to get 1316 kB of archives.
After this operation, 6527 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libprotobuf17 amd64 <IP_ADDRESS>-2 [814 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 python3-pkg-resources all 40.8.0-1 [153 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 python3-six all 1.12.0-1 [15.7 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 python3-protobuf amd64 <IP_ADDRESS>-2 [334 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1316 kB in 0s (4337 kB/s)
Selecting previously unselected package libprotobuf17:amd64.
(Reading database ... 24656 files and directories currently installed.)
Preparing to unpack .../libprotobuf17_<IP_ADDRESS>-2_amd64.deb ...
Unpacking libprotobuf17:amd64 (<IP_ADDRESS>-2) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../python3-pkg-resources_40.8.0-1_all.deb ...
Unpacking python3-pkg-resources (40.8.0-1) ...
Selecting previously unselected package python3-six.
Preparing to unpack .../python3-six_1.12.0-1_all.deb ...
Unpacking python3-six (1.12.0-1) ...
Selecting previously unselected package python3-protobuf.
Preparing to unpack .../python3-protobuf_<IP_ADDRESS>-2_amd64.deb ...
Unpacking python3-protobuf (<IP_ADDRESS>-2) ...
Setting up python3-pkg-resources (40.8.0-1) ...
Setting up python3-six (1.12.0-1) ...
Setting up libprotobuf17:amd64 (<IP_ADDRESS>-2) ...
Setting up python3-protobuf (<IP_ADDRESS>-2) ...
Processing triggers for libc-bin (2.28-10) ...
Requirement already satisfied: pip in /usr/local/lib/python3.7/site-packages (21.2.4)
Collecting pip
  Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    Uninstalling pip-21.2.4:
      Successfully uninstalled pip-21.2.4
Successfully installed pip-22.2.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: grpcio in /usr/local/lib/python3.7/site-packages (1.34.0)
Collecting grpcio-tools
  Downloading grpcio_tools-1.49.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 14.7 MB/s eta 0:00:00
Requirement already satisfied: six>=1.5.2 in /usr/local/lib/python3.7/site-packages (from grpcio) (1.15.0)
Collecting protobuf<5.0dev,>=4.21.3
  Downloading protobuf-4.21.7-cp37-abi3-manylinux2014_x86_64.whl (408 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 408.4/408.4 kB 25.0 MB/s eta 0:00:00
Collecting grpcio
  Downloading grpcio-1.49.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 26.2 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (from grpcio-tools) (57.5.0)
Installing collected packages: protobuf, grpcio, grpcio-tools
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.12.2
    Uninstalling protobuf-3.12.2:
      Successfully uninstalled protobuf-3.12.2
  Attempting uninstall: grpcio
    Found existing installation: grpcio 1.34.0
    Uninstalling grpcio-1.34.0:
      Successfully uninstalled grpcio-1.34.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow 2.5.0 requires grpcio~=1.34.0, but you have grpcio 1.49.1 which is incompatible.
apache-beam 2.33.0 requires protobuf<4,>=3.12.2, but you have protobuf 4.21.7 which is incompatible.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Successfully installed grpcio-1.49.1 grpcio-tools-1.49.1 protobuf-4.21.7
Removing intermediate container fa257e865dd6
 ---> 2d8606273f4c
Successfully built 2d8606273f4c
Successfully tagged python-harness-packt:latest
configmap/flink-config created
service/flink-jobmanager created
deployment.apps/flink-jobmanager created
deployment.apps/flink-taskmanager created
[donhk@workpc Building-Big-Data-Pipelines-with-Apache-Beam]$ kubectl get pods
NAME                                 READY   STATUS             RESTARTS      AGE
flink-jobmanager-5f7d864b54-lh6dz    1/1     Running            0             12m
flink-taskmanager-5b6d4bf4f9-bxq6x   1/2     CrashLoopBackOff   7 (71s ago)   12m
kafka-0                              1/1     Running            1 (25m ago)   26m
zk-0                                 1/1     Running            0             26m

the problem appears to be this
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.12.2
    Uninstalling protobuf-3.12.2:
      Successfully uninstalled protobuf-3.12.2
  Attempting uninstall: grpcio
    Found existing installation: grpcio 1.34.0
    Uninstalling grpcio-1.34.0:
      Successfully uninstalled grpcio-1.34.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow 2.5.0 requires grpcio~=1.34.0, but you have grpcio 1.49.1 which is incompatible.
apache-beam 2.33.0 requires protobuf<4,>=3.12.2, but you have protobuf 4.21.7 which is incompatible.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Successfully installed grpcio-1.49.1 grpcio-tools-1.49.1 protobuf-4.21.7

is there a workaround for this issue?

It looks like the problem is the image where the below command runs has a lib issue
Status: Downloaded newer image for apache/beam_python3.7_sdk:2.33.0
 ---> 1366dc819ab0
Step 2/2 : RUN apt -y update && apt -y install python3-protobuf && python3 -m pip install --upgrade pip && python3 -m pip install grpcio grpcio-tools
 ---> Running in fa257e865dd6

fixed by https://github.com/PacktPublishing/Building-Big-Data-Pipelines-with-Apache-Beam/pull/29


bug with contracts

While submitting a contract while in main menu, will cause the contracker menu to be stuck not being able to do anything else (can't close it)

Have you actually tried to do them without fedoraware to see if its an issue with the game and NOT the cheat?

Have you actually tried to do them without fedoraware to see if its an issue with the game and NOT the cheat?

no, but i doubt that this is caused by tf2, but i could check

Have you actually tried to do them without fedoraware to see if its an issue with the game and NOT the cheat?

no, but i doubt that this is caused by tf2, but i could check

:sadape:

This really sounds like a TF2 issue

This really sounds like a TF2 issue

Just tested without being injected and it worked fine without any issues.
Also is there any possibility to also fix crashes caused by submitting a 2nd contract?

Just tested without being injected and it worked fine without any issues. Also is there any possibility to also fix crashes caused by submitting a 2nd contract?

Haven't looked into it because it takes too much time to finish 2 contracts just for debugging

Just tested without being injected and it worked fine without any issues. Also is there any possibility to also fix crashes caused by submitting a 2nd contract?

Haven't looked into it because it takes too much time to finish 2 contracts just for debugging

if you haven't done any boss contract, you should go for them when debugging since they're pretty simple and quick.
Also what would i need to do to debug, because i could try debugging and posting any crash i'll get

Just tested without being injected and it worked fine without any issues. Also is there any possibility to also fix crashes caused by submitting a 2nd contract?

Haven't looked into it because it takes too much time to finish 2 contracts just for debugging

i can confirm this also happens to me

Just tested without being injected and it worked fine without any issues. Also is there any possibility to also fix crashes caused by submitting a 2nd contract?

Haven't looked into it because it takes too much time to finish 2 contracts just for debugging

if you haven't done any boss contract, you should go for them when debugging since they're pretty simple and quick. Also what would i need to do to debug, because i could try debugging and posting any crash i'll get

compile the cheat on ur own (vital so u have the .pdb file), inject the cheat, click on the visual studio debug toolbar, attach to running program, hl2.exe, and it will hit a breakpoint when the game crashes, or it will crash silently and print whatever the issue is to the visual studio debugger output (usually only happens with std::out_of_range).


Printing Circuit in ASCII doesn't work

Information

Terra Version=Latest:
Python version=3.5:
Operating system=Windows 10:

What is the current behavior?
Program:
import numpy as np
from qiskit import *
from qiskit import IBMQ
from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister
from qiskit import BasicAer, execute
from qiskit.quantum_info import Pauli, state_fidelity, basis_state, process_fidelity
from qiskit import compile
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister
import codecs
from qiskit.tools.visualization import circuit_drawer
import sys
print('                         Dictionary for Qiskit vvv')
print('                         https://qiskit.org/documentation/terra/quantum_circuits.html')
qr = QuantumRegister(3)
cr = ClassicalRegister(3)
circuit = QuantumCircuit(qr, cr)
circuit.x(qr[0])
circuit.x(qr[1])
circuit.ccx(qr[0], qr[1], qr[2])
circuit.cx(qr[0], qr[1])
circuit.measure(qr, cr)
print(circuit)
print(qr.size)
print(cr.size)
RESULT:
Dictionary for Qiskit vvv
https://qiskit.org/documentation/terra/quantum_circuits.html
Traceback (most recent call last):
File "draw.py", line 27, in
print(circuit)
File "C:\Users\micro\Anaconda3\envs\Quantum\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 14-18: character maps to
What is the expected behavior?
Supposed to output circuit in ASCII format.

I will have access to a Windows machine tomorrow, so I can have a look to this issue.

I could not reproduce the issue. Could it be the coding of your console? Maybe we should move to utf-8 output anyway.

@1ucian0 Thank You for writing back. If it is the coding of the console causing the error, is there a link where I can install older versions of the Anaconda terminal?

I'm tested with the last version of Anaconda. Not a Windows expert here, but probably you can change the enconding of the console in the console property menu.

Resolved! Created a new environment with Python 3.6 instead of Python 3.5. conda create --name work python=3.6 and reinstalled Qiskit. works like a charm now.

So the problem is with Python 3.5? I will check it!

still cannot reproduce it. Feel free to reopen this if necessary. Thanks!


B2C token validation by msal libraby

Please follow the issue template below. Failure to do so will result in a delay in answering your question.
Library

[x]<EMAIL_ADDRESS>or<EMAIL_ADDRESS>
Description
I have a generic question about token validation from msal library for js, does msal library takes care of validating below attributes from the token? or is it a responsibility of consumer to validate the token?

Signature
exp
nbf
iss
aud

@rajesh-naik-by MSAL does not perform any token validation itself. It is the responsibility of resources to validate all tokens that they receive.


integrate Rego or CUE for validation provenance metadata

At the time of writing this, there are some options for validating the final provenance like tag, branch, etc.^1 We (w/@dentrax) thought that maybe people could write Rego policies against them to do the same validation. Instead of adding every flag to the command, people can write a Rego policy to define what they want to validate, similar to what we did in cosign project.^2

If the verifier was able to accept the same CUE or rego policies that cosign can verify that would be ideal. I don't know how specific they need to be to cosign though.


Missing field in resolvers

So I'm trying to update the cache with a mutation that's on the client but I'm getting very weird errors:
Missing field logUserIn in { token: ... }
Missing field __typename in { token: ... }
Query:
export const LOG_USER_IN = gql`
  mutation logUserIn($token: String!) {
    logUserIn(token: $token) @client
  }
`;

Mutation:
logUserIn: (
    { parent }: { parent: any },
    { token }: { token: string },
    { cache }: { cache: ApolloCache<any> }
) => {
    // localStorage.setItem("jwt", token);
    const data = {
        user: { __typename: "User", isLoggedIn: true, token }
    };
    cache.writeData({ data });
    return null;
}

Trigger
proxy.writeQuery({
    data: {
        token: facebookConnect.token
    },
    query: LOG_USER_IN
});

Any chance you'd be able to put together a small runnable reproduction that shows this happening?

We'll re-open this if you're able to provide a small runnable reproduction. Thanks!


Fingerprint keypad

Does anyone know if there will ever be any hope of using the switchbot fingerprint keypad WITHOUT it being paired with the specific switchbot lock?

any news?


Create simple examples of ZIO CLI

An examples module can contain a few simple examples:

wc
cat
tail

Working on this with @TobiasPfeifer


Does not work on Xcode 7

I'm also not seeing it showing up in xCode 7 GM using Alcatraz.

Install through Alcatraz on Xcode 7 should work fine now.


alarm_expr_parser modified and tested

Changes:

alarm_expr_parser is modified, and can give all needed parsing functions
unit test added.

Passed: tox -e pep8
Passed: tox -e py27

Thanks for the patch.


Create a Logo

Create a logo for Tamsui. Convert to a favicon as well and instrument it into the boilerplate.
Acceptance Criteria:

Logo exists in the project
Logo is displayed in the README
Favicon exists in the project

Favicon is instrumented into the application

Completed in PR #71


Add custom comparator to IPAddressType

Summary:
We need a comparator for IPAddressType.

Provide  providesCustomComparison = true to constructor to support custom comparison
Compare by converting the int128_t/BIGINT to a byteArray, and reversing the byte order. We then use memcmp
support between for IPAddressType

Differential Revision: D64880148

@mohsaka


Implement list_dir() for local filesysem

This was left as a todo earlier:
https://github.com/apache/arrow-datafusion/blob/5927bfceeba3a4eab7988289c674d925cc82ac05/data-access/src/object_store/local.rs#L51-L57
I don't know of any object store implementation that does implement it yet though.

Potentially related to https://github.com/apache/arrow-datafusion/issues/2445


Add Set#sample

Augments #9954.
Both single-element and multiple-element overloads are provided. The latter returns a Set instead of an Array because element uniqueness is guaranteed, and also because Set isn't Indexable so there are no variance issues. Both overloads run in linear time (sampling a single element in an Array is constant-time).
The actual implementation lives in Hash because Set is ultimately a wrapper around it, but it is less obvious what Hash#sample should return, so that's not defined here.

Why not convert the set to array and call sample on that? I know, it's less efficient. Do you need this in a hot loop? I don't like it that we are adding so many methods with very little end value.

Since an efficient implemenation is already done, I don't think it makes sense to use a more simple one.
Why not expose sample on Hash as well?

This method can be potentially used in lots of other methods, like Deque, Tuple, etc.
There is already Indexable#sample(random = Random::DEFAULT), but no sample(n : Int, random = Random::DEFAULT).
I know, here, Hash and Set can't be Indexable.

From @asterite https://github.com/crystal-lang/crystal/issues/9952#issuecomment-731634832

Hash is ordered. This is nice because when you dump it to JSON the order of insertion is preserved. But I wouldn't go as far as adding indexing methods to it.

#sample can be considered an indexing method. :thinking:

After thinking more about this, couldn't this method be in Enumerable and use the enumerable_size_hint from #10075 ?

This doesn't require a size hint because the returned array's size depends on the method argument, not the size of the receiver.
Also you're right that all Enumerables can in fact support sampling. Closing in favor of #10118.

The collection's size is needed to get n random elements from it, where n is between 0 and size.

That's not true, the iteration simply stops early if n < size and it's the same as doing the check beforehand (having #size allows you to copy the first n elements in-place, but doing the same with the old #<< is fine too).


Error trying to load Window in serialized scene

Bevy version
Version 0.11.3
What you did
Whenever I execute my load scene code, I encounter this error:
2023-11-03T21:01:54.867389Z  WARN bevy_asset::asset_server: encountered an error while loading an asset: Expected float at scenes/scene1.scn.ron:42:15
This is the saved scene:
      components: {
        "bevy_window::window::Window": (
          cursor: (
            icon: Default,
            visible: true,
            grab_mode: None,
            hit_test: true,
          ),
          present_mode: Fifo,
          mode: Windowed,
          position: Automatic,
          resolution: (
            physical_width: 1280,
            physical_height: 720,
            scale_factor_override: None,
            scale_factor: 1.0,
          ),
          title: "App",
          composite_alpha_mode: Auto,
          resize_constraints: (
            min_width: 180.0,
            min_height: 120.0,
            max_width: inf,
            max_height: inf,
          ),
          resizable: true,
          decorations: true,
          transparent: false,
          focused: true,
          window_level: Normal,
          canvas: None,
          fit_canvas_to_parent: false,
          prevent_default_event_handling: true,
          internal: (
            minimize_request: None,
            maximize_request: None,
            physical_cursor_position: Some((
              x: 155.0,
              y: 108.0,
            )),
          ),
          ime_enabled: false,
          ime_position: (
            x: 0.0,
            y: 0.0,
          ),
          window_theme: Some(Dark),
        ),
        "bevy_window::window::PrimaryWindow": (),
      },
    ),

Where line 42 is the x on:
physical_cursor_position: Some((
    x: 155.0, <<-
    y: 108.0,
)),

The code behind this is (world: &mut World,):
if let Some(asset_server) = world.get_resource::<AssetServer>() {
      let scene =
          asset_server.load(format!("scenes/{}", state.load_file));
      world.spawn(DynamicSceneBundle { scene, ..default() });
      state.scene_load_result = Some(Ok(state.load_file.clone()));
  } else {
      state.scene_load_result =
          Some(Err("Error: AssetServer Resource not found".to_string()));
  }

What went wrong

what were you expecting?
Anything else than an error saying a float is not a float.

Additional information
Should I skip serialization of the internal information in this case? How could I configure that when saving a scene? If I remove it from the ron I get the following error:
encountered an error while loading an asset: missing field internal at scenes/scene1.scn.ron:40:9
Is there an option to default missing values?

Hmm. Do you want to be saving / loading windows in your scenes? This is definitely not a useful error message at all though.

Hmm. Do you want to be saving / loading windows in your scenes? This is definitely not a useful error message at all though.

Exactly!
My workaround was to not load window, as I have a constant window value that I can spawn. And the camera I removed the one that had issues from the saved file. However, when I spawn the scene, it becomes an empty entity

I managed to avoid this error by extracting components that were not part of the scene:
let mut query = world.query_filtered::<Entity, (
                        Without<EditorOnly>,
                        Without<EditorCamera>,
                        Without<PrimaryWindow>,
                    )>();
let entities = query.iter(world).collect();

However, how can I load Handles, like Handle<Mesh> and Handle<StandardMaterial>, for the object that owned them correctly?
@alice-i-cecile


Bug: Argument 1 passed to CodeIgniter\Config\Services::request() must be an instance of Config\App or null, instance of BackEnd\Config\App

I have changed the namespace from Config\App to BackEnd\Config\App
it gives me an error in the core here.
called in /path/system/CodeIgniter.php on line 571
Some of configuration files i can't use on BackEnd and FrontEnd simultaneously.
How can i make this work without changing core ?
This issue come from #3434

Some of config files are working by changing the namespace for instance
App/Config/Paths.php
But for some config files are not working.
It requires me to change all cores files where are hardcoded ?

I had to remove from services where App $config was present just like below
From all static functions where that was present only like that i can really have different namespace for every config without changing alot of core files.
FROM
public static function request(App $config = null, bool $getShared = true)
{
	if ($getShared)
	{
		return static::getSharedInstance('request', $config);
	}

	if (! is_object($config))
	{
		$config = config(App::class);
	}

	return new IncomingRequest(
			$config,
			static::uri(),
			'php://input',
			new UserAgent()
	);
}

TO
public static function request($config = null, bool $getShared = true)
{
	if ($getShared)
	{
		return static::getSharedInstance('request', $config);
	}

	if (! is_object($config))
	{
		$config = config(App::class);
	}

	return new IncomingRequest(
			$config,
			static::uri(),
			'php://input',
			new UserAgent()
	);
}

Do you think guys that is necessarily to have this App $config in all those services ?

Your own config file should extend Config\App.
Please ask support questions in the Forum.

support questions in the forum that nobody answers ?
I had post 2 threads i had no replies over 3 months ago.
And what do you mean my own config file.
I have the default app config is already extended of BaseConfig
namespace Config;
use CodeIgniter\Config\BaseConfig;
class App extends BaseConfig

I don't want a new config file i just want to use this one.

Please answer when you have the time.
This issue is bugging me for at least 2 weeks.
I will appreciate your answer.

As I understand it, Config is a reserved and extensively used namespace throughout the framework. So it is not advisable to overwrite this namespace with your own. If there is really a need to have different configs in your case, such as your frontend and backend configs, then it is advised to create a new file for that extending this config.
namespace FrontEnd\Config;

use Config\App as BaseAppConfig;

class App extends BaseAppConfig
{}

Extending BaseConfig should only be used in creating new config files for new libraries. Not for recreating existing config files. This way we can be sure of no runtime errors while using the wrong config files.

Thank you @paulbalandan i was waiting for a response
Yes i notice i cannot change some of the config files namespace.
I almost post this problem on stackoverflow.
This rules apply on all config files or only on the App Config ?
I will try out your option. Tricky resolution really.
I am sorry for being such a pain with my problems, but i am following the manual and i'm searching for options before posting here, when i ran out of where to look, i post my issue.
I am sure this will be a problem for big projects in the future for others, i think we should update the documentation with this issue and how to resolve. The documentation only help people for developing new Modules, i guess my structure is a bit different ?
Anyways man thank you again i really appreciate your response.

I really can't get this to work, i created the Files extending this config in each frontend and backend folders
public $psr4 = [
	APP_NAMESPACE 						=> APPPATH,
	'Config'      						=> APPPATH . 'Config',
	'FrontEnd'  						=> ROOTPATH . 'frontend',
	'FrontEndConfig'  					=> ROOTPATH . 'frontend/Config',
];

It is not working man, when i try this
$res = config('\FrontEndConfig\FrontEnd', FALSE);

or this
$res = config('\FrontEnd\App', FALSE);

or this
$res = config('\FrontEnd\Config\FrontEnd', FALSE);

i still receive the BackEnd Config...
When i try this
$res = config('\FrontEnd\Config\App', FALSE);

or this
$res = config('\FrontEnd\FrontEnd', FALSE);

Cannot declare class Config\App, because the name is already in use in /path/frontend/Config/App.php on line 0

I've tried everything man is not working, i changed file names i changed the autoload so the namespace will not overlap
either i receive the admin config or i get the Cannot declare class Config\App, because the name is already

Can you try this:

Register all namespaces:

public $psr4 = [
    APP_NAMESPACE => APPPATH,
   'Config'                  => APPPATH . 'Config',
   'FrontEnd'              => ROOTPATH . 'frontend',
   'BackEnd'               => ROOTPATH . 'backend',
];

Make sure the directory structures of frontend and backend are somewhat similar to this: (This way we can be sure it imitates the same structure as the default and so PSR4 is still followed.)

frontend ---|
                   |---Controllers/
                   |---Config/
                   |---Filters/
...

In your frontend or backend config file (e.g. the App config), make sure when you use the default Config\App you have the as keyword to make sure there are no name clashes:

// frontend/Config/App.php
<?php

namespace FrontEnd\Config;

use Config\App as BaseAppConfig;

class App extends BaseAppConfig
{
}

// backend/Config/App.php
<?php

namespace BackEnd\Config;

use Config\App as BaseAppConfig;

class App extends BaseAppConfig
{
}

Use them now.

$res = config('FrontEnd\Config\App', false);

By logic, this should work. If not, then there's probably a problem with Config::get().

I tried this, it does not load my app instead i receive a HTTP error 500
The PSR4 is the same as you post, the folder structure is as what you said
Uncaught Error: Class 'Config\App' not found in /path/backend/Config/App.php:5

https://nativityweb.com/structures.png

https://nativityweb.com/structures.png
I can give you a share screen of what i have setup to verify if everything is legit. if you want

I think I found the fault here.
Please include also the default app folder containing the Config, Filters, etc. This app folder should be on the same level as system.
So
path -|
  +---backend
  +---frontend
  +---app
  +---system
  +---writable

OMG, i get it now. Thanks.
So in fact they will be treated like a Module not as an app

This is not good man, i've done what you said, everything works fine no errors, but now i never load the backend config only the app config, i wanted to overwrite all variables from app config with the backend app config i cannot.
The thing is i am using different sessions, different database different everything on both frontend and backend, i cant use a default one if i cannot overwrite it when codeigniter starts.
I treat the frontend and backend like separate projects.
Also i have different Autoloaders, for backend and frontend i cannot stick everything into the app autoloader.
Maybe i am doing something wrong or this is how codeigniter works.
Now i get the FrontEnd session on the BackEnd

Everything is loading from the app/Config/App
and not from the backend/Config/App

How do you load the configs?
Since you know them already by name you try the direct one.
$res = new \BackEnd\Config\App();
if you will be using the config() function try the full name also.
$res = config('BackEnd\Config\App', false);

getting the config now works, but the problem is the application when bootstrap starts everything starts with the app folder and not with the backend folder

I mean the project is initialized with the Default config files and not with the backend config files

I think im not making myself clear enough, i don't know if you understand what i am trying to do here..
I will try to explain as best i can.
So my public folders i have
public_html/index.php for the frontend. This must use FrontEnd Configuration files
public_html/admin/index.php for the backend. This must use BackEnd Configuration Files
This means i have different session settings, different database settings, different autoload settings, different libraries, filters, services, etc..
This worked without the App Folder that you specified here

I think I found the fault here.
Please include also the default app folder containing the Config, Filters, etc. This app folder should be on the same level as system.
So
path -|
  +---backend
  +---frontend
  +---app
  +---system
  +---writable

I just want to get the frontend cookie from the session from the config file without hardcoding it
in my backend.
I do not treat the frontend and backend as Modules, i treat them as applications that uses the same codeigniter system.
Do you think is possible what i am trying to do here ?

OK. I think I'm getting what you are trying to do here. I saw that structure on a website I have taken over in creating.
Since you are creating two different index.php files, make sure you have also two different bootstrap files. At present, the initialization of the CodeIgniter object is done using the default Config\App as you've said.

Copy the bootstrap.php file somewhere. But make sure to have a distinction, like frontendBootstrap.php or whatever.
In those copied bootstrap files, edit instances of APPPATH with ROOTPATH . 'backend' or ROOTPATH . 'frontend'.
Then change this line $appConfig = config(Config\App::class); to use your specific config.
In your respective index files, change the line $app = require realpath(rtrim($paths->systemDirectory, '/ ') . '/bootstrap.php'); to where you have stored your custom bootstrap.

Ok i have copied backend folder to another folder named test so i can test there and not be afraid if i brake something
Basically i duplicated what i had working in the backend folder to test folder
I created the TestBootstrap.php inside test folder
I did what you asked.
I will post files here.
This is the bootstrap file
<?php

namespace CodeIgniter;

use CodeIgniter;
use Config;

/**
 * The path to the application directory.
 */
if (! defined('APPPATH'))
{
	define('APPPATH', realpath($paths->appDirectory) . DIRECTORY_SEPARATOR);
}

/**
 * The path to the project root directory. Just above APPPATH.
 */
if (! defined('ROOTPATH'))
{
	define('ROOTPATH', realpath(APPPATH . '../') . DIRECTORY_SEPARATOR);
}

/**
 * The path to the system directory.
 */
if (! defined('SYSTEMPATH'))
{
	define('SYSTEMPATH', realpath($paths->systemDirectory) . DIRECTORY_SEPARATOR);
}

/**
 * The path to the writable directory.
 */
if (! defined('WRITEPATH'))
{
	define('WRITEPATH', realpath($paths->writableDirectory) . DIRECTORY_SEPARATOR);
}

/**
 * The path to the tests directory
 */
if (! defined('TESTPATH'))
{
	define('TESTPATH', realpath($paths->testsDirectory) . DIRECTORY_SEPARATOR);
}

/*
 * ---------------------------------------------------------------
 * GRAB OUR CONSTANTS & COMMON
 * ---------------------------------------------------------------
 */
if (! defined('APP_NAMESPACE'))
{
	require_once ROOTPATH . 'test/' . 'Config/Constants.php';
}

// Let's see if an app/Common.php file exists
if (file_exists(ROOTPATH . 'test/' . 'Common.php'))
{
	require_once ROOTPATH . 'test/' . 'Common.php';
}

// Require system/Common.php
require_once SYSTEMPATH . 'Common.php';

/*
 * ---------------------------------------------------------------
 * LOAD OUR AUTOLOADER
 * ---------------------------------------------------------------
 *
 * The autoloader allows all of the pieces to work together
 * in the framework. We have to load it here, though, so
 * that the config files can use the path constants.
 */

if (! class_exists(Config\Autoload::class, false))
{
	require_once SYSTEMPATH . 'Config/AutoloadConfig.php';
	require_once ROOTPATH . 'test/' . 'Config/Autoload.php';
	require_once SYSTEMPATH . 'Modules/Modules.php';
	require_once ROOTPATH . 'test/' . 'Config/Modules.php';
}

require_once SYSTEMPATH . 'Autoloader/Autoloader.php';
require_once SYSTEMPATH . 'Config/BaseService.php';
require_once SYSTEMPATH . 'Config/Services.php';
require_once ROOTPATH . 'test/' . 'Config/Services.php';

// Use Config\Services as CodeIgniter\Services
if (! class_exists('CodeIgniter\Services', false))
{
	class_alias('Config\Services', 'CodeIgniter\Services');
}

$loader = CodeIgniter\Services::autoloader();
$loader->initialize(new Config\Autoload(), new Config\Modules());
$loader->register();    // Register the loader with the SPL autoloader stack.
// Now load Composer's if it's available

if (is_file(COMPOSER_PATH))
{
	/**
	 * The path to the vendor directory.
	 *
	 * We do not want to enforce this, so set the constant if Composer was used.
	 */
	if (! defined('VENDORPATH'))
	{
		define('VENDORPATH', realpath(ROOTPATH . 'vendor') . DIRECTORY_SEPARATOR);
	}

	require_once COMPOSER_PATH;
}

// Load environment settings from .env files
// into $_SERVER and $_ENV
require_once SYSTEMPATH . 'Config/DotEnv.php';

$env = new CodeIgniter\Config\DotEnv(ROOTPATH);
$env->load();

// Always load the URL helper -
// it should be used in 90% of apps.
helper('url');

/*
 * ---------------------------------------------------------------
 * GRAB OUR CODEIGNITER INSTANCE
 * ---------------------------------------------------------------
 *
 * The CodeIgniter class contains the core functionality to make
 * the application run, and does all of the dirty work to get
 * the pieces all working together.
 */

$appConfig = config(\Test\Config\App::class);

$app       = new CodeIgniter\CodeIgniter($appConfig);
$app->initialize();

return $app;

Now the index.php file from test folder
<?php

// Valid PHP Version?
$minPHPVersion = '7.2';
if (phpversion() < $minPHPVersion)
{
	die("Your PHP version must be {$minPHPVersion} or higher to run CodeIgniter. Current version: " . phpversion());
}
unset($minPHPVersion);

// Path to the front controller (this file)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);

// Location of the Paths config file.
// This is the line that might need to be changed, depending on your folder structure.
$pathsPath = realpath(FCPATH . '../../path/app/Config/Paths.php');
// ^^^ Change this if you move your application folder

/*
 *---------------------------------------------------------------
 * BOOTSTRAP THE APPLICATION
 *---------------------------------------------------------------
 * This process sets up the path constants, loads and registers
 * our autoloader, along with Composer's, loads our constants
 * and fires up an environment-specific bootstrapping.
 */

// Ensure the current directory is pointing to the front controller's directory
chdir(__DIR__);

// Load our paths config file
require $pathsPath;
$paths = new Config\Paths();

// Location of the framework bootstrap file.
$app = require realpath(FCPATH . '../../path/test/TestBootstrap.php');

/*
 *---------------------------------------------------------------
 * LAUNCH THE APPLICATION
 *---------------------------------------------------------------
 * Now that everything is setup, it's time to actually fire
 * up the engines and make this app do its thang.
 */
$app->run();

Now test/config/app.php
<?php namespace Test\Config;

use Config\App as BaseAppConfig;

class App extends BaseAppConfig
{

	public $baseURL = 'https://website.com/test/';

	...

}

I get this Error Fatal error: Cannot declare class Config\Modules, because the name is already in use in /home2/nativity/nativityweb/app/Config/Modules.php on line 0

i tried to namespace with \Test
like this
$loader->initialize(new \Test\Config\Autoload(), new \Test\Config\Modules());
it is not working because they need to be very strict Config\Autoload and Config\Modules when is getting passed to the loader

i tried to namespace with \Test
like this
$loader->initialize(new \Test\Config\Autoload(), new \Test\Config\Modules());
it is not working because they need to be very strict Config\Autoload and Config\Modules when is getting passed to the loader

In that case you need also to extend the Autoload and Modules config as what you did for App config. Something like class Modules extends BaseModulesConfig. This should get away with the typehint.

test/Config/Modules.php
<?php namespace Test\Config;

use Config\Modules as BaseModulesConfig
// Cannot extend BaseConfig or looping resources occurs.
class Modules extends BaseModulesConfig

test/Config/Autoload.php
<?php namespace Test\Config;

// use CodeIgniter\Config\AutoloadConfig;
use Config\Autoload as BaseAutoloadConfig;

class Autoload extends BaseAutoloadConfig

I receive this error PHP Fatal error:  Uncaught Error: Class 'Config\Autoload' not found in /path/test/Config/Autoload.php:6

Ah. I get it. Since we are not yet using PSR4 autoloading here in the bootstrap files, you need to manually include the extended configs here.
if (! class_exists(Test\Config\Autoload::class, false))
{
	require_once SYSTEMPATH . 'Config/AutoloadConfig.php';
        require_once APPPATH . 'Config/Autoload.php';
	require_once ROOTPATH . 'test/' . 'Config/Autoload.php';
	require_once SYSTEMPATH . 'Modules/Modules.php';
        require_once APPPATH . 'Config/Modules.php';
	require_once ROOTPATH . 'test/' . 'Config/Modules.php';
}

Ok this seems to work now.
I cannot believe it is working.
For sure this must go in the documentation.
Thanks for the help, i wouldn't done it without you man.

This works now as intended and i can even get frontend confing in the backend but there are so many problems, for example the Views are now loading from the app/config/view instead of the backend/config/view
I am trying to overwrite Services with the backend services but the view class already initialized somewhere.
The main problem is that i am changing the core as i go, i am afraid with the new updates that will come.
I am for sure there is an easier approach for this problem i had without copy the bootstrap.php change it and loading it.
I don't know if this is a issue or not but i think it is man sincerely, since i had to change alot of stuff, i am certain there are some config files that are using from the app folder and not from the backend folder.

It would have been better if i created a function that reads the file search for the variable and retrieve the value instead of loading it.
I thought i could get the config by changing the namespace but it seems it got very complicated, and besides now i have another app folder that is useless for me and somehow files are loading from there.
Ofcourse they are loading from there hehe :)

If you want different views to load you should modify the bootstrap to load your extended Config\Views instead. Then you should modify the path constants like FCPATH to something more relevant like FRONTENDFCPATH. Unfortunately, this is the only way I can think of that will suit your requirements.
For the services you should explicitly provide your modified configs and paths or else the defaults will be used.

The idea here is to intercept all calls to the default app files by explicitly providing your custom files.

forget this.. there is no support documentation for multiple index files, i'm gonna remove the app folder and continue from where i was, and make a function that search in the file for the value i am looking for.
That is why i post this issue as i said below if here we drop the APP $config to be strict everything wold have work perfectly, because i already tested it, and can have namespaced configs without extending anything.
After i post this issue i saw a commit that put more strict $configs.
When you mentioned this issue here
paulbalandan mentioned this issue 3 days ago
Optimize: Services #3463
I thought it will gonna be resolved, looks like we are beginning to limit the developers.

Some of config files are working by changing the namespace for instance
App/Config/Paths.php
But for some config files that the Services are using App $config into the methods are not working only if i remove App $config.
for example
public static function request(App $config = null, bool $getShared = true)

remove App to be like this
public static function request($config = null, bool $getShared = true)


No cache-control headers set

Hi,
I am getting a F rating in webpagetest.org because of the following:
FAILED - (No max-age or expires) - https://code.sorryapp.com/status-bar/4.latest/status-bar.min.js
FAILED - (No max-age or expires) - https://code.sorryapp.com/status-bar/4.latest/status-bar.min.css

can you guys please fix this?

@tvb absolutely. I'll look at getting some cache control headers added to our assets hosts. I'll drop you an update when we've had the chance to get that done.

@SirRawlins got an update for me?

Huge improvement there!

Some notes though:
**Leverage browser caching of static assets: 82/100**
...
FAILED - (17.5 minutes) - https://code.sorryapp.com/status-bar/4.latest/status-bar.min.css
WARNING - (60.0 minutes) - https://code.sorryapp.com/status-bar/4.latest/status-bar.min.js
WARNING - (60.0 minutes) - https://code.sorryapp.com/status-bar/4.latest/fonts/Icons/status-bar-icons.woff
...

@tvb awesome, I'm so pleased to hear it. 🎉
The other notes here are to be expected, ideally we'd like to set much longer cache headers than 60 minutes, however, it makes rolling out changes and fixes slower, so for now, we find a compromise at 1 hour.
Really appreciate your help and suggestions with this.

@SirRawlins Why would that be an issue? You can set the proper cache-control headers and just invalidate the cache at the CloudFront side.

@tvb for sure! Our build process does invalidate Cloudfront, but the cache-control headers are also used by the browser to cache a copy locally, which we are not able to invalidate.
At least that's my understanding, but I may be wrong. 🤓

I'm not sure because CloudFront will present you with a Miss the first time after an invalidation and so it serves it to the client. I'm pretty sure the client follows but we should test it..

@tvb interesting! I'll reopen this issue and try to test this, see if I can confirm.

@tvb I did a little experimentation on this today, and it seems my initial hunch was right, setting the cache-control header means the asset is cached in two locations.

In Cloudfront, which we're able to purge.
In the Browser, which we are NOT able to purge.

The only way for the browser to pickup new versions is to wait until the content has expired, and then grab the latest version from the CDN.
So for now I think we'll keep the short expiry window. I have some potential work-arounds, but I think they'll wait for another day.

Roger!


doc: ext: Extend zephyr-app-commands with new args

New arguments added:

conf: -DCONF_FILE=<>
gen-args: Additional arguments to pass to CMake
build-args: Additional arguments to pass to Make or Ninja

Signed-off-by: Carles Cufi<EMAIL_ADDRESS>

@mbolivar @jukkar I added an additional :compact: option that I personally plan to use in some parts of the doc

@mbolivar @jukkar Added a "run" goal for those that want a 2-step make and make run


[manuf] redundant flash info fields

The certificate flash info pages/fields are contained in the silicon_creator flash_ctrl driver. This removes duplicate information.

Closing since commit contained in #22714.