Difference between ookii-dialogs and ookii-dialogs-wpf?

Hi,
As a first time user of ookii-dialogs, I'm wondering what's up with the different packages with different authors and sites.
Is this a copy of ookii-dialogs or a continuation of it? Which exactly is the "real" one?

Hi @ultimate-tester, what are the different packages with different authors and sites that you are referring to?
The Ookii Dialogs project (both for WPF and WinForms) was originally created by Sven Groot in 2009, and it's being maintained by me since 2018 on these repos below:

https://github.com/augustoproiete/ookii-dialogs-wpf
https://github.com/augustoproiete/ookii-dialogs-winforms

The NuGet packages are, respectively:

https://www.nuget.org/packages/Ookii.Dialogs.Wpf
https://www.nuget.org/packages/Ookii.Dialogs.WinForms

Hi augustoproiete,
Thanks for the quick response. So there's this package called "Ookii.Dialogs" and as I now understand the packages "Ookii.Dialogs.Wpf" and "Ooki.Dialogs.WinForms" are its succesors? So the "Ookii.Dialogs" is deprecated? It was just a little confusing when selecting packages, seeing a more popular (but older) package. I was just curious if the ".Wpf" version was a rip-off or an official version, but now I understand I should use the ".Wpf" version and not look at "Ookii.Dialogs" anymore. Thanks!

Got it :relaxed:. Thanks for bringing this to my attention.
Indeed, the NuGet package Ookii.Dialogs is deprecated. It was published by superkinhluan back in 2011 from the original code from Sven at that time and it accumulated a number of downloads over the years whilst Ookii.Dialogs.Wpf was only published years later in 2018 which is why it has a smaller number of downloads.
I went to NuGet to search for packages with the same name and here is a summary:

Old/deprecated package

New package you should use

:package:
Ookii.Dialogs
:arrow_right:
Ookii.Dialogs.Wpf v1.1.0 or higher

:package:
Ookii.Dialogs.Wpf.NETCore
:arrow_right:
Ookii.Dialogs.Wpf v2.0.0* or higher

:package:
Ookii.Dialogs.WindowsForms
:arrow_right:
Ookii.Dialogs.WinForms v1.1.0 or higher

(*) Not yet published in nuget.org. Will be published in the next few days.

ps: I reached out to superkinhluan earlier today and he was nice enough to transfer the ownership of his Ookii.Dialogs package to me, so that I could mark it as deprecated, which should help with the confusion moving forward.

Thanks for the quick replies and action! Closed!


add shared config to build Python shared library

I was trying to use this devcontainer with PyInstaller, and it seems like the build fails due to the Python installation not built with the shared libraries.
Summary of Changes

Provides a new option to control the build flag for the shared libraries

Concerns / Thoughts

Do we want to preserve the original behaviour (ie have the option as false)
Do we want to do something special regarding the MacOS specific commands

Details
Here are the relevant logs
    run()
  File "/workspaces/pyside6-boilerplate/.venv/lib/python3.12/site-packages/PyInstaller/__main__.py", line 198, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/workspaces/pyside6-boilerplate/.venv/lib/python3.12/site-packages/PyInstaller/__main__.py", line 69, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/workspaces/pyside6-boilerplate/.venv/lib/python3.12/site-packages/PyInstaller/building/build_main.py", line 1071, in main
    build(specfile, distpath, workpath, clean_build)
  File "/workspaces/pyside6-boilerplate/.venv/lib/python3.12/site-packages/PyInstaller/building/build_main.py", line 1011, in build
    exec(code, spec_namespace)
  File "app.spec", line 13, in <module>
    a = Analysis(
        ^^^^^^^^^
  File "/workspaces/pyside6-boilerplate/.venv/lib/python3.12/site-packages/PyInstaller/building/build_main.py", line 470, in __init__
    self.__postinit__()
  File "/workspaces/pyside6-boilerplate/.venv/lib/python3.12/site-packages/PyInstaller/building/datastruct.py", line 184, in __postinit__
    self.assemble()
  File "/workspaces/pyside6-boilerplate/.venv/lib/python3.12/site-packages/PyInstaller/building/build_main.py", line 581, in assemble
    raise PythonLibraryNotFoundError()
PyInstaller.exceptions.PythonLibraryNotFoundError: Python library not found: libpython3.12.so, libpython3.12.so.1.0
    This means your Python installation does not come with proper shared library files.
    This usually happens due to missing development package, or unsuitable build parameters of the Python installation.

    * On Debian/Ubuntu, you need to install Python development packages:
      * apt-get install python3-dev
      * apt-get install python-dev
    * If you are building Python by yourself, rebuild with `--enable-shared` (or, `--enable-framework` on macOS).

@microsoft-github-policy-service agree

Would you mind adding a scenario test to exercise your new flag (docs)

Would you mind adding a scenario test to exercise your new flag (docs)?

Of course, my bad for missing this.
any preference for using an ldd command (nix specific)
root@c098cfd1b2e0:/workspaces/python# ldd $(which python)
        linux-vdso.so.1 (0x00007fff0a3fb000)
        libpython3.12.so.1.0 => /usr/local/bin/../lib/libpython3.12.so.1.0 (0x00007f43580d5000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4357ef8000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4357ed6000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4357ed0000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f4357ecb000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4357d87000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4358706000)

When not built with shared looks like:
['/usr/local/python/3.10.13/lib', 'libpython3.10.a']

or a Python only
root@c098cfd1b2e0:/workspaces/python# python -c "import sysconfig; print(sysconfig.get_config_vars('LIBDIR', 'INSTSONAME'))"
['/usr/local/lib', 'libpython3.12.so.1.0']

I'll grep either with option with  | grep 'libpython3.*so' in the check


(dirty ?) hack for fixing dependencies

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Motivation and Context / Related issue
Our long list of dependencies is boring for users.
I propose to import lazily & to remove dependencies.
How Has This Been Tested (if it applies)

Checklist

[x] The documentation is up-to-date with the changes I made.
[x] I have read the CONTRIBUTING document and completed the CLA (see CLA).
[x] All tests passed, and additional code has been covered with new tests.

Tests will probably fail, just for discussing the idea.

Tests will probably fail, just for discussing the idea.

Oh, actually tests are ok.


HDDS-6113. Intermittent timeout in TestBlockOutputStreamWithFailures#testWatchForCommitDatanodeFailure

What changes were proposed in this pull request?
Intermittent timeout in TestBlockOutputStreamWithFailuresFlushDelay#testDatanodeFailureWithSingleNodeRatis
TestBlockOutputStreamWithFailuresFlushDelay is changed to TestBlockOutputStreamWithFailures and observed the flakiness in method testWatchForCommitDatanodeFailure
I looked into the logic in test method, mostly it completes in 80s but in rare scenario it takes beyond 300s, I re-tested it with 600s and 900s but it still fails. When I run it with 1200s it succeed hence committed the change with timeout as 1200s.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6113
How was this patch tested?
I tested it for 1000 runs with 50 splits and 20 iterations at https://github.com/raju-balpande/apache_ozone/actions/runs/9201973732

@ivandika3 I have checked some of the logs, and there are both kinds of timeouts:
test timeout: https://github.com/raju-balpande/apache_ozone/actions/runs/9226024466/job/25385130012#step:7:31517
fork timeout: https://github.com/raju-balpande/apache_ozone/actions/runs/9234289550/job/25461443504#step:7:32145

@adoroszlai Thanks for checking this out.

We'll need to check what is causing the delay.

Agreed. Increasing the timeout significantly would mask the underlying problem.

@ivandika3 however, even the test timeout seems to be due to the same underlying problem as HDDS-10750:
        at org.apache.ratis.server.impl.RaftServerImpl.lambda$close$3(RaftServerImpl.java:543)
        at org.apache.ratis.server.impl.RaftServerImpl$$Lambda$1923/1198603729.run(Unknown Source)
        at org.apache.ratis.util.LifeCycle.lambda$checkStateAndClose$7(LifeCycle.java:306)
        at org.apache.ratis.util.LifeCycle$$Lambda$1298/779888560.get(Unknown Source)
        at org.apache.ratis.util.LifeCycle.checkStateAndClose(LifeCycle.java:326)
        at org.apache.ratis.util.LifeCycle.checkStateAndClose(LifeCycle.java:304)
        at org.apache.ratis.server.impl.RaftServerImpl.close(RaftServerImpl.java:525)

So I think we can mark HDDS-6113 as duplicate.

@adoroszlai Sure, we can mark it as duplicate first.

AssertionError: expected:<2> but was:<3> was last seen on 2023/08/30.

@adoroszlai Noted, it's been a while. We can reopen the ticket if the assertion error happened again.

Thanks, for the inputs on this request.


VueCLI wont install.

Version
4.5.6
Environment info

Environment Info:

  System:
    OS: Windows 10 10.0.18362
    CPU: (4) x64 Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
  Binaries:
    Node: 14.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.18362.449.0)
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce
yarn global add @vue/cli-init
vue init nuxt-community/express-template test
What is expected?
To make the template for nuxt vuejs
What is actually happening?
it says vuecli it's not installed even tough i had just installed it.

According to the docs its not cli-init, just cli
yarn global add @vue/cli

It may be the problem of your yarn

