Relative URL in nav doesn't find MD file.

I want to use in the nav an MD file which is in the parent directory of the sourcesDir (as described [here(https://www.mkdocs.org/user-guide/configuration/#nav)]) but mkDoc doesn't see it somehow.
So

My sourcesDir is docs which is in the root directory.
I have an MD file README.md which is also in the root directory.
To use this in the nav, I set in the mkdocs.yml:

nav:
  - Overview: ../README.md

However, when I get the error:
A relative path to '../README.md' is included in the 'nav' configuration, which is not found in the documentation files

Sorry, can't help you. My best guess is that mkdocs considers 'docs' as site root and so build site hierarchy accordingly. When you add relative page outside of root dir, mkdocs is confused (how could it build an url for this relative path).
Source isn't much help.
You can try to ask in the mkdocs community (it's pure mkdocs issue).


Discovery based API support

What would you like to be added:
A mechanism for cluster supported APIs to be discovered and handled automatically.
Why is this needed:
Currently, our KubeApi<T> interface treats a version difference (say between v1beta1 and v1 of customresourcedefinition) as completely different apis and thus when trying to create a new CRD in lens unhelpful error messages are being displayed.
I don't know if this is a problem with other aspects of lens but it seems like definitely could be.
Possible Solutions:

Do nothing, keep manually adding apis as they come up
Add some sort of discovery mechanism that (might) request the supported APIs via kubectl or something similar.

@nevalla @jakolehm This should be a good place to discuss this now.


Modify install paths for prior Debian system Pythons

Within:
# Use bullseye
FROM debian:bullseye

RUN apt-get update
RUN apt-get install python3 python3-pip python3-venv -y

We see:
root@ff9ce2004eb7:/# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_paths()
{'stdlib': '/usr/lib/python3.9', 'platstdlib': '/usr/lib/python3.9', 'purelib': '/usr/lib/python3.9/site-packages', 'platlib': '/usr/lib/python3.9/site-packages', 'include': '/usr/include/python3.9', 'platinclude': '/usr/include/python3.9', 'scripts': '/usr/bin', 'data': '/usr'}
>>> import sys
>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/dist-packages', '/usr/lib/python3/dist-packages']

So when installing into Debian's system Python, we'll end up installing into the "wrong" place. See Filipe's excellent article on it here: https://ffy00.github.io/blog/02-python-debian-and-the-install-locations/.
(I don't see this issue with latest Debian.)

This is really complex, we'd need to vendor quite a lot of Python code from pip. It also seems like disutils needs a distribution name in order to generate paths, but we want to generate these without such a name. Maybe it's possible? Will play around with it.

Note that this only affects installing with --system.

It also seems like disutils needs a distribution name in order to generate paths, but we want to generate these without such a name. Maybe it's possible? Will play around with it.

Yes, possible, virtualenv does it without providing a dist name.

The thing we want to do here is:

Vendor pip's locations.get_scheme: https://github.com/pypa/pip/blob/0ad4c94be74cc24874c6feb5bb3c2152c398a18e/src/pip/_internal/locations/init.py#L230
This requires vendoring pip's _sysconfig.get_scheme: https://github.com/pypa/pip/blob/0ad4c94be74cc24874c6feb5bb3c2152c398a18e/src/pip/_internal/locations/_sysconfig.py#L124.
This also requires vendoring pip's _distutils.get_scheme: https://github.com/pypa/pip/blob/0ad4c94be74cc24874c6feb5bb3c2152c398a18e/src/pip/_internal/locations/_distutils.py#L115.

Add all of this to get_interpreter_info.py, and change our internal structs to use the Scheme schema rather than SysconfigPaths (i.e., a subset).
You can also see an example of how virtualenv does this: https://github.com/pypa/virtualenv/blob/5cd543fdf8047600ff2737babec4a635ad74d169/src/virtualenv/discovery/py_info.py#L80.


SDCard Example on SPI Mode // fails with ESP_ERR_INVALID_STATE // ESP-IDF v4.2. (IDFGH-3721)

Environment

Development Kit:  Custom board, ESP32D0W rev 1
IDF version 4.2 docker container
Build System: idf.py
Compiler version 8.2.0

Problem Description
SDCARD example in SPI Mode isn't working with ESP_IDF v4.2. Working fine with ESP-IDF v4.0 and v4.1.
Expected Behavior
Working.
Actual Behavior
Getting an ESP_ERR_INVALID_STATE error during initialization.
Steps to reproduce

cd into example/storage/sd-card
uncomment line 26 -> #define USE_SPI_MODE in ./main/sd_card_example.c
save and issue idf.py build flash monitor
watch the show =)

Of course you need an SD wired in SPI mode, with the pullups and so on...

Debug Logs
I (0) cpu_start: App cpu up.
I (266) heap_init: Initializing. RAM available for dynamic allocation:
I (273) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (279) heap_init: At 3FFB2B40 len 0002D4C0 (181 KiB): DRAM
I (285) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (292) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (298) heap_init: At 4008B88C len 00014774 (81 KiB): IRAM
I (304) cpu_start: Pro cpu start user code
I (322) spi_flash: detected chip: generic
I (323) spi_flash: flash io: dio
I (323) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (331) example: Initializing SD card
I (331) example: Using SPI peripheral
E (341) vfs_fat_sdmmc: slot init failed (0x103).
E (341) example: Failed to initialize the card (ESP_ERR_INVALID_STATE). Make sure SD card lines have pull-up resistors in place.

Fixed. There was a version mismatch between my locally installed esp-idf and the container. Sorry for the noise.


Whats use this command?

scrcpy --render-driver=opengl

It uses OpenGL instead of Direct3D on Windows for example. This allows to enable trilinear filtering (#40), because mipmapping is only implemented for OpenGL in SDL/scrcpy.


[PDI-16658] - Fixes for the effects of PDI-16658.

On PDI-16658, I advocate for actual re-writes of the code creating the issues in this case. The code is really broken. That said, these fixes are tactical and alleviate the massive performance slow-down, so they're valuable until such time as a sprint team can take up the task of re-implementation of the logging registry using a proper LRU cache and the observer (or possibly the visitor) pattern to make this area of PDI sane.

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -fn -f 'pom.xml' -pl 'engine,core' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine,core' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  core/src/main/java/org/pentaho/di/core/logging/LoggingRegistry.java
  engine/src/main/java/org/pentaho/di/trans/Trans.java
  engine/src/main/java/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClass.java
  engine/src/main/java/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClassDef.java
  engine/src/main/java/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClassMeta.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.core.logging.LoggingRegistry

Instruction Change: -0.4% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change: -0.4% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.job.entries.getpop.MailConnectionMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -2.9% :small_red_triangle_down:
Instruction Change: -0.6% :small_red_triangle_down:

org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change: -0.8% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.calculator.CalculatorMetaFunction

Branch Change: -8.7% :small_red_triangle_down:
Complexity Change: -3% :small_red_triangle_down:
Instruction Change: -0.7% :small_red_triangle_down:
Line Change: -0.9% :small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -2.1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change: -4.4% :small_red_triangle_down:
Complexity Change: -5.2% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:
Line Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.tableoutput.TableOutputMeta

Branch Change: -0.9% :small_red_triangle_down:
Complexity Change: -0.8% :small_red_triangle_down:

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -0.5% :small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClassDef

Instruction Change: -11.2% :small_red_triangle_down:
Line Change: -1.9% :small_red_triangle_down:
Method Change: -0.5% :small_red_triangle_down:

org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClassMeta

Branch Change: -0.3% :small_red_triangle_down:
Complexity Change: -1.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceinsert.SalesforceInsertMeta

Instruction Change: -0.1% :small_red_triangle_down:

Note: The list of offending coverage changes extends beyond the presented results and was truncated to prevent reaching the comment size limit.

Added test case

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -fn -f 'pom.xml' -pl 'engine,core' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine,core' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  core/src/main/java/org/pentaho/di/core/logging/LoggingRegistry.java
  engine/src/main/java/org/pentaho/di/trans/Trans.java
  engine/src/main/java/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClass.java
  engine/src/main/java/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClassDef.java
  engine/src/main/java/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClassMeta.java
  engine/src/test/java/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClassMetaTest.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: +0.1% (click to expand)
org.pentaho.di.core.logging.LoggingRegistry

Instruction Change: -0.4% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Method Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -1% :small_red_triangle_down:
Complexity Change: -1.1% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:
Line Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.symmetriccrypto.symmetriccryptotrans.SymmetricCryptoTransMeta

Branch Change: -3.3% :small_red_triangle_down:
Complexity Change: -1.8% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -0.5% :small_red_triangle_down:

org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClassDef

Instruction Change: -10.5% :small_red_triangle_down:
Line Change: -1.9% :small_red_triangle_down:
Method Change: -0.5% :small_red_triangle_down:


cannot enforce HTTP/2

cannot enforce http/2 with current net/http & crypto/tls lib ( go version 1.20.3 )
crypto/tls: see https://github.com/golang/go/issues/59734, we can't drop at the tls level with alpn
net/http: even if we remove 'http/1.1' in NextProtos, the std lib add it back ...( see https://go-review.googlesource.com/c/net/+/325611/2/http2/server.go )

current workaround in nspeed.app:

duplicate crypto/tls
duplicate parts of x/net/http2 and hack the event loop

will reopen eventually


socks: failed to transport all TCP response and writev: broken pipe

i am getting a lot of this in the logs but not clear what is wrong
2024/06/12 15:34:18 [Debug] transport/internet: dialing to tcp:<IP_ADDRESS>:1628
2024/06/12 15:34:18 [Info] [2041544657] proxy/shadowsocks: tunneling request to tcp:r3.o.lencr.org:80 via TCP:<IP_ADDRESS>:1628
2024/06/12 15:34:30 [Info] [1734618671] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60866: writev: broken pipe
2024/06/12 15:34:30 [Info] [512078344] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60881: writev: broken pipe
2024/06/12 15:34:30 [Info] [548881494] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP request > read tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60884: read: connection reset by peer
2024/06/12 15:34:30 [Info] [2291293852] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60911: writev: broken pipe
2024/06/12 15:34:30 [Info] [1677176720] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60883: writev: connection reset by peer
2024/06/12 15:34:30 [Info] [562782385] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60867: writev: broken pipe
2024/06/12 15:34:30 [Info] [3344110513] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60851: writev: broken pipe
2024/06/12 15:34:31 [Info] [3628937195] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60879: writev: broken pipe
2024/06/12 15:34:31 [Info] [4172243203] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60878: writev: broken pipe
2024/06/12 15:34:31 [Info] [2896766123] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60912: writev: broken pipe
2024/06/12 15:34:31 [Info] [2300343692] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60854: writev: broken pipe
2024/06/12 15:34:31 [Info] [740181955] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60885: writev: broken pipe
2024/06/12 15:34:31 [Info] [3636724781] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60880: writev: broken pipe
2024/06/12 15:34:31 [Info] [1348059283] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60882: writev: broken pipe
2024/06/12 15:34:31 [Info] [1793222317] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60914: writev: connection reset by peer
2024/06/12 15:34:31 [Info] [2766699313] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > writev tcp <IP_ADDRESS>:10091-><IP_ADDRESS>:60910: writev: broken pipe
config in pictures.
i really appreciate the advices and help.

刚用v2ray搭建的，大家可以体验一下
欢迎体验
本网站处于推广阶段，联系群主，注册后提供邮箱，提供免费1个月体验机会
官网：https://www.bzg.life/
官群：https://t.me/BZG_group


Some localized time units in Polish don't work when setting "Repeat task every:" feature.

Hi David,
The following localized Polish string don't work:
minut or minuty (for minutes)
godzin (for hours)
The following work:
godzina (for hour or hours)
Bez ograniczeń (for Indefinitely)
dzień (for day)
No Polish translation for minutes seem to work. Call to:
internal bool TryParse(string s, IFormatProvider provider, out TimeSpan result)
in TimeSpanFormatInfo class returns false for minut or minuty.
Thanks,
Audi
Originally posted: 2015-12-12T08:40:58

Polish is not a supported language but is not that difficult to add if you can provide someone that can translate English to Polish. I have posted a file with all the project resources that, when translated, can easily be added to the project. Let me know if this is something you can do.
Originally posted: 2015-12-12T08:41:58

First file: TimeSpan_Resources.xlsx -- This file is for those items specifically in the boxes that accept time spans. Create a new column for the language you wish to expose and provide the translations in that column for all items in the spreadsheet.
Originally posted: 2015-12-12T12:18:52

Second file: TSMW_Resources.xlsx -- Same instructions for providing translations as the first file. This is for all the resources in the UI forms and controls provided for working with Tasks. When done, post both translated files to this work item. I'll incorporate them into the build and post an updated version.
Originally posted: 2015-12-12T12:20:41

Awesome...thanks David! Will post both translated files to this work item as soon as I hear back from our Polish localizers. Really appreciate your kind assistance. Have a great weekend!
Audi
Originally posted: 2015-12-12T18:27:46

Hi David,
We have the following question from our language translator manager:
"It looks like the two xlsx spreadsheets were extracted from a .properties file (or maybe .resx file)."
"We have translation tools that can produce localized .properties files directly without having to copy/paste into Excel."
"Could you please provide the source .properties files (or .resx) instead?"
"Then we can produce individual .properties files for you per language."
Thanks,
Søren
Originally posted: 2015-12-14T05:35:53

Hi David,
We haven't updated our TaskEditor source for quite a while, so the our TaskEditorResources.resx file may, most likely, vary from that of your recent version, especially with respect to the content of the TSMW_Resources.xlsx file. We have localized versions of the TaskEditor for languages other than English. Would it be an issue is we provide a TSMW_Resources.xlsx file based on our localized (older) version of TaskEditorResources.resx? The only issue we have right now is the fact that some translations of TimeSpan units (like the Polish "minut" for minutes, cannot be parsed by the TaskEditor, while it is able to parse other Polish time units like "godzina" for hour or hours, Bez ograniczeń or Indefinitely, dzień for day.
Thanks,
Audi
Originally posted: 2015-12-14T13:12:02

Would it suffice to provide only the TimeSpan_Resources.xlsx translations as we already have localized versions of our TaskEditor forms?
Originally posted: 2015-12-14T13:16:39

I found out that with the current (unmodified) time format parsing pattern, the Polish "minuta" for minutes work!
Originally posted: 2015-12-14T13:58:32

Yes. If you can fill out just the TimeSpan spreadsheet, then I can localize the TimeSpan2 assembly.
Originally posted: 2015-12-14T15:59:50

Hi David,
Here's the localized version of TimeSpan_Resources.xlsx.
Thanks, Audi
Originally posted: 2015-12-16T09:02:42

I see a number of new languages in the file. Would you like me to add all of them?
Originally posted: 2015-12-16T13:49:00

I just added and updated everything you gave me. Attached is a zip file with the new build. Please install these files over the existing and let me know if it all works as you'd expect.
Originally posted: 2015-12-16T14:05:17

Hello David, many thanks for the swift help! I forgot to tell you that our version of your TaskScheduler component integrates the original TimeSpan2.cs file into our TaskEditor source, and doesn't use a separate TimeSpan2.dll. Sorry, I may have wasted your time unnecessarily. I may need to dismantle the TimeSpan2.cs code references from our source, and reference the TimeSpan2.ll instead. Let me know if you have other ideas or suggestions.
Thanks again!
P.S. In the spirit of the Christmas Season, I tried to send you a personal email, but it came back as undeliverable. Here's the content of that email:
"I would like to send you a Papa John’s gift card (by email) as a token appreciation of your prompt invaluable help every time we request for assistance. Please let me know if you have access to a Papa John’s Pizza branch (or a similar business, in which online ordering is available, and you have easy access to pick it up).
Thank you and best wishes for a fantastic 2015 holiday season!
Audi (Reply to<EMAIL_ADDRESS>Originally posted: 2015-12-17T07:15:13

Hi David,
One of our localization developers reported this:
IIZUKA, M.:18Dec2015 at 00:14:16:
Mixed UI language in TaskEditor when application UI culture and format of Windows region
are not the same. Please see TaskEditor_Mixed.png. The example is that application UI is
Japanese and format of Windows region setting is Polish.
Problem is CultureInfo.CurrentCulture is used to load resource. .
CultureInfo.CurrentUICulture  should be used.
Following codes have problem.
TaskEditor Project
NativeMethods.cs
FullDateTimePicker.cs
TimeSpan2\TimeSpanFormatInfo.cs
TimeSpan2\TimeSpanPicker.cs
About the DatePicker, it seems that this is a Microsoft bug:
https://support.microsoft.com/en-us/kb/889834
Originally posted: 2015-12-18T08:24:45

Let me know if these latest zip files fix the problems with CurrentUICulture for TimeSpan2 & TaskScheduler.
Originally posted: 2015-12-18T14:20:19

Adding final attachment
Originally posted: 2015-12-18T14:32:18

Hi David,
Unfortunately, we cannot use your TimeSpan2 and TaskScheduler component as they are. We have a much older version in which the TimeSpan2 source is integrated into the main source.
If you can please point me to your code changes with respect to the use of CurrentUICulture instead of CurrentCulture, that would be enough, Our localizers have solved the issue with respect to their translations not working initially. Everything is working now, except for the mixed UI issue, which I'm going to fix.
Thanks again.
Audimar
Originally posted: 2015-12-21T07:34:52

The changes for those items in TimeSpan2 are here: http://timespan2.codeplex.com/SourceControl/changeset/97991
Those for TaskScheduler are here: https://taskscheduler.codeplex.com/SourceControl/changeset/97992
Searching for CurrentUICulture will show you the lines that were changed.
Originally posted: 2015-12-21T08:28:31

Thanks David! That should complete the work for this issue.
I really appreciate all the help.
Happy Holidays!
Originally posted: 2015-12-23T11:19:25

Originally posted: 2015-12-24T15:19:20


fix namespace mismatch when prune resources.

Please provide a description for what this PR is for.
resolve: https://github.com/istio/istio/issues/24222
And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.
[ ] Configuration Infrastructure
[ ] Docs
[ X ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

In response to a cherrypick label: new pull request created: #24249


Revert "build(deps): bump jose from 1.27.1 to 3.2.0"

Reverts backstage/backstage#3544
jose v3 is a completely different lib form v1 and v2. I think the only reason the PR passed was because no e2e tests were run and old types were picked up ^_>
We could bump to v2 but it removed some stuff we're using so would need a proper port. Moving to v3 requires us to bump up the Node.js version requirements

OH WHAT jose v3 is a completely different lib form v1 and v2. I think the only reason the PR passed was because no e2e tests were run and old types were picked up ^_>

OH WHAT jose v3 is a completely different lib form v1 and v2. I think the only reason the PR passed was because no e2e tests were run and old types were picked up ^_>


Uncaught TypeError: Cannot read property '1' of undefined at Object.runBindingEffect

Description
Error thrown when instantiating Polymer2.0 class element in my app.
When Object.runBindingEffect is called, nodeList is undefined.
property-effects.html:552 Uncaught TypeError: Cannot read property '1' of undefined
    at Object.runBindingEffect [as fn] (property-effects.html:552)
    at runEffectsForProperty (property-effects.html:160)
    at runEffects (property-effects.html:126)
    at HTMLElement._propagatePropertyChanges (property-effects.html:1676)
    at HTMLElement._propertiesChanged (property-effects.html:1641)
    at HTMLElement._flushProperties (property-accessors.html:549)
    at HTMLElement.__enableOrFlushClients (property-effects.html:1548)
    at HTMLElement._readyClients (property-effects.html:1562)
    at HTMLElement._readyClients (element-mixin.html:653)
    at HTMLElement._flushClients (property-effects.html:1517)
runBindingEffect @ property-effects.html:552
runEffectsForProperty @ property-effects.html:160
runEffects @ property-effects.html:126
_propagatePropertyChanges @ property-effects.html:1676
_propertiesChanged @ property-effects.html:1641
_flushProperties @ property-accessors.html:549
__enableOrFlushClients @ property-effects.html:1548
_readyClients @ property-effects.html:1562
_readyClients @ element-mixin.html:653
_flushClients @ property-effects.html:1517
_propertiesChanged @ property-effects.html:1643
_flushProperties @ property-accessors.html:549
ready @ property-effects.html:1605
ready @ element-mixin.html:633
ready @ legacy-element-mixin.html:176
ready @ class.html:215
ready @ class.html:215
ready @ class.html:215
ready @ class.html:215
ready @ class.html:215
ready @ class.html:215
ready @ class.html:215
_enableProperties @ property-accessors.html:531
connectedCallback @ element-mixin.html:614
connectedCallback @ legacy-element-mixin.html:90

Live Demo

http://jsbin.com/luhaxab/1/edit
Steps to Reproduce

Expected Results

Actual Results

Browsers Affected

[ ] Chrome
[ ] Firefox
[ ] Edge
[ ] Safari 9
[ ] Safari 8
[ ] IE 11

Versions

Polymer: v2.0.2
webcomponents: v1.0.10

Thanks for the issue.  Please see CONTRIBUTING.md for guidelines on filing issues.  Please fill out as many fields in the issue template as possible, and be sure to include a live reproduction so that the team can debug or understand your issue.  You can start from this jsBin template as a starting point and link it in the issue template under "Live Demo".
Feel free to file a new issue following these instructions.  Thank you!

@bennypowers  how did you solve this?

+1

+1

+1


Publish @pxblue/angular-components v4.1.0

Changes proposed in this Pull Request:

Release<EMAIL_ADDRESS>
v4.1.0 (Not Published Yet)
Added

Adds new property openOnHover to <pxb-drawer>.
Adds new class pxb-dropdown-toolbar-subtitle-icon to <pxb-dropdown-toolbar>
Adds lighter font weight to <pxb-info-list-item> placed inside <pxb-user-menu>.
Adds a shadow to the <pxb-user-menu> when opened.
Adds new property openOnHoverDelay to <pxb-drawer> to alter open-on-hover delay for closed persistent drawers.

Fixed

Fixes bug in <pxb-mobile-stepper> which makes component span 100% of parent width.
Fixes header height bug which affected <pxb-drawer-header> in Safari.
Fixes misalignment of <pxb-info-list-item>'s right content.
Fixes RTL styles in <pxb-dropdown-toolbar>.
Fixes uneven vertical alignment of icon and text in <pxb-empty-state> action buttons.
Fixes <pxb-user-menu> menu header avatar offset.
Fixes <pxb-drawer> sideBorder prop to use mat-elevation class.

Removed

Removes automatic RTL flip logic from user-provided icons to <pxb-info-list-item>.

Changed

Default styles of <pxb-dropdown-toolbar> for more padding around the dropdown arrow.
Changed <pxb-user-menu> menu title default font size to 16px.
Changed <pxb-user-menu> menu subtitle default font size to 14px.

Is there documentation changes needed for rail condensed and hover tooltips?

Is there documentation changes needed for rail condensed and hover tooltips?

The rail/hover tooltip was something that was introduced in a previous release; we have some docs for it.  There was one drawer change that's included in this released, the openOnHover  was added and we have some docs around it.

is it possible to get some padding in here for this label "100"? Everything else looks good


Unable to load a compatible version of the widget 'catboost_module'. Expected behavior may be affected.

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

!pip install jupyter ipywidgets catboost
!jupyter nbextension enable --py widgetsnbextension
run:

from catboost.datasets import amazon
from catboost import CatBoostClassifier
(train_df, test_df) = amazon()
y = train_df.ACTION
X = train_df.drop('ACTION', axis=1)
cat_features = list(range(0, X.shape[1]))
model = CatBoostClassifier(iterations=100)
model.fit(X, y, cat_features=cat_features, verbose=10, plot=True)

Actual behavior
Presents a pop up window in the lower right hand side with error
"Unable to load a compatible version of the widget 'catboost_module'. Expected behavior may be affected."
and buttons Ok, Do not show again, Report issue
Expected behavior
Show a plot of logloss as progress training iterations

Your Jupyter and/or Python environment
Please provide as much info as you readily know

Jupyter server running: Local
Extension version: 2020.8.109390
VS Code version: 1.48.2
Setting python.jediEnabled: not defined
Setting python.languageServer: Jedi
Python and/or Anaconda version: Python 3.8.5
OS: Linux (distro): Manjaro xfce
Virtual environment: venv

Python Output

After setting python.logging.level=debug, restarting vs code and running the above code, there is no Python output tab.

This should now work as expected, moving to June to get validated.


Feature: Create function to calculate num_of_flagged_kris

Feature Details
Using results_summary from Make_Snapshot(), create a function that calculates the number of at risk KRIs (-2 or +2), defined as Total number of distinct groups from results_summary where the flag is 2 0r -2 for a KRI workflow

Closed because ExtractFlags() was created and merged.


Shift-click to remove an item from the selection doesn't work for bounding boxes, cameras etc

With multiple items selected, shift-clicking on an mesh will remove it from the current selection.
However, shift-click or shift-click-drag on bounding boxes, cameras, etc does not remove them from the current selection.
In the node graph, shift clicking does work, but shift-click-drag to deselect multiple nodes does not work.
Seems like it might be two problems combined

[ ] shift-click-drag needs to deselect multiple items
[ ] #53

Closing, since "shift click to deselect" is now working in the viewer for bounding boxes, cameras etc. Please feel free to open a new ticket for the unrelated "shift-click-drag in node graph".


[Updatecli] Update version to 36534cc1dda2ee111d9a573ff3b11ec061bb8beb6c87f4b7a1279da8398ab920

! Experimental project
This pull request was automatically created using olblak/updatecli
Based on a source rule, it checks if yaml value can be update to the latest version
Please carefully review yaml modification as it also reformat it.
Please report any issues with this tool here

Mmmh there is something wrong with the yaml format here


Add numeral range to regex in test-file function

Stumbled on this while trying to debug lein autoexpect, which has started hanging on file reload. I have a file/namespace which wraps some functionality related to Amazon's S3 service, and the existing regex was choking on the number in the file name. I suspect this is unrelated, but it'd be nice to fix in any case.
I tried to run the test suite for this library and it came up with 43 failures even without my change. Not sure if I'm doing something wrong, of if the tests are just out of date.

I have the tests split to succeeding and purposefully failing - those are all examples though, not actual tests for the library. The tests for the library are in there as well. I should probably split it all up, but it hasn't been much of an issue so far.

version 2.0.16 has been released, it includes your changes.


Typo guides pt-BR [ci skip]

https://github.com/yiisoft/yii2/commit/4305667f87fbddee71013060adb9d3330b527291 Thanks!


Gaps around GTK apps, Firefox, and other apps that have client-side decorations

There are huge gaps around anything that has client side decorations because of the shadow:

For Firefox, you can just disable its client side decorations ("Title bar" option at the bottom of the customize screen), but what about GTK?

AFAIK there is no way to obtain the margin values caused by client side decorations (using the EWMH protocol).
Therefore cortile is not aware of any additional layout changes, that may lead to those gaps.
Depending on your operating system and window manager settings (theme, border, shadow, ...) you can search for
Disable GTK3 Client-Side Decorations. However, this could cause minor cosmetic damage to your desired appearance of windows.
For default Xfce desktop environments create a file /home/USER/.config/gtk-3.0/gtk.css with the content:
decoration {
    margin: 0px;
    padding: 0px;
    border: none;
    box-shadow: none;
}

This will disable most of the client-side decorations that might cause this problem.
Let me know if you have found a solution to your particular problem.

This was solved with the suggestions from mark-cooke (#5).
Please have a look at the latest release and let me know if you find any further issues.


feature request: support placeholder for parameter k in tf.nn.in_top_k

Currently tf.nn.in_top_k requires an int as k, while tf.nn.top_k does support a 0-D int32 Tensor as parameter k. This is kind of inconsistent and inconvenient.
Is it possible to allow k to be a 0-D int32 Tensor in tf.nn.in_top_k?

Yes, it should be supported.
I think it's just a matter of removing k= in the code.
@girving WDYT?

Yes, this requires a similar InTopKV2 op to the TopKV2 op I added.
@soloice Would be up for submitting a PR?

@girving Okay, I'll have a try.

Thanks!  Let me know if you have questions.

Added a PR #11197 for this issue.

@yongtang Thanks for your contribution. I'm kind of busy these days and almost forget this issue...


chore: update zh-hant localization

You're creating pull request for master branch, which is for 1.8.0 development and unlikely to be released in near future.
If I found some bug, I'll create patch for 1.7.x and release 1.7.x so it might be better to include this changes in 1.7.x which is on master-1.7 branch. (I don't have plan to release 1.7.x for now but likely to be before 1.8.x)
How do you think?


[Feature Request]:

chat_with_your_documents example is not up do date
I was trying to write a simple application that answers incoming queries according to the document entered. I have tried to get help from chat_with_your_documents example but it is not up to date.
You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface.

Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742

i get this error. But when i downgrade the openai version to 0.28 it's still give some warnings but works fine.

@doganaktarr thanks for letting us know! we will get this fixed up


Rename universe functionality to accomodate transfer proofs.

Our universe functionality now handles transfer proofs in addition to issuance proofs. This PR renames functions and structures for clarity and correctness.

Just code clean up,
we're using transfer proofs through this code areas, so this increases the accuracy

There are probably more changes that we need to make along the same lines, but I would prefer to handle those in another PR unless they're pressing.


support classes for python converter and other goodies

This PR adds:

support for uint32 and float NumberFormats when operating on buffers
pins.packBuffer, unpackBuffer (similar for Python struct.pack)
I2CDevice class (encapsulates address and in future lock)
adds return codes to I2C functions
adds control.fail

Please takes a look and see if the APIs and their names make sense.
CC @pelikhan @abchatra @microsoftsam @riknoll @tballmsft

@mmoskal,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

LGTM


rbenv versions hangs

Hi,
I'm giving rbenv a try and after installing it, running rbenv versions hangs. Running it like this:
RBENV_DEBUG=1 rbenv versions

shows that there seems to be an infinite loop? the lines below are executed over and over.
...
+ [rbenv-version-file:17] root=.
+ [rbenv-version-file:11] [[ . =~ ^//[^/]*$ ]]
+ [rbenv-version-file:12] '[' -s ./.ruby-version ']'
+ [rbenv-version-file:16] '[' -n . ']'
+ [rbenv-version-file:17] root=.
+ [rbenv-version-file:11] [[ . =~ ^//[^/]*$ ]]
+ [rbenv-version-file:12] '[' -s ./.ruby-version ']'
+ [rbenv-version-file:16] '[' -n . ']'
+ [rbenv-version-file:17] root=.
+ [rbenv-version-file:11] [[ . =~ ^//[^/]*$ ]]
+ [rbenv-version-file:12] '[' -s ./.ruby-version ']'
+ [rbenv-version-file:16] '[' -n . ']'
+ [rbenv-version-file:17] root=.
...

Bash profile contains:
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"

Am I doing something wrong?
Thanks,
Sergei

Thank you for reporting!

What rbenv --version do you have?
What is your OS and bash version?
Is the behavior the same when you invoke rbenv versions from different directories on your system?

Thank you for getting back to me, @mislav.

rbenv 1.1.1-39-g59785f6
CentOS 7.5
When a brand new shell is opened, it hangs, but when I switch to another dir and do it, it works! When switching back to the home dir after that, it works as well.
The lines leading up the loop are:

+ [rbenv:125] exec /home/sgerasenko/.rbenv/libexec/rbenv-versions
+ [rbenv-versions:10] unset bare
+ [rbenv-versions:11] unset skip_aliases
+ [rbenv-versions:28] versions_dir=/home/sgerasenko/.rbenv/versions
+ [rbenv-versions:30] enable -f /home/sgerasenko/.rbenv/libexec/rbenv-realpath.dylib realpath
+ [rbenv-versions:62] '[' -d /home/sgerasenko/.rbenv/versions ']'
++ [rbenv-versions:63] realpath /home/sgerasenko/.rbenv/versions
+ [rbenv-versions:63] versions_dir=/home/sgerasenko/.rbenv/versions
+ [rbenv-versions:66] '[' -n '' ']'
+ [rbenv-versions:72] hit_prefix='* '
+ [rbenv-versions:73] miss_prefix='  '
++ [rbenv-versions:74] rbenv-version-name
+ [rbenv-version-name:6] '[' -z '' ']'
++ [rbenv-version-name:7] rbenv-version-file
+ [rbenv-version-file:7] target_dir=
+ [rbenv-version-file:22] '[' -n '' ']'
+ [rbenv-version-file:25] find_local_version_file .
+ [rbenv-version-file:10] local root=.
+ [rbenv-version-file:11] [[ . =~ ^//[^/]*$ ]]
+ [rbenv-version-file:12] '[' -s ./.ruby-version ']'
+ [rbenv-version-file:16] '[' -n . ']'

Hope this helps.
Thanks,
Sergei

It looks like it was RBENV_DIR=. that threw this in a loop. In most cases, RBENV_DIR as assigned like so: RBENV_DIR="$PWD". It might be that the value of PWD was . when the shell is starting out. 🤔

I'm not sure how to act on this, so I'm going to close this until they are more reports. Please reopen if this still bites you!


Unexpected router.replace behaviour

Version
3.0.1
Reproduction link
https://jsfiddle.net/e3odg60s/2/
Steps to reproduce
Click push next three times
three states should be added (1,2,3)
Now click replace three times. The history list should now look like this:
[1,2,6]
Now use the back button to go back to the start. First navigation simply does not work.
Then the order is as follows: [5, 4, 2, 1]
It appears that replace actually only replaces on the first call, subsequent calls instead push states.
What is expected?
Replace should always replace the current state
What is actually happening?
Replace pushes new states

You can also try clicking: push, replace, push, replace, push, replace, push, replace
Now every other back navigation does not work. Very weird behaviour.

You need to .prevent on the click event because since it is a link, it will also mess up the history

I'm facepalming so hard right now. Thanks @posva

lol, don't worry, it also took me some time to figure it out


Custom layout not respected when using CLI + webhook

Bug description
The customLayout config property is not respected when running the CLI command and sending the message through a webhook
See https://github.com/ryanrosello-og/playwright-slack-report/blob/main/cli.ts#L74C7-L80C10
const webhookResult = await slackWebhookClient.sendMessage({
        customLayout: undefined,
        customLayoutAsync: undefined,
        maxNumberOfFailures: config.maxNumberOfFailures,
        disableUnfurl: config.disableUnfurl,
        summaryResults,
      });

How to reproduce (please include a snippet of your Playwright Slack Reporter configuration)
{
"sendResults": "always",
"slackLogLevel": "error",
"sendUsingWebhook": {
"webhookUrl": "XXX
},
"meta": [
{ "key": "project", "value": "test" },
{ "key": "build", "value": "1.0.0" },
{ "key": "branch", "value": "main" },
{ "key": "commit", "value": "1234567890" }
],
"maxNumberOfFailures": 4,
"disableUnfurl": true,
"customLayout": {
"source": "./playwright/slack/template.ts",
"functionName": "generateMessage"
}
}
Expected behavior
Custom layout is respected in CLI for webhooks as well
Environment & setup

OS: maCOS
Node.js version: v20.16.0

playwright-slack-report version
1.1.86

This should be addressed in https://github.com/ryanrosello-og/playwright-slack-report/pull/179


Unable to use TextInput as an Accessory

If I use something like this:
Section({text: "Fill in data: "})
            .accessory(
                TextInput({actionId: "Example"})
            )

I'll get this error:
Argument of type 'TextInputBuilder' is not assignable to parameter of type 'Undefinable'.
Type 'TextInputBuilder' is missing the following properties from type 'UserSelectBuilder': confirm, initialUserts(2345)
But if I do
  Section({ text: "button" })
         .accessory(
                    Button({
                        text: "This is the btn",
                        actionId: actionId
                    })
                )

Then I get no errors. Is this a bug or am I doing something wrong. An example of how to do this on the doc site would be great

Hi there! Unfortunately, this is a restriction of the Slack API. It looks like this has been removed from the documentation, but you can see it reflected both in Slack's type definitions, as well as by trying it in Block Kit Builder.

Hi there! Unfortunately, this is a restriction of the Slack API. It looks like this has been removed from the documentation, but you can see it reflected both in Slack's type definitions, as well as by trying it in Block Kit Builder.

Well that explains why I was getting no where!
Thanks so much for the quick-assist!


Add support for CAdES Baseline-T (WIP)

This PR provides support for CAdES Baseline-T in both CMS_verify() and when creating CMS signatures. Creating signatures means extending CMS signatures with timestamps embedded according to CAdES specifications. While verification can be completely embedded into CMS_verify(), extending signatures requires timestamping routines. Therefore openssl ts is used in the example implementation (see 80-test_cms.t), as timestamping in real life will most likely involve online services.
The state of this PR I marked WIP, as the enforcement of purpose_timestamp in the ts-lib needs to be reviewed. Also, more test cases testing the embedded verification in CMS_verify() should be added using signatures with expired certificates.
Anyway feedback/review is needed.
Tested against https://github.com/esig/dss.
This PR needs PR #21407, so that the commits are included here as well.
Addresses (but not fixes, as only Baseline-T is included in this pull request) #18491
Checklist

[x] documentation is added or updated
[x] tests are added or updated

@FdaSilvaYY :  I have updated the pull request regarding your comments (and regarding the check results).
One think I could not resolve is the handling of the providers. 80-test_cms.t is one of the very few tests that run with OPENSSL_TEST_LIBCTX=1. I have tried to work around issues with "ts" using this setting, but the failing checks indicate that there are still issues and I do not really understand what to do about it.

I see very little testing for the complex corner cases...
What I see is that there's intention for it to be extended later to -LTA, but for that to be the case, multiple timestamps should be handled correctly:

adding additional timestamp to -T format (preferably from a separate CA hierarchy)
verifying with one of the timestamps invalid/expired
verifying with all timestamps expired but the base signature still being valid as of now

what about revocation information?

I would be willing to pick up the threat again. But except for @FdaSilvaYY nobody else commented and especially nobody from the OpenSSL team left any indication of interest in adding this feature to the codebase at some point in the future.
There are some issues that need to be dicussed on the design level, one of which is https://github.com/openssl/openssl/pull/21407. Another aspect is how to deal with CAdES requirements. Currently the proposed code acts just opportunistic (if a valid timestamp is available, it is evaluated). It should also be possible to add flags to enforce minimum levels like -T or -LT (LT would need to fail if necessary revocation lists are not present).
Note: some of this is already implemented in our internal code base but there I had more freedem to add company specific API extensions :-).


Update joinSub docblock

Changes
The joinSub docblock in the QueryBuilder.stub file is not (no longer) aligned with Laravel 9.
The stub version actually accepts a narrower range of types than Laravel itself.
In particular, \Illuminate\Database\Eloquent\Builder was not accepted, but is accepted according to Laravel.
This change fixes the docblock and thereby removes a PHPStan false negative.
Breaking changes
None.

Hello Harmen! 👋
Could you add a test that fails without this PR?

Hi Viktor! 🙂
I've tried adding a test, by simply using joinSub in the feature test, and passing it an Eloquent builder.
But I can see even before that, the type in the stub file is incorrect:
Method Illuminate\\Database\\Query\\Builder::joinSub() has parameter $query with generic class Illuminate\\Database\\Eloquent\\Builder but does not specify its types: TModelClass

I'm not entirely sure how to fix this. I've taken the type from Laravel 9's own docblock.
Can you give me a pointer on how to debug?

Yeah, I understand. I just don't know how to mark it as such in the type signature.
I cannot add \Illuminate\Database\Eloquent\Builder<TModelClass> in the @param doc.
It will give me the error:
Type Illuminate\\Database\\Query\\TModelClass in generic type Illuminate\\Database\\Eloquent\\Builder<Illuminate\\Database\\Query\\TModelClass> in PHPDoc tag @param for parameter $query is not subtype of template type TModelClass of Illuminate\\Database\\Eloquent\\Model of class Illuminate\\Database\\Eloquent\\Builder.

I'm not sure how to refer to the original Eloquent Builder's TModelClass template type...

Thanks @canvural, that was almost it! I've added a TModelClass template to ensure we can also pass subclasses of Illuminate\Database\Eloquent\Model.
The tests succeed now.

Thank you.

Thanks for the merge!


Camera window freezes on iPhone/iPad

Hello,
I tested with quagga and quagga2 with the same issue. On my Google Pixel 7 all is fine and working as expected. Tested from the browser and installed as an PWA application on my phone.
As soon as I test on iPhone 13 or iPad the reader is working only if I run my "app" in the Safari browser. But if I install the app as a PWA application on the iPhone/iPad the camera window freezes if I run the quagga script. I can see the picture taken from the camera but still frozen. It's not showing the live content.

Sounds very strongly like an iOS problem.  But... what is your configuration you're passing to Quagga.init?
It wasn't until I think the most recent iOS release that camera was even supported outside of Safari in WebView, and that might still be in beta.. i don't track what's going on with iOS much since I don't have any iOS things

If I remember right it was working on an older iOS/Safari version.
My init/config looks like:
init: function(regionID, attribute1, width, height) {
        var self = this;
        regionID = regionID;
        barcodeItem = attribute1;
        l_width = width;
        l_height = height;

        console.log('init: ' + regionID);

        Quagga.init(this.config, function(err) {
            if (err) {
                return self.handleError(err);
            }
            Quagga.start();
        });
    },
    handleError: function(err) {
        console.log(err);
    },
    config: {
        inputStream: {
            target: scannerCamEl,
            type : "LiveStream",
            constraints: {
                // width: {min: l_width},
                width: 320,
                height: 240,
                facingMode: "environment"
                //aspectRatio: {min: 1, max: 2}
            }
        },
        locator: {
            patchSize: "medium",
            halfSample: true
        },
        numOfWorkers: 2,
        frequency: 10,
        decoder: {
            readers : [{
                format: "ean_reader",
                config: {}
            }]
        },
        locate: true
    }

hmm.  can you tell if your code is still running?  i'm not sure what on device debugging capabilities th ere are, but I'd presume there's some way to debug on device, and you could get the logs or something to see if it's actually doing anything at all.
It wouldn't surprise me if this is some sort of bugged out optimization that is supposed to make pages that aren't focused not render, but it's affecting an actually focused page.  ugh.
There were tons and tons and tons of problems like this in WebKit when I used it last.


wsl and laravel

Describe the bug
event not return from test
Versions
<IP_ADDRESS>
You can use composer show to get the version numbers of:

spatie/ray package version:
spatie/laravel-ray package version (if applicable):

PHP version:
Laravel version (if applicable):
To Reproduce
Steps to reproduce the behavior:
step0: publish config
step1: update .env
RAY_HOST=
RAY_REMOTE_PATH=
RAY_LOCAL_PATH=

start a t, it's not work
Expected behavior
display result
Desktop (please complete the following information):

OS: Debian 11 WSL2 on Windows 10
Version

To get this to work on wsl2 you will need to do the following:
Add this to your wsl2 terminal profile, in my case ~/.bashrc:
# Set winhost to windows ip
export winhost=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }')
old_winhost=$(grep -P "[[:space:]]winhost" /etc/hosts | awk '{ print $1 }')

if [ -z $old_winhost ]; then
    echo "write winhost to /etc/hosts"
    echo "$winhost winhost" | sudo tee -a "/etc/hosts"
elif [ $old_winhost != $winhost ]; then
    echo "update winhost in /etc/hosts from $old_winhost to $winhost"
    sudo sed -i "s/$old_winhost winhost/$winhost winhost/g" /etc/hosts
fi

Close and restart your terminal
This will then when a new terminal is opened create an entry in wsl2's hosts file a winhost config pointing to windows local ip.
The reason you have to do this is because windows local ip for wsl changes every time wsl2 is started/restarted.
In your projects env add RAY_HOST=winhost
This will also work for Helo and other windows applications as winhost is basically the same as localhost except referring to windows compared to localhost referring to wsl2

too complcated for me

too complcated and overkill for me

it only takes 30 seconds to do...


Model does not detect itself as dirty after setting the model fragment attribute

https://github.com/leondmello/ModelFragment
Just run this app with ember serve and load it in the browser and then click the button with the console open.
Here's the gist of what I am trying to do,

A model has a fragment attribute with some values, set this attribute to null. Check if the model is dirty. (This returns true as expected)
I then use the set method on the model to set the fragment to new values (different from the original ones). A dirty check on the model should return true. But it returns false.

I have give a link of the app I wrote to test this. The code which performs the steps I have mentioned is in the settings controller.
Maybe I am setting the fragment attribute incorrectly

Thanks for reporting, this does appear to be a bug. Thanks as well for creating a repro-repo :+1:

This is related to the object literal notation introduced in v0.4.1. For now, setting fragment properties to newly created fragments (using store.createFragment(...)) works correctly.

Oh, well I face this issue in a component. So I cannot access the store.
Is there an alternative?
Were you able to identify where the issue is. I don't mind submitting a pull request.

The store is a service, so you can inject it with Ember.inject.service('store').

Oh, cool. I'm still an ember newbie learning the ember ways :)

From what I read, injecting the store into components is not recommended. I'll make do with that for now.

@leondmello

From what I read, injecting the store into components is not recommended. I'll make do with that for now.

I think people are still trying to figure out the best patterns for life without controllers. Some "what's recommended" is still kind of in flux. But IMHO if you have an app with any level of moderate complexity, using the store's service in a component is the only way to keep your sanity.


My Hugo site fails to build

Tried out the support for Hugo. Set all up according to the docs but the build fails with this error:
/usr/bin/docker run --name be76db3742c4258d2045bd9d18e2a545bed1a3_c46332 --label be76db --workdir /github/workspace --rm -e INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN -e INPUT_REPO_TOKEN -e INPUT_ACTION -e INPUT_APP_LOCATION -e INPUT_API_LOCATION -e INPUT_APP_ARTIFACT_LOCATION -e INPUT_API_BUILD_COMMAND -e INPUT_APP_BUILD_COMMAND -e INPUT_ROUTES_LOCATION -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/blogtest/blogtest":"/github/workspace" be76db:3742c4258d2045bd9d18e2a545bed1a3
App Directory Location: '/' was found.
[WARNING] Api Directory Location: 'api' could not be found. Azure Functions will not be created.
The content server has unexpectedly rejected the request with: NotFound
Exiting

Hi @mahoekst, can you retry and see if this is still happening? If so can you provide the region of your app?

Build succeeded now. thanks for the prompt response.

No problem!


a bug of pip install pyleecan

Dear guys
when I use "pip install pyleecan", I have found some bugs.
If we use pip install pyleecan, it will not install the module "ezdxf", which is necessary for the pyleecan.
Besides, the numpy 1.19.4 may not worked for the pyleecan, but numpy 1.19.3 can be worked.
In addition, Pyside2 may have trouble when the python version is further than 3.8.

Hello,
Thank you for reporting this :)
Regarding ezdxf, I just checked and it is in the requirements so it should be installed. We will soon create a new release (once PR #283 will be merged), I will investigate this issue then.
Regarding the issue with numpy it was corrected in the requirements but I don't think it is in the current release. It should be fixed with the new release.
Regarding PySide2, I didn't know thank you for noticing. I have updated the doc (https://pyleecan.org/get.pyleecan.html) to recommand a python version between 3.6 and 3.8. (I have also added the link to this page in the README as it was missing)
Best regards,
Pierre

Hello,
Thank you for reporting this :)
Regarding ezdxf, I just checked and it is in the requirements so it should be installed. We will soon create a new release (once PR #283 will be merged), I will investigate this issue then.
Regarding the issue with numpy it was corrected in the requirements but I don't think it is in the current release. It should be fixed with the new release.
Regarding PySide2, I didn't know thank you for noticing. I have updated the doc (https://pyleecan.org/get.pyleecan.html) to recommand a python version between 3.6 and 3.8. (I have also added the link to this page in the README as it was missing)
Best regards,
Pierre

Hello,
My colleague Cedric found the trick. There was a mismatch between requirements.txt and setup.py which is used to generate the release. I have updated it so it should be fixed. I will check it after the next release.
Best regards,
Pierre

Hello,
My colleague Cedric found the trick. There was a mismatch between requirements.txt and setup.py which is used to generate the release. I have updated it so it should be fixed. I will check it after the next release.
Best regards,
Pierre

Hello everyone,
Just to let you know. I also had a problem while launching the GUI of Pyleecan with latest versions. The error message stated that 'ezdxf' is missing. So I installed it using the below command, and it worked perfectly.
pip install ezdxf
Hamza FAROOQ

Hello everyone,
Just to let you know. I also had a problem while launching the GUI of Pyleecan with latest versions. The error message stated that 'ezdxf' is missing. So I installed it using the below command, and it worked perfectly.
pip install ezdxf
Hamza FAROOQ

Hello Hamza ,
Thank you for reporting this issue :) Normally it will be fixed with the next release (I hope this Friday).
Best regards,
Pierre

Hello Hamza ,
Thank you for reporting this issue :) Normally it will be fixed with the next release (I hope this Friday).
Best regards,
Pierre

Hello all,
It was not the Friday I thought but we just released pyleecan 1.1.0 :) We took the time to investigate some bugs and add few extra features, sorry for the wait.
I just installed it with pip on a fresh python installation and the GUI opens correctly and the proper version for numpy and ezdxf are installed. So everything seems fixed, thank you for reporting this issue. I'm closing it for now, feel free to reopen it if it needs further work.
Best regards,
Pierre


fix empty xml node handling

Issue #, if available:
https://github.com/awslabs/aws-c-common/issues/1165
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.63%. Comparing base (bb29dc8) to head (19f5795).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1168      +/-   ##
==========================================
+ Coverage   83.62%   83.63%   +0.01%
==========================================
  Files          57       57
  Lines        5948     5953       +5
==========================================
+ Hits         4974     4979       +5
  Misses        974      974

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Include user email address in account

Requires backend development to provide this.

Backend is ready, needs to be added to TV app


MissingTemplate error

I started noticing this error on 4/27:
ActionView::MissingTemplate: Missing template themes/music_house/views/camaleon_cms/404, camaleon_cms/default_theme/camaleon_cms/404, /camaleon_cms/404 with {:locale=>[:en], :formats=>[:css], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby,
This appears to happen when requests are initiated for missing images or css.

I'm still getting this error regularly on asset 404s. Has anyone else experienced it?

I attempted to upgrade from Rails 5.0.3 to Rails 5.1.1. Now this issue is occurring on some CMS content as well, not just assets, causing fatal errors when requesting pages.
ActionView::MissingTemplate: Missing template themes/my_app/views/post, camaleon_cms/default_theme/post with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :svg, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip, :gzip], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}.
Top line of trace:
File "/app/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.1/lib/action_view/path_set.rb", line 46, in find
Running latest git version of Camaleon, Ruby 2.4.1.

I experienced trouble with Ruby 2.4 and Rails 5.1 with Camaleon as well. I've found it safe to work with 2.3.3 and Rails 5.0.3 though. Try making a new gemset and seeing if that helps the problem, I'm interested to hear if that changes anything because I need the most recent Rails versions as well.

Both of these problems point me here.
This line calls the ActionView find method, which is what raises the exception. Neither of these files has changed since last year, though, so there's still some tracing to be done.
In the case of the asset 404s, the search correctly looks for /camaleon_cms/404, and it looks in /camaleon-cms/app/views. I have no idea why that causes an exception, since both are correct. I may not see this again since I just made a custom 404 page, and no one else has reported it.
In the case of the missing templates in Rails 5.1, I notice the message says there's a missing template called /Post. None of my pages use a template with this name, so it appears the wrong template is being searched. On top of that, the file /camaleon_cms/default_theme/post is genuinely missing.

I found something related to 404s. It says the code used in this line was deprecated in Rails 5 and removed in Rails 5.1.

Regarding the Rails 5.1 template errors, I haven't found anything conclusive yet. I did notice, though, that get_template calls get_meta, which includes the method with_indifferent_access. This method has some deprecations. I can't tell that any of them are related to the way this method is used in Camaleon, but can anyone verify?

Hi,
Regarding Rails 5.1 I was actually able to run CMS with this patch.
I've put this into initializers.
module HashWithIndifferentAccessParameter
  def with_indifferent_access
    ActiveSupport::HashWithIndifferentAccess.new(self)
  end
end

ActionController::Parameters.include Enumerable
ActionController::Parameters.include HashWithIndifferentAccessParameter

module AllowRedirectBackSymbol
  def redirect_to(options = {}, response_status = {})
    if options == :back
      return redirect_back(fallback_location: request.referer)
    end
    super
  end
end
CamaleonCms::FrontendController.include AllowRedirectBackSymbol
`
also
``` ruby
 require 'will_paginate/array'

I know that this is not the best approach to solve this but might give you some hint about Rails 5.1 issues.
Routes patch is related to
http://edgeguides.rubyonrails.org/5_1_release_notes.html#direct-resolved-routes

Thanks for that @slopy. I get what HashWithIndifferentAccessParameter does, but how do AllowRedirectBackSymbol and require 'will_paginate/array' apply to this problem? I couldn't understand the intent of the link you posted.

It looks like require 'will_paginate/array' was added in #644.

Hi Guys,
I couldn't see errors related to HashWithIndifferentAccessParameter.
Can someone give me the steps to reproduce it?
PD: I solved some conflicts for rails 5.1.1. (Github version until weekend to detect other errors)
Regards,

@owen2345 the problem might not be HashWithIndifferentAccess. All of the instances I found of that method were applied to regular hashes, which is still valid. Looking into it I discovered that there's no deprecation with that method after all. The changes I was thinking of have to do with inheritance and classes, not with the method.
I'm still getting the error from my third post in this issue, even with your recent fixes. The only steps required to reproduce it in my app are to update to Rails 5.1, run the app in production, and click around the site. Generally, a few pages load fine before the error starts to occur. I wish I could be more precise, but the behavior is not completely consistent. I'm running latest Rails 5.1.1, Camaleon git version, and Ruby 2.4.1.
The other commenters have had problems too, but I'm curious whether they've had this specific problem. @WMPayne @slopy Have you seen this issue?

Update: I tried a fresh Rails 5.1 app with Camaleon installed and I could not reproduce the issue. If no one else is getting these errors then it's probably specific to my app.
To re-sum up the problem, ActionView is looking for a template called post, which does not exist. Even if it did, that's not the correct template for anything in my app. This behavior does occurs on Rails 5.1.1, but not 5.0.3 and lower.

It seems that something is causing my app to use templates from the default theme. As stated above, the Post template doesn't exist in the default theme within this repository, so an error is raised. After the error occurs, if I go to my index page, it renders the Index template from the default theme, not from my custom theme.

Got it. Steps to reproduce:

Create Rails 5.1 app
Enable Front Cache plugin
Logout
Load a page twice

When a page is loaded from the plugin, the error occurs.


Update to Zig 0.13.0-dev.249+ed75f6256

Updates build.zig due to changes in LazyPath.
Note: Before merging this PR, we need to update build.zig.zon after (https://github.com/getty-zig/getty/pull/157) is merged.

Thanks, think I'll also make branch that tracks latest non-nightly release of zig too

This branch tracks release zig now
https://github.com/Cloudef/zig-router/commits/zig-stable/

Updated the build.zig.zon! Can confirm that the tests still pass on both the stable Zig 0.13 and the latest Zig 0.14 dev (0.14.0-dev.23+d9bd34fd0 of writing)

Thanks!


feat(docs): update example 8.1 to reflect L2toL2CDM changes

#194  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tremarkley and the rest of your teammates on  Graphite


Preview + Export Not rendering

Hi @bodymovin!
Although the animation is represented in AE, the preview and json file are populating through the extension. Please let me know if you have a solve!
Was unable to attach the zip so have the folder uploaded to this wetransfer link: https://we.tl/t-R3iTMghAA0
Thanks in advance!

hi, can you share more info? Not sure I understand the problem

yes, the animation is preview-able in after effects, but when I got to preview and export through bodymovin, it won't show up, it's just blank, both in the preview window and the json file.

!

video layers are not supported unfortunately

thank you @bodymovin ! okay, i replaced the video with a sequence of .png images but am still having the same problem. Attaching a link to the updated after effects file, please let me know if you're able to identify the root of the issue! https://we.tl/t-2Yr7v7zOr5 and thanks again!


Added 2 Libraries from Yalantis

Added Context-Menu.Android and Side-Menu.Android from Yalantis.

@axelrindle have you tried the id with the "." (dots) in the name? I haven't yet had such a library and I am not sure if it will work

@mikepenz I changed the "." to a "_".

thanks.

but you didn't push :D seems to not yet be up

@mikepenz Actually I did.

I can't see the change in the diff.

@mikepenz Changed it.

thanks


fix babelOptions wrong position when use with jsx

In README, react: true should be in babelOptions.
I updated my systemjs-example for using systemjs to load es6 module, jsx, ts and tsx, and found the wrong react config position. This lead to my long time fail when using babel to transpile jsx files on the fly

duplicate with #78 closed


tokenMap is unlimited

Is this a bug or a feature request?

What did you expect?
What happened?
What version are your using?
How can your issue be reproduced?
Could you share your log output?

It is limited to uint16 items, it is not unlimited. I think this either this uses a limited amount of memory or a kind of garbage collector logic is needed so this would require more CPU. In the correct version I have chosen to rely on a bit of RAM as the note states.


ISSUE-4376 login fails on a gitlab or gitlab+cas mattermost instance

PR for https://github.com/mattermost/platform/issues/4376
I think that diff is quite self-explanatory. It doesn't seem that any test are to be updated.
Tested with android studio in emulator ; observed bugs is fixed and authentication is possible.
I think that the current behavior is a regression due to the fix that enables application to open third-party url in system browser. This fix is similar to previous fix linked to google account login.
Contributor License Agreement: filled.

Hi @lalmeras, thanks for using Mattermost and taking the time to look into this and submit a pull request.
We currently don’t support “Double SSO” (logging into a supported SSO method using a second SSO system). Our ability to test, document and support features long term is limited and our priority is continually improving the core team communication experience.
So while we can’t take this PR, you're welcome to fork the repo to achieve the functionality you need.
If you're interested in contributing in other ways, there's a list of projects pre-approved to be added to the Mattermost code base. To learn more about our community processes and how features are added to Mattermost, please see our documentation.


Access token not writing out to client

Hello-
Is there something preventing the access token from being returned in localhost development?
I am successfully getting an id_token back.  However,   none of my other console.log are showing anything at all.  I can see the user is signed in successfully.    However, my goal is to get the access token for use in REST calls.
Any idea?
I have used npm to install MSAL.  I am including a reference to the the types:
///
My code:
  tenantConfig = {
    clientID: "my client id",
    scopes: ["user.read", "mail.send"]
  };

if (token) {
      this.clientApplication.acquireTokenSilent(this.tenantConfig.scopes).then(
        function(accessToken): any {
          // Change button to Sign Out
          // updateUI();
          console.log("here 1");
          console.log(accessToken);
        },
        function(error: any) {
          console.log(error);
          this.clientApplication
            .acquireTokenPopup(this.tenantConfig.scopes)
            .then(
              function(accessToken: any) {
                // updateUI();
                console.log("here 2");
                console.log(accessToken);
              },
              function(error: any) {
                console.log(error);
              }
            );
        }
      );
    } else if (errorDesc || error) {
      console.log(error + ":" + errorDesc);
    }
  }

I have also tried using the clientId for the scope as seen here:
https://github.com/Azure-Samples/active-directory-javascript-singlepageapp-dotnet-webapi-v2/blob/master/TodoSPA/App/Scripts/Ctrls/todoListCtrl.js
Same issue however,  no access token seems to be coming back but nothing failing either.

@rohitnarula7176
It is an "issue" with the acquireTokenRedirect function.
Please make a fix that it returns the accessToken just like the acquireTokenPopup popup does.
The problem is that the acquireTokenRedirect returns void so naturally we can't get the token out of it, it just writes the token to the cacheStorage. We have to read the token from the session/local storage at the moment directly and it's not the best solution.
This has to be fixed asap.

@tomidix
acquireTokenRedirect redirects the browser to Azure AD for the authentication, and then Azure AD calls
back you application (if the reply URL is among the "Reply URLs" registered into the AzureAD application).
Therefore the page is no longer in the browser when acquireTokenRedirect complets, and this method cannot return any value.
The way to get the token back is to let MSAL do it: the auth callback passed in the constructor of the MSAL.UserAgentApplication will be called by MSAL with the access token
Please have a look at this sample application. This is the way to use acquireTokenRedirect.
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/devApps/VanillaJSTestApp/index_LoginRedirect.html#L47

@jmprieur Thanks for answer. Ok for return, you're right.
I have a problem with authCallback function in angular4.
There is an additional action in your example                userAgentApplication.acquireTokenSilent(applicationConfig.graphScopes).then(function (accessToken) {
Problem is in Angular because I use authentication service and my authCallback funcion has to save token and has to call that method like this: this.clientApplication.acquireTokenRedirect(environment.b2cScopes); - notice this
clientApplication is the instance of Msal.UserAgentApplication, the same is with acquireTokenSilent or acquireTokenPopup
When my authCallback is triggered it's this points to Msal.UserAgentApplication instance instead of my authenticationService class.
Example I'm referring to is here: https://github.com/Gimly/NetCoreAngularAzureB2CMsal/blob/master/ClientApp/app/services/authentication.service.ts

Great @tomidix  if you found the answer. can we close the issue?

in the example here: https://github.com/Gimly/NetCoreAngularAzureB2CMsal/blob/master/ClientApp/app/services/authentication.service.ts
I am having a similiar problem where userAgentApplication.acquireTokenSilent does not return a token and i can't use the userAgentApplication.acquireTokenPopup so I am forced to use userAgentApplication.acquireTokenRedirect and getting the token from my session storage.
is there a way to get the token with userAgentApplication.acquireTokenSilent ?


[Testing] feat: add prover from scroll-prover and chunk-prove to testool

Summary
Prover

Add aggregation, common and zkevm folders (including provers and verifiers).

Add types and part of test_util (only proof generate and verify help functions for testool).

Add layer config files.

Rename circuit builder to l2_builder.rs and add (fake code with unimplement!) l1_builder.rs to make scroll feature as non-default.

Testool

Add chunk-prove feature, it's used to run chunk-prove on test cases of super circuit.

Add a command option --test-ids, it's used to specify a file of test ID list. And ENV TESTOOL_IDS_START and TEST_IDS_LEN are used to set offset and length of this test ID list.

Add download_setup.sh, it's used to download params for chunk-prove.

Replaced by https://github.com/scroll-tech/zkevm-circuits/pull/893 and https://github.com/scroll-tech/zkevm-circuits/pull/921


Update the device name

Edge case but would it make sense to update the name in HA if it gets updated in the Midea app?

Hello @kramttocs , after giving it some thought, I'll skip on it as it would require regular polling of cloud API, and that's not something I'd like to do - I prefer to connect only once to get tokens and then forget about it.

Makes sense. Thanks for looking at it.


Incompatibility with Biomes O' Plenty on Mohist server 1.16.5

I do not speak English well, and I will try to state my problem. Biomes O 'Plenty does not work with the new version of Dungeons-Gear,
but version 3.0.7 works well. Maybe some new features prevent the new version from working? I will be offended to play without new models and fixes.
2021-05-24-1.log

@Jackiecrazy AOE cloud mixin again

@Jackiecrazy AOE облачный миксин снова

I do not really understand, can I have a more detailed answer? What do I need to do again?

That wasn't directed towards you, I am notifying the other developer who works on this mod that there is another conflict happening with something they worked on.

I pushed the necessary changes to master already.


Design QA: Chat - Chat screen

Design: https://www.figma.com/file/fLWVwmanAwetVZbujQquEi/Market-Page?node-id=194%3A3832

[x] Centre align text for '205 Online'

[x] Adjust height of chat input box to match design. Currently it looks small leaving a large gap at the bottom

[x] Update username text style

[x] Check user's messages are using colour text/primary

[x] 'Type your message' text. Make colour text/secondary at 75% opacity

[x] Active input text should be colour text/primary at 100% opacity

[x] Check types style for input - might need updating to larger font size

Oops


Use JavaLanguageVersion in UpdateDaemonJvm

This makes it closer the default toolchain spec.
Fixes #29961
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@bot-gradle test RfM

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

LGTM, Thank you Louis

Ready for review, includes a note in the upgrade guide.
I did not do an entry in the release notes as we have larger items related to this topic that should cover it. They can optionally mention this change.

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test this


Overflow errors on the problem shape

Describe the bug
I'm trying to run an optimisation problem for warehouse routing. link
I implemented the whole paper in CVXPY over here
I keep running into overflow errors on the shape of my variables or constraints.
My question is whether this is a limitation imposed on purpose on these solvers? Is there no way for me to run big optimisation problems like this (3172980 variables, 48301 constraints) in CVXPY.
Can I somehow reduce the number of constraints?
Any help would be appreciated.
To Reproduce
clone the repo here : here
Run optim.py after installing all dependencies in requirements.txt [change the path for the input file appropriately]
Expected behavior
Output
===============================================================================
                                     CVXPY
                                     v1.5.2
===============================================================================
(CVXPY) Aug 01 07:37:29 AM: Your problem has 3172980 variables, 48301 constraints, and 0 parameters.
(CVXPY) Aug 01 07:37:44 AM: It is compliant with the following grammars: DCP, DQCP
(CVXPY) Aug 01 07:37:44 AM: (If you need to solve this problem multiple times, but with different data, consider using parameters.)
(CVXPY) Aug 01 07:37:44 AM: CVXPY will first compile your problem; then, it will invoke a numerical solver to obtain a solution.
(CVXPY) Aug 01 07:37:44 AM: Your problem is compiled with the CPP canonicalization backend.
-------------------------------------------------------------------------------
                                  Compilation
-------------------------------------------------------------------------------
(CVXPY) Aug 01 07:38:02 AM: Compiling problem (target solver=GLPK_MI).
(CVXPY) Aug 01 07:38:02 AM: Reduction chain: Dcp2Cone -> CvxAttr2Constr -> ConeMatrixStuffing -> GLPK_MI
(CVXPY) Aug 01 07:38:02 AM: Applying reduction Dcp2Cone
(CVXPY) Aug 01 07:40:32 AM: Applying reduction CvxAttr2Constr
(CVXPY) Aug 01 07:40:35 AM: Applying reduction ConeMatrixStuffing
(CVXPY) Aug 01 10:05:37 AM: Applying reduction GLPK_MI
Traceback (most recent call last):
  File "/home/ubuntu/warehouse/optim.py", line 432, in <module>
    optim = SRRP(dataset)
  File "/home/ubuntu/warehouse/optim.py", line 173, in __init__
    self.solve(objective, constraints, vars, intermediate_vars)
  File "/home/ubuntu/warehouse/optim.py", line 419, in solve
    problem.solve(solver=solver, verbose=True)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 503, in solve
    return solve_func(self, *args, **kwargs)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 1073, in _solve
    data, solving_chain, inverse_data = self.get_problem_data(
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 696, in get_problem_data
    data, inverse_data = solving_chain.apply(self, verbose)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/chain.py", line 76, in apply
    problem, inv = r.apply(problem)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/glpk_mi_conif.py", line 46, in apply
    data, inv_data = super(GLPK_MI, self).apply(problem)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py", line 114, in apply
    c, d, A, b = problem.apply_parameters()
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py", line 201, in apply_parameters
    self.reduced_A.cache(keep_zeros)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/utilities.py", line 141, in cache
    canonInterface.reduce_problem_data_tensor(
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/cvxcore/python/canonInterface.py", line 130, in reduce_problem_data_tensor
    n_constr = A.shape[0] // (n_cols)
OverflowError: Python integer<PHONE_NUMBER>81 out of bounds for int32

Before this I encountered problems in the conic_solver, I fixed that by casting the shape in divmod to int64 instead.
===============================================================================
                                     CVXPY
                                     v1.5.2
===============================================================================
(CVXPY) Jul 30 11:49:23 AM: Your problem has 3172980 variables, 48301 constraints, and 0 parameters.
(CVXPY) Jul 30 11:49:38 AM: It is compliant with the following grammars: DCP, DQCP
(CVXPY) Jul 30 11:49:38 AM: (If you need to solve this problem multiple times, but with different data, consider using parameters.)
(CVXPY) Jul 30 11:49:38 AM: CVXPY will first compile your problem; then, it will invoke a numerical solver to obtain a solution.
(CVXPY) Jul 30 11:49:38 AM: Your problem is compiled with the CPP canonicalization backend.
-------------------------------------------------------------------------------
                                  Compilation
-------------------------------------------------------------------------------
(CVXPY) Jul 30 11:49:55 AM: Compiling problem (target solver=GLPK_MI).
(CVXPY) Jul 30 11:49:55 AM: Reduction chain: Dcp2Cone -> CvxAttr2Constr -> ConeMatrixStuffing -> GLPK_MI
(CVXPY) Jul 30 11:49:55 AM: Applying reduction Dcp2Cone
(CVXPY) Jul 30 11:52:19 AM: Applying reduction CvxAttr2Constr
(CVXPY) Jul 30 11:52:22 AM: Applying reduction ConeMatrixStuffing
(CVXPY) Jul 30 02:16:59 PM: Applying reduction GLPK_MI
Traceback (most recent call last):
  File "/home/ubuntu/warehouse/optim.py", line 431, in <module>
    # )
  File "/home/ubuntu/warehouse/optim.py", line 173, in __init__
    self.solve(objective, constraints, vars, intermediate_vars)
  File "/home/ubuntu/warehouse/optim.py", line 419, in solve
    problem.solve(solver=solver, verbose=True)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 503, in solve
    return solve_func(self, *args, **kwargs)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 1073, in _solve
    data, solving_chain, inverse_data = self.get_problem_data(
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 696, in get_problem_data
    data, inverse_data = solving_chain.apply(self, verbose)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/chain.py", line 76, in apply
    problem, inv = r.apply(problem)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/glpk_mi_conif.py", line 46, in apply
    data, inv_data = super(GLPK_MI, self).apply(problem)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py", line 104, in apply
    problem = self.format_constraints(problem, None)
  File "/home/ubuntu/warehouse/venv/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/conic_solver.py", line 264, in format_constraints
    unspecified, remainder = divmod(problem.A.shape[0] *
OverflowError: Python integer<PHONE_NUMBER>81 out of bounds for int32

Version

OS: Ubuntu
CVXPY Version: 1.5.2

Additional context
Add any other context about the problem here.

Can you try installing from master?


Cloning requires unblocking the credential server port (9876)

Output of the ue4-docker info command:
ue4-docker version:         0.0.23
Operating system:           Linux (Ubuntu 18.04.2 LTS, 4.15.0-45-generic)
Docker daemon version:      18.09.2
NVIDIA Docker supported:    Yes
Maximum image size:         No limit detected
Total system memory:        31.36 GiB
Number of processors:       6 physical, 12 logical

Assuming a minimal linux firewall setup:
sudo ufw enable
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh

... then attempting to build will fail:
$ ue4-docker build custom -repo=redacted.com/UnrealEngine.git -branch=redacted --rebuild -suffix 001 --linux --cuda=10.0 --no-engine --no-full

[ue4-docker build] CUSTOM ENGINE BUILD:
[ue4-docker build] Custom name:  custom
[ue4-docker build] Repository:   https://redacted.com/UnrealEngine.git
[ue4-docker build] Branch/tag:   redacted

[ue4-docker build] Building GPU-enabled images compatible with NVIDIA Docker (CUDA 10.0 + OpenGL support).

Retrieving the Git credentials that will be used to clone the UE4 repo
Username: ClockworkMuse
Password:

 * Serving Flask app "ue4docker.infrastructure.CredentialEndpoint" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off

[ue4-docker build] Building image "adamrehn/ue4-build-prerequisites:cudagl10.0"...
Sending build context to Docker daemon  3.072kB
Step 1/7 : ARG BASEIMAGE
Step 2/7 : FROM ${BASEIMAGE}
 ---> 439f42a564ea
Step 3/7 : LABEL com.adamrehn.ue4-docker.sentinel="1"
 ---> Using cache
 ---> 7b277b4571f7
Step 4/7 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 2dc647be908e
Step 5/7 : RUN 	apt-get update && apt-get install -y --no-install-recommends 		build-essential 		ca-certificates 		curl 		git 		python3 	python3-pip 		shared-mime-info 		tzdata 		unzip 		xdg-user-dirs 		zip && 	rm -rf /var/lib/apt/lists/* && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''
 ---> Using cache
 ---> 5d3ec50ec67d
Step 6/7 : RUN 	useradd --create-home --home /home/ue4 --shell /bin/bash --uid 1000 ue4 && 	usermod -a -G audio,video ue4 && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''
 ---> Using cache
 ---> 39a26c0280b0
Step 7/7 : USER ue4
 ---> Using cache
 ---> f54f6498dadd
Successfully built f54f6498dadd
Successfully tagged adamrehn/ue4-build-prerequisites:cudagl10.0
[ue4-docker build] Built image "adamrehn/ue4-build-prerequisites:cudagl10.0" in 0.14 seconds

[ue4-docker build] Building image "adamrehn/ue4-source:custom-001-cudagl10.0"...
Sending build context to Docker daemon  14.85kB
Step 1/34 : ARG PREREQS_TAG
Step 2/34 : FROM adamrehn/ue4-build-prerequisites:${PREREQS_TAG}
 ---> f54f6498dadd
Step 3/34 : ARG GIT_REPO=""
 ---> Using cache
 ---> a0d24d737956
Step 4/34 : ARG GIT_BRANCH=""
 ---> Using cache
 ---> bc7ff59c5ed0
Step 5/34 : ARG HOST_ADDRESS_ARG=""
 ---> Using cache
 ---> c265b81b134e
Step 6/34 : ENV HOST_ADDRESS=${HOST_ADDRESS_ARG}
 ---> Using cache
 ---> 7271ae674846
Step 7/34 : ARG HOST_TOKEN_ARG=""
 ---> Using cache
 ---><PHONE_NUMBER>8d
Step 8/34 : ENV HOST_TOKEN=${HOST_TOKEN_ARG}
 ---> Running in 6881d22458d8
Removing intermediate container 6881d22458d8
 ---> 545e24091d44
Step 9/34 : COPY --chown=ue4:ue4 git-credential-helper.sh /tmp/git-credential-helper.sh
 ---> 5684483c6e8f
Step 10/34 : ENV GIT_ASKPASS=/tmp/git-credential-helper.sh
 ---> Running in 334f92b4eb83
Removing intermediate container 334f92b4eb83
 ---> 08a6d71dec1d
Step 11/34 : RUN chmod +x /tmp/git-credential-helper.sh && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''
 ---> Running in f9e1347fbf2d

RUN directive complete. Docker will now commit the filesystem layer to disk.
Note that for large filesystem layers this can take quite some time.
Performing filesystem layer commit...

Removing intermediate container f9e1347fbf2d
 ---> 873de7110f70
Step 12/34 : RUN git clone --progress --depth=1 -b $GIT_BRANCH $GIT_REPO /home/ue4/UnrealEngine && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''
 ---> Running in a94db8ce9cab
Cloning into '/home/ue4/UnrealEngine'...
error: unable to read askpass response from '/tmp/git-credential-helper.sh'
fatal: could not read Username for 'https://gitlab.com': No such device or address
The command '/bin/sh -c git clone --progress --depth=1 -b $GIT_BRANCH $GIT_REPO /home/ue4/UnrealEngine && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''' returned a non-zero code: 128
[ue4-docker build] Error: failed to build image "adamrehn/ue4-source:custom-001-cudagl10.0".

Opening the port fixes the issue, allowing builds normally:
$ sudo ufw allow 9876

...however, the necessary port isn't documented anywhere, or otherwise controllable.
My assumption is that this is happening due to not using <IP_ADDRESS> for hosting/reading - is that correct?  Would changing to that make more sense?

Apologies for this oversight. The ue4 setup command already performs the necessary firewall configuration under Windows Server hosts, but is currently a no-op under Linux hosts since many common distros do not have this sort of firewall configuration enabled by default. I'll update the setup command to detect this scenario under Linux and configure the firewall accordingly.
Regarding the use of <IP_ADDRESS>, this would certainly be possible through the use of the --network=host argument to docker build, but there are a couple of problems with doing so:

This would break when building Linux containers under Windows 10 and macOS, where the Docker daemon runs inside a virtual machine and the loopback address resolves to the VM rather than the host system. (I don't know whether Hyper-V isolation mode for Windows containers detects --network=host and configures the networking for the spawned Hyper-V VMs accordingly, so I can't comment on how this would affect building Windows containers under Windows 10.) Although I actively discourage these usage scenarios, they're still common use cases for a lot of developers and ue4-docker needs to support them.

This would force the Docker daemon to be running on the same host as the Docker client. Although ue4-docker is very heavily geared toward a same-host scenario (particularly when building Windows containers), it is currently possible to run ue4-docker on a system where the Docker client is configured to connect to a daemon on a remote system, or even inside a container with the Docker socket bind-mounted from the host. (Obviously these advanced scenarios require additional configuration and I generally don't recommend them, but I've not done anything to preclude them.) The use of a loopback address would make these scenarios impossible.

The ue4-docker setup command now performs automatic firewall configuration under Linux as of ue4-docker version 0.0.24. I've also updated the Linux configuration instructions in the documentation accordingly.


Using MongoMQ as a "job queue"

I would like to enhance MongoMQ to make it more suitable as a "job queue" mechanism, for which I have often used Amazon SQS with great success.
The basic idea would be to add two features to MongoMQ which SQS has:

Support for message handled confirmation and retry semantics. SQS for instance offers a timeout after which a message is requeued for delivery some configurable number of times.

Support for "future delivery" so that message delivery can be scheduled in the future.

My belief is that both of these features can be handled with relatively minor surgery to the query MongoMQ is using to find jobs in the collection. Opening an issue before I begin adding these features to see if you have issues or suggestions on the path forward.

Gladly take any enhancements on MongoMQ, I thought I was going to have time to maintain it and advance it earlier in the year, but unfortunately the project got canceled and I haven't had the time.  Would even be willing to grant contributor rights on the project if your interested.

Sorry accidentally clicked close and comment :(