I guess you install @vue/cli by npm, but the warning message reminds you to install by yarn global add. It has been fixed in 4.5.8, https://github.com/vuejs/vue-cli/pull/5871. After upgrade @vue/cli, the warning message will remind you to use npm install -g
Although Vue CLI will try to require module from both  yarn global path and npm global path by dependencies import-global<EMAIL_ADDRESS>It seems the<EMAIL_ADDRESS>give the wrong yarn global path(fixed in 1.0.0 https://github.com/sindresorhus/global-dirs/issues/3 )
Test in my windows,
my yarn global path is %LOCALAPPDATA%\Yarn\Data\global, but the value return by global-dirs is %LOCALAPPDATA%\Yarn\config\global.

Thanks its running now.

I guess you install @vue/cli by npm

That's true ?
@Wishingirl

I just checked seems i still have trouble..

Env info:
04:35:53 user@WINDOWS-PC ExpressVue →yarn global dir
C:\Users\user\AppData\Local\Yarn\Data\global

What the output information of  yarn global list and npm list -g --depth=0 @Wishingirl

You install @vue/cli by both yarn and npm. If the output of  vue --version is 4.5.6, It means you executed vue from npm global bin path.
So, try to run npm uninstall @vue/cli -g and use the version installed by yarn. @Wishingirl

Alright. On it.

It works  now! Generating templates and working as intended. Thanks.

I guess you install @vue/cli by npm, but the warning message reminds you to install @vue/cli-init by yarn global add. It has been fixed in 4.5.7, #5871. After upgrade @vue/cli, the warning message will remind you to use npm install -g
Although Vue CLI will try to require module from both yarn global path and npm global path by dependencies import-global<EMAIL_ADDRESS>It seems the<EMAIL_ADDRESS>give the wrong yarn global path(fixed in 1.0.0 sindresorhus/global-dirs#3 )
Test in my windows,
my yarn global path is %LOCALAPPDATA%\Yarn\Data\global, but the value return by<EMAIL_ADDRESS>is %LOCALAPPDATA%\Yarn\config\global.

Since<EMAIL_ADDRESS>can output more accurate warnings message, import-global should be removed or try to upgrade global-dirs. Still need to be considered.


Error: unexpected '[' in facebook.php

Hi!
I had a syntax error when I installed your module:
I have Prestashop <IP_ADDRESS> and PHP 5.3.14
Parse error: syntax error, unexpected '[', expecting ')' in modules/freesociallogin/facebook/facebook.php on line 232
[PrestaShop] Fatal error in module file modules/freesociallogin/facebook/facebook.php:
syntax error, unexpected '[', expecting ')'

is it related to my php version ?
thanks in advance!

Hello,
Yes, I think that your PHP version is too old. We use the Facebook and Google SDK, and both requires PHP 5.4 or greater.
Sorry for this inconvenience.
Regards

Yes it's PHP, I changed in 5.4.4 and now it works fine!


ChemNet encoder

Great effort! Can you add the ChemNet encoder?? https://github.com/bioinf-jku/FCD

Hi! It seems to be a good idea! Unfortunately, we do not have sufficient human resources for the moment. We are planning to make Huggingmolecules more contributor friendly - then, I believe, your issue will be fully addressed. Obviously, you are welcome to open your own PR with a proposition of integrating ChemNet into Huggingmolecules :)


Get the CA certificate after self-signed install

Describe the issue
When using auto-generated (by cp-anisble) self-signed certificates, i.e., setting ssl_enabled: True without any other SSL properties, one would naturally want to get ahold of the generated CA certificate, so that it can be added to the truststore for clients, for example.
However, I can't see portable way to do this. The CA cert does get copied back to generated_ssl_files somewhere on the ansible controller, which seems to be relative to the location of the cp-ansible playbook install location, but this location is unpredicable since it depends on how the user installed the collection, how they have configured ansible galaxy, etc.
I tried to modify ssl_self_signed_ca_cert_filepath to put it in a location of my choosing the but the install fails if this is set to anything other than generated_ssl_files/<filename> (there are places that assume the path to the CA will still be the default location, it is only possible to change the filename, not any other path elements).
Is there a recommended approach to getting the CA certificate after a self-signed install?
Environment (please complete the following information):

CP-Ansible Branch: 7.6

Same problem here.
I think there is two issues:

When the ansible collection is used, the certificate_authority.yml task put the self signed certificate on ~/.ansible/collections/ansible_collections/confluent/platform/playbooks/generated_ssl_files/. This is not the best location since we want to share ssl files on our main ansible repository.
We cannot specify the full directory location since there is some hardcoded variables (generated_ssl_files in certificate_authority.yml)

My environment: confluent platform 7.6.2.


Types for pino-abstract-transport

Can't be used in a TypeScript project:
➔ tsc
src/PinoSentryTransport.ts:1:19 - error TS7016: Could not find a declaration file for module 'pino-abstract-transport'. 'node_modules/pino-abstract-transport/index.js' implicitly has an 'any' type.
  Try `npm install @types/pino-abstract-transport` if it exists or add a new declaration (.d.ts) file containing `declare module 'pino-abstract-transport';`

1 import build from 'pino-abstract-transport';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~

➔ npm install @types/pino-abstract-transport
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fpino-abstract-transport - Not found
npm ERR! 404
npm ERR! 404  '@types/pino-abstract-transport@*' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

This seems to have been added in #30 / 0.5.0


Revert the release of librealsense 2.45.0-1 in Dashing.

From the discussion in https://github.com/ros/rosdistro/pull/29474#issuecomment-856224741 it seems like this release includes substantial changes from previous Dashing releases of this project and while these changes are unquestionably improvements for both ROS and upstream, this substantial change has presented build difficulties on the build farm in testing which suggests that independent users are likely to encounter issues as well. Since we're preparing for the final sync of Dashing it makes the most sense to stick with the previous release, as long as it builds successfully once this is merged, in order to avoid de-stabilizing a stable distribution in its final moments of support.

This pull request has been mentioned on ROS Discourse. There might be relevant details there:
https://discourse.ros.org/t/preparing-for-final-dashing-sync-and-patch-release/20524/5


Disable CoreDNS host forwarding when DNS is not configured

Is your feature request related to a problem? Please describe.
When there are no DNS servers defined in /etc/resolv.conf, CoreDNS will not properly start -- it will remain in CrashLoopBackoff with the following error:
# cat /etc/resolv.conf
# kubectl -n kube-system get pods | grep coredns
coredns-7b5bbc6644-znxrp                               0/1     CrashLoopBackOff   5 (47s ago)   4m22s
# kubectl -n kube-system logs coredns-7b5bbc6644-znxrp
[WARNING] No files matching import glob pattern: /etc/coredns/custom/*.server
plugin/forward: no nameservers found

The error from plugin/forward is encountered because CoreDNS is configured to forward DNS requests to the host's resolv.conf nameservers:
# grep forward /var/lib/rancher/k3s/server/manifests/coredns.yaml
        forward . /etc/resolv.conf

Describe the solution you'd like
I don't expect this to be a common scenario for most, but the default Corefile prevents K3s from starting properly in an air-gapped environment where DNS is not available (and nameservers are intentionally omitted from /etc/resolv.conf).
I think it would be reasonable for CoreDNS forwarding to be dynamically configured based on whether or not nameservers have been defined on the host -- i.e., if nameservers are present in resolv.conf, add the forward . /etc/resolv.conf line; otherwise, do not.  Then, if the configMap changes, trigger a rollout restart of the coredns deployment.
Describe alternatives you've considered
As a very (VERY) crude workaround, I was able to implement the desired behavior in an ExecStartPost scriptlet in k3s.service.  The logic is as follows:

Wait for /run/k3s/containerd/containerd.sock to be created – this tells me that K3s has started.
Wait for /var/lib/rancher/k3s/server/manifests/coredns.yaml to be created – this file has to exist before we can change it.
Wait for coredns.yaml to be newer than containerd.sock (as determined by mtime) – when the manifest is newer than the containerd socket, assume K3s has touched it on startup and will not be touched again.  (Probably a bad assumption?)
If no DNS nameservers are defined in /etc/resolv.conf, comment out the “forward” line in the Corefile to prevent DNS requests from being forwarded to the host’s nameservers.
If the CoreDNS manifest was changed in STEP 4, restart the deployment: kubectl -n kube-system rollout restart deployment coredns.

Unfortunately, I do not know Go well enough to implement this change properly 😝
Additional context
I am running K3s v1.24 in an "air-gapped" environment with an empty /etc/resolv.conf.
# k3s --version
k3s version v1.24.8+k3s1 (648004e4)
go version go1.18.8

Airgap images have been dropped onto the filesystem:
# tar -xOf /var/lib/rancher/k3s/agent/images/k3s-airgap-images-amd64.tar manifest.json  | jq '[.[].RepoTags] | add'
[
  "rancher/klipper-helm:v0.7.3-build20220613",
  "rancher/klipper-lb:v0.3.5",
  "rancher/local-path-provisioner:v0.0.23",
  "rancher/mirrored-coredns-coredns:1.9.4",
  "rancher/mirrored-library-busybox:1.34.1",
  "rancher/mirrored-library-traefik:2.9.4",
  "rancher/mirrored-metrics-server:v0.6.1",
  "rancher/mirrored-pause:3.6"
]

Most airgap environments I've worked with have some sort of stub resolver available. I'm not sure that adding code to actively rewrite the CoreDNS manifest to handle this corner case is worth it? Kubernetes also requires a default route (even it it just just a black-hole default route) to function properly, so I would probably lean towards leaving this as something that needs to be set up properly for airgap scenarios.

@brandond Very good points.  I did in fact run into the default route issue and solved that as you described with a blackhole default route.  The DNS configuration proved to be trickier.
I had initially configured a dnsmasq caching only nameserver listening on my primary IP address.  This seemed to work well, and ran without issues for months; however, in some environments we started to observe DNS timeouts.  Something like:
# kubectl -n kube-system logs coredns-84c56f7bfb-qdfzk --timestamps=true --since=5m | tail -n5
2022-12-07T19:04:56.094951284Z [ERROR] plugin/errors: 2 <IP_ADDRESS>.in-addr.arpa. PTR: read udp <IP_ADDRESS>:57772-><IP_ADDRESS>:53: i/o timeout
2022-12-07T19:04:57.901449219Z [ERROR] plugin/errors: 2 <SERVICE_NAME>. A: read udp <IP_ADDRESS>:57168-><IP_ADDRESS>:53: i/o timeout
2022-12-07T19:04:57.901485398Z [ERROR] plugin/errors: 2 <SERVICE_NAME>. AAAA: read udp <IP_ADDRESS>:53732-><IP_ADDRESS>:53: i/o timeout
2022-12-07T19:04:58.096333515Z [ERROR] plugin/errors: 2 <IP_ADDRESS>.in-addr.arpa. PTR: read udp <IP_ADDRESS>:42494-><IP_ADDRESS>:53: i/o timeout
2022-12-07T19:05:02.030090661Z [ERROR] plugin/errors: 2 <IP_ADDRESS>.in-addr.arpa. PTR: read udp <IP_ADDRESS>:53321-><IP_ADDRESS>:53: i/o timeout

These timeouts caused poor performance and ultimately prevented readiness probes from executing successfully.  Unfortunately, the issue was intermittent, and I never was able to determine root cause.  In an effort to bring the system back to a working state, I ended up removing dnsmasq and configuring CoreDNS as described above.
(IIRC, I ran into different issues with systemd-resolved, but that was so long ago that it would be worth revisiting.)
At the end of the day, the experience did not give me much confidence.  I felt that I was hacking around things that I expected to work out-of-the-box.  I never really wanted a stub resolver, I just wanted to make K3s (CoreDNS) happy 😂.
I'd like to leave this open to discussion and am happy to provide more information if needed.  Hopefully others can chime in with their DNS resolver workarounds.  If we feel that rewriting the CoreDNS manifest isn't worth it, maybe we can at least update the K3s Airgap documentation to address some of these requirements?  Maybe with examples of supported resolver configurations?

Yeah, I'm happy to leave it open.
I will also add that most of the airgap environments we target are air-gapped in the sense that they do not have a connection to the internet. They usually do have a local network environment with functioning routing/dns/dhcp. Think  secure office, remote lab, airplane, or ship.
If your air-gap environment is more of a "this box isn't plugged in to anything at all" type setup, then then our docs probably don't cover your use case.

I have added a section to the docs about needing a default route https://docs.k3s.io/installation/airgap#prerequisites

These timeouts caused poor performance and ultimately prevented readiness probes from executing successfully. Unfortunately, the issue was intermittent, and I never was able to determine root cause. In an effort to bring the system back to a working state, I ended up removing dnsmasq and configuring CoreDNS as described above.

Could you explain what you did in "configuring CoreDNS as described above."
Did you add an entry in /etc/resolv.conf? What was the entry?

@thooooooomas  Here's the hack I threw together to comment out the "forward" line in the Corefile after the CoreDNS manifest has been generated.  This change is only made when there are no nameservers defined in /etc/resolv.conf.
I'm executing it an ExecStartPost for the "k3s" systemd service:
[Service]
ExecStartPost=/usr/bin/timeout 600 /usr/libexec/k3s/update-coredns-forwarding.sh

Not very elegant, but it works 🤷♂

Just going to convert this to a discussion for now


Error when open a HEIC image - Failed to decode image: Invalid ftyp

I was testing some image format conversion on Thumbor, with pillow-avif-plugin.
And I guess I found a bug when pillow-avif try to open a HEIC file.
HEIC file tested here
# HEIC header
$ head -1 1.heic
ftypmif1mif1heic

AVIF file tested here
# AVIF header
$ head -1 image.avif
 ftypavifavifmif1miaf

Steps to reproduce
$ python3
# inside python
from PIL import Image
import pillow_avif
from io import BytesIO
import requests
body = requests.get("https://raw.githubusercontent.com/alexcorvi/heic2any/master/demo/1.heic").content
Image.open(BytesIO(body))

Log
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../python3.9/site-packages/PIL/Image.py", line 3133, in open
    im = _open_core(fp, filename, prefix, formats)
  File ".../python3.9/site-packages/PIL/Image.py", line 3119, in _open_core
    im = factory(fp, filename)
  File ".../python3.9/site-packages/PIL/ImageFile.py", line 116, in __init__
    self._open()
  File ".../python3.9/site-packages/pillow_avif/AvifImagePlugin.py", line 61, in _open
    self._decoder = _avif.AvifDecoder(
ValueError: Failed to decode image: Invalid ftyp

This is expected behavior. You can use pillow_heif to decode and encode HEIF files. It should be sufficient to add, where you have import pillow_avif:
import pillow_heif

pillow_heif.register_heif_opener()

I already tested with pillow_heif and pillow_avif together. Or I need to use only one pillow plugin at a time?
I was looking this code here and this validation should accept header with ftypmif1mif1heic?
    coding_brands = (b"avif", b"avis")
    container_brands = (b"mif1", b"msf1")

Oh I see, yes that is a bug. I'm preparing the 1.3.0 release, I'll include a fix for that.

Thanks! @fdintino 🥳


README.md has a typo

FYI, in the README.md file, section "A slimmer alternative", you have a typo, "wether", should be "whether/either".

Thanks for pointing it out. Updating now :)


[FEATURE] Add pull request labels based on issue

Description
When submitting a new pull request, check the linked issue and assign the same labels to the PR if no labels were selected.
Screenshots
No response
Additional information
No response

This feature is already implemented.


Crash in mTexture#updateTexture after resume on some device.

   java.lang.IllegalStateException: Unable to update texture contents (see logcat for details)
       at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method)
       at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:163)
       at com.asha.vrlib.texture.MD360VideoTexture.updateTexture(MD360VideoTexture.java:90)
       at com.asha.vrlib.MD360Renderer.onDrawFrame(MD360Renderer.java:83)
       at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523)
       at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Hi,have you resolve the problem? If you resolved, can you tell me how can i resolve it, Thanks.


fix: fix infinite loop in startTimer

Abstract
As reported in #452, the function passed to time.AfterFunc can get stuck into an infinite loop if the state variable from the outer scope is ever equal to stateInit or in other words, if the body of function passed to time.AferFunc is executed before atomic.StoreInt32(&state, stateReady) in the outer scope
func startTimer(delay, interval time.Duration, fn func()) CancelFunc {
	var t *time.Timer
	var state int32
	t = time.AfterFunc(delay, func() {
                 // at this point 'state' is bounded to the local scope
                 // this will "shadow" the outer scope state var
		state := atomic.LoadInt32(&state)
                 // we are comparing the local scope version here
		for state == stateInit {
			runtime.Gosched()
                         // state will never be set with the value
                         // of the outer scope one as it has been shadow
			state = atomic.LoadInt32(&state)
		}

		if state == stateDone {
			return
		}

		fn()
		t.Reset(interval)
	})

	// ensures t != nil and is required to avoid data race in
	// AfterFunc calling t.Reset
	atomic.StoreInt32(&state, stateReady)

	return func() {
		if atomic.SwapInt32(&state, stateDone) != stateDone {
			t.Stop()
		}
	}
}

Although this is difficult to occur it is not impossible that the Go scheduler, schedules the goroutine running the function in the AfterFunc earlier than the rest of the outer body, if that happens, the function will be stuck in that loop forever as it will never be able to update the value of the local state variable
PR Content

This PR simplifies the loop making impossible for the situation to occur
It also adds an example on how to use the scheduler package to the _examples directory

👍🏻


SAM-2786 -2 Accessibility improvements

Added in labels for some form elements.

This is PR 2 of two. First one is, #2057 .


Replays can't open

Description

Replay loading fails due to some asteroid missing a component or something.
Reproduction

https://moon.spacestation14.com/replays/lizard/2024/08/09/lizard-2024_08_09-00_30-round_62078.zip
https://moon.spacestation14.com/replays/lizard/2024/08/08/lizard-2024_08_08-20_58-round_62063.zip
I'm unsure what the first replay is
Screenshots

URGENT DISTURBS ADMIN WORK AND PLAYER EXPIRIENCE

Probably the broadphase change if physicsmap isn't getting serialized, needs a dev to look at it.

They actually open. You need to wait and keep closing the popping Error windows. It will go through "Reading Files" 8 or less times and then will load the replay as usual. Don't press the "lower exception treshold" button, just close the pop ups.

They actually open. You need to wait and keep closing the popping Error windows. It will go through "Reading Files" 8 or less times and then will load the replay as usual. Don't press the "lower exception treshold" button, just close the pop ups.
With each popup it will increment the entity ID, each being a kind of asteroid or a wreck.
I went through a replay of a round of mine almost from start to finish and saw no major issues, but that is a very small sample.

Thank you for this!

Should be fixed by a commit in engine, engine updated at PR #31297


Schema support

See https://www.postgresql.org/docs/9.1/ddl-schemas.html, https://docs.sqlalchemy.org/en/13/core/metadata.html#specifying-the-schema-name

Is this issue still relevant? I would like to make a PR.

Yes, schema support is still missing, PRs are welcome.

Alright then. I'll probably be free during the holidays. I'll take a look at it and see if I can implement schema support.


PDF file sync failure

I am trying to sync all existing files and the images synced without errors. The PDF files does not work however. I just get the "Unknown failure reason." when i try to sync them. I tried to upload a new PDF file and that works but the existing files does not work.

I first tried it in 2.1.7 and then also with 2.1.8-RC4, but i get the same error there.

This now seems to work now in 2.1.9


Update configuration.md

Changed var to const declaration

@usersavchenko Can you sign the CLA? See https://cla.js.foundation/webpack/webpack.js.org?pullRequest=4897

@chenxsan Ok


Does it support react-native 0.52.0?

Does it support react-native 0.52.0?

give it a try. should support


Embedded Attribute ClassCastException

OrientDB Version: 3.2.13 and 3.1.20
Java Version: 8
OS: Ubuntu
Summary
When updating an existing embedded vertex outside of a transaction an unexpected ClassCastException is thrown from the remote OrientDB server.
OVertex outerVertex2 = session.load(outerVertex.getIdentity());
OElement embeddedVertex2 = outerVertex2.getProperty(EMBEDDED_ATTRIBUTE_NAME);
embeddedVertex2.setProperty(EMBEDDED_ATTRIBUTE_TEXT, "123");
outerVertex2.setProperty(EMBEDDED_ATTRIBUTE_NAME, embeddedVertex2);
outerVertex2.save(); // Error is thrown here

Produces:
Caused by: java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.OVertexDelegate cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ODocumentSerializerDelta.deserializeDeltaValue(ODocumentSerializerDelta.java:222)
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ODocumentSerializerDelta.deserializeDeltaEntry(ODocumentSerializerDelta.java:207)
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ODocumentSerializerDelta.deserializeDelta(ODocumentSerializerDelta.java:186)
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ODocumentSerializerDelta.deserializeDelta(ODocumentSerializerDelta.java:168)
	at com.orientechnologies.orient.server.tx.OTransactionOptimisticServer.begin(OTransactionOptimisticServer.java:106)
	... 6 more

This code works just fine on OrientDB v3.0.X, however on versions 3.2.13 and 3.1.20 we are encountering a ClassCastException. Additionally, the error is NOT thrown if inside a transaction.
Minimal Test Code
A reproduceable example using only OrientDB is attached as follows:
OrientDBEmbeddedAttributeTest.txt
Full stacktrace:
orientdb-embedded-output.txt

Hi,
This is a strange error, we will try to fix it, anyway this is down to the fact that vertex are not supported in embedded, it's not correct that a embedded document has a type vertex, the easy work around is to change the embedded document to a linked document, or to make the embedded class not a vertex, anyway changing in your test the create property creation is enough to fix the test, example:
oClass.createProperty(EMBEDDED_ATTRIBUTE_NAME, OType.LINK, embeddedClass);
even if in old version this seemed to work I will still produce some semantic problems, for example you would not be able to select/iterate over the vertex that are embedded, so we definitely suggest to not use vertex type as embedded, or use instead links.
Regards

Thanks a bunch for your help. This seems like something that could use better documentation.
We will investigate what it means for our stack to move away from embedded vertices in favor of embedded documents.

Hi,
yep adding it : https://github.com/orientechnologies/orientdb/commit/05d83b22cf98149f7d38b2d279c1bb914a54a075
Regards

Hi @tglman,
Sorry to bother again but we are a little unsure of the best way to architect things here.
We cannot use an embedded document because our document needs to be able to reference geometries. If I attempt to do this, OrientDB throws the error:
Suppressed: com.orientechnologies.orient.core.exception.OSchemaException: Document belongs to abstract class OPoint and cannot be saved
	DB name="testdb"
		at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.assignAndCheckCluster(ODatabaseDocumentAbstract.java:916)
		at com.orientechnologies.orient.server.tx.OTransactionOptimisticServer.assignClusters(OTransactionOptimisticServer.java:499)
		at com.orientechnologies.orient.server.OConnectionBinaryExecutor.executeCommit38(OConnectionBinaryExecutor.java:1560)

I have noticed that it works if I use a class instead of a document or a vertex. I have also noticed that class creates a table in the database, however this is reminding me of what happens with vertex: a table is created for the class definition, however that table never has any data in it because it is only used in an embedded context.
This begs the question: how can we architect things such that we can guarantee compatibility with current and future versions of OrientDB? Should we use a class? Perhaps an abstract class? Or perhaps a view? I noticed that your back-end contains concepts of an EmbeddedClass. Can we somehow use this?
If using class instead of vertex is the solution, for data migration can we simply remove the super type of V via your ALTER CLASS command?
What is also interesting is that it appears like we can define indexes on this class, however we are uncertain if these indexes do anything since they might be operating on this table which contains no data since the type is actually embedded.
Thanks

Hi,
Just to put down some simple rule:
Embedded Document can have associate any class Abstract or not, but the class do not have to extend E and V.
Abstract class cannot be used to save directly documents, you can save a document of a class that extend the abstract class and you can save a document with an Embedded Document that has a abstract class as type.
Knowing this, it should be enough to remove the extends from V and E from the class that you use for embedded type to resolve the problem.
You can make the class abstract to make sure that you never have record saved directly with the specific class, so only embedded or subclass.
Types like OPoint are abstract specifically because are required to be embedded.
Also be aware that all the index logic works only at the first level of the document, so you cannot index and query using the index properties that are in a depth > 1, and also for the case of spatial the embedded OPoint( ecc.) type need to be in a property at the root of the document to be indexed.
We do have some specific concept for handle better embedded types in the code, anyway is correct use the public type ODocument for everything.

Thanks for your help!


Cant write to 0xB8000 or any address without it crashing

has the system changed for 0.9 and what am I suppose to do to be able to write to 0xB8000 ?

See https://os.phil-opp.com/vga-text-mode/ for instructions on how to write to the VGA text buffer in bootloader v0.9. For v0.10 and v0.11, we use a pixel-based framebuffer instead of the VGA text mode. See our migration guides for details.


[RFE] Allow user to request detailled output from the faulty CO

When one or multiple COs are faulty (degraded, or processing), we should have an option to display the conditions for the faulty COs in detailed.

This RFE was included in version 1.1.6 of the script: 452bbd9fa489d5dea33cebda4aadd6c748a5588a


Extend all user session objects with m_connected_to field

This field should uniquely identify the downstream server client has connected to.
AuthSession by game_server_id to  GameSession which in turn should point trough map_server_id,map_instance_id to a specific MapServer/MapInstance.

Those fields should be updated after the expected client downstream, actually connects, and cleaned up after getting informed about client disconnect.
In case of map transitions we will likely want to have session specifically kept alive somehow ( maybe transition/serialize MapClientSession to GameHandler's session, perform connection, and serialize it into a new Map )

Closed by #322


Match.chars missing

Hi,
According to synopsis of regex (S05) the Match class has a chars() method which returns the difference of the values of methods to() and from(). On the doc page about Match there is a chars() method mentioned under the Cool class. But that one has a different meaning.
Greets

It's not a different meaning. Match stringifies to the matched string, and its length is the same as .to - .from. And Cool.chars coerces to Str, so the two are the same.


Control text opacity separately

Description
Hello. While having transparent windows is nice, it affects the readability of text: regardless of the terminal settings, white becomes gray-ish and starts to blend in with wallpapers. So users have to choose between the eye candy and practicality. Maybe it would be possible to add an option to make only the window transparent, while keeping the text intact? Thank you.

Hyprland has no way of differentiating text and other elements from the background of a window.
This is usually handled by setting the background opacity in the program's configuration. Most terminals have such an option, so it shouldn't be an issue.


Add a --upgrade option that takes an existing app path, extracts options from nativefier.json and recreates the app

This app was built a long time ago. Nativefier uses the Chrome browser (through electron), and it is dangerous to keep using an old version of it. You should rebuild this app with recent electron. Using the latest nativifier will default to it, or you can pass it manually.
I've been receiving this message over and over when i launch any webapp created with nativifier, i've searched here for an solution but can't find an answer for what should i do. So what exactly should i do to stop this message to appear?

@Kazvko you should upgrade Nativefier and rebuild the app with the same flags. What's unclear / how would you rephrase it?

@ronjouch I wonder if we should have a --upgrade option that takes in an old app path, extracts the values from the nativefier.json and recreates the app.

I think it should have the phrase "you should upgrade Nativefier and rebuild your nativefied app" at the end. And/or a link to a guide of how to do this, step-by-step at minimum.
Ideally it should have an example of how it should be made on terminal, or even better an option as @TheCleric suggested.

Simpler error message pushed in https://github.com/nativefier/nativefier/commit/eaa9d8471be39eb653b0e22ede1f0ac5cc7a8b30 .

@ronjouch I wonder if we should have a --upgrade option that takes in an old app path, extracts the values from the nativefier.json and recreates the app.

Open to that.

That been said i don't remember exactly each options i've used on my builds and i have more  webapps than i would remember anyway, so its kind of annoying know that just now

That been said i don't remember exactly each options i've used on my builds and i have more webapps than i would remember anyway, so its kind of annoying know that just now

Gimme a break. You know what's more annoying? Being pwned because of your old browser. This error message is here to spare you this annoyance. Rebuild your stuff, and PR welcome for the option @TheCleric suggested.

That been said i don't remember exactly each options i've used on my builds and i have more webapps than i would remember anyway, so its kind of annoying know that just now

Gimme a break. You know what's more annoying? Being pwned because of your old browser. This error message is here to spare you this annoyance. Rebuild your stuff, and PR welcome for the option @TheCleric suggested.

I’m definitely going to do that, and I’m not saying it’s wrong to have this alert.   Take it easy...

"Gimme a break" was me grumpily saying "no" to the tone of your writing, which sounded entitled to me, and I don't want this here. Maybe I am wrong in this interpretation, but maybe look if you can perceive it too.

That being said, re-opening the issue; I renamed it to a title suggesting the feature @TheCleric suggested, and it can remain open as an acknowledgement that it would be a nice welcome addition.
@TheCleric if you look into this, there are a few issues floating around about the whole upgrade experience that might give you ideas, or surface stuff users would expect. Also, ideally we'd want to let users auto-update apps from the apps themselves (like browsers do), but that's not trivial given the way Nativefier is split into builder + app now. So a --upgrade flag would be a neat workaround.

@Kazvko you should upgrade Nativefier and rebuild your nativefied app with the same flags. What's unclear / how would you rephrase it?

This thing is crazy? I have no idea what this Nativefier is!!! I've never heard of it if you offered me a million I don't what it is. All I know is it appeared a few days back while opening Google messages for Desktop which I've used for years. This is a completely new err window. The agent here says yes upgrade and closing your issue?????? I don't know how you upgrade this programs. I've never seen it on my PC anywhere and I'm 100% sure I never downloaded it? What the heck? I know I wish there was an alternative because there's little help here. It's as if the expect you to know all about this thing? smh

I have no idea what this Nativefier is! [...] All I know is it appeared a few days back while opening Google messages for Desktop which I've used for years.

Nativefier is what powers your "Google Messages for Desktop" app. As such, it's up to the authors of "Google Messages for Desktop" to ship you an upgrade. Because if they don't, it's a security problem to you, and Nativefier rightfully warns you about it, exactly like a browser asking to update.
Question to you, @jackdashack: where did you get this "Google Messages for Desktop"? I'll reach out to them and mention it's their job to update their apps and ship them to their users, for security.

I queried on the Nativefier website, a community. Finally found a link by
the author that gave a new build. I did, it worked no more error messages
of "old build and possible danger"
This is where I found my instruction and download for Google Messages
Nativefier. Apparently Google Messages for Desktop is not maintained by
Google. I have used it often over the last few years. Never an issue until
this err message.
https://github.com/kelyvin/Google-Messages-For-Desktop/releases/tag/v1.3.0
On Fri, Apr 2, 2021 at 2:21 PM Ronan Jouchet @.***>
wrote:

I have no idea what this Nativefier is! [...] All I know is it appeared a
few days back while opening Google messages for Desktop which I've used for
years.
Nativefier is what powers your "Google Messages for Desktop" app. As such,
it's up to the authors of "Google Messages for Desktop" to ship you an
upgrade. Because if they don't, it's a security problem to you, and
Nativefier rightfully warns you about it, exactly like a browser asking to
update.
Question to you, @jackdashack https://github.com/jackdashack: where did
you get this "Google Messages for Desktop"? I'll reach out to them and
mention it's their job to update their apps and ship them to their users,
for security.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nativefier/nativefier/issues/1131#issuecomment-812652020,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK3EXKPEBQV7A7JSAPQRHULTGYDLXANCNFSM4ZAKVAVA
.

--
Home and Cell:<PHONE_NUMBER> | Facebook: Personal: Jack Poore
FB Page: Enduring Power of the Crucifixion | Twitter: @call_me_gideon


Damage and Dps Meter for Guiding Lands

https://www.nexusmods.com/monsterhunterworld/mods/3585
Here they were able to calculate the damage and DPS in Guiding Lands.
Maybe it should be implemented in hunterpie?

My friends and I always like to do a little damage competition. Unfortunately, we can't do it that well for the Leitlande, because the damage panel is not ready for it. It would be cool if you would also include that.

I do want to add a expedition damage meter, however, there are a LOT of limitations that are out of my control, it wouldn't show party members damage because it would be based on damage that appears on screen. It would also count monsters and small monsters (e.g: Aptanoth, Wing Drakes, etc), there are a lot of limitations to work around and it wouldn't be as accurate as the damage that shows in quests.


#5544: Add output tensors parameter to  moreh_linear op

I added output tensor parameters to these OPs below refer to issue https://github.com/tenstorrent-metal/tt-metal/issues/5044 .

moreh_linear
moreh_linear_backward

Passed the relevant test below.

tests/tt_eager/python_api_testing/unit_testing/misc/test_moreh_linear.py

@mywoodstock , @TT-BrianLiu , @tt-aho
dear code owners, would you please review this PR?
This PR is the same as https://github.com/tenstorrent/tt-metal/pull/7101

all post-commit is passed. https://github.com/tenstorrent/tt-metal/actions/runs/8832482291


OSX - flat namespace in /usr/local/lib/python2.7/site-packages/easysnmp/interface.so

I can see a similar issue in this post here https://github.com/fgimian/easysnmp/issues/42 but I'm not sure if that same issues applies to me or not.
basically i have installs python via home-brew
alexs-mbp:~ alex$ which python
/usr/local/bin/python
alexs-mbp:~ alex$

and have install easysnmp via pip and net-snmp via home-brew
alexs-mbp:~alex$ python
Python 2.7.13 (default, Dec 18 2016, 07:03:39)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-8<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import easysnmp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/easysnmp/__init__.py", line 1, in <module>
    from .easy import (  # noqa
  File "/usr/local/lib/python2.7/site-packages/easysnmp/easy.py", line 3, in <module>
    from .session import Session
  File "/usr/local/lib/python2.7/site-packages/easysnmp/session.py", line 8, in <module>
    from . import interface
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/easysnmp/interface.so, 2): Symbol not found: _netsnmp_transport_config_compare
  Referenced from: /usr/local/lib/python2.7/site-packages/easysnmp/interface.so
  Expected in: flat namespace
 in /usr/local/lib/python2.7/site-packages/easysnmp/interface.so

I also get this message when using brew to check
 Warning: net-snmp is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
alexs-mbp:~ alex$ brew install net-snmp --force
Warning: net-snmp-5.7.3 already installed, it's just not linked.
alexs-mbp:~ alex$

i did a brew link which gives me the below
Warning: net-snmp is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
alexs-mbp:~ alex$ brew install net-snmp --force
Warning: net-snmp-5.7.3 already installed, it's just not linked.
alexs-mbp:~ alex$ brew link net-snmp
Warning: net-snmp is keg-only and must be linked with --force
Note that doing so can interfere with building software.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/net-snmp/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/net-snmp/sbin:$PATH"' >> ~/.bash_profile
alexs-mbp:~ alexwilloughby$ brew link net-snmp --force
Linking /usr/local/Cellar/net-snmp/5.7.3... 182 symlinks created

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/net-snmp/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/net-snmp/sbin:$PATH"' >> ~/.bash_profile
alexs-mbp:~ alex$

starting python and importing easysnmp still gives me the same error does anyone know how to fix this?
Thanks

this fork seems to fix the issue
pip install git+https://github.com/kamakazikamikaze/easysnmp.git

@ajwillo Sorry for not seeing this earlier. Since that fork was created by me, please feel free to let me know about any issues you have with installing it!


add setup instructions for custom repositories at HACS

added in https://github.com/despokd/homeassistant-zenkit/commit/384fbc3b044242706a9bd854c9ec0a3140b5247b

Solved in https://github.com/despokd/homeassistant-zenkit/commit/384fbc3b044242706a9bd854c9ec0a3140b5247b


 I'm looking further.

/test pull-knative-net-istio-latest


ocp4_scan+rhcos: rebuild when inconsistent

right now, if an rhcos build does not succeed for all arches, it is not
retried and remains inconsistent until the next time ocp4 kicks off an
rhcos build when something else changes. rather than just blindly retry
failed arches (which could delay picking up other changes), we would
like ocp4_scan to kick off a build for all when it sees they are
inconsistent and there's no other reason to run ocp4.
this would not retry if all rhcos builds attempted failed (no
inconsistency), but that seems unlikely to occur enough to be a problem.

No good way to test the two jobs but they at least compile and run...

/lgtm

gonna merge then and see how it goes


Can not integrated RN in the existing Android project with react-native-0.71.4

New Version
0.71.4
Old Version
no
Build Target(s)
Android Device
Output of react-native info
<EMAIL_ADDRESS>| MIT | deps: 34 | versions: 1320
A framework for building native apps using React
https://github.com/facebook/react-native#readme
bin: react-native
dist
.tarball: https://registry.npmjs.org/react-native/-/react-native-0.71.4.tgz
.shasum: f03f600efe68f745d19454ab17f9c1a9ef304790
.integrity: sha512-3hSYqvWrOdKhpV3HpEKp1/CkWx8Sr/N/miCrmUIAsVTSJUR7JW0VvIsrV9urDhUj/s6v2WF4n7qIEEJsmTCrPw==
.unpackedSize: 59.7 MB
dependencies:
@jest/create-cache-key-function: ^29.2.1             invariant: ^2.2.4
@react-native-community/cli-platform-android: 10.2.0 jest-environment-node: ^29.2.1
@react-native-community/cli-platform-ios: 10.2.0     jsc-android: ^250231.0.0
@react-native-community/cli: 10.2.0                  memoize-one: ^5.0.0
@react-native/assets: 1.0.0                          metro-react-native-babel-transformer: 0.73.8
@react-native/normalize-color: 2.1.0                 metro-runtime: 0.73.8
@react-native/polyfills: 2.0.0                       metro-source-map: 0.73.8
abort-controller: ^3.0.0                             mkdirp: ^0.5.1
anser: ^1.4.9                                        nullthrows: ^1.1.1
base64-js: ^1.1.2                                    pretty-format: ^26.5.2
deprecated-react-native-prop-types: ^3.0.1           promise: ^8.3.0
event-target-shim: ^5.0.1                            react-devtools-core: ^4.26.1
(...and 10 more.)
maintainers:

react-native-bot<EMAIL_ADDRESS>rsnara<EMAIL_ADDRESS>cipolleschi<EMAIL_ADDRESS>dmitryrykun<EMAIL_ADDRESS>fb<EMAIL_ADDRESS>fkgozali<EMAIL_ADDRESS>lunaleaps<EMAIL_ADDRESS>yungsters<EMAIL_ADDRESS>cortinico<EMAIL_ADDRESS>eliwhite<EMAIL_ADDRESS>hectorramos<EMAIL_ADDRESS>
dist-tags:
0.63-stable: 0.63.5                     0.67-stable: 0.67.5                     latest: 0.71.4
0.64-stable: 0.64.4                     0.68-stable: 0.68.6                     next: 0.72.0-rc.0
0.65-stable: 0.65.3                     0.69-stable: 0.69.8                     nightly: 0.0.0-20230323-2112-987c6fd29
0.66-stable: 0.66.5                     0.70-stable: 0.70.7
published 2 weeks ago by react-native-bot<EMAIL_ADDRESS>Issue and Reproduction Steps
I want to integrated RN in the existing Android project, so that RN is used as an extension function.
But not many people say that the Android project should be placed under the Android folder of the RN project, which is too bad.
Integrated according to the official documentation, it is still impossible to quote ReactRootView in Activity.
I guess it is impossible to find react-native-0.71.aar in node_modules/react-native/android
This is my project structure:
https://github.com/mazhuang123/TempSrc/blob/main/project_stru.png
This is build.gradle under my app module:
https://github.com/mazhuang123/TempSrc/blob/main/appbuildlib.png
This is the project's build.gradle
https://github.com/mazhuang123/TempSrc/blob/main/projectbuildlib.png
this is package.json
https://github.com/mazhuang123/TempSrc/blob/main/packagejson.png
https://github.com/mazhuang123/TempSrc/blob/main/badactivity.png

I guess it is impossible to find react-native-0.71.aar in node_modules/react-native/android

That's because since 0.71, we moved the node_modules/react-native/android folder to Maven Central as it was getting too big for a NPM package.

Unsubscribe
William Pope Jr
On Thu, Sep 28, 2023, 1:04 AM github-actions[bot] @.***>
wrote:

This issue is stale because it has been open 180 days with no activity.
Remove stale label or comment or this will be closed in 7 days.
—
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/36618#issuecomment-1738433995,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALNSC3EM3KSU25YGHO7VNIDX4UANVANCNFSM6AAAAAAWF7WW7M
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


fix($parse): standardize one-time literal vs non-literal and interceptors

Previously literal one-time bindings did not use the expression inputs, causing infinite digest issues with literal values. This often forces the use of deepEquals when watching one-time literals.
ng-class is one example of deepEquals which is no longer required (and had to be updated to keep all tests passing).
This one-time/literal behavior is now also consistently propagated through interceptors (and had to be updated to keep all tests passing).

The ngClass/interceptor part was not originally planned but had to be changed to keep tests passing. Maybe this can be split into smaller commits? But it's mainly just deleting...!

I think this is ready, PTAL.


Exercise 1: Fork server crashed with signal 6

Hi All,
I am trying to run the first exercise and stuck at the following error... can anyone throw some light as to what went wrong here?
$ AFL_DEBUG=1 afl-fuzz -i $HOME/fuzzing/fuzzing_xpdf/pdf_examples/ -o $HOME/fuzzing/fuzzing_xpdf/out/ -s 123 -- $HOME/fuzzing/fuzzing_xpdf/install/bin/pdftotext @@ $HOME/fuzzing/fuzzing_xpdf/output
[+] Enabled environment variable AFL_DEBUG with value 10
[+] Enabled environment variable AFL_DEBUG with value 10
afl-fuzz++4.08a based on afl by Michal Zalewski and a large online community
[+] AFL++ is maintained by Marc "van Hauser" Heuse, Dominik Maier, Andrea Fioraldi and Heiko "hexcoder" Eißfeldt
[+] AFL++ is open source, get it at https://github.com/AFLplusplus/AFLplusplus
[+] NOTE: AFL++ >= v3 has changed defaults and behaviours - see README.md
[+] Running with fixed seed: 123
[+] No -M/-S set, autoconfiguring for "-S default"
[*] Getting to work...
[+] Using exponential power schedule (FAST)
[+] Enabled testcache with 50 MB
[+] Generating fuzz data with a length of min=1 max=1048576
[*] Checking core_pattern...
[!] WARNING: Could not check CPU scaling governor
[+] You have 6 CPU cores and 2 runnable tasks (utilization: 33%).
[+] Try parallel jobs - see /usr/local/share/doc/afl/fuzzing_in_depth.md#c-using-multiple-cores
[*] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[*] Deleting old session data...
[+] Output dir cleanup successful.
[*] Checking CPU core loadout...
[+] Found a free CPU core, try binding to #0.
[*] Scanning '/home/amit/fuzzing/fuzzing_xpdf/pdf_examples/'...
[+] Loaded a total of 3 seeds.
[*] Creating hard links for all input files...
[*] Validating target binary...
[*] Spinning up the fork server...
**==116305==ERROR: UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)**
==116305==Process memory map follows:
	0x000000400000-0x000000407000	/home/amit/fuzzing/fuzzing_xpdf/install/bin/pdftotext
	0x000000407000-0x000000504000	/home/amit/fuzzing/fuzzing_xpdf/install/bin/pdftotext
	0x000000504000-0x000000542000	/home/amit/fuzzing/fuzzing_xpdf/install/bin/pdftotext
	0x000000542000-0x00000054c000	/home/amit/fuzzing/fuzzing_xpdf/install/bin/pdftotext
	0x00000054c000-0x000000589000	/home/amit/fuzzing/fuzzing_xpdf/install/bin/pdftotext
	0x000000589000-0x00000109a000
	0x00000269e000-0x0000026bf000	[heap]
	0x7f6bb43a8000-0x7f6bb43ad000
	0x7f6bb43ad000-0x7f6bb43d5000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x7f6bb43d5000-0x7f6bb456a000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x7f6bb456a000-0x7f6bb45c2000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x7f6bb45c2000-0x7f6bb45c6000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x7f6bb45c6000-0x7f6bb45c8000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x7f6bb45c8000-0x7f6bb45d5000
	0x7f6bb45d5000-0x7f6bb45d8000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7f6bb45d8000-0x7f6bb45ef000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7f6bb45ef000-0x7f6bb45f3000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7f6bb45f3000-0x7f6bb45f4000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7f6bb45f4000-0x7f6bb45f5000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7f6bb45f5000-0x7f6bb468f000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x7f6bb468f000-0x7f6bb479f000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x7f6bb479f000-0x7f6bb480e000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x7f6bb480e000-0x7f6bb4819000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x7f6bb4819000-0x7f6bb481c000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x7f6bb481c000-0x7f6bb481f000
	0x7f6bb481f000-0x7f6bb482d000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x7f6bb482d000-0x7f6bb48a9000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x7f6bb48a9000-0x7f6bb4904000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x7f6bb4904000-0x7f6bb4905000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x7f6bb4905000-0x7f6bb4906000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x7f6bb4906000-0x7f6bb4911000
	0x7f6bb4911000-0x7f6bb4913000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x7f6bb4913000-0x7f6bb493d000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x7f6bb493d000-0x7f6bb4948000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x7f6bb4948000-0x7f6bb4949000
	0x7f6bb4949000-0x7f6bb494b000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x7f6bb494b000-0x7f6bb494d000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x7ffcbae77000-0x7ffcbae98000	[stack]
	0x7ffcbaee2000-0x7ffcbaee6000	[vvar]
	0x7ffcbaee6000-0x7ffcbaee8000	[vdso]
	0xffffffffff600000-0xffffffffff601000	[vsyscall]
==116305==End of process memory map.
**==116305==Sanitizer CHECK failed: /build/llvm-toolchain-11-mnvtwk/llvm-toolchain-11-11.1.0/compiler-rt/lib/sanitizer_common/sanitizer_common.cpp:54 ((0 && "unable to mmap")) != (0) (0, 0)**

[-] Whoops, the target binary crashed suddenly, before receiving any input
    from the fuzzer! You can try the following:

    - The target binary crashes because necessary runtime conditions it needs
      are not met. Try to:
      1. Run again with AFL_DEBUG=1 set and check the output of the target
         binary for clues.
      2. Run again with AFL_DEBUG=1 and 'ulimit -c unlimited' and analyze the
         generated core dump.

    - Possibly the target requires a huge coverage map and has CTORS.
      Retry with setting AFL_MAP_SIZE=10000000.

    - Less likely, there is a horrible bug in the fuzzer. If other options
      fail, poke the Awesome Fuzzing Discord for troubleshooting tips.

**[-] PROGRAM ABORT : Fork server crashed with signal 6
         Location : afl_fsrv_start(), src/afl-forkserver.c:1281**

Thanks.

same issue with UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)** when trying to re-compile the Xpdf as the doc suggested. Please let me know if you find a fix to it! Thanks in advance!!

A quick fix would be to download and recompile an older version of AFL++, AFLplusplus-3.11c worked for me


How to pause flow collection in swift

How to pause flow collection when move to another screen?
Like in Android we have collectAsStateWithLifecycle() or repeaseOnLifeCycle  which pause collection based on lifecycle events. Below swift code would pause the publisher to emit but not Flow.
let publisher = createPublisher(for: clock.time)

var subscription: AnyCancellable?

var body: some View {
  ...
        }
        .onAppear(){
             subscription = publisher.sink { completion in
                        print("Received completion: \(completion)")
                    } receiveValue: { value in
                        print("Received value: \(value)")
                    }
        }
        .onDisappear(){
           subscription?.cancel()
        }

Hi! Cancellations are forwarded to Kotlin, so calling cancel should also cancel the Flow collection.
However depending on the type of Flow the flow itself might not be cancelled.
E.g. the Clock example starts a separate job that doesn't care about the number of collectors/subscribers:
https://github.com/rickclephas/KMP-NativeCoroutines/blob/1dd833bb1cc84cdf98ed93a53e92a80e445d9d1c/sample/shared/src/commonMain/kotlin/com/rickclephas/kmp/nativecoroutines/sample/Clock.kt#L13-L28
On the other hand something like the following will cancel the flow:
https://github.com/rickclephas/KMP-NativeCoroutines/blob/1dd833bb1cc84cdf98ed93a53e92a80e445d9d1c/sample/shared/src/commonMain/kotlin/com/rickclephas/kmp/nativecoroutines/sample/tests/FlowIntegrationTests.kt#L13-L20

In my case, it's StateFlow most of the time. So, is it ok to not cancel the flow or subscriber?
In my above code, on every new subscription, it will create a new collector. So navigating to & fro will lead to opening many unused collectors. Correct me if I'm wrong.

In that case it's perfectly fine to cancel the subscription.
Creating a subscription will indeed create a new collector. However once the subscription is cancelled so is the collector.
E.g. when using something like the following, you'll notice that the item printing will stop as soon as you cancel the subscription.
val time = _time.onEach { println(it) }

Awesome! ThankYou!


pip install datafusion==21.0.0 error

`
uname -a
inux bi-Precision-3630-Tower 5.15.0-50-generic #56~20.04.1-Ubuntu SMP Tue Sep 27 15:51:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

error
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
💥 maturin failed
Caused by: Can't find /tmp/pip-install-z4jah88t/datafusion_f3b0577bcff64d52845e7c19eb5c3d8f/Cargo.toml (in /tmp/pip-install-z4jah88t/datafusion_f3b0577bcff64d52845e7c19eb5c3d8f)
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-bh7yllpq', '--interpreter', '/home/fzt/miniconda3/envs/test/bin/python']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-bh7yllpq --interpreter /home/fzt/miniconda3/envs/test/bin/python
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
`

Thanks for the report. I will try and figure out why this fails. FWIW, it works for me.
$ uname -a
Linux ripper 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ pip3 install datafusion==21.0.0
Collecting datafusion==21.0.0
  Downloading datafusion-21.0.0-cp37-abi3-manylinux_2_34_x86_64.whl (13.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.7/13.7 MB 10.7 MB/s eta 0:00:00
Requirement already satisfied: pyarrow>=6.0.1 in /home/andy/.local/lib/python3.10/site-packages (from datafusion==21.0.0) (11.0.0)
Requirement already satisfied: numpy>=1.16.6 in /home/andy/.local/lib/python3.10/site-packages (from pyarrow>=6.0.1->datafusion==21.0.0) (1.24.2)
Installing collected packages: datafusion
  Attempting uninstall: datafusion
    Found existing installation: datafusion 20.0.0
    Uninstalling datafusion-20.0.0:
      Successfully uninstalled datafusion-20.0.0
Successfully installed datafusion-21.0.0

@ztsweet What version of Python is installed at /home/fzt/miniconda3/envs/test/bin/python?

Also could you run with pip's --verbose flag?

@andygrove

  Downloading datafusion-21.0.0-cp37-abi3-manylinux_2_34_x86_64.whl (13.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.7/13.7 MB 10.7 MB/s eta 0:00:00

It works because you did the installation from the pre-created wheel package, not from the source code.

@andygrove
`
$ python --version
Python 3.9.15
$ pip install datafusion==21.0.0 --verbose
Using pip 22.3.1 from /home/fzt/miniconda3/envs/test/lib/python3.9/site-packages/pip (python 3.9)
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting datafusion==21.0.0
Using cached https://mirrors.aliyun.com/pypi/packages/f2/46/63985a46fd8c186862cbb1c34b85505154815f095bb13e6528a66e18d261/datafusion-21.0.0.tar.gz (95 kB)
Running command pip subprocess to install build dependencies
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting maturin<0.15,>=0.11
Using cached https://mirrors.aliyun.com/pypi/packages/dd/05/bcdd149b785de55baeee3494c672f39ee34b8a615cc20dbf2bd372454992/maturin-0.14.17-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (10.5 MB)
Collecting tomli>=1.1.0
Using cached https://mirrors.aliyun.com/pypi/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl (12 kB)
Installing collected packages: tomli, maturin
Successfully installed maturin-0.14.17 tomli-2.0.1
Installing build dependencies ... done
Running command Getting requirements to build wheel
Getting requirements to build wheel ... done
Running command Preparing metadata (pyproject.toml)
💥 maturin failed
Caused by: Can't find /tmp/pip-install-4gk7356m/datafusion_d1288c2759a14295893d4d14cf66befe/Cargo.toml (in /tmp/pip-install-4gk7356m/datafusion_d1288c2759a14295893d4d14cf66befe)
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-4mqh1imi', '--interpreter', '/home/fzt/miniconda3/envs/test/bin/python']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-4mqh1imi --interpreter /home/fzt/miniconda3/envs/test/bin/python
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/fzt/miniconda3/envs/test/bin/python /home/fzt/miniconda3/envs/test/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpujsq_7b9
cwd: /tmp/pip-install-4gk7356m/datafusion_d1288c2759a14295893d4d14cf66befe
Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
`

I can reproduce the issue in the repo with these commands:
maturin sdist
 pip --verbose install target/wheels/datafusion-21.0.0.tar.gz

Produces:
Using pip 23.0.1 from /home/andy/miniconda3/lib/python3.10/site-packages/pip (python 3.10)
Processing ./target/wheels/datafusion-21.0.0.tar.gz
  Running command pip subprocess to install build dependencies
  Collecting maturin<0.15,>=0.11
    Using cached maturin-0.14.17-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (10.5 MB)
  Collecting tomli>=1.1.0
    Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
  Installing collected packages: tomli, maturin
  Successfully installed maturin-0.14.17 tomli-2.0.1
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)
  💥 maturin failed
    Caused by: Can't find /tmp/pip-req-build-kx7zxjs_/Cargo.toml (in /tmp/pip-req-build-kx7zxjs_)


MiddlewareEvents model should allow nullable context

Add null=True to both fields of MiddlewareEvents model to display all events in the admin.
Closes: https://github.com/Opus10/django-pghistory/issues/129
Type: bug

Released in 3.3.0


Fixes Pyright type errors for src/flask/app.py

Fixes Pyright type errors for src/flask/app.py.
fixes #5543

Please make one PR with the fixes you're identifying. Opening a new issue and PR per file isn't helpful for this.


Server does not generate cache file

It doesn't have a ../saves/ folder. Oops.
I think it should be as easy as changing the folder that the cache is generated in to something common between clients and servers. That, or just make my own folder.
CC @tterrag1098 for EnderCore.

This is already pushed to new 1.7.10 builds. Having some troubles with the 1.8 builds.


[404 page] Create new design - continuation from 5976

Issue description update from Shixie, Dec 13, 2021
Existing exploration from @DragosRistici https://ibm.ent.box.com/folder/150147427973?s=cazz3zid4uq7f635sw2od6hpgyo20kpd
The exploration has received the following feedback:

exciting concept of past-vs-future
content requirement of this design is potentially too much work to maintain
need something that requires less maintenance, more timeless
need to expand the design to be able to work as other error pages as well eg. 300, 303, 500, 505 etc.. see full list below

Compulsory fun design task: redesign IBM ~404~ error page
Design brief

A friendly message could be written that includes these words: 404, Page not found
Provide pathways forward, eg. Search & Popular links
Demonstrate IBM brand philosophy https://www.ibm.com/design/language/philosophy/principles
Consider this error page an opportunity to show IBM's best side

Additional info

Design Box folder

User story
As a user of IBM.com, I need to be informed of an HTTP error and understand what the next steps are.  The error pages were implemented on v18.  This work is needed for Carbon.
Next Steps

Research
Design exploration
Design
Review & approval
Development

Examples:
https://www.ibm.com/common/errorpages/300.html
https://www.ibm.com/common/errorpages/303.html
https://www.ibm.com/common/errorpages/305.html
https://www.ibm.com/common/errorpages/307.html
https://www.ibm.com/common/errorpages/400.html
https://www.ibm.com/common/errorpages/401.html
https://www.ibm.com/common/errorpages/402.html
https://www.ibm.com/common/errorpages/403.html
https://www.ibm.com/common/errorpages/404.html
https://www.ibm.com/common/errorpages/405.html
https://www.ibm.com/common/errorpages/406.html
https://www.ibm.com/common/errorpages/407.html
https://www.ibm.com/common/errorpages/408.html
https://www.ibm.com/common/errorpages/409.html
https://www.ibm.com/common/errorpages/410.html
https://www.ibm.com/common/errorpages/411.html
https://www.ibm.com/common/errorpages/412.html
https://www.ibm.com/common/errorpages/413.html
https://www.ibm.com/common/errorpages/414.html
https://www.ibm.com/common/errorpages/415.html
https://www.ibm.com/common/errorpages/416.html
https://www.ibm.com/common/errorpages/417.html
https://www.ibm.com/common/errorpages/500.html
https://www.ibm.com/common/errorpages/501.html
https://www.ibm.com/common/errorpages/502.html
https://www.ibm.com/common/errorpages/503.html
https://www.ibm.com/common/errorpages/504.html
https://www.ibm.com/common/errorpages/505.html

Continuation from [404 page] Create new design #5976

@DragosRistici completed a round of explorations and files can be found here: https://ibm.ent.box.com/folder/150147427973?s=cazz3zid4uq7f635sw2od6hpgyo20kpd
Next year, this issue needs to be picked up again and I've updated the issue description with this detail.

Feedback from Mike on the options presented on Dec 13

I like the options on pages 10, 14—16 which offer useful/valuable statistics or insights.
I also like the abstract illustrations like pg. 23 and 26—27. I think these should be light theme given the new brand promise work. I think the light colors work well in the statistics concept as well.
Those ISO illustrations can incorporate the animations you mentioned as well.

Still need to consider the feedback stated within the main issue


Installation script (Unix)

I made a little script to automatize as much as we can the installation.
The goal of this script is to download the third-parties libraries and place it in the project, it only runs on unix based os, we could eventually do a powershell script for windows users.

Hi Kranack
Thanks for your suggestions.
Although automating the download by adding a script will make lives of our customers easier but there could be customers who could have problem with these third party libraries. Hence we have not given such automated wget scripts so far.
Thus, by forcing customers to download manually we are ensuring that customer make an aware decision.
Still we value your suggestion and we'll ponder more over it and then make some decision in this regard.

@pawankishorsingh  Please check this.

Hi Kranack,
Thanks for your suggestion. As Pawan already have mentioned that we want customer to make an aware decision for using these third-party libraries. In light of that we will not be taking your PR. Hence closing it.


add V8Property annotation

你好，很开心试用您的 javet 项目，我的英文很糟糕，但我觉得您应该能看懂中文。
我在学习使用时发现只有 V8Function 。例如：
package kd.bos.olapServer

import com.caoccao.javet.annotations.V8Function
import com.caoccao.javet.interop.V8Runtime

class ScriptDimension(
    private val v8Runtime : V8Runtime,
    private val realObj : DimensionNode
) {
    @get:V8Function
    val name : String get() = realObj.name
}

当我注入这个实例后，我的 js 脚本只能这样使用（accounts就是我注入的ScriptDimension实例）：
accounts.getName()

这些书写对用户不友好，我希望是：
accounts.name

我查看了代码的实现，我发现只有 V8Function 注解，我希望能够增加： V8Property 这样的注解。
package kd.bos.olapServer

import com.caoccao.javet.annotations.V8Function
import com.caoccao.javet.interop.V8Runtime

class ScriptDimension(
    private val v8Runtime : V8Runtime,
    private val realObj : DimensionNode
) {
    @V8Property
    val name : String get() = realObj.name
}

您觉得这个主意如何？

Hello, I am very happy to try your javet project. My English is very bad, but I think you should be able to read Chinese.
When I was learning to use it, I found that there was only V8Function. E.g:
package kd.bos.olapServer

import com.caoccao.javet.annotations.V8Function
import com.caoccao.javet.interop.V8Runtime

class ScriptDimension(
    private val v8Runtime: V8Runtime,
    private val realObj: DimensionNode
) {
    @get:V8Function
    val name: String get() = realObj.name
}

When I inject this instance, my js script can only be used like this (accounts is the ScriptDimension instance I injected):
accounts.getName()

These writings are not user-friendly, I hope they are:
accounts.name

I checked the implementation of the code, and I found that there are only V8Function annotations, and I hope to add: V8Property annotations.
package kd.bos.olapServer

import com.caoccao.javet.annotations.V8Function
import com.caoccao.javet.interop.V8Runtime

class ScriptDimension(
    private val v8Runtime: V8Runtime,
    private val realObj: DimensionNode
) {
    @V8Property
    val name: String get() = realObj.name
}

What do you think of this idea?

Thank you for raising this issue. That is in the plan. I guess I'll check it out in May.
And no worry, Chinese is my first class language. In the meanwhile, you may visit https://gitter.im/caoccao/Javet to contact me in real-time.

That feature has been released. Please refer to this doc for detail.


Failing E2E: Wishlist

Wishlist e2e test is failing on develop branch and dev-17.
File: regression/wish-list.e2e-spec.ts
  7 passing (57s)
  1 failing

  1) Wish list checkout should add product to cart, to wish list and checkout:
     CypressError: Timed out retrying: cy.click() failed because this element is disabled:

<button class="btn btn-block btn-primary" disabled="">Continue</button>

Fix this problem, or use {force: true} to disable error checking.

For more details please follow: https://jkmaster.test.c3po.b2c.ydev.hybris.com/job/spartacus-regression-tests/868/console and #6157.

related to the button being disabled found here https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/6839


add an admin dashboard

As an admin,
I want to have a backend,
where I can write posts, curate comments or view statistics.
AC

[ ] there is a route to .../admin
[ ] there is a mock up of a dashboard displayed

tasks

[ ] create a new branch
[ ] create a new route
[ ] create a dashboard component
[ ] implement dashboard component
[ ] write test that dashboard gets rendered

Wireframe / Sketch

complexity
M

Hey Philipp, I don´t really like the why on your Userstory. Maybe come up with something more fitting ;) A small description and/ or a wireframe would be appreciated. Makes it a bit easier to review and you see whats going on.
except that points it looks good to me.

Thx for the suggestions, please have another look.

Looks good to me :) happy hacking

Thx for approving


chore(.github): Add kind:misc label to dependabot PRs automatically

The only issue I can see with this is if the dep upgrade leads to a breaking change for some reason. But in that case, we can manually change the label.

Codecov Report

Merging #1969 (a1fe6a8) into main (359f3a6) will increase coverage by 0.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1969      +/-   ##
==========================================
+ Coverage   54.46%   54.58%   +0.11%
==========================================
  Files         215      215
  Lines       13679    13679
==========================================
+ Hits         7450     7466      +16
+ Misses       5441     5424      -17
- Partials      788      789       +1

see 4 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


HONO_COMPONENT was an idea to make hydration easier, but is no longer used. It would make more sense to write this process on the build system side. Therefore, I think this code should be removed before v4 is released.
https://github.com/usualoma/hono/blob/61202eda1453da8265c076ae80665ccc3e2e6d21/src/jsx/index.ts#L29-L30

Hi @usualoma
Agree. We can remove them.

Fixed by #2139


No support for maven snapshot style versions

The git-versioner has no support for maven snapshot versions when writing "development" code. It would be good if it was an optional setting on the versioner so that both methods could be used.
Maven Getting Started: What is a SNAPSHOT version

This should have been fixed by #9, you should be able to use the pattern `%M.%m(-SNAPSHOT) to get maven style snapshotting.


Add support for Avro IDL

Avro schemata can be defined in both JSON and Avro IDL. Currently avrodoc-plus only supports JSON, but it would be nice if we could support Avro IDL as well.
Avro IDL is a higher-level language for authoring Avro schemata, from the docs:

The aim of the Avro IDL language is to enable developers to author schemata in a way that feels more similar to common programming languages like Java, C++, or Python. Additionally, the Avro IDL language may feel more familiar for those users who have previously used the interface description languages (IDLs) in other frameworks like Thrift, Protocol Buffers, or CORBA.

Agree, that would be nice. Currently, I generate JSON files just for the purpose of Avrodoc. This works fine, except that the file name column on the overview page is useless, as there are no files in the source tree with those names.


write_points return  True, but the data is not  write into  influxdb, why?

In [1]: from influxdb  import  InfluxDBClient

In [2]: json_body = [
   ...:     {
   ...:         "measurement": "cpu_load_short5",
   ...:         "tags": {
   ...:             "host": "server01",
   ...:             "region": "us-west"
   ...:         },
   ...:         "time": "2019-11-10T23:00:00Z",
   ...:         "fields": {
   ...:             "value": 0.64
   ...:         }
   ...:     }
   ...: ]

In [3]: client = InfluxDBClient('<IP_ADDRESS>', 8086, 'root', 'root', 'zabbix')

In [4]: client.write_points(json_body)
Out[4]: True

In [6]: result = client.query('select vValue from cpu_load_short5;')

In [8]: print("Result: {0}".format(result))
Result: ResultSet({'(u'cpu_load_short5', None)': []})

Hi,
I think there's a typo in the query string:
'select vValue from cpu_load_short5;' should be 'select value from cpu_load_short5;' (notice the vValue word)


Copy code from To-do-list

For the purpose of practicing code review: copied code from To-do-list repo.

summary
All JS best practices practiced... nothing to change, keep it up!
Thank you @Adewunmi97


Bad syntax Highlighting in TS when using multiline union types

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

VS Code Version:  1.95.3
OS Version: MacOS 15.0.1

Steps to Reproduce:
Write the following in VSCode
let myObj:
    | {
          prop1: string
      }
    | {
          prop2: string
      }
function myFunc() {}

The syntax of function myFunc() {} and everything after it is broken.
I found that it happens only in this rare edge case. Some things that actually fix it:

Adding a semicolon

let myObj:
    | {
          prop1: string
      }
    | {
          prop2: string
      };
function myFunc() {}

Writing the union type on a single line

let myObj: { prop1: string } | { prop2: string }
function myFunc() {}

Adding a line break before the next line of code

let myObj:
    | {
          prop1: string
      }
    | {
          prop2: string
      }

function myFunc() {}

Bad highlighting:

Wanted highlighting:

It's not just functions, anything that comes after it has bad syntax highlighting unfortunately


Implement emit command in tsserver

Hi, I'm the author of https://github.com/s-panferov/awesome-typescript-loader and I'm trying to migrate loader to use tsserver. This will help to resolve all incompatibles with the current typescript behavior. But unfortunately it's very tricky to implement this now because in the tsserver we only have CompileOnSaveEmitFile command which don't event returns paths to files it writes. And my goal is to read emit output and pass it to webpack.
It will be very helpful to provide an emit command that just returns output without any IO actions.

I am not sure why you would use the server then. The server is mostly suited for managing state and keeping file uptodoate. this includes watching files, reading from disk and writing them as well. the server tries to limit the communication with the host as much it can. sending files back and forth in json messages will generate a lot of garbage and would impact performance, let a side not scaling for large files.

Hi, I'm the author of https://github.com/s-panferov/awesome-typescript-loader and I'm trying to migrate loader to use tsserver. This will help to resolve all incompatibles with the current typescript behavior.

I think this is the real problems. what are the incompatibilities, and how can we help solve these?

@mhegazy one of the biggest problems right now is to find out a full list of files that must to be added to Program including @types and other references like compilerOptions.lib.

Why is it a problem? calling createProgram should do that for you assuming you have the correct implementation for the CompilerHost. Can you elaborate on the issues you are running into